* xdisp.c (expose_window): Save original value of phys_cursor_on_p and turn window...
[bpt/emacs.git] / src / ChangeLog
CommitLineData
3390454c
YM
12011-09-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * xdisp.c (expose_window): Save original value of phys_cursor_on_p
4 and turn window cursor on if cleared (Bug#9415).
5
edb7b4dc
AS
62011-09-07 Andreas Schwab <schwab@linux-m68k.org>
7
8 * search.c (boyer_moore): Take unibyte characters from pattern
9 literally. (Bug#9458)
10
6e20a0d4
CY
112011-08-30 Chong Yidong <cyd@stupidchicken.com>
12
13 * syntax.c (find_defun_start): Update all cache variables if
14 exiting early (Bug#9401).
15
220fdd2e
AS
162011-08-19 Andreas Schwab <schwab@linux-m68k.org>
17
18 * keyboard.c: Include "process.h"
19
c897048c
CY
202011-07-28 Eli Zaretskii <eliz@gnu.org>
21
22 * xfaces.c (update_face_from_frame_parameter): Move out of
23 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
24 with HAVE_WINDOW_SYSTEM.
25
ea180610
AS
262011-07-26 Andreas Schwab <schwab@linux-m68k.org>
27
28 * fontset.c (fontset_get_font_group): Add proper type checks.
29 (Bug#9172)
30
7963fa06
YM
312011-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32
33 * unexmacosx.c (print_load_command_name): Add cases LC_FUNCTION_STARTS
34 and LC_VERSION_MIN_MACOSX.
35 (copy_linkedit_data) [LC_FUNCTION_STARTS]: New function.
36 (dump_it) [LC_FUNCTION_STARTS]: Use it.
37
f7912160
CY
382011-07-22 Chong Yidong <cyd@stupidchicken.com>
39
40 * frame.c (Fmodify_frame_parameters): In tty case, update the
41 default face if necessary (Bug#4238).
42
4050dcf8
YM
432011-07-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
44
45 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add -fno-pie so as to suppress
46 address randomization (Bug#8395).
47
15fa4783
KH
482011-07-07 Kenichi Handa <handa@m17n.org>
49
50 * composite.c (composition_compute_stop_pos): Ignore a static
51 composition starting before CHARPOS (Bug#8915).
52
53 * xdisp.c (handle_composition_prop): Likewise.
54
989b42d2
YM
552011-06-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
56
57 * dispnew.c (scrolling_window): Before scrolling, turn off a
58 mouse-highlight in the window being scrolled.
59
4fd75609
GM
602011-06-16 Paul Eggert <eggert@cs.ucla.edu>
61
62 * nsmenu.m: Replace all uses of XVECTOR with ASIZE and AREF. (Bug#8839)
63
8b3115e7
DN
642011-06-02 Dan Nicolaescu <dann@ics.uci.edu>
65
66 * emacs.c (main): Warn when starting a GTK emacs in daemon mode.
67
14eca62f
YM
682011-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
69
70 * fringe.c (update_window_fringes): Don't update overlay arrow bitmap
71 in the current matrix if keep_current_p is non-zero.
72
e61124cd
YM
732011-05-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
74
75 * dispextern.h (struct glyph_row): New member fringe_bitmap_periodic_p.
76
77 * dispnew.c (shift_glyph_matrix, scrolling_window): Mark scrolled row
78 for fringe update if it has periodic bitmap.
79 (row_equal_p): Also compare left_fringe_offset, right_fringe_offset,
80 and fringe_bitmap_periodic_p.
81
82 * fringe.c (get_fringe_bitmap_data): New function.
83 (draw_fringe_bitmap_1, update_window_fringes): Use it.
84 (update_window_fringes): Record periodicity of fringe bitmap in glyph
85 row. Mark glyph row for fringe update if periodicity changed.
86
87 * xdisp.c (try_window_reusing_current_matrix): Don't mark scrolled row
88 for fringe update unless it has periodic bitmap.
89
f16d9837
KH
902011-05-25 Kenichi Handa <handa@m17n.org>
91
92 * xdisp.c (get_next_display_element): Set correct it->face_id for
93 a static composition.
94
4d8ade89
YM
952011-05-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
96
97 * dispnew.c (scrolling_window): Don't exclude the case that the
98 last enabled row in the desired matrix touches the bottom boundary.
99
e531bdff
DA
1002011-05-11 Drew Adams <drew.adams@oracle.com>
101
102 * textprop.c (Fprevious_single_char_property_change): Doc fix (bug#8655).
103
7db47798
YM
1042011-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
105
106 * w32term.c (w32_draw_fringe_bitmap): Rename local vars `left' and
107 `width' to `bar_area_x' and `bar_area_width', respectively.
108 (x_scroll_run): Take account of fringe background extension.
109
110 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]: Rename
111 local vars `left' and `width' to `bar_area_x' and
112 `bar_area_width', respectively.
113 (x_scroll_run) [USE_TOOLKIT_SCROLL_BARS]: Take account of fringe
114 background extension.
115
25fb3d74
AS
1162011-05-09 Andreas Schwab <schwab@linux-m68k.org>
117
118 * xmenu.c (set_frame_menubar): Fix submenu loops.
119
14fe7b53
EZ
1202011-05-09 Eli Zaretskii <eliz@gnu.org>
121
122 Backport revisions 103939.1.41..103939.1.44 (inclusive) from trunk.
123 (bug#8623)
124 The next log entry shows the actual changes by Paul Eggert.
125
1262011-05-08 Paul Eggert <eggert@cs.ucla.edu>
127
128 Fix a problem with aliasing and vector headers.
129 GCC 4.6.0 optimizes based on type-based alias analysis. For
130 example, if b is of type struct buffer * and v of type struct
131 Lisp_Vector *, then gcc -O2 was incorrectly assuming that &b->size
132 != &v->size, and therefore "v->size = 1; b->size = 2; return
133 v->size;" must therefore return 1. This assumption is incorrect
134 for Emacs, since it type-puns struct Lisp_Vector * with many other
135 types. To fix this problem, this patch adds a new type struct
136 vector_header that documents the constraints on layout of vectors
137 and pseudovectors, and helps optimizing compilers not get fooled
138 by Emacs's type punning. It also adds the macros XSETTYPED_PVECTYPE
139 XSETTYPED_PSEUDOVECTOR, TYPED_PSEUDOVECTORP, for similar reasons.
140 * lisp.h (XVECTOR_SIZE): New convenience macro. All previous uses of
141 XVECTOR (foo)->size replaced to use this macro, to avoid the hassle
142 of writing XVECTOR (foo)->header.size.
143 * lisp.h: Say "vectorlike header" rather than "vector header.
144 (struct vectorlike_header): Rename from struct vector_header.
145 (XVECTORLIKE_HEADER_SIZE): Renamed from XVECTOR_HEADER_SIZE.
146 All uses changed.
147 (XVECTOR_HEADER_SIZE): New macro, for use in XSETPSEUDOVECTOR.
148 (XSETTYPED_PVECTYPE): New macro, specifying the name of the size
149 member.
150 (XSETPVECTYPE): Rewrite in terms of new macro.
151 (XSETPVECTYPESIZE): New macro, specifying both type and size.
152 This is a bit clearer, and further avoids the possibility of
153 undesirable aliasing.
154 (XSETTYPED_PSEUDOVECTOR): New macro, specifying the size.
155 (XSETPSEUDOVECTOR): Rewrite in terms of XSETTYPED_PSEUDOVECTOR
156 and XVECTOR_HEADER_SIZE.
157 (XSETSUBR): Rewrite in terms of XSETTYPED_PSEUDOVECTOR and XSIZE,
158 since Lisp_Subr is a special case (no "next" field).
159 (ASIZE): Rewrite in terms of XVECTOR_SIZE.
160 (struct vector_header): New type.
161 (TYPED_PSEUDOVECTORP): New macro, also specifying the C type of the
162 object, to help avoid aliasing.
163 (PSEUDOVECTORP): Rewrite in terms of TYPED_PSEUDOVECTORP.
164 (SUBRP): Likewise, since Lisp_Subr is a special case.
165
166 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table):
167 (struct Lisp_Sub_Char_Table, struct Lisp_Bool_Vector):
168 (struct Lisp_Hash_Table): Combine first two members into a single
169 struct vector_header member. All uses of "size" and "next" members
170 changed to be "header.size" and "header.next".
171 * buffer.h (struct buffer): Likewise.
172 * font.h (struct font_spec, struct font_entity, struct font): Likewise.
173 * frame.h (struct frame): Likewise.
174 * process.h (struct Lisp_Process): Likewise.
175 * termhooks.h (struct terminal): Likewise.
176 * window.c (struct save_window_data, struct saved_window): Likewise.
177 * window.h (struct window): Likewise.
178 * alloc.c (allocate_buffer, Fmake_bool_vector, allocate_pseudovector):
179 Use XSETPVECTYPESIZE, not XSETPVECTYPE, to avoid aliasing problems.
180 * buffer.c (init_buffer_once): Likewise.
181 * lread.c (defsubr): Use XSETTYPED_PVECTYPE, since Lisp_Subr is a
182 special case.
183 * process.c (Fformat_network_address): Use local var for size,
184 for brevity.
185 * fns.c (vector): Remove; this old hack is no longer needed.
186 * bytecode.c (exec_byte_code): Don't use XVECTOR before CHECK_VECTOR.
187
fab624aa
EZ
1882011-04-29 Eli Zaretskii <eliz@gnu.org>
189
190 * w32heap.c (allocate_heap) [USE_LISP_UNION_TYPE || USE_LSB_TAG]:
191 New version that can reserve upto 2GB of heap space.
192
45cb8994
CY
1932011-04-26 Chong Yidong <cyd@stupidchicken.com>
194
195 * nsfns.m (Fns_read_file_name): Doc fix (Bug#8534).
196
97a93095
EZ
1972011-04-18 Eli Zaretskii <eliz@gnu.org>
198
199 * s/ms-w32.h (localtime): Redirect to sys_localtime.
200
201 * w32.c: Include <time.h>.
202 (sys_localtime): New function.
203
c17819f4
CY
2042011-04-13 Chong Yidong <cyd@stupidchicken.com>
205
206 * xdisp.c (init_xdisp): Initialize echo_area_window (Bug#6451).
207
300f9fca
ST
2082011-04-10 Samuel Thibault <sthibault@debian.org> (tiny change)
209
210 * sysdep.c (wait_for_termination): On GNU Hurd, kill returns -1 on
211 zombies (Bug#8467).
212
fde4eb86
CY
2132011-04-10 Chong Yidong <cyd@stupidchicken.com>
214
215 * buffer.c (syms_of_buffer): Doc fix (Bug#6902).
216
5324d904
CY
2172011-04-08 Chong Yidong <cyd@stupidchicken.com>
218
65969f63
CY
219 * ftfont.c (get_adstyle_property, ftfont_pattern_entity): Use
220 unsigned char, to match FcChar8 type definition.
221
222 * xterm.c (handle_one_xevent):
223 * xmenu.c (create_and_show_popup_menu):
224 * xselect.c (x_decline_selection_request)
225 (x_reply_selection_request): Avoid type-punned deref of X events.
5324d904 226
da2fb5b5 2272011-04-08 Samuel Thibault <sthibault@debian.org> (tiny change)
0080dc6b
SS
228
229 * term.c (init_tty): Fix incorrect ifdef placement (Bug#8450).
230
4e19a977
CS
2312011-03-19 Christoph Scholtes <cschol2112@googlemail.com>
232
233 * process.c (Fformat_network_address): Doc fix.
234
20f56955
CY
2352011-03-19 Chong Yidong <cyd@stupidchicken.com>
236
237 * buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
238 (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
239 These macros can no longer be used for assignment.
240
241 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Assign
242 struct members directly, instead of using BUF_BEGV etc.
243 (record_buffer_markers, fetch_buffer_markers): New functions for
244 recording and fetching special buffer markers.
245 (set_buffer_internal_1, set_buffer_temp): Use them.
246
247 * lread.c (unreadchar): Use SET_BUF_PT_BOTH.
248
249 * insdel.c (adjust_point): Use SET_BUF_PT_BOTH.
250
251 * intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
252 (get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.
253
254 * xdisp.c (hscroll_window_tree):
255 (reconsider_clip_changes): Use PT instead of BUF_PT.
256
45763476
JB
2572011-03-17 Juanma Barranquero <lekktu@gmail.com>
258
259 * xfaces.c (Fx_load_color_file):
260 Read color file from absolute filename (bug#8250).
261
1e048ad1
JB
2622011-03-11 Juanma Barranquero <lekktu@gmail.com>
263
264 Backport revno:103582 from trunk.
265 * w32xfns.c (select_palette): Check success of RealizePalette against
266 GDI_ERROR, not zero.
267
c47cbdfd
YM
2682011-03-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
269
126bc0dc
YM
270 * fringe.c (update_window_fringes): Remove unused variables.
271
c47cbdfd
YM
272 * unexmacosx.c (copy_data_segment): Also copy __got section.
273 (Bug#8223)
274
c6678f29 2752011-03-07 Chong Yidong <cyd@stupidchicken.com>
22770c84
CY
276
277 * Version 23.3 released.
278
e3b300a4
KH
2792011-02-22 Kenichi Handa <handa@m17n.org>
280
281 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
282 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is
283 integer.
284
f6ed3dbe
CY
2852011-02-19 Chong Yidong <cyd@stupidchicken.com>
286
287 * Makefile.in (prefix-args${EXEEXT}): Compile with ALL_CFLAGS.
288
a73d395b
EZ
2892011-02-13 Eli Zaretskii <eliz@gnu.org>
290
291 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
292 window is changed inside calls to do_pending_window_change.
293 (Bug#8020)
294
cb191a14
EZ
2952011-02-12 Eli Zaretskii <eliz@gnu.org>
296
297 * terminal.c (create_terminal): Use default-keyboard-coding-system
298 and default-terminal-coding-system to initialize coding systems of
299 the new terminal. (Bug#7840)
300
bae1fa42
MR
3012011-02-09 Martin Rudalics <rudalics@gmx.at>
302
303 * window.c (select_window): Check inhibit_point_swap argument when
304 deciding whether to return immediately.
305
9aabf64c
JD
3062011-02-08 Jan Djärv <jan.h.d@swipnet.se>
307
308 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
309 zero (Bug#7348).
310
95838641
GM
3112011-02-03 Glenn Morris <rgm@gnu.org>
312
313 * xfaces.c (Finternal_set_lisp_face_attribute):
314 Try to clarify some error messages. (Bug#2659)
315
aca092ac
SM
3162011-02-02 Stefan Monnier <monnier@iro.umontreal.ca>
317
318 * editfns.c (save_restriction_restore): Don't forget to invalidate the
319 current_column cache (bug#7946).
320
ea2460a0
KH
3212011-02-02 Kenichi Handa <handa@m17n.org>
322
323 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
324
325 * xftfont.c (xftfont_open): Likewise.
326
29feb0e9
AS
3272011-02-01 Andreas Schwab <schwab@linux-m68k.org>
328
329 * window.c (Fselect_window): Add missing return value.
330
df61c790
AS
3312011-01-29 Andreas Schwab <schwab@linux-m68k.org>
332
333 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
334 of int. All uses adjusted.
335 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
336 (svg_load_image): Remove casts.
337
7f9c5df9
CY
3382011-01-29 Chong Yidong <cyd@stupidchicken.com>
339
340 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
341 function definitions for compiling with libpng-1.5.
342 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
343 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
344 (Bug#7908).
345
46b3f2be
CY
3462011-01-28 Chong Yidong <cyd@stupidchicken.com>
347
348 * m/intel386.h: Define NO_ARG_ARRAY. Suggested by Dan Nicolaescu.
349
37d1c45d
CY
3502011-01-27 Chong Yidong <cyd@stupidchicken.com>
351
352 * font.c (font_parse_fcname): Require GTK-style font sizes to
353 occur at the end of the font string (Bug#7853).
354
ea08011c
CY
3552011-01-26 Chong Yidong <cyd@stupidchicken.com>
356
357 * font.c (font_parse_fcname): Fix typo in string length.
358
f996bbcb
SM
3592011-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
360
361 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
362 the buffer's point-max (bug#7876).
363
19634648
CY
3642011-01-23 Chong Yidong <cyd@stupidchicken.com>
365
366 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
367 Remove unused HAVE_SHM branch (Bug#6811).
368
6de1218f 3692011-01-23 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19634648 370
6de1218f
PG
371 * s/hpux11.h: Set CANNOT_DUMP on IA64 (Bug#6811).
372
e6b84b30
MR
3732011-01-22 Martin Rudalics <rudalics@gmx.at>
374
375 * window.c (select_window): New function.
376 (Fselect_window): Call it.
377 (inhibit_point_swap): Variable deleted.
378 (Fset_window_configuration): Call select_window directly.
379
0514b4be
SM
3802011-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
381
382 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
383
e7f50e8f
EZ
3842011-01-16 Eli Zaretskii <eliz@gnu.org>
385
386 * image.c (syms_of_image): Don't use SET_SYMBOL_VALUE. (Bug#7848)
387
6dc1d2d3
MR
3882011-01-15 Martin Rudalics <rudalics@gmx.at>
389
390 * window.c (inhibit_point_swap): New variable.
391 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
392 point this time.
393 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
394 of setting selected_window to nil (Bug#7728).
395
70ba1ec8
CY
3962011-01-12 Chong Yidong <cyd@stupidchicken.com>
397
398 * config.in (TERMINFO): New definition.
399
400 * s/netbsd.h: Use it to choose between terminfo and termcap
401 (Bug#7642).
402
0ad25444
JD
4032011-01-03 Jan Djärv <jan.h.d@swipnet.se>
404
405 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
406
407 * nsfns.m (ns_set_name_iconic): Remove.
408 (ns_get_screen): Don't assign integer to f.
409 (ns_set_name_internal): New function (Bug#7517).
410 (Vicon_title_format): Extern declare.
411 (ns_set_name): Call ns_set_name_internal.
412 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
413 (x_implicitly_set_name): Ditto.
414 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
415 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8.
416 Always use buffer name for title and buffer filename only for
b762841f 417 RepresentedFilename. Handle bad UTF-8 in buffer name (Bug#7517).
0ad25444 418
fb724e55
EZ
4192011-01-03 Eli Zaretskii <eliz@gnu.org>
420
421 * image.c (png_jmpbuf): Remove definition.
422 (my_png_error, png_load): Don't use png_jmpbuf.
423
5be1c984
EZ
4242010-12-31 Eli Zaretskii <eliz@gnu.org>
425
426 * image.c <Qlibpng_version>: New variable.
427 (syms_of_image): Intern and staticpro it. Set its value to the
428 version of PNG library we were compiled with.
429 (my_png_error, png_load): Avoid GCC warnings about direct access
430 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
431 (png_jmpbuf): New macro.
432 (my_png_error, png_load): Use it instead of #ifdef'ing according
433 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 434
cf07311b
SM
4352010-12-27 Stefan Monnier <monnier@iro.umontreal.ca>
436
437 * .gdbinit (xgetptr): Fix the union+lsb case.
438 (xbacktrace): Fix the union case.
439
794b75c7
SM
4402010-12-26 Stefan Monnier <monnier@iro.umontreal.ca>
441
442 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
443 different from selected-window's.
444
2e4ab211
EZ
4452010-12-25 Eli Zaretskii <eliz@gnu.org>
446
71fe378d
EZ
447 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
448 equivalent of a menu item when the key sequence is given by the
449 `:keys' attribute. (Bug#7662)
450
2e4ab211
EZ
451 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
452 the basic faces are supported.
453
84595ff0
JD
4542010-12-24 Jan Djärv <jan.h.d@swipnet.se>
455
456 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
457
30d621a2
EZ
4582010-12-17 Eli Zaretskii <eliz@gnu.org>
459
460 * xdisp.c (Fformat_mode_line): Fix last change.
461
4bf3e46e
CY
4622010-12-16 Chong Yidong <cyd@stupidchicken.com>
463
464 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
465 faces (Bug#7587).
466
1b2a627f
EZ
4672010-12-13 Eli Zaretskii <eliz@gnu.org>
468
469 * fileio.c (Fexpand_file_name): One more doc fix.
470
15579471
EZ
4712010-12-12 Eli Zaretskii <eliz@gnu.org>
472
473 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
474
f0559026
EZ
4752010-12-11 Eli Zaretskii <eliz@gnu.org>
476
76feb864
EZ
477 * w32fns.c (Fx_show_tip): Call try_window with last argument
478 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
479 solved. Round up the tip height to an integral multiple of the
480 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
481 (Bug#7398)
482
f0559026
EZ
483 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
484 (face_before_or_after_it_pos, next_element_from_string)
485 (next_element_from_c_string, produce_stretch_glyph): Remove unused
486 calculations of maximum string length before calling
487 string_char_and_length and STRING_CHAR_AND_LENGTH.
488 (string_char_and_length): Update commentary: MAXLEN is no longer
489 needed.
490
0b9fc69a
JD
4912010-12-10 Jan Djärv <jan.h.d@swipnet.se>
492
493 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
494 as (Qsave_session arg).
495
496 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
497 (smc_die_CB): Make an event with arg Qt.
498 (Fhandle_save_session): If event has Qt as argument,
499 call Fkill_emacs (Bug#7552).
500
2b815743
JD
5012010-12-07 Jan Djärv <jan.h.d@swipnet.se>
502
503 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
504
d8b2a962
CY
5052010-12-06 Chong Yidong <cyd@stupidchicken.com>
506
507 * dispextern.h (struct it): New member overlay_strings_charpos.
508
509 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
510 charpos where we computed n_overlay_strings.
511 (next_overlay_string): Load overlay strings at recorded position,
512 which may not be the same as the iterator's charpos (Bug#7016).
513
a56d164e
JD
5142010-12-05 Jan Djärv <jan.h.d@swipnet.se>
515
516 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
517 with cursor color and draw a rectangle around the image (Bug#7412).
518
77f1ed6c
CY
5192010-12-05 Chong Yidong <cyd@stupidchicken.com>
520
521 * xdisp.c (try_scrolling): Avoid infloop if the first line is
522 obscured due to a vscroll (Bug#7537).
523
2a91a0b5
JD
5242010-12-02 Jan Djärv <jhd@zeplinf.localdomain>
525
526 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
527
528 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
529 Use FRAME_TOOLBAR_HEIGHT.
530 (x_set_offset): Handle XNegative and YNegative in
531 f->size_hint_flags (Bug#7510).
532
b84ae584
KH
5332010-11-25 Kenichi Handa <handa@m17n.org>
534
535 * charset.c (emacs_mule_charset): Make it an array of charset ID;
536 i.e. integer.
537 (Fdefine_charset_internal): Adjusted for the above change.
538 (init_charset_once): Likewise.
539
540 * charset.h (emacs_mule_charset): Adjust the prototype. Delete
541 duplicated extern.
542
543 * coding.c (emacs_mule_char): Adjust for the change of
544 emacs_mule_charset.
545
546 * lread.c (read_emacs_mule_char): Adjust for the change of
547 emacs_mule_charset.
548
b8e5cf1d
EZ
5492010-11-22 Eli Zaretskii <eliz@gnu.org>
550
551 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
552 of w32api >= 3.15. (Bug#6989) (Bug#7452)
553
96ad0af7
YM
5542010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
555
556 * alloc.c (mark_terminals): Ensure that the image cache is marked
557 even if the terminal object was marked earlier (Bug#6301).
558
35f1de62
CY
5592010-11-21 Chong Yidong <cyd@stupidchicken.com>
560
561 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
562
8d7f026f
JD
5632010-11-20 Jan Djärv <jan.h.d@swipnet.se>
564
565 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
566 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
b762841f 567 Use 23 as menubar height if 0. (Bug#7425).
8d7f026f 568
37de8fd0
J
5692010-11-14 Jan Djärv <jan.h.d@swipnet.se>
570
571 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
572
573 * config.in (HAVE_G_TYPE_INIT): New symbol.
574
c7926fe2
EZ
5752010-11-12 Eli Zaretskii <eliz@gnu.org>
576
577 * lread.c (Fload): Mention `load-in-progress' and
578 `load-file-name'. (Bug#7346)
579
c0098065
EZ
5802010-11-09 Eli Zaretskii <eliz@gnu.org>
581
86520d8c
EZ
582 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
583 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
584 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
585 subprocesses. Use buffer_free only ifdef subprocesses.
586
587 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
588 the subprocesses version, not in the non-subprocesses one.
589
794a4b6d
EZ
590 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
591
c0098065
EZ
592 * xfns.c (x_real_positions): Fix declaration-after-statement
593 problem.
594
be3faa80
CY
5952010-11-05 Chong Yidong <cyd@stupidchicken.com>
596
597 * image.c (free_image): Don't garbage the frame here, since this
598 function can be called while redisplaying (Bug#7210).
599 (uncache_image): Garbage the frame here (Bug#6426).
600
055c91d4 6012010-11-04 Chong Yidong <cyd@stupidchicken.com>
184765cc
CY
602
603 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
604 Windows.
605
055c91d4 6062010-11-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
bd80a886
YM
607
608 * process.c (Fmake_network_process): Don't call turn_on_atimers around
609 `connect' (Bug#5723).
610
055c91d4 6112010-11-04 Helmut Eller <eller.helmut@gmail.com>
c2e124a9
HE
612
613 * process.c (Fmake_network_process): Call `select' for interrupted
614 `connect' rather than creating new socket (Bug#5173).
615
68ae6cda
KH
6162010-11-04 Kenichi Handa <handa@m17n.org>
617
618 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
619 Don't sheck SPEC if it is nil.
620 (font_list_entities): Call font_delete_unmatched if
621 Vface_ignored_fonts is non-nil.
622
db5cada2 6232010-11-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
fa884f18 624
2511e8e0
CY
625 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
626 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
627
628 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
629 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
630 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
631 TRY_WINDOW_CHECK_MARGINS.
632
633 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
634 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423).
fa884f18 635
d75c9992
JD
6362010-11-04 Jan Djärv <jan.h.d@swipnet.se>
637
31887d45
JD
638 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
639 parent is the root window. Check this after traversing window tree.
640
d75c9992
JD
641 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
642
643 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
644
645 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
646 before traversing window tree (Bug#5721).
647
754996bc
GM
6482010-11-03 Glenn Morris <rgm@gnu.org>
649
650 * Makefile.in (CRT_DIR): New variable, set by configure.
651 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
652 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
653
3649d303
JD
6542010-11-01 Jan Djärv <jan.h.d@swipnet.se>
655
656 * process.c (kbd_is_on_hold): New variable.
657 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
658 New functions.
659 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
660 select on empty input mask.
661 (init_process): Initialize kbd_is_on_hold to 0.
662
663 * process.h (hold_keyboard_input, unhold_keyboard_input)
664 (kbd_on_hold_p): Declare.
665
666 * keyboard.c (input_available_signal): Declare.
667 (kbd_buffer_nr_stored): New function.
668 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
669 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
670 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
671 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
672 (tty_read_avail_input): If input is on hold, return.
673 Don't read more that free slots in kbd_buffer (Bug#6571).
674
46eadc7a
CY
6752010-10-31 Chong Yidong <cyd@stupidchicken.com>
676
677 * xterm.c (x_connection_closed): Print informative error message
678 when aborting on GTK. This requires using shut_down_emacs
679 directly instead of Fkill_emacs.
680
655441b2
MA
6812010-10-25 Michael Albinus <michael.albinus@gmx.de>
682
683 * dbusbind.c (Fdbus_call_method_asynchronously)
684 (Fdbus_register_signal, Fdbus_register_method): Check, whether
685 `dbus-registered-objects-table' is initialized.
686
23c261f5
CY
6872010-10-24 Chong Yidong <cyd@stupidchicken.com>
688
689 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
690
89baa1df
EZ
6912010-10-22 Eli Zaretskii <eliz@gnu.org>
692
693 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
694
695 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
696 Deprecate use as a boolean flag.
697
5419963b
KB
6982010-10-18 Ken Brown <kbrown@cornell.edu>
699
700 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
701
31daa5e1
KH
7022010-10-15 Kenichi Handa <handa@m17n.org>
703
704 Fix incorrect font metrics when the same font is opened with
705 different pixelsizes.
706
707 * xftfont.c: Include composite.h.
708 (xftfont_shape): New function.
709 (syms_of_xftfont): Set xftfont_driver.shape.
710
9fa82824
DP
7112010-10-13 Damyan Pepper <damyanp@gmail.com>
712
713 Fix handling of font properties on Windows (bug#6303).
714 * font.c (font_filter_properties): New function, refactored from
715 ftfont_filter_properties.
716 * font.h (font_filter_properties): Declare.
717 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
718 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
719 (w32font_filter_properties): New function.
720 (w32font_driver): Add w32font_filter_properties.
721
51e4f4a8
JB
7222010-10-12 Juanma Barranquero <lekktu@gmail.com>
723
c0943d3d 724 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
725 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
726
a2e35ef5
JD
7272010-10-10 Jan Djärv <jan.h.d@swipnet.se>
728
729 * nsterm.m (Qleft): Declare.
730 (ns_right_alternate_modifier): New variable
731 (NSRightAlternateKeyMask): New define.
732 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
733 ns_right_alternate_modifier isn't Qleft.
734 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
735 as emacs modifier for NSRightAlternateKeyMask.
736 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
737
2e828c79
MA
7382010-10-08 Michael Albinus <michael.albinus@gmx.de>
739
740 * dbusbind.c (xd_get_dispatch_status): Return a Lisp_Object.
741 (xd_pending_messages): Catch xd_get_dispatch_status calls.
742
93d50df8
KH
7432010-10-08 Kenichi Handa <handa@m17n.org>
744
2b7c9342 745 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 746
a79b0f28
MA
7472010-10-03 Michael Albinus <michael.albinus@gmx.de>
748
749 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
750 (Fdbus_init_bus): ... here. (Bug#7113)
751
7b2bf907
GM
7522010-10-03 Glenn Morris <rgm@gnu.org>
753
754 * buffer.c (before-change-functions, after-change-functions):
755 Three-year overdue doc fix following 2007-08-13 change.
756
1911a33b
KH
7572010-10-02 Kenichi Handa <handa@m17n.org>
758
759 * coding.c (coding_inherit_eol_type): If parent doesn't specify
760 eol-format, inherit from the system's default.
761 (complement_process_encoding_system): Make a new coding system
762 inherit the original eol-format.
763
fcaf8878
KH
7642010-09-30 Kenichi Handa <handa@m17n.org>
765
766 * coding.c (complement_process_encoding_system): New function.
767
768 * coding.h (complement_process_encoding_system): Extern it.
769
770 * callproc.c (Fcall_process): Complement the coding system for
771 encoding arguments.
772 (Fcall_process_region): Complement the coding system for encoding
773 the input to the process.
774
775 * process.c (Fstart_process): Complement the coding system for
776 encoding arguments.
777 (send_process): Complement the coding system for encoding what
778 sent to the process.
779
18acb5ad
KH
7802010-09-29 Kenichi Handa <handa@m17n.org>
781
782 * xfont.c (xfont_open): Fix setting of font->average_width from
783 :avgwidth property (Bug#7123).
784
dec83468
MA
7852010-09-28 Michael Albinus <michael.albinus@gmx.de>
786
787 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
788 is more portable.
789
790 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
b762841f 791 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
dec83468
MA
792 has not defined SIGIO.
793
e0720500
MA
7942010-09-27 Michael Albinus <michael.albinus@gmx.de>
795
11a5af7c 796 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
797 (Bug#7113)
798
42d3022b
J
7992010-09-26 Jan Djärv <jan.h.d@swipnet.se>
800
801 * xgselect.c (xg_select): Clear file descriptors not set from
802 rfds and wfds.
803
fbb3da77
SM
8042010-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
805
806 * syntax.c (back_comment): Detect the case where a 1-char comment
807 starter is also the 2nd char of a 2-char comment ender.
808
2b5b82db
J
8092010-09-17 Jan Djärv <jan.h.d@swipnet.se>
810
811 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
812
5f61a25c
J
8132010-09-12 Jan Djärv <jan.h.d@swipnet.se>
814
815 * xterm.c (get_current_vm_state): New function.
816 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
817 want_fullscreen so set_wm_state calls are few (Bug#7013).
818 (x_handle_net_wm_state): Move code to get_current_vm_state and
819 call that function.
820
65c92e31 8212010-09-11 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
822
823 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
824
a552b35a
KH
8252010-09-08 Kenichi Handa <handa@m17n.org>
826
827 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
828 we may use designation or locking-shift.
829
396475b7
KH
8302010-09-07 Kenichi Handa <handa@m17n.org>
831
832 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
833 sequence when the source is multibyte.
834
d419e1d9
KH
8352010-08-31 Kenichi Handa <handa@m17n.org>
836
837 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
838 characters.
839
840 * term.c (encode_terminal_code): Fix the previous change.
65b3d997
A
841 (produce_glyphs): Don't set it->char_to_display here.
842 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
843 (produce_special_glyphs): Set temp_it.char_to_display before
844 calling produce_glyphs.
845
846 * xdisp.c (get_next_display_element): Set it->char_to_display
847 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
848 characters.
849 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
850 calling PRODUCE_GLYPHS.
851 (append_space_for_newline): Save and store it->char_to_display.
852 Set it->char_to_display before calling PRODUCE_GLYPHS.
853 (extend_face_to_end_of_line): Set it->char_to_display before
854 calling PRODUCE_GLYPHS.
855 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
856 character to its byte value.
857 (get_char_glyph_code): New function.
858 (produce_stretch_glyph): Set it2.char_to_display too before
859 calling x_produce_glyphs.
860 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
861 non-ASCII characters. Don't set it->char_to_display here.
862 Don't handle unibyte-display-via-language-environment here. For a
c0943d3d 863 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 864
769ae9e1
KH
8652010-08-29 Kenichi Handa <handa@m17n.org>
866
867 * term.c (encode_terminal_code): Encode byte chars to the
868 correspnding bytes.
869
b72e0717
AS
8702010-08-17 Andreas Schwab <schwab@linux-m68k.org>
871
872 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
873 instead of SAFE_ALLOCA.
874
3a7a9129
CY
8752010-08-17 Chong Yidong <cyd@stupidchicken.com>
876
877 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
878 (Bug#6214).
879
983b8302
J
8802010-08-14 Jan Djärv <jan.h.d@swipnet.se>
881
882 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
883
7d1b9df3
J
8842010-08-13 Jan Djärv <jan.h.d@swipnet.se>
885
886 * doc.c (Fsnarf_documentation): Initialize skip_file before
887 build-files test.
888
2294b255
PG
8892010-08-09 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
890
65b3d997
A
891 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
892 New definitions.
2294b255
PG
893 (HAVE_TERMIO): Remove.
894
7a84eee5
KH
8952010-08-06 Kenichi Handa <handa@m17n.org>
896
897 * charset.c: Include <stdlib.h>
898 (struct charset_sort_data): New struct.
899 (charset_compare): New function.
c0943d3d 900 (Fsort_charsets): New function.
7a84eee5
KH
901 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
902
903 * coding.c (decode_coding_iso_2022): Fix checking of dimension
904 number in CTEXT extended segment.
905
f5f6c0e0
JB
9062010-08-01 Juanma Barranquero <lekktu@gmail.com>
907
908 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
909 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
910
b756c005
JB
9112010-07-30 Juanma Barranquero <lekktu@gmail.com>
912
913 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
914 (Fhash_table_size): Fix typos in docstrings.
915 (Fmake_hash_table): Doc fix.
916
b4f588fa
JB
9172010-07-28 Juanma Barranquero <lekktu@gmail.com>
918
919 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
920 Doc fix (bug#5625).
921
9f8c08a7
KB
9222010-07-27 Ken Brown <kbrown@cornell.edu>
923
924 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
925 the MSDOS definition.
926
a2a0d36b
CS
9272010-07-25 Christoph Scholtes <cschol2112@gmail.com>
928
929 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
930
a77cfeaf
CS
9312010-07-22 Christoph Scholtes <cschol2112@gmail.com>
932
933 * window.c (Fwindow_height): Doc fix (bug#6518).
934
14fb5704
JB
9352010-07-21 Juanma Barranquero <lekktu@gmail.com>
936
937 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
938
499322ce
J
9392010-07-17 Jan Djärv <jan.h.d@swipnet.se>
940
941 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
942 is related to the menu bar (Bug#6499).
943
b78f9767
J
9442010-07-14 Jan Djärv <jan.h.d@swipnet.se>
945
946 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
947
948 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
949
950 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
951 i.e. don't put back ButtonRelease (Bug#6608).
952
953 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
954 instead of Window. Call xg_event_is_for_menubar when
955 USE_GTK (Bug#6499).
956
957 * gtkutil.h (xg_event_is_for_menubar): Declare.
958
959 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
960
1f60c16a
EZ
9612010-07-14 Eli Zaretskii <eliz@gnu.org>
962
963 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
964 when it's the same as the old foreground. (Bug#6609)
965
7c33a057
CY
9662010-07-10 Chong Yidong <cyd@stupidchicken.com>
967
968 * xfaces.c (realize_face): Garbage the frame if a face is removed
969 (Bug#6593).
970
9d70a3fc
AS
9712010-07-05 Andreas Schwab <schwab@linux-m68k.org>
972
973 * keyboard.c: Remove duplicate <setjmp.h>.
974 (read_key_sequence): Remove volatile qualifiers.
975
5a874e95
YM
9762010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
977
978 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
979 (struct glyph_row): New members left_fringe_offset and
980 right_fringe_offset.
981
982 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
983 specially.
984 * w32term.c (w32_draw_fringe_bitmap): Likewise.
985 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
986
987 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
b762841f 988 Take account of bitmap offset.
5a874e95
YM
989 (draw_window_fringes): Take account of window vscroll.
990 (update_window_fringes): Likewise. Extend top-aligned top indicator
991 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
992 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
993 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
994
0682186e
JB
9952010-07-04 Juanma Barranquero <lekktu@gmail.com>
996
997 * w32fns.c (Qtooltip): Declare.
998 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
999
ad3e6f44
J
10002010-07-03 Jan Djärv <jan.h.d@swipnet.se>
1001
1002 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1003 grab on just Press (Bug#6499).
1004
54ee7410
CY
10052010-07-02 Chong Yidong <cyd@stupidchicken.com>
1006
1007 * frame.c (Qtooltip): New var.
1008 (delete_frame): Use it. Fix faulty if statement. Don't update
1009 mode line for tooltip frames. Suggested by Martin Rudalics.
1010
1011 * xfns.c (x_create_tip_frame):
1012 * w32fns.c (x_create_tip_frame): Use it.
1013
3d8416fc
NA
10142010-06-30 Naohiro Aota <naota@elisp.net> (tiny change)
1015
1016 * xftfont.c (xftfont_open): Check font width one by one also when
1017 spacing is dual.
1018
1019 * ftfont.c (ftfont_open): Ditto.
1020
b1feb9b4
AS
10212010-06-26 Andreas Schwab <schwab@linux-m68k.org>
1022
1023 * alloc.c (Fmake_byte_code): Don't access undefined argument
1024 (Bug#6517).
1025
c7dd9743
CY
10262010-06-25 Chong Yidong <cyd@stupidchicken.com>
1027
1028 * xdisp.c (next_element_from_image): Ensure that after-strings are
1029 read the next time we hit handle_stop (Bug#1336).
1030
5721b4ed
AS
10312010-06-23 Andreas Schwab <schwab@linux-m68k.org>
1032
1033 * lread.c (read1): Signal error if #s is not followed by paren.
1034
277c5f18
CY
10352010-06-19 Chong Yidong <cyd@stupidchicken.com>
1036
52ab9bb2
CY
1037 * image.c (free_image): Mark frame as garbaged (Bug#6426).
1038
277c5f18
CY
1039 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
1040
6fda6a0c
GM
10412010-06-15 Glenn Morris <rgm@gnu.org>
1042
1043 * editfns.c (Fbyte_to_string): Pacify compiler.
1044
e454a4a3
SM
10452010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
1046
1047 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
1048 Check `object's type before accessing its guts.
1049
657d4c0b
AS
10502010-06-08 Andreas Schwab <schwab@linux-m68k.org>
1051
1052 * minibuf.c (Fall_completions): Add more checks.
1053
9b27fd9f
JB
10542010-06-08 Juanma Barranquero <lekktu@gmail.com>
1055
1056 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
1057
0eb7675e
AS
10582010-06-03 Andreas Schwab <schwab@linux-m68k.org>
1059
1060 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 1061 address. (Bug#6346)
0eb7675e 1062
78edd3b7
JB
10632010-06-03 Juanma Barranquero <lekktu@gmail.com>
1064
1065 * ccl.c (Fccl_program_p): Fix typo in docstring.
1066
1ab8293c
SM
10672010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
1068
1069 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
1070 of bug#6305).
1071
5ca3929b
CY
10722010-05-27 Chong Yidong <cyd@stupidchicken.com>
1073
1074 * xdisp.c (redisplay_window): After redisplay, check if point is
1075 still valid before setting it (Bug#6177).
1076
f5b416d2 10772010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
1078
1079 * s/netbsd.h: If terminfo is found, use it in preference to
1080 termcap. (Bug#6190) [Backport from trunk]
1081
aeb77d46
CY
10822010-05-20 Kevin Ryde <user42@zip.com.au>
1083
1084 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
1085 (Voverriding_terminal_local_map, Vsystem_key_alist)
1086 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
1087
c3bb441d
SM
10882010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
1089
1090 * editfns.c (Fbyte_to_string): New function.
1091
754790b6
CY
10922010-05-18 Chong Yidong <cyd@stupidchicken.com>
1093
1094 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
1095 prevent stack overflow if number of arguments is too large
1096 (Bug#6214).
1097
c8670ded
EZ
10982010-05-11 Eli Zaretskii <eliz@gnu.org>
1099
1100 * makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(SRC)/w32.h.
1101
1102 * w32fns.c: Include w32.h.
1103 (Fw32_shell_execute): Decode the error message before passing it
1104 to `error'. (Bug#6126)
1105
3ffd4615 11062010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
1107
1108 * ftfont.c: Fix incorrect parentheses of #if condition for
1109 definining M17N_FLT_USE_NEW_FEATURE.
1110
61a808e8
CY
11112010-05-07 Chong Yidong <cyd@stupidchicken.com>
1112
1113 * Version 23.2 released.
1114
5dcde606
AS
11152010-04-30 Andreas Schwab <schwab@linux-m68k.org>
1116
1117 * composite.c (autocmp_chars): Save point as marker before calling
1118 auto-composition-function (Bug#5984).
1119
1120 * lisp.h (restore_point_unwind): Add prototype.
1121
1122 * fileio.c (restore_point_unwind): Remove static attribute.
1123
c4170e32
KH
11242010-04-23 Kenichi Handa <handa@m17n.org>
1125
1126 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
1127 new feature of libotf and m17n-flt.
65b3d997
A
1128 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
1129 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
1130 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
1131 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
1132 that OUT is NULL. Use OTF_drive_gsub_with_log and
1133 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
1134 OTF_drive_gpos.
1135 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
65b3d997
A
1136 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
1137 Setup mflt_enable_new_feature and mflt_try_otf.
c4170e32 1138
e42cd1a7
JB
11392010-04-19 Juanma Barranquero <lekktu@gmail.com>
1140
1141 * dired.c (Ffile_attributes): Fix typo in docstring.
1142
79353a53
AR
11432010-04-13 Adrian Robert <Adrian.B.Robert@gmail.com>
1144
1145 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1146 NSInteger (Bug#5811).
1147
658b9b93
YM
11482010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1149
1150 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1151 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1152
16009a0e
YM
11532010-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1154
1155 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1156
f016f225
JD
11572010-04-07 Jan Djärv <jan.h.d@swipnet.se>
1158
1159 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
1160 FRAME_LINE_TO_PIXEL_Y.
1161
1162 * xterm.c (x_set_window_size_1): Don't add border_width/height to
1163 pixelwidth/height.
1164
84257d93
CY
11652010-04-05 Chong Yidong <cyd@stupidchicken.com>
1166
1167 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1168 terminal frames (Bug#5837).
1169
95b1abcf
CY
11702010-03-31 Chong Yidong <cyd@stupidchicken.com>
1171
1172 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
1173 * nsterm.h: Fix prototype.
1174
4a217bed
EZ
11752010-03-31 Eli Zaretskii <eliz@gnu.org>
1176
1177 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
1178 in this function. (Bug#5703)
1179
4f103e04
CY
11802010-03-31 Chong Yidong <cyd@stupidchicken.com>
1181
1182 * nsterm.h: Fix last change.
1183
a6d676d9
CY
11842010-03-30 Bernhard Herzog <bh@intevation.de> (tiny change)
1185
1186 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
1187
67fee863
JD
11882010-03-30 Jan Djärv <jan.h.d@swipnet.se>
1189
1190 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
1191 invisible (Bug#5766).
1192
9ae6e189
CY
11932010-03-29 Adrian Robert <adrian.b.robert@gmail.com>
1194
1195 * xdisp.c (x_consider_frame_title, update_window_cursor): Remove
1196 HAVE_NS conditionals.
194d44e7 1197 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
1198
1199 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
1200 filename for the title.
1201 (ns_set_doc_edited): Do nothing if the selected window is a
1202 minibuffer window.
1203
1204 * nsterm.h: Add prototypes for ns_set_name_as_filename and
1205 ns_set_doc_edited.
1206
1207 * nsterm.m: Remove unneeded prototype.
1208
25c72475
GM
12092010-03-28 Glenn Morris <rgm@gnu.org>
1210
1211 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
1212 in the DOC file. (Bug#5336)
1213
f79a01db
CY
12142010-03-24 Chong Yidong <cyd@stupidchicken.com>
1215
1216 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
1217
93318cbd
JD
12182010-03-20 Jan Djärv <jan.h.d@swipnet.se>
1219
1220 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
1221
1222 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
1223
1224 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
1225
ad13a3ee
YM
12262010-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1227
1228 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
1229 XLoadQueryFont.
1230
fbdc1721
KH
12312010-03-16 Kenichi Handa <handa@m17n.org>
1232
1233 * coding.c (decode_coding_ccl): Fix previous change for the
1234 multibyte case.
fb608df3
KH
1235 (encode_coding_ccl): Don't setup ccl program here. Fix for the
1236 case that the output buffer is fullfilled.
1237 (encode_coding): Setup ccl program here.
fbdc1721 1238
35cd7cd6
CY
12392010-03-15 Andreas Politz <politza@fh-trier.de> (tiny change)
1240
1241 * editfns.c (Fformat): Account for string precision when computing
1242 field width (Bug#5710).
1243
618db430
SM
12442010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
1245
c0335e02
SM
1246 Make it possible to C-g in a tight bytecode loop again (bug#5680).
1247 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
1248 (QUIT): Use it to consolidate code and remove redundancy.
1249 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
1250
254c06a8
SM
1251 * regex.c (regex_compile): Setup gl_state as well.
1252
618db430
SM
1253 * syntax.c (skip_chars): Setup gl_state (bug#3823).
1254 (in_classes): Use CONSP before XCAR/XCDR.
1255
233f0c9f
CY
12562010-03-03 Chong Yidong <cyd@stupidchicken.com>
1257
1258 * keymap.c (Fwhere_is_internal): Use Fequal to compare
1259 definitions, so that keyboard macros are correctly handled
1260 (Bug#5481).
1261
75f80e63
EZ
12622010-03-02 Eli Zaretskii <eliz@gnu.org>
1263
1264 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
1265 text that could be relocated inside the call to emacs_mule_char.
1266 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
1267 (CODING_DECODE_CHAR): Add a comment describing its purpose.
1268
dcfb9bc4
KH
12692010-03-02 Kenichi Handa <handa@m17n.org>
1270
fc9a17bc
KH
1271 * character.c (parse_str_as_multibyte): Fix handling of the
1272 multibyte form of raw-bytes.
1273 (str_as_multibyte): Likewise.
1274
dcfb9bc4
KH
1275 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
1276 form of raw-bytes.
1277
412c01b6
CY
12782010-02-28 Chong Yidong <cyd@stupidchicken.com>
1279
1280 * charset.c (load_charset_map_from_file)
1281 (load_charset_map_from_vector): Zero out allocated
1282 charset_map_entries before using them.
1283
df7e1ea0
AS
12842010-02-27 Andreas Schwab <schwab@linux-m68k.org>
1285
1286 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
1287
fe69a722
CY
12882010-02-27 Chong Yidong <cyd@stupidchicken.com>
1289
4ed28cf4
CY
1290 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
1291 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 1292
7379cfce
KH
12932010-02-26 Kenichi Handa <handa@m17n.org>
1294
f88cc4d6
KH
1295 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
1296
7379cfce
KH
1297 * xdisp.c (reseat_to_string): Fix previous change.
1298
cf2fdcfb
CY
12992010-02-26 David Reitter <david.reitter@gmail.com>
1300
1301 * nsfont.m (nsfont_draw): ns_antialias_text should be a
1302 Lisp_Object (Bug#4736).
1303
cc6c7c75
KH
13042010-02-25 Kenichi Handa <handa@m17n.org>
1305
1306 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
1307
32e737d7
JD
13082010-02-24 Jan Djärv <jan.h.d@swipnet.se>
1309
1310 * xterm.c (XTflash): Move declarations before statements.
1311
1312 * gtkutil.c (xg_get_gdk_display): Remove (unused).
1313 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
1314 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
1315 (xg_create_tool_bar): Remove unused variables.
1316 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 1317 (xg_create_frame_widgets): Remove variable grav.
32e737d7 1318
676cae9f
CY
13192010-02-21 Chong Yidong <cyd@stupidchicken.com>
1320
1321 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
1322
886cc2b8
SM
13232010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1324
1325 * term.c (fatal): Add a final \n if needed (bug#5596).
1326
ddb2d8e2
CY
13272010-02-18 Chong Yidong <cyd@stupidchicken.com>
1328
1329 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
1330
2a4f8d3d
GM
13312010-02-18 Glenn Morris <rgm@gnu.org>
1332
1333 * callint.c (Finteractive): Doc fix.
1334
ebaf11b6
KH
13352010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
1336
886cc2b8
SM
1337 * coding.c (record_conversion_result):
1338 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
1339 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
1340 memory allocation error.
1341
d0396581
KH
13422010-02-17 Kenichi Handa <handa@m17n.org>
1343
886cc2b8
SM
1344 * coding.c (decode_coding_ccl): Don't setup ccl program here.
1345 Fix for the case that the output buffer is fullfilled.
d0396581
KH
1346 (decode_coding): Setup ccl program here. Keep looping when the
1347 decoder stopped because the output buffer is
1348 fullfilled (bug#5534).
1349
1350 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
1351
98599f74
JD
13522010-02-13 Jan Djärv <jan.h.d@swipnet.se>
1353
471e4f04 1354 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 1355 bug #5571.
886cc2b8 1356 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 1357 overdrawn.
98599f74 1358
182659ae
JD
13592010-02-10 Jan Djärv <jan.h.d@swipnet.se>
1360
1361 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
1362 doing_interact here.
1363 (ice_connection_closed): New function.
1364 (x_session_check_input, smc_die_CB, ice_io_error_handler)
1365 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
1366 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
1367 returns I/O error.
1368 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
1369 bug #5512.
1370
9be32c4e 13712010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
1372
1373 * nsfont.m (nsfont_open): The system's value for the font descent
1374 is negative, so round it down to avoid clipping.
1375
a2f3eb19
CY
13762010-02-06 Chong Yidong <cyd@stupidchicken.com>
1377
1378 * charset.c (load_charset_map_from_file)
1379 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 1380 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 1381
3088147c
CY
13822010-02-05 Chong Yidong <cyd@stupidchicken.com>
1383
1384 * charset.c (load_charset_map_from_file): Allocate large
1385 charset_map_entries structure on the heap rather than the stack.
1386 (Bug#5526).
1387
b57d9029
KH
13882010-01-31 Kenichi Handa <handa@m17n.org>
1389
1390 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 1391 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 1392
c67d885b
CY
13932010-01-31 Chong Yidong <cyd@stupidchicken.com>
1394
1395 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
1396 <deactivated@gmail.com> (Bug#3605).
1397
8fab2362
CY
13982010-01-31 David De La Harpe Golden <david@harpegolden.net>
1399
1400 * fileio.c (Frename_file): Correctly rename symlinks to
1401 directories (Bug#5496).
1402
cb2a62f2
CY
14032010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
1404
1405 * nsterm.m (ns_ring_bell): Handle visible bell like X.
1406
944c7a26
AS
14072010-01-30 Andreas Schwab <schwab@linux-m68k.org>
1408
1409 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
1410
c024ac08
CY
14112010-01-29 Chong Yidong <cyd@stupidchicken.com>
1412
1413 * frame.c (DEFAULT_ROWS): Change default to 35.
1414
1415 * xfns.c (x_default_font_parameter): Change default XFT font to
1416 monospace-10 (Bug#3643).
1417
af93af83
EZ
14182010-01-29 Eli Zaretskii <eliz@gnu.org>
1419
1420 * w32inevt.c (key_event): Remove unnecessary comparison of
1421 event->uChar.AsciiChar with 128.
1422
ca0eb708
CY
14232010-01-28 Chong Yidong <cyd@stupidchicken.com>
1424
b242dbfc
CY
1425 * fileio.c (Frename_file): Fix last change (Bug#5487).
1426
ca0eb708
CY
1427 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
1428
1429 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
1430
45d45af5
JD
14312010-01-28 Jan Djärv <jan.h.d@swipnet.se>
1432
1433 * xfns.c (Fx_create_frame): Remove window size matching code from
1434 2010-01-15.
a73f9c9d 1435 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 1436
7e233730
JR
14372010-01-27 Jason Rumney <jasonr@gnu.org>
1438
1439 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 1440 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 1441
86e893e3
KH
14422010-01-27 Kenichi Handa <handa@m17n.org>
1443
1444 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 1445 pattern string (Bug#4209).
86e893e3 1446
8719abec
CY
14472010-01-27 David De La Harpe Golden <david@harpegolden.net>
1448
1449 * fileio.c (Frename_file): Call copy-directory and
1450 delete-directory for directories, in order to handle cross-device
1451 renaming (Bug#3353).
1452
844794c8
JD
14532010-01-25 Jan Djärv <jan.h.d@swipnet.se>
1454
aa3e13b5 1455 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 1456 sizes 24 and 10. Bug #3643.
844794c8 1457
bd4b5750
SM
14582010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
1459
8dc1adf6 1460 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
1461 * keymap.c (shadow_lookup): Add `remap' arg.
1462 (describe_map, describe_vector): Update calls to shadow_lookup.
1463 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
1464 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
1465 perform remapping during shadow_lookup check of remapped_sequences.
1466
285d07e2
CY
14672010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
1468
1469 * image.c (png_load): Use png_sig_cmp instead of the obsolete
1470 png_check_sig, which has been removed in libpng 1.4.
1471
c6d09b8d
CY
14722010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1473
1474 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
1475 lacks this header file).
1476
3d782998
YM
14772010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1478
1479 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
1480 as in Emacs 22.
1481
2aff7c53
YM
14822010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1483
1484 * lisp.h (make_pure_string): String pointer arg now points to const.
1485
1486 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
1487 args now point to const.
1488
74327f7a
EZ
14892010-01-22 Eli Zaretskii <eliz@gnu.org>
1490
1491 * lread.c (Fload): Don't treat files without .elc extension as
1492 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
1493 them. (bug#5303)
1494
4d1e6632
KH
14952010-01-20 Kenichi Handa <handa@m17n.org>
1496
1497 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
1498 treat the source as actual byte sequence.
1499
1fdede8f
AM
15002010-01-19 Alan Mackenzie <acm@muc.de>
1501
1502 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 1503 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
1504 `signal_after_change_p' to `coherent_change_p', and make the
1505 invocation of `modify_region' conditional on it.
1506
67477f30
JD
15072010-01-19 Jan Djärv <jan.h.d@swipnet.se>
1508
1509 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
1510 for debug purpose.
1511 (syms_of_xsettings): Declare xft-settings.
1512
244b023e
CY
15132010-01-18 Chong Yidong <cyd@stupidchicken.com>
1514
1515 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
1516
617364fe
CY
15172010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1518
1519 * xterm.c (event_handler_gdk): Block input (Bug#5037).
1520
4fe22cdf
CY
15212010-01-16 Chong Yidong <cyd@stupidchicken.com>
1522
1523 * emacs.c (standard_args): Adjust arg priorities to reflect how
1524 they are processed in startup.el.
1525
e118d2be
AS
15262010-01-16 Andreas Schwab <schwab@linux-m68k.org>
1527
1528 * Makefile.in (lisp, shortlisp): Update.
1529
523ae620
SM
15302010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1531
1532 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
1533 code, link the new kboard into all_kboard before running Lisp code,
1534 and protect the new terminal with GCPRO (Bug#5365).
1535 (x_term_init): Remove unused var `atom'.
1536 (x_delete_display, x_delete_terminal): Remove unused var `i'.
1537
f0d13888
JD
15382010-01-15 Jan Djärv <jan.h.d@swipnet.se>
1539
1540 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
1541 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
1542 to find out usable size of the desktop. Don't make frames larger than
ac146f82 1543 this. Bug #3643.
f0d13888 1544
cc320f07
KH
15452010-01-15 Kenichi Handa <handa@m17n.org>
1546
1547 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
1548
7ffdf101
CY
15492010-01-15 Chong Yidong <cyd@stupidchicken.com>
1550
1551 * nsterm.m (Qnone): Define.
1552
1553 * nsfns.m (Qnone): Move definition to nsterm.m.
1554
d12bd917
KH
15552010-01-14 Kenichi Handa <handa@m17n.org>
1556
1557 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
1558 systems.
1559
d9a7c140
KH
15602010-01-14 Kenichi Handa <handa@m17n.org>
1561
1562 Make auto-composition work on all buffers even if they are
1563 fundamental mode.
1564
1565 * composite.c (Vauto_composition_mode): New variable.
1566 (composition_compute_stop_pos): Check Vauto_composition_mode
1567 instead of Vauto_composition_function.
1568 (composition_adjust_point, Ffind_composition_internal): Likewise.
1569 (syms_of_composite): Declare Lisp variable
1570 "auto-composition-mode" here.
1571
63286bb2
CY
15722010-01-13 Chong Yidong <cyd@stupidchicken.com>
1573
1574 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
1575 during call to vendor-specific-keysyms (Bug#5365).
1576
c2623ee7
YM
15772010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1578
1579 * keyboard.c (input_available_signal) [SYNC_INPUT]:
1580 Call SIGNAL_THREAD_CHECK (Bug#5333).
1581
1582 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
1583 Call SIGNAL_THREAD_CHECK.
1584
0b5397c2
SM
15852010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
1586
1587 Try to fix bug#5314. This is probably not the final word, tho.
1588 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
1589 recent-auto-save-p as a side-effect.
1590 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
1591 * buffer.c (Fkill_buffer, reset_buffer):
1592 * editfns.c (Fsubst_char_in_region):
1593 * fileio.c (Finsert_file_contents, Fdo_auto_save)
1594 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
1595
dc954cb2
KH
15962010-01-13 Kenichi Handa <handa@m17n.org>
1597
1598 Display buffer name, etc. in mode line by composing correctly.
1599
1600 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
1601 STRING is not nil.
0b5397c2 1602 (display_mode_element): Adjust for the change of
dc954cb2
KH
1603 decode_mode_spec and display_line.
1604 (decode_mode_spec): Change arg MULTIBYTE to STRING.
1605 (display_string): Handle the case that STRING is non-null and
1606 LISP_STRING is not nil.
1607
0b5397c2
SM
1608 * xterm.c (x_draw_composite_glyph_string_foreground):
1609 Pay attention to s->face->overstrike.
dc954cb2
KH
1610
1611 * composite.c (composition_reseat_it): Don't check PT if STRING is
1612 non nil.
1613
4a00eaca
YM
16142010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1615
1616 * keyboard.c (read_char): Don't apply previous change when current
1617 buffer is unchanged by command execution.
1618
60abb287
JD
16192010-01-12 Jan Djärv <jan.h.d@swipnet.se>
1620
1621 * keyboard.c (read_char): Return after executing from special map.
1622
893db5bc
GM
16232010-01-12 Glenn Morris <rgm@gnu.org>
1624
1625 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
1626 bug-gnu-emacs rather than emacs-pretest-bug.
1627
4d03ece0
CY
16282010-01-11 Chong Yidong <cyd@stupidchicken.com>
1629
1630 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
1631 initializing the Lisp variables that depend on them.
1632
1df47e38
YM
16332010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1634
1635 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
1636 Clear areas that will not be updated after change of menu bar lines.
1637 Clear the menu bar window's current matrix when the window gets empty.
1638
2f1c6384
CY
16392010-01-09 Chong Yidong <cyd@stupidchicken.com>
1640
e398c61c
CY
1641 * intervals.h, textprop.c (extend_property_ranges): Return value
1642 and args changed. Discard properties that begin at or after the
1643 new end (Bug#5306).
1644
1645 * editfns.c (Fformat): Caller changed.
1646
e5a29a10
CY
1647 * nsterm.m (ns_set_default_prefs): Delete function.
1648 (syms_of_nsterm): Initialize ns_command_modifier,
1649 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
1650 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
1651
2f1c6384
CY
1652 * xdisp.c (pos_visible_p): Check for invisible text at the correct
1653 position (Bug#4040).
1654
d427a9fa
EZ
16552010-01-09 Eli Zaretskii <eliz@gnu.org>
1656
1657 * editfns.c (Ffloat_time): Doc fix.
1658
21b9df2f
JD
16592010-01-09 Jan Djärv <jan.h.d@swipnet.se>
1660
1661 * xfns.c (Fx_create_frame): Don't create frame larger than display
1662 by default bug#3643.
1663
4b00d3b1
YM
16642010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1665
1666 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1667 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1668 windows above internal border.
1669
1670 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1671 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1672 windows above internal border.
1673
1674 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1675 tool bar windows specially.
1676
1677 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1678
1679 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1680 specially.
1681 (XTflash): Take account of menu bar height.
1682
1683 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1684 specially.
1685
5075d853
JD
16862010-01-08 Jan Djärv <jan.h.d@swipnet.se>
1687
ac146f82 1688 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
1689 also be true before we can return early (bug #5339).
1690
474217c8
CY
16912010-01-06 David Reitter <david.reitter@gmail.com>
1692
1693 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1694 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1695 (Bug#3233).
1696
c0e6d47d
JD
16972010-01-06 Jan Djärv <jan.h.d@swipnet.se>
1698
d0cf45b7
JD
1699 * font.c (font_open_entity): Enable chache and call cached_font_ok
1700 for the driver if defined.
1701 (QCuser_spec): New symbol.
1702 (font_spec_from_name): Save name as user-spec.
1703 (font_load_for_lface): Keep user-spec instead of name.
1704 (font_open_by_name): Save name as user-spec.
1705 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 1706 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
1707
1708 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
1709 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1710 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1711
1712 * font.h (struct font_driver): Add cached_font_ok.
1713
c0e6d47d
JD
1714 * xterm.c (x_clear_frame): Queue draw for scroll bars.
1715
7c583cd8
JD
17162010-01-05 Jan Djärv <jan.h.d@swipnet.se>
1717
1718 * xterm.c (x_new_font): Move code for setting rows/cols before
1719 resizing ...
ac146f82 1720 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
1721
1722 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
1723 (xg_frame_resized, xg_frame_set_char_size):
1724 Call xg_clear_under_internal_border.
7c583cd8 1725 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 1726
03f77f0a
CY
17272010-01-05 Chong Yidong <cyd@stupidchicken.com>
1728
1729 * keyboard.c (read_key_sequence): Catch keyboard switch after
1730 making a new tty frame (Bug#5095).
1731
2a1ef5be
KH
17322010-01-05 Kenichi Handa <handa@m17n.org>
1733
1734 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1735
e3eb1dae
SM
17362010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1737
1738 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1739 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1740 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1741
777013f2
MA
17422010-01-03 Michael Albinus <michael.albinus@gmx.de>
1743
1744 * dbusbind.c (xd_add_watch): Improve debug message.
1745 (xd_remove_watch): Improve debug message. If DATA is the session
1746 bus, unset D-Bus session environment.
1747 (Fdbus_init_bus): Pass the bus as argument to
1748 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 1749
8932b1c2
CY
17502010-01-01 Chong Yidong <cyd@stupidchicken.com>
1751
87231e2c
CY
1752 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1753
4801c5fa
CY
1754 * lread.c (syms_of_lread): Make it clearer that these are the
1755 names of loaded files (Bug#5068).
1756
8932b1c2
CY
1757 * eval.c (run_hook_with_args): Handle the case where the global
1758 value has the obsolete single-function form (Bug#5026).
1759
11e3c684
CY
17602009-12-27 Chong Yidong <cyd@stupidchicken.com>
1761
1762 * minibuf.c (Fall_completions): Minor optimization.
1763
5b28ce35
EZ
17642009-12-26 Eli Zaretskii <eliz@gnu.org>
1765
5ce6e4f4
JB
1766 * .gdbinit (pgx): Fix display of composite glyphs.
1767 Display cmp.from and cmp.to as well.
1768 (pitx): Fix last change.
5b28ce35 1769
bcffff46
KH
17702009-12-25 Kenichi Handa <handa@m17n.org>
1771
1772 * composite.h (composition_adjust_point): Update prototype.
1773
1774 * composite.c (composition_reseat_it): Don't make a composition
1775 spanning over point.
1776 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1777 composable characters.
1778 (composition_adjust_point): New arg NEW_PT. Callers changed.
1779
1780 * keyboard.c (command_loop_1): Force redisplay if the last point
1781 was within a composition.
1782 (adjust_point_for_property): Don't adjust point for automatic
1783 composition when called after buffer modification.
1784
3f670e9a
EZ
17852009-12-19 Eli Zaretskii <eliz@gnu.org>
1786
5ce6e4f4
JB
1787 * .gdbinit (pitx): Don't use enum names, use their values.
1788 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
1789 (pgx): Don't use enum names, use their values.
1790 (pitmethod): New helper command.
1791 (pitx): Use it to display iteration method.
1792 (pgrowit): New command.
1793
ad903955
EZ
1794 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1795
3f670e9a
EZ
1796 Update dependencies in Makefile.in.
1797
1798 * Makefile.in (alloc.o): Depend on termhooks.h.
1799 (atimer.o): Depend on blockinput.h.
1800 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1801 and frame.h.
1802 (callint.o): Depend on systime.h, coding.h, and composite.h.
1803 (callproc.o): Depend on buffer.h.
1804 (casefiddle.o): Don't depend on charset.h.
1805 (casetab.o): Depend on character.h.
1806 (ccl.o): Depend on composite.h.
1807 (chartab.o): Depend on ccl.h.
1808 (cm.o): Depend on dispextern.h.
1809 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1810 (coding.o): Don't depend on $(INTERVALS_H).
1811 (composite.o): Don't depend on dispextern.h explicitly (it's in
1812 $(INTERVALS_H)). Depend on ccl.h.
1813 (data.o): Depend on systime.h, coding.h, composite.h,
1814 dispextern.h, font.h, and ccl.h.
1815 (dired.o): Depend on composite.h.
1816 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1817 composite.h (it's in $(INTERVALS_H)).
1818 (doc.o): Depend on systime.h, coding.h, and composite.h.
1819 (editfns.o): Don't depend explicitly on dispextern.h.
1820 (emacs.o): Depend on frame.h and coding.h.
1821 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1822 (fileio.o): Depend on frame.h and commands.h. Don't depend
1823 explicitly on dispextern.h.
1824 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1825 composite.h.
1826 (fns.o): Don't depend on termhooks.h.
1827 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1828 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1829 coding.h, $(INTERVALS_H), window.h, xterm.h.
1830 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1831 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1832 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1833 fontset.h, ccl.h, and ftfont.h.
1834 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1835 (gtkutil.o): Depend on dispextern.h and composite.h.
1836 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1837 termhooks.h, and ccl.h.
1838 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1839 (intervals.o): Depend on systime.h and coding.h.
1840 (keyboard.o): Depend on composite.h and coding.h.
1841 (keymap.o): Depend on coding.h and frame.h.
1842 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1843 (macros.o): Depend on systime.h, coding.h, and composite.h.
1844 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1845 and atimer.h.
1846 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1847 dispextern.h explicitly.
0b5397c2
SM
1848 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1849 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
1850 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1851 (regex.o): Don't depend on charset.h.
1852 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1853 (search.o): Don't depend explicitly on composite.h.
1854 (sound.o): Depend on atimer.h and systime.h.
1855 (syntax.o): Don't depend explicitly on composite.h.
1856 (sysdep.o): Depend on coding.h and composite.h.
1857 (term.o): Depend on xterm.h and buffer.h.
1858 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1859 (textprop.o): Don't depend on dispextern.h explicitly.
1860 (undo.o): Depend on dispextern.h.
1861 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1862 dispextern.h and composite.h explicitly.
1863 (xdisp.o): Depend on ccl.h.
1864 (xfaces.o): Depend on coding.h and ccl.h.
1865 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1866 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1867 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1868 ftfont.h.
1869 (xgselect.o): New dependency.
1870 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1871 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1872 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1873 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1874 (xsmfns.o): Depend on frame.h and dispextern.h.
1875 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1876 sysselect.h.
1877
7a6f7fea
AS
18782009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1879
1880 * font.c (Fclear_font_cache): Pass correct cache argument to
1881 font_clear_cache.
1882
f4c21026
AS
18832009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1884
1885 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1886 twice.
1887
f7ab0997
CY
18882009-12-15 Chong Yidong <cyd@stupidchicken.com>
1889
1890 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1891 calling file-remote-p. Reported by Jim Meyering.
1892
fa8e045a
MA
18932009-12-15 Michael Albinus <michael.albinus@gmx.de>
1894
1895 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 1896 avoid compiler warnings. (Bug #5217)
fa8e045a 1897
a63dba42
KH
18982009-12-14 Kenichi Handa <handa@m17n.org>
1899
1900 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1901 in 8-bit encoding.
1902
5ce6e4f4 19032009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
1904
1905 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1906 tooltip windows.
1907
223e5fc6
JD
19082009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1909
36acb2a7
JD
1910 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1911 Xatom_net_window_type.
1912
1913 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1914 Xatom_net_window_type.
1915
b8f00677
JD
1916 * xterm.c (my_log_handler): New function.
1917 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 1918 so we can filter out buggy messages. (Bug #5120).
b8f00677 1919
e5f0bc9a
JD
1920 * xterm.c (xg_scroll_callback): Parameter list changed,
1921 use parameter GtkScrollType to determine scroll/line/page.
1922 Only allow dragging if a button < 4 is grabbed (bug #5177).
1923 (xg_end_scroll_callback): New function.
1924 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1925 xg_create_scroll_bar.
1926
1927 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1928 (scroll_end_callback): Remove.
1929 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1930 button-release-event. Replace value-changed event with change-value,
1931 bug #5177,
1932 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1933 bug #5177.
1934
1935 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1936 (xg_create_scroll_bar): Add GCallback end_callback.
1937
223e5fc6
JD
1938 * xftfont.c (QClcdfilter): New variable.
1939 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1940 (syms_of_xftfont): Initialize QClcdfilter.
1941
3c055b77
JD
19422009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1943
1944 * xsettings.c (struct xsettings): Add member seen.
1945 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 1946 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
1947 (apply_xft_settings): Only update Xft settings with what member seen
1948 indicates as new.
1949
05fe33ff
EZ
19502009-12-12 Eli Zaretskii <eliz@gnu.org>
1951
1952 * dispextern.h (struct text_pos): Use EMACS_INT;
1953 (struct glyph): Use EMACS_INT for charpos.
1954 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1955 region_beg_charpos, region_end_charpos,
1956 redisplay_end_trigger_charpos, and also for
1957 iterator_stack_entry.end_charpos and
1958 iterator_stack_entry.stop_charpos.
1959
e8d7886a
JD
19602009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1961
5ce6e4f4 1962 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
1963 (xg_create_scroll_bar): Call scroll_end_callback on button release
1964 event (bug #5177).
1965 (xg_event_is_for_scrollbar): != replaced with ==.
1966
d0db2ec8
KH
19672009-12-12 Kenichi Handa <handa@m17n.org>
1968
1969 * ftfont.c (struct ftfont_info): New member matrix.
1970 (ftfont_open): Setup xftfont_info->matrix.
1971 (MFLTFontFT): New member matrix.
1972 (FLOOR, CEIL, ROUND): New macros.
1973 (ftfont_get_metrics): Handle matrix transformation.
1974 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1975
1976 * xftfont.c (struct xftfont_info): New member matrix.
1977 (xftfont_open): Setup xftfont_info->matrix.
1978
19792009-12-10 Kenichi Handa <handa@m17n.org>
1980
1981 * xdisp.c (append_space_for_newline): Consider face-remapping.
1982
2cc7b62f
AS
19832009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1984
b87dd913
AS
1985 * xsettings.c: Include "keyboard.h".
1986
eba5eb94
AS
1987 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1988
2cc7b62f
AS
1989 Fix implicit function declarations.
1990 * cmds.c: Include "frame.h".
1991 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1992 * frame.h: Move declaration of delete_frame outside of
1993 HAVE_WINDOW_SYSTEM.
1994
a4ef73c8
CY
19952009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1996
1997 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1998
1999 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
2000 GTK builds.
2001
944a300c
AS
20022009-12-07 Andreas Schwab <schwab@linux-m68k.org>
2003
2004 * unexelf.c (unexec): Don't search for .data twice.
2005
022eef62
CY
20062009-12-05 Chong Yidong <cyd@stupidchicken.com>
2007
426ac949
CY
2008 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
2009 if push failed.
2010 (handle_line_prefix): Set avoid_cursor_p here. Check return value
2011 of push_display_prop (Bug#5000).
2012
022eef62
CY
2013 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
2014 value of font_list_entities (Bug#5085).
2015
be95bee9
JB
20162009-12-04 Juanma Barranquero <lekktu@gmail.com>
2017
2018 Fix `string-to-number' to deal consistently with integers and floats.
2019 * lread.c (isfloat_string): New argument ignore_trailing to accept all
2020 trailing characters, not just whitespace.
2021 (read1): Pass new arg 0 to keep old behavior.
2022 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
2023 trailing chars, as it is already done for integers. Doc fixes.
2024 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
2025
24c2d7ce
EZ
20262009-12-04 Eli Zaretskii <eliz@gnu.org>
2027
0b5397c2
SM
2028 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
2029 Delete unused enumeration value.
24c2d7ce 2030
7e694795
EZ
20312009-12-03 Eli Zaretskii <eliz@gnu.org>
2032
2033 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
2034
84b31826
SM
20352009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
2036
2037 * process.c (Fmake_network_process): Fix up the tests for
2038 "connectionless socket", so they DTRT for seqpacket sockets as well.
2039
f00c449b
SM
20402009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
2041
2042 * process.c (Qseqpacket): New symbol.
2043 (HAVE_SEQPACKET): New macro.
2044 (Fmake_network_process): Accept new :type `seqpacket'.
2045 (init_process): Add `seqpacket' feature when applicable.
2046 (syms_of_process): Initialize Qseqpacket.
2047
8096a0ff
YM
20482009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2049
2050 * font.c (font_load_for_lface, font_open_by_name): Don't store name
2051 if entity is Qnil.
2052
3e0de07f
SM
20532009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
2054
2055 * print.c (print_preprocess): Preprocess the key_and_value table of
2056 hashtables, even tho they're "hidden" (bug#5082).
2057
abeafb2a
JD
20582009-11-29 Jan Djärv <jan.h.d@swipnet.se>
2059
2060 * frame.c (frame_make_pointer_invisible)
2061 (frame_make_pointer_visible): Declare f before statements.
2062
4bf47195
EZ
20632009-11-28 Eli Zaretskii <eliz@gnu.org>
2064
2065 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
2066 omitted dependencies on lisp.h.
2067
c525b3f2
JD
20682009-11-27 Jan Djärv <jan.h.d@swipnet.se>
2069
ece2d4ed
JD
2070 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
2071 is NULL.
2072
2073 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
2074
2075 * frame.c (frame_make_pointer_invisible)
3e0de07f 2076 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
2077 frame.
2078
c525b3f2
JD
2079 * search.c (simple_search): Remove warning by making *p const.
2080
2f00e299
DN
20812009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
2082
2083 * xdisp.c (power_letter): Remove duplicate const.
2084
084b049b
JD
20852009-11-25 Jan Djärv <jan.h.d@swipnet.se>
2086
a1fadc6f
JD
2087 * term.c (delete_tty): Remove check for last terminal (bug#4970).
2088
5ce6e4f4 2089 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
2090 defaults (bug #5025).
2091
28259cac
SM
20922009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
2093
2094 * insdel.c (adjust_markers_for_delete): Move it in the
2095 right direction! (bug#4803)
2096
e8e14166
YM
20972009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2098
2099 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
2100
2101 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
2102
86677b58
GM
21032009-11-24 Glenn Morris <rgm@gnu.org>
2104
2105 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
2106
581e51e8
JD
21072009-11-23 Jan Djärv <jan.h.d@swipnet.se>
2108
cfc86c7a
JD
2109 * Makefile.in: Must create deps for ecrt0.o in its rule.
2110
581e51e8
JD
2111 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
2112 because that is what Gtk+ font dialog understands.
2113
2114 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
2115 of Fcopy_sequence.
2116 (font_open_by_name): Put name given into QCname for font-object returned.
2117
2118 * frame.c (x_set_font): Save original font name as frame parameter
2119 font-parameter.
2120
2121 * xsettings.c (set_default_xft_settings): New function.
2122 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
2123 is found.
2124
8b264ecb
AS
21252009-11-22 Andreas Schwab <schwab@linux-m68k.org>
2126
2127 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
2128 searching backwards through multibyte buffer.
2129
872870b2
JD
21302009-11-21 Jan Djärv <jan.h.d@swipnet.se>
2131
2132 * xterm.c: #include xgselect.h.
2133 (x_initialize): Call xgselect_initialize.
2134
2135 * xsettings.c (something_changedCB): C++ comments => C comments.
2136 (init_gconf): Do not deal with any GLib file descriptors, xg_select
2137 does that now.
2138
2139 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
2140 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
2141 (scroll_bar_button_cb): Remove.
5ce6e4f4 2142 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
2143 event.
2144 (xg_create_scroll_bar): Don't bind button-press-event and
2145 button-release-event.
2146
2147 * process.c: Include xgselect.h if defined (USE_GTK) ||
2148 defined (HAVE_GCONF).
2149 (wait_reading_process_output): Call xg_select for the same condition.
2150
2151 * xgselect.c (xg_select): New function to better integrate with
2152 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
2153
2154 * xgselect.h: New file, declare xg_select, xgselect_initialize.
2155
2156 * Makefile.in (XOBJ): Add xgselect.o.
2157
62a6e103
AS
21582009-11-21 Andreas Schwab <schwab@linux-m68k.org>
2159
0b5397c2
SM
2160 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
2161 Remove ignored second argument. All callers changed.
62a6e103
AS
2162 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
2163 (RE_STRING_CHAR_AND_LENGTH): Likewise.
2164 * xdisp.c (string_char_and_length): Likewise.
2165
b0ca0f33
DN
21662009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
2167
2168 * xterm.c (x_new_font):
2169 * print.c (print_object):
2170 * cmds.c (Fself_insert_command): Move declarations before statements.
2171
dd5a6279
CY
21722009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
2173
2174 * s/cygwin.h: Remove unneeded linker flags.
2175
4a8e097d
JD
21762009-11-20 Jan Djärv <jan.h.d@swipnet.se>
2177
0d1d0d26
JD
2178 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
2179
2180 * xsettings.h: Declare xsettings_get_system_font.
2181
2182 * xsettings.c (xsettings_get_system_font): New function.
2183 (init_gconf): No use initiating gconf unless we have Xft also.
2184 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
2185 HAVE_GCONF.
2186
4a8e097d
JD
2187 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
2188 add a blank entry so it doesn't collapse into nothing.
2189
8ab1650e
SM
21902009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2191
2192 * lread.c (Funintern): Comment out last change.
2193
82c602f0
RS
21942009-11-19 Richard Stallman <rms@gnu.org>
2195
2196 * lread.c (Funintern): Error if symbol is t or nil.
2197
87e32266
SM
21982009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2199
2200 * insdel.c (make_gap_larger): Don't make as many assumptions about the
2201 representation of Lisp integers.
2202 Reported by MJ Chan <mjchan.inbox@gmail.com>.
2203
1b9ac145
AS
22042009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2205
2206 * lisp.h: Remove declaration of Ffont_get_system_font.
2207 * xfns.c: Move include of "xsettings.h".
2208 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
2209
dfb3c4c6
JD
22102009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2211
87e32266
SM
2212 * xsettings.c (something_changedCB, Ffont_get_system_font):
2213 Check use_system_font.
dfb3c4c6
JD
2214 (syms_of_xsettings): DEFVAR font-use-system-font.
2215
9370c1d8
AS
22162009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2217
25fe851a
AS
2218 * xfns.c (x_default_font_parameter): Remove dead assignment.
2219
9370c1d8
AS
2220 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
2221
637fa988
JD
22222009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2223
87e32266 2224 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 2225 not have FC_LCD_*. #define them if not there.
a6eb20d8 2226
87e32266 2227 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 2228
637fa988
JD
2229 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
2230
2231 * xterm.c (handle_one_xevent): Call xft_settings_event for
2232 ClientMessage, PropertyNotify and DestroyNotify.
2233 (x_term_init): If we have XFT, get DPI from Xft.dpi.
2234 Call xsettings_initialize.
2235
2236 * xftfont.c (xftfont_fix_match): New function.
2237 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
2238 Call xftfont_fix_match after XftFontMatch.
2239
2240 * xfont.c (xfont_driver): Initialize all members.
2241
87e32266
SM
2242 * xfns.c (x_default_font_parameter):
2243 Try font from Ffont_get_system_font.
637fa988
JD
2244 Do not get font from x_default_parameter if we got one from
2245 Ffont_get_system_font.
87e32266 2246 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
2247
2248 * w32font.c (w32font_driver): Initialize all members.
2249
2250 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
2251
2252 * lisp.h: Declare syms_of_xsettings.
2253
87e32266
SM
2254 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
2255 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
2256
2257 * ftfont.c (ftfont_filter_properties): New function.
2258
2259 * frame.c (x_set_font): Remove unused variable lval.
2260
87e32266 2261 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
2262
2263 * font.c (font_put_extra): Don't return if val is nil, it means
2264 boolean option is off.
2265 (font_parse_fcname): Collect all extra properties in extra_props
2266 and call filter_properties for all drivers with extra_props and
2267 font as parameter.
87e32266
SM
2268 (font_open_entity): Do not use cache, it does not pick up new
2269 fontconfig settings like hinting.
637fa988
JD
2270 (font_load_for_lface): If spec had a name in it, store it in entity.
2271
a73f9c9d 2272 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
2273
2274 * config.in: HAVE_GCONF is new.
2275
2276 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
2277 xsettings.o is new.
2278
5a942932
KH
22792009-11-17 Kenichi Handa <handa@m17n.org>
2280
2281 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
2282 back to the default font in case that no suitable font is found.
2283
b7c7a4d1
SM
22842009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2285
2286 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
2287 Suggested by Chad Brown <yandros@mit.edu>.
2288 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
2289
072f1e39
JD
22902009-11-16 Jan Djärv <jan.h.d@swipnet.se>
2291
2292 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
2293
5d1e70a2
AS
22942009-11-14 Andreas Schwab <schwab@linux-m68k.org>
2295
87e32266 2296 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 2297
a53cfbe5
JD
22982009-11-14 Jan Djärv <jan.h.d@swipnet.se>
2299
473a99b7
JD
2300 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
2301 has a parent.
2302
a53cfbe5 2303 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 2304 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
2305
2306 * config.in: Generated (AUTO_DEPEND).
2307
f04bb9b2
MA
23082009-11-13 Michael Albinus <michael.albinus@gmx.de>
2309
b7c7a4d1 2310 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
2311 Vdbus_registered_functions_table, because it contains also
2312 properties. Fix docstring.
b7c7a4d1 2313 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 2314
8f11f7ec
SM
23152009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
2316
2317 * alloc.c (mark_object): Don't reprocess marked strings.
2318 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
2319 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
2320
8a605fe8
KH
23212009-11-13 Kenichi Handa <handa@m17n.org>
2322
8f11f7ec 2323 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
2324 semantics of Vword_combining_categories.
2325 (Vword_combining_categories): Describe the slight change of the
2326 semantics.
2327
241c4680
EZ
23282009-11-13 Eli Zaretskii <eliz@gnu.org>
2329
2330 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
2331
2332 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
2333
5d58e44c
SM
23342009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
2335
2336 * xdisp.c (syms_of_xdisp): Fix typo in last change.
2337
5e13f9d3
JB
23382009-11-12 Juanma Barranquero <lekktu@gmail.com>
2339
2340 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
2341
cf54c754
DR
23422009-11-11 David Reitter <david.reitter@gmail.com>
2343
2344 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
2345 variables to fix 2009-11-09 change.
2346
a4ada374
DN
23472009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
2348
91433552
DN
2349 * process.c (ifflag_def): Make flag_sym constant.
2350 (Fnetwork_interface_info): Use a constant pointer.
2351 (ifflag_table):
2352 * xfns.c (cursor_bits):
2353 * xdisp.c (power_letter):
2354 * termcap.c (speeds, esctab):
2355 * sysdep.c (baud_convert):
2356 * keyboard.c (lispy_accent_codes, modifier_names):
2357 * image.c (xbm_format, xpm_format, pbm_format, png_format)
2358 (jpeg_format, tiff_format, gif_format, svg_format)
2359 (interlace_start, interlace_increment, gs_format):
2360 * gtkutil.c (separator_names):
2361 * fringe.c (swap_nibble):
2362 * fns.c (base64_value_to_char, base64_char_to_value):
2363 * fileio.c (make_temp_name_tbl):
2364 * coding.c (suffixes): Make constant.
2365
f4265f6c
DN
2366 * frame.c (make_initial_frame):
2367 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
2368 build_string.
2369 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
2370
04420943
DN
2371 * s/freebsd.h:
2372 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
2373
0a5d24ae
DN
2374 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
2375 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
2376
a4ada374
DN
2377 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
2378 * xterm.c (syms_of_xterm):
2379 * xfaces.c (syms_of_xfaces):
2380 * xdisp.c (syms_of_xdisp):
2381 * lread.c (syms_of_lread):
2382 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
2383 build_string.
91433552 2384
a4ada374
DN
2385 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
2386
af98fc7f
SM
23872009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2388
8ab1650e 2389 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 2390
e90292a9
JD
23912009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2392
2393 * keyboard.h: Declare timer_check.
2394
2395 * keyboard.c (timer_check_2): New function that does what the old
2396 timer_check did.
2397 (timer_check): Call timer_check_2 until -1 or a non-zero time is
2398 returned, i.e. don't return -1 with timers pending.
2399
2400 * process.c: Remove extern declaration of timer_check.
2401
2402 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
2403 even if timer_check returned -1.
2404
af98fc7f
SM
2405 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
2406 xg_dialog_data.
e90292a9
JD
2407 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
2408 the event loop.
2409 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
2410 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
2411 Destroy the dialog after xg_dialog_run.
2412
045b83c0
SM
24132009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2414
2415 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
2416
1fb99a3a
JD
24172009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2418
2419 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
2420
04e452cb
JB
24212009-11-09 Juanma Barranquero <lekktu@gmail.com>
2422
2423 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
2424
ef7417fd
SM
24252009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
2426
2427 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
2428 w32menu.c, and nsmenu.m.
2429 Simplify the obsolete case where position is nil.
2430 (cleanup_popup_menu): New function, moved from nsmenu.m.
2431 (struct skp): Remove slot `notreal'.
2432 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
2433 adjust callers.
2434 (single_menu_item): Adjust call to parse_menu_item.
2435 (syms_of_menu): Defsubr x-popup-menu.
2436 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
2437 (keymap_panes): Don't export any more.
2438 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
2439 (xmenu_show): Declare.
2440 * keyboard.c (parse_menu_item): Remove arg `notreal'.
2441 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
2442 * keyboard.h (parse_menu_item): Update declaration.
2443 * xmenu.c (Fx_popup_menu): Remove.
2444 (syms_of_xmenu): Don't defsubr x-popup-menu.
2445 * w32menu.c (Fx_popup_menu): Remove.
2446 (syms_of_w32menu): Don't defsubr x-popup-menu.
2447 * nsmenu.m (cleanup_popup_menu): Remove.
2448 (ns_menu_show): Rename from ns_popup_menu and remove all the code
2449 moved to menu.c's Fx_popup_menu.
2450 (Fx_popup_menu): Remove.
2451 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
2452 menu_items (it's done in menu.c already).
2453
424d6179
SM
24542009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
2455
2456 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
2457 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
2458
c0df13a6 24592009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
2460
2461 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 2462 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
2463 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
2464 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
2465
2de9f71c
SM
24662009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2467
2468 Let integers use up 2 tags to give them one extra bit and thus double
2469 their range.
2470 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
2471 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
2472 New macros.
2473 (enum Lisp_Type): Use them. Give explicit values.
2474 (Lisp_Type_Limit): Remove.
2475 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
2476 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
2477 Pay attention to USE_2_TAGS_FOR_INTS.
2478 (INTEGERP): Use LISP_INT_TAG_P.
2479 * fns.c (internal_equal): Simplify the default case.
2480 (sxhash): Use case_Lisp_Int.
2481 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
2482 any more.
2483 (Ftype_of): Use case_Lisp_Int.
2484 (store_symval_forwarding): Take into account the fact that Ints can
2485 now have more than one tag.
2486 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
2487 buffer_slot_type_mismatch):
2488 * xfaces.c (face_attr_equal_p):
2489 * print.c (print_object):
2490 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
2491 Use case_Lisp_Int.
2492
323637a2
EZ
24932009-11-06 Eli Zaretskii <eliz@gnu.org>
2494
7ac65b38
EZ
2495 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
2496
323637a2
EZ
2497 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
2498 warning.
2499
e511451f
JD
25002009-11-06 Jan Djärv <jan.h.d@swipnet.se>
2501
2502 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
2503
2504 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
2505
2506 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
2507 ButtonPressRelease and MotionNotify (bug#4870).
2508
5e2327cf
DN
25092009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
2510
5adc433e
DN
2511 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
2512
d67b4f80
DN
2513 * xterm.c (syms_of_xterm):
2514 * xselect.c (syms_of_xselect):
2515 * xmenu.c (syms_of_xmenu):
2516 * xfns.c (syms_of_xfns):
2517 * xfaces.c (syms_of_xfaces):
2518 * xdisp.c (syms_of_xdisp):
2519 * window.c (syms_of_window):
2520 * w32fns.c (syms_of_w32fns):
2521 * undo.c (syms_of_undo):
2522 * textprop.c (syms_of_textprop):
2523 * terminal.c (syms_of_terminal):
2524 * syntax.c (syms_of_syntax):
2525 * sound.c (syms_of_sound):
2526 * search.c (syms_of_search):
2527 * print.c (syms_of_print):
2528 * minibuf.c (syms_of_minibuf):
2529 * macros.c (syms_of_macros):
2530 * keymap.c (syms_of_keymap, initial_define_key)
2531 (initial_define_lispy_key):
2532 * keyboard.c (syms_of_keyboard):
2533 * insdel.c (syms_of_insdel):
2534 * image.c (syms_of_image):
2535 * fringe.c (syms_of_fringe):
2536 * frame.c (syms_of_frame):
2537 * fontset.c (syms_of_fontset):
2538 * fns.c (syms_of_fns):
2539 * fns.c (syms_of_fns):
2540 * fileio.c (syms_of_fileio):
2541 * fileio.c (syms_of_fileio):
2542 * eval.c (syms_of_eval):
2543 * doc.c (syms_of_doc):
2544 * dispnew.c (syms_of_display):
2545 * dired.c (syms_of_dired):
2546 * dbusbind.c (syms_of_dbusbind):
2547 * data.c (syms_of_data):
2548 * composite.c (syms_of_composite):
2549 * coding.c (syms_of_coding):
2550 * cmds.c (syms_of_cmds):
2551 * charset.c (define_charset_internal, syms_of_character):
2552 * ccl.c (syms_of_ccl):
2553 * category.c (syms_of_category, init_category_once):
2554 * casetab.c (syms_of_casetab):
2555 * casefiddle.c (syms_of_casefiddle):
2556 * callint.c (syms_of_callint):
2557 * bytecode.c (syms_of_bytecode):
2558 * buffer.c (keys_of_buffer, syms_of_buffer):
2559 * alloc.c (syms_of_alloc):
2560 * process.c (syms_of_process, init_process):
2561 * lread.c (syms_of_lread, init_obarray):
2562 * font.c (build_style_table):
2563 * emacs.c (syms_of_emacs, main): Replace calls to intern with
2564 intern_c_string, calls to make_pure_string with
2565 make_pure_c_string. Use pure_cons instead of Fcons.
2566
5e2327cf
DN
2567 * process.c (socket_options): Make it const.
2568 (set_socket_option, init_process): Use a const pointer.
2569
2570 * lread.c (intern_c_string): New function.
2571 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2572 (defvar_int): Uset it. Make the name const char*.
2573
2574 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2575 (defvar_int): Update prototypes.
2576 (DEFUN, EXFUN): Support for prototypes is now required.
2577 (intern_c_string): New prototype.
2578 (struct Lisp_Subr): Make symbol_name constant.
2579
2580 * font.c (struct table_entry): Remove unused member. Make NAMES
2581 constant.
2582 (weight_table, slant_table, width_table): Make constant.
2583
2584 * emacs.c (struct standard_args): Make name and longname constant.
2585
2586 * character.h (DEFSYM): Use intern_c_string.
2587
a56eaaef
DN
25882009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2589
2590 * alloc.c (make_pure_c_string): New function.
2591
2592 * eval.c (Fautoload): Purecopy all arguments.
2593
f6a07420
KH
25942009-11-05 Kenichi Handa <handa@m17n.org>
2595
2596 * fileio.c (Finsert_file_contents): Be sure set coding-system of
2597 the buffer in case of replace.
2598
5d28d4b1
DN
25992009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
2600
2601 * puresize.h (BASE_PURESIZE): Increase to 1620000.
2602
b349d111
SM
26032009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2604
d528b1ce
SM
2605 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
2606 when applicable (bug#4851).
2607
b349d111
SM
2608 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
2609 (P_): Support for prototypes is now required.
2610
c38eb027
CY
26112009-10-31 Chong Yidong <cyd@stupidchicken.com>
2612
2613 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
2614 (Bug#4827).
2615
0405f8d9
EZ
26162009-10-30 Eli Zaretskii <eliz@gnu.org>
2617
d528b1ce 2618 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 2619
ca0a881a
DN
26202009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
2621
2622 * puresize.h (BASE_PURESIZE): Increase to 1470000.
2623
d528b1ce
SM
2624 * lread.c (Fload): Purecopy the file name when building
2625 Vpreloaded_file_list.
ca0a881a 2626
47e0e0e4
JR
26272009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
2628
2629 * w32fns.c (syms_of_w32fns): Change default value of
2630 w32-scroll-lock-modifier to nil. (Bug#2827)
2631
057bce6f
JB
26322009-10-26 Juanma Barranquero <lekktu@gmail.com>
2633
782a943e 2634 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 2635
242bc74c
AS
26362009-10-26 Andreas Schwab <schwab@redhat.com>
2637
2638 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
2639
522d013a
JB
26402009-10-26 Juanma Barranquero <lekktu@gmail.com>
2641
2642 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
2643 For delta < 0, skip check that only makes sense when the mini-window
2644 is going to be enlarged. (Bug#4534)
2645
18060980
CY
26462009-10-25 Chong Yidong <cyd@stupidchicken.com>
2647
2648 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
2649 string in menu maps (Bug#4471).
2650
fec8f0fe
CY
26512009-10-24 Chong Yidong <cyd@stupidchicken.com>
2652
2653 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
2654 FRAME_NS_VIEW on terminal frames (Bug#4765).
2655
10d66ec0
AS
26562009-10-24 Andreas Schwab <schwab@linux-m68k.org>
2657
1cae01f7
AS
2658 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
2659 DBUS_TYPE_UINTnn separately to get proper sign extension.
2660
58a12889
AS
2661 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2662 can properly handle unsigned types.
d528b1ce 2663 (make_uid, make_gid): Remove.
58a12889 2664
987c9327
AS
2665 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2666 types again.
2667
522d013a 2668 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
2669 (system_process_attributes): Likewise.
2670
905a9ed3
DN
26712009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2672
2673 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2674
2675 * eval.c (Fautoload): Purecopy the filename. Simplify.
2676
2677 * category.c (Fdefine_category): Purecopy docstring.
2678
a599b3e8
AS
26792009-10-23 Andreas Schwab <schwab@linux-m68k.org>
2680
7b792fc9
AS
2681 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2682
a599b3e8
AS
2683 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2684
b35ac83e
CY
26852009-10-23 Chong Yidong <cyd@stupidchicken.com>
2686
2687 * window.c (Fwindow_edges, Fwindow_pixel_edges)
2688 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2689 (Bug#4775).
2690
e8903e00
SM
26912009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2692
2693 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2694 (init_fileio_once):
2695 * lisp.h (init_fileio_once): Remove.
2696 * emacs.c (main): Don't call init_fileio_once.
2697
8f43cbf3
DN
26982009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
2699
2700 * puresize.h (BASE_PURESIZE): Increase to 1430000.
2701
26898943
AS
27022009-10-21 Andreas Schwab <schwab@linux-m68k.org>
2703
2704 * doprnt.c (doprnt): Fix overflow check.
2705
5c646d5a
JD
27062009-10-21 Jan Djärv <jan.h.d@swipnet.se>
2707
3132a7ea
JD
2708 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
2709
5c646d5a
JD
2710 * xterm.h (x_wait_for_event): Declare it.
2711
2712 * xterm.c (pending_event_wait): New variable.
2713 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2714 see pending_event_wait.eventtype.
2715 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
2716 (x_new_font): Call change_frame_size with new rows/columns before we
2717 try to resize the frame.
5c646d5a 2718 (x_wait_for_event): New function.
d528b1ce
SM
2719 (x_set_window_size_1): Don't change gravity unless change_gravity
2720 is set.
5c646d5a
JD
2721 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2722 don't change frame size, instead wait for the ConfigureNotify.
2723 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2724 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2725 (x_initialize): Initialize pending_event_wait.
2726
2727 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2728 size.
2729
2730 * widget.c (EmacsFrameSetValues): Add comment.
2731 (EmacsFrameSetCharSize): Just call x_set_window_size.
2732
2733 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2734 x_wait_for_event.
d528b1ce 2735 (flush_and_sync): Remove again.
5c646d5a
JD
2736 (xg_get_font_name): Suggest monospace if no previous font is known.
2737
e9c1637d
SM
27382009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2739
2740 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 2741 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 2742
5a72cccb
YM
27432009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2744
2745 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2746 processing pending events when event is filtered for input method.
ab04798f 2747 (Bug#3681)
5a72cccb 2748
2629aa37
JB
27492009-10-20 Juanma Barranquero <lekktu@gmail.com>
2750
2751 * fns.c: Add #endif accidentally removed in previous change.
2752
c3417a74
DN
27532009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2754
2755 * fns.c: Remove code for unsupported system: MAC_OS.
2756 * image.c: Likewise. Include setjmp.h.
2757
9685cef2
JD
27582009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2759
2760 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2761 pixel -1 (bug #4742).
2762
d7306fe6
DN
27632009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2764
019d2c4c
DN
2765 * process.c (create_pty): Remove conditionals for no longer
2766 supported systems: UNIPLUS and RTU.
2767
ee6bacd4
DN
2768 * xterm.c:
2769 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2770
d7306fe6
DN
2771 * alloc.c: Do not define struct catchtag.
2772 * eval.c: Move struct catchtag definition ...
2773 * lisp.h: ... here.
2774
2775 * image.c: Move png.h #include earlier to avoid warnings.
2776
2777 * xterm.c:
2778 * xsmfns.c:
2779 * xselect.c:
2780 * xrdb.c:
2781 * xmenu.c:
2782 * xftfont.c:
2783 * xfont.c:
2784 * xfns.c:
2785 * xfaces.c:
2786 * xdisp.c:
2787 * window.c:
2788 * widget.c:
2789 * w32xfns.c:
2790 * w32uniscribe.c:
2791 * w32term.c:
2792 * w32select.c:
2793 * w32reg.c:
2794 * w32proc.c:
2795 * w32menu.c:
2796 * w32inevt.c:
2797 * w32heap.c:
2798 * w32font.c:
2799 * w32fns.c:
2800 * w32console.c:
2801 * w32.c:
2802 * w16select.c:
2803 * vm-limit.c:
2804 * unexsol.c:
2805 * unexec.c:
2806 * unexcw.c:
2807 * unexaix.c:
2808 * undo.c:
2809 * tparam.c:
2810 * textprop.c:
2811 * terminfo.c:
2812 * terminal.c:
2813 * termcap.c:
2814 * term.c:
2815 * syntax.c:
2816 * sound.c:
2817 * sheap.c:
2818 * search.c:
2819 * scroll.c:
2820 * region-cache.c:
2821 * regex.c:
2822 * ralloc.c:
2823 * process.c:
2824 * print.c:
b024548b
DN
2825 * nsterm.m:
2826 * nsselect.m:
2827 * nsmenu.m:
2828 * nsimage.m:
2829 * nsfont.m:
2830 * nsfns.m:
d7306fe6
DN
2831 * msdos.c:
2832 * minibuf.c:
2833 * menu.c:
2834 * marker.c:
2835 * macros.c:
2836 * keymap.c:
2837 * keyboard.c:
2838 * intervals.c:
2839 * insdel.c:
2840 * indent.c:
2841 * gtkutil.c:
2842 * ftxfont.c:
2843 * ftfont.c:
2844 * fringe.c:
2845 * frame.c:
2846 * fontset.c:
2847 * font.c:
2848 * fns.c:
2849 * floatfns.c:
2850 * filelock.c:
2851 * fileio.c:
2852 * emacs.c:
2853 * editfns.c:
2854 * dosfns.c:
2855 * doprnt.c:
2856 * doc.c:
2857 * dispnew.c:
2858 * dired.c:
2859 * dbusbind.c:
2860 * data.c:
2861 * composite.c:
2862 * coding.c:
2863 * cmds.c:
2864 * cm.c:
2865 * chartab.c:
2866 * charset.c:
2867 * character.c:
2868 * ccl.c:
2869 * category.c:
2870 * casetab.c:
2871 * casefiddle.c:
2872 * callproc.c:
2873 * callint.c:
2874 * bytecode.c:
2875 * buffer.c:
2876 * atimer.c: Include setjmp.h. (Bug#4643)
2877
fd5f21e6
SM
28782009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2879
4c0354d7
SM
2880 Remove leftover table unibyte_to_multibyte_table.
2881 * character.c (unibyte_to_multibyte_table): Remove.
2882 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2883 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2884 * character.h (UNIBYTE_TO_CHAR): New macro.
2885 (MAKE_CHAR_MULTIBYTE): Use it.
2886 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2887 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2888 (message_dolog, set_message_1):
2889 * search.c (Freplace_match):
2890 * editfns.c (Fcompare_buffer_substrings):
2891 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2892 (concat):
2893 * insdel.c (copy_text, count_size_as_multibyte):
2894 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2895 * term.c (produce_glyphs):
2896 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2897 * regex.c (RE_CHAR_TO_MULTIBYTE):
2898 * cmds.c (internal_self_insert):
2899 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2900
fd5f21e6
SM
2901 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2902
4418646e
DN
29032009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2904
2905 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2906
35f5c1d2
JB
29072009-10-16 Juanma Barranquero <lekktu@gmail.com>
2908
2909 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2910
a0cd8f6b
AR
29112009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2912
2913 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2914 still needed under Tiger.
2915
2916 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2917
2918 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2919 __Apple__.
2920
2921 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2922
01a8d3fa
KH
29232009-10-15 Kenichi Handa <handa@m17n.org>
2924
2925 * print.c (print_object): Escape a symbol like "2E10" too.
2926
bf6c75c9 29272009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
2928
2929 Cleanups and changes for 64-bit compile under Snow Leopard.
2930 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
2931
2932 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2933
c5959062 2934 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
2935 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2936 cast argument.
2937 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 2938 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
2939
2940 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2941
2942 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2943 where appropriate.
2944
2945 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2946 where appropriate.
6e4780c5
JB
2947 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2948 Use stringWithUTF8String.
bf6c75c9
AR
2949 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2950
6e4780c5
JB
2951 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2952 Add formal protocol mention to inheritance.
bf6c75c9
AR
2953 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2954
6e4780c5
JB
2955 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2956 Fix printf format.
bf6c75c9
AR
2957 (ns_query_color): Use CGFloat where appropriate.
2958 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 2959 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
2960 argument.
2961
3d87f118
AR
2962 * config.in (NS_HAVE_NSINTEGER): Drop.
2963
a95c8102
AR
2964 * dbusbind.c (dbus-method-return-internal)
2965 (dbus-method-error-internal): Use long format in printf, and cast
2966 argument.
2967
2968 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2969 in printf, and cast argument.
2970
6873acca 2971 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
2972 cast argument.
2973
9ec6f100
GM
29742009-10-11 Glenn Morris <rgm@gnu.org>
2975
2976 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2977
5be883cd
JD
29782009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2979
2980 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2981 menu bar with a small width so it doesn't enlarge the frame.
2982
d7a39b51
JB
29832009-10-08 Juanma Barranquero <lekktu@gmail.com>
2984
2985 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2986
0c2b6f8e
GM
29872009-10-06 Glenn Morris <rgm@gnu.org>
2988
2989 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2990 SOME_MACHINE_LISP (this enters indirectly via DOC).
2991
e02131a2
EZ
29922009-10-05 Eli Zaretskii <eliz@gnu.org>
2993
2994 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2995
b4744254
EZ
29962009-10-04 Eli Zaretskii <eliz@gnu.org>
2997
2998 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2999 Doc fix.
3000
dbf64827
JB
30012009-10-03 Martin Rudalics <rudalics@gmx.at>
3002
3003 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
3004
e9a0aef8
MA
30052009-10-02 Michael Albinus <michael.albinus@gmx.de>
3006
d528b1ce 3007 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
3008 used anymore outside fileio.c.
3009
3010 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
3011
64eb2b56
JB
30122009-10-01 Juanma Barranquero <lekktu@gmail.com>
3013
3014 * lisp.h (Qdelete_directory_internal):
3015 Declare, instead of Qdelete_directory.
3016
3017 * w32fns.c (Fsystem_move_file_to_trash): Use it.
3018
9d28c33e
SM
30192009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
3020
3021 * eval.c (Fcalled_interactively_p): Add `kind' argument.
3022
9d8f3bd9
MA
30232009-10-01 Michael Albinus <michael.albinus@gmx.de>
3024
9d28c33e 3025 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
3026 Fdelete_directory. It is not a command anymore. It has no file
3027 name handler.
3028
9694740b
SM
30292009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
3030
3031 * xdisp.c (get_next_display_element): Use an enum in last change.
3032
748e162f
KH
30332009-09-28 Kenichi Handa <handa@m17n.org>
3034
9694740b 3035 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
3036 unibyte_display_via_language_environment in handling
3037 Vnobreak_char_display.
3038
17efd58d
AR
30392009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3040
3041 * nsterm.h (ns_app_name): New extern variable.
3042
3043 * nsterm.m (ns_app_name): New variable.
3044 (ns_term_init): Set and use it.
3045 (ns_term_shutdown): Use it.
3046
3047 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
3048 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
3049
3050 * nsfns.m (ns_set_name_iconic, ns_set_name)
3051 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
3052 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
3053
9694740b
SM
3054 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
3055 Remove double-casting in client_data comparison.
31c2d412 3056
3208cb35
YM
30572009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3058
3059 * keyboard.c (make_lispy_event): Remember last wheel direction.
3060 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
3061
b7d552d6
GM
30622009-09-26 Glenn Morris <rgm@gnu.org>
3063
3064 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
3065 internal.elc. Add term/pc-win.elc.
3066 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
3067 term/x-win.elc.
3068 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
3069 term/w32-win.elc.
3070 (NS_SUPPORT): New.
3071 (lisp): Add NS_SUPPORT.
3072 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
3073
4ff670a8
DR
30742009-09-25 David Reitter <david.reitter@gmail.com>
3075
3076 * nsmenu.m (EmacsMenu-clear): Recognize application menu
3077 on Mac OS X 10.6+ (bug#4513).
3078
feabfb6c
JB
30792009-09-24 Juanma Barranquero <lekktu@gmail.com>
3080
3081 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
3082 some parts of Emacs code (like font selection) don't grok them.
3083 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 3084
de59072a
AS
30852009-09-24 Andreas Schwab <schwab@redhat.com>
3086
3087 * coding.c (decode_coding_iso_2022): Fix operator precedence.
3088
a489517b
JB
30892009-09-24 Juanma Barranquero <lekktu@gmail.com>
3090
3091 * dired.c (Fdirectory_files): Fix typo in docstring.
3092
0592970c
AR
30932009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3094
3095 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
3096 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
3097 (EmacsScroller-setPosition:portion:whole:): Remove -display call
3098 under GNUstep.
3099 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
3100
3101 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
3102 glyph advancement.
3103
48e8a88b
AR
31042009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3105
3106 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 3107 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
3108
3109 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
3110 deleted (bug #4492).
3111
e14f0a78
AR
3112 * nsfont.m (Vns_reg_to_script): New lisp variable.
3113 (syms_of_nsfont): Declare it.
3114 (ns_registry_to_script): New function.
3115 (ns_get_req_script): Call it.
3116 (ns_findfonts): Don't give up on non-unicode registry.
3117
3118 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
3119
5b650faa
SM
31202009-09-20 Tom Tromey <tromey@redhat.com>
3121
3122 * eval.c (find_handler_clause): Make stack-trace-on-error work in
3123 batch mode (bug#4228).
3124
a489517b 31252009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
3126
3127 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 3128 carefully. (Bug #4339)
0bae4e09 3129
fcfe06f3
CY
31302009-09-18 Chong Yidong <cyd@stupidchicken.com>
3131
d798ba87 3132 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 3133
31642728
AR
31342009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3135
3136 * emacs.c (inhibit_x_resources): Update doc string for NS.
3137 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 3138 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
3139
3140 * nsterm.h (ns_no_defaults): Remove.
3141
3142 * nsterm.m (ns_no_defaults): Remove.
3143 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
3144 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
3145 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
3146 don't update the NSWindow itself.
3147 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 3148 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
3149
3150 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
3151 ns_use_qd_smoothing.
3152
3153 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
3154 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 3155 (x-close-connection): Drop PSFlush() under OS X.
a489517b 3156 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 3157
8686ac71
JB
31582009-09-17 Juanma Barranquero <lekktu@gmail.com>
3159
3160 * emacs.c (inhibit_x_resources): New variable.
3161 (main) [HAVE_NS]: Don't process --quick command line option.
3162 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
3163
3164 * lisp.h (inhibit_x_resources): Declare it extern.
3165
3166 * w32reg.c (x_get_string_resource):
3167 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
3168
e227ba05
EZ
31692009-09-17 Eli Zaretskii <eliz@gnu.org>
3170
362654a6
JB
3171 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
3172 Add lisp/term/internal.elc.
e227ba05 3173
742d40e8
SM
31742009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3175
3176 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
3177 (bug#4461).
3178
005bd5a2
DN
31792009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
3180
3181 * puresize.h (BASE_PURESIZE): Increase to 1290000.
3182
3183 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
3184 (OBJECTS_MACHINE): Remove, unused.
3185
f9af9719
SM
31862009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
3187
3188 * frame.c (x_get_resource_string): Remove unused.
3189
0307c7d2
JD
31902009-09-15 Jan Djärv <jan.h.d@swipnet.se>
3191
3192 * xterm.c (x_new_font): Call change_frame_size before calling
3193 x_set_window_size, in case frame size won't change.
3194
3195 * frame.c (x_set_font): Remove dead code.
3196
428b13d6
SM
31972009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
3198
3199 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
3200
5766c380
SM
32012009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3202
3203 * lread.c (Fload): Don't output a message after loading an obsolete
3204 package any more (done in Lisp now).
3205
2fd0161b
CY
32062009-09-12 Chong Yidong <cyd@stupidchicken.com>
3207
3208 * fns.c (syms_of_fns): Doc fix (Bug#4227).
3209
bc5e75b6
SM
32102009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3211
3212 * keymap.c (Fwhere_is_internal): Use nconc2.
3213
c31c985e
AM
32142009-09-11 Alan Mackenzie <acm@muc.de>
3215
3216 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
3217 batch mode.
3218
78012bd2
AS
32192009-09-11 Andreas Schwab <schwab@linux-m68k.org>
3220
3221 * xdisp.c (display_mode_element): Detect cycles.
3222
9d889332
SM
32232009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3224
3225 * keymap.c (where_is_internal): Don't erroneously return nil right after
3226 filling the cache.
3227 (where_is_internal_1): Fix up typo.
3228
7ab5d780
GM
32292009-09-11 Glenn Morris <rgm@gnu.org>
3230
3231 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
3232 share a common doc-string.
3233
5238a749
SM
32342009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3235
66d77eda
SM
3236 * keymap.c (get_keymap): Return the actual keymap symbol rather than
3237 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
3238
5238a749
SM
3239 * keymap.c (QCadvertised_binding): New constant.
3240 (syms_of_keymap): Initialize it.
3241 (Fwhere_is_internal): Try and use bindings from :advertised-binding
3242 if applicable.
3243
19f48442
SM
32442009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
3245
50d4ba39
SM
3246 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
3247 (parse_menu_item): Streamline since bindings are recomputed all the
3248 time anyway. Don't bother checking Vdefine_key_rebound_commands any
3249 more and don't support lmenu's menu-alias any more either.
3250
a88a5372
SM
3251 * keymap.c (where_is_internal_data): Make noindirect a boolean.
3252 (where_is_internal): Strip it down to only traverse the keymaps.
3253 Move the cache handling from Fwhere_is_internal to here.
3254 (Fwhere_is_internal): Move the handling of remapping and the choice of
3255 the best binding from where_is_internal to here.
3256 Unify the cached/noncached paths, so remapping is also handled
3257 correctly when the cache is used, and so the cache can be used to
3258 speed up remap-handling when applicable.
3259 Give preference to non-remapped bindings.
3260 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
3261 non-remapped bindings.
3262 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
3263 command remapping.
3264
19f48442
SM
3265 * xdisp.c (display_mode_element): Move list length limit from 50 to
3266 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
3267
599498c3 32682009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
3269
3270 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
3271
f9b7b5ac
SM
32722009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
3273
a53af587
JB
3274 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
3275 (Bug#4334)
3276
f9b7b5ac
SM
3277 * keymap.c (where_is_internal): Filter out shadowed remappings.
3278 Assume that where_is_internal returns unshadowed bindings to simplify
3279 the code and get rid of the gotos. Use ASIZE.
3280
04f4b72d
JD
32812009-09-04 Jan Djärv <jan.h.d@swipnet.se>
3282
4da146f2
JD
3283 * xterm.c (x_focus_changed): If we get a focusout and pointer
3284 is invisible, make it visible.
3285
04f4b72d
JD
3286 * xterm.h: Remove condition for declaration of
3287 x_*_window_to_frame.
3288
7cef7ce3
SM
32892009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
3290
3291 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
3292 initial terminal as well.
3293
a54fa5b7
JD
32942009-09-02 Jan Djärv <jan.h.d@swipnet.se>
3295
3296 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 3297 x_menubar_window_to_frame.
a54fa5b7
JD
3298
3299 * xterm.c: Remove declarations also in xterm.h
3300 (XTmouse_position): Do not return valid positions
3301 for clicks in the menubar and the toolbar for Gtk+.
3302
3303 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
3304 if the widget for the event has the same top level as a frame,
3305 return the frame.
3306 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
3307 internal windows, bug #4122.
3308 (x_non_menubar_window_to_frame): Remove.
3309
5a021dd0
GM
33102009-09-02 Glenn Morris <rgm@gnu.org>
3311
3312 * buffer.c (default-major-mode): Move most of the doc from here...
3313 (major-mode): ... to here.
3314
548fe2f3
NR
33152009-08-30 Nick Roberts <nickrob@snap.net.nz>
3316
3317 * process.c (wait_reading_process_output): Keep the descriptor
3318 when pty is used by a non-child process, e.g., in I/O buffer of
3319 GDB this allows inferior to be restarted.
3320
e0840eef
EZ
33212009-08-29 Eli Zaretskii <eliz@gnu.org>
3322
3323 * xdisp.c (redisplay_internal): Remove redundant test and collapse
3324 both branches into one.
3325
82e98df4
SM
33262009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
3327
3328 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
3329 (main): Use enable-multibyte-characters rather than
3330 default-enable-multibyte-characters. Output a warning message when
3331 running a unibyte session.
3332
890617cb
YM
33332009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3334
3335 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
3336 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
3337 (copy_data_segment): Also copy __program_vars section.
3338 (copy_dyld_info) [LC_DYLD_INFO]: New function.
3339 (dump_it) [LC_DYLD_INFO]: Use it.
3340
3341 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
3342
e7adeadc
EZ
33432009-08-28 Eli Zaretskii <eliz@gnu.org>
3344
3345 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
3346 $(SRC)/buildobj.h.
3347 (buildobj.h): Renamed from $(SRC)/buildobj.h.
3348 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
3349 $(SRC)/buildobj.h.
3350 (clean): Add buildobj.h.
3351
3ed8bbdc
TZ
33522009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
3353
3354 * print.c (print_object): Set escapeflag to 1 when printing
3355 hashtable keys and values.
3356
155a6764
SM
33572009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
3358
3359 * lread.c (read_integer): Use doubles (and potentially return a float
3360 number) as we do in string-to-number.
3361 (read1): Use strtol to read integers, signal errors on strtol's
3362 overflow and use floats if strtol's output is too large for
3363 Elisp integers.
3364
877610de
EZ
33652009-08-27 Eli Zaretskii <eliz@gnu.org>
3366
3367 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
3368 (make-buildobj-SH): Fix last change.
3369 (SRC): Move to before where it's first used.
3370
ef73e7be
KH
33712009-08-27 Kenichi Handa <handa@m17n.org>
3372
550c8289
KH
3373 * process.c (send_process): Use encode_coding_object instead of
3374 encode_coding_string to perform eol-conversion even if the string
3375 is unibyte.
3376
60afa08d
KH
3377 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
3378 character.
3379
ef73e7be 3380 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 3381 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 3382
7b3a82d7
DN
33832009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
3384
5654bf63
DN
3385 * callproc.c (Fcall_process): Remove always true #if.
3386
7b3a82d7
DN
3387 * lisp.h: Replace #if 0 code for checking with text pointing to
3388 the --enable-checking configure flag.
3389
3390 * emacs.c (main): Mention the --enable-profiling configure flag
3391 instead of using CFLAGS.
3392
878bde49
KR
33932009-08-26 Ken Raeburn <raeburn@raeburn.org>
3394
3395 * Makefile.in (buildobj.h): New target.
3396 (doc.o): Depend on it.
3397 (temacs${EXEEXT}): Don't generate buildobj.lst.
3398 (mostlyclean): Delete buildobj.h, not buildobj.lst.
3399 * makefile.w32-in ($(SRC)/buildobj.h): New target.
3400 ($(BLD)/doc.$(O)): Depend on it.
3401 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
3402 provided by Eli Zaretskii.)
3403 ($(TEMACS)): Don't generate buildobj.lst.
3404 * doc.c: Include buildobj.h.
3405 (buildobj): New static variable.
3406 (Fsnarf_documentation): Use it, instead of opening and reading
3407 buildobj.lst.
3408
1574224c
MA
34092009-08-25 Michael Albinus <michael.albinus@gmx.de>
3410
3411 * dbusbind.c (Fdbus_call_method)
3412 (Fdbus_call_method_asynchronously): Use English numeric format for
3413 timeout values in doc string.
3414
d9da2f45
KH
34152009-08-25 Kenichi Handa <handa@m17n.org>
3416
ef73e7be
KH
3417 * alloc.c (mark_char_table): New function.
3418 (mark_object): Use mark_char_table for a char-table.
3419
d9da2f45
KH
3420 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
3421 (CHAR_TABLE_REF): Use it.
3422
c8edcc01
KR
34232009-08-23 Ken Raeburn <raeburn@raeburn.org>
3424
3425 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
3426 before invoking the newly build emacs to check for load-path
3427 shadowing.
3428
7763401b
GM
34292009-08-22 Glenn Morris <rgm@gnu.org>
3430
3431 * Makefile.in (bootstrap_exe): New variable.
3432 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
3433 Use ${bootstrap_exe}.
3434
729eadda
EZ
34352009-08-22 Eli Zaretskii <eliz@gnu.org>
3436
3437 * coding.h (encode_coding_string): Don't encode unibyte strings.
3438 (Bug#4047)
3439
eb4c6ace
MA
34402009-08-22 Michael Albinus <michael.albinus@gmx.de>
3441
3442 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
3443
3444 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
3445 intended as hotfix only.
3446 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
3447
36e34d1b
AR
34482009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3449
3450 * nsterm.m (ns_get_color): Update documentation properly for last
3451 change, and clean up loose ends in the code left by it. Fix
3452 longstanding bug with 16-bit hex parsing, and add support for
3453 yet another X11 format (rgb:r/g/b) for compatibility.
3454 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
3455 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
3456
f983eb8a
SM
34572009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
3458
3459 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
3460
3f56d3c6
MA
34612009-08-20 Michael Albinus <michael.albinus@gmx.de>
3462
3463 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
3464 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
3465 (xd_initialize, xd_pending_messages): Check, whether
3466 $DBUS_SESSION_BUS_ADDRESS is set.
3467
fb641d68
YM
34682009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3469
3470 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
3471
3472 * nsterm.m (ns_get_color): Remove incompatible color formats again.
3473
cf59a374
GM
34742009-08-20 Glenn Morris <rgm@gnu.org>
3475
3476 * emacs.c (system-type): Doc fix.
3477
1373f3be
SM
34782009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3479
3480 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
3481 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
3482
058ed861
MA
34832009-08-18 Michael Albinus <michael.albinus@gmx.de>
3484
1373f3be
SM
3485 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
3486 New functions.
058ed861
MA
3487 (xd_initialize): Revert change from 2009-08-16.
3488
563a866e 34892009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
3490
3491 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 3492 font-group vector, return nil.
5fc05db0 3493
e42bdf01
CY
34942009-08-17 Chong Yidong <cyd@stupidchicken.com>
3495
3496 * process.c (status_notify): Don't perform redisplay.
3497 (Fdelete_process, list_processes_1, process_send_signal):
3498 Expliticly perform redisplay.
3499 (wait_reading_process_output): Always check process status, but
3500 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
3501
4230ab74
KR
35022009-08-17 Ken Raeburn <raeburn@raeburn.org>
3503
1373f3be 3504 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
3505 (XFLOAT_INIT): New macro for storing a float value.
3506 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
3507 * fns.c (sxhash): Copy out the value of a float in order to
3508 examine its bytes.
3509 * dbusbind.c (xd_append_arg): Likewise.
3510
4230ab74
KR
3511 * emacs.c (main): Don't call syms_of_data twice.
3512
a0645cdd
MA
35132009-08-16 Michael Albinus <michael.albinus@gmx.de>
3514
3515 * dbusbind.c (xd_initialize): Add connection file descriptor to
3516 input_wait_mask, in order to let select() detect, whether a new
3517 message has been arrived.
ca4f31ea 3518 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 3519
485db0ba
MA
35202009-08-15 Michael Albinus <michael.albinus@gmx.de>
3521
1373f3be
SM
3522 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
3523 New functions.
485db0ba
MA
3524
3525 * lisp.h (xd_pending_messages): Declare.
3526
3527 * keyboard.c (readable_events): Call xd_pending_messages.
3528
b5b98ff4
CY
35292009-08-15 Chong Yidong <cyd@stupidchicken.com>
3530
1373f3be 3531 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 3532
f8354c6e
CY
3533 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
3534
b5b98ff4
CY
3535 * buffer.c (set_buffer_internal_1)
3536 (swap_out_buffer_local_variables): Check for unbound local
3537 variables (Bug#4138).
3538
8b9fc636
EZ
35392009-08-14 Eli Zaretskii <eliz@gnu.org>
3540
3541 * process.c (create_pty): Fix last change.
3542
ce959360
CY
35432009-08-13 Chong Yidong <cyd@stupidchicken.com>
3544
3545 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
3546 (xbm_load_image): Caller changed.
64b807c9 3547 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 3548
c7baf7e9
NR
35492009-08-13 Nick Roberts <nickrob@snap.net.nz>
3550
3551 * process.c (create_pty): New function.
3552 (Fstart_process): Use it to allow Emacs to just associate a pty
3553 with the buffer. See associated change in gdb-mi.el.
3554 (list_processes_1): Deal with no program name.
3555 (start_process_unwind): Use pid == -2 to mean no process.
3556
1ac9108a
SM
35572009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3558
3559 * cmds.c (nonundocount): New global variable.
3560 (keys_of_cmds): Initialize it.
3561 (Fself_insert_command): Use it to combine upto 20 sequential chars
3562 into a single undo entry, just like the Qself_insert_command code in
3563 keyboard.c does.
3564 Call frame_make_pointer_invisible, also like the Qself_insert_command
3565 code in keyboard.c does.
3566 * keyboard.c (command_loop_1): Use the new global nonundocount rather
3567 than its own local replacement for it.
3568
e267324c
KR
35692009-08-10 Ken Raeburn <raeburn@raeburn.org>
3570
1ac9108a 3571 * fns.c (concat): Don't re-set string length to its current value.
77437343 3572
1ac9108a
SM
3573 * coding.h (decode_coding_string, encode_coding_string):
3574 Use SBYTES macro.
f0bed503 3575
1ac9108a 3576 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
3577 (doprnt): Merge with doprnt1, discarding lispstrings code.
3578 * lisp.h (doprnt_lisp): Don't declare.
3579
416e006d
JL
35802009-08-07 Juri Linkov <juri@jurta.org>
3581
3582 * puresize.h (BASE_PURESIZE): Increase to 1270000.
3583
6f7d5780
DN
35842009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3585
3586 * print.c (syms_of_print): Undo previous change.
3587
f19a0f5b
TZ
35882009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
3589
3590 * lread.c (read1, syms_of_lread): Read hashtables back from the
3591 readable format.
3592
3593 * print.c (print_preprocess, print_object): Print hashtables fully
3594 and readably.
3595 (syms_of_print): Provide 'hashtable-print-readable.
3596
b9173dc2
AR
35972009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3598
3599 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
3600 no family set.
3601 (nsfont_open): Handle case when entity has no family.
3602
1586503c
AR
36032009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3604
3605 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
3606 element, not a list, for match case.
3607
087048cd
KH
36082009-07-28 Kenichi Handa <handa@m17n.org>
3609
3610 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
3611 rigidly.
3612
3613 * xfont.c (xfont_list_pattern): Don't ignore the return value of
3614 font_parse_xlfd. Check font properties more rigidly.
3615
780c2506
DN
36162009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3617
31fd7c5c
JB
3618 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
3619 bsd-common.h.
780c2506 3620
a8c0cc18
KH
36212009-07-27 Kenichi Handa <handa@m17n.org>
3622
3623 * xfaces.c (face_with_height): Call font_clear_prop.
3624
4fbe2306
CY
36252009-07-26 Chong Yidong <cyd@stupidchicken.com>
3626
111d9af3
CY
3627 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
3628
3629 * xterm.c (x_term_init): Use Qx.
3630
4fbe2306
CY
3631 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
3632
1ac9108a 3633 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
3634 (ns_get_color): Revert 2009-07-16 change.
3635
beb0b7f9
EZ
36362009-07-25 Eli Zaretskii <eliz@gnu.org>
3637
3638 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 3639 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 3640
2baf5e76
KR
36412009-07-25 Ken Raeburn <raeburn@raeburn.org>
3642
1ac9108a
SM
3643 * coding.h (decode_coding_string, encode_coding_string):
3644 Use SCHARS macro.
8890e5f5 3645
2baf5e76 3646 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 3647 (load_depth): Delete.
2baf5e76
KR
3648 (Qload_in_progress): New variable.
3649 (load_unwind): Don't reference load_depth or load_in_progress.
3650 (Fload): Likewise; specbind Qload_in_progress instead.
3651 (init_lread): Don't initialize load_depth.
3652 (syms_of_lread): Initialize and protect Qload_in_progress.
3653
1395c6f5
AR
36542009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3655
3656 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
3657
4e2f36cf
AR
36582009-07-23 Yavor Doganov <yavor@gnu.org>
3659
3660 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
3661
5dd9a6f7
AR
36622009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3663
3664 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
3665 Bugs 3792, 3720, 2402.
3666 (ns_lookup_indexed_color): Check for bad index.
3667 (ns_index_color): Init unused slot to 0.
3668 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3669 Bug 3714, possibly 3082.
5dd9a6f7 3670
c902b920
JR
36712009-07-22 Jason Rumney <jasonr@gnu.org>
3672
1ac9108a
SM
3673 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3674 Position IME window at cursor (Bug#2570).
c902b920
JR
3675 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3676 (globals_of_w32fns): Dynamically load functions required above.
3677
3678 * w32term.c (w32_draw_window_cursor): Send message to reposition
3679 any IME window.
3680
090101cf
CY
36812009-07-21 Chong Yidong <cyd@stupidchicken.com>
3682
3683 * fileio.c: Revert 2009-07-16 changes.
3684 (Vauto_save_include_big_deletions): New variable.
3685 (Fdo_auto_save): Disable auto-save only if
3686 auto-save-include-big-deletions is nil.
3687
e6583e3d
CY
36882009-07-21 Chong Yidong <cyd@stupidchicken.com>
3689
3690 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3691 the overflowed pixels into account (Bug#3879).
3692
ece435a5
KR
36932009-07-21 Ken Raeburn <raeburn@raeburn.org>
3694
3695 * lread.c (load_depth): New variable.
3696 (Fload, load_unwind, init_lread): Set it to the load recursion
3697 depth; set load_in_progress as a simple boolean based on the
3698 current load_depth. (Bug#3892)
3699
40b2d973
AR
37002009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3701
3702 * nsfont.m (ns_has_attribute): Remove.
3703 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3704
10be7e0d
JL
37052009-07-18 Juri Linkov <juri@jurta.org>
3706
3707 * process.c (Fset_process_query_on_exit_flag): Mention killing
3708 a buffer in docstring.
3709
fa055055
KH
37102009-07-17 Kenichi Handa <handa@m17n.org>
3711
3712 * casetab.c (shuffle): Fix the logic of setting up the cycle.
3713
042f7b69
YM
37142009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3715
3716 * nsfns.m (Fns_set_alpha): Remove function.
3717 (syms_of_nsfns): Don't defsubr it.
3718
3719 * nsterm.m (ns_get_color): Remove incompatible color formats.
3720 (ns_color_to_lisp): Generate #rrggbb color format string.
3721
4be941e3
RS
37222009-07-16 Richard Stallman <rms@gnu.org>
3723
3724 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3725 (Fset_buffer_auto_saved): Handle save_length = -2.
3726
4e6b227d
CY
37272009-07-16 Chong Yidong <cyd@stupidchicken.com>
3728
3729 * xterm.c (Qx_gtk_map_stock): New var.
3730
3731 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3732 of calling intern each time.
3733
a1856973
YM
37342009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3735
3736 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3737 does tiling.
3738
3739 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3740
497e54d8
KH
37412009-07-14 Kenichi Handa <handa@m17n.org>
3742
72d36834
KH
3743 * font.c (font_vconcat_entity_vectors): New function.
3744 (struct font_sort_data): New member font_driver_preference.
3745 (font_compare): Check font_driver_preference.
3746 (font_sort_entities): The format of the first argument changed.
3747 (font_delete_unmatched): Likewise.
3748 (font_list_entities): The return type changed.
3749 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
3750 (font_find_for_lface): Adjuste for the above changes.
3751 Don't suppress the checking of C even if the repertory supports it.
3752 (Flist_fonts): Adjust for the above changes.
72d36834 3753
1ac9108a
SM
3754 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3755 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
3756 Reject a font who has adstyle property that is different from a
3757 langname derived from registry property.
1ac9108a 3758 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 3759
b6046155
EZ
37602009-07-13 Eli Zaretskii <eliz@gnu.org>
3761
3762 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3763 local copy of dirfilename.
3764
fb6b6049
KH
37652009-07-13 Kenichi Handa <handa@m17n.org>
3766
e2402a5e
KH
3767 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3768 against max_char.
3769
fb6b6049
KH
3770 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3771 calling XSYMBOL (sym).
3772
65156807
EZ
37732009-07-11 Eli Zaretskii <eliz@gnu.org>
3774
1ac9108a
SM
3775 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3776 New function.
3777 (directory_files_internal) [WINDOWSNT]:
3778 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
3779 the filesystem of the directory is fast or slow.
3780
3781 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3782 file name.
3783 (is_slow_fs): New function.
3784 (stat): Use it to determine whether to issue more system calls to
3785 get accurate file attributes, when w32-get-true-file-attributes is
3786 `local'.
3787
e0ab5fcf
JD
37882009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3789
3790 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 3791 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
3792 parameter font-parameter as default to the font dialog.
3793
784ceded
KH
37942009-07-10 Kenichi Handa <handa@m17n.org>
3795
3796 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3797
fb8edc0b
EZ
37982009-07-09 Eli Zaretskii <eliz@gnu.org>
3799
1ac9108a 3800 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 3801
fb8edc0b
EZ
3802 * w32.c (stat): Treat UNC file names as residing on remote
3803 drives. (Bug#3542)
3804
635c75b1
KH
38052009-07-09 Kenichi Handa <handa@m17n.org>
3806
3807 * fontset.c (fontset_find_font): Fix previous change.
3808
c1d5ce94
MA
38092009-07-08 Michael Albinus <michael.albinus@gmx.de>
3810
3811 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3812 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3813 error flag.
3814
edb61b39
KH
38152009-07-08 Kenichi Handa <handa@m17n.org>
3816
374bf7e4
KH
3817 * fontset.c (fontset_find_font): Fix the logic of handling
3818 charset_matched.
3819 (font_for_char): Delete unused var.
3820 (generate_ascii_font_name): Delete it.
3821
edb61b39
KH
3822 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3823
3824 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3825 (encode_coding_sjis): Fix the code range check.
3826
0f3f018c
CY
38272009-07-07 Chong Yidong <cyd@stupidchicken.com>
3828
3829 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3830 (Fexpand_file_name): Copy string data properly (Bug#3772).
3831
fcaf6f3a
JD
38322009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3833
3834 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3835 first MapNotify.
3836
6809ca75
KH
38372009-07-07 Kenichi Handa <handa@m17n.org>
3838
3839 * character.h (unibyte_has_multibyte_table): Delete extern.
3840 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3841
3842 * charset.c (Fset_charset_priority): Update charset_unibyte.
3843 (syms_of_charset): Initialize charset_unibyte.
3844
3845 * character.c (unibyte_has_multibyte_table): Delete it.
3846 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3847 charset_unibyte.
3848 (multibyte_char_to_unibyte_safe): Likewise.
3849 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3850
1ac9108a 3851 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
3852 (x_produce_glyphs): Likewise.
3853
3854 * .gdbinit (xcharset): Fix the treating $arg0.
3855
ad9e2d54
EZ
38562009-07-04 Eli Zaretskii <eliz@gnu.org>
3857
3858 Emulation of `getloadavg' on MS-Windows.
3859 * w32.c: Include float.h
3860 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3861 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3862 (get_native_system_info, get_system_times): New functions.
3863 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3864 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3865 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3866 g_b_init_get_system_times, and num_of_processors.
3867
0a3472c7
JR
38682009-07-03 Jason Rumney <jasonr@gnu.org>
3869
3870 * w32term.c (w32_initialize): Use standard types.
3871
80904120
EZ
38722009-07-03 Eli Zaretskii <eliz@gnu.org>
3873
3874 * dired.c (Ffile_attributes): Decode user and group names by the
3875 locale's encoding. (Bug#3443)
3876
6978862d
DN
38772009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3878
f8d23104
DN
3879 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3880 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3881
3882 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3883
3884 * term.c (init_tty): Remove spurious #ifdef.
3885
6978862d
DN
3886 * m/mips.h: Mention this file is also used for netbsd.
3887 * m/pmax.h: Remove file.
3888
e044e4fc
JD
38892009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3890
3891 * xterm.h (struct x_display_info): Add invisible_cursor.
3892 (struct x_output): Add current_cursor.
3893
3894 * xterm.c (XTtoggle_invisible_pointer): New function.
3895 (x_define_frame_cursor): Don't define cursor if invisible or the
3896 same as before. Set current_cursor.
3897 (x_create_terminal): Set toggle_invisible_pointer_hook.
3898
3899 * xfns.c (make_invisible_cursor): New function.
3900 (x_set_mouse_color): Call make_invisible_cursor.
3901 Set current_cursor.
3902 (x_window): Set current_cursor.
3903
3904 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3905
3906 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3907 inserting a character.
3908 (read_avail_input): Call frame_make_pointer_visible.
3909
3910 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
3911 (frame_make_pointer_invisible, frame_make_pointer_visible):
3912 New functions.
e044e4fc
JD
3913 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3914
3915 * frame.h: Declare frame_make_pointer_invisible and
3916 frame_make_pointer_visible.
3917 (struct frame): Add pointer_invisible.
3918
574c8efa
JD
39192009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3920
7b507248
JD
3921 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3922 frame isn't visible.
3923 (xg_frame_resized): If width/height is -1, get size of window
3924 from X server.
3925
3926 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3927 for MapNotify.
3928
835bdaa7 3929 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 3930 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 3931 (flush_and_sync): Reintroduce.
574c8efa 3932
3f1c6666 39332009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 3934
31fd7c5c 3935 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
3936
3937 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3938 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3939
3940 * frame.h: Declare Qsticky.
3941
cad9ef74
JD
3942 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3943
3944 * nsfns.m (ns_frame_parm_handlers): Ditto.
3945
3946 * frame.c: Declare Qsticky.
3947 (frame_parms): Add sticky.
3948
3949 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3950
3951 * xterm.h: Declare x_set_sticky.
3952
3953 * xterm.c (x_set_sticky): New function.
3954
69b16610
JD
3955 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3956 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3957 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
3958
3959 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3960
3961 * frame.c: Qmaximized is new.
3962 (x_set_frame_parameters): Do not handle fullscreen specially.
3963 Only set width and height if explicitly set.
3964 (x_set_fullscreen): Handle Qmaximized.
3965 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3966 (syms_of_frame): Initialize Qmaximized.
3967
1ac9108a
SM
3968 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3969 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
3970
3971 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
3972 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3973 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
3974 set gravity to NorthWestGravity when USE_GTK.
3975 (set_wm_state): New function.
31fd7c5c 3976 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
3977 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3978 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 3979 or the case when no window manager is running. That means remove calls
3f1c6666
JD
3980 to x_real_positions and x_fullscreen_adjust.
3981
3982 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3983 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3984 flush_and_sync.
3985 (xg_height_changed): New function.
3986 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
3987 and gtk_window_set_policy. Set frame gravity after parsing the
3988 geometry string.
3f1c6666
JD
3989 (xg_update_frame_menubar, free_frame_menubar)
3990 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3991 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3992 Remove calls to xg_frame_set_char_size.
3993
fd503d99
KH
39942009-07-01 Kenichi Handa <handa@m17n.org>
3995
3996 * keyboard.c (decode_keyboard_code): New function.
3997 (tty_read_avail_input): Decode the input bytes if necessary.
3998
1ac9108a
SM
3999 * coding.c (setup_coding_system):
4000 Initialize coding->carryover_bytes to 0.
fd503d99
KH
4001 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
4002 use Qno_conversion.
4003
24ed93fb
YM
40042009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4005
4006 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
4007
99061dfc
CY
40082009-06-30 Chong Yidong <cyd@stupidchicken.com>
4009
1ac9108a 4010 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 4011
ff90fbde
JR
40122009-06-30 Jason Rumney <jasonr@gnu.org>
4013
4014 * w32term.c (w32_initialize): Use GetModuleHandle for library that
4015 is already loaded.
4016 Set user model ID if supported (bug#1849).
4017
5f445726
JM
40182009-06-29 Jim Meyering <meyering@redhat.com>
4019
4020 Remove useless if-before-xfree test.
4021 * nsfont.m (nsfont_close): Remove useless test.
4022 * term.c (delete_tty): Likewise.
4023 * w32.c (system_process_attributes): Likewise.
4024 * w32font.c (w32font_close): Likewise.
4025 * xfaces.c (x_free_gc): Likewise.
4026 * xselect.c (buffer): Likewise.
4027
b9607587
AS
40282009-06-28 Andreas Schwab <schwab@linux-m68k.org>
4029
4030 * process.c (send_process): Keep decoded string in a local
4031 variable and protect it from GC. (Bug#3521)
4032
89ba96f4
EZ
40332009-06-28 Eli Zaretskii <eliz@gnu.org>
4034
4035 * term.c (create_tty_output) [MSDOS]: #ifdef away.
4036 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
4037
098a1589
CY
40382009-06-28 Chong Yidong <cyd@stupidchicken.com>
4039
485422be
CY
4040 * xdisp.c (start_display, handle_face_prop)
4041 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
4042 (redisplay_window, try_window_id, produce_image_glyph):
4043 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 4044
098a1589
CY
4045 * xterm.c (x_update_window_begin, x_new_focus_frame)
4046 (x_scroll_bar_handle_click, handle_one_xevent)
4047 (handle_one_xevent, XTread_socket, x_focus_on_frame)
4048 (x_make_frame_visible, x_make_frame_invisible)
4049 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
4050 code chunks that are now obsolete.
4051
78c38319
MA
40522009-06-28 Michael Albinus <michael.albinus@gmx.de>
4053
4054 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
4055 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
4056 for hours, when optimzation is enabled.
4057 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
4058 (xd_read_message): Make them static.
4059
4189ed40
CY
40602009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
4061
4062 * term.c (turn_on_face): Allow simultaneously bold and dim
4063 terminal faces (Bug#3530).
4064
cd9b5e16
CY
40652009-06-27 Chong Yidong <cyd@stupidchicken.com>
4066
4e23bedb
CY
4067 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
4068
cd9b5e16
CY
4069 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
4070 truncation glyphs (Bug#3686).
4071
07cc3c35
GM
40722009-06-27 Glenn Morris <rgm@gnu.org>
4073
4074 * m/pmax.h: Restore file, with only netbsd portions.
4075
31fd7c5c 40762009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 4077
cd9b5e16 4078 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 4079
42d4a64f
KH
40802009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
4081
4082 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
4083 the arg FORCE_SYMBOL.
4084
930fe55b 40852009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
4086
4087 * fontset.c (fontset_find_font): When a usable rfont_def is found
4088 in a fallback font-group, make it the first element of the group.
4089
57ebc3fd
CY
40902009-06-24 Chong Yidong <cyd@stupidchicken.com>
4091
4092 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
4093
f084f942
KH
40942009-06-24 Kenichi Handa <handa@m17n.org>
4095
4096 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
4097 set for C.
4098 (fontset_font): Record the availability of a font for C both in
4099 the realized fontsets of the current one and the default one.
4100
2f686c87
DN
41012009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
4102
4103 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
4104 conditional, it is always defined on AIX.
4105
666e158e
MB
41062009-06-23 Miles Bader <miles@gnu.org>
4107
4108 * window.c (Vrecenter_redisplay): New variable.
4109 (syms_of_window): Initialize it.
4110 (Qtty): New extern declaration.
4111 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
4112
c6da7cd2
JM
41132009-06-23 Jim Meyering <meyering@redhat.com>
4114
1ac9108a
SM
4115 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
4116 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 4117 pointer dereferences are guaranteed to be valid.
c6da7cd2 4118
678dca3d
KH
41192009-06-23 Kenichi Handa <handa@m17n.org>
4120
74d75424
KH
4121 * emacs.c (main): Call init_font ().
4122
4123 * font.h (Vfont_log): Extern it.
4124 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
4125
4126 * font.c (font_sort_entities, font_list_entities)
4127 (font_matching_entity, font_open_entity)
4128 (font_close_object): Change font_add_log to FONT_ADD_LOG.
4129 (Vfont_log): Delete static.
4130 (font_log_env_checked): Delete this variable.
4131 (font_add_log): Don't check font_log_env_checked.
4132 (font_deferred_log): Check Vfont_log.
4133 (init_font): New function.
4134
678dca3d
KH
4135 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
4136
4137 * w32font.c: Change font_add_log to FONT_ADD_LOG.
4138
4139 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
4140
4141 * xfont.c: Change font_add_log to FONT_ADD_LOG.
4142
4143 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
4144 (face_for_char): Don't call font_deferred_log here.
4145 (font_for_char): Likewise.
4146
8a668709
CY
41472009-06-22 Chong Yidong <cyd@stupidchicken.com>
4148
9a01ee33
CY
4149 * w32term.c (x_draw_glyph_string): Use the glyph string's width
4150 rather than its background_width for drawing the overline and
4151 underline (Bug#489).
4152
4153 * xterm.c (x_draw_glyph_string): Use the glyph string's width
4154 rather than its background_width for drawing the overline and
4155 underline (Bug#489).
ec7c9926
CY
4156 (xg_default_icon_file): New variable.
4157 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
4158 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 4159
8a668709
CY
4160 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
4161 (load_overlay_strings): Remove externs.
4162 (fast_find_position): Function deleted.
4163 (mouse_face_from_buffer_pos): New function, based on
4164 fast_find_position. Correctly handle before-strings,
4165 display-strings, and after-strings (Bug#1220).
4166 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
4167
4d4c02d8
CY
41682009-06-21 Chong Yidong <cyd@stupidchicken.com>
4169
1ac9108a 4170 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
4171 (move_it_in_display_line_to, move_it_in_display_line_to)
4172 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
4173
70243478
CY
41742009-06-21 Chong Yidong <cyd@stupidchicken.com>
4175
4176 * Branch for 23.1.
4177
13087e59
JR
41782009-06-21 Jason Rumney <jasonr@gnu.org>
4179
4180 * w32term.c (keyboard_codepage): New static variable.
4181 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
4182 (w32_read_socket) [WM_CHAR]: Use it to decode character
4183 input (bug#3237).
4184 (w32_initialize): Initialize it.
4185 (codepage_for_locale): New function.
4186
4735b74e
KR
41872009-06-20 Ken Raeburn <raeburn@raeburn.org>
4188
4189 * process.c (status_message): Pass Faset index argument as a lisp
4190 object, so as to work with USE_LISP_UNION_TYPE.
4191
0e727afa
YM
41922009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4193
4194 * coding.c (Ffind_coding_systems_region_internal):
4195 Cache checked characters.
4196
cf299835
KH
41972009-06-18 Kenichi Handa <handa@m17n.org>
4198
1ac9108a 4199 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 4200
90f20d94
AS
42012009-06-18 Andreas Schwab <aschwab@redhat.com>
4202
4203 * xdisp.c (redisplay_internal): Check that the frame is still
4204 live after redisplay of its windows.
4205 (redisplay_windows): Check that the window is still live.
4206
7f1faf1c
KH
42072009-06-17 Andreas Schwab <schwab@linux-m68k.org>
4208
4209 * coding.c (detect_coding_utf_16): Fix previous change.
4210
cc13543e
KH
42112009-06-16 Kenichi Handa <handa@m17n.org>
4212
4213 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
4214 UTF-16 by checking the dispersion of Eth and Oth bytes.
4215
977b85f4
AS
42162009-06-15 Andreas Schwab <schwab@linux-m68k.org>
4217
4218 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
4219
66bd43d1
KH
42202009-06-15 Kenichi Handa <handa@m17n.org>
4221
4222 * process.c (status_message): Fix previous change. Be sure to
4223 decode a localized string.
4224
cb5ca9c5
YM
42252009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4226
4227 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
4228 add comment explaining why.
4229
ec7709ba 42302009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 4231
ec7709ba 4232 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 4233
4b7f335c
AR
42342009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
4235
4236 * nsfont.m (ns_attribute_value): Remove.
4237 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
4238 (ns_has_attribute): Shrink the normal range.
4239 (ns_findfonts): Don't worry about requested spec in determining
4240 need for synthItal.
e41820ee 4241 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 4242
73b26103
SZ
42432009-06-14 Seiji Zenitani <zenitani@mac.com>
4244
4245 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
4246
5753e4da
KH
42472009-06-11 Kenichi Handa <handa@m17n.org>
4248
4249 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4250 overhang for the static composition case.
4251
3561b671
KH
42522009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4253
5753e4da
KH
4254 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4255 overhang for the automatic composition case.
4256
3561b671
KH
4257 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
4258 composition case.
4259
852bbd41
CY
42602009-06-10 Chong Yidong <cyd@stupidchicken.com>
4261
4262 * xdisp.c (get_next_display_element): When handling wrap-prefix
4263 and line-prefix, treat \n as a control character (bug#3502).
4264
9903d1e6
KH
42652009-06-10 Kenichi Handa <handa@m17n.org>
4266
4267 * font.c (font_parse_family_registry): Fix for one-char foundry.
4268 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
4269
0bcbaaaa
CY
42702009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
4271
4272 * process.c (status_message): Fix handling of multibyte signal
4273 string (Bug#3499).
4274
40aa3f13
JM
42752009-06-09 Jim Meyering <meyering@redhat.com>
4276
1f80c7e2
CY
4277 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
4278 color name is missing.
40aa3f13 4279
72d51285
KH
42802009-06-09 Kenichi Handa <handa@m17n.org>
4281
4282 * charset.c (Fmap_charset_chars): In docstring, state clearly that
4283 FROM-CODE and TO-CODE are codepoints of CHARSET.
4284
c1d04d84
AR
42852009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4286
4287 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
4288
42892009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4290
4291 Changes to support :script/:lang/:otf in NS font driver.
4292 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
4293 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
4294 indicate not part of font driver interface, and change callers.
4295 (ns_get_family): Remove pointless null check.
4296 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
4297 ns_spec_to_descriptor, ns_descriptor_to_entity.
4298 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
4299 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
4300 (ns_spec_to_descriptor, ns_descriptor_to_entity)
4301 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
4302 (ns_get_req_script, ns_accumulate_script_ranges)
4303 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
4304 New functions.
4305 (nsfont_list, nsfont_match): Use ns_findfonts.
4306 (nsfont_open): Use font descriptor instead of traits.
4307 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
4308 (dump_glyphstring): Rename to ns_dump_glyphstring.
4309
c7eb9816
AR
4310 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
4311
c1d04d84
AR
4312 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
4313
4314 * fontset.c (fontset_from_font): Remove NS-specific code.
4315
ec7709ba 43162009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
4317
4318 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
4319 nonactive windows.
4320
31fd7c5c 43212009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 4322
1ac9108a 4323 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 4324
68852c13 43252009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
4326
4327 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
4328
6756cd1d
CY
43292009-06-07 Chong Yidong <cyd@stupidchicken.com>
4330
4331 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
4332 account for the overflowing of newlines into the last glyph on the
4333 display line (Bug#3482).
4334
28bf482a
DR
43352009-06-05 David Reitter <david.reitter@gmail.com>
4336
ec7709ba
JB
4337 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
4338 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
4339 Fns_selection_exists_p, Fns_selection_owner_p.
4340
fdb55376
JR
43412009-06-03 Jason Rumney <jasonr@gnu.org>
4342
4343 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
4344 available. (Bug#3379)
4345
05129fbe
KH
43462009-05-29 Kenichi Handa <handa@m17n.org>
4347
1ac9108a
SM
4348 * coding.c (get_translation_table):
4349 Check Venable_character_translation.
05129fbe 4350
ec7709ba 43512009-05-26 David Reitter <david.reitter@gmail.com>
15891144 4352
ec7709ba
JB
4353 * nsterm.m (ns_raise_frame): Only raise frame if visible.
4354 (x_make_frame_visible): Move frame to front rather than calling
15891144 4355 ns_raise_frame().
ec7709ba 4356 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 4357 isn't key window.
ec7709ba 4358 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
4359 drawRect may be called by NSView even if the frame is hidden.
4360
ec7709ba
JB
4361 * nsfns.m (Fx_create_frame): Follow other ports in
4362 determining visibility; default to t. Ensure async_visible is set.
15891144 4363
21f73755
EZ
43642009-05-23 Eli Zaretskii <eliz@gnu.org>
4365
4366 * dired.c (Ffile_attributes): Doc fix.
4367
34001e41
CY
43682009-05-22 Chong Yidong <cyd@stupidchicken.com>
4369
4370 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
4371
46306a17
SM
43722009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
4373
4374 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
4375 and xfont_scratch_props.
4376 (syms_of_xfont): Do it here instead.
4377 (xfont_find_ccl_program): Delete, unused.
4378 (xfont_open): Delete unused var `i'.
4379
ef6e0694
KH
43802009-05-21 Kenichi Handa <handa@m17n.org>
4381
4382 * fontset.c (Qlatin): Don't make it static.
4383
46306a17
SM
4384 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
4385 New functions.
ef6e0694
KH
4386 (xfont_scripts_cache, xfont_scratch_props): New variables.
4387 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
4388 (xfont_list_pattern): Argument changed. Callers changed.
4389 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
4390 (xfont_list): Don't reject a font spec with :script property.
4391 (xfont_has_char): Fix setting of encoding.
4392 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
4393 xfont_scratch_props.
4394
43952009-05-19 Kenichi Handa <handa@m17n.org>
4396
46306a17 4397 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
4398 Callers changed.
4399
44002009-05-18 Kenichi Handa <handa@m17n.org>
4401
4402 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
4403
ac71ced7
SM
44042009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
4405
4406 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
4407 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
4408
1c6d1051
YM
44092009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4410
4411 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
4412 (x_delete_terminal): Dissociate resource database from display and
4413 then call XrmDestroyDatabase before closing display.
4414
9b9b779c
AR
44152009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4416
4417 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
4418 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
4419 whether selected frame is viable before raising it (based on patch
4420 by David Reitter), and improve commentary.
4421 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 4422
cccd42d5
KH
44232009-05-15 Kenichi Handa <handa@m17n.org>
4424
4425 * font.c (Ffont_spec): Check arguments.
4426
337fbd17
CY
44272009-05-14 Chong Yidong <cyd@stupidchicken.com>
4428
4429 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
4430 weight when testing attributes (Bug#3282).
4431
47a6002f
JD
44322009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4433
4434 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
4435 what we expect to get in the next ConfigureNotify event.
4436
9cb363db
YM
4437 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
4438 before Xft one (Bug#1696).
4439
b9126609
CY
44402009-05-07 David Reitter <david.reitter@gmail.com>
4441
4442 * nsfns.m (Fx_display_planes): Compute bitplanes using
4443 NSBitsPerPixelFromDepth (Bug#3207).
4444
27a69fd9
CY
44452009-05-10 Chong Yidong <cyd@stupidchicken.com>
4446
4447 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
4448
00f37552
TTN
44492009-05-10 Ulrich Mueller <ulm@gentoo.org>
4450
4451 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
4452
2d82a920
DR
44532009-05-07 David Reitter <david.reitter@gmail.com>
4454
ec7709ba
JB
4455 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
4456 Respect mouse face background.
2d82a920 4457
46b0d52d
DR
44582009-05-07 David Reitter <david.reitter@gmail.com>
4459
ec7709ba
JB
4460 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
4461 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
4462 in ns_update_begin and ns_update_end.
4463
ce1b23bb
SM
44642009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4465
5996e1b7
SM
4466 * nsfns.m (ns_get_screen): Rewrite.
4467 Don't presume selected-frame is of type `ns'.
4468
ba98e3a0
SM
4469 * font.c (font_update_drivers): Sanity fallback to avoid disabling
4470 all drivers.
4471
ce1b23bb
SM
4472 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
4473
bcda200f
YM
44742009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4475
4476 * keyboard.h (add_user_signal): Fix typo in extern.
4477
4478 * lisp.h (add_user_signal): Remove extern.
4479
4480 * unexelf.c (unexec): Consider a section to precede the .bss section
4481 if its addresses overlap that of .bss.
4482 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
4483 instead of dumping process.
4484
864660a2
SM
44852009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4486
4487 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
4488
50da4e56
SM
44892009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4490
4491 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
4492
51520a1a
DN
44932009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4494
4495 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
4496 any statements.
4497
409ea3a1
AS
44982009-05-02 Andreas Schwab <schwab@linux-m68k.org>
4499
59c4c60f
AS
4500 * process.c (read_process_output): Make sure the current buffer is
4501 always restored.
4502
409ea3a1
AS
4503 * coding.c (record_conversion_result): Don't modify
4504 Vlast_code_conversion_error for successful result.
4505 (alloc_destination): Don't clobber conversion result. (Bug#1650)
4506
56f00ed2
KH
45072009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4508
4509 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 4510 (load_charset_map): Remove unnecessary code.
56f00ed2 4511
4491c9d2
DR
45122009-04-30 David Reitter <david.reitter@gmail.com>
4513
35f5b128 4514 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
4515 through f24.
4516
6970f632
CY
45172009-04-30 Chong Yidong <cyd@stupidchicken.com>
4518
4519 * xfaces.c (face_at_buffer_position): New arg base_face_id.
4520
4521 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
4522 face_at_buffer_position.
4523 (face_before_or_after_it_pos, get_next_display_element)
4524 (note_mouse_highlight): Update face_at_buffer_position call.
4525
4526 * term.c (term_mouse_highlight):
4527 * msdos.c (IT_note_mouse_highlight):
4528 * fontset.c (Finternal_char_font):
35f5b128 4529 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
4530
4531 * dispextern.h (face_at_buffer_position): Update prototype.
4532
0c616f63
KH
45332009-04-30 Kenichi Handa <handa@m17n.org>
4534
35f5b128 4535 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 4536
ad3aaf33
AS
45372009-04-29 Andreas Schwab <schwab@linux-m68k.org>
4538
4539 * callproc.c (Fcall_process): Fix GC protection. Make sure
4540 current buffer is always restored.
4541
c3c963a0
YM
45422009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4543
4544 * atimer.c (init_atimer): Also clear stopped_atimers.
4545
4546 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
4547
7e3386cb
YM
4548 * process.c (create_process): Clean up merger residues of
4549 2008-07-17 change.
4550
91f68422
CY
45512009-04-29 Ulrich Mueller <ulm@gentoo.org>
4552
4553 * lread.c (Vread_circle): New variable.
4554 (read1): Disable recursive read if Vread_circle is nil.
4555
24b34550
KH
45562009-04-29 Kenichi Handa <handa@m17n.org>
4557
4558 * fontset.h (set_default_ascii_font): Delete extern.
4559
4560 * fontset.c (set_default_ascii_font): Delete this unused function.
4561
4562 * frame.c (x_set_font): When ARG is a font-object, check if the
4563 font-object matches with the ASCII font-spec of the frame's
9c358bda 4564 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 4565
77bf07e1
AS
45662009-04-28 Andreas Schwab <schwab@linux-m68k.org>
4567
4568 * fns.c (Flocale_info): Protect vector from GC during decoding.
4569
4570 * process.c (Fstart_process): Protect argv strings from GC during
4571 encoding.
4572
2c55aacf
AS
45732009-04-27 Andreas Schwab <schwab@linux-m68k.org>
4574
4575 * sysdep.c: Include <ctype.h>.
4576
b892d3c9
DR
45772009-04-27 David Reitter <david.reitter@gmail.com>
4578
35f5b128 4579 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
4580 Remove commented-out code.
4581
9d0644c4
JB
45822009-04-26 Johan Bockgård <bojohan@gnu.org>
4583
4584 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4585
b7053016
JR
45862009-04-25 Jason Rumney <jasonr@gnu.org>
4587
4588 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
4589
4e8231f3
YM
45902009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4591
4592 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
4593 Swap bytes in short integer if fringe bitmap width > 8.
4594
493dcf2c
KH
45952009-04-23 Kenichi Handa <handa@m17n.org>
4596
4597 * xfaces.c (Fx_list_fonts): If a font size is specified in
4598 PATTERN, set it in returned scalable fonts.
4599
401e9e57
CY
46002009-04-22 Chong Yidong <cyd@stupidchicken.com>
4601
708e05dc
CY
4602 * keyboard.c (Fset_input_meta_mode): Doc fix.
4603
4604 * dispnew.c (Fsend_string_to_terminal): Doc fix.
4605
1ac9108a 4606 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
4607
4608 * coding.c (Fterminal_coding_system): Doc fix.
4609
4610 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
4611 (Fx_display_pixel_height, Fx_display_planes)
4612 (Fx_display_color_cells, Fx_server_max_request_size)
4613 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4614 (Fx_display_mm_height, Fx_display_mm_width)
4615 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
4616 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
4617 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
4618 (check_x_display_info): Handle terminal objects instead of
4619 terminal ids.
4620
401e9e57
CY
4621 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
4622 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
4623 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
4624 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 4625
df80c7f0
KH
46262009-04-21 Kenichi Handa <handa@m17n.org>
4627
5a8f12af 4628 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 4629 (font_score): Check AVGWIDTH too.
908567ef 4630
df80c7f0
KH
4631 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
4632 worst case.
1ac9108a
SM
4633 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
4634 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 4635
705af33f
JR
46362009-04-19 Jason Rumney <jasonr@gnu.org>
4637
4638 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 4639 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
4640
4641 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
4642 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
4643 get_phys_cursor_geometry.
4644
b71ac3dd 4645 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
4646 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
4647 using get_phys_cursor_geometry.
4648
4649 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
4650 correctly calculated.
4651
dc2933eb
JD
46522009-04-19 Jan Djärv <jan.h.d@swipnet.se>
4653
1ac9108a
SM
4654 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
4655 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
4656 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
4657 is deprecated.
4658
973e7849
AS
46592009-04-18 Andreas Schwab <schwab@linux-m68k.org>
4660
4661 * font.c (font_put_frame_data): Use xfree instead of free.
4662
314d66f4
JB
46632009-04-17 Juanma Barranquero <lekktu@gmail.com>
4664
4665 * w32font.c (Qja, Qko): Remove declarations.
4666 (syms_of_w32font): Don't DEFSYM them.
4667
cf702558
CY
46682009-04-17 Chong Yidong <cyd@stupidchicken.com>
4669
4670 * font.c (Qja, Qko): Move definitions here from ftfont.c.
4671
4672 * font.h (Qja, Qko): Extern them.
4673
4674 * ftfont.c (Qja, Qko): Remove declarations.
4675
4676 * xfont.c (Qja, Qko): Remove declarations.
4677
b50504f5
KH
46782009-04-17 Kenichi Handa <handa@m17n.org>
4679
bde25748
KH
4680 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4681 string from a vector to handle Latin-1 characters correctly.
4682
b50504f5
KH
4683 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4684 entity even if the cache hits.
4685
f4646fff
AS
46862009-04-16 Andreas Schwab <schwab@linux-m68k.org>
4687
4688 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 4689 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 4690
e7deaab0
AS
4691 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4692 * lisp.h: Adjust prototypes.
4693
0a0e7d49
CY
46942009-04-16 Chong Yidong <cyd@stupidchicken.com>
4695
4696 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4697 change (Bug#3003).
4698
3c908a57
KH
46992009-04-16 Kenichi Handa <handa@m17n.org>
4700
1ac9108a 4701 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
4702
4703 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4704 adstyle.
4705
4706 * ftfont.c (Qja, Qko): Don't make them static.
4707 (enum ftfont_cache_for): New enum.
4708 (fc_charset_table): Undo the previous change.
4709 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
4710 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4711 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
4712 non-scarable font, try to get AVERAGE_WIDTH.
4713 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4714 Change ft_face_cache from a list of a hash-table. Don't check
4715 `ja' and `ko' adstyle here.
4716 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4717 FTFONT_CACHE_FOR_CHARET.
4718 (ftfont_get_charset): Undo the previous change.
1ac9108a 4719 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
4720 (ftfont_close): Likewise.
4721 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4722
4723 * font.c (font_sort_entites): Change the meaning of the arg
4724 BEST-ONLY. Don't optimize for VEC of lenght 1.
4725 (font_select_entity): Just return the value of font_sort_entites.
4726
4727 * xfaces.c (merge_face_vectors): Reflect font properties in
4728 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4729 font_clear_prop if a face attribute doesn't change.
4730
3c908a57
KH
4731 * charset.h (charset_ksc5601): Extern it.
4732
4733 * charset.c (charset_ksc5601): New variable.
4734 (Fdefine_charset_internal): Set charset_ksc5601.
4735 (init_charset_once): Initialize charset_ksc5601 to -1.
4736
d65859c3
DN
47372009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4738
4739 * fileio.c (history_delete_duplicates): Remove unused declaration.
4740
4741 * callint.c (history_delete_duplicates): New declaration.
4742 (Fcall_interactively): Remove command history duplicates when
4743 history_delete_duplicates is true.
4744
3ba010e5
EZ
47452009-04-14 Eli Zaretskii <eliz@gnu.org>
4746
4747 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4748
06f19b91
KH
47492009-04-14 Kenichi Handa <handa@m17n.org>
4750
4751 * font.c (Ffont_info): Fix docstring. Fix the second element of
4752 the returned value (bug#2949).
4753
2cce8bfc
CY
47542009-04-14 Chong Yidong <cyd@stupidchicken.com>
4755
4756 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4757
d156542d
KH
47582009-04-14 Kenichi Handa <handa@m17n.org>
4759
4760 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4761 encoding charset is ascii_compatible.
4762
4763 * charset.c (Fdefine_charset_internal): Make charset
4764 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4765 code_offset is 0, and covers all ASCII characters.
4766
86fa089e
SM
47672009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4768
4769 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4770 (ns_string_to_pasteboard_internal):
4771 * nsmenu.m (process_dialog):
4772 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4773 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4774 * lisp.h (Fx_load_color_file): Declare.
4775
a8a3728b
KH
47762009-04-13 Kenichi Handa <handa@m17n.org>
4777
1ac9108a 4778 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
4779 (font_select_entity): Suppress the code to optimize for the same
4780 kind of fonts.
4781 (font_load_for_lface): Get a font that supports at least ASCII
4782 characters.
4783
4784 * ftfont.c (Qja, Qko): New variables.
4785 (fc_charset_table): Delete uniquifier data for iso8859-1.
4786 (ftfont_get_latin1_charset): New function.
4787 (get_adstyle_property): New function.
4788 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4789 bitmap fonts.
4790 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4791 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4792 `ko' or `ja'.
4793 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 4794 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
4795 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4796 property.
4797 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4798 (syms_of_ftfont): DEFSYM Qja and Qko.
4799
483670b5
KH
48002009-04-09 Kenichi Handa <handa@m17n.org>
4801
12b55765
KH
4802 * charset.c (map_charset_chars): For a charset of `superset'
4803 method, fix calculation of code range.
4804
483670b5
KH
4805 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4806 from the list of extra properties.
4807 (font_clear_prop): Be sure to delete `:name' font property.
4808
57d3b93b
KH
48092009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4810
b4b2c2ca
YM
4811 * dispnew.c (redraw_overlapping_rows): Fix detection of
4812 overlapping for topmost and bottommost rows.
4813
1ac9108a 4814 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 4815
472c3609
JR
48162009-04-06 Jason Rumney <jasonr@gnu.org>
4817
4818 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4819
ab193662
KH
48202009-04-06 Kenichi Handa <handa@m17n.org>
4821
4822 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4823
4824 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4825
0c26f026
KH
48262009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4827
4828 * ftfont.c (ftfont_open): Fix checking of the return value of
4829 FT_Load_Char. Fix setting font->underline_thickness.
4830
e173bbce
CY
48312009-04-04 Chong Yidong <cyd@stupidchicken.com>
4832
4833 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4834 (Fterminal_parameters, Fterminal_parameter)
4835 (Fset_terminal_parameter): In doc string, refer to terminal
4836 objects rather than terminal ids.
4837
693a2698
EZ
48382009-04-04 Eli Zaretskii <eliz@gnu.org>
4839
4840 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4841 ret_lim_data. (Bug#2867)
4842
d5221487
CY
48432009-04-03 Chong Yidong <cyd@stupidchicken.com>
4844
4845 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4846 so they don't get wider than the window, matching 2006-01-23
4847 change to the partner function in xdisp.c (Bug#2800).
4848
223509a3
KH
48492009-04-03 Kenichi Handa <handa@m17n.org>
4850
4851 * print.c (print_object): Make each lowest sub_char_table start a
4852 new line (Bug#2866).
4853
74fcd0b1
KH
48542009-04-02 Kenichi Handa <handa@m17n.org>
4855
4856 * fontset.c (fontset_font): Record no-font when a fontset
4857 explicitly tells not to try another font-specs.
4858
c542407d
SM
48592009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4860
4861 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4862
e3869731
KH
48632009-03-30 Kenichi Handa <handa@m17n.org>
4864
d8d2f142
KH
4865 * fontset.c (fontset_from_font): Specify only registry in a
4866 font-spec for all characters supported by that registry.
4867
e3869731
KH
4868 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4869 even if HAVE_M17N_FLT is not defined.
4870
5da5f805
CY
48712009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4872
4873 * ftfont.c: Conditionalize prototyping and use of
4874 ftfont_variation_glyphs.
4875
ab226c50
SM
48762009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4877
9628fed7
SM
4878 * frame.c (delete_frame): Work around compiler bug.
4879
4880 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4881 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4882 Some more EMACS_INT.
4883 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4884
4885 * xdisp.c (dump_glyph): Fix typo.
4886
ae19ba7c
SM
4887 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4888 (adjust_markers_gap_motion, adjust_markers_for_delete)
4889 (adjust_markers_for_insert, adjust_point)
4890 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4891 (make_gap, copy_text, count_size_as_multibyte, insert)
4892 (insert_and_inherit, insert_before_markers)
4893 (insert_before_markers_and_inherit, insert_1)
4894 (count_combining_before, count_combining_after, insert_1_both)
4895 (insert_from_string, insert_from_string_before_markers)
4896 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4897 (insert_from_buffer_1, adjust_after_replace)
4898 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4899 (replace_range_2, del_range, del_range_1, del_range_byte)
4900 (del_range_both, del_range_2, modify_region)
4901 (prepare_to_modify_buffer, signal_before_change)
4902 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4903 for buffer positions and sizes.
4904 * lisp.h: Adjust prototypes accordingly.
4905
4906 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4907 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4908 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4909
ab226c50
SM
4910 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4911
46dfb8fb
JD
49122009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4913
4914 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4915 lines and columns so we keep the same pixel height and width.
4916
4917 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4918 the property _NET_WM_STATE has changed.
46dfb8fb
JD
4919 (x_handle_net_wm_state): New function to update frame parameter
4920 fullscreen.
4921 (x_term_init): Initialize atoms for _NET_WM_STATE.
4922
4923 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4924
d347e494
SM
49252009-03-27 Kevin Ryde <user42@zip.com.au>
4926
4927 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4928 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4929 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4930 (Fgpm_mouse_stop): Pass that new parameter.
4931 * termhooks.h (close_gpm): Adjust prototype.
4932
84db11d6
SM
49332009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4934
c95a5008
SM
4935 * lisp.h (Fx_focus_frame): Declare.
4936
84db11d6
SM
4937 * callint.c (Fcall_interactively): For '^' just delegate the work to
4938 handle-shift-selection.
4939 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4940
0a1958d6
CY
49412009-03-24 Chong Yidong <cyd@stupidchicken.com>
4942
0bfdff23
CY
4943 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4944
0a1958d6
CY
4945 * data.c (Qinteractive_form): New variable.
4946 (Finteractive_form): Use it.
4947
4948 * eval.c (Fcommandp): Use Qinteractive_form.
4949
58aec0d6
JR
49502009-03-24 Jason Rumney <jasonr@gnu.org>
4951
4952 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4953 Calculate total size precisely. Decode environment variables
4954 before substituting. (Bug#38)
4955
553dd618
KH
49562009-03-24 Kenichi Handa <handa@m17n.org>
4957
4958 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 4959 encoding (Bug#2722).
553dd618 4960
c39ea606
JD
49612009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4962
4963 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4964 that gdpy is set.
4965
bc9b2b5e
AM
49662009-03-22 Alan Mackenzie <acm@muc.de>
4967
4968 * callint.c (Finteractive): Clarify the doc string - even
4969 promptless elements need \n separators.
4970
9f995a76
JR
49712009-03-22 Jason Rumney <jasonr@gnu.org>
4972
4973 * w32term.c (syms_of_w32term): Doc fix for
4974 x-use-underline-position-properties.
4975
22749e9a
EZ
49762009-03-21 Eli Zaretskii <eliz@gnu.org>
4977
4978 * w32.c (getpwuid): Change argument type to unsigned.
4979 (struct w32_id): Change type of `rid' member to unsigned.
4980 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4981 argument ID to unsigned. All callers changed.
4982 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4983
e00553bf
EZ
49842009-03-20 Eli Zaretskii <eliz@gnu.org>
4985
4986 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4987 negative, produce a float value.
4988
4989 * dired.c (make_uid, make_gid): New functions.
4990 (Ffile_attributes): Use them to avoid negative UID and GID.
4991
f761d6b6
JB
49922009-03-20 Juanma Barranquero <lekktu@gmail.com>
4993
4994 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4995 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4996 Fix typos in docstrings.
4997
d507f8d7
KH
49982009-03-19 Kenichi Handa <handa@m17n.org>
4999
5000 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
5001 changed, use font_load_for_lface to get a new font object.
5002 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
5003
5004 * frame.c (x_set_font): Handle the case that ARG is a cons.
5005
c68845e0
GM
50062009-03-19 Glenn Morris <rgm@gnu.org>
5007
5008 * fileio.c (Fsubstitute_in_file_name): Doc fix.
5009
bfa49dd1
CY
50102009-03-19 Chong Yidong <cyd@stupidchicken.com>
5011
5012 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
5013
8458d4c1
KH
50142009-03-19 Kenichi Handa <handa@m17n.org>
5015
5016 * charset.c (load_charset_map_from_file): When a mapfile can't be
5017 loaded, signal an error.
5018
78e7d1fe
EZ
50192009-03-18 Eli Zaretskii <eliz@gnu.org>
5020
5021 * dired.c (Ffile_attributes): Make sure UID and GID are always
5022 positive, even if the value is too large for a positive EMACS_INT.
5023 Doc fix.
5024
5025 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
5026
5da9fdfa
YM
50272009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5028
5029 * xmenu.c (xdialog_show): Move Fredisplay call ...
5030 (Fx_popup_dialog): ... here.
5031
7519c40d
SM
50322009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
5033
5034 * dired.c (file_name_completion): Disable the first optimization just
5035 installed, since it is not implemented correctly.
5036
2cd298e2
SM
50372009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5038
5039 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 5040 only if the entry can affect bestmatch.
2cd298e2
SM
5041 Stop the search early, as Ftry_completion already does.
5042
48d37adf
CY
50432009-03-17 Chong Yidong <cyd@stupidchicken.com>
5044
e10c9c93 5045 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 5046
9286b16a
CY
50472009-03-15 Chong Yidong <cyd@stupidchicken.com>
5048
5049 * keyboard.c (parse_menu_item): Don't display remappings as menu
5050 equivalent bindings (Bug#788).
5051
f7b146dc
JR
50522009-03-15 Jason Rumney <jasonr@gnu.org>
5053
5054 * w32term.h (WM_EMACS_PAINT): New message.
5055 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
5056 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
5057 before passing to lisp thread. (Bug#950)
5058
f761d6b6 50592009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 5060
d93f9575
CY
5061 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
5062 variable as it was never reset.
5063 (ns_term_init): Remove initialization of Lisp-settable defaults
5064 and ns_expand_space.
5065 (-setPanelFromDefaultValues): Remove ns_expand_space.
5066 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
5067 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
5068 i.e. no additional spacing, similar to Carbon port.
5069
d93f9575
CY
5070 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
5071 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 5072
305018ec
JD
50732009-03-14 Jan Djärv <jan.h.d@swipnet.se>
5074
5075 * sound.c (alsa_configure): Remove call to deprecated
5076 snd_pcm_sw_params_set_xfer_align.
5077
f761d6b6 50782009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
5079
5080 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
5081 after clicking in a detached tool bar.
5082 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
5083
46e722a9
SM
50842009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
5085
348db3dd
SM
5086 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
5087 int/Lisp_Object mixup).
46e722a9 5088
a3d16f39
KH
50892009-03-13 Kenichi Handa <handa@m17n.org>
5090
5091 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 5092 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
5093 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
5094 (set_fontset_font): Change ARG to a vector. Handle range_list in
5095 ARG correctly.
5096 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 5097 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
5098 the above change.
5099 (fontset_from_font): Fix previous change.
fe24f56a 5100 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
5101 entry. If FONTSET is the default fontset, don't set the extra
5102 slot of the returning char-table.
5103
b066e6b6
JB
51042009-03-12 Juanma Barranquero <lekktu@gmail.com>
5105
5106 * nsfns.m (Fx_close_connection): Doc fix.
5107 (Fns_do_applescript): Reflow docstring.
5108 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
5109 (Fx_display_pixel_width, Fx_display_pixel_height)
5110 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
5111 Fix typos in docstrings.
5112 (Fns_set_alpha): Fix typos in error messages.
5113
d472514e 51142009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 5115
d472514e 5116 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
5117 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
5118 were used for such events.
5119
d472514e
JB
5120 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
5121 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 5122
d472514e 5123 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
5124 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
5125
fb930676
KH
51262009-03-11 Kenichi Handa <handa@m17n.org>
5127
ff85581a
KH
5128 * font.h (font_open_by_spec): Extern it.
5129
c50b7e98
KH
5130 * font.c (font_open_by_spec): New function.
5131 (font_open_by_name): Use font_open_by_spec.
5132
fb930676
KH
5133 * frame.c (x_set_font): When ARG is a font-object, don't alter the
5134 fontset of the frame.
5135
5136 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
5137 modify the default font of frames that use this fontset.
5138 (num_auto_fontsets): New variable.
5139 (fontset_from_font): Use num_auto_fontsets to decide a fontset
5140 name. Be sure to set FONTSET_ASCII to the correct font name.
5141 (update_auto_fontset_alist): New function.
5142
df4e8455
JB
51432009-03-11 Juanma Barranquero <lekktu@gmail.com>
5144
5145 * makefile.w32-in: Update dependencies.
5146
0a375797
AR
51472009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5148
5149 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
5150
61313fa3
SM
51512009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5152
5153 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
5154
b55103fb
CY
51552009-03-10 Chong Yidong <cyd@stupidchicken.com>
5156
5157 * lread.c (Feval_buffer): Doc fix.
5158
dde2559c
KH
51592009-03-09 Kenichi Handa <handa@m17n.org>
5160
5161 * charset.c (Qfile_name_handler_alist): Extern it.
5162 (load_charset_map_from_file): Temporarily bind
5163 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
5164
df4e8455 51652009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 5166
47f588bb
GM
5167 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
5168 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 5169
4ddf94bd
AR
51702009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5171
4c9bdfc2
AR
5172 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
5173 (x_set_window_size): Change back to calculated method of setting
5174 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
5175 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
5176 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
5177
fe41ae9e
AR
5178 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
5179
4c9bdfc2
AR
5180 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
5181 accelerator in parens under GNUstep.
5182
825d0875
KH
51832009-03-06 Kenichi Handa <handa@m17n.org>
5184
5185 These changes are to detect incorrect composition sequence without
f3b3be74 5186 looking ahead the source. (Bug#2370)
825d0875
KH
5187
5188 * coding.h: Include "composite.h".
5189 (enum compisition_state): New enum.
5190 (struct compisition_status): New struct.
5191 (struct iso_2022_spec): New member cmp_status.
5192 (struct emacs_mule_spec): New struct.
5193 (struct coding_system): New members ctext_extended_segment_len and
5194 embedded_utf_8. Change the union member
5195 spec.emacs_mule_full_support to spec.emacs_mule.
5196
5197 * coding.c (CODING_ISO_CMP_STATUS): New macro.
5198 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 5199 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
5200 (ADD_COMPOSITION_DATA): New arg nbytes.
5201 (emacs_mule_char): New arg cmp_status.
5202 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
5203 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
5204 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
5205 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
5206 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
5207 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
5208 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
5209 (EMACS_MULE_COMPOSITION_END): New macro.
5210 (emacs_mule_finish_composition): New function.
5211 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
5212 (decode_coding_emacs_mule): Avoid long looking ahead while
5213 handling composition.
5214 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
5215 (ENCODE_COMPOSITION_RULE): New macro.
5216 (finish_composition): New function.
5217 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
5218 (DECODE_COMPOSITION_START): New implementation.
5219 (DECODE_COMPOSITION_END): Likewise.
5220 (STORE_COMPOSITION_RULE): New macro.
5221 (decode_coding_iso_2022): Avoid long looking ahead while handling
5222 composition, CTEXT extended segment, and embedded UTF-8.
5223 (setup_coding_system): For a coding of type iso-2022, reset
5224 CODING_ISO_EXTSEGMENT_LEN (coding) and
5225 CODING_ISO_EMBEDDED_UTF_8 (coding).
5226 (get_translation): Delete arguments last_block, from_nchars,
5227 to_nchars. Callers changed.
5228 (produce_chars): Don't modify charbuf. Adjusted for the change of
5229 get_translation.
98a326f7 5230 (produce_composition): Adjust for the new annotation sequence.
825d0875 5231 (handle_composition_annotation): Likewise.
98a326f7 5232 (consume_chars): Adjust for the change of get_translation.
825d0875 5233
ccbc4452
AR
52342009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
5235
4ddf94bd 5236 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 5237
988a7ddb
KH
52382009-03-05 Kenichi Handa <handa@m17n.org>
5239
5240 * font.c (font_select_entity): New function.
5241 (font_find_for_lface): Use font_select_entity to select a font.
5242
5243 * fontset.c (fontset_find_font): If a font found without
a8a3728b 5244 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
5245 font with C restriction.
5246
98a326f7 52472009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 5248
be1bce46 5249 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 5250
10ea2b82
JR
52512009-03-04 Jason Rumney <jasonr@gnu.org>
5252
2c93b248 5253 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 5254 characters that have already been read. (Bug#2569)
2c93b248 5255
10ea2b82
JR
5256 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
5257 Log an error message if check_image_size failed.
5258 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 5259 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 5260
71a0c011
EZ
52612009-03-02 Eli Zaretskii <eliz@gnu.org>
5262
5263 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
5264 when decoding process output.
5265
2f63bba8
RS
52662009-03-01 Richard M Stallman <rms@gnu.org>
5267
5268 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
5269
5270 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
5271
0a9564cb
EZ
52722009-02-28 Eli Zaretskii <eliz@gnu.org>
5273
5274 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
5275 (decode_coding_emacs_mule, decode_coding_iso_2022)
5276 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5277 (decode_coding_raw_text, decode_coding_charset)
5278 (setup_coding_system, decode_eol, decode_coding, consume_chars):
5279 Honor inhibit-eol-conversion. (Bug #2186)
5280
449148b3
JR
52812009-02-28 Jason Rumney <jasonr@gnu.org>
5282
5283 * coding.c (detect_coding_charset): If not checking latin extra,
5284 fail on characters between 0x80 and 0xA0. (Bug#2354)
5285
a4aee864
EZ
52862009-02-28 Eli Zaretskii <eliz@gnu.org>
5287
5288 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 5289 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 5290
d88bee5a
GM
52912009-02-27 Glenn Morris <rgm@gnu.org>
5292
5293 * callint.c (Finteractive): Doc fix.
5294
a808f22d
KH
52952009-02-27 Kenichi Handa <handa@m17n.org>
5296
5297 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
5298
caf8d60c
CY
52992009-02-27 Chong Yidong <cyd@stupidchicken.com>
5300
5301 * font.c (font_style_to_value): Set value for unknown symbols to
5302 100 instead of 255.
b61137ea
CY
5303 (weight_table, slant_table, width_table): Treat "unspecified" as
5304 the default value.
caf8d60c 5305
1a0de25c
JB
53062009-02-26 Juanma Barranquero <lekktu@gmail.com>
5307
5308 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
5309
8fc45744
JB
53102009-02-25 Juanma Barranquero <lekktu@gmail.com>
5311
107bd7d1
JB
5312 * lread.c (Fload): Stop checking Vloads_in_progress and signal
5313 error as soon as a recursive load is detected.
8fc45744 5314
f097e223
AR
53152009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5316
5317 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
5318 before caching.
5319
8810a12f
KH
53202009-02-24 Kenichi Handa <handa@m17n.org>
5321
5322 * fontset.c (fontset_find_font): Fix the condition for checking
5323 unavailable font.
5324
2c7d1565
GM
53252009-02-24 Glenn Morris <rgm@gnu.org>
5326
5327 * xfaces.c (Finternal_set_font_selection_order): Remove leading
5328 whitespace that confuses documentation.
5329
a20878b6
MB
53302009-02-23 Miles Bader <miles@gnu.org>
5331
5332 * process.c (Flist_system_processes, Fprocess_attributes)
5333 (syms_of_process): Rename `system-process-attributes' to
5334 `process-attributes'.
5335
b3b58c01
AS
53362009-02-22 Andreas Schwab <schwab@linux-m68k.org>
5337
1b3b981b
AS
5338 * coding.h (struct coding_system): Make safe_charsets a pointer to
5339 unsigned char.
5340 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
5341 being 255.
5342 (SAFE_CHARSET_P): Likewise.
5343 (setup_iso_safe_charsets): Properly setup safe_charsets.
5344 (Fdefine_coding_system_internal): Likewise.
5345 (setup_coding_system): Likewise. Remove unneeded casts.
5346 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
5347 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
5348 unneeded casts.
5349
b3b58c01
AS
5350 * insdel.c (del_range_2): Don't modify gap contents when called
5351 from decode_coding_object. (Bug#1809)
5352
0b6f228c
CY
53532009-02-21 Chong Yidong <cyd@stupidchicken.com>
5354
5355 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
5356 Qfont_object.
5357 (Ftype_of): Recognize font objects.
5358
5359 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
5360
5361 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
5362 moved to data.c.
5363
52f8870b
AR
53642009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5365
5366 * nsterm.m (x_make_frame_invisible): Unset async_visible,
5367 async_iconified. Based on a patch by Christian Lynbech
5368 <christian.lynbech@tieto.com>.
5369 (EmacsView-windowDidMiniaturize:): Unset async_visible.
5370
7087d5e9
GM
53712009-02-20 Glenn Morris <rgm@gnu.org>
5372
5373 * syntax.c (Fskip_chars_forward): Fix doc typo.
5374
41d2ceef
CY
53752009-02-20 Chong Yidong <cyd@stupidchicken.com>
5376
5377 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
5378
1a3b7ca6
CY
53792009-02-19 Chong Yidong <cyd@stupidchicken.com>
5380
5381 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
5382
73cce38d
KH
53832009-02-19 Kenichi Handa <handa@m17n.org>
5384
5385 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 5386 Don't overflow coding->carryover. (Bug#2370)
73cce38d 5387
a51092ee
DN
53882009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
5389
5390 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
5391
c423ecca
KH
53922009-02-18 Kenichi Handa <handa@m17n.org>
5393
5394 * font.c (font_check_otf_features): Fix handling of `nil' element.
5395 (Ffont_spec): Describe :lang and :otf in the docstring.
5396
4c1958f4
AS
53972009-02-16 Andreas Schwab <schwab@suse.de>
5398
5399 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
5400 string.
5401
5704f39a
KH
54022009-02-16 Kenichi Handa <handa@m17n.org>
5403
5404 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 5405 (Bug#1723)
5704f39a 5406
8f0085aa
CY
54072009-02-14 Chong Yidong <cyd@stupidchicken.com>
5408
a057d86a 5409 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
5410
5411 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
5412 (handle_line_prefix): Suppress wrapping of wrap prefixes.
5413
aff01dd9
EZ
54142009-02-14 Eli Zaretskii <eliz@gnu.org>
5415
5416 * msdos.c (MAX_SCREEN_BUF): New macro.
5417 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
5418 Encode the entire run of glyphs sharing the same face, instead of
5419 doing that one glyph at a time (fixes a bug with displaying
5420 double-size characters).
5421
ba301db3
AR
54222009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
5423
5424 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
5425
5426 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
5427 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 5428 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
5429
5430 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 5431 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 5432
51d861de
SM
54332009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
5434
ac146f82 5435 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
5436 invisible areas.
5437
7fed8996
JR
54382009-02-12 Jason Rumney <jasonr@gnu.org>
5439
631ea4fb
JR
5440 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
5441 (add_font_entity_to_list): Call check_face_name even when family
5442 is unspecified.
5443
cb4a3e42
JR
5444 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5445 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 5446 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 5447
7fed8996 5448 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 5449 raster fonts. (Bug#2219)
7fed8996 5450
895416e3
KH
54512009-02-12 Kenichi Handa <handa@m17n.org>
5452
5453 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
5454 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
5455 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 5456 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5457 (find_automatic_composition): While looking forward and backward,
5458 check static composition. Fix where to stop looking forward.
5459 (composition_adjust_point): Fix checking of static composition.
5460 (Fcomposition_get_gstring): Pay attention to
1dacf998 5461 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5462
5463 * lisp.h (fast_looking_at): Extern it.
5464
5465 * search.c (fast_looking_at): New function.
5466
51d861de 5467 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
5468 <struct glyph>.u.cmp.to.
5469 (append_composite_glyph): Likewise.
5470
51d861de 5471 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
5472 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
5473 composition.
51d861de 5474 (append_composite_glyph): Adjust for the change of
895416e3
KH
5475 <strcut glyph>.u.cmp.to.
5476
8510724d
JB
54772009-02-11 Juanma Barranquero <lekktu@gmail.com>
5478
5479 * casetab.c (init_casetab_once):
5480 * coding.c (ALLOC_CONVERSION_WORK_AREA):
5481 * font.c (font_update_lface):
5482 * fontset.c (Fnew_fontset):
5483 * ftfont.c (ftfont_drive_otf):
5484 * xfont.c (xfont_open):
5485 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
5486
294fa707
SM
54872009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5488
5489 * fileio.c (Fwrite_region): !NILP -> CONSP.
5490
b5bfebec
AS
54912009-02-10 Andreas Schwab <schwab@suse.de>
5492
5493 * process.c (send_process): Properly relocate pointer into data
adab88bd 5494 when using encoded data. (Bug#2272)
b5bfebec 5495
cb84a2be
KH
54962009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
5497
5498 * coding.c (detect_coding_charset): Fix previous change.
5499
89e09428
JR
55002009-02-08 Jason Rumney <jasonr@gnu.org>
5501
5502 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 5503 disappeared while hourglass was displayed. (Bug #2193)
89e09428 5504
4470a277
AS
55052009-02-07 Andreas Schwab <schwab@suse.de>
5506
5507 * unexelf.c (unexec): Fix error message.
5508
3175b12a
AR
55092009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
5510
5511 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 5512 when modal window is active. (Bug #2152)
3175b12a
AR
5513 (applicationShouldTerminate:): Remove now-unneeded while loop
5514 around NSRunAlertPanel.
5515
5516 * nsmenu.m (popupSession): New file-global variable.
5517 (pop_down_menu): End the popupSession before closing dialog.
5518 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
5519 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
5520 don't query NSApp for events (just sleep instead).
5521
8434d0b8
EZ
55222009-02-07 Eli Zaretskii <eliz@gnu.org>
5523
51d861de
SM
5524 * coding.c (syms_of_coding) <translation-table-for-input>:
5525 Modify doc string to discourage use for character code unification.
8434d0b8 5526
aa82edfd
CY
55272009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5528
5529 * atimer.c (run_timers): Update pending_atimers.
5530
2d283c7c
CY
55312009-02-06 Chong Yidong <cyd@stupidchicken.com>
5532
eb306cab
CY
5533 * image.c (svg_load_image): Fix last change.
5534
2d283c7c
CY
5535 * xfns.c (Fx_create_frame): Signal an error if no font is
5536 found (Bug#2147).
5537
4d8e170e
JB
55382009-02-05 Juanma Barranquero <lekktu@gmail.com>
5539
5540 * character.c (syms_of_character) <script-representative-chars>:
5541 Fix typo in docstring.
5542
c96169a0
AR
55432009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5544
5545 * nsmenu.m (pop_down_menu): New function.
5546 (ns_popup_dialog): Call it on unwind.
5547 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
5548 call timer_check() (Bug#2154).
5549 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
5550 handling_signal is set.
5551 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
5552
31fd7c5c 5553 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
5554
5555 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
5556
5557 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
5558
51d861de
SM
5559 * keyboard.c (poll_for_input_1, handle_async_input):
5560 Set handling_signal under HAVE_NS.
c96169a0 5561
aacd8ba1
GM
55622009-02-04 Glenn Morris <rgm@gnu.org>
5563
5564 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
5565
4cb75c4b
KH
55662009-02-04 Kenichi Handa <handa@m17n.org>
5567
5568 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
5569
5570 * charset.c (Fchar_charset): New optional arg restriction.
5571
5572 * coding.h (coding_system_charset_list): Extern it.
5573
5574 * coding.c (coding_system_charset_list): New function.
5575
5576 * composite.c: Include coding.h and termhooks.h.
5577 (composition_gstring_p): Fix for the terminal case.
5578 (composition_gstring_width): Likewise.
5579 (fill_gstring_body): Likewise.
5580 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
5581 the frame.
5582 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
5583 is within a composition.
867d4bb3 5584 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
5585
5586 * term.c (encode_terminal_code): Fix handling of composition.
5587 (produce_composite_glyph): For static composition, get pixel_width
5588 from struct composition.
5589
826ba17e
AS
55902009-02-02 Andreas Schwab <schwab@suse.de>
5591
5592 * unexelf.c (unexec): Handle unaligned bss offset.
5593
8ad093db
AR
55942009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5595
5596 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
5597 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 5598
8ad093db
AR
5599 * keyboard.c (handle_interrupt): Don't call
5600 quit_throw_to_read_char() under NS.
d0a76a6e 5601
8ad093db
AR
5602 * blockinput.h: Remove NS-specific code.
5603
4d18a7a2
DN
56042009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
5605
db878925
DN
5606 * dispnew.c (window_change_signal): Don't try to get the size of a
5607 suspended tty frame.
5608 * term.c (Fresume_tty): Resize if the size has changed while the
5609 tty was suspended.
5610
4d18a7a2
DN
5611 * alloc.c (mark_stack): Properly conditionalize previous change.
5612
8984df7c
JB
56132009-01-30 Juanma Barranquero <lekktu@gmail.com>
5614
5615 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
5616 * w32term.c (w32_read_socket) [SYNC_INPUT]:
5617 Remove; this code is not used on Windows.
5618
75f4f1ac
EZ
56192009-01-30 Eli Zaretskii <eliz@gnu.org>
5620
5621 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
5622 EOLs that also has stray ^M characters.
5623
07a1e794
JB
56242009-01-30 Juanma Barranquero <lekktu@gmail.com>
5625
5626 * atimer.c (run_timers, alarm_signal_handler):
5627 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
5628 * w32inevt.c (w32_console_read_socket):
5629 * w32term.c (w32_read_socket):
5630 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
5631
a8b11cc9
CY
56322009-01-30 Chong Yidong <cyd@stupidchicken.com>
5633
5634 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
5635 Initialize it as a relative filename pattern.
5636 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
5637 (Fcall_process_region): Simplify temp file creation using
5638 temporary-file-directory.
5639
c279587b
EZ
56402009-01-29 Eli Zaretskii <eliz@gnu.org>
5641
5642 * msdos.c: Rename pending_signals to msdos_pending_signals.
5643 (sig_suspender, sigprocmask): Adjust.
5644
a8fe3242
CY
56452009-01-29 Chong Yidong <cyd@stupidchicken.com>
5646
5647 * keyboard.c (pending_signals): New var.
5648 (poll_for_input, input_available_signal, init_keyboard): Set it.
5649 (process_pending_signals): New function.
5650
5651 * lisp.h (QUIT): Check pending_signals instead of
5652 interrupt_input_pending. Use process_pending_signals.
5653
51d861de 5654 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 5655
51d861de 5656 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
5657
5658 * sysdep.c (emacs_write): Use process_pending_signals.
5659
5660 * xterm.c (XTread_socket): Update pending_signals.
5661
5662 * w32term.c (w32_read_socket): Update pending_signals.
5663
5664 * w32inevt.c (w32_console_read_socket): Update pending_signals.
5665
6570a1c4
KH
56662009-01-29 Kenichi Handa <handa@m17n.org>
5667
5668 * xftfont.c (xftfont_has_char): New function.
5669 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5670
d72a4afa
AR
56712009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5672
5673 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5674 under GNUstep.
5675 (ns_query_color): New declaration.
5676
5677 * nsterm.m (ns_confirm_quit): New variable.
5678 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5679 (EmacsApp-applicationShouldTerminate:): Use it.
5680 (EmacsPrefsController): Let user set it.
5681 (ns_query_color): New function.
5682 (ns_defined_color): Use it.
5683 (ns_initialize): Drop.
5684 (ns_term_init): Add two lines from ns_initialize(), and set
5685 input_interrupt_mode to nil.
5686
5687 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 5688 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 5689
9fe78804
KH
56902009-01-28 Kenichi Handa <handa@m17n.org>
5691
5692 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
5693 (fontset_get_font_group): Remember that no font-group is specified
5694 for C.
9fe78804 5695
fa57de36
CY
56962009-01-27 Chong Yidong <cyd@stupidchicken.com>
5697
930600e9
CY
5698 * fns.c (concat): Check for string overflow (bug#1787).
5699
fa57de36
CY
5700 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5701 Quadruple undo limits (bug#1501).
5702
7179ce7b
KH
57032009-01-27 Kenichi Handa <handa@m17n.org>
5704
5705 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5706 directly use GT_Get_Char_index.
5707
5708 * xftfont.c (struct xftfont_info): New member `index'.
5709
5710 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 5711 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 5712
5be8fcc0
CY
57132009-01-26 Kenichi Handa <handa@m17n.org>
5714
5715 * fontset.c (fontset_find_font): Fix handling of non-cons return
5716 value of fontset_get_font_group.
5717 (fontset_font): Revert last change.
5718
19ae3e61
JR
57192009-01-26 Jason Rumney <jasonr@gnu.org>
5720
5721 * w32font.c (w32font_list_internal): Return quickly if registry is
5722 unknown. Simplify final return.
5723 (add_font_entity_to_list): Break complex logic down into more
5724 manageable chunks. Move unknown registry check to
5725 w32font_list_internal.
5726
8612b71a
AR
57272009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5728
5729 Changes to remove Feval calls from GUI under NS.
5730
d8038940
JB
5731 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5732 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
5733 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5734
5735 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5736 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5737 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5738 instead of NON_ASCII_KEYSTROKE_EVENT.
5739 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5740 (EmacsApp-applicationShouldTerminate:): Query user.
5741 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5742 instead of Feval.
5743
5744 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5745
5746 * keyboard.c (kbd_buffer_get_event): Check for it.
5747 (keys_of_keyboard): Define lispy keys for
5748 ns-put/unput-working-text.
5749
5750 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5751 versions.
5752 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5753
6288ae55
CY
57542009-01-25 Chong Yidong <cyd@stupidchicken.com>
5755
5756 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 5757 setting current_buffer directly. (Bug#2044)
6288ae55 5758
289e7f8f
CY
57592009-01-24 Chong Yidong <cyd@stupidchicken.com>
5760
5ce87308 5761 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 5762 any work. (Bug#1952, bug#1990).
5ce87308 5763
64cc3cf6 5764 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 5765
b3243e6f
AR
57662009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5767
5768 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
5769 (ns_no_defaults): New declaration.
5770 (main): Use it.
e0d2e69a 5771
d900b2af 5772 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 5773
d900b2af 5774 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 5775
d900b2af
AR
5776 * nsterm.m (ns_no_defaults): New variable.
5777 (ns_initialize): Don't read defaults when ns_no_defaults.
5778 (EmacsView-readSelectionFromPasteboard:)
5779 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 5780 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
5781 (ns_dumpglyphs_stretch): New function.
5782 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 5783 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 5784
e0d2e69a
AR
5785 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5786
3ac71f5d
CY
57872009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5788
5789 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5790 call for Sparc64.
5791
3fe53a83
AR
57922009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5793
5794 * nsfns.m:
5795 * nsgui.h:
5796 * nsmenu.m:
5797 * nsselect.m:
5798 * nsterm.h:
5799 * nsterm.m: Remove '23' comments that indicated code added during
5800 update from emacs-20 -> emacs-23.
5801
10f87c6f 58022009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
5803
5804 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 5805 ns_alternate_modifier. (Bug#1217)
a3b53a85 5806
c7cef62d
AR
5807 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5808 Display all shortcuts, including those w/o super modifier.
5809
575fb8bd
AR
5810 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5811
918b848b
CY
58122009-01-22 Chong Yidong <cyd@stupidchicken.com>
5813
5814 * fileio.c (Vwrite_region_post_annotation_function)
5815 (Vwrite_region_annotation_buffers): New vars.
5816 (build_annotations_unwind): Just reset
5817 Vwrite_region_annotation_buffers.
5818 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5819 Call write-region-post-annotation-function.
5820 (build_annotations): Add to Vwrite_region_annotation_buffers if
5821 buffer changes.
5822
a39e2539
AR
58232009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5824
5825 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5826 Tiger.
51d861de
SM
5827 * nsfns.m (ns_do_applescript):
5828 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 5829
35ed44db
AR
58302009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5831
5832 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5833
cbe0b5bf
AR
58342009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5835
5836 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 5837
6049d3a0
AR
5838 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5839
5840 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
5841 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5842 handle Ctrl-tab. (Bug#1841)
5843 (ns_get_color): Use unsigned long long for scanned hex string value.
5844 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 5845 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 5846 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 5847 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 5848 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 5849 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 5850 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 5851
d3810c21 5852 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 5853 DPI. (Bug#1316)
d3810c21
AR
5854 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5855 values in onTiger section.
4c7077c3 5856
e301e634
CY
58572009-01-19 Chong Yidong <cyd@stupidchicken.com>
5858
7f82490b
CY
5859 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5860 Check return value of font_spec_from_name.
64cc3cf6 5861 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
5862
5863 * font.c (font_spec_from_name): Return Qnil if font name could not
5864 be parsed.
5865 (font_parse_name): Treat a `?' character as part of an XLFD.
5866
e301e634
CY
5867 * fns.c (Fsubstring): Doc fix.
5868
1c0db158
KH
58692009-01-19 Kenichi Handa <handa@m17n.org>
5870
51d861de 5871 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
5872 (ftfont_list): Likewise.
5873
acf20901
JB
58742009-01-18 Juanma Barranquero <lekktu@gmail.com>
5875
fff4e459
JB
5876 * dbusbind.c (Fdbus_register_signal):
5877 * process.c (conv_sockaddr_to_lisp):
5878 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5879
acf20901
JB
5880 * callproc.c (Fgetenv_internal): Doc fix.
5881
e7abcdfb
CY
58822009-01-16 Chong Yidong <cyd@stupidchicken.com>
5883
5884 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5885 it is not even used.
5886
b60861e6
GM
58872009-01-16 Glenn Morris <rgm@gnu.org>
5888
5889 * font.c (Ffont_variation_glyphs): Silence compiler.
5890
8db52afe
JB
58912009-01-15 Juanma Barranquero <lekktu@gmail.com>
5892
5893 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5894 Reported by David Robinow <drobinow@gmail.com>.
5895
4cddb209
KH
58962009-01-15 Kenichi Handa <handa@m17n.org>
5897
51d861de 5898 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 5899
f247f67b
JR
59002009-01-14 Jason Rumney <jasonr@gnu.org>
5901
5902 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 5903 never a fontset. (Bug#1562)
f247f67b 5904
f56a4450
KH
59052009-01-14 Kenichi Handa <handa@m17n.org>
5906
5907 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 5908 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 5909
4e99855e
CY
59102009-01-13 Chong Yidong <cyd@stupidchicken.com>
5911
5912 * font.c (font_clear_prop): If clearing the family, clear the font
5913 width index too.
5914
fff4e459 5915 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 5916
24f01470
JB
59172009-01-12 Juanma Barranquero <lekktu@gmail.com>
5918
5919 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5920 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5921 functions, use sizeof.
5922
a41240a3
MR
59232009-01-12 Martin Rudalics <rudalics@gmx.at>
5924
5925 * keyboard.c (read_char): Fix case where last_nonmenu_event
5926 returned a bad value with submenus. (Bug#447)
5927
944636b8
CY
59282009-01-12 Chong Yidong <cyd@stupidchicken.com>
5929
5930 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5931 family, clear the font width index too.
5932
0dad7c6f
JR
59332009-01-11 Jason Rumney <jasonr@gnu.org>
5934
5935 * keyboard.c (cmd_error_internal): Exit when errors occur before
5936 frame creation and not in daemon mode. (Bug#1836)
5937
7c2363af
CY
59382009-01-10 Chong Yidong <cyd@stupidchicken.com>
5939
5940 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5941 of a display vector, backtrack.
5942 (try_window_reusing_current_matrix): Check glyph type before
5943 referencing charpos member.
5944
97b1b294
EZ
59452009-01-10 Eli Zaretskii <eliz@gnu.org>
5946
5947 Fix Bug #876:
5948
5949 * coding.c (inhibit_null_byte_detection): New variable.
5950 (detect_coding, detect_coding_system): Don't pay attention to null
5951 bytes if inhibit_null_byte_detection is non-zero.
51d861de 5952 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
5953 <inhibit-iso-escape-detection>: Doc fix.
5954
4624b6e3
JR
59552009-01-09 Jason Rumney <jasonr@gnu.org>
5956
5957 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 5958 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
5959 Only report Unicode Plane 2 fonts as unicode-sip.
5960
323b840c
CY
59612009-01-09 Chong Yidong <cyd@stupidchicken.com>
5962
51d861de
SM
5963 * xfaces.c (Fx_font_family_list): Delete function.
5964 Move compatibility version to faces.el.
323b840c 5965
51d861de 5966 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 5967
eba7400d
MR
59682009-01-09 Martin Rudalics <rudalics@gmx.at>
5969
5970 * frame.c (x_set_frame_parameters): Remember requested value for
5971 fullscreen before it's reset by the parameter handler.
5972
4b09796d
GM
59732009-01-09 Glenn Morris <rgm@gnu.org>
5974
5975 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 5976 (last_command_event): ... and update all users.
4b09796d
GM
5977 (last_input_char): For clarity, rename to...
5978 (last_input_event): ... and update all users.
5979 (last-command-char, last-input-char): Move to subr.el as aliases.
5980 * cmds.c, commands.h: Update for last_command_char rename.
5981
14ccea62
CY
59822009-01-08 Chong Yidong <cyd@stupidchicken.com>
5983
51d861de 5984 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 5985
5f004711
JR
59862009-01-08 Jason Rumney <jasonr@gnu.org>
5987
5988 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5989 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5990 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5991 Don't declare.
fff4e459 5992 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
5993 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5994
b71f6f73
KH
59952009-01-07 Kenichi Handa <handa@m17n.org>
5996
50b06221 5997 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 5998 remember the coding system used for decoding in
50b06221
KH
5999 coding_system (Bug#1039).
6000
b71f6f73 6001 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 6002 breaking the loop. (Bug#870)
b71f6f73
KH
6003 (decode_coding_utf_16, decode_coding_emacs_mule)
6004 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6005 (decode_coding_charset): Likewise.
6006
56f668f7
MR
60072009-01-05 Martin Rudalics <rudalics@gmx.at>
6008
6009 * frame.c (x_set_frame_parameters): Make sure height (width) get
6010 applied when fullwidth (fullheight) is set. (Bug#1522)
6011
5da9424d
JB
60122009-01-04 Juanma Barranquero <lekktu@gmail.com>
6013
6014 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
6015 (utc_base): Declare as ULONGLONG, not long double.
6016 (convert_time_raw): Delete.
6017 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
6018 (initialize_utc_base): New function.
6019 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
6020 (convert_from_time_t): Use initialize_utc_base; compute result with
6021 64-bit arithmetic.
6022 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
6023
c4605e09
EZ
60242009-01-03 Eli Zaretskii <eliz@gnu.org>
6025
9acef61c 6026 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
6027 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
6028 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
6029 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
6030 [!subprocesses]: Define.
6031 (syms_of_process) [!subprocesses]: Intern and staticpro them.
6032 (Flist_system_processes, Fsystem_process_attributes)
6033 [!subprocesses]: Call list_system_processes and
6034 system_process_attributes instead of returning Qnil.
6035
9acef61c
JB
6036 * dosfns.c (system_process_attributes, list_system_processes):
6037 New functions.
c4605e09
EZ
6038
6039 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
6040
6041 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
6042 Don't use the default (no-op) implementation.
6043
8b7d0a16
JR
60442009-01-03 Jason Rumney <jasonr@gnu.org>
6045
a6d46bc1
JR
6046 * keyboard.c (parse_modifiers_uncached): Wheel events are
6047 clicks (bug#687).
6048
8b7d0a16
JR
6049 * w32term.c (x_query_colors, x_query_color): New functions.
6050
6051 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
6052 (svg_load_image): Cast returned pointers from dynamically loaded
6053 functions. Eliminate W32 specific code.
6054
bfe11752
DN
60552009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
6056
89e2438a
DN
6057 * nsfns.m (x_set_foreground_color, x_set_background_color)
6058 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
6059 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
6060 x_ prefix instead of ns_. Update references.
6061 (syms_of_nsfns): Add a FIXME comment.
6062
6063 * nsterm.m (x_set_cursor_type): New prototype.
6064 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
6065
bfe11752
DN
6066 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
6067 for Solaris instead of incorrectly providing Qutime and Qcutime.
6068
031da700
EZ
60692009-01-02 Eli Zaretskii <eliz@gnu.org>
6070
6071 * w32.c (process_times): Compute sum of utime and stime.
6072 (system_process_attributes): Add Qtime to the alist.
6073
6074 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
6075 and add them to the alist.
6076
6077 * process.c (top level) <Qtime, Qctime>: New variables.
6078 (syms_of_process): staticpro them.
6079 (Fsystem_process_attributes): Add their documentation to the doc
6080 string.
6081
6082 * process.h: Declare Qtime and Qctime.
6083
df23bf08
JR
60842009-01-02 Jason Rumney <jasonr@gnu.org>
6085
9acef61c 6086 * image.c (Qgobject): New symbol.
df23bf08
JR
6087 (syms_of_image): Initialize it.
6088 (init_svg_functions): Load some functions from gobject library.
6089
5bbdf7aa
DN
60902009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
6091
6092 * frame.c (make_terminal_frame): Remove redundant code and useless
6093 block.
6094
63136da6
AS
60952009-01-01 Andreas Schwab <schwab@suse.de>
6096
6097 * process.c (conv_sockaddr_to_lisp): Add workaround for
6098 getsockname bug on BSD.
6099
9ef69046
CY
61002009-01-01 Chong Yidong <cyd@stupidchicken.com>
6101
d6fafbe0
CY
6102 * xfns.c (x_create_tip_frame): Set border width of the X window.
6103
51d861de 6104 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 6105
f9c34147
JR
61062009-01-01 Jason Rumney <jasonr@gnu.org>
6107
9acef61c 6108 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
6109 Don't block input, as per earlier xterm.c changes.
6110
f5497e45
AR
61112008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
6112
6113 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
6114 (ns_appkit_version_int): New function.
6115 (x-server-version): Use ns_appkit_version_int and follow 21+
6116 convention of returning 3 integers.
6117
c19cab20
KH
61182008-12-30 Kenichi Handa <handa@m17n.org>
6119
6120 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
6121 (CHAR_SURROGATE_PAIR_P): New macro.
6122
6123 * font.h (struct font_driver): New member get_variation_glyphs.
6124
9acef61c 6125 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
6126 (Ffont_variation_glyphs): New function.
6127 (syms_of_font): Defsubr it.
6128
6129 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
6130 ftfont_variation_glyphs.
6131 (setup_otf_gstring): New function.
6132 (ftfont_drive_otf): Use it.
6133 (ftfont_shape_by_flt): Handle variation selector.
6134 (ftfont_variation_glyphs): New function.
6135
28cd591f
MR
61362008-12-30 Martin Rudalics <rudalics@gmx.at>
6137
6138 * frame.c (Vemacs_iconified): Remove.
6139
7f714baf
JR
61402008-12-30 Jason Rumney <jasonr@gnu.org>
6141
6142 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 6143 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 6144
9d2d22ab
CY
61452008-12-30 Chong Yidong <cyd@stupidchicken.com>
6146
6147 * indent.c (Fvertical_motion): Don't advance iterator if we have
6148 reseated to the desired position.
6149
6150 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
6151 checking for pos match.
6152
545312c2
KH
61532008-12-30 Kenichi Handa <handa@m17n.org>
6154
1ede3eb6
KH
6155 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
6156 just get the low 8-bit of the code.
6157
545312c2
KH
6158 * font.c (font_intern_prop): Validate str as multibyte.
6159
bd7bbf29
DN
61602008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6161
31e0750e
DN
6162 * dispextern.h (struct face): Move lface and hash from the middle
6163 of bitfields.
6164
bd7bbf29
DN
6165 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
6166
b5672e7c
DN
61672008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6168
6169 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
6170 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
6171 instead of intervals.h.
6172
d704470f
AS
61732008-12-26 Andreas Schwab <schwab@suse.de>
6174
6175 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
6176 cons.
6177
54b33868
MR
61782008-12-26 Martin Rudalics <rudalics@gmx.at>
6179
6180 * textprop.c (Qminibuffer_prompt): New variable.
6181 (syms_of_textprop): Initialize it.
6182 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
6183 in minibuffer-prompt face. (Bug#1662)
6184
40b615d6
JR
61852008-12-25 Jason Rumney <jasonr@gnu.org>
6186
6187 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
6188
baae5c2d
JR
61892008-12-24 Jason Rumney <jasonr@gnu.org>
6190
6191 * ralloc.c (r_alloc_reset_variable): New function.
6192
6193 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 6194 record of what points where. (Bug#716)
baae5c2d 6195
a9051c88
DN
61962008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
6197
6198 * minibuf.c (read_minibuf): Follow the non-interactive case when
6199 running as a daemon, before detaching.
6200
8b146312
AS
62012008-12-22 Andreas Schwab <schwab@suse.de>
6202
6203 * buffer.c (init_buffer): Use realloc instead of xrealloc.
6204 * gtkutil.c (free_widget_value): Use xfree instead of free.
6205
56f2de10
MR
62062008-12-22 Martin Rudalics <rudalics@gmx.at>
6207
6208 * frame.c (delete_frame): New function derived from
6209 Fdelete_frame to handle Qnoelisp value for FORCE argument.
6210 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
6211 (Fdelete_frame): Call delete_frame. Remove line from doc-string
6212 saying that FORCE non-nil doesn't run `delete-frame-functions'.
6213 * frame.h: Extern delete_frame.
6214 * window.c (window_loop):
6215 * terminal.c (delete_terminal):
6216 * xterm.c (x_connection_closed):
6217 * xfns.c (Fx_hide_tip):
9acef61c 6218 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 6219
1fc200d6
JR
62202008-12-21 Jason Rumney <jasonr@gnu.org>
6221
6222 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
6223 when character maps to .notdef character.
6224
5e252df2
SM
62252008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
6226
6227 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
6228
99b72cc4
JR
62292008-12-20 Jason Rumney <jasonr@gnu.org>
6230
6231 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 6232 a graphical frame on Windows. (Bug#1325)
99b72cc4 6233
acc49a52
JD
62342008-12-20 Jan Djärv <jan.h.d@swipnet.se>
6235
6236 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
6237
6ea15123
CY
62382008-12-20 Chong Yidong <cyd@stupidchicken.com>
6239
6240 * minibuf.c (Fread_buffer): Doc fix.
6241
b2dab6c8
JR
62422008-12-20 Jason Rumney <jasonr@gnu.org>
6243
54ea0c87 6244 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 6245 server name in UNC paths. (Bug#719)
54ea0c87 6246
b2dab6c8 6247 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 6248 charbuf. (Bug#1035)
b2dab6c8 6249
6d1921be
DN
62502008-12-19 Daniel Engeler <engeler@gmail.com>
6251
6252 * sysdep.c (serial_configure): Fix typo.
6253
53934c98
DN
62542008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6255
6256 * sysdep.c: Include alloca.h.
f4f634e8
DN
6257 (system_process_attributes): Add implementation for Solaris.
6258
6259 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 6260
06e111a6
DN
62612008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6262
6263 Reorganize implementation of Flist_system_processes and
6264 Fsystem_process_attributes. No functional changes.
6265 * process.c: Don't #include pwd.h, grp.h and limits.h.
6266 (Flist_system_processes): Just call list_system_processes.
6267 (Fsystem_process_attributes): Just call system_process_attributes.
6268 (procfs_list_system_processes, time_from_jiffies)
6269 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
6270 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
6271
6272 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
6273 (list_system_processes): Rename from
6274 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
6275 Provide a do nothing implementation.
6276 (system_process_attributes): Rename from
6277 procfs_list_system_processes.
6278 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 6279 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
6280
6281 * w32.c (list_system_processes): Rename from
6282 w32_list_system_processes.
6283 (system_process_attributes): Rename from
6284 w32_system_process_attributes.
6285
6286 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
6287
6288 * process.h (w32_list_system_processes)
6289 (w32_system_process_attributes): Remove.
362654a6
JB
6290 (list_system_processes, system_process_attributes):
6291 New prototypes.
06e111a6 6292
6a705b23
KH
62932008-12-19 Kenichi Handa <handa@m17n.org>
6294
6295 * xfont.c (xfont_decode_coding_xlfd): New function.
6296 (xfont_encode_coding_xlfd): New function.
6297 (xfont_list_pattern): Decode XLFD by iso-8859-1.
6298 (xfont_list): Decode and encode XLFD by iso-8859-1.
6299 (xfont_match): Likewise.
6300 (xfont_list_family): Likewise.
6301 (xfont_open): Likewise.
6302
d66c0241 6303 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
6304 names are utf-8.
6305
d66c0241 6306 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
6307 names are utf-8.
6308
5a130941
JD
63092008-12-18 Jan Djärv <jan.h.d@swipnet.se>
6310
6311 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
6312 changed.
bfd20325
JD
6313 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
6314 clicked on a detached tool bar button.
5a130941 6315
fd95644b
DN
63162008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
6317
6318 * emacs.c (main): Print and error and exit when no data is read
6319 from the pipe.
6320
e6eee6ae
JR
63212008-12-17 Jason Rumney <jasonr@gnu.org>
6322
6323 * w32font.c (w32font_has_char): Always return -1.
6324
a35dd56b
KH
63252008-12-16 Kenichi Handa <handa@m17n.org>
6326
6327 * font.c (font_open_entity): Fix previous change.
6328
0e3635c2
DN
63292008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
6330
6331 * process.c: Include <limits.h>.
6332
d4835507 63332008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
6334
6335 * font.c (font_update_drivers): Fix mistake in reconstructing the
6336 driver list.
6337
63382008-12-16 Chong Yidong <cyd@stupidchicken.com>
6339
6340 * font.c (font_clear_cache): Fix format of font cache data.
6341
e2cbc401
CY
63422008-12-15 Chong Yidong <cyd@stupidchicken.com>
6343
6344 * xftfont.c (xftfont_open): Free Xft font pattern if
6345 XftFontOpenPattern fails.
6346
6347 * xterm.c (x_free_frame_resources): Remove extraneous call to
6348 free_frame_faces.
6349
b131d535
CY
63502008-12-13 Chong Yidong <cyd@stupidchicken.com>
6351
6352 * xterm.c (x_delete_display): Move xim_close_dpy call to
6353 x_delete_terminal.
6354 (x_delete_terminal): Call xim_close_dpy.
6355
e6df5336
JR
63562008-12-13 Jason Rumney <jasonr@gnu.org>
6357
6358 * w32font.c (intern_font_name): New function.
6359 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
6360 (w32font_open_internal, Fx_select_font): Decode font name.
6361 (fill_in_logfont, list_all_matching_fonts): Encode font name.
6362
6363 * w32font.h (intern_font_name): Declare new function.
6364
6365 * w32uniscribe.c (add_opentype_font_name_to_list):
6366 Use intern_font_name.
6367
20d68145
CY
63682008-12-13 Chong Yidong <cyd@stupidchicken.com>
6369
9f2554de
CY
6370 * frame.c (Fdelete_frame): Call free_font_driver_list.
6371
3d9bec9a
CY
6372 * font.c (free_font_driver_list): Implement missing function.
6373
20d68145
CY
6374 * w32term.c (w32_term_init): Don't initialize the image cache
6375 here; it will be done in init_frame_faces.
6376
6377 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
6378 (struct x_display_info): Remove unused member null_pixel. New
6379 member xim_callback_data.
6380
6381 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
6382 (xim_initialize): Save pointer to callback function data.
6383 (xim_close_dpy): Free callback function data. Call XCloseIM,
6384 reverting 2008-11-04 change by David Smith.
6385 (x_term_init): Don't initialize the image cache here; it will be
6386 done in init_frame_faces. Remove ancient "null_pixel" cruft.
6387 (x_delete_display): Free x_dnd_atoms member.
6388
96f9306b
KH
63892008-12-13 Kenichi Handa <handa@m17n.org>
6390
6dec9044
JB
6391 * font.c (font_rescale_ratio): Moved from xfaces.c.
6392 Argument type changed. Handle a font-spec too.
96f9306b 6393 (font_score): Check Vface_font_rescale_alist.
6dec9044 6394 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
6395
6396 * xfaces.c (font_rescale_ratio): Moved to font.c.
6397
8d5b4964
CY
63982008-12-13 Chong Yidong <cyd@stupidchicken.com>
6399
6400 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
6401
e6df5336
JR
64022008-12-12 Jason Rumney <jasonr@gnu.org>
6403
6404 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
6405 Vwindow_system_version to the real w32 major version.
6406
97c6058a
DN
64072008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
6408
6409 * term.c (init_tty): Move setting the terminal name before the
6410 potential user: maybe_fatal.
6411
ec4e88d7
CY
64122008-12-11 Chong Yidong <cyd@stupidchicken.com>
6413
d4835507
JB
6414 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
6415 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 6416
b4233ec9
JR
64172008-12-11 Jason Rumney <jasonr@gnu.org>
6418
8ec71e23 6419 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 6420 SYMBOL_CHARSET. (Bug#547)
8ec71e23 6421
b4233ec9 6422 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 6423 size for surrogates. (Bug#1096, bug#872)
b4233ec9 6424
011a0143
JB
64252008-12-11 Juanma Barranquero <lekktu@gmail.com>
6426
6427 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
6428
3c309f34
JB
64292008-12-11 Juanma Barranquero <lekktu@gmail.com>
6430
6431 * process.c (Fsystem_process_attributes, syms_of_process):
6432 Fix typo in name of Ssystem_process_attributes.
6433 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
6434
fedc6ab5
JB
64352008-12-11 Juanma Barranquero <lekktu@gmail.com>
6436
6437 * syntax.c (Fmodify_syntax_entry): Doc fix.
6438
ba3de0e8
JB
64392008-12-10 Juanma Barranquero <lekktu@gmail.com>
6440
6441 * font.c (Ffont_spec): Move usage to end of docstring.
6442
174f1c74
JR
64432008-12-10 Jason Rumney <jasonr@gnu.org>
6444
6445 * w32font.c (Qcham): New symbol.
6446 (font_supported_scripts): Add cham, and comments for other new
6447 scripts in bitfield from OpenType spec.
9d32f818
JR
6448 (add_font_entity_to_list): Limit unicode-sip fonts to those that
6449 contain characters beyond the bmp.
174f1c74 6450
7b649478
KH
64512008-12-10 Kenichi Handa <handa@m17n.org>
6452
6453 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 6454 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
6455 Qunicode_sip.
6456
2133e2d1
JB
64572008-12-10 Juanma Barranquero <lekktu@gmail.com>
6458
6459 * coding.c (QCdefault_char): Rename from QCdefalut_char.
6460 (Fcoding_system_put): Use QCdefault_char.
6461 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
6462
9af886ee
CY
64632008-12-09 Chong Yidong <cyd@stupidchicken.com>
6464
74d819eb
CY
6465 * xftfont.c (syms_of_xftfont): Fix typo.
6466
4ccfa1c0 6467 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 6468
7c19d3ae
DN
64692008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
6470
6471 * emacs.c (main): Close daemon_pipe on exec.
6472
567826bb
CY
64732008-12-08 Chong Yidong <cyd@stupidchicken.com>
6474
6475 * termchar.h (struct tty): New members termcap_term_buffer and
6476 termcap_strings_buffer.
6477
6478 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 6479 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
6480 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
6481 All callers changed.
6482 (init_tty): Store termcap data and string buffers in new struct
6483 tty members termcap_term_buffer and termcap_strings_buffer.
6484 (delete_tty): Free them.
4ccfa1c0 6485 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 6486
aa96c42b
SZ
64872008-12-07 Seiji Zenitani <zenitani@mac.com>
6488
6489 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 6490 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 6491
b7e1d896
CY
64922008-12-06 Chong Yidong <cyd@stupidchicken.com>
6493
6494 * coding.c (make_conversion_work_buffer): Disable buffer
6495 modification hooks in the work buffer.
6496
b5ec91a5
EZ
64972008-12-05 Eli Zaretskii <eliz@gnu.org>
6498
6499 * process.c (procfs_system_process_attributes): If `nread' has a
6500 negative value, assign zero to it.
6501
a5d2a52b
CY
65022008-12-05 Chong Yidong <cyd@stupidchicken.com>
6503
68c5540b 6504 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 6505
7bf1bb21
KH
65062008-12-05 Kenichi Handa <handa@m17n.org>
6507
6508 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
6509 second character is a combining character.
6510
2fdc7d00
EZ
65112008-12-05 Eli Zaretskii <eliz@gnu.org>
6512
6513 * process.c (procfs_system_process_attributes): Don't use cmd,
6514 cmdsize, and q without initializing them first.
6515
bf6bfba8
JR
65162008-12-04 Jason Rumney <jasonr@gnu.org>
6517
6518 * w32font.c (w32font_draw): Initialize orig_clip before getting
6519 it, and delete it when finished.
6520
a3b1a468
DN
65212008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
6522
6523 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
6524 case when running as a daemon before detaching.
6525
8b8be8eb
JB
65262008-12-03 Juanma Barranquero <lekktu@gmail.com>
6527
805f2638 6528 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 6529
b1bde622
KH
65302008-12-03 Kenichi Handa <handa@m17n.org>
6531
e500c47d
KH
6532 * font.c (font_at): Set `multibyte' at first.
6533
ca516334
KH
6534 * coding.c (decode_coding_charset): Check type of an element of
6535 vector VALIDS.
7bf1bb21 6536 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 6537
4ccfa1c0 6538 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
6539 (font_for_char): Likewise.
6540
1e5ecd37
CY
65412008-12-03 Chong Yidong <cyd@stupidchicken.com>
6542
d5b01609 6543 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
6544 (font_update_lface): Handle fonts with corrupted size specs,
6545 i.e. non-int and non-float.
d5b01609 6546
11e3a6e4 6547 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 6548 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 6549 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 6550
ab06788b
CY
6551 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
6552
1e5ecd37 6553 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 6554 underline_minimum_offset for underline position.
1e5ecd37 6555
63c125ab
DN
65562008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
6557
6558 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
6559
6560 * character.c (c_string_width): Specify the type for LEN.
6561
3a8406e1
KH
65622008-12-03 Kenichi Handa <handa@m17n.org>
6563
4ccfa1c0 6564 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 6565 (decode_coding_utf_8): Likewise.
4ccfa1c0 6566 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 6567 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 6568
651df7d9
CY
65692008-12-02 Chong Yidong <cyd@stupidchicken.com>
6570
6571 * keyboard.c (make_lispy_position): Only use PT if the selected
6572 window is current.
6573
1f625c6c
AS
65742008-12-02 Andreas Schwab <schwab@suse.de>
6575
f7741ce9
AS
6576 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
6577
1f625c6c
AS
6578 * doprnt.c (doprnt1): Fix size of charbuf.
6579
92bc2678
CY
65802008-12-02 Chong Yidong <cyd@stupidchicken.com>
6581
6582 * keyboard.c (timer_check): Revert last change.
6583
93b9e8cc
JB
65842008-12-02 Juanma Barranquero <lekktu@gmail.com>
6585
6586 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
6587
fd7a37d5
JB
65882008-12-01 Juanma Barranquero <lekktu@gmail.com>
6589
6590 * makefile.w32-in: Update dependencies.
6591 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
6592
c115043b
AS
65932008-12-01 Andreas Schwab <schwab@suse.de>
6594
6595 * font.c (register_font_driver): Use xmalloc.
6596 (font_put_frame_data): Likewise.
6597
f5668d2a
CY
65982008-12-01 Chong Yidong <cyd@stupidchicken.com>
6599
860d96be
CY
6600 * xfaces.c (realize_x_face): Make abort condition clearer.
6601
f5668d2a
CY
6602 * gtkutil.c (update_frame_tool_bar): Initialize variable.
6603
379c17e7
CY
66042008-11-30 Chong Yidong <cyd@stupidchicken.com>
6605
6606 * keyboard.c (timer_check): After a timer runs, ensure that the
6607 selected window's buffer is current.
6608
35f36d65
JB
66092008-11-30 Juanma Barranquero <lekktu@gmail.com>
6610
f952c61c
JB
6611 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
6612 It was accidentally restored by the Unicode merge.
6613
35f36d65
JB
6614 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
6615
b23077df
JB
66162008-11-29 Juanma Barranquero <lekktu@gmail.com>
6617
6618 * w32proc.c: Include "coding.h".
6619 (Fw32_short_file_name): Encode filename passed to Windows API.
6620 (Fw32_long_file_name): Encode filename passed to Windows API and
6621 decode back the result. (Bug#1433)
6622
b8ebe9dd
KH
66232008-11-29 Kenichi Handa <handa@m17n.org>
6624
8cc53f96
KH
6625 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
6626 not before accessing it.
6627
b8ebe9dd
KH
6628 * charset.c (Fdefine_charset_internal): After calculating
6629 min_char, max_char, and fastmap, copy the charset structure again.
6630 (encode_char): Fix the previous change.
6631
59bc82c0
SZ
66322008-11-28 Seiji Zenitani <zenitani@mac.com>
6633
6634 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
6635
6636 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
6637
6638 * nsterm.m (x_set_frame_alpha): New function.
6639
32247e3d
EZ
66402008-11-27 Eli Zaretskii <eliz@gnu.org>
6641
6642 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
6643
b003e5ff
JB
66442008-11-27 Juanma Barranquero <lekktu@gmail.com>
6645
6646 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
6647 pointer to check_face_name.
6648
708550f5
KH
66492008-11-27 Kenichi Handa <handa@m17n.org>
6650
6651 * category.h (SET_CATEGORY_SET): Call set_category_set.
6652 (set_category_set): Extern it.
6653
6654 * category.c (hash_get_category_set): New function.
6655 (Fmodify_category_entry): Adjusted for the change of
6656 char_table_ref_and_range. Call hash_get_category_set to get a
6657 category set to store in the table.
6658
6659 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
6660 Funify_charset.
6661
2ae37cf0 6662 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
6663 (DECODE_CHAR): Check if the decoder vector is ready.
6664 (ENCODE_CHAR): Check if the encoder char-table is ready.
6665 (maybe_unify_char): Extern it.
6666
6667 * charset.c (Vchar_unified_charset_table): Delete it.
6668 (inhibit_load_charset_map): New variable.
6669 (temp_charset_work): New variable.
6670 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6671 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6672 New macros.
6673 (load_charset_map): Meaning of control_flag changed. If
6674 inhibit_load_charset_map is nonzero, setup a table in
6675 temp_charset_work.
6676 (load_charset): New argument control_flag.
6677 (map_charset_for_dump): New function.
6678 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6679 map_charset_for_dump.
6680 (Fdefine_charset_internal): If the charset method is MAP, load
6681 mapping tables by calling load_charset.
6682 (Funify_charset): Don't load a mapping table but directly set
6683 Vchar_unify_table.
6684 (maybe_unify_char): New function.
6685 (decode_char): Don't handle the deleted method MAP_DEFERRED.
6686 Handle the case of inhibit_load_charset_map being nonzero.
6687 (encode_char): Don't handle the deleted method MAP_DEFERRED.
6688 Handle the case of inhibit_load_charset_map being nonzero.
6689 (Fclear_charset_maps): Just free temp_charset_work.
6690 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6691 variable.
6692
6693 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6694 change of char_table_ref_and_range.
6695 (char_table_ref_and_range): Change the meaning of argument FROM
6696 and TO. Now the caller must provide initial values for *FROM
6697 and *TO.
6698
6699 * fontset.c (fontset_add): Adjusted for the change of
6700 char_table_ref_and_range.
6701 (fontset_get_font_group): Likewise.
6702 (Ffontset_info): Likewise.
6703
6704 * keymap.c (describe_vector): Adjusted for the change of
6705 char_table_ref_and_range. For char-table, put boundary between
6706 non-ASCII and 8-bit characters.
6707
6708 * print.c (print_object): For bool-vector, delete unnecessary
6709 check of ASCII_BYTE_P.
6710
9196133b
JR
67112008-11-26 Jason Rumney <jasonr@gnu.org>
6712
6713 * w32font.c (w32font_open_internal): Don't include external
9acef61c 6714 leading in font height. (Bug#879)
9196133b 6715
9f688acf
GM
67162008-11-26 Glenn Morris <rgm@gnu.org>
6717
6718 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6719 redefinition with ifdef. (Bug#1383)
6720
90d19aff
AR
67212008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6722
6723 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6724
4ccfa1c0 67252008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
6726
6727 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6728 New EmacsView methods.
6729 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6730 Fixes bug #1048,1357,1414.
6731
67322008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6733
6734 Fix bug #1362.
6735 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6736 is not an indexed color.
6737 * nsterm.m (free_indexed_color): Add argument checking.
6738 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6739
e7d5ecb3
CY
67402008-11-24 Chong Yidong <cyd@stupidchicken.com>
6741
6742 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6743 Document confirm-after-completion value for
6744 minibuffer-completion-confirm.
6745
c285743c
JR
67462008-11-24 Jason Rumney <jasonr@gnu.org>
6747
6748 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6749 warning.
6750
b0857706
JR
67512008-11-23 Jason Rumney <jasonr@gnu.org>
6752
6753 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6754 restored before returning.
6755
6756 * w32font.c (check_face_name): New function.
6757 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 6758 fonts. (Bug#642)
b0857706 6759
ee50ff07
MR
67602008-11-22 Martin Rudalics <rudalics@gmx.at>
6761
6762 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6763 confirm-nonexistent-file-or-buffer in doc-string.
6764
b8ff72fa
SM
67652008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6766
6767 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6768 Fix copy/paste typo. Add checks.
6769
cee53ed4
KH
67702008-11-21 Kenichi Handa <handa@m17n.org>
6771
6772 * coding.c (detect_coding_iso_2022): Reject invalid composition
6773 sequence.
6774 (DECODE_COMPOSITION_START): If the current source is the last
6775 block, and the current composition doesn't end, regard this
6776 sequence as invalid.
6777 (decode_coding_iso_2022): Handle invalid composition sequence.
6778
f6ef1e65
MR
67792008-11-20 Martin Rudalics <rudalics@gmx.at>
6780
6781 * window.c (coordinates_in_window): Don't return
6782 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6783 line when the window is not the rightmost one. (Bug#1372)
6784
e08b1705
MR
67852008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6786
6787 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6788
ad98e89f
EZ
67892008-11-15 Eli Zaretskii <eliz@gnu.org>
6790
6791 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6792 and bright_bg if noninteractive is non-zero.
6793
fb098a4b
CY
67942008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6795
6796 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6797 x_draw_glyph_string_background.
6798
6799 * w32term.c (x_draw_glyph_string): Likewise.
6800
ce952b6e
CY
68012008-11-15 Chong Yidong <cyd@stupidchicken.com>
6802
6803 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6804 the next glyph string once past the overhang width.
6805
6806 * nsterm.m (ns_draw_glyph_string): Likewise.
6807
6808 * w32term.c (x_draw_glyph_string): Likewise.
6809
26ea7079
CY
68102008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6811
6812 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6813 double file close.
6814
1c33c906
MR
68152008-11-14 Martin Rudalics <rudalics@gmx.at>
6816
6817 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6818 dedicated status of window before attempting to display another
6819 buffer in it.
6820
8fc29035
JB
68212008-11-14 Juanma Barranquero <lekktu@gmail.com>
6822
6823 * msdos.c (Fmsdos_long_file_names):
6824 (syms_of_msdos) <dos-unsupported-char-glyph>:
6825 * dosfns.c (Fint86): Fix typos in docstrings.
6826
55fb4286
EZ
68272008-11-14 Eli Zaretskii <eliz@gnu.org>
6828
6829 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6830
3fda0315
KY
68312008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6832
6833 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6834
7e849c17
CY
68352008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6836
6837 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6838
6839 * frame.h: Negative alpha means "don't touch".
6840
6841 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6842
6843 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6844
b9fd67bd
DN
68452008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6846
6847 * hftctl.c:
6848 * chpdef.h:
6849 * acldef.h: Remove files used only for systems no longer supported.
6850
6851 * Makefile.in: Fix .o alphabetical ordering.
6852 (hftctl.o): Remove dependency, file removed.
6853 (keymap.o, print.o): Depend on charset.h.
6854
d5998e03
KH
68552008-11-10 Kenichi Handa <handa@m17n.org>
6856
2ae37cf0 6857 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 6858
be70e183
CY
68592008-11-08 Chong Yidong <cyd@stupidchicken.com>
6860
6861 * dired.c (file_name_completion): If completion_ignore_case is
6862 enabled, ignore case when checking completion-regexp-list.
6863
7cf94eac
EZ
68642008-11-08 Eli Zaretskii <eliz@gnu.org>
6865
6866 * vm-limit.c (get_lim_data): Fix last change.
6867
ee107a89
KH
68682008-11-08 Kenichi Handa <handa@m17n.org>
6869
6870 * character.c (Fget_byte): New function.
6871 (syms_of_character): Defsubr Fget_byte.
6872
5fd15622
CY
68732008-11-07 Chong Yidong <cyd@stupidchicken.com>
6874
6875 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6876 cursor position is valid after scrolling.
6877
13d62fad
JB
68782008-11-06 Juanma Barranquero <lekktu@gmail.com>
6879
6880 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6881
a1dd2936
GM
68822008-11-06 Glenn Morris <rgm@gnu.org>
6883
6884 * xterm.c (handle_one_xevent): Don't let popup menus cause
6885 mouse-autoselect-window related window switching. (Bug#1261)
6886
860cd236
CY
68872008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6888
6889 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6890
653a3150
AS
68912008-11-04 Andreas Schwab <schwab@suse.de>
6892
6893 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6894
870f5cac
CY
68952008-11-03 Chong Yidong <cyd@stupidchicken.com>
6896
6897 * xfns.c (Fx_wm_set_size_hint): New function.
6898
1e02f3cb
MR
68992008-11-03 Martin Rudalics <rudalics@gmx.at>
6900
6901 * textprop.c (Fprevious_single_char_property_change): Return 0
6902 when there's no change in a string. (Bug#1301)
6903
e630dfc6
MR
69042008-11-02 Martin Rudalics <rudalics@gmx.at>
6905
6906 * frame.c (do_switch_frame): New argument NORECORD passed to
6907 Fselect_window.
6908 (Fselect_frame): New argument NORECORD passed to
6909 do_switch_frame.
6910 (Fset_frame_selected_window): New argument NORECORD passed to
6911 Fselect_frame.
6912 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6913 in call of do_switch_frame.
6914 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6915 Handle NORECORD argument in call of Fselect_frame.
6916 * lisp.h (do_switch_frame, Fselect_frame)
6917 (Fset_frame_selected_window): Adjust declarations.
6918 * window.c (select_frame_norecord): New function.
6919 (run_window_configuration_change_hook): Use it and call
6920 Fselect_frame with NORECORD set.
6921 (Fselect_window): Pass NORECORD to Fselect_frame.
6922 (Fset_window_configuration): Handle NORECORD argument in call of
6923 do_switch_frame.
6924 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6925 Fset_frame_selected_window.
6926 * keyboard.c (command_loop_1): Handle NORECORD in call of
6927 Fselect_frame (currently ifdefd).
6928
9020b223
GM
69292008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6930
6931 * emacs.c (USAGE2): Untabify.
6932
793ffee8
SM
69332008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6934
6935 * composite.c (fill_gstring_header): Fix copy/paste typo.
6936
ab6d1131
MR
69372008-10-31 Martin Rudalics <rudalics@gmx.at>
6938
6939 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6940 (Fother_window): Rename argument and rewrite doc-string.
6941 (select_window_norecord): Fix return value. (Bug#1276)
6942
601a9cf1
JB
69432008-10-30 Juanma Barranquero <lekktu@gmail.com>
6944
6945 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6946 new frames overriding foreground for tooltips. Based on similar patch
6947 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6948
813b0652
CY
69492008-10-29 Chong Yidong <cyd@stupidchicken.com>
6950
6951 * emacs.c (Fdaemon_initialized): Initialize nfd.
6952
4414f58f
MR
69532008-10-29 Martin Rudalics <rudalics@gmx.at>
6954
6955 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6956 (Fwindow_text_height): Clarify doc-strings.
6957 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6958 doc-string of window-scroll-functions.
6959
ecdcaa09
RS
69602008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6961
6962 * category.c (syms_of_category): Fix typo in docstring.
6963
23fe745a
JB
69642008-10-28 Juanma Barranquero <lekktu@gmail.com>
6965
6966 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6967 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6968 Fix typos in docstrings.
6969
ff808935
DN
69702008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6971
6972 * emacs.c (daemon_pipe): Make non-static.
6973 (IS_DAEMON): Move definition ...
6974 * lisp.h (IS_DAEMON): ... here.
6975 (daemon_pipe): Declare.
6976 (is_daemon): Remove.
6977 * dispnew.c (init_display): Use IS_DAEMON.
6978
fc012771
SM
69792008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6980
6981 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6982 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6983
6984 * emacs.c (is_daemon): Remove.
6985 (main): Don't set is_daemon.
6986 (IS_DAEMON): New macro.
6987 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 6988 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
6989 parent exits.
6990 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6991
d8bdbe6f
CY
69922008-10-27 Chong Yidong <cyd@stupidchicken.com>
6993
d1a072bf
CY
6994 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6995 over-sized glyph, draw it with the default glyph width.
6996
e2e325aa
CY
6997 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6998 glyph, draw it with the default glyph width.
6999
7000 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7001 glyph, draw it with the default glyph width.
7002
d8bdbe6f
CY
7003 * xdisp.c (try_scrolling): When computing the distance from the
7004 scroll margin to PT, try moving some distance past the window
7005 bottom before giving up.
7006
7bfac547
MR
70072008-10-27 Martin Rudalics <rudalics@gmx.at>
7008
7009 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
7010 (Fset_window_buffer): Explain in doc-string that a window can be
7011 "strongly" dedicated to its buffer.
7012
4ff029f6
DN
70132008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
7014
7015 * emacs.c (daemon_name): New variable.
7016 (main): Deal with --daemon=SERVER_NAME.
7017 (Fdaemonp): Return a name if one was passed to --daemon.
7018
5790ef40
DN
70192008-10-26 Romain Francoise <romain@orebokech.com>
7020
f9bd0df9 7021 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
7022 (main): Create a pipe before forking, make the parent exit only after
7023 the child has closed its end of the pipe. Move closing the
7024 descriptors ...
7025 (Fdaemon_initialized): ... here. New function.
7026
f5385255
SM
70272008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
7028
4d632321
SM
7029 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
7030 the previous unoptimized table.
7031
f5385255
SM
7032 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
7033 the distinction between non-nil and non-t value of `dedicated'.
7034
6c56a0f3
CY
70352008-10-25 Chong Yidong <cyd@stupidchicken.com>
7036
7037 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 7038 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 7039
fec89261
MR
70402008-10-25 Martin Rudalics <rudalics@gmx.at>
7041
7042 * window.c (Fget_buffer_window, Fdelete_windows_on)
7043 (Freplace_buffer_in_windows): Make buffer argument optional and
7044 rename to buffer_or_name.
7045
34fcddd0
CY
70462008-10-24 Chong Yidong <cyd@stupidchicken.com>
7047
f5385255
SM
7048 * xdisp.c (handle_single_display_spec, handle_display_prop):
7049 Undo 2005-05-16 change.
34fcddd0
CY
7050 (handle_stop): Pop iterator if it's loaded with an empty string.
7051 (get_overlay_strings_1): Don't save iterator if it's loaded with
7052 an empty string (bug#1201).
7053
064766f2
KH
70542008-10-24 Kenichi Handa <handa@m17n.org>
7055
7056 * ftfont.c (ftfont_otf_features): Fix previous change.
7057 (ftfont_otf_capability): Check FeatureList.FeatureCount before
7058 calling ftfont_otf_features.
7059
f9bd0df9 70602008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
7061
7062 * font.c (font_match_p): Fix for the case that a vector of
7063 characters is in script-representative-chars.
7064
1dae9197
MA
70652008-10-24 Michael Albinus <michael.albinus@gmx.de>
7066
7067 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 7068 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
7069 (xd_read_queued_messages): Catch Qdbus_error from the macros.
7070 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 7071 macro. (Bug#1186)
1dae9197 7072
f9bd0df9 70732008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
7074
7075 * s/sol2-10.h: New file.
7076
878a4584
JB
70772008-10-23 Juanma Barranquero <lekktu@gmail.com>
7078
7079 * xdisp.c (fill_glyph_string): Fix typo in source (though the
7080 poor beast has survived 9+ years and the jump from xterm.c!).
7081
cd265ca6
MR
70822008-10-23 Martin Rudalics <rudalics@gmx.at>
7083
7084 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
7085 Reword doc-string.
f5385255 7086 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 7087
472a4dc9
JB
70882008-10-23 Juanma Barranquero <lekktu@gmail.com>
7089
7090 * character.c (syms_of_character) <script-representative-chars>:
7091 <unicode-category-table>: Doc fixes.
7092
159bd5a2
NF
70932008-10-23 Noah Friedman <friedman@splode.com>
7094
7095 * coding.c (make_conversion_work_buffer): Check that
7096 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
7097 Fget_buffer_create.
7098
49f9c344
KH
70992008-10-23 Kenichi Handa <handa@m17n.org>
7100
7101 * font.c (font_add_log): Check the values of extra properties.
7102
12bb3111
MR
71032008-10-22 Martin Rudalics <rudalics@gmx.at>
7104
7105 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7106 Reword doc-string.
7107 (Fset_window_parameter): Use NILP.
7108 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 7109 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 7110
bbeb4e99
JB
71112008-10-22 Juanma Barranquero <lekktu@gmail.com>
7112
7113 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
7114
71152008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
7116
7117 * nsfns.m (ns_appkit_version): New function.
7118 (x-server-version): Use it.
7119 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
7120 (x-server-vendor): Don't check_ns().
7121
7122 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
7123
a9b555d3
JB
71242008-10-22 Juanma Barranquero <lekktu@gmail.com>
7125
7126 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
7127 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
7128
4626499f
KH
71292008-10-22 Kenichi Handa <handa@m17n.org>
7130
e3681952
KH
7131 * syntax.c (scan_words): Call word_boundary_p instead of comparing
7132 scripts.
7133
4626499f
KH
7134 * category.c (word_boundary_p): Check scripts instead of charset.
7135 Handle nil value in word-separating-categories and
7136 word-combining-categories.
7137 (syms_of_category): Fix docstrings of word-separating-categories
7138 and word-combining-categories.
7139
1560f91a
EZ
71402008-10-21 Eli Zaretskii <eliz@gnu.org>
7141
7142 * coding.c (Fencode_coding_region, Fdecode_coding_region)
7143 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
7144
f4668441
MR
71452008-10-21 Martin Rudalics <rudalics@gmx.at>
7146
7147 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
7148 Rename arg "buffer" to "buffer_or_name".
7149 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
7150 it optional.
7151 (no_switch_window): Remove since the return value is not used.
a9b555d3 7152 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
7153 Consider window as dedicated when Fwindow_dedicated_p returns a
7154 non-nil value.
7155 * lisp.h: Remove prototype for no_switch_window.
7156
fd75ddb2
JD
71572008-10-21 Jan Djärv <jan.h.d@swipnet.se>
7158
7159 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 7160 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 7161
07295713
KH
71622008-10-21 Kenichi Handa <handa@m17n.org>
7163
7164 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
7165 check Vlatin_extra_code_table.
7166
712adc82
EZ
71672008-10-20 Eli Zaretskii <eliz@gnu.org>
7168
7169 * fileio.c (Fset_file_modes): Doc fix.
7170
f549eb0b
MA
71712008-10-19 Michael Albinus <michael.albinus@gmx.de>
7172
7173 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
7174 in arrays.
7175
aac0c6e3
MR
71762008-10-19 Martin Rudalics <rudalics@gmx.at>
7177
7178 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7179 Mention kill-buffer in doc-string.
7180 (Fset_window_buffer): Reinsert tem check removed in last commit.
7181 (Fenlarge_window, Fshrink_window): Have argument names and
7182 doc-string follow Elisp manual more closely.
7183
71842008-10-18 Eli Zaretskii <eliz@gnu.org>
7185
7186 * fileio.c (Fset_file_modes): Doc fix.
7187
71882008-10-18 Martin Rudalics <rudalics@gmx.at>
7189
7190 * window.c (Fwindow_width, Fset_window_start)
7191 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
7192 (Fdelete_windows_on, Freplace_buffer_in_windows):
7193 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
7194 (Fwindow_dedicated_p): Make window argument optional.
7195 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
7196 (Fset_window_buffer): Respect any non-nil dedicated value for
7197 window. Rename "buffer" argument to "buffer_or_name".
7198
71992008-10-18 Ulrich Mueller <ulm@gentoo.org>
7200
7201 * m/sh3.h: New file, machine description for SuperH.
7202
72032008-10-17 Martin Rudalics <rudalics@gmx.at>
7204
7205 * window.c (Fsplit_window): Rename arg horflag to horizontal.
7206
72072008-10-17 Kenichi Handa <handa@m17n.org>
7208
7209 * ftfont.c (ftfont_otf_features): Fix indexing
7210 gsub_gpos->FeatureList.Feature. Check the validity of indices.
7211
72122008-10-16 Magnus Henoch <mange@freemail.hu>
7213
7214 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
7215 (Fdbus_call_method_asynchronously): Ditto.
7216 This change makes C-h f display the argument list.
7217
72182008-10-16 Chong Yidong <cyd@stupidchicken.com>
7219
7220 * fileio.c (Fexpand_file_name): Doc fix.
7221
7222 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
7223 of :foreground and :background equivalent to unspecified (20.x
7224 compatibility).
7225
72262008-10-15 Eli Zaretskii <eliz@gnu.org>
7227
7228 * buffer.c (syms_of_buffer): Doc fix.
7229
72302008-10-14 Kenichi Handa <handa@m17n.org>
7231
7232 * font.c (font_clear_prop): When clearing font width, clear the
7233 average width field too.
7234
72352008-10-12 Andreas Schwab <schwab@suse.de>
7236
7237 * ftfont.c (ftfont_shape_by_flt): Make static.
7238 * ftfont.h (ftfont_shape_by_flt): Don't declare.
7239
7240 * font.c: Don't include <m17n-flt.h>.
7241
72422008-10-10 Eli Zaretskii <eliz@gnu.org>
7243
7244 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
7245
72462008-10-09 Eli Zaretskii <eliz@gnu.org>
7247
7248 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
7249 away code.
7250
72512008-10-09 Chong Yidong <cyd@stupidchicken.com>
7252
7253 * dispnew.c (update_text_area): Avoid looping due to large glyph
7254 overhangs (bug#1070).
7255
72562008-10-09 Kenichi Handa <handa@m17n.org>
7257
7258 * fontset.c (face_for_char): If face->fontset is negative, just
7259 return ascii_face.
7260
f5385255
SM
7261 * font.c (font_delete_unmatched): Fix previous change.
7262 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
7263
72642008-10-09 Martin Rudalics <rudalics@gmx.at>
7265
7266 * frame.c (Fraise_frame): On text-only terminals select frame in
7267 order to make it visible. (Bug#1061)
7268
72692008-10-08 Chong Yidong <cyd@stupidchicken.com>
7270
7271 * fontset.c (fontset_find_font): Check frame validity.
7272
72732008-10-07 Chong Yidong <cyd@stupidchicken.com>
7274
a9b555d3 7275 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
7276 (xg_display_close): Allow Emacs to close all displays (bug#985).
7277
72782008-10-06 Andreas Schwab <schwab@suse.de>
7279
f5385255 7280 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
7281
72822008-10-06 Chong Yidong <cyd@stupidchicken.com>
7283
f5385255 7284 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 7285
a9b555d3 7286 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
7287
7288 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
7289 during initialization.
7290
72912008-10-04 Eli Zaretskii <eliz@gnu.org>
7292
7293 * xdisp.c (redisplay_internal): If frame switched, redisplay the
7294 whole thing on MSDOS frames as well as on a TTY.
7295
7296 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
7297 well as for TTY.
7298 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
7299 well as on a TTY.
7300
7301 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
7302 as well as for TTY.
7303
7304 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
7305
7306 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
7307 MSDOS frames as well.
7308
73092008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7310
7311 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
7312 correct arguments.
b71ac3dd 7313 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
7314
73152008-10-03 Glenn Morris <rgm@gnu.org>
7316
7317 * emacs.c (USAGE1): Add --daemon.
7318
73192008-10-02 Eli Zaretskii <eliz@gnu.org>
7320
7321 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
7322 100, so it's in percents as advertised.
7323
73242008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7325
7326 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
7327 (ns_output.current_cursor, ns_output.desired_cursor)
7328 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
7329 (FRAME_NEW_CURSOR_COLOR): Remove.
7330
7331 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 7332 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
7333 enumeration (HOLLOW_BOX_CURSOR, etc.).
7334
7335 * nsterm.m (ns_frame_rehighlight): Remove commented code.
7336 (draw_window_cursor): Simplify code.
f5385255
SM
7337 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
7338 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 7339 updates manually.
a9b555d3
JB
7340 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
7341 Use core Emacs cursor types.
aac0c6e3 7342
b8ff72fa 7343 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
7344
73452008-10-02 Martin Rudalics <rudalics@gmx.at>
7346
7347 * process.c (Faccept_process_output): Fix doc-string.
7348
73492008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
7350
7351 * gmalloc.c (__sbrk): Also define for uClibc.
7352
7353 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
7354 for uClibc.
7355
73562008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7357
7358 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
7359 styles.
7360 (nsfont_open): Reenable the cache.
7361
73622008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7363
7364 * font.c (font_matching_entity): Reflect ATTRS in font selection.
7365 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
7366
73672008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
7368
7369 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
7370 a suspended terminal.
7371
73722008-09-30 Michael Albinus <michael.albinus@gmx.de>
7373
7374 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
7375
73762008-09-30 Eli Zaretskii <eliz@gnu.org>
7377
7378 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
7379
73802008-09-30 Chong Yidong <cyd@stupidchicken.com>
7381
7382 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
7383 in a continued line coincides with a line beginning.
7384
73852008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7386
7387 * nsfont.m (nsfont_trait_distance): Fix bug.
7388 (nsfont_list): Return a list rather than a vector (syncs with Handa
7389 changes of 2008-05-14).
7390 (nsfont_open): Improve logging.
7391
73922008-09-29 Andreas Schwab <schwab@suse.de>
7393
7394 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7395
73962008-09-28 Martin Rudalics <rudalics@gmx.at>
7397
7398 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
7399 name as char-resolve-modifiers.
7400 Reported by: Markus Triska <markus.triska@gmx.at>
7401
74022008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
7403
7404 * dispnew.c (init_display): Return earlier when running as a daemon.
7405
74062008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7407
7408 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
7409
74102008-09-27 Eli Zaretskii <eliz@gnu.org>
7411
7412 * composite.c (Fcomposition_get_gstring)
7413 (Fcompose_region_internal, Fcompose_string_internal)
7414 (Ffind_composition_internal): Doc fix.
7415 (syms_of_composite) <compose-chars-after-function>: Doc fix.
7416 (syms_of_composite) <auto-composition-function>: Doc fix.
7417 (syms_of_composite) <composition-function-table>: Doc fix.
7418
74192008-09-25 Chong Yidong <cyd@stupidchicken.com>
7420
7421 * search.c (wordify): New argument for lax word-ends.
7422 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
7423
74242008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
7425
7426 * lisp.h (is_daemon): Declare.
7427 * dispnew.c (init_display): Do not try to initialize the terminal
7428 when running as a daemon.
7429
74302008-09-22 Chong Yidong <cyd@stupidchicken.com>
7431
7432 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
7433 x_display_pixel_height.
7434
74352008-09-22 Martin Rudalics <rudalics@gmx.at>
7436
7437 * undo.c (record_point): Don't call Fundo_boundary for first
7438 change. (Bug#731)
7439
74402008-09-22 Juanma Barranquero <lekktu@gmail.com>
7441
7442 * emacs.c (Fdaemonp): Doc fix.
7443
74442008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
7445
7446 * emacs.c (main): Place #ifdef in the proper place.
7447
74482008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
7449
7450 * emacs.c (standard_args): Add --daemon.
7451 (main): Disconnect from the terminal when --daemon is passed.
7452 (is_daemon): New variable.
7453 (Fdaemonp): New function.
7454 (syms_of_emacs): Defsubr it.
7455
74562008-09-20 Chong Yidong <cyd@stupidchicken.com>
7457
7458 * xdisp.c (get_next_display_element): Handle string display
7459 correctly when checking for the end of a box run.
7460
74612008-09-20 Glenn Morris <rgm@gnu.org>
7462
7463 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
7464 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
7465 (Frename_file): Avoid copying to trash if a rename involves
7466 a delete. (Bug#964).
7467
74682008-09-20 Eli Zaretskii <eliz@gnu.org>
7469
7470 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
7471 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
7472 frames as well as termcap frames.
7473 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
7474 get_named_tty.
7475
74762008-09-19 Eli Zaretskii <eliz@gnu.org>
7477
7478 * process.c (procfs_system_process_attributes): Fix cmdline in
7479 case /proc/PID/cmdline is empty.
7480
7481 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
7482 x_display_pixel_height.
7483
74842008-09-19 Juanma Barranquero <lekktu@gmail.com>
7485
7486 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
7487
7488 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7489 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
7490
74912008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
7492
7493 * dispextern.h (struct it): Move line_wrap away from the middle of
7494 bitfields. Move voffset in struct iterator_stack_entry after the
7495 bitfields. Move tab_width near after another short.
7496
74972008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
7498
7499 * frame.h (struct frame): Move alpha from the middle of bitfields.
7500
7501 * window.h (struct window): Move frozen_window_start_p after the
7502 rest of the bitfields to reduce padding.
7503
75042008-09-18 Chong Yidong <cyd@stupidchicken.com>
7505
7506 * xterm.h (x_display_info): Remove `height' and `width' members.
7507
7508 * nsterm.h (ns_display_info): Remove `height' and `width' members.
7509
7510 * w32term.h (w32_display_info): Remove `height', `width',
7511 `height_in', and `width_in' members.
7512
b8ff72fa
SM
7513 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7514 New functions.
aac0c6e3
MR
7515 (x_calc_absolute_position): Use them.
7516 (x_term_init): Omit removed `height' and `width' members.
7517
b8ff72fa
SM
7518 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7519 New functions.
aac0c6e3
MR
7520 (w32_read_socket, x_calc_absolute_position): Use them.
7521 (w32_initialize_display_info, w32_term_init): Omit removed members
7522 of w32_display_info.
7523
b8ff72fa
SM
7524 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
7525 New functions.
7526 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 7527
b8ff72fa
SM
7528 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7529 New functions.
aac0c6e3
MR
7530 (x_calc_absolute_position): Use them.
7531 (x_term_init): Omit removed `height' and `width' members.
7532
7533 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
7534 (compute_tip_xy):
7535 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
7536 * xmenu.c (menu_position_func): Use x_display_pixel_height and
7537 x_display_pixel_width.
7538
75392008-09-18 Kenichi Handa <handa@m17n.org>
7540
7541 * composite.c (fill_gstring_header): Don't check FROM and TO here.
7542 (composition_compute_stop_pos): Fix handling of static composition.
7543 (Fcomposition_get_gstring): Check FROM and TO at first.
7544
75452008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7546
46e722a9 7547 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
7548 mixup (YAILOM).
7549
75502008-09-17 Chong Yidong <cyd@stupidchicken.com>
7551
7552 * indent.c (Fvertical_motion): Use position reported by iterator
7553 instead of PT for determining screen motion (bug#943).
7554
75552008-09-17 Romain Francoise <romain@orebokech.com>
7556
7557 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
7558
75592008-09-17 Kenichi Handa <handa@m17n.org>
7560
7561 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
7562
7563 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
7564 if necessary.
7565
75662008-09-16 Kenichi Handa <handa@m17n.org>
7567
7568 * coding.c (make_conversion_work_buffer): Avoid calling
7569 Fget_buffer_create if it is not necessary.
7570
75712008-09-15 Martin Rudalics <rudalics@gmx.at>
7572
7573 * window.c (Fselect_window): Don't update window_select_count and
7574 use_time when norecord is not nil.
7575
75762008-09-14 Kenichi Handa <handa@m17n.org>
7577
7578 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
7579 specpdl_ptr.
7580
75812008-09-12 Kenichi Handa <handa@m17n.org>
7582
7583 * indent.c (scan_for_column): Don't handle automatic composition
7584 if the current buffer is not associated with a window.
7585
7586 * composite.c (composition_reseat_it): If the current buffer is
7587 not associated with a window, ignore the automatic composition.
7588 (find_automatic_composition): Likewise.
7589
75902008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7591
7592 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
7593 (Fgpm_mouse_stop): Use it.
7594 * termhooks.h (close_gpm): Declare.
7595 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
7596 connection if Gpm_GetEvent fails.
7597
7598 * window.c (set_window_buffer): Always preserve current-buffer.
7599
76002008-09-12 Glenn Morris <rgm@gnu.org>
7601
7602 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
7603
76042008-09-11 Glenn Morris <rgm@gnu.org>
7605
7606 * charset.c (charset-map-path): Doc fix.
7607
76082008-09-10 Kenichi Handa <handa@m17n.org>
7609
7610 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
7611
7612 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
7613 compose a grapheme cluster with the preceding base glyph.
7614
7615 * composite.c (composition_compute_stop_pos): Fix previous change.
7616 Reset cmp_it->id to -1 at first.
7617
76182008-09-10 Glenn Morris <rgm@gnu.org>
7619
7620 * Makefile.in (character.o, chartab.o): Fix config.h typo.
7621
76222008-09-09 Chong Yidong <cyd@stupidchicken.com>
7623
7624 * keyboard.c (read_key_sequence): Reapply translation maps when
7625 switching keyboards.
7626
76272008-09-09 Kenichi Handa <handa@m17n.org>
7628
7629 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
7630 characters.
7631
7632 * composite.c (FORWARD_CHAR): Fix calculation
7633 of (POSITION).pos_byte.
7634 (composition_compute_stop_pos): Limit the search of composition to
7635 at most 500 characters ahead. If we reach the limit or find a
7636 newline, set cmp_it->ch to -2 and return 0.
7637 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
7638
76392008-09-08 Kenichi Handa <handa@m17n.org>
7640
7641 * indent.c (Fvertical_motion): Be sure to set
7642 it_overshoot_expected if it.cmp_it.id is non-negative.
7643
76442008-09-07 Andreas Schwab <schwab@suse.de>
7645
7646 * callproc.c (Fcall_process): Don't hold references to string data
7647 across garbage collection. Move initialisation of new_argv down
7648 to avoid compiler bug.
7649
76502008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7651
7652 * process.c (Fsystem_process_attributes): Doc fix.
7653
76542008-09-07 Chong Yidong <cyd@stupidchicken.com>
7655
7656 * callproc.c (Fcall_process): Canonicalize current directory name.
7657
7658 * xdisp.c (move_it_to): When moving by vpos, ensure that the
7659 iterator advances to the next line if the current line ends in a
7660 continued tab.
7661
76622008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
7663
7664 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7665 member to point to cmp_from.
7666
7667 * xdisp.c: Doc fix for references to gidx data member.
7668
76692008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7670
7671 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7672
76732008-09-07 Kenichi Handa <handa@m17n.org>
7674
7675 * composite.c (FORWARD_CHAR): Check STOP after
7676 incrementing (POSITION).pos.
7677
76782008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7679
7680 * process.c (Fsystem_process_attributes): Doc fix.
7681
76822008-09-06 Chong Yidong <cyd@stupidchicken.com>
7683
7684 * keyboard.c (Ftop_level): Doc fix.
7685
76862008-09-06 Eli Zaretskii <eliz@gnu.org>
7687
7688 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7689 minibuffer, don't let lower part of menu invade the echo area.
7690
7691 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7692 "char *q" to access menu text and advance through it. Revert the
7693 change that displayed ">" instead of ASCII character 0x10.
7694
76952008-09-05 Eli Zaretskii <eliz@gnu.org>
7696
7697 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7698 toggle boxes and radio buttons on MS-DOS as well.
7699
77002008-09-05 Kenichi Handa <handa@m17n.org>
7701
7702 * composite.c (autocmp_chars): Check lookback count.
7703 (composition_compute_stop_pos): Set cmp_it->lookback.
7704 (composition_reseat_it): Check lookback count.
7705 (struct position_record): New struct.
7706 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7707 (find_automatic_composition): New function.
7708 (composition_adjust_point): Use find_automatic_composition.
7709
7710 * dispextern.h (struct composition_it): New member lookback.
7711
77122008-09-02 Chong Yidong <cyd@stupidchicken.com>
7713
7714 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7715 if moving by a single line.
7716
77172008-09-02 Andreas Schwab <schwab@suse.de>
7718
7719 * xterm.c (x_delete_display): Fix merge error.
7720
7721 * fileio.c (Fexpand_file_name): Remove unused variables.
7722
77232008-09-02 Eli Zaretskii <eliz@gnu.org>
7724
7725 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7726 storage on all platforms, not just on DOS_NT.
7727
77282008-09-02 Jason Rumney <jasonr@gnu.org>
7729
b8ff72fa
SM
7730 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7731 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
7732
77332008-09-01 Chong Yidong <cyd@stupidchicken.com>
7734
7735 * xfaces.c (Finternal_set_alternative_font_family_alist)
7736 (Finternal_set_alternative_font_registry_alist): Properly copy
7737 entire alist structure.
7738
77392008-09-01 Kenichi Handa <handa@m17n.org>
7740
d66c0241 7741 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 7742 representative chars of the script is a vector.
d66c0241
JB
7743 (ftfont_list): Handle the case where the representative chars of
7744 the script is a vector.
aac0c6e3
MR
7745
7746 * character.c (syms_of_character): Docstring of
7747 script-representative-chars fixed.
7748
77492008-08-31 Eli Zaretskii <eliz@gnu.org>
7750
7751 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7752 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7753 the menu. Allocate larger buffer for `text', to account for
7754 possible ^C characters.
7755
77562008-08-31 Martin Rudalics <rudalics@gmx.at>
7757
7758 * xdisp.c (prepare_menu_bars): Don't call
7759 Vwindow_size_change_functions with arg Qt.
7760
77612008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7762
7763 * font.h (font_range):
7764 * fileio.c (report_file_error):
46e722a9
SM
7765 * composite.c (composition_update_it): Yet another int/Lisp_Object
7766 mixup (YAILOM).
aac0c6e3
MR
7767
77682008-08-30 Glenn Morris <rgm@gnu.org>
7769
7770 * data.c (Fmake_variable_frame_local): Doc fix.
7771
7772 * frame.c (Fmodify_frame_parameters): Doc fix.
7773
77742008-08-30 Eli Zaretskii <eliz@gnu.org>
7775
7776 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7777 needed by GetTokenInformation.
7778 (w32_system_process_attributes): Check return values of all system
7779 APIs.
7780
7781 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7782 only when the state changes.
7783 (IT_update_begin, IT_update_end): Add termscript trace.
7784
7785 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7786 clipboard is unavailable. Set dst to NULL if it doesn't point to
7787 malloc'ed data.
7788 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7789 passing random values to xfree.
7790
7791 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 7792 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
7793
77942008-08-29 Jason Rumney <jasonr@gnu.org>
7795
7796 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7797
77982008-08-29 Eli Zaretskii <eliz@gnu.org>
7799
7800 * composite.c (fill_gstring_body): Avoid compiler warnings.
7801
7802 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7803 LGLYPH_SET_CODE to avoid compiler warnings.
7804
2ae37cf0 7805 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
7806
7807 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7808
7809 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7810 LGLYPH_SET_CODE.
7811
78122008-08-29 Kenichi Handa <handa@m17n.org>
7813
7814 * fileio.c (report_file_error): Don't downcase the first character
7815 of errstring if it is still unibyte.
7816
78172008-08-29 Kenichi Handa <handa@m17n.org>
7818
7819 These changes are to re-implement the automatic composition so
7820 that it doesn't use text properties.
7821
7822 * Makefile.in (ftfont.o): Depend on composite.h.
7823 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7824
7825 * character.h (Vunicode_category_table): Extern it.
7826
7827 * character.c (Vunicode_category_table): New variable.
7828 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7829
7830 * chartab.c (optimize_sub_char_table): Perform more greedy
7831 optimization.
7832
b8ff72fa
SM
7833 * composite.h (enum composition_method):
7834 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
7835 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7836 (Vcomposition_function_table): Extern it.
7837 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7838 (composition_gstring_put_cache, composition_gstring_from_id)
7839 (composition_gstring_p, composition_gstring_width)
7840 (composition_compute_stop_pos, composition_reseat_it)
7841 (composition_update_it, composition_adjust_point): Extern them.
7842 (Fcomposition_get_gstring): EXFUN it.
7843
d66c0241 7844 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
7845 (Vcomposition_function_table)
7846 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
7847 (gstring_hash_table, gstring_work, gstring_work_headers):
7848 New variables.
aac0c6e3
MR
7849 (gstring_lookup_cache, composition_gstring_put_cache)
7850 (composition_gstring_from_id, composition_gstring_p)
7851 (composition_gstring_width, fill_gstring_header)
7852 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7853 (composition_reseat_it, composition_update_it)
b8ff72fa 7854 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
7855 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7856 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 7857 Defsubr composition_get_gstring.
aac0c6e3
MR
7858
7859 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7860 cmp_id.
7861 (struct glyph_string): Delete the member gidx. New members
7862 cmp_id, cmp_from, and cmp_to.
7863 (enum it_method): Delete GET_FROM_COMPOSITION.
7864 (struct composition_it): New struct.
7865 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7866 Delete c, len, cmp_id, cmp_len in u.comp.
7867
7868 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 7869 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 7870 (enum lglyph_indices): Likewise.
b8ff72fa 7871 (font_range): Adjust extern.
aac0c6e3
MR
7872 (font_fill_lglyph_metrics): Extern it.
7873
7874 * font.c (QCf): New variable.
7875 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7876 (font_prepare_composition): Delete this function.
7877 (font_range): Type and arguments changed.
7878 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7879 (font_fill_lglyph_metrics): New function.
b8ff72fa 7880 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 7881 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
7882 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7883 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
7884
7885 * fontset.h (font_for_char): Extern it.
7886
7887 * fontset.c (font_for_char): New function.
7888
7889 * ftfont.c: Include composite.h.
7890 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 7891 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
7892
7893 * indent.c: Include composite.h and dispextern.h.
7894 (check_composition): Delete this function.
7895 (scan_for_column): Handle composition by
7896 composition_compute_stop_pos, composition_reseat_it, and
7897 composition_update_it.
7898 (compute_motion): Likewise.
7899 (Fvertical_motion): Fix checking of composition.
7900
7901 * keyboard.c (adjust_point_for_property): Check composition by
7902 composition_adjust_point.
7903
b8ff72fa 7904 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
7905 struct glyph_string.
7906
b8ff72fa
SM
7907 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7908 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
7909 struct glyph.
7910 (produce_composite_glyph): Likewise.
7911
b8ff72fa
SM
7912 * w32term.c (x_draw_composite_glyph_string_foreground):
7913 Adjust for the change of struct glyph_string.
aac0c6e3
MR
7914 (x_draw_glyph_string): Likewise.
7915
7916 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7917 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7918
7919 * xdisp.c: Include font.h.
7920 (it_props): Delete the entry for Qauto_composed.
7921 (init_iterator): Initialize it->cmp_it.id to -1.
7922 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 7923 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
7924 (handle_auto_composed_prop): Delete it.
7925 (handle_composition_prop): Handle only static composition.
7926 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7927 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 7928 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
7929 (pop_it): Likewise.
7930 (get_next_element): Delete next_element_from_composition.
7931 (CHAR_COMPOSED_P): New macro.
7932 (get_next_display_element): For automatic composition, get a face
7933 from the font in the glyph-string.
7934 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 7935 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
7936 (next_element_from_string): Check if the character at the current
7937 position is composed by CHAR_COMPOSED_P.
7938 (next_element_from_buffer): Likewise.
d66c0241
JB
7939 (next_element_from_composition): Adjust for the change of struct it.
7940 Update it->cmp_it.
b8ff72fa
SM
7941 (dump_glyph): Adjust for the change of struct glyph.
7942 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
7943 it and struct glyph. Don't handle automatic composition here.
7944 (fill_gstring_glyph_string): New function.
7945 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 7946 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
7947 (BUILD_GSTRING_GLYPH_STRING): New macro.
7948 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7949 automatic composition.
b8ff72fa 7950 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 7951 struct glyph.
b8ff72fa 7952 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 7953
b8ff72fa 7954 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
7955 the change of struct glyph_string.
7956 (x_draw_glyph_string): Likewise.
7957
79582008-08-29 Glenn Morris <rgm@gnu.org>
7959
7960 * buffer.c (word-wrap): Doc fix.
7961 * xdisp.c (truncate-partial-width-windows): Doc fix.
7962 Increase default to 50.
7963
79642008-08-29 Chong Yidong <cyd@stupidchicken.com>
7965
7966 * xdisp.c (update_tool_bar_unwind): New function.
7967 (update_tool_bar): Temporarily set selected frame before building
7968 tool-bar items.
7969
79702008-08-28 Michael Albinus <michael.albinus@gmx.de>
7971
7972 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7973 snprintf, respectively.
7974 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7975
79762008-08-28 Chong Yidong <cyd@stupidchicken.com>
7977
7978 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7979 LDFLAGS to GNUstep CC invocation.
7980
79812008-08-27 Chong Yidong <cyd@stupidchicken.com>
7982
7983 * indent.c (Fvertical_motion): Revert last change. Handle the
7984 general case where we are moving forward, and PT spans multiple
7985 screen lines.
7986
7987 * eval.c (find_handler_clause): Temporarily increase
7988 max-lisp-eval-depth while printing the backtrace buffer, to
7989 guarantee that help-mode code can run.
7990
79912008-08-27 Eli Zaretskii <eliz@gnu.org>
7992
7993 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7994 colors under -rv.
7995 (IT_set_frame_parameters): Don't swap foreground and background
7996 colors if `(reverse . t)' is present in the frame properties.
7997 (internal_terminal_init): Call init_frame_faces only for the
7998 initial frame.
7999
80002008-08-27 Andreas Schwab <schwab@suse.de>
8001
8002 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
8003
80042008-08-27 Andreas Schwab <schwab@suse.de>
8005
8006 * search.c (search_buffer): Set char_base to zero only at the end.
8007
80082008-08-27 Kenichi Handa <handa@m17n.org>
8009
b8ff72fa 8010 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
8011
80122008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
8013
8014 * xterm.c (x_term_init): Temporarily hide the partially
8015 initialized terminal while calling vendor-specific-keysyms.
8016
80172008-08-26 Eli Zaretskii <eliz@gnu.org>
8018
8019 * msdos.c (internal_terminal_init): Most initializations done only
8020 once, especially initial_screen_colors[] and termscript open.
8021
80222008-08-26 Chong Yidong <cyd@stupidchicken.com>
8023
8024 * eval.c (Fcondition_case): Doc fix.
8025
8026 * widgetprv.h (EmacsFramePart): Change font member to the new font
8027 struct.
8028
8029 * widget.c: Include character.h and font.h for XSETFONT.
8030 (setup_frame_gcs): Compute X font id from font struct, just once.
8031
80322008-08-26 Eli Zaretskii <eliz@gnu.org>
8033
8034 * term.c (get_named_tty): Fix last change.
8035
80362008-08-26 Chong Yidong <cyd@stupidchicken.com>
8037
8038 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 8039 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
8040
80412008-08-25 Eli Zaretskii <eliz@gnu.org>
8042
8043 * frame.c (do_switch_frame): Mark previously displayed frame as
8044 obscured for FRAME_MSDOS_P frames as well.
8045
80462008-08-24 Eli Zaretskii <eliz@gnu.org>
8047
8048 * frame.c (make_terminal_frame): Initialize f->terminal,
8049 f->terminal->reference_count, and scroll bars on MS-DOS as well.
8050 Set the top frame to newly created frame.
8051 (Fmake_terminal_frame): Reuse the_only_display_info.
8052
8053 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
8054 estimating available memory.
8055
b97439ce 80562008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
8057
8058 * nsterm.m (ns_draw_window_cursor): Don't call
8059 NSDisableScreenUpdates and NSEnableScreenUpdates on
8060 non-NS_IMPL_COCOA systems.
8061
80622008-08-23 Andreas Schwab <schwab@suse.de>
8063
8064 * process.c (procfs_system_process_attributes): Fix use of
8065 uninitialized variables.
8066
80672008-08-23 Eli Zaretskii <eliz@gnu.org>
8068
8069 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
8070
8071 * dispnew.c (init_display): Remove MS-DOS specific conditions for
8072 calling tty-set-up-initial-frame-faces.
8073
b8ff72fa
SM
8074 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
8075 Allow MSDOS frames along with X frames.
aac0c6e3
MR
8076
8077 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
8078 addition to output_termcap.
8079
8080 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
8081
8082 * termchar.h (FRAME_TTY): Support output_msdos_raw.
8083 (struct tty_display_info) [MSDOS]: Add fields related to mouse
8084 highlight.
8085
8086 * process.c [!subprocesses]: Define QCname.
8087 (syms_of_process): Intern and staticpro it.
8088
8089 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
8090 Adjust for changes in encoding/decoding routines.
8091 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
8092 encode_coding and decode_coding.
8093
b8ff72fa 8094 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
8095
8096 * dosfns.c: Include frame.h before termhooks.h.
8097 (dos_cleanup): Use CURTTY ()->termscript instead of a global
8098 variable termscript.
8099
8100 * s/msdos.h (USER_FULL_NAME): Define.
8101 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
8102
8103 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
8104 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
8105 pw->pw_gecos.
8106
8107 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
8108 SELECTED_FRAME as additional (1st) argument.
8109 (tty_read_avail_input): Handle output_msdos_raw in
8110 addition to output_termcap.
8111
8112 * msdos.c: Include frame.h before termhooks.h.
8113 (mouse_on, mouse_off, mouse_moveto, mouse_init)
8114 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
8115 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
8116 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
8117 (IT_set_terminal_modes, IT_reset_terminal_modes)
8118 (IT_set_frame_parameters): Use tty->termscript instead of a global
8119 variable termscript.
8120 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
8121 global variable terminal_coding. Don't refer to
8122 Vnonascii_translation_table.
8123 (internal_terminal_init): Set Vwindow_system in current_kboard.
8124 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
8125 Announce date and time of session start, if termscript is open.
8126 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
8127 term.c:init_tty). Open termscript only of not already open.
8128 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
8129 here instead of dos_ttraw. Don't initialize display if this is an
8130 initial tty. Don't set FRAME_FONT.
8131 (Vwindow_system_version): Bump to 23.
8132 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
8133 is available, set up mouse_position_hook.
8134 (dos_ttraw, IT_set_terminal_modes): If called with initial
8135 terminal, do nothing.
8136 (IT_set_frame_parameters): Handle the Qtty_type frame
8137 parameter by calling internal_terminal_init.
8138 (dos_set_window_size, show_mouse_face)
8139 (clear_mouse_face, IT_note_mode_line_highlight)
8140 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
8141 (dos_rawgetc): Use tty_display_info instead of x_display_info.
8142 (initialize_msdos_display): New function.
8143 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
8144 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
8145 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
8146 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 8147 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
8148 (request_sigio, unrequest_sigio): Don't define, now defined on
8149 sysdep.c.
8150 (IT_write_glyphs): Rewrite to use encode_terminal_code.
8151
8152 * term.c [MSDOS]: Include msdos.h.
8153 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
8154 conditional to DOS_NT. Allow only one call to this function in a
8155 session. Don't allocate a new struct tty_display_info; instead,
8156 reuse the_only_display_info. Call get_tty_size to get screen
8157 dimensions. Call init_baud_rate to set bad_rate.
8158 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
8159 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 8160 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
8161 (get_tty_terminal, get_named_tty, Ftty_type)
8162 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
8163 output_termcap.
b8ff72fa
SM
8164 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
8165 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 8166 only when subprocesses are supported.
aac0c6e3
MR
8167
8168 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
8169 f->output_data.x.
8170 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
8171 terminal devices.
8172
5582fbc7 8173 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
8174 x_output.
8175 (FRAME_FONT): Use output_data.tty.
8176 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
8177 (struct x_display_info): Rename from display_info. Update all users in
8178 msdos.c.
aac0c6e3 8179 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 8180 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
8181 (dos_ttraw): Update prototype.
8182
8183 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
8184 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
8185
81862008-08-23 Jason Rumney <jasonr@gnu.org>
8187
8188 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
8189 (fn_TIFFSetDirectory): New library function used.
8190 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
8191 (tiff_load): Use :index to select among multiple images. Set count
8192 property when multiple images exist.
8193 (gif_format): Use :index, not :image.
8194
81952008-08-23 Chong Yidong <cyd@stupidchicken.com>
8196
8197 * xdisp.c (try_scrolling): Check INT_MAX instead of
8198 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
8199 to obtain INT_MAX.
8200
82012008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
8202
8203 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
8204
82052008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
8206
8207 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
8208 GNUstep library location.
8209
82102008-08-21 Chong Yidong <cyd@stupidchicken.com>
8211
8212 * xfaces.c (x_update_menu_appearance): Check validity of menu font
8213 before using it.
8214
8215 * puresize.h (BASE_PURESIZE): Increase to 1250000.
8216
82172008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8218
8219 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
8220 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
8221 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
8222 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
8223 (EmacsApp-cursor_blink_handler): Remove declaration.
8224 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
8225 match 01 Feb 2008 changes in xterm.c.
8226 (ns_read_socket): Add cast to avoid warning.
8227 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
8228 GNUstep.
8229
82302008-08-20 Chong Yidong <cyd@stupidchicken.com>
8231
8232 * xselect.c (x_get_foreign_selection): Return nil if desired
8233 selection could not be obtained, instead of signalling an error.
8234
82352008-08-20 David Reitter <david.reitter@gmail.com>
8236
8237 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
8238 * nsterm.m: Remove ns-specific code for cursor blinking.
8239 (ns_draw_window_cursor): Clear cursor properly rather than
8240 redrawing the area. Respect width of bar cursors.
8241 These changes enable the use of generic blink-cursor-mode and
8242 generic cursor types in NS and support smooth cursor movements (do
8243 not blink off after command).
8244 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
8245 Nextstep, too.
8246
82472008-08-19 Kenichi Handa <handa@m17n.org>
8248
8249 * font.c (Vfont_log_deferred): New variable.
8250 (font_add_log): Check Vfont_log_deferred.
8251 (font_deferred_log): New function.
8252
8253 * font.h (font_deferred_log): Extern it.
8254
8255 * fontset.c (reorder_font_vector): Use encoding charset of fonts
8256 for sorting.
8257 (face_for_char): Use deferred log.
8258
82592008-08-18 Kenichi Handa <handa@m17n.org>
8260
8261 * fontset.c (face_for_char): Add font log.
8262
8263 * font.c (font_add_log): Add the font properties :script, :lang,
8264 and :otf in the log.
8265
82662008-08-17 Chong Yidong <cyd@stupidchicken.com>
8267
8268 * xdisp.c: Remove dead code.
8269 (handle_invisible_prop, next_overlay_string): Defer call to
8270 setup_for_ellipsis.
8271 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
8272
82732008-08-15 Chong Yidong <cyd@stupidchicken.com>
8274
8275 * xfaces.c (lookup_derived_face): Properly handle possible zero
8276 return value of get_lface_attributes.
8277 (merge_faces): Don't tell lookup_derived_face to signal an error
8278 if face is not found.
8279
8280 * dired.c (Fdirectory_files): Doc fix.
8281
8282 * process.c (make_process): Initialize kill_without_query struct
8283 member.
8284
82852008-08-15 Eli Zaretskii <eliz@gnu.org>
8286
8287 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
8288 Alternative calculation of totphys for Visual Studio 6.
8289
8290 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
8291
8292 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
8293 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
8294 All users changed.
8295 (stat): Only root directory passed to GetDriveType. Allow RAM
8296 disk as well as local fixed disk when w32-get-true-file-attributes
8297 is set to `local'.
8298 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
8299 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
8300 (w32_cached_id, w32_add_to_cache): New functions.
8301 (get_name_and_id): Look account names in the cache before calling
8302 lookup_account_sid.
8303 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
8304 New initialization flags.
8305 (globals_of_w32): Initialize them to zero.
8306 (w32_system_process_attributes): Use w32_cached_id and
8307 w32_add_to_cache.
8308
83092008-08-14 Lawrence Mitchell <wence@gmx.li>
8310
8311 * lread.c (Fread_char, Fread_char_exclusive): If no character
8312 event is read before timeout is reached, return nil, rather than
8313 converting to a number.
8314
83152008-08-14 Chong Yidong <cyd@stupidchicken.com>
8316
8317 * fns.c (use_dialog_box): Doc fix.
8318
8319 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
8320 on OS X.
8321
83222008-08-13 Chong Yidong <cyd@stupidchicken.com>
8323
8324 * frame.c (Qns_parse_geometry): New var.
8325 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
8326
83272008-08-11 Chong Yidong <cyd@stupidchicken.com>
8328
8329 * xdisp.c (x_produce_glyphs): Handle the case when font has no
8330 space character in calculating tabs.
8331
83322008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
8333
8334 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
8335
83362008-08-10 Glenn Morris <rgm@gnu.org>
8337
8338 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
8339 silence gcc "limited range of data type" warnings in some
8340 make_fixnum_or_float calls.
8341
83422008-08-09 Eli Zaretskii <eliz@gnu.org>
8343
8344 * w32.c (w32_system_process_attributes): If the process does not
8345 exist, return nil.
8346
8347 * w32.c: Include thelp32.h, psapi.h and coding.h.
8348 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
8349 declarations.
8350 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
8351 (Process32Next_Proc): New typedefs.
8352 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
8353 (g_b_init_process32_next, g_b_init_open_thread_token)
8354 (g_b_init_impersonate_self, g_b_init_revert_to_self)
8355 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
8356 (g_b_init_get_process_working_set_size)
8357 (g_b_init_global_memory_status_ex): New static variables.
8358 (globals_of_w32): Initialize them.
8359 (create_toolhelp32_snapshot, process32_first, process32_next)
8360 (open_thread_token, impersonate_self, revert_to_self)
8361 (get_process_memory_info, get_process_working_set_size)
8362 (global_memory_status, global_memory_status_ex): New wrapper
8363 functions.
8364 (w32_list_system_processes, w32_system_process_attributes)
8365 (enable_privilege, restore_privilege, ltime, process_times):
8366 New functions.
8367 (convert_time_raw): New function.
8368 (convert_time): Remove conversion of FILETIME into time in 100
8369 nsec units, call convert_time_raw instead.
8370
8371 * process.h (w32_list_system_processes, w32_system_process_attributes):
8372 Add prototypes.
8373 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
8374 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
8375 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
8376 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
8377
8378 * process.c (Fsystem_process_attributes): Doc fix.
8379
83802008-08-08 Chong Yidong <cyd@stupidchicken.com>
8381
8382 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
8383 a continued multi-char glyph; if so, advance to the actual glyph.
8384
83852008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8386
8387 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
8388
8389 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
8390 (.m.o): Use it.
8391 * config.in: Regenerate.
8392
83932008-08-07 Chong Yidong <cyd@stupidchicken.com>
8394
8395 * xdisp.c (redisplay_window): Revert last change.
8396 (try_window): Check bottom scroll margin too.
8397
83982008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8399
8400 * config.in: Regenerate.
8401
8402 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
8403 -list-load-path-shadows'.
8404 (nsgui.h): Reduce number of things depending on it.
8405
84062008-08-06 Chong Yidong <cyd@stupidchicken.com>
8407
8408 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
8409 instead of window-end which does the wrong thing at eob.
8410 (try_cursor_movement): Minor optimization.
8411 (redisplay_window): If scroll margin is defined, don't assume
8412 window doesn't need scrolling.
8413
84142008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8415
8416 * config.in: Regenerate.
8417
8418 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
8419 (mostlyclean): Don't delete *.d under NS.
8420
8421 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
8422
84232008-08-06 Kenichi Handa <handa@m17n.org>
8424
8425 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
8426
84272008-08-06 Andreas Schwab <schwab@suse.de>
8428
8429 * config.in: Regenerate.
8430
84312008-08-05 Chong Yidong <cyd@stupidchicken.com>
8432
8433 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
8434 forcing a window start.
8435
8436 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
8437 (auto_save_1): Update modtime when auto-save-list-file-name is on.
8438
84392008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8440
8441 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
8442 argument.
8443
84442008-08-05 Juanma Barranquero <lekktu@gmail.com>
8445
8446 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
8447 <scroll-down-aggressively, before-change-functions>:
8448 <after-change-functions>: Reflow docstrings.
8449
84502008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8451 Ken Raeburn <raeburn@gnu.org>
8452
8453 Dock menu customization, based on a patch by Ken Raeburn, plus some
8454 other fixes.
8455 * nsmenu.m (dockMenu): New variable.
8456 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
8457
8458 * nsterm.h (dockMenu): Declare.
8459
8460 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
8461 (ns_term_init): Initialize dockMenu.
8462 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
8463 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
8464 left.
8465
8466 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
8467
84682008-08-04 Chong Yidong <cyd@stupidchicken.com>
8469
8470 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
8471
8472 * config.in: Regenerate.
8473
84742008-08-04 Seiji Zenitani <zenitani@mac.com>
8475
8476 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
8477
84782008-08-04 Chong Yidong <cyd@stupidchicken.com>
8479
8480 * nsterm.h (find_and_call_menu_selection): Fix prototype.
8481
84822008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8483
8484 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
8485
8486 * keyboard.h: Comment an #endif.
8487
8488 * lisp.h (have_menus_p): Adjust comment.
8489
8490 * menu.c (find_and_return_menu_selection): Fix comparison with
8491 client_data.
8492
8493 * nsmenu.m (popup_activated_flag): New variable.
8494 (popup_activated): New function.
8495 (menu-or-popup-active-p): New exported lisp definition.
8496 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
8497 when popup done.
8498 (ns_popup_dialog): Set popup_activated_flag.
8499
8500 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
8501 version for GNUstep (handled by conditional typedef in nsterm.m).
8502 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
8503 in rgb.txt).
8504
8505 * process.c (init_process): Use DARWIN_OS, not DARWIN.
8506
8507 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
8508
8509 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
8510
8511 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
8512 shortcircuit if popup_activated like GTK and X toolkit.
8513
8514 * m/inter386.h: Change DARWIN to DARWIN_OS.
8515
8516 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
8517 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
8518 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
8519 comment on NO_SOCK_SIGIO.
8520
85212008-08-03 Chong Yidong <cyd@stupidchicken.com>
8522
8523 * nsterm.m (windowDidResize): Remove stopModal call.
8524
85252008-08-03 Andreas Schwab <schwab@suse.de>
8526
8527 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
8528 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
8529
85302008-08-02 Chong Yidong <cyd@stupidchicken.com>
8531
8532 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
8533 Don't use uninitialized pointer variable when using getrlimit.
8534
85352008-08-02 Jason Rumney <jasonr@gnu.org>
8536
8537 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
8538
85392008-08-02 Eli Zaretskii <eliz@gnu.org>
8540
8541 * alloc.c (NSTATICS): Bump to 0x640.
8542
8543 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
8544
8545 * lisp.h: Add prototype for directory_files_internal.
8546
8547 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
8548 New functions.
8549 (syms_of_process): Defsubr them. Add initializations for various
8550 Q* symbols used in procfs_system_process_attributes.
8551 (procfs_list_system_processes, procfs_system_process_attributes)
8552 [HAVE_PROCFS]: New functions.
8553 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
8554 (procfs_get_total_memory): New functions.
8555
85562008-08-01 Juanma Barranquero <lekktu@gmail.com>
8557
8558 * xfaces.c (Fx_load_color_file): Fix previous change;
8559 it is #ifdef WINDOWSNT, not WINDOWS_NT.
8560
85612008-08-01 Michael Albinus <michael.albinus@gmx.de>
8562
8563 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
8564
85652008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8566
8567 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
8568
85692008-08-01 Chong Yidong <cyd@stupidchicken.com>
8570
8571 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
8572
8573 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
8574 define NSApplicationDelegateReplySuccess.
8575 (EmacsView -converstationIdentifier): Use long instead of
8576 NSInteger for GNUstep, since it doesn't have NSInteger.
8577
8578 * xmenu.c: Revert last change.
8579
8580 * keyboard.h: Fix last change.
8581
85822008-08-01 Juanma Barranquero <lekktu@gmail.com>
8583
8584 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
8585 on Windows.
8586
85872008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8588
8589 Warning clearing and clean-up in NS port.
8590 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
8591 Add prototypes.
8592 * nsgui.h (FACE_DEFAULT): Remove, unused.
8593 (XGCValues): Change colors to unsigned long.
8594 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
8595 nsterm.m.
8596 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
8597 (ns_list_fonts): Remove, unused.
8598 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
8599 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
8600 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
8601 (nsfont_draw): Compare face colors to 0, not nil.
8602 * nsmenu.m (struct widget_value): Drop unneeded declaration.
8603 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
8604 (-addSubmenuWithTitle:): Use NSMenuItem class.
8605 (ns_popup_menu): Use NO, not NULL, for enabled setting.
8606 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
8607 (ns_clip_to_row): Make gc arg a BOOL.
8608 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
8609 ns_clip_to_row() call.
8610 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
8611 used). Cast FRAME_FONT assignments.
8612 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
8613 (ns_string_to_lispmod): Change arg to const char.
8614 (ns_term_init): Use NSMenuItem class.
8615 (EmacsApp -openFile:): Move to different section of file.
8616 (EmacsApp -application:openFiles:): Don't return a value, call
8617 -replyToOpenOrPrint:.
8618 (EmacsView -keyDown:): Fix up cast.
8619 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
8620 (EmacsView -menuDown:): Cast tag in call to
8621 find_and_call_menu_selection().
8622 (ns_list_fonts): Remove, unused.
8623 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
8624 (ns_fontname_to_xlfd): Make static.
8625 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
8626 Remove prototypes (now in keyboard.h).
8627 (next_menubar_widget_id): Remove, unused.
8628 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
8629 Remove prototypes (now in keyboard.h).
8630 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
8631
86322008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
8633
8634 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
8635 (floatfns.o): Depend on syssignal.h.
8636 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
8637
8638 * systty.h: Fix previous change that removed BSD_TERMIOS.
8639 Add comments to #ifdefs.
8640
86412008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8642
8643 * w32fns.c (w32-load-color-file): Remove.
8644 (x-open-connection): Use renamed Fx_load_color_file.
8645 * xfaces.c (x-load-color-file): Add.
8646 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
8647 Emacs.clr.
8648 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
8649
86502008-07-31 Michael Albinus <michael.albinus@gmx.de>
8651
8652 * dbusbind.c (Fdbus_call_method_asynchronously)
8653 (Fdbus_method_error_internal): New defuns.
8654 (xd_read_message): Handle also reply messages.
8655 (Vdbus_registered_functions_table): Extend docstring.
8656
86572008-07-31 Juanma Barranquero <lekktu@gmail.com>
8658
8659 * keyboard.c (gobble_input): Fix previous change.
8660
86612008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8662
8663 * bitmaps/README:
8664 * xfns.c:
8665 * termcap.c:
8666 * term.c:
8667 * syswait.h:
8668 * systty.h:
8669 * systime.h:
8670 * syssignal.h:
8671 * sysdep.c:
8672 * process.h:
8673 * process.c:
8674 * print.c:
8675 * ndir.h:
8676 * lread.c:
8677 * keyboard.c:
8678 * getpagesize.h:
8679 * floatfns.c:
8680 * fileio.c:
8681 * emacs.c:
8682 * doc.c:
8683 * dispnew.c:
8684 * dired.c:
8685 * data.c:
8686 * callproc.c:
8687 * buffer.c:
8688 * README:
8689 * Makefile.in:
8690 * s/template.h:
8691 * s/msdos.h:
8692 * m/vax.h: Remove VMS support.
8693 * s/vms.h:
8694 * vlimit.h:
8695 * uaf.h:
8696 * temacs.opt:
8697 * param.h:
8698 * ioctl.h: Remove file.
8699
87002008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8701
8702 * s/ms-w32.h (MULTI_KBOARD): Remove.
8703 * xterm.c:
8704 * xselect.c:
8705 * xfns.c:
8706 * window.c:
8707 * w32term.c:
8708 * w32fns.c:
8709 * terminal.c:
8710 * termhooks.h:
8711 * term.c:
8712 * sysdep.c:
8713 * keyboard.h:
8714 * keyboard.c:
8715 * frame.h:
8716 * frame.c:
8717 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8718 * config.in: Regenerate.
8719
87202008-07-30 Jason Rumney <jasonr@gnu.org>
8721
8722 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8723
8724 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8725 (w32font_open_internal): Get unicode version of textmetrics.
8726 Don't enable or disable glyph indices here.
8727 (w32font_open): Disable use of glyph indices.
8728
8729 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8730
87312008-07-30 Chong Yidong <cyd@stupidchicken.com>
8732
8733 * minibuf.c (Vread_buffer_function): Doc fix.
8734
87352008-07-30 John Paul Wallington <jpw@pobox.com>
8736
8737 * minibuf.c (read_buffer_completion_ignore_case): New var.
8738 (Fread_buffer): Use it.
8739
87402008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8741
8742 * systty.h (sensemode): Remove empty #if. Remove reference to
8743 BSD_TERMIOS, unused.
8744
8745 * sysdep.c: Remove reference to DGUX.
8746 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8747
8748 * config.in: Regenerate.
8749
87502008-07-30 Jason Rumney <jasonr@gnu.org>
8751
8752 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8753
87542008-07-29 Jason Rumney <jasonr@gnu.org>
8755
8756 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8757 is populated.
8758 (uniscribe_encode_char): Always use uniscribe.
8759 Avoid using context if cache is populated.
8760
87612008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8762
8763 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8764 open menu.
8765
8766 * gtkutil.c (menu_nav_ended): Remove.
8767 (create_menus): Remove signal connect for menu_nav_ended.
8768
87692008-07-28 Chong Yidong <cyd@stupidchicken.com>
8770
8771 * xdisp.c (redisplay_window): Check return value of
8772 compute_window_start_on_continuation_line before forcing a window
8773 start.
8774
87752008-07-28 Jason Rumney <jasonr@gnu.org>
8776
8777 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8778
8779 * w32term.c (w32_enable_unicode_output, cleartype_active):
8780 Remove obsolete display options.
8781 (x_draw_glyph_string_background): Don't use old cleartype_active
8782 workaround.
8783 (w32_initialize): Remove cleartype_active initialization.
8784 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8785
87862008-07-28 Andreas Schwab <schwab@suse.de>
8787
8788 * lisp.h (init_weak_hash_tables, syms_of_font)
8789 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8790 (remove_hash_entry): Don't declare.
8791 * eval.c (maybe_call_debugger): Make static and move before use.
8792 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8793 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8794 * xterm.h (x_set_frame_alpha): Declare.
8795
87962008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8797
8798 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8799 (create_menus): Connect selection-done to menu_nav_ended.
8800
88012008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8802
8803 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8804 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8805 parameter with read of 'alpha' one.
8806 (Qns_frame_parameter): Remove.
5582fbc7 8807 * nsselect.m (selection-coding-system)
aac0c6e3
MR
8808 (next-selection-coding-system, Vselection_coding_system)
8809 (Vnext_selection_coding_system): Drop.
8810
88112008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8812
8813 * nsfns.m (do-applescript, do_applescript): Rename to
8814 ns-do-applescript, ns_do_applescript, and move within file.
8815
88162008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8817
8818 Remove support for Mac Carbon.
8819 * mactoolbox.c:
8820 * macterm.h:
8821 * macterm.c:
8822 * macselect.c:
8823 * macmenu.c:
8824 * macgui.h:
8825 * macfns.c:
8826 * mac.c: Remove file.
8827 * s/darwin.h:
8828 * m/intel386.h:
8829 * xfaces.c:
8830 * xdisp.c:
8831 * window.c:
8832 * tparam.c:
8833 * termhooks.h:
8834 * termcap.c:
8835 * term.c:
8836 * syssignal.h:
8837 * sysselect.h:
8838 * sysdep.c:
8839 * process.c:
8840 * lread.c:
8841 * lisp.h:
8842 * keyboard.c:
8843 * image.c:
8844 * fringe.c:
8845 * frame.h:
8846 * frame.c:
8847 * fontset.c:
8848 * font.h:
8849 * font.c:
8850 * fns.c:
8851 * fileio.c:
8852 * emacs.c:
8853 * dispnew.c:
8854 * dispextern.h:
8855 * config.in:
8856 * atimer.c:
2ae37cf0 8857 * Makefile.in: Remove code for Carbon.
aac0c6e3 8858
f0131492 88592008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
8860
8861 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8862
88632008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8864
8865 * macterm.h (kCGBitmapByteOrder32Host): New define for
8866 non-universal SDKs.
8867
8868 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8869 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8870
8871 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8872 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8873
88742008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8875
8876 * w32inevt.c: Include dispextern.h.
8877
88782008-07-26 Andreas Schwab <schwab@suse.de>
8879
8880 * print.c (print_object): Fix off-by-one in last change.
8881
88822008-07-25 Juanma Barranquero <lekktu@gmail.com>
8883
8884 * term.c (syms_of_term): Don't initialize default_orig_pair,
8885 default_set_foreground and default_set_background on Windows.
8886
88872008-07-25 Jason Rumney <jasonr@gnu.org>
8888
8889 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8890 ScriptItemize. Clean up return value checking. Remove unused
8891 variables.
8892 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8893 shaping engine.
8894
8895 * w32font.c (w32font_has_char): Handle the case where we can't
8896 determine the script for a character.
8897
88982008-07-25 Chong Yidong <cyd@stupidchicken.com>
8899
8900 * term.c (syms_of_term): Initialize default_orig_pair,
8901 default_set_foreground, and default_set_background.
8902
8903 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8904 clash (bug#86).
8905 (getloadavg): Callers changed.
8906
8907 * image.c (svg_load_image): Fix last change.
8908 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8909 image size is valid. Use g_object_unref instead of deprecated
8910 rsvg_handle_free to free rsvg handle.
8911 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8912
89132008-07-25 Jason Rumney <jasonr@gnu.org>
8914
8915 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8916 surrogates before looking up glyph index.
8917 (w32font_text_extents): Encode as surrogates if falling back to
8918 functions that need UTF-16 wide chars.
8919
8920 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8921 BMP as surrogates before looking up glyph index.
8922
89232008-07-25 Chong Yidong <cyd@stupidchicken.com>
8924
8925 * image.c (svg_load_image): Check for failure in return value of
8926 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8927
89282008-07-25 Jason Rumney <jasonr@gnu.org>
8929
8930 * w32font.c (Fx_select_font): Reverse sense of second arg.
8931
89322008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8933
8934 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8935 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8936
8937 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8938 (PURESIZE): Use it.
8939
89402008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8941
8942 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8943 * m/alpha.h (TEXT_END):
8944 * m/ibmrs6000.h (TEXT_END):
8945 * m/macppc.h (TEXT_END):
8946 * s/darwin.h (TEXT_END):
8947 * s/msdos.h (TEXT_END): Remove, unused.
8948 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8949 * s/cygwin.h: Remove comment.
8950
8951 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8952 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8953 * m/intel386.h (DOT_GLOBAL_START):
8954 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8955 (USG): Remove, file not used on USG platforms.
8956
8957 * Makefile.in (HAVE_X11): Remove empty #else.
8958
89592008-07-24 Andreas Schwab <schwab@suse.de>
8960
8961 * fileio.c (Finsert_file_contents): Properly adjust undo list
8962 after format conversion.
8963
89642008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8965
8966 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8967 (menu_nav_ended): Remove.
8968 (create_menus): Remove signal connect for menu_nav_ended.
8969 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8970 create_menus.
8971 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8972
89732008-07-23 Jason Rumney <jasonr@gnu.org>
8974
8975 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8976 with opened font.
8977 (w32font_open): Set font type to gdi.
8978
8979 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8980
89812008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8982
8983 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8984 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8985 defines it.
8986 * unexec.c (ADDR_CORRECT): Define unconditionally.
8987
8988 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8989
8990 * unexec.c: Remove code depending on !COFF and USG, the file is
8991 not used for such systems.
8992
8993 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8994 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8995 (LD_SWITCH_SYSTEM_1): Remove, update users.
8996
8997 * s/darwin.h (DATA_END):
8998 * m/intel386.h (DATA_END):
8999 * m/ibmrs6000.h (DATA_END):
9000 * m/alpha.h (DATA_END): Remove, unused.
9001
9002 * config.in: Regenerate.
9003 * s/ms-w32.h (subprocesses): Define unconditionally.
9004 * s/template.h (subprocesses): Update comment.
9005 * s/vms.h (subprocesses):
9006 * s/usg5-4.h (subprocesses):
9007 * s/hpux10-20.h (subprocesses):
9008 * s/gnu-linux.h (subprocesses):
9009 * s/cygwin.h (subprocesses):
9010 * s/bsd-common.h (subprocesses):
9011 * s/aix4-2.h (subprocesses):
9012 * s/darwin.h (subprocesses): Do not define, defined by default now.
9013
9014 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
9015 Remove all references.
9016 (temacs): Add GNUstep specific ld flags.
9017
9018 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
9019 similarly to what X does.
9020
90212008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9022
9023 * nsfns.m (x-list-fonts): Remove.
9024 (syms_of_nsfns): Drop the x-list-fonts declaration.
9025 * nsterm.m: Get rid of remaining "//" comments.
9026
90272008-07-22 Chong Yidong <cyd@stupidchicken.com>
9028
9029 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
9030
9031 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
9032 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
9033 (Fns_own_selection_internal, Fx_disown_selection_internal)
9034 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
9035
9036 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
9037 ... */' style of docstrings. Doc fixes.
9038
90392008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9040
9041 * terminfo.c (UP, BC, PC): Undo previous change.
9042
9043 * nsfns.m: Rename ns prefixed functions/variables to the
9044 corresponding x versions. Update references.
9045
90462008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
9047
9048 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
9049
90502008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9051
9052 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
9053 Remove forwarding functions.
9054 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
9055 non-static.
9056 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
9057 non-static.
9058 (ns_frame_parm_handlers): Use the new names.
9059 (syms_of_nsfns): Move to the end of file.
9060
9061 * nsterm.m (syms_of_nsterm): Move to the end of file.
9062
9063 * dispnew.c (init_display): Remove code for X10.
9064
90652008-07-22 Jason Rumney <jasonr@gnu.org>
9066
9067 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
9068 bare drive.
9069
90702008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9071
9072 * nsterm.m (syms_of_nsterm): Remove debugging println.
9073
90742008-07-22 David Reitter <david.reitter@gmail.com>
9075
9076 * nsfns.m (do_applescript, F_do_applescript): NS version of the
9077 Carbon implementation of the same functionality: execute arbitrary
9078 AppleScript code.
9079
90802008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9081
9082 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
9083 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
9084 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9085 (Fx_display_mm_height, Fx_display_mm_width)
9086 (Fx_display_backing_store, Fx_display_visual_class)
9087 (Fx_display_save_under, Fx_open_connection)
9088 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
9089 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
9090 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9091 (Fx_display_pixel_width, Fx_display_pixel_height)
9092 (Fx_display_usable_bounds, Fx_display_planes)
9093 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
9094 ... */' style of docstrings.
9095
90962008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
9097
9098 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
9099 on this platform.
9100 (mips):
9101 * m/iris4d.h (mips): Do not define.
9102 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
9103
9104 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
9105
9106 * image.c:
9107 * nsfns.m:
9108 * nsselect.m:
9109 * nsterm.h:
9110 * nsterm.m: Rename ns prefixed functions/variables to the
9111 corresponding x versions. Update references.
9112
9113 * m/ibms390x.h (NO_REMAP): Do not undefine.
9114
9115 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
9116
91172008-07-21 Chong Yidong <cyd@stupidchicken.com>
9118
9119 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
9120 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
9121 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
9122 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
9123 (Fns_display_mm_height, Fns_display_mm_width)
9124 (Fns_display_backing_store, Fns_display_visual_class)
9125 (Fns_display_save_under, Fns_open_connection)
9126 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
9127 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
9128 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9129 (Fns_display_pixel_width, Fns_display_pixel_height)
9130 (Fns_display_usable_bounds, Fx_display_planes)
9131 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
9132
91332008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
9134
9135 * print.c (print_object): Check print_depth before searching for
9136 circularities.
9137
91382008-07-21 Michael Albinus <michael.albinus@gmx.de>
9139
9140 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
9141 only sprintf.
9142
91432008-07-21 Kenichi Handa <handa@m17n.org>
9144
9145 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
9146
91472008-07-20 Andreas Schwab <schwab@suse.de>
9148
9149 * syntax.c (find_start_pos, find_start_value)
9150 (find_start_value_byte, find_start_begv, find_defun_start)
9151 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
9152
91532008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9154
9155 * s/sol2-3.h: Insert contents of s/sol2.h.
9156 (LD_SWITCH_SYSTEM): Remove redundant definition.
9157 * s/sol2.h: Remove, unused.
9158
91592008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9160
9161 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
9162
91632008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9164
9165 * Makefile.in (ns_appdir): Fix typo in find command.
9166
91672008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9168
9169 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
9170
9171 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
9172 added not supported anymore.
9173
9174 * s/usg5-4-2.h (LIBS_SYSTEM):
9175 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
9176
9177 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9178 * s/lynxos.h (GETPGRP_NO_ARG):
9179 * s/hpux10-20.h (NO_SIOCTL_H):
9180 * s/gnu.h (GETPGRP_NO_ARG):
9181 * s/gnu-linux.h (NO_SIOCTL_H):
9182 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9183 * s/cygwin.h (GETPGRP_NO_ARG):
9184 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
9185 (C_DEBUG_SWITCH): Remove duplicate definition.
9186
9187 * m/ibms390.h: Remove boilerplate comments.
9188
9189 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
9190
9191 * process.c (HAVE_SERIAL): Consolidate ifdefs.
9192 (wait_reading_process_output): Remove code for SunOS, platform not
9193 supported anymore. Use SOLARIS2 instead of sun.
9194
91952008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9196
9197 * font.c (font_open_by_name): Under NS, default lface height to zero.
9198 (font_open_for_lface): Under NS, set size based on frame fontsize.
9199 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
9200 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
9201
92022008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9203
9204 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
9205 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
9206 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
9207 YES/NO.
9208 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
9209 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
9210 * Makefile.in (clean): Clear out build destination dir.
9211
92122008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9213
9214 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
9215 xterm, xselect.
9216 * lisp.h: Remove declaration of hash_remove.
9217 * nsgui.h: Remove redefinitions of hash_remove.
9218 * fns.c (hash_remove): Rename to hash_remove_from_table.
9219
92202008-07-19 Seiji Zenitani <zenitani@mac.com>
9221
9222 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
9223 strdup() the family UTF8String before modifying it.
9224
92252008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9226
9227 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
9228 NS_FACE_BACKGROUND with 0 instead of nil.
9229 * nsfont.m (nsfont_draw): Same.
9230
92312008-07-19 Chong Yidong <cyd@stupidchicken.com>
9232
9233 * nsfns.m (ns_set_background_color): Fix crash.
9234
92352008-07-18 Chong Yidong <cyd@stupidchicken.com>
9236
9237 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
9238
92392008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
9240
9241 * puresize.h (BASE_PURESIZE): Increase to 1240000.
9242
92432008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9244
9245 * gtkutil.c: Include <config.h> instead of "config.h".
9246
9247 * lisp.h (Foverlay_buffer): Add EXFUN.
9248
9249 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
9250 child process to complete child_setup. Undo 2005-09-21 change.
9251
9252 * s/darwin.h: Mention setsid after vfork.
9253
92542008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9255
9256 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
9257 Depend on macgui.h.
9258
9259 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
9260 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
9261
9262 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
9263 and f19.
9264 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
9265
9266 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
9267 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
9268 Remove enumerators.
9269
9270 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
9271 Check if FACE_FROM_ID returns NULL.
9272
92732008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
9274
9275 * w32inevt.c (change_frame_size): Remove extern declaration.
9276 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
9277 change_frame_size.
9278
92792008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9280
9281 * getloadavg.c: Revert last change (2008-07-15).
9282
92832008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9284
9285 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 9286 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
9287 from configure.
9288
92892008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
9290
9291 * s/sol2.h:
9292 * s/sol2-4.h: Reorganize conditionals.
9293
9294 * ecrt0.c: Remove code depending on m68000, not used anymore.
9295
9296 * fns.c (hash_remove): Make static.
9297 * lisp.h (hash_remove): Don't prototype.
9298
9299 * m/ibmrs6000.h:
9300 * m/ibms390x.h:
9301 * m/macppc.h: Remove boilerplate comments.
9302
9303 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
9304 Solaris, which does not need them.
9305
9306 * m/vax.h: Remove comments about unsupported systems.
9307
9308 * s/darwin.h: Reorganize ifdefs.
9309
93102008-07-17 Andreas Schwab <schwab@suse.de>
9311
9312 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
9313
93142008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
9315
9316 Use SDATA. Follow coding convention of placing operators at
9317 beginning of next line rather than end of previous line, and placing
9318 spaces around infix operators.
9319
9320 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
9321 in case it was defined already.
9322 USE @GNUSTEP_MAKEFILES@ rather than envvars.
9323 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
9324 ns_default.
9325 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
9326 Lisp_Objects.
9327 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
9328 (ns_defined_color, ns_color_to_lisp): Declare.
9329 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
9330 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
9331 it's accepted even with USE_LISP_UNION_TYPE.
9332 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
9333 (update_frame_tool_bar): Remove apparently obsolete tests for
9334 non-integerness of f->tool_bar_lines.
9335 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
9336 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
9337 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
9338 (nsfont_open): Don't confuse NULL for Qnil.
9339 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
9340 * menu.h (find_and_call_menu_selection):
9341 * menu.c (find_and_call_menu_selection): Use just int for vector size.
9342 (find_and_return_menu_selection): Always return something.
9343 * frame.h: Include dispextern.h for Display_Info.
9344 (display_x_get_resource): Declare.
9345
93462008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
9347
9348 * syntax.c: Remove stdio.h include accidentally introduced in
9349 Emacs.app commit.
9350 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
9351 NS_IMPL_COCOA.
9352 * keyboard.c (handle_async_input, input_available_signal): Remove
9353 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
9354
93552008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9356
9357 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
9358 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
9359 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
9360 Use SDATA.
9361
9362 * keymap.c: Remove all NS-specific code.
9363 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
9364 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
9365 where_is_preferred_modifier, return a different value depending on how
9366 preferred is the binding.
9367 (where_is_internal): Adjust accordingly.
9368 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
9369 Adjust to new preferred_sequence_p.
9370 (syms_of_keymap): Declare `where-is-preferred-modifier'.
9371 * keyboard.c (parse_solitary_modifier): Not static any more.
9372 * keyboard.h (parse_solitary_modifier): Declare.
9373
93742008-07-16 Andreas Schwab <schwab@suse.de>
9375
9376 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
9377 of easymenu.
9378
93792008-07-16 Chong Yidong <cyd@stupidchicken.com>
9380
9381 * xdisp.c (move_it_in_display_line): Account for word wrap, so
9382 that we don't move off the line.
9383
93842008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9385
9386 * keyboard.c (Qsuper): Remove.
9387 (parse_menu_item): Don't call where_is_internal specially for NS.
9388
93892008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9390
9391 * s/gnu-linux.h: Remove boilerplate comments.
9392
9393 * m/alpha.h (__ELF__): Consolidate conditions.
9394
9395 * m/m68k.h (linux): Use GNU_LINUX instead.
9396 Remove boilerplate comments.
9397
9398 * m/intel386.h: Undo refactoring from previous change.
9399 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
9400 too, remove dead code.
9401 (linux): Use GNU_LINUX instead.
9402
94032008-07-16 Jason Rumney <jasonr@gnu.org>
9404
9405 * w32gui.h: Repeat 26 June changes lost by last change.
9406
94072008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9408
9409 * systty.h: Remove code for Aix on 386, unsupported platform.
9410
9411 * s/ms-w32.h: Remove boilerplate comments.
9412 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
9413
9414 * s/gnu-linux.h (TERM): Remove support.
9415 (HAVE_SYSVIPC): Remove, unused.
9416 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
9417 for this system.
9418
9419 * process.c: Remove support for IRIS, unused.
9420 Remove support for TERM, not relevant anymore.
9421
9422 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
9423 used with the definition.
9424
9425 * s/aix4-2.h (static): Do not undef.
9426
9427 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
9428 only used on Aix.
9429 (HAVE_SYSVIPC): Remove, unused.
9430
9431 * m/hp800.h (CANNOT_DUMP): Do not undef.
9432
9433 * m/alpha.h: Fix comment.
9434
9435 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
9436 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
9437 used by this configuration.
9438 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
9439 * unexec.c: Remove code depending on HPUX and
9440 USG_SHARED_LIBRARIES, not used with this file. Remove code
9441 depending on IRIS, unused. Remove if 0-ed code.
9442
9443 * s/template.h: Remove comments about static.
9444
9445 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
9446 Remove if 0-ed code.
9447 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
9448 were the same as the default.
9449 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
9450 Remove boilerplate comments.
9451 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
9452 (HAVE_SYSVIPC): Remove, unused.
9453 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
9454
9455 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9456 Remove boilerplate comments.
9457 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9458 Remove boilerplate comments.
9459 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9460 Remove boilerplate comments.
9461 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
9462
9463 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
9464 USG systems which do not use DATA_SEG_BITS.
9465 Refactor code. Remove boilerplate comments.
9466
9467 * m/ibms390.h:
9468 * m/m68k.h:
9469 * s/bsd-common.h:
9470 * s/cygwin.h:
9471 * s/darwin.h:
9472 * s/freebsd.h:
9473 * s/gnu.h:
9474 * s/msdos.h: Remove boilerplate comments.
9475
9476 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 9477 do not use this file.
aac0c6e3
MR
9478 (IRIS_4D): Remove, unused.
9479
9480 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 9481 do not use this file.
aac0c6e3
MR
9482 (SIGN_EXTEND_CHAR):
9483 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
9484 * unexmips.c: Remove file, unused.
9485
9486 * editfns.c (Fuser_full_name): Replace the only use of
9487 USER_FULL_NAME with its value.
9488 * config.in: Regenerate.
9489
94902008-07-16 David Reitter <david.reitter@gmail.com>
9491
9492 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
9493 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
9494
94952008-07-16 Glenn Morris <rgm@gnu.org>
9496
9497 * emacs.c (system-type): Doc fix.
9498
94992008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
9500
9501 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
9502 If the cache doesn't work, let's fix it, rather than work around it.
9503
95042008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9505
9506 * Makefile.in: Correct additions for nsfont.o in last commit.
9507 * nsfont.m: New file (forgot last commit).
9508
95092008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9510
9511 * callproc.c (set_initial_environment): Initialize
9512 Vprocess_environment under CANNOT_DUMP (fixes crash when
9513 batch-compiling for bootstrap).
9514
95152008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9516 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9517
9518 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
9519 fix crash due to different init order.
9520
95212008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9522
9523 Changes and additions for NeXTstep windowing system (Cocoa and
9524 GNUstep) support.
9525
9526 * Makefile.in:
9527 * config.in: Support defines and build commands for NS port.
9528 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
9529 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
9530 * dispextern.h: Include nsgui.h and add needed typedefs under NS
9531 windowing.
9532 (struct face): Add synth_ital field.
9533 * dispnew.c: Include nsterm.h when compiling under NS windowing.
9534 (init_display): Initialize Vinitial_window_system to "ns" when so
9535 compiled.
9536 * emacs.c: Include GSConfig.h when compiling under GNUstep.
9537 (display_arg): Use under NS.
9538 (main): Under NS, allocate autorelease pool and handle command line
9539 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
9540 (standard_args): Add NS-specific args.
9541 (shut_down_emacs): Shut down NS terminal if compiled under NS.
9542 * font.c (DEFAULT_ENCODING): New variable.
9543 (font_find_for_lface): Use it.
9544 (syms_of_font): Load syms_of_nsfont under NS.
9545 * font.h: Declare nsfont_driver when compiled under NS.
9546 * fontset.c: When compiling under NS, include nsterm.h.
9547 (fontset_from_font): Autoconstruct fontset under NS.
9548 * frame.c (various): Under NS, include nsterm.h, add Qns window system
9549 symbol, document and use it.
9550 (do_switch_frame): When for_deletion under Cocoa, add
9551 Fraise_frame(Qnil).
9552 (x_set_frame_parameters): Ensure font attribute changes are picked up.
9553 (x_get_arg): Allow "yes" and "no" as boolean values.
9554 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
9555 Qright under Cocoa.
9556 (focus-follows-mouse): Default to 0 under NS.
9557 * frame.h (enum output_method): Add output_ns.
9558 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
9559 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
9560 (FRAME_WINDOW_P): NS-specific definition.
9561 * fringe.c (max_used_fringe_bitmap): Make public.
9562 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
9563 (getloadavg): Use NeXT code under descendant OS's.
9564 * image.c (includes and header section, x_create_bitmap_from_data)
9565 (x_create_bitmap_from_file, free_bitmap_record, image_background)
9566 (image_background_transparent, x_clear_image_1)
9567 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
9568 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
9569 (x_to_xcolors, x_from_xcolors, x_disable_image)
9570 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
9571 other GUIs, including XPM support using code originally written for
9572 Carbon GUI.
9573 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
9574 using NS API.
9575 (image_ascent): Use font metrics macros instead of direct struct field
9576 access.
9577 * keyboard.c (includes): Add nsterm.h when compiling under NS.
9578 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
9579 Also, handle NS as GTK for menu bar purposes.
9580 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
9581 toolkit where they differ.
9582 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
9583 use cachelist, still needed under NS.
9584 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
9585 (struct widget_value): Define it here for menu.c.
9586 * keymap.c (includes): Include modifier internals.
9587 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
9588 NS.
9589 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
9590 support for preferring sequences using certain modifiers, specified by
9591 the FIRSTONLY argument.
9592 * lisp.h (hash_remove): Rename to avoid name clash when compiling
9593 under NS GNUstep implementation.
9594 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
9595 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
9596 * menu.c: Include nsterm.h under NS.
9597 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
9598 (free_menubar_widget_tree_value, update_submenu_strings)
9599 (find_and_call_menu_selection): Treat NS as X and NT.
9600 (find_and_return_menu_selection): New function, used for popup menus.
9601 * nsgui.h:
9602 * nsterm.h:
9603 * nsfns.m:
9604 * nsimage.m:
9605 * nsmenu.m:
9606 * nsselect.m:
9607 * nsterm.m: New files.
9608 * process.c (wait_reading_process_output): Under NS, call ns_select()
9609 instead of plain select().
9610 * syntax.c (char_quoted): Under NS, avoid a crash when called near
9611 beginning of buffer.
9612 * sysselect.h (init_process): Rename when compiling under Cocoa to
9613 avoid name conflict.
9614 * termhooks.h (display_info): Add ns_display_info to union.
9615 * terminal.c (Fterminal_live_p): Add ns to terminal types.
9616 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
9617 COCOA environment.
9618 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
9619 unexec() signature. (Note, this will dump, but the resulting file
9620 crashes; unexosx is used instead; keeping around for reference and
9621 possible aid in getting dump working under GNUstep.)
9622 * w32gui.h (button_type, widget_value): Remove definitions (now in
9623 keyboard.h).
9624 * window.c: Include nsterm.h when compiling under NS.
9625 * xdisp.c (includes): Include nsterm.h when compiling under NS.
9626 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
9627 other GUI windowing systems.
9628 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
9629 GTK.
9630 (x_consider_frame_title): Under NS, set icon type and frame
9631 modified-state indicator; use ns_set_name_as_filename() when using
9632 formatted title.
9633 (update_window_cursor): Make public when compiling under NS.
9634 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
9635 (hourglass_atimer, Vhourglass_delay
9636 * xfaces.c (header section, init_frame_faces, clear_font_table)
9637 (defined_color, unload_color, x_face_list_fonts)
9638 (prepare_face_for_display): Add NS support parallel to other GUIs.
9639 Emulate GCs like other non-X GUIs.
9640 (split_font_name): Don't lowercase font name under NS.
9641 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
9642 under NS.
9643 * s/darwin.h: Add support for compilation under NS.
9644
96452008-07-15 Jason Rumney <jasonr@gnu.org>
9646
9647 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
9648 (w32_show_hourglass): Rename from show_hourglass.
9649 (w32_hide_hourglass): Rename from hide_hourglass.
9650 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
9651 (Vhourglass_delay): Declare extern.
9652 (hourglass_started): Remove.
9653
9654 * xdisp.c (Vhourglass_delay): Remove static.
9655 (hourglass_started, start_hourglass, cancel_hourglass):
9656 Don't include these versions on WINDOWSNT.
9657
96582008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9659
9660 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
9661 variables (formerly in xfns.c).
9662 (show_hourglass, hide_hourglass): New prototypes (same).
9663 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9664 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9665 in xfns.c).
9666 (syms_of_xdisp): Declare/initialize display-hourglass,
9667 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
9668 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9669 formerly in xfns.c.
9670 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9671 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9672 (start_hourglass, cancel_hourglass): Remove.
9673 (show_hourglass, hide_hourglass): Remove prototypes and static
9674 modifiers.
9675 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9676 hourglass_atimer, hourglass_shown_p declaration/initialization.
9677 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9678 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9679 (start_hourglass, cancel_hourglass): Remove.
9680 (show_hourglass, hide_hourglass): Remove prototypes and static
9681 modifiers.
9682 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9683 hourglass_atimer, hourglass_shown_p declaration/initialization.
9684 * w32fns.c (display_hourglass_p, Vhourglass_delay)
9685 (DEFAULT_HOURGLASS_DELAY): Remove.
9686 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9687 hourglass_shown_p declaration/initialization.
9688
96892008-07-14 Jason Rumney <jasonr@gnu.org>
9690
9691 * w32fns.c (w32_get_arg): Remove wrapper function.
9692 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9693 directly.
9694 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9695
96962008-07-14 Kenichi Handa <handa@m17n.org>
9697
9698 * xfont.c (xfont_open): Add workaround for X's bug.
9699
97002008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9701
9702 * fontset.c: Include <stdio.h> unconditionally.
9703
97042008-07-13 Michael Albinus <michael.albinus@gmx.de>
9705
9706 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9707 for filtering.
9708
97092008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
9710
9711 * s/vms.h: Use __GNUC__ instead of _GNUC_.
9712
9713 * m/macppc.h:
9714 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
9715
9716 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9717 (SPECIAL_EMACS_INT):
9718 * m/ia64.h (SPECIAL_EMACS_INT):
9719 * m/amdx86-64.h (SPECIAL_EMACS_INT):
9720 * s/gnu.h (NLIST_STRUCT):
9721 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9722 * s/gnu-linux.h (LINUX):
9723 * s/msdos.h (HAVE_FACES):
9724 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9725
9726 * systty.h:
9727 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9728 anymore.
9729
97302008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9731
9732 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9733 always defined as int.
9734
9735 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9736 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9737 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9738 * s/freebsd.h (HAVE_WAIT_HEADER):
9739 * s/bsd-common.h (HAVE_UNION_WAIT):
9740 * s/aix4-2.h (HAVE_WAIT_HEADER):
9741 * m/mips.h (HAVE_UNION_WAIT):
9742 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9743 (COFF, static): Do not define, they are undefined later in the file.
9744
9745 * process.c (update_status): Don't use a union.
9746 (status_convert):
9747 (sigchld_handler): Use int instead of WAITTYPE.
9748
97492008-07-12 Chong Yidong <cyd@stupidchicken.com>
9750
9751 * indent.c (Fvertical_motion): Restore hscroll before moving to
9752 goal column.
9753
97542008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9755
9756 * lisp.h: Remove left over code.
9757
97582008-07-11 Andreas Schwab <schwab@suse.de>
9759
9760 * lisp.h: Fix logic in last change.
9761
9762 * menu.h: New file.
9763 * menu.c: Include it.
9764 * xmenu.c: Likewise.
9765 * Makefile.in: Update dependencies.
9766
97672008-07-11 Kenichi Handa <handa@m17n.org>
9768
9769 * fontset.c (fontset_from_font): Cancel the previous change.
9770
97712008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9772
9773 * lisp.h:
9774 * w32heap.c:
9775 * emacs.c:
9776 * alloc.c: Replace all references of NO_UNION_TYPE with
9777 USE_LISP_UNION_TYPE.
9778
9779 * m/xtensa.h (NO_UNION_TYPE):
9780 * m/vax.h (NO_UNION_TYPE):
9781 * m/template.h (NO_UNION_TYPE):
9782 * m/sparc.h (NO_UNION_TYPE):
9783 * m/mips.h (NO_UNION_TYPE):
9784 * m/macppc.h (NO_UNION_TYPE):
9785 * m/m68k.h (NO_UNION_TYPE):
9786 * m/iris4d.h (NO_UNION_TYPE):
9787 * m/intel386.h (NO_UNION_TYPE):
9788 * m/ibms390x.h (NO_UNION_TYPE):
9789 * m/ibms390.h (NO_UNION_TYPE):
9790 * m/ibmrs6000.h (NO_UNION_TYPE):
9791 * m/ia64.h (NO_UNION_TYPE):
9792 * m/hp800.h (NO_UNION_TYPE):
9793 * m/arm.h (NO_UNION_TYPE):
9794 * m/amdx86-64.h (NO_UNION_TYPE):
9795 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9796 defining it the same.
9797
97982008-07-10 Chong Yidong <cyd@stupidchicken.com>
9799
9800 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9801
98022008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9803
9804 * fileio.c:
9805 * sysdep.c
9806 * systty.h:
9807 * m/ibmrs6000.h:
9808 * m/iris4d.h:
9809 * s/aix4-2.h:
9810 * s/freebsd.h:
9811 * s/gnu-linux.h:
9812 * s/hpux10-20.h:
9813 * s/hpux11.h:
9814 * s/netbsd.h:
9815 * s/sol2-3.h:
9816 * s/sol2-4.h:
9817 * s/sol2.h:
9818 * s/usg5-4.h:
9819 * s/vms.h: Remove references to unused variables.
9820
98212008-07-10 Andreas Schwab <schwab@suse.de>
9822
9823 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9824 pattern before matching the generic family.
9825
98262008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9827
9828 * unexec.c:
9829 * s/vms.h:
9830 * s/usg5-4-2.h:
9831 * s/sol2-5.h:
9832 * s/freebsd.h:
9833 * s/darwin.h: Remove dead code.
9834
9835 * m/template.h:
9836 * m/sparc.h:
9837 * m/mips.h:
9838 * m/m68k.h:
9839 * m/iris4d.h:
9840 * m/intel386.h:
9841 * m/ibms390x.h:
9842 * m/ibms390.h:
9843 * m/ia64.h:
9844 * m/hp800.h:
9845 * m/arm.h:
9846 * m/amdx86-64.h: Remove dead code and references to unused
9847 and compiler defined symbols.
9848
9849 * unexmips.c:
9850 * unexelf.c: Remove references to desupported systems.
9851
9852 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9853
9854 * m/powermac.h: Remove boilerplate comments.
9855 (NO_REMAP): Remove unused definition.
9856
9857 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9858 define them.
9859
98602008-07-10 Kenichi Handa <handa@m17n.org>
9861
9862 * xfont.c (xfont_open): Log the reason of failure.
9863
98642008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9865
9866 * fontset.c (fontset_get_font_group):
9867 * font.c (font_check_otf): Specify argument types.
9868
98692008-07-09 Kenichi Handa <handa@m17n.org>
9870
9871 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9872 non-ASCII char is found.
9873
9874 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9875 (reorder_font_vector): Change the arg preferred_family to font.
9876 Prefer the spec matching with font.
9877 (fontset_get_font_group): New function.
9878 (fontset_find_font): Change the format of an element of a realized
9879 fontset. Use fontset_get_font_group.
9880 (fontset_font): Try the current fontset, the default fontset, the
9881 fallbacks of the current fontset, and the fallbacks of the default
9882 fontset in this order.
9883 (face_for_char): Delete the shortcut to use the current font.
9884 (fontset_from_font): Don't set fonts for Latin in the fontset.
9885
9886 * font.h (font_make_object, font_match_p): Adjust prototypes.
9887
9888 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9889
9890 * font.c (font_make_object): New arg entity and pixelsize.
9891 (font_check_otf_features, font_check_otf): New functions.
9892 (font_match_p): Check :lang, :script, and :otf properties.
9893
9894 * xfont.c (xfont_open): Adjust it for the change of
9895 font_make_object.
9896 (xfont_text_extents): Fix initial setting of metrics.
9897
9898 * ftfont.c (struct ftfont_info): New member index, delete member
9899 fc_charset_idx. Make the member order compatible with struct
9900 xftfont_info.
9901 (fc_charset_table): Change charset names to registry names.
9902 (ftfont_pattern_entity): Delete the args registry and
9903 fc_charset_idx. Change the value of :font-entity property
9904 to (FONTNAME . INDEX). Always set :registry property to
9905 `iso10646-1'.
9906 (struct ftfont_cache_data): New struct.
9907 (ftfont_lookup_cache): New arg for_face.
9908 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9909 (ftfont_driver): Set the member otf_capability.
9910 (ftfont_get_charset): Adjust it for the change of
9911 fc_charset_table.
9912 (OTF_TAG_SYM): New macro.
9913 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9914 for the change of fc_charset_table.
9915 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9916 ftfont_pattern_entity. Add FC_INDEX to objset.
9917 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9918 and ftfont_pattern_entity.
9919 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9920 font_make_object, struct ftfont_info.
9921 (ftfont_has_char): Use ftfont_get_fc_charset.
9922 (ftfont_otf_features, ftfont_otf_capability): New functions.
9923 (ftfont_shape): Use ftfont_get_otf.
9924 (ftfont_text_extents): Fix initial setting of metrics.
9925
9926 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9927 member order compatible with struct ftfont_info.
9928 (xftfont_open): Add FC_CHARSET to the pattern. Set
9929 xftfont_info->ft_size. Don't unlock the face. Check BDF
9930 properties if appropriate.
9931 (xftfont_close): Unlock the face.
9932 (xftfont_anchor_point, xftfont_shape): Deleted.
9933 (syms_of_xftfont): Don't set members anchor_point and shape of
9934 xftfont_driver.
9935
9936 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9937 font_make_object.
9938
9939 * w32font.c (w32font_open): Adjust it for the change of
9940 font_make_object.
9941 (w32font_open_internal): Don't set properties of font_object here.
9942
99432008-07-08 Chong Yidong <cyd@stupidchicken.com>
9944
9945 * macfns.c (x_create_tip_frame):
9946 * w32fns.c (x_create_tip_frame):
9947 * xfns.c (x_create_tip_frame): Pass parameter argument to
9948 face-set-after-frame-default.
9949
9950 * xfaces.c (Finternal_merge_in_global_face): Save merged
9951 attributes for the default face back into the face vector.
9952
99532008-07-08 Andreas Schwab <schwab@suse.de>
9954
9955 * fontset.h: Declare fontset_from_font. Don't declare
9956 new_fontset_from_font and fontset_from_font_name.
9957 * xterm.c: Include "fontset.h".
9958 * Makefile.in (xterm.o): Update dependencies.
9959
99602008-07-08 Glenn Morris <rgm@gnu.org>
9961
9962 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9963 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9964
99652008-07-07 Chong Yidong <cyd@stupidchicken.com>
9966
9967 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9968 (x_set_frame_parameters): Don't bind it.
9969
99702008-07-07 Juanma Barranquero <lekktu@gmail.com>
9971
9972 * w32fns.c (map_w32_filename): Declare extern.
9973
99742008-07-07 Jason Rumney <jasonr@gnu.org>
9975
9976 * w32term.c (WS_EX_LAYERED): Define if not already.
9977
99782008-07-06 Chong Yidong <cyd@stupidchicken.com>
9979
9980 * xfaces.c (set_font_frame_param): Don't try to set the font
9981 parameter if it is still unspecified in the lface.
9982
99832008-07-05 Chong Yidong <cyd@stupidchicken.com>
9984
9985 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9986 face if it didn't already exist.
9987
9988 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9989
99902008-07-05 Andreas Schwab <schwab@suse.de>
9991
9992 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9993
99942008-07-05 Chong Yidong <cyd@stupidchicken.com>
9995
9996 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9997 word-wrapping.
9998 (IT_DISPLAYING_WHITESPACE): New macro.
9999 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
10000 when word-wrapping. Simplify word-wrapping logic. Use correct
10001 pixel positions when saving copies of the iterator.
10002 (display_line): Use proper wrap point if the last character on a
10003 line was preceded by whitespace.
10004
100052008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
10006
10007 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
10008
100092008-07-04 Kenichi Handa <handa@m17n.org>
10010
10011 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
10012
10013 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
10014
100152008-07-02 Jason Rumney <jasonr@gnu.org>
10016
10017 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 10018 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
10019
10020 * xdisp.c (next_element_from_display_vector): Move assignment out
10021 of if statement.
10022
100232008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
10024
10025 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
10026
10027 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
10028 (syms_of_fileio): Initialize and export them.
10029 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
10030
10031 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
10032 (Fsystem_move_file_to_trash): New function.
10033 (syms_of_w32fns): Export it to lisp.
10034
100352008-07-01 Jason Rumney <jasonr@gnu.org>
10036
10037 * w32font.c (w32font_text_extents): Don't count overhang as part
10038 of width.
10039
100402008-06-30 Miles Bader <miles@gnu.org>
10041
10042 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
10043 Add `avoid_cursor_p' field.
10044
10045 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
10046 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
10047 (append_glyph, append_composite_glyph, produce_image_glyph)
10048 (append_stretch_glyph): Initialize avoid_cursor_p.
10049 (get_it_property): Rename from `get_line_height_property'.
10050 (x_produce_glyphs): Use get_it_property.
10051 (handle_line_prefix, push_display_prop): New functions.
10052 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
10053 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
10054 New variables.
10055 (syms_of_xdisp): Initialize them.
10056
100572008-06-30 Kenichi Handa <handa@m17n.org>
10058
10059 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
10060 XftDefaultSubstitute (they are called in XftFontMatch).
10061 (xftfont_open): Fix args to ftfont_font_format.
10062
10063 * ftfont.c (fc_charset_table): New member lang.
10064 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 10065 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
10066 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
10067 (ftfont_open): Fix args to ftfont_font_format.
10068 (ftfont_font_format): New arg filename.
10069
100702008-06-30 Chong Yidong <cyd@stupidchicken.com>
10071
10072 * xfaces.c (Finternal_merge_in_global_face): If default face was
10073 modified, realize it again. Update the font face attribute.
10074
100752008-06-29 Jason Rumney <jasonr@gnu.org>
10076
10077 * w32term.c (x_set_frame_alpha): Fix logic.
10078
100792008-06-29 Kenichi Handa <handa@m17n.org>
10080
10081 * fontset.c (Finternal_char_font): Return font-object instead of
10082 font-name.
10083
10084 * composite.c (get_composition_id): Fix the width calculation for TAB.
10085
100862008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
10087
10088 * indent.c (Fvertical_motion): Properly handle float column arg.
10089
100902008-06-28 Jason Rumney <jasonr@gnu.org>
10091
10092 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
10093 (pfnSetLayeredWindowAttributes): New function pointer.
10094 (w32_initialize): Initialize it when supported.
10095 (x_set_frame_alpha): New function.
10096
10097 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
10098 (w32_frame_parm_handlers): Set alpha handler.
10099
10100 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
10101
101022008-06-27 Jason Rumney <jasonr@gnu.org>
10103
10104 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
10105 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
10106 (w32_to_x_charset, x_to_w32_charset)
10107 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10108 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10109 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10110 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10111 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10112 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10113 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
10114 (Qw32_charset_unicode): Remove.
10115 (syms_of_w32fns): Update for above changes.
10116
10117 * w32font.c (w32_to_x_charset, x_to_w32_charset)
10118 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10119 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10120 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10121 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10122 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10123 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10124 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
10125 (syms_of_w32font): Update for above changes.
10126
101272008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
10128
10129 * s/usg5-4.h: Fix previous change: keep the correct branch of a
10130 removed #if.
10131 (USG_SHARED_LIBRARIES): Remove duplicate definition.
10132
101332008-06-26 Juanma Barranquero <lekktu@gmail.com>
10134 Eli Zaretskii <eliz@gnu.org>
10135
10136 * makefile.w32-in (LOCAL_FLAGS):
10137 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
10138
10139 * sysdep.c (_spawnlp, _getpid):
10140 Declare with explicit _cdecl instead of _CRTAPI1.
10141
10142 * editfns.c (Fget_internal_run_time):
10143 Check for WINDOWSNT with #ifdef, not #if.
10144
101452008-06-26 Jason Rumney <jasonr@gnu.org>
10146
10147 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
10148
10149 * w32term.c (x_draw_glyph_string_foreground)
10150 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
10151 Use FONT_HANDLE macro.
10152 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
10153
10154 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10155 (uniscribe_encode_char): Use FONT_HANDLE macro.
10156
10157 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
10158 (w32font_text_extents): Use precast w32_font.
10159 (w32font_close): Free cached metrics.
10160 (w32font_open_internal): Allocate space for name on stack.
10161
101622008-06-26 Chong Yidong <cyd@stupidchicken.com>
10163
10164 * xdisp.c (extend_face_to_end_of_line): Fix last change.
10165
101662008-06-26 Jason Rumney <jasonr@gnu.org>
10167
10168 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
10169 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
10170
101712008-06-26 Juanma Barranquero <lekktu@gmail.com>
10172
10173 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
10174
101752008-06-26 Jason Rumney <jasonr@gnu.org>
10176
10177 * w32bdf.c, w32bdf.h: Remove obsolete files.
10178
10179 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
10180
10181 * w32gui.h: Don't include w32bdf.h.
10182 (XCharStruct, enum w32_char_font_type, W32FontStruct):
10183 Remove obsolete font support.
10184
10185 * w32font.h (struct w32font_info): Remove compat_w32_font.
10186 Add hfont member.
10187 (FONT_COMPAT): Remove obsolete macro.
10188
10189 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
10190 (w32font_encode_char, w32font_text_extents): Use new hfont member.
10191 (w32font_open_internal): Remove compat code. Set new hfont member.
10192 (Fx_select_font): Use new hfont member.
10193
10194 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10195 (uniscribe_encode_char): Use new hfont member.
10196
10197 * w32term.c (x_draw_glyph_string_foreground)
10198 (x_draw_composite_glyph_string_foreground): Use new hfont member.
10199 (x_draw_glyph_string): Use metrics in w32font_info.
10200
102012008-06-26 Kenichi Handa <handa@m17n.org>
10202
10203 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
10204
102052008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
10206
10207 * unexnext.c:
10208 * m/ews4800.h:
10209 * m/hp9000s300.h:
10210 * m/ibm370aix.h:
10211 * m/mips-siemens.h:
10212 * m/ncr386.h:
10213 * m/next.h:
10214 * m/pmax.h:
10215 * m/powerpcle.h:
10216 * m/tandem-s2.h:
10217 * s/386bsd.h:
10218 * s/bsd386.h:
10219 * s/bsd4-1.h:
10220 * s/bsd4-2.h:
10221 * s/bsdos2-1.h:
10222 * s/bsdos2.h:
10223 * s/bsdos3.h:
10224 * s/bsdos4.h:
10225 * s/nextstep.h:
10226 * s/ultrix4-3.h:
10227 * s/usg5-0.h:
10228 * s/usg5-2-2.h:
10229 * s/usg5-2.h:
10230 * s/usg5-4-3.h:
10231 * s/ux4800.h:
10232 * s/uxpds.h:
10233 * s/uxpv.h: Remove support for obsolete systems.
10234 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 10235 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
10236 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
10237 Remove, insert contents in s/aix4-2.h.
10238 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
10239 * s/bsd4-3.h: Rename to ...
10240 * s/bsd-common.h: ... this.
10241 * data.c:
10242 * doc.c:
10243 * ecrt0.c:
10244 * emacs.c:
10245 * fileio.c:
10246 * floatfns.c:
10247 * keyboard.c:
10248 * mem-limits.h:
10249 * print.c:
10250 * process.c:
10251 * sysdep.c:
10252 * syssignal.h:
10253 * systty.h:
10254 * syswait.h:
10255 * term.c:
10256 * unexec.c:
10257 * unexelf.c:
10258 * unexhp9k800.c:
10259 * m/hp800.h:
10260 * m/ibmrs6000.h:
10261 * m/mips.h:
10262 * m/vax.h:
10263 * s/darwin.h:
10264 * s/freebsd.h:
10265 * s/gnu.h:
10266 * s/ms-w32.h:
10267 * s/msdos.h:
10268 * s/netbsd.h:
10269 * s/template.h: Remove references to obsolete variables.
10270
10271 * Makefile.in: Add dependencies for all unexec files.
10272 (admindir): Remove unused variable.
10273 (UNEXEC_SRC): Remove references.
10274
102752008-06-25 Chong Yidong <cyd@stupidchicken.com>
10276
10277 * xfns.c (x_default_font_parameter): If Xft is available, first
10278 try Monospace-12 for the default font.
10279
102802008-06-25 Jason Rumney <jasonr@gnu.org>
10281
10282 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
10283
102842008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
10285
10286 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
10287
10288 * buffer.c (syms_of_buffer): Remove default-word-wrap.
10289
102902008-06-25 Juanma Barranquero <lekktu@gmail.com>
10291
10292 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
10293 <scroll-conservatively>: Fix typo in docstring.
10294
10295 * xselect.c (Fx_send_client_event): Doc fix.
10296
102972008-06-25 Kenichi Handa <handa@m17n.org>
10298
10299 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
10300
10301 * font.c (font_parse_fcname): Remove unused variables.
10302 (font_sort_entites): Delete the arg SPEC. Caller changed.
10303 Fix for the case of ! best_only.
10304 (font_delete_unmatched): Check DPI and AVGWIDTH too.
10305
10306 * lisp.h (Fstring_to_unibyte): EXFUN it.
10307
10308 * character.h (str_to_unibyte): Extern it.
10309
10310 * character.c (str_to_unibyte): New function.
10311
10312 * fns.c (Fstring_to_unibyte): New function.
10313 (syms_of_fns): Defsubr it.
10314
103152008-06-24 Kenichi Handa <handa@m17n.org>
10316
10317 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
10318 DPI too.
10319 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
10320
103212008-06-24 Andreas Schwab <schwab@suse.de>
10322
10323 * Makefile.in (${lispsource}loaddefs.el): Rename from
10324 ../lisp/loaddefs.el.
10325 (bootstrap-clean): Do what distclean does but don't remove
10326 Makefile.
10327 (distclean): Depend on bootstrap-clean and remove Makefile.
10328
103292008-06-24 Chong Yidong <cyd@stupidchicken.com>
10330
10331 * buffer.h (struct buffer): New member word_wrap.
10332
10333 * buffer.c (syms_of_buffer): New variables default-word-wrap and
10334 word-wrap.
10335 (init_buffer_once): Initialize them.
10336
10337 * dispextern.h (struct it): Replace bool truncate_lines_p with a
10338 line_wrap enum possessing three possible values.
10339
10340 * termopts.h: Replace truncate_partial_width_windows with
10341 Vtruncate_partial_width_windows.
10342
10343 * dispnew.c (direct_output_for_insert): Avoid direct output when
10344 inserting a space with word wrap on.
10345
10346 * indent.c (compute_motion): Obey integer values of
10347 truncate-partial-width-windows.
10348
10349 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
10350 replacing truncate_partial_width_windows.
10351 (init_iterator): If Vtruncate_partial_width_windows is an integer,
10352 truncate only if the window width is below that integer.
10353 (start_display, resize_mini_window, produce_stretch_glyph)
10354 (display_string, move_it_in_display_line_to): Use line_wrap.
10355 (back_to_previous_visible_line_start, reseat_1): Reset
10356 string_from_display_prop_p.
10357 (display_line): Extend default face to end of line when wrapping.
10358
103592008-06-24 Kim F. Storm <storm@cua.dk>
10360
10361 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
10362 to wrap continued lines at word boundaries.
10363
103642008-06-24 Jason Rumney <jasonr@gnu.org>
10365
10366 * font.c (Ffont_face_attributes): Multiply pixel size before point
10367 conversion to avoid multiplying rounding error.
10368
103692008-06-23 Jason Rumney <jasonr@gnu.org>
10370
10371 * w32term.c (x_draw_glyph_string_background)
10372 (x_draw_glyph_string): Remove old bdf font code.
10373
10374 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
10375
103762008-06-22 Kenichi Handa <handa@m17n.org>
10377
10378 * font.c (font_find_for_lface): Try the adstyle specified in
10379 the property of LFACE_FONT of LFACE (if any).
10380
103812008-06-21 Seiji Zenitani <zenitani@mac.com>
10382 Ryo Yoshitake <ryo@shiftmode.net>
10383
10384 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
10385
103862008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
10387
10388 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
10389 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
10390 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
10391 (witness-emacs): Remove.
10392 (lisp, shortlisp): Move loaddefs.el earlier.
10393 (mostlyclean): Forget about witness-emacs.
10394
103952008-06-22 Glenn Morris <rgm@gnu.org>
10396
10397 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
10398 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
10399
104002008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10401
10402 * Makefile.in (PRECOMP): Remove.
10403 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
10404 (witness-emacs): Run `compile-first'.
10405 (.el.elc): Use the new compile-onefile target.
10406
104072008-06-21 Kenichi Handa <handa@m17n.org>
10408
10409 * xftfont.c (xftfont_open): Handle QCembolden only when
10410 FC_EMBOLDEN is defined.
10411
104122008-06-21 Andreas Schwab <schwab@suse.de>
10413
10414 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
10415 (.el.elc): Likewise.
10416
104172008-06-21 Miles Bader <miles@gnu.org>
10418
10419 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
10420 build dir, not the lisp source dir.
10421
104222008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10423
10424 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
10425 (bootstrapclean): Remove.
10426 (.el.elc): New rule.
10427 (PRECOMP): New var.
10428 (../lisp/subdirs.el): Remove.
10429 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
10430 (witness-emacs): New target.
10431 (mostlyclean): Remove witness-emacs as well.
10432 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
10433 Add witness-emacs dependency.
10434
104352008-06-20 Chong Yidong <cyd@stupidchicken.com>
10436
10437 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
10438 defined by the font.
10439
104402008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10441
10442 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
10443 (bootstrap-clean): New target that keeps TAGS around.
10444 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
10445 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
10446
104472008-06-20 Jason Rumney <jasonr@gnu.org>
10448
10449 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
10450 Remove obsolete font code.
10451
10452 * w32font.c (font_matches_spec): Use csb bitfield from font signature
10453 to determine language support.
10454
104552008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10456
10457 * sysdep.c (cfsetspeed): New fun extracted from the code.
10458 (cfmakeraw): Move before first use.
10459
104602008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
10461
10462 * sysdep.c (cfmakeraw): Provide fallback implementation.
10463 (serial_configure): Provide fallback implementation of cfsetspeed.
10464
104652008-06-20 Kenichi Handa <handa@m17n.org>
10466
10467 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
10468 the pattern.
10469
10470 * fontset.c (fontset_from_font): Copy font_spec before changing
10471 the elements.
10472
10473 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
10474
104752008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10476
10477 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
10478 for explicit `font' parameters.
10479
10480 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
10481
104822008-06-19 Kenichi Handa <handa@m17n.org>
10483
10484 * frame.c: Include <ctype.h>.
10485 (x_set_font_backend): Allow spacing characters in the X resource
10486 for FontBackend.
10487
104882008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
10489
10490 * w32fns.c, xfns.c (Qfont_param): New var.
10491 (syms_of_w32fns): Initialize it.
10492 (x_default_font_parameter): Record explicit `font' into
10493 `font-parameter'.
10494
104952008-06-18 Kenichi Handa <handa@m17n.org>
10496
10497 * font.c (font_parse_xlfd): Fix previous change.
10498 (font_parse_fcname): Don't use :fc-unknown-spec.
10499 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
10500 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
10501 (font_add_log): Prepend the driver name to the resulting fonts.
10502
10503 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
10504 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
10505 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
10506
10507 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
10508 (QCembolden): New variables.
10509 (syms_of_xftfont): DEFSYM them.
10510 (xftfont_open): Call XftFontMatch. Don't trust the result of
10511 XftTextExtents8 if the pixel_size is less than 5.
10512
105132008-06-18 Andreas Schwab <schwab@suse.de>
10514
10515 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
10516 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
10517
105182008-06-18 Jason Rumney <jasonr@gnu.org>
10519
10520 * w32font.c (w32font_list, w32font_match): Add logging.
10521
10522 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
10523
105242008-06-17 Chong Yidong <cyd@stupidchicken.com>
10525
10526 * font.c (font_parse_fcname): Store divider characters for
10527 unknown-spec list. For known key symbols, intern using correct
10528 symbol name.
10529
105302008-06-17 Kenichi Handa <handa@m17n.org>
10531
10532 * xfaces.c (realize_default_face): If the frame is not on window
10533 system, set the fontset of face to nil.
10534
105352008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10536
10537 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
10538
105392008-06-16 Juanma Barranquero <lekktu@gmail.com>
10540
10541 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
10542 (build_font_name_from_vector): Delete externs.
10543
10544 * xfaces.c (struct font_name): Don't declare.
10545
105462008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
10547
10548 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
10549
105502008-06-16 Chong Yidong <cyd@stupidchicken.com>
10551
10552 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
10553
105542008-06-16 Juanma Barranquero <lekktu@gmail.com>
10555
10556 * font.c (Ffont_spec): Fix usage in docstring.
10557 (Ffont_face_attributes): Doc fix.
10558
105592008-06-16 Andreas Schwab <schwab@suse.de>
10560
10561 * font.c (Ffont_face_attributes): Fix definition.
10562
105632008-06-16 Jason Rumney <jasonr@gnu.org>
10564
10565 * font.h (font_style_symbolic_from_value): Remove.
10566
10567 * font.c (font_style_symbolic_from_value): Remove.
10568 (font_style_symbolic): Revert to pre 2008-06-13 version.
10569
10570 * w32font.c (w32_to_fc_weight): New function.
10571 (w32font_full_name, logfont_to_fcname): Use it.
10572
105732008-06-16 Kenichi Handa <handa@m17n.org>
10574
10575 * font.c (font_check_object): Delete it.
10576 (font_clear_cache): Check if a font-object is alive.
10577 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
10578 font-object to nil.
10579 (font_close_object): Don't check FONT_CLOSE_OBJECT.
10580 (font_at): Don't call font_check_object.
10581 (Ffont_get): Return a symbol for :weight, :slant, and :width.
10582
105832008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
10584
10585 * puresize.h (BASE_PURESIZE): Increase to 1230000.
10586
105872008-06-16 Chong Yidong <cyd@stupidchicken.com>
10588
10589 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
10590
105912008-06-15 Chong Yidong <cyd@stupidchicken.com>
10592
10593 * font.c (font_parse_fcname): Only one decimal point.
10594 (font_unparse_fcname): Handle data in family and foundry indices
10595 as symbols, not strings.
10596 (font_unparse_gtkname, Ffont_face_attributes): New functions.
10597
10598 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
10599
10600 * font.h (font_unparse_gtkname): Add prototype.
10601
106022008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10603
10604 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
10605
106062008-06-15 Andreas Schwab <schwab@suse.de>
10607
10608 * font.c (font_update_drivers): Fix crash when no drivers match.
10609
106102008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
10611
10612 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
10613 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
10614
106152008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
10616
10617 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
10618
106192008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
10620
10621 * process.c (Fserial_process_configure, Fprocess_send_eof):
10622 Use EQ to compare Lisp_Objects.
10623
106242008-06-13 Jason Rumney <jasonr@gnu.org>
10625
10626 * w32fns.c (Fw32_select_font): Remove old font API function.
10627
10628 * w32font.c (logfont_to_fcname): New function.
10629 (Fx_select_font): New font dialog function compatible with
10630 GTK/fontconfig version.
10631
10632 * font.c (font_style_symbolic_from_value): New function.
10633 (font_style_symbolic): Use it.
10634
10635 * font.h (font_style_symbolic_from_value): Declare new function.
10636
106372008-06-13 Juanma Barranquero <lekktu@gmail.com>
10638
10639 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
10640 <font-width-table>: Fix typos in docstrings.
10641
106422008-06-13 Daniel Engeler <engeler@gmail.com>
10643
10644 These changes add serial port access.
10645 * process.c: Add HAVE_SERIAL.
10646 (Fdelete_process, Fprocess_status, Fset_process_buffer)
10647 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
10648 (list_processes_1, select_wrapper, Fstop_process)
10649 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
10650 (status_notify): Modify to handle serial processes.
10651 [HAVE_SERIAL] (Fserial_process_configure)
10652 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
10653 New functions.
10654 * process.h (struct Lisp_Process): Add `type'.
10655 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
10656 New functions.
10657 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
10658 serial ports.
b71ac3dd 10659 (serial_open, serial_configure): New functions.
aac0c6e3
MR
10660 * w32.h: Add FILE_SERIAL.
10661 (struct _child_process): Add ovl_read, ovl_write.
10662
106632008-06-13 Kenichi Handa <handa@m17n.org>
10664
10665 * dispextern.h (enum lface_attribute_index): New member
10666 LFACE_FOUNDRY_INDEX.
10667
10668 * font.c (font_score): Delete arg alternate_families. Check only
10669 weight, slant, width, and size. Ignore the difference of alias
10670 style symbols.
10671 (font_sort_entites): Adjust for the above change. Reflect the
10672 order of font-driver to scores.
10673 (font_list_entities): Don't check alternate_familes here.
10674 (font_clear_prop): Handle foundry.
10675 (font_update_lface): Don't parse "foundry-family" form here.
10676 Handle FONT_FOUNDRY_INDEX.
10677 (font_find_for_lface): Likewise. Handle alternate families here.
10678 If registry is nil, try iso8859-1 and ascii-0.
10679 (font_open_for_lface): Pay attention to size in ENTITY.
10680 (font_open_by_name): Simplify by calling font_load_for_lface.
10681 (free_font_driver_list): Delete it.
10682 (font_update_drivers): Preserve the order of backends.
10683 (syms_of_font): Setting of sort_shift_bits adjusted for the change
10684 of font_score and font_sort_entites.
10685 (font_update_sort_order): Likewise.
10686
10687 * xfaces.c (LFACE_FOUNDRY): New macro.
10688 (check_lface_attrs): Check foundry.
10689 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10690 (merge_face_vectors): Check foundry.
10691 (merge_face_ref): Likewise.
10692 (Finternal_set_lisp_face_attribute): Likewise.
10693 (x_update_menu_appearance): Likewise.
10694 (Finternal_get_lisp_face_attribute): Likewise.
10695 (lface_hash): Likewise.
10696 (lface_same_font_attributes_p): Likewise.
10697 (x_supports_face_attributes_p): Likewise.
10698 (tty_supports_face_attributes_p): Likewise.
10699 (Finternal_set_alternative_font_family_alist): Intern strings.
10700 (Finternal_set_alternative_font_registry_alist): Downcase strings.
10701 (realize_default_face): Set LFACE_FOUNDRY (lface).
10702
10703 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10704 font-driver at first.
10705
10706 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10707
107082008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10709
10710 * lread.c (Fload): Use xfree, not free on saved_doc_string.
10711
107122008-06-12 Jim Meyering <meyering@redhat.com>
10713
10714 Make unexec_free handle NULL the same way free does.
10715 * unexmacosx.c (unexec_free): Ignore a NULL argument.
10716
107172008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10718
10719 * character.h (CHAR_TO_BYTE_SAFE): New macro.
10720 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10721 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10722 (WEAK_ALIAS): Simplify.
10723 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10724 when searching a unibyte buffer.
10725
107262008-06-12 Chong Yidong <cyd@stupidchicken.com>
10727
10728 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10729
107302008-06-12 Juanma Barranquero <lekktu@gmail.com>
10731
10732 * w32font.c: Include ctype.h.
10733
107342008-06-11 Jason Rumney <jasonr@gnu.org>
10735
10736 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10737 misreported as space.
10738 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10739 as aliases for registry iso10646-1.
10740
107412008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10742
10743 * buffer.c (clone_per_buffer_values): Skip `name'.
10744
107452008-06-11 Chong Yidong <cyd@stupidchicken.com>
10746
10747 * font.c (font_parse_fcname): Fix last change; accept decimal
10748 points in font size.
10749
107502008-06-10 Jason Rumney <jasonr@gnu.org>
10751
10752 * w32uniscribe.c (add_opentype_font_name_to_list):
10753 Skip non unicode fonts.
10754
107552008-06-10 Chong Yidong <cyd@stupidchicken.com>
10756
10757 * xfns.c (Fx_font_dialog): New function.
10758
10759 * gtkutil.c (xg_dialog_response_cb): Rename from
10760 xg_file_response_callback.
10761 (pop_down_dialog): Rename from pop_down_file_dialog.
10762 (xg_get_file_name): Callers changed.
10763 (xg_get_font_name): New function.
10764
10765 * gtkutil.h (xg_get_font_name): Insert prototype.
10766
107672008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10768
10769 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10770 x_underline_minimum_display_offset.
10771 (syms_of_xdisp): Declare it here rather than in xterm.c.
10772 * dispextern.h (underline_minimum_offset): Declare it.
10773 * w32term.c (x_draw_glyph_string): Use it.
10774 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10775 (syms_of_xterm): Don't declare it any more.
10776 (x_draw_glyph_string): Adjust to the new name.
10777
8719abec 107782008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
10779
10780 * xterm.c (x_underline_minimum_display_offset): New var.
10781 (x_draw_glyph_string): Use it.
10782 (syms_of_xterm): Declare it.
10783
107842008-06-10 Chong Yidong <cyd@stupidchicken.com>
10785
10786 * font.c (font_parse_fcname): Accept GTK-style font names too.
10787
107882008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10789
10790 * dired.c (file_name_completion): Don't return t if the match is exact
10791 but with different capitalization.
10792 * minibuf.c (Ftry_completion): Simplify.
10793
10794 * window.c (Vwindow_point_insertion_type): New var.
10795 (set_window_buffer): Use it.
10796 (syms_of_window): Init and export it to Lisp.
10797
107982008-06-10 Kenichi Handa <handa@m17n.org>
10799
10800 * font.h (font_intern_prop): Prototype adjusted.
10801
10802 * font.c (font_intern_prop): New arg force_symbol.
10803 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10804 Adjust for the change of font_intern_prop.
10805
10806 * ftfont.c (ftfont_pattern_entity):
10807 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10808 (w32_registry):
10809 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10810 the change of font_intern_prop.
10811
108122008-06-09 Juanma Barranquero <lekktu@gmail.com>
10813
10814 * w32menu.c (digest_single_submenu): Declare extern.
10815
108162008-06-09 Jason Rumney <jasonr@gnu.org>
10817
10818 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10819
10820 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10821 (parse_single_submenu): Remove.
10822 (digest_single_submenu): Remove.
10823 (syms_of_w32menu): Don't initialise variables that have moved
10824 to menu.c.
10825 (set_frame_menubar): Sync with version in xmenu.c.
10826 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10827
10828 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10829 Make static again.
10830
108312008-06-09 Jason Rumney <jasonr@gnu.org>
10832
10833 Changes to w32 files related to the move of common menu code
10834 to menu.c on 2008-06-08 by Chong Yidong.
10835
10836 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10837 defs to w32gui.h.
10838 (single_keymap_panes, push_menu_item, push_menu_pane):
10839 Make globally visible.
10840
10841 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10842 (local_free, malloc_widget_value, free_widget_value)
10843 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10844 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10845 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10846 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10847 (menu_items, menu_items_allocated, menu_items_used)
10848 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10849 (init_menu_items, finish_menu_items, discard_menu_items)
10850 (grow_menu_items, push_submenu_start, push_submenu_end)
10851 (push_left_right_boundary, push_menu_pane, push_menu_item)
10852 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10853 (free_menubar_widget_tree_value, parse_single_submenu)
10854 (update_submenu_strings): Remove functions.
10855 (xmalloc_widget_value): Remove and declare extern.
10856
10857 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10858 (OBJ1): Build it.
10859
10860 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10861 (local_heap, local_alloc, local_free, malloc_widget_value)
10862 (free_widget_value): Define here.
10863
108642008-06-09 Kenichi Handa <handa@m17n.org>
10865
10866 * font.h (Qascii_0): Extern it.
10867
10868 * font.c (Qascii_0): New variable.
10869 (syms_of_font): DEFSYM it.
10870 (font_open_by_name): If the registry "iso8859-1" fails, try also
10871 "ascii-0".
10872
10873 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10874
108752008-06-08 Kenichi Handa <handa@m17n.org>
10876
10877 * .gdbinit (xfont): New command.
10878
108792008-06-08 Andreas Schwab <schwab@suse.de>
10880
10881 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10882 * Makefile.in (menu.o): Update dependencies.
10883
10884 * Makefile.in (obj): Always add menu.o.
10885 * emacs.c (main): Always call syms_of_menu.
10886 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10887
108882008-06-08 Chong Yidong <cyd@stupidchicken.com>
10889
10890 * Makefile.in: Compile menu.c.
10891
10892 * lisp.h: Declare syms_of_menu.
10893
10894 * emacs.c (main): Call syms_of_menu.
10895
10896 * keyboard.h: Relocate platform-independent menu definitions from
10897 xmenu.c.
10898
10899 * menu.c: New file. Relocate platform-independent menu
10900 definitions from xmenu.c. Suggested by Adrian Robert.
10901
10902 * xmenu.c: Remove platform-independent menu definitions.
10903 (menu_items menu_items_inuse, menu_items_allocated)
10904 (menu_items_used, menu_items_n_panes)
10905 (menu_items_submenu_depth): Move to keyboard.h.
10906 (init_menu_items, finish_menu_items, unuse_menu_items)
10907 (discard_menu_items, restore_menu_items, save_menu_items)
10908 (grow_menu_items, push_submenu_start, push_submenu_end)
10909 (push_left_right_boundary, push_menu_pane, push_menu_item)
10910 (keymap_panes, single_keymap_panes, single_menu_item)
10911 (list_of_panes, list_of_items, find_and_call_menu_selection)
10912 (xmalloc_widget_value, free_menubar_widget_value_tree)
10913 (parse_single_submenu, digest_single_submenu)
10914 (update_submenu_strings): Move to menu.c.
10915
109162008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10917
10918 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10919
109202008-06-06 Miles Bader <miles@gnu.org>
10921
10922 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10923 face, not frame default.
10924
109252008-06-05 Martin Rudalics <rudalics@gmx.at>
10926
10927 * window.c (pop_up_windows, pop_up_frames)
10928 (display_buffer_reuse_frames, Vpop_up_frame_function)
10929 (Vdisplay_buffer_function, Veven_window_heights)
10930 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10931 (Vspecial_display_function, Vsame_window_buffer_names)
10932 (Vsame_window_regexps, split_height_threshold)
10933 (Vsplit_window_preferred_function): Move those vars to window.el.
10934 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10935 (Fdisplay_buffer): Move those functions to window.el.
10936 (syms_of_window): Remove corresponding declarations.
10937 (display_buffer): New function.
10938 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10939 * dispnew.c (Flast_nonminibuf_frame): New function.
10940 * buffer.c (Fpop_to_buffer): Move to window.el.
10941
109422008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10943
10944 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10945
109462008-06-05 Kenichi Handa <handa@m17n.org>
10947
10948 * coding.c (detect_coding): Fix previous change.
10949 (detect_coding_system): Likewise.
10950
109512008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10952
10953 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10954
10955 * keymap.c (Vminibuffer_local_filename_must_match_map):
10956 Rename from Vminibuffer_local_must_match_filename_map.
10957 (syms_of_keymap):
10958 * minibuf.c (Fcompleting_read): Adjust accordingly.
10959 * commands.h: Rename declaration as well.
10960
109612008-06-05 Kenichi Handa <handa@m17n.org>
10962
10963 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10964 family name.
10965 (Ffont_put): Likewise.
10966
10967 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10968 current font-spec.
10969
10970 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10971 is unspecified.
10972
10973 * xfaces.c (realize_x_face): If the font-related face attributes
10974 are the same as those of default face, realize a new fontset from
10975 default->fontset.
10976 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10977
109782008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10979
10980 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10981 (move_it_in_display_line): New wrapper.
10982
10983 * window.c (window_scroll_pixel_based_preserve_x)
10984 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10985 (window_scroll_pixel_based, window_scroll_line_based):
10986 Use them to preserve column positions.
10987 (syms_of_window): Initialize them.
10988
10989 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10990 (HPOS . VPOS) pair.
10991
10992 * dispextern.h (move_it_in_display_line): Declare.
10993
109942008-06-05 Juanma Barranquero <lekktu@gmail.com>
10995
10996 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10997 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10998 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10999
110002008-06-04 Juanma Barranquero <lekktu@gmail.com>
11001
11002 * window.c (Fset_window_parameter): Doc fix.
11003 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
11004
110052008-06-04 Joakim Verona <joakim@verona.se>
11006
11007 * window.h (struct window): Add new member window_parameters.
11008
11009 * window.c (Fwindow_parameters, Fwindow_parameter)
11010 (Fset_window_parameter): New defuns.
11011 (syms_of_window): Defsubr the new defuns.
11012 (make_window): Initialize window_parameters to nil.
11013
110142008-06-04 John Paul Wallington <jpw@pobox.com>
11015
11016 * eval.c (Fdefmacro): Doc fix.
11017
110182008-06-04 Kenichi Handa <handa@m17n.org>
11019
11020 * coding.c (detect_coding): Fix handling of coding->head_ascii.
11021 Be sure to call setup_coding_system when we find a proper coding system.
11022 (detect_coding_system): Fix handling of coding->head_ascii.
11023
110242008-06-03 Andreas Schwab <schwab@suse.de>
11025
11026 * font.c (font_prop_validate_spacing): Fix last change.
11027
110282008-06-03 Kenichi Handa <handa@m17n.org>
11029
11030 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
11031 (font_parse_fcname): Fix handling of unknown key.
11032
11033 * xfont.c (xfont_list): Try an alias.
11034
11035 * charset.c (char_charset): Return NULL if the arg charset_list is
11036 specified and C doesn't belong to any of them.
11037
110382008-06-02 Chip Coldwell <coldwell@redhat.com>
11039
11040 * font.c (font_pixel_size): Don't take cdr of an integer.
11041
110422008-06-02 Jim Meyering <meyering@redhat.com>
11043
11044 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
11045 * alloc.c (xfree): Return right away for a NULL arg.
11046 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
11047 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
11048 * mac.c (create_apple_event_from_event_ref): Likewise.
11049 (create_apple_event_from_drag_ref, cfstring_create_normalized):
11050 Likewise.
11051 * doprnt.c (doprnt1): Likewise.
11052 * frame.c (frame): Likewise.
11053 * keyboard.c (wipe_kboard): Likewise.
11054 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
11055 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
11056 * term.c (tty_default_color_capabilities, maybe_fatal)
11057 (delete_tty): Likewise.
11058 * w16select.c (string): Likewise.
11059 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
11060 * w32bdf.c (w32_free_bdf_font): Likewise.
11061 * w32fns.c (w32_unload_font): Likewise.
11062 * w32font.c (w32font_close): Likewise.
11063 * window.c (size_window): Likewise.
11064 * xselect.c (receive_incremental_selection): Likewise.
11065 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
11066 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
11067 * w32.c (stat): Likewise.
11068
11069 Remove useless if-before-free tests.
11070 * editfns.c (Fset_time_zone_rule): Likewise.
11071 * lread.c (nosuffix): Likewise.
11072 * ralloc.c (get_bloc): Likewise.
11073 * regex.c (reg_free): Likewise.
11074 * xftfont.c (xftfont_open, xftfont_close): Likewise.
11075 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
11076 * xsmfns.c (smc_save_yourself_CB): Likewise.
11077
110782008-06-02 Kenichi Handa <handa@m17n.org>
11079
11080 * font.c (font_find_for_lface): Handle float font size.
11081 (font_open_for_lface): Likewise.
11082
11083 * xfaces.c (x_supports_face_attributes_p): Check face->font before
11084 comparing the properties.
11085
110862008-06-01 Jason Rumney <jasonr@gnu.org>
11087
11088 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
11089 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
11090 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
11091 Don't add empty script list.
11092 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
11093
110942008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
11095
11096 * Makefile.in (dot, dotdot): Remove, update users.
11097 ".." has been used elsewhere in the file for a long time.
11098 (LIBXT_STATIC): Remove conditional based on unused variable.
11099
111002008-06-01 Miles Bader <miles@gnu.org>
11101
11102 * xfaces.c (Vface_remapping_alist): New variable.
11103 (syms_of_xfaces): Initialize it.
11104 (enum named_merge_point_kind): New type.
11105 (struct named_merge_point): Add `named_merge_point_kind' field.
11106 (push_named_merge_point): Make cycle detection respect different
11107 named-merge-point kinds.
11108 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
11109 Remove face-name alias resolution.
11110 (lface_from_face_name): New definition using
11111 `lface_from_face_name_no_resolve'.
11112 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
11113 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
11114 (get_lface_attributes): New definition that layers face-remapping on
11115 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
11116 (lookup_basic_face): New function.
11117 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
11118 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
11119 `get_lface_attributes'.
11120 (face_at_buffer_position): Use `lookup_basic_face' to lookup
11121 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
11122 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
11123
11124 * xdisp.c (init_iterator): Pass base_face_id through
11125 `lookup_basic_face' when we actually use it as a face-id.
11126 (handle_single_display_prop): Use `lookup_basic_face' to lookup
11127 DEFAULT_FACE_ID.
11128
11129 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
11130 lookup the initial face-id.
11131
11132 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
11133
111342008-06-01 Juanma Barranquero <lekktu@gmail.com>
11135
11136 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
11137 (Fremove_text_properties): Fix typos in docstrings.
11138
111392008-05-31 Kenichi Handa <handa@m17n.org>
11140
11141 * font.c (font_list_entities): Fix the car part of data to be
11142 stored in the cache.
11143
11144 * ftfont.c (ftfont_font_format): Don't use strcasestr.
11145
111462008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11147
11148 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
11149 Add a `test' argument so another predicate than `equal' can be used.
11150 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
11151 (map_char_table): Remove unused vars `c' and `i'.
11152 * lisp.h (Foptimize_char_table): Adjust declaration.
11153 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
11154
111552008-05-30 Kenichi Handa <handa@m17n.org>
11156
11157 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
11158 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
11159 defined.
11160
111612008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11162
11163 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11164 (Fmake_variable_frame_local): Disallow mixing buffer-local and
11165 frame-local settings for the same variable.
11166
111672008-05-30 Kenichi Handa <handa@m17n.org>
11168
11169 * fontset.c (Ffont_info): Move to font.c.
11170 (syms_of_fontset): Delete defsubr of Sfont_info.
11171
11172 * font.c (font_style_to_value, font_score): Delete casting of the
11173 args to xstcasecmp.
11174 (register_font_driver): Increment num_font_drivers only when
11175 registering the driver globally.
11176 (Ffont_info): Move from fontset.c. Handle a font object too.
11177 (syms_of_font): Defsubr Sfont_info.
11178
111792008-05-29 Kenichi Handa <handa@m17n.org>
11180
11181 * coding.h (enum define_coding_utf8_arg_index): New enum.
11182 (enum coding_attr_index): Change coding_attr_utf_16_bom to
11183 coding_attr_utf_bom.
11184 (enum utf_bom_type): Rename from utf_16_bom_type.
11185 (struct utf_16_spec): Adjust for the above change.
11186 (struct coding_system): Add utf_8_bom in `spec' union.
11187
11188 * coding.c (CODING_UTF_8_BOM): New macro.
11189 (enum coding_category): Delete coding_category_utf_8, add
11190 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
11191 coding_category_utf_8_sig.
11192 (CATEGORY_MASK_UTF_8): Delete it.
11193 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
11194 (CATEGORY_MASK_UTF_8_SIG): New macros.
11195 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
11196 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
11197 CATEGORY_MASK_UTF_8_SIG.
11198 (CATEGORY_MASK_UTF_8): New macro.
11199 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
11200 (detect_coding_utf_8): Check BOM.
11201 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
11202 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
11203 (encode_coding_utf_16): Likewise.
11204 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
11205 (detect_coding, detect_coding_system): Handle utf-8-auto.
11206 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
11207 (syms_of_coding): Fix setting up of Vcoding_category_table.
11208
112092008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
11210
11211 * process.c (Faccept_process_output): If `millisec' is non-nil,
11212 `seconds' default to 0.
11213 (wait_reading_process_output): Also return non-nil if we read output
11214 from a non-running process.
11215
112162008-05-29 Jason Rumney <jasonr@gnu.org>
11217
11218 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
11219 `raster' specified.
11220 (add_font_entity_to_list): Allow non-opentype truetype fonts back
11221 in the uniscribe backend, but disallow any font that has no
11222 unicode subrange support.
11223
112242008-05-29 Juanma Barranquero <lekktu@gmail.com>
11225
11226 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
11227 Fix typos in docstrings.
11228
112292008-05-29 Kenichi Handa <handa@m17n.org>
11230
11231 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
11232 (Fx_family_fonts): Set frame correctly.
11233
112342008-05-28 Jason Rumney <jasonr@gnu.org>
11235
11236 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
11237
112382008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11239
11240 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
11241 calling build_annotations.
11242
112432008-05-28 Juanma Barranquero <lekktu@gmail.com>
11244
11245 * coding.c (Fdecode_coding_region, Fencode_coding_region)
11246 (Fencode_coding_string):
11247 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
11248 <latin-extra-code-table>: Fix typos in docstrings.
11249 (syms_of_coding) <coding-system-alist>: Doc fix.
11250 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
11251
112522008-05-28 Kenichi Handa <handa@m17n.org>
11253
11254 * fontset.c (Ffont_info): Don't call font_close_object.
11255
11256 * font.c (font_parse_family_registry): Use Ffont_put to validate
11257 foundry and family.
11258 (font_delete_unmatched): Don't check spacing.
11259 (font_list_entities): Add spacing to the spec to list fonts.
11260
11261 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
11262 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
11263
11264 * coding.c (encode_coding_raw_text): Fix previous change.
11265 (encode_coding_object): When the dst_object is a buffer and is
11266 different from src_object, move gap to PT.
11267
112682008-05-27 Chong Yidong <cyd@stupidchicken.com>
11269
11270 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
11271
112722008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11273
11274 * coding.c (encode_coding_raw_text): Set coding->produced_char for
11275 all branches. Compute it differently.
11276
11277 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
11278
112792008-05-27 Juanma Barranquero <lekktu@gmail.com>
11280
11281 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
11282 into "else if () ... else ...".
11283
112842008-05-27 Jason Rumney <jasonr@gnu.org>
11285
11286 * w32font.c (w32font_open_internal): Determine if glyph indices
11287 are likely to work here.
11288
112892008-05-27 Chong Yidong <cyd@stupidchicken.com>
11290
11291 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
11292 draw overlap glyphs with appropriate highlighting.
11293
112942008-05-27 Kenichi Handa <handa@m17n.org>
11295
11296 * xfont.c (xfont_open): Fix calculation of font->average_width.
11297
112982008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11299
11300 * casefiddle.c (casify_object): Try to guess better whether the
11301 argument is a byte or a char.
11302
113032008-05-26 Andreas Schwab <schwab@suse.de>
11304
11305 * xselect.c (x_reply_selection_request): Properly handle format == 32.
11306 Always send multiples of format size.
11307
11308 * xterm.c (x_set_frame_alpha): Fix type mismatch.
11309
113102008-05-26 Jason Rumney <jasonr@gnu.org>
11311
11312 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
11313 (compute_metrics): Don't set failure if we just cleared the cache.
11314 (w32_weight_table): Remove unused variable.
11315 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
11316 backwards compatibility.
11317
113182008-05-25 Kenichi Handa <handa@m17n.org>
11319
11320 * w32term.c (x_draw_glyph_string):
11321 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
11322
11323 * xfaces.c: Delete unused function prototypes.
11324 (xstrlwr, font_frame): Delete them.
11325 (clear_face_cache): Delete unused variable.
11326
11327 * xftfont.c (xftfont_open): Delete unused variable.
11328 If underline_thickness is not 1, adjust underline_position.
11329
11330 * ftxfont.c (ftxfont_open): Delete unused variable.
11331
11332 * fontset.c (face_for_char): Optimize for the case of no charset
11333 property.
11334
11335 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
11336 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
11337 (otf_open, font_otf_capability, generate_otf_features)
11338 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11339 Comment out by surrounding "#if 0" and "#endif" for the moment.
11340 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
11341 (syms_of_font): Codes for accessing above commented out.
11342
113432008-05-24 Eli Zaretskii <eliz@gnu.org>
11344
11345 * w32proc.c: Include dispextern.h.
11346
11347 * w32.c: Include dispextern.h.
11348
113492008-05-23 Juanma Barranquero <lekktu@gmail.com>
11350
11351 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
11352 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
11353 Fix typos in docstrings.
11354
113552008-05-23 Jason Rumney <jasonr@gnu.org>
11356
11357 * xsmfns.c: Remove includes that are already included by config.h.
11358
113592008-05-23 Kenichi Handa <handa@m17n.org>
11360
11361 * charset.c (Qemacs, charset_emacs): New variables.
11362 (char_charset): Fix for non-Unicode characters.
11363 (syms_of_charset): Define charset_emacs.
11364
11365 * w32term.c (x_draw_glyph_string): Be sure to update
11366 s->underline_thickness and s->underline_position. Be sure to draw
11367 underline within the current line area.
11368
11369 * xterm.c (x_draw_glyph_string): Be sure to update
11370 s->underline_thickness and s->underline_position. Be sure to draw
11371 underline within the current line area.
11372
11373 * fontset.c: Delete unused variables and add casting for char *
11374 throughout the file.
11375 (fontset_font): Try the fallback fonts of the current fontset
11376 before consulting the default fontset.
11377
11378 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
11379
11380 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
11381
113822008-05-22 Jason Rumney <jasonr@gnu.org>
11383
11384 * font.c: Don't include strings.h.
11385
11386 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
11387
11388 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
11389 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
11390 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
11391 to call xstrcasecmp.
11392
11393 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
11394
11395 * fontset.c (fs_query_fontset): Use xstrcasecmp.
11396
11397 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
11398
11399 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
11400
114012008-05-22 Kenichi Handa <handa@m17n.org>
11402
11403 * puresize.h (BASE_PURESIZE): Increase to 1220000.
11404
11405 * font.c (font_prop_validate_style): Adjust for the format
11406 change of font_style_table.
11407
11408 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
11409 two args.
11410
11411 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
11412 two args.
11413
114142008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
11415
11416 * minibuf.c (keys_of_minibuf): Delete.
11417 * lisp.h (keys_of_minibuf): Delete.
11418 * emacs.c (main): Don't call keys_of_minibuf.
11419
114202008-05-22 Kenichi Handa <handa@m17n.org>
11421
11422 * ftfont.c (ftfont_resolve_generic_family): Rename from
11423 ftfont_list_generic_family. Return a single family for each
11424 generic family.
11425 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
11426 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
11427 Call font_add_log.
11428 (ftfont_match): Call font_add_log.
11429
11430 * font.h (Ffont_xlfd_name): EXFUN adjusted.
11431 (FONT_DEBUG): Define it.
11432 (font_add_log): Extern it.
11433 (font_assert): Rename from xassert.
11434
11435 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
11436 (xfont_list_family): Call font_add_log.
11437 (xfont_match): Likewise.
11438 (memq_no_quit): Delete.
11439
11440 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
11441 call of Ffont_xlfd_name.
11442
11443 * xfaces.c (struct table_entry, slant_table, weight_table)
11444 (swidth_table): Move to font.c.
11445
11446 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
11447 xassert are changed to font_assert. Delete many unused variables.
11448 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
11449 New variables.
11450 (struct table_entry): Move from xfaces.c and modified.
11451 (weight_table, slant_table, width_table): Move from xfaces.c and
11452 contents adjusted for the change of struct table_entry.
11453 (font_style_to_value, font_style_symbolic): Adjust for the
11454 format change of font_style_table.
11455 (font_parse_family_registry): Don't overwrite existing foundry and
11456 family of font_spec.
11457 (font_score): Fix calculation of diff for sizes.
11458 (font_sort_entites): Call font_add_log.
11459 (font_delete_unmatched): Return a newly created list.
11460 (font_list_entities): Fix previous change. Call font_add_log.
11461 (font_matching_entity, font_open_entity, font_close_entity):
11462 Call font_add_log.
11463 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
11464 (Finternal_set_font_style_table): Delete.
11465 (BUILD_STYLE_TABLE): New macro.
11466 (build_style_table): New function.
11467 (Vfont_log, font_log_env_checked): New variables.
11468 (font_add_log): New function.
11469 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
11470 Declare Lisp variables "font-weight-table", "font-slant-table",
11471 "font-width-table", and "font-log". Initialize font_style_table.
11472
114732008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
11474
11475 * xterm.c (x_set_frame_alpha): Move declarations before statements.
11476
114772008-05-21 Seiji Zenitani <zenitani@mac.com>
11478 Ryo Yoshitake <ryo@shiftmode.net>
11479
11480 * frame.c (Qalpha): Add a new frame parameter `alpha'.
11481 (Vframe_alpha_lower_limit): New variable.
11482 (x_set_alpha): New function.
11483
11484 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
11485
11486 * xfns.c (x-create-frame, Qalpha):
11487 Initialize the frame parameter `alpha'.
11488 * xterm.c (OPAQUE, OPACITY): New.
11489 (x_set_frame_alpha): New function.
11490 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
11491
11492 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
11493 * w32fns.c (w32_frame_parm_handlers): Likewise.
11494
114952008-05-20 Jason Rumney <jasonr@gnu.org>
11496
11497 * w32font.c (add_font_entity_to_list): Don't add non-opentype
11498 truetype fonts to opentype list.
11499
115002008-05-20 Juanma Barranquero <lekktu@gmail.com>
11501
11502 * fontset.c (Ffontset_info): Doc fix.
11503 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
11504 <ignore-relative-composition>: Fix typos in docstrings.
11505
11506 * font.c (syms-of-font) <font-encoding-alist>:
11507 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
11508 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
11509 (Ffont_otf_alternates): Doc fixes.
11510
115112008-05-20 Kenichi Handa <handa@m17n.org>
11512
11513 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
11514 font.h through out the file.
11515 (FONT_DRIVERS): Rename from FONTOBJ.
11516 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
11517 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
11518
11519 * emacs.c (main): Call syms_of_font unconditionally.
11520
11521 * font.h (find_font_encoding): Extern it.
11522
11523 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
11524 fontset.c.
194d44e7 11525 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
11526 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
11527 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
11528 only when HAVE_WINDOW_SYSTEM is defined.
11529 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
11530 when HAVE_WINDOW_SYSTEM is defined.
11531
11532 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
11533 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
11534
11535 * xfaces.c: Include font.h unconditionally.
11536 (merge_face_ref, merge_face_vectors)
11537 (Finternal_set_lisp_face_attribute): Cancel the previous change.
11538
115392008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
11540
11541 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
11542 indirect_variable.
11543 * eval.c (lisp_indirect_variable): New fun.
11544 (Fuser_variable_p): Use it.
11545
115462008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11547
11548 * lisp.h (indirect_variable):
11549 * data.c (indirect_variable, let_shadows_buffer_binding_p):
11550 Use Lisp_Symbol pointers rather than Lisp_Object.
11551 Adjust callers.
11552 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
11553 To this end, change calling-convention.
11554
11555 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
11556 if some non-hidden buffers are selected by string&pred.
11557
115582008-05-19 Chong Yidong <cyd@stupidchicken.com>
11559
11560 * process.c (wait_reading_process_output): Always check status
11561 when in batch mode.
11562
115632008-05-19 Kenichi Handa <handa@m17n.org>
11564
11565 * font.c (font_list_entities): Fix handling of cache.
11566 (font_matching_entity): Likewise.
11567
11568 * ftfont.c (cs_iso8859_1): Delete.
11569 (ft_face_cache): New variable.
11570 (struct ftfont_info): New member fc_charset_idx.
11571 (ftfont_build_basic_charsets): Delete.
11572 (fc_charset_table): New variable.
11573 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
11574 . FC_CHARSET_IDX) as :font-entity property in the font entity.
11575 Callers changed.
11576 (ftfont_lookup_cache, ftfont_get_charset): New functions.
11577 (ftfont_spec_pattern): New argument fc_charset_idx.
11578 Check registry more rigidly. Change callers.
11579 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
11580 change of :font-entity property of the font.
11581
11582 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
11583 property of the font.
11584
115852008-05-18 Juanma Barranquero <lekktu@gmail.com>
11586
11587 * coding.c (Fcoding_system_p): Rename argument to match docstring.
11588 (Funencodable_char_position, Fcheck_coding_systems_region)
11589 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
11590 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
11591 (Ffind_operation_coding_system, Fset_coding_system_priority)
11592 (Fcoding_system_eol_type): Doc fixes.
11593
115942008-05-17 Glenn Morris <rgm@gnu.org>
11595
11596 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
11597
115982008-05-16 Eli Zaretskii <eliz@gnu.org>
11599
11600 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
11601 and st_gid.
11602
11603 * frame.c (Fdelete_frame): Don't call font_update_drivers if
11604 HAVE_WINDOW_SYSTEM is not defined.
11605
11606 * xfaces.c (merge_face_ref, merge_face_vectors)
11607 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
11608 HAVE_WINDOW_SYSTEM is defined.
11609 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
11610
116112008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
11612
11613 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
11614
116152008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11616
11617 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
11618
116192008-05-15 Kenichi Handa <handa@m17n.org>
11620
11621 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
11622 preference.
11623
116242008-05-15 Glenn Morris <rgm@gnu.org>
11625
11626 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
11627
116282008-05-15 Chong Yidong <cyd@stupidchicken.com>
11629
11630 * fns.c (init_fns): Don't initialize weak_hash_tables here.
11631 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
11632
11633 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
11634
116352008-05-15 Kenichi Handa <handa@m17n.org>
11636
11637 * ftfont.c (ftfont_list): Downcase family name to check generic
11638 families.
11639
11640 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
11641 font-spec for QCfont value.
11642
11643 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
11644 buffer. Check the return value of it.
11645
116462008-05-14 Jason Rumney <jasonr@gnu.org>
11647
11648 * w32term.c (w32_get_glyph_overhangs): Remove.
11649 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
11650
116512008-05-14 Kenichi Handa <handa@m17n.org>
11652
11653 * font.c (font_prop_validate): Make nil a valid value.
11654 (font_clear_cache): Check if the cached vector of entities is nil
11655 or not.
11656
116572008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11658
11659 * emacs.c (main_thread): Conditionalize on
11660 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11661 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11662
11663 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11664 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11665 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11666
116672008-05-14 Kenichi Handa <handa@m17n.org>
11668
11669 * coding.c (detect_coding_iso_2022): Ignore a coding category that
11670 has no corresponding coding system.
11671
116722008-05-14 Jason Rumney <jasonr@gnu.org>
11673
11674 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11675
11676 * w32font.h (w32font_open_internal): Update declaration.
11677
11678 * w32font.c (w32font_open_internal): Change last argument from
11679 w32font_info struct to font object. Fill in font object from
11680 font_entity. Get Outline metrics if possible. Use them to
11681 calculate underline position and thickness. Use xlfd name as name
11682 property. Don't set codepage.
11683 (w32font_open): Pass font_object to w32font_open_internal. Don't
11684 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11685 (w32font_draw): Use s->font.
11686 (clear_cached_metrics): Don't clear non-existent blocks.
11687
11688 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11689 font was not found.
11690 (x_draw_glyph_string): Use underline position and thickness from font.
11691
11692 * w32uniscribe.c (uniscribe_open): Pass font_object to
11693 w32font_open_internal.
11694
116952008-05-14 Kenichi Handa <handa@m17n.org>
11696
11697 These changes are to delete all legacy font-handling codes, and
11698 make Emacs use only font-backends.
11699
11700 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11701 (frame.o, image.o, print.o): Depend on $(FONTSRC).
11702
11703 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11704
11705 * charset.h (Vcharset_non_preferred_head)
11706 (Vcurrent_iso639_language): Extern them.
11707
11708 * charset.c (Vcharset_non_preferred_head): New variable.
11709 (Vcurrent_iso639_language): New variable.
11710 (syms_of_charset): Declare it as a Lisp variable.
11711 (char_charset): Don't check non preferred charsets. As a last
11712 resort, return charset_unicode.
11713 (Fset_charset_priority): Update Vcharset_non_preferred_head.
11714
11715 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11716 conditionals. Don't check enable_font_backend. Delete all codes
11717 used only when USE_FONT_BACKEND is not defined.
11718
11719 * dispextern.h (struct glyph_string): Change type of `font' to
11720 `struct font *'.
11721 (struct glyph_string): New member underline_position and
11722 underline_thickness.
11723 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11724 (struct face): Change type of `font' to `struct font *'. Remove
11725 members `font_name', `font_info_id'.
11726 (per_char_metric, encode_char): Delete externs.
11727 (calc_pixel_width_or_height): Adjust the prototype.
11728
11729 * emacs.c (enable_font_backend): Delete extern.
11730 (main): Don't set enable_font_backend. Don't check the command
11731 line argument "-disable-font-backend".
11732
11733 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11734 (enum font_property_index): New members FONT_DPI_INDEX,
11735 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11736 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11737 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11738 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11739 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11740 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11741 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11742 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11743 (struct font_spec, struct font_entity): New structs.
11744 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11745 (struct font): Many members from old "struct font_info" moved to
11746 here. Members font and entity deleted.
11747 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11748 the new font-related objects.
11749 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11750 (CHECK_FONT_GET_OBJECT): Likewise.
11751 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11752 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11753 (struct font_driver): New members case_sensitive anc check. Type
11754 of the member list and open changed.
11755 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11756 (font_symbolic_width, font_find_object, font_get_spec)
11757 (font_set_lface_from_name): Delete extern.
11758 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11759
11760 * font.c: Include <strings.h>.
11761 (enable_font_backend): Delete it.
11762 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11763 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11764 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11765 (null_string): Delete it.
11766 (null_vector): Make it static.
11767 (font_family_alist): Delete it.
11768 (Qnormal): Extern it.
11769 (QCextra, QClanguage): Delete it.
11770 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11771 (font_make_spec, font_make_entity, font_make_object)
11772 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11773 the string. Callers changed.
11774 (font_pixel_size): Adjusted for the format change of font-related
11775 objects.
11776 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11777 (font_style_to_value, font_style_symbolic): New function.
11778 (build_font_family_alist): Delete it.
11779 (font_registry_charsets): Use Fassoc_string instead of
11780 assq_no_quit.
11781 (font_prop_validate_symbol): Don't return null_string.
11782 (font_prop_validate_style): Adjusted for the change of
11783 style-related values in a font vector.
11784 (font_property_table): Delete entries for QClanguage and
11785 QCantialias, add entries for QCavgwidth.
11786 (get_font_prop_index): Delete the 2nd argument FROM.
11787 (font_prop_validate): Arguments changed.
11788 (font_put_extra): Adjusted for the change of font-related objects.
11789 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11790 (font_parse_fcname, font_unparse_fcname)
11791 (font_prepare_composition): Likewise.
11792 (font_parse_family_registry): Renamed from font_merge_old_spec.
11793 (otf_open): Delete the 1st arg entity.
11794 (font_otf_capability): Adjusted for the above change.
11795 (font_score): New arg alternate_families. Adjusted for the change
11796 of font-related objects.
11797 (font_sort_entites): New arg best_only.
11798 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11799 Delete them.
11800 (font_match_p): Check alternate families.
11801 (font_find_object): Delete it.
11802 (font_check_object): New function.
11803 (font_clear_cache): Adjusted for the change of font-related objects.
11804 (font_delete_unmatched): New arg.
11805 (font_list_entities): Call font_driver->list with a spec that
11806 doesn't specify style-related properties.
11807 (font_matching_entity): Arguments changed. Caller changed.
11808 (font_open_entity): Adjusted for the change of font-related objects.
11809 (font_close_object, font_has_char, font_encode_char)
11810 (font_get_name, font_get_spec): Likewise.
11811 (font_spec_from_name, font_clear_prop, font_update_lface):
11812 New functions.
11813 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11814 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11815 (font_at): Adjusted for the change of font-related objects.
11816 (font_range): New function.
11817 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11818 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11819 (Fcopy_font_spec, Fmerge_font_spec): New function.
11820 (Ffont_family_list): Renamed from list-families.
11821 (Finternal_set_font_style_table): Arguments changed.
11822 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11823 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11824 change of font-related objects.
11825 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11826
11827 * fontset.h (struct font_info): Delete it. Most members go to
11828 struct font.
11829 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11830 (enum FONT_SPEC_INDEX): Delete it.
11831 (font_info, list_fonts_func, load_font_func, query_font_func)
11832 (set_frame_fontset_func, find_ccl_program_func)
11833 (get_font_repertory_func, new_fontset_from_font_name): Delete
11834 externs.
11835 (fontset_from_font_name): Extern it.
11836 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11837 (FONT_INFO_FROM_FACE): Deleted.
11838 (face_for_font): Adjust prototype.
11839
11840 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11841 conditionals. Don't check enable_font_backend. Delete all codes
11842 used only when USE_FONT_BACKEND is not defined.
11843 (get_font_info_func, list_font_func, load_font_func)
11844 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11845 (get_font_repertory_func): Delete them.
11846 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11847 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11848 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11849 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11850 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11851 (fontset_compare_rfontdef): New function.
11852 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11853 rfont-defs by qsort. Adjusted for the change of font-group vector.
11854 (load_font_get_repertory): Deleted.
11855 (fontset_find_font): Use new macros to ref/set elements of
11856 font-def and rfont-def.
11857 (fontset_font): Fix the timing of remembering that no font for C.
11858 (free_face_fontset): Do nothing if the face has no fontset.
11859 (face_suitable_for_char_p): Use new macros to ref/set elements of
11860 rfont-def.
11861 (face_for_char): Likewise. Call face_for_char with font_object.
11862 (fs_load_font): Delete. Delete #pragma surrounding it.
11863 (fs_query_fontset): Use strcasecmp instead of strcmp.
11864 (generate_ascii_font_name): Adjusted for the format change of
11865 font-spec.
11866 (Fset_fontset_font): Likewise. Use new macros to set elements of
11867 font-def.
11868 (Fnew_fontset): Use font_unparse_xlfd to generate
11869 FONTSET_ASCII (fontset).
11870 (new_fontset_from_font_name): Deleted.
11871 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11872 a fontset is already created for the font. FIx updating of
11873 Vfontset_alias_alist.
11874 (fontset_ascii_font): Deleted.
11875 (Ffont_info): Adjusted for the format change of font-spec.
11876 (Finternal_char_font): Likewise.
11877 (Ffontset_info): Likewise.
11878 (syms_of_fontset): Don't check load_font_func.
11879
11880 * fns.c (internal_equal): Handle PREV_FONT.
11881
11882 * frame.h: Delete USE_FONT_BACKEND conditional.
11883
11884 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11885 conditionals. Don't check enable_font_backend. Delete all codes
11886 used only when USE_FONT_BACKEND is not defined.
11887 (x_set_font): Call x_new_font, not x_new_fontset2.
11888 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11889 already set for the frame.
11890
11891 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11892 a font-entity by font_make_entity. Use font_intern_prop instead
11893 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11894 font property. If a font is scalable, set avgwidth property to 0.
11895 Set font-entity property by font_put_extra.
11896 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11897 (ffont_driver): Adjusted for the change of struct font_driver.
11898 (ftfont_spec_pattern): New function.
11899 (ftfont_list): Return a list, not vector.
11900 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11901 (ftfont_list_family): Don't downcase names.
11902 (ftfont_free_entity): Deleted.
11903 (ftfont_open): Return a font-object. Adjusted for the change of
11904 struct font. Get underline_thickness and underline_position from
11905 font property. Don't update dpyinfo->smallest_font_height and
11906 dpyinfo->smallest_char_width.
11907 (ftfont_close): Don't free `struct font'.
11908 (ftfont_has_char): Adjusted for the format change of font-entity.
11909 (ftfont_encode_char, ftfont_text_extents): Likewise.
11910
11911 * ftxfont.c (ftxfont_list): Return a list, not vector.
11912 (ftxfont_open): Return a font-object. Adjusted for the change of
11913 struct font. Get underline_thickness and underline_position from
11914 font property. Don't update dpyinfo->smallest_font_height and
11915 dpyinfo->smallest_char_width.
11916 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11917 (ftxfont_draw): Adjusted for the change of struct font.
11918
11919 * image.c (image_ascent): Don't include "charset.h". Include
11920 "character.h" and "font.h".
11921
11922 * lisp.h (enum pvec_type): New member PREV_FONT.
11923 (Fassoc_string): EXFUN it.
11924
11925 * print.c: Include font.h.
11926 (print_object): Handle font-related objects.
11927
11928 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11929 conditionals. Don't check enable_font_backend. Delete all codes
11930 used only when USE_FONT_BACKEND is not defined.
11931 (handle_auto_composed_prop): Do nothing if it->f is not on a
11932 window system. Check how many following characters can be
11933 displayed by the same font.
11934 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11935 'struct font *'.
11936 (get_char_face_and_encoding): Assign the whole encoding task to
11937 the `encode-char' method of a font driver.
11938 (fill_composite_glyph_string): Adjusted for the change of `struct
11939 face' and `struct glyph_string'.
11940 (fill_glyph_string): Likewise.
11941 (get_per_char_metric): Arguments changed.
11942 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11943 and `struct glyph_string'.
11944 (produce_stretch_glyph, calc_line_height_property)
11945 (x_produce_glyphs): Likewise.
11946
11947 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11948 conditionals. Don't check enable_font_backend. Delete all codes
11949 used only when USE_FONT_BACKEND is not defined. Use
11950 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11951 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11952 (Qp): Extern them.
11953 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11954 Deleted.
11955 (struct font_name): Deleted.
11956 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11957 (compare_fonts_by_sort_order): New function.
11958 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11959 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11960 Deleted.
11961 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11962 compare_fonts_by_sort_order.
11963 (Fx_font_family_list): Call Ffont_family_list.
11964 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11965 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11966 (face_symbolic_slant, face_symbolic_swidth)
11967 (split_font_name_into_vector, build_font_name_from_vector)
11968 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11969 (font_rescale_ratio, split_font_name, build_font_name)
11970 (free_font_names, sort_fonts, x_face_list_fonts)
11971 (face_font_available_p, sorted_font_list, cmp_font_names)
11972 (font_list_1, concat_font_list, font_list, remove_duplicates):
11973 Deleted.
11974 (Fx_list_fonts): Use Ffont_list.
11975 (LFACE_AVGWIDTH): Deleted.
11976 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11977 by FONTP.
11978 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11979 (set_lface_from_font_name): Delete it.
11980 (set_lface_from_font): Renamed from
11981 set_lface_from_font_and_fontset. Caller changed. Don't set
11982 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11983 for face.
11984 (merge_face_vectors): Copy font-spec if necessary.
11985 Clear properties of the font-spec if necessary.
11986 (merge_face_ref): Clear properties of the font-spec if necessary.
11987 (Finternal_set_lisp_face_attribute): Likewise.
11988 (set_font_frame_param): Use font_load_for_lface to load a
11989 font-object, and call Fmodify_frame_parameters with it.
11990 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11991 font name by Ffont_xlfd_name.
11992 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11993 QCslant, and QCwidth.
11994 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11995 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11996 Compare fonts by EQ.
11997 (lookup_non_ascii_face): Deleted.
11998 (face_for_font): The 2nd argument changed.
11999 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
12000 Check atomic font properties by case insensitive.
12001 (realize_non_ascii_face): Set face->overstrike correctly.
12002 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
12003 (dump_realized_face): Get font name from
12004 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
12005
12006 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
12007 conditionals. Don't check enable_font_backend. Delete all codes
12008 used only when USE_FONT_BACKEND is not defined.
12009 (xic_create_xfontset): Original code deleted and renamed from
12010 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
12011 (x_make_gc): Don't set GCFont in GCs.
12012 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
12013 opened by "fixed".
12014 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
12015 find_ccl_program_func, query_font_func, set_frame_fontset_func,
12016 get_font_repertory_func.
12017
12018 * xfont.c: Include <stdlib.h> and "ccl.h".
12019 (struct xfont_info): New structure.
12020 (xfont_query_font): Deleted.
12021 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
12022 moved from xterm.c.
12023 (xfont_driver): Adjusted for the change of struct font_driver.
12024 (compare_font_names): New function.
12025 (xfont_list_pattern): Sort font names case insensitively. Make
12026 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
12027 (xfont_list): Return a list, not vector.
12028 (xfont_match): If the font doesn't have QCname property, generate
12029 a name from the other font properties.
12030 (xfont_open): Return a font-object. Adjusted for the change of
12031 struct font. Get underline_thickness and underline_position from
12032 font property. Don't update dpyinfo->smallest_font_height and
12033 dpyinfo->smallest_char_width.
12034 (xfont_close): Don't free struct font.
12035 (xfont_prepare_face): Adjusted for the change of struct font.
12036 (xfont_done_face): Deleted.
12037 (xfont_has_char): Adjusted for the change of struct font.
12038 (xfont_encode_char, xfont_draw): Likewise.
12039 (xfont_check): New function.
12040
12041 * xftfont.c (xftfont_list): Adjusted for the change of `list'
12042 callback function.
12043 (xftfont_match): Adjusted for the format change of font-entity.
12044 (xftfont_open): Adjusted for the format change of font-entity and
12045 font-object. Adjusted for the change of struct font. Return a
12046 font-object. Don't update dpyinfo->smallest_font_height and
12047 dpyinfo->smallest_char_width.
12048 (xftfont_close): Block input while calling XftFontClose.
12049 (xftfont_prepare_face): Don't block input while calling
12050 xftfont_get_colors. Adjusted for the change of struct font.
12051 (xftfont_shape): Return value of error case fixed.
12052
12053 * xrdb.c (x_load_resources): Don't setup a fontset resource.
12054
12055 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
12056 conditionals.
12057 (FONT_WIDTH): Return (f)->max_width.
12058 (struct x_display_info): Delete member `font'.
12059 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
12060 (x_find_ccl_program, x_get_font_repertory): Delete externs.
12061 (struct x_output): Change type of `font' to `struct font *'.
12062
12063 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
12064 conditionals. Don't check enable_font_backend. Delete all codes
12065 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
12066 (x_per_char_metric, x_encode_char): Deleted.
12067 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
12068 (x_compute_glyph_string_overhangs): Adjusted for the change of
12069 `struct face'.
12070 (x_draw_glyph_string_foreground)
12071 (x_draw_composite_glyph_string_foreground): Likewise.
12072 (x_draw_glyph_string): Likewise. Use font->underline_position and
12073 font->underline_thickness.
12074 (x_new_font): Renamed from x_new_fontset2.
12075 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
12076 (x_check_font): Call `check' method of a font driver.
12077 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
12078 (x_query_font, x_get_font_repertory): Deleted.
12079 (x_find_ccl_program): Renamed and moved to xfont.c.
12080 (x_redisplay_interface): Adjusted for the change of `struct
12081 redisplay_interface'.
12082
12083 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
12084 conditionals. Don't check enable_font_backend. Delete all codes
12085 used only when USE_FONT_BACKEND is not defined. Surround non-used
12086 code by "#ifdef OLD_FONT" and "endif".
12087 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
12088
12089 * w32font.h (struct w32font_info): New member.
12090 (FONT_COMPAT): New macro.
12091 (w32font_open_internal): Prototype adjusted.
12092
12093 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
12094 OLD_FONT" and "endif".
12095
12096 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
12097 conditionals. Don't check enable_font_backend. Delete all codes
12098 used only when USE_FONT_BACKEND is not defined.
12099 (w32font_open): Return a font-object. Make a font-object by
12100 font_make_object. Adjusted for the change of struct w32font_info.
12101 (w32font_close): Don't free struct font. Adjusted for the change
12102 of struct w32font_info.
12103 (w32font_encode_char, w32font_text_extents, w32font_draw):
12104 Adjusted for the change of struct w32font_info.
12105 (w32font_draw): Likewise.
12106 (w32font_list_internal): Return a list, not vector.
12107 (w32font_open_internal): Change the 4th arg to font-object.
12108 Adjusted for the change of struct w32font_info and font-object format.
12109 (add_font_name_to_list): Don't downcase names.
12110 (w32_enumfont_pattern_entity): Make a font-entity by
12111 font_make_entity. Adjusted for the format change of font-entity.
12112 Use FONT_SET_STYLE to set a style-related font property. If a
12113 font is scalable, set avgwidth property to 0. Set font-entity
12114 property by font_put_extra.
12115 (font_matches_spec): Adjusted for the format change of font-entity.
12116 (w32_weight_table, w32_decode_weight): New variables.
12117 (w32_encode_weight): New function.
12118 (fill_in_logfont): Adjusted for the format change of font-spec.
12119 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
12120 weight value.
12121 (w32font_driver): Adjusted for the change of struct font_driver.
12122
12123 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
12124 conditionals. Don't check enable_font_backend. Surround non-used
12125 code by "#ifdef OLD_FONT" and "endif".
12126 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
12127 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
12128
12129 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
12130 conditionals. Don't check enable_font_backend. Delete all codes
12131 used only when USE_FONT_BACKEND is not defined. Surround non-used
12132 code by "#ifdef OLD_FONT" and "endif".
12133
12134 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
12135 (uniscribe_open): Return value changed to font-object.
12136 Adjusted for the format change of font-object.
12137 (uniscribe_otf_capability): Adjusted for the change of struct font.
12138 (add_opentype_font_name_to_list): Don't downcase names.
12139 (uniscribe_font_driver): Adjusted for the change of struct
12140 font_driver.
12141
121422008-05-13 Chong Yidong <cyd@stupidchicken.com>
12143
12144 * dispnew.c (update_frame_1): Check if tty output is still valid
12145 before flushing it.
12146
121472008-05-13 Jan Djärv <jan.h.d@swipnet.se>
12148
12149 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
12150 to Gtk+ menus.
12151
121522008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
12153
12154 * dired.c (file_name_completion): Tweak the code so as to always do it
12155 in a single pass. Tighten the scope of some variables.
12156
12157 * dired.c (Qdefault_directory): New var.
12158 (file_name_completion): Use it instead of Fexpand_file_name.
12159 (syms_of_dired): Initialize it.
12160
121612008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
12162
12163 * fileio.c (double_dollars): Remove dead code.
12164
121652008-05-10 Eli Zaretskii <eliz@gnu.org>
12166
12167 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
12168 Mention w32-get-true-file-attributes in doc string.
12169
12170 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
12171
121722008-05-09 Glenn Morris <rgm@gnu.org>
12173
12174 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
12175 2008-04-23.
12176
121772008-05-09 Eli Zaretskii <eliz@gnu.org>
12178
12179 Support for reporting owner and group of each file on MS-Windows:
12180 * dired.c (stat_uname, stat_gname): New functions, with special
12181 implementation for w32.
12182 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
12183
12184 * w32.c: Rename the_passwd_* to dflt_passwd_*.
12185 (dflt_group_name): New static variable.
12186 (dflt_group): Rename from the_group.
12187 (init_user_info): Init dflt_group fields. Get user's group name
12188 from LookupAccountSid.
12189 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
12190 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
12191 New initialization states.
12192 (globals_of_w32): Initialize them to zero. Initialize the default
12193 group name to "None".
12194 (GetFileSecurity_Name): New global var, the name of the function
12195 to call for GetFileSecurity.
12196 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
12197 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
12198 (get_file_security, get_security_descriptor_owner)
12199 (get_security_descriptor_group, is_valid_sid)
12200 (get_file_security_desc, get_rid, get_name_and_id)
12201 (get_file_owner_and_group): New functions.
12202 (stat): Use get_file_security_desc and get_file_owner_and_group to
12203 report the owner and primary group of each file. Don't ignore the
12204 high 32 bits of file's size, now that st_size is 64-bit wide.
12205 Fix test when to get true file attributes.
12206 (init_user_info): Use get_rid instead of equivalent inline code.
12207 (fstat): Don't ignore the high 32 bits of file's size.
12208
122092008-05-09 Chong Yidong <cyd@stupidchicken.com>
12210
12211 * image.c (png_load): Use correct bit-depth for setting background
12212 color.
12213
122142008-05-08 Eli Zaretskii <eliz@gnu.org>
12215
12216 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
12217 epa-hook.elc.
12218
122192008-05-08 Juanma Barranquero <lekktu@gmail.com>
12220
12221 * font.c (Ffont_match_p): Don't use `iff' in docstring.
12222
122232008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
12224
12225 * macfns.c (Fx_create_frame): Make a copy of frame parameters
12226 because the original parameters are in pure storage now.
12227 (mac_window): Remove unused params. Update callers.
12228
122292008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12230
12231 * lread.c (substitute_object_recurse): Use lower-level primitives.
12232 Don't signal errors when traversing sub-char-tables.
12233 Don't loop over all the possible characters when traversing char-tables.
12234
12235 * print.c (print_preprocess): Add sub-char-tables to the print-table,
12236 just like we do in print.c.
12237
122382008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
12239
12240 * minibuf.c (Ftry_completion): Remove code left over from when we used
12241 scmp instead of Fcompare_strings.
12242
122432008-05-04 Juanma Barranquero <lekktu@gmail.com>
12244
12245 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
12246
122472008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12248
12249 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
12250 Create bitmap context in native byte order.
12251
12252 * macterm.c (XDrawLine)
12253 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
12254 context in native byte order.
12255
122562008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12257
12258 * config.in: Regenerate.
12259
12260 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
12261 New definitions for Image I/O support.
12262 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12263 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
12264 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12265 (mac_data_provider_release_data, image_load_image_io)
12266 [USE_MAC_IMAGE_IO]: New functions.
12267 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
12268 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
12269 (init_image_func_pointer) [MAC_OSX]: Remove function.
12270 (image_load_quartz2d) [MAC_OSX]: Check availability of
12271 CGImageCreateWithPNGDataProvider at compile time.
12272 Use lowercase `false' for boolean constant.
12273 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
12274 Use image_load_image_io.
12275 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
12276 Don't check MyCGImageCreateWithPNGDataProvider.
12277 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
12278 Don't call init_image_func_pointer.
12279
12280 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
12281
12282 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
12283 Make variable non-static.
12284 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
12285 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12286
12287 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
12288 (RED_FROM_ULONG): Mask off higher bits.
12289 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
12290
12291 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
12292 Include AvailabilityMacros.h.
12293 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
12294 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
12295
122962008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
12297
12298 * chartab.c (Fset_char_table_range): If range is t, really set all
12299 chars to that value.
12300
123012008-05-03 Eli Zaretskii <eliz@gnu.org>
12302
12303 * dired.c (Ffile_attributes): Don't allow the device number become
12304 negative.
12305
123062008-05-02 Daiki Ueno <ueno@unixuser.org>
12307
12308 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
12309
123102008-05-02 Juri Linkov <juri@jurta.org>
12311
12312 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
12313 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
12314 DEFAULT argument as a list of default values in docstrings.
12315
123162008-05-01 Chong Yidong <cyd@stupidchicken.com>
12317
12318 * puresize.h (BASE_PURESIZE): Increase to 1210000.
12319
123202008-05-01 Martin Rudalics <rudalics@gmx.at>
12321
12322 * dispnew.c (change_frame_size_1): Preserve small windows when
12323 shrinking frames by calling set_window_height|width with third
12324 arg 2.
12325
12326 * window.h (struct window): Replace field too_small_ok by field
12327 resize_proportionally.
12328
12329 * window.c (make_window): Initialize resize_proportionally.
12330 (enlarge_window): Temporarily set resize_proportionally to make
12331 sure that shrink_windows does scale the window proportionally.
12332 (shrink_windows): When window has resize_proportionally set try
12333 to shrink it proportionally by stealing from other windows.
12334 (struct saved_window, Fset_window_configuration)
12335 (compare_window_configurations): Handle resize_proportionally.
12336 (WINDOW_TOTAL_SIZE): New macro.
12337 (window_min_size, shrink_windows, size_window): Use it.
12338 (check_min_window_sizes): Remove. Invalid values of
12339 window-min-height|width are handled by window_min_size_2 now.
12340 (size_window, Fsplit_window, enlarge_window)
12341 (adjust_window_trailing_edge, grow_mini_window): Don't call
12342 check_min_window_sizes.
12343 (window_min_size_2, window_min_size_1, window_min_size):
12344 New argument safe_p for retrieving "safe" minimum sizes.
12345 (Fdisplay_buffer, Fsplit_window, enlarge_window)
12346 (adjust_window_trailing_edge, grow_mini_window):
12347 Adjust arguments of window_min_size... functions.
12348 (shrink_windows): Argument min_size removed. New argument
12349 safe_p allows shrinking windows to their safe minimum sizes.
12350 Calculate minimum size and decide whether a window shall be
12351 deleted for each window individually.
12352 (size_window): When nodelete_p equals 2, tell shrink_windows to
12353 delete windows only if their new minimum size is no more safe.
12354 (shrink_window_lowest_first): Call window_min_size_1 to make
12355 sure to preserve modeline of bottom-most window when resizing
12356 the minibuffer.
12357 (Fset_window_configuration, Fcurrent_window_configuration)
12358 (compare_window_configurations): Do not handle
12359 window-min-height|width any more.
12360 (syms_of_window): Clarify window-min-height|width doc-strings.
12361
123622008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
12363
12364 * dired.c (file_name_completion): Fix up the encoding/decoding issue
12365 some more. Copy some of the code from Ftry_completions.
12366 Remove special case code that dates back to initial revision when the
12367 slash was only added when necessary and that can't trigger nowadays.
12368
123692008-04-27 Kenichi Handa <handa@m17n.org>
12370
12371 * font.c (font_prop_validate): Signal `error' instead of `font'.
12372
123732008-04-29 Jason Rumney <jasonr@gnu.org>
12374
12375 * w32fns.c (Fw32_battery_status): New defun.
12376 (syms_of_w32fns): Defsubr it.
12377
123782008-04-28 Andreas Schwab <schwab@suse.de>
12379
12380 * dired.c (file_name_completion): Fix another mixing of encoded
12381 and decoded names.
12382
123832008-04-28 Juanma Barranquero <lekktu@gmail.com>
12384
12385 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
12386
123872008-04-27 Juanma Barranquero <lekktu@gmail.com>
12388
12389 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
12390
123912008-04-27 Andreas Schwab <schwab@suse.de>
12392
12393 * dired.c (file_name_completion): Fix inappropriate mixing of
12394 encoded and decoded names.
12395
12396 * xterm.c (XTread_socket): Fix use of uninitialized variable.
12397
12398 * puresize.h (BASE_PURESIZE): Increase to 1200000.
12399
124002008-04-26 Eli Zaretskii <eliz@gnu.org>
12401
12402 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
12403 2008-03-31, it's not needed anymore with `struct stat' definition
12404 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
12405 for the same reasons.
12406
124072008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
12408
12409 * m/sparc.h: Additional redefinitions for GNU/Linux.
12410
124112008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12412
12413 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
12414 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
12415 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
12416 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
12417 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12418 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
12419 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12420 Likewise.
12421
12422 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
12423 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
12424 (mac_ax_number_of_characters): Add externs.
12425 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12426 [USE_MAC_TSM]: Likewise.
12427 (mac_handle_text_input_event) [MAC_OSX]:
12428 Handle kEventTextInputOffsetToPos for no active input area case.
12429 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12430 (mac_handle_document_access_event)
12431 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
12432 (install_application_handler) [MAC_OSX]: Register handlers for
12433 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12434 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12435 Register mac_handle_document_access_event.
12436
12437 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
12438 Make functions non-static.
12439
124402008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
12441
12442 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
12443 (read_file_name_completion_ignore_case, insert_default_directory)
12444 (Qdefault_directory): Move to minibuffer.el.
12445 (Fread_file_name): Call the new `read-file-name' instead.
12446
124472008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12448
12449 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
12450 Make function non-static.
12451 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
12452 Remove function.
12453 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12454 Move to mactoolbox.c.
12455 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
12456
12457 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
12458 (mac_rect_make): New macro.
12459
12460 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
12461 instead of float.
12462 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12463 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
12464 (XSetBackground) [USE_CG_DRAWING]: Likewise.
12465 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
12466 CGRectMake.
12467 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12468 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
12469 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
12470 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12471 instead of WindowRef in argument type.
12472 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
12473 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
12474 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
12475 instead of DISPLAY. All uses changed.
12476 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
12477 (x_calc_absolute_position): Simplify so as not to use
12478 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
12479
12480 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12481 instead of WindowRef in argument type.
12482 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
12483 [TARGET_API_MAC_CARBON]: Remove externs.
12484 (create_apple_event, mac_event_parameters_to_lisp)
12485 [TARGET_API_MAC_CARBON]: Add externs.
12486
12487 * mactoolbox.c (Vmac_ts_script_language_on_focus)
12488 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
12489 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
12490 is clicked.
12491 (x_activate_menubar): Remove extern for saved_menu_event_location.
12492 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12493 Move from mac.c.
12494
124952008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12496
12497 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
12498 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
12499
125002008-04-23 Jason Rumney <jasonr@gnu.org>
12501
12502 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
12503 attributes only for local files.
12504
12505 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
12506 default to Qlocal.
12507
125082008-04-22 Juri Linkov <juri@jurta.org>
12509
12510 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
12511 read-buffer-to-switch instead of using the letter "B".
12512
125132008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
12514
12515 * fileio.c (Qdefault_directory): New variable.
12516 (Fread_file_name): Use it to pass `dir' to the completion functions.
12517
125182008-04-20 Chong Yidong <cyd@stupidchicken.com>
12519
12520 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
12521
125222008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
12523
12524 * keyboard.c (Vpre_help_message): Remove.
12525 (show_help_echo): Remove default C code.
12526
12527 * dired.c (directory_files_internal, file_name_completion):
12528 Only call ENCODE_FILE if the string is indeed decoded.
12529
125302008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12531
12532 * Makefile.in (TOOLKIT_DEFINES): Remove.
12533 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
12534
125352008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12536
12537 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
12538 (mactoolbox.o): New target.
12539
12540 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
12541 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
12542
12543 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
12544 Use mac_set_frame_window_background instead of XSetWindowBackground.
12545 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
12546 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
12547 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
12548 instead of SetWindowTitleWithCFString.
12549 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
12550 Move function to mactoolbox.c.
12551 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
12552 Use mac_set_window_modified instead of SetWindowModified.
12553 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
12554 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
12555 (Fx_focus_frame): Use mac_front_non_floating_window instead of
12556 FrontNonFloatingWindow. Use mac_activate_window instead of
12557 ActivateWindow. Use mac_active_non_floating_window instead of
12558 ActiveNonFloatingWindow.
12559 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
12560 Use mac_show_hourglass and mac_hide_hourglass.
12561 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
12562 instead of GetGlobalMouse.
12563 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
12564 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
12565 Use mac_bring_window_to_front instead of BringToFront.
12566 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
12567 mactoolbox.c.
12568 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
12569 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
12570 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
12571 mactoolbox.c.
12572
12573 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
12574 (XtPointer): Move typedef from macmenu.c.
12575 (enum button_type): Move enum from macmenu.c.
12576 (widget_value): Move typedef from macmenu.c.
12577 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
12578 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12579 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12580 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12581 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12582 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12583 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12584 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
12585 (Selection): Move typedef from macselect.c.
12586 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
12587 macterm.c.
12588 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
12589 (mac_is_window_collapsed, mac_bring_window_to_front)
12590 (mac_send_window_behind, mac_hide_window, mac_show_window)
12591 (mac_collapse_window, mac_front_non_floating_window)
12592 (mac_active_non_floating_window, mac_activate_window)
12593 (mac_move_window_structure, mac_move_window, mac_size_window)
12594 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
12595
12596 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
12597 (enum mac_menu_kind): Move enum to mactoolbox.c.
12598 (min_menu_id): Move variable to mactoolbox.c.
12599 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
12600 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
12601 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12602 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12603 [TARGET_API_MAC_CARBON]: Likewise.
12604 (XtPointer): Move typedef to macgui.h.
12605 (enum button_type): Move enum to macgui.h.
12606 (widget_value): Move typedef to macgui.h.
12607 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12608 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12609 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12610 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12611 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12612 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12613 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
12614 (popup_activated_flag): Make variable non-static.
12615 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
12616 (add_menu_item, fill_menu, dispose_menus):
12617 Move functions to mactoolbox.c.
12618 (restore_show_help_function, menu_target_item_handler)
12619 (install_menu_target_item_handler, mac_handle_dialog_event)
12620 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
12621 [TARGET_API_MAC_CARBON]: Likewise.
12622 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
12623 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12624 (find_and_call_menu_selection, name_is_separator): Make function
12625 non-static.
12626 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
12627 to mactoolbox.c.
12628 (set_frame_menubar): Don't call install_menu_quit_handler.
12629 (menu_item_selection): New variable.
12630 (mac_menu_show): Use create_and_show_popup_menu.
12631 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
12632 selection but set variable menu_item_selection. All uses changed.
12633 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
12634 Call install_menu_quit_handler. Move to mactoolbox.c.
12635
12636 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
12637 (Selection): Move typedef to macgui.h.
12638 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
12639 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
12640 Make variables non-static.
12641 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12642 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
12643 Make functions non-static.
12644 (Vmac_service_selection) [MAC_OSX]: Likewise.
12645 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
12646 (mac_valid_selection_target_p, mac_clear_selection)
12647 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12648 (mac_put_selection_value, mac_selection_has_target_p)
12649 (mac_get_selection_value, mac_get_selection_target_list)
12650 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
12651 Move functions to mactoolbox.c.
12652 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
12653 Likewise.
12654 (copy_scrap_flavor_data, mac_handle_service_event)
12655 (install_service_handler) [MAC_OSX]: Likewise.
12656 (syms_of_macselect) <Vmac_dnd_known_types>:
12657 Use mac_dnd_default_known_types.
12658
12659 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
12660 Move to mactoolbox.c.
12661 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12662 (Fx_selection_owner_p): Add EXFUN.
12663 (install_window_handler, remove_window_handler, XSetWindowBackground):
12664 Remove externs.
12665 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12666 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12667 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12668 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12669 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12670 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12671 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12672 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12673 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12674 (create_and_show_popup_menu, mac_get_selection_from_symbol)
12675 (mac_valid_selection_target_p, mac_clear_selection)
12676 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12677 (mac_put_selection_value, mac_selection_has_target_p)
12678 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12679 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12680 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12681 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12682 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12683 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12684 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12685 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12686 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12687
12688 * mactoolbox.c: New file.
12689
126902008-04-18 Jason Rumney <jasonr@gnu.org>
12691
12692 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12693
126942008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12695
12696 * character.c (Fmultibyte_char_to_unibyte):
12697 Return latin1 chars unchanged.
12698
12699 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12700 relocated if it points to `name'.
12701
127022008-04-17 Kenichi Handa <handa@m17n.org>
12703
12704 * data.c (Faset): Allow setting a multibyte character in an
12705 ASCII-only unibyte string.
12706
12707 * lisp.h (STRING_SET_MULTIBYTE): New macro.
12708
127092008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
12710
12711 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12712 done in config.h.
12713
127142008-04-16 Juanma Barranquero <lekktu@gmail.com>
12715
12716 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12717 (Fchar_direction): Add usage in the docstring.
12718
127192008-04-15 Chong Yidong <cyd@stupidchicken.com>
12720
12721 * keyboard.c (read_key_sequence): Remove always-true checks.
12722
127232008-04-14 Jason Rumney <jasonr@gnu.org>
12724
12725 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12726 compatibility struct, for better underline positioning.
12727
127282008-04-13 David Hansen <david.hansen@gmx.net>
12729
12730 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12731 string.
12732
127332008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12734
12735 * m/hp800.h (XUINT, XSET): Remove.
12736
127372008-04-12 Juanma Barranquero <lekktu@gmail.com>
12738
12739 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12740 previous change.
12741
127422008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12743
12744 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12745 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12746
127472008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12748
12749 * keymap.h (map_keymap_canonical): Declare.
12750 * xmenu.c (single_keymap_panes): Use it.
12751
127522008-04-11 Glenn Morris <rgm@gnu.org>
12753
12754 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12755 set the target's value to that of the alias.
12756
127572008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12758
12759 * term.c (set_tty_color_mode): Left over typo.
12760
127612008-04-10 Michael Albinus <michael.albinus@gmx.de>
12762
12763 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12764 only after check for file name handler functions. Signal, when
12765 native functionality is not supported.
12766 (syms_of_fileio): Declare it unconditionally.
12767
127682008-04-10 Jason Rumney <jasonr@gnu.org>
12769
12770 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12771 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12772
12773 * w32.c (logon_network_drive): Also logon to remote drives that
12774 are mapped to drive letters.
12775
127762008-04-10 Glenn Morris <rgm@gnu.org>
12777
12778 * xdisp.c (truncate-partial-width-windows): Doc fix.
12779
127802008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12781
12782 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12783 Move functions to minibuffer.el.
12784 (syms_of_fileio): Don't declare them.
12785
127862008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12787
12788 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12789 (syms_of_minibuf): Remove its initialization.
12790
12791 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12792
127932008-04-09 Juanma Barranquero <lekktu@gmail.com>
12794
12795 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12796
127972008-04-09 Jason Rumney <jasonr@gnu.org>
12798
12799 * makefile.w32-in (distclean): Delete makefile too.
12800 (maintainer-clean): New target.
12801
12802 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12803
12804 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12805 for new font backend and composite cases.
12806
128072008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12808
12809 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12810 Most of the code moved to run_timers.
12811 (do_pending_atimers): Call run_timers.
12812 (run_timers): New function.
12813
12814 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12815 run atimers.
12816
12817 * process.c (wait_reading_process_output): The same as above.
12818
128192008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12820
12821 * minibuf.c (last_exact_completion): Remove variable.
12822 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12823 (complete_and_exit_1, complete_and_exit_2)
12824 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12825 (Fdisplay_completion_list, display_completion_list_1)
12826 (Fminibuffer_completion_help, Fself_insert_and_exit)
12827 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12828 minibuffer.el.
12829 (syms_of_minibuf): Remove corresponding initializations.
12830
12831 * keyboard.c (Qdeactivate_mark): New var.
12832 (command_loop_1): Use it to call `deactivate-mark'.
12833 (syms_of_keyboard): Initialize it.
12834
12835 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12836 to another frame.
12837 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12838 Don't call set_tty_color_mode.
12839 (store_frame_param): Reset previous_frame rather than call
12840 set_tty_color_mode.
12841 * term.c (set_tty_color_mode): Rewrite.
12842 * dispextern.h (set_tty_color_mode): New type.
12843 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12844
128452008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12846
12847 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12848 for generic chars, which do not exist any more in emacs-unicode.
12849
128502008-04-08 Michael Albinus <michael.albinus@gmx.de>
12851
12852 * coding.c (detect_coding_emacs_mule)
12853 (Ffind_operation_coding_system): Fix typo.
12854
128552008-04-08 Jason Rumney <jasonr@gnu.org>
12856
12857 * w32uniscribe.c (SNAME): Extract only symbol name.
12858
12859 * w32font.h (struct w32_metric_cache): New struct.
12860 (w32font_info): Use it.
12861 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12862 (CACHE_BLOCKSIZE): New constants.
12863
12864 * w32font.c (Qja, Qko, Qzh): New symbols.
12865 (syms_of_w32font): Initialise them.
12866 (font_matches_spec): Use them to filter by language.
12867 (recompute_cached_metrics): Remove function.
12868 (compute_metrics, clear_cached_metrics): New functions.
12869 (w32font_encode_char): Use them to manage metric cache.
12870 (w32font_text_extents): Cache metrics for all glyphs on demand.
12871 Delay converting glyph indices to WORD until needed.
12872 (w32font_open_internal): Initialize metric cache to empty.
12873 (registry_to_w32_charset): Charset should always be a symbol.
12874 (fill_in_logfont, list_all_matching_fonts): Family should
12875 always be a symbol.
12876
128772008-04-06 Jason Rumney <jasonr@gnu.org>
12878
12879 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12880 Give up if glyph indices not supported. Use uniscribe obtained
12881 ABC widths for individual metrics. Map glyph clusters back to
12882 characters using fClusterStart flag. Return number of glyphs
12883 produced, not chars processed.
12884 (uniscribe_shape): Map char at FROM to current glyph.
12885
128862008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12887
12888 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12889 Use SetMenuItemHierarchicalMenu.
12890
128912008-04-05 Jason Rumney <jasonr@gnu.org>
12892
12893 * image.c (pbm_load): Allow color values up to 65535.
12894 Throw an error if max_color_idx is outside the supported range.
12895 Report an error when image size is invalid.
12896 Read two bytes at a time when raw images have max_color_idx above 255.
12897
128982008-04-05 Eli Zaretskii <eliz@gnu.org>
12899
12900 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12901 cFileName a file name that includes `?' characters, use the 8+3
12902 alias in cAlternateFileName instead.
12903
129042008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12905
12906 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12907 append "CCL: Quitted" when the CCL program is quitted.
12908 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12909
12910 * ccl.h (struct ccl_program): New member quit_silently.
12911
129122008-04-05 Chong Yidong <cyd@stupidchicken.com>
12913
12914 * search.c (compile_pattern_1): Treat non-nil and non-string of
12915 search-spaces-regexp as nil.
12916
12917 * minibuf.c (Fassoc_string): Tweak docstring.
12918
129192008-04-05 Eli Zaretskii <eliz@gnu.org>
12920
12921 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12922 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12923 2008-03-14 to force inode be positive.
12924
12925 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12926 _S_* ones, since we now use our own sys/stat.h.
12927 (stat, fstat): Don't mangle the inode number.
12928 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12929
129302008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12931
12932 * frame.h (struct frame): Give one more bit to `visible' since we use
12933 values larger than 1 to indicate obscured frames on ttys.
12934
12935 * keymap.c (Qkeymap_canonicalize): New var.
12936 (Fmap_keymap_internal): New fun.
12937 (describe_map): Use keymap-canonicalize.
12938
12939 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12940 (Fundo_boundary): Set them.
12941 (syms_of_undo): Initialize them.
12942 (record_point): Use them instead of last_point_position*.
12943 (last_undo_buffer): Change type.
12944
129452008-04-04 Jason Rumney <jasonr@gnu.org>
12946
12947 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12948 (recompute_cached_metrics): Don't set ascent and descent per char.
12949
12950 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12951 (uniscribe_check_otf): Add GC protection before consing.
12952 Rearrange loop for counting features.
12953
129542008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12955
12956 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12957 buffer with byte-size of source buffer.
12958
129592008-04-03 Chong Yidong <cyd@stupidchicken.com>
12960
12961 * callint.c (Fcall_interactively): Handle temporary region even
12962 when shift-select-mode is off.
12963
129642008-04-03 Jason Rumney <jasonr@gnu.org>
12965
12966 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12967
129682008-04-03 Kenichi Handa <handa@m17n.org>
12969
12970 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12971 (CATEGORY_MASK_UTF_16): Likewise.
12972 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12973 binary file.
12974 (detect_coding): Add null-byte detection for a binary file.
12975 (detect_coding_system): Likewise.
12976
129772008-04-03 Jason Rumney <jasonr@gnu.org>
12978
12979 * w32uniscribe.c: New file.
12980
12981 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12982
12983 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12984
12985 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12986 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12987 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12988 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12989 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12990 (Qphonetic): New symbols.
12991 (syms_of_w32font): Initialize them.
12992 (font_supported_scripts): Use them.
12993 (w32font_list_family): List all charsets.
12994 (w32font_text_extents, recompute_cached_metrics): Fix metric
12995 calculations.
12996 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12997 Give opentype fonts their own format.
12998 (font_matches_spec): New arguments backend and logfont.
12999 Handle :otf spec for uniscribe backend.
13000 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
13001 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
13002
13003 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
13004 font backend.
13005 (globals_of_w32fns): Initialize uniscribe font backend.
13006
13007 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
13008 dependencies.
13009 (w32uniscribe.$(O)): New file to build.
13010 (FONT_OBJ): Include w32uniscribe.$(O).
13011 (LIBS): Add uniscribe libraries.
13012
13013 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
13014
130152008-04-02 Chong Yidong <cyd@stupidchicken.com>
13016
13017 * callint.c (Vshift_select_mode): New var.
13018 (Finteractive): Document new ^ spec.
13019 (Fcall_interactively): Call handle-shift-selection if the ^ spec
13020 is present.
13021
13022 * keyboard.c (Vthis_command_keys_shift_translated): New var.
13023 (command_loop_1): Avoid running the direct display versions of
13024 forward-char and backward-char if shift-selection may occur.
13025 (read_key_sequence): Set Vthis_command_keys_shift_translated if
13026 shift-translation takes place.
13027
13028 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
13029 avoid clobbering by define-minor-mode.
13030
13031 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
13032 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
13033
13034 * syntax.c (Fforward_word): Add ^ interactive spec.
13035
13036 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
13037 (Fscroll_right): Add ^ interactive spec.
13038
130392008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
13040
13041 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
13042
13043 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
13044
13045 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
13046
130472008-03-31 Juri Linkov <juri@jurta.org>
13048
13049 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
13050
130512008-03-30 Jan Djärv <jan.h.d@swipnet.se>
13052
13053 * gtkutil.c (xg_set_geometry): Fix indentation.
13054 (xg_resize_outer_widget): Remove.
13055 (x_wm_size_hint_off): Fix indentation.
13056 (xg_frame_set_char_size): Call flush_and_sync after
13057 gtk_window_resize.
13058 (x_wm_set_size_hint): Pass NULL as geometry window to
13059 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
13060 Add menu bar and tool bar height to base height.
13061 (xg_update_frame_menubar, free_frame_menubar)
13062 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13063 (update_frame_tool_bar, free_frame_tool_bar):
13064 Change xg_resize_outer_widget to xg_frame_set_char_size.
13065
130662008-03-30 Michael Albinus <michael.albinus@gmx.de>
13067
13068 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
13069 (Fdbus_call_method): New parameter TIMEOUT.
13070 (dbus-send-signal): Optimize UNGCPRO call.
13071
130722008-03-29 Juri Linkov <juri@jurta.org>
13073
13074 * window.c (Fdisplay_buffer): Move call to
13075 Vsplit_window_preferred_function out of conditions that check
13076 if window is eligible for vertical splitting.
13077 When Vsplit_window_preferred_function is non-nil, call it and use
13078 its non-nil return value as window. Otherwise, continue doing
13079 vertical splitting using Fsplit_window with arg horflag=nil.
13080 (syms_of_window) <Vsplit_window_preferred_function>: Change the
13081 default value from `split-window' to nil.
13082
130832008-03-29 Juri Linkov <juri@jurta.org>
13084
13085 * callint.c (Fcall_interactively): Revert 2008-03-16 change
13086 for interactive code letters 'b' and 'B'.
13087
130882008-03-29 Eli Zaretskii <eliz@gnu.org>
13089
13090 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
13091 multibyte string.
13092
130932008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
13094
13095 * keyboard.c (pending_funcalls): New var.
13096 (timer_check): Run it.
13097 (syms_of_keyboard): Initialize it.
13098 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
13099 (Vdelete_terminal_functions): New vars.
13100 (syms_of_terminal): Initialize them.
13101 (Fdelete_terminal): Run delete-terminal-functions.
13102 * xdisp.c (safe_eval): Rewrite.
13103 (safe_call2): New fun.
13104 * frame.c (Qdelete_frame_functions): New var.
13105 (syms_of_frame): Initialize it.
13106 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
13107 * lisp.h (safe_call2, pending_funcalls): Declare.
13108
131092008-03-28 Andreas Schwab <schwab@suse.de>
13110
13111 * indent.c (Fmove_to_column): Move declaration before statements.
13112
131132008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
13114
13115 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
13116 (struct frame): Use bit fields for boolean vars.
13117
13118 * process.c (server_accept_connection): Simplify naming.
13119 (emacs_get_tty_pgrp): Use SDATA.
13120
13121 * coding.c (decode_coding_object): Fix last change.
13122
131232008-03-27 Jason Rumney <jasonr@gnu.org>
13124
13125 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
13126
131272008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
13128
13129 * charset.c (Fdefine_charset_internal): Change the way of
13130 registering charsets in Vcharset_order_list.
13131 (syms_of_charset): Make the charset `eight-bit' supplementary.
13132
131332008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
13134
13135 * regex.c (EXTEND_BUFFER): Change order of pointer addition
13136 operations, to avoid having the difference between pointers
13137 overflow.
13138
131392008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13140
13141 * indent.c (check_display_width): New fun.
13142 (scan_for_column): Use it.
13143
13144 * data.c (syms_of_data): Mark most-positive-fixnum and
13145 most-negative-fixnum as constants.
13146
13147 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
13148
13149 * indent.c (scan_for_column): Extract from current_column_1.
13150 Merge with the same code from Fmove_to_column.
13151 (current_column_1, Fmove_to_column): Use it.
13152
131532008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
13154
13155 * keymap.c (map_keymap_internal): New fun.
13156 (map_keymap): Use it.
13157 (Fmap_keymap_internal): New fun.
13158 (Fmap_keymap): Remove left-out test from before make_save_value.
13159
13160 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
13161
13162 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
13163 Use XCAR/XCDR.
13164
13165 * process.h (struct Lisp_Process): Remove filter_multibyte.
13166 * process.c (QCfilter_multibyte): Remove.
13167 (setup_process_coding_systems): Don't use filter_multibyte.
13168 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
13169 (read_process_output): Don't adjust multibyteness to filter_multibyte.
13170 (Fset_process_filter_multibyte): Change the coding-system to
13171 approximate the previous behavior.
13172 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
13173 coding-system.
13174
13175 * coding.c (decode_coding_object): When not decoding into a buffer,
13176 obey the coding system's preference of (uni|multi)byte.
13177
131782008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
13179
13180 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
13181 every char is changed and has a different byte-length.
13182 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
13183 Fix int -> EMACS_INT.
13184
131852008-03-23 David Hansen <david.hansen@gmx.net>
13186
13187 * dbusbind.c (xd_read_message): Remove extra copying of message
13188 strings. Check for NULL `interface' or `member'.
13189
131902008-03-22 Eli Zaretskii <eliz@gnu.org>
13191
13192 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13193 cFileName a file name that includes `?' characters, use the 8+3
13194 alias in cAlternateFileName instead.
13195
131962008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
13197
13198 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
13199
132002008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13201
13202 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
13203 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
13204 work on current_buffer only instead (that was already the case
13205 for some of the code anyway).
13206 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
13207 (temp_set_point, temp_set_point_both): Use EMACS_INT.
13208 (SET_PT, SET_PT_BOTH): Adjust.
13209 * intervals.h (set_point, temp_set_point, set_point_both)
13210 (temp_set_point_both): Remove redundant declarations.
13211
132122008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13213
13214 * fileio.c (Finsert_file_contents):
13215 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
13216 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
13217 when buffer != current_buffer anyway.
13218
132192008-03-20 Andreas Schwab <schwab@suse.de>
13220
13221 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
13222 as default.
13223
132242008-03-19 Jason Rumney <jasonr@gnu.org>
13225
13226 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
13227 (syms_of_w32fns): Initialize them.
13228 (HOURGLASS_ID): New constant.
13229 (x_window_to_frame): Don't check hourglass_window.
13230 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
13231 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
13232 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
13233 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
13234 Only change the cursor if hourglass is not active.
13235 (Fx_create_frame): Initialize frame's current_cursor.
13236 (hourglass_atimer): Remove.
13237 (hourglass_started): New function.
13238 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
13239 (show_hourglass): Adapt to w32, changing argument to frame.
13240
13241 * w32term.h (struct w32_output): Remove hourglass_window.
13242 Add current_cursor.
13243
13244 * eval.c (call_debugger, Fsignal):
13245 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
13246 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
13247 (Fexecute_extended_command, cancel_hourglass_unwind):
13248 * minibuf.c (read_minibuf):
13249 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
13250
132512008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
13252
13253 * window.c (run_funs): New fun.
13254 (run_window_configuration_change_hook): Use it to run the buffer-local
13255 and the global part of the hook.
13256
13257 * xdisp.c (format_mode_line_unwind_data): Add window argument.
13258 (unwind_format_mode_line): Restore selected window.
13259 (x_consider_frame_title, Fformat_mode_line): Set selected window.
13260
132612008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13262
13263 * editfns.c (Fchar_equal): Check they are valid characters.
13264
13265 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
13266
132672008-03-17 Andreas Schwab <schwab@suse.de>
13268
13269 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
13270 against a charset.
13271
13272 * lisp.h (Fbuffer_list): Declare.
13273
132742008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 13275
aac0c6e3
MR
13276 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
13277 handlebox_widget is != 0.
13278
132792008-03-16 Juri Linkov <juri@jurta.org>
13280
13281 * callint.c (Fcall_interactively): For interactive code letters
13282 'b' and 'B' put the buffer list into the list of default "future"
13283 values of the minibuffer.
13284
132852008-03-16 Andreas Schwab <schwab@suse.de>
13286
13287 * keyboard.c (read_key_sequence): Fix downcasing of letters with
13288 modifiers.
13289
13290 * regex.c (re_match_2_internal): Correct matching of a charset
13291 against latin-1 characters.
13292
132932008-03-16 Kenichi Handa <handa@m17n.org>
13294
13295 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
13296 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
13297 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
13298 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
13299 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
13300 CHAR_STRING_ADVANCE.
13301 (produce_chars): Fix for the case that the source and the
13302 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
13303 instead of CHAR_STRING_ADVANCE.
13304 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
13305 STRING_CHAR_ADVANCE.
13306
133072008-03-15 Andreas Schwab <schwab@suse.de>
13308
13309 * regex.c (re_match_2_internal): Correct matching of eight bit
13310 characters in unibyte strings.
13311
133122008-03-15 Martin Rudalics <rudalics@gmx.at>
13313
13314 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
13315 at end of range when it coincides with the end of the buffer.
13316
133172008-03-14 Eli Zaretskii <eliz@gnu.org>
13318
13319 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
13320
13321 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
13322
133232008-03-14 Jason Rumney <jasonr@gnu.org>
13324
13325 * editfns.c (initial_tz): New variable.
13326 (syms_of_editfns): Initialize it.
13327 (Fset_time_zone_rule): Set it when first called.
13328 Use it when TZSTRING is nil.
13329
13330 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
13331 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
13332 (monitor_from_point_fn, get_monitor_info_fn): New globals.
13333 (globals_of_w32fns): Initialize them.
13334 (compute_tip_xy): Use them to position tooltips.
13335
133362008-03-14 Glenn Morris <rgm@gnu.org>
13337
13338 * emacs.c (main): Revert previous change.
13339 (standard_args): Revert -internal-script back to -scriptload,
13340 and remove the long-option form.
13341
133422008-03-13 Glenn Morris <rgm@gnu.org>
13343
13344 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
13345 Remove option -enable-font-backend.
13346
133472008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
13348
13349 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
13350
133512008-03-11 Jan Djärv <jan.h.d@swipnet.se>
13352
13353 * xterm.c (x_connection_closed): For GTK: If this is the last
13354 terminal just exit without closing the display.
13355
133562008-03-11 Jason Rumney <jasonr@gnu.org>
13357
13358 * w32font.c (w32font_full_name): Use floor to round.
13359
f0131492 133602008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
13361
13362 * sound.c (alsa_configure): Declare vol at beginning of block.
13363
13364 * fontset.c (Ffontset_info): Remove extra semicolon.
13365
133662008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13367
13368 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
13369 size of resulting string.
13370
133712008-03-10 Jason Rumney <jasonr@gnu.org>
13372
13373 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
13374
133752008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13376
13377 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
13378 Don't pretend as if characters with display property haven't been
13379 consumed for string-replacing-string case.
13380
133812008-03-08 Kim F. Storm <storm@cua.dk>
13382
13383 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
13384 (get_next_display_element, next_element_from_string)
13385 (next_element_from_ellipsis, next_element_from_buffer): Use it.
13386
133872008-03-08 Andreas Schwab <schwab@suse.de>
13388
13389 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
13390
133912008-03-06 Jason Rumney <jasonr@gnu.org>
13392
13393 * w32font.c (w32_registry): Take font_type argument. Use ANSI
13394 when charset not specified. Only translate ANSI to unicode when
13395 font_type is truetype.
13396 (w32font_coverage_ok): New function.
13397 (add_font_entity_to_list): Use it to filter unsuitable fonts.
13398
133992008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
13400
13401 * lread.c (Fread_char): Resolve modifiers.
13402 (Fread_char_exclusive): Likewise.
13403
13404 * character.c (char_resolve_modifier_mask): New function.
13405 (char_string): Use char_resolve_modifier_mask.
13406 (Fchar_resolve_modifiers): New function.
13407 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
13408 function.
13409
134102008-03-04 Jason Rumney <jasonr@gnu.org>
13411
13412 * makefile.w32-in: Always include w32font.c in the build.
13413 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
13414
134152008-03-04 Andreas Schwab <schwab@suse.de>
13416
13417 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
13418 (versionclean): Likewise.
13419
134202008-03-04 Juanma Barranquero <lekktu@gmail.com>
13421
13422 * .cvsignore: Add oo.
13423
134242008-03-03 Andreas Schwab <schwab@suse.de>
13425
13426 * coding.c (decode_coding_object): Inhibit gap shrinking while
13427 decoding in place.
13428
134292008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
13430
13431 * w32term.c: Remove unused include "gnu.h".
13432 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
13433
13434 * gnu.h: Rename to ...
13435 * emacs-icon.h: ... this.
13436 * xterm.c: Use emacs-icon.h instead of gnu.h.
13437 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
13438
134392008-03-03 Juanma Barranquero <lekktu@gmail.com>
13440
13441 * w32font.c: Include math.h.
13442
134432008-03-03 Jason Rumney <jasonr@gnu.org>
13444
13445 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
13446 Compute options separately.
13447 (w32font_open_internal): Set glyph_idx before caching metrics.
13448
13449 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
13450 Define if system headers don't.
13451 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
13452 (w32font_encode_char): Don't declare here.
13453
13454 * w32font.c (Quniscribe, QCformat): New symbols.
13455 (syms_of_w32font): Define them.
13456 (w32font_has_char): Indicate uncertainty.
13457 (w32font_encode_char): Encode as glyph point. Make static.
13458 (recompute_cached_metrics): New function.
13459 (w32font_open_internal): Use it. Set font to use glyph points
13460 initially. Set format based on type of font.
13461 (w32font_text_extents, w32font_draw): Optionally use glyph points.
13462 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
13463 on it. Set format based on information available here.
13464 (add_font_entity_to_list): Identify backend based on opentype_only.
13465
134662008-03-02 Andreas Schwab <schwab@suse.de>
13467
13468 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
13469
13470 * coding.c (decode_coding_big5, produce_chars):
13471 Fix typos in last change.
13472
134732008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
13474
13475 * gnu.h: New icon.
13476
134772008-03-02 Kenichi Handa <handa@m17n.org>
13478
13479 * coding.c (decode_coding_utf_8): When eol-type of CODING is
13480 `dos', don't decode '\r' if that is the last in the source.
13481 (decode_coding_utf_16, decode_coding_emacs_mule)
13482 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13483 (decode_coding_raw_text, decode_coding_charset): Likewise.
13484 (produce_chars): Don't decode EOL here. Use EMACS_INT.
13485
134862008-03-01 Jason Rumney <jasonr@gnu.org>
13487
13488 * w32font.c (w32font_full_name): Report point size for scalable fonts.
13489
134902008-03-01 Kim F. Storm <storm@cua.dk>
13491
13492 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
13493
134942008-03-01 Jason Rumney <jasonr@gnu.org>
13495
13496 * w32font.c (w32font_full_name): New function.
13497 (w32font_open_internal): Use it.
13498
134992008-03-01 Kim F. Storm <storm@cua.dk>
13500
13501 * dispnew.c (line_draw_cost): Fix invalid glyph check.
13502
135032008-03-01 Jason Rumney <jasonr@gnu.org>
13504
13505 * font.c (font_unparse_fcname): Increase len when style is a symbol.
13506
135072008-03-01 Jan Djärv <jan.h.d@swipnet.se>
13508
13509 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
13510 xg_frame_resized when the event is for the edit widget.
13511
13512 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
13513
13514 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
13515 set_char_size.
13516 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
13517 operations on widgets here. Just set frame size if needed.
13518 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
13519 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
13520 (x_wm_set_size_hint): Set size hints on the edit widget only, not
13521 the whole frame.
13522 (xg_create_tool_bar): Move attachment of the tool bar to
13523 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
13524 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
13525
135262008-03-01 Jason Rumney <jasonr@gnu.org>
13527
13528 * w32fns.c (w32_msg_pump): Disable debug code.
13529
135302008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13531
13532 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
13533
135342008-02-29 Chong Yidong <cyd@stupidchicken.com>
13535
13536 * xdisp.c (next_overlay_string): Don't set
13537 overlay_strings_at_end_processed_p if we're currently reading from
13538 a display string.
13539
135402008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
13541
13542 * xdisp.c (get_overlay_strings_1): Fix typo.
13543
135442008-02-29 Chong Yidong <cyd@stupidchicken.com>
13545
13546 * xdisp.c (get_overlay_strings_1): Add missing argument type.
13547
135482008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
13549
13550 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
13551
13552 * xdisp.c (display_mode_element): Cancel the previous change.
13553 (decode_mode_spec): Likewise.
13554 (handle_auto_composed_prop): Don't make composition if it->string
13555 is a string.
13556
135572008-02-27 Kim F. Storm <storm@cua.dk>
13558
13559 * lisp.h (GLYPH): Change type from int to struct with separate char
13560 and face_id members.
13561 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
13562 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
13563 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
13564 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
13565 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
13566 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
13567 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
13568 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
13569 handle new Lisp glyph code encoding, either an integer or a cons.
13570
13571 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
13572 (GLYPH_ALIAS): Delete.
13573 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
13574 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
13575 (GLYPH_FROM_CHAR): Replace macro by ...
13576 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
13577
13578 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
13579 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
13580 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
13581 (GLYPH_INVALID_P): New macro.
13582 (spec_glyph_lookup_face): Update prototype.
13583
13584 * dispnew.c (line_draw_cost): Adapt to new glyph type.
13585 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
13586 new glyph code encoding.
13587 (spec_glyph_lookup_face): No return value; update passed glyph instead.
13588 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
13589
13590 * xdisp.c (get_next_display_element, next_element_from_display_vector):
13591 Adapt to new glyph type and new glyph code encoding.
13592
13593 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
13594
13595 * indent.c (current_column, current_column_1, Fmove_to_column)
13596 (compute_motion): Adapt to new glyph code encoding.
13597
13598 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
13599
136002008-02-27 Chong Yidong <cyd@stupidchicken.com>
13601
13602 * process.c (wait_reading_process_output): Check for window
13603 changes caused by timers.
13604 Suggested by Johan Bockgård.
13605
136062008-02-27 Glenn Morris <rgm@gnu.org>
13607
13608 * emacs.c (USAGE1): Add `--disable-font-backend'.
13609
136102008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
13611
13612 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
13613 is made to the buffer.
13614
136152008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
13616
13617 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
13618 (face_at_string_position):
13619 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
13620 (face_at_string_position):
13621 * xdisp.c (display_string, next_overlay_change):
13622 * buffer.h (overlays_at):
13623 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
13624 Update callers.
13625
136262008-02-26 Chong Yidong <cyd@stupidchicken.com>
13627
13628 * editfns.c (Fformat): Doc fix.
13629
136302008-02-26 Juanma Barranquero <lekktu@gmail.com>
13631
13632 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
13633 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
13634 (Ffont_otf_alternates, Fquery_font): Doc fixes.
13635
136362008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13637
13638 * buffer.c (Fbuffer_swap_text): New function.
13639 (syms_of_buffer): Defsubr it.
13640
136412008-02-25 Chong Yidong <cyd@stupidchicken.com>
13642
13643 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
13644
136452008-02-25 Jason Rumney <jasonr@gnu.org>
13646
13647 * w32font.c (w32font_draw): Draw one character at a time when padding.
13648
136492008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13650
13651 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
13652 Handle a nil arg. Use run_window_configuration_change_hook.
13653 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
13654 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
13655 Use run_window_configuration_change_hook.
13656
136572008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13658
13659 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
13660 1-pixel width.
13661
136622008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13663
13664 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13665 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13666 if the glyph in the font is zero pixel with.
13667
13668 * dispextern.h (struct glyph_string): New member padding_p.
13669
13670 * w32font.c (w32font_draw): Pay attention to s->padding_p.
13671
13672 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13673
13674 * xfont.c (xfont_draw): Pay attention to s->padding_p.
13675
13676 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13677
13678 * font.c: If the font driver doesn't have `shape' function, return Qnil.
13679
136802008-02-25 Jason Rumney <jasonr@gnu.org>
13681
13682 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13683
136842008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
13685
13686 Allow fine-grained image-cache flushing.
13687 * dispextern.h (struct image): Add `dependencies' field.
13688 (clear_image_caches): Change arg to Lisp_Object.
13689 * image.c (make_image): Initialize `dependencies' field.
13690 (clear_image_cache): Change arg to allow fine-grained flushing.
13691 Perform the flush even if image-cache-eviction-delay is nil.
13692 (clear_image_caches): Change arg to Lisp_Object.
13693 (Fclear_image_cache): Expand meaning of the argument.
13694 (mark_image): Mark `dependencies' field.
13695 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13696 (lface_hash): Use XHASH rather than XFASTINT.
13697 (face_at_buffer_position): Fix int -> EMACS_INT position.
13698 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13699 (select_frame_for_redisplay): Remove code duplication.
13700 (redisplay_internal): Adapt arg to call to clear_image_caches.
13701
137022008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
13703
13704 * s/vms4-0.h:
13705 * s/vms4-2.h:
13706 * s/vms4-4.h:
13707 * s/vms5-5.h: Remove, unused.
13708
13709 * s/irix5-2.h:
13710 * s/irix6-0.h:
13711 * s/riscos5.h:
13712 * s/mach-bsd4-3.h:
13713 * m/mips4.h: Remove files for obsolete systems.
13714
13715 * Makefile.in:
13716 * filelock.c:
13717 * unexmips.c:
13718 * m/hp9000s300.h:
13719 * m/iris4d.h:
13720 * s/aix3-1.h:
13721 * s/hpux.h:
13722 * s/msdos.h:
13723 * s/usg5-0.h:
13724 * s/usg5-2-2.h:
13725 * s/usg5-2.h:
13726 * s/usg5-3.h: Remove references to obsolete variables.
13727
13728 * s/irix5-0.h: Remove, move all the contents ...
13729 * s/irix6-5.h: ... here. Simplify.
13730 * config.in: Regenerate.
13731
137322008-02-24 Jason Rumney <jasonr@gnu.org>
13733
13734 * w32term.c (x_draw_glyph_string_background): Clear the background
13735 manually when cleartype is in use.
13736 (x_draw_glyph_string_foreground): Draw text transparently when
13737 cleartype is in use.
13738
13739 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13740 a font into it unless we have to.
13741
137422008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13743
13744 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13745 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 13746
aac0c6e3
MR
137472008-02-18 Jason Rumney <jasonr@gnu.org>
13748
13749 * w32fns.c (Fw32_shell_execute): Encode parameters.
13750
137512008-02-09 Eli Zaretskii <eliz@gnu.org>
13752
13753 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13754
137552008-02-05 Juanma Barranquero <lekktu@gmail.com>
13756
13757 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13758
137592008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13760
13761 * xterm.c (x_set_offset): Don't change the gravity if
13762 CHANGE_GRAVITY is -1.
13763
137642008-02-23 Chong Yidong <cyd@stupidchicken.com>
13765
13766 * fileio.c (auto_save_error_occurred): New var.
13767 (auto_save_error): Set it.
13768 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13769 error occurred.
13770
137712008-02-23 Eli Zaretskii <eliz@gnu.org>
13772
13773 * w32.c (globals_of_w32): Add initializations for
13774 g_b_init_get_sid_sub_authority and
13775 g_b_init_get_sid_sub_authority_count.
13776
137772008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13778
13779 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13780 (font_parse_xlfd): Use them for sanity check.
13781 (Finternal_set_font_style_table): Make sure the table is bijective.
13782
13783 Consolidate the image_cache to the terminal struct.
13784 * termhooks.h (P_): Remove redundant def.
13785 (struct terminal): New field `image_cache'.
13786 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13787 of FRAME_X_IMAGE_CACHE.
13788 * xterm.h (struct x_display_info): Remove image_cache field.
13789 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13790 * w32term.h (struct w32_display_info): Remove image_cache field.
13791 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13792 * macterm.h (struct mac_display_info): Remove image_cache field.
13793 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13794 * xterm.c (x_term_init):
13795 * w32term.c (w32_term_init):
13796 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13797 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13798 Remove declarations.
13799 (clear_image_caches, mark_image_cache): New declarations.
13800 * xfaces.c (clear_face_cache):
13801 * xdisp.c (redisplay_internal): Use clear_image_caches.
13802 * image.c (clear_image_cache): Don't check that a frame is on
13803 a window-system before checking if it shares the same cache.
13804 (clear_image_caches): New function.
13805 (Fclear_image_cache): Use it.
13806 (mark_image): Move from allo.c.
13807 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13808 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13809 (mark_object): Don't call mark_image_cache for frames.
13810 (mark_terminals): Call mark_image_cache.
13811
13812 * lisp.h (Fdelete_terminal): Declare.
13813
13814 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13815 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13816 wrong_type_argument.
13817
138182008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13819
13820 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13821 malayalam.el, and tamil.el. Add sinhala.el.
13822
138232008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13824
13825 * xterm.c (x_connection_closed): Consolidate identical tests.
13826 (x_delete_terminal): Don't crash if called via x_connection_closed.
13827
138282008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13829
13830 * xdisp.c (decode_mode_spec): New arg string.
13831 (display_mode_element): Adjust for the above change.
13832
138332008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13834
13835 * callint.c (Fcall_interactively): Use AREF.
13836
138372008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13838
13839 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13840
138412008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13842
13843 * xfns.c (Fx_show_tip): Set string to " " if empty.
13844
138452008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13846
13847 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13848 with Qt.
13849
138502008-02-17 Kenichi Handa <handa@m17n.org>
13851
13852 * ftfont.c (ftfont_shape): Return Lispy number.
13853
13854 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13855 for GCs.
13856 (Finternal_set_font_selection_order): Call font_update_sort_order
13857 only when enable_font_backend is set.
13858 (realize_x_face): Set face->font_info to that of default face only
13859 when enable_font_backend is set.
13860
13861 * xdisp.c (handle_composition_prop): Set it->c to the fist
13862 character of the composed region.
13863 (fill_composite_glyph_string): Set base_face->font_info to
13864 s->font_info. Get a face for ascii from base_face->ascii_face.
13865 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13866 with a face already decided.
13867 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13868 non-negative.
13869 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13870 call font_prepare_composition unconditionally.
13871
13872 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13873
13874 * xterm.h (struct x_display_info): New member font.
13875
13876 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13877 (x_set_mouse_face_gc, x_new_font): Likewise.
13878 (x_term_init): Setup display_info->font.
13879 (x_delete_terminal): Free display_info->font.
13880
13881 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13882
13883 * ftxfont.c (ftxfont_default_fid): Delete it.
13884 (ftxfont_open): Set xfont->fid to 0.
13885 (ftxfont_end_for_frame): Clear data specific to the frame and the
13886 font-driver.
13887
13888 * xftfont.c (xftfont_default_fid): Delete it.
13889 (xftfont_open): Set xfont->fid to 0.
13890
13891 * fontset.c (FONTSET_OBJLIST): New macro.
13892 (fontset_find_font): Update font-object list of the fontset.
13893 (free_realized_fontset): New function.
13894 (free_face_fontset): Call free_realized_fontset.
13895 (Ffont_info): Call font_close_object only when enable_font_backend
13896 is set.
13897
13898 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13899 [HAVE_NTGUI]: Include w32term.h.
13900 [MAC_OS]: Include macterm.ch.
13901 (font_otf_ValueRecord): Use make_number.
13902 (font_finish_cache): Fix handling of reference count.
13903 (font_clear_cache): Update num_fonts.
13904 (font_open_entity): Update smallest_char_width and
13905 smallest_font_height of the frame.
13906 (font_close_object): Update num_fonts.
13907 (Fclear_font_cache): Fix finding the target cache data.
13908
139092008-02-16 Glenn Morris <rgm@gnu.org>
13910
13911 * fontset.c (Finternal_char_font): Fix compilation warning.
13912
139132008-02-16 Eli Zaretskii <eliz@gnu.org>
13914
13915 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13916 instead of char arrays. Enlarge the size of array passed to
13917 get_token_information.
13918
13919 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13920 warnings.
13921
139222008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13923
13924 * .gdbinit: Don't set `args', it breaks gdb --args.
13925
139262008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13927
13928 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13929 within a narrowed buffer.
13930
139312008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13932
13933 * coding.c (decode_coding_object, encode_coding_object):
13934 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13935
139362008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13937
13938 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13939 hardcoding 1.
13940 (detect_coding_system):
13941 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13942 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13943 * insdel.c (insert_from_gap):
13944 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13945 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13946 (string_to_multibyte):
13947 * character.c (chars_in_text, multibyte_chars_in_text):
13948 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13949
13950 * character.h (FETCH_STRING_CHAR_ADVANCE)
13951 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13952 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13953 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13954
13955 * casefiddle.c (casify_region): Only call after-change and composition
13956 functions on the part of the region that was changed.
13957
13958 * keyboard.c (read_avail_input):
13959 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13960
139612008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13962
13963 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13964 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13965
139662008-02-11 Juanma Barranquero <lekktu@gmail.com>
13967
13968 * w32menu.c (push_submenu_start, push_submenu_end)
13969 (push_left_right_boundary, push_menu_pane, push_menu_item):
13970 * keyboard.c (read_key_sequence): Don't pass args with side effects
13971 to AREF, it fails when compiling with -DENABLE_CHECKING.
13972
139732008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13974
13975 * Makefile.in (${lispsource}international/charprop.el):
13976 Delete this target.
13977
13978 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13979 emacs-unicode-2.
13980
139812008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13982
13983 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13984
139852008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13986
13987 * frame.c (Qnoelisp): New symbol.
13988 (syms_of_frame): Initialize it.
13989 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13990 harmless Elisp code, from a strong `force' from x_connection_closed.
13991 * frame.h (Qnoelisp): Declare.
13992 * xterm.c (x_connection_closed): Pass `noelisp'.
13993
13994 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13995 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13996 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13997 rather than `int' for the type of `type'.
13998
139992008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
14000
14001 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
14002
14003 * Makefile.in (GNUC): Remove support for gcc-1.x.
14004
140052008-02-10 Richard Stallman <rms@gnu.org>
14006
14007 * lisp.h (ASET): Use AREF, not ASLOT.
14008
140092008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14010
14011 * lisp.h (ASET): Check bounds.
14012
140132008-02-10 Glenn Morris <rgm@gnu.org>
14014
14015 * buffer.c (mode-name): Doc fix.
14016
140172008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14018
14019 * Makefile.in:
14020 * emacs.c:
14021 * gmalloc.c:
14022 * keyboard.c:
14023 * lisp.h:
14024 * m/ibm370aix.h:
14025 * process.c:
14026 * regex.c:
14027 * s/hpux.h:
14028 * sysdep.c:
14029 * sysselect.h:
14030 * systty.h:
14031 * unexec.c:
14032 * w32term.c:
14033 * xsmfns.c:
14034 * xterm.c: Remove code that deals with obsolete variables.
14035
14036 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
14037
14038 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
14039 nothing else needs it anymore.
14040
140412008-02-09 Eli Zaretskii <eliz@gnu.org>
14042
14043 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
14044 instead of unibyte_char_to_multibyte.
14045
140462008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14047
14048 * s/gnu-linux.h: Remove commented out code.
14049
14050 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
14051
14052 * Makefile.in: Update what RMS says about using autoconf.
14053 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
14054 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
14055 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
14056 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
14057
140582008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
14059
14060 * keymap.c (Fkey_description): Move side effect outside of macro call.
14061
14062 * xfaces.c (Finternal_make_lisp_face):
14063 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
14064
14065 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
14066 (syms_of_fontset): Use ASET.
14067
14068 * fns.c (concat): Move side effect outside of macro call.
14069 (hash_clear): Use ASET.
14070
140712008-02-08 Richard Stallman <rms@gnu.org>
14072
14073 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
14074 If FORCE, and frame has a surrogate minibuffer for another frame,
14075 delete the other frame first.
14076
140772008-02-07 Timo Savola <timo.savola@iki.fi>
14078
14079 * xterm.c (x_detect_focus_change): Handle embed client message.
14080 (handle_one_xevent): Ditto.
14081 (handle_one_xevent): If embedded and we get a button press/release,
14082 request focus.
14083 (xembed_set_info, xembed_send_message): New functions.
14084 (x_make_frame_visible): Call xembed_set_info if embedded.
14085 (x_make_frame_invisible): Call xembed_set_info if embedded.
14086 (x_term_init): Initialize Xatom_XEMBED.
14087 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
14088 (x_iconify_frame): Ditto.
14089
14090 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
14091 (enum xembed_info, enum xembed_message, enum xembed_focus)
14092 (enum xembed_modifier, enum xembed_accelerator): New.
14093 (xembed_set_info, xembed_send_message): Declare.
14094 (FRAME_X_EMBEDDED_P): New.
14095
14096 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
14097 gtk_plug_new.
14098
14099 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
14100 window ID of a frame.
14101 (x_window): Reparent frame if embedded.
14102 (Fx_create_frame): Don't set border width if embedded.
14103
14104 * emacs.c (USAGE3): Add --parent-id.
14105 (standard_args): Ditto.
14106
141072008-02-07 Jan Djärv <jan.h.d@swipnet.se>
14108
14109 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
14110
141112008-02-07 Jim Meyering <meyering@redhat.com>
14112
14113 Use "do...while (0)", not "if (1)...else" in macro definitions.
14114 The latter provokes a warning from gcc about the empty else, when
14115 followed by ";". Also, without that trailing semicolon, it would
14116 silently swallow up any following statement.
14117 * syntax.h (SETUP_SYNTAX_TABLE)
14118 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
14119 * buffer.h (DECODE_POSITION): Likewise.
14120 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
14121 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
14122 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
14123 (FETCH_CHAR_ADVANCE): Likewise.
14124 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
14125
141262008-02-07 Jim Meyering <meyering@redhat.com>
14127
14128 * lread.c [lint]: Don't include <sys/inode.h>.
14129
141302008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
14131
14132 * xselect.c (x_handle_dnd_message):
14133 * xmenu.c (digest_single_submenu, xmenu_show):
14134 * xdisp.c (with_echo_area_buffer_unwind_data)
14135 (format_mode_line_unwind_data, unwind_format_mode_line)
14136 (display_menu_bar):
14137 * eval.c (Ffetch_bytecode):
14138 * doc.c (store_function_docstring):
14139 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
14140 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
14141 * buffer.c (add_overlay_mod_hooklist): Use ASET.
14142
141432008-02-07 Kenichi Handa <handa@m17n.org>
14144
14145 * ftxfont.c (ftxfont_open): Don't set
14146 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
14147
14148 * ftfont.c (ftfont_open): Fix previous change.
14149
141502008-02-06 Jason Rumney <jasonr@gnu.org>
14151
14152 * w32font.c (w32font_text_extents): Fill in lbearing metric.
14153 Use cached metrics for ASCII characters.
14154 (w32font_open_internal): Don't set font's owning_frame.
14155 Cache metrics for ASCII characters.
14156
14157 * w32font.h (struct w32font_info): Add ascii_metrics.
14158 Remove owning_frame.
14159
141602008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
14161
14162 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
14163 to negative value.
14164
14165 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
14166
14167 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
14168
14169 * charset.c (syms_of_charset): Set QCtest and Qeq.
14170
141712008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
14172
14173 * process.c (Fstart_process):
14174 * callproc.c (Fcall_process): Handle the case where
14175 Funhandled_file_name_directory returns nil.
14176
14177 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
14178 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
14179 * font.c (check_gstring): Use them and AREF to access the vector before
14180 we know it's really a gstring.
14181 (Ffont_shape_text): Fix typo.
46e722a9 14182 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
14183
14184 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
14185 Declare.
14186
14187 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
14188
141892008-02-05 Jason Rumney <jasonr@gnu.org>
14190
14191 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
14192 Set smallest_font_height and smallest_char_width in display info.
14193
141942008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
14195
14196 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
14197
141982008-02-05 Miles Bader <miles@gnu.org>
14199
14200 * xfaces.c (get_lface_attributes, merge_named_face)
14201 (lookup_named_face, lookup_derived_face, realize_named_face):
14202 Revert 2008-02-01 change by cyd@stupidchicken.com.
14203
142042008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
14205
14206 * fontset.c (Ffontset_info): Handle the case of inhibitting the
14207 fallback fonts.
14208 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
14209
142102008-02-04 Jason Rumney <jasonr@gnu.org>
14211
14212 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
14213 set full_name.
14214 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
14215
142162008-02-03 Jason Rumney <jasonr@gnu.org>
14217
14218 * makefile.w32-in (OBJ1): Include font.o here.
14219 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
14220
142212008-02-02 Jason Rumney <jasonr@gnu.org>
14222
14223 * makefile.w32-in (temacs): Bump EMHEAP to 21.
14224
142252008-02-01 Jason Rumney <jasonr@gnu.org>
14226
14227 * s/cygwin.h: Define VIRT_ADDR_VARIES.
14228
14229 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
14230
142312008-02-01 Andreas Schwab <schwab@suse.de>
14232
14233 * Makefile.in (shortlisp, lisp): Update for rename of
14234 ../lisp/language/myanmar.el.
14235
142362008-02-01 Chong Yidong <cyd@stupidchicken.com>
14237
14238 * xfaces.c (get_lface_attributes): Delete function.
14239 (merge_named_face, lookup_named_face, lookup_derived_face)
14240 (realize_named_face): Call lface_from_face_name directly, and use
14241 the fact that merge_face_vectors does not alter its FROM argument.
14242
142432008-02-01 Jason Rumney <jasonr@gnu.org>
14244
14245 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
14246 input in the default locale. Handle non-Unicode multibyte input.
14247
142482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14249
14250 * fontset.c (reorder_font_vector): Exclude nil elements from the
14251 font group. Don't try multiple fonts.
14252 (fontset_font): Adjust for the above change.
14253 (Finternal_char_font): Return nil if the found font doesn't
14254 contain the character ch.
14255
14256 * Makefile.in (lisp, shortlisp): Add cham.el.
14257
142582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14259
14260 * font.h (FONTP): Make it return 1 also for a font-object.
14261
14262 * .gdbinit (xfontset): New function.
14263
14264 * font.c (font_find_for_lface): Check if the character C is
14265 supported or not only for the first font.
14266
14267 * fontset.c (reorder_font_vector): Fix typo.
14268 (fontset_find_font): Don't add a font-spec specifying a script.
14269 Use 0 (not Qt) for the indication of empty font-group. Change the
14270 format of RFONT-DEF. Return Qt if no font in the font-group
14271 support the character.
14272 (fontset_font): Adjust for the above change. If no font was
14273 found the character, remember that.
14274 (face_for_char): Adjust for the change of RFONT-DEF.
14275 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
14276 no font for the target.
14277 (Finternal_char_font): Adjust for the change of RFONT-DEF.
14278
142792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14280
14281 * font.c (font_load_for_face): Handle the case that the font in
14282 face->lface is a string.
14283
142842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14285
14286 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
14287
142882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14289
14290 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
14291 Fix previous change. If the frame is not on a window system,
14292 signal an error.
14293
142942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14295
14296 * coding.c (decode_coding_object, encode_coding_object): Adjust
14297 marker positions after conversion.
14298
14299 * lisp.h (struct Lisp_Marker): New member need_adjustment.
14300
143012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14302
14303 * font.c (font_find_for_lface): Fix the handling of the return
14304 value of font_has_char.
14305 (Ffont_shape_text): Fix previous change.
14306
14307 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
14308 (fontset_ref_and_range): Delete it.
14309 (fontset_find_font): Call char_table_ref_and_range instead of
14310 FONTSET_REF_AND_RANGE.
14311 (make_fontset): Don't setup font groups of Latin here.
14312 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
14313 (new_fontset_from_font): Make the specified font the default for
14314 all Latin characters.
14315
143162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14317
14318 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
14319 is on a window system before accessing the fontset of the frame.
14320
143212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14322
14323 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
14324
14325 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
14326 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
14327
14328 * font.c (Ffont_shape_text): If the font driver doesn't have a
14329 shaper function, make zero-width glyphs to have at least one-pixel
14330 width. Fix setting of `to' field of glyphs.
14331
143322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14333
14334 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
14335 glyphs.
14336
14337 * font.h (struct font_driver): Improve docstring of member `shape'.
14338
143392008-02-01 Kenichi Handa <handa@m17n.org>
14340
14341 * composite.c (syms_of_composite): Fix docstring of
14342 auto-composition-function.
14343
14344 * font.h (LGLYPH_SIZE): New macro.
14345
14346 * font.c (Ffont_fill_gstring): Stop filling when a character not
14347 supported by the font is found.
14348 (Ffont_shape_text): When a shape callback function returns nil,
14349 try at most two more times with larger gstring.
14350 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
14351
14352 * xdisp.c (handle_auto_composed_prop): Change the argument to
14353 auto-composition-function.
14354
14355 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
14356 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
14357 Lispy glyph and store it in the lgstring.
14358
14359 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
14360
14361 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
14362
143632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14364
14365 * font.c (Ffont_shape_text): Avoid unnecessary composition.
14366
14367 * fontset.c (Vfont_encoding_charset_alist): New variable.
14368 (syms_of_fontset): DEFVAR it.
14369 (reorder_font_vector, fontset_find_font): Optimize for the case of
14370 no need of reordering.
14371 (face_for_char): Map the charset property by
14372 Vfont_encoding_charset_alist.
14373
143742008-02-01 Jason Rumney <jasonr@gnu.org>
14375
14376 * w32font.c (logfonts_match): Don't check adstyle here.
14377 (font_matches_spec): Check here against physical font instead.
14378 (add_font_entity_to_list): Avoid some substitutions.
14379
14380 * font.c (font_parse_fcname): Default weight and slant to normal.
14381 (font_score): Prefer normal fonts if weight or slant unspecified.
14382 (font_score) [WINDOWSNT]: Scale weight difference down to closer
14383 match freetype scores.
14384
143852008-02-01 Jason Rumney <jasonr@gnu.org>
14386
14387 * w32font.c (w32font_text_extents): Don't use the frame stored in the
14388 font, as it may have been deleted.
14389 (w32_enumfont_pattern_entity): Map generic family to adstyle using
14390 most common hyphenless variation.
14391 (logfonts_match): Check generic family.
14392 (font_matches_spec): Don't check generic family here.
14393 (fill_in_logfont): Set generic family based on adstyle.
14394
14395 * w32font.h (w32font_get_cache): Update declaration.
14396
143972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14398
14399 * ftfont.c (ftfont_get_cache): Adjust the argument type.
14400
14401 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
14402 If none of the new drivers are available, call font_update_drivers
14403 with the old drivers.
14404
14405 * w32font.c (w32font_get_cache): Adjust the argument type.
14406
14407 * xfont.c (xfont_get_cache): Adjust the argument type.
14408
14409 * font.h (struct font_driver): Change argument type of get_cache.
14410
14411 * xftfont.c (xftfont_start_for_frame): Delete prototype.
14412
14413 * font.c (Ffont_get): Fix arguments to Fassoc.
14414 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
14415 (font_clear_cache): New function.
14416 (font_list_entities, font_matching_entity): Use font_get_cache.
14417 (font_update_drivers): Call font_clear_cache when finishing a driver.
14418
14419 * fontset.c (fontset_find_font): Fix previous change.
14420
144212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14422
14423 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
14424 dpyinfo->font_table.
14425 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
14426 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
14427
14428 * font.c (font_at): Handle the case that the arg C is negative.
14429 Handle the unibyte case.
14430 (Ffont_at): Call font_at with the arg C -1.
14431
14432 * xdisp.c (handle_auto_composed_prop): Don't get a character at
14433 the position here, and call font_at with the arg C -1.
14434 Don't check the range of the existing composition at the point.
14435
144362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14437
14438 * fontset.c (fontset_add): New args charset_id and family.
14439 Change caller.
14440 (load_font_get_repertory, fontset_find_font): Assume that
14441 font_spec is always a font-spec object.
14442 (Fset_fontset_font): Always store a font-spec object in a fontset.
14443
14444 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
14445 instead of get_property_and_range.
14446
144472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14448
14449 * xftfont.c (struct xftfont_info): Delete the member ft_face.
14450 (xftfont_open): Don't keep locking face.
14451 (xftfont_close): Don't unlock face.
14452 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
14453
14454 * fontset.c (fontset_find_font): Don't prefer a font of
14455 supplementary charset.
14456
144572008-02-01 Kenichi Handa <handa@m17n.org>
14458
14459 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
14460 script, langsys_tag to langsys, new member script.
14461 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 14462 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
14463 listing to the script specified in that property. Fix arg to
14464 OTF_check_features.
14465
144662008-02-01 Jason Rumney <jasonr@gnu.org>
14467
14468 * w32font.h: New file.
14469
14470 * w32font.c: Include it.
14471 (struct w32font_info): Add owning_frame field. Move to w32font.h.
14472 (w32font_open): Set owning_frame.
14473 (w32font_text_extents): Use owning_frame.
14474 (struct font_callback_data): Add opentype_only field.
14475 (add_font_entity_to_list): Use it to filter fonts.
14476 Don't check against full name.
14477 (w32font_list_internal): New function.
14478 (w32font_list): Use it.
14479 (w32font_match_internal): New function.
14480 (w32font_match): Use it.
14481 (w32font_open_internal): New function.
14482 (w32font_open): Use it.
14483 (w32font_get_cache, w32font_close, w32font_has_char)
14484 (w32font_encode_char, w32font_text_extents, w32font_draw):
14485 Make non-static.
14486
14487 * makefile.w32-in (w32font.o): Depend on w32font.h.
14488
144892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14490
14491 * charset.c (Fdefine_charset_internal): Record a supplementary
14492 charset at the tail of Vcharset_order_list.
14493
14494 * font.c (Ffont_shape_text): Fix the return value.
14495
14496 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
14497
14498 * xdisp.c (handle_auto_composed_prop): Fix previous change.
14499
145002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14501
14502 * ftfont.c (struct OpenTypeSpec): New struct.
14503 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
14504 (ftfont_get_open_type_spec): New function.
14505 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
14506
14507 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
14508
145092008-02-01 Jason Rumney <jasonr@gnu.org>
14510
14511 * w32font.c (add_font_entity_to_list): Compare only the beginning
14512 of full name.
14513
145142008-02-01 Kenichi Handa <handa@m17n.org>
14515
14516 * xdisp.c (handle_auto_composed_prop): Simplify the code.
14517 Never return HANDLED_RECOMPUTE_PROPS.
14518
145192008-02-01 Kenichi Handa <handa@m17n.org>
14520
14521 * font.c (font_gstring_produce): Delete it.
14522
14523 * composite.h (COMPOSITION_METHOD):
14524 Handle COMPOSITION_WITH_GLYPH_STRING.
14525
145262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14527
14528 * xfont.c (Qx): Delete.
14529 (syms_of_xfont): Don't initialize Qx.
14530
14531 * composite.h (enum composition_method):
14532 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
14533
145342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14535
14536 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
14537 (choose_face_font): Accept new form of font-spec.
14538
14539 * frame.h (font_driver_list): Declare it unconditionally.
14540 (struct frame): Define members font_driver_list and font_data_list
14541 unconditionally.
14542
14543 * fontset.c: Include "font.h" unconditionally.
14544 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
14545 (Fset_fontset_font): Accept a font-spec object.
14546
14547 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
14548 PIXEL_SIZE part a wild card.
14549
14550 * dispextern.h (struct glyph_string): Define members clip and
14551 num_clips unconditionally.
14552 (struct face): Define members font_info and extra unconditionally.
14553
14554 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
14555 ftfont_info only when HAVE_LIBOTF is defined.
14556
145572008-02-01 Andreas Schwab <schwab@suse.de>
14558
14559 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
14560 and end.
14561
145622008-02-01 Jason Rumney <jasonr@gnu.org>
14563
14564 * w32font.c (w32font_driver): Add new fields.
14565
145662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14567
14568 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
14569 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
14570 (LIBES): Add @M17N_FLT_CFLAGS@.
14571
14572 * composite.c (compose_text): Don't treat the new style
14573 composition specially.
14574
14575 * emacs.c (main): Call syms_of_font unconditionally.
14576
14577 * font.h (FONT_ENTITY_NOT_LOADABLE)
14578 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
14579 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
14580 (struct font_driver): New member shape.
14581 (font_registry_charsets): Extern it.
14582 (font_find_for_lface, font_prepare_composition): Adjust prototype.
14583 (font_otf_capability, font_drive_otf): Delete their externs.
14584
14585 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
14586 (font_charset_alist, font_registry_charsets): Move from xfont.c
14587 and rename.
14588 (font_prop_validate_otf): New function.
14589 (font_property_table): Register it for QCotf.
14590 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
14591 (font_drive_otf): Delete.
14592 (font_prepare_composition): New arg F. Adjust for the change of
14593 lispy gstring.
14594 (font_find_for_lface): New arg C.
14595 (font_load_for_face): Adjust for the change of font_find_for_lface.
14596 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
14597 lispy gstring.
14598 (Ffont_shape_text): New function.
14599 (Fopen_font): If the font size is not given, use 12-pixel.
14600 (Ffont_at): New arg STRING.
c0943d3d 14601 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
14602 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
14603 conditionally.
14604
14605 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
14606 fonts of the same font-spec. Change the format of RFONT-DEF.
14607 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
14608 Adjust for the change of RFONT-DEF.
14609 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
14610
14611 * ftfont.h: New file.
14612
14613 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
14614 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14615 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14616 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
14617 font_otf_capability and font_drive_otf, set ftfont_shape.
14618 (ftfont_list): Adjust for the change of :otf property value.
14619 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
14620 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
14621 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
14622 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14623 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
14624 (otf_gstring, gstring, m17n_flt_initialized): New variables.
14625
14626 * w32term.c (x_draw_composite_glyph_string_foreground):
14627 Adjust for the change of lispy gstring.
14628
14629 * xdisp.c (handle_composition_prop): Adjust for the change of
14630 lispy gstring. Call a function for auto-composition with the
14631 third arg it->window.
14632 (fill_composite_glyph_string): Adjust for the change of lispy string.
14633 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
14634
14635 * xfaces.c (set_font_frame_param): Adjust for the change of
14636 font_find_for_lface.
14637
14638 * xfont.c (x_font_charset_alist): Move to font.c and rename.
14639 (xfont_registry_charsets): Likewise. Change caller.
14640 (syms_of_xfont): Don't handle x_font_charset_alist.
14641
14642 * xftfont.c: Include "ftfont.h".
14643 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14644 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14645 (xftfont_close) [HAVE_LIBOTF]: Close otf.
14646 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14647 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
14648 Set xftfont_driver.shape to xftfont_shape.
14649
14650 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14651 the change of lispy gstring.
14652
146532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14654
14655 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
14656
146572008-02-01 Jason Rumney <jasonr@gnu.org>
14658
14659 * w32font.c (w32font_draw): Fill background manually.
14660
146612008-02-01 Jason Rumney <jasonr@gnu.org>
14662
14663 * font.c (Qfontp): Remove unused symbol.
14664 (QCantialias): New symbol.
14665 (syms_of_font): Define it.
14666 (font_property_table): Set a validator for QCantialias.
14667
14668 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14669 Define if not already.
14670 (QCfamily): Share with xfaces.c.
14671 (Qstandard, Qsubpixel, Qnatural): New symbols.
14672 (syms_of_w32font): Define them. Don't define QCfamily here.
14673 (w32_antialias_type, lispy_antialias_type): New functions.
14674 (w32_enumfont_pattern_entity): New arg requested_font.
14675 Set antialias parameter if non-default was requested.
14676 (fill_in_logfont): Fill in lfQuality if :antialias specified.
14677
146782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14679
14680 * lread.c (read1): Undo the previous change.
14681
146822008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
14683
14684 * frame.c (Fdelete_frame): Call font_update_drivers only when
14685 USE_FONT_BACKEND is defined.
14686
146872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14688
14689 * font.h (struct font_bitmap): New member bits_per_pixel.
14690 (struct font_driver): New members start_for_frame and end_for_frame.
14691 (struct font_data_list): New struct.
14692 (font_put_frame_data, font_get_frame_data): Extern them.
14693
14694 * frame.h (struct frame): New member font_data_list.
14695
14696 * font.c (font_update_drivers): Call driver->start_for_frame and
14697 driver->end_for_frame at proper timings.
14698 (font_put_frame_data, font_get_frame_data): New functions.
14699 (Ffont_spec): Add usage in the docstring.
14700
14701 * frame.c (make_frame): Initialize f->font_data_list to NULL.
14702 (Fdelete_frame): Call font_update_drivers.
14703
14704 * xftfont.c (struct xftface_info): Delete the member xft_draw.
14705 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14706 (xftfont_get_xft_draw): New function.
14707 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
14708 (xftfont_end_for_frame): New function.
14709 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14710
14711 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14712 Change argument. Cache GCs in the per-frame data.
14713 (struct ftxfont_frame_data): New struct.
14714 (ftxfont_draw_bitmap): New arg gc_fore and flush.
14715 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14716 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
14717 (ftxfont_end_for_frame): New function.
14718 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14719
14720 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14721
147222008-02-01 Kenichi Handa <handa@m17n.org>
14723
14724 * xselect.c (Vselection_coding_system)
14725 (Vnext_selection_coding_system): Delete them.
14726 (syms_of_xselect): Don't declare selection-coding-system and
14727 next-selection-coding-system. They are declared in select.el.
14728
147292008-02-01 Jason Rumney <jasonr@gnu.org>
14730
14731 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14732
14733 * w32fns.c: Include imm.h.
14734 (get_composition_string_fn, get_ime_context_fn): New optional
14735 system functions.
14736 (globals_of_w32fns): Load them from imm32.dll.
14737 (ignore_ime_char): New flag.
14738 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14739 WM_IME_ENDCOMPOSITION messages.
14740
14741 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14742 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14743
147442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14745
14746 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14747 (READCHAR_REPORT_MULTIBYTE): New macro.
14748 (readchar): New 2nd arg MULTIBYTE.
14749 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14750 Make symbol's name multibyte according to the multibyteness of the
14751 source.
14752
147532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14754
14755 * xfaces.c (face_for_overlay_string): Call lookup_face with
14756 correct arguments (fix of synching with the trunk).
14757
147582008-02-01 Kenichi Handa <handa@m17n.org>
14759
14760 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14761 (font_prop_validate_non_neg, font_prop_validate_spacing):
14762 Delete argument prop_index.
14763 (font_property_table): Change arguments to validater. Change Callers.
14764 (font_lispy_object): Delete.
14765 (font_at): Use font_find_object instead fo font_lispy_object.
14766
147672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14768
14769 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14770 and file names.
14771
147722008-02-01 Jason Rumney <jasonr@gnu.org>
14773
14774 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14775 (font_matches_spec): Remove debug output.
14776 (add_font_entity_to_list): Avoid using substituted fonts.
14777
147782008-02-01 Jason Rumney <jasonr@gnu.org>
14779
14780 * doc.c (Fsnarf_documentation):
14781 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14782
147832008-02-01 Miles Bader <miles@gnu.org>
14784
14785 * dispextern.h (struct glyph_row): Only define "clip" field if
14786 HAVE_WINDOW_SYSTEM is defined.
14787
147882008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14789
14790 Fix up multi-tty merge.
14791
14792 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14793 and indentation.
14794
14795 * xfaces.c (free_realized_face, clear_face_gcs):
14796 Include font_done_for_face in the input_blocked section, just in case.
14797
14798 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14799 (get_char_face_and_encoding): Undo last change and remove the *other*
14800 duplicate definition (i.e. keep the one that's better scoped and that
14801 includes code for the font-backend).
14802
14803 * terminal.c (create_terminal): Default keyboard_coding to
14804 `no-conversion' and terminal_coding to `undecided'.
14805
14806 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14807
14808 * fontset.c (free_realized_fontsets): Check that the table entry does
14809 contain a fontset before trying to compare it to `base'.
14810
14811 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14812 syms_of_charset, and syms_of_coding earlier because init_window_once
14813 now needs Vcoding_system_hash_table to be setup.
14814
14815 * coding.h (default_buffer_file_coding): Remove.
14816
14817 * coding.c (default_buffer_file_coding): Remove.
14818 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14819 than ->symbol, and use the terminal-local coding system.
14820 (syms_of_coding): Don't setup the coding-systems that are not
14821 terminal-local.
14822 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14823
14824 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14825 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14826
14827 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14828 in chartab.c and were re-added here by mistake.
14829 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14830
14831 * doc.c (Fsnarf_documentation):
14832 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14833 src to etc.
14834
14835 * ChangeLog.10: Add mistakenly removed entry.
14836
148372008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14838
14839 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14840
148412008-02-01 Miles Bader <miles@gnu.org>
14842
14843 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14844 Add extra args to FACE_FOR_CHAR.
14845
148462008-02-01 Kenichi Handa <handa@m17n.org>
14847
14848 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14849 in sequence.
14850
14851 * chartab.c (map_sub_char_table, map_char_table): If the range
14852 contains just one character, call the function with that character
14853 even if the depth is not 3.
14854
148552008-02-01 Jason Rumney <jasonr@gnu.org>
14856
14857 * w32font.c (w32font_text_extents): Calculate metrics for the
14858 whole string.
14859
148602008-02-01 Jason Rumney <jasonr@gnu.org>
14861
14862 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14863
148642008-02-01 Jason Rumney <jasonr@gnu.org>
14865
14866 * w32term.c (x_set_glyph_string_clipping): Use
14867 get_glyph_string_clip_rects.
14868 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14869 Adjust for the change of struct glyph_string.
14870
14871 * w32font.c (w32font_draw): Do clipping here.
14872
148732008-02-01 Kenichi Handa <handa@m17n.org>
14874
14875 * xftfont.c (xftfont_draw): Adjust for the change of struct
14876 glyph_string.
14877
14878 * xterm.c (x_set_glyph_string_clipping): Use
14879 get_glyph_string_clip_rects.
14880 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14881 Adjust for the change of struct glyph_string.
14882
14883 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14884 the resulting clip(s}.
14885 (expose_overlaps): Add arg r. Change callers. Set it to
14886 row->clip temporarily.
14887 (expose_window): Redraw rows overlapping the exposed area.
14888
14889 * dispextern.h (struct glyph_row): New member clip.
14890 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14891 clip_height, new member clip, and num_clips.
14892
148932008-02-01 Kenichi Handa <handa@m17n.org>
14894
14895 * data.c (Fchar_or_string_p): Fix docstring.
14896
148972008-02-01 Kenichi Handa <handa@m17n.org>
14898
14899 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14900 create a temporary XftDraw object.
14901
149022008-02-01 Kenichi Handa <handa@m17n.org>
14903
14904 * font.c (Ffontp): Fix docstring.
14905
14906 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14907 strong evidence of ISO-2022.
14908
149092008-02-01 Kenichi Handa <handa@m17n.org>
14910
14911 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14912 SYNTAX_ENTRY_FOLLOW_PARENT.
14913
149142008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14915
14916 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14917 its type.
14918 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14919 Update to the new type of weak_hash_tables and next_weak.
14920
14921 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14922 a plain C pointer to Lisp_Hash_Table.
14923
14924 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14925 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14926 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14927 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14928 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14929 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14930 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14931 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14932 (GC_EQ): Remove since they've been identical to their non-GC_
14933 alter-egos ever since the markbit was eradicated.
14934
14935 * alloc.c:
14936 * buffer.c:
14937 * buffer.h:
14938 * data.c:
14939 * fileio.c:
14940 * filelock.c:
14941 * fns.c:
14942 * frame.h:
14943 * lisp.h:
14944 * macterm.c:
14945 * print.c:
14946 * process.c:
14947 * w32fns.c:
14948 * w32menu.c:
14949 * w32term.c:
14950 * xfns.c:
14951 * xmenu.c:
14952 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14953
149542008-02-01 Kenichi Handa <handa@m17n.org>
14955
14956 * chartab.c (map_sub_char_table): Make it work for the top-level
14957 char-table. Fix handling of parent char-table.
14958 (map_char_table): Adjust for the above change.
14959
149602008-02-01 Jason Rumney <jasonr@gnu.org>
14961
14962 * w32font.c (Qgdi): Rename from Qw32.
14963
149642008-02-01 Jason Rumney <jasonr@gnu.org>
14965
14966 * w32bdf.c (get_quoted_string): Make function static.
14967
149682008-02-01 Kenichi Handa <handa@m17n.org>
14969
14970 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14971 bigger ascent and descent than those of the font, use them as
14972 font's ascent and descent.
14973
149742008-02-01 Kenichi Handa <handa@m17n.org>
14975
14976 * Makefile.in (${lispsource}international/charprop.el): Move this
14977 target within "#ifdef HAVE_UNIDATA" and "#endif".
14978
149792008-02-01 Kenichi Handa <handa@m17n.org>
14980
14981 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14982 (shortlisp): Add ../lisp/language/tai-viet.el.
14983
149842008-02-01 Ulrich Mueller <ulm@gentoo.org>
14985
14986 * Makefile.in (${lispsource}international/charprop.el): Depend on
14987 temacs${EXEEXT}.
14988
149892008-02-01 Jason Rumney <jasonr@gnu.org>
14990
14991 * w32font.c (w32font_close): Delete the GDI font object.
14992
14993 * w32menu.c: Include character.h.
14994
14995 * w32proc.c: Likewise.
14996
14997 * w32select.c: Likewise.
14998
14999 * makefile.w32-in (w32proc.o): Depend on character.h.
15000
150012008-02-01 Jason Rumney <jasonr@gnu.org>
15002
15003 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
15004
15005 * w32menu.c (syms_of_w32menu): Likewise.
15006
15007 * w32proc.c (syms_of_ntproc): Likewise.
15008
15009 * w32select.c (syms_of_w32select): Likewise.
15010
15011 * w32term.c (syms_of_w32term): Likewise.
15012
150132008-02-01 Jason Rumney <jasonr@gnu.org>
15014
15015 * w32font.c (w32font_draw): Delete brush after using it.
15016
150172008-02-01 Jason Rumney <jasonr@gnu.org>
15018
15019 * w32font.c (w32font_open): Don't set font_idx.
15020 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
15021 to font settings.
15022 (w32font_draw): Fill background explicitly.
15023
150242008-02-01 Jason Rumney <jasonr@gnu.org>
15025
15026 * w32term.c (w32_initialize): Don't call w32font_initialize.
15027
15028 * w32font.c (w32font_info): Remove subranges.
15029 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
15030 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
15031 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
15032 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
15033 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
15034 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
15035 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
15036 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
15037 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
15038 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
15039 New symbols.
15040 (font_callback_data): New struct.
15041 (w32font_list, w32font_match): Use it.
15042 (w32font_open): Don't populate subranges.
15043 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
15044 (w32font_encode_char): Always return unicode code-point as-is.
15045 (w32font_text_extents): Supply a transformation matrix to
15046 GetGlyphOutline. Never look up by glyph index. Avoid looping
15047 twice. Use unicode version of GetTexExtentPoint32 instead of
15048 glyph index version.
15049 (set_fonts_frame): Remove.
15050 (w32_enumfont_pattern_entity): Add frame parameter, use it to
15051 set frame parameter. Use backward compatible fake foundries.
15052 Save generic family in extra slot under QCfamily. Make width slot
15053 constant. Save QCspacing value. Save list of scripts instead of
15054 binary subranges.
15055 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
15056 (add_font_entity_to_list): Use font_callback_data struct. Filter
15057 unwanted fonts.
15058 (add_one_font_entity_to_list): Use font_callback_data struct.
15059 (w32_registry): Default to iso10646_1.
15060 (fill_in_logfont): Use dpi from extra slot. Don't bother with
15061 string font registries. Don't fill in font name if it is a generic
15062 family name, fill family instead. Use spacing, family and script
15063 extra info to fill pitch, family and charset fields.
15064 (list_all_matching_fonts): Use font_callback_data struct.
15065 (unicode_range_for_char): Remove.
15066 (font_supported_scripts): New function.
15067 (w32font_initialize): Remove.
15068 (syms_of_w32font): Update which symbols are defined.
15069
150702008-02-01 Jason Rumney <jasonr@gnu.org>
15071
15072 * font.c (font_pixel_size): Reverse assq_no_quit args.
15073
15074 * w32term.h (FONT_WIDTH): Report max width, not average.
15075 (FONT_MAX_WIDTH): Remove.
15076 (FONT_AVG_WIDTH): New macro.
15077
15078 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
15079 redefinition of FONT_WIDTH.
15080
15081 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
15082 (w32_cache_char_metrics): Use FONT_WIDTH.
15083
15084 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
15085
150862008-02-01 Jason Rumney <jasonr@gnu.org>
15087
15088 * w32font.c (w32font_open): Make lfHeight negative.
15089
15090 * w32fns.c (x_default_font_parameter): Use new style font name.
15091 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
15092
150932008-02-01 Jason Rumney <jasonr@gnu.org>
15094
15095 * w32font.c (QCsubranges): New symbol.
15096 (w32font_open, w32font_has_char): Get subranges from subproperty
15097 of extra.
15098 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
15099 (syms_of_w32font): Define :subranges symbol.
15100
15101 * font.c (font_put_extra): Expose externally.
15102
15103 * font.h (font_put_extra): Move declaration from font.c.
15104
15105 * font.c (Ffont_get): Use font driver to determine otf capability.
15106 (adjust_anchor): Check if driver defines anchor_point before using.
15107
15108 * w32font.c (w32font_open): Handle size, height and pixel_size better.
15109 (w32font_draw): Use options.
15110 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
15111 Fix detection of truetype fonts.
15112 (registry_to_w32_charset): Handle charsets other than iso8859-1
15113 expressed as lisp symbols.
15114 (w32_registry): Express charset as lisp symbol.
15115 (fill_in_logfont): Reverse pixel and point height logic.
15116 Don't set width here. Set quality to default.
15117
15118 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
15119 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
15120
15121 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15122 Remove redundant loop and allocation.
15123
15124 * makefile.w32-in (font.o, w32font.o): New objects.
15125 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
15126 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
15127
15128 * xdisp.c (fill_composite_glyph_string): Make the first arg to
15129 STORE_XCHARB a valid l-value.
15130
15131 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
15132 calculations for non-Truetype fonts.
15133 (x_draw_glyph_string): Sync with xterm.c.
15134 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15135 Remove redundant code.
15136 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
15137
15138 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
15139 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
15140
15141 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
15142 (x_to_w32_charset, w32_to_x_charset): Expose externally.
15143
15144 * w32font.c: New file for w32 font backend.
15145
151462008-02-01 Kenichi Handa <handa@m17n.org>
15147
15148 * term.c: Don't include "buffer.h" twice.
15149
151502008-02-01 Kenichi Handa <handa@m17n.org>
15151
15152 * character.c (Funibyte_string): New function.
15153 (syms_of_character): Defsubr it.
15154
151552008-02-01 Jason Rumney <jasonr@gnu.org>
15156
15157 * w32term.c [USE_FONT_BACKEND]:
15158 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
15159 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
15160 (x_draw_glyph_string, x_draw_glyph_string_foreground)
15161 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
15162 (x_free_frame_resources): Sync with xterm.c.
15163
151642008-02-01 Andreas Schwab <schwab@suse.de>
15165
15166 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
15167 char-table size.
15168
151692008-02-01 Kenichi Handa <handa@m17n.org>
15170
15171 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
15172
151732008-02-01 Kenichi Handa <handa@m17n.org>
15174
15175 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
15176 font_otf_gpos, add font_drive_otf.
15177
15178 * fontset.c (fontset_find_font): Pay attention to font size
15179 specified for a font.
15180 (reorder_font_vector): Check contents of font_def.
15181
15182 * font.c (struct otf_list): Delete it.
15183 (otf_list): Make it a lisp variable.
15184 (otf_open): Use lispy otf_list.
15185 (generate_otf_features): Rename from parse_gsub_gpos_spec.
15186 (check_otf_features): New function.
15187 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15188 New functions.
15189 (font_drive_otf): New function merging font_otf_gsub and
15190 font_otf_gpos.
15191 (font_open_for_lface): New arg spec. Change argument order.
15192 (font_load_for_face): Adjust for the change of font_open_for_lface.
15193 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
15194 Ffont_otf_gpos.
15195 (syms_of_font): Staticpro otf_list. Delete defsubr of
15196 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
15197
15198 * xfaces.c (set_font_frame_param): Adjust for the change of
15199 font_open_for_lface.
15200
15201 * font.h (font_open_for_lface): Adjust prototype.
15202 (struct font_driver): Delete members otf_gsub and otf_gpos, add
15203 member otf_drive.
15204 (font_otf_gsub, font_otf_gpos): Delete externs.
15205 (font_drive_otf): Extern it.
15206
152072008-02-01 Kenichi Handa <handa@m17n.org>
15208
15209 * font.c (font_at): If the window W is not on a window system,
15210 return Qnil.
15211
15212 * coding.c (produce_chars, encode_coding): Don't call
15213 insert_from_gap if no characters to produce.
15214
152152008-02-01 Kenichi Handa <handa@m17n.org>
15216
15217 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
15218 Fclear_face_cache.
15219
15220 * xfaces.c (face_for_font): Check also face->font==font->font.font.
15221
152222008-02-01 Miles Bader <miles@gnu.org>
15223
15224 * emacs.c (main): Change default value of `enable_font_backend' to 1.
15225 Parse "--disable-font-backend" option.
15226 (standard_args): Add "--disable-font-backend" option.
15227
152282008-02-01 Kenichi Handa <handa@m17n.org>
15229
15230 * fontset.c (fontset_find_font): New function.
15231 (fontset_font): Use fontset_find_font.
15232 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
15233 Register the specified font for all Latin characters.
15234 (new_fontset_from_font): Register the specified font for all Latin
15235 characters.
15236 (dump_fontset): For a realized fontset, include the base fontset
15237 name in the returned vector.
15238
152392008-02-01 Kenichi Handa <handa@m17n.org>
15240
15241 * character.h (CHAR_STRING): Cast C to unsigned on calling
15242 char_string.
15243
15244 * character.c (char_string): Type of arg C changed to unsigned.
15245 Signal an error if C is an invalid character code.
15246
15247 * editfns.c (general_insert_function, Fchar_to_string):
15248 Use CHARACTERP, not INTEGERP.
15249
152502008-02-01 Kenichi Handa <handa@m17n.org>
15251
15252 * character.h (MIN_MULTIBYTE_LEADING_CODE)
15253 (MAX_MULTIBYTE_LEADING_CODE): New macros.
15254
15255 * regex.c (analyse_first): Fix for multibyte characters in "case
15256 charset:" and "case categoryspec:".
15257
152582008-02-01 Andreas Schwab <schwab@suse.de>
15259
15260 * Makefile.in (LIBES): Move standard libraries to the end.
15261
152622008-02-01 Kenichi Handa <handa@m17n.org>
15263
15264 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
15265 nonzero, don't shrink the buffer nextb.
15266
15267 * buffer.h (struct buffer_text): New member inhibit_shrinking.
15268
15269 * coding.c (coding_alloc_by_making_gap): New arg offset.
15270 (alloc_destination): Call coding_alloc_by_making_gap with the arg
15271 offset.
15272 (decode_coding_iso_2022): Update coding->safe_charsets.
15273 (decode_coding_gap): Temporarily set
15274 current_buffer->text->inhibit_shrinking to 1.
15275
152762008-02-01 Kenichi Handa <handa@m17n.org>
15277
15278 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
15279 indexing into elements of s->cmp and s->char2b.
15280
152812008-02-01 Juanma Barranquero <lekktu@gmail.com>
15282
15283 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
15284
152852008-02-01 Kenichi Handa <handa@m17n.org>
15286
15287 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
15288 target_multibyte instead of multibyte.
15289 (re_match_2_internal): Call bcmp_translate with target_multibyte.
15290 (bcmp_translate): Change the argument name from multibyte to
15291 target_multibyte.
15292
152932008-02-01 Kenichi Handa <handa@m17n.org>
15294
15295 These changes are to compile a regexp into a pattern that can be
15296 used both for multibyte and unibyte targets.
15297
15298 * Makefile.in (search.o): Depend on charset.h.
15299
15300 * character.c (multibyte_char_to_unibyte_safe): New function.
15301
15302 * search.c: Include "charset.h".
15303 (compile_pattern_1): Delete argument multibyte. Don't set
15304 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
15305 (compile_pattern): Don't compare cp->buf.target_multibyte.
15306 Compare cp->buf.charset_unibyte.
15307 (compile_pattern): Set cp->buf.target_multibyte.
15308
15309 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
15310
15311 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
15312
15313 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
15314 multibyte. Change callers.
15315 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
15316 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
15317 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
15318 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
15319 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
15320 (regex_compile): Make the compiled pattern usable both for
15321 multibyte and unibyte targets.
15322 (analyse_first): Make the fastmap usable both for multibyte and
15323 unibyte targets.
15324 (TRANSLATE_VIA_MULTIBYTE): Delete.
15325 (re_match_2_internal): Pay attention to the case that the
15326 multibyteness of bufp and target may be different.
15327
153282008-02-01 Kenichi Handa <handa@m17n.org>
15329
15330 * xdisp.c (x_produce_glyphs): When a font is not found, make the
15331 empty box occupy at least one column width.
15332
153332008-02-01 Miles Bader <miles@gnu.org>
15334
15335 * Makefile.in: Remove redundant HAVE_XFT clause.
15336
153372008-02-01 Kenichi Handa <handa@m17n.org>
15338
15339 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
15340
153412008-02-01 Kenichi Handa <handa@m17n.org>
15342
15343 * fontset.c (Finternal_char_font): Fix for the case of POSITION
15344 being nil.
15345
153462008-02-01 Kenichi Handa <handa@m17n.org>
15347
15348 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
15349
153502008-02-01 Kenichi Handa <handa@m17n.org>
15351
15352 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
15353
153542008-02-01 Kenichi Handa <handa@m17n.org>
15355
15356 * search.c (simple_search): Fix previous change.
15357
153582008-02-01 Kenichi Handa <handa@m17n.org>
15359
15360 * xftfont.c (ftfont_font_format): Extern declaration.
15361
15362 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
15363
15364 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
15365 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
15366
15367 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
15368 (ftfont_font_format): Fix previous change.
15369
15370 * font.h (Ffont_xlfd_name): EXFUN it.
15371
15372 * font.c (font_parse_xlfd): Fix the array size of `f'.
15373 (register_font_driver): Use EQ to compare driver->type.
15374
15375 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
15376 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
15377 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
15378
153792008-02-01 Kenichi Handa <handa@m17n.org>
15380
15381 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
15382 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
15383
153842008-02-01 Kenichi Handa <handa@m17n.org>
15385
15386 * xfont.c (xfont_open): Set font->format.
15387
15388 * xftfont.c (xftfont_open): Set font->format.
15389
15390 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
15391 (ftfont_list): Include FC_FONTFORMAT in FcObject.
15392 (ftfont_open): Set font->format.
15393 (ftfont_font_format): New function.
15394
15395 * font.h (struct font): New member format.
15396
15397 * font.c (Qopentype): New variable.
15398 (syms_of_font): Defsym it.
15399 (Fquery_font): Change the format of the last element of the return
15400 value.
15401
154022008-02-01 Kenichi Handa <handa@m17n.org>
15403
15404 * xfns.c (xic_create_xfontset): Try the default fontset name as a
15405 last resort.
15406
154072008-02-01 Kenichi Handa <handa@m17n.org>
15408
15409 * coding.c (detect_coding_charset): Fix detection of multi-byte
15410 charset.
15411
154122008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
15413
15414 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
15415
154162008-02-01 Kenichi Handa <handa@m17n.org>
15417
15418 * xdisp.c (get_next_display_element): Set it->face_id for the
15419 first component of a composition.
15420 (x_produce_glyphs): Check if the font is changed or not for composition.
15421
154222008-02-01 Kenichi Handa <handa@m17n.org>
15423
15424 * fontset.c (Qlatin): New variable.
15425 (syms_of_fontset): Define it as a lisp symbol.
15426 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
15427
154282008-02-01 Kenichi Handa <handa@m17n.org>
15429
15430 * font.c (font_unparse_fcname): Pay attention to the case that
15431 some of font property is a null string.
15432
154332008-02-01 Kenichi Handa <handa@m17n.org>
15434
15435 * term.c: Include "composite.h".
15436 (encode_terminal_code): Output all components of composition.
15437 Check the size of encode_terminal_src.
15438 (produce_glyphs): For composition, call produce_composite_glyph.
15439 (append_composite_glyph, produce_composite_glyph): New functions.
15440
15441 * xdisp.c (x_produce_glyphs): In handling composition, if a font
15442 is not found, get font_info from the current ascii face.
15443
154442008-02-01 Kenichi Handa <handa@m17n.org>
15445
15446 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
15447 buffer-file-name to Qnil before calling insert_from_buffer.
15448
15449 * font.c (font_unparse_fcname): Pay attention to the case that
15450 foundry is a null string.
15451
154522008-02-01 Kenichi Handa <handa@m17n.org>
15453
15454 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
15455
15456 * font.c (Qunicode_sip): New variable.
15457 (syms_of_font): Declare it as a Lisp symbol.
15458
15459 * font.h (Qunicode_sip): Extern it.
15460
154612008-02-01 Kenichi Handa <handa@m17n.org>
15462
15463 * composite.c (get_composition_id): Pay attention to TAB component.
15464
15465 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
15466 TAB. Adjust for the change of s->char2b which always points to
15467 the first element of allocated memory.
15468
15469 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
15470
15471 * xdisp.c (handle_composition_prop): Set it->c to the first
15472 non-TAB component.
15473 (fill_composite_glyph_string): Change argument.
15474 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
15475 (x_produce_glyphs): Fix handling of left/right padding.
15476
154772008-02-01 Kenichi Handa <handa@m17n.org>
15478
15479 * coding.c (detect_coding_system): Fix for handling off
15480 inhibit_iso_escape_detection. Fix for the case that no coding
15481 system is defined for a specific coding category.
15482
154832008-02-01 Kenichi Handa <handa@m17n.org>
15484
15485 * font.c (font_matching_entity): Delete unused local var.
15486
15487 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
15488 opening a font.
15489
15490 * fileio.c (Finsert_file_contents): On recovering a file, assume
15491 Unix-like eol.
15492 (choose_write_coding_system): On auto-saving a file, force
15493 Unix-like eol.
15494
15495 * coding.c (setup_coding_system): Fix setting of
15496 coding->common_flags based on eol_type.
15497 (coding_inherit_eol_type): If PARENT is not nil, be sure to
15498 inherit from it.
15499
155002008-02-01 Kenichi Handa <handa@m17n.org>
15501
15502 * alloc.c (NSTATICS): Increas to 0x600.
15503
155042008-02-01 Kenichi Handa <handa@m17n.org>
15505
15506 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
15507 (ftfont_list): Don't check :name property.
15508 (ftfont_match): New function.
15509 (ftfont_pattern_entity): If the pattern doesn't contain
15510 FC_SPACING, don't assume FC_MONO.
15511
15512 * font.h (struct font_driver): New member `match'.
15513 (font_update_drivers): Adjust prototype.
15514
15515 * font.c (font_parse_fcname, font_parse_name): Don't change :name
15516 property of FONT.
15517 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
15518 them unconditionally.
15519 (font_matching_entity): New function.
15520 (font_open_by_name): Try font_matching_entity if exact match is
15521 not found.
15522 (font_update_drivers): Delete the arg FONT. Return a list of
15523 actually used backends. Don't free faces, font caches here.
15524 Don't store data in frame parameters. Don't call x_set_font.
15525 (Ffont_spec): Store :name property as is.
15526 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
15527 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
15528 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
15529 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
15530 Call font->driver->otf_gsub instead of font_otf_gsub.
15531
15532 * frame.c (x_set_font_backend): Do more works that were done in
15533 font_update_drivers before.
15534
15535 * xfont.c (xfont_match): New function.
15536 (xfont_driver): Set xfont_driver.match to xfont_match.
15537 (xfont_draw): Set font in GC if necessary.
15538
15539 * ftxfont.c (ftxfont_match): New function.
15540 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
15541
15542 * xftfont.c (xftfont_match): New function.
15543 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
15544
155452008-02-01 Kenichi Handa <handa@m17n.org>
15546
15547 * font.h (struct font): New member scalable.
15548 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
15549 (font_otf_gsub): Adjust prototype.
15550
15551 * font.c (font_otf_capability): Fix handling of the default langsys.
15552 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
15553 Check the contents of SPEC.
15554 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
15555 (check_gstring): New function.
15556 (REPLACEMENT_CHARACTER): New macro.
15557 (font_otf_gsub): New arg alternate_subst. Be sure to set all
15558 glyph codes of GSTRING.
15559 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
15560 (font_prepare_composition): Set cmp->glyph_len.
15561 (font_open_entity): Set font->scalable.
15562 (Ffont_get): Handle :otf property.
15563 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
15564 functions.
15565 (Fquery_font): Use font->font.full_name.
15566 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
15567 Sfont_otf_alternates.
15568
15569 * ftfont.c (ftfont_open): Set font->font.full_name and
15570 font->font.name properly. Fix calculation of font->font.height
15571 and font->min_width.
15572
15573 * ftxfont.c (ftxfont_create_gcs): New function.
15574 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
15575 (ftxfont_draw_backgrond): Fix filling region.
15576 (ftxfont_default_fid): New function.
15577 (ftxfont_open): Set xfont->fid to the return value of
15578 ftxfont_default_fid.
15579 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
15580 (ftxfont_done_face): Free only GCs that are created by
15581 ftxfont_create_gcs.
15582 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
15583
15584 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
15585 Clip to src->width, etc (not src->clip_XXX).
15586
15587 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
15588 FontBackend frame parameter.
15589
155902008-02-01 Kenichi Handa <handa@m17n.org>
15591
15592 * font.h (struct font_driver_list): New member `on'.
15593 (Fclear_font_cache): EXFUN it.
15594 (font_update_drivers): Extern it.
15595
15596 * font.c (font_unparse_fcname): Fix typo (swidth->width).
15597 (font_list_entities): Check driver_list->on.
c0943d3d 15598 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
15599 (font_update_drivers): New function.
15600 (Fclear_font_cache): Check driver_list->on.
15601
15602 * frame.h (Qfont_backend): Extern it.
15603 (x_set_font_backend): Extern it.
15604
15605 * frame.c (Qfont_backend): New variable.
15606 (frame_parms): New element for font-backend.
15607 (x_set_font_backend): New function.
15608
15609 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
15610 FontBackend frame parameter.
15611 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
15612 x_set_font_backend.
15613
15614 * xfont.c (xfont_list): Don't try listing by :name property if the
15615 name is not for XLFD.
15616
156172008-02-01 Kenichi Handa <handa@m17n.org>
15618
15619 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
15620 (LGLYPH_SET_TO): New macros.
15621 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
15622 element of G is vector or not.
15623 (font_at): Extern it.
15624
15625 * font.c: Include window.h.
15626 (font_lispy_object): New function.
15627 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
15628 end of valid glyph.
15629 (font_close_object): Fix getting (struct font *).
15630 (font_at): New function.
15631 (Ffont_get): If FONT is a font-object, get entity from it.
15632 (Ffont_make_gstring): Initialize elements of glyphs with nil.
15633 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
15634 range check.
15635 (Ffont_at): New function.
15636 (syms_of_font): Defsubr Sfont_at.
15637
15638 * xdisp.c (it_props): Move the entry for Qauto_composed to just
15639 before the entry for Qcomposition.
15640 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
15641 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
15642 the font in gstring.
15643 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
15644 LGLYPH_FORM (g) to detect the end of valid glyph.
15645 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
15646 we are composing with gstring.
15647
15648 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
15649 Check if adjustment is vector or not.
15650
15651 * Makefile.in (font.o): Make it depends on window.h.
15652
156532008-02-01 Kenichi Handa <handa@m17n.org>
15654
15655 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
15656 adjustment is vector or not.
15657
156582008-02-01 Miles Bader <miles@gnu.org>
15659
15660 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
15661
156622008-02-01 Kenichi Handa <handa@m17n.org>
15663
15664 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15665 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15666 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15667
15668 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15669 (DEVICE_DELTA): Fix typo.
15670 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15671 LGLYPH format.
15672
15673 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15674 the change of LGLYPH format.
15675
156762008-02-01 Kenichi Handa <handa@m17n.org>
15677
15678 * ftfont.c (ftfont_list): Fix typo.
15679 (ftfont_build_basic_charsets): Don't include letters with diacritics.
15680
156812008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15682
15683 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15684
15685 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15686 xftface_info is non-NULL.
15687
156882008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15689
15690 * ftfont.c (ftfont_list): Move misplaced #endif.
15691
156922008-02-01 Kenichi Handa <handa@m17n.org>
15693
15694 * ftfont.c (ftfont_list): Pay attention to the case that
15695 FC_CAPABILITY is not defined.
15696
156972008-02-01 Kenichi Handa <handa@m17n.org>
15698
15699 * xftfont.c (xftfont_open): Set charset related members to -1.
15700
15701 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
15702 QCname.
15703 (ftfont_open): Set charset related members to -1.
15704
15705 * fontset.c (Votf_script_alist): New variable.
15706 (syms_of_fontset): Initialize it.
15707 (fontset_font): Delete unused variable.
15708
15709 * fontset.h (Votf_script_alist): Extern it.
15710
15711 * font.c (font_find_for_lface): Optimize code.
15712
15713 * font.h (font_close_object, font_merge_old_spec): Extern them.
15714
157152008-02-01 Kenichi Handa <handa@m17n.org>
15716
15717 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15718 (syms_of_font): Initialize them.
15719 (font_pixel_size): Allow float value in dpi.
15720 (font_prop_validate_type): Delete.
15721 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15722 Change caller.
15723 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15724 (font_prop_validate_extra): Delete.
15725 (font_prop_validate_spacing): New function.
15726 (font_property_table): Add elements for all known properties.
15727 (get_font_prop_index): Rename from check_font_prop_name. New
15728 argument FROM. Change caller.
15729 (font_prop_validate): Validate all known properties.
15730 (font_put_extra): Delete argument force. Change caller.
15731 (font_expand_wildcards): Make it static. Fix the way of shrinking
15732 the possible range.
15733 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15734 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15735 Change caller.
15736 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15737 (font_parse_fcname): Delete argument merge. Fix parsing of point
15738 size. Don't validate properties values here. Change caller.
15739 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15740 (font_open_by_name): Delete unused variable.
15741 (Ffont_spec): Likewise. Validate property values.
15742 (Ffont_match_p): New function.
15743
15744 * font.h (QCscalable): Extern it.
15745 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15746
15747 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15748
15749 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15750 (xfont_list_pattern): New function.
15751 (xfont_list): Use xfont_list_pattern.
15752
157532008-02-01 Kenichi Handa <handa@m17n.org>
15754
15755 * font.h (Flist_fonts): EXFUN it.
15756
157572008-02-01 Jason Rumney <jasonr@gnu.org>
15758
15759 * w32term.c (w32_initialize): Add back smoothing_type and
15760 smoothing_enabled definitions.
15761
157622008-02-01 Kenichi Handa <handa@m17n.org>
15763
15764 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15765 s->face->font on determining underline position.
15766
157672008-02-01 Kenichi Handa <handa@m17n.org>
15768
15769 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15770 (font_has_char): Accept font-object too.
15771 (font_find_for_lface): Try at first with a size specified in face.
15772
157732008-02-01 Kenichi Handa <handa@m17n.org>
15774
15775 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15776 font_open_by_name.
15777
157782008-02-01 Kenichi Handa <handa@m17n.org>
15779
15780 * font.h (QCspacing, QCdpi): Extern them.
15781 (enum font_spacing): New enum.
15782 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15783
15784 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15785 (QCspacing, QCdpi): New variables.
15786 (syms_of_font): Initialize them.
15787 (font_pixel_size): New function.
15788 (font_put_extra): New function.
15789 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15790 in FONT_EXTRA.
15791 (font_parse_fcname): Handle enumerated values (e.g. bold).
15792 Fix handling font size. Add QCname property that contains only
15793 unknown properties.
15794 (font_score): Change argument. Change caller. Pay attention to
15795 FONT_PIXEL_SIZE_QUANTUM.
15796 (font_sort_entites, font_list_entities, font_find_for_lface)
15797 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15798 (Ffont_spec): Add QCname property that contains only unknown properties.
15799
15800 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15801 include weight in listing pattern, instead check weight of each
15802 listed font. Don't include scalable in pattern. Pay attention to
15803 FONT_PIXEL_SIZE_QUANTUM.
15804
158052008-02-01 Kenichi Handa <handa@m17n.org>
15806
15807 * font.c (font_parse_fcname): Fix parsing of point-size.
15808 (font_unparse_fcname): Produce symbolic names for style properties.
15809 (font_list_entities): Handle float size correctly.
15810 (font_open_by_name): Prefer `normal' property values if the name
15811 doesn't specify them.
15812
15813 * fontset.c (Finternal_char_font): Use font_get_name, not
15814 Ffont_xlfd_name.
15815
15816 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15817 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15818 pattern. Don't force scalable.
15819
15820 * xftfont.c (xftfont_open): For generating a name, start from
15821 96-byte buffer.
15822
158232008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15824
15825 * frame.h (x_new_fontset2): Fix prototype.
15826
158272008-02-01 Kenichi Handa <handa@m17n.org>
15828
15829 * font.h (struct font_driver): Delete member parse_name.
15830 (font_match_p, font_get_spec, font_parse_fcname)
15831 (font_unparse_fcname): Extern them.
15832 (font_get_name): Adjust prototype.
15833
15834 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15835 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15836 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15837 unnecessary checks for weight, slant, and swidth.
15838 (font_parse_fcname): New function.
15839 (font_unparse_fcname): New function.
15840 (font_parse_name): New function.
15841 (font_match_p): New function.
15842 (font_get_name): Change return value to Lisp string.
15843 (font_get_spec): New function.
15844 (Qunspecified, Qignore_defface): Don't extern them.
15845 (font_find_for_lface): Assume that LFACE is fully specified.
15846 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15847 object, use it for FACE.
15848 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15849 driver->parse_name.
15850 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15851
15852 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15853 prototype.
15854
15855 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15856 argument F. Don't call Fnew_fontset. Instead, directly call
15857 make_fontset.
15858
15859 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15860
15861 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15862 of x_new_fontset2.
15863
15864 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15865 (Qsans__serif): New variables.
15866 (ftfont_generic_family_list): New variable.
15867 (syms_of_ftfont): Initialize the above variables.
15868 (ftfont_pattern_entity): Delete argument NAME.
15869 (ftfont_list_generic_family): New function.
15870 (ftfont_parse_name): Delete this function.
15871 (ftfont_list): Try generic family only when FcFontList found no font.
15872 (ftfont_list_family): Fix args to FcObjectSetBuild.
15873
15874 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15875 object in attrs[LFACE_FONT_INDEX].
15876 (set_lface_from_font_name): Cancel all changes for font-backend.
15877 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15878 function.
15879 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15880 font object in QCfont attribute.
15881 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15882 (realize_default_face) [USE_FONT_BACKEND]: Call
15883 set_lface_from_font_and_fontset.
15884
15885 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15886 "fixed", and signal error here if no suitable font was found.
15887
15888 * xfont.c (xfont_parse_name): Delete this function.
15889
15890 * xftfont.c (xftfont_open): Change coding style of error
15891 handling. Generate fontconfig's fontname pattern.
15892
15893 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15894 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15895
15896 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15897 Both args FONTSET and FONT_OBJECT must be existing ones.
15898
158992008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15900
15901 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15902
159032008-02-01 Kenichi Handa <handa@m17n.org>
15904
15905 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15906
15907 * font.h (struct font): Fix typo.
15908
15909 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15910 XLFD_XXX_INDEX.
15911 (enum xlfd_field_mask): New enum.
15912 (intern_font_field): Changed argument. Change caller. If digits
15913 are followed by non-digits, return a symbol.
15914 (font_expand_wildcards): New function.
15915 (font_parse_xlfd): Fix wildcard handling.
15916 (Ffont_spec): If :name is specified, reflect the info in the other
15917 properties.
15918
15919 * ftfont.c (ftfont_pattern_entity): Fix typo.
15920 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15921 locale.
15922
159232008-02-01 Kenichi Handa <handa@m17n.org>
15924
15925 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15926
15927 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15928 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15929 registry doesn't specify encoding part.
15930 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15931 (font_open_by_name): At first try parsing the name.
15932 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15933 as Lisp symbols.
15934
15935 * fontset.c (reorder_font_vector): Pay attention to the case that
15936 the 3rd element of font_def is nil.
15937 (fontset_font): For the default fontset, append one more fontset
15938 elements for a script-based font specification. Don't add script
15939 attribute on finding a font.
15940 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15941 font name.
15942 (fontset_ascii_font): If a font can't be opened, return nil.
15943
15944 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15945 (ftfont_pattern_entity): New function.
15946 (ftfont_get_cache): Assume that freetype_font_cache is already
15947 initialized.
15948 (ftfont_list): Handle the case that a file is specified in font
15949 name. Use ftfont_pattern_entity to generate entities.
15950 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15951 (syms_of_ftfont): Initialize freetype_font_cache.
15952
15953 * xftfont.c (xftfont_open): Make the font name fontconfig's
15954 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15955 (xftfont_close): Free font->font.name if not NULL.
15956
15957 * xfont.c (xfont_list): If script is specified for a font, return
15958 null_vector.
15959 (xfont_list_family): Declare argument type.
15960
15961 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15962 name, set LFACE_FONT (lface) to nil.
15963
15964 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15965 return Qnil.
15966
159672008-02-01 Kenichi Handa <handa@m17n.org>
15968
15969 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15970 (standard_args): Add "-enable-font-backend".
15971
159722008-02-01 Kenichi Handa <handa@m17n.org>
15973
15974 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15975 (struct xftdraw_list, xftdraw_list): Delete them.
15976 (register_xftdraw, check_xftdraw): Delete them.
15977 (xftfont_prepare_face): Don't call register_xftdraw.
15978 (xftfont_done_face): Don't call check_xftdraw.
15979 (xftfont_draw): Get background color only when with_background is
15980 nonzero.
15981
15982 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15983
159842008-02-01 Kenichi Handa <handa@m17n.org>
15985
15986 These changes are for the new font handling codes.
15987
15988 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15989 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15990 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15991 (FONTSRC, FONTOBJ): New variables.
15992 (obj): Add $(FONTOBJ).
15993 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15994 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15995 @LIBOTF_LIBS@.
15996 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15997 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15998
15999 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
16000
16001 * character.h (Vscript_representative_chars): Extern it.
16002
16003 * character.c (Vscript_representative_chars): New variable.
16004 (syms_of_character): Declare it as a Lisp variable.
16005
16006 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
16007 enable_font_backend is nonzero, accept the composition method
16008 COMPOSITION_WITH_GLYPH_STRING.
16009
16010 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
16011 enumeration COMPOSITION_WITH_GLYPH_STRING.
16012
16013 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
16014 members clip_x, clip_y, clip_width, and clip_height.
16015 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
16016
16017 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
16018 --enable-font-backend. Call syms_of_font.
16019
16020 * fns.c (assoc_no_quit): New function.
16021
16022 * fontset.h (FONT_INFO_FROM_FACE): New macro.
16023 (face_for_font, new_fontset_from_font)
16024 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
16025
16026 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
16027 (fontset_font, fontset_ascii, face_for_char)
16028 (make_fontset_for_ascii_face, Ffont_info)
16029 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
16030 is nonzero, use font-backend mechanism.
16031 (find_font_encoding): Make it non-static.
16032 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
16033 New functions.
16034
16035 * frame.h (struct frame): New members resx and resy.
16036 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
16037 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
16038
16039 * frame.c [USE_FONT_BACKEND]: Include "font.h".
16040 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
16041
16042 * lisp.h (assoc_no_quit): Extern it.
16043
16044 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
16045 Through out the file, use FONT_INFO_FROM_FACE instead of
16046 FONT_INFO_FROM_ID, use get_per_char_metric instead of
16047 rif->per_char_metric.
16048 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
16049 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
16050 (get_glyph_face_and_encoding, fill_composite_glyph_string)
16051 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16052 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
16053 nonzero, use font-backend mechanism.
16054 (get_per_char_metric): New function.
16055
16056 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
16057 (set_lface_from_font_name)
16058 (set_font_frame_param, free_realized_face)
16059 (prepare_face_for_display, clear_face_gcs)
16060 (Finternal_set_font_selection_order, realize_x_face)
16061 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
16062 font-backend mechanism.
16063 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
16064 (load_face_font) [USE_FONT_BACKEND]: Abort.
16065 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
16066 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
16067
16068 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
16069 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
16070 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
16071 nonzero, register all available font drivers. Call
16072 x_default_font_parameter for deciding a font.
16073 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
16074
16075 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
16076 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
16077 (x_set_glyph_string_clipping_exactly)
16078 (x_compute_glyph_string_overhangs)
16079 (x_draw_glyph_string_foreground)
16080 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
16081 (x_free_frame_resources) [USE_FONT_BACKEND]: If
16082 enable_font_backend is nonzero, use font-backend mechanism.
16083 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
16084
160852008-02-01 Kenichi Handa <handa@m17n.org>
16086
16087 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
16088 system_eol_type.
16089 (syms_of_coding): Initialize system_eol_type.
16090
16091 * process.c (Fset_process_coding_system): Inherit system's eol
16092 format if necessary.
16093
160942008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16095
16096 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
16097
160982008-02-01 Kenichi Handa <handa@m17n.org>
16099
16100 * coding.c (decode_eol): Pay attention to buffer relocation in
16101 del_range_2.
16102 (decode_coding): Call decode_eol before restoring undo_list.
16103
161042008-02-01 Kenichi Handa <handa@m17n.org>
16105
16106 * charset.c (Fdefine_charset_internal): Fix setting of
16107 emacs_mule_bytes.
16108
161092008-02-01 Kenichi Handa <handa@m17n.org>
16110
16111 * keyboard.c (read_char): Check if C is a character or not before
16112 looking up Vkeyboard_translate_table.
16113
161142008-02-01 Kenichi Handa <handa@m17n.org>
16115
16116 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
16117 condition to terminate the loop.
16118
161192008-02-01 Kenichi Handa <handa@m17n.org>
16120
16121 * coding.c (produce_composition): Compare charbuf[i] instead of
16122 args[i] against 0.
16123 (Fterminal_coding_system): Use EQ to compare Lisp objects.
16124
161252008-02-01 Kenichi Handa <handa@m17n.org>
16126
16127 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
16128 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
16129 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
16130 detect_coding.
16131 (emacs_mule_char): Handle old style (Emacs 20) component character
16132 of a composition.
16133 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
16134 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
16135 composition rule.
16136 (decode_coding_emacs_mule): Handle invalid bytes correctly.
16137
161382008-02-01 Kenichi Handa <handa@m17n.org>
16139
16140 * coding.c (encode_coding_ccl): Allocate destination dynamically
16141 when necessary.
16142
161432008-02-01 Kenichi Handa <handa@m17n.org>
16144
16145 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
16146 the loop. When quitted, show a proper error message.
16147
161482008-02-01 Kenichi Handa <handa@m17n.org>
16149
16150 * xterm.c (x_set_glyph_string_clipping_exactly): Set
16151 src->clip_head and src->clip_tail temporarily instead of src->hl.
16152
16153 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
16154 character sequence.
16155 (Fccl_execute_on_string): Use ASET, not XSET.
16156
161572008-02-01 Kenichi Handa <handa@m17n.org>
16158
16159 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
16160
161612008-02-01 Kenichi Handa <handa@m17n.org>
16162
16163 * coding.c (decode_coding): Fix the condition of terminating the
16164 decoding loop.
16165
161662008-02-01 Kenichi Handa <handa@m17n.org>
16167
16168 * data.c (Faset): On setting a character bigger than 255 in a
16169 unibyte string, signal an error instead of make the string multibyte.
16170
161712008-02-01 Kenichi Handa <handa@m17n.org>
16172
16173 * charset.c (map_charset_chars): Fix for ascii-compatible charset
16174 made by a mapping table.
16175
161762008-02-01 Kenichi Handa <handa@m17n.org>
16177
16178 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
16179 not.
16180 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
16181 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
16182
16183 * xterm.c (x_draw_composite_glyph_string_foreground): Check
16184 s->face is NULL or not.
16185
161862008-02-01 Kenichi Handa <handa@m17n.org>
16187
16188 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
16189 (x_draw_glyph_string): Fix drawing of right_overhang and
16190 left_overhang around/on cursor.
16191
16192 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
16193
161942008-02-01 Kenichi Handa <handa@m17n.org>
16195
16196 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
16197
161982008-02-01 Kenichi Handa <handa@m17n.org>
16199
16200 * coding.c (Fdefine_coding_system_internal)
16201 (Fdefine_coding_system_alias): Avoid a duplicated element in
16202 Vcoding_system_alist.
16203
162042008-02-01 Kenichi Handa <handa@m17n.org>
16205
16206 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
16207
16208 * coding.c (Qcoding_system_define_form): New variable.
16209 (syms_of_coding): Intern and staticpro it.
16210 (Fcoding_system_p): Check Qcoding_system_define_form.
16211 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
16212
16213 * coding.h (CODING_SYSTEM_P): If ID is not available, call
16214 Fcoding_system_p.
16215 (CHECK_CODING_SYSTEM): If ID is not available, call
16216 Fcheck_coding_system.
16217 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
16218 Try also Fcheck_coding_system.
16219
162202008-02-01 Kenichi Handa <handa@m17n.org>
16221
16222 * coding.c (code_conversion_restore): GCPRO arg.
16223
162242008-02-01 Kenichi Handa <handa@m17n.org>
16225
16226 * character.c (lisp_string_width): Check multibyteness of STRING.
16227
162282008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16229
16230 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
16231 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
16232 (decode_mac_font_name): Use decode_coding_c_string instead of
16233 decode_coding.
16234 (x_load_font): Initialize fontp->fontset to -1. Set
16235 fontp->encoding_type.
16236
162372008-02-01 Kenichi Handa <handa@m17n.org>
16238
16239 * search.c (search_buffer): Give up BM search on case-fold-search
16240 if one of a target character has a case-equivalence of different
8307f923 16241 byte length even if that target character is an ASCII.
aac0c6e3
MR
16242 (simple_search): Fix calculation of byte length of matched text.
16243 (boyer_moore): Fix handling of case-equivalent multibyte characters.
16244
162452008-02-01 Kenichi Handa <handa@m17n.org>
16246
16247 * coding.c (decode_coding): Fix handling of invalid bytes.
16248
162492008-02-01 Kenichi Handa <handa@m17n.org>
16250
16251 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
16252 Unicode characters.
16253
162542008-02-01 Kenichi Handa <handa@m17n.org>
16255
16256 * coding.c (encode_coding_object): If a pre-write-conversion
16257 function makes a new buffer, kill it.
16258
162592008-02-01 Kenichi Handa <handa@m17n.org>
16260
16261 * coding.c (QCascii_compatible_p): New variable.
16262 (syms_of_coding): Initialize it.
16263 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
16264 calling string_char.
16265 (record_conversion_result): Add `default:' case.
16266 (coding_charset_list): Delete unused variable `coding_type'.
16267 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
16268 property in the plist of the coding system.
16269 (Fcoding_system_put): Check QCascii_compatible_p.
16270
162712008-02-01 Miles Bader <miles@gnu.org>
16272
16273 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
16274 removed calculation of frame `f', as it's now used.
16275
162762008-02-01 Kenichi Handa <handa@m17n.org>
16277
16278 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
16279 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
16280 (UNIDATA): New variable.
16281 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
16282 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
16283 $(RUN_TEMACS) unconditionally.
16284
162852008-02-01 Kenichi Handa <handa@m17n.org>
16286
16287 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
16288 (admindir): New variable.
16289 ($(lispsource)international/charprop.el): New target.
16290
162912008-02-01 Miles Bader <miles@gnu.org>
16292
16293 * character.c (chars-in-region): Remove obsolete function.
16294 (syms_of_character): Remove its initialization.
16295
162962008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
16297
16298 * w32select.c (validate_coding_system)
16299 (setup_windows_coding_system): New functions.
16300 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
16301 setup_windows_coding_system.
16302 (setup_config, Fw32_get_clipboard_data): Use
16303 validate_coding_system.
16304 (Fx_selection_exists): Move call to setup_config to a place
16305 where signals are allowed.
16306
16307 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
16308 (Fcheck_coding_system): Add declarations.
16309
163102008-02-01 Kenichi Handa <handa@m17n.org>
16311
16312 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
16313
163142008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16315
16316 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
16317 string as the second argument for x_new_fontset.
16318
163192008-02-01 Kenichi Handa <handa@m17n.org>
16320
16321 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
16322 (encode_coding_object): Use safe_call instead of call2.
16323
163242008-02-01 Kenichi Handa <handa@m17n.org>
16325
16326 * fontset.c (Fset_fontset_font): Check family element of a given vector.
16327
16328 * Makefile.in (lisp): Include charprop.el.
16329
163302008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16331
16332 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
16333 Not sure if it's unnecessary.
16334
163352008-02-01 Steven Tamm <steventamm@mac.com>
16336
16337 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
16338 some possibly unnecessary fontset checking code that crashed
16339 when creating a new frame.
16340
163412008-02-01 Kenichi Handa <handa@m17n.org>
16342
16343 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
16344 lookup_face.
16345
16346 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
16347
16348 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
16349
163502008-02-01 Kenichi Handa <handa@m17n.org>
16351
16352 * coding.c: Cancel the change done in HEAD on 2008-02-01.
16353 (coding_charset_list): New function.
16354
16355 * coding.h (coding_charset_list): Extern it.
16356
163572008-02-01 Kenichi Handa <handa@m17n.org>
16358
16359 * fontset.c (Fset_fontset_font): Call find_font_encoding with
16360 concatenation of family and registry.
16361
163622008-02-01 Kenichi Handa <handa@m17n.org>
16363
16364 * character.h (BYTE8_STRING): Fix typo.
16365
16366 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
16367 string to multibyte (sync to HEAD).
16368
16369 * casefiddle.c (casify_region): Handle changes in byte-length
16370 using replace_range_2 (sync to HEAD).
16371
163722008-02-01 Andreas Schwab <schwab@suse.de>
16373
16374 * chartab.c (map_char_table): GCPRO table and arg.
16375
163762008-02-01 Kenichi Handa <handa@m17n.org>
16377
16378 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
16379 already at limit.
16380
163812008-02-01 Kenichi Handa <handa@m17n.org>
16382
16383 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
16384 instead of fast_c_string_match_ignore_case.
16385 (find_font_encoding): Change argument to Lisp_Object. Use
16386 fast_string_match_ignore_case instead of
16387 fast_c_string_match_ignore_case. Change caller.
16388
163892008-02-01 Kenichi Handa <handa@m17n.org>
16390
16391 * xdisp.c (get_next_display_element): In unibyte case, decide to
16392 display in octal form by checking a character by
16393 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
16394
16395 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
16396
16397 * character.c (unibyte_has_multibyte_table): New variable.
16398
16399 * character.h (unibyte_has_multibyte_table): Extern it.
16400 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
16401
164022008-02-01 Kenichi Handa <handa@m17n.org>
16403
16404 * coding.c (encode_coding_iso_2022): Fix handling of charset
16405 annotation.
16406
164072008-02-01 Kenichi Handa <handa@m17n.org>
16408
16409 * coding.c (setup_coding_system): If coding_system is nil, use
16410 Qundecided.
16411 (Fterminal_coding_system): Return nil if terminal coding system is
16412 `undecided'.
16413 (syms_of_coding): Define coding-system `undecided' here. Setup
16414 terminal_coding as `undecided'.
16415
164162008-02-01 Kenichi Handa <handa@m17n.org>
16417
16418 * xdisp.c (message_dolog, set_message_1): Call
16419 unibyte_char_to_multibyte with arg type int.
16420
16421 * lread.c (read1): Fix reading of a char-table.
16422
16423 * print.c (print_object): Include sub char-table in circularities
16424 detection.
16425
164262008-02-01 Kenichi Handa <handa@m17n.org>
16427
16428 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
16429 Append the found sequences in car of ARGS instead of prepending.
16430
164312008-02-01 Kenichi Handa <handa@m17n.org>
16432
16433 * fileio.c (report_file_error): Make a unibyte string from
16434 strerror (errorno).
16435 (Fsubstitute_in_file_name): Fix the arg to
16436 unibyte_char_to_multibyte. It is evaluated twice.
16437
164382008-02-01 Kenichi Handa <handa@m17n.org>
16439
16440 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
16441
164422008-02-01 Kenichi Handa <handa@m17n.org>
16443
16444 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
16445 BOM is not found.
16446 (detect_coding, detect_coding_system): Optimization for ISO-2022
16447 when no 8-bit data is found.
16448
164492008-02-01 Jason Rumney <jasonr@gnu.org>
16450
16451 * w32fns.c (x_to_w32_font): Update to use new coding struct.
16452
164532008-02-01 Kenichi Handa <handa@m17n.org>
16454
16455 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
16456 CHARS.
16457
164582008-02-01 Steven Tamm <steventamm@mac.com>
16459
16460 * macterm.c (mac_encode_char): Add charset argument and update
16461 to use encoding_type.
16462 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
16463 switch to pure fontset.
16464 (decode_mac_font_name): Temporarily remove decoding.
16465 (x_font_name_to_mac_font_name): Temporarily remove encoding.
16466 (x_load_font): Temporarily remove encoding.
16467
164682008-02-01 Kenichi Handa <handa@m17n.org>
16469
16470 * xfaces.c (Fface_font): If frame is not on a window system,
16471 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
16472 refer to face->font.
16473 (split_font_name_into_vector, build_font_name_from_vector)
16474 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
16475 when HAVE_WINDOW_SYSTEM is defined.
16476
164772008-02-01 Kenichi Handa <handa@m17n.org>
16478
16479 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
16480 (x_produce_glyphs): Fix setting of members of cmp in case
16481 cmp->glyph_len is zero.
16482
16483 * fontset.c (Fset_fontset_font): Fix docstring.
16484 (Ffontset_info): Make it backward compatible. New arg ALL.
16485
164862008-02-01 Kim F. Storm <storm@cua.dk>
16487
16488 * process.c (read_process_output): Grow decoding_buf when needed;
16489 this could cause a crash in allocate_string and compact_small_strings.
16490
164912008-02-01 Kenichi Handa <handa@m17n.org>
16492
16493 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
16494
164952008-02-01 Kenichi Handa <handa@m17n.org>
16496
16497 * coding.c (setup_coding_system): Set coding->common_flags
16498 correctly for raw-text.
16499 (consume_chars): On encoding unibyte text by raw-text, don't check
16500 multibyte form.
16501 (encode_coding): On encoding by raw-text, never use translation tables.
16502
16503 * fileio.c (e_write): Short cut for the case of no encoding.
16504
165052008-02-01 Kenichi Handa <handa@m17n.org>
16506
16507 * coding.c (detect_coding, detect_coding_system): Delete unused
16508 variables.
16509
165102008-02-01 Kenichi Handa <handa@m17n.org>
16511
16512 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
16513 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
16514
165152008-02-01 Kenichi Handa <handa@m17n.org>
16516
16517 * coding.c (Ffind_coding_systems_region_internal): Include
16518 raw-text and no-conversion in the result.
16519
165202008-02-01 Kenichi Handa <handa@m17n.org>
16521
16522 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
16523 (load_font_get_repertory): Delete unnecessary check of ENCODING of
16524 FONT_DEF.
16525 (font_def_arg, add_arg, from_arg, to_arg): New args.
16526 (set_fontset_font): Change argument.
16527 (Fset_fontset_font): Fix for the case that TARGET is a script
16528 name and charset name.
16529 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
16530
165312008-02-01 Kenichi Handa <handa@m17n.org>
16532
16533 * fontset.c (fontset_font): Rename from fontset_face. Change return
16534 value.
16535 (face_suitable_for_char_p, face_for_char): Adjust for the change
16536 of fontset_font.
16537 (make_fontset_for_ascii_face): Fix setting of the fontset element
16538 for ASCII.
16539 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
16540 to get a font name.
16541 (Ffontset_info): Adjust for the change of fontset_font.
16542
16543 * coding.c (emacs_mule_char): Check invalid code more rigidly.
16544
16545 * character.h (LEADING_CODE_LATIN_1_MIN)
16546 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
16547
165482008-02-01 Kenichi Handa <handa@m17n.org>
16549
16550 * editfns.c (check_translation): New function.
16551 (Ftranslate_region_internal): Handle M:N mapping.
16552
165532008-02-01 Kenichi Handa <handa@m17n.org>
16554
16555 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
16556
165572008-02-01 Kenichi Handa <handa@m17n.org>
16558
16559 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
16560 goto invalid_code.
16561 (decode_coding_iso_2022): Fix handling of invalid designation.
16562
16563 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
16564 after calling code_conversion_save.
16565
165662008-02-01 Kenichi Handa <handa@m17n.org>
16567
16568 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
16569
16570 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
16571
16572 * fontset.c: Include "intervals.h".
16573 (fontset_face): Fix comparing of Lisp_Objects.
16574 (free_face_fontset, new_fontset_from_font_name): Fix
16575 Lisp_Object/int mixup.
16576
16577 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
16578
16579 * coding.c: Add many prototypes for static functions.
16580 (get_translation_table): Allow max_lookup to be NULL.
16581 (decode_coding, Ffind_coding_systems_region_internal)
16582 (Funencodable_char_position, Fcheck_coding_systems_region): Call
16583 get_translation_table with max_lookup NULL.
16584
165852008-02-01 Kenichi Handa <handa@m17n.org>
16586
16587 * coding.c (get_translation_table): Declare it as Lisp_Object.
16588 (LOOKUP_TRANSLATION_TABLE): New macro.
16589 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
16590 instead of CHAR_TABLE_REF.
16591
165922008-02-01 Kenichi Handa <handa@m17n.org>
16593
16594 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
16595 annotation data format.
16596 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
16597 Change arguments FROM and TO to single argument NCHARS. Change caller.
16598 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
16599 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16600 (decode_coding_ccl, decode_coding_charset): Pay attention to
16601 coding->charbuf_used.
16602 (get_translation): New function.
16603 (produce_chars): New arguments translation_table and last_block.
16604 Translate characters here. Return number of carryover chars.
16605 Change caller.
16606 (produce_composition): New argument pos. Change caller.
16607 Adjust for the change of annotation data format.
16608 (produce_charset, produce_annotation): Likewise.
16609 (decode_coding, encode_coding): Don't call translate_chars.
16610 (consume_chars): New arg translation_table. Change caller.
16611 (translate_chars): Delete.
16612 (syms_of_coding): Make translation-table's number of extra slots 2.
16613
166142008-02-01 Kenichi Handa <handa@m17n.org>
16615
16616 * search.c (simple_search): Fix setting this_pos_byte in backward
16617 search.
16618
16619 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
16620 byte sequence.
16621 (detect_coding_ccl): Fix setting of the variable valids.
16622
166232008-02-01 Kenichi Handa <handa@m17n.org>
16624
16625 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
16626
16627 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
16628
16629 * editfns.c (Ftranslate_region_internal): Rename from
16630 Ftranslate_region. Accept a char-table in TABLE.
16631 (syms_of_editfns): Defsubr Stranslate_region_internal.
16632
16633 * xfaces.c (set_lface_from_font_name): If a font is specified for
16634 a frame, generate a fontset from the font.
16635 (build_scalable_font_name): If the scalable font is requested for
16636 a specific size, don't change that size.
16637 (try_font_list): Try a scalable font also in the case that a
16638 pattern string is specified.
16639
166402008-02-01 Kenichi Handa <handa@m17n.org>
16641
16642 * xfaces.c (Fface_font): New optional arg CHARACTER.
16643
166442008-02-01 Kenichi Handa <handa@m17n.org>
16645
16646 * charset.h (CHARSET_OFFSET): New macro.
16647
166482008-02-01 Kenichi Handa <handa@m17n.org>
16649
16650 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
16651
16652 * fontset.c (fontset_face): Handle the case that repertory is a
16653 char-table.
16654 (find_font_encoding): Return nil for unknown encoding.
16655 (Fset_fontset_font): Ignore a font of unknown encoding.
16656
166572008-02-01 Kenichi Handa <handa@m17n.org>
16658
16659 * keymap.c (describe_vector): Handle default value of a char table.
16660
16661 * fontset.c (fontset_face): Handle fallback fonts correctly.
16662 (Ffontset_info): Return infomation about fallback fonts.
16663
166642008-02-01 Kenichi Handa <handa@m17n.org>
16665
16666 * fontset.c (FONTSET_DEFAULT): New macro.
16667 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16668 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16669 the case that it is nil.
16670 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16671 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16672
16673 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16674 subset or superset.
16675
166762008-02-01 Kenichi Handa <handa@m17n.org>
16677
16678 * emacs.c (main): Call init_charset after syms_of_XXX.
16679
16680 * charset.c (Vcharset_map_directory): Delete.
16681 (Vcharset_map_path): New variable.
16682 (load_charset_map_from_file): Use Vcharset_map_path instead.
16683 (init_charset): Initialize Vcharset_map_path.
16684 (syms_of_charset): Delete declaration of "charset-map-directory",
16685 add declaration of "charset-map-path".
16686
166872008-02-01 Kenichi Handa <handa@m17n.org>
16688
16689 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16690 ASCII only string.
16691
16692 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16693
16694 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16695 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16696
166972008-02-01 Kenichi Handa <handa@m17n.org>
16698
16699 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16700
16701 * coding.c (QCmnemonic, QCdefalut_char)
16702 (QCdecode_translation_table, QCencode_translation_table)
16703 (QCpost_read_conversion, QCpre_write_conversion): New variables.
16704 (get_translation_table): Return a list of translation tables if
16705 necessary.
16706 (decode_coding): Call get_translation_table with ENCODEP 0.
16707 (char_encodable_p): If translation_table is non-nil, always call
16708 translate_char.
16709 (Fdefine_coding_system_internal): Accept list of translation
16710 tables as :encode-translation-table and :decode-translation-table.
16711 (Fcoding_system_put): New function.
16712 (syms_of_coding): Declare new symbols. Defsubr
16713 Scoding_system_put.
16714 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16715 typically JISX0212.
16716
16717 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16718 when the charset is superset type.
16719
16720 * character.c (translate_char): Accept list of translation tables.
16721
167222008-02-01 Kenichi Handa <handa@m17n.org>
16723
16724 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16725 (CODING_ATTR_TRANS_TBL): New macro.
16726
16727 * coding.c (get_translation_table): New function.
16728 (translate_chars): Fix the bug of skipping annotation data.
16729 (decode_coding, encode_coding): Utilize get_translation_table.
16730 (char_encodable_p, Funencodable_char_position): Translate char if
16731 necessary.
16732 (Ffind_coding_systems_region_internal)
16733 (Fcheck_coding_systems_region): Setup translation table for encode
16734 in a coding system attribute vector in advance.
16735 (Fdefine_coding_system_internal): Allow a symbol as translation
16736 table. For shift-jis type coding system, allow 4th charset.
16737
167382008-02-01 Kenichi Handa <handa@m17n.org>
16739
16740 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16741
16742 * xdisp.c (get_next_display_element): Pass -1 as POS to
16743 FACE_FOR_CHAR if displaying a C-string.
16744
167452008-02-01 Kenichi Handa <handa@m17n.org>
16746
16747 * composite.c (get_composition_id): Handle xoff and yoff in a
16748 composition rule.
16749
16750 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16751 (struct composition): New member lbearing and rbearing.
16752
16753 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16754 (x_get_glyph_overhangs): Handle a composition glyph.
16755 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16756
16757 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16758 composition glyph.
16759
167602008-02-01 Kenichi Handa <handa@m17n.org>
16761
16762 * print.c: Include charset.h.
16763 (Vprint_charset_text_property): New variable.
16764 (Qdefault): Extern it.
16765 (PRINT_STRING_NON_CHARSET_FOUND)
16766 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16767 (print_check_string_result): New variable.
16768 (print_check_string_charset_prop): New function.
16769 (print_prune_charset_plist): New variable.
16770 (print_prune_string_charset): New function.
16771 (print_object): Call print_prune_string_charset if
16772 Vprint_charset_text_property is not t.
16773 (print_interval): Print nothing if interval->plist is nil.
16774 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16775 variable. Init and staticpro print_prune_charset_plist.
16776
167772008-02-01 Kenichi Handa <handa@m17n.org>
16778
16779 * fontset.c (new_fontset_from_font_name): Use the specified font
16780 for all characters in the new fontset.
16781
16782 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16783 OBJECT args.
16784
16785 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16786 OBJECT args for composition too.
16787
16788 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16789 OBJECT args.
16790
167912008-02-01 Kenichi Handa <handa@m17n.org>
16792
16793 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16794
16795 * fontset.c (reorder_font_vector): Adjust for the change of
16796 FONT_DEF format.
16797 (fontset_face): New arg id. Change caller.
16798 (face_for_char): New args pos and object.
16799 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16800 (fs_query_fontset): Check NAME by Fassoc too.
16801 (Fset_fontset_font): Allow non-XLFD font name.
16802 (Ffontset_info): Adjust for the change of FONT_DEF format.
16803
16804 * fontset.h (face_for_char): Adjust prototype.
16805
16806 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16807 (append_space, extend_face_to_end_of_line)
16808 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16809 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16810
16811 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16812 POS and OBJECT args.
16813
16814 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16815 POS and OBJECT args.
16816
168172008-02-01 Jason Rumney <jasonr@gnu.org>
16818
16819 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16820 of GlobalAlloc'ed memory.
16821
168222008-02-01 Kenichi Handa <handa@m17n.org>
16823
16824 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16825
16826 * charset.h (charset_table_used): Delete extern.
16827
16828 * charset.c (charset_table_used): Make it static.
16829 (map_charset_chars): Fix args to c_function with.
16830
16831 * chartab.c (map_sub_char_table_for_charset): Fix args to
16832 c_function with.
16833
16834 * coding.h (enum coding_result_code): Delete
16835 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16836
16837 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16838 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16839 (Vlast_code_conversion_error): New variables.
16840 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16841 (ONE_MORE_BYTE): Record error if any instead of signaling an
16842 error. If non-ASCII multibyte char is found, return the negative
16843 value of the code. All callers changed to check it.
16844 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16845 (record_conversion_result): New function. Change all codes setting
16846 coding->result to call this function.
16847 (detect_coding_utf_8, decode_coding_utf_8)
16848 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16849 Don't use the local variable incomplete.
16850 (emacs_mule_char): Change the second arg to `const'.
16851 (decode_coding): Fix of flushing out unprocessed data.
16852 (make_conversion_work_buffer): Fix making of a work buffer.
16853 (decode_coding_object): Return coding->dst_object.
16854
16855 * fontset.c (set_fontset_font): Fix args.
16856
16857 * lisp.h (CHARACTERBITS): Define as 22.
16858
16859 * process.c (send_process): Be sure to set coding->src_multibyte.
16860
16861 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16862
168632008-02-01 Kenichi Handa <handa@m17n.org>
16864
16865 * xdisp.c (handle_auto_composed_prop): Give limit to
16866 Fnext_single_char_property_change.
16867
168682008-02-01 Kenichi Handa <handa@m17n.org>
16869
16870 * composite.c (syms_of_composite): Don't make the composition hash
16871 table weak.
16872
16873 * fontset.c (Fset_fontset_font): Fix docstring.
16874
16875 * lisp.h (detect_coding_system): Adjust prototype.
16876
16877 * fileio.c (kill_workbuf_unwind): Delete this function.
16878 (Finsert_file_contents): Adjust the call of detect_coding_system.
16879 Get conversion_buffer by code_conversion_save. Use the macro
16880 CODING_MAY_REQUIRE_DECODING. After decoding, update
16881 coding_system.
16882
16883 * coding.h (make_conversion_work_buffer): Delete extern.
16884 (code_conversion_save): Extern it.
16885
16886 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16887 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16888 (decode_coding_utf_8): Don't do eol converion.
16889 (detect_coding_utf_16): Check coding->src_chars, not
16890 coding->src_bytes. Add heuristics for those that have no signature.
16891 (decode_coding_emacs_mule, decode_coding_iso_2022)
16892 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16893 Don't do eol converion.
16894 (adjust_coding_eol_type): Return a new coding system.
16895 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16896 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16897 each change.
16898 (decode_coding): Pay attention to undo_list. Do eol conversion for
16899 all types of coding-systems (if necessary).
16900 (Vcode_conversion_work_buf_list): Delete it.
16901 (Vcode_conversion_reused_workbuf): Rename from
16902 Vcode_conversion_reused_work_buf.
16903 (Vcode_conversion_workbuf_name): New variable.
16904 (reused_workbuf_in_use): New variable.
16905 (make_conversion_work_buffer): Delete the arg DEPTH.
16906 (code_conversion_restore): Change argument to cons.
16907 (code_conversion_save): Delete the argument BUFFER. Change callers.
16908 (detect_coding_system): New argument src_chars. Change callers.
16909 Fix for utf-16 detection.
16910 (init_coding_once): Don't use ISO_carriage_return.
16911 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16912 reused_workbuf_in_use.
16913
169142008-02-01 Kenichi Handa <handa@m17n.org>
16915
16916 * keymap.c (store_in_keymap): Pay attention to the case that idx
16917 is a cons specifying a character range.
16918
169192008-02-01 Kenichi Handa <handa@m17n.org>
16920
16921 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16922 HANDLED_RECOMPUTE_PROPS.
16923
16924 * coding.c (Fdefine_coding_system_internal): Fix checking of
16925 ascii compatibility.
16926
169272008-02-01 Kenichi Handa <handa@m17n.org>
16928
16929 * charset.c (find_charsets_in_text): Delete unused locale variable.
16930 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16931
16932 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16933 Resync charset_list to Vemacs_mule_charset_list.
16934
16935 * keymap.c (store_in_keymap): Pay attention to the case that idx
16936 is a cons specifying a character range.
16937
169382008-02-01 Kenichi Handa <handa@m17n.org>
16939
16940 * composite.c (update_compositions): Bind inhibit-read-only, etc
16941 to t before calling remove-list-of-text-properties.
16942
16943 * print.c (print_object): Always print ASCII chars as is.
16944
169452008-02-01 Kenichi Handa <handa@m17n.org>
16946
16947 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16948
16949 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16950 is a char table.
16951
169522008-02-01 Kenichi Handa <handa@m17n.org>
16953
16954 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16955
169562008-02-01 Kenichi Handa <handa@m17n.org>
16957
16958 * xfaces.c (set_lface_from_font_name): Fix for the case that
16959 FONTNAME is not fontset name.
16960
169612008-02-01 Kenichi Handa <handa@m17n.org>
16962
16963 * fns.c (base64_encode_1): Fix previous change.
16964
169652008-02-01 Kenichi Handa <handa@m17n.org>
16966
16967 * fontset.c (set_fontset_font): New function.
16968 (Fset_fontset_font): If a font is specified for a charset, use
16969 map_charset_chars to store the font spec in a fontset.
16970
169712008-02-01 Kenichi Handa <handa@m17n.org>
16972
16973 * fontset.c (fontset_face): Create a fallback fontset on demand.
16974 (make_fontset): Don't create a fallback fontset here.
16975 (free_face_fontset): Free a fallback fontset (if any) too.
16976 (n_auto_fontsets): Delete this variable.
16977 (auto_fontset_alist): New variable.
16978 (new_fontset_from_font_name): Check auto_fontset_alist.
16979 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16980 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16981 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16982 Defsubr Sfontset_list_all.
16983
169842008-02-01 Kenichi Handa <handa@m17n.org>
16985
16986 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16987
169882008-02-01 Kenichi Handa <handa@m17n.org>
16989
16990 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16991
169922008-02-01 Kenichi Handa <handa@m17n.org>
16993
16994 * editfns.c (Fgoto_char): Fix docstring.
16995
169962008-02-01 Kenichi Handa <handa@m17n.org>
16997
16998 * insdel.c (insert_from_gap): Adjust intervals correctly.
16999
170002008-02-01 Jason Rumney <jasonr@gnu.org>
17001
17002 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
17003 (pfnGetFontUnicodeRanges): New dynamically loaded function.
17004 (w32_initialize): Try to load it.
17005 (x_get_font_repertory): Use it if available.
17006 (w32_encode_char): Add shortcut for unicode output.
17007
17008 * w32fns.c (w32_load_system_font): Default charset to -1.
17009 (x_to_w32_charset): Match all fonts for unicode.
17010 (w32_to_x_charset): New parameter matching. Don't return partial
17011 or wildcard charsets.
17012 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
17013 (w32_codepage_for_font): Return CP_UNICODE for unicode.
17014 (w32_to_x_font): Match charset to real charset.
17015 (enum_font_cb2): Always list unicode versions.
17016
17017 * makefile.w32-in (temacs): Increase EMHEAP.
17018
170192008-02-01 Jason Rumney <jasonr@gnu.org>
17020
17021 * w32term.c (w32_encode_char): New charset parameter.
17022 font_info.encoding becomes encoding_type.
17023 (x_get_font_repertory): New function. Warning: stub only!
17024 (x_new_font): Return quickly if font already set.
17025 (x_new_fontset): fontsetname parameter is Lisp_Object.
17026 Use new fs_query_fontset. Try new_fontset_from_font_name.
17027 Use fontset_name for return value.
17028
17029 * w32term.h: Declare x_get_font_repertory.
17030
17031 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
17032 place of find_charset_in_text. Use encode_coding_object in place
17033 of encode_coding.
17034 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
17035 decode_coding.
17036
17037 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
17038 of x_new_fontset.
17039 (w32_load_system_font): Initialize charset as unicode.
17040 font_info.encoding becomes encoding_type.
17041 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
17042 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
17043 (syms_of_w32fns): Set get_font_repertory_func.
17044
17045 * w32console.c: Include character.h. Use terminal_encode_buffer
17046 from term.c.
17047 (write_glyphs): Use new version of encode_terminal_code. Use
17048 encode_coding_object in place of encode_coding.
17049
17050 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
17051 encoding becomes encoding_type.
17052
17053 * term.c (terminal_encode_buffer): Make externally visible.
17054
17055 * makefile.w32-in: Add character.h dependancies.
17056 (character.o, chartab.o): New targets.
17057
170582008-02-01 Kenichi Handa <handa@m17n.org>
17059
17060 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
17061 CODING_ID_EOL_TYPE.
17062
170632008-02-01 Andreas Schwab <schwab@suse.de>
17064
17065 * coding.c (produce_chars): Revert last change.
17066
170672008-02-01 Kenichi Handa <handa@m17n.org>
17068
17069 * charset.h (charset_unicode): Extern it.
17070
17071 * charset.c (string_xstring_p): Check by (C >= 0x100).
17072 (find_charsets_in_text): Change format of the arc CHARSETS. New
17073 arg MULTIBYTE.
17074 (Ffind_charset_region, Ffind_charset_string): Adjust for the
17075 change of find_charsets_in_text.
17076 (Fsplit_char): Fix doc. Never return unknown.
17077
17078 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
17079
17080 * coding.c (Fdefine_coding_system_alias): Update
17081 Vcoding_system_list.
17082
17083 * fontset.c (load_font_get_repertory): Pay attention to the case
17084 that ENCODING of a font is specified by a char-table.
17085
17086 * xterm.c (x_get_font_repertory): Handle the case that the
17087 encoding of font is other than Unicode.
17088
170892008-02-01 Kenichi Handa <handa@m17n.org>
17090
17091 * term.c (encode_terminal_code): Don't handle glyph-table. Check
17092 if a character is encodable by the terminal coding system. If
17093 not, produces proper number of `?'s. Update
17094 terminal_encode_buffer and terminal_encode_buf_size if necessary.
17095 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
17096
170972008-02-01 Kenichi Handa <handa@m17n.org>
17098
17099 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
17100 variables.
17101 (encode_terminal_code): Change argument. Encode multiple
17102 characters at once. Store the result of encoding in
17103 terminal_encode_buffer.
17104 (write_glyphs, insert_glyphs): Adjust for the change of
17105 encode_terminal_code.
17106 (term_init): Initialize terminal_encode_buffer and
17107 terminal_encode_buf_size.
17108
17109 * coding.c (consume_chars): If coding->src_object is nil, don't
17110 check annotation.
17111
171122008-02-01 Kenichi Handa <handa@m17n.org>
17113
17114 * character.c (char_string): Use ASCII_CHAR_P instead of
17115 SINGLE_BYTE_CHAR_P.
17116
171172008-02-01 Kenichi Handa <handa@m17n.org>
17118
17119 * xdisp.c (handle_auto_composed_prop): Check if the last
17120 characters of auto-composed region is newly composed with the
17121 following characters.
17122 (handle_composition_prop): Fix checking of point being inside
17123 composition.
17124
171252008-02-01 Kenichi Handa <handa@m17n.org>
17126
17127 * fns.c (concat): Don't change multibyteness of the result by
17128 concatenating an 8-bit character.
17129
17130 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
17131 multibyteness of the result when newelt is an 8-bit character.
17132
171332008-02-01 Dave Love <fx@gnu.org>
17134
17135 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
17136 EMACS_INT.
17137
17138 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
17139
17140 * xfaces.c (face_numeric_value): Declare dim size_t.
17141 (Finternal_lisp_face_equal_p): Remove unused f.
17142
17143 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
17144 (MATRIX_ROW): Remove unused vars.
17145 (draw_glyphs, x_insert_glyphs, fast_find_position)
17146 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
17147 byte/char counts.
17148
17149 * regex.c (regex_compile): Remove unused var.
17150
17151 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17152
17153 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
17154 (Faccessible_keymaps, where_is_internal): Remove unused vars.
17155
17156 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
17157
17158 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
17159
17160 * fileio.c (Fwrite_region): Remove unused var.
17161
17162 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
17163 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
17164
17165 * composite.c (Fremove_list_of_text_properties): Declare.
17166
17167 * coding.c (inhibit_pre_post_conversion): Remove (unused).
17168 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
17169 (coding_inherit_eol_type): Remove unused attrs.
17170 (detect_coding): Cast arg of detect_eol.
17171
17172 * charset.c (syms_of_charset): Remove unused var p.
17173 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
17174 byte/char counts.
17175
17176 * casetab.c (set_case_table): Remove unused var.
17177
17178 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
17179 unused vars.
17180
171812008-02-01 Dave Love <fx@gnu.org>
17182
17183 * xterm.c (x_bitmap_mask): Declare.
17184
171852008-02-01 Dave Love <fx@gnu.org>
17186
17187 * xterm.c (x_term_init): Fix type error.
17188
17189 * lisp.h: Add Funibyte_char_to_multibyte.
17190
17191 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
17192 (Fset_coding_system_priority): Doc fix.
17193
17194 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
17195
17196 * indent.c (check_composition): Make start and end EMACS_INT.
17197
17198 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
17199
17200 * xdisp.c (handle_composition_prop, check_point_in_composition):
17201 Make buffer positions EMACS_INT.
17202
17203 * composite.c (find_composition, run_composition_function)
17204 (update_compositions, Ffind_composition_internal): Make buffer
17205 positions EMACS_INT.
17206
17207 * composite.h (find_composition, update_compositions): Make
17208 position args EMACS_INT.
17209
17210 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
17211
17212 * intervals.c (get_property_and_range):
17213 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
17214
17215 * unexalpha.c: Don't include varargs.h.
17216
172172008-02-01 Dave Love <fx@gnu.org>
17218
17219 * coding.h (ENCODE_UTF_8): New.
17220
17221 * Makefile.in (gtkutil.o): Depend on coding.h.
17222
17223 * coding.c (Fset_coding_system_priority): Doc fix.
17224
172252008-02-01 Kenichi Handa <handa@m17n.org>
17226
17227 * fileio.c (Finsert_file_contents): Call setup_coding_system in
17228 the case of auto saving.
17229
172302008-02-01 Andreas Schwab <schwab@suse.de>
17231
17232 * chartab.c (map_char_table, map_char_table_for_charset): Protect
17233 `range' from GC.
17234
172352008-02-01 Kenichi Handa <handa@m17n.org>
17236
17237 * coding.c (decode_coding_sjis): Check bytes more rigidly.
17238
172392008-02-01 Kenichi Handa <handa@m17n.org>
17240
17241 * fileio.c (choose_write_coding_system): Return a decided coding system.
17242 (Fwrite_region): Set Vlast_coding_system_used to the return value
17243 of choose_write_coding_system.
17244
172452008-02-01 Kenichi Handa <handa@m17n.org>
17246
17247 * charset.c (Fset_charset_priority): Pay attention to duplicated
17248 arguments.
17249
17250 * coding.c (QCcategory): New variable.
17251 (syms_of_coding): Defsym it. Set all elements of
17252 Vcoding_category_table and their symbol values.
17253 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
17254 coding-category-XXX, and coding-category-list.
17255 (Fdefine_coding_system_internal): Add category in the plist.
17256
172572008-02-01 Kenichi Handa <handa@m17n.org>
17258
17259 * callproc.c (Fcall_process): Handle carryover correctly.
17260
17261 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
17262 (raw_text_coding_system): Check NILP (coding_system).
17263 (coding_inherit_eol_type): Check NILP (coding_system) and
17264 NILP (parent).
17265 (consume_chars): Fix for the case of raw-text.
17266
17267 * process.c (read_process_output): Handle carryover correctly.
17268
172692008-02-01 Dave Love <fx@gnu.org>
17270
17271 * regex.c (re_search_2): Fix last change.
17272
172732008-02-01 Kenichi Handa <handa@m17n.org>
17274
17275 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
17276 target_multibyte. Even in a unibyte case, return a converted
17277 multibyte char.
17278 (GET_CHAR_AFTER): New macro.
17279 (PATFETCH): Translate via multibyte char.
17280 (HANDLE_UNIBYTE_RANGE): Delete this macro.
17281 (SETUP_MULTIBYTE_RANGE): New macro.
17282 (regex_compile): Setup compiled code so that its multibyteness
17283 matches that of a target. Fix the handling of "[X-YZ]" using
17284 SETUP_MULTIBYTE_RANGE.
17285 (analyse_first) <charset>: For filling fastmap for all multibyte
17286 characters, don't check by BASE_LEADING_CODE_P.
17287 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
17288 the same as RE_MULTIBYTE_P (bufp) now.
17289 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
17290 (TARGET_CHAR_AND_LENGTH): Delete this macro.
17291 (TRANSLATE_VIA_MULTIBYTE): New macro.
17292 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
17293 It is the same as RE_MULTIBYTE_P (bufp) now.
17294 <exactn>: Translate via multibyte.
17295 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
17296 translate it.
17297 <charset, charset_not>: Fetch a character by
17298 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
17299 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
17300 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
17301 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
17302 by GET_CHAR_AFTER.
17303 (bcmp_translate): Likewise.
17304
17305 * search.c (compile_pattern): Check the member target_multibyte,
17306 not the member multibyte of buf.
17307
17308 * lread.c (read1): While reading a string, set force_singlebyte
17309 and force_multibyte correctly.
17310
17311 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
17312 up of unibyte_to_multibyte_table.
17313
173142008-02-01 Kenichi Handa <handa@m17n.org>
17315
17316 * coding.c (setup_coding_system): If coding has
17317 post-read-conversion or pre-write-conversion, set
17318 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
17319 respectively.
17320 (decode_coding_gap): Run post-read-conversion if any.
17321
17322 * fileio.c (Finsert_file_contents): Even if we read into a
17323 unibyte buffer, check if we must decode the result or not.
17324
173252008-02-01 Kenichi Handa <handa@m17n.org>
17326
17327 * coding.c (make_conversion_work_buffer): Change the work buffer
17328 name to the same one as that of Emacs 21.
17329
173302008-02-01 Kenichi Handa <handa@m17n.org>
17331
17332 * coding.h (make_conversion_work_buffer): Adjust prototype.
17333 (code_conversion_restore): Don't extern it.
17334
17335 * coding.c (detected_mask): Delete unused variable.
17336 (decode_coding_iso_2022): Pay attention to the byte sequence of
17337 CTEXT extended segment, and retain those bytes as is.
17338 (decode_coding_ccl): Delete unused variable `valids'.
17339 (setup_coding_system): Delete unused variable `category'.
17340 (consume_chars): Delete unused variable `category'. Make it work
17341 for non-multibyte case.
17342 (make_conversion_work_buffer): Change argument.
17343 (saved_coding): Delete unused variable.
17344 (code_conversion_restore): Don't check saved_coding->destination.
17345 (code_conversion_save): New function.
17346 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
17347 instead of record_unwind_protect.
17348 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
17349 (detect_coding_system): Delete unused variable `mask'.
17350 (Fdefine_coding_system_internal): Delete unused variable id.
17351
17352 * fileio.c (kill_workbuf_unwind): New function.
17353 (Finsert_file_contents): On replacing, call
17354 make_conversion_work_buffer with correct args, and call
17355 record_unwind_protect with the first arg kill_workbuf_unwind.
17356
17357 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
17358
173592008-02-01 Kenichi Handa <handa@m17n.org>
17360
17361 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
17362 (fontset_add): Fix for the case that TO is less than TO1.
17363 (Ffontset_info): Don't use fallback fontset on checking the
17364 default fontset.
17365 (dump_fontset): New function for debugging.
17366
17367 * coding.c (Fdefine_coding_system_internal): Fix for the case that
17368 coding_type is Qcharset.
17369
173702008-02-01 Kenichi Handa <handa@m17n.org>
17371
17372 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
17373 (map_char_table): Don't inherit the value from the parent on
17374 initializing VAL. Adjust for the above change.
17375
173762008-02-01 Kenichi Handa <handa@m17n.org>
17377
17378 * coding.c (Qsignature, Qendian): Delete these variables.
17379 (syms_of_coding): Don't initialize them.
17380 (CATEGORY_MASK_UTF_16_AUTO): New macro.
17381 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
17382 detect_info->found.
17383 (decode_coding_utf_16): Don't detect BOM here.
17384 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
17385 is NOT utf_16_without_bom.
17386 (setup_coding_system): For a coding system of type utf-16, check
17387 if the attribute :endian is Qbig or not (not nil or not), and set
17388 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
17389 (detect_coding): If coding type is utf-16 and BOM detection is
17390 required, detect it.
17391 (Fdefine_coding_system_internal): For a coding system of type
17392 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
17393
173942008-02-01 Kenichi Handa <handa@m17n.org>
17395
17396 * coding.c (coding_set_source): Fix for the case that the current
17397 buffer is different from coding->src_object.
17398 (decode_coding_object): Don't use the conversion work buffer if
17399 DST_OBJECT is a buffer.
17400
174012008-02-01 Dave Love <fx@gnu.org>
17402
17403 * lread.c (read_emacs_mule_char) [len==2]: Index
17404 emacs_mule_charset correctly.
17405
174062008-02-01 Dave Love <fx@gnu.org>
17407
17408 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
17409 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
17410 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
17411 treated specially.)
17412 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
17413 (detected_mask): Remove Big5 bits.
17414
174152008-02-01 Kenichi Handa <handa@m17n.org>
17416
17417 The following changes are to make the font rescaling facility
17418 compatible with Emacs 21.
17419
17420 * xfaces.c (Vface_font_rescale_alist): Rename from
17421 Vface_resizing_fonts.
17422 (struct font_name): Rename member resizing_ratio to rescale_ratio.
17423 (font_rescale_ratio): Rename from font_resizing_ratio.
17424 (split_font_name): Set font->rescale_ratio.
17425 (better_font_p): Pay attention to font->rescale_ratio.
17426 (build_scalable_font_name): Likewise. Change RESX, and RESY
17427 fields.
17428 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
17429
174302008-02-01 Kenichi Handa <handa@m17n.org>
17431
17432 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
17433 (Qutf_16_le): Remove these variables.
17434 (syms_of_coding): Don't DEFSYM them.
17435 (decode_coding_utf_16): Fix handling of BOM.
17436 (encode_coding_utf_16): Fix handling of BOM.
17437
174382008-02-01 Kenichi Handa <handa@m17n.org>
17439
17440 * fileio.c (Finsert_file_contents): On replacing, before decoding
17441 the file into the work buffer, set point of the work buffer to the end.
17442
174432008-02-01 Dave Love <fx@gnu.org>
17444
17445 * coding.c (Fcheck_coding_systems_region): Fix type errors.
17446
174472008-02-01 Dave Love <fx@gnu.org>
17448
17449 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17450 and fix C types.
17451
174522008-02-01 Kenichi Handa <handa@m17n.org>
17453
17454 * xdisp.c (SKIP_GLYPHS): New macro.
17455 (set_cursor_from_row): Pay attention to string display properties.
17456
17457 * category.c (copy_category_entry): Fix for the case that RANGE
17458 is an integer.
17459
17460 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
17461
17462 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
17463
174642008-02-01 Kenichi Handa <handa@m17n.org>
17465
17466 * charset.c (Fcharset_id_internal): New function.
17467 (syms_of_charset): Defsubr it.
17468
17469 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
17470 with the last arg charset_list acquired from coding.
17471 (Fdefine_coding_system_internal): For ccl-based coding system, fix
17472 the attribute coding_attr_ccl_valids.
17473
17474 * coding.h (enum define_coding_ccl_arg_index): Set the first
17475 member coding_arg_ccl_decoder to coding_arg_max.
17476
17477 * ccl.h (ccl_driver): Adjust prototype.
17478
17479 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
17480 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 17481 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
17482 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
17483 last arg Qnil.
17484
174852008-02-01 Kenichi Handa <handa@m17n.org>
17486
17487 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
17488 call encode_char.
17489
17490 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
17491
174922008-02-01 Dave Love <fx@gnu.org>
17493
17494 * composite.c (syms_of_composite): Make composition_hash_table weak.
17495
174962008-02-01 Kenichi Handa <handa@m17n.org>
17497
17498 * dispextern.h (check_face_attributes, generate_ascii_font_name)
17499 (font_name_registry): Don't extern them.
17500 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
17501
17502 * fontset.h (Qfontset): Don't extern it.
17503 (new_fontset_from_font_name): Extern it.
17504
17505 * fontset.c: Give 8 extra slots to fontset objects.
17506 (Qfontset_info): New variable.
17507 (syms_of_fontset): Defsym it.
17508 (FONTSET_FALLBACK): New macro.
17509 (fontset_face): Try also the default fontset.
17510 (make_fontset): Realize a fallback fontset from the default fontset.
17511 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
17512 using split_font_name_into_vector and build_font_name_from_vector.
17513 (Fset_fontset_font): Access the elements of font_spec by enum
17514 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
17515 name by using split_font_name_into_vector.
17516 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
17517 generate a proper font name from the fontset name. Update
17518 Vfontset_alias_alist.
17519 (n_auto_fontsets): New variable.
17520 (new_fontset_from_font_name): New function.
17521 (Ffont_info): Store the information about fonts generated from the
17522 default fontset in the first extra slot of the returned char-table.
17523
17524 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
17525 (font_name_registry): Delete function.
17526 (split_font_name_into_vector): New function.
17527 (build_font_name_from_vector): New function.
17528 (font_list): The argument REGISTRY is now a list of registry names.
17529 (choose_face_font): If we are choosing an ASCII font, and ATTRS
17530 specifies an explicit font name, return the name as is. Make a
17531 list of registy names.
17532
17533 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
17534 of x_new_fontset.
17535 (Fx_create_frame): Don't call x_new_fontset here. Just use
17536 x_list_fonts to check the existence of fonts.
17537
17538 * xterm.h (x_new_fontset): Adjust prototype.
17539
17540 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
17541 string. Use new_fontset_from_font_name to create a fontset from a
17542 font name.
17543
175442008-02-01 Kenichi Handa <handa@m17n.org>
17545
17546 * syntax.c (Vfind_word_boundary_function_table): New name for
17547 Vnext_word_boundary_function_table.
17548 (find-word-boundary-function-table): New name for
17549 next-word-boundary-function-table.
17550
175512008-02-01 Dave Love <fx@gnu.org>
17552
17553 * Makefile.in: Fix some dependencies.
17554
17555 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
17556 set it to nil before returning.
17557
17558 * composite.c (update_compositions): Fix type error.
17559
17560 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
17561
175622008-02-01 Kenichi Handa <handa@m17n.org>
17563
17564 * xterm.c (x_new_font): Optimize for the case that the font is
17565 already set for the frame.
17566
175672008-02-01 Kenichi Handa <handa@m17n.org>
17568
17569 * chartab.c (char_table_ascii): Check if the char table contents
17570 is sub-char-table or not.
17571 (char_table_set, char_table_set_range): Fix argument to
17572 char_table_ascii.
17573
17574 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
17575 (detect_coding_utf_8, detect_coding_utf_16)
17576 (detect_coding_emacs_mule, detect_coding_iso_2022)
17577 (detect_coding_sjis, detect_coding_big5)
17578 (detect_coding_ccl, detect_coding_charset): Change argument MASK
17579 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
17580 sequence is valid in this coding system. Change callers.
17581 (MAX_ANNOTATION_LENGTH): New macro.
17582 (ADD_ANNOTATION_DATA): New macro.
17583 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
17584 ADD_ANNOTATION_DATA. Change the format of annotation data.
17585 (ADD_CHARSET_DATA): New macro.
17586 (emacs_mule_char): New argument ID. Change callers.
17587 (decode_coding_emacs_mule, decode_coding_iso_2022)
17588 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17589 Produce charset annotation data in coding->charbuf.
17590 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
17591 to charset annotation data in coding->charbuf.
17592 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
17593 coding->common_flags if the coding system is iso-2022 based and
17594 uses designation.
17595 (produce_composition): Adjust for the new annotation data format.
17596 (produce_charset): New function.
17597 (produce_annotation): Handle charset annotation.
17598 (handle_composition_annotation, handle_charset_annotation): New
17599 functions.
17600 (consume_chars): Handle charset annotation. Utilize the above two
17601 functions.
17602 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
17603 buffer, get the deleted text as a string and set
17604 coding->src_object to that string.
17605 (detect_coding, detect_coding_system): Use the new struct
17606 coding_detection_info.
17607
17608 * coding.h (struct coding_detection_info): New structure.
17609 (struct coding_system): Adjust prototype of the member `detector'.
17610 (CODING_ANNOTATE_CHARSET_MASK): New macro.
17611
176122008-02-01 Kenichi Handa <handa@m17n.org>
17613
17614 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
17615
176162008-02-01 Dave Love <fx@gnu.org>
17617
17618 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
17619 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
17620 to new local and nullify apropos_accumulate before returning.
17621 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
17622
176232008-02-01 Kenichi Handa <handa@m17n.org>
17624
17625 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
17626 correctly.
e3eea1fc 17627
aac0c6e3
MR
176282008-02-01 Dave Love <fx@gnu.org>
17629
17630 * fns.c (Flanginfo): Call synchronize_system_time_locale.
17631
176322008-02-01 Kenichi Handa <handa@m17n.org>
17633
17634 The following changes are to make character composition happen
17635 automatically on displaying.
17636
17637 * Makefile.in (lisp, shortlisp): Add composite.elc.
17638
17639 * composite.h (Qauto_composed, Vauto_composition_function)
17640 (Qauto_composition_function): Extern them.
17641
17642 * composite.c (Vcomposition_function_table)
17643 (Qcomposition_function_table): Delete variables.
17644 (Qauto_composed, Vauto_composition_function)
17645 (Qauto_composition_function): New variables.
17646 (run_composition_function): Don't call
17647 compose-chars-after-function.
17648 (update_compositions): Clear `auto-composed' text property.
17649 (compose_chars_in_text): Delete this function.
17650 (syms_of_composite): Staticpro Qauto_composed and
17651 Qauto_composition_function. Declare Vauto_composition_function as
17652 a Lisp variable.
17653
17654 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
17655
17656 * xdisp.c (it_props): Add an entry for Qauto_composed.
17657 (handle_auto_composed_prop): New function.
17658
17659 * xselect.c (selection_data_to_lisp_data): Don't call
17660 compose_chars_in_text.
17661
176622008-02-01 Dave Love <fx@gnu.org>
17663
17664 * keyboard.c (read_char): Modify checking around use of
17665 Vkeyboard_translate_table.
17666
17667 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17668 and fix C types.
17669
176702008-02-01 Kenichi Handa <handa@m17n.org>
17671
17672 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17673 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17674 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17675 the case that the last byte is '\r' correctly.
17676 (decode_coding): Flush out the unprocessed data correctly.
17677 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17678
176792008-02-01 Dave Love <fx@gnu.org>
17680
17681 * xterm.c (XTread_socket): Fix changes for defined keysyms.
17682 Add XK_ISO... case.
17683 (xaw_scroll_callback): Revert last change.
17684
176852008-02-01 Kenichi Handa <handa@m17n.org>
17686
17687 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17688
176892008-02-01 Kenichi Handa <handa@m17n.org>
17690
17691 * xfaces.c (Vface_resizing_fonts): New variable.
17692 (struct font_name): New member `resizing_ratio'.
17693 (font_resizing_ratio): New function.
17694 (split_font_name): Set font->resizing_ratio.
17695 (better_font_p): Pay attention to font->resizing_ratio.
17696 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
17697 RESX, and RESY fields.
17698 (try_alternative_families): Try scalable fonts if
17699 Vscalable_fonts_allowed is not Qt.
17700 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17701
177022008-02-01 Dave Love <fx@gnu.org>
17703
17704 * xterm.c (xaw_scroll_callback): Cast correctly.
17705
177062008-02-01 Dave Love <fx@gnu.org>
17707
17708 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
17709 (lispy_kana_keys): Comment out.
17710 (make_lispy_event) [XK_kana_A]: Comment out.
17711
17712 * xterm.c (xaw_scroll_callback): Cast call_data.
17713 (XTread_socket): Deal with ASCII keysyms.
17714 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17715
177162008-02-01 Dave Love <fx@gnu.org>
17717
17718 * xterm.c (Vx_keysym_table): New.
17719 (syms_of_xterm): Initialize it.
17720 (XTread_socket): Use it.
17721 From head: Eliminate incorrect optimization that tried to avoid
17722 decoding the output of X*LookupString.
17723 (x_get_font_repertory): Delete charset declaration.
17724
177252008-02-01 Kenichi Handa <handa@m17n.org>
17726
17727 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17728 return 0.
17729 (Fdefine_coding_system_internal): Setup
17730 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17731
177322008-02-01 Dave Love <fx@gnu.org>
17733
17734 * coding.c (Fcheck_coding_system): Doc fix.
17735
17736 * editfns.c (Finsert_byte): Return a proper value.
17737
177382008-02-01 Kenichi Handa <handa@m17n.org>
17739
17740 * coding.c (decode_coding): Fix args to translate_chars. Pay
17741 attention to Vstandard_translation_table_for_decode.
17742 (encode_coding): Fix args to translate_chars. Pay attention to
17743 Vstandard_translation_table_for_encode.
17744
17745 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17746 SINGLE_BYTE_CHAR_P.
17747
17748 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17749 not by SINGLE_BYTE_CHAR_P.
17750
17751 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17752 SINGLE_BYTE_CHAR_P.
17753
17754 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17755 SINGLE_BYTE_CHAR_P.
17756
17757 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17758 by SINGLE_BYTE_CHAR_P.
17759
17760 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17761 SINGLE_BYTE_CHAR_P.
17762
177632008-02-01 Dave Love <fx@gnu.org>
17764
17765 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17766
177672008-02-01 Dave Love <fx@gnu.org>
17768
17769 * fns.c (Flanginfo): Fix typo.
17770
17771 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17772
177732008-02-01 Kenichi Handa <handa@m17n.org>
17774
17775 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17776 (detect_coding_emacs_mule, detect_coding_iso_2022)
17777 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17778 incomplete byte sequence. Don't update *mask when correctly detected.
17779 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17780 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17781 (detect_coding, detect_coding_system): Adjust for the changes above.
17782
177832008-02-01 Kenichi Handa <handa@m17n.org>
17784
17785 * character.c (char_string): Rename from
17786 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17787 (string_char): Rename from string_char.
17788
17789 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17790 if C is greater than MAX_3_BYTE_CHAR.
17791 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17792 string_char instead of string_char_with_unification.
17793
177942008-02-01 Dave Love <fx@gnu.org>
17795
17796 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17797
177982008-02-01 Kenichi Handa <handa@m17n.org>
17799
17800 * keymap.c (push_key_description): Pay attention to force_multibyte.
17801
17802 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17803
178042008-02-01 Dave Love <fx@gnu.org>
17805
17806 * charset.c (define_charset_internal): Rename `supprementary'.
17807
17808 * Makefile.in (lisp, shortlisp): Remove latin-N.
17809
178102008-02-01 Dave Love <fx@gnu.org>
17811
17812 * xfns.c (x_window, x_window): Use use_xim.
17813
17814 * xterm.c (use_xim): Initialize.
17815 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17816 (x_term_init): Maybe set use_xim.
17817
17818 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17819
178202008-02-01 Kenichi Handa <handa@m17n.org>
17821
17822 * search.c (search_buffer): Fix case-fold-search of multibyte
17823 characters.
17824 (boyer_moore): Rename the last argument to char_high_bits.
17825
178262008-02-01 Kenichi Handa <handa@m17n.org>
17827
17828 * xdisp.c (display_string): Fix for the case of zero width glyph.
17829
17830 * xfns.c (x_set_font): Change the error message of the case that
17831 x_new_fontset returns Qt.
17832
17833 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17834 (Finternal_set_lisp_face_attribute): Use signal_error for the
17835 error of invalid fontset.
17836
17837 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17838 fontset, return Qt.
17839
178402008-02-01 Dave Love <fx@gnu.org>
17841
17842 * unexelf.c (unexec): Make .got handling not SGI-specific.
17843
17844 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17845
17846 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17847
17848 * keyboard.c (read_key_sequence): Fix type error.
17849
17850 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17851 type error.
17852
17853 * fontset.c (fontset_add): Return Lisp_Object.
17854
178552008-02-01 Dave Love <fx@gnu.org>
17856
17857 * charset.h (charset_ordered_list_tick): Declare extern.
17858
178592008-02-01 Kenichi Handa <handa@m17n.org>
17860
17861 The following changes (and some of 2008-02-01 changes of mine) are
17862 for handling syntax, category, and case conversion for unibyte
17863 characters by converting them to multibyte on the fly. With these
17864 changes, we don't have to setup syntax and case tables for unibyte
17865 characters in each language environment.
17866
17867 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17868 multibyte if necessary.
17869
17870 * bytecode.c (Fbyte_code): Likewise.
17871
17872 * character.h (LEADING_CODE_LATIN_1_MIN)
17873 (LEADING_CODE_LATIN_1_MAX): New macros.
17874 (unibyte_to_multibyte_table): Extern it.
17875 (unibyte_char_to_multibyte): New macro.
17876 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17877 (CHAR_LEADING_CODE): New macro.
17878 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17879
17880 * character.c (unibyte_to_multibyte_table): New variable.
17881 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17882 (multibyte_char_to_unibyte): If C is an eight-bit character,
17883 convert it to the corresponding byte value.
17884
17885 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17886 not 1, signals an error. Update the elements of
17887 unibyte_to_multibyte_table.
17888 (init_charset_once): Initialize unibyte_to_multibyte_table.
17889 (syms_of_charset): Define the charset `iso-8859-1'.
17890
17891 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17892 as is without converting it to unibyte. In a unibyte buffer,
17893 convert C to multibyte before checking the syntax.
17894
17895 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17896
17897 * minibuf.c (Fminibuffer_complete_word): Use the macro
17898 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17899
17900 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17901
17902 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17903 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17904 that is zero, convert an eight-bit char to multibyte.
17905 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17906 non-emacs case.
17907 (PATFETCH): Convert an eight-bit char to multibyte.
17908 (HANDLE_UNIBYTE_RANGE): New macro.
17909 (regex_compile): Setup the compiled pattern for multibyte chars
17910 even if the given regex string is unibyte. Use PATFETCH_RAW
17911 instead of PATFETCH in many places. To handle `charset'
17912 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17913 only for ASCII chars.
17914 (analyse_first) <exactn>: Simplify because the compiled pattern
17915 is multibyte.
17916 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17917 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17918 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17919 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17920 multibyte always 1.
17921 (re_search_2): In emacs, set the locale variable multibyte to 1,
17922 otherwise to 0. New local variable target_multibyte. Check it
17923 to decide the multibyteness of STR1 and STR2. If
17924 target_multibyte is zero, convert unibyte chars to multibyte
17925 before translating and checking fastmap.
17926 (TARGET_CHAR_AND_LENGTH): New macro.
17927 (re_match_2_internal): In emacs, set the locale variable multibyte
17928 to 1, otherwise to 0. New local variable target_multibyte. Check
17929 it to decide the multibyteness of STR1 and STR2. Use
17930 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17931 <charset, charset_not>: If multibyte is nonzero, check fastmap
17932 only for ASCII chars. Call bcmp_translate with
17933 target_multibyte, not with multibyte.
17934 <begline>: Declare the local variable C as `unsigned'.
17935 (bcmp_translate): Change the last arg name to target_multibyte.
17936
17937 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17938 the regexp pattern and the matching target. Set cp->buf.multibyte
17939 to the multibyteness of the regexp pattern. Set
17940 cp->but.target_multibyte to the multibyteness of the matching target.
17941 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17942 FETCH_STRING_CHAR_ADVANCE.
17943 (Freplace_match): Convert unibyte chars to multibyte.
17944
17945 * syntax.c (char_quoted, back_comment, scan_words)
17946 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17947 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17948 unibyte chars to multibyte.
17949 (skip_chars): Delete the arg syntaxp, and move the code for
17950 handling syntaxes to skip_syntaxes. Change callers.
17951 Fix the case that the multibyteness of STRING and the current
17952 buffer doesn't match.
17953 (skip_syntaxes): New function.
17954 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17955 SINGLE_BYTE_CHAR_P.
17956
179572008-02-01 Kenichi Handa <handa@m17n.org>
17958
17959 * xfaces.c (QCfontset): New variable.
17960 (LFACE_FONTSET): New macro.
17961 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17962 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17963 (Finternal_set_lisp_face_attribute)
17964 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17965 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17966 check also LFACE_FONTSET_INDEX.
17967 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17968 attrs[LFACE_FONT_INDEX].
17969 (syms_of_xfaces): Intern and staticpro QCfontset.
17970
17971 * dispextern.h (enum lface_attribute_index): New member
17972 LFACE_FONTSET_INDEX.
17973
17974 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17975
179762008-02-01 Kenichi Handa <handa@m17n.org>
17977
17978 * coding.c (coding_set_destination): Fix coding->destination for
17979 the case converting a region.
17980 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17981 (encode_coding_object): Fix coding->dst_pos and
17982 coding->dst_pos_byte for the case converting a region.
17983
17984 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17985
17986 * character.h (BYTE8_STRING): New macro.
17987
17988 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17989
179902008-02-01 Kenichi Handa <handa@m17n.org>
17991
17992 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17993 characters by octal form.
17994
17995 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17996
17997 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17998 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17999 _fetch_multibyte_char_len.
18000 (FETCH_CHAR_AS_MULTIBYTE): New macro.
18001
18002 * casetab.c (set_canon, set_identity, shuffle): Simplify.
18003
18004 * casefiddle.c (casify_object): Simplify. Handle the case that
18005 the case conversion change the byte length.
18006 (casify_region): Likewise.
18007
18008 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
18009
18010 * character.c (_fetch_multibyte_char_len): Delete this variable.
18011 (syms_of_character): Setup Vprintable_chars.
18012
18013 * editfns.c (Fchar_equal): Fix for the unibyte case.
18014 (Finsert_byte): New function.
18015 (syms_of_editfns): Defsubr it.
18016
18017 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
18018 of direct code 0x3ffff.
18019
18020 * search.c (Freplace_match): Fix for the unibyte case.
18021
180222008-02-01 Kenichi Handa <handa@m17n.org>
18023
18024 * lread.c (safe_to_load_p): Fix the logic.
18025
18026 * syntax.c (scan_words): Don't treat characters belonging to
18027 different scripts as constituting a word.
18028
18029 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18030
18031 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
18032
18033 * emacs.c (main): In the case of --unibyte, instead of aborting on
18034 finding non-empty buffer, make it unibyte.
18035
180362008-02-01 Kenichi Handa <handa@m17n.org>
18037
18038 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
18039 to create a fontset.
18040
180412008-02-01 Dave Love <fx@gnu.org>
18042
18043 * character.c (Funibyte_char_to_multibyte): Doc fix.
18044
18045 * xfns.c [HAVE_STDLIB_H]: Fix last change.
18046
180472008-02-01 Kenichi Handa <handa@m17n.org>
18048
18049 * fontset.c (fontset_add): Make the type `int'.
18050 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
18051
18052 * character.c (unibyte_char_to_multibyte)
18053 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
18054 charset_unibyte, not charset_primary.
18055
18056 * charset.h (charset_unibyte): Extern it instead of charset_primary.
18057
18058 * charset.c (charset_unibyte): Rename from charset_primary.
18059 (Funibyte_charset): Rename from Fprimary_charset.
18060 (Fset_unibyte_charset): Rename from Fset_primary_charset.
18061 (syms_of_charset): Adjust for the above changes.
18062
18063 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18064 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18065 it->multibyte_p is zero.
18066
18067 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
18068 Delete extern.
18069
180702008-02-01 Kenichi Handa <handa@m17n.org>
18071
18072 * coding.c (Fdefine_coding_system_internal): Fix category setting
18073 for a coding system of type iso-2022.
18074
180752008-02-01 Kenichi Handa <handa@m17n.org>
18076
18077 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
18078
180792008-02-01 Kenichi Handa <handa@m17n.org>
18080
18081 * syntax.c (Vnext_word_boundary_function_table): New variable.
18082 (next-word-boundary-function-table): Declare it as a Lisp variable
18083 in syms_of_syntax.
18084 (scan_words): Call functions in Vnext_word_boundary_function_table
18085 if any.
18086
18087 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
18088
18089 * fontset.c (fs_load_font): If fontp->charset is not negative,
18090 return fontp without setting its members.
18091
180922008-02-01 Dave Love <fx@gnu.org>
18093
18094 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
18095
18096 * m/sparc.h (HAVE_ALLOCA): Delete.
18097
18098 * s/irix6-5.h: Don't include strings.h.
18099 (bcopy, bzero, bcmp): Don't undef.
18100
18101 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
18102
18103 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
18104 (TIOCSIGSEND): Don't test IRIX6.
18105 (bcopy, bzero, bcmp): Define conditionally.
18106
181072008-02-01 Kenichi Handa <handa@m17n.org>
18108
18109 * buffer.c (Qas, Qmake, Qto): New variables.
18110 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
18111 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
18112
18113 * callproc.c (Fcall_process): Don't call insert_1_both directly if
18114 we are inserting a process output into a multibyte buffer.
18115
18116 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
18117 multibyte_char_to_unibyte.
18118
18119 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
18120 by the primary charset, make it eight-bit char.
18121 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
18122
18123 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
18124 (charset_8_bit__control, charset_8_bit_graphic)
18125 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
18126 (define_charset_internal): New function.
18127 (syms_of_charset): Call define_charset_internal for pre-defined
18128 charsets.
18129
18130 * charset.h (charset_8_bit): Extern it.
18131
18132 * coding.c (make_conversion_work_buffer): Adjust for the change
18133 of Fset_buffer_multibyte.
18134 (encode_coding_raw_text): Increment p0 in the loop.
18135
18136 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
18137
18138 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
18139 for the change of Fset_buffer_multibyte.
18140
18141 * fns.c (Fstring_to_multibyte): New function.
18142 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
18143
181442008-02-01 Dave Love <fx@gnu.org>
18145
18146 * xfns.c (x_put_x_image): Declare args.
18147
18148 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
18149 (try_font_list): Declare an arg.
18150
18151 * xdisp.c (message2_nolog, set_message): Declare an arg.
18152
18153 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
18154
18155 * syntax.c (scan_sexps_forward): Declare an arg.
18156
18157 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
18158 Declare an arg.
18159
18160 * lisp.h (Fnew_fontset): Declare.
18161
18162 * keymap.c (push_key_description): Call CHARACTERP correctly.
18163
18164 * fontset.c (fontset_add): Declare args. Call make_number correctly.
18165 (face_for_char): Delete unused vars.
18166 (Fset_fontset_font): Doc fix. Delete unused vars.
18167
18168 * doc.c (Fsubstitute_command_keys): Delete unused vars.
18169
18170 * composite.c (update_compositions): Declare arg.
18171
18172 * cm.c (calccost, cmgoto): Declare args.
18173
18174 * charset.c: Remove `emacs' conditional. Doc fixes.
18175 (map_char_table_for_charset): Declare.
18176
18177 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
18178
18179 * ccl.c: Remove `emacs' conditional.
18180
181812008-02-01 Kenichi Handa <handa@m17n.org>
18182
18183 The following changes are to allow specifying multiple font
18184 patterns for a character range (specified by script or charset).
18185
18186 * Makefile.in (abbrev.o): Depend on syntax.h.
18187 (xfaces.o): Depend on charset.h.
18188
18189 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
18190 SINGLE_BYTE_CHAR_P.
18191
18192 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
18193
18194 * character.h (Vchar_script_table): Extern it.
18195
18196 * character.c (Vscript_alist): Delete.
18197 (Vchar_script_table, Qchar_script_table): New variable.
18198 (syms_of_character): Declare Vchar_script_table as a lisp variable
18199 and initialize it.
18200
18201 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
18202 have property char-table-extra-slots, make no extra slot.
18203
18204 * dispextern.h (struct face): Delete member `charset'.
18205 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
18206 SINGLE_BYTE_CHAR_P.
18207 (choose_face_font, lookup_non_ascii_face, font_name_registry):
18208 Add prototypes.
18209 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
18210 (generate_ascii_font_name): Rename from generate_ascii_font.
18211
18212 * fontset.h (get_font_repertory_func): New prototype.
18213 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
18214 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
18215
18216 * fontset.c (Qprepend, Qappend): New variables.
18217 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
18218 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
18219 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
18220 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
18221 (fontset_ref_and_range, fontset_add, reorder_font_vector)
18222 (load_font_get_repertory): New functions.
18223 (fontset_set): Delete.
18224 (fontset_face): New arg FACE. Return face ID, not face.
18225 Complete re-write to handle new fontset structure. Change caller.
18226 (free_face_fontset): Use ASET istead of AREF (X) = Y.
18227 (face_for_char): Don't call lookup_face.
18228 (make_fontset_for_ascii_face): New arg FACE.
18229 (fs_load_font): New arg CHARSET_ID. Don't check
18230 Vfont_encoding_alist here.
18231 (find_font_encoding): New function.
18232 (list_fontsets): Use STRINGP, not ! NILP.
18233 (accumulate_script_ranges): New function.
18234 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
18235 re-written to handle new fontset structure.
18236 (Ffontset_font): Return a copy of element.
18237 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
18238 docstring of font-encoding-alist.
18239
18240 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
18241 (Fset_fotset_font): Fix arguments to 5.
18242
18243 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
18244
18245 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
18246 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18247 (highlight_trailing_whitespace): Adjust for the change of
18248 lookup_named_face.
18249
18250 * xfaces.c: Include charset.h.
18251 (load_face_font): Delete argument C. Change caller.
18252 (generate_ascii_font_name): Rename from generate_ascii_font.
18253 (font_name_registry): New function.
18254 (cache_face): Store ascii faces before non-ascii faces in buckets.
18255 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
18256 Lookup only ascii faces.
18257 (lookup_non_ascii_face): New function.
18258 (lookup_named_face): Delete argument C. Change caller.
18259 (lookup_derived_face): Delete argument C. Change caller.
18260 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
18261 a string, just call font_list with it.
18262 (choose_face_font): Delete arguments FACE and C. New arg
18263 FONT_SPEC. Change caller.
18264 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
18265 Change caller.
18266 (realize_non_ascii_face): New function.
18267 (realize_x_face): Call load_face_font here.
18268 (realize_tty_face): Delete argument C. Change caller.
18269 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
18270 get a face ID.
18271 (dump_realized_face): Don't print charset of FACE.
18272
18273 * xfns.c (x_set_font): Always call x_new_fontset and
18274 store_frame_parameter.
18275 (Fx_create_frame): Call x_new_fontset, not x_new_font.
18276 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
18277
18278 * xterm.h (x_get_font_repertory): Extern it.
18279
18280 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18281 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18282 it->multibyte_p is zero.
18283 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18284 (x_new_fontset): If FONTSETNAME doesn't match any existing
18285 fontsets, create a new one.
18286 (x_get_font_repertory): New function.
18287
182882008-02-01 Kenichi Handa <handa@m17n.org>
18289
18290 * coding.c (Ffind_coding_systems_region_internal): Detect an
18291 ASCII only string correctly.
18292
18293 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
18294 version is 0.
18295
182962008-02-01 Kenichi Handa <handa@m17n.org>
18297
18298 * lread.c: Include "coding.h".
18299 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
18300 (load_each_byte, unread_char): New variables.
18301 (readchar_backlog): Delete.
18302 (readchar): Return a character unless load_each_byte is nonzero.
18303 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
18304 cons. If unread_char is not -1, simply return it.
18305 (unreadchar): Handle the case that readcharfun is
18306 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
18307 (read_multibyte): Delete.
18308 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
18309 (read_emacs_mule_char): New functions.
18310 (Fload): Even if the file doesn't have the extension ".elc", if
18311 safe_to_load_p returns a positive version number, assume that the
18312 file contains bytecompiled code. If the version is less than 22,
18313 load the file while decoding multibyte sequences by emacs-mule.
18314 (readevalloop): Don't use readchar_backlog.
18315 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
18316 (Fread_from_string): Pay attention to the case that STREAM is a cons.
18317 (read_escape): Delete the arg BYTEREP.
18318 (read1): Set load_each_byte to 1 temporarily while handling
18319 #@NUMBER. Don't call read_multibyte.
18320 (read_vector): Call Fread with a cons. If readcharfun is
18321 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
18322 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
18323 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
18324 and Qload_force_doc_strings.
18325
183262008-02-01 Kenichi Handa <handa@m17n.org>
18327
18328 * xdisp.c (face_before_or_after_it_pos): Call
18329 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
18330
183312008-02-01 Kenichi Handa <handa@m17n.org>
18332
18333 * character.h (TRAILING_CODE_P): New macro.
18334 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
18335 (string_char_with_unification): Fix prototype.
18336 (Vscript_alist): Extern it.
18337
18338 * character.c (Vscript_alist): New variable.
18339 (string_char_with_unification, str_as_unibyte)
18340 (string_escape_byte8): Add `const' to local variables.
18341 (syms_of_character): Declare script-alist as a Lisp variable.
18342
18343 * charset.h (Vcharset_ordered_list): Extern it.
18344 (charset_ordered_list_tick): Extern it.
18345 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
18346 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
18347 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
18348 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
18349 (Funify_charset): Adjust for the change of Funify_charset.
18350
18351 * charset.c (charset_ordered_list_tick): New variable.
18352 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
18353 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
18354 deunify intead of unify a charset.
18355 (string_xstring_p): Add `const' to local variables.
18356 (find_charsets_in_text): Add `const' to arguments and local variables.
18357 (encode_char): Adjust for the change of Funify_charset. Fix
18358 detecting of invalid code.
18359 (Fset_charset_priority): Increment charset_ordered_list_tick.
18360 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
18361 and TO_CODE.
18362
18363 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
18364 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
18365 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
18366 (decode_coding_ccl, consume_chars)
18367 (Ffind_coding_systems_region_internal)
18368 (Fcheck_coding_systems_region): Add `const' to local variables.
18369
18370 * print.c (print_object): Use octal form for printing the
18371 contents of a bool vector.
18372
183732008-02-01 Dave Love <fx@gnu.org>
18374
18375 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
18376 <version == 20>: Refuse to load.
18377
183782008-02-01 Dave Love <fx@gnu.org>
18379
18380 * fns.c: Move coding.h.
18381 (Qcodeset, Qdays, Qmonths): New.
18382 (concat): Use CHARACTERP instead of INTEGERP.
18383 (Flocale_codeset): Delete.
18384 (Flanginfo): New function.
18385 (syms_of_fns): Change accordingly.
18386
18387 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
18388
183892008-02-01 Dave Love <fx@gnu.org>
18390
18391 * casetab.c (init_casetab_once, init_casetab_once): Fix
18392 CHAR_TABLE_SET call.
18393
18394 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
18395
18396 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
18397
18398 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
18399 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
18400 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
18401
18402 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
18403
18404 * coding.c (ENCODE_DESIGNATION, decode_eol)
18405 (make_conversion_work_buffer, code_conversion_restore)
18406 (Fdefine_coding_system_internal): Convert Lisp types.
18407 (code_conversion_restore): Use EQ, not ==.
18408 (Fencode_coding_string): Fix code_convert_string call.
18409
18410 * coding.h (code_convert_region): Fix prototype.
18411
18412 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
18413
18414 * fontset.c (fontset_ref, fontset_set, fs_load_font)
18415 (Ffontset_info): Convert Lisp types.
18416
18417 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
18418
18419 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
18420
18421 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
18422
18423 * chartab.c: Include "...h", not <...h> in some cases.
18424
18425 * callproc.c (Fcall_process): Remove unused variables.
18426
184272008-02-01 Dave Love <fx@gnu.org>
18428
18429 * coding.c (Fset_coding_system_priority): Allow null arg list.
18430
184312008-02-01 Dave Love <fx@gnu.org>
18432
18433 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18434 (Fself_insert_and_exit): Use CHARACTERP.
18435
18436 * callproc.c (Fcall_process): Remove unused vars.
18437
18438 * xterm.c (XTread_socket): Add extra dead keysyms.
18439
18440 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
18441
18442 * dispextern.h: Remove prototypes for redraw_frame,
18443 redraw_garbaged_frames.
18444
18445 * cmds.c (Fself_insert_command): Use CHARACTERP.
18446
18447 * chartab.c (make_sub_char_table): Remove unused var.
18448 (Fset_char_table_default, Fmap_char_table): Doc fix.
18449
18450 * keymap.c (access_keymap): Remove generic char code.
18451 (push_key_description): Use CHARACTERP.
18452
184532008-02-01 Dave Love <fx@gnu.org>
18454
18455 * charset.c: Doc fixes.
18456 (Funify_charset): Extra checking.
18457
184582008-02-01 Dave Love <fx@gnu.org>
18459
18460 * lread.c: Remove some unused variables.
18461 (safe_to_load_p): If safe, return the magic number version byte.
18462 (Fload): Maybe use load-with-code-conversion.
18463
184642008-02-01 Kenichi Handa <handa@m17n.org>
18465
18466 * category.c (Fmodify_category_entry): Don't modify the contents
18467 of category_set for characters out of the range. Avoid
18468 unnecessary modification.
18469
18470 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
18471 Vchar_unify_table. The default value of the table is now nil.
18472
18473 * character.c (syms_of_character): Setup Vchar_width_table for
18474 eight-bit-control and raw-byte chars.
18475
18476 * charset.h (enum define_charset_arg_index): Delete
18477 charset_arg_parents and add charset_arg_subset and
18478 charset_arg_superset.
18479 (enum charset_attr_index): Delete charset_parents and add
18480 charset_subset and charset_superset.
18481 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
18482 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
18483 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
18484 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
18485 (CHARSET_SUPERSET): New macros.
18486 (charset_work): Extern it.
18487 (ENCODE_CHAR): Use charset_work.
18488 (CHAR_CHARSET_P): Adjust for the change of encoder format.
18489 (map_charset_chars): Extern it.
18490
18491 * charset.c (load_charset_map): Set the default value of encoder
18492 and deunifier char-tables to nil.
18493 (map_charset_chars): Change argument. Change callers. Use
18494 map_char_table_for_charset instead of map_char_table.
18495 (Fmap_charset_chars): New optional args from_code and to_code.
18496 (Fdefine_charset_internal): Adjust for the change of
18497 `define-charset' (:parents -> :subset or :superset).
18498 (charset_work): New variable.
18499 (encode_char, syms_of_charset): Adjust for the change of
18500 Fdefine_charset_internal.
18501 (Ffind_charset_string): Setup the vector `charsets' correctly.
18502
18503 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
18504 the previous change.
18505 (char_table_ref_and_range): Adjust for the above change.
18506 (map_sub_char_table_for_charset): New function.
18507 (map_char_table_for_charset): New function.
18508
18509 * keymap.c (describe_vector): Handle a char-table directly here.
18510 (describe_char_table): Delete.
18511
18512 * lisp.h (map_charset_chars): Delete.
18513
185142008-02-01 Dave Love <fx@gnu.org>
18515
18516 * fns.c (count_combining): Comment out (unused).
18517 (Flocale_codeset): New.
18518 (syms_of_fns): Defsubr it.
18519
18520 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
18521 (size_t): Remove.
18522
185232008-02-01 Dave Love <fx@gnu.org>
18524
18525 * Makefile.in (chartab.o): Depend on charset.h.
18526
185272008-02-01 Kenichi Handa <handa@m17n.org>
18528
18529 * character.c (syms_of_character): Set the default value of
18530 Vprintable_chars to Qnil.
18531
185322008-02-01 Dave Love <fx@gnu.org>
18533
18534 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
18535
185362008-02-01 Kenichi Handa <handa@m17n.org>
18537
18538 * charset.c (load_charset_map): Handle the case that from < to
18539 correctly.
18540
18541 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
18542 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
18543 Pay attention to raw-8-bit chars.
18544
185452008-02-01 Kenichi Handa <handa@m17n.org>
18546
18547 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
18548 It is not bytecompiled now.
18549
18550 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
18551 (charset_jisx0208): New variables.
18552 (Fdefine_charset_internal): Setup them if appropriate.
18553 (init_charset_once): Initialize them to -1.
18554
18555 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
18556 (charset_jisx0208): Extern them.
18557
18558 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
18559 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
18560 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
18561 (setup_iso_safe_charsets): Fix arguments to Fassq.
18562 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
18563 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
18564 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
18565 (encode_coding_iso_2022): Change the 1st arg to
18566 ENCODE_ISO_CHARACTER to a variable.
18567
185682008-02-01 Kenichi Handa <handa@m17n.org>
18569
18570 * charset.h (enum define_charset_arg_index): New enums
18571 charset_arg_min_code and charset_arg_max_code.
18572 (struct charset): New member char_index_offset.
18573
18574 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
18575 Take charset->char_index_offset into account.
18576 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
18577 args[charset_arg_max_code]. Setup charset.char_index_offset.
18578 (syms_of_charset): Fix args to Fdefine_charset_internal.
18579
185802008-02-01 Dave Love <fx@gnu.org>
18581
18582 * coding.c (decode_coding_utf_8): Reject overlong sequences.
18583
185842008-02-01 Dave Love <fx@gnu.org>
18585
18586 * coding.c: Doc fixes.
18587 (Fcoding_system_aliases): Fix return value.
18588 (Qmac): Remove (duplicated) definition.
18589
185902008-02-01 Dave Love <fx@gnu.org>
18591
362654a6
JB
18592 * charset.c (Fcharset_priority_list, Fset_charset_priority):
18593 New functions.
aac0c6e3
MR
18594
18595 * character.c (Fstring): Doc fix.
18596
18597 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
18598
362654a6 18599 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
18600 (font-encoding-alist): Doc fix.
18601
186022008-02-01 Dave Love <fx@gnu.org>
18603
18604 * term.c (costs_set): Declare static, non-initialized for pcc.
18605 (encode_terminal_code): Remove unused var.
18606
18607 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18608 for K&R.
18609
18610 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
18611
18612 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
18613 (suffixes): Move out of make_subsidiaries for K&R.
18614
18615 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
18616
18617 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
18618
186192008-02-01 Dave Love <fx@gnu.org>
18620
18621 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
18622
18623 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
18624
186252008-02-01 Yong Lu <lyongu@asia-infonet.com>
18626
18627 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
18628
18629 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
18630
186312008-02-01 Kenichi Handa <handa@m17n.org>
18632
18633 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
18634 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
18635
186362008-02-01 Kenichi Handa <handa@m17n.org>
18637
18638 * coding.c (decode_coding_charset): Adjust for the change of
18639 Fdefine_coding_system_internal.
18640 (Fdefine_coding_system_internal): For a coding system of
18641 `charset' type, store a list of charset IDs in
18642 `charset_attr_charset_valids' element of coding attributes.
18643
186442008-02-01 Kenichi Handa <handa@m17n.org>
18645
18646 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
18647 (emacs_mule_char): New arg src. Delete arg `composition'. Change
18648 caller. Handle 2-byte and 3-byte charsets correctly.
18649 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
18650 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
18651 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
18652 (DECODE_EMACS_MULE_21_COMPOSITION): Call
18653 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
18654 sequence.
18655 (decode_coding_emacs_mule): Handle composition correctly. Rewind
18656 `src' and `consumed_chars' correctly before calling emacs_mule_char.
18657 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
18658 and alt&rule composition.
18659 (decode_coding_iso_2022): Handle composition correctly.
18660 (init_coding_once): Setup emacs_mule_bytes for private charsets.
18661
18662 * charset.c (Fdefine_charset_internal): Fix bug for the case of
18663 re-defining a charset. If the charset has :emacs-mule-id, setup
18664 emacs_mule_bytes.
18665 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18666
186672008-02-01 Kenichi Handa <handa@m17n.org>
18668
18669 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18670 (encode_coding_big5, encode_coding_charset): If coding requires safe
18671 encoding, produce a character specified by
18672 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18673
186742008-02-01 Dave Love <fx@gnu.org>
18675
18676 * xterm.c (XSetIMValues): Declare.
18677
18678 * process.c: Conditionally include sys/wait.h, pty.h.
18679
18680 * print.c (print_object): Fix print format for 64-bit systems.
18681
18682 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18683
18684 * buffer.c (emacs_strerror): Declare.
18685
18686 * fontset.c (Fclear_face_cache): Declare.
18687 (accumulate_font_info): Comment-out (unused).
18688 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18689 variables.
18690
18691 * character.h (string_escape_byte8): Declare.
18692
18693 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18694 unused vars.
18695 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18696 (Fmap_charset_chars): Doc fix.
18697
18698 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18699 (Fset_coding_system_priority, Fset_coding_system_priority)
18700 (Fdefine_coding_system_internal): Doc fix.
18701
187022008-02-01 Dave Love <fx@gnu.org>
18703
18704 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18705
187062008-02-01 Kenichi Handa <handa@m17n.org>
18707
18708 * character.c (string_escape_byte8): Make multibyte string with
18709 correct size.
18710
18711 * charset.c (Fmake_char): Delete unnecessary code.
18712
187132008-02-01 Kenichi Handa <handa@m17n.org>
18714
18715 * xfns.c (x_encode_text): Allocate coding.destination here, and
18716 call encode_coding_object with dst_object Qnil.
18717
18718 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18719 multibyte form correctly.
18720
18721 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18722 against Vfont_encoding_alist.
18723
18724 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18725 handling of charset list.
18726 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18727 (decode_coding_object): Move point to coding->dst_pos before
18728 calling post-read-conversion function.
18729 (encode_coding_object): Give correct arguments to
18730 pre-write-conversion. Ignore the return value of
18731 pre-write-conversion function. Pay attention to the case that
18732 pre-write-conversion changes the current buffer. If dst_object is
18733 Qt, even if coding->src_bytes is zero, allocate at least one byte
18734 to coding->destination.
18735
18736 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18737
18738 * charset.c (Fmake_char): Make it more backward compatible.
18739 (Fmap_charset_chars): Fix docstring.
18740
187412008-02-01 Dave Love <fx@gnu.org>
18742
18743 * coding.c: Doc fixes.
18744 (Fdefine_coding_system_alias): Use names, not symbols, in
18745 coding-system-alist.
18746
187472008-02-01 Kenichi Handa <handa@m17n.org>
18748
18749 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18750 of calling free_realized_face.
18751
187522008-02-01 Yong Lu <lyongu@asia-infonet.com>
18753
18754 * charset.c (read_hex): Don't treat SPC as a comment starter.
18755 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18756 (Fdecode_char): Fix typo.
18757
187582008-02-01 Kenichi Handa <handa@m17n.org>
18759
18760 * charset.h (struct charset): New member `code_space_mask'.
18761
18762 * coding.c (coding_set_source): Delete the local variable beg_byte.
18763 (encode_coding_charset, Fdefine_coding_system_internal):
18764 Delete the local variable charset.
18765 (Fdefine_coding_system_internal): Setup
18766 attrs[coding_attr_charset_valids] correctly.
18767
18768 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18769 member to check if CODE is valid or not.
18770 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18771 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18772 is within the range of charset->min_code and carset->max_code.
18773
187742008-02-01 Dave Love <fx@gnu.org>
18775
18776 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18777
18778 * dispextern.h (generate_ascii_font): Fix return type.
18779
18780 * xfaces.c (generate_ascii_font): Fix arg declaration.
18781
18782 * coding.c (coding_inherit_eol_type)
18783 (Fset_terminal_coding_system_internal)
18784 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18785
187862008-02-01 Kenichi Handa <handa@m17n.org>
18787
18788 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18789 multiple charsets correctly.
18790
187912008-02-01 Kenichi Handa <handa@m17n.org>
18792
18793 * search.c (boyer_moore): Fix handling of multibyte character
18794 translation.
18795
18796 * xdisp.c (display_mode_element): When the variable `elt' is
18797 changed, update `this' and `lisp_string'.
18798
187992008-02-01 Kenichi Handa <handa@m17n.org>
18800
18801 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18802
18803 * callproc.c (Fcall_process): Be sure to give the current buffer
18804 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18805
18806 * charset.c (struct charset_map_entries): New struct.
18807 (load_charset_map): Rename from parse_charset_map. New args
18808 entries and n_entries. Change caller.
18809 (load_charset_map_from_file): Rename from load_charset_map.
18810 Change caller. New arg control_flag. Call load_charset_map at
18811 the tail.
18812 (load_charset_map_from_vector): New function.
18813 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18814 (encode_char): If the charset is compact, change a character index
18815 to a code point.
18816
18817 * coding.c (coding_alloc_by_making_gap): Check the case that the
18818 source and destination are the same correctly.
18819 (decode_coding_raw_text): Set coding->consumed_char and
18820 coding->consumed to 0.
18821 (produce_chars): If coding->chars_at_source is nonzero, update
18822 coding->consumed_char and coding->consumed before calling
18823 alloc_destination.
18824 (Fdefine_coding_system_alias): Register ALIAS in
18825 Vcoding_system_alist.
18826 (syms_of_coding): Define `no-conversion' coding system at the tail.
18827
18828 * fileio.c (Finsert_file_contents): Set coding_system instead of
18829 val. If the current buffer is multibyte, always call
18830 decode_coding_gap.
18831
18832 * xfaces.c (try_font_list): Give higher priority to fontset's
18833 family than face's family.
18834
188352008-02-01 Kenichi Handa <handa@m17n.org>
18836
18837 * callproc.c (Fcall_process): Be sure to give the current buffer
18838 to decode_coding_c_string.
18839
18840 * xfaces.c (try_font_list): Give a family specified in a fontset
18841 higher priority than a family specified in a face.
18842
188432008-02-01 Kenichi Handa <handa@m17n.org>
18844
18845 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18846 Fix arguments to insert_from_buffer.
18847
18848 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18849
188502008-02-01 Kenichi Handa <handa@m17n.org>
18851
18852 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18853 (decode_coding_gap): Set coding->dst_multibyte correctly.
18854
188552008-02-01 Kenichi Handa <handa@m17n.org>
18856
18857 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18858 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18859 (encode_coding_utf_16): Substitute coding->default_char for
18860 non-Unicode characters.
18861 (decode_coding): Don't call record_insert here.
18862 (setup_coding_system): Initialize `surrogate' of
18863 coding->spec.utf_16 to 0.
18864 (EMIT_ONE_BYTE): Fix for multibyte case.
18865
18866 * insdel.c (insert_from_gap): Call record_insert.
18867
188682008-02-01 Kenichi Handa <handa@m17n.org>
18869
18870 * casefiddle.c (casify_region): Fix multibyte case.
18871
18872 * character.c (c_string_width): Add return type `int'.
18873 (char_string_with_unification): Delete arg ADVANCED.
18874
18875 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18876 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18877 (CHAR_STRING_ADVANCE): Make it do-while statement.
18878
18879 * chartab.c (sub_char_table_set_range): Optimize for the case
18880 DEPTH == 3. Add workaround code for a GCC optimization bug.
18881
18882 * charset.c (parse_charset_map): Remove an unused variable.
18883
18884 * coding.c: Delete unused variables.
18885
18886 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18887 earlier. If inserted is zero and the coding system doesn't
18888 require flushing, don't call decode_coding_gap.
18889
18890 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18891
188922008-02-01 Kenichi Handa <handa@m17n.org>
18893
18894 The following changes are for using Unicode as an internal
18895 character model, and use UTF-8 format for buffer/string
18896 representation.
18897
18898 * .gdbinit (xchartable): Adjust for the change of char table structure.
18899 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18900
18901 * Makefile.in (obj): Add character.o and chartab.o.
18902 (lisp, shortlisp): Remove utf-8.elc.
18903 (*.o): For many files, change dependency on charset.h to
18904 character.h, and add dependency on character.h.
18905 (character.o, chartab.o): New targets.
18906
18907 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18908 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18909 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18910 of "charset.h".
18911
18912 * dired.c, filelock.c: Include "character.h".
18913
18914 * alloc.c: Include "character.h" instead of "charset.h".
18915 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18916 (syms_of_alloc): Remove defsubr for Smake_char_table.
18917
18918 * buffer.c: Include "character.h" instead of "charset.h", don't
18919 include "coding.h".
18920 (Fset_buffer_multibyte): Adjust for UTF-8.
18921
18922 * buffer.h: EXFUN Fbuffer_live_p.
18923
18924 * callproc.c: Include "character.h" instead of "charset.h".
18925 (Fcall_process): Big change for the new code-conversion APIs.
18926
18927 * casetab.c: Include "character.h" instead of "charset.h".
18928 (set_canon, set_identity, shuffle): Adjust for the new
18929 map_char_table spec.
18930 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18931 accessing the char table structure.
18932
18933 * chartab.c: New file that implements char table.
18934
18935 * category.c: Include "character.h".
18936 (copy_category_entry): New function.
18937 (copy_category_table): Call map_char_table and copy_category_entry.
18938 (Fmake_category_table): Initialize all top-level slots.
18939 (char_category_set): New function.
18940 (modify_lower_category_set): Delete.
18941 (Fmodify_category_entry): Call char_table_ref_and_range.
18942
18943 * category.h (CATEGORY_SET): Just call char_category_set.
18944
18945 * ccl.c: Include "character.h".
18946 (Qccl, Qcclp): New variables.
18947 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18948 it's less than 256.
18949 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18950 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18951 and DST type.
18952 (ccl_driver): Change types of argument, adjust code accordingly.
18953 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18954 ccl_driver.
18955 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18956
18957 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18958 New members src_multibyte, dst_multibyte, consumed, and produced.
18959 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18960 (CODING_SPEC_CCL_PROGRAM): New macro.
18961 (ccl_driver): Update prototype.
18962 (Qccl, Qcclp, Fccl_program_p): Extern them.
18963 (CHECK_CCL_PROGRAM): New macro.
18964
18965 * character.c, character.h, chartab.c: New files.
18966
18967 * charset.c: Mostly re-written. Move character and multibyte sequence
18968 handling codes to character.c.
18969
18970 * charset.h: Mostly re-written. Move character and multibyte sequence
18971 handling codes to character.h.
18972
18973 * coding.c, coding.h: Mostly re-written.
18974
18975 * composite.c: Include "character.h" instead of "charset.h".
18976 (CHAR_WIDTH): Move to character.h.
18977 (HASH_KEY, HASH_VALUE): Delete.
18978
18979 * composite.h (enum composition_method): Change order of enumeration
18980 symbols.
18981
18982 * data.c: Include "character.h" instead of "charset.h".
18983 (Faref): Call CHAR_TABLE_REF for a char table.
18984 (Faset): Call CHAR_TABLE_SET for a char table.
18985
18986 * dispextern.h (free_realized_face, check_face_attribytes)
18987 (generate_ascii_font): Extern them.
18988 (free_realized_multibyte_face): Delete extern.
18989
18990 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18991 table structure.
18992
18993 * editfns.c: Include "character.h" instead of "charset.h".
18994 (Fchar_to_string): Always call CHAR_STRING.
18995
18996 * emacs.c (main): Call init_charset_once, init_charset,
18997 syms_of_chartab, and syms_of_character.
18998
18999 * fileio.c: Include "character.h" instead of "charset.h".
19000 (Finsert_file_contents): Big change for the new code-conversion API.
19001 (choose_write_coding_system, Fwrite_region): Likewise.
19002 (build_annotations_2): Delete.
19003 (e_write): Big change for the new code-conversion API.
19004
19005 * fns.c: Include "character.h" instead of "charset.h".
19006 (copy_sub_char_table): Move to chartab.c.
19007 (Fcopy_sequence): Call copy_char_table for a char table.
19008 (concat): Delete codes calling count_multibyte.
19009 (string_char_to_byte, string_byte_to_char): Adjust for the new
19010 multibyte form.
19011 (internal_equal): Adjust for the change of char table structure.
19012 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
19013 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
19014 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
19015 (char_table_translate, optimize_sub_char_table)
19016 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
19017 chartab.c.
19018 (char_table_ref_and_index): Delete.
19019 (HASH_KEY, HASH_VALUE): Move to lisp.h.
19020 (Fmd5): Call preferred_coding_system instead of accessing
19021 Vcoding_category_list. Adjust for the new code-conversion API.
19022 (syms_of_fns): Move defsubr for char table related functions to
19023 chartab.c.
19024
19025 * fontset.c: Mostly re-written.
19026
19027 * fontset.h (struct font_info): Change type of the member encoding_type.
19028 (enum FONT_SPEC_INDEX): New enum.
19029 (fontset_font_pattern, fs_load_font): Update prototype.
19030 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
19031
19032 * indent.c: Include "character.h" instead of "charset.h".
19033 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
19034
19035 * insdel.c: Include "character.h" instead of "charset.h".
19036 (copy_text): Don't refer to Vnonascii_translation_table.
19037 (insert_from_gap): New function.
19038
19039 * keyboard.c: Include "character.h" instead of "charset.h".
19040 (command_loop_1): Never call direct_output_forward_char before
19041 a non-ASCII character.
19042 (read_char): If Vkeyboard_translate_table is a char table, always
19043 translate a character.
19044
19045 * keymap.c: Include "character.h".
19046 (store_in_keymap): Handle the case that IDX is a cons.
19047 (Fdefine_key): Handle the case that KEY is a cons and the car part
19048 is also a cons (range).
19049 (push_key_description): Adjust for the new character code.
19050 (describe_vector): Call describe_char_table for a char table.
19051 (describe_char_table): New function.
19052
19053 * keymap.h (describe_char_table): Extern it.
19054
19055 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
19056 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
19057 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
19058 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
19059 Delete.
19060 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
19061 structure.
19062 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
19063 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
19064 (CHARTAB_SIZE_BITS_3): New macros.
19065 (chartab_size): Extern it.
19066 (struct Lisp_Char_Table): Re-design.
19067 (struct Lisp_Sub_Char_Table): New structure.
19068 (HASH_KEY, HASH_VALUE): Move from fns.c.
19069 (CHARACTERBITS): Define as 22.
19070 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
19071 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
19072 (GC_SUB_CHAR_TABLE_P): New macro.
19073 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
19074 (code_convert_string_norecord): Deleted extern.
19075 (init_character_once, syms_of_character, init_charset)
19076 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
19077
19078 * lread.c: Include "character.h".
19079 (read_multibyte): New arg NBYTES.
19080 (read_escape): Change the meaning of returned *BYTEREP.
19081 (to_multibyte): Delete.
19082 (read1): Adjust the handling of char table and string.
19083
19084 * print.c: Include "character.h" instead of "charset.h".
19085 (print_string): Convert 8-bit raw bytes to octal form by
19086 string_escape_byte8.
19087 (print_object): Adjust for the new multibyte form. Print 8-bit
19088 raw bytes always in octal form. Handle sub char table correctly.
19089
19090 * process.c: Include "character.h" instead of "charset.h".
19091 (read_process_output, send_process): Adjust for the new
19092 code-conversion API.
19093
19094 * puresize.h (BASE_PURESIZE): Increase.
19095
19096 * regex.c: Include "character.h" instead of "charset.h".
19097 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
19098 (regex_compile): Accept a range whose starting and ending
19099 character have different leading bytes.
19100 (analyse_first): Adjust for the above change.
19101
19102 * search.c: Include "character.h" instead of "charset.h".
19103 (search_buffer, boyer_moore): Adjust for the new multibyte form.
19104 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
19105
19106 * syntax.c: Include "character.h" instead of "charset.h".
19107 (syntax_parent_lookup): Delete.
19108 (Fmodify_syntax_entry): Accept a cons as CHAR.
19109 (skip_chars): Adjust for the new multibyte form.
19110 (init_syntax_once): Call char_table_set_range instead of directly
19111 accessing the structure of a char table.
19112
19113 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
19114 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
19115 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
19116 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
19117
19118 * term.c: Include "buffer.h" and "character.h".
19119 (encode_terminal_code, write_glyphs): Adjust for the new
19120 code-conversion API.
19121 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
19122
19123 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
19124
19125 * xdisp.c: Include "character.h".
19126 (get_next_display_element): Adjust for the new multibyte form.
19127 (disp_char_vector): Adjust for the new char table structure.
19128 (decode_mode_spec_coding): Adjust for the new structure of
19129 coding system.
19130 (decode_mode_spec): Adjust for the new code-conversion API.
19131
19132 * xfaces.c: Include "character.h" instead of "charset.h".
19133 (load_face_font): Adjust for the change of choose_face_font and
19134 FS_LOAD_FONT.
19135 (generate_ascii_font): New function.
19136 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
19137 (set_font_frame_param): Adjust for the change of choose_face_font.
19138 (free_realized_face): Make it public.
19139 (free_realized_faces_for_fontset): Rename from
19140 free_realized_multibyte_face. Free also faces realized for ASCII.
19141 (choose_face_font): Change arguments. Adjust for the change of
19142 fontset_font_pattern and FS_LOAD_FONT.
19143
19144 * xfns.c: Include "character.h".
19145 (x_encode_text): Adjust for the new code-conversion API.
19146
19147 * xselect.c: Don't include "charset.h".
19148 (selection_data_to_lisp_data): Adjust for the new code conversion API.
19149
19150 * xterm.c: Include "character.h".
19151 (x_encode_char): New argument CHARSET. Change caller.
19152 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
19153 Call ENCODE_CHAR instead of SPLIT_CHAR.
19154 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
19155 CHAR_WIDTH instead of CHARSET_WIDTH.
19156 (XTread_socket): Adjust for the new code-conversion API.
19157 (x_new_font): Adjust for the change of FS_LOAD_FONT.
19158 (x_load_font): Adjust for the change of struct font.
19159
191602008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19161
19162 * xfaces.c (face_at_buffer_position): Remove unused vars.
19163
191642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19165
19166 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
19167 Fix overflow checking.
19168
191692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19170
19171 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
19172 Cancel previous change.
19173
191742008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19175
19176 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
19177 ccl->eight_bit_control. Fix check for buffer overflow.
19178 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
19179 (ccl_driver): Initialize extra_bytes to 0.
19180
191812008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19182
19183 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
19184 return it ORed with ctrl_modifier.
19185
191862008-01-29 Miles Bader <miles@gnu.org>
19187
19188 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
19189
191902008-01-28 Jason Rumney <jasonr@gnu.org>
19191
19192 * w32.c (stat): Don't double check for networked drive.
19193
191942008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
19195
19196 * window.c (run_window_configuration_change_hook): New function.
19197 Code extracted from set_window_buffer. Set the selected frame.
19198 (set_window_buffer): Use it.
19199 * window.h (run_window_configuration_change_hook): Declare.
19200 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
19201
19202 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
19203
192042008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
19205
19206 * Makefile.in: Remove references to unused macros.
19207
192082008-01-26 Eli Zaretskii <eliz@gnu.org>
19209
19210 * w32.c (g_b_init_get_sid_sub_authority)
19211 (g_b_init_get_sid_sub_authority_count): New static variables.
19212 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
19213 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
19214 (init_user_info): Use them to retrieve uid and gid.
19215 Use 500/513, the Windows defaults, as Administrator's uid/gid.
19216 (fstat): Use pw_uid and pw_gid from the_passwd structure for
19217 st_uid and st_gid of the file.
19218
192192008-01-26 Jason Rumney <jasonr@gnu.org>
19220
19221 * w32.c (logon_network_drive): New function.
19222 (stat): Use it.
19223
192242008-01-26 Chong Yidong <cyd@stupidchicken.com>
19225
19226 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
19227 invisible text covered with an ellipsis.
19228
192292008-01-25 Richard Stallman <rms@gnu.org>
19230
19231 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
19232 jump back to beginning. Move some other initializations after that.
19233 (Qwindow_text_change_functions, Vwindow_text_change_functions):
19234 New variables.
19235 (syms_of_xdisp): Init them.
19236
19237 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
19238
19239 * buffer.c (reset_buffer_local_variables):
19240 Implement `permanent-local-hook'.
19241 (Qpermanent_local_hook): New variable.
19242 (syms_of_buffer): Init and staticpro it.
19243
192442008-01-25 Michael Albinus <michael.albinus@gmx.de>
19245
19246 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
19247
192482008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
19249
19250 * fns.c (Fclrhash): Return TABLE.
19251
192522008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19253
19254 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
19255 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
19256 is set even without positional changes.
19257 (x_scroll_bar_clear): Set bar->redraw_needed_p.
19258
19259 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
19260
192612008-01-23 Jason Rumney <jasonr@gnu.org>
19262
19263 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
19264
19265 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
19266 the unicode range available in MULE by locale-coding-system.
19267 Improve dbcs lead byte detection. Set event timestamp and modifiers
19268 earlier.
19269
192702008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19271
19272 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
19273 [MAC_OSX] (init_mac_osx_environment): Initialize it.
19274 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
19275 when used on child processes.
19276
192772008-01-21 Michael Albinus <michael.albinus@gmx.de>
19278
19279 * dbusbind.c (Fdbus_method_return_internal): Rename from
19280 Fdbus_method_return.
19281 (Fdbus_unregister_object): Move to dbus.el.
19282 (Fdbus_call_method, Fdbus_method_return_internal)
19283 (Fdbus_send_signal): Improve debug messages.
19284
192852008-01-20 Martin Rudalics <rudalics@gmx.at>
19286
19287 * undo.c (undo_inhibit_record_point): New variable.
19288 (syms_of_undo): Initialize it.
19289 (record_point): Don't record point when undo_inhibit_record_point
19290 is set.
19291
192922008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
19293
19294 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
19295
19296 * xdisp.c (Qauto_hscroll_mode): New var.
19297 (syms_of_xdisp): Initialize it.
19298 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
19299 window's buffer.
19300 (hscroll_windows): Don't check automatic_hscrolling_p here.
19301
19302 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
19303 vscroll if we're setting window-buffer to the value it already has.
19304
193052008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
19306
19307 * m/intel386.h: Remove references to XENIX.
19308
193092008-01-17 Andreas Schwab <schwab@suse.de>
19310
19311 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
19312 instead of HAVE_X86_64_LIB64_DIR.
19313 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
19314
193152008-01-17 Glenn Morris <rgm@gnu.org>
19316
19317 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
19318 to HAVE_X86_64_LIB64_DIR.
19319
193202008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
19321
19322 * s/irix3-3.h:
19323 * s/irix4-0.h:
19324 * s/386-ix.h:
19325 * s/domain.h:
19326 * s/hpux9-x11r4.h:
19327 * s/hpux9shxr4.h: Remove files for systems no longer supported.
19328
19329 * sysdep.c: Remove code containing references to symbols defined
19330 by unsupported systems.
19331
193322008-01-16 Glenn Morris <rgm@gnu.org>
19333
19334 * coding.c (select-safe-coding-system-function): Doc fix.
19335
193362008-01-15 Glenn Morris <rgm@gnu.org>
19337
19338 * config.in: Revert 2008-01-13 change: this is a generated file.
19339
193402008-01-13 Tom Tromey <tromey@redhat.com>
19341
19342 * lisp.h: Fix typo.
19343
193442008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19345
19346 * m/sequent-ptx.h:
19347 * m/sequent.h:
19348 * s/ptx.h:
19349 * s/ptx4-2.h:
19350 * s/ptx4.h: Remove files for systems no longer supported.
19351
19352 * callproc.c (Fcall_process): Fix previous change.
19353
193542008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19355
19356 * unexsunos4.c: Remove file, system not supported anymore.
19357
19358 * m/mips.h:
19359 * m/intel386.h:
19360 * callproc.c:
19361 * config.in:
19362 * ecrt0.c:
19363 * emacs.c:
19364 * fileio.c:
19365 * frame.c:
19366 * getpagesize.h:
19367 * keyboard.c:
19368 * lread.c:
19369 * process.c:
19370 * puresize.h:
19371 * sysdep.c:
19372 * systty.h:
19373 * syswait.h:
19374 * unexec.c:
19375 * xdisp.c:
19376 * alloc.c: Remove code containing references to symbols defined by
19377 unsupported systems.
19378
193792008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
19380
19381 * coding.c (detect_coding_mask): Fix previous change.
19382
193832008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
19384
19385 * coding.c (detect_coding_iso2022): New arg
19386 latin_extra_code_state. Allow Latin extra codes only
19387 when *latin_extra_code_state is nonzero.
19388 (detect_coding_mask): If there is a NULL byte, detect the encoding
19389 as UTF-16 or binary. If Latin extra codes exist, detect the
19390 encoding as ISO-2022 only when there's no other proper encoding is
19391 found.
19392
193932008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19394
19395 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
19396 #ifdef MAC_OS.
19397
193982008-01-08 Richard Stallman <rms@gnu.org>
19399
19400 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
19401
194022008-01-06 Nick Roberts <nickrob@snap.net.nz>
19403
19404 * keyboard.c (parse_menu_item): Don't enclose key bindings on
19405 menu bar in parentheses.
19406
194072008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
19408
19409 * m/7300.h:
19410 * m/acorn.h:
19411 * m/alliant-2800.h:
19412 * m/alliant.h:
19413 * m/alliant1.h:
19414 * m/alliant4.h:
19415 * m/altos.h:
19416 * m/amdahl.h:
19417 * m/apollo.h:
19418 * m/att3b.h:
19419 * m/aviion-intel.h:
19420 * m/aviion.h:
19421 * m/celerity.h:
19422 * m/clipper.h:
19423 * m/cnvrgnt.h:
19424 * m/convex.h:
19425 * m/cydra5.h:
19426 * m/delta88k.h:
19427 * m/dpx2.h:
19428 * m/dual.h:
19429 * m/elxsi.h:
19430 * m/f301.h:
19431 * m/gould-np1.h:
19432 * m/gould.h:
19433 * m/i860.h:
19434 * m/ibmps2-aix.h:
19435 * m/ibmrt-aix.h:
19436 * m/ibmrt.h:
19437 * m/irist.h:
19438 * m/is386.h:
19439 * m/isi-ov.h:
19440 * m/mega68.h:
19441 * m/mg1.h:
19442 * m/news-r6.h:
19443 * m/news-risc.h:
19444 * m/news.h:
19445 * m/nh3000.h:
19446 * m/nh4000.h:
19447 * m/ns16000.h:
19448 * m/ns32000.h:
19449 * m/nu.h:
19450 * m/orion.h:
19451 * m/orion105.h:
19452 * m/paragon.h:
19453 * m/pfa50.h:
19454 * m/plexus.h:
19455 * m/pyramid.h:
19456 * m/pyrmips.h:
19457 * m/sh3el.h:
19458 * m/sps7.h:
19459 * m/sr2k.h:
19460 * m/stride.h:
19461 * m/sun1.h:
19462 * m/sun2.h:
19463 * m/sun3-68881.h:
19464 * m/sun3-fpa.h:
19465 * m/sun3-soft.h:
19466 * m/sun3.h:
19467 * m/sun386.h:
19468 * m/symmetry.h:
19469 * m/tad68k.h:
19470 * m/tahoe.h:
19471 * m/targon31.h:
19472 * m/tek4300.h:
19473 * m/tekxd88.h:
19474 * m/tower32.h:
19475 * m/tower32v3.h:
19476 * m/ustation.h:
19477 * m/wicat.h:
19478 * m/xps100.h:
19479 * s/cxux.h:
19480 * s/cxux7.h:
19481 * s/dgux.h:
19482 * s/dgux4.h:
19483 * s/dgux5-4-3.h:
19484 * s/dgux5-4r2.h:
19485 * s/esix.h:
19486 * s/esix5r4.h:
19487 * s/hiuxmpp.h:
19488 * s/hiuxwe2.h:
19489 * s/iris3-5.h:
19490 * s/iris3-6.h:
19491 * s/isc2-2.h:
19492 * s/isc3-0.h:
19493 * s/isc4-0.h:
19494 * s/isc4-1.h:
19495 * s/newsos5.h:
19496 * s/newsos6.h:
19497 * s/osf1.h:
19498 * s/osf5-0.h:
19499 * s/riscix1-1.h:
19500 * s/riscix12.h:
19501 * s/sco4.h:
19502 * s/sco5.h:
19503 * s/sunos4-0.h:
19504 * s/sunos4-1.h:
19505 * s/sunos413.h:
19506 * s/sunos4shr.h:
19507 * s/umax.h:
19508 * s/unipl5-2.h:
19509 * s/xenix.h:
19510 * cxux-crt0.s:
19511 * unexapollo.c:
19512 * unexconvex.c:
19513 * unexenix.c:
19514 * unexsni.c: Remove files for systems no longer supported.
19515
19516 * m/intel386.h: Remove references to unsupported systems.
19517
19518 * w32.c (get_emacs_configuration): Remove reference to i860.
19519
19520 * sysdep.c: Remove dead code.
19521
195222008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
19523
19524 * s/rtu.h:
19525 * m/masscomp.h: Remove files. Platform is obsolete.
19526
195272008-01-04 Michael Albinus <michael.albinus@gmx.de>
19528
19529 * dbusbind.c (Fdbus_method_return): New function.
19530 (xd_read_message): Add the serial number to the event.
19531 (Fdbus_register_method): Activate the function.
19532
195332008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
19534
19535 * keyboard.c (read_key_sequence): Fix typo.
19536
195372008-01-03 Michael Albinus <michael.albinus@gmx.de>
19538
19539 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
19540 (xd_signature, xd_append_arg): Handle element type detection for
19541 empty arrays.
19542 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
19543 SDATA () calls; this must be solved more general.
19544 (Fdbus_register_signal): Use SBYTES instead of strlen.
19545
195462008-01-03 Magnus Henoch <magnus@zemdatav>
19547
19548 * dbusbind.c (xd_append_arg): Use unsigned char instead of
19549 unsigned int for byte values (necessary for big-endian platform).
19550 (Fdbus_call_method): Handle the case of no returned arguments.
19551
195522007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
19553
19554 * dbusbind.c (xd_read_message): Use non-static input_event struct.
19555
195562007-12-31 Magnus Henoch <mange@freemail.hu>
19557
19558 * dbusbind.c (xd_signature): Signature of variant is just "v".
19559
195602007-12-30 Michael Albinus <michael.albinus@gmx.de>
19561
19562 * dbusbind.c: Fix several errors and compiler warnings.
19563 Reported by Tom Tromey <tromey@redhat.com>.
19564 (XD_ERROR, XD_DEBUG_MESSAGE)
19565 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
19566 (xd_append_arg): Part for basic D-Bus types rewritten.
19567 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
19568 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
19569 appropriate.
19570 (xd_read_message): Return Qnil. Don't signal an error; it is not
19571 useful during event reading.
19572 (Fdbus_register_signal): Signal an error if the check for
19573 FUNCTIONP fails.
19574 (Fdbus_register_method): New function. The implementation is not
19575 complete, the call of the function signals an error therefore.
19576 (Fdbus_unregister_object): New function, renamed from
19577 Fdbus_unregister_signal. The initial check signals an error, if
19578 the object is not well formed.
19579
195802007-12-30 Richard Stallman <rms@gnu.org>
19581
19582 * textprop.c (get_char_property_and_overlay):
19583 Signal error if POSITION is out of range in a buffer.
19584
195852007-12-29 Martin Rudalics <rudalics@gmx.at>
19586
19587 * w32fns.c (Fx_create_frame): Make copy of frame parameters
19588 because the original parameters are in pure storage now.
19589
195902007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19591
19592 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
19593
195942007-12-22 Eli Zaretskii <eliz@gnu.org>
19595
19596 * callint.c (syms_of_callint) <command-history>: Add reference to
19597 history-length in the doc string.
19598
195992007-12-17 Jason Rumney <jasonr@gnu.org>
19600
19601 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
19602 before passing as wParam.
19603
196042007-12-22 Michael Albinus <michael.albinus@gmx.de>
19605
19606 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
19607 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
19608 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
19609 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
19610 as number.
19611 (Fdbus_call_method): Fix docstring.
19612
196132007-12-21 Michael Albinus <michael.albinus@gmx.de>
19614
19615 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
19616 New macros.
19617 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
19618 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
19619 Simplify.
19620 (xd_signature): New function.
19621 (xd_append_arg): Compute also signatures. Major rewrite.
19622 (xd_retrieve_arg): Make debug messages friendly.
19623 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
19624 Check for signatures of arguments.
19625
196262007-12-19 Michael Albinus <michael.albinus@gmx.de>
19627
19628 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
19629 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
19630 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
19631 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
19632 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
19633 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
19634 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
19635 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
19636 (xd_retrieve_value): Remove. Functionality included in ...
19637 (xd_append_arg): New function.
19638 (Fdbus_call_method, Fdbus_send_signal): Apply it.
19639
196402007-12-16 Michael Albinus <michael.albinus@gmx.de>
19641
19642 * dbusbind.c (top): Include <stdio.h>.
19643 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
19644 dbus_message_new_method_call and dbus_message_new_signal.
19645 (Fdbus_register_signal): Rename unique_name to uname.
19646 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
19647 non-existing unique name. Fix typos in matching rule. Return an
19648 object which is useful in Fdbus_unregister_signal.
19649 (Fdbus_unregister_signal): Reimplementation, in order to remove
19650 only the corresponding entry.
19651 (Vdbus_registered_functions_table): Change the order of entries.
19652 Apply these changes in xd_read_message and Fdbus_register_signal.
19653
196542007-12-16 Andreas Schwab <schwab@suse.de>
19655
19656 * fileio.c (Finsert_file_contents): Fix overflow check to not
19657 depend on undefined integer overflow.
19658
196592007-12-14 Jason Rumney <jasonr@gnu.org>
19660
19661 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19662 for characters above 127.
19663
196642007-12-13 Jason Rumney <jasonr@gnu.org>
19665
19666 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19667 before dereferencing array.
19668 (lookup_vk_code): Remove zero comparison.
19669
196702007-12-14 Michael Albinus <michael.albinus@gmx.de>
19671
19672 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19673 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19674 Use `unsigned int' instead of `uint'.
19675 (xd_read_message, Fdbus_register_signal): Split expressions into
19676 multiple lines before operators "&&" and "||", according to the
19677 GNU Coding Standards.
19678
196792007-12-14 Eli Zaretskii <eliz@gnu.org>
19680
19681 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19682
196832007-12-12 Juri Linkov <juri@jurta.org>
19684
19685 * buffer.c (Frename_buffer): In interactive spec replace
19686 `read-buffer' with `read-string' that uses `buffer-name-history'
19687 as history, and the current buffer's name as default.
19688
196892007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19690
19691 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19692 manipulating the backtrace manually.
19693 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19694 (struct backtrace, backtrace_list): Remove.
19695 (command_loop_1): Remove dead var `no_direct'.
19696
19697 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19698 preserve non-built-in buffer-local variables.
19699 (Fkill_all_local_variables): Don't re-create&re-set permanent
19700 buffer-local variables.
19701
197022007-12-09 Juri Linkov <juri@jurta.org>
19703
19704 * buffer.c (Frename_buffer): Change interactive spec from "s" to
19705 Lisp code that uses `read-buffer' with current buffer as default.
19706
197072007-12-08 Michael Albinus <michael.albinus@gmx.de>
19708
19709 * dbusbind.c (xd_read_message): Generate an event for every
19710 registered handler. There might be several handlers registered
19711 for the same signal.
19712 (Fdbus_register_signal): Don't overwrite a registration for the
19713 same signal. Add a new registration if handlers are different.
19714 (Vdbus_registered_functions_table): Rework doc string.
19715
197162007-12-07 Michael Albinus <michael.albinus@gmx.de>
19717
19718 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19719 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19720 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19721 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19722 Unify argument lists.
19723 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19724 arguments and hash table keys. Use unique name for service.
19725 (Fdbus_unregister_signal): Remove checks.
19726 (Vdbus_registered_functions_table): Fix doc string.
19727
197282007-12-05 Magnus Henoch <mange@freemail.hu>
19729
19730 * process.c (make_process): Initialize pty_flag to 0.
19731
197322007-12-05 Jason Rumney <jasonr@gnu.org>
19733
19734 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19735 specified XBMs.
19736
197372007-12-05 Richard Stallman <rms@gnu.org>
19738
19739 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19740
197412007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19742
19743 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19744 New variable.
19745 (mac_try_close_socket) [MAC_OSX]: New function.
19746 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19747 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19748
19749 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19750 Use mac_try_close_socket.
19751
197522007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19753
19754 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19755 reloc_base.
19756 (copy_dysymtab): Compute relocation base here.
19757 (rebase_reloc_address) [__ppc64__]: New function.
19758 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19759 changed.
19760
197612007-12-05 Jason Rumney <jasonr@gnu.org>
19762
19763 * w32proc.c (sys_spawnve): Quote args with wildcards.
19764
197652007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19766
19767 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19768 __objc_* sections.
19769 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19770
197712007-12-05 Michael Albinus <michael.albinus@gmx.de>
19772
19773 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19774 Move check for Vdbus_registered_functions_table to
19775 xd_read_queued_messages.
19776 (xd_read_queued_messages): Protect xd_read_message calls by
19777 internal_condition_case_1.
19778
197792007-12-04 Michael Albinus <michael.albinus@gmx.de>
19780
19781 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19782 Qdbus_system_bus and Qdbus_session_bus, respectively.
19783 (Vdbus_intern_symbols): Remove.
19784 (Vdbus_registered_functions_table): New hash table.
19785 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19786 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19787 Rewrite in order to manage registered functions by hash table
19788 Vdbus_registered_functions_table.
19789
197902007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19791
19792 * xterm.c: Update URL to Window Manager Specification in comment.
19793
197942007-12-02 Michael Albinus <michael.albinus@gmx.de>
19795
19796 * config.in (HAVE_DBUS): Add.
19797
19798 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19799 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19800 (obj): Add $(DBUS_OBJ).
19801 (LIBES): Add $(DBUS_LIBS).
19802 (dbusbind.o): New target.
19803
19804 * dbusbind.c: New file.
19805
19806 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19807
19808 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19809 (Qdbus_event): New Lisp symbol.
19810 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19811 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 19812 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
19813
19814 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19815
198162007-12-01 Richard Stallman <rms@gnu.org>
19817
19818 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19819
198202007-11-30 Jason Rumney <jasonr@gnu.org>
19821
19822 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19823 (w32con_reset_terminal_modes): Clear screen buffer.
19824 (w32_face_attributes): Don't use color indexes that are out of range.
19825 Only reverse the default colors.
19826
19827 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19828 WINDOWSNT.
19829
19830 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19831
198322007-11-29 Jason Rumney <jasonr@gnu.org>
19833
19834 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19835 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19836 if the terminal colors are initialized.
19837 (unspecified_fg, unspecified_bg): Remove unused declarations.
19838
198392007-11-29 Andreas Schwab <schwab@suse.de>
19840
19841 * keyboard.c (apply_modifiers): Fix typo.
19842
198432007-11-29 Richard Stallman <rms@gnu.org>
19844
19845 * keymap.c (Fcurrent_local_map): Doc fix.
19846
198472007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19848
19849 * s/gnu-kfreebsd.h: New file.
19850
198512007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19852
19853 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19854 Don't cast redundantly.
19855
19856 * keyboard.c (KEY_TO_CHAR): New macro.
19857 (parse_modifiers, apply_modifiers): Accept integer arguments.
19858 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19859 for chars and symbol keys.
19860 After doing such remapping, apply function-key-map again.
19861
198622007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19863
19864 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19865 compiled anymore.
19866
198672007-11-26 Andreas Schwab <schwab@suse.de>
19868
19869 * process.c (list_processes_1): Fix indentation level of the
19870 command column.
19871
198722007-11-23 Andreas Schwab <schwab@suse.de>
19873
19874 * editfns.c (Fformat): Handle %c specially since it requires the
19875 argument to be of type int.
19876
198772007-11-23 Markus Triska <markus.triska@gmx.at>
19878
19879 * emacs.c (main): Call init_editfns before init_process, since
19880 init_process sets Vprocess_connection_type depending on OS release.
19881
198822007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19883
19884 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19885 (find_symbol_value): Use do_symval_forwarding.
19886
19887 * data.c (set_internal): Set the value in the `cons-cell' (for
19888 Buffer_Local_values) not only for frame-local variables.
19889
198902007-11-22 Andreas Schwab <schwab@suse.de>
19891
19892 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19893 values to sprintf.
19894 * keymap.c (Fsingle_key_description): Likewise.
19895 * print.c (print_object): Likewise.
19896
198972007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19898
19899 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19900 file for image is nil.
19901
199022007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19903
19904 * term.c: Include stdarg.h.
19905 (fatal): Implement using varargs.
19906 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19907
199082007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19909
19910 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19911 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19912 Update call to buffer_slot_type_mismatch.
19913 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19914 (buffer_slot_type_mismatch): Update.
19915 * buffer.c (buffer_local_types): Remove.
19916 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19917 (defvar_per_buffer): Set the type in the buffer_objfwd.
19918
199192007-11-21 Jason Rumney <jasonr@gnu.org>
19920
19921 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19922 CreateFileMapping returns NULL on failure.
19923
199242007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19925
19926 * search.c (Fset_match_data): Remove the `evaporate' feature.
19927 (unwind_set_match_data): Don't use the `evaporate' feature.
19928
199292007-11-21 Jason Rumney <jasonr@gnu.org>
19930
19931 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19932
19933 * w32console.c (w32con_write_glyphs): Remove unused variables.
19934
199352007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19936
19937 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19938
19939 * s/darwin.h (MULTI_KBOARD): Remove.
19940
19941 * macfns.c (x_create_tip_frame, Fx_create_frame)
19942 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19943
199442007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19945
19946 * buffer.c (Fbuffer_local_value): Remove redundant test.
19947 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19948 than in `current-buffer' to match the comment.
19949 Do the swap using swap_in_global_binding.
19950
19951 * data.c (store_symval_forwarding, set_internal):
19952 * eval.c (specbind): Remove dead code.
19953
19954 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19955 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19956 Since we do not want to see internal Lisp_*fwd objects here.
19957
199582007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19959
19960 * sysdep.c (init_system_name): Use getaddrinfo if available.
19961
19962 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19963 (x_scroll_bar_note_movement): start, end, with, height in struct
19964 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19965
199662007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19967
19968 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19969
199702007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19971
19972 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19973 This undoes Richard's change of 14-Oct-2002.
19974
19975 * alloc.c (allocate_other_vector):
19976 * lisp.h (allocate_other_vector): Remove.
19977
19978 * window.c (struct save_window_data): Move non-lisp data to the end
19979 and make it `int' rather than Lisp_Object.
19980 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19981 Done wrap/unwrap integer values.
19982 (Fset_window_configuration, compare_window_configurations):
19983 Update use of fields to their new types.
19984
19985 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19986 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19987 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19988 (SET_SCROLL_BAR_X_WINDOW): Remove.
19989 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19990 Access the new x_window field directly.
19991 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19992 Don't wrap/unwrap integers into Lisp_Objects.
19993 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19994 (x_scroll_bar_report_motion):
19995 Don't wrap/unwrap integers into Lisp_Objects.
19996 (x_term_init): Use SDATA.
19997 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19998 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19999 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
20000 (x_scroll_bar_report_motion, x_scroll_bar_clear):
20001 * xfns.c (x_set_background_color):
20002 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
20003 Access the new x_window field directly.
20004
20005 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
20006 (allocate_pseudovector): Make non-static.
20007
20008 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
20009 (allocate_pseudovector): Declare.
20010 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
20011
200122007-11-15 Andreas Schwab <schwab@suse.de>
20013
20014 * editfns.c (Fformat): Correctly format EMACS_INT values.
20015 Also take precision into account when formatting an integer.
20016
20017 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
20018
200192007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
20020
20021 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
20022 (syms_of_keyboard): Defsubr it.
20023
20024 * data.c (swap_in_global_binding): Fix longstanding bug where
20025 store_symval_forwarding was not called with the right second argument,
20026 thus causing objfwd-ing from being dropped.
20027
200282007-11-14 Juanma Barranquero <lekktu@gmail.com>
20029
20030 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
20031 (Fx_display_pixel_height, Fx_display_planes)
20032 (Fx_display_color_cells, Fx_server_max_request_size)
20033 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20034 (Fx_display_visual_class, Fx_display_save_under):
20035 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
20036 (Fx_display_pixel_height, Fx_display_planes)
20037 (Fx_display_color_cells, Fx_server_max_request_size)
20038 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
20039 (Fx_display_mm_height, Fx_display_mm_width)
20040 (Fx_display_backing_store, Fx_display_visual_class)
20041 (Fw32_select_font, Fx_display_save_under):
20042 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
20043 (Fx_display_pixel_height, Fx_display_planes)
20044 (Fx_display_color_cells, Fx_server_max_request_size)
20045 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20046 (Fx_display_save_under): Fix typos in docstrings.
20047
200482007-11-14 Juanma Barranquero <lekktu@gmail.com>
20049
20050 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
20051 corresponding to deleted entries; they are an implementation detail.
20052 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
20053 Remove variables.
20054 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
20055 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
20056 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
20057 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
20058 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
20059 (Fw32_define_rgb_color, Fw32_load_color_file)
20060 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
20061 Fix typos in docstrings.
20062 (Fx_server_version): Reflow docstring.
20063 (Fw32_shell_execute): Doc fixes.
20064
200652007-11-13 Juanma Barranquero <lekktu@gmail.com>
20066
20067 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
20068 if w32_parse_hot_key returned nil.
20069
200702007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
20071
20072 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
20073
200742007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 20075
aac0c6e3
MR
20076 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
20077
20078 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
20079
20080 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
20081 Remove W32_SCROLL_BAR_CLICK_EVENT.
20082
20083 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
20084 Add MULTIMEDIA_KEY_EVENT.
20085
20086 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
20087 (lispy_multimedia_keys) [WINDOWSNT]: New array.
20088 (make_lispy_event) [WINDOWSNT]: Use it to translate
20089 MULTIMEDIA_KEY_EVENT.
20090
20091 * w32term.h (WM_APPCOMMAND): Define if not already.
20092 (GET_APPCOMMAND_LPARAM): Likewise.
20093
20094 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
20095 WM_APPCOMMAND.
20096
20097 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
20098 (syms_of_w32fns): Export and initialize it.
20099 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
20100
201012007-11-09 Chong Yidong <cyd@stupidchicken.com>
20102
20103 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
20104 twice.
20105
20106 * xdisp.c (handle_face_prop): Fix last change.
20107
201082007-11-09 Richard Stallman <rms@gnu.org>
20109
20110 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
20111 not just for after-strings and before-strings.
20112 Call face_for_overlay_string and pass the overlay to it.
20113 (handle_display_prop): Determine whether property came from an overlay.
20114 Pass OVERLAY arg to handle_single_display_spec.
20115 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
20116 (load_overlay_strings): Fill in it->string_overlays.
20117 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
20118
20119 * xfaces.c (face_for_overlay_string): Function renamed from
20120 face_at_buffer_position_no_overlays, and add arg OVERLAY.
20121
20122 * dispextern.h (struct it): New elt string_overlays.
20123 New elt from_overlay, also in stack.
20124 Rearrange a few elements.
20125 (face_for_overlay_string): Decl renamed from
20126 face_at_buffer_position_no_overlays, and add argument.
20127
201282007-11-09 Richard Stallman <rms@gnu.org>
20129
20130 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
20131 to get the base face for an overlay string.
20132
20133 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
20134
20135 * xfaces.c (face_at_buffer_position_no_overlays): New function.
20136
20137 * xdisp.c (handle_stop): Move some code out of loop.
20138
201392007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20140
20141 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
20142 Fix conversion from Lisp object to ATSUFontID.
20143
201442007-11-09 Jason Rumney <jasonr@gnu.org>
20145
20146 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
20147
201482007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20149
20150 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
20151 Don't assume regions are aligned to page boundary.
20152 (print_load_command_name): Add LC_UUID if defined.
20153
201542007-11-09 Richard Stallman <rms@gnu.org>
20155
20156 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
20157
201582007-11-07 Jason Rumney <jasonr@gnu.org>
20159
20160 * s/windows95.h: Remove.
20161
201622007-11-06 Jan Djärv <jan.h.d@swipnet.se>
20163
20164 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
20165 abort with a message on unhandled store_type values.
20166
201672007-11-01 Jan Djärv <jan.h.d@swipnet.se>
20168
20169 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
20170 Remove HAVE_X11R5 and HAVE_X11R4.
20171
201722007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20173
20174 * Makefile.in: Remove references to sunfns.c and sunfns.o.
20175
201762007-11-01 Johan Bockgård <bojohan@gnu.org>
20177
20178 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
20179 Don't set s->stippled_p here, since it has already been set by
20180 x_set_glyph_string_gc from x_draw_glyph_string.
20181
201822007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20183
20184 * sunfns.c: Remove file.
20185
20186 * m/sun386.h:
20187 * m/sun2.h:
20188 * m/sparc.h: Remove Sun windows code.
20189
201902007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
20191
20192 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
20193 (init_keyboard): Set current_kboard's window-system to nil.
20194 (tty_read_avail_input): Typo.
20195 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
20196
201972007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
20198
20199 * s/usg5-4.h:
20200 * s/usg5-3.h:
20201 * s/ptx.h:
20202 * m/is386.h:
20203 * m/ibmps2-aix.h:
20204 * Makefile.in: Remove all mentions of X10.
20205
20206 * dispnew.c (syms_of_display): Don't mention version 10.
20207
202082007-10-28 Juanma Barranquero <lekktu@gmail.com>
20209
20210 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
20211 ($(BLD)/abbrev.$(O)): Remove.
20212
202132007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
20214
20215 Rewrite abbrev.c in Elisp.
20216 * image.c (Qcount): Don't declare as extern.
20217 (syms_of_image): Initialize and staticpro `Qcount'.
20218 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
20219 * emacs.c (main): Don't call syms_of_abbrev.
20220 * Makefile.in (obj): Remove abbrev.o.
20221 (abbrev.o): Remove.
20222 * abbrev.c: Remove.
20223
202242007-10-26 Martin Rudalics <rudalics@gmx.at>
20225
20226 * window.c (window_min_size_2): Don't count header-line.
20227
202282007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
20229
20230 * frame.h (struct frame): Move all bit fields after the first bit
20231 field to take advantage of the available space. Group all the
20232 chars together to reduce wasted space due to padding.
20233
202342007-10-26 Juanma Barranquero <lekktu@gmail.com>
20235
20236 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
20237
20238 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
20239 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
20240 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
20241 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
20242 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
20243 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
20244 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
20245 (last_marked, mark_object_loop_halt): Make static.
20246
20247 * frame.c (syms_of_frame) <delete-frame-functions>:
20248 Fix typo in docstring.
20249
202502007-10-25 Juanma Barranquero <lekktu@gmail.com>
20251
20252 * w32.c (init_environment): Fix tiny memory leak.
20253 (w32_get_resource): Remove unused variable `ok'.
20254
202552007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
20256
20257 Make `window-system' into a keyboard-local variable (rather than
20258 frame-local as done originally by multi-tty).
20259
20260 * keyboard.h (struct kboard): Add Vwindow_system.
20261 * keyboard.c (init_kboard): Set a default for Vwindow_system.
20262 (mark_kboards): Mark Vwindow_system.
20263
20264 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
20265 (init_display): Don't set the obsolete `window-system' frame-param.
20266
20267 * xterm.c (x_term_init):
20268 * w32term.c (w32_create_terminal):
20269 * term.c (init_tty): Set Vwindow_system.
20270 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
20271 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
20272
20273 * xfns.c (Fx_create_frame, x_create_tip_frame):
20274 * w32fns.c (Fx_create_frame, x_create_tip_frame):
20275 * macfns.c (Fx_create_frame):
20276 Don't set the obsolete `window-system' frame-param.
20277
20278 * frame.h (Qwindow_system): Remove.
20279 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
20280 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
20281
202822007-10-24 Richard Stallman <rms@gnu.org>
20283
20284 * frame.c (x_figure_window_size): For fullscreen case,
20285 set USPosition | PPosition without clobbering rest of window_prompting.
20286
20287 * keyboard.c (Fcurrent_idle_time): Doc fix.
20288
20289 * print.c (Fwith_output_to_temp_buffer): Doc fix.
20290
202912007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
20292
20293 * process.c (unwind_request_sigio): Only define if __ultrix__.
20294
20295 * callproc.c (child_setup): Remove spurious *.
20296
20297 * lisp.h (Fget_text_property): Declare.
20298 (have_menus_p): Declare it here rather than in sys-dep header files.
20299 * macterm.h (have_menus_p):
20300 * msdos.h (have_menus_p):
20301 * xterm.h (have_menus_p): Remove.
20302
20303 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20304 (Fmake_variable_frame_local): Just check the variable's const-ness
20305 rather than checking nil or t.
20306
203072007-10-22 Jason Rumney <jasonr@gnu.org>
20308
20309 * w32fns.c: Include math.h.
20310 (w32_abort): Declaration moved to nt/config.nt.
20311
20312 * s/ms-w32.h (HAVE_STDLIB_H): Define.
20313 (abort): Redefinition moved to nt/config.nt.
20314
20315 * m/windowsnt.h: Remove.
20316
203172007-10-22 Juanma Barranquero <lekktu@gmail.com>
20318
20319 * emacs.c (Fdump_emacs): Fix typo in message.
20320 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
20321 <installation-directory>: Reflow docstring.
20322
203232007-10-22 Juri Linkov <juri@jurta.org>
20324
20325 * minibuf.c: Allow minibuffer default to be a list of default values.
20326 With empty input use the first element of this list as returned default.
20327 (string_to_object)
20328 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
20329 (read_minibuf): If defalt is cons, set histstring to its car.
20330 (Fread_string): If default_value is cons, set val to its car.
20331 (Fread_buffer): If def is cons, use its car.
20332 (Fcompleting_read): If defalt is cons, set val to its car.
20333
203342007-10-21 Michael Albinus <michael.albinus@gmx.de>
20335
20336 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
20337
203382007-10-20 Juanma Barranquero <lekktu@gmail.com>
20339
20340 * doc.c (Fdocumentation): Check for advice in all cases.
20341
203422007-10-19 Chong Yidong <cyd@stupidchicken.com>
20343
20344 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
20345
203462007-10-19 Richard Stallman <rms@gnu.org>
20347
20348 * doc.c (Fdocumentation): Check for and handle an advised function.
20349
203502007-10-19 Juanma Barranquero <lekktu@gmail.com>
20351
20352 * process.c (Fset_process_filter): Doc fix.
20353
203542007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
20355
20356 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
20357 which caused key-translation-map to applied repeatedly (thus breaking
20358 double-mode).
20359
203602007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20361
20362 * xselect.c (x_own_selection, x_handle_selection_clear)
20363 (x_clear_frame_selections):
20364 * w32menu.c (list_of_panes, list_of_items):
20365 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
20366 * textprop.c (validate_plist, interval_has_all_properties)
20367 (interval_has_some_properties, interval_has_some_properties_list)
20368 (add_properties, text_property_list):
20369 * process.c (Fget_buffer_process, list_processes_1, status_notify):
20370 * minibuf.c (Fassoc_string):
20371 * macselect.c (x_own_selection, x_clear_frame_selections)
20372 (Fx_disown_selection_internal):
20373 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
20374 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
20375
203762007-10-17 Chong Yidong <cyd@stupidchicken.com>
20377
20378 * process.c: Link to libs for calling res_init() if available.
20379 (Fmake_network_process): Call res_init() before getaddrinfo or
20380 gethostbyname, if possible.
20381
203822007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20383
20384 * lread.c (read1): Set pvectype for char_tables.
20385
20386 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
20387 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
20388 Add type checks.
20389 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
20390
20391 * alloc.c (free_misc): Use XMISCTYPE.
20392 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
20393
203942007-10-17 Glenn Morris <rgm@gnu.org>
20395
20396 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
20397 (syms_of_minibuf): Add Qcompletion_ignore_case.
20398 * dired.c (Qcompletion_ignore_case): Change to external.
20399 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
20400 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
20401 (Fread_file_name): Use it rather than intern'ing.
20402
20403 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
20404 (Fread_coding_system): Ignore case of user input.
20405
204062007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20407
20408 * xdisp.c (handle_display_prop): Ignore display specs after
20409 replacing one when string text is being replaced.
20410 (handle_single_display_spec): Pretend as if characters with display
20411 property haven't been consumed only when buffer text is being replaced.
20412
204132007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
20414
20415 * xfns.c (Fx_create_frame, Fx_display_list):
20416 * window.c (window_fixed_size_p, enlarge_window)
20417 (shrink_window_lowest_first):
20418 * macterm.c (init_font_name_table):
20419 * macfns.c (Fx_create_frame, Fx_display_list):
20420 * lread.c (close_load_descs):
20421 * keyboard.c (read_char_x_menu_prompt):
20422 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
20423 * coding.c (code_convert_region_unwind): Test the type of an object
20424 rather than just !NILP before extracting data from it.
20425
20426 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
20427
20428 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
20429 (XMISCANY): New macro.
20430 (XMISCTYPE): Use it.
20431 (struct Lisp_Misc_Any): New type.
20432 (union Lisp_Misc): Use it.
20433 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
20434 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
20435 (find_symbol_value, set_internal, default_value, Fset_default)
20436 (Fmake_variable_buffer_local, Fmake_local_variable)
20437 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
20438 (Flocal_variable_if_set_p, Fvariable_binding_locus):
20439 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
20440 * alloc.c (allocate_buffer): Set the size and tag.
20441 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
20442 Use XMISCANY.
20443 (die): Follow the GNU convention for error messages.
20444 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
20445 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
20446 tag any more.
20447 (set_buffer_internal_1):
20448 * frame.c (store_frame_param):
20449 * eval.c (specbind):
20450 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
20451
20452 * doc.c (Fsnarf_documentation): Simplify.
20453
204542007-10-14 Juanma Barranquero <lekktu@gmail.com>
20455
20456 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
20457 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
20458
204592007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
20460
20461 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
20462
204632007-10-14 Juanma Barranquero <lekktu@gmail.com>
20464
20465 * eval.c (do_autoload): Don't save autoloads.
20466
20467 * data.c (Ffset): Save autoload of the function being set.
20468
204692007-10-07 John Paul Wallington <jpw@pobox.com>
20470
20471 * xfns.c (x_create_tip_frame): Set the `display-type' frame
20472 parameter before setting up faces.
20473
204742007-10-13 Eli Zaretskii <eliz@gnu.org>
20475
20476 * ccl.c (Fregister_code_conversion_map):
20477 * keyboard.c (append_tool_bar_item): Reformat last change.
20478
20479 * lisp.h (eabs): Rename from `abs'. All callers changed.
20480
204812007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
20482
20483 * buffer.c (add_overlay_mod_hooklist):
20484 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
20485 * fontset.c (make_fontset):
20486 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
20487 (append_tool_bar_item):
20488 * macmenu.c (grow_menu_items):
20489 * w32menu.c (grow_menu_items):
20490 * xmenu.c (grow_menu_items): Use larger_vector.
20491
204922007-10-13 Eli Zaretskii <eliz@gnu.org>
20493
20494 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
20495 selected frame'' on MSDOS).
20496
204972007-10-12 Martin Rudalics <rudalics@gmx.at>
20498
20499 * frame.c (Qexplicit_name): New variable.
20500 (x_report_frame_params): Report it in parameter alist.
20501 (syms_of_frame): Intern and staticpro it.
20502
205032007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
20504
20505 * macfns.c (x_create_tip_frame): Set terminal for frame.
20506
205072007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
20508
20509 * frame.c (Qenvironment): Remove.
20510 (syms_of_frame) <Qenvironment>: Don't initialize.
20511 (Fdelete_frame): Don't treat the `environment' param specially.
20512 * frame.h (Qenvironment): Don't declare.
20513 * callproc.c (set_initial_environment): Don't set unused frame param.
20514
20515 * frame.c (Fframe_with_environment): Remove.
20516 (syms_of_frame) <Sframe_with_environment>: Don't declare.
20517
20518 * lisp.h (Fframe_with_environment): Don't declare.
20519
205202007-10-10 Juanma Barranquero <lekktu@gmail.com>
20521
20522 * indent.c (indent_tabs_mode, last_known_column)
20523 (last_known_column_modified): Make static.
20524 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
20525
205262007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
20527
20528 * puresize.h (BASE_PURESIZE): Increase to 1170000.
20529
205302007-10-09 Jason Rumney <jasonr@gnu.org>
20531
20532 * w32term.c (x_set_window_size): Disable code that attempts to tell
20533 Lisp code about a size change before it actually happens.
20534
205352007-10-09 Richard Stallman <rms@gnu.org>
20536
20537 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
20538 return HANDLED_RETURN.
20539
205402007-10-08 Martin Rudalics <rudalics@gmx.at>
20541
20542 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
20543 when there's an unread command event.
20544
20545 * frame.c (focus_follows_mouse): Move here from frame.el to allow
20546 window autoselection act appropriately when leaving selected frame.
20547 (syms_of_frame): Initialize focus_follows_mouse.
20548 * frame.h (focus_follows_mouse): Extern it.
20549 * macterm.c (XTread_socket): When focus_follows_mouse is nil
20550 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
20551 * msdos.c (dos_rawgetc): Likewise.
20552 * w32term.c (w32_read_socket): Likewise.
20553 * xterm.c (handle_one_xevent): Likewise.
20554 * xdisp.c (syms_of_xdisp): In doc-string of
20555 mouse-autoselect-window mention focus-follows-mouse.
20556
205572007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20558
20559 * macterm.c (mac_load_query_font): Fix missing return value.
20560 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
20561 Add BLOCK_INPUT.
20562
205632007-10-08 Richard Stallman <rms@gnu.org>
20564
20565 * xdisp.c (get_window_cursor_type): Implement documented behavior
20566 for cursor-in-non-selected-windows = t.
20567
205682007-10-08 Jason Rumney <jasonr@gnu.org>
20569
20570 * w32.c (w32_get_resource): Always close registry keys.
20571
205722007-10-08 Jason Rumney <jasonr@gnu.org>
20573
20574 * makefile.w32-in (LIBS): Add COMCTL32.
20575
20576 * w32fns.c (globals_of_w32fns): Init common controls.
20577
205782007-10-08 Richard Stallman <rms@gnu.org>
20579
20580 * image.c (our_memory_buffer): Rename from omfib_buffer.
20581
205822007-10-08 Richard Stallman <rms@gnu.org>
20583
20584 * buffer.c (Foverlays_at): Doc fix.
20585
205862007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
20587
20588 * fns.c (Fplist_put): Preserve uneven tail data.
20589
205902007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
20591
20592 * termhooks.h (enum event_kind): Remove trailing comma.
20593
20594 * frame.h (enum): Remove trailing comma.
20595
205962007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20597
20598 * w32proc.c (delete_child): Don't terminate threads of zombies.
20599
206002007-10-08 Martin Rudalics <rudalics@gmx.at>
20601
20602 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
20603
20604 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
20605 last-repeatable-command.
20606 (init_kboard): Initialize Vlast_repeatable_command.
20607 (command_loop_1): Set it to real_this_command unless that was
20608 bound to an input event.
20609 (mark_kboards): Mark it.
20610
206112007-10-08 Richard Stallman <rms@gnu.org>
20612
20613 * eval.c (condition-case): Doc fix.
20614
206152007-10-08 Masatake YAMATO <jet@gyve.org>
20616
20617 * xfaces.c (tty_supports_face_attributes_p): Fix code
20618 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
20619 was copied and not edited.
20620
206212007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
20622
20623 Add new `input-decode-map' keymap and use it for terminal
20624 escape sequences.
20625 * keyboard.h (struct kboard): Add Vinput_decode_map.
20626 Remove Vlocal_key_translation_map.
20627 * keyboard.c (read_key_sequence): Add support for input-decode-map.
20628 (init_kboard): Init input-decode-map.
20629 Replace local-key-translation-map back with key-translation-map.
20630 (syms_of_keyboard): Declare input-decode-map.
20631 Remove local-key-translation-map. Update docstrings.
20632 (mark_kboards): Mark Vinput_decode_map.
20633 Don't mark Vlocal_key_translation_map.
20634 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
20635 Replace local-key-translation-map back with key-translation-map.
20636 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
20637 Bind in input-decode-map rather than function-key-map.
20638
20639 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
20640 This was made redundant by the previous introduction of XSETPVECTYPE.
20641
206422007-10-09 Richard Stallman <rms@gnu.org>
20643
20644 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
20645
206462007-09-29 Richard Stallman <rms@gnu.org>
20647
20648 * eval.c (internal_condition_case_2, internal_condition_case_1)
20649 (internal_condition_case): Reenable abort if x_catching_errors ()
20650 to see if that really happens and why.
20651
206522007-10-06 Andreas Schwab <schwab@suse.de>
20653
20654 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
20655
206562007-10-04 Juanma Barranquero <lekktu@gmail.com>
20657
20658 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
20659
206602007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
20661
20662 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20663
206642007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
20665
20666 * window.h (struct window):
20667 * window.c (struct save_window_data, struct saved_window):
20668 * termhooks.h (struct terminal):
20669 * process.h (struct Lisp_Process):
20670 * frame.h (struct frame):
20671 * buffer.h (struct buffer):
20672 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20673 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20674 The size field of (pseudo)vectors is now unsigned.
20675 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20676
20677 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20678 Turn `count' into an integer.
20679
20680 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20681 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20682 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20683 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20684 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20685
20686 * alloc.c (allocate_pseudovector): New fun.
20687 (ALLOCATE_PSEUDOVECTOR): New macro.
20688 (allocate_window, allocate_terminal, allocate_frame)
20689 (allocate_process): Use it.
20690 (mark_vectorlike): New function.
20691 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20692 (mark_terminals): Use it.
20693 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20694 (Fmake_byte_code): Use XSETPVECTYPE.
20695
20696 * frame.c (Fframe_parameters): Minor simplification.
20697
20698 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20699
20700 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20701
20702 * buffer.c (Fget_buffer_create, init_buffer_once):
20703 * lread.c (defsubr):
20704 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20705
20706 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20707 defined differently in the m/*.h files.
20708 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
20709 (XSETPVECTYPE): New macro.
20710 (XSETPSEUDOVECTOR): Use it.
20711
20712 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20713 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20714
20715 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20716 * lread.c (defvar_per_buffer):
20717 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20718
20719 * window.c (candidate_window_p): Only consider as visible frames that
20720 are on the same terminal.
20721
20722 * m/ibms390x.h (MARKBIT): Remove unused macro.
20723
207242007-10-01 Juanma Barranquero <lekktu@gmail.com>
20725
20726 * lread.c (Fload): Fix typo in docstring.
20727
207282007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20729
20730 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20731 of a non-zero value can't yield zero.
20732
207332007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20734
20735 * term.c (term_clear_mouse_face, term_mouse_highlight)
20736 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20737
20738 * print.c (safe_debug_print): Use XHASH.
20739
20740 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20741 Lisp elements such as tags.
20742 (XHASH): New macro.
20743 (EQ): Use it.
20744 (SREF, SSET, STRING_COPYIN): Use SDATA.
20745 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20746
20747 * alloc.c (mark_terminal): Remove left-over declaration.
20748 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20749 (allocate_vectorlike): Remove type argument. Adjust callers.
20750 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20751 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20752
20753 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20754 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20755 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20756 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20757 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20758 Use them.
20759
20760 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20761 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20762 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20763
207642007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20765
20766 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20767 loaded by default.
20768
207692007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20770
20771 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20772 on this tty.
20773 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20774
20775 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20776 Update all users.
20777 (handle_one_term_event): Use Gpm_DrawPointer.
20778 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20779 Signal errors instead of returning nil. Always return nil.
20780 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20781 Make it a noop if gpm-mouse was not activated.
20782 (syms_of_term): Update names.
20783
207842007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20785
20786 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20787 (init_sys_modes): Check that gpm_tty is the current tty.
20788
20789 * alloc.c (allocate_terminal): Set the vector size to only count the
20790 lisp fields. Initialize those to nil.
20791 (mark_object): Don't treat terminals specially.
20792 (mark_terminal): Remove.
20793 (mark_terminals): Use mark_object instead.
20794
20795 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20796 the GC to the beginning.
20797
20798 * indent.h:
20799 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20800
20801 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20802
208032007-09-25 Jason Rumney <jasonr@gnu.org>
20804
20805 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20806
20807 * w32console.c (create_w32cons_output): Remove.
20808
20809 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20810
20811 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20812 (reset_sys_modes): Use reset_terminal_modes_hook.
20813
208142007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20815
20816 * eval.c (do_autoload): Don't output any message.
20817
208182007-09-24 Juri Linkov <juri@jurta.org>
20819
20820 * emacs.c (standard_args): Change priority of "--no-splash"
20821 from 40 to 3. Add "--no-desktop" with the same priority.
20822
208232007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20824
20825 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20826 and optimize the case where they are all 1.
20827
208282007-09-23 Johannes Weiner <hannes@saeurebad.de>
20829
20830 * lisp.h (abs): Define if not defined.
20831 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20832 Don't define `abs', since it's defined in lisp.h.
20833
208342007-09-22 Eli Zaretskii <eliz@gnu.org>
20835
20836 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20837 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20838 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20839 (init_tty): Use DEV_TTY instead of "/dev/tty".
20840 [WINDOWSNT]: No need to protect from NAME arg being null.
20841
208422007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20843
20844 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20845 up the tty state.
20846
208472007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20848
20849 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20850 (gpm_tty): Change its type.
20851 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20852 (gpm_tty): Change its type and initialize it.
20853 (Fterm_open_connection): Check the frame is indeed a tty.
20854 Use the new gpm_tty.
20855 (Fterm_close_connection): Use the new gpm_tty.
20856 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20857 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20858
208592007-09-21 Juanma Barranquero <lekktu@gmail.com>
20860
20861 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20862 underline_color, to draw strike-through.
20863
208642007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20865
20866 * lisp.h (allocate_terminal): Declare.
20867
20868 * window.c (candidate_window_p): Consider frames that are being placed
20869 by the user as somewhere between visible and iconified.
20870 (window_loop): Prefer windows on the current frame.
20871 (Fselect_window): Move the use of select-frame to the beginning so we
20872 can just delegate all the work (it'll call us back anyway).
20873
20874 * frame.c (Qdisplay_environment_variable):
20875 * frame.h (Qdisplay_environment_variable): Delete.
20876
20877 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20878 of the first arg, since that value may be a union.
20879
20880 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20881 parameter rather than Qdisplay_environment_variable. If all else
20882 fails, look for DISPLAY in initial-environment.
20883
208842007-09-21 Glenn Morris <rgm@gnu.org>
20885
20886 * Makefile.in (emacstool): Remove target.
20887 (lisp, shortlisp): Remove termdev.elc.
20888
208892007-09-21 Markus Triska <markus.triska@gmx.at>
20890
20891 * xterm.c (x_delete_display): Compile session management conditionally.
20892
208932007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20894
20895 * callproc.c (getenv_internal_1): New function.
20896 (getenv_internal): Use it.
20897 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20898
20899 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20900 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20901 (Fset_terminal_parameter): Work with dead terminals as well.
20902 (Fmodify_terminal_parameters): Remove.
20903
20904 * terminal.c (get_terminal): Handle terminals.
20905 Make sure the terminal returned is live.
20906 (create_terminal): Use allocate_terminal.
20907 (mark_terminals): Move to alloc.c.
20908 (delete_terminal): Use terminal->name as liveness status.
20909 NULL out fields after freeing their contents.
20910 Don't deallocate the object.
20911 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20912 rather than an int.
20913 (Fterminal_live_p): Accept non-integer arguments.
20914 (Fterminal_list): Return terminal objects rather than an ints.
20915
20916 * alloc.c (enum mem_type): New member for `terminal' objects.
20917 (allocate_terminal): New function.
20918 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20919 Handle terminals.
20920 (mark_terminal): New fun.
20921 (mark_terminals): Move from terminal.c.
20922
20923 * term.c (get_tty_terminal): Don't treat output_initial specially.
20924 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20925 (delete_tty): Use terminal->name as liveness status.
20926
20927 * termhooks.h (struct terminal): Make it into a pseudovector.
20928 Remove `deleted' replaced by checking `name's nullness.
20929
20930 * print.c (print_object): Handle terminals.
20931
20932 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20933 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20934
20935 * frame.c (make_terminal_frame):
20936 * keyboard.c (tty_read_avail_input):
20937 * w32term.c (x_delete_terminal):
20938 * xfns.c (Fx_create_frame, x_create_tip_frame):
20939 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20940
209412007-09-20 Glenn Morris <rgm@gnu.org>
20942
20943 * process.c (Fmake_network_process): Doc fix.
20944
209452007-09-19 Jason Rumney <jasonr@gnu.org>
20946
20947 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20948
209492007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20950
20951 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20952 Fix a C warning regarding variable constness.
20953
20954 * xterm.c (handle_one_xevent): Fix a C warning.
20955
209562007-09-18 Jason Rumney <jasonr@gnu.org>
20957
20958 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20959
209602007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20961
20962 * gtkutil.c (gdpy_def): New variable.
20963 (xg_initialize): Initialize gdpy_def.
20964 (xg_display_close): If no other display exists, set gdpy_def to a
20965 new connection.
20966
209672007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20968
20969 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20970 when we have no file name for the icon.
20971 (xg_tool_bar_expose_callback): Remove.
20972 (xg_create_tool_bar): Don't connect expose signal to
20973 xg_tool_bar_expose_callback.
20974 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20975
209762007-09-16 Andreas Schwab <schwab@suse.de>
20977
20978 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20979 values instead of zapping them.
20980
209812007-09-14 Glenn Morris <rgm@gnu.org>
20982
20983 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20984 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20985 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20986 scope and rename to omfib_buffer for clarity.
20987 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20988
209892007-09-14 Kenichi Handa <handa@m17n.org>
20990
20991 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20992
209932007-09-13 Jason Rumney <jasonr@gnu.org>
20994
20995 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20996
20997 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20998
20999 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
21000 (mac_term_init): Call here instead, passing rif.
21001
210022007-09-13 Glenn Morris <rgm@gnu.org>
21003
21004 * s/hpux.h: No longer define `static' as nothing.
21005
210062007-09-13 Johan Bockgård <bojohan@gnu.org>
21007
21008 * callint.c (Fcall_interactively): Remove unused var `fun'.
21009
210102007-09-12 Romain Francoise <romain@orebokech.com>
21011
21012 * window.c (prefer_window_split_horizontally, display_buffer):
21013 Revert 2007-09-08 change.
21014
210152007-09-12 Glenn Morris <rgm@gnu.org>
21016
21017 * alloca.c: Remove file.
21018 * Makefile.in (alloca): Do not undef.
21019 (allocaobj, alloca.o): Remove.
21020 (otherobj): Remove allocaobj.
21021 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
21022 * regex.c (C_ALLOCA): Remove all references and code that was only
21023 used when this was defined.
21024 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
21025 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
21026 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
21027
21028 * Makefile.in (SOURCES, unlock, relock): Delete.
21029
21030 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
21031 (menu_grab_callback): All uses changed.
21032
21033 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
21034 (x_reply_selection_request): All uses changed.
21035
210362007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
21037
21038 * lread.c (load_warn_old_style_backquotes): Change message to look
21039 better when it appears in the middle of byte-compiler messages.
21040
210412007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
21042
21043 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
21044
21045 * xterm.c (x_create_terminal): Add comment.
21046
21047 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
21048
210492007-09-10 Richard Stallman <rms@gnu.org>
21050
21051 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
21052
210532007-09-10 Michaël Cadilhac <michael@cadilhac.name>
21054
21055 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
21056 (DEFUN): Document `intspec', use it instead of `prompt'.
21057
21058 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
21059
21060 * data.c (Finteractive_form): If the interactive specification starts
21061 with a `(', use it as a Lisp form.
21062
21063 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
21064 name and file modes.
21065
21066 * callint.c (Fcall_interactively): Comment fixes.
21067
210682007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
21069
21070 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
21071 and compiled functions.
21072
210732007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
21074
21075 * window.c (prefer_window_split_horizontally): New variable.
21076 (display_buffer): Consider splitting window horizontally depending
21077 on prefer_window_split_horizontally.
21078
210792007-09-08 Eli Zaretskii <eliz@gnu.org>
21080
21081 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
21082
210832007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21084
21085 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
21086
21087 * frame.c (x_set_frame_parameters): Check number is positive before
21088 using XFASTINT.
21089
21090 * window.c (freeze_window_start): Don't presume selected_window holds
21091 a window object.
21092 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
21093
210942007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
21095
21096 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
21097
210982007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21099
21100 * window.c (Vsplit_window_preferred_function): New var.
21101 (Fdisplay_buffer): Use it.
21102 (syms_of_window): Export, and initialize it.
21103
211042007-09-06 Pixel <pixel@mandriva.com> (tiny change)
21105
21106 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
21107
211082007-09-06 Glenn Morris <rgm@gnu.org>
21109
21110 * gtkutil.c (menu_grab_callback) <cnt>:
21111 * xselect.c (x_reply_selection_request) <cnt>: Move static
21112 variable to file scope.
21113
211142007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
21115
21116 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
21117 consistent values of selected_frame and selected_window.
21118
211192007-09-04 Jason Rumney <jasonr@gnu.org>
21120
21121 * w32console.c (initialize_w32_display): Zero unused hooks.
21122
211232007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21124
21125 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
21126 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
21127
211282007-09-04 Jason Rumney <jasonr@gnu.org>
21129
21130 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
21131 in w32console.c. Set up input. Remove XXX comments that have been
21132 confirmed as correct.
21133
21134 * s/ms-w32.h (MULTI_KBOARD): Define.
21135
21136 * w32console.c (one_and_only_w32cons): Remove.
21137 (initialize_w32_display): Take terminal argument.
21138
21139 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
21140 initialize_w32_display.
21141 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
21142
21143 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
21144
21145 * keyboard.c (discard_mouse_events): Discard it.
21146 (make_lispy_event): Translate it to a lisp event.
21147 (lispy_wheel_names): Add wheel-left and right events.
21148 (syms_of_keyboard): Enlarge wheel_syms.
21149
21150 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
21151 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
21152
21153 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
21154
21155 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
21156 from WM_MOUSEHWHEEL.
21157 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
21158
21159 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
21160 terminal.
21161
21162 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
21163 keyboard for the terminal.
21164
211652007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21166
21167 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
21168 (Vresume_tty_hook): Rename from Vresume_tty_functions.
21169 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
21170 and resume-tty-function to resume-tty-hook.
21171 (Fsuspend_tty, Fresume_tty): Use new names.
21172
211732007-09-02 Jan Djärv <jan.h.d@swipnet.se>
21174
21175 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
21176 if it starts with "n:".
21177
211782007-08-31 Jan Djärv <jan.h.d@swipnet.se>
21179
21180 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
21181
211822007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
21183
21184 * frame.h:
21185 * frame.c (Qterm_environment_variable): Remove.
21186 (syms_of_frame): Don't init and staticpro it.
21187
21188 * callproc.c (getenv_internal): Remove special case for $TERM.
21189
21190 * callproc.c (Vinitial_environment): New variable.
21191 (set_initial_environment): Initialize it.
21192 (syms_of_callproc): Declare it.
21193 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
21194 TERM under which a process runs is never related to the TERM in which
21195 Emacs is running.
21196
211972007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21198
21199 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
21200 * s/darwin.h: ... do it here.
21201
212022007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
21203
21204 * lisp.h (set_initial_environment): Rename from set_global_environment.
21205
21206 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
21207 removed by mistake on the multi-tty branch.
21208
21209 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
21210 (Fmodify_frame_parameters): Return a value.
21211
21212 * image.c (png_load): Comment-out var only used in commented-out code.
21213
21214 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
21215 before passing it to mark_object.
21216
21217 * xfaces.c (internal_resolve_face_name): Return a value.
21218 (internal_resolve_face_name, resolve_face_name_error): Comment out.
21219
21220 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
21221 (x_icon): Comment-out var only used in commented-out code.
21222
212232007-08-29 Romain Francoise <romain@orebokech.com>
21224
21225 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
21226 QUIT hasn't been provided.
21227
212282007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21229
21230 * callproc.c (child_setup, getenv_internal): Use the
21231 display-environment-variable and term-environment-variable frame params.
21232 (set_initial_environment): Initialise Vprocess_environment.
21233
21234 * config.in: Disable multi-keyboard support on a mac.
21235
21236 * frame.c (Qterm_environment_variable)
21237 (Qdisplay_environment_variable): New variables.
21238 (syms_of_frame): Intern and staticpro them.
21239 (Fmake_terminal_frame): Disable output method test.
21240
21241 * frame.h: Declare them here.
21242
21243 * macfns.c (x_set_mouse_color): Get rif from the frame.
21244 (x_set_tool_bar_lines): Don't use updating_frame.
21245 (mac_window): Add 2 new parameters for consistency with other systems.
21246 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
21247 frame parameters following what is done in X11 and w32. Don't use
21248 FRAME_MAC_DISPLAY_INFO.
21249 (Fx_open_connection, start_hourglass): Remove window-system check.
21250 (x_create_tip_frame): Get the keyboard from the terminal.
21251
21252 * macmenu.c: Reorder includes.
21253 (Fx_popup_menu): Use terminal specific mouse_position_hook.
21254
21255 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
21256 terminal parameter.
21257 (x_clear_frame): Add a frame parameter.
21258 (note_mouse_movement): Get rif from the frame.
21259 (mac_term_init): Initialize the terminal.
21260 (mac_initialize): Make static and move terminal initialization ...
21261 (mac_create_terminal): ... to this new function.
21262
21263 * macterm.h (struct mac_display_info): Add terminal.
21264 (mac_initialize): Delete declaration.
21265
21266 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
21267
21268 * sysdep.c: Comment out text after #endif.
21269
21270 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
21271 is defined. Better initialize ttys in windows. Use terminal
21272 specific mouse_position_hook.
21273
21274 * termhooks.h (union display_info): Add mac_display_info.
21275
21276 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
21277 Set the default minibuffer frame, window_system and the rest of the
21278 frame parameters following what is done in X11.
21279
21280 * w32term.c (w32_initialize): Make static.
21281
21282 * xselect.c (x_handle_selection_clear): Only access
21283 terminal->kboard when MULTI_KBOARD is defined.
21284
21285 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
21286 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
21287
212882007-08-29 Jason Rumney <jasonr@gnu.org>
21289
21290 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
21291 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
21292
21293 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
21294 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
21295
21296 * keyboard.c (restore_kboard_configuration): Only define when
21297 MULTI_KBOARD defined.
21298
21299 * makefile.w32-in: Update dependancies from Makefile.in.
21300 (OBJ1): Add terminal.$(O)
21301
21302 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
21303 Don't define function body.
21304 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
21305
21306 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
21307
21308 * w32.c (request_sigio, unrequest_sigio): Remove.
21309
21310 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
21311 (w32con_clear_frame, w32con_clear_end_of_line)
21312 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
21313 (w32con_delete_glyphs, w32con_set_terminal_window)
21314 (scroll_line, w32_sys_ring_bell): Add frame arg.
21315 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
21316 Add terminal arg.
21317 (PICK_FRAME): Remove.
21318 (w32con_write_glyphs): Use frame specific terminal coding.
21319 (one_and_only_w32cons): New global variable.
21320 (initialize_w32_display): Use it for storing hooks.
21321 (create_w32cons_output): New function.
21322
21323 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
21324 arg a frame.
21325
21326 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
21327 Set window_system.
21328 (x_set_tool_bar_lines): Don't use updating_frame.
21329 (Fx_create_frame): Set terminal and ref count.
21330 (Fx_open_connection): Remove window-system check.
21331
21332 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
21333
21334 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
21335 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
21336 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
21337 Add frame arg.
21338 (x_delete_terminal, w32_create_terminal): New functions.
21339 (w32_term_init): Create a terminal.
21340 (w32_initialize): Move terminal specific initialization to
21341 w32_create_terminal.
21342
21343 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
21344 (w32_clear_rect, w32_clear_area): Use background from frame.
21345 (w32_display_info): Add terminal.
21346 (w32_sys_ring_bell, x_delete_display): Declare here.
21347
21348 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
21349
21350 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
21351
213522007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
21353
21354 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
21355 Fix get_named_tty calls for the controlling tty.
21356
213572007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
21358
194d44e7 21359 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
21360
213612007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
21362
21363 * term.c (tty_insert_glyphs): Add missing first parameter.
21364
213652007-08-29 Károly Lőrentey <karoly@lorentey.hu>
21366
21367 * buffer.c (Fbuffer_list, Fbury_buffer):
21368 Take frame->buried_buffer_list into account.
21369
21370 * cm.c (current_tty): New variable, for cmputc().
21371 (cmputc): Use it.
21372 (cmcheckmagic): Add tty parameter, look up terminal streams there.
21373 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
21374 (cmgoto): Add tty parameter. Pass it on to calccost().
21375 Use emacs_tputs() instead of tputs().
21376
21377 * cm.h (emacs_tputs): New macro to set current_tty, and then call
21378 tputs().
21379 (current_tty): New variable, for cmputc().
21380 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
21381
21382 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
21383 (internal_condition_case, internal_condition_case_1)
21384 (internal_condition_case_2): Don't abort when x_catching_errors.
21385
21386 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
21387 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
21388 prevent crashes caused by bogus longjmps in read_char.
21389
21390 * keymap.h (Fset_keymap_parent): Add EXFUN.
21391
21392 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
21393 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21394 Remove redundant definition.
21395
21396 * macfns.c (x_set_mouse_color, x_make_gc):
21397 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21398
21399 * w32term.c (x_free_frame_resources):
21400 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21401 (w32_initialize): Use the accessor macros for terminal characteristics.
21402
21403 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
21404 Use the accessor macros for terminal characteristics.
21405 * msdos.c (internal_terminal_init): Use the accessor macros for
21406 terminal characteristics.
21407 (ScreenVisualBell, internal_terminal_init):
21408 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21409
21410 * termopts.h (no_redraw_on_reenter): Declare.
21411
21412 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
21413 (mark_terminals, mark_ttys): Declare.
21414 (Fgarbage_collect): Call them.
21415 (mark_object): Mark buried_buffer_list.
21416
21417 * prefix-args.c: Include stdlib.h for exit.
21418
21419 * syssignal.h: Add comment.
21420
21421 * indent.c: Include stdio.h.
21422
21423 * window.h (Vinitial_window_system): Declare.
21424 (Vwindow_system): Delete declaration.
21425
21426 * fontset.c (Finternal_char_font): Use FRAME_RIF.
21427
21428 * image.c (lookup_image): Don't initialize `c' until the xasserts
21429 have been run.
21430
21431 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
21432 FRAME_FOREGROUND_PIXEL.
21433
21434 * print.c (print_preprocess): Don't lose print_depth levels while
21435 iterating.
21436
21437 * widget.c (update_from_various_frame_slots):
21438 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21439
21440 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
21441 frames.
21442 (window_internal_height): Remove bogus make_number call.
21443 (init_window_once): Call make_terminal_frame with two zero parameters.
21444
21445 * fileio.c (Fread_file_name): Update comment.
21446
21447 * callint.c (Fcall_interactively):
21448 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
21449 Make sure it is correctly unwound.
21450
21451 * xsmfns.c (x_session_close): New function.
21452
21453 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
21454 Delete declarations.
21455
21456 * xterm.h: Remove declaration for x_fully_uncatch_errors.
21457 (x_output): Remove background_pixel and foreground_pixel fields.
21458 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
21459 (x_delete_device, x_session_close): Declare.
21460
21461 * lread.c: Include setjmp.h. Update declaration of `read_char'.
21462 (read_filtered_event): Call `read_char' with a local
21463 `wrong_kboard_jmpbuf'.
21464
21465 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
21466 Don't call single_kboard_state. Use FRAME_RIF.
21467
21468 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
21469 systems.
21470
21471 * lisp.h (set_process_environment): Rename to `set_global_environment'.
21472 (Fframe_with_environment, Fset_input_meta_mode)
21473 (Fset_quit_char): EXFUN.
21474 (x_create_device, tty_output, terminal, tty_display_info): Declare.
21475 (init_sys_modes, reset_sys_modes): Update prototypes.
21476 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
21477
21478 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
21479 Vlocal_key_translation_map, and Vkeyboard_translate_table.
21480 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
21481 Delete declarations.
21482 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
21483 (temporarily_switch_to_single_kboard, tty_read_avail_input):
21484 New declarations.
21485
21486 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
21487 already does that during init_display(). Call syms_of_keymap
21488 before syms_of_keyboard. Call `syms_of_terminal'.
21489 Call set_initial_environment, not set_process_environment.
21490 (shut_down_emacs): Call reset_all_sys_modes() instead of
21491 reset_sys_modes().
21492
21493 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
21494 (internal_resolve_face_name, resolve_face_name_error): New functions.
21495 (resolve_face_name): Protect against loops and errors thrown by Fget.
21496 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
21497 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
21498
21499 * scroll.c: Replace CURTTY() with local variables throughout the
21500 file (where applicable).
21501 (calculate_scrolling, calculate_direct_scrolling)
21502 (scrolling_1, scroll_cost): Use the accessor macros for terminal
21503 characteristics.
21504
21505 * keymap.c (Vfunction_key_map): Remove.
21506 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
21507 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
21508 (Vkey_translation_map): Remove.
21509 (syms_of_keymap): Remove DEFVAR for key-translation-map.
21510 (Fdescribe_buffer_bindings)
21511 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
21512 Update for terminal-local key-translation-map.
21513
21514 * Makefile.in (callproc.o): Update dependencies.
21515 (lisp, shortlisp): Add termdev.elc.
21516 (obj): Add terminal.o.
21517 (terminal.o): Add dependencies.
21518 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
21519 (data.o, fns.o): Add termhooks.h dependency.
21520 (SOME_MACHINE_LISP): Add dnd.elc.
21521 (minibuf.o): Fix typo.
21522 Update dependencies.
21523
21524 * data.c (do_symval_forwarding, store_symval_forwarding)
21525 (find_symbol_value): Use the selected frame's keyboard, not
21526 current_kboard.
21527
21528 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
21529 Vwindow_system.
21530
21531 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
21532 Fmenu_bar_open.
21533 (syms_of_xmenu): Update defsubr.
21534 (mouse_position_for_popup, Fx_popup_menu)
21535 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
21536 (set_frame_menubar, free_frame_menubar)
b97439ce 21537 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
21538 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
21539 an X frame.
21540
21541 * xselect.c (x_own_selection): Abort if not an X frame.
21542 (some_frame_on_display): Check if it is an X frame.
21543 (x_handle_selection_clear): Deal with MULTI_KBOARD.
21544
21545 * coding.c: Include frame.h and termhooks.h.
21546 (terminal_coding, keyboard_coding): Delete.
21547 (Fset_terminal_coding_system_internal)
21548 (Fset_keyboard_coding_system_internal)
21549 (Fkeyboard_coding_system)
21550 (Fterminal_coding_system): Add a terminal parameter.
21551 Get terminal_coding from the terminal.
21552 (init_coding_once): Don't call setup_coding_system here.
21553
21554 * dispextern.h (set_scroll_region, turn_off_insert)
21555 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
21556 (tty_clear_end_of_line, tty_setup_colors)
21557 (delete_tty, updating_frame)
21558 (produce_special_glyphs, produce_glyphs, write_glyphs)
21559 (insert_glyphs): Remove.
21560 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
21561 (tty_turn_off_highlight, get_tty_size): Add declaration.
21562 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
21563
21564 * frame.h (enum output_method): Add output_initial.
21565 (struct x_output): Delete.
21566 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21567 Access foreground_pixel and background_pixel directly from the frame.
21568 (tty_display): Delete.
21569 (struct frame): Add buried_buffer_list, foreground_pixel,
21570 background_pixel and terminal. Delete kboard.
21571 (union output_data): Add tty.
21572 (FRAME_KBOARD): Get the kboard from the terminal.
21573 (FRAME_INITIAL_P): New macro.
21574 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
21575 (Qterm_environment_variable, Qdisplay_environment_variable)
21576 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
21577 New declarations.
21578
21579 * termchar.h (tty_output, tty_display_info): New structures.
21580 (tty_list): Declare.
21581 (FRAME_TTY, CURTTY): New macros.
21582 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
21583 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
21584 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
21585 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
21586
21587 * callproc.c: Include frame.h and termhooks.h, for terminal
21588 parameters.
21589 (add_env): New function.
21590 (child_setup): Use it.
21591 (child_setup, getenv_internal): Handle the new Vprocess_environment.
21592 (getenv_internal): Fix get_terminal_param call.
21593 (Fgetenv_internal, egetenv): Update doc.
21594 (syms_of_callproc): Initialize Vprocess_environment to nil.
21595 Register and initialize them. Remove obsolete defvars. Update doc
21596 strings.
21597 (child_setup): Handle Vlocal_environment_variables.
21598 (getenv_internal): Add terminal parameter.
21599 Handle Vlocal_environment_variables.
21600 (Fgetenv_internal): Add terminal parameter.
21601 (child_setup, getenv_internal, Fgetenv_internal): Store the local
21602 environment in a frame (not terminal) parameter. Update doc strings.
21603 (set_initial_environment): Rename from set_global_environment.
21604 Store Emacs environment in initial frame parameter.
21605
21606 * xdisp.c (redisplay_internal): Update references to
21607 `previous_terminal_frame'.
21608 (display_mode_line, Fformat_mode_line): Replace calls to
21609 `push_frame_kboard' with `push_kboard'.
21610 (get_glyph_string_clip_rects): Add extra parentheses and
21611 braces to prevent compiler warnings.
21612 (calc_pixel_width_or_height): Add xassert to check that the
21613 frame is alive. Don't call `lookup_image' on a termcap frame.
21614 (message2_nolog, message3_nolog, redisplay_internal)
21615 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
21616 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
21617 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
21618 (Fx_display_pixel_width, Fx_display_pixel_height)
21619 (Fx_display_planes, Fx_display_color_cells)
21620 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
21621 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
21622 (Fx_display_backing_store, Fx_display_visual_class)
21623 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
21624 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
21625
21626 * xfns.c (x_set_foreground_color x_set_background_color)
21627 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
21628 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21629 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
21630 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
21631 terminal that is being deleted.
21632 (Fx_create_frame): Use `store_frame_param' to set `window-system'
21633 frame parameter, and make sure it overrides any user-supplied setting.
21634 (Fx_close_connection, Fx_synchronize): Unify argument names with
21635 the rest of the DEFUNs.
21636
21637 * dispnew.c (Fsend_string_to_terminal): Update call to
21638 `get_tty_terminal'.
21639 (Fredraw_frame, Fsend_string_to_terminal)
21640 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
21641 FRAME_TERMCAP_P and FRAME_TTY.
21642 (window_change_signal): Don't believe width/height values that are
21643 impossibly small.
21644 (Vinitial_window_system): Rename from Vwindow_system.
21645 (termscript, Wcm, rif): Delete.
21646
21647 * termhooks.h (struct terminal): New struct containing the
21648 previously global text display hooks and new members NAME,
21649 DELETED and PARAM_ALIST.
21650 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
21651 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
21652 (FRAME_RIF): New macros.
21653 (get_terminal_param, get_device): New declarations.
21654 (termscript): Delete declaration.
21655
21656 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
21657 (XTflash, x_free_frame_resources, x_scroll_bar_create)
21658 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
21659 FRAME_FOREGROUND_PIXEL.
21660 (x_fully_uncatch_errors): Disable definition.
21661 (x_scroll_bar_expose): Fix reference to foreground pixel.
21662 (XTread_socket): Disable loop on all X displays.
21663 (x_delete_terminal): Don't set terminal->deleted and let
21664 delete_terminal delete the frames on the terminal.
21665 (x_delete_display): Doc update to reflect changes in
21666 delete_terminal.
21667 (x_display_info) <terminal>: Move member earlier in the struct.
21668 (deleting_tty): Remove old variable.
21669 (Fsuspend_tty): Call clear_tty_hooks.
21670 (Fresume_tty, init_tty): Call set_tty_hooks.
21671 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21672 errors on X frames.
21673 (x_catch_errors_unwind): Abort if x_error_message is NULL.
21674 (handle_one_xevent): Initialize `f' to NULL.
21675 (x_delete_terminal, x_create_terminal): New functions.
21676 (XTset_terminal_modes, XTreset_terminal_modes)
21677 (XTread_socket, x_connection_closed, x_term_init)
21678 (x_term_init, x_delete_display): Add terminal parameter.
21679 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21680 X connections.
21681
21682 * frame.c: Include termchar.h.
21683 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21684 (Qwindow_system, Qenvironment, Qterm_environment_variable)
21685 (Qdisplay_environment_variable): New vars.
21686 (Fframep): Deal with output_initial.
21687 (Fframe-live-p): Doc fix.
21688 (Fwindow-system): New function.
21689 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21690 (make_terminal_frame): Don't create frames on a terminal that is
21691 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21692 (store_frame_param): Check for found_for_frame before calling XFRAME.
21693 (Fmake_terminal_frame): Handle NULL tty names correctly.
21694 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21695 (Fdelete_frame): Remove unused variable `count'. Don't allow other
21696 frames to refer to a deleted frame in their 'environment parameter.
21697 (Fframe_with_environment): New function.
21698 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
21699 (get_future_frame_param): New function.
21700 (Fmake_terminal_frame): Use it.
21701 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21702
21703 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21704 * sysdep.c (reset_sys_modes): Update for renames.
21705
21706 * keyboard.c (tty_read_avail_input): New function.
21707 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
21708 (syms_of_keyboard): Defsubr them.
21709 (Fset_input_meta_mode, Fset_quit_char): New functions.
21710 (Fset_input_mode): Split to above functions.
21711 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21712 parameter. Use it in call to `read_char'.
21713 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
21714 Set wrong_kboard_jmpbuf correctly in recursive calls.
21715 Use current_kboard to access Vkeyboard_translate_table.
21716 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21717 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21718 Update longjmp invocations. Remember the original current_kboard,
21719 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21720 changes it. Comment out unnecessary calls to
21721 `record_single_kboard_state' and `any_kboard_state'.
21722 Update recursive calls.
21723 (wrong_kboard_jmpbuf): Remove global variable.
21724 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21725 Handle deleted interrupted_kboards correctly; that is a legal
21726 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21727 and read_char calls. Abort if interrupted_kboard died in read_char.
21728 (any_kboard_state, single_kboard_state)
21729 (push_frame_kboard): Remove function.
21730 (pop_kboard): Switch out of single_kboard mode if the kboard has
21731 been deleted. Remove unused variable. Help debugging by not
21732 changing current_kboard unnecessarily. Set current_kboard to the
21733 kboard of the selected frame when the stored kboard object has
21734 been deleted before pop_kboard.
21735 (temporarily_switch_to_single_kboard): Change first parameter to a
21736 frame pointer. Throw an error when caller wants to change kboards
21737 while in single_kboard mode. Don't push_kboard if we weren't in
21738 single kboard state. Don't pop_kboard if we popped into any
21739 kboard state.
21740 (restore_kboard_configuration): Abort if pop_kboard changed the
21741 kboard in single_kboard mode. Call pop_kboard only after setting
21742 up single_kboard mode.
21743 (Frecursive_edit): Switch to single_kboard mode only in nested
21744 command loops.
21745 (cmd_error, command_loop, command_loop_1, timer_check):
21746 Comment out unnecessary call to `any_kboard_state' and
21747 `record_single_kboard_state'.
21748 (delete_kboard): Exit single_kboard mode if we have just deleted
21749 that kboard. Use FRAME_KBOARD.
21750 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21751 `fatal_error_signal'.
21752 (record_single_kboard_state): Don't push_kboard if we weren't in
21753 single kboard state. Don't pop_kboard if we popped into any
21754 kboard state.
21755 (push_frame_kboard): Rename to push_kboard.
21756 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21757 (read_avail_input): Read input from all terminals.
21758 (mark_kboards): Also mark Vkeyboard_translate_table.
21759 (kbd_buffer_store_event_hold): Simplify condition.
21760 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21761 (Vkeyboard_translate_table): Move to struct kboard.
21762 (init_kboard): Initialize Vkeyboard_translate_table.
21763 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21764 Vkeyboard_translate_table. Update doc strings. Update docs of
21765 local-function-key-map and function-key-map.
21766
21767 * terminal.c: New file.
21768
21769 * term.c: Include errno.h.
21770 (Vring_bell_function, device_list, initial_device)
21771 (next_device_id, ring_bell, update_begin, update_end)
21772 (set_terminal_window, cursor_to, raw_cursor_to)
21773 (clear_to_end, clear_frame, clear_end_of_line)
21774 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21775 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21776 (syms_of_term): Move their initialization to terminal.c.
21777 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21778 (Ftty_display_color_cells)
21779 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21780 (clear_tty_hooks, set_tty_hooks)
21781 (init_tty, maybe_fatal): New functions.
21782 (Ftty_type): Return nil if terminal is not on a tty instead of
21783 throwing an error. Doc update.
21784 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21785 Doc update. Initialize new subrs and variables.
21786 (delete_tty): Use terminal->deleted.
21787 (tty_set_terminal_modes): Rename from set_terminal_modes.
21788 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21789 (set_scroll_region): Rename to `tty_set_scroll_region'.
21790 (turn_on_insert): Rename to `tty_turn_on_insert'.
21791 (turn_off_insert): Rename to `tty_turn_off_insert'.
21792 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21793 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21794 (toggle_highligh): Rename to `tty_toggle_highlight'.
21795 (background_highlight): Rename to `tty_background_highlight'.
21796 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21797 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21798 (tty_set_scroll_region, tty_background_highlight)
21799 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21800 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21801 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21802 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21803 Add static modifier.
21804 (tty_reset_terminal_modes, tty_set_terminal_window)
21805 (tty_set_scroll_region, tty_background_highlight)
21806 (tty_highlight_if_desired, tty_cursor_to)
21807 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21808 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21809 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21810 renames.
21811
218122007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21813
21814 * keyboard.c: Qrtl is new.
21815 (parse_tool_bar_item): Handle :rtl keyword.
21816 (syms_of_keyboard): Intern :rtl keyword.
21817
21818 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21819
21820 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21821 so no Lisp code is executed.
21822 (file_for_image, find_rtl_image): New functions.
21823 (xg_get_image_for_pixmap): Use file_for_image.
21824 (update_frame_tool_bar): If direction is RTL, use RTL image if
21825 defined. Use Gtk stock images if defined.
21826
218272007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21828
21829 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21830 for nonexistent or zero-width glyph in composition glyph.
21831
218322007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21833
21834 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21835
21836 * xdisp.c (Finvisible_p): New function.
21837 (syms_of_xdisp): defsubr it.
21838
218392007-08-24 Juanma Barranquero <lekktu@gmail.com>
21840
21841 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21842 Doc fixes.
21843
218442007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21845
21846 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21847
218482007-08-24 Martin Rudalics <rudalics@gmx.at>
21849
21850 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21851 whether decoding has modified buffer contents.
21852
218532007-08-24 Jason Rumney <jasonr@gnu.org>
21854
21855 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21856 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21857 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21858 (init_svg_functions) [HAVE_NTGUI]: New function.
21859 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21860 (svg_load_image): Use them.
21861 (svg_load_image) [HAVE_NTGUI]: Implement background.
21862
218632007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21864
21865 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21866 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21867 (LIBX): Remove @RSVG_LIBS@.
21868 (LIBES): Add $(RSVG_LIBS).
21869
21870 * image.c (svg_load_image): Blend with specified background if exists.
21871 Use IMAGE_BACKGROUND. Add Mac OS Support.
21872
21873 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21874 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21875 Remove macros.
21876 [MAC_OSX] (socket_callback): Do nothing.
21877 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21878 ReceiveNextEvent.
21879 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21880 socket_callback.
21881 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21882
218832007-08-22 Glenn Morris <rgm@gnu.org>
21884
21885 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21886
218872007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21888
21889 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21890
21891 * image.c: Add support for SVG images. Some additional comments
21892 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21893 (svg_image_p): New function to test for SVG image.
21894 (svg_load): New function to load SVG image.
21895 (svg_load_image): New function, helper for svg_load.
21896 (Qsvg): New Lisp_object.
21897 (svg_keyword_index): New enum.
21898 (svg_format): New static `image_keyword' struct.
21899 (svg_type): New static `image_type' struct.
21900 (librsvg/rsvg.h): Include it.
21901
219022007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21903
21904 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21905
219062007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21907
21908 * lread.c (Qold_style_backquotes): New var.
21909 (syms_of_lread): Init and staticpro it.
21910 (load_warn_old_style_backquotes): New fun.
21911 (Fload): Use them to warn about old style backquotes.
21912 (end_of_file_error, Fload): Remove unused vars.
21913
21914 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21915
21916 * lread.c (Vold_style_backquotes): New var.
21917 (syms_of_lread): Init and export it to Elisp.
21918 (read1): Set it when we find an old-style (back)quote.
21919
219202007-08-22 Jason Rumney <jasonr@gnu.org>
21921
21922 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21923
219242007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21925
21926 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21927
219282007-08-19 Richard Stallman <rms@gnu.org>
21929
21930 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21931
219322007-08-19 Andreas Schwab <schwab@suse.de>
21933
21934 * alloc.c (pure): Round PURESIZE up.
21935
219362007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21937
21938 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21939 active frame.
21940
219412007-08-16 Richard Stallman <rms@gnu.org>
21942
21943 * eval.c (Fcommandp): Add parens to clarify.
21944
21945 * minibuf.c (Fall_completions): Use enum for type of table.
21946
21947 * emacs.c (USAGE2): Improve text.
21948
219492007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21950
21951 * term.c (tty_default_color_capabilities): Declare static
21952 variables in file scope, to avoid HPUX compiler problem.
21953
219542007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21955
21956 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21957 to gtk_toolbar_insert.
21958
219592007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21960
21961 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21962
21963 * insdel.c (reset_var_on_error): New fun.
21964 (signal_before_change, signal_after_change):
21965 Use it to reset (after|before)-change-functions to nil in case of error.
21966 Bind inhibit-modification-hooks to t.
21967 Don't bind (after|before)-change-functions to nil while they run.
21968
219692007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21970
21971 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21972 filling pixmap with stippled background.
21973
219742007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21975
21976 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21977 Don't use invisible frame as parent window for repositioning.
21978
219792007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21980
21981 * print.c (new_backquote_output): Rename from old_backquote_output.
21982 (print): Inverse its logic (according to its name) so as to match the
21983 behavior of new_backquote_flag in lread.c.
21984
219852007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21986
21987 * gmalloc.c (posix_memalign): New function.
21988
21989 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21990 ActivateControl/DeactivateControl here.
21991 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21992 frame-notice-user-settings is non-nil.
21993 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21994 for kEventParamFMFontStyle.
21995 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21996 mac_pass_command_to_system and mac_pass_control_to_system here.
21997 (XTread_socket): Call ActivateControl/DeactivateControl here.
21998 (XTread_socket) [TARGET_API_MAC_CARBON]:
21999 Check mac_pass_command_to_system and mac_pass_control_to_system here.
22000 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
22001 for window repositioning.
22002
220032007-08-08 Glenn Morris <rgm@gnu.org>
22004
22005 * Replace `iff' in doc-strings and comments.
22006
220072007-08-07 Chong Yidong <cyd@stupidchicken.com>
22008
22009 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
22010
220112007-08-07 Martin Rudalics <rudalics@gmx.at>
22012
22013 * fileio.c (Finsert_file_contents): Run format-decode and
22014 after_insert_file_functions on entire buffer when REPLACE is
22015 non-nil and inhibit modification_hooks and point_motion_hooks.
22016 For consistency, run after_insert_file_functions iff something
22017 got inserted. Move signal_after_change and update_compositions
22018 after code running after_insert_file_functions. Make sure that
22019 undo_list doesn't record intermediate steps of the decoding process.
22020
220212007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22022
22023 * emacs.c (main)
22024 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
22025 Call malloc_enable_thread on interactive startup.
22026
22027 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
22028 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
22029 [USE_PTHREAD]: Conditionalize with it.
22030 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
22031 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
22032 New functions.
22033
220342007-08-06 Chong Yidong <cyd@stupidchicken.com>
22035
22036 * xdisp.c (redisplay_window): When restoring original buffer
22037 position, make sure it is still valid.
22038
22039 * image.c (png_load): Ignore png-supplied background color.
22040
220412007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22042
22043 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
22044 Use kCFAbsoluteTimeIntervalSince1970.
22045
22046 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
22047 New variable.
22048 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
22049 event loop should be quit.
22050 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
22051 Quit dialog event loop if quit_dialog_event_loop is set.
22052
22053 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
22054 (Selection): New typedef. Use instead of ScrapRef.
22055 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
22056 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
22057 (mac_clear_selection): Rename from clear_scrap.
22058 (get_flavor_type_from_symbol): New argument SEL and subsume function of
22059 scrap_has_target_type. All uses changed.
22060 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22061 (mac_selection_has_target_p): New functions.
22062 (mac_put_selection_value): Rename from put_scrap_string.
22063 (mac_get_selection_value): Rename from get_scrap_string.
22064 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
22065 (put_scrap_private_timestamp, scrap_has_target_type)
22066 (get_scrap_private_timestamp): Remove functions.
22067 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
22068 (x_own_selection, x_get_local_selection):
22069 Use mac_valid_selection_value_p.
22070 (x_own_selection): Don't use put_scrap_private_timestamp.
22071 Record OWNERSHIP-INFO into Vselection_alist instead.
22072 (x_get_local_selection): Don't check type if request is local.
22073 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
22074 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
22075
220762007-08-04 Jan Djärv <jan.h.d@swipnet.se>
22077
22078 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
22079 add comment explaining why.
22080
220812007-08-03 Richard Stallman <rms@gnu.org>
22082
22083 * fileio.c (Fvisited_file_modtime): Use make_time.
22084
220852007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
22086
22087 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
22088 build.
22089
220902007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
22091
22092 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
22093
220942007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
22095
22096 * puresize.h (BASE_PURESIZE): Increase to 1130000.
22097
220982007-07-30 Richard Stallman <rms@gnu.org>
22099
22100 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
22101
221022007-07-29 Jan Djärv <jan.h.d@swipnet.se>
22103
22104 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
22105
221062007-07-28 Nick Roberts <nickrob@snap.net.nz>
22107
22108 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
22109 remote default-directory.
22110
22111 * buffer.c (mode-line-format): Update doc string.
22112
221132007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22114
22115 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
22116 scroll bar gap.
22117 (x_scroll_bar_create): Set bar->fringe_extended_p.
22118 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
22119 on frame edge. Check fringe background extension. Don't clear
22120 extended fringe background area.
22121
22122 * w32term.h (struct scroll_bar): New member fringe_extended_p.
22123 (w32_fill_area): Enclose multiple statements with do ... while (0).
22124
22125 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
22126 Extend fringe background to scroll bar gap.
22127 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
22128 Set bar->fringe_extended_p.
22129 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22130 Put leftmost/rightmost scroll bars on frame edge. Check fringe
22131 background extension. Don't clear extended fringe background area.
22132
22133 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22134 New member fringe_extended_p.
22135
221362007-07-25 Glenn Morris <rgm@gnu.org>
22137
22138 * Relicense all FSF files to GPLv3 or later.
22139
22140 * COPYING: Switch to GPLv3.
22141
221422007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
22143
22144 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
22145
22146 * data.c (Finteractive_form): Check for the presence of an
22147 `interactive-form' symbol property more thoroughly.
22148
22149 * data.c (Finteractive_form): Use an `interactive-form' property if
22150 present, analogous to the function-documentation property.
22151
221522007-07-24 Jason Rumney <jasonr@gnu.org>
22153
22154 * w32fns.c (x_real_positions): Get real position from OS instead of
22155 calculating it.
22156
221572007-07-23 Jason Rumney <jasonr@gnu.org>
22158
22159 * filelock.c (current_lock_owner): Allow for @ sign in username.
22160
221612007-07-22 Nick Roberts <nickrob@snap.net.nz>
22162
22163 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
22164 remote default-directory.
22165
22166 * buffer.c (mode-line-format): Describe above case in doc string.
22167
221682007-07-20 Eli Zaretskii <eliz@gnu.org>
22169
22170 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
22171 Define if not defined.
22172
221732007-07-18 Jason Rumney <jasonr@gnu.org>
22174
22175 * w32proc.c (w32_executable_type): Handle 64 bit executables.
22176
221772007-07-18 Richard Stallman <rms@gnu.org>
22178
22179 * data.c (Fsetq_default): Doc fix.
22180
22181 * eval.c (Fsetq): Doc fix.
22182
221832007-07-18 Juanma Barranquero <lekktu@gmail.com>
22184
22185 * coding.c (Ffind_operation_coding_system):
22186 * eval.c (For, Fand): Doc fixes.
22187 Reported by Johan Bockgård.
22188
221892007-07-18 Jan Djärv <jan.h.d@swipnet.se>
22190
22191 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
22192
22193 * xterm.h: Declare x_ewmh_activate_frame.
22194
22195 * xterm.c (x_ewmh_activate_frame): New function.
22196 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
22197
221982007-07-17 Martin Rudalics <rudalics@gmx.at>
22199
22200 * window.c (Fdisplay_buffer): If largest or LRU window is the
22201 only window, split it even if it is not eligible for splitting.
22202 This restores the original behavior broken by the 2007-07-15
22203 change.
22204
222052007-07-17 Glenn Morris <rgm@gnu.org>
22206
22207 * abbrev.c (abbrev_check_chars): New function.
22208 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
22209 Call abbrev_check_chars to check abbrev characters are word
22210 constituents. Doc fix.
22211
222122007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
22213
22214 * process.c (Fstart_process, Fmake_network_process)
22215 (read_process_output): Fix up last changes.
22216
222172007-07-16 Eli Zaretskii <eliz@gnu.org>
22218
22219 * makefile.w32-in (clean): Don't delete *~.
22220
222212007-07-16 Andreas Schwab <schwab@suse.de>
22222
22223 * window.c (Fdisplay_buffer): Use NILP.
22224 (Fset_window_scroll_bars): Likewise.
22225
222262007-07-15 Martin Rudalics <rudalics@gmx.at>
22227
22228 * window.c (window_min_size_2): New function.
22229 (window_min_size_1, size_window, Fdisplay_buffer)
22230 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
22231 windows without mode- or header-lines when window-min-height is
22232 too small.
22233 (size_window): Reset nodelete_p after testing it, following an
22234 earlier note by Kim F. Storm.
22235 (display_buffer): Do not set split_height_threshold to twice the
22236 value of window_min_height to avoid changing the value of a
22237 customizable variable. Rather explicitly check whether the
22238 height of the window that shall be splitted is at least as large
22239 as split_height_threshold.
22240 (Fwindow_full_width_p): New defun.
22241 (syms_of_window): Defsubr it.
22242
22243 * window.h: Add EXFUN for Fwindow_full_width_p.
22244
222452007-07-14 Jason Rumney <jasonr@gnu.org>
22246
22247 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
22248
222492007-07-14 Richard Stallman <rms@gnu.org>
22250
22251 * eval.c (maybe_call_debugger): New function.
22252 (find_handler_clause): Use maybe_call_debugger.
22253 Call it when the handler says `debug'.
22254 Eliminate DEBUGGER_VALUE_PTR.
22255 (Fsignal): Eliminate debugger_value.
22256 (Qdebug): New variable.
22257 (syms_of_eval): Initialize it.
22258
222592007-07-14 Juanma Barranquero <lekktu@gmail.com>
22260
22261 * eval.c (Fprogn):
22262 * keyboard.c (Ftrack_mouse):
22263 * print.c (Fwith_output_to_temp_buffer):
22264 * window.c (Fsave_window_excursion): Doc fix.
22265
222662007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
22267
22268 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
22269
222702007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
22271
22272 * process.h (struct Lisp_Process): Turn slots infd, outfd,
22273 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
22274 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
22275 read_output_delay, and read_output_skip from Lisp_Objects to ints.
22276 Remove unused encoding_carryover.
22277 * process.c: Adjust all functions accordingly.
22278
222792007-07-12 Richard Stallman <rms@gnu.org>
22280
22281 * term.c: Include unistd.h only if HAVE_UNISTD_H.
22282
222832007-07-11 Jason Rumney <jasonr@gnu.org>
22284
22285 * makefile.w32-in (LIBS): Include OLE32.
22286
22287 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
22288 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
22289
222902007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
22291
22292 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
22293 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
22294 from a Lisp_Object into a bare pointer.
22295 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22296 Adjust the code correspondingly.
22297
22298 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
22299
22300 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
22301 (term_show_mouse_face): Remove unused var `j'.
22302 (handle_one_term_event): Remove unused vars `i' and `j'.
22303 Don't cast return value of ttyname since it's not necessary.
22304
223052007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
22306
22307 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
22308 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
22309
22310 * fns.c (map_char_table): Use an array of int for `indices' rather than
22311 an array of Lisp_Objects (which are only ever integers anyway).
22312 (Fmap_char_table): Update caller.
22313 * lisp.h: Update prototype.
22314 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
22315 * fontset.c (Ffontset_info):
22316 * casetab.c (set_case_table): Update callers.
22317
22318 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
22319
22320 * keymap.c (struct accessible_keymaps_data)
22321 (struct where_is_internal_data): New structures.
22322 (accessible_keymaps_1, where_is_internal_1): Use them to change
22323 interface to adhere to the one used by map_keymap.
22324 (Faccessible_keymaps, where_is_internal): Use map_keymap.
22325 (accessible_keymaps_char_table, where_is_internal_2): Remove.
22326
22327 * keymap.h (map_keymap_function_t): More informative prototype.
22328
223292007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
22330
22331 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
22332 (looking_at_1): Don't change search_regs and last_thing_searched
22333 if `inhibit-changing-match-data' is non-nil.
22334 (string_match_1, search_buffer, set_search_regs): Likewise.
22335 (syms_of_search): Add Lisp level definition for
22336 `inhibit-changing-match-data' and set it to nil.
22337 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
22338 start and end of the match, instead of using values in search_regs.
22339
223402007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
22341
22342 * minibuf.c (Fcompleting_read): New value `confirm-only'
22343 for `require-match'.
22344
223452007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
22346
22347 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
22348 part of the 2007-06-27 change to syms_of_fileio.
22349
223502007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22351
22352 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
22353 Check WINDOWP before using XWINDOW. Consolidate return statements.
22354
223552007-06-27 Richard Stallman <rms@gnu.org>
22356
22357 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
22358
223592007-06-27 Juanma Barranquero <lekktu@gmail.com>
22360
22361 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
22362
223632007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22364
22365 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
22366 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
22367 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
22368 (_free_internal, memalign): Use them.
22369 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
22370 Initialize to PTHREAD_MUTEX_INITIALIZER.
22371 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
22372 (morecore_nolock): Rename from morecore. All uses changed.
22373 Use only nolock versions of internal allocation functions.
22374 (_malloc_internal_nolock, _realloc_internal_nolock)
22375 (_free_internal_nolock): New functions created from
22376 _malloc_internal, _realloc_internal, and _free_internal.
22377 (_malloc_internal, _realloc_internal, _free_internal): Use them.
22378 Copy hook value to automatic variable before its use.
22379 (memalign): Copy hook value to automatic variable before its use.
22380
223812007-06-26 Kenichi Handa <handa@m17n.org>
22382
22383 * coding.c (Ffind_operation_coding_system): Docstring improved.
22384 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
22385
223862007-06-25 David Kastrup <dak@gnu.org>
22387
22388 * keymap.c (Fcurrent_active_maps): Add `position' argument.
22389 (Fwhere_is_internal): Adjust call to `current-active-maps' to
22390 cater for additional parameter.
22391
22392 * keymap.h: Adjust number of parameters to `current-active-maps'.
22393
22394 * doc.c (Fsubstitute_command_keys): Adjust call of
22395 `current-active-maps'.
22396
223972007-06-25 David Kastrup <dak@gnu.org>
22398
22399 * callint.c (Fcall_interactively): Make the parsing of interactive
22400 specs somewhat more readable.
22401
224022007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22403
22404 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
22405 to scroll bar gap also when bitmap fills fringe. Draw only foreground
22406 if extended background has already been filled.
22407
224082007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22409
22410 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
22411 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
22412
22413 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
22414 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
22415 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
22416 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
22417 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
22418 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
22419 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
22420 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
22421 Run timers during dialog popup.
22422 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
22423
224242007-06-21 Jason Rumney <jasonr@gnu.org>
22425
22426 * image.c (convert_mono_to_color_image): Swap fore and background.
22427
224282007-06-20 Jason Rumney <jasonr@gnu.org>
22429
22430 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
22431 (w32_free_bdf_font): Unmap memory not handle.
22432
224332007-06-20 Sam Steingold <sds@gnu.org>
22434
22435 * gmalloc.c (__morecore): Fix the declaration to comply with the
22436 definition.
22437
224382007-06-20 Juanma Barranquero <lekktu@gmail.com>
22439
22440 * w32term.c (w32_delete_display): Remove leftover declaration.
22441 (w32_define_cursor, w32_initialize): Make static.
22442
22443 * w32.c (_wsa_errlist): Fix typo in error message.
22444 (init_environment): Ignore any environment variable from the
22445 registry having a null value.
22446
224472007-06-20 Glenn Morris <rgm@gnu.org>
22448
22449 * Makefile.in (LIBGIF): Default to -lgif.
22450
224512007-06-17 Jason Rumney <jasonr@gnu.org>
22452
22453 * w32menu.c (add_menu_item): Don't use multibyte string functions on
22454 unicode strings.
22455
224562007-06-16 Juanma Barranquero <lekktu@gmail.com>
22457
22458 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
22459 Fix typo in docstring.
22460
224612007-06-16 Eli Zaretskii <eliz@gnu.org>
22462
22463 * w32menu.c (add_menu_item): Escape `&' characters in menu items
22464 and their keybindings.
22465
224662007-06-15 Chong Yidong <cyd@stupidchicken.com>
22467
22468 * composite.c (update_compositions): Fix last fix.
22469
224702007-06-14 Jason Rumney <jasonr@gnu.org>
22471
22472 * w32.c (get_process_times_fn): New function pointer.
22473 (globals_of_w32): Intialize it if present in kernel32.dll.
22474 (w32_get_internal_run_time): New function.
22475
22476 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
22477
224782007-06-14 Kenichi Handa <handa@etlken.m17n.org>
22479
22480 * composite.c (update_compositions): Check the validness of
22481 compositions.
22482
224832007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22484
22485 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
22486 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
22487
22488 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
22489 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
22490
22491 * macgui.h (USE_MAC_TOOLBAR): New define.
22492
22493 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22494 Return immediately unless popup is activated.
22495
22496 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
22497 background to scroll bar gap.
22498 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
22499 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
22500 scroll bars on frame edge. Check fringe background extension.
22501 Don't clear extended fringe background area.
22502 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
22503 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
22504 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
22505 [USE_MAC_TOOLBAR]: New macros.
22506 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
22507 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
22508 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
22509 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
22510 [USE_MAC_TOOLBAR]: New functions.
22511 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
22512 manually if previous repositioning has failed.
22513 (mac_handle_keyboard_event): Use precomputed event kind.
22514 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
22515 as tool bar item click. Handle mouse movement over tool bar items.
22516
22517 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
22518 toolbar_win_gravity.
22519 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
22520 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
22521 Add externs.
22522
22523 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
22524 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
22525
225262007-06-14 Chong Yidong <cyd@stupidchicken.com>
22527
22528 * image.c (search_image_cache): Remove unused variable.
22529
225302007-06-13 Chong Yidong <cyd@stupidchicken.com>
22531
22532 * xfns.c, xmenu.c: Link to xaw3d if available.
22533
225342007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22535
22536 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
22537 frame_foreground and frame_background.
22538
22539 * image.c (lookup_image): Save frame foreground and background colors.
22540 (search_image_cache): Check if saved and current frame colors match.
22541
225422007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
22543
22544 * regex.c (regex_compile): Remove the `regnum' counter.
22545 Use bufp->re_nsub instead. Add support for \(?N:RE\).
22546
225472007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
22548
22549 * term.c: Include intervals.h to declare Fget_text_property.
22550
225512007-06-10 Jason Rumney <jasonr@gnu.org>
22552
22553 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
22554
225552007-06-08 Juanma Barranquero <lekktu@gmail.com>
22556
22557 * callint.c (Fcall_interactively):
22558 * editfns.c (Fdelete_and_extract_region):
22559 * fileio.c (Fread_file_name):
22560 * fns.c (Fmapconcat):
22561 * keyboard.c (cmd_error_internal):
22562 * keymap.c (Fkey_description):
22563 * lread.c (openp):
22564 * minibuf.c (read_minibuf):
22565 * search.c (wordify):
22566 * sunfns.c (sel_read):
22567 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
22568 * xfns.c (x_default_scroll_bar_color_parameter):
22569 * xmenu.c (menu_help_callback):
22570 * xselect.c (Fx_get_atom_name):
22571 * xterm.c (x_term_init): Use empty_unibyte_string.
22572
225732007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
22574
22575 * alloc.c (init_strings): Initialize canonical empty strings.
22576 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
22577 canonical empty string when the requested size is 0.
22578
22579 * emacs.c (empty_unibyte_string): Rename from empty_string.
22580 (empty_multibyte_string): New canonical empty string.
22581 (syms_of_emacs): Don't initialize empty_string.
22582
22583 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
22584 string, if appropriate.
22585 (empty_unibyte_string, empty_multibyte_string): New externs.
22586 (empty_string): Remove extern.
22587
22588 * lread.c (syms_of_lread): Use empty_unibyte_string.
22589
225902007-06-07 Jason Rumney <jasonr@gnu.org>
22591
22592 * s/ms-w32.h: Don't define HAVE_TZNAME.
22593
22594 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
22595
225962007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22597
22598 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
22599
22600 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
22601 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
22602
22603 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22604 Don't call next handler.
22605 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
22606 Remove argument. Install handler to application.
22607 (set_frame_menubar): Don't change deep_p.
22608 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
22609 FRAME_OUTER_TO_INNER_DIFF_Y.
22610 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22611 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22612 [HAVE_DIALOGS]: New macros.
22613 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
22614 Use them.
22615 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
22616
22617 * macselect.c [MAC_OSX] (install_service_handler): Rename from
22618 init_service_handler. All callers changed. Return OSStatus value.
22619
22620 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
22621 All callers changed so as not to call SetPortWindowPort.
22622 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
22623 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
22624 mac_draw_string_common.
22625 (mac_draw_image_string_qd): Likewise.
22626 (mac_draw_string_common): Use them. Add INLINE.
22627 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
22628 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
22629 GetGlobalMouse.
22630 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
22631 and FRAME_OUTER_TO_INNER_DIFF_Y.
22632 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
22633 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
22634 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
22635 repositioning window to mac_handle_window_event.
22636 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
22637 saving window location to mac_handle_window_event
22638 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
22639 (install_menu_target_item_handler): Remove argument in extern.
22640 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
22641 Also accept command events.
22642 (do_keystroke): New function created from XTread_socket.
22643 (init_command_handler): Remove functions.
22644 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
22645 and save window location by kEventWindowShowing and kEventWindowHiding
22646 handlers here. Don't call next handler for window state change and
22647 focus events.
22648 (mac_handle_application_event, mac_handle_keyboard_event)
22649 [TARGET_API_MAC_CARBON]: New functions.
22650 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
22651 kEventWindowShowing and kEventWindowHiding events. Move installation
22652 of mouse, font, text input and menu target item handlers to
22653 install_application_handler.
22654 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
22655 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22656 New function.
22657 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22658 Register it.
22659 (XTread_socket) [TARGET_API_MAC_CARBON]:
22660 Consolidate SendEventToEventTarget calls.
22661 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22662 Move application activation handler to mac_handle_application_event.
22663 Move keyboard handler to mac_handle_keyboard_event.
22664 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22665 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22666 init_command_handler. Call install_application_handler.
22667
22668 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22669 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22670
226712007-06-07 Glenn Morris <rgm@gnu.org>
22672
22673 * emacs.c (main): Use `emacs-copyright' in --version output.
22674
226752007-06-06 Chong Yidong <cyd@stupidchicken.com>
22676
22677 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22678
226792007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22680
22681 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22682
22683 * macgui.h: Replace WindowPtr with WindowRef.
22684
22685 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22686 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22687 Replace ControlHandle with ControlRef.
22688 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22689
22690 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22691 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22692 Replace ControlHandle with ControlRef.
22693 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22694 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22695
22696 * macterm.h (struct scroll_bar): Rename member control_handle_low
22697 and control_handle_high to control_ref_low and control_ref_high.
22698 All uses changed.
22699 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22700 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22701 respectively. All uses changed.
22702 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22703 (install_window_handler, remove_window_handler): Replace WindowPtr
22704 with WindowRef in externs.
22705
227062007-06-05 Juanma Barranquero <lekktu@gmail.com>
22707
22708 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
22709
227102007-06-03 Nick Roberts <nickrob@snap.net.nz>
22711
22712 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22713
22714 * frame.c (Fmouse_position, Fmouse_pixel_position):
22715 Condition on HAVE_GPM too.
22716
22717 * term.c (term_mouse_highlight): Remove unused variables.
22718 (Fterm_open_connection): Set gpm_zerobased to 1.
22719 (term_mouse_movement, term_mouse_click, handle_one_term_event):
22720 Use zero based co-ordinates.
22721 (handle_one_term_event): Report a drag as mouse movement too.
22722
22723 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22724
227252007-06-03 Chong Yidong <cyd@stupidchicken.com>
22726
22727 * image.c (search_image_cache): New function. Require background
22728 color match if background color is unspecified in the image spec.
22729 (uncache_image, lookup_image): Use it.
22730
227312007-06-01 Juanma Barranquero <lekktu@gmail.com>
22732
22733 * window.c (Fshrink_window): Reflow docstring.
22734
227352007-06-02 Chong Yidong <cyd@stupidchicken.com>
22736
22737 * Version 22.1 released.
22738
227392007-06-01 Richard Stallman <rms@gnu.org>
22740
22741 * xfns.c (x_encode_text): Add GCPRO.
22742
227432007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22744
22745 * xfns.c (x_set_name_internal): Save encoded name before
22746 x_encode_text in case string data is relocated.
22747
227482007-05-31 Richard Stallman <rms@gnu.org>
22749
22750 * buffer.c (syms_of_buffer): Doc fix.
22751
227522007-05-30 Nick Roberts <nickrob@snap.net.nz>
22753
22754 * sysdep.c (init_sys_modes): Add rather than replace with
22755 O_NONBLOCK.
22756
22757 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22758 term_mouse_moveto.
22759
22760 * termhooks.h (term_mouse_moveto): New extern.
22761
22762 * term.c (mouse_face_window): Rename...
22763 (Qmouse_face_window): ...to this.
22764 (term_show_mouse_face, term_clear_mouse_face)
22765 (term_mouse_highlight): Use Qmouse_face_window.
22766 (term_mouse_moveto): New function.
22767 (term_mouse_position): Make it work.
22768 (syms_of_term): Uncomment assignment to mouse_position_hook.
22769 Staticpro Qmouse_face_window.
22770
227712007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22772
22773 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22774 around current_column call.
22775
227762007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22777
22778 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22779 * xdisp.c (next_element_from_buffer):
22780 * window.c (delete_window):
22781 * term.c (term_mouse_highlight):
22782 * msdos.c (getdefdir):
22783 * macterm.c (mac_create_bitmap_from_bitmap_data)
22784 (init_font_name_table):
22785 * fns.c (Fsxhash):
22786 * data.c (Fmake_local_variable):
22787 * ccl.c (ccl_driver): Likewise.
22788
227892007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22790
22791 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22792 Call mac_wakeup_from_rne on window size change.
22793
227942007-05-25 Chong Yidong <cyd@stupidchicken.com>
22795
22796 * image.c (uncache_image): Fix typo.
22797
227982007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22799
22800 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22801
228022007-05-22 Richard Stallman <rms@gnu.org>
22803
22804 * xterm.c (x_connection_closed): Remove NO_RETURN.
22805
228062007-05-22 Martin Rudalics <rudalics@gmx.at>
22807
22808 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22809
228102007-05-21 Chong Yidong <cyd@stupidchicken.com>
22811
22812 * image.c (uncache_image): New function.
22813 (Fimage_refresh): New function.
22814
228152007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22816
22817 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22818
228192007-05-20 Nick Roberts <nickrob@snap.net.nz>
22820
22821 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22822 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22823
228242007-05-20 Nick Roberts <nickrob@snap.net.nz>
22825
22826 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22827 conditional on [HAVE_GPM_H].
22828
228292007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22830
22831 * syntax.c (skip_chars): Update syntax-table only after we checked that
22832 the new location is valid.
22833
228342007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22835
22836 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22837 mac_get_window_bounds.
22838
228392007-05-20 Nick Roberts <nickrob@snap.net.nz>
22840
22841 * Makefile.in (LIBGPM): Allow it to be set from configure.
22842 If set then link Emacs with it.
22843
22844 * config.in: Regenerate.
22845
22846 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22847 New externs.
22848
22849 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22850 Include gpm.h.
22851 (handle_one_term_event, term_gpm): New externs.
22852
22853 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22854 and allow it to be interrupted by SIGIO.
22855
22856 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22857 (wait_reading_process_output): Wait on gpm_fd too.
22858 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22859 (add_gpm_wait_descriptor_called_flag): New variable.
22860 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22861
22862 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22863 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22864 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22865 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22866 (make_lispy_event): Add case GPM_CLICK_EVENT.
22867 (read_avail_input): Handle mouse input.
22868
22869 * term.c (write_glyphs_with_face): New function.
22870 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22871 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22872 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22873 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22874 (last_mouse_x, last_mouse_y): New variables.
22875 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22876 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22877 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22878 (Fterm_close_connection): New functions.
22879 (term_init): Initialise mouse_face_window.
22880
228812007-05-19 Chong Yidong <cyd@stupidchicken.com>
22882
22883 * xdisp.c (redisplay_window): If first window line is a
22884 continuation line, recompute the new window start instead of
22885 recentering.
22886
228872007-05-18 Glenn Morris <rgm@gnu.org>
22888
22889 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22890 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22891
228922007-05-17 Glenn Morris <rgm@gnu.org>
22893
22894 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22895
228962007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22897
22898 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22899 dead key repeat and up events.
22900
229012007-05-14 Chong Yidong <cyd@stupidchicken.com>
22902
22903 * image.c (pbm_load): Check image size for monochrome pbm.
22904
229052007-05-13 Chong Yidong <cyd@stupidchicken.com>
22906
22907 * xterm.c (XTread_socket): Revert last change.
22908
229092007-05-12 Chong Yidong <cyd@stupidchicken.com>
22910
22911 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22912
22913 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22914
229152007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22916
22917 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22918 mixup (YAILOM).
22919
229202007-05-07 Andreas Schwab <schwab@suse.de>
22921
22922 * keymap.c (Flookup_key): Fix typo in last change.
22923
229242007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22925
22926 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22927 mapping for unibyte strings.
22928
229292007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22930
22931 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22932 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22933
229342007-04-29 Richard Stallman <rms@gnu.org>
22935
22936 * insdel.c (replace_range): For undo, record insertion first.
22937
229382007-04-29 Andreas Schwab <schwab@suse.de>
22939
22940 * lisp.h (VECSIZE): Use OFFSETOF.
22941
229422007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22943
22944 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22945 disabled lines.
22946
229472007-04-28 Richard Stallman <rms@gnu.org>
22948
22949 * lread.c (read_escape): In a string, \s is always space.
22950
229512007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22952
22953 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22954
22955 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22956 submenu for menu bar items.
22957
22958See ChangeLog.10 for earlier changes.
22959
22960;; Local Variables:
22961;; coding: utf-8
22962;; add-log-time-zone-rule: t
aac0c6e3
MR
22963;; End:
22964
5df4f04c 22965 Copyright (C) 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
aac0c6e3
MR
22966
22967 This file is part of GNU Emacs.
22968
22969 GNU Emacs is free software: you can redistribute it and/or modify
22970 it under the terms of the GNU General Public License as published by
22971 the Free Software Foundation, either version 3 of the License, or
22972 (at your option) any later version.
22973
22974 GNU Emacs is distributed in the hope that it will be useful,
22975 but WITHOUT ANY WARRANTY; without even the implied warranty of
22976 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22977 GNU General Public License for more details.
22978
22979 You should have received a copy of the GNU General Public License
22980 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22981
22982;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40