* src/search.c (boyer_moore): Take unibyte characters from pattern
[bpt/emacs.git] / src / ChangeLog
CommitLineData
edb7b4dc
AS
12011-09-07 Andreas Schwab <schwab@linux-m68k.org>
2
3 * search.c (boyer_moore): Take unibyte characters from pattern
4 literally. (Bug#9458)
5
6e20a0d4
CY
62011-08-30 Chong Yidong <cyd@stupidchicken.com>
7
8 * syntax.c (find_defun_start): Update all cache variables if
9 exiting early (Bug#9401).
10
220fdd2e
AS
112011-08-19 Andreas Schwab <schwab@linux-m68k.org>
12
13 * keyboard.c: Include "process.h"
14
c897048c
CY
152011-07-28 Eli Zaretskii <eliz@gnu.org>
16
17 * xfaces.c (update_face_from_frame_parameter): Move out of
18 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
19 with HAVE_WINDOW_SYSTEM.
20
ea180610
AS
212011-07-26 Andreas Schwab <schwab@linux-m68k.org>
22
23 * fontset.c (fontset_get_font_group): Add proper type checks.
24 (Bug#9172)
25
7963fa06
YM
262011-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27
28 * unexmacosx.c (print_load_command_name): Add cases LC_FUNCTION_STARTS
29 and LC_VERSION_MIN_MACOSX.
30 (copy_linkedit_data) [LC_FUNCTION_STARTS]: New function.
31 (dump_it) [LC_FUNCTION_STARTS]: Use it.
32
f7912160
CY
332011-07-22 Chong Yidong <cyd@stupidchicken.com>
34
35 * frame.c (Fmodify_frame_parameters): In tty case, update the
36 default face if necessary (Bug#4238).
37
4050dcf8
YM
382011-07-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
39
40 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add -fno-pie so as to suppress
41 address randomization (Bug#8395).
42
15fa4783
KH
432011-07-07 Kenichi Handa <handa@m17n.org>
44
45 * composite.c (composition_compute_stop_pos): Ignore a static
46 composition starting before CHARPOS (Bug#8915).
47
48 * xdisp.c (handle_composition_prop): Likewise.
49
989b42d2
YM
502011-06-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
51
52 * dispnew.c (scrolling_window): Before scrolling, turn off a
53 mouse-highlight in the window being scrolled.
54
4fd75609
GM
552011-06-16 Paul Eggert <eggert@cs.ucla.edu>
56
57 * nsmenu.m: Replace all uses of XVECTOR with ASIZE and AREF. (Bug#8839)
58
8b3115e7
DN
592011-06-02 Dan Nicolaescu <dann@ics.uci.edu>
60
61 * emacs.c (main): Warn when starting a GTK emacs in daemon mode.
62
14eca62f
YM
632011-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
64
65 * fringe.c (update_window_fringes): Don't update overlay arrow bitmap
66 in the current matrix if keep_current_p is non-zero.
67
e61124cd
YM
682011-05-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
69
70 * dispextern.h (struct glyph_row): New member fringe_bitmap_periodic_p.
71
72 * dispnew.c (shift_glyph_matrix, scrolling_window): Mark scrolled row
73 for fringe update if it has periodic bitmap.
74 (row_equal_p): Also compare left_fringe_offset, right_fringe_offset,
75 and fringe_bitmap_periodic_p.
76
77 * fringe.c (get_fringe_bitmap_data): New function.
78 (draw_fringe_bitmap_1, update_window_fringes): Use it.
79 (update_window_fringes): Record periodicity of fringe bitmap in glyph
80 row. Mark glyph row for fringe update if periodicity changed.
81
82 * xdisp.c (try_window_reusing_current_matrix): Don't mark scrolled row
83 for fringe update unless it has periodic bitmap.
84
f16d9837
KH
852011-05-25 Kenichi Handa <handa@m17n.org>
86
87 * xdisp.c (get_next_display_element): Set correct it->face_id for
88 a static composition.
89
4d8ade89
YM
902011-05-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
91
92 * dispnew.c (scrolling_window): Don't exclude the case that the
93 last enabled row in the desired matrix touches the bottom boundary.
94
e531bdff
DA
952011-05-11 Drew Adams <drew.adams@oracle.com>
96
97 * textprop.c (Fprevious_single_char_property_change): Doc fix (bug#8655).
98
7db47798
YM
992011-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
100
101 * w32term.c (w32_draw_fringe_bitmap): Rename local vars `left' and
102 `width' to `bar_area_x' and `bar_area_width', respectively.
103 (x_scroll_run): Take account of fringe background extension.
104
105 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]: Rename
106 local vars `left' and `width' to `bar_area_x' and
107 `bar_area_width', respectively.
108 (x_scroll_run) [USE_TOOLKIT_SCROLL_BARS]: Take account of fringe
109 background extension.
110
25fb3d74
AS
1112011-05-09 Andreas Schwab <schwab@linux-m68k.org>
112
113 * xmenu.c (set_frame_menubar): Fix submenu loops.
114
14fe7b53
EZ
1152011-05-09 Eli Zaretskii <eliz@gnu.org>
116
117 Backport revisions 103939.1.41..103939.1.44 (inclusive) from trunk.
118 (bug#8623)
119 The next log entry shows the actual changes by Paul Eggert.
120
1212011-05-08 Paul Eggert <eggert@cs.ucla.edu>
122
123 Fix a problem with aliasing and vector headers.
124 GCC 4.6.0 optimizes based on type-based alias analysis. For
125 example, if b is of type struct buffer * and v of type struct
126 Lisp_Vector *, then gcc -O2 was incorrectly assuming that &b->size
127 != &v->size, and therefore "v->size = 1; b->size = 2; return
128 v->size;" must therefore return 1. This assumption is incorrect
129 for Emacs, since it type-puns struct Lisp_Vector * with many other
130 types. To fix this problem, this patch adds a new type struct
131 vector_header that documents the constraints on layout of vectors
132 and pseudovectors, and helps optimizing compilers not get fooled
133 by Emacs's type punning. It also adds the macros XSETTYPED_PVECTYPE
134 XSETTYPED_PSEUDOVECTOR, TYPED_PSEUDOVECTORP, for similar reasons.
135 * lisp.h (XVECTOR_SIZE): New convenience macro. All previous uses of
136 XVECTOR (foo)->size replaced to use this macro, to avoid the hassle
137 of writing XVECTOR (foo)->header.size.
138 * lisp.h: Say "vectorlike header" rather than "vector header.
139 (struct vectorlike_header): Rename from struct vector_header.
140 (XVECTORLIKE_HEADER_SIZE): Renamed from XVECTOR_HEADER_SIZE.
141 All uses changed.
142 (XVECTOR_HEADER_SIZE): New macro, for use in XSETPSEUDOVECTOR.
143 (XSETTYPED_PVECTYPE): New macro, specifying the name of the size
144 member.
145 (XSETPVECTYPE): Rewrite in terms of new macro.
146 (XSETPVECTYPESIZE): New macro, specifying both type and size.
147 This is a bit clearer, and further avoids the possibility of
148 undesirable aliasing.
149 (XSETTYPED_PSEUDOVECTOR): New macro, specifying the size.
150 (XSETPSEUDOVECTOR): Rewrite in terms of XSETTYPED_PSEUDOVECTOR
151 and XVECTOR_HEADER_SIZE.
152 (XSETSUBR): Rewrite in terms of XSETTYPED_PSEUDOVECTOR and XSIZE,
153 since Lisp_Subr is a special case (no "next" field).
154 (ASIZE): Rewrite in terms of XVECTOR_SIZE.
155 (struct vector_header): New type.
156 (TYPED_PSEUDOVECTORP): New macro, also specifying the C type of the
157 object, to help avoid aliasing.
158 (PSEUDOVECTORP): Rewrite in terms of TYPED_PSEUDOVECTORP.
159 (SUBRP): Likewise, since Lisp_Subr is a special case.
160
161 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table):
162 (struct Lisp_Sub_Char_Table, struct Lisp_Bool_Vector):
163 (struct Lisp_Hash_Table): Combine first two members into a single
164 struct vector_header member. All uses of "size" and "next" members
165 changed to be "header.size" and "header.next".
166 * buffer.h (struct buffer): Likewise.
167 * font.h (struct font_spec, struct font_entity, struct font): Likewise.
168 * frame.h (struct frame): Likewise.
169 * process.h (struct Lisp_Process): Likewise.
170 * termhooks.h (struct terminal): Likewise.
171 * window.c (struct save_window_data, struct saved_window): Likewise.
172 * window.h (struct window): Likewise.
173 * alloc.c (allocate_buffer, Fmake_bool_vector, allocate_pseudovector):
174 Use XSETPVECTYPESIZE, not XSETPVECTYPE, to avoid aliasing problems.
175 * buffer.c (init_buffer_once): Likewise.
176 * lread.c (defsubr): Use XSETTYPED_PVECTYPE, since Lisp_Subr is a
177 special case.
178 * process.c (Fformat_network_address): Use local var for size,
179 for brevity.
180 * fns.c (vector): Remove; this old hack is no longer needed.
181 * bytecode.c (exec_byte_code): Don't use XVECTOR before CHECK_VECTOR.
182
fab624aa
EZ
1832011-04-29 Eli Zaretskii <eliz@gnu.org>
184
185 * w32heap.c (allocate_heap) [USE_LISP_UNION_TYPE || USE_LSB_TAG]:
186 New version that can reserve upto 2GB of heap space.
187
45cb8994
CY
1882011-04-26 Chong Yidong <cyd@stupidchicken.com>
189
190 * nsfns.m (Fns_read_file_name): Doc fix (Bug#8534).
191
97a93095
EZ
1922011-04-18 Eli Zaretskii <eliz@gnu.org>
193
194 * s/ms-w32.h (localtime): Redirect to sys_localtime.
195
196 * w32.c: Include <time.h>.
197 (sys_localtime): New function.
198
c17819f4
CY
1992011-04-13 Chong Yidong <cyd@stupidchicken.com>
200
201 * xdisp.c (init_xdisp): Initialize echo_area_window (Bug#6451).
202
300f9fca
ST
2032011-04-10 Samuel Thibault <sthibault@debian.org> (tiny change)
204
205 * sysdep.c (wait_for_termination): On GNU Hurd, kill returns -1 on
206 zombies (Bug#8467).
207
fde4eb86
CY
2082011-04-10 Chong Yidong <cyd@stupidchicken.com>
209
210 * buffer.c (syms_of_buffer): Doc fix (Bug#6902).
211
5324d904
CY
2122011-04-08 Chong Yidong <cyd@stupidchicken.com>
213
65969f63
CY
214 * ftfont.c (get_adstyle_property, ftfont_pattern_entity): Use
215 unsigned char, to match FcChar8 type definition.
216
217 * xterm.c (handle_one_xevent):
218 * xmenu.c (create_and_show_popup_menu):
219 * xselect.c (x_decline_selection_request)
220 (x_reply_selection_request): Avoid type-punned deref of X events.
5324d904 221
da2fb5b5 2222011-04-08 Samuel Thibault <sthibault@debian.org> (tiny change)
0080dc6b
SS
223
224 * term.c (init_tty): Fix incorrect ifdef placement (Bug#8450).
225
4e19a977
CS
2262011-03-19 Christoph Scholtes <cschol2112@googlemail.com>
227
228 * process.c (Fformat_network_address): Doc fix.
229
20f56955
CY
2302011-03-19 Chong Yidong <cyd@stupidchicken.com>
231
232 * buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
233 (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
234 These macros can no longer be used for assignment.
235
236 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Assign
237 struct members directly, instead of using BUF_BEGV etc.
238 (record_buffer_markers, fetch_buffer_markers): New functions for
239 recording and fetching special buffer markers.
240 (set_buffer_internal_1, set_buffer_temp): Use them.
241
242 * lread.c (unreadchar): Use SET_BUF_PT_BOTH.
243
244 * insdel.c (adjust_point): Use SET_BUF_PT_BOTH.
245
246 * intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
247 (get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.
248
249 * xdisp.c (hscroll_window_tree):
250 (reconsider_clip_changes): Use PT instead of BUF_PT.
251
45763476
JB
2522011-03-17 Juanma Barranquero <lekktu@gmail.com>
253
254 * xfaces.c (Fx_load_color_file):
255 Read color file from absolute filename (bug#8250).
256
1e048ad1
JB
2572011-03-11 Juanma Barranquero <lekktu@gmail.com>
258
259 Backport revno:103582 from trunk.
260 * w32xfns.c (select_palette): Check success of RealizePalette against
261 GDI_ERROR, not zero.
262
c47cbdfd
YM
2632011-03-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
264
126bc0dc
YM
265 * fringe.c (update_window_fringes): Remove unused variables.
266
c47cbdfd
YM
267 * unexmacosx.c (copy_data_segment): Also copy __got section.
268 (Bug#8223)
269
c6678f29 2702011-03-07 Chong Yidong <cyd@stupidchicken.com>
22770c84
CY
271
272 * Version 23.3 released.
273
e3b300a4
KH
2742011-02-22 Kenichi Handa <handa@m17n.org>
275
276 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
277 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is
278 integer.
279
f6ed3dbe
CY
2802011-02-19 Chong Yidong <cyd@stupidchicken.com>
281
282 * Makefile.in (prefix-args${EXEEXT}): Compile with ALL_CFLAGS.
283
a73d395b
EZ
2842011-02-13 Eli Zaretskii <eliz@gnu.org>
285
286 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
287 window is changed inside calls to do_pending_window_change.
288 (Bug#8020)
289
cb191a14
EZ
2902011-02-12 Eli Zaretskii <eliz@gnu.org>
291
292 * terminal.c (create_terminal): Use default-keyboard-coding-system
293 and default-terminal-coding-system to initialize coding systems of
294 the new terminal. (Bug#7840)
295
bae1fa42
MR
2962011-02-09 Martin Rudalics <rudalics@gmx.at>
297
298 * window.c (select_window): Check inhibit_point_swap argument when
299 deciding whether to return immediately.
300
9aabf64c
JD
3012011-02-08 Jan Djärv <jan.h.d@swipnet.se>
302
303 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
304 zero (Bug#7348).
305
95838641
GM
3062011-02-03 Glenn Morris <rgm@gnu.org>
307
308 * xfaces.c (Finternal_set_lisp_face_attribute):
309 Try to clarify some error messages. (Bug#2659)
310
aca092ac
SM
3112011-02-02 Stefan Monnier <monnier@iro.umontreal.ca>
312
313 * editfns.c (save_restriction_restore): Don't forget to invalidate the
314 current_column cache (bug#7946).
315
ea2460a0
KH
3162011-02-02 Kenichi Handa <handa@m17n.org>
317
318 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
319
320 * xftfont.c (xftfont_open): Likewise.
321
29feb0e9
AS
3222011-02-01 Andreas Schwab <schwab@linux-m68k.org>
323
324 * window.c (Fselect_window): Add missing return value.
325
df61c790
AS
3262011-01-29 Andreas Schwab <schwab@linux-m68k.org>
327
328 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
329 of int. All uses adjusted.
330 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
331 (svg_load_image): Remove casts.
332
7f9c5df9
CY
3332011-01-29 Chong Yidong <cyd@stupidchicken.com>
334
335 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
336 function definitions for compiling with libpng-1.5.
337 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
338 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
339 (Bug#7908).
340
46b3f2be
CY
3412011-01-28 Chong Yidong <cyd@stupidchicken.com>
342
343 * m/intel386.h: Define NO_ARG_ARRAY. Suggested by Dan Nicolaescu.
344
37d1c45d
CY
3452011-01-27 Chong Yidong <cyd@stupidchicken.com>
346
347 * font.c (font_parse_fcname): Require GTK-style font sizes to
348 occur at the end of the font string (Bug#7853).
349
ea08011c
CY
3502011-01-26 Chong Yidong <cyd@stupidchicken.com>
351
352 * font.c (font_parse_fcname): Fix typo in string length.
353
f996bbcb
SM
3542011-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
355
356 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
357 the buffer's point-max (bug#7876).
358
19634648
CY
3592011-01-23 Chong Yidong <cyd@stupidchicken.com>
360
361 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
362 Remove unused HAVE_SHM branch (Bug#6811).
363
6de1218f 3642011-01-23 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19634648 365
6de1218f
PG
366 * s/hpux11.h: Set CANNOT_DUMP on IA64 (Bug#6811).
367
e6b84b30
MR
3682011-01-22 Martin Rudalics <rudalics@gmx.at>
369
370 * window.c (select_window): New function.
371 (Fselect_window): Call it.
372 (inhibit_point_swap): Variable deleted.
373 (Fset_window_configuration): Call select_window directly.
374
0514b4be
SM
3752011-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
376
377 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
378
e7f50e8f
EZ
3792011-01-16 Eli Zaretskii <eliz@gnu.org>
380
381 * image.c (syms_of_image): Don't use SET_SYMBOL_VALUE. (Bug#7848)
382
6dc1d2d3
MR
3832011-01-15 Martin Rudalics <rudalics@gmx.at>
384
385 * window.c (inhibit_point_swap): New variable.
386 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
387 point this time.
388 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
389 of setting selected_window to nil (Bug#7728).
390
70ba1ec8
CY
3912011-01-12 Chong Yidong <cyd@stupidchicken.com>
392
393 * config.in (TERMINFO): New definition.
394
395 * s/netbsd.h: Use it to choose between terminfo and termcap
396 (Bug#7642).
397
0ad25444
JD
3982011-01-03 Jan Djärv <jan.h.d@swipnet.se>
399
400 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
401
402 * nsfns.m (ns_set_name_iconic): Remove.
403 (ns_get_screen): Don't assign integer to f.
404 (ns_set_name_internal): New function (Bug#7517).
405 (Vicon_title_format): Extern declare.
406 (ns_set_name): Call ns_set_name_internal.
407 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
408 (x_implicitly_set_name): Ditto.
409 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
410 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8.
411 Always use buffer name for title and buffer filename only for
b762841f 412 RepresentedFilename. Handle bad UTF-8 in buffer name (Bug#7517).
0ad25444 413
fb724e55
EZ
4142011-01-03 Eli Zaretskii <eliz@gnu.org>
415
416 * image.c (png_jmpbuf): Remove definition.
417 (my_png_error, png_load): Don't use png_jmpbuf.
418
5be1c984
EZ
4192010-12-31 Eli Zaretskii <eliz@gnu.org>
420
421 * image.c <Qlibpng_version>: New variable.
422 (syms_of_image): Intern and staticpro it. Set its value to the
423 version of PNG library we were compiled with.
424 (my_png_error, png_load): Avoid GCC warnings about direct access
425 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
426 (png_jmpbuf): New macro.
427 (my_png_error, png_load): Use it instead of #ifdef'ing according
428 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 429
cf07311b
SM
4302010-12-27 Stefan Monnier <monnier@iro.umontreal.ca>
431
432 * .gdbinit (xgetptr): Fix the union+lsb case.
433 (xbacktrace): Fix the union case.
434
794b75c7
SM
4352010-12-26 Stefan Monnier <monnier@iro.umontreal.ca>
436
437 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
438 different from selected-window's.
439
2e4ab211
EZ
4402010-12-25 Eli Zaretskii <eliz@gnu.org>
441
71fe378d
EZ
442 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
443 equivalent of a menu item when the key sequence is given by the
444 `:keys' attribute. (Bug#7662)
445
2e4ab211
EZ
446 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
447 the basic faces are supported.
448
84595ff0
JD
4492010-12-24 Jan Djärv <jan.h.d@swipnet.se>
450
451 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
452
30d621a2
EZ
4532010-12-17 Eli Zaretskii <eliz@gnu.org>
454
455 * xdisp.c (Fformat_mode_line): Fix last change.
456
4bf3e46e
CY
4572010-12-16 Chong Yidong <cyd@stupidchicken.com>
458
459 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
460 faces (Bug#7587).
461
1b2a627f
EZ
4622010-12-13 Eli Zaretskii <eliz@gnu.org>
463
464 * fileio.c (Fexpand_file_name): One more doc fix.
465
15579471
EZ
4662010-12-12 Eli Zaretskii <eliz@gnu.org>
467
468 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
469
f0559026
EZ
4702010-12-11 Eli Zaretskii <eliz@gnu.org>
471
76feb864
EZ
472 * w32fns.c (Fx_show_tip): Call try_window with last argument
473 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
474 solved. Round up the tip height to an integral multiple of the
475 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
476 (Bug#7398)
477
f0559026
EZ
478 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
479 (face_before_or_after_it_pos, next_element_from_string)
480 (next_element_from_c_string, produce_stretch_glyph): Remove unused
481 calculations of maximum string length before calling
482 string_char_and_length and STRING_CHAR_AND_LENGTH.
483 (string_char_and_length): Update commentary: MAXLEN is no longer
484 needed.
485
0b9fc69a
JD
4862010-12-10 Jan Djärv <jan.h.d@swipnet.se>
487
488 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
489 as (Qsave_session arg).
490
491 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
492 (smc_die_CB): Make an event with arg Qt.
493 (Fhandle_save_session): If event has Qt as argument,
494 call Fkill_emacs (Bug#7552).
495
2b815743
JD
4962010-12-07 Jan Djärv <jan.h.d@swipnet.se>
497
498 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
499
d8b2a962
CY
5002010-12-06 Chong Yidong <cyd@stupidchicken.com>
501
502 * dispextern.h (struct it): New member overlay_strings_charpos.
503
504 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
505 charpos where we computed n_overlay_strings.
506 (next_overlay_string): Load overlay strings at recorded position,
507 which may not be the same as the iterator's charpos (Bug#7016).
508
a56d164e
JD
5092010-12-05 Jan Djärv <jan.h.d@swipnet.se>
510
511 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
512 with cursor color and draw a rectangle around the image (Bug#7412).
513
77f1ed6c
CY
5142010-12-05 Chong Yidong <cyd@stupidchicken.com>
515
516 * xdisp.c (try_scrolling): Avoid infloop if the first line is
517 obscured due to a vscroll (Bug#7537).
518
2a91a0b5
JD
5192010-12-02 Jan Djärv <jhd@zeplinf.localdomain>
520
521 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
522
523 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
524 Use FRAME_TOOLBAR_HEIGHT.
525 (x_set_offset): Handle XNegative and YNegative in
526 f->size_hint_flags (Bug#7510).
527
b84ae584
KH
5282010-11-25 Kenichi Handa <handa@m17n.org>
529
530 * charset.c (emacs_mule_charset): Make it an array of charset ID;
531 i.e. integer.
532 (Fdefine_charset_internal): Adjusted for the above change.
533 (init_charset_once): Likewise.
534
535 * charset.h (emacs_mule_charset): Adjust the prototype. Delete
536 duplicated extern.
537
538 * coding.c (emacs_mule_char): Adjust for the change of
539 emacs_mule_charset.
540
541 * lread.c (read_emacs_mule_char): Adjust for the change of
542 emacs_mule_charset.
543
b8e5cf1d
EZ
5442010-11-22 Eli Zaretskii <eliz@gnu.org>
545
546 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
547 of w32api >= 3.15. (Bug#6989) (Bug#7452)
548
96ad0af7
YM
5492010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
550
551 * alloc.c (mark_terminals): Ensure that the image cache is marked
552 even if the terminal object was marked earlier (Bug#6301).
553
35f1de62
CY
5542010-11-21 Chong Yidong <cyd@stupidchicken.com>
555
556 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
557
8d7f026f
JD
5582010-11-20 Jan Djärv <jan.h.d@swipnet.se>
559
560 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
561 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
b762841f 562 Use 23 as menubar height if 0. (Bug#7425).
8d7f026f 563
37de8fd0
J
5642010-11-14 Jan Djärv <jan.h.d@swipnet.se>
565
566 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
567
568 * config.in (HAVE_G_TYPE_INIT): New symbol.
569
c7926fe2
EZ
5702010-11-12 Eli Zaretskii <eliz@gnu.org>
571
572 * lread.c (Fload): Mention `load-in-progress' and
573 `load-file-name'. (Bug#7346)
574
c0098065
EZ
5752010-11-09 Eli Zaretskii <eliz@gnu.org>
576
86520d8c
EZ
577 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
578 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
579 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
580 subprocesses. Use buffer_free only ifdef subprocesses.
581
582 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
583 the subprocesses version, not in the non-subprocesses one.
584
794a4b6d
EZ
585 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
586
c0098065
EZ
587 * xfns.c (x_real_positions): Fix declaration-after-statement
588 problem.
589
be3faa80
CY
5902010-11-05 Chong Yidong <cyd@stupidchicken.com>
591
592 * image.c (free_image): Don't garbage the frame here, since this
593 function can be called while redisplaying (Bug#7210).
594 (uncache_image): Garbage the frame here (Bug#6426).
595
055c91d4 5962010-11-04 Chong Yidong <cyd@stupidchicken.com>
184765cc
CY
597
598 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
599 Windows.
600
055c91d4 6012010-11-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
bd80a886
YM
602
603 * process.c (Fmake_network_process): Don't call turn_on_atimers around
604 `connect' (Bug#5723).
605
055c91d4 6062010-11-04 Helmut Eller <eller.helmut@gmail.com>
c2e124a9
HE
607
608 * process.c (Fmake_network_process): Call `select' for interrupted
609 `connect' rather than creating new socket (Bug#5173).
610
68ae6cda
KH
6112010-11-04 Kenichi Handa <handa@m17n.org>
612
613 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
614 Don't sheck SPEC if it is nil.
615 (font_list_entities): Call font_delete_unmatched if
616 Vface_ignored_fonts is non-nil.
617
db5cada2 6182010-11-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
fa884f18 619
2511e8e0
CY
620 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
621 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
622
623 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
624 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
625 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
626 TRY_WINDOW_CHECK_MARGINS.
627
628 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
629 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423).
fa884f18 630
d75c9992
JD
6312010-11-04 Jan Djärv <jan.h.d@swipnet.se>
632
31887d45
JD
633 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
634 parent is the root window. Check this after traversing window tree.
635
d75c9992
JD
636 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
637
638 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
639
640 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
641 before traversing window tree (Bug#5721).
642
754996bc
GM
6432010-11-03 Glenn Morris <rgm@gnu.org>
644
645 * Makefile.in (CRT_DIR): New variable, set by configure.
646 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
647 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
648
3649d303
JD
6492010-11-01 Jan Djärv <jan.h.d@swipnet.se>
650
651 * process.c (kbd_is_on_hold): New variable.
652 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
653 New functions.
654 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
655 select on empty input mask.
656 (init_process): Initialize kbd_is_on_hold to 0.
657
658 * process.h (hold_keyboard_input, unhold_keyboard_input)
659 (kbd_on_hold_p): Declare.
660
661 * keyboard.c (input_available_signal): Declare.
662 (kbd_buffer_nr_stored): New function.
663 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
664 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
665 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
666 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
667 (tty_read_avail_input): If input is on hold, return.
668 Don't read more that free slots in kbd_buffer (Bug#6571).
669
46eadc7a
CY
6702010-10-31 Chong Yidong <cyd@stupidchicken.com>
671
672 * xterm.c (x_connection_closed): Print informative error message
673 when aborting on GTK. This requires using shut_down_emacs
674 directly instead of Fkill_emacs.
675
655441b2
MA
6762010-10-25 Michael Albinus <michael.albinus@gmx.de>
677
678 * dbusbind.c (Fdbus_call_method_asynchronously)
679 (Fdbus_register_signal, Fdbus_register_method): Check, whether
680 `dbus-registered-objects-table' is initialized.
681
23c261f5
CY
6822010-10-24 Chong Yidong <cyd@stupidchicken.com>
683
684 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
685
89baa1df
EZ
6862010-10-22 Eli Zaretskii <eliz@gnu.org>
687
688 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
689
690 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
691 Deprecate use as a boolean flag.
692
5419963b
KB
6932010-10-18 Ken Brown <kbrown@cornell.edu>
694
695 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
696
31daa5e1
KH
6972010-10-15 Kenichi Handa <handa@m17n.org>
698
699 Fix incorrect font metrics when the same font is opened with
700 different pixelsizes.
701
702 * xftfont.c: Include composite.h.
703 (xftfont_shape): New function.
704 (syms_of_xftfont): Set xftfont_driver.shape.
705
9fa82824
DP
7062010-10-13 Damyan Pepper <damyanp@gmail.com>
707
708 Fix handling of font properties on Windows (bug#6303).
709 * font.c (font_filter_properties): New function, refactored from
710 ftfont_filter_properties.
711 * font.h (font_filter_properties): Declare.
712 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
713 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
714 (w32font_filter_properties): New function.
715 (w32font_driver): Add w32font_filter_properties.
716
51e4f4a8
JB
7172010-10-12 Juanma Barranquero <lekktu@gmail.com>
718
c0943d3d 719 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
720 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
721
a2e35ef5
JD
7222010-10-10 Jan Djärv <jan.h.d@swipnet.se>
723
724 * nsterm.m (Qleft): Declare.
725 (ns_right_alternate_modifier): New variable
726 (NSRightAlternateKeyMask): New define.
727 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
728 ns_right_alternate_modifier isn't Qleft.
729 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
730 as emacs modifier for NSRightAlternateKeyMask.
731 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
732
2e828c79
MA
7332010-10-08 Michael Albinus <michael.albinus@gmx.de>
734
735 * dbusbind.c (xd_get_dispatch_status): Return a Lisp_Object.
736 (xd_pending_messages): Catch xd_get_dispatch_status calls.
737
93d50df8
KH
7382010-10-08 Kenichi Handa <handa@m17n.org>
739
2b7c9342 740 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 741
a79b0f28
MA
7422010-10-03 Michael Albinus <michael.albinus@gmx.de>
743
744 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
745 (Fdbus_init_bus): ... here. (Bug#7113)
746
7b2bf907
GM
7472010-10-03 Glenn Morris <rgm@gnu.org>
748
749 * buffer.c (before-change-functions, after-change-functions):
750 Three-year overdue doc fix following 2007-08-13 change.
751
1911a33b
KH
7522010-10-02 Kenichi Handa <handa@m17n.org>
753
754 * coding.c (coding_inherit_eol_type): If parent doesn't specify
755 eol-format, inherit from the system's default.
756 (complement_process_encoding_system): Make a new coding system
757 inherit the original eol-format.
758
fcaf8878
KH
7592010-09-30 Kenichi Handa <handa@m17n.org>
760
761 * coding.c (complement_process_encoding_system): New function.
762
763 * coding.h (complement_process_encoding_system): Extern it.
764
765 * callproc.c (Fcall_process): Complement the coding system for
766 encoding arguments.
767 (Fcall_process_region): Complement the coding system for encoding
768 the input to the process.
769
770 * process.c (Fstart_process): Complement the coding system for
771 encoding arguments.
772 (send_process): Complement the coding system for encoding what
773 sent to the process.
774
18acb5ad
KH
7752010-09-29 Kenichi Handa <handa@m17n.org>
776
777 * xfont.c (xfont_open): Fix setting of font->average_width from
778 :avgwidth property (Bug#7123).
779
dec83468
MA
7802010-09-28 Michael Albinus <michael.albinus@gmx.de>
781
782 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
783 is more portable.
784
785 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
b762841f 786 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
dec83468
MA
787 has not defined SIGIO.
788
e0720500
MA
7892010-09-27 Michael Albinus <michael.albinus@gmx.de>
790
11a5af7c 791 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
792 (Bug#7113)
793
42d3022b
J
7942010-09-26 Jan Djärv <jan.h.d@swipnet.se>
795
796 * xgselect.c (xg_select): Clear file descriptors not set from
797 rfds and wfds.
798
fbb3da77
SM
7992010-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
800
801 * syntax.c (back_comment): Detect the case where a 1-char comment
802 starter is also the 2nd char of a 2-char comment ender.
803
2b5b82db
J
8042010-09-17 Jan Djärv <jan.h.d@swipnet.se>
805
806 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
807
5f61a25c
J
8082010-09-12 Jan Djärv <jan.h.d@swipnet.se>
809
810 * xterm.c (get_current_vm_state): New function.
811 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
812 want_fullscreen so set_wm_state calls are few (Bug#7013).
813 (x_handle_net_wm_state): Move code to get_current_vm_state and
814 call that function.
815
65c92e31 8162010-09-11 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
817
818 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
819
a552b35a
KH
8202010-09-08 Kenichi Handa <handa@m17n.org>
821
822 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
823 we may use designation or locking-shift.
824
396475b7
KH
8252010-09-07 Kenichi Handa <handa@m17n.org>
826
827 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
828 sequence when the source is multibyte.
829
d419e1d9
KH
8302010-08-31 Kenichi Handa <handa@m17n.org>
831
832 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
833 characters.
834
835 * term.c (encode_terminal_code): Fix the previous change.
65b3d997
A
836 (produce_glyphs): Don't set it->char_to_display here.
837 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
838 (produce_special_glyphs): Set temp_it.char_to_display before
839 calling produce_glyphs.
840
841 * xdisp.c (get_next_display_element): Set it->char_to_display
842 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
843 characters.
844 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
845 calling PRODUCE_GLYPHS.
846 (append_space_for_newline): Save and store it->char_to_display.
847 Set it->char_to_display before calling PRODUCE_GLYPHS.
848 (extend_face_to_end_of_line): Set it->char_to_display before
849 calling PRODUCE_GLYPHS.
850 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
851 character to its byte value.
852 (get_char_glyph_code): New function.
853 (produce_stretch_glyph): Set it2.char_to_display too before
854 calling x_produce_glyphs.
855 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
856 non-ASCII characters. Don't set it->char_to_display here.
857 Don't handle unibyte-display-via-language-environment here. For a
c0943d3d 858 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 859
769ae9e1
KH
8602010-08-29 Kenichi Handa <handa@m17n.org>
861
862 * term.c (encode_terminal_code): Encode byte chars to the
863 correspnding bytes.
864
b72e0717
AS
8652010-08-17 Andreas Schwab <schwab@linux-m68k.org>
866
867 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
868 instead of SAFE_ALLOCA.
869
3a7a9129
CY
8702010-08-17 Chong Yidong <cyd@stupidchicken.com>
871
872 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
873 (Bug#6214).
874
983b8302
J
8752010-08-14 Jan Djärv <jan.h.d@swipnet.se>
876
877 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
878
7d1b9df3
J
8792010-08-13 Jan Djärv <jan.h.d@swipnet.se>
880
881 * doc.c (Fsnarf_documentation): Initialize skip_file before
882 build-files test.
883
2294b255
PG
8842010-08-09 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
885
65b3d997
A
886 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
887 New definitions.
2294b255
PG
888 (HAVE_TERMIO): Remove.
889
7a84eee5
KH
8902010-08-06 Kenichi Handa <handa@m17n.org>
891
892 * charset.c: Include <stdlib.h>
893 (struct charset_sort_data): New struct.
894 (charset_compare): New function.
c0943d3d 895 (Fsort_charsets): New function.
7a84eee5
KH
896 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
897
898 * coding.c (decode_coding_iso_2022): Fix checking of dimension
899 number in CTEXT extended segment.
900
f5f6c0e0
JB
9012010-08-01 Juanma Barranquero <lekktu@gmail.com>
902
903 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
904 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
905
b756c005
JB
9062010-07-30 Juanma Barranquero <lekktu@gmail.com>
907
908 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
909 (Fhash_table_size): Fix typos in docstrings.
910 (Fmake_hash_table): Doc fix.
911
b4f588fa
JB
9122010-07-28 Juanma Barranquero <lekktu@gmail.com>
913
914 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
915 Doc fix (bug#5625).
916
9f8c08a7
KB
9172010-07-27 Ken Brown <kbrown@cornell.edu>
918
919 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
920 the MSDOS definition.
921
a2a0d36b
CS
9222010-07-25 Christoph Scholtes <cschol2112@gmail.com>
923
924 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
925
a77cfeaf
CS
9262010-07-22 Christoph Scholtes <cschol2112@gmail.com>
927
928 * window.c (Fwindow_height): Doc fix (bug#6518).
929
14fb5704
JB
9302010-07-21 Juanma Barranquero <lekktu@gmail.com>
931
932 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
933
499322ce
J
9342010-07-17 Jan Djärv <jan.h.d@swipnet.se>
935
936 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
937 is related to the menu bar (Bug#6499).
938
b78f9767
J
9392010-07-14 Jan Djärv <jan.h.d@swipnet.se>
940
941 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
942
943 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
944
945 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
946 i.e. don't put back ButtonRelease (Bug#6608).
947
948 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
949 instead of Window. Call xg_event_is_for_menubar when
950 USE_GTK (Bug#6499).
951
952 * gtkutil.h (xg_event_is_for_menubar): Declare.
953
954 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
955
1f60c16a
EZ
9562010-07-14 Eli Zaretskii <eliz@gnu.org>
957
958 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
959 when it's the same as the old foreground. (Bug#6609)
960
7c33a057
CY
9612010-07-10 Chong Yidong <cyd@stupidchicken.com>
962
963 * xfaces.c (realize_face): Garbage the frame if a face is removed
964 (Bug#6593).
965
9d70a3fc
AS
9662010-07-05 Andreas Schwab <schwab@linux-m68k.org>
967
968 * keyboard.c: Remove duplicate <setjmp.h>.
969 (read_key_sequence): Remove volatile qualifiers.
970
5a874e95
YM
9712010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
972
973 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
974 (struct glyph_row): New members left_fringe_offset and
975 right_fringe_offset.
976
977 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
978 specially.
979 * w32term.c (w32_draw_fringe_bitmap): Likewise.
980 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
981
982 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
b762841f 983 Take account of bitmap offset.
5a874e95
YM
984 (draw_window_fringes): Take account of window vscroll.
985 (update_window_fringes): Likewise. Extend top-aligned top indicator
986 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
987 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
988 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
989
0682186e
JB
9902010-07-04 Juanma Barranquero <lekktu@gmail.com>
991
992 * w32fns.c (Qtooltip): Declare.
993 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
994
ad3e6f44
J
9952010-07-03 Jan Djärv <jan.h.d@swipnet.se>
996
997 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
998 grab on just Press (Bug#6499).
999
54ee7410
CY
10002010-07-02 Chong Yidong <cyd@stupidchicken.com>
1001
1002 * frame.c (Qtooltip): New var.
1003 (delete_frame): Use it. Fix faulty if statement. Don't update
1004 mode line for tooltip frames. Suggested by Martin Rudalics.
1005
1006 * xfns.c (x_create_tip_frame):
1007 * w32fns.c (x_create_tip_frame): Use it.
1008
3d8416fc
NA
10092010-06-30 Naohiro Aota <naota@elisp.net> (tiny change)
1010
1011 * xftfont.c (xftfont_open): Check font width one by one also when
1012 spacing is dual.
1013
1014 * ftfont.c (ftfont_open): Ditto.
1015
b1feb9b4
AS
10162010-06-26 Andreas Schwab <schwab@linux-m68k.org>
1017
1018 * alloc.c (Fmake_byte_code): Don't access undefined argument
1019 (Bug#6517).
1020
c7dd9743
CY
10212010-06-25 Chong Yidong <cyd@stupidchicken.com>
1022
1023 * xdisp.c (next_element_from_image): Ensure that after-strings are
1024 read the next time we hit handle_stop (Bug#1336).
1025
5721b4ed
AS
10262010-06-23 Andreas Schwab <schwab@linux-m68k.org>
1027
1028 * lread.c (read1): Signal error if #s is not followed by paren.
1029
277c5f18
CY
10302010-06-19 Chong Yidong <cyd@stupidchicken.com>
1031
52ab9bb2
CY
1032 * image.c (free_image): Mark frame as garbaged (Bug#6426).
1033
277c5f18
CY
1034 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
1035
6fda6a0c
GM
10362010-06-15 Glenn Morris <rgm@gnu.org>
1037
1038 * editfns.c (Fbyte_to_string): Pacify compiler.
1039
e454a4a3
SM
10402010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
1041
1042 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
1043 Check `object's type before accessing its guts.
1044
657d4c0b
AS
10452010-06-08 Andreas Schwab <schwab@linux-m68k.org>
1046
1047 * minibuf.c (Fall_completions): Add more checks.
1048
9b27fd9f
JB
10492010-06-08 Juanma Barranquero <lekktu@gmail.com>
1050
1051 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
1052
0eb7675e
AS
10532010-06-03 Andreas Schwab <schwab@linux-m68k.org>
1054
1055 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 1056 address. (Bug#6346)
0eb7675e 1057
78edd3b7
JB
10582010-06-03 Juanma Barranquero <lekktu@gmail.com>
1059
1060 * ccl.c (Fccl_program_p): Fix typo in docstring.
1061
1ab8293c
SM
10622010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
1063
1064 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
1065 of bug#6305).
1066
5ca3929b
CY
10672010-05-27 Chong Yidong <cyd@stupidchicken.com>
1068
1069 * xdisp.c (redisplay_window): After redisplay, check if point is
1070 still valid before setting it (Bug#6177).
1071
f5b416d2 10722010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
1073
1074 * s/netbsd.h: If terminfo is found, use it in preference to
1075 termcap. (Bug#6190) [Backport from trunk]
1076
aeb77d46
CY
10772010-05-20 Kevin Ryde <user42@zip.com.au>
1078
1079 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
1080 (Voverriding_terminal_local_map, Vsystem_key_alist)
1081 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
1082
c3bb441d
SM
10832010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
1084
1085 * editfns.c (Fbyte_to_string): New function.
1086
754790b6
CY
10872010-05-18 Chong Yidong <cyd@stupidchicken.com>
1088
1089 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
1090 prevent stack overflow if number of arguments is too large
1091 (Bug#6214).
1092
c8670ded
EZ
10932010-05-11 Eli Zaretskii <eliz@gnu.org>
1094
1095 * makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(SRC)/w32.h.
1096
1097 * w32fns.c: Include w32.h.
1098 (Fw32_shell_execute): Decode the error message before passing it
1099 to `error'. (Bug#6126)
1100
3ffd4615 11012010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
1102
1103 * ftfont.c: Fix incorrect parentheses of #if condition for
1104 definining M17N_FLT_USE_NEW_FEATURE.
1105
61a808e8
CY
11062010-05-07 Chong Yidong <cyd@stupidchicken.com>
1107
1108 * Version 23.2 released.
1109
5dcde606
AS
11102010-04-30 Andreas Schwab <schwab@linux-m68k.org>
1111
1112 * composite.c (autocmp_chars): Save point as marker before calling
1113 auto-composition-function (Bug#5984).
1114
1115 * lisp.h (restore_point_unwind): Add prototype.
1116
1117 * fileio.c (restore_point_unwind): Remove static attribute.
1118
c4170e32
KH
11192010-04-23 Kenichi Handa <handa@m17n.org>
1120
1121 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
1122 new feature of libotf and m17n-flt.
65b3d997
A
1123 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
1124 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
1125 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
1126 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
1127 that OUT is NULL. Use OTF_drive_gsub_with_log and
1128 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
1129 OTF_drive_gpos.
1130 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
65b3d997
A
1131 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
1132 Setup mflt_enable_new_feature and mflt_try_otf.
c4170e32 1133
e42cd1a7
JB
11342010-04-19 Juanma Barranquero <lekktu@gmail.com>
1135
1136 * dired.c (Ffile_attributes): Fix typo in docstring.
1137
79353a53
AR
11382010-04-13 Adrian Robert <Adrian.B.Robert@gmail.com>
1139
1140 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1141 NSInteger (Bug#5811).
1142
658b9b93
YM
11432010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1144
1145 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1146 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1147
16009a0e
YM
11482010-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1149
1150 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1151
f016f225
JD
11522010-04-07 Jan Djärv <jan.h.d@swipnet.se>
1153
1154 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
1155 FRAME_LINE_TO_PIXEL_Y.
1156
1157 * xterm.c (x_set_window_size_1): Don't add border_width/height to
1158 pixelwidth/height.
1159
84257d93
CY
11602010-04-05 Chong Yidong <cyd@stupidchicken.com>
1161
1162 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1163 terminal frames (Bug#5837).
1164
95b1abcf
CY
11652010-03-31 Chong Yidong <cyd@stupidchicken.com>
1166
1167 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
1168 * nsterm.h: Fix prototype.
1169
4a217bed
EZ
11702010-03-31 Eli Zaretskii <eliz@gnu.org>
1171
1172 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
1173 in this function. (Bug#5703)
1174
4f103e04
CY
11752010-03-31 Chong Yidong <cyd@stupidchicken.com>
1176
1177 * nsterm.h: Fix last change.
1178
a6d676d9
CY
11792010-03-30 Bernhard Herzog <bh@intevation.de> (tiny change)
1180
1181 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
1182
67fee863
JD
11832010-03-30 Jan Djärv <jan.h.d@swipnet.se>
1184
1185 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
1186 invisible (Bug#5766).
1187
9ae6e189
CY
11882010-03-29 Adrian Robert <adrian.b.robert@gmail.com>
1189
1190 * xdisp.c (x_consider_frame_title, update_window_cursor): Remove
1191 HAVE_NS conditionals.
194d44e7 1192 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
1193
1194 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
1195 filename for the title.
1196 (ns_set_doc_edited): Do nothing if the selected window is a
1197 minibuffer window.
1198
1199 * nsterm.h: Add prototypes for ns_set_name_as_filename and
1200 ns_set_doc_edited.
1201
1202 * nsterm.m: Remove unneeded prototype.
1203
25c72475
GM
12042010-03-28 Glenn Morris <rgm@gnu.org>
1205
1206 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
1207 in the DOC file. (Bug#5336)
1208
f79a01db
CY
12092010-03-24 Chong Yidong <cyd@stupidchicken.com>
1210
1211 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
1212
93318cbd
JD
12132010-03-20 Jan Djärv <jan.h.d@swipnet.se>
1214
1215 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
1216
1217 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
1218
1219 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
1220
ad13a3ee
YM
12212010-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1222
1223 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
1224 XLoadQueryFont.
1225
fbdc1721
KH
12262010-03-16 Kenichi Handa <handa@m17n.org>
1227
1228 * coding.c (decode_coding_ccl): Fix previous change for the
1229 multibyte case.
fb608df3
KH
1230 (encode_coding_ccl): Don't setup ccl program here. Fix for the
1231 case that the output buffer is fullfilled.
1232 (encode_coding): Setup ccl program here.
fbdc1721 1233
35cd7cd6
CY
12342010-03-15 Andreas Politz <politza@fh-trier.de> (tiny change)
1235
1236 * editfns.c (Fformat): Account for string precision when computing
1237 field width (Bug#5710).
1238
618db430
SM
12392010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
1240
c0335e02
SM
1241 Make it possible to C-g in a tight bytecode loop again (bug#5680).
1242 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
1243 (QUIT): Use it to consolidate code and remove redundancy.
1244 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
1245
254c06a8
SM
1246 * regex.c (regex_compile): Setup gl_state as well.
1247
618db430
SM
1248 * syntax.c (skip_chars): Setup gl_state (bug#3823).
1249 (in_classes): Use CONSP before XCAR/XCDR.
1250
233f0c9f
CY
12512010-03-03 Chong Yidong <cyd@stupidchicken.com>
1252
1253 * keymap.c (Fwhere_is_internal): Use Fequal to compare
1254 definitions, so that keyboard macros are correctly handled
1255 (Bug#5481).
1256
75f80e63
EZ
12572010-03-02 Eli Zaretskii <eliz@gnu.org>
1258
1259 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
1260 text that could be relocated inside the call to emacs_mule_char.
1261 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
1262 (CODING_DECODE_CHAR): Add a comment describing its purpose.
1263
dcfb9bc4
KH
12642010-03-02 Kenichi Handa <handa@m17n.org>
1265
fc9a17bc
KH
1266 * character.c (parse_str_as_multibyte): Fix handling of the
1267 multibyte form of raw-bytes.
1268 (str_as_multibyte): Likewise.
1269
dcfb9bc4
KH
1270 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
1271 form of raw-bytes.
1272
412c01b6
CY
12732010-02-28 Chong Yidong <cyd@stupidchicken.com>
1274
1275 * charset.c (load_charset_map_from_file)
1276 (load_charset_map_from_vector): Zero out allocated
1277 charset_map_entries before using them.
1278
df7e1ea0
AS
12792010-02-27 Andreas Schwab <schwab@linux-m68k.org>
1280
1281 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
1282
fe69a722
CY
12832010-02-27 Chong Yidong <cyd@stupidchicken.com>
1284
4ed28cf4
CY
1285 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
1286 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 1287
7379cfce
KH
12882010-02-26 Kenichi Handa <handa@m17n.org>
1289
f88cc4d6
KH
1290 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
1291
7379cfce
KH
1292 * xdisp.c (reseat_to_string): Fix previous change.
1293
cf2fdcfb
CY
12942010-02-26 David Reitter <david.reitter@gmail.com>
1295
1296 * nsfont.m (nsfont_draw): ns_antialias_text should be a
1297 Lisp_Object (Bug#4736).
1298
cc6c7c75
KH
12992010-02-25 Kenichi Handa <handa@m17n.org>
1300
1301 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
1302
32e737d7
JD
13032010-02-24 Jan Djärv <jan.h.d@swipnet.se>
1304
1305 * xterm.c (XTflash): Move declarations before statements.
1306
1307 * gtkutil.c (xg_get_gdk_display): Remove (unused).
1308 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
1309 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
1310 (xg_create_tool_bar): Remove unused variables.
1311 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 1312 (xg_create_frame_widgets): Remove variable grav.
32e737d7 1313
676cae9f
CY
13142010-02-21 Chong Yidong <cyd@stupidchicken.com>
1315
1316 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
1317
886cc2b8
SM
13182010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1319
1320 * term.c (fatal): Add a final \n if needed (bug#5596).
1321
ddb2d8e2
CY
13222010-02-18 Chong Yidong <cyd@stupidchicken.com>
1323
1324 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
1325
2a4f8d3d
GM
13262010-02-18 Glenn Morris <rgm@gnu.org>
1327
1328 * callint.c (Finteractive): Doc fix.
1329
ebaf11b6
KH
13302010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
1331
886cc2b8
SM
1332 * coding.c (record_conversion_result):
1333 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
1334 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
1335 memory allocation error.
1336
d0396581
KH
13372010-02-17 Kenichi Handa <handa@m17n.org>
1338
886cc2b8
SM
1339 * coding.c (decode_coding_ccl): Don't setup ccl program here.
1340 Fix for the case that the output buffer is fullfilled.
d0396581
KH
1341 (decode_coding): Setup ccl program here. Keep looping when the
1342 decoder stopped because the output buffer is
1343 fullfilled (bug#5534).
1344
1345 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
1346
98599f74
JD
13472010-02-13 Jan Djärv <jan.h.d@swipnet.se>
1348
471e4f04 1349 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 1350 bug #5571.
886cc2b8 1351 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 1352 overdrawn.
98599f74 1353
182659ae
JD
13542010-02-10 Jan Djärv <jan.h.d@swipnet.se>
1355
1356 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
1357 doing_interact here.
1358 (ice_connection_closed): New function.
1359 (x_session_check_input, smc_die_CB, ice_io_error_handler)
1360 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
1361 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
1362 returns I/O error.
1363 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
1364 bug #5512.
1365
9be32c4e 13662010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
1367
1368 * nsfont.m (nsfont_open): The system's value for the font descent
1369 is negative, so round it down to avoid clipping.
1370
a2f3eb19
CY
13712010-02-06 Chong Yidong <cyd@stupidchicken.com>
1372
1373 * charset.c (load_charset_map_from_file)
1374 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 1375 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 1376
3088147c
CY
13772010-02-05 Chong Yidong <cyd@stupidchicken.com>
1378
1379 * charset.c (load_charset_map_from_file): Allocate large
1380 charset_map_entries structure on the heap rather than the stack.
1381 (Bug#5526).
1382
b57d9029
KH
13832010-01-31 Kenichi Handa <handa@m17n.org>
1384
1385 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 1386 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 1387
c67d885b
CY
13882010-01-31 Chong Yidong <cyd@stupidchicken.com>
1389
1390 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
1391 <deactivated@gmail.com> (Bug#3605).
1392
8fab2362
CY
13932010-01-31 David De La Harpe Golden <david@harpegolden.net>
1394
1395 * fileio.c (Frename_file): Correctly rename symlinks to
1396 directories (Bug#5496).
1397
cb2a62f2
CY
13982010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
1399
1400 * nsterm.m (ns_ring_bell): Handle visible bell like X.
1401
944c7a26
AS
14022010-01-30 Andreas Schwab <schwab@linux-m68k.org>
1403
1404 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
1405
c024ac08
CY
14062010-01-29 Chong Yidong <cyd@stupidchicken.com>
1407
1408 * frame.c (DEFAULT_ROWS): Change default to 35.
1409
1410 * xfns.c (x_default_font_parameter): Change default XFT font to
1411 monospace-10 (Bug#3643).
1412
af93af83
EZ
14132010-01-29 Eli Zaretskii <eliz@gnu.org>
1414
1415 * w32inevt.c (key_event): Remove unnecessary comparison of
1416 event->uChar.AsciiChar with 128.
1417
ca0eb708
CY
14182010-01-28 Chong Yidong <cyd@stupidchicken.com>
1419
b242dbfc
CY
1420 * fileio.c (Frename_file): Fix last change (Bug#5487).
1421
ca0eb708
CY
1422 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
1423
1424 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
1425
45d45af5
JD
14262010-01-28 Jan Djärv <jan.h.d@swipnet.se>
1427
1428 * xfns.c (Fx_create_frame): Remove window size matching code from
1429 2010-01-15.
a73f9c9d 1430 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 1431
7e233730
JR
14322010-01-27 Jason Rumney <jasonr@gnu.org>
1433
1434 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 1435 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 1436
86e893e3
KH
14372010-01-27 Kenichi Handa <handa@m17n.org>
1438
1439 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 1440 pattern string (Bug#4209).
86e893e3 1441
8719abec
CY
14422010-01-27 David De La Harpe Golden <david@harpegolden.net>
1443
1444 * fileio.c (Frename_file): Call copy-directory and
1445 delete-directory for directories, in order to handle cross-device
1446 renaming (Bug#3353).
1447
844794c8
JD
14482010-01-25 Jan Djärv <jan.h.d@swipnet.se>
1449
aa3e13b5 1450 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 1451 sizes 24 and 10. Bug #3643.
844794c8 1452
bd4b5750
SM
14532010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
1454
8dc1adf6 1455 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
1456 * keymap.c (shadow_lookup): Add `remap' arg.
1457 (describe_map, describe_vector): Update calls to shadow_lookup.
1458 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
1459 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
1460 perform remapping during shadow_lookup check of remapped_sequences.
1461
285d07e2
CY
14622010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
1463
1464 * image.c (png_load): Use png_sig_cmp instead of the obsolete
1465 png_check_sig, which has been removed in libpng 1.4.
1466
c6d09b8d
CY
14672010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1468
1469 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
1470 lacks this header file).
1471
3d782998
YM
14722010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1473
1474 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
1475 as in Emacs 22.
1476
2aff7c53
YM
14772010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1478
1479 * lisp.h (make_pure_string): String pointer arg now points to const.
1480
1481 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
1482 args now point to const.
1483
74327f7a
EZ
14842010-01-22 Eli Zaretskii <eliz@gnu.org>
1485
1486 * lread.c (Fload): Don't treat files without .elc extension as
1487 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
1488 them. (bug#5303)
1489
4d1e6632
KH
14902010-01-20 Kenichi Handa <handa@m17n.org>
1491
1492 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
1493 treat the source as actual byte sequence.
1494
1fdede8f
AM
14952010-01-19 Alan Mackenzie <acm@muc.de>
1496
1497 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 1498 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
1499 `signal_after_change_p' to `coherent_change_p', and make the
1500 invocation of `modify_region' conditional on it.
1501
67477f30
JD
15022010-01-19 Jan Djärv <jan.h.d@swipnet.se>
1503
1504 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
1505 for debug purpose.
1506 (syms_of_xsettings): Declare xft-settings.
1507
244b023e
CY
15082010-01-18 Chong Yidong <cyd@stupidchicken.com>
1509
1510 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
1511
617364fe
CY
15122010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1513
1514 * xterm.c (event_handler_gdk): Block input (Bug#5037).
1515
4fe22cdf
CY
15162010-01-16 Chong Yidong <cyd@stupidchicken.com>
1517
1518 * emacs.c (standard_args): Adjust arg priorities to reflect how
1519 they are processed in startup.el.
1520
e118d2be
AS
15212010-01-16 Andreas Schwab <schwab@linux-m68k.org>
1522
1523 * Makefile.in (lisp, shortlisp): Update.
1524
523ae620
SM
15252010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1526
1527 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
1528 code, link the new kboard into all_kboard before running Lisp code,
1529 and protect the new terminal with GCPRO (Bug#5365).
1530 (x_term_init): Remove unused var `atom'.
1531 (x_delete_display, x_delete_terminal): Remove unused var `i'.
1532
f0d13888
JD
15332010-01-15 Jan Djärv <jan.h.d@swipnet.se>
1534
1535 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
1536 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
1537 to find out usable size of the desktop. Don't make frames larger than
ac146f82 1538 this. Bug #3643.
f0d13888 1539
cc320f07
KH
15402010-01-15 Kenichi Handa <handa@m17n.org>
1541
1542 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
1543
7ffdf101
CY
15442010-01-15 Chong Yidong <cyd@stupidchicken.com>
1545
1546 * nsterm.m (Qnone): Define.
1547
1548 * nsfns.m (Qnone): Move definition to nsterm.m.
1549
d12bd917
KH
15502010-01-14 Kenichi Handa <handa@m17n.org>
1551
1552 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
1553 systems.
1554
d9a7c140
KH
15552010-01-14 Kenichi Handa <handa@m17n.org>
1556
1557 Make auto-composition work on all buffers even if they are
1558 fundamental mode.
1559
1560 * composite.c (Vauto_composition_mode): New variable.
1561 (composition_compute_stop_pos): Check Vauto_composition_mode
1562 instead of Vauto_composition_function.
1563 (composition_adjust_point, Ffind_composition_internal): Likewise.
1564 (syms_of_composite): Declare Lisp variable
1565 "auto-composition-mode" here.
1566
63286bb2
CY
15672010-01-13 Chong Yidong <cyd@stupidchicken.com>
1568
1569 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
1570 during call to vendor-specific-keysyms (Bug#5365).
1571
c2623ee7
YM
15722010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1573
1574 * keyboard.c (input_available_signal) [SYNC_INPUT]:
1575 Call SIGNAL_THREAD_CHECK (Bug#5333).
1576
1577 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
1578 Call SIGNAL_THREAD_CHECK.
1579
0b5397c2
SM
15802010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
1581
1582 Try to fix bug#5314. This is probably not the final word, tho.
1583 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
1584 recent-auto-save-p as a side-effect.
1585 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
1586 * buffer.c (Fkill_buffer, reset_buffer):
1587 * editfns.c (Fsubst_char_in_region):
1588 * fileio.c (Finsert_file_contents, Fdo_auto_save)
1589 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
1590
dc954cb2
KH
15912010-01-13 Kenichi Handa <handa@m17n.org>
1592
1593 Display buffer name, etc. in mode line by composing correctly.
1594
1595 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
1596 STRING is not nil.
0b5397c2 1597 (display_mode_element): Adjust for the change of
dc954cb2
KH
1598 decode_mode_spec and display_line.
1599 (decode_mode_spec): Change arg MULTIBYTE to STRING.
1600 (display_string): Handle the case that STRING is non-null and
1601 LISP_STRING is not nil.
1602
0b5397c2
SM
1603 * xterm.c (x_draw_composite_glyph_string_foreground):
1604 Pay attention to s->face->overstrike.
dc954cb2
KH
1605
1606 * composite.c (composition_reseat_it): Don't check PT if STRING is
1607 non nil.
1608
4a00eaca
YM
16092010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1610
1611 * keyboard.c (read_char): Don't apply previous change when current
1612 buffer is unchanged by command execution.
1613
60abb287
JD
16142010-01-12 Jan Djärv <jan.h.d@swipnet.se>
1615
1616 * keyboard.c (read_char): Return after executing from special map.
1617
893db5bc
GM
16182010-01-12 Glenn Morris <rgm@gnu.org>
1619
1620 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
1621 bug-gnu-emacs rather than emacs-pretest-bug.
1622
4d03ece0
CY
16232010-01-11 Chong Yidong <cyd@stupidchicken.com>
1624
1625 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
1626 initializing the Lisp variables that depend on them.
1627
1df47e38
YM
16282010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1629
1630 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
1631 Clear areas that will not be updated after change of menu bar lines.
1632 Clear the menu bar window's current matrix when the window gets empty.
1633
2f1c6384
CY
16342010-01-09 Chong Yidong <cyd@stupidchicken.com>
1635
e398c61c
CY
1636 * intervals.h, textprop.c (extend_property_ranges): Return value
1637 and args changed. Discard properties that begin at or after the
1638 new end (Bug#5306).
1639
1640 * editfns.c (Fformat): Caller changed.
1641
e5a29a10
CY
1642 * nsterm.m (ns_set_default_prefs): Delete function.
1643 (syms_of_nsterm): Initialize ns_command_modifier,
1644 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
1645 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
1646
2f1c6384
CY
1647 * xdisp.c (pos_visible_p): Check for invisible text at the correct
1648 position (Bug#4040).
1649
d427a9fa
EZ
16502010-01-09 Eli Zaretskii <eliz@gnu.org>
1651
1652 * editfns.c (Ffloat_time): Doc fix.
1653
21b9df2f
JD
16542010-01-09 Jan Djärv <jan.h.d@swipnet.se>
1655
1656 * xfns.c (Fx_create_frame): Don't create frame larger than display
1657 by default bug#3643.
1658
4b00d3b1
YM
16592010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1660
1661 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1662 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1663 windows above internal border.
1664
1665 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1666 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1667 windows above internal border.
1668
1669 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1670 tool bar windows specially.
1671
1672 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1673
1674 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1675 specially.
1676 (XTflash): Take account of menu bar height.
1677
1678 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1679 specially.
1680
5075d853
JD
16812010-01-08 Jan Djärv <jan.h.d@swipnet.se>
1682
ac146f82 1683 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
1684 also be true before we can return early (bug #5339).
1685
474217c8
CY
16862010-01-06 David Reitter <david.reitter@gmail.com>
1687
1688 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1689 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1690 (Bug#3233).
1691
c0e6d47d
JD
16922010-01-06 Jan Djärv <jan.h.d@swipnet.se>
1693
d0cf45b7
JD
1694 * font.c (font_open_entity): Enable chache and call cached_font_ok
1695 for the driver if defined.
1696 (QCuser_spec): New symbol.
1697 (font_spec_from_name): Save name as user-spec.
1698 (font_load_for_lface): Keep user-spec instead of name.
1699 (font_open_by_name): Save name as user-spec.
1700 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 1701 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
1702
1703 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
1704 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1705 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1706
1707 * font.h (struct font_driver): Add cached_font_ok.
1708
c0e6d47d
JD
1709 * xterm.c (x_clear_frame): Queue draw for scroll bars.
1710
7c583cd8
JD
17112010-01-05 Jan Djärv <jan.h.d@swipnet.se>
1712
1713 * xterm.c (x_new_font): Move code for setting rows/cols before
1714 resizing ...
ac146f82 1715 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
1716
1717 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
1718 (xg_frame_resized, xg_frame_set_char_size):
1719 Call xg_clear_under_internal_border.
7c583cd8 1720 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 1721
03f77f0a
CY
17222010-01-05 Chong Yidong <cyd@stupidchicken.com>
1723
1724 * keyboard.c (read_key_sequence): Catch keyboard switch after
1725 making a new tty frame (Bug#5095).
1726
2a1ef5be
KH
17272010-01-05 Kenichi Handa <handa@m17n.org>
1728
1729 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1730
e3eb1dae
SM
17312010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1732
1733 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1734 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1735 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1736
777013f2
MA
17372010-01-03 Michael Albinus <michael.albinus@gmx.de>
1738
1739 * dbusbind.c (xd_add_watch): Improve debug message.
1740 (xd_remove_watch): Improve debug message. If DATA is the session
1741 bus, unset D-Bus session environment.
1742 (Fdbus_init_bus): Pass the bus as argument to
1743 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 1744
8932b1c2
CY
17452010-01-01 Chong Yidong <cyd@stupidchicken.com>
1746
87231e2c
CY
1747 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1748
4801c5fa
CY
1749 * lread.c (syms_of_lread): Make it clearer that these are the
1750 names of loaded files (Bug#5068).
1751
8932b1c2
CY
1752 * eval.c (run_hook_with_args): Handle the case where the global
1753 value has the obsolete single-function form (Bug#5026).
1754
11e3c684
CY
17552009-12-27 Chong Yidong <cyd@stupidchicken.com>
1756
1757 * minibuf.c (Fall_completions): Minor optimization.
1758
5b28ce35
EZ
17592009-12-26 Eli Zaretskii <eliz@gnu.org>
1760
5ce6e4f4
JB
1761 * .gdbinit (pgx): Fix display of composite glyphs.
1762 Display cmp.from and cmp.to as well.
1763 (pitx): Fix last change.
5b28ce35 1764
bcffff46
KH
17652009-12-25 Kenichi Handa <handa@m17n.org>
1766
1767 * composite.h (composition_adjust_point): Update prototype.
1768
1769 * composite.c (composition_reseat_it): Don't make a composition
1770 spanning over point.
1771 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1772 composable characters.
1773 (composition_adjust_point): New arg NEW_PT. Callers changed.
1774
1775 * keyboard.c (command_loop_1): Force redisplay if the last point
1776 was within a composition.
1777 (adjust_point_for_property): Don't adjust point for automatic
1778 composition when called after buffer modification.
1779
3f670e9a
EZ
17802009-12-19 Eli Zaretskii <eliz@gnu.org>
1781
5ce6e4f4
JB
1782 * .gdbinit (pitx): Don't use enum names, use their values.
1783 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
1784 (pgx): Don't use enum names, use their values.
1785 (pitmethod): New helper command.
1786 (pitx): Use it to display iteration method.
1787 (pgrowit): New command.
1788
ad903955
EZ
1789 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1790
3f670e9a
EZ
1791 Update dependencies in Makefile.in.
1792
1793 * Makefile.in (alloc.o): Depend on termhooks.h.
1794 (atimer.o): Depend on blockinput.h.
1795 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1796 and frame.h.
1797 (callint.o): Depend on systime.h, coding.h, and composite.h.
1798 (callproc.o): Depend on buffer.h.
1799 (casefiddle.o): Don't depend on charset.h.
1800 (casetab.o): Depend on character.h.
1801 (ccl.o): Depend on composite.h.
1802 (chartab.o): Depend on ccl.h.
1803 (cm.o): Depend on dispextern.h.
1804 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1805 (coding.o): Don't depend on $(INTERVALS_H).
1806 (composite.o): Don't depend on dispextern.h explicitly (it's in
1807 $(INTERVALS_H)). Depend on ccl.h.
1808 (data.o): Depend on systime.h, coding.h, composite.h,
1809 dispextern.h, font.h, and ccl.h.
1810 (dired.o): Depend on composite.h.
1811 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1812 composite.h (it's in $(INTERVALS_H)).
1813 (doc.o): Depend on systime.h, coding.h, and composite.h.
1814 (editfns.o): Don't depend explicitly on dispextern.h.
1815 (emacs.o): Depend on frame.h and coding.h.
1816 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1817 (fileio.o): Depend on frame.h and commands.h. Don't depend
1818 explicitly on dispextern.h.
1819 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1820 composite.h.
1821 (fns.o): Don't depend on termhooks.h.
1822 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1823 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1824 coding.h, $(INTERVALS_H), window.h, xterm.h.
1825 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1826 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1827 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1828 fontset.h, ccl.h, and ftfont.h.
1829 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1830 (gtkutil.o): Depend on dispextern.h and composite.h.
1831 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1832 termhooks.h, and ccl.h.
1833 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1834 (intervals.o): Depend on systime.h and coding.h.
1835 (keyboard.o): Depend on composite.h and coding.h.
1836 (keymap.o): Depend on coding.h and frame.h.
1837 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1838 (macros.o): Depend on systime.h, coding.h, and composite.h.
1839 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1840 and atimer.h.
1841 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1842 dispextern.h explicitly.
0b5397c2
SM
1843 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1844 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
1845 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1846 (regex.o): Don't depend on charset.h.
1847 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1848 (search.o): Don't depend explicitly on composite.h.
1849 (sound.o): Depend on atimer.h and systime.h.
1850 (syntax.o): Don't depend explicitly on composite.h.
1851 (sysdep.o): Depend on coding.h and composite.h.
1852 (term.o): Depend on xterm.h and buffer.h.
1853 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1854 (textprop.o): Don't depend on dispextern.h explicitly.
1855 (undo.o): Depend on dispextern.h.
1856 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1857 dispextern.h and composite.h explicitly.
1858 (xdisp.o): Depend on ccl.h.
1859 (xfaces.o): Depend on coding.h and ccl.h.
1860 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1861 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1862 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1863 ftfont.h.
1864 (xgselect.o): New dependency.
1865 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1866 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1867 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1868 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1869 (xsmfns.o): Depend on frame.h and dispextern.h.
1870 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1871 sysselect.h.
1872
7a6f7fea
AS
18732009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1874
1875 * font.c (Fclear_font_cache): Pass correct cache argument to
1876 font_clear_cache.
1877
f4c21026
AS
18782009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1879
1880 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1881 twice.
1882
f7ab0997
CY
18832009-12-15 Chong Yidong <cyd@stupidchicken.com>
1884
1885 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1886 calling file-remote-p. Reported by Jim Meyering.
1887
fa8e045a
MA
18882009-12-15 Michael Albinus <michael.albinus@gmx.de>
1889
1890 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 1891 avoid compiler warnings. (Bug #5217)
fa8e045a 1892
a63dba42
KH
18932009-12-14 Kenichi Handa <handa@m17n.org>
1894
1895 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1896 in 8-bit encoding.
1897
5ce6e4f4 18982009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
1899
1900 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1901 tooltip windows.
1902
223e5fc6
JD
19032009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1904
36acb2a7
JD
1905 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1906 Xatom_net_window_type.
1907
1908 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1909 Xatom_net_window_type.
1910
b8f00677
JD
1911 * xterm.c (my_log_handler): New function.
1912 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 1913 so we can filter out buggy messages. (Bug #5120).
b8f00677 1914
e5f0bc9a
JD
1915 * xterm.c (xg_scroll_callback): Parameter list changed,
1916 use parameter GtkScrollType to determine scroll/line/page.
1917 Only allow dragging if a button < 4 is grabbed (bug #5177).
1918 (xg_end_scroll_callback): New function.
1919 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1920 xg_create_scroll_bar.
1921
1922 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1923 (scroll_end_callback): Remove.
1924 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1925 button-release-event. Replace value-changed event with change-value,
1926 bug #5177,
1927 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1928 bug #5177.
1929
1930 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1931 (xg_create_scroll_bar): Add GCallback end_callback.
1932
223e5fc6
JD
1933 * xftfont.c (QClcdfilter): New variable.
1934 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1935 (syms_of_xftfont): Initialize QClcdfilter.
1936
3c055b77
JD
19372009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1938
1939 * xsettings.c (struct xsettings): Add member seen.
1940 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 1941 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
1942 (apply_xft_settings): Only update Xft settings with what member seen
1943 indicates as new.
1944
05fe33ff
EZ
19452009-12-12 Eli Zaretskii <eliz@gnu.org>
1946
1947 * dispextern.h (struct text_pos): Use EMACS_INT;
1948 (struct glyph): Use EMACS_INT for charpos.
1949 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1950 region_beg_charpos, region_end_charpos,
1951 redisplay_end_trigger_charpos, and also for
1952 iterator_stack_entry.end_charpos and
1953 iterator_stack_entry.stop_charpos.
1954
e8d7886a
JD
19552009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1956
5ce6e4f4 1957 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
1958 (xg_create_scroll_bar): Call scroll_end_callback on button release
1959 event (bug #5177).
1960 (xg_event_is_for_scrollbar): != replaced with ==.
1961
d0db2ec8
KH
19622009-12-12 Kenichi Handa <handa@m17n.org>
1963
1964 * ftfont.c (struct ftfont_info): New member matrix.
1965 (ftfont_open): Setup xftfont_info->matrix.
1966 (MFLTFontFT): New member matrix.
1967 (FLOOR, CEIL, ROUND): New macros.
1968 (ftfont_get_metrics): Handle matrix transformation.
1969 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1970
1971 * xftfont.c (struct xftfont_info): New member matrix.
1972 (xftfont_open): Setup xftfont_info->matrix.
1973
19742009-12-10 Kenichi Handa <handa@m17n.org>
1975
1976 * xdisp.c (append_space_for_newline): Consider face-remapping.
1977
2cc7b62f
AS
19782009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1979
b87dd913
AS
1980 * xsettings.c: Include "keyboard.h".
1981
eba5eb94
AS
1982 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1983
2cc7b62f
AS
1984 Fix implicit function declarations.
1985 * cmds.c: Include "frame.h".
1986 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1987 * frame.h: Move declaration of delete_frame outside of
1988 HAVE_WINDOW_SYSTEM.
1989
a4ef73c8
CY
19902009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1991
1992 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1993
1994 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1995 GTK builds.
1996
944a300c
AS
19972009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1998
1999 * unexelf.c (unexec): Don't search for .data twice.
2000
022eef62
CY
20012009-12-05 Chong Yidong <cyd@stupidchicken.com>
2002
426ac949
CY
2003 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
2004 if push failed.
2005 (handle_line_prefix): Set avoid_cursor_p here. Check return value
2006 of push_display_prop (Bug#5000).
2007
022eef62
CY
2008 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
2009 value of font_list_entities (Bug#5085).
2010
be95bee9
JB
20112009-12-04 Juanma Barranquero <lekktu@gmail.com>
2012
2013 Fix `string-to-number' to deal consistently with integers and floats.
2014 * lread.c (isfloat_string): New argument ignore_trailing to accept all
2015 trailing characters, not just whitespace.
2016 (read1): Pass new arg 0 to keep old behavior.
2017 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
2018 trailing chars, as it is already done for integers. Doc fixes.
2019 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
2020
24c2d7ce
EZ
20212009-12-04 Eli Zaretskii <eliz@gnu.org>
2022
0b5397c2
SM
2023 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
2024 Delete unused enumeration value.
24c2d7ce 2025
7e694795
EZ
20262009-12-03 Eli Zaretskii <eliz@gnu.org>
2027
2028 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
2029
84b31826
SM
20302009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
2031
2032 * process.c (Fmake_network_process): Fix up the tests for
2033 "connectionless socket", so they DTRT for seqpacket sockets as well.
2034
f00c449b
SM
20352009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
2036
2037 * process.c (Qseqpacket): New symbol.
2038 (HAVE_SEQPACKET): New macro.
2039 (Fmake_network_process): Accept new :type `seqpacket'.
2040 (init_process): Add `seqpacket' feature when applicable.
2041 (syms_of_process): Initialize Qseqpacket.
2042
8096a0ff
YM
20432009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2044
2045 * font.c (font_load_for_lface, font_open_by_name): Don't store name
2046 if entity is Qnil.
2047
3e0de07f
SM
20482009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
2049
2050 * print.c (print_preprocess): Preprocess the key_and_value table of
2051 hashtables, even tho they're "hidden" (bug#5082).
2052
abeafb2a
JD
20532009-11-29 Jan Djärv <jan.h.d@swipnet.se>
2054
2055 * frame.c (frame_make_pointer_invisible)
2056 (frame_make_pointer_visible): Declare f before statements.
2057
4bf47195
EZ
20582009-11-28 Eli Zaretskii <eliz@gnu.org>
2059
2060 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
2061 omitted dependencies on lisp.h.
2062
c525b3f2
JD
20632009-11-27 Jan Djärv <jan.h.d@swipnet.se>
2064
ece2d4ed
JD
2065 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
2066 is NULL.
2067
2068 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
2069
2070 * frame.c (frame_make_pointer_invisible)
3e0de07f 2071 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
2072 frame.
2073
c525b3f2
JD
2074 * search.c (simple_search): Remove warning by making *p const.
2075
2f00e299
DN
20762009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
2077
2078 * xdisp.c (power_letter): Remove duplicate const.
2079
084b049b
JD
20802009-11-25 Jan Djärv <jan.h.d@swipnet.se>
2081
a1fadc6f
JD
2082 * term.c (delete_tty): Remove check for last terminal (bug#4970).
2083
5ce6e4f4 2084 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
2085 defaults (bug #5025).
2086
28259cac
SM
20872009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
2088
2089 * insdel.c (adjust_markers_for_delete): Move it in the
2090 right direction! (bug#4803)
2091
e8e14166
YM
20922009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2093
2094 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
2095
2096 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
2097
86677b58
GM
20982009-11-24 Glenn Morris <rgm@gnu.org>
2099
2100 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
2101
581e51e8
JD
21022009-11-23 Jan Djärv <jan.h.d@swipnet.se>
2103
cfc86c7a
JD
2104 * Makefile.in: Must create deps for ecrt0.o in its rule.
2105
581e51e8
JD
2106 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
2107 because that is what Gtk+ font dialog understands.
2108
2109 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
2110 of Fcopy_sequence.
2111 (font_open_by_name): Put name given into QCname for font-object returned.
2112
2113 * frame.c (x_set_font): Save original font name as frame parameter
2114 font-parameter.
2115
2116 * xsettings.c (set_default_xft_settings): New function.
2117 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
2118 is found.
2119
8b264ecb
AS
21202009-11-22 Andreas Schwab <schwab@linux-m68k.org>
2121
2122 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
2123 searching backwards through multibyte buffer.
2124
872870b2
JD
21252009-11-21 Jan Djärv <jan.h.d@swipnet.se>
2126
2127 * xterm.c: #include xgselect.h.
2128 (x_initialize): Call xgselect_initialize.
2129
2130 * xsettings.c (something_changedCB): C++ comments => C comments.
2131 (init_gconf): Do not deal with any GLib file descriptors, xg_select
2132 does that now.
2133
2134 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
2135 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
2136 (scroll_bar_button_cb): Remove.
5ce6e4f4 2137 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
2138 event.
2139 (xg_create_scroll_bar): Don't bind button-press-event and
2140 button-release-event.
2141
2142 * process.c: Include xgselect.h if defined (USE_GTK) ||
2143 defined (HAVE_GCONF).
2144 (wait_reading_process_output): Call xg_select for the same condition.
2145
2146 * xgselect.c (xg_select): New function to better integrate with
2147 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
2148
2149 * xgselect.h: New file, declare xg_select, xgselect_initialize.
2150
2151 * Makefile.in (XOBJ): Add xgselect.o.
2152
62a6e103
AS
21532009-11-21 Andreas Schwab <schwab@linux-m68k.org>
2154
0b5397c2
SM
2155 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
2156 Remove ignored second argument. All callers changed.
62a6e103
AS
2157 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
2158 (RE_STRING_CHAR_AND_LENGTH): Likewise.
2159 * xdisp.c (string_char_and_length): Likewise.
2160
b0ca0f33
DN
21612009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
2162
2163 * xterm.c (x_new_font):
2164 * print.c (print_object):
2165 * cmds.c (Fself_insert_command): Move declarations before statements.
2166
dd5a6279
CY
21672009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
2168
2169 * s/cygwin.h: Remove unneeded linker flags.
2170
4a8e097d
JD
21712009-11-20 Jan Djärv <jan.h.d@swipnet.se>
2172
0d1d0d26
JD
2173 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
2174
2175 * xsettings.h: Declare xsettings_get_system_font.
2176
2177 * xsettings.c (xsettings_get_system_font): New function.
2178 (init_gconf): No use initiating gconf unless we have Xft also.
2179 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
2180 HAVE_GCONF.
2181
4a8e097d
JD
2182 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
2183 add a blank entry so it doesn't collapse into nothing.
2184
8ab1650e
SM
21852009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2186
2187 * lread.c (Funintern): Comment out last change.
2188
82c602f0
RS
21892009-11-19 Richard Stallman <rms@gnu.org>
2190
2191 * lread.c (Funintern): Error if symbol is t or nil.
2192
87e32266
SM
21932009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2194
2195 * insdel.c (make_gap_larger): Don't make as many assumptions about the
2196 representation of Lisp integers.
2197 Reported by MJ Chan <mjchan.inbox@gmail.com>.
2198
1b9ac145
AS
21992009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2200
2201 * lisp.h: Remove declaration of Ffont_get_system_font.
2202 * xfns.c: Move include of "xsettings.h".
2203 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
2204
dfb3c4c6
JD
22052009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2206
87e32266
SM
2207 * xsettings.c (something_changedCB, Ffont_get_system_font):
2208 Check use_system_font.
dfb3c4c6
JD
2209 (syms_of_xsettings): DEFVAR font-use-system-font.
2210
9370c1d8
AS
22112009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2212
25fe851a
AS
2213 * xfns.c (x_default_font_parameter): Remove dead assignment.
2214
9370c1d8
AS
2215 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
2216
637fa988
JD
22172009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2218
87e32266 2219 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 2220 not have FC_LCD_*. #define them if not there.
a6eb20d8 2221
87e32266 2222 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 2223
637fa988
JD
2224 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
2225
2226 * xterm.c (handle_one_xevent): Call xft_settings_event for
2227 ClientMessage, PropertyNotify and DestroyNotify.
2228 (x_term_init): If we have XFT, get DPI from Xft.dpi.
2229 Call xsettings_initialize.
2230
2231 * xftfont.c (xftfont_fix_match): New function.
2232 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
2233 Call xftfont_fix_match after XftFontMatch.
2234
2235 * xfont.c (xfont_driver): Initialize all members.
2236
87e32266
SM
2237 * xfns.c (x_default_font_parameter):
2238 Try font from Ffont_get_system_font.
637fa988
JD
2239 Do not get font from x_default_parameter if we got one from
2240 Ffont_get_system_font.
87e32266 2241 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
2242
2243 * w32font.c (w32font_driver): Initialize all members.
2244
2245 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
2246
2247 * lisp.h: Declare syms_of_xsettings.
2248
87e32266
SM
2249 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
2250 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
2251
2252 * ftfont.c (ftfont_filter_properties): New function.
2253
2254 * frame.c (x_set_font): Remove unused variable lval.
2255
87e32266 2256 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
2257
2258 * font.c (font_put_extra): Don't return if val is nil, it means
2259 boolean option is off.
2260 (font_parse_fcname): Collect all extra properties in extra_props
2261 and call filter_properties for all drivers with extra_props and
2262 font as parameter.
87e32266
SM
2263 (font_open_entity): Do not use cache, it does not pick up new
2264 fontconfig settings like hinting.
637fa988
JD
2265 (font_load_for_lface): If spec had a name in it, store it in entity.
2266
a73f9c9d 2267 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
2268
2269 * config.in: HAVE_GCONF is new.
2270
2271 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
2272 xsettings.o is new.
2273
5a942932
KH
22742009-11-17 Kenichi Handa <handa@m17n.org>
2275
2276 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
2277 back to the default font in case that no suitable font is found.
2278
b7c7a4d1
SM
22792009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2280
2281 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
2282 Suggested by Chad Brown <yandros@mit.edu>.
2283 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
2284
072f1e39
JD
22852009-11-16 Jan Djärv <jan.h.d@swipnet.se>
2286
2287 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
2288
5d1e70a2
AS
22892009-11-14 Andreas Schwab <schwab@linux-m68k.org>
2290
87e32266 2291 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 2292
a53cfbe5
JD
22932009-11-14 Jan Djärv <jan.h.d@swipnet.se>
2294
473a99b7
JD
2295 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
2296 has a parent.
2297
a53cfbe5 2298 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 2299 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
2300
2301 * config.in: Generated (AUTO_DEPEND).
2302
f04bb9b2
MA
23032009-11-13 Michael Albinus <michael.albinus@gmx.de>
2304
b7c7a4d1 2305 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
2306 Vdbus_registered_functions_table, because it contains also
2307 properties. Fix docstring.
b7c7a4d1 2308 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 2309
8f11f7ec
SM
23102009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
2311
2312 * alloc.c (mark_object): Don't reprocess marked strings.
2313 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
2314 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
2315
8a605fe8
KH
23162009-11-13 Kenichi Handa <handa@m17n.org>
2317
8f11f7ec 2318 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
2319 semantics of Vword_combining_categories.
2320 (Vword_combining_categories): Describe the slight change of the
2321 semantics.
2322
241c4680
EZ
23232009-11-13 Eli Zaretskii <eliz@gnu.org>
2324
2325 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
2326
2327 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
2328
5d58e44c
SM
23292009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
2330
2331 * xdisp.c (syms_of_xdisp): Fix typo in last change.
2332
5e13f9d3
JB
23332009-11-12 Juanma Barranquero <lekktu@gmail.com>
2334
2335 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
2336
cf54c754
DR
23372009-11-11 David Reitter <david.reitter@gmail.com>
2338
2339 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
2340 variables to fix 2009-11-09 change.
2341
a4ada374
DN
23422009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
2343
91433552
DN
2344 * process.c (ifflag_def): Make flag_sym constant.
2345 (Fnetwork_interface_info): Use a constant pointer.
2346 (ifflag_table):
2347 * xfns.c (cursor_bits):
2348 * xdisp.c (power_letter):
2349 * termcap.c (speeds, esctab):
2350 * sysdep.c (baud_convert):
2351 * keyboard.c (lispy_accent_codes, modifier_names):
2352 * image.c (xbm_format, xpm_format, pbm_format, png_format)
2353 (jpeg_format, tiff_format, gif_format, svg_format)
2354 (interlace_start, interlace_increment, gs_format):
2355 * gtkutil.c (separator_names):
2356 * fringe.c (swap_nibble):
2357 * fns.c (base64_value_to_char, base64_char_to_value):
2358 * fileio.c (make_temp_name_tbl):
2359 * coding.c (suffixes): Make constant.
2360
f4265f6c
DN
2361 * frame.c (make_initial_frame):
2362 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
2363 build_string.
2364 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
2365
04420943
DN
2366 * s/freebsd.h:
2367 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
2368
0a5d24ae
DN
2369 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
2370 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
2371
a4ada374
DN
2372 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
2373 * xterm.c (syms_of_xterm):
2374 * xfaces.c (syms_of_xfaces):
2375 * xdisp.c (syms_of_xdisp):
2376 * lread.c (syms_of_lread):
2377 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
2378 build_string.
91433552 2379
a4ada374
DN
2380 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
2381
af98fc7f
SM
23822009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2383
8ab1650e 2384 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 2385
e90292a9
JD
23862009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2387
2388 * keyboard.h: Declare timer_check.
2389
2390 * keyboard.c (timer_check_2): New function that does what the old
2391 timer_check did.
2392 (timer_check): Call timer_check_2 until -1 or a non-zero time is
2393 returned, i.e. don't return -1 with timers pending.
2394
2395 * process.c: Remove extern declaration of timer_check.
2396
2397 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
2398 even if timer_check returned -1.
2399
af98fc7f
SM
2400 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
2401 xg_dialog_data.
e90292a9
JD
2402 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
2403 the event loop.
2404 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
2405 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
2406 Destroy the dialog after xg_dialog_run.
2407
045b83c0
SM
24082009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2409
2410 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
2411
1fb99a3a
JD
24122009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2413
2414 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
2415
04e452cb
JB
24162009-11-09 Juanma Barranquero <lekktu@gmail.com>
2417
2418 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
2419
ef7417fd
SM
24202009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
2421
2422 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
2423 w32menu.c, and nsmenu.m.
2424 Simplify the obsolete case where position is nil.
2425 (cleanup_popup_menu): New function, moved from nsmenu.m.
2426 (struct skp): Remove slot `notreal'.
2427 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
2428 adjust callers.
2429 (single_menu_item): Adjust call to parse_menu_item.
2430 (syms_of_menu): Defsubr x-popup-menu.
2431 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
2432 (keymap_panes): Don't export any more.
2433 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
2434 (xmenu_show): Declare.
2435 * keyboard.c (parse_menu_item): Remove arg `notreal'.
2436 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
2437 * keyboard.h (parse_menu_item): Update declaration.
2438 * xmenu.c (Fx_popup_menu): Remove.
2439 (syms_of_xmenu): Don't defsubr x-popup-menu.
2440 * w32menu.c (Fx_popup_menu): Remove.
2441 (syms_of_w32menu): Don't defsubr x-popup-menu.
2442 * nsmenu.m (cleanup_popup_menu): Remove.
2443 (ns_menu_show): Rename from ns_popup_menu and remove all the code
2444 moved to menu.c's Fx_popup_menu.
2445 (Fx_popup_menu): Remove.
2446 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
2447 menu_items (it's done in menu.c already).
2448
424d6179
SM
24492009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
2450
2451 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
2452 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
2453
c0df13a6 24542009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
2455
2456 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 2457 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
2458 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
2459 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
2460
2de9f71c
SM
24612009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2462
2463 Let integers use up 2 tags to give them one extra bit and thus double
2464 their range.
2465 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
2466 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
2467 New macros.
2468 (enum Lisp_Type): Use them. Give explicit values.
2469 (Lisp_Type_Limit): Remove.
2470 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
2471 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
2472 Pay attention to USE_2_TAGS_FOR_INTS.
2473 (INTEGERP): Use LISP_INT_TAG_P.
2474 * fns.c (internal_equal): Simplify the default case.
2475 (sxhash): Use case_Lisp_Int.
2476 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
2477 any more.
2478 (Ftype_of): Use case_Lisp_Int.
2479 (store_symval_forwarding): Take into account the fact that Ints can
2480 now have more than one tag.
2481 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
2482 buffer_slot_type_mismatch):
2483 * xfaces.c (face_attr_equal_p):
2484 * print.c (print_object):
2485 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
2486 Use case_Lisp_Int.
2487
323637a2
EZ
24882009-11-06 Eli Zaretskii <eliz@gnu.org>
2489
7ac65b38
EZ
2490 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
2491
323637a2
EZ
2492 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
2493 warning.
2494
e511451f
JD
24952009-11-06 Jan Djärv <jan.h.d@swipnet.se>
2496
2497 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
2498
2499 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
2500
2501 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
2502 ButtonPressRelease and MotionNotify (bug#4870).
2503
5e2327cf
DN
25042009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
2505
5adc433e
DN
2506 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
2507
d67b4f80
DN
2508 * xterm.c (syms_of_xterm):
2509 * xselect.c (syms_of_xselect):
2510 * xmenu.c (syms_of_xmenu):
2511 * xfns.c (syms_of_xfns):
2512 * xfaces.c (syms_of_xfaces):
2513 * xdisp.c (syms_of_xdisp):
2514 * window.c (syms_of_window):
2515 * w32fns.c (syms_of_w32fns):
2516 * undo.c (syms_of_undo):
2517 * textprop.c (syms_of_textprop):
2518 * terminal.c (syms_of_terminal):
2519 * syntax.c (syms_of_syntax):
2520 * sound.c (syms_of_sound):
2521 * search.c (syms_of_search):
2522 * print.c (syms_of_print):
2523 * minibuf.c (syms_of_minibuf):
2524 * macros.c (syms_of_macros):
2525 * keymap.c (syms_of_keymap, initial_define_key)
2526 (initial_define_lispy_key):
2527 * keyboard.c (syms_of_keyboard):
2528 * insdel.c (syms_of_insdel):
2529 * image.c (syms_of_image):
2530 * fringe.c (syms_of_fringe):
2531 * frame.c (syms_of_frame):
2532 * fontset.c (syms_of_fontset):
2533 * fns.c (syms_of_fns):
2534 * fns.c (syms_of_fns):
2535 * fileio.c (syms_of_fileio):
2536 * fileio.c (syms_of_fileio):
2537 * eval.c (syms_of_eval):
2538 * doc.c (syms_of_doc):
2539 * dispnew.c (syms_of_display):
2540 * dired.c (syms_of_dired):
2541 * dbusbind.c (syms_of_dbusbind):
2542 * data.c (syms_of_data):
2543 * composite.c (syms_of_composite):
2544 * coding.c (syms_of_coding):
2545 * cmds.c (syms_of_cmds):
2546 * charset.c (define_charset_internal, syms_of_character):
2547 * ccl.c (syms_of_ccl):
2548 * category.c (syms_of_category, init_category_once):
2549 * casetab.c (syms_of_casetab):
2550 * casefiddle.c (syms_of_casefiddle):
2551 * callint.c (syms_of_callint):
2552 * bytecode.c (syms_of_bytecode):
2553 * buffer.c (keys_of_buffer, syms_of_buffer):
2554 * alloc.c (syms_of_alloc):
2555 * process.c (syms_of_process, init_process):
2556 * lread.c (syms_of_lread, init_obarray):
2557 * font.c (build_style_table):
2558 * emacs.c (syms_of_emacs, main): Replace calls to intern with
2559 intern_c_string, calls to make_pure_string with
2560 make_pure_c_string. Use pure_cons instead of Fcons.
2561
5e2327cf
DN
2562 * process.c (socket_options): Make it const.
2563 (set_socket_option, init_process): Use a const pointer.
2564
2565 * lread.c (intern_c_string): New function.
2566 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2567 (defvar_int): Uset it. Make the name const char*.
2568
2569 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2570 (defvar_int): Update prototypes.
2571 (DEFUN, EXFUN): Support for prototypes is now required.
2572 (intern_c_string): New prototype.
2573 (struct Lisp_Subr): Make symbol_name constant.
2574
2575 * font.c (struct table_entry): Remove unused member. Make NAMES
2576 constant.
2577 (weight_table, slant_table, width_table): Make constant.
2578
2579 * emacs.c (struct standard_args): Make name and longname constant.
2580
2581 * character.h (DEFSYM): Use intern_c_string.
2582
a56eaaef
DN
25832009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2584
2585 * alloc.c (make_pure_c_string): New function.
2586
2587 * eval.c (Fautoload): Purecopy all arguments.
2588
f6a07420
KH
25892009-11-05 Kenichi Handa <handa@m17n.org>
2590
2591 * fileio.c (Finsert_file_contents): Be sure set coding-system of
2592 the buffer in case of replace.
2593
5d28d4b1
DN
25942009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
2595
2596 * puresize.h (BASE_PURESIZE): Increase to 1620000.
2597
b349d111
SM
25982009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2599
d528b1ce
SM
2600 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
2601 when applicable (bug#4851).
2602
b349d111
SM
2603 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
2604 (P_): Support for prototypes is now required.
2605
c38eb027
CY
26062009-10-31 Chong Yidong <cyd@stupidchicken.com>
2607
2608 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
2609 (Bug#4827).
2610
0405f8d9
EZ
26112009-10-30 Eli Zaretskii <eliz@gnu.org>
2612
d528b1ce 2613 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 2614
ca0a881a
DN
26152009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
2616
2617 * puresize.h (BASE_PURESIZE): Increase to 1470000.
2618
d528b1ce
SM
2619 * lread.c (Fload): Purecopy the file name when building
2620 Vpreloaded_file_list.
ca0a881a 2621
47e0e0e4
JR
26222009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
2623
2624 * w32fns.c (syms_of_w32fns): Change default value of
2625 w32-scroll-lock-modifier to nil. (Bug#2827)
2626
057bce6f
JB
26272009-10-26 Juanma Barranquero <lekktu@gmail.com>
2628
782a943e 2629 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 2630
242bc74c
AS
26312009-10-26 Andreas Schwab <schwab@redhat.com>
2632
2633 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
2634
522d013a
JB
26352009-10-26 Juanma Barranquero <lekktu@gmail.com>
2636
2637 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
2638 For delta < 0, skip check that only makes sense when the mini-window
2639 is going to be enlarged. (Bug#4534)
2640
18060980
CY
26412009-10-25 Chong Yidong <cyd@stupidchicken.com>
2642
2643 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
2644 string in menu maps (Bug#4471).
2645
fec8f0fe
CY
26462009-10-24 Chong Yidong <cyd@stupidchicken.com>
2647
2648 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
2649 FRAME_NS_VIEW on terminal frames (Bug#4765).
2650
10d66ec0
AS
26512009-10-24 Andreas Schwab <schwab@linux-m68k.org>
2652
1cae01f7
AS
2653 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
2654 DBUS_TYPE_UINTnn separately to get proper sign extension.
2655
58a12889
AS
2656 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2657 can properly handle unsigned types.
d528b1ce 2658 (make_uid, make_gid): Remove.
58a12889 2659
987c9327
AS
2660 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2661 types again.
2662
522d013a 2663 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
2664 (system_process_attributes): Likewise.
2665
905a9ed3
DN
26662009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2667
2668 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2669
2670 * eval.c (Fautoload): Purecopy the filename. Simplify.
2671
2672 * category.c (Fdefine_category): Purecopy docstring.
2673
a599b3e8
AS
26742009-10-23 Andreas Schwab <schwab@linux-m68k.org>
2675
7b792fc9
AS
2676 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2677
a599b3e8
AS
2678 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2679
b35ac83e
CY
26802009-10-23 Chong Yidong <cyd@stupidchicken.com>
2681
2682 * window.c (Fwindow_edges, Fwindow_pixel_edges)
2683 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2684 (Bug#4775).
2685
e8903e00
SM
26862009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2687
2688 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2689 (init_fileio_once):
2690 * lisp.h (init_fileio_once): Remove.
2691 * emacs.c (main): Don't call init_fileio_once.
2692
8f43cbf3
DN
26932009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
2694
2695 * puresize.h (BASE_PURESIZE): Increase to 1430000.
2696
26898943
AS
26972009-10-21 Andreas Schwab <schwab@linux-m68k.org>
2698
2699 * doprnt.c (doprnt): Fix overflow check.
2700
5c646d5a
JD
27012009-10-21 Jan Djärv <jan.h.d@swipnet.se>
2702
3132a7ea
JD
2703 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
2704
5c646d5a
JD
2705 * xterm.h (x_wait_for_event): Declare it.
2706
2707 * xterm.c (pending_event_wait): New variable.
2708 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2709 see pending_event_wait.eventtype.
2710 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
2711 (x_new_font): Call change_frame_size with new rows/columns before we
2712 try to resize the frame.
5c646d5a 2713 (x_wait_for_event): New function.
d528b1ce
SM
2714 (x_set_window_size_1): Don't change gravity unless change_gravity
2715 is set.
5c646d5a
JD
2716 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2717 don't change frame size, instead wait for the ConfigureNotify.
2718 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2719 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2720 (x_initialize): Initialize pending_event_wait.
2721
2722 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2723 size.
2724
2725 * widget.c (EmacsFrameSetValues): Add comment.
2726 (EmacsFrameSetCharSize): Just call x_set_window_size.
2727
2728 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2729 x_wait_for_event.
d528b1ce 2730 (flush_and_sync): Remove again.
5c646d5a
JD
2731 (xg_get_font_name): Suggest monospace if no previous font is known.
2732
e9c1637d
SM
27332009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2734
2735 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 2736 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 2737
5a72cccb
YM
27382009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2739
2740 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2741 processing pending events when event is filtered for input method.
ab04798f 2742 (Bug#3681)
5a72cccb 2743
2629aa37
JB
27442009-10-20 Juanma Barranquero <lekktu@gmail.com>
2745
2746 * fns.c: Add #endif accidentally removed in previous change.
2747
c3417a74
DN
27482009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2749
2750 * fns.c: Remove code for unsupported system: MAC_OS.
2751 * image.c: Likewise. Include setjmp.h.
2752
9685cef2
JD
27532009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2754
2755 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2756 pixel -1 (bug #4742).
2757
d7306fe6
DN
27582009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2759
019d2c4c
DN
2760 * process.c (create_pty): Remove conditionals for no longer
2761 supported systems: UNIPLUS and RTU.
2762
ee6bacd4
DN
2763 * xterm.c:
2764 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2765
d7306fe6
DN
2766 * alloc.c: Do not define struct catchtag.
2767 * eval.c: Move struct catchtag definition ...
2768 * lisp.h: ... here.
2769
2770 * image.c: Move png.h #include earlier to avoid warnings.
2771
2772 * xterm.c:
2773 * xsmfns.c:
2774 * xselect.c:
2775 * xrdb.c:
2776 * xmenu.c:
2777 * xftfont.c:
2778 * xfont.c:
2779 * xfns.c:
2780 * xfaces.c:
2781 * xdisp.c:
2782 * window.c:
2783 * widget.c:
2784 * w32xfns.c:
2785 * w32uniscribe.c:
2786 * w32term.c:
2787 * w32select.c:
2788 * w32reg.c:
2789 * w32proc.c:
2790 * w32menu.c:
2791 * w32inevt.c:
2792 * w32heap.c:
2793 * w32font.c:
2794 * w32fns.c:
2795 * w32console.c:
2796 * w32.c:
2797 * w16select.c:
2798 * vm-limit.c:
2799 * unexsol.c:
2800 * unexec.c:
2801 * unexcw.c:
2802 * unexaix.c:
2803 * undo.c:
2804 * tparam.c:
2805 * textprop.c:
2806 * terminfo.c:
2807 * terminal.c:
2808 * termcap.c:
2809 * term.c:
2810 * syntax.c:
2811 * sound.c:
2812 * sheap.c:
2813 * search.c:
2814 * scroll.c:
2815 * region-cache.c:
2816 * regex.c:
2817 * ralloc.c:
2818 * process.c:
2819 * print.c:
b024548b
DN
2820 * nsterm.m:
2821 * nsselect.m:
2822 * nsmenu.m:
2823 * nsimage.m:
2824 * nsfont.m:
2825 * nsfns.m:
d7306fe6
DN
2826 * msdos.c:
2827 * minibuf.c:
2828 * menu.c:
2829 * marker.c:
2830 * macros.c:
2831 * keymap.c:
2832 * keyboard.c:
2833 * intervals.c:
2834 * insdel.c:
2835 * indent.c:
2836 * gtkutil.c:
2837 * ftxfont.c:
2838 * ftfont.c:
2839 * fringe.c:
2840 * frame.c:
2841 * fontset.c:
2842 * font.c:
2843 * fns.c:
2844 * floatfns.c:
2845 * filelock.c:
2846 * fileio.c:
2847 * emacs.c:
2848 * editfns.c:
2849 * dosfns.c:
2850 * doprnt.c:
2851 * doc.c:
2852 * dispnew.c:
2853 * dired.c:
2854 * dbusbind.c:
2855 * data.c:
2856 * composite.c:
2857 * coding.c:
2858 * cmds.c:
2859 * cm.c:
2860 * chartab.c:
2861 * charset.c:
2862 * character.c:
2863 * ccl.c:
2864 * category.c:
2865 * casetab.c:
2866 * casefiddle.c:
2867 * callproc.c:
2868 * callint.c:
2869 * bytecode.c:
2870 * buffer.c:
2871 * atimer.c: Include setjmp.h. (Bug#4643)
2872
fd5f21e6
SM
28732009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2874
4c0354d7
SM
2875 Remove leftover table unibyte_to_multibyte_table.
2876 * character.c (unibyte_to_multibyte_table): Remove.
2877 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2878 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2879 * character.h (UNIBYTE_TO_CHAR): New macro.
2880 (MAKE_CHAR_MULTIBYTE): Use it.
2881 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2882 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2883 (message_dolog, set_message_1):
2884 * search.c (Freplace_match):
2885 * editfns.c (Fcompare_buffer_substrings):
2886 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2887 (concat):
2888 * insdel.c (copy_text, count_size_as_multibyte):
2889 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2890 * term.c (produce_glyphs):
2891 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2892 * regex.c (RE_CHAR_TO_MULTIBYTE):
2893 * cmds.c (internal_self_insert):
2894 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2895
fd5f21e6
SM
2896 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2897
4418646e
DN
28982009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2899
2900 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2901
35f5c1d2
JB
29022009-10-16 Juanma Barranquero <lekktu@gmail.com>
2903
2904 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2905
a0cd8f6b
AR
29062009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2907
2908 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2909 still needed under Tiger.
2910
2911 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2912
2913 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2914 __Apple__.
2915
2916 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2917
01a8d3fa
KH
29182009-10-15 Kenichi Handa <handa@m17n.org>
2919
2920 * print.c (print_object): Escape a symbol like "2E10" too.
2921
bf6c75c9 29222009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
2923
2924 Cleanups and changes for 64-bit compile under Snow Leopard.
2925 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
2926
2927 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2928
c5959062 2929 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
2930 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2931 cast argument.
2932 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 2933 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
2934
2935 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2936
2937 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2938 where appropriate.
2939
2940 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2941 where appropriate.
6e4780c5
JB
2942 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2943 Use stringWithUTF8String.
bf6c75c9
AR
2944 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2945
6e4780c5
JB
2946 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2947 Add formal protocol mention to inheritance.
bf6c75c9
AR
2948 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2949
6e4780c5
JB
2950 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2951 Fix printf format.
bf6c75c9
AR
2952 (ns_query_color): Use CGFloat where appropriate.
2953 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 2954 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
2955 argument.
2956
3d87f118
AR
2957 * config.in (NS_HAVE_NSINTEGER): Drop.
2958
a95c8102
AR
2959 * dbusbind.c (dbus-method-return-internal)
2960 (dbus-method-error-internal): Use long format in printf, and cast
2961 argument.
2962
2963 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2964 in printf, and cast argument.
2965
6873acca 2966 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
2967 cast argument.
2968
9ec6f100
GM
29692009-10-11 Glenn Morris <rgm@gnu.org>
2970
2971 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2972
5be883cd
JD
29732009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2974
2975 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2976 menu bar with a small width so it doesn't enlarge the frame.
2977
d7a39b51
JB
29782009-10-08 Juanma Barranquero <lekktu@gmail.com>
2979
2980 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2981
0c2b6f8e
GM
29822009-10-06 Glenn Morris <rgm@gnu.org>
2983
2984 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2985 SOME_MACHINE_LISP (this enters indirectly via DOC).
2986
e02131a2
EZ
29872009-10-05 Eli Zaretskii <eliz@gnu.org>
2988
2989 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2990
b4744254
EZ
29912009-10-04 Eli Zaretskii <eliz@gnu.org>
2992
2993 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2994 Doc fix.
2995
dbf64827
JB
29962009-10-03 Martin Rudalics <rudalics@gmx.at>
2997
2998 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2999
e9a0aef8
MA
30002009-10-02 Michael Albinus <michael.albinus@gmx.de>
3001
d528b1ce 3002 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
3003 used anymore outside fileio.c.
3004
3005 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
3006
64eb2b56
JB
30072009-10-01 Juanma Barranquero <lekktu@gmail.com>
3008
3009 * lisp.h (Qdelete_directory_internal):
3010 Declare, instead of Qdelete_directory.
3011
3012 * w32fns.c (Fsystem_move_file_to_trash): Use it.
3013
9d28c33e
SM
30142009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
3015
3016 * eval.c (Fcalled_interactively_p): Add `kind' argument.
3017
9d8f3bd9
MA
30182009-10-01 Michael Albinus <michael.albinus@gmx.de>
3019
9d28c33e 3020 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
3021 Fdelete_directory. It is not a command anymore. It has no file
3022 name handler.
3023
9694740b
SM
30242009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
3025
3026 * xdisp.c (get_next_display_element): Use an enum in last change.
3027
748e162f
KH
30282009-09-28 Kenichi Handa <handa@m17n.org>
3029
9694740b 3030 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
3031 unibyte_display_via_language_environment in handling
3032 Vnobreak_char_display.
3033
17efd58d
AR
30342009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3035
3036 * nsterm.h (ns_app_name): New extern variable.
3037
3038 * nsterm.m (ns_app_name): New variable.
3039 (ns_term_init): Set and use it.
3040 (ns_term_shutdown): Use it.
3041
3042 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
3043 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
3044
3045 * nsfns.m (ns_set_name_iconic, ns_set_name)
3046 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
3047 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
3048
9694740b
SM
3049 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
3050 Remove double-casting in client_data comparison.
31c2d412 3051
3208cb35
YM
30522009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3053
3054 * keyboard.c (make_lispy_event): Remember last wheel direction.
3055 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
3056
b7d552d6
GM
30572009-09-26 Glenn Morris <rgm@gnu.org>
3058
3059 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
3060 internal.elc. Add term/pc-win.elc.
3061 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
3062 term/x-win.elc.
3063 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
3064 term/w32-win.elc.
3065 (NS_SUPPORT): New.
3066 (lisp): Add NS_SUPPORT.
3067 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
3068
4ff670a8
DR
30692009-09-25 David Reitter <david.reitter@gmail.com>
3070
3071 * nsmenu.m (EmacsMenu-clear): Recognize application menu
3072 on Mac OS X 10.6+ (bug#4513).
3073
feabfb6c
JB
30742009-09-24 Juanma Barranquero <lekktu@gmail.com>
3075
3076 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
3077 some parts of Emacs code (like font selection) don't grok them.
3078 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 3079
de59072a
AS
30802009-09-24 Andreas Schwab <schwab@redhat.com>
3081
3082 * coding.c (decode_coding_iso_2022): Fix operator precedence.
3083
a489517b
JB
30842009-09-24 Juanma Barranquero <lekktu@gmail.com>
3085
3086 * dired.c (Fdirectory_files): Fix typo in docstring.
3087
0592970c
AR
30882009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3089
3090 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
3091 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
3092 (EmacsScroller-setPosition:portion:whole:): Remove -display call
3093 under GNUstep.
3094 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
3095
3096 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
3097 glyph advancement.
3098
48e8a88b
AR
30992009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3100
3101 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 3102 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
3103
3104 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
3105 deleted (bug #4492).
3106
e14f0a78
AR
3107 * nsfont.m (Vns_reg_to_script): New lisp variable.
3108 (syms_of_nsfont): Declare it.
3109 (ns_registry_to_script): New function.
3110 (ns_get_req_script): Call it.
3111 (ns_findfonts): Don't give up on non-unicode registry.
3112
3113 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
3114
5b650faa
SM
31152009-09-20 Tom Tromey <tromey@redhat.com>
3116
3117 * eval.c (find_handler_clause): Make stack-trace-on-error work in
3118 batch mode (bug#4228).
3119
a489517b 31202009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
3121
3122 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 3123 carefully. (Bug #4339)
0bae4e09 3124
fcfe06f3
CY
31252009-09-18 Chong Yidong <cyd@stupidchicken.com>
3126
d798ba87 3127 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 3128
31642728
AR
31292009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3130
3131 * emacs.c (inhibit_x_resources): Update doc string for NS.
3132 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 3133 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
3134
3135 * nsterm.h (ns_no_defaults): Remove.
3136
3137 * nsterm.m (ns_no_defaults): Remove.
3138 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
3139 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
3140 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
3141 don't update the NSWindow itself.
3142 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 3143 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
3144
3145 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
3146 ns_use_qd_smoothing.
3147
3148 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
3149 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 3150 (x-close-connection): Drop PSFlush() under OS X.
a489517b 3151 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 3152
8686ac71
JB
31532009-09-17 Juanma Barranquero <lekktu@gmail.com>
3154
3155 * emacs.c (inhibit_x_resources): New variable.
3156 (main) [HAVE_NS]: Don't process --quick command line option.
3157 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
3158
3159 * lisp.h (inhibit_x_resources): Declare it extern.
3160
3161 * w32reg.c (x_get_string_resource):
3162 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
3163
e227ba05
EZ
31642009-09-17 Eli Zaretskii <eliz@gnu.org>
3165
362654a6
JB
3166 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
3167 Add lisp/term/internal.elc.
e227ba05 3168
742d40e8
SM
31692009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3170
3171 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
3172 (bug#4461).
3173
005bd5a2
DN
31742009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
3175
3176 * puresize.h (BASE_PURESIZE): Increase to 1290000.
3177
3178 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
3179 (OBJECTS_MACHINE): Remove, unused.
3180
f9af9719
SM
31812009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
3182
3183 * frame.c (x_get_resource_string): Remove unused.
3184
0307c7d2
JD
31852009-09-15 Jan Djärv <jan.h.d@swipnet.se>
3186
3187 * xterm.c (x_new_font): Call change_frame_size before calling
3188 x_set_window_size, in case frame size won't change.
3189
3190 * frame.c (x_set_font): Remove dead code.
3191
428b13d6
SM
31922009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
3193
3194 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
3195
5766c380
SM
31962009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3197
3198 * lread.c (Fload): Don't output a message after loading an obsolete
3199 package any more (done in Lisp now).
3200
2fd0161b
CY
32012009-09-12 Chong Yidong <cyd@stupidchicken.com>
3202
3203 * fns.c (syms_of_fns): Doc fix (Bug#4227).
3204
bc5e75b6
SM
32052009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3206
3207 * keymap.c (Fwhere_is_internal): Use nconc2.
3208
c31c985e
AM
32092009-09-11 Alan Mackenzie <acm@muc.de>
3210
3211 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
3212 batch mode.
3213
78012bd2
AS
32142009-09-11 Andreas Schwab <schwab@linux-m68k.org>
3215
3216 * xdisp.c (display_mode_element): Detect cycles.
3217
9d889332
SM
32182009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3219
3220 * keymap.c (where_is_internal): Don't erroneously return nil right after
3221 filling the cache.
3222 (where_is_internal_1): Fix up typo.
3223
7ab5d780
GM
32242009-09-11 Glenn Morris <rgm@gnu.org>
3225
3226 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
3227 share a common doc-string.
3228
5238a749
SM
32292009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3230
66d77eda
SM
3231 * keymap.c (get_keymap): Return the actual keymap symbol rather than
3232 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
3233
5238a749
SM
3234 * keymap.c (QCadvertised_binding): New constant.
3235 (syms_of_keymap): Initialize it.
3236 (Fwhere_is_internal): Try and use bindings from :advertised-binding
3237 if applicable.
3238
19f48442
SM
32392009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
3240
50d4ba39
SM
3241 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
3242 (parse_menu_item): Streamline since bindings are recomputed all the
3243 time anyway. Don't bother checking Vdefine_key_rebound_commands any
3244 more and don't support lmenu's menu-alias any more either.
3245
a88a5372
SM
3246 * keymap.c (where_is_internal_data): Make noindirect a boolean.
3247 (where_is_internal): Strip it down to only traverse the keymaps.
3248 Move the cache handling from Fwhere_is_internal to here.
3249 (Fwhere_is_internal): Move the handling of remapping and the choice of
3250 the best binding from where_is_internal to here.
3251 Unify the cached/noncached paths, so remapping is also handled
3252 correctly when the cache is used, and so the cache can be used to
3253 speed up remap-handling when applicable.
3254 Give preference to non-remapped bindings.
3255 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
3256 non-remapped bindings.
3257 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
3258 command remapping.
3259
19f48442
SM
3260 * xdisp.c (display_mode_element): Move list length limit from 50 to
3261 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
3262
599498c3 32632009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
3264
3265 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
3266
f9b7b5ac
SM
32672009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
3268
a53af587
JB
3269 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
3270 (Bug#4334)
3271
f9b7b5ac
SM
3272 * keymap.c (where_is_internal): Filter out shadowed remappings.
3273 Assume that where_is_internal returns unshadowed bindings to simplify
3274 the code and get rid of the gotos. Use ASIZE.
3275
04f4b72d
JD
32762009-09-04 Jan Djärv <jan.h.d@swipnet.se>
3277
4da146f2
JD
3278 * xterm.c (x_focus_changed): If we get a focusout and pointer
3279 is invisible, make it visible.
3280
04f4b72d
JD
3281 * xterm.h: Remove condition for declaration of
3282 x_*_window_to_frame.
3283
7cef7ce3
SM
32842009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
3285
3286 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
3287 initial terminal as well.
3288
a54fa5b7
JD
32892009-09-02 Jan Djärv <jan.h.d@swipnet.se>
3290
3291 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 3292 x_menubar_window_to_frame.
a54fa5b7
JD
3293
3294 * xterm.c: Remove declarations also in xterm.h
3295 (XTmouse_position): Do not return valid positions
3296 for clicks in the menubar and the toolbar for Gtk+.
3297
3298 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
3299 if the widget for the event has the same top level as a frame,
3300 return the frame.
3301 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
3302 internal windows, bug #4122.
3303 (x_non_menubar_window_to_frame): Remove.
3304
5a021dd0
GM
33052009-09-02 Glenn Morris <rgm@gnu.org>
3306
3307 * buffer.c (default-major-mode): Move most of the doc from here...
3308 (major-mode): ... to here.
3309
548fe2f3
NR
33102009-08-30 Nick Roberts <nickrob@snap.net.nz>
3311
3312 * process.c (wait_reading_process_output): Keep the descriptor
3313 when pty is used by a non-child process, e.g., in I/O buffer of
3314 GDB this allows inferior to be restarted.
3315
e0840eef
EZ
33162009-08-29 Eli Zaretskii <eliz@gnu.org>
3317
3318 * xdisp.c (redisplay_internal): Remove redundant test and collapse
3319 both branches into one.
3320
82e98df4
SM
33212009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
3322
3323 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
3324 (main): Use enable-multibyte-characters rather than
3325 default-enable-multibyte-characters. Output a warning message when
3326 running a unibyte session.
3327
890617cb
YM
33282009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3329
3330 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
3331 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
3332 (copy_data_segment): Also copy __program_vars section.
3333 (copy_dyld_info) [LC_DYLD_INFO]: New function.
3334 (dump_it) [LC_DYLD_INFO]: Use it.
3335
3336 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
3337
e7adeadc
EZ
33382009-08-28 Eli Zaretskii <eliz@gnu.org>
3339
3340 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
3341 $(SRC)/buildobj.h.
3342 (buildobj.h): Renamed from $(SRC)/buildobj.h.
3343 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
3344 $(SRC)/buildobj.h.
3345 (clean): Add buildobj.h.
3346
3ed8bbdc
TZ
33472009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
3348
3349 * print.c (print_object): Set escapeflag to 1 when printing
3350 hashtable keys and values.
3351
155a6764
SM
33522009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
3353
3354 * lread.c (read_integer): Use doubles (and potentially return a float
3355 number) as we do in string-to-number.
3356 (read1): Use strtol to read integers, signal errors on strtol's
3357 overflow and use floats if strtol's output is too large for
3358 Elisp integers.
3359
877610de
EZ
33602009-08-27 Eli Zaretskii <eliz@gnu.org>
3361
3362 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
3363 (make-buildobj-SH): Fix last change.
3364 (SRC): Move to before where it's first used.
3365
ef73e7be
KH
33662009-08-27 Kenichi Handa <handa@m17n.org>
3367
550c8289
KH
3368 * process.c (send_process): Use encode_coding_object instead of
3369 encode_coding_string to perform eol-conversion even if the string
3370 is unibyte.
3371
60afa08d
KH
3372 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
3373 character.
3374
ef73e7be 3375 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 3376 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 3377
7b3a82d7
DN
33782009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
3379
5654bf63
DN
3380 * callproc.c (Fcall_process): Remove always true #if.
3381
7b3a82d7
DN
3382 * lisp.h: Replace #if 0 code for checking with text pointing to
3383 the --enable-checking configure flag.
3384
3385 * emacs.c (main): Mention the --enable-profiling configure flag
3386 instead of using CFLAGS.
3387
878bde49
KR
33882009-08-26 Ken Raeburn <raeburn@raeburn.org>
3389
3390 * Makefile.in (buildobj.h): New target.
3391 (doc.o): Depend on it.
3392 (temacs${EXEEXT}): Don't generate buildobj.lst.
3393 (mostlyclean): Delete buildobj.h, not buildobj.lst.
3394 * makefile.w32-in ($(SRC)/buildobj.h): New target.
3395 ($(BLD)/doc.$(O)): Depend on it.
3396 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
3397 provided by Eli Zaretskii.)
3398 ($(TEMACS)): Don't generate buildobj.lst.
3399 * doc.c: Include buildobj.h.
3400 (buildobj): New static variable.
3401 (Fsnarf_documentation): Use it, instead of opening and reading
3402 buildobj.lst.
3403
1574224c
MA
34042009-08-25 Michael Albinus <michael.albinus@gmx.de>
3405
3406 * dbusbind.c (Fdbus_call_method)
3407 (Fdbus_call_method_asynchronously): Use English numeric format for
3408 timeout values in doc string.
3409
d9da2f45
KH
34102009-08-25 Kenichi Handa <handa@m17n.org>
3411
ef73e7be
KH
3412 * alloc.c (mark_char_table): New function.
3413 (mark_object): Use mark_char_table for a char-table.
3414
d9da2f45
KH
3415 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
3416 (CHAR_TABLE_REF): Use it.
3417
c8edcc01
KR
34182009-08-23 Ken Raeburn <raeburn@raeburn.org>
3419
3420 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
3421 before invoking the newly build emacs to check for load-path
3422 shadowing.
3423
7763401b
GM
34242009-08-22 Glenn Morris <rgm@gnu.org>
3425
3426 * Makefile.in (bootstrap_exe): New variable.
3427 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
3428 Use ${bootstrap_exe}.
3429
729eadda
EZ
34302009-08-22 Eli Zaretskii <eliz@gnu.org>
3431
3432 * coding.h (encode_coding_string): Don't encode unibyte strings.
3433 (Bug#4047)
3434
eb4c6ace
MA
34352009-08-22 Michael Albinus <michael.albinus@gmx.de>
3436
3437 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
3438
3439 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
3440 intended as hotfix only.
3441 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
3442
36e34d1b
AR
34432009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3444
3445 * nsterm.m (ns_get_color): Update documentation properly for last
3446 change, and clean up loose ends in the code left by it. Fix
3447 longstanding bug with 16-bit hex parsing, and add support for
3448 yet another X11 format (rgb:r/g/b) for compatibility.
3449 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
3450 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
3451
f983eb8a
SM
34522009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
3453
3454 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
3455
3f56d3c6
MA
34562009-08-20 Michael Albinus <michael.albinus@gmx.de>
3457
3458 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
3459 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
3460 (xd_initialize, xd_pending_messages): Check, whether
3461 $DBUS_SESSION_BUS_ADDRESS is set.
3462
fb641d68
YM
34632009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3464
3465 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
3466
3467 * nsterm.m (ns_get_color): Remove incompatible color formats again.
3468
cf59a374
GM
34692009-08-20 Glenn Morris <rgm@gnu.org>
3470
3471 * emacs.c (system-type): Doc fix.
3472
1373f3be
SM
34732009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3474
3475 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
3476 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
3477
058ed861
MA
34782009-08-18 Michael Albinus <michael.albinus@gmx.de>
3479
1373f3be
SM
3480 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
3481 New functions.
058ed861
MA
3482 (xd_initialize): Revert change from 2009-08-16.
3483
563a866e 34842009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
3485
3486 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 3487 font-group vector, return nil.
5fc05db0 3488
e42bdf01
CY
34892009-08-17 Chong Yidong <cyd@stupidchicken.com>
3490
3491 * process.c (status_notify): Don't perform redisplay.
3492 (Fdelete_process, list_processes_1, process_send_signal):
3493 Expliticly perform redisplay.
3494 (wait_reading_process_output): Always check process status, but
3495 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
3496
4230ab74
KR
34972009-08-17 Ken Raeburn <raeburn@raeburn.org>
3498
1373f3be 3499 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
3500 (XFLOAT_INIT): New macro for storing a float value.
3501 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
3502 * fns.c (sxhash): Copy out the value of a float in order to
3503 examine its bytes.
3504 * dbusbind.c (xd_append_arg): Likewise.
3505
4230ab74
KR
3506 * emacs.c (main): Don't call syms_of_data twice.
3507
a0645cdd
MA
35082009-08-16 Michael Albinus <michael.albinus@gmx.de>
3509
3510 * dbusbind.c (xd_initialize): Add connection file descriptor to
3511 input_wait_mask, in order to let select() detect, whether a new
3512 message has been arrived.
ca4f31ea 3513 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 3514
485db0ba
MA
35152009-08-15 Michael Albinus <michael.albinus@gmx.de>
3516
1373f3be
SM
3517 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
3518 New functions.
485db0ba
MA
3519
3520 * lisp.h (xd_pending_messages): Declare.
3521
3522 * keyboard.c (readable_events): Call xd_pending_messages.
3523
b5b98ff4
CY
35242009-08-15 Chong Yidong <cyd@stupidchicken.com>
3525
1373f3be 3526 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 3527
f8354c6e
CY
3528 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
3529
b5b98ff4
CY
3530 * buffer.c (set_buffer_internal_1)
3531 (swap_out_buffer_local_variables): Check for unbound local
3532 variables (Bug#4138).
3533
8b9fc636
EZ
35342009-08-14 Eli Zaretskii <eliz@gnu.org>
3535
3536 * process.c (create_pty): Fix last change.
3537
ce959360
CY
35382009-08-13 Chong Yidong <cyd@stupidchicken.com>
3539
3540 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
3541 (xbm_load_image): Caller changed.
64b807c9 3542 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 3543
c7baf7e9
NR
35442009-08-13 Nick Roberts <nickrob@snap.net.nz>
3545
3546 * process.c (create_pty): New function.
3547 (Fstart_process): Use it to allow Emacs to just associate a pty
3548 with the buffer. See associated change in gdb-mi.el.
3549 (list_processes_1): Deal with no program name.
3550 (start_process_unwind): Use pid == -2 to mean no process.
3551
1ac9108a
SM
35522009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3553
3554 * cmds.c (nonundocount): New global variable.
3555 (keys_of_cmds): Initialize it.
3556 (Fself_insert_command): Use it to combine upto 20 sequential chars
3557 into a single undo entry, just like the Qself_insert_command code in
3558 keyboard.c does.
3559 Call frame_make_pointer_invisible, also like the Qself_insert_command
3560 code in keyboard.c does.
3561 * keyboard.c (command_loop_1): Use the new global nonundocount rather
3562 than its own local replacement for it.
3563
e267324c
KR
35642009-08-10 Ken Raeburn <raeburn@raeburn.org>
3565
1ac9108a 3566 * fns.c (concat): Don't re-set string length to its current value.
77437343 3567
1ac9108a
SM
3568 * coding.h (decode_coding_string, encode_coding_string):
3569 Use SBYTES macro.
f0bed503 3570
1ac9108a 3571 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
3572 (doprnt): Merge with doprnt1, discarding lispstrings code.
3573 * lisp.h (doprnt_lisp): Don't declare.
3574
416e006d
JL
35752009-08-07 Juri Linkov <juri@jurta.org>
3576
3577 * puresize.h (BASE_PURESIZE): Increase to 1270000.
3578
6f7d5780
DN
35792009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3580
3581 * print.c (syms_of_print): Undo previous change.
3582
f19a0f5b
TZ
35832009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
3584
3585 * lread.c (read1, syms_of_lread): Read hashtables back from the
3586 readable format.
3587
3588 * print.c (print_preprocess, print_object): Print hashtables fully
3589 and readably.
3590 (syms_of_print): Provide 'hashtable-print-readable.
3591
b9173dc2
AR
35922009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3593
3594 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
3595 no family set.
3596 (nsfont_open): Handle case when entity has no family.
3597
1586503c
AR
35982009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3599
3600 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
3601 element, not a list, for match case.
3602
087048cd
KH
36032009-07-28 Kenichi Handa <handa@m17n.org>
3604
3605 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
3606 rigidly.
3607
3608 * xfont.c (xfont_list_pattern): Don't ignore the return value of
3609 font_parse_xlfd. Check font properties more rigidly.
3610
780c2506
DN
36112009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3612
31fd7c5c
JB
3613 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
3614 bsd-common.h.
780c2506 3615
a8c0cc18
KH
36162009-07-27 Kenichi Handa <handa@m17n.org>
3617
3618 * xfaces.c (face_with_height): Call font_clear_prop.
3619
4fbe2306
CY
36202009-07-26 Chong Yidong <cyd@stupidchicken.com>
3621
111d9af3
CY
3622 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
3623
3624 * xterm.c (x_term_init): Use Qx.
3625
4fbe2306
CY
3626 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
3627
1ac9108a 3628 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
3629 (ns_get_color): Revert 2009-07-16 change.
3630
beb0b7f9
EZ
36312009-07-25 Eli Zaretskii <eliz@gnu.org>
3632
3633 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 3634 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 3635
2baf5e76
KR
36362009-07-25 Ken Raeburn <raeburn@raeburn.org>
3637
1ac9108a
SM
3638 * coding.h (decode_coding_string, encode_coding_string):
3639 Use SCHARS macro.
8890e5f5 3640
2baf5e76 3641 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 3642 (load_depth): Delete.
2baf5e76
KR
3643 (Qload_in_progress): New variable.
3644 (load_unwind): Don't reference load_depth or load_in_progress.
3645 (Fload): Likewise; specbind Qload_in_progress instead.
3646 (init_lread): Don't initialize load_depth.
3647 (syms_of_lread): Initialize and protect Qload_in_progress.
3648
1395c6f5
AR
36492009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3650
3651 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
3652
4e2f36cf
AR
36532009-07-23 Yavor Doganov <yavor@gnu.org>
3654
3655 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
3656
5dd9a6f7
AR
36572009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3658
3659 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
3660 Bugs 3792, 3720, 2402.
3661 (ns_lookup_indexed_color): Check for bad index.
3662 (ns_index_color): Init unused slot to 0.
3663 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3664 Bug 3714, possibly 3082.
5dd9a6f7 3665
c902b920
JR
36662009-07-22 Jason Rumney <jasonr@gnu.org>
3667
1ac9108a
SM
3668 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3669 Position IME window at cursor (Bug#2570).
c902b920
JR
3670 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3671 (globals_of_w32fns): Dynamically load functions required above.
3672
3673 * w32term.c (w32_draw_window_cursor): Send message to reposition
3674 any IME window.
3675
090101cf
CY
36762009-07-21 Chong Yidong <cyd@stupidchicken.com>
3677
3678 * fileio.c: Revert 2009-07-16 changes.
3679 (Vauto_save_include_big_deletions): New variable.
3680 (Fdo_auto_save): Disable auto-save only if
3681 auto-save-include-big-deletions is nil.
3682
e6583e3d
CY
36832009-07-21 Chong Yidong <cyd@stupidchicken.com>
3684
3685 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3686 the overflowed pixels into account (Bug#3879).
3687
ece435a5
KR
36882009-07-21 Ken Raeburn <raeburn@raeburn.org>
3689
3690 * lread.c (load_depth): New variable.
3691 (Fload, load_unwind, init_lread): Set it to the load recursion
3692 depth; set load_in_progress as a simple boolean based on the
3693 current load_depth. (Bug#3892)
3694
40b2d973
AR
36952009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3696
3697 * nsfont.m (ns_has_attribute): Remove.
3698 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3699
10be7e0d
JL
37002009-07-18 Juri Linkov <juri@jurta.org>
3701
3702 * process.c (Fset_process_query_on_exit_flag): Mention killing
3703 a buffer in docstring.
3704
fa055055
KH
37052009-07-17 Kenichi Handa <handa@m17n.org>
3706
3707 * casetab.c (shuffle): Fix the logic of setting up the cycle.
3708
042f7b69
YM
37092009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3710
3711 * nsfns.m (Fns_set_alpha): Remove function.
3712 (syms_of_nsfns): Don't defsubr it.
3713
3714 * nsterm.m (ns_get_color): Remove incompatible color formats.
3715 (ns_color_to_lisp): Generate #rrggbb color format string.
3716
4be941e3
RS
37172009-07-16 Richard Stallman <rms@gnu.org>
3718
3719 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3720 (Fset_buffer_auto_saved): Handle save_length = -2.
3721
4e6b227d
CY
37222009-07-16 Chong Yidong <cyd@stupidchicken.com>
3723
3724 * xterm.c (Qx_gtk_map_stock): New var.
3725
3726 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3727 of calling intern each time.
3728
a1856973
YM
37292009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3730
3731 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3732 does tiling.
3733
3734 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3735
497e54d8
KH
37362009-07-14 Kenichi Handa <handa@m17n.org>
3737
72d36834
KH
3738 * font.c (font_vconcat_entity_vectors): New function.
3739 (struct font_sort_data): New member font_driver_preference.
3740 (font_compare): Check font_driver_preference.
3741 (font_sort_entities): The format of the first argument changed.
3742 (font_delete_unmatched): Likewise.
3743 (font_list_entities): The return type changed.
3744 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
3745 (font_find_for_lface): Adjuste for the above changes.
3746 Don't suppress the checking of C even if the repertory supports it.
3747 (Flist_fonts): Adjust for the above changes.
72d36834 3748
1ac9108a
SM
3749 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3750 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
3751 Reject a font who has adstyle property that is different from a
3752 langname derived from registry property.
1ac9108a 3753 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 3754
b6046155
EZ
37552009-07-13 Eli Zaretskii <eliz@gnu.org>
3756
3757 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3758 local copy of dirfilename.
3759
fb6b6049
KH
37602009-07-13 Kenichi Handa <handa@m17n.org>
3761
e2402a5e
KH
3762 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3763 against max_char.
3764
fb6b6049
KH
3765 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3766 calling XSYMBOL (sym).
3767
65156807
EZ
37682009-07-11 Eli Zaretskii <eliz@gnu.org>
3769
1ac9108a
SM
3770 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3771 New function.
3772 (directory_files_internal) [WINDOWSNT]:
3773 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
3774 the filesystem of the directory is fast or slow.
3775
3776 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3777 file name.
3778 (is_slow_fs): New function.
3779 (stat): Use it to determine whether to issue more system calls to
3780 get accurate file attributes, when w32-get-true-file-attributes is
3781 `local'.
3782
e0ab5fcf
JD
37832009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3784
3785 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 3786 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
3787 parameter font-parameter as default to the font dialog.
3788
784ceded
KH
37892009-07-10 Kenichi Handa <handa@m17n.org>
3790
3791 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3792
fb8edc0b
EZ
37932009-07-09 Eli Zaretskii <eliz@gnu.org>
3794
1ac9108a 3795 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 3796
fb8edc0b
EZ
3797 * w32.c (stat): Treat UNC file names as residing on remote
3798 drives. (Bug#3542)
3799
635c75b1
KH
38002009-07-09 Kenichi Handa <handa@m17n.org>
3801
3802 * fontset.c (fontset_find_font): Fix previous change.
3803
c1d5ce94
MA
38042009-07-08 Michael Albinus <michael.albinus@gmx.de>
3805
3806 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3807 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3808 error flag.
3809
edb61b39
KH
38102009-07-08 Kenichi Handa <handa@m17n.org>
3811
374bf7e4
KH
3812 * fontset.c (fontset_find_font): Fix the logic of handling
3813 charset_matched.
3814 (font_for_char): Delete unused var.
3815 (generate_ascii_font_name): Delete it.
3816
edb61b39
KH
3817 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3818
3819 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3820 (encode_coding_sjis): Fix the code range check.
3821
0f3f018c
CY
38222009-07-07 Chong Yidong <cyd@stupidchicken.com>
3823
3824 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3825 (Fexpand_file_name): Copy string data properly (Bug#3772).
3826
fcaf6f3a
JD
38272009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3828
3829 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3830 first MapNotify.
3831
6809ca75
KH
38322009-07-07 Kenichi Handa <handa@m17n.org>
3833
3834 * character.h (unibyte_has_multibyte_table): Delete extern.
3835 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3836
3837 * charset.c (Fset_charset_priority): Update charset_unibyte.
3838 (syms_of_charset): Initialize charset_unibyte.
3839
3840 * character.c (unibyte_has_multibyte_table): Delete it.
3841 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3842 charset_unibyte.
3843 (multibyte_char_to_unibyte_safe): Likewise.
3844 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3845
1ac9108a 3846 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
3847 (x_produce_glyphs): Likewise.
3848
3849 * .gdbinit (xcharset): Fix the treating $arg0.
3850
ad9e2d54
EZ
38512009-07-04 Eli Zaretskii <eliz@gnu.org>
3852
3853 Emulation of `getloadavg' on MS-Windows.
3854 * w32.c: Include float.h
3855 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3856 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3857 (get_native_system_info, get_system_times): New functions.
3858 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3859 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3860 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3861 g_b_init_get_system_times, and num_of_processors.
3862
0a3472c7
JR
38632009-07-03 Jason Rumney <jasonr@gnu.org>
3864
3865 * w32term.c (w32_initialize): Use standard types.
3866
80904120
EZ
38672009-07-03 Eli Zaretskii <eliz@gnu.org>
3868
3869 * dired.c (Ffile_attributes): Decode user and group names by the
3870 locale's encoding. (Bug#3443)
3871
6978862d
DN
38722009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3873
f8d23104
DN
3874 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3875 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3876
3877 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3878
3879 * term.c (init_tty): Remove spurious #ifdef.
3880
6978862d
DN
3881 * m/mips.h: Mention this file is also used for netbsd.
3882 * m/pmax.h: Remove file.
3883
e044e4fc
JD
38842009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3885
3886 * xterm.h (struct x_display_info): Add invisible_cursor.
3887 (struct x_output): Add current_cursor.
3888
3889 * xterm.c (XTtoggle_invisible_pointer): New function.
3890 (x_define_frame_cursor): Don't define cursor if invisible or the
3891 same as before. Set current_cursor.
3892 (x_create_terminal): Set toggle_invisible_pointer_hook.
3893
3894 * xfns.c (make_invisible_cursor): New function.
3895 (x_set_mouse_color): Call make_invisible_cursor.
3896 Set current_cursor.
3897 (x_window): Set current_cursor.
3898
3899 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3900
3901 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3902 inserting a character.
3903 (read_avail_input): Call frame_make_pointer_visible.
3904
3905 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
3906 (frame_make_pointer_invisible, frame_make_pointer_visible):
3907 New functions.
e044e4fc
JD
3908 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3909
3910 * frame.h: Declare frame_make_pointer_invisible and
3911 frame_make_pointer_visible.
3912 (struct frame): Add pointer_invisible.
3913
574c8efa
JD
39142009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3915
7b507248
JD
3916 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3917 frame isn't visible.
3918 (xg_frame_resized): If width/height is -1, get size of window
3919 from X server.
3920
3921 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3922 for MapNotify.
3923
835bdaa7 3924 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 3925 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 3926 (flush_and_sync): Reintroduce.
574c8efa 3927
3f1c6666 39282009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 3929
31fd7c5c 3930 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
3931
3932 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3933 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3934
3935 * frame.h: Declare Qsticky.
3936
cad9ef74
JD
3937 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3938
3939 * nsfns.m (ns_frame_parm_handlers): Ditto.
3940
3941 * frame.c: Declare Qsticky.
3942 (frame_parms): Add sticky.
3943
3944 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3945
3946 * xterm.h: Declare x_set_sticky.
3947
3948 * xterm.c (x_set_sticky): New function.
3949
69b16610
JD
3950 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3951 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3952 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
3953
3954 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3955
3956 * frame.c: Qmaximized is new.
3957 (x_set_frame_parameters): Do not handle fullscreen specially.
3958 Only set width and height if explicitly set.
3959 (x_set_fullscreen): Handle Qmaximized.
3960 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3961 (syms_of_frame): Initialize Qmaximized.
3962
1ac9108a
SM
3963 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3964 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
3965
3966 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
3967 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3968 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
3969 set gravity to NorthWestGravity when USE_GTK.
3970 (set_wm_state): New function.
31fd7c5c 3971 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
3972 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3973 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 3974 or the case when no window manager is running. That means remove calls
3f1c6666
JD
3975 to x_real_positions and x_fullscreen_adjust.
3976
3977 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3978 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3979 flush_and_sync.
3980 (xg_height_changed): New function.
3981 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
3982 and gtk_window_set_policy. Set frame gravity after parsing the
3983 geometry string.
3f1c6666
JD
3984 (xg_update_frame_menubar, free_frame_menubar)
3985 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3986 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3987 Remove calls to xg_frame_set_char_size.
3988
fd503d99
KH
39892009-07-01 Kenichi Handa <handa@m17n.org>
3990
3991 * keyboard.c (decode_keyboard_code): New function.
3992 (tty_read_avail_input): Decode the input bytes if necessary.
3993
1ac9108a
SM
3994 * coding.c (setup_coding_system):
3995 Initialize coding->carryover_bytes to 0.
fd503d99
KH
3996 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3997 use Qno_conversion.
3998
24ed93fb
YM
39992009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4000
4001 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
4002
99061dfc
CY
40032009-06-30 Chong Yidong <cyd@stupidchicken.com>
4004
1ac9108a 4005 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 4006
ff90fbde
JR
40072009-06-30 Jason Rumney <jasonr@gnu.org>
4008
4009 * w32term.c (w32_initialize): Use GetModuleHandle for library that
4010 is already loaded.
4011 Set user model ID if supported (bug#1849).
4012
5f445726
JM
40132009-06-29 Jim Meyering <meyering@redhat.com>
4014
4015 Remove useless if-before-xfree test.
4016 * nsfont.m (nsfont_close): Remove useless test.
4017 * term.c (delete_tty): Likewise.
4018 * w32.c (system_process_attributes): Likewise.
4019 * w32font.c (w32font_close): Likewise.
4020 * xfaces.c (x_free_gc): Likewise.
4021 * xselect.c (buffer): Likewise.
4022
b9607587
AS
40232009-06-28 Andreas Schwab <schwab@linux-m68k.org>
4024
4025 * process.c (send_process): Keep decoded string in a local
4026 variable and protect it from GC. (Bug#3521)
4027
89ba96f4
EZ
40282009-06-28 Eli Zaretskii <eliz@gnu.org>
4029
4030 * term.c (create_tty_output) [MSDOS]: #ifdef away.
4031 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
4032
098a1589
CY
40332009-06-28 Chong Yidong <cyd@stupidchicken.com>
4034
485422be
CY
4035 * xdisp.c (start_display, handle_face_prop)
4036 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
4037 (redisplay_window, try_window_id, produce_image_glyph):
4038 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 4039
098a1589
CY
4040 * xterm.c (x_update_window_begin, x_new_focus_frame)
4041 (x_scroll_bar_handle_click, handle_one_xevent)
4042 (handle_one_xevent, XTread_socket, x_focus_on_frame)
4043 (x_make_frame_visible, x_make_frame_invisible)
4044 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
4045 code chunks that are now obsolete.
4046
78c38319
MA
40472009-06-28 Michael Albinus <michael.albinus@gmx.de>
4048
4049 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
4050 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
4051 for hours, when optimzation is enabled.
4052 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
4053 (xd_read_message): Make them static.
4054
4189ed40
CY
40552009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
4056
4057 * term.c (turn_on_face): Allow simultaneously bold and dim
4058 terminal faces (Bug#3530).
4059
cd9b5e16
CY
40602009-06-27 Chong Yidong <cyd@stupidchicken.com>
4061
4e23bedb
CY
4062 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
4063
cd9b5e16
CY
4064 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
4065 truncation glyphs (Bug#3686).
4066
07cc3c35
GM
40672009-06-27 Glenn Morris <rgm@gnu.org>
4068
4069 * m/pmax.h: Restore file, with only netbsd portions.
4070
31fd7c5c 40712009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 4072
cd9b5e16 4073 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 4074
42d4a64f
KH
40752009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
4076
4077 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
4078 the arg FORCE_SYMBOL.
4079
930fe55b 40802009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
4081
4082 * fontset.c (fontset_find_font): When a usable rfont_def is found
4083 in a fallback font-group, make it the first element of the group.
4084
57ebc3fd
CY
40852009-06-24 Chong Yidong <cyd@stupidchicken.com>
4086
4087 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
4088
f084f942
KH
40892009-06-24 Kenichi Handa <handa@m17n.org>
4090
4091 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
4092 set for C.
4093 (fontset_font): Record the availability of a font for C both in
4094 the realized fontsets of the current one and the default one.
4095
2f686c87
DN
40962009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
4097
4098 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
4099 conditional, it is always defined on AIX.
4100
666e158e
MB
41012009-06-23 Miles Bader <miles@gnu.org>
4102
4103 * window.c (Vrecenter_redisplay): New variable.
4104 (syms_of_window): Initialize it.
4105 (Qtty): New extern declaration.
4106 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
4107
c6da7cd2
JM
41082009-06-23 Jim Meyering <meyering@redhat.com>
4109
1ac9108a
SM
4110 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
4111 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 4112 pointer dereferences are guaranteed to be valid.
c6da7cd2 4113
678dca3d
KH
41142009-06-23 Kenichi Handa <handa@m17n.org>
4115
74d75424
KH
4116 * emacs.c (main): Call init_font ().
4117
4118 * font.h (Vfont_log): Extern it.
4119 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
4120
4121 * font.c (font_sort_entities, font_list_entities)
4122 (font_matching_entity, font_open_entity)
4123 (font_close_object): Change font_add_log to FONT_ADD_LOG.
4124 (Vfont_log): Delete static.
4125 (font_log_env_checked): Delete this variable.
4126 (font_add_log): Don't check font_log_env_checked.
4127 (font_deferred_log): Check Vfont_log.
4128 (init_font): New function.
4129
678dca3d
KH
4130 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
4131
4132 * w32font.c: Change font_add_log to FONT_ADD_LOG.
4133
4134 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
4135
4136 * xfont.c: Change font_add_log to FONT_ADD_LOG.
4137
4138 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
4139 (face_for_char): Don't call font_deferred_log here.
4140 (font_for_char): Likewise.
4141
8a668709
CY
41422009-06-22 Chong Yidong <cyd@stupidchicken.com>
4143
9a01ee33
CY
4144 * w32term.c (x_draw_glyph_string): Use the glyph string's width
4145 rather than its background_width for drawing the overline and
4146 underline (Bug#489).
4147
4148 * xterm.c (x_draw_glyph_string): Use the glyph string's width
4149 rather than its background_width for drawing the overline and
4150 underline (Bug#489).
ec7c9926
CY
4151 (xg_default_icon_file): New variable.
4152 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
4153 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 4154
8a668709
CY
4155 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
4156 (load_overlay_strings): Remove externs.
4157 (fast_find_position): Function deleted.
4158 (mouse_face_from_buffer_pos): New function, based on
4159 fast_find_position. Correctly handle before-strings,
4160 display-strings, and after-strings (Bug#1220).
4161 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
4162
4d4c02d8
CY
41632009-06-21 Chong Yidong <cyd@stupidchicken.com>
4164
1ac9108a 4165 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
4166 (move_it_in_display_line_to, move_it_in_display_line_to)
4167 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
4168
70243478
CY
41692009-06-21 Chong Yidong <cyd@stupidchicken.com>
4170
4171 * Branch for 23.1.
4172
13087e59
JR
41732009-06-21 Jason Rumney <jasonr@gnu.org>
4174
4175 * w32term.c (keyboard_codepage): New static variable.
4176 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
4177 (w32_read_socket) [WM_CHAR]: Use it to decode character
4178 input (bug#3237).
4179 (w32_initialize): Initialize it.
4180 (codepage_for_locale): New function.
4181
4735b74e
KR
41822009-06-20 Ken Raeburn <raeburn@raeburn.org>
4183
4184 * process.c (status_message): Pass Faset index argument as a lisp
4185 object, so as to work with USE_LISP_UNION_TYPE.
4186
0e727afa
YM
41872009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4188
4189 * coding.c (Ffind_coding_systems_region_internal):
4190 Cache checked characters.
4191
cf299835
KH
41922009-06-18 Kenichi Handa <handa@m17n.org>
4193
1ac9108a 4194 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 4195
90f20d94
AS
41962009-06-18 Andreas Schwab <aschwab@redhat.com>
4197
4198 * xdisp.c (redisplay_internal): Check that the frame is still
4199 live after redisplay of its windows.
4200 (redisplay_windows): Check that the window is still live.
4201
7f1faf1c
KH
42022009-06-17 Andreas Schwab <schwab@linux-m68k.org>
4203
4204 * coding.c (detect_coding_utf_16): Fix previous change.
4205
cc13543e
KH
42062009-06-16 Kenichi Handa <handa@m17n.org>
4207
4208 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
4209 UTF-16 by checking the dispersion of Eth and Oth bytes.
4210
977b85f4
AS
42112009-06-15 Andreas Schwab <schwab@linux-m68k.org>
4212
4213 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
4214
66bd43d1
KH
42152009-06-15 Kenichi Handa <handa@m17n.org>
4216
4217 * process.c (status_message): Fix previous change. Be sure to
4218 decode a localized string.
4219
cb5ca9c5
YM
42202009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4221
4222 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
4223 add comment explaining why.
4224
ec7709ba 42252009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 4226
ec7709ba 4227 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 4228
4b7f335c
AR
42292009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
4230
4231 * nsfont.m (ns_attribute_value): Remove.
4232 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
4233 (ns_has_attribute): Shrink the normal range.
4234 (ns_findfonts): Don't worry about requested spec in determining
4235 need for synthItal.
e41820ee 4236 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 4237
73b26103
SZ
42382009-06-14 Seiji Zenitani <zenitani@mac.com>
4239
4240 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
4241
5753e4da
KH
42422009-06-11 Kenichi Handa <handa@m17n.org>
4243
4244 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4245 overhang for the static composition case.
4246
3561b671
KH
42472009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4248
5753e4da
KH
4249 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4250 overhang for the automatic composition case.
4251
3561b671
KH
4252 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
4253 composition case.
4254
852bbd41
CY
42552009-06-10 Chong Yidong <cyd@stupidchicken.com>
4256
4257 * xdisp.c (get_next_display_element): When handling wrap-prefix
4258 and line-prefix, treat \n as a control character (bug#3502).
4259
9903d1e6
KH
42602009-06-10 Kenichi Handa <handa@m17n.org>
4261
4262 * font.c (font_parse_family_registry): Fix for one-char foundry.
4263 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
4264
0bcbaaaa
CY
42652009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
4266
4267 * process.c (status_message): Fix handling of multibyte signal
4268 string (Bug#3499).
4269
40aa3f13
JM
42702009-06-09 Jim Meyering <meyering@redhat.com>
4271
1f80c7e2
CY
4272 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
4273 color name is missing.
40aa3f13 4274
72d51285
KH
42752009-06-09 Kenichi Handa <handa@m17n.org>
4276
4277 * charset.c (Fmap_charset_chars): In docstring, state clearly that
4278 FROM-CODE and TO-CODE are codepoints of CHARSET.
4279
c1d04d84
AR
42802009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4281
4282 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
4283
42842009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4285
4286 Changes to support :script/:lang/:otf in NS font driver.
4287 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
4288 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
4289 indicate not part of font driver interface, and change callers.
4290 (ns_get_family): Remove pointless null check.
4291 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
4292 ns_spec_to_descriptor, ns_descriptor_to_entity.
4293 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
4294 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
4295 (ns_spec_to_descriptor, ns_descriptor_to_entity)
4296 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
4297 (ns_get_req_script, ns_accumulate_script_ranges)
4298 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
4299 New functions.
4300 (nsfont_list, nsfont_match): Use ns_findfonts.
4301 (nsfont_open): Use font descriptor instead of traits.
4302 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
4303 (dump_glyphstring): Rename to ns_dump_glyphstring.
4304
c7eb9816
AR
4305 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
4306
c1d04d84
AR
4307 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
4308
4309 * fontset.c (fontset_from_font): Remove NS-specific code.
4310
ec7709ba 43112009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
4312
4313 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
4314 nonactive windows.
4315
31fd7c5c 43162009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 4317
1ac9108a 4318 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 4319
68852c13 43202009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
4321
4322 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
4323
6756cd1d
CY
43242009-06-07 Chong Yidong <cyd@stupidchicken.com>
4325
4326 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
4327 account for the overflowing of newlines into the last glyph on the
4328 display line (Bug#3482).
4329
28bf482a
DR
43302009-06-05 David Reitter <david.reitter@gmail.com>
4331
ec7709ba
JB
4332 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
4333 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
4334 Fns_selection_exists_p, Fns_selection_owner_p.
4335
fdb55376
JR
43362009-06-03 Jason Rumney <jasonr@gnu.org>
4337
4338 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
4339 available. (Bug#3379)
4340
05129fbe
KH
43412009-05-29 Kenichi Handa <handa@m17n.org>
4342
1ac9108a
SM
4343 * coding.c (get_translation_table):
4344 Check Venable_character_translation.
05129fbe 4345
ec7709ba 43462009-05-26 David Reitter <david.reitter@gmail.com>
15891144 4347
ec7709ba
JB
4348 * nsterm.m (ns_raise_frame): Only raise frame if visible.
4349 (x_make_frame_visible): Move frame to front rather than calling
15891144 4350 ns_raise_frame().
ec7709ba 4351 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 4352 isn't key window.
ec7709ba 4353 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
4354 drawRect may be called by NSView even if the frame is hidden.
4355
ec7709ba
JB
4356 * nsfns.m (Fx_create_frame): Follow other ports in
4357 determining visibility; default to t. Ensure async_visible is set.
15891144 4358
21f73755
EZ
43592009-05-23 Eli Zaretskii <eliz@gnu.org>
4360
4361 * dired.c (Ffile_attributes): Doc fix.
4362
34001e41
CY
43632009-05-22 Chong Yidong <cyd@stupidchicken.com>
4364
4365 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
4366
46306a17
SM
43672009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
4368
4369 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
4370 and xfont_scratch_props.
4371 (syms_of_xfont): Do it here instead.
4372 (xfont_find_ccl_program): Delete, unused.
4373 (xfont_open): Delete unused var `i'.
4374
ef6e0694
KH
43752009-05-21 Kenichi Handa <handa@m17n.org>
4376
4377 * fontset.c (Qlatin): Don't make it static.
4378
46306a17
SM
4379 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
4380 New functions.
ef6e0694
KH
4381 (xfont_scripts_cache, xfont_scratch_props): New variables.
4382 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
4383 (xfont_list_pattern): Argument changed. Callers changed.
4384 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
4385 (xfont_list): Don't reject a font spec with :script property.
4386 (xfont_has_char): Fix setting of encoding.
4387 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
4388 xfont_scratch_props.
4389
43902009-05-19 Kenichi Handa <handa@m17n.org>
4391
46306a17 4392 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
4393 Callers changed.
4394
43952009-05-18 Kenichi Handa <handa@m17n.org>
4396
4397 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
4398
ac71ced7
SM
43992009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
4400
4401 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
4402 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
4403
1c6d1051
YM
44042009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4405
4406 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
4407 (x_delete_terminal): Dissociate resource database from display and
4408 then call XrmDestroyDatabase before closing display.
4409
9b9b779c
AR
44102009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4411
4412 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
4413 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
4414 whether selected frame is viable before raising it (based on patch
4415 by David Reitter), and improve commentary.
4416 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 4417
cccd42d5
KH
44182009-05-15 Kenichi Handa <handa@m17n.org>
4419
4420 * font.c (Ffont_spec): Check arguments.
4421
337fbd17
CY
44222009-05-14 Chong Yidong <cyd@stupidchicken.com>
4423
4424 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
4425 weight when testing attributes (Bug#3282).
4426
47a6002f
JD
44272009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4428
4429 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
4430 what we expect to get in the next ConfigureNotify event.
4431
9cb363db
YM
4432 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
4433 before Xft one (Bug#1696).
4434
b9126609
CY
44352009-05-07 David Reitter <david.reitter@gmail.com>
4436
4437 * nsfns.m (Fx_display_planes): Compute bitplanes using
4438 NSBitsPerPixelFromDepth (Bug#3207).
4439
27a69fd9
CY
44402009-05-10 Chong Yidong <cyd@stupidchicken.com>
4441
4442 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
4443
00f37552
TTN
44442009-05-10 Ulrich Mueller <ulm@gentoo.org>
4445
4446 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
4447
2d82a920
DR
44482009-05-07 David Reitter <david.reitter@gmail.com>
4449
ec7709ba
JB
4450 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
4451 Respect mouse face background.
2d82a920 4452
46b0d52d
DR
44532009-05-07 David Reitter <david.reitter@gmail.com>
4454
ec7709ba
JB
4455 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
4456 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
4457 in ns_update_begin and ns_update_end.
4458
ce1b23bb
SM
44592009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4460
5996e1b7
SM
4461 * nsfns.m (ns_get_screen): Rewrite.
4462 Don't presume selected-frame is of type `ns'.
4463
ba98e3a0
SM
4464 * font.c (font_update_drivers): Sanity fallback to avoid disabling
4465 all drivers.
4466
ce1b23bb
SM
4467 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
4468
bcda200f
YM
44692009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4470
4471 * keyboard.h (add_user_signal): Fix typo in extern.
4472
4473 * lisp.h (add_user_signal): Remove extern.
4474
4475 * unexelf.c (unexec): Consider a section to precede the .bss section
4476 if its addresses overlap that of .bss.
4477 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
4478 instead of dumping process.
4479
864660a2
SM
44802009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4481
4482 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
4483
50da4e56
SM
44842009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4485
4486 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
4487
51520a1a
DN
44882009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4489
4490 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
4491 any statements.
4492
409ea3a1
AS
44932009-05-02 Andreas Schwab <schwab@linux-m68k.org>
4494
59c4c60f
AS
4495 * process.c (read_process_output): Make sure the current buffer is
4496 always restored.
4497
409ea3a1
AS
4498 * coding.c (record_conversion_result): Don't modify
4499 Vlast_code_conversion_error for successful result.
4500 (alloc_destination): Don't clobber conversion result. (Bug#1650)
4501
56f00ed2
KH
45022009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4503
4504 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 4505 (load_charset_map): Remove unnecessary code.
56f00ed2 4506
4491c9d2
DR
45072009-04-30 David Reitter <david.reitter@gmail.com>
4508
35f5b128 4509 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
4510 through f24.
4511
6970f632
CY
45122009-04-30 Chong Yidong <cyd@stupidchicken.com>
4513
4514 * xfaces.c (face_at_buffer_position): New arg base_face_id.
4515
4516 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
4517 face_at_buffer_position.
4518 (face_before_or_after_it_pos, get_next_display_element)
4519 (note_mouse_highlight): Update face_at_buffer_position call.
4520
4521 * term.c (term_mouse_highlight):
4522 * msdos.c (IT_note_mouse_highlight):
4523 * fontset.c (Finternal_char_font):
35f5b128 4524 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
4525
4526 * dispextern.h (face_at_buffer_position): Update prototype.
4527
0c616f63
KH
45282009-04-30 Kenichi Handa <handa@m17n.org>
4529
35f5b128 4530 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 4531
ad3aaf33
AS
45322009-04-29 Andreas Schwab <schwab@linux-m68k.org>
4533
4534 * callproc.c (Fcall_process): Fix GC protection. Make sure
4535 current buffer is always restored.
4536
c3c963a0
YM
45372009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4538
4539 * atimer.c (init_atimer): Also clear stopped_atimers.
4540
4541 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
4542
7e3386cb
YM
4543 * process.c (create_process): Clean up merger residues of
4544 2008-07-17 change.
4545
91f68422
CY
45462009-04-29 Ulrich Mueller <ulm@gentoo.org>
4547
4548 * lread.c (Vread_circle): New variable.
4549 (read1): Disable recursive read if Vread_circle is nil.
4550
24b34550
KH
45512009-04-29 Kenichi Handa <handa@m17n.org>
4552
4553 * fontset.h (set_default_ascii_font): Delete extern.
4554
4555 * fontset.c (set_default_ascii_font): Delete this unused function.
4556
4557 * frame.c (x_set_font): When ARG is a font-object, check if the
4558 font-object matches with the ASCII font-spec of the frame's
9c358bda 4559 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 4560
77bf07e1
AS
45612009-04-28 Andreas Schwab <schwab@linux-m68k.org>
4562
4563 * fns.c (Flocale_info): Protect vector from GC during decoding.
4564
4565 * process.c (Fstart_process): Protect argv strings from GC during
4566 encoding.
4567
2c55aacf
AS
45682009-04-27 Andreas Schwab <schwab@linux-m68k.org>
4569
4570 * sysdep.c: Include <ctype.h>.
4571
b892d3c9
DR
45722009-04-27 David Reitter <david.reitter@gmail.com>
4573
35f5b128 4574 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
4575 Remove commented-out code.
4576
9d0644c4
JB
45772009-04-26 Johan Bockgård <bojohan@gnu.org>
4578
4579 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4580
b7053016
JR
45812009-04-25 Jason Rumney <jasonr@gnu.org>
4582
4583 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
4584
4e8231f3
YM
45852009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4586
4587 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
4588 Swap bytes in short integer if fringe bitmap width > 8.
4589
493dcf2c
KH
45902009-04-23 Kenichi Handa <handa@m17n.org>
4591
4592 * xfaces.c (Fx_list_fonts): If a font size is specified in
4593 PATTERN, set it in returned scalable fonts.
4594
401e9e57
CY
45952009-04-22 Chong Yidong <cyd@stupidchicken.com>
4596
708e05dc
CY
4597 * keyboard.c (Fset_input_meta_mode): Doc fix.
4598
4599 * dispnew.c (Fsend_string_to_terminal): Doc fix.
4600
1ac9108a 4601 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
4602
4603 * coding.c (Fterminal_coding_system): Doc fix.
4604
4605 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
4606 (Fx_display_pixel_height, Fx_display_planes)
4607 (Fx_display_color_cells, Fx_server_max_request_size)
4608 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4609 (Fx_display_mm_height, Fx_display_mm_width)
4610 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
4611 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
4612 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
4613 (check_x_display_info): Handle terminal objects instead of
4614 terminal ids.
4615
401e9e57
CY
4616 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
4617 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
4618 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
4619 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 4620
df80c7f0
KH
46212009-04-21 Kenichi Handa <handa@m17n.org>
4622
5a8f12af 4623 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 4624 (font_score): Check AVGWIDTH too.
908567ef 4625
df80c7f0
KH
4626 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
4627 worst case.
1ac9108a
SM
4628 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
4629 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 4630
705af33f
JR
46312009-04-19 Jason Rumney <jasonr@gnu.org>
4632
4633 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 4634 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
4635
4636 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
4637 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
4638 get_phys_cursor_geometry.
4639
b71ac3dd 4640 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
4641 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
4642 using get_phys_cursor_geometry.
4643
4644 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
4645 correctly calculated.
4646
dc2933eb
JD
46472009-04-19 Jan Djärv <jan.h.d@swipnet.se>
4648
1ac9108a
SM
4649 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
4650 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
4651 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
4652 is deprecated.
4653
973e7849
AS
46542009-04-18 Andreas Schwab <schwab@linux-m68k.org>
4655
4656 * font.c (font_put_frame_data): Use xfree instead of free.
4657
314d66f4
JB
46582009-04-17 Juanma Barranquero <lekktu@gmail.com>
4659
4660 * w32font.c (Qja, Qko): Remove declarations.
4661 (syms_of_w32font): Don't DEFSYM them.
4662
cf702558
CY
46632009-04-17 Chong Yidong <cyd@stupidchicken.com>
4664
4665 * font.c (Qja, Qko): Move definitions here from ftfont.c.
4666
4667 * font.h (Qja, Qko): Extern them.
4668
4669 * ftfont.c (Qja, Qko): Remove declarations.
4670
4671 * xfont.c (Qja, Qko): Remove declarations.
4672
b50504f5
KH
46732009-04-17 Kenichi Handa <handa@m17n.org>
4674
bde25748
KH
4675 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4676 string from a vector to handle Latin-1 characters correctly.
4677
b50504f5
KH
4678 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4679 entity even if the cache hits.
4680
f4646fff
AS
46812009-04-16 Andreas Schwab <schwab@linux-m68k.org>
4682
4683 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 4684 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 4685
e7deaab0
AS
4686 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4687 * lisp.h: Adjust prototypes.
4688
0a0e7d49
CY
46892009-04-16 Chong Yidong <cyd@stupidchicken.com>
4690
4691 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4692 change (Bug#3003).
4693
3c908a57
KH
46942009-04-16 Kenichi Handa <handa@m17n.org>
4695
1ac9108a 4696 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
4697
4698 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4699 adstyle.
4700
4701 * ftfont.c (Qja, Qko): Don't make them static.
4702 (enum ftfont_cache_for): New enum.
4703 (fc_charset_table): Undo the previous change.
4704 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
4705 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4706 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
4707 non-scarable font, try to get AVERAGE_WIDTH.
4708 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4709 Change ft_face_cache from a list of a hash-table. Don't check
4710 `ja' and `ko' adstyle here.
4711 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4712 FTFONT_CACHE_FOR_CHARET.
4713 (ftfont_get_charset): Undo the previous change.
1ac9108a 4714 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
4715 (ftfont_close): Likewise.
4716 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4717
4718 * font.c (font_sort_entites): Change the meaning of the arg
4719 BEST-ONLY. Don't optimize for VEC of lenght 1.
4720 (font_select_entity): Just return the value of font_sort_entites.
4721
4722 * xfaces.c (merge_face_vectors): Reflect font properties in
4723 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4724 font_clear_prop if a face attribute doesn't change.
4725
3c908a57
KH
4726 * charset.h (charset_ksc5601): Extern it.
4727
4728 * charset.c (charset_ksc5601): New variable.
4729 (Fdefine_charset_internal): Set charset_ksc5601.
4730 (init_charset_once): Initialize charset_ksc5601 to -1.
4731
d65859c3
DN
47322009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4733
4734 * fileio.c (history_delete_duplicates): Remove unused declaration.
4735
4736 * callint.c (history_delete_duplicates): New declaration.
4737 (Fcall_interactively): Remove command history duplicates when
4738 history_delete_duplicates is true.
4739
3ba010e5
EZ
47402009-04-14 Eli Zaretskii <eliz@gnu.org>
4741
4742 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4743
06f19b91
KH
47442009-04-14 Kenichi Handa <handa@m17n.org>
4745
4746 * font.c (Ffont_info): Fix docstring. Fix the second element of
4747 the returned value (bug#2949).
4748
2cce8bfc
CY
47492009-04-14 Chong Yidong <cyd@stupidchicken.com>
4750
4751 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4752
d156542d
KH
47532009-04-14 Kenichi Handa <handa@m17n.org>
4754
4755 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4756 encoding charset is ascii_compatible.
4757
4758 * charset.c (Fdefine_charset_internal): Make charset
4759 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4760 code_offset is 0, and covers all ASCII characters.
4761
86fa089e
SM
47622009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4763
4764 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4765 (ns_string_to_pasteboard_internal):
4766 * nsmenu.m (process_dialog):
4767 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4768 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4769 * lisp.h (Fx_load_color_file): Declare.
4770
a8a3728b
KH
47712009-04-13 Kenichi Handa <handa@m17n.org>
4772
1ac9108a 4773 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
4774 (font_select_entity): Suppress the code to optimize for the same
4775 kind of fonts.
4776 (font_load_for_lface): Get a font that supports at least ASCII
4777 characters.
4778
4779 * ftfont.c (Qja, Qko): New variables.
4780 (fc_charset_table): Delete uniquifier data for iso8859-1.
4781 (ftfont_get_latin1_charset): New function.
4782 (get_adstyle_property): New function.
4783 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4784 bitmap fonts.
4785 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4786 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4787 `ko' or `ja'.
4788 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 4789 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
4790 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4791 property.
4792 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4793 (syms_of_ftfont): DEFSYM Qja and Qko.
4794
483670b5
KH
47952009-04-09 Kenichi Handa <handa@m17n.org>
4796
12b55765
KH
4797 * charset.c (map_charset_chars): For a charset of `superset'
4798 method, fix calculation of code range.
4799
483670b5
KH
4800 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4801 from the list of extra properties.
4802 (font_clear_prop): Be sure to delete `:name' font property.
4803
57d3b93b
KH
48042009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4805
b4b2c2ca
YM
4806 * dispnew.c (redraw_overlapping_rows): Fix detection of
4807 overlapping for topmost and bottommost rows.
4808
1ac9108a 4809 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 4810
472c3609
JR
48112009-04-06 Jason Rumney <jasonr@gnu.org>
4812
4813 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4814
ab193662
KH
48152009-04-06 Kenichi Handa <handa@m17n.org>
4816
4817 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4818
4819 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4820
0c26f026
KH
48212009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4822
4823 * ftfont.c (ftfont_open): Fix checking of the return value of
4824 FT_Load_Char. Fix setting font->underline_thickness.
4825
e173bbce
CY
48262009-04-04 Chong Yidong <cyd@stupidchicken.com>
4827
4828 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4829 (Fterminal_parameters, Fterminal_parameter)
4830 (Fset_terminal_parameter): In doc string, refer to terminal
4831 objects rather than terminal ids.
4832
693a2698
EZ
48332009-04-04 Eli Zaretskii <eliz@gnu.org>
4834
4835 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4836 ret_lim_data. (Bug#2867)
4837
d5221487
CY
48382009-04-03 Chong Yidong <cyd@stupidchicken.com>
4839
4840 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4841 so they don't get wider than the window, matching 2006-01-23
4842 change to the partner function in xdisp.c (Bug#2800).
4843
223509a3
KH
48442009-04-03 Kenichi Handa <handa@m17n.org>
4845
4846 * print.c (print_object): Make each lowest sub_char_table start a
4847 new line (Bug#2866).
4848
74fcd0b1
KH
48492009-04-02 Kenichi Handa <handa@m17n.org>
4850
4851 * fontset.c (fontset_font): Record no-font when a fontset
4852 explicitly tells not to try another font-specs.
4853
c542407d
SM
48542009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4855
4856 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4857
e3869731
KH
48582009-03-30 Kenichi Handa <handa@m17n.org>
4859
d8d2f142
KH
4860 * fontset.c (fontset_from_font): Specify only registry in a
4861 font-spec for all characters supported by that registry.
4862
e3869731
KH
4863 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4864 even if HAVE_M17N_FLT is not defined.
4865
5da5f805
CY
48662009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4867
4868 * ftfont.c: Conditionalize prototyping and use of
4869 ftfont_variation_glyphs.
4870
ab226c50
SM
48712009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4872
9628fed7
SM
4873 * frame.c (delete_frame): Work around compiler bug.
4874
4875 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4876 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4877 Some more EMACS_INT.
4878 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4879
4880 * xdisp.c (dump_glyph): Fix typo.
4881
ae19ba7c
SM
4882 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4883 (adjust_markers_gap_motion, adjust_markers_for_delete)
4884 (adjust_markers_for_insert, adjust_point)
4885 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4886 (make_gap, copy_text, count_size_as_multibyte, insert)
4887 (insert_and_inherit, insert_before_markers)
4888 (insert_before_markers_and_inherit, insert_1)
4889 (count_combining_before, count_combining_after, insert_1_both)
4890 (insert_from_string, insert_from_string_before_markers)
4891 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4892 (insert_from_buffer_1, adjust_after_replace)
4893 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4894 (replace_range_2, del_range, del_range_1, del_range_byte)
4895 (del_range_both, del_range_2, modify_region)
4896 (prepare_to_modify_buffer, signal_before_change)
4897 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4898 for buffer positions and sizes.
4899 * lisp.h: Adjust prototypes accordingly.
4900
4901 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4902 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4903 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4904
ab226c50
SM
4905 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4906
46dfb8fb
JD
49072009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4908
4909 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4910 lines and columns so we keep the same pixel height and width.
4911
4912 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4913 the property _NET_WM_STATE has changed.
46dfb8fb
JD
4914 (x_handle_net_wm_state): New function to update frame parameter
4915 fullscreen.
4916 (x_term_init): Initialize atoms for _NET_WM_STATE.
4917
4918 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4919
d347e494
SM
49202009-03-27 Kevin Ryde <user42@zip.com.au>
4921
4922 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4923 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4924 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4925 (Fgpm_mouse_stop): Pass that new parameter.
4926 * termhooks.h (close_gpm): Adjust prototype.
4927
84db11d6
SM
49282009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4929
c95a5008
SM
4930 * lisp.h (Fx_focus_frame): Declare.
4931
84db11d6
SM
4932 * callint.c (Fcall_interactively): For '^' just delegate the work to
4933 handle-shift-selection.
4934 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4935
0a1958d6
CY
49362009-03-24 Chong Yidong <cyd@stupidchicken.com>
4937
0bfdff23
CY
4938 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4939
0a1958d6
CY
4940 * data.c (Qinteractive_form): New variable.
4941 (Finteractive_form): Use it.
4942
4943 * eval.c (Fcommandp): Use Qinteractive_form.
4944
58aec0d6
JR
49452009-03-24 Jason Rumney <jasonr@gnu.org>
4946
4947 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4948 Calculate total size precisely. Decode environment variables
4949 before substituting. (Bug#38)
4950
553dd618
KH
49512009-03-24 Kenichi Handa <handa@m17n.org>
4952
4953 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 4954 encoding (Bug#2722).
553dd618 4955
c39ea606
JD
49562009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4957
4958 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4959 that gdpy is set.
4960
bc9b2b5e
AM
49612009-03-22 Alan Mackenzie <acm@muc.de>
4962
4963 * callint.c (Finteractive): Clarify the doc string - even
4964 promptless elements need \n separators.
4965
9f995a76
JR
49662009-03-22 Jason Rumney <jasonr@gnu.org>
4967
4968 * w32term.c (syms_of_w32term): Doc fix for
4969 x-use-underline-position-properties.
4970
22749e9a
EZ
49712009-03-21 Eli Zaretskii <eliz@gnu.org>
4972
4973 * w32.c (getpwuid): Change argument type to unsigned.
4974 (struct w32_id): Change type of `rid' member to unsigned.
4975 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4976 argument ID to unsigned. All callers changed.
4977 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4978
e00553bf
EZ
49792009-03-20 Eli Zaretskii <eliz@gnu.org>
4980
4981 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4982 negative, produce a float value.
4983
4984 * dired.c (make_uid, make_gid): New functions.
4985 (Ffile_attributes): Use them to avoid negative UID and GID.
4986
f761d6b6
JB
49872009-03-20 Juanma Barranquero <lekktu@gmail.com>
4988
4989 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4990 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4991 Fix typos in docstrings.
4992
d507f8d7
KH
49932009-03-19 Kenichi Handa <handa@m17n.org>
4994
4995 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
4996 changed, use font_load_for_lface to get a new font object.
4997 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
4998
4999 * frame.c (x_set_font): Handle the case that ARG is a cons.
5000
c68845e0
GM
50012009-03-19 Glenn Morris <rgm@gnu.org>
5002
5003 * fileio.c (Fsubstitute_in_file_name): Doc fix.
5004
bfa49dd1
CY
50052009-03-19 Chong Yidong <cyd@stupidchicken.com>
5006
5007 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
5008
8458d4c1
KH
50092009-03-19 Kenichi Handa <handa@m17n.org>
5010
5011 * charset.c (load_charset_map_from_file): When a mapfile can't be
5012 loaded, signal an error.
5013
78e7d1fe
EZ
50142009-03-18 Eli Zaretskii <eliz@gnu.org>
5015
5016 * dired.c (Ffile_attributes): Make sure UID and GID are always
5017 positive, even if the value is too large for a positive EMACS_INT.
5018 Doc fix.
5019
5020 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
5021
5da9fdfa
YM
50222009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5023
5024 * xmenu.c (xdialog_show): Move Fredisplay call ...
5025 (Fx_popup_dialog): ... here.
5026
7519c40d
SM
50272009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
5028
5029 * dired.c (file_name_completion): Disable the first optimization just
5030 installed, since it is not implemented correctly.
5031
2cd298e2
SM
50322009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5033
5034 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 5035 only if the entry can affect bestmatch.
2cd298e2
SM
5036 Stop the search early, as Ftry_completion already does.
5037
48d37adf
CY
50382009-03-17 Chong Yidong <cyd@stupidchicken.com>
5039
e10c9c93 5040 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 5041
9286b16a
CY
50422009-03-15 Chong Yidong <cyd@stupidchicken.com>
5043
5044 * keyboard.c (parse_menu_item): Don't display remappings as menu
5045 equivalent bindings (Bug#788).
5046
f7b146dc
JR
50472009-03-15 Jason Rumney <jasonr@gnu.org>
5048
5049 * w32term.h (WM_EMACS_PAINT): New message.
5050 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
5051 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
5052 before passing to lisp thread. (Bug#950)
5053
f761d6b6 50542009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 5055
d93f9575
CY
5056 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
5057 variable as it was never reset.
5058 (ns_term_init): Remove initialization of Lisp-settable defaults
5059 and ns_expand_space.
5060 (-setPanelFromDefaultValues): Remove ns_expand_space.
5061 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
5062 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
5063 i.e. no additional spacing, similar to Carbon port.
5064
d93f9575
CY
5065 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
5066 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 5067
305018ec
JD
50682009-03-14 Jan Djärv <jan.h.d@swipnet.se>
5069
5070 * sound.c (alsa_configure): Remove call to deprecated
5071 snd_pcm_sw_params_set_xfer_align.
5072
f761d6b6 50732009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
5074
5075 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
5076 after clicking in a detached tool bar.
5077 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
5078
46e722a9
SM
50792009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
5080
348db3dd
SM
5081 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
5082 int/Lisp_Object mixup).
46e722a9 5083
a3d16f39
KH
50842009-03-13 Kenichi Handa <handa@m17n.org>
5085
5086 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 5087 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
5088 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
5089 (set_fontset_font): Change ARG to a vector. Handle range_list in
5090 ARG correctly.
5091 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 5092 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
5093 the above change.
5094 (fontset_from_font): Fix previous change.
fe24f56a 5095 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
5096 entry. If FONTSET is the default fontset, don't set the extra
5097 slot of the returning char-table.
5098
b066e6b6
JB
50992009-03-12 Juanma Barranquero <lekktu@gmail.com>
5100
5101 * nsfns.m (Fx_close_connection): Doc fix.
5102 (Fns_do_applescript): Reflow docstring.
5103 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
5104 (Fx_display_pixel_width, Fx_display_pixel_height)
5105 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
5106 Fix typos in docstrings.
5107 (Fns_set_alpha): Fix typos in error messages.
5108
d472514e 51092009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 5110
d472514e 5111 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
5112 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
5113 were used for such events.
5114
d472514e
JB
5115 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
5116 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 5117
d472514e 5118 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
5119 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
5120
fb930676
KH
51212009-03-11 Kenichi Handa <handa@m17n.org>
5122
ff85581a
KH
5123 * font.h (font_open_by_spec): Extern it.
5124
c50b7e98
KH
5125 * font.c (font_open_by_spec): New function.
5126 (font_open_by_name): Use font_open_by_spec.
5127
fb930676
KH
5128 * frame.c (x_set_font): When ARG is a font-object, don't alter the
5129 fontset of the frame.
5130
5131 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
5132 modify the default font of frames that use this fontset.
5133 (num_auto_fontsets): New variable.
5134 (fontset_from_font): Use num_auto_fontsets to decide a fontset
5135 name. Be sure to set FONTSET_ASCII to the correct font name.
5136 (update_auto_fontset_alist): New function.
5137
df4e8455
JB
51382009-03-11 Juanma Barranquero <lekktu@gmail.com>
5139
5140 * makefile.w32-in: Update dependencies.
5141
0a375797
AR
51422009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5143
5144 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
5145
61313fa3
SM
51462009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5147
5148 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
5149
b55103fb
CY
51502009-03-10 Chong Yidong <cyd@stupidchicken.com>
5151
5152 * lread.c (Feval_buffer): Doc fix.
5153
dde2559c
KH
51542009-03-09 Kenichi Handa <handa@m17n.org>
5155
5156 * charset.c (Qfile_name_handler_alist): Extern it.
5157 (load_charset_map_from_file): Temporarily bind
5158 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
5159
df4e8455 51602009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 5161
47f588bb
GM
5162 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
5163 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 5164
4ddf94bd
AR
51652009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5166
4c9bdfc2
AR
5167 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
5168 (x_set_window_size): Change back to calculated method of setting
5169 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
5170 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
5171 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
5172
fe41ae9e
AR
5173 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
5174
4c9bdfc2
AR
5175 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
5176 accelerator in parens under GNUstep.
5177
825d0875
KH
51782009-03-06 Kenichi Handa <handa@m17n.org>
5179
5180 These changes are to detect incorrect composition sequence without
f3b3be74 5181 looking ahead the source. (Bug#2370)
825d0875
KH
5182
5183 * coding.h: Include "composite.h".
5184 (enum compisition_state): New enum.
5185 (struct compisition_status): New struct.
5186 (struct iso_2022_spec): New member cmp_status.
5187 (struct emacs_mule_spec): New struct.
5188 (struct coding_system): New members ctext_extended_segment_len and
5189 embedded_utf_8. Change the union member
5190 spec.emacs_mule_full_support to spec.emacs_mule.
5191
5192 * coding.c (CODING_ISO_CMP_STATUS): New macro.
5193 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 5194 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
5195 (ADD_COMPOSITION_DATA): New arg nbytes.
5196 (emacs_mule_char): New arg cmp_status.
5197 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
5198 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
5199 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
5200 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
5201 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
5202 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
5203 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
5204 (EMACS_MULE_COMPOSITION_END): New macro.
5205 (emacs_mule_finish_composition): New function.
5206 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
5207 (decode_coding_emacs_mule): Avoid long looking ahead while
5208 handling composition.
5209 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
5210 (ENCODE_COMPOSITION_RULE): New macro.
5211 (finish_composition): New function.
5212 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
5213 (DECODE_COMPOSITION_START): New implementation.
5214 (DECODE_COMPOSITION_END): Likewise.
5215 (STORE_COMPOSITION_RULE): New macro.
5216 (decode_coding_iso_2022): Avoid long looking ahead while handling
5217 composition, CTEXT extended segment, and embedded UTF-8.
5218 (setup_coding_system): For a coding of type iso-2022, reset
5219 CODING_ISO_EXTSEGMENT_LEN (coding) and
5220 CODING_ISO_EMBEDDED_UTF_8 (coding).
5221 (get_translation): Delete arguments last_block, from_nchars,
5222 to_nchars. Callers changed.
5223 (produce_chars): Don't modify charbuf. Adjusted for the change of
5224 get_translation.
98a326f7 5225 (produce_composition): Adjust for the new annotation sequence.
825d0875 5226 (handle_composition_annotation): Likewise.
98a326f7 5227 (consume_chars): Adjust for the change of get_translation.
825d0875 5228
ccbc4452
AR
52292009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
5230
4ddf94bd 5231 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 5232
988a7ddb
KH
52332009-03-05 Kenichi Handa <handa@m17n.org>
5234
5235 * font.c (font_select_entity): New function.
5236 (font_find_for_lface): Use font_select_entity to select a font.
5237
5238 * fontset.c (fontset_find_font): If a font found without
a8a3728b 5239 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
5240 font with C restriction.
5241
98a326f7 52422009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 5243
be1bce46 5244 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 5245
10ea2b82
JR
52462009-03-04 Jason Rumney <jasonr@gnu.org>
5247
2c93b248 5248 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 5249 characters that have already been read. (Bug#2569)
2c93b248 5250
10ea2b82
JR
5251 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
5252 Log an error message if check_image_size failed.
5253 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 5254 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 5255
71a0c011
EZ
52562009-03-02 Eli Zaretskii <eliz@gnu.org>
5257
5258 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
5259 when decoding process output.
5260
2f63bba8
RS
52612009-03-01 Richard M Stallman <rms@gnu.org>
5262
5263 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
5264
5265 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
5266
0a9564cb
EZ
52672009-02-28 Eli Zaretskii <eliz@gnu.org>
5268
5269 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
5270 (decode_coding_emacs_mule, decode_coding_iso_2022)
5271 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5272 (decode_coding_raw_text, decode_coding_charset)
5273 (setup_coding_system, decode_eol, decode_coding, consume_chars):
5274 Honor inhibit-eol-conversion. (Bug #2186)
5275
449148b3
JR
52762009-02-28 Jason Rumney <jasonr@gnu.org>
5277
5278 * coding.c (detect_coding_charset): If not checking latin extra,
5279 fail on characters between 0x80 and 0xA0. (Bug#2354)
5280
a4aee864
EZ
52812009-02-28 Eli Zaretskii <eliz@gnu.org>
5282
5283 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 5284 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 5285
d88bee5a
GM
52862009-02-27 Glenn Morris <rgm@gnu.org>
5287
5288 * callint.c (Finteractive): Doc fix.
5289
a808f22d
KH
52902009-02-27 Kenichi Handa <handa@m17n.org>
5291
5292 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
5293
caf8d60c
CY
52942009-02-27 Chong Yidong <cyd@stupidchicken.com>
5295
5296 * font.c (font_style_to_value): Set value for unknown symbols to
5297 100 instead of 255.
b61137ea
CY
5298 (weight_table, slant_table, width_table): Treat "unspecified" as
5299 the default value.
caf8d60c 5300
1a0de25c
JB
53012009-02-26 Juanma Barranquero <lekktu@gmail.com>
5302
5303 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
5304
8fc45744
JB
53052009-02-25 Juanma Barranquero <lekktu@gmail.com>
5306
107bd7d1
JB
5307 * lread.c (Fload): Stop checking Vloads_in_progress and signal
5308 error as soon as a recursive load is detected.
8fc45744 5309
f097e223
AR
53102009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5311
5312 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
5313 before caching.
5314
8810a12f
KH
53152009-02-24 Kenichi Handa <handa@m17n.org>
5316
5317 * fontset.c (fontset_find_font): Fix the condition for checking
5318 unavailable font.
5319
2c7d1565
GM
53202009-02-24 Glenn Morris <rgm@gnu.org>
5321
5322 * xfaces.c (Finternal_set_font_selection_order): Remove leading
5323 whitespace that confuses documentation.
5324
a20878b6
MB
53252009-02-23 Miles Bader <miles@gnu.org>
5326
5327 * process.c (Flist_system_processes, Fprocess_attributes)
5328 (syms_of_process): Rename `system-process-attributes' to
5329 `process-attributes'.
5330
b3b58c01
AS
53312009-02-22 Andreas Schwab <schwab@linux-m68k.org>
5332
1b3b981b
AS
5333 * coding.h (struct coding_system): Make safe_charsets a pointer to
5334 unsigned char.
5335 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
5336 being 255.
5337 (SAFE_CHARSET_P): Likewise.
5338 (setup_iso_safe_charsets): Properly setup safe_charsets.
5339 (Fdefine_coding_system_internal): Likewise.
5340 (setup_coding_system): Likewise. Remove unneeded casts.
5341 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
5342 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
5343 unneeded casts.
5344
b3b58c01
AS
5345 * insdel.c (del_range_2): Don't modify gap contents when called
5346 from decode_coding_object. (Bug#1809)
5347
0b6f228c
CY
53482009-02-21 Chong Yidong <cyd@stupidchicken.com>
5349
5350 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
5351 Qfont_object.
5352 (Ftype_of): Recognize font objects.
5353
5354 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
5355
5356 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
5357 moved to data.c.
5358
52f8870b
AR
53592009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5360
5361 * nsterm.m (x_make_frame_invisible): Unset async_visible,
5362 async_iconified. Based on a patch by Christian Lynbech
5363 <christian.lynbech@tieto.com>.
5364 (EmacsView-windowDidMiniaturize:): Unset async_visible.
5365
7087d5e9
GM
53662009-02-20 Glenn Morris <rgm@gnu.org>
5367
5368 * syntax.c (Fskip_chars_forward): Fix doc typo.
5369
41d2ceef
CY
53702009-02-20 Chong Yidong <cyd@stupidchicken.com>
5371
5372 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
5373
1a3b7ca6
CY
53742009-02-19 Chong Yidong <cyd@stupidchicken.com>
5375
5376 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
5377
73cce38d
KH
53782009-02-19 Kenichi Handa <handa@m17n.org>
5379
5380 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 5381 Don't overflow coding->carryover. (Bug#2370)
73cce38d 5382
a51092ee
DN
53832009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
5384
5385 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
5386
c423ecca
KH
53872009-02-18 Kenichi Handa <handa@m17n.org>
5388
5389 * font.c (font_check_otf_features): Fix handling of `nil' element.
5390 (Ffont_spec): Describe :lang and :otf in the docstring.
5391
4c1958f4
AS
53922009-02-16 Andreas Schwab <schwab@suse.de>
5393
5394 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
5395 string.
5396
5704f39a
KH
53972009-02-16 Kenichi Handa <handa@m17n.org>
5398
5399 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 5400 (Bug#1723)
5704f39a 5401
8f0085aa
CY
54022009-02-14 Chong Yidong <cyd@stupidchicken.com>
5403
a057d86a 5404 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
5405
5406 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
5407 (handle_line_prefix): Suppress wrapping of wrap prefixes.
5408
aff01dd9
EZ
54092009-02-14 Eli Zaretskii <eliz@gnu.org>
5410
5411 * msdos.c (MAX_SCREEN_BUF): New macro.
5412 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
5413 Encode the entire run of glyphs sharing the same face, instead of
5414 doing that one glyph at a time (fixes a bug with displaying
5415 double-size characters).
5416
ba301db3
AR
54172009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
5418
5419 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
5420
5421 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
5422 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 5423 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
5424
5425 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 5426 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 5427
51d861de
SM
54282009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
5429
ac146f82 5430 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
5431 invisible areas.
5432
7fed8996
JR
54332009-02-12 Jason Rumney <jasonr@gnu.org>
5434
631ea4fb
JR
5435 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
5436 (add_font_entity_to_list): Call check_face_name even when family
5437 is unspecified.
5438
cb4a3e42
JR
5439 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5440 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 5441 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 5442
7fed8996 5443 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 5444 raster fonts. (Bug#2219)
7fed8996 5445
895416e3
KH
54462009-02-12 Kenichi Handa <handa@m17n.org>
5447
5448 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
5449 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
5450 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 5451 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5452 (find_automatic_composition): While looking forward and backward,
5453 check static composition. Fix where to stop looking forward.
5454 (composition_adjust_point): Fix checking of static composition.
5455 (Fcomposition_get_gstring): Pay attention to
1dacf998 5456 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5457
5458 * lisp.h (fast_looking_at): Extern it.
5459
5460 * search.c (fast_looking_at): New function.
5461
51d861de 5462 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
5463 <struct glyph>.u.cmp.to.
5464 (append_composite_glyph): Likewise.
5465
51d861de 5466 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
5467 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
5468 composition.
51d861de 5469 (append_composite_glyph): Adjust for the change of
895416e3
KH
5470 <strcut glyph>.u.cmp.to.
5471
8510724d
JB
54722009-02-11 Juanma Barranquero <lekktu@gmail.com>
5473
5474 * casetab.c (init_casetab_once):
5475 * coding.c (ALLOC_CONVERSION_WORK_AREA):
5476 * font.c (font_update_lface):
5477 * fontset.c (Fnew_fontset):
5478 * ftfont.c (ftfont_drive_otf):
5479 * xfont.c (xfont_open):
5480 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
5481
294fa707
SM
54822009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5483
5484 * fileio.c (Fwrite_region): !NILP -> CONSP.
5485
b5bfebec
AS
54862009-02-10 Andreas Schwab <schwab@suse.de>
5487
5488 * process.c (send_process): Properly relocate pointer into data
adab88bd 5489 when using encoded data. (Bug#2272)
b5bfebec 5490
cb84a2be
KH
54912009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
5492
5493 * coding.c (detect_coding_charset): Fix previous change.
5494
89e09428
JR
54952009-02-08 Jason Rumney <jasonr@gnu.org>
5496
5497 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 5498 disappeared while hourglass was displayed. (Bug #2193)
89e09428 5499
4470a277
AS
55002009-02-07 Andreas Schwab <schwab@suse.de>
5501
5502 * unexelf.c (unexec): Fix error message.
5503
3175b12a
AR
55042009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
5505
5506 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 5507 when modal window is active. (Bug #2152)
3175b12a
AR
5508 (applicationShouldTerminate:): Remove now-unneeded while loop
5509 around NSRunAlertPanel.
5510
5511 * nsmenu.m (popupSession): New file-global variable.
5512 (pop_down_menu): End the popupSession before closing dialog.
5513 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
5514 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
5515 don't query NSApp for events (just sleep instead).
5516
8434d0b8
EZ
55172009-02-07 Eli Zaretskii <eliz@gnu.org>
5518
51d861de
SM
5519 * coding.c (syms_of_coding) <translation-table-for-input>:
5520 Modify doc string to discourage use for character code unification.
8434d0b8 5521
aa82edfd
CY
55222009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5523
5524 * atimer.c (run_timers): Update pending_atimers.
5525
2d283c7c
CY
55262009-02-06 Chong Yidong <cyd@stupidchicken.com>
5527
eb306cab
CY
5528 * image.c (svg_load_image): Fix last change.
5529
2d283c7c
CY
5530 * xfns.c (Fx_create_frame): Signal an error if no font is
5531 found (Bug#2147).
5532
4d8e170e
JB
55332009-02-05 Juanma Barranquero <lekktu@gmail.com>
5534
5535 * character.c (syms_of_character) <script-representative-chars>:
5536 Fix typo in docstring.
5537
c96169a0
AR
55382009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5539
5540 * nsmenu.m (pop_down_menu): New function.
5541 (ns_popup_dialog): Call it on unwind.
5542 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
5543 call timer_check() (Bug#2154).
5544 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
5545 handling_signal is set.
5546 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
5547
31fd7c5c 5548 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
5549
5550 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
5551
5552 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
5553
51d861de
SM
5554 * keyboard.c (poll_for_input_1, handle_async_input):
5555 Set handling_signal under HAVE_NS.
c96169a0 5556
aacd8ba1
GM
55572009-02-04 Glenn Morris <rgm@gnu.org>
5558
5559 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
5560
4cb75c4b
KH
55612009-02-04 Kenichi Handa <handa@m17n.org>
5562
5563 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
5564
5565 * charset.c (Fchar_charset): New optional arg restriction.
5566
5567 * coding.h (coding_system_charset_list): Extern it.
5568
5569 * coding.c (coding_system_charset_list): New function.
5570
5571 * composite.c: Include coding.h and termhooks.h.
5572 (composition_gstring_p): Fix for the terminal case.
5573 (composition_gstring_width): Likewise.
5574 (fill_gstring_body): Likewise.
5575 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
5576 the frame.
5577 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
5578 is within a composition.
867d4bb3 5579 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
5580
5581 * term.c (encode_terminal_code): Fix handling of composition.
5582 (produce_composite_glyph): For static composition, get pixel_width
5583 from struct composition.
5584
826ba17e
AS
55852009-02-02 Andreas Schwab <schwab@suse.de>
5586
5587 * unexelf.c (unexec): Handle unaligned bss offset.
5588
8ad093db
AR
55892009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5590
5591 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
5592 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 5593
8ad093db
AR
5594 * keyboard.c (handle_interrupt): Don't call
5595 quit_throw_to_read_char() under NS.
d0a76a6e 5596
8ad093db
AR
5597 * blockinput.h: Remove NS-specific code.
5598
4d18a7a2
DN
55992009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
5600
db878925
DN
5601 * dispnew.c (window_change_signal): Don't try to get the size of a
5602 suspended tty frame.
5603 * term.c (Fresume_tty): Resize if the size has changed while the
5604 tty was suspended.
5605
4d18a7a2
DN
5606 * alloc.c (mark_stack): Properly conditionalize previous change.
5607
8984df7c
JB
56082009-01-30 Juanma Barranquero <lekktu@gmail.com>
5609
5610 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
5611 * w32term.c (w32_read_socket) [SYNC_INPUT]:
5612 Remove; this code is not used on Windows.
5613
75f4f1ac
EZ
56142009-01-30 Eli Zaretskii <eliz@gnu.org>
5615
5616 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
5617 EOLs that also has stray ^M characters.
5618
07a1e794
JB
56192009-01-30 Juanma Barranquero <lekktu@gmail.com>
5620
5621 * atimer.c (run_timers, alarm_signal_handler):
5622 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
5623 * w32inevt.c (w32_console_read_socket):
5624 * w32term.c (w32_read_socket):
5625 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
5626
a8b11cc9
CY
56272009-01-30 Chong Yidong <cyd@stupidchicken.com>
5628
5629 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
5630 Initialize it as a relative filename pattern.
5631 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
5632 (Fcall_process_region): Simplify temp file creation using
5633 temporary-file-directory.
5634
c279587b
EZ
56352009-01-29 Eli Zaretskii <eliz@gnu.org>
5636
5637 * msdos.c: Rename pending_signals to msdos_pending_signals.
5638 (sig_suspender, sigprocmask): Adjust.
5639
a8fe3242
CY
56402009-01-29 Chong Yidong <cyd@stupidchicken.com>
5641
5642 * keyboard.c (pending_signals): New var.
5643 (poll_for_input, input_available_signal, init_keyboard): Set it.
5644 (process_pending_signals): New function.
5645
5646 * lisp.h (QUIT): Check pending_signals instead of
5647 interrupt_input_pending. Use process_pending_signals.
5648
51d861de 5649 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 5650
51d861de 5651 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
5652
5653 * sysdep.c (emacs_write): Use process_pending_signals.
5654
5655 * xterm.c (XTread_socket): Update pending_signals.
5656
5657 * w32term.c (w32_read_socket): Update pending_signals.
5658
5659 * w32inevt.c (w32_console_read_socket): Update pending_signals.
5660
6570a1c4
KH
56612009-01-29 Kenichi Handa <handa@m17n.org>
5662
5663 * xftfont.c (xftfont_has_char): New function.
5664 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5665
d72a4afa
AR
56662009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5667
5668 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5669 under GNUstep.
5670 (ns_query_color): New declaration.
5671
5672 * nsterm.m (ns_confirm_quit): New variable.
5673 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5674 (EmacsApp-applicationShouldTerminate:): Use it.
5675 (EmacsPrefsController): Let user set it.
5676 (ns_query_color): New function.
5677 (ns_defined_color): Use it.
5678 (ns_initialize): Drop.
5679 (ns_term_init): Add two lines from ns_initialize(), and set
5680 input_interrupt_mode to nil.
5681
5682 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 5683 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 5684
9fe78804
KH
56852009-01-28 Kenichi Handa <handa@m17n.org>
5686
5687 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
5688 (fontset_get_font_group): Remember that no font-group is specified
5689 for C.
9fe78804 5690
fa57de36
CY
56912009-01-27 Chong Yidong <cyd@stupidchicken.com>
5692
930600e9
CY
5693 * fns.c (concat): Check for string overflow (bug#1787).
5694
fa57de36
CY
5695 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5696 Quadruple undo limits (bug#1501).
5697
7179ce7b
KH
56982009-01-27 Kenichi Handa <handa@m17n.org>
5699
5700 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5701 directly use GT_Get_Char_index.
5702
5703 * xftfont.c (struct xftfont_info): New member `index'.
5704
5705 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 5706 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 5707
5be8fcc0
CY
57082009-01-26 Kenichi Handa <handa@m17n.org>
5709
5710 * fontset.c (fontset_find_font): Fix handling of non-cons return
5711 value of fontset_get_font_group.
5712 (fontset_font): Revert last change.
5713
19ae3e61
JR
57142009-01-26 Jason Rumney <jasonr@gnu.org>
5715
5716 * w32font.c (w32font_list_internal): Return quickly if registry is
5717 unknown. Simplify final return.
5718 (add_font_entity_to_list): Break complex logic down into more
5719 manageable chunks. Move unknown registry check to
5720 w32font_list_internal.
5721
8612b71a
AR
57222009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5723
5724 Changes to remove Feval calls from GUI under NS.
5725
d8038940
JB
5726 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5727 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
5728 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5729
5730 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5731 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5732 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5733 instead of NON_ASCII_KEYSTROKE_EVENT.
5734 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5735 (EmacsApp-applicationShouldTerminate:): Query user.
5736 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5737 instead of Feval.
5738
5739 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5740
5741 * keyboard.c (kbd_buffer_get_event): Check for it.
5742 (keys_of_keyboard): Define lispy keys for
5743 ns-put/unput-working-text.
5744
5745 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5746 versions.
5747 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5748
6288ae55
CY
57492009-01-25 Chong Yidong <cyd@stupidchicken.com>
5750
5751 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 5752 setting current_buffer directly. (Bug#2044)
6288ae55 5753
289e7f8f
CY
57542009-01-24 Chong Yidong <cyd@stupidchicken.com>
5755
5ce87308 5756 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 5757 any work. (Bug#1952, bug#1990).
5ce87308 5758
64cc3cf6 5759 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 5760
b3243e6f
AR
57612009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5762
5763 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
5764 (ns_no_defaults): New declaration.
5765 (main): Use it.
e0d2e69a 5766
d900b2af 5767 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 5768
d900b2af 5769 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 5770
d900b2af
AR
5771 * nsterm.m (ns_no_defaults): New variable.
5772 (ns_initialize): Don't read defaults when ns_no_defaults.
5773 (EmacsView-readSelectionFromPasteboard:)
5774 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 5775 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
5776 (ns_dumpglyphs_stretch): New function.
5777 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 5778 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 5779
e0d2e69a
AR
5780 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5781
3ac71f5d
CY
57822009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5783
5784 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5785 call for Sparc64.
5786
3fe53a83
AR
57872009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5788
5789 * nsfns.m:
5790 * nsgui.h:
5791 * nsmenu.m:
5792 * nsselect.m:
5793 * nsterm.h:
5794 * nsterm.m: Remove '23' comments that indicated code added during
5795 update from emacs-20 -> emacs-23.
5796
10f87c6f 57972009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
5798
5799 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 5800 ns_alternate_modifier. (Bug#1217)
a3b53a85 5801
c7cef62d
AR
5802 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5803 Display all shortcuts, including those w/o super modifier.
5804
575fb8bd
AR
5805 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5806
918b848b
CY
58072009-01-22 Chong Yidong <cyd@stupidchicken.com>
5808
5809 * fileio.c (Vwrite_region_post_annotation_function)
5810 (Vwrite_region_annotation_buffers): New vars.
5811 (build_annotations_unwind): Just reset
5812 Vwrite_region_annotation_buffers.
5813 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5814 Call write-region-post-annotation-function.
5815 (build_annotations): Add to Vwrite_region_annotation_buffers if
5816 buffer changes.
5817
a39e2539
AR
58182009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5819
5820 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5821 Tiger.
51d861de
SM
5822 * nsfns.m (ns_do_applescript):
5823 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 5824
35ed44db
AR
58252009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5826
5827 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5828
cbe0b5bf
AR
58292009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5830
5831 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 5832
6049d3a0
AR
5833 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5834
5835 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
5836 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5837 handle Ctrl-tab. (Bug#1841)
5838 (ns_get_color): Use unsigned long long for scanned hex string value.
5839 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 5840 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 5841 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 5842 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 5843 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 5844 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 5845 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 5846
d3810c21 5847 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 5848 DPI. (Bug#1316)
d3810c21
AR
5849 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5850 values in onTiger section.
4c7077c3 5851
e301e634
CY
58522009-01-19 Chong Yidong <cyd@stupidchicken.com>
5853
7f82490b
CY
5854 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5855 Check return value of font_spec_from_name.
64cc3cf6 5856 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
5857
5858 * font.c (font_spec_from_name): Return Qnil if font name could not
5859 be parsed.
5860 (font_parse_name): Treat a `?' character as part of an XLFD.
5861
e301e634
CY
5862 * fns.c (Fsubstring): Doc fix.
5863
1c0db158
KH
58642009-01-19 Kenichi Handa <handa@m17n.org>
5865
51d861de 5866 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
5867 (ftfont_list): Likewise.
5868
acf20901
JB
58692009-01-18 Juanma Barranquero <lekktu@gmail.com>
5870
fff4e459
JB
5871 * dbusbind.c (Fdbus_register_signal):
5872 * process.c (conv_sockaddr_to_lisp):
5873 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5874
acf20901
JB
5875 * callproc.c (Fgetenv_internal): Doc fix.
5876
e7abcdfb
CY
58772009-01-16 Chong Yidong <cyd@stupidchicken.com>
5878
5879 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5880 it is not even used.
5881
b60861e6
GM
58822009-01-16 Glenn Morris <rgm@gnu.org>
5883
5884 * font.c (Ffont_variation_glyphs): Silence compiler.
5885
8db52afe
JB
58862009-01-15 Juanma Barranquero <lekktu@gmail.com>
5887
5888 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5889 Reported by David Robinow <drobinow@gmail.com>.
5890
4cddb209
KH
58912009-01-15 Kenichi Handa <handa@m17n.org>
5892
51d861de 5893 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 5894
f247f67b
JR
58952009-01-14 Jason Rumney <jasonr@gnu.org>
5896
5897 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 5898 never a fontset. (Bug#1562)
f247f67b 5899
f56a4450
KH
59002009-01-14 Kenichi Handa <handa@m17n.org>
5901
5902 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 5903 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 5904
4e99855e
CY
59052009-01-13 Chong Yidong <cyd@stupidchicken.com>
5906
5907 * font.c (font_clear_prop): If clearing the family, clear the font
5908 width index too.
5909
fff4e459 5910 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 5911
24f01470
JB
59122009-01-12 Juanma Barranquero <lekktu@gmail.com>
5913
5914 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5915 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5916 functions, use sizeof.
5917
a41240a3
MR
59182009-01-12 Martin Rudalics <rudalics@gmx.at>
5919
5920 * keyboard.c (read_char): Fix case where last_nonmenu_event
5921 returned a bad value with submenus. (Bug#447)
5922
944636b8
CY
59232009-01-12 Chong Yidong <cyd@stupidchicken.com>
5924
5925 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5926 family, clear the font width index too.
5927
0dad7c6f
JR
59282009-01-11 Jason Rumney <jasonr@gnu.org>
5929
5930 * keyboard.c (cmd_error_internal): Exit when errors occur before
5931 frame creation and not in daemon mode. (Bug#1836)
5932
7c2363af
CY
59332009-01-10 Chong Yidong <cyd@stupidchicken.com>
5934
5935 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5936 of a display vector, backtrack.
5937 (try_window_reusing_current_matrix): Check glyph type before
5938 referencing charpos member.
5939
97b1b294
EZ
59402009-01-10 Eli Zaretskii <eliz@gnu.org>
5941
5942 Fix Bug #876:
5943
5944 * coding.c (inhibit_null_byte_detection): New variable.
5945 (detect_coding, detect_coding_system): Don't pay attention to null
5946 bytes if inhibit_null_byte_detection is non-zero.
51d861de 5947 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
5948 <inhibit-iso-escape-detection>: Doc fix.
5949
4624b6e3
JR
59502009-01-09 Jason Rumney <jasonr@gnu.org>
5951
5952 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 5953 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
5954 Only report Unicode Plane 2 fonts as unicode-sip.
5955
323b840c
CY
59562009-01-09 Chong Yidong <cyd@stupidchicken.com>
5957
51d861de
SM
5958 * xfaces.c (Fx_font_family_list): Delete function.
5959 Move compatibility version to faces.el.
323b840c 5960
51d861de 5961 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 5962
eba7400d
MR
59632009-01-09 Martin Rudalics <rudalics@gmx.at>
5964
5965 * frame.c (x_set_frame_parameters): Remember requested value for
5966 fullscreen before it's reset by the parameter handler.
5967
4b09796d
GM
59682009-01-09 Glenn Morris <rgm@gnu.org>
5969
5970 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 5971 (last_command_event): ... and update all users.
4b09796d
GM
5972 (last_input_char): For clarity, rename to...
5973 (last_input_event): ... and update all users.
5974 (last-command-char, last-input-char): Move to subr.el as aliases.
5975 * cmds.c, commands.h: Update for last_command_char rename.
5976
14ccea62
CY
59772009-01-08 Chong Yidong <cyd@stupidchicken.com>
5978
51d861de 5979 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 5980
5f004711
JR
59812009-01-08 Jason Rumney <jasonr@gnu.org>
5982
5983 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5984 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5985 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5986 Don't declare.
fff4e459 5987 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
5988 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5989
b71f6f73
KH
59902009-01-07 Kenichi Handa <handa@m17n.org>
5991
50b06221 5992 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 5993 remember the coding system used for decoding in
50b06221
KH
5994 coding_system (Bug#1039).
5995
b71f6f73 5996 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 5997 breaking the loop. (Bug#870)
b71f6f73
KH
5998 (decode_coding_utf_16, decode_coding_emacs_mule)
5999 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6000 (decode_coding_charset): Likewise.
6001
56f668f7
MR
60022009-01-05 Martin Rudalics <rudalics@gmx.at>
6003
6004 * frame.c (x_set_frame_parameters): Make sure height (width) get
6005 applied when fullwidth (fullheight) is set. (Bug#1522)
6006
5da9424d
JB
60072009-01-04 Juanma Barranquero <lekktu@gmail.com>
6008
6009 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
6010 (utc_base): Declare as ULONGLONG, not long double.
6011 (convert_time_raw): Delete.
6012 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
6013 (initialize_utc_base): New function.
6014 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
6015 (convert_from_time_t): Use initialize_utc_base; compute result with
6016 64-bit arithmetic.
6017 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
6018
c4605e09
EZ
60192009-01-03 Eli Zaretskii <eliz@gnu.org>
6020
9acef61c 6021 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
6022 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
6023 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
6024 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
6025 [!subprocesses]: Define.
6026 (syms_of_process) [!subprocesses]: Intern and staticpro them.
6027 (Flist_system_processes, Fsystem_process_attributes)
6028 [!subprocesses]: Call list_system_processes and
6029 system_process_attributes instead of returning Qnil.
6030
9acef61c
JB
6031 * dosfns.c (system_process_attributes, list_system_processes):
6032 New functions.
c4605e09
EZ
6033
6034 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
6035
6036 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
6037 Don't use the default (no-op) implementation.
6038
8b7d0a16
JR
60392009-01-03 Jason Rumney <jasonr@gnu.org>
6040
a6d46bc1
JR
6041 * keyboard.c (parse_modifiers_uncached): Wheel events are
6042 clicks (bug#687).
6043
8b7d0a16
JR
6044 * w32term.c (x_query_colors, x_query_color): New functions.
6045
6046 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
6047 (svg_load_image): Cast returned pointers from dynamically loaded
6048 functions. Eliminate W32 specific code.
6049
bfe11752
DN
60502009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
6051
89e2438a
DN
6052 * nsfns.m (x_set_foreground_color, x_set_background_color)
6053 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
6054 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
6055 x_ prefix instead of ns_. Update references.
6056 (syms_of_nsfns): Add a FIXME comment.
6057
6058 * nsterm.m (x_set_cursor_type): New prototype.
6059 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
6060
bfe11752
DN
6061 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
6062 for Solaris instead of incorrectly providing Qutime and Qcutime.
6063
031da700
EZ
60642009-01-02 Eli Zaretskii <eliz@gnu.org>
6065
6066 * w32.c (process_times): Compute sum of utime and stime.
6067 (system_process_attributes): Add Qtime to the alist.
6068
6069 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
6070 and add them to the alist.
6071
6072 * process.c (top level) <Qtime, Qctime>: New variables.
6073 (syms_of_process): staticpro them.
6074 (Fsystem_process_attributes): Add their documentation to the doc
6075 string.
6076
6077 * process.h: Declare Qtime and Qctime.
6078
df23bf08
JR
60792009-01-02 Jason Rumney <jasonr@gnu.org>
6080
9acef61c 6081 * image.c (Qgobject): New symbol.
df23bf08
JR
6082 (syms_of_image): Initialize it.
6083 (init_svg_functions): Load some functions from gobject library.
6084
5bbdf7aa
DN
60852009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
6086
6087 * frame.c (make_terminal_frame): Remove redundant code and useless
6088 block.
6089
63136da6
AS
60902009-01-01 Andreas Schwab <schwab@suse.de>
6091
6092 * process.c (conv_sockaddr_to_lisp): Add workaround for
6093 getsockname bug on BSD.
6094
9ef69046
CY
60952009-01-01 Chong Yidong <cyd@stupidchicken.com>
6096
d6fafbe0
CY
6097 * xfns.c (x_create_tip_frame): Set border width of the X window.
6098
51d861de 6099 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 6100
f9c34147
JR
61012009-01-01 Jason Rumney <jasonr@gnu.org>
6102
9acef61c 6103 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
6104 Don't block input, as per earlier xterm.c changes.
6105
f5497e45
AR
61062008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
6107
6108 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
6109 (ns_appkit_version_int): New function.
6110 (x-server-version): Use ns_appkit_version_int and follow 21+
6111 convention of returning 3 integers.
6112
c19cab20
KH
61132008-12-30 Kenichi Handa <handa@m17n.org>
6114
6115 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
6116 (CHAR_SURROGATE_PAIR_P): New macro.
6117
6118 * font.h (struct font_driver): New member get_variation_glyphs.
6119
9acef61c 6120 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
6121 (Ffont_variation_glyphs): New function.
6122 (syms_of_font): Defsubr it.
6123
6124 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
6125 ftfont_variation_glyphs.
6126 (setup_otf_gstring): New function.
6127 (ftfont_drive_otf): Use it.
6128 (ftfont_shape_by_flt): Handle variation selector.
6129 (ftfont_variation_glyphs): New function.
6130
28cd591f
MR
61312008-12-30 Martin Rudalics <rudalics@gmx.at>
6132
6133 * frame.c (Vemacs_iconified): Remove.
6134
7f714baf
JR
61352008-12-30 Jason Rumney <jasonr@gnu.org>
6136
6137 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 6138 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 6139
9d2d22ab
CY
61402008-12-30 Chong Yidong <cyd@stupidchicken.com>
6141
6142 * indent.c (Fvertical_motion): Don't advance iterator if we have
6143 reseated to the desired position.
6144
6145 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
6146 checking for pos match.
6147
545312c2
KH
61482008-12-30 Kenichi Handa <handa@m17n.org>
6149
1ede3eb6
KH
6150 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
6151 just get the low 8-bit of the code.
6152
545312c2
KH
6153 * font.c (font_intern_prop): Validate str as multibyte.
6154
bd7bbf29
DN
61552008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6156
31e0750e
DN
6157 * dispextern.h (struct face): Move lface and hash from the middle
6158 of bitfields.
6159
bd7bbf29
DN
6160 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
6161
b5672e7c
DN
61622008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6163
6164 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
6165 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
6166 instead of intervals.h.
6167
d704470f
AS
61682008-12-26 Andreas Schwab <schwab@suse.de>
6169
6170 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
6171 cons.
6172
54b33868
MR
61732008-12-26 Martin Rudalics <rudalics@gmx.at>
6174
6175 * textprop.c (Qminibuffer_prompt): New variable.
6176 (syms_of_textprop): Initialize it.
6177 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
6178 in minibuffer-prompt face. (Bug#1662)
6179
40b615d6
JR
61802008-12-25 Jason Rumney <jasonr@gnu.org>
6181
6182 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
6183
baae5c2d
JR
61842008-12-24 Jason Rumney <jasonr@gnu.org>
6185
6186 * ralloc.c (r_alloc_reset_variable): New function.
6187
6188 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 6189 record of what points where. (Bug#716)
baae5c2d 6190
a9051c88
DN
61912008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
6192
6193 * minibuf.c (read_minibuf): Follow the non-interactive case when
6194 running as a daemon, before detaching.
6195
8b146312
AS
61962008-12-22 Andreas Schwab <schwab@suse.de>
6197
6198 * buffer.c (init_buffer): Use realloc instead of xrealloc.
6199 * gtkutil.c (free_widget_value): Use xfree instead of free.
6200
56f2de10
MR
62012008-12-22 Martin Rudalics <rudalics@gmx.at>
6202
6203 * frame.c (delete_frame): New function derived from
6204 Fdelete_frame to handle Qnoelisp value for FORCE argument.
6205 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
6206 (Fdelete_frame): Call delete_frame. Remove line from doc-string
6207 saying that FORCE non-nil doesn't run `delete-frame-functions'.
6208 * frame.h: Extern delete_frame.
6209 * window.c (window_loop):
6210 * terminal.c (delete_terminal):
6211 * xterm.c (x_connection_closed):
6212 * xfns.c (Fx_hide_tip):
9acef61c 6213 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 6214
1fc200d6
JR
62152008-12-21 Jason Rumney <jasonr@gnu.org>
6216
6217 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
6218 when character maps to .notdef character.
6219
5e252df2
SM
62202008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
6221
6222 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
6223
99b72cc4
JR
62242008-12-20 Jason Rumney <jasonr@gnu.org>
6225
6226 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 6227 a graphical frame on Windows. (Bug#1325)
99b72cc4 6228
acc49a52
JD
62292008-12-20 Jan Djärv <jan.h.d@swipnet.se>
6230
6231 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
6232
6ea15123
CY
62332008-12-20 Chong Yidong <cyd@stupidchicken.com>
6234
6235 * minibuf.c (Fread_buffer): Doc fix.
6236
b2dab6c8
JR
62372008-12-20 Jason Rumney <jasonr@gnu.org>
6238
54ea0c87 6239 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 6240 server name in UNC paths. (Bug#719)
54ea0c87 6241
b2dab6c8 6242 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 6243 charbuf. (Bug#1035)
b2dab6c8 6244
6d1921be
DN
62452008-12-19 Daniel Engeler <engeler@gmail.com>
6246
6247 * sysdep.c (serial_configure): Fix typo.
6248
53934c98
DN
62492008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6250
6251 * sysdep.c: Include alloca.h.
f4f634e8
DN
6252 (system_process_attributes): Add implementation for Solaris.
6253
6254 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 6255
06e111a6
DN
62562008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6257
6258 Reorganize implementation of Flist_system_processes and
6259 Fsystem_process_attributes. No functional changes.
6260 * process.c: Don't #include pwd.h, grp.h and limits.h.
6261 (Flist_system_processes): Just call list_system_processes.
6262 (Fsystem_process_attributes): Just call system_process_attributes.
6263 (procfs_list_system_processes, time_from_jiffies)
6264 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
6265 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
6266
6267 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
6268 (list_system_processes): Rename from
6269 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
6270 Provide a do nothing implementation.
6271 (system_process_attributes): Rename from
6272 procfs_list_system_processes.
6273 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 6274 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
6275
6276 * w32.c (list_system_processes): Rename from
6277 w32_list_system_processes.
6278 (system_process_attributes): Rename from
6279 w32_system_process_attributes.
6280
6281 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
6282
6283 * process.h (w32_list_system_processes)
6284 (w32_system_process_attributes): Remove.
362654a6
JB
6285 (list_system_processes, system_process_attributes):
6286 New prototypes.
06e111a6 6287
6a705b23
KH
62882008-12-19 Kenichi Handa <handa@m17n.org>
6289
6290 * xfont.c (xfont_decode_coding_xlfd): New function.
6291 (xfont_encode_coding_xlfd): New function.
6292 (xfont_list_pattern): Decode XLFD by iso-8859-1.
6293 (xfont_list): Decode and encode XLFD by iso-8859-1.
6294 (xfont_match): Likewise.
6295 (xfont_list_family): Likewise.
6296 (xfont_open): Likewise.
6297
d66c0241 6298 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
6299 names are utf-8.
6300
d66c0241 6301 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
6302 names are utf-8.
6303
5a130941
JD
63042008-12-18 Jan Djärv <jan.h.d@swipnet.se>
6305
6306 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
6307 changed.
bfd20325
JD
6308 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
6309 clicked on a detached tool bar button.
5a130941 6310
fd95644b
DN
63112008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
6312
6313 * emacs.c (main): Print and error and exit when no data is read
6314 from the pipe.
6315
e6eee6ae
JR
63162008-12-17 Jason Rumney <jasonr@gnu.org>
6317
6318 * w32font.c (w32font_has_char): Always return -1.
6319
a35dd56b
KH
63202008-12-16 Kenichi Handa <handa@m17n.org>
6321
6322 * font.c (font_open_entity): Fix previous change.
6323
0e3635c2
DN
63242008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
6325
6326 * process.c: Include <limits.h>.
6327
d4835507 63282008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
6329
6330 * font.c (font_update_drivers): Fix mistake in reconstructing the
6331 driver list.
6332
63332008-12-16 Chong Yidong <cyd@stupidchicken.com>
6334
6335 * font.c (font_clear_cache): Fix format of font cache data.
6336
e2cbc401
CY
63372008-12-15 Chong Yidong <cyd@stupidchicken.com>
6338
6339 * xftfont.c (xftfont_open): Free Xft font pattern if
6340 XftFontOpenPattern fails.
6341
6342 * xterm.c (x_free_frame_resources): Remove extraneous call to
6343 free_frame_faces.
6344
b131d535
CY
63452008-12-13 Chong Yidong <cyd@stupidchicken.com>
6346
6347 * xterm.c (x_delete_display): Move xim_close_dpy call to
6348 x_delete_terminal.
6349 (x_delete_terminal): Call xim_close_dpy.
6350
e6df5336
JR
63512008-12-13 Jason Rumney <jasonr@gnu.org>
6352
6353 * w32font.c (intern_font_name): New function.
6354 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
6355 (w32font_open_internal, Fx_select_font): Decode font name.
6356 (fill_in_logfont, list_all_matching_fonts): Encode font name.
6357
6358 * w32font.h (intern_font_name): Declare new function.
6359
6360 * w32uniscribe.c (add_opentype_font_name_to_list):
6361 Use intern_font_name.
6362
20d68145
CY
63632008-12-13 Chong Yidong <cyd@stupidchicken.com>
6364
9f2554de
CY
6365 * frame.c (Fdelete_frame): Call free_font_driver_list.
6366
3d9bec9a
CY
6367 * font.c (free_font_driver_list): Implement missing function.
6368
20d68145
CY
6369 * w32term.c (w32_term_init): Don't initialize the image cache
6370 here; it will be done in init_frame_faces.
6371
6372 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
6373 (struct x_display_info): Remove unused member null_pixel. New
6374 member xim_callback_data.
6375
6376 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
6377 (xim_initialize): Save pointer to callback function data.
6378 (xim_close_dpy): Free callback function data. Call XCloseIM,
6379 reverting 2008-11-04 change by David Smith.
6380 (x_term_init): Don't initialize the image cache here; it will be
6381 done in init_frame_faces. Remove ancient "null_pixel" cruft.
6382 (x_delete_display): Free x_dnd_atoms member.
6383
96f9306b
KH
63842008-12-13 Kenichi Handa <handa@m17n.org>
6385
6dec9044
JB
6386 * font.c (font_rescale_ratio): Moved from xfaces.c.
6387 Argument type changed. Handle a font-spec too.
96f9306b 6388 (font_score): Check Vface_font_rescale_alist.
6dec9044 6389 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
6390
6391 * xfaces.c (font_rescale_ratio): Moved to font.c.
6392
8d5b4964
CY
63932008-12-13 Chong Yidong <cyd@stupidchicken.com>
6394
6395 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
6396
e6df5336
JR
63972008-12-12 Jason Rumney <jasonr@gnu.org>
6398
6399 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
6400 Vwindow_system_version to the real w32 major version.
6401
97c6058a
DN
64022008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
6403
6404 * term.c (init_tty): Move setting the terminal name before the
6405 potential user: maybe_fatal.
6406
ec4e88d7
CY
64072008-12-11 Chong Yidong <cyd@stupidchicken.com>
6408
d4835507
JB
6409 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
6410 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 6411
b4233ec9
JR
64122008-12-11 Jason Rumney <jasonr@gnu.org>
6413
8ec71e23 6414 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 6415 SYMBOL_CHARSET. (Bug#547)
8ec71e23 6416
b4233ec9 6417 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 6418 size for surrogates. (Bug#1096, bug#872)
b4233ec9 6419
011a0143
JB
64202008-12-11 Juanma Barranquero <lekktu@gmail.com>
6421
6422 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
6423
3c309f34
JB
64242008-12-11 Juanma Barranquero <lekktu@gmail.com>
6425
6426 * process.c (Fsystem_process_attributes, syms_of_process):
6427 Fix typo in name of Ssystem_process_attributes.
6428 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
6429
fedc6ab5
JB
64302008-12-11 Juanma Barranquero <lekktu@gmail.com>
6431
6432 * syntax.c (Fmodify_syntax_entry): Doc fix.
6433
ba3de0e8
JB
64342008-12-10 Juanma Barranquero <lekktu@gmail.com>
6435
6436 * font.c (Ffont_spec): Move usage to end of docstring.
6437
174f1c74
JR
64382008-12-10 Jason Rumney <jasonr@gnu.org>
6439
6440 * w32font.c (Qcham): New symbol.
6441 (font_supported_scripts): Add cham, and comments for other new
6442 scripts in bitfield from OpenType spec.
9d32f818
JR
6443 (add_font_entity_to_list): Limit unicode-sip fonts to those that
6444 contain characters beyond the bmp.
174f1c74 6445
7b649478
KH
64462008-12-10 Kenichi Handa <handa@m17n.org>
6447
6448 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 6449 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
6450 Qunicode_sip.
6451
2133e2d1
JB
64522008-12-10 Juanma Barranquero <lekktu@gmail.com>
6453
6454 * coding.c (QCdefault_char): Rename from QCdefalut_char.
6455 (Fcoding_system_put): Use QCdefault_char.
6456 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
6457
9af886ee
CY
64582008-12-09 Chong Yidong <cyd@stupidchicken.com>
6459
74d819eb
CY
6460 * xftfont.c (syms_of_xftfont): Fix typo.
6461
4ccfa1c0 6462 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 6463
7c19d3ae
DN
64642008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
6465
6466 * emacs.c (main): Close daemon_pipe on exec.
6467
567826bb
CY
64682008-12-08 Chong Yidong <cyd@stupidchicken.com>
6469
6470 * termchar.h (struct tty): New members termcap_term_buffer and
6471 termcap_strings_buffer.
6472
6473 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 6474 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
6475 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
6476 All callers changed.
6477 (init_tty): Store termcap data and string buffers in new struct
6478 tty members termcap_term_buffer and termcap_strings_buffer.
6479 (delete_tty): Free them.
4ccfa1c0 6480 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 6481
aa96c42b
SZ
64822008-12-07 Seiji Zenitani <zenitani@mac.com>
6483
6484 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 6485 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 6486
b7e1d896
CY
64872008-12-06 Chong Yidong <cyd@stupidchicken.com>
6488
6489 * coding.c (make_conversion_work_buffer): Disable buffer
6490 modification hooks in the work buffer.
6491
b5ec91a5
EZ
64922008-12-05 Eli Zaretskii <eliz@gnu.org>
6493
6494 * process.c (procfs_system_process_attributes): If `nread' has a
6495 negative value, assign zero to it.
6496
a5d2a52b
CY
64972008-12-05 Chong Yidong <cyd@stupidchicken.com>
6498
68c5540b 6499 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 6500
7bf1bb21
KH
65012008-12-05 Kenichi Handa <handa@m17n.org>
6502
6503 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
6504 second character is a combining character.
6505
2fdc7d00
EZ
65062008-12-05 Eli Zaretskii <eliz@gnu.org>
6507
6508 * process.c (procfs_system_process_attributes): Don't use cmd,
6509 cmdsize, and q without initializing them first.
6510
bf6bfba8
JR
65112008-12-04 Jason Rumney <jasonr@gnu.org>
6512
6513 * w32font.c (w32font_draw): Initialize orig_clip before getting
6514 it, and delete it when finished.
6515
a3b1a468
DN
65162008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
6517
6518 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
6519 case when running as a daemon before detaching.
6520
8b8be8eb
JB
65212008-12-03 Juanma Barranquero <lekktu@gmail.com>
6522
805f2638 6523 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 6524
b1bde622
KH
65252008-12-03 Kenichi Handa <handa@m17n.org>
6526
e500c47d
KH
6527 * font.c (font_at): Set `multibyte' at first.
6528
ca516334
KH
6529 * coding.c (decode_coding_charset): Check type of an element of
6530 vector VALIDS.
7bf1bb21 6531 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 6532
4ccfa1c0 6533 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
6534 (font_for_char): Likewise.
6535
1e5ecd37
CY
65362008-12-03 Chong Yidong <cyd@stupidchicken.com>
6537
d5b01609 6538 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
6539 (font_update_lface): Handle fonts with corrupted size specs,
6540 i.e. non-int and non-float.
d5b01609 6541
11e3a6e4 6542 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 6543 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 6544 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 6545
ab06788b
CY
6546 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
6547
1e5ecd37 6548 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 6549 underline_minimum_offset for underline position.
1e5ecd37 6550
63c125ab
DN
65512008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
6552
6553 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
6554
6555 * character.c (c_string_width): Specify the type for LEN.
6556
3a8406e1
KH
65572008-12-03 Kenichi Handa <handa@m17n.org>
6558
4ccfa1c0 6559 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 6560 (decode_coding_utf_8): Likewise.
4ccfa1c0 6561 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 6562 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 6563
651df7d9
CY
65642008-12-02 Chong Yidong <cyd@stupidchicken.com>
6565
6566 * keyboard.c (make_lispy_position): Only use PT if the selected
6567 window is current.
6568
1f625c6c
AS
65692008-12-02 Andreas Schwab <schwab@suse.de>
6570
f7741ce9
AS
6571 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
6572
1f625c6c
AS
6573 * doprnt.c (doprnt1): Fix size of charbuf.
6574
92bc2678
CY
65752008-12-02 Chong Yidong <cyd@stupidchicken.com>
6576
6577 * keyboard.c (timer_check): Revert last change.
6578
93b9e8cc
JB
65792008-12-02 Juanma Barranquero <lekktu@gmail.com>
6580
6581 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
6582
fd7a37d5
JB
65832008-12-01 Juanma Barranquero <lekktu@gmail.com>
6584
6585 * makefile.w32-in: Update dependencies.
6586 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
6587
c115043b
AS
65882008-12-01 Andreas Schwab <schwab@suse.de>
6589
6590 * font.c (register_font_driver): Use xmalloc.
6591 (font_put_frame_data): Likewise.
6592
f5668d2a
CY
65932008-12-01 Chong Yidong <cyd@stupidchicken.com>
6594
860d96be
CY
6595 * xfaces.c (realize_x_face): Make abort condition clearer.
6596
f5668d2a
CY
6597 * gtkutil.c (update_frame_tool_bar): Initialize variable.
6598
379c17e7
CY
65992008-11-30 Chong Yidong <cyd@stupidchicken.com>
6600
6601 * keyboard.c (timer_check): After a timer runs, ensure that the
6602 selected window's buffer is current.
6603
35f36d65
JB
66042008-11-30 Juanma Barranquero <lekktu@gmail.com>
6605
f952c61c
JB
6606 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
6607 It was accidentally restored by the Unicode merge.
6608
35f36d65
JB
6609 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
6610
b23077df
JB
66112008-11-29 Juanma Barranquero <lekktu@gmail.com>
6612
6613 * w32proc.c: Include "coding.h".
6614 (Fw32_short_file_name): Encode filename passed to Windows API.
6615 (Fw32_long_file_name): Encode filename passed to Windows API and
6616 decode back the result. (Bug#1433)
6617
b8ebe9dd
KH
66182008-11-29 Kenichi Handa <handa@m17n.org>
6619
8cc53f96
KH
6620 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
6621 not before accessing it.
6622
b8ebe9dd
KH
6623 * charset.c (Fdefine_charset_internal): After calculating
6624 min_char, max_char, and fastmap, copy the charset structure again.
6625 (encode_char): Fix the previous change.
6626
59bc82c0
SZ
66272008-11-28 Seiji Zenitani <zenitani@mac.com>
6628
6629 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
6630
6631 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
6632
6633 * nsterm.m (x_set_frame_alpha): New function.
6634
32247e3d
EZ
66352008-11-27 Eli Zaretskii <eliz@gnu.org>
6636
6637 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
6638
b003e5ff
JB
66392008-11-27 Juanma Barranquero <lekktu@gmail.com>
6640
6641 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
6642 pointer to check_face_name.
6643
708550f5
KH
66442008-11-27 Kenichi Handa <handa@m17n.org>
6645
6646 * category.h (SET_CATEGORY_SET): Call set_category_set.
6647 (set_category_set): Extern it.
6648
6649 * category.c (hash_get_category_set): New function.
6650 (Fmodify_category_entry): Adjusted for the change of
6651 char_table_ref_and_range. Call hash_get_category_set to get a
6652 category set to store in the table.
6653
6654 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
6655 Funify_charset.
6656
2ae37cf0 6657 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
6658 (DECODE_CHAR): Check if the decoder vector is ready.
6659 (ENCODE_CHAR): Check if the encoder char-table is ready.
6660 (maybe_unify_char): Extern it.
6661
6662 * charset.c (Vchar_unified_charset_table): Delete it.
6663 (inhibit_load_charset_map): New variable.
6664 (temp_charset_work): New variable.
6665 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6666 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6667 New macros.
6668 (load_charset_map): Meaning of control_flag changed. If
6669 inhibit_load_charset_map is nonzero, setup a table in
6670 temp_charset_work.
6671 (load_charset): New argument control_flag.
6672 (map_charset_for_dump): New function.
6673 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6674 map_charset_for_dump.
6675 (Fdefine_charset_internal): If the charset method is MAP, load
6676 mapping tables by calling load_charset.
6677 (Funify_charset): Don't load a mapping table but directly set
6678 Vchar_unify_table.
6679 (maybe_unify_char): New function.
6680 (decode_char): Don't handle the deleted method MAP_DEFERRED.
6681 Handle the case of inhibit_load_charset_map being nonzero.
6682 (encode_char): Don't handle the deleted method MAP_DEFERRED.
6683 Handle the case of inhibit_load_charset_map being nonzero.
6684 (Fclear_charset_maps): Just free temp_charset_work.
6685 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6686 variable.
6687
6688 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6689 change of char_table_ref_and_range.
6690 (char_table_ref_and_range): Change the meaning of argument FROM
6691 and TO. Now the caller must provide initial values for *FROM
6692 and *TO.
6693
6694 * fontset.c (fontset_add): Adjusted for the change of
6695 char_table_ref_and_range.
6696 (fontset_get_font_group): Likewise.
6697 (Ffontset_info): Likewise.
6698
6699 * keymap.c (describe_vector): Adjusted for the change of
6700 char_table_ref_and_range. For char-table, put boundary between
6701 non-ASCII and 8-bit characters.
6702
6703 * print.c (print_object): For bool-vector, delete unnecessary
6704 check of ASCII_BYTE_P.
6705
9196133b
JR
67062008-11-26 Jason Rumney <jasonr@gnu.org>
6707
6708 * w32font.c (w32font_open_internal): Don't include external
9acef61c 6709 leading in font height. (Bug#879)
9196133b 6710
9f688acf
GM
67112008-11-26 Glenn Morris <rgm@gnu.org>
6712
6713 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6714 redefinition with ifdef. (Bug#1383)
6715
90d19aff
AR
67162008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6717
6718 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6719
4ccfa1c0 67202008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
6721
6722 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6723 New EmacsView methods.
6724 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6725 Fixes bug #1048,1357,1414.
6726
67272008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6728
6729 Fix bug #1362.
6730 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6731 is not an indexed color.
6732 * nsterm.m (free_indexed_color): Add argument checking.
6733 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6734
e7d5ecb3
CY
67352008-11-24 Chong Yidong <cyd@stupidchicken.com>
6736
6737 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6738 Document confirm-after-completion value for
6739 minibuffer-completion-confirm.
6740
c285743c
JR
67412008-11-24 Jason Rumney <jasonr@gnu.org>
6742
6743 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6744 warning.
6745
b0857706
JR
67462008-11-23 Jason Rumney <jasonr@gnu.org>
6747
6748 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6749 restored before returning.
6750
6751 * w32font.c (check_face_name): New function.
6752 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 6753 fonts. (Bug#642)
b0857706 6754
ee50ff07
MR
67552008-11-22 Martin Rudalics <rudalics@gmx.at>
6756
6757 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6758 confirm-nonexistent-file-or-buffer in doc-string.
6759
b8ff72fa
SM
67602008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6761
6762 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6763 Fix copy/paste typo. Add checks.
6764
cee53ed4
KH
67652008-11-21 Kenichi Handa <handa@m17n.org>
6766
6767 * coding.c (detect_coding_iso_2022): Reject invalid composition
6768 sequence.
6769 (DECODE_COMPOSITION_START): If the current source is the last
6770 block, and the current composition doesn't end, regard this
6771 sequence as invalid.
6772 (decode_coding_iso_2022): Handle invalid composition sequence.
6773
f6ef1e65
MR
67742008-11-20 Martin Rudalics <rudalics@gmx.at>
6775
6776 * window.c (coordinates_in_window): Don't return
6777 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6778 line when the window is not the rightmost one. (Bug#1372)
6779
e08b1705
MR
67802008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6781
6782 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6783
ad98e89f
EZ
67842008-11-15 Eli Zaretskii <eliz@gnu.org>
6785
6786 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6787 and bright_bg if noninteractive is non-zero.
6788
fb098a4b
CY
67892008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6790
6791 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6792 x_draw_glyph_string_background.
6793
6794 * w32term.c (x_draw_glyph_string): Likewise.
6795
ce952b6e
CY
67962008-11-15 Chong Yidong <cyd@stupidchicken.com>
6797
6798 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6799 the next glyph string once past the overhang width.
6800
6801 * nsterm.m (ns_draw_glyph_string): Likewise.
6802
6803 * w32term.c (x_draw_glyph_string): Likewise.
6804
26ea7079
CY
68052008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6806
6807 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6808 double file close.
6809
1c33c906
MR
68102008-11-14 Martin Rudalics <rudalics@gmx.at>
6811
6812 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6813 dedicated status of window before attempting to display another
6814 buffer in it.
6815
8fc29035
JB
68162008-11-14 Juanma Barranquero <lekktu@gmail.com>
6817
6818 * msdos.c (Fmsdos_long_file_names):
6819 (syms_of_msdos) <dos-unsupported-char-glyph>:
6820 * dosfns.c (Fint86): Fix typos in docstrings.
6821
55fb4286
EZ
68222008-11-14 Eli Zaretskii <eliz@gnu.org>
6823
6824 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6825
3fda0315
KY
68262008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6827
6828 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6829
7e849c17
CY
68302008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6831
6832 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6833
6834 * frame.h: Negative alpha means "don't touch".
6835
6836 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6837
6838 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6839
b9fd67bd
DN
68402008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6841
6842 * hftctl.c:
6843 * chpdef.h:
6844 * acldef.h: Remove files used only for systems no longer supported.
6845
6846 * Makefile.in: Fix .o alphabetical ordering.
6847 (hftctl.o): Remove dependency, file removed.
6848 (keymap.o, print.o): Depend on charset.h.
6849
d5998e03
KH
68502008-11-10 Kenichi Handa <handa@m17n.org>
6851
2ae37cf0 6852 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 6853
be70e183
CY
68542008-11-08 Chong Yidong <cyd@stupidchicken.com>
6855
6856 * dired.c (file_name_completion): If completion_ignore_case is
6857 enabled, ignore case when checking completion-regexp-list.
6858
7cf94eac
EZ
68592008-11-08 Eli Zaretskii <eliz@gnu.org>
6860
6861 * vm-limit.c (get_lim_data): Fix last change.
6862
ee107a89
KH
68632008-11-08 Kenichi Handa <handa@m17n.org>
6864
6865 * character.c (Fget_byte): New function.
6866 (syms_of_character): Defsubr Fget_byte.
6867
5fd15622
CY
68682008-11-07 Chong Yidong <cyd@stupidchicken.com>
6869
6870 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6871 cursor position is valid after scrolling.
6872
13d62fad
JB
68732008-11-06 Juanma Barranquero <lekktu@gmail.com>
6874
6875 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6876
a1dd2936
GM
68772008-11-06 Glenn Morris <rgm@gnu.org>
6878
6879 * xterm.c (handle_one_xevent): Don't let popup menus cause
6880 mouse-autoselect-window related window switching. (Bug#1261)
6881
860cd236
CY
68822008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6883
6884 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6885
653a3150
AS
68862008-11-04 Andreas Schwab <schwab@suse.de>
6887
6888 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6889
870f5cac
CY
68902008-11-03 Chong Yidong <cyd@stupidchicken.com>
6891
6892 * xfns.c (Fx_wm_set_size_hint): New function.
6893
1e02f3cb
MR
68942008-11-03 Martin Rudalics <rudalics@gmx.at>
6895
6896 * textprop.c (Fprevious_single_char_property_change): Return 0
6897 when there's no change in a string. (Bug#1301)
6898
e630dfc6
MR
68992008-11-02 Martin Rudalics <rudalics@gmx.at>
6900
6901 * frame.c (do_switch_frame): New argument NORECORD passed to
6902 Fselect_window.
6903 (Fselect_frame): New argument NORECORD passed to
6904 do_switch_frame.
6905 (Fset_frame_selected_window): New argument NORECORD passed to
6906 Fselect_frame.
6907 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6908 in call of do_switch_frame.
6909 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6910 Handle NORECORD argument in call of Fselect_frame.
6911 * lisp.h (do_switch_frame, Fselect_frame)
6912 (Fset_frame_selected_window): Adjust declarations.
6913 * window.c (select_frame_norecord): New function.
6914 (run_window_configuration_change_hook): Use it and call
6915 Fselect_frame with NORECORD set.
6916 (Fselect_window): Pass NORECORD to Fselect_frame.
6917 (Fset_window_configuration): Handle NORECORD argument in call of
6918 do_switch_frame.
6919 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6920 Fset_frame_selected_window.
6921 * keyboard.c (command_loop_1): Handle NORECORD in call of
6922 Fselect_frame (currently ifdefd).
6923
9020b223
GM
69242008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6925
6926 * emacs.c (USAGE2): Untabify.
6927
793ffee8
SM
69282008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6929
6930 * composite.c (fill_gstring_header): Fix copy/paste typo.
6931
ab6d1131
MR
69322008-10-31 Martin Rudalics <rudalics@gmx.at>
6933
6934 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6935 (Fother_window): Rename argument and rewrite doc-string.
6936 (select_window_norecord): Fix return value. (Bug#1276)
6937
601a9cf1
JB
69382008-10-30 Juanma Barranquero <lekktu@gmail.com>
6939
6940 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6941 new frames overriding foreground for tooltips. Based on similar patch
6942 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6943
813b0652
CY
69442008-10-29 Chong Yidong <cyd@stupidchicken.com>
6945
6946 * emacs.c (Fdaemon_initialized): Initialize nfd.
6947
4414f58f
MR
69482008-10-29 Martin Rudalics <rudalics@gmx.at>
6949
6950 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6951 (Fwindow_text_height): Clarify doc-strings.
6952 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6953 doc-string of window-scroll-functions.
6954
ecdcaa09
RS
69552008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6956
6957 * category.c (syms_of_category): Fix typo in docstring.
6958
23fe745a
JB
69592008-10-28 Juanma Barranquero <lekktu@gmail.com>
6960
6961 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6962 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6963 Fix typos in docstrings.
6964
ff808935
DN
69652008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6966
6967 * emacs.c (daemon_pipe): Make non-static.
6968 (IS_DAEMON): Move definition ...
6969 * lisp.h (IS_DAEMON): ... here.
6970 (daemon_pipe): Declare.
6971 (is_daemon): Remove.
6972 * dispnew.c (init_display): Use IS_DAEMON.
6973
fc012771
SM
69742008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6975
6976 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6977 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6978
6979 * emacs.c (is_daemon): Remove.
6980 (main): Don't set is_daemon.
6981 (IS_DAEMON): New macro.
6982 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 6983 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
6984 parent exits.
6985 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6986
d8bdbe6f
CY
69872008-10-27 Chong Yidong <cyd@stupidchicken.com>
6988
d1a072bf
CY
6989 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6990 over-sized glyph, draw it with the default glyph width.
6991
e2e325aa
CY
6992 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6993 glyph, draw it with the default glyph width.
6994
6995 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6996 glyph, draw it with the default glyph width.
6997
d8bdbe6f
CY
6998 * xdisp.c (try_scrolling): When computing the distance from the
6999 scroll margin to PT, try moving some distance past the window
7000 bottom before giving up.
7001
7bfac547
MR
70022008-10-27 Martin Rudalics <rudalics@gmx.at>
7003
7004 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
7005 (Fset_window_buffer): Explain in doc-string that a window can be
7006 "strongly" dedicated to its buffer.
7007
4ff029f6
DN
70082008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
7009
7010 * emacs.c (daemon_name): New variable.
7011 (main): Deal with --daemon=SERVER_NAME.
7012 (Fdaemonp): Return a name if one was passed to --daemon.
7013
5790ef40
DN
70142008-10-26 Romain Francoise <romain@orebokech.com>
7015
f9bd0df9 7016 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
7017 (main): Create a pipe before forking, make the parent exit only after
7018 the child has closed its end of the pipe. Move closing the
7019 descriptors ...
7020 (Fdaemon_initialized): ... here. New function.
7021
f5385255
SM
70222008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
7023
4d632321
SM
7024 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
7025 the previous unoptimized table.
7026
f5385255
SM
7027 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
7028 the distinction between non-nil and non-t value of `dedicated'.
7029
6c56a0f3
CY
70302008-10-25 Chong Yidong <cyd@stupidchicken.com>
7031
7032 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 7033 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 7034
fec89261
MR
70352008-10-25 Martin Rudalics <rudalics@gmx.at>
7036
7037 * window.c (Fget_buffer_window, Fdelete_windows_on)
7038 (Freplace_buffer_in_windows): Make buffer argument optional and
7039 rename to buffer_or_name.
7040
34fcddd0
CY
70412008-10-24 Chong Yidong <cyd@stupidchicken.com>
7042
f5385255
SM
7043 * xdisp.c (handle_single_display_spec, handle_display_prop):
7044 Undo 2005-05-16 change.
34fcddd0
CY
7045 (handle_stop): Pop iterator if it's loaded with an empty string.
7046 (get_overlay_strings_1): Don't save iterator if it's loaded with
7047 an empty string (bug#1201).
7048
064766f2
KH
70492008-10-24 Kenichi Handa <handa@m17n.org>
7050
7051 * ftfont.c (ftfont_otf_features): Fix previous change.
7052 (ftfont_otf_capability): Check FeatureList.FeatureCount before
7053 calling ftfont_otf_features.
7054
f9bd0df9 70552008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
7056
7057 * font.c (font_match_p): Fix for the case that a vector of
7058 characters is in script-representative-chars.
7059
1dae9197
MA
70602008-10-24 Michael Albinus <michael.albinus@gmx.de>
7061
7062 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 7063 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
7064 (xd_read_queued_messages): Catch Qdbus_error from the macros.
7065 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 7066 macro. (Bug#1186)
1dae9197 7067
f9bd0df9 70682008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
7069
7070 * s/sol2-10.h: New file.
7071
878a4584
JB
70722008-10-23 Juanma Barranquero <lekktu@gmail.com>
7073
7074 * xdisp.c (fill_glyph_string): Fix typo in source (though the
7075 poor beast has survived 9+ years and the jump from xterm.c!).
7076
cd265ca6
MR
70772008-10-23 Martin Rudalics <rudalics@gmx.at>
7078
7079 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
7080 Reword doc-string.
f5385255 7081 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 7082
472a4dc9
JB
70832008-10-23 Juanma Barranquero <lekktu@gmail.com>
7084
7085 * character.c (syms_of_character) <script-representative-chars>:
7086 <unicode-category-table>: Doc fixes.
7087
159bd5a2
NF
70882008-10-23 Noah Friedman <friedman@splode.com>
7089
7090 * coding.c (make_conversion_work_buffer): Check that
7091 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
7092 Fget_buffer_create.
7093
49f9c344
KH
70942008-10-23 Kenichi Handa <handa@m17n.org>
7095
7096 * font.c (font_add_log): Check the values of extra properties.
7097
12bb3111
MR
70982008-10-22 Martin Rudalics <rudalics@gmx.at>
7099
7100 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7101 Reword doc-string.
7102 (Fset_window_parameter): Use NILP.
7103 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 7104 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 7105
bbeb4e99
JB
71062008-10-22 Juanma Barranquero <lekktu@gmail.com>
7107
7108 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
7109
71102008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
7111
7112 * nsfns.m (ns_appkit_version): New function.
7113 (x-server-version): Use it.
7114 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
7115 (x-server-vendor): Don't check_ns().
7116
7117 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
7118
a9b555d3
JB
71192008-10-22 Juanma Barranquero <lekktu@gmail.com>
7120
7121 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
7122 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
7123
4626499f
KH
71242008-10-22 Kenichi Handa <handa@m17n.org>
7125
e3681952
KH
7126 * syntax.c (scan_words): Call word_boundary_p instead of comparing
7127 scripts.
7128
4626499f
KH
7129 * category.c (word_boundary_p): Check scripts instead of charset.
7130 Handle nil value in word-separating-categories and
7131 word-combining-categories.
7132 (syms_of_category): Fix docstrings of word-separating-categories
7133 and word-combining-categories.
7134
1560f91a
EZ
71352008-10-21 Eli Zaretskii <eliz@gnu.org>
7136
7137 * coding.c (Fencode_coding_region, Fdecode_coding_region)
7138 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
7139
f4668441
MR
71402008-10-21 Martin Rudalics <rudalics@gmx.at>
7141
7142 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
7143 Rename arg "buffer" to "buffer_or_name".
7144 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
7145 it optional.
7146 (no_switch_window): Remove since the return value is not used.
a9b555d3 7147 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
7148 Consider window as dedicated when Fwindow_dedicated_p returns a
7149 non-nil value.
7150 * lisp.h: Remove prototype for no_switch_window.
7151
fd75ddb2
JD
71522008-10-21 Jan Djärv <jan.h.d@swipnet.se>
7153
7154 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 7155 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 7156
07295713
KH
71572008-10-21 Kenichi Handa <handa@m17n.org>
7158
7159 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
7160 check Vlatin_extra_code_table.
7161
712adc82
EZ
71622008-10-20 Eli Zaretskii <eliz@gnu.org>
7163
7164 * fileio.c (Fset_file_modes): Doc fix.
7165
f549eb0b
MA
71662008-10-19 Michael Albinus <michael.albinus@gmx.de>
7167
7168 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
7169 in arrays.
7170
aac0c6e3
MR
71712008-10-19 Martin Rudalics <rudalics@gmx.at>
7172
7173 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7174 Mention kill-buffer in doc-string.
7175 (Fset_window_buffer): Reinsert tem check removed in last commit.
7176 (Fenlarge_window, Fshrink_window): Have argument names and
7177 doc-string follow Elisp manual more closely.
7178
71792008-10-18 Eli Zaretskii <eliz@gnu.org>
7180
7181 * fileio.c (Fset_file_modes): Doc fix.
7182
71832008-10-18 Martin Rudalics <rudalics@gmx.at>
7184
7185 * window.c (Fwindow_width, Fset_window_start)
7186 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
7187 (Fdelete_windows_on, Freplace_buffer_in_windows):
7188 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
7189 (Fwindow_dedicated_p): Make window argument optional.
7190 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
7191 (Fset_window_buffer): Respect any non-nil dedicated value for
7192 window. Rename "buffer" argument to "buffer_or_name".
7193
71942008-10-18 Ulrich Mueller <ulm@gentoo.org>
7195
7196 * m/sh3.h: New file, machine description for SuperH.
7197
71982008-10-17 Martin Rudalics <rudalics@gmx.at>
7199
7200 * window.c (Fsplit_window): Rename arg horflag to horizontal.
7201
72022008-10-17 Kenichi Handa <handa@m17n.org>
7203
7204 * ftfont.c (ftfont_otf_features): Fix indexing
7205 gsub_gpos->FeatureList.Feature. Check the validity of indices.
7206
72072008-10-16 Magnus Henoch <mange@freemail.hu>
7208
7209 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
7210 (Fdbus_call_method_asynchronously): Ditto.
7211 This change makes C-h f display the argument list.
7212
72132008-10-16 Chong Yidong <cyd@stupidchicken.com>
7214
7215 * fileio.c (Fexpand_file_name): Doc fix.
7216
7217 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
7218 of :foreground and :background equivalent to unspecified (20.x
7219 compatibility).
7220
72212008-10-15 Eli Zaretskii <eliz@gnu.org>
7222
7223 * buffer.c (syms_of_buffer): Doc fix.
7224
72252008-10-14 Kenichi Handa <handa@m17n.org>
7226
7227 * font.c (font_clear_prop): When clearing font width, clear the
7228 average width field too.
7229
72302008-10-12 Andreas Schwab <schwab@suse.de>
7231
7232 * ftfont.c (ftfont_shape_by_flt): Make static.
7233 * ftfont.h (ftfont_shape_by_flt): Don't declare.
7234
7235 * font.c: Don't include <m17n-flt.h>.
7236
72372008-10-10 Eli Zaretskii <eliz@gnu.org>
7238
7239 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
7240
72412008-10-09 Eli Zaretskii <eliz@gnu.org>
7242
7243 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
7244 away code.
7245
72462008-10-09 Chong Yidong <cyd@stupidchicken.com>
7247
7248 * dispnew.c (update_text_area): Avoid looping due to large glyph
7249 overhangs (bug#1070).
7250
72512008-10-09 Kenichi Handa <handa@m17n.org>
7252
7253 * fontset.c (face_for_char): If face->fontset is negative, just
7254 return ascii_face.
7255
f5385255
SM
7256 * font.c (font_delete_unmatched): Fix previous change.
7257 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
7258
72592008-10-09 Martin Rudalics <rudalics@gmx.at>
7260
7261 * frame.c (Fraise_frame): On text-only terminals select frame in
7262 order to make it visible. (Bug#1061)
7263
72642008-10-08 Chong Yidong <cyd@stupidchicken.com>
7265
7266 * fontset.c (fontset_find_font): Check frame validity.
7267
72682008-10-07 Chong Yidong <cyd@stupidchicken.com>
7269
a9b555d3 7270 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
7271 (xg_display_close): Allow Emacs to close all displays (bug#985).
7272
72732008-10-06 Andreas Schwab <schwab@suse.de>
7274
f5385255 7275 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
7276
72772008-10-06 Chong Yidong <cyd@stupidchicken.com>
7278
f5385255 7279 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 7280
a9b555d3 7281 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
7282
7283 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
7284 during initialization.
7285
72862008-10-04 Eli Zaretskii <eliz@gnu.org>
7287
7288 * xdisp.c (redisplay_internal): If frame switched, redisplay the
7289 whole thing on MSDOS frames as well as on a TTY.
7290
7291 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
7292 well as for TTY.
7293 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
7294 well as on a TTY.
7295
7296 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
7297 as well as for TTY.
7298
7299 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
7300
7301 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
7302 MSDOS frames as well.
7303
73042008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7305
7306 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
7307 correct arguments.
b71ac3dd 7308 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
7309
73102008-10-03 Glenn Morris <rgm@gnu.org>
7311
7312 * emacs.c (USAGE1): Add --daemon.
7313
73142008-10-02 Eli Zaretskii <eliz@gnu.org>
7315
7316 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
7317 100, so it's in percents as advertised.
7318
73192008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7320
7321 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
7322 (ns_output.current_cursor, ns_output.desired_cursor)
7323 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
7324 (FRAME_NEW_CURSOR_COLOR): Remove.
7325
7326 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 7327 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
7328 enumeration (HOLLOW_BOX_CURSOR, etc.).
7329
7330 * nsterm.m (ns_frame_rehighlight): Remove commented code.
7331 (draw_window_cursor): Simplify code.
f5385255
SM
7332 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
7333 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 7334 updates manually.
a9b555d3
JB
7335 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
7336 Use core Emacs cursor types.
aac0c6e3 7337
b8ff72fa 7338 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
7339
73402008-10-02 Martin Rudalics <rudalics@gmx.at>
7341
7342 * process.c (Faccept_process_output): Fix doc-string.
7343
73442008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
7345
7346 * gmalloc.c (__sbrk): Also define for uClibc.
7347
7348 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
7349 for uClibc.
7350
73512008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7352
7353 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
7354 styles.
7355 (nsfont_open): Reenable the cache.
7356
73572008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7358
7359 * font.c (font_matching_entity): Reflect ATTRS in font selection.
7360 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
7361
73622008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
7363
7364 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
7365 a suspended terminal.
7366
73672008-09-30 Michael Albinus <michael.albinus@gmx.de>
7368
7369 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
7370
73712008-09-30 Eli Zaretskii <eliz@gnu.org>
7372
7373 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
7374
73752008-09-30 Chong Yidong <cyd@stupidchicken.com>
7376
7377 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
7378 in a continued line coincides with a line beginning.
7379
73802008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7381
7382 * nsfont.m (nsfont_trait_distance): Fix bug.
7383 (nsfont_list): Return a list rather than a vector (syncs with Handa
7384 changes of 2008-05-14).
7385 (nsfont_open): Improve logging.
7386
73872008-09-29 Andreas Schwab <schwab@suse.de>
7388
7389 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7390
73912008-09-28 Martin Rudalics <rudalics@gmx.at>
7392
7393 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
7394 name as char-resolve-modifiers.
7395 Reported by: Markus Triska <markus.triska@gmx.at>
7396
73972008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
7398
7399 * dispnew.c (init_display): Return earlier when running as a daemon.
7400
74012008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7402
7403 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
7404
74052008-09-27 Eli Zaretskii <eliz@gnu.org>
7406
7407 * composite.c (Fcomposition_get_gstring)
7408 (Fcompose_region_internal, Fcompose_string_internal)
7409 (Ffind_composition_internal): Doc fix.
7410 (syms_of_composite) <compose-chars-after-function>: Doc fix.
7411 (syms_of_composite) <auto-composition-function>: Doc fix.
7412 (syms_of_composite) <composition-function-table>: Doc fix.
7413
74142008-09-25 Chong Yidong <cyd@stupidchicken.com>
7415
7416 * search.c (wordify): New argument for lax word-ends.
7417 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
7418
74192008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
7420
7421 * lisp.h (is_daemon): Declare.
7422 * dispnew.c (init_display): Do not try to initialize the terminal
7423 when running as a daemon.
7424
74252008-09-22 Chong Yidong <cyd@stupidchicken.com>
7426
7427 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
7428 x_display_pixel_height.
7429
74302008-09-22 Martin Rudalics <rudalics@gmx.at>
7431
7432 * undo.c (record_point): Don't call Fundo_boundary for first
7433 change. (Bug#731)
7434
74352008-09-22 Juanma Barranquero <lekktu@gmail.com>
7436
7437 * emacs.c (Fdaemonp): Doc fix.
7438
74392008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
7440
7441 * emacs.c (main): Place #ifdef in the proper place.
7442
74432008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
7444
7445 * emacs.c (standard_args): Add --daemon.
7446 (main): Disconnect from the terminal when --daemon is passed.
7447 (is_daemon): New variable.
7448 (Fdaemonp): New function.
7449 (syms_of_emacs): Defsubr it.
7450
74512008-09-20 Chong Yidong <cyd@stupidchicken.com>
7452
7453 * xdisp.c (get_next_display_element): Handle string display
7454 correctly when checking for the end of a box run.
7455
74562008-09-20 Glenn Morris <rgm@gnu.org>
7457
7458 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
7459 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
7460 (Frename_file): Avoid copying to trash if a rename involves
7461 a delete. (Bug#964).
7462
74632008-09-20 Eli Zaretskii <eliz@gnu.org>
7464
7465 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
7466 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
7467 frames as well as termcap frames.
7468 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
7469 get_named_tty.
7470
74712008-09-19 Eli Zaretskii <eliz@gnu.org>
7472
7473 * process.c (procfs_system_process_attributes): Fix cmdline in
7474 case /proc/PID/cmdline is empty.
7475
7476 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
7477 x_display_pixel_height.
7478
74792008-09-19 Juanma Barranquero <lekktu@gmail.com>
7480
7481 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
7482
7483 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7484 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
7485
74862008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
7487
7488 * dispextern.h (struct it): Move line_wrap away from the middle of
7489 bitfields. Move voffset in struct iterator_stack_entry after the
7490 bitfields. Move tab_width near after another short.
7491
74922008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
7493
7494 * frame.h (struct frame): Move alpha from the middle of bitfields.
7495
7496 * window.h (struct window): Move frozen_window_start_p after the
7497 rest of the bitfields to reduce padding.
7498
74992008-09-18 Chong Yidong <cyd@stupidchicken.com>
7500
7501 * xterm.h (x_display_info): Remove `height' and `width' members.
7502
7503 * nsterm.h (ns_display_info): Remove `height' and `width' members.
7504
7505 * w32term.h (w32_display_info): Remove `height', `width',
7506 `height_in', and `width_in' members.
7507
b8ff72fa
SM
7508 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7509 New functions.
aac0c6e3
MR
7510 (x_calc_absolute_position): Use them.
7511 (x_term_init): Omit removed `height' and `width' members.
7512
b8ff72fa
SM
7513 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7514 New functions.
aac0c6e3
MR
7515 (w32_read_socket, x_calc_absolute_position): Use them.
7516 (w32_initialize_display_info, w32_term_init): Omit removed members
7517 of w32_display_info.
7518
b8ff72fa
SM
7519 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
7520 New functions.
7521 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 7522
b8ff72fa
SM
7523 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7524 New functions.
aac0c6e3
MR
7525 (x_calc_absolute_position): Use them.
7526 (x_term_init): Omit removed `height' and `width' members.
7527
7528 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
7529 (compute_tip_xy):
7530 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
7531 * xmenu.c (menu_position_func): Use x_display_pixel_height and
7532 x_display_pixel_width.
7533
75342008-09-18 Kenichi Handa <handa@m17n.org>
7535
7536 * composite.c (fill_gstring_header): Don't check FROM and TO here.
7537 (composition_compute_stop_pos): Fix handling of static composition.
7538 (Fcomposition_get_gstring): Check FROM and TO at first.
7539
75402008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7541
46e722a9 7542 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
7543 mixup (YAILOM).
7544
75452008-09-17 Chong Yidong <cyd@stupidchicken.com>
7546
7547 * indent.c (Fvertical_motion): Use position reported by iterator
7548 instead of PT for determining screen motion (bug#943).
7549
75502008-09-17 Romain Francoise <romain@orebokech.com>
7551
7552 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
7553
75542008-09-17 Kenichi Handa <handa@m17n.org>
7555
7556 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
7557
7558 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
7559 if necessary.
7560
75612008-09-16 Kenichi Handa <handa@m17n.org>
7562
7563 * coding.c (make_conversion_work_buffer): Avoid calling
7564 Fget_buffer_create if it is not necessary.
7565
75662008-09-15 Martin Rudalics <rudalics@gmx.at>
7567
7568 * window.c (Fselect_window): Don't update window_select_count and
7569 use_time when norecord is not nil.
7570
75712008-09-14 Kenichi Handa <handa@m17n.org>
7572
7573 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
7574 specpdl_ptr.
7575
75762008-09-12 Kenichi Handa <handa@m17n.org>
7577
7578 * indent.c (scan_for_column): Don't handle automatic composition
7579 if the current buffer is not associated with a window.
7580
7581 * composite.c (composition_reseat_it): If the current buffer is
7582 not associated with a window, ignore the automatic composition.
7583 (find_automatic_composition): Likewise.
7584
75852008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7586
7587 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
7588 (Fgpm_mouse_stop): Use it.
7589 * termhooks.h (close_gpm): Declare.
7590 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
7591 connection if Gpm_GetEvent fails.
7592
7593 * window.c (set_window_buffer): Always preserve current-buffer.
7594
75952008-09-12 Glenn Morris <rgm@gnu.org>
7596
7597 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
7598
75992008-09-11 Glenn Morris <rgm@gnu.org>
7600
7601 * charset.c (charset-map-path): Doc fix.
7602
76032008-09-10 Kenichi Handa <handa@m17n.org>
7604
7605 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
7606
7607 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
7608 compose a grapheme cluster with the preceding base glyph.
7609
7610 * composite.c (composition_compute_stop_pos): Fix previous change.
7611 Reset cmp_it->id to -1 at first.
7612
76132008-09-10 Glenn Morris <rgm@gnu.org>
7614
7615 * Makefile.in (character.o, chartab.o): Fix config.h typo.
7616
76172008-09-09 Chong Yidong <cyd@stupidchicken.com>
7618
7619 * keyboard.c (read_key_sequence): Reapply translation maps when
7620 switching keyboards.
7621
76222008-09-09 Kenichi Handa <handa@m17n.org>
7623
7624 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
7625 characters.
7626
7627 * composite.c (FORWARD_CHAR): Fix calculation
7628 of (POSITION).pos_byte.
7629 (composition_compute_stop_pos): Limit the search of composition to
7630 at most 500 characters ahead. If we reach the limit or find a
7631 newline, set cmp_it->ch to -2 and return 0.
7632 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
7633
76342008-09-08 Kenichi Handa <handa@m17n.org>
7635
7636 * indent.c (Fvertical_motion): Be sure to set
7637 it_overshoot_expected if it.cmp_it.id is non-negative.
7638
76392008-09-07 Andreas Schwab <schwab@suse.de>
7640
7641 * callproc.c (Fcall_process): Don't hold references to string data
7642 across garbage collection. Move initialisation of new_argv down
7643 to avoid compiler bug.
7644
76452008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7646
7647 * process.c (Fsystem_process_attributes): Doc fix.
7648
76492008-09-07 Chong Yidong <cyd@stupidchicken.com>
7650
7651 * callproc.c (Fcall_process): Canonicalize current directory name.
7652
7653 * xdisp.c (move_it_to): When moving by vpos, ensure that the
7654 iterator advances to the next line if the current line ends in a
7655 continued tab.
7656
76572008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
7658
7659 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7660 member to point to cmp_from.
7661
7662 * xdisp.c: Doc fix for references to gidx data member.
7663
76642008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7665
7666 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7667
76682008-09-07 Kenichi Handa <handa@m17n.org>
7669
7670 * composite.c (FORWARD_CHAR): Check STOP after
7671 incrementing (POSITION).pos.
7672
76732008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7674
7675 * process.c (Fsystem_process_attributes): Doc fix.
7676
76772008-09-06 Chong Yidong <cyd@stupidchicken.com>
7678
7679 * keyboard.c (Ftop_level): Doc fix.
7680
76812008-09-06 Eli Zaretskii <eliz@gnu.org>
7682
7683 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7684 minibuffer, don't let lower part of menu invade the echo area.
7685
7686 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7687 "char *q" to access menu text and advance through it. Revert the
7688 change that displayed ">" instead of ASCII character 0x10.
7689
76902008-09-05 Eli Zaretskii <eliz@gnu.org>
7691
7692 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7693 toggle boxes and radio buttons on MS-DOS as well.
7694
76952008-09-05 Kenichi Handa <handa@m17n.org>
7696
7697 * composite.c (autocmp_chars): Check lookback count.
7698 (composition_compute_stop_pos): Set cmp_it->lookback.
7699 (composition_reseat_it): Check lookback count.
7700 (struct position_record): New struct.
7701 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7702 (find_automatic_composition): New function.
7703 (composition_adjust_point): Use find_automatic_composition.
7704
7705 * dispextern.h (struct composition_it): New member lookback.
7706
77072008-09-02 Chong Yidong <cyd@stupidchicken.com>
7708
7709 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7710 if moving by a single line.
7711
77122008-09-02 Andreas Schwab <schwab@suse.de>
7713
7714 * xterm.c (x_delete_display): Fix merge error.
7715
7716 * fileio.c (Fexpand_file_name): Remove unused variables.
7717
77182008-09-02 Eli Zaretskii <eliz@gnu.org>
7719
7720 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7721 storage on all platforms, not just on DOS_NT.
7722
77232008-09-02 Jason Rumney <jasonr@gnu.org>
7724
b8ff72fa
SM
7725 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7726 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
7727
77282008-09-01 Chong Yidong <cyd@stupidchicken.com>
7729
7730 * xfaces.c (Finternal_set_alternative_font_family_alist)
7731 (Finternal_set_alternative_font_registry_alist): Properly copy
7732 entire alist structure.
7733
77342008-09-01 Kenichi Handa <handa@m17n.org>
7735
d66c0241 7736 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 7737 representative chars of the script is a vector.
d66c0241
JB
7738 (ftfont_list): Handle the case where the representative chars of
7739 the script is a vector.
aac0c6e3
MR
7740
7741 * character.c (syms_of_character): Docstring of
7742 script-representative-chars fixed.
7743
77442008-08-31 Eli Zaretskii <eliz@gnu.org>
7745
7746 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7747 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7748 the menu. Allocate larger buffer for `text', to account for
7749 possible ^C characters.
7750
77512008-08-31 Martin Rudalics <rudalics@gmx.at>
7752
7753 * xdisp.c (prepare_menu_bars): Don't call
7754 Vwindow_size_change_functions with arg Qt.
7755
77562008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7757
7758 * font.h (font_range):
7759 * fileio.c (report_file_error):
46e722a9
SM
7760 * composite.c (composition_update_it): Yet another int/Lisp_Object
7761 mixup (YAILOM).
aac0c6e3
MR
7762
77632008-08-30 Glenn Morris <rgm@gnu.org>
7764
7765 * data.c (Fmake_variable_frame_local): Doc fix.
7766
7767 * frame.c (Fmodify_frame_parameters): Doc fix.
7768
77692008-08-30 Eli Zaretskii <eliz@gnu.org>
7770
7771 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7772 needed by GetTokenInformation.
7773 (w32_system_process_attributes): Check return values of all system
7774 APIs.
7775
7776 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7777 only when the state changes.
7778 (IT_update_begin, IT_update_end): Add termscript trace.
7779
7780 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7781 clipboard is unavailable. Set dst to NULL if it doesn't point to
7782 malloc'ed data.
7783 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7784 passing random values to xfree.
7785
7786 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 7787 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
7788
77892008-08-29 Jason Rumney <jasonr@gnu.org>
7790
7791 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7792
77932008-08-29 Eli Zaretskii <eliz@gnu.org>
7794
7795 * composite.c (fill_gstring_body): Avoid compiler warnings.
7796
7797 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7798 LGLYPH_SET_CODE to avoid compiler warnings.
7799
2ae37cf0 7800 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
7801
7802 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7803
7804 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7805 LGLYPH_SET_CODE.
7806
78072008-08-29 Kenichi Handa <handa@m17n.org>
7808
7809 * fileio.c (report_file_error): Don't downcase the first character
7810 of errstring if it is still unibyte.
7811
78122008-08-29 Kenichi Handa <handa@m17n.org>
7813
7814 These changes are to re-implement the automatic composition so
7815 that it doesn't use text properties.
7816
7817 * Makefile.in (ftfont.o): Depend on composite.h.
7818 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7819
7820 * character.h (Vunicode_category_table): Extern it.
7821
7822 * character.c (Vunicode_category_table): New variable.
7823 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7824
7825 * chartab.c (optimize_sub_char_table): Perform more greedy
7826 optimization.
7827
b8ff72fa
SM
7828 * composite.h (enum composition_method):
7829 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
7830 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7831 (Vcomposition_function_table): Extern it.
7832 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7833 (composition_gstring_put_cache, composition_gstring_from_id)
7834 (composition_gstring_p, composition_gstring_width)
7835 (composition_compute_stop_pos, composition_reseat_it)
7836 (composition_update_it, composition_adjust_point): Extern them.
7837 (Fcomposition_get_gstring): EXFUN it.
7838
d66c0241 7839 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
7840 (Vcomposition_function_table)
7841 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
7842 (gstring_hash_table, gstring_work, gstring_work_headers):
7843 New variables.
aac0c6e3
MR
7844 (gstring_lookup_cache, composition_gstring_put_cache)
7845 (composition_gstring_from_id, composition_gstring_p)
7846 (composition_gstring_width, fill_gstring_header)
7847 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7848 (composition_reseat_it, composition_update_it)
b8ff72fa 7849 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
7850 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7851 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 7852 Defsubr composition_get_gstring.
aac0c6e3
MR
7853
7854 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7855 cmp_id.
7856 (struct glyph_string): Delete the member gidx. New members
7857 cmp_id, cmp_from, and cmp_to.
7858 (enum it_method): Delete GET_FROM_COMPOSITION.
7859 (struct composition_it): New struct.
7860 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7861 Delete c, len, cmp_id, cmp_len in u.comp.
7862
7863 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 7864 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 7865 (enum lglyph_indices): Likewise.
b8ff72fa 7866 (font_range): Adjust extern.
aac0c6e3
MR
7867 (font_fill_lglyph_metrics): Extern it.
7868
7869 * font.c (QCf): New variable.
7870 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7871 (font_prepare_composition): Delete this function.
7872 (font_range): Type and arguments changed.
7873 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7874 (font_fill_lglyph_metrics): New function.
b8ff72fa 7875 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 7876 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
7877 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7878 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
7879
7880 * fontset.h (font_for_char): Extern it.
7881
7882 * fontset.c (font_for_char): New function.
7883
7884 * ftfont.c: Include composite.h.
7885 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 7886 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
7887
7888 * indent.c: Include composite.h and dispextern.h.
7889 (check_composition): Delete this function.
7890 (scan_for_column): Handle composition by
7891 composition_compute_stop_pos, composition_reseat_it, and
7892 composition_update_it.
7893 (compute_motion): Likewise.
7894 (Fvertical_motion): Fix checking of composition.
7895
7896 * keyboard.c (adjust_point_for_property): Check composition by
7897 composition_adjust_point.
7898
b8ff72fa 7899 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
7900 struct glyph_string.
7901
b8ff72fa
SM
7902 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7903 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
7904 struct glyph.
7905 (produce_composite_glyph): Likewise.
7906
b8ff72fa
SM
7907 * w32term.c (x_draw_composite_glyph_string_foreground):
7908 Adjust for the change of struct glyph_string.
aac0c6e3
MR
7909 (x_draw_glyph_string): Likewise.
7910
7911 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7912 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7913
7914 * xdisp.c: Include font.h.
7915 (it_props): Delete the entry for Qauto_composed.
7916 (init_iterator): Initialize it->cmp_it.id to -1.
7917 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 7918 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
7919 (handle_auto_composed_prop): Delete it.
7920 (handle_composition_prop): Handle only static composition.
7921 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7922 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 7923 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
7924 (pop_it): Likewise.
7925 (get_next_element): Delete next_element_from_composition.
7926 (CHAR_COMPOSED_P): New macro.
7927 (get_next_display_element): For automatic composition, get a face
7928 from the font in the glyph-string.
7929 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 7930 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
7931 (next_element_from_string): Check if the character at the current
7932 position is composed by CHAR_COMPOSED_P.
7933 (next_element_from_buffer): Likewise.
d66c0241
JB
7934 (next_element_from_composition): Adjust for the change of struct it.
7935 Update it->cmp_it.
b8ff72fa
SM
7936 (dump_glyph): Adjust for the change of struct glyph.
7937 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
7938 it and struct glyph. Don't handle automatic composition here.
7939 (fill_gstring_glyph_string): New function.
7940 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 7941 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
7942 (BUILD_GSTRING_GLYPH_STRING): New macro.
7943 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7944 automatic composition.
b8ff72fa 7945 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 7946 struct glyph.
b8ff72fa 7947 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 7948
b8ff72fa 7949 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
7950 the change of struct glyph_string.
7951 (x_draw_glyph_string): Likewise.
7952
79532008-08-29 Glenn Morris <rgm@gnu.org>
7954
7955 * buffer.c (word-wrap): Doc fix.
7956 * xdisp.c (truncate-partial-width-windows): Doc fix.
7957 Increase default to 50.
7958
79592008-08-29 Chong Yidong <cyd@stupidchicken.com>
7960
7961 * xdisp.c (update_tool_bar_unwind): New function.
7962 (update_tool_bar): Temporarily set selected frame before building
7963 tool-bar items.
7964
79652008-08-28 Michael Albinus <michael.albinus@gmx.de>
7966
7967 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7968 snprintf, respectively.
7969 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7970
79712008-08-28 Chong Yidong <cyd@stupidchicken.com>
7972
7973 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7974 LDFLAGS to GNUstep CC invocation.
7975
79762008-08-27 Chong Yidong <cyd@stupidchicken.com>
7977
7978 * indent.c (Fvertical_motion): Revert last change. Handle the
7979 general case where we are moving forward, and PT spans multiple
7980 screen lines.
7981
7982 * eval.c (find_handler_clause): Temporarily increase
7983 max-lisp-eval-depth while printing the backtrace buffer, to
7984 guarantee that help-mode code can run.
7985
79862008-08-27 Eli Zaretskii <eliz@gnu.org>
7987
7988 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7989 colors under -rv.
7990 (IT_set_frame_parameters): Don't swap foreground and background
7991 colors if `(reverse . t)' is present in the frame properties.
7992 (internal_terminal_init): Call init_frame_faces only for the
7993 initial frame.
7994
79952008-08-27 Andreas Schwab <schwab@suse.de>
7996
7997 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7998
79992008-08-27 Andreas Schwab <schwab@suse.de>
8000
8001 * search.c (search_buffer): Set char_base to zero only at the end.
8002
80032008-08-27 Kenichi Handa <handa@m17n.org>
8004
b8ff72fa 8005 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
8006
80072008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
8008
8009 * xterm.c (x_term_init): Temporarily hide the partially
8010 initialized terminal while calling vendor-specific-keysyms.
8011
80122008-08-26 Eli Zaretskii <eliz@gnu.org>
8013
8014 * msdos.c (internal_terminal_init): Most initializations done only
8015 once, especially initial_screen_colors[] and termscript open.
8016
80172008-08-26 Chong Yidong <cyd@stupidchicken.com>
8018
8019 * eval.c (Fcondition_case): Doc fix.
8020
8021 * widgetprv.h (EmacsFramePart): Change font member to the new font
8022 struct.
8023
8024 * widget.c: Include character.h and font.h for XSETFONT.
8025 (setup_frame_gcs): Compute X font id from font struct, just once.
8026
80272008-08-26 Eli Zaretskii <eliz@gnu.org>
8028
8029 * term.c (get_named_tty): Fix last change.
8030
80312008-08-26 Chong Yidong <cyd@stupidchicken.com>
8032
8033 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 8034 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
8035
80362008-08-25 Eli Zaretskii <eliz@gnu.org>
8037
8038 * frame.c (do_switch_frame): Mark previously displayed frame as
8039 obscured for FRAME_MSDOS_P frames as well.
8040
80412008-08-24 Eli Zaretskii <eliz@gnu.org>
8042
8043 * frame.c (make_terminal_frame): Initialize f->terminal,
8044 f->terminal->reference_count, and scroll bars on MS-DOS as well.
8045 Set the top frame to newly created frame.
8046 (Fmake_terminal_frame): Reuse the_only_display_info.
8047
8048 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
8049 estimating available memory.
8050
b97439ce 80512008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
8052
8053 * nsterm.m (ns_draw_window_cursor): Don't call
8054 NSDisableScreenUpdates and NSEnableScreenUpdates on
8055 non-NS_IMPL_COCOA systems.
8056
80572008-08-23 Andreas Schwab <schwab@suse.de>
8058
8059 * process.c (procfs_system_process_attributes): Fix use of
8060 uninitialized variables.
8061
80622008-08-23 Eli Zaretskii <eliz@gnu.org>
8063
8064 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
8065
8066 * dispnew.c (init_display): Remove MS-DOS specific conditions for
8067 calling tty-set-up-initial-frame-faces.
8068
b8ff72fa
SM
8069 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
8070 Allow MSDOS frames along with X frames.
aac0c6e3
MR
8071
8072 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
8073 addition to output_termcap.
8074
8075 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
8076
8077 * termchar.h (FRAME_TTY): Support output_msdos_raw.
8078 (struct tty_display_info) [MSDOS]: Add fields related to mouse
8079 highlight.
8080
8081 * process.c [!subprocesses]: Define QCname.
8082 (syms_of_process): Intern and staticpro it.
8083
8084 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
8085 Adjust for changes in encoding/decoding routines.
8086 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
8087 encode_coding and decode_coding.
8088
b8ff72fa 8089 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
8090
8091 * dosfns.c: Include frame.h before termhooks.h.
8092 (dos_cleanup): Use CURTTY ()->termscript instead of a global
8093 variable termscript.
8094
8095 * s/msdos.h (USER_FULL_NAME): Define.
8096 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
8097
8098 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
8099 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
8100 pw->pw_gecos.
8101
8102 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
8103 SELECTED_FRAME as additional (1st) argument.
8104 (tty_read_avail_input): Handle output_msdos_raw in
8105 addition to output_termcap.
8106
8107 * msdos.c: Include frame.h before termhooks.h.
8108 (mouse_on, mouse_off, mouse_moveto, mouse_init)
8109 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
8110 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
8111 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
8112 (IT_set_terminal_modes, IT_reset_terminal_modes)
8113 (IT_set_frame_parameters): Use tty->termscript instead of a global
8114 variable termscript.
8115 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
8116 global variable terminal_coding. Don't refer to
8117 Vnonascii_translation_table.
8118 (internal_terminal_init): Set Vwindow_system in current_kboard.
8119 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
8120 Announce date and time of session start, if termscript is open.
8121 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
8122 term.c:init_tty). Open termscript only of not already open.
8123 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
8124 here instead of dos_ttraw. Don't initialize display if this is an
8125 initial tty. Don't set FRAME_FONT.
8126 (Vwindow_system_version): Bump to 23.
8127 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
8128 is available, set up mouse_position_hook.
8129 (dos_ttraw, IT_set_terminal_modes): If called with initial
8130 terminal, do nothing.
8131 (IT_set_frame_parameters): Handle the Qtty_type frame
8132 parameter by calling internal_terminal_init.
8133 (dos_set_window_size, show_mouse_face)
8134 (clear_mouse_face, IT_note_mode_line_highlight)
8135 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
8136 (dos_rawgetc): Use tty_display_info instead of x_display_info.
8137 (initialize_msdos_display): New function.
8138 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
8139 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
8140 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
8141 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 8142 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
8143 (request_sigio, unrequest_sigio): Don't define, now defined on
8144 sysdep.c.
8145 (IT_write_glyphs): Rewrite to use encode_terminal_code.
8146
8147 * term.c [MSDOS]: Include msdos.h.
8148 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
8149 conditional to DOS_NT. Allow only one call to this function in a
8150 session. Don't allocate a new struct tty_display_info; instead,
8151 reuse the_only_display_info. Call get_tty_size to get screen
8152 dimensions. Call init_baud_rate to set bad_rate.
8153 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
8154 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 8155 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
8156 (get_tty_terminal, get_named_tty, Ftty_type)
8157 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
8158 output_termcap.
b8ff72fa
SM
8159 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
8160 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 8161 only when subprocesses are supported.
aac0c6e3
MR
8162
8163 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
8164 f->output_data.x.
8165 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
8166 terminal devices.
8167
5582fbc7 8168 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
8169 x_output.
8170 (FRAME_FONT): Use output_data.tty.
8171 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
8172 (struct x_display_info): Rename from display_info. Update all users in
8173 msdos.c.
aac0c6e3 8174 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 8175 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
8176 (dos_ttraw): Update prototype.
8177
8178 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
8179 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
8180
81812008-08-23 Jason Rumney <jasonr@gnu.org>
8182
8183 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
8184 (fn_TIFFSetDirectory): New library function used.
8185 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
8186 (tiff_load): Use :index to select among multiple images. Set count
8187 property when multiple images exist.
8188 (gif_format): Use :index, not :image.
8189
81902008-08-23 Chong Yidong <cyd@stupidchicken.com>
8191
8192 * xdisp.c (try_scrolling): Check INT_MAX instead of
8193 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
8194 to obtain INT_MAX.
8195
81962008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
8197
8198 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
8199
82002008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
8201
8202 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
8203 GNUstep library location.
8204
82052008-08-21 Chong Yidong <cyd@stupidchicken.com>
8206
8207 * xfaces.c (x_update_menu_appearance): Check validity of menu font
8208 before using it.
8209
8210 * puresize.h (BASE_PURESIZE): Increase to 1250000.
8211
82122008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8213
8214 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
8215 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
8216 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
8217 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
8218 (EmacsApp-cursor_blink_handler): Remove declaration.
8219 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
8220 match 01 Feb 2008 changes in xterm.c.
8221 (ns_read_socket): Add cast to avoid warning.
8222 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
8223 GNUstep.
8224
82252008-08-20 Chong Yidong <cyd@stupidchicken.com>
8226
8227 * xselect.c (x_get_foreign_selection): Return nil if desired
8228 selection could not be obtained, instead of signalling an error.
8229
82302008-08-20 David Reitter <david.reitter@gmail.com>
8231
8232 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
8233 * nsterm.m: Remove ns-specific code for cursor blinking.
8234 (ns_draw_window_cursor): Clear cursor properly rather than
8235 redrawing the area. Respect width of bar cursors.
8236 These changes enable the use of generic blink-cursor-mode and
8237 generic cursor types in NS and support smooth cursor movements (do
8238 not blink off after command).
8239 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
8240 Nextstep, too.
8241
82422008-08-19 Kenichi Handa <handa@m17n.org>
8243
8244 * font.c (Vfont_log_deferred): New variable.
8245 (font_add_log): Check Vfont_log_deferred.
8246 (font_deferred_log): New function.
8247
8248 * font.h (font_deferred_log): Extern it.
8249
8250 * fontset.c (reorder_font_vector): Use encoding charset of fonts
8251 for sorting.
8252 (face_for_char): Use deferred log.
8253
82542008-08-18 Kenichi Handa <handa@m17n.org>
8255
8256 * fontset.c (face_for_char): Add font log.
8257
8258 * font.c (font_add_log): Add the font properties :script, :lang,
8259 and :otf in the log.
8260
82612008-08-17 Chong Yidong <cyd@stupidchicken.com>
8262
8263 * xdisp.c: Remove dead code.
8264 (handle_invisible_prop, next_overlay_string): Defer call to
8265 setup_for_ellipsis.
8266 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
8267
82682008-08-15 Chong Yidong <cyd@stupidchicken.com>
8269
8270 * xfaces.c (lookup_derived_face): Properly handle possible zero
8271 return value of get_lface_attributes.
8272 (merge_faces): Don't tell lookup_derived_face to signal an error
8273 if face is not found.
8274
8275 * dired.c (Fdirectory_files): Doc fix.
8276
8277 * process.c (make_process): Initialize kill_without_query struct
8278 member.
8279
82802008-08-15 Eli Zaretskii <eliz@gnu.org>
8281
8282 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
8283 Alternative calculation of totphys for Visual Studio 6.
8284
8285 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
8286
8287 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
8288 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
8289 All users changed.
8290 (stat): Only root directory passed to GetDriveType. Allow RAM
8291 disk as well as local fixed disk when w32-get-true-file-attributes
8292 is set to `local'.
8293 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
8294 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
8295 (w32_cached_id, w32_add_to_cache): New functions.
8296 (get_name_and_id): Look account names in the cache before calling
8297 lookup_account_sid.
8298 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
8299 New initialization flags.
8300 (globals_of_w32): Initialize them to zero.
8301 (w32_system_process_attributes): Use w32_cached_id and
8302 w32_add_to_cache.
8303
83042008-08-14 Lawrence Mitchell <wence@gmx.li>
8305
8306 * lread.c (Fread_char, Fread_char_exclusive): If no character
8307 event is read before timeout is reached, return nil, rather than
8308 converting to a number.
8309
83102008-08-14 Chong Yidong <cyd@stupidchicken.com>
8311
8312 * fns.c (use_dialog_box): Doc fix.
8313
8314 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
8315 on OS X.
8316
83172008-08-13 Chong Yidong <cyd@stupidchicken.com>
8318
8319 * frame.c (Qns_parse_geometry): New var.
8320 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
8321
83222008-08-11 Chong Yidong <cyd@stupidchicken.com>
8323
8324 * xdisp.c (x_produce_glyphs): Handle the case when font has no
8325 space character in calculating tabs.
8326
83272008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
8328
8329 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
8330
83312008-08-10 Glenn Morris <rgm@gnu.org>
8332
8333 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
8334 silence gcc "limited range of data type" warnings in some
8335 make_fixnum_or_float calls.
8336
83372008-08-09 Eli Zaretskii <eliz@gnu.org>
8338
8339 * w32.c (w32_system_process_attributes): If the process does not
8340 exist, return nil.
8341
8342 * w32.c: Include thelp32.h, psapi.h and coding.h.
8343 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
8344 declarations.
8345 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
8346 (Process32Next_Proc): New typedefs.
8347 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
8348 (g_b_init_process32_next, g_b_init_open_thread_token)
8349 (g_b_init_impersonate_self, g_b_init_revert_to_self)
8350 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
8351 (g_b_init_get_process_working_set_size)
8352 (g_b_init_global_memory_status_ex): New static variables.
8353 (globals_of_w32): Initialize them.
8354 (create_toolhelp32_snapshot, process32_first, process32_next)
8355 (open_thread_token, impersonate_self, revert_to_self)
8356 (get_process_memory_info, get_process_working_set_size)
8357 (global_memory_status, global_memory_status_ex): New wrapper
8358 functions.
8359 (w32_list_system_processes, w32_system_process_attributes)
8360 (enable_privilege, restore_privilege, ltime, process_times):
8361 New functions.
8362 (convert_time_raw): New function.
8363 (convert_time): Remove conversion of FILETIME into time in 100
8364 nsec units, call convert_time_raw instead.
8365
8366 * process.h (w32_list_system_processes, w32_system_process_attributes):
8367 Add prototypes.
8368 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
8369 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
8370 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
8371 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
8372
8373 * process.c (Fsystem_process_attributes): Doc fix.
8374
83752008-08-08 Chong Yidong <cyd@stupidchicken.com>
8376
8377 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
8378 a continued multi-char glyph; if so, advance to the actual glyph.
8379
83802008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8381
8382 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
8383
8384 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
8385 (.m.o): Use it.
8386 * config.in: Regenerate.
8387
83882008-08-07 Chong Yidong <cyd@stupidchicken.com>
8389
8390 * xdisp.c (redisplay_window): Revert last change.
8391 (try_window): Check bottom scroll margin too.
8392
83932008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8394
8395 * config.in: Regenerate.
8396
8397 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
8398 -list-load-path-shadows'.
8399 (nsgui.h): Reduce number of things depending on it.
8400
84012008-08-06 Chong Yidong <cyd@stupidchicken.com>
8402
8403 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
8404 instead of window-end which does the wrong thing at eob.
8405 (try_cursor_movement): Minor optimization.
8406 (redisplay_window): If scroll margin is defined, don't assume
8407 window doesn't need scrolling.
8408
84092008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8410
8411 * config.in: Regenerate.
8412
8413 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
8414 (mostlyclean): Don't delete *.d under NS.
8415
8416 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
8417
84182008-08-06 Kenichi Handa <handa@m17n.org>
8419
8420 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
8421
84222008-08-06 Andreas Schwab <schwab@suse.de>
8423
8424 * config.in: Regenerate.
8425
84262008-08-05 Chong Yidong <cyd@stupidchicken.com>
8427
8428 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
8429 forcing a window start.
8430
8431 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
8432 (auto_save_1): Update modtime when auto-save-list-file-name is on.
8433
84342008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8435
8436 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
8437 argument.
8438
84392008-08-05 Juanma Barranquero <lekktu@gmail.com>
8440
8441 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
8442 <scroll-down-aggressively, before-change-functions>:
8443 <after-change-functions>: Reflow docstrings.
8444
84452008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8446 Ken Raeburn <raeburn@gnu.org>
8447
8448 Dock menu customization, based on a patch by Ken Raeburn, plus some
8449 other fixes.
8450 * nsmenu.m (dockMenu): New variable.
8451 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
8452
8453 * nsterm.h (dockMenu): Declare.
8454
8455 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
8456 (ns_term_init): Initialize dockMenu.
8457 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
8458 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
8459 left.
8460
8461 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
8462
84632008-08-04 Chong Yidong <cyd@stupidchicken.com>
8464
8465 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
8466
8467 * config.in: Regenerate.
8468
84692008-08-04 Seiji Zenitani <zenitani@mac.com>
8470
8471 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
8472
84732008-08-04 Chong Yidong <cyd@stupidchicken.com>
8474
8475 * nsterm.h (find_and_call_menu_selection): Fix prototype.
8476
84772008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8478
8479 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
8480
8481 * keyboard.h: Comment an #endif.
8482
8483 * lisp.h (have_menus_p): Adjust comment.
8484
8485 * menu.c (find_and_return_menu_selection): Fix comparison with
8486 client_data.
8487
8488 * nsmenu.m (popup_activated_flag): New variable.
8489 (popup_activated): New function.
8490 (menu-or-popup-active-p): New exported lisp definition.
8491 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
8492 when popup done.
8493 (ns_popup_dialog): Set popup_activated_flag.
8494
8495 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
8496 version for GNUstep (handled by conditional typedef in nsterm.m).
8497 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
8498 in rgb.txt).
8499
8500 * process.c (init_process): Use DARWIN_OS, not DARWIN.
8501
8502 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
8503
8504 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
8505
8506 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
8507 shortcircuit if popup_activated like GTK and X toolkit.
8508
8509 * m/inter386.h: Change DARWIN to DARWIN_OS.
8510
8511 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
8512 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
8513 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
8514 comment on NO_SOCK_SIGIO.
8515
85162008-08-03 Chong Yidong <cyd@stupidchicken.com>
8517
8518 * nsterm.m (windowDidResize): Remove stopModal call.
8519
85202008-08-03 Andreas Schwab <schwab@suse.de>
8521
8522 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
8523 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
8524
85252008-08-02 Chong Yidong <cyd@stupidchicken.com>
8526
8527 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
8528 Don't use uninitialized pointer variable when using getrlimit.
8529
85302008-08-02 Jason Rumney <jasonr@gnu.org>
8531
8532 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
8533
85342008-08-02 Eli Zaretskii <eliz@gnu.org>
8535
8536 * alloc.c (NSTATICS): Bump to 0x640.
8537
8538 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
8539
8540 * lisp.h: Add prototype for directory_files_internal.
8541
8542 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
8543 New functions.
8544 (syms_of_process): Defsubr them. Add initializations for various
8545 Q* symbols used in procfs_system_process_attributes.
8546 (procfs_list_system_processes, procfs_system_process_attributes)
8547 [HAVE_PROCFS]: New functions.
8548 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
8549 (procfs_get_total_memory): New functions.
8550
85512008-08-01 Juanma Barranquero <lekktu@gmail.com>
8552
8553 * xfaces.c (Fx_load_color_file): Fix previous change;
8554 it is #ifdef WINDOWSNT, not WINDOWS_NT.
8555
85562008-08-01 Michael Albinus <michael.albinus@gmx.de>
8557
8558 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
8559
85602008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8561
8562 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
8563
85642008-08-01 Chong Yidong <cyd@stupidchicken.com>
8565
8566 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
8567
8568 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
8569 define NSApplicationDelegateReplySuccess.
8570 (EmacsView -converstationIdentifier): Use long instead of
8571 NSInteger for GNUstep, since it doesn't have NSInteger.
8572
8573 * xmenu.c: Revert last change.
8574
8575 * keyboard.h: Fix last change.
8576
85772008-08-01 Juanma Barranquero <lekktu@gmail.com>
8578
8579 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
8580 on Windows.
8581
85822008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8583
8584 Warning clearing and clean-up in NS port.
8585 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
8586 Add prototypes.
8587 * nsgui.h (FACE_DEFAULT): Remove, unused.
8588 (XGCValues): Change colors to unsigned long.
8589 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
8590 nsterm.m.
8591 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
8592 (ns_list_fonts): Remove, unused.
8593 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
8594 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
8595 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
8596 (nsfont_draw): Compare face colors to 0, not nil.
8597 * nsmenu.m (struct widget_value): Drop unneeded declaration.
8598 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
8599 (-addSubmenuWithTitle:): Use NSMenuItem class.
8600 (ns_popup_menu): Use NO, not NULL, for enabled setting.
8601 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
8602 (ns_clip_to_row): Make gc arg a BOOL.
8603 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
8604 ns_clip_to_row() call.
8605 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
8606 used). Cast FRAME_FONT assignments.
8607 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
8608 (ns_string_to_lispmod): Change arg to const char.
8609 (ns_term_init): Use NSMenuItem class.
8610 (EmacsApp -openFile:): Move to different section of file.
8611 (EmacsApp -application:openFiles:): Don't return a value, call
8612 -replyToOpenOrPrint:.
8613 (EmacsView -keyDown:): Fix up cast.
8614 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
8615 (EmacsView -menuDown:): Cast tag in call to
8616 find_and_call_menu_selection().
8617 (ns_list_fonts): Remove, unused.
8618 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
8619 (ns_fontname_to_xlfd): Make static.
8620 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
8621 Remove prototypes (now in keyboard.h).
8622 (next_menubar_widget_id): Remove, unused.
8623 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
8624 Remove prototypes (now in keyboard.h).
8625 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
8626
86272008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
8628
8629 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
8630 (floatfns.o): Depend on syssignal.h.
8631 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
8632
8633 * systty.h: Fix previous change that removed BSD_TERMIOS.
8634 Add comments to #ifdefs.
8635
86362008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8637
8638 * w32fns.c (w32-load-color-file): Remove.
8639 (x-open-connection): Use renamed Fx_load_color_file.
8640 * xfaces.c (x-load-color-file): Add.
8641 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
8642 Emacs.clr.
8643 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
8644
86452008-07-31 Michael Albinus <michael.albinus@gmx.de>
8646
8647 * dbusbind.c (Fdbus_call_method_asynchronously)
8648 (Fdbus_method_error_internal): New defuns.
8649 (xd_read_message): Handle also reply messages.
8650 (Vdbus_registered_functions_table): Extend docstring.
8651
86522008-07-31 Juanma Barranquero <lekktu@gmail.com>
8653
8654 * keyboard.c (gobble_input): Fix previous change.
8655
86562008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8657
8658 * bitmaps/README:
8659 * xfns.c:
8660 * termcap.c:
8661 * term.c:
8662 * syswait.h:
8663 * systty.h:
8664 * systime.h:
8665 * syssignal.h:
8666 * sysdep.c:
8667 * process.h:
8668 * process.c:
8669 * print.c:
8670 * ndir.h:
8671 * lread.c:
8672 * keyboard.c:
8673 * getpagesize.h:
8674 * floatfns.c:
8675 * fileio.c:
8676 * emacs.c:
8677 * doc.c:
8678 * dispnew.c:
8679 * dired.c:
8680 * data.c:
8681 * callproc.c:
8682 * buffer.c:
8683 * README:
8684 * Makefile.in:
8685 * s/template.h:
8686 * s/msdos.h:
8687 * m/vax.h: Remove VMS support.
8688 * s/vms.h:
8689 * vlimit.h:
8690 * uaf.h:
8691 * temacs.opt:
8692 * param.h:
8693 * ioctl.h: Remove file.
8694
86952008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8696
8697 * s/ms-w32.h (MULTI_KBOARD): Remove.
8698 * xterm.c:
8699 * xselect.c:
8700 * xfns.c:
8701 * window.c:
8702 * w32term.c:
8703 * w32fns.c:
8704 * terminal.c:
8705 * termhooks.h:
8706 * term.c:
8707 * sysdep.c:
8708 * keyboard.h:
8709 * keyboard.c:
8710 * frame.h:
8711 * frame.c:
8712 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8713 * config.in: Regenerate.
8714
87152008-07-30 Jason Rumney <jasonr@gnu.org>
8716
8717 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8718
8719 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8720 (w32font_open_internal): Get unicode version of textmetrics.
8721 Don't enable or disable glyph indices here.
8722 (w32font_open): Disable use of glyph indices.
8723
8724 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8725
87262008-07-30 Chong Yidong <cyd@stupidchicken.com>
8727
8728 * minibuf.c (Vread_buffer_function): Doc fix.
8729
87302008-07-30 John Paul Wallington <jpw@pobox.com>
8731
8732 * minibuf.c (read_buffer_completion_ignore_case): New var.
8733 (Fread_buffer): Use it.
8734
87352008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8736
8737 * systty.h (sensemode): Remove empty #if. Remove reference to
8738 BSD_TERMIOS, unused.
8739
8740 * sysdep.c: Remove reference to DGUX.
8741 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8742
8743 * config.in: Regenerate.
8744
87452008-07-30 Jason Rumney <jasonr@gnu.org>
8746
8747 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8748
87492008-07-29 Jason Rumney <jasonr@gnu.org>
8750
8751 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8752 is populated.
8753 (uniscribe_encode_char): Always use uniscribe.
8754 Avoid using context if cache is populated.
8755
87562008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8757
8758 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8759 open menu.
8760
8761 * gtkutil.c (menu_nav_ended): Remove.
8762 (create_menus): Remove signal connect for menu_nav_ended.
8763
87642008-07-28 Chong Yidong <cyd@stupidchicken.com>
8765
8766 * xdisp.c (redisplay_window): Check return value of
8767 compute_window_start_on_continuation_line before forcing a window
8768 start.
8769
87702008-07-28 Jason Rumney <jasonr@gnu.org>
8771
8772 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8773
8774 * w32term.c (w32_enable_unicode_output, cleartype_active):
8775 Remove obsolete display options.
8776 (x_draw_glyph_string_background): Don't use old cleartype_active
8777 workaround.
8778 (w32_initialize): Remove cleartype_active initialization.
8779 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8780
87812008-07-28 Andreas Schwab <schwab@suse.de>
8782
8783 * lisp.h (init_weak_hash_tables, syms_of_font)
8784 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8785 (remove_hash_entry): Don't declare.
8786 * eval.c (maybe_call_debugger): Make static and move before use.
8787 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8788 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8789 * xterm.h (x_set_frame_alpha): Declare.
8790
87912008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8792
8793 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8794 (create_menus): Connect selection-done to menu_nav_ended.
8795
87962008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8797
8798 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8799 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8800 parameter with read of 'alpha' one.
8801 (Qns_frame_parameter): Remove.
5582fbc7 8802 * nsselect.m (selection-coding-system)
aac0c6e3
MR
8803 (next-selection-coding-system, Vselection_coding_system)
8804 (Vnext_selection_coding_system): Drop.
8805
88062008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8807
8808 * nsfns.m (do-applescript, do_applescript): Rename to
8809 ns-do-applescript, ns_do_applescript, and move within file.
8810
88112008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8812
8813 Remove support for Mac Carbon.
8814 * mactoolbox.c:
8815 * macterm.h:
8816 * macterm.c:
8817 * macselect.c:
8818 * macmenu.c:
8819 * macgui.h:
8820 * macfns.c:
8821 * mac.c: Remove file.
8822 * s/darwin.h:
8823 * m/intel386.h:
8824 * xfaces.c:
8825 * xdisp.c:
8826 * window.c:
8827 * tparam.c:
8828 * termhooks.h:
8829 * termcap.c:
8830 * term.c:
8831 * syssignal.h:
8832 * sysselect.h:
8833 * sysdep.c:
8834 * process.c:
8835 * lread.c:
8836 * lisp.h:
8837 * keyboard.c:
8838 * image.c:
8839 * fringe.c:
8840 * frame.h:
8841 * frame.c:
8842 * fontset.c:
8843 * font.h:
8844 * font.c:
8845 * fns.c:
8846 * fileio.c:
8847 * emacs.c:
8848 * dispnew.c:
8849 * dispextern.h:
8850 * config.in:
8851 * atimer.c:
2ae37cf0 8852 * Makefile.in: Remove code for Carbon.
aac0c6e3 8853
f0131492 88542008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
8855
8856 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8857
88582008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8859
8860 * macterm.h (kCGBitmapByteOrder32Host): New define for
8861 non-universal SDKs.
8862
8863 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8864 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8865
8866 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8867 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8868
88692008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8870
8871 * w32inevt.c: Include dispextern.h.
8872
88732008-07-26 Andreas Schwab <schwab@suse.de>
8874
8875 * print.c (print_object): Fix off-by-one in last change.
8876
88772008-07-25 Juanma Barranquero <lekktu@gmail.com>
8878
8879 * term.c (syms_of_term): Don't initialize default_orig_pair,
8880 default_set_foreground and default_set_background on Windows.
8881
88822008-07-25 Jason Rumney <jasonr@gnu.org>
8883
8884 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8885 ScriptItemize. Clean up return value checking. Remove unused
8886 variables.
8887 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8888 shaping engine.
8889
8890 * w32font.c (w32font_has_char): Handle the case where we can't
8891 determine the script for a character.
8892
88932008-07-25 Chong Yidong <cyd@stupidchicken.com>
8894
8895 * term.c (syms_of_term): Initialize default_orig_pair,
8896 default_set_foreground, and default_set_background.
8897
8898 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8899 clash (bug#86).
8900 (getloadavg): Callers changed.
8901
8902 * image.c (svg_load_image): Fix last change.
8903 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8904 image size is valid. Use g_object_unref instead of deprecated
8905 rsvg_handle_free to free rsvg handle.
8906 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8907
89082008-07-25 Jason Rumney <jasonr@gnu.org>
8909
8910 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8911 surrogates before looking up glyph index.
8912 (w32font_text_extents): Encode as surrogates if falling back to
8913 functions that need UTF-16 wide chars.
8914
8915 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8916 BMP as surrogates before looking up glyph index.
8917
89182008-07-25 Chong Yidong <cyd@stupidchicken.com>
8919
8920 * image.c (svg_load_image): Check for failure in return value of
8921 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8922
89232008-07-25 Jason Rumney <jasonr@gnu.org>
8924
8925 * w32font.c (Fx_select_font): Reverse sense of second arg.
8926
89272008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8928
8929 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8930 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8931
8932 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8933 (PURESIZE): Use it.
8934
89352008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8936
8937 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8938 * m/alpha.h (TEXT_END):
8939 * m/ibmrs6000.h (TEXT_END):
8940 * m/macppc.h (TEXT_END):
8941 * s/darwin.h (TEXT_END):
8942 * s/msdos.h (TEXT_END): Remove, unused.
8943 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8944 * s/cygwin.h: Remove comment.
8945
8946 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8947 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8948 * m/intel386.h (DOT_GLOBAL_START):
8949 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8950 (USG): Remove, file not used on USG platforms.
8951
8952 * Makefile.in (HAVE_X11): Remove empty #else.
8953
89542008-07-24 Andreas Schwab <schwab@suse.de>
8955
8956 * fileio.c (Finsert_file_contents): Properly adjust undo list
8957 after format conversion.
8958
89592008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8960
8961 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8962 (menu_nav_ended): Remove.
8963 (create_menus): Remove signal connect for menu_nav_ended.
8964 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8965 create_menus.
8966 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8967
89682008-07-23 Jason Rumney <jasonr@gnu.org>
8969
8970 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8971 with opened font.
8972 (w32font_open): Set font type to gdi.
8973
8974 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8975
89762008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8977
8978 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8979 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8980 defines it.
8981 * unexec.c (ADDR_CORRECT): Define unconditionally.
8982
8983 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8984
8985 * unexec.c: Remove code depending on !COFF and USG, the file is
8986 not used for such systems.
8987
8988 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8989 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8990 (LD_SWITCH_SYSTEM_1): Remove, update users.
8991
8992 * s/darwin.h (DATA_END):
8993 * m/intel386.h (DATA_END):
8994 * m/ibmrs6000.h (DATA_END):
8995 * m/alpha.h (DATA_END): Remove, unused.
8996
8997 * config.in: Regenerate.
8998 * s/ms-w32.h (subprocesses): Define unconditionally.
8999 * s/template.h (subprocesses): Update comment.
9000 * s/vms.h (subprocesses):
9001 * s/usg5-4.h (subprocesses):
9002 * s/hpux10-20.h (subprocesses):
9003 * s/gnu-linux.h (subprocesses):
9004 * s/cygwin.h (subprocesses):
9005 * s/bsd-common.h (subprocesses):
9006 * s/aix4-2.h (subprocesses):
9007 * s/darwin.h (subprocesses): Do not define, defined by default now.
9008
9009 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
9010 Remove all references.
9011 (temacs): Add GNUstep specific ld flags.
9012
9013 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
9014 similarly to what X does.
9015
90162008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9017
9018 * nsfns.m (x-list-fonts): Remove.
9019 (syms_of_nsfns): Drop the x-list-fonts declaration.
9020 * nsterm.m: Get rid of remaining "//" comments.
9021
90222008-07-22 Chong Yidong <cyd@stupidchicken.com>
9023
9024 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
9025
9026 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
9027 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
9028 (Fns_own_selection_internal, Fx_disown_selection_internal)
9029 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
9030
9031 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
9032 ... */' style of docstrings. Doc fixes.
9033
90342008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9035
9036 * terminfo.c (UP, BC, PC): Undo previous change.
9037
9038 * nsfns.m: Rename ns prefixed functions/variables to the
9039 corresponding x versions. Update references.
9040
90412008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
9042
9043 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
9044
90452008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9046
9047 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
9048 Remove forwarding functions.
9049 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
9050 non-static.
9051 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
9052 non-static.
9053 (ns_frame_parm_handlers): Use the new names.
9054 (syms_of_nsfns): Move to the end of file.
9055
9056 * nsterm.m (syms_of_nsterm): Move to the end of file.
9057
9058 * dispnew.c (init_display): Remove code for X10.
9059
90602008-07-22 Jason Rumney <jasonr@gnu.org>
9061
9062 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
9063 bare drive.
9064
90652008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9066
9067 * nsterm.m (syms_of_nsterm): Remove debugging println.
9068
90692008-07-22 David Reitter <david.reitter@gmail.com>
9070
9071 * nsfns.m (do_applescript, F_do_applescript): NS version of the
9072 Carbon implementation of the same functionality: execute arbitrary
9073 AppleScript code.
9074
90752008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9076
9077 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
9078 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
9079 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9080 (Fx_display_mm_height, Fx_display_mm_width)
9081 (Fx_display_backing_store, Fx_display_visual_class)
9082 (Fx_display_save_under, Fx_open_connection)
9083 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
9084 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
9085 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9086 (Fx_display_pixel_width, Fx_display_pixel_height)
9087 (Fx_display_usable_bounds, Fx_display_planes)
9088 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
9089 ... */' style of docstrings.
9090
90912008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
9092
9093 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
9094 on this platform.
9095 (mips):
9096 * m/iris4d.h (mips): Do not define.
9097 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
9098
9099 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
9100
9101 * image.c:
9102 * nsfns.m:
9103 * nsselect.m:
9104 * nsterm.h:
9105 * nsterm.m: Rename ns prefixed functions/variables to the
9106 corresponding x versions. Update references.
9107
9108 * m/ibms390x.h (NO_REMAP): Do not undefine.
9109
9110 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
9111
91122008-07-21 Chong Yidong <cyd@stupidchicken.com>
9113
9114 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
9115 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
9116 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
9117 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
9118 (Fns_display_mm_height, Fns_display_mm_width)
9119 (Fns_display_backing_store, Fns_display_visual_class)
9120 (Fns_display_save_under, Fns_open_connection)
9121 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
9122 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
9123 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9124 (Fns_display_pixel_width, Fns_display_pixel_height)
9125 (Fns_display_usable_bounds, Fx_display_planes)
9126 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
9127
91282008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
9129
9130 * print.c (print_object): Check print_depth before searching for
9131 circularities.
9132
91332008-07-21 Michael Albinus <michael.albinus@gmx.de>
9134
9135 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
9136 only sprintf.
9137
91382008-07-21 Kenichi Handa <handa@m17n.org>
9139
9140 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
9141
91422008-07-20 Andreas Schwab <schwab@suse.de>
9143
9144 * syntax.c (find_start_pos, find_start_value)
9145 (find_start_value_byte, find_start_begv, find_defun_start)
9146 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
9147
91482008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9149
9150 * s/sol2-3.h: Insert contents of s/sol2.h.
9151 (LD_SWITCH_SYSTEM): Remove redundant definition.
9152 * s/sol2.h: Remove, unused.
9153
91542008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9155
9156 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
9157
91582008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9159
9160 * Makefile.in (ns_appdir): Fix typo in find command.
9161
91622008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9163
9164 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
9165
9166 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
9167 added not supported anymore.
9168
9169 * s/usg5-4-2.h (LIBS_SYSTEM):
9170 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
9171
9172 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9173 * s/lynxos.h (GETPGRP_NO_ARG):
9174 * s/hpux10-20.h (NO_SIOCTL_H):
9175 * s/gnu.h (GETPGRP_NO_ARG):
9176 * s/gnu-linux.h (NO_SIOCTL_H):
9177 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9178 * s/cygwin.h (GETPGRP_NO_ARG):
9179 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
9180 (C_DEBUG_SWITCH): Remove duplicate definition.
9181
9182 * m/ibms390.h: Remove boilerplate comments.
9183
9184 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
9185
9186 * process.c (HAVE_SERIAL): Consolidate ifdefs.
9187 (wait_reading_process_output): Remove code for SunOS, platform not
9188 supported anymore. Use SOLARIS2 instead of sun.
9189
91902008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9191
9192 * font.c (font_open_by_name): Under NS, default lface height to zero.
9193 (font_open_for_lface): Under NS, set size based on frame fontsize.
9194 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
9195 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
9196
91972008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9198
9199 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
9200 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
9201 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
9202 YES/NO.
9203 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
9204 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
9205 * Makefile.in (clean): Clear out build destination dir.
9206
92072008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9208
9209 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
9210 xterm, xselect.
9211 * lisp.h: Remove declaration of hash_remove.
9212 * nsgui.h: Remove redefinitions of hash_remove.
9213 * fns.c (hash_remove): Rename to hash_remove_from_table.
9214
92152008-07-19 Seiji Zenitani <zenitani@mac.com>
9216
9217 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
9218 strdup() the family UTF8String before modifying it.
9219
92202008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9221
9222 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
9223 NS_FACE_BACKGROUND with 0 instead of nil.
9224 * nsfont.m (nsfont_draw): Same.
9225
92262008-07-19 Chong Yidong <cyd@stupidchicken.com>
9227
9228 * nsfns.m (ns_set_background_color): Fix crash.
9229
92302008-07-18 Chong Yidong <cyd@stupidchicken.com>
9231
9232 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
9233
92342008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
9235
9236 * puresize.h (BASE_PURESIZE): Increase to 1240000.
9237
92382008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9239
9240 * gtkutil.c: Include <config.h> instead of "config.h".
9241
9242 * lisp.h (Foverlay_buffer): Add EXFUN.
9243
9244 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
9245 child process to complete child_setup. Undo 2005-09-21 change.
9246
9247 * s/darwin.h: Mention setsid after vfork.
9248
92492008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9250
9251 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
9252 Depend on macgui.h.
9253
9254 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
9255 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
9256
9257 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
9258 and f19.
9259 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
9260
9261 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
9262 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
9263 Remove enumerators.
9264
9265 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
9266 Check if FACE_FROM_ID returns NULL.
9267
92682008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
9269
9270 * w32inevt.c (change_frame_size): Remove extern declaration.
9271 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
9272 change_frame_size.
9273
92742008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9275
9276 * getloadavg.c: Revert last change (2008-07-15).
9277
92782008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9279
9280 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 9281 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
9282 from configure.
9283
92842008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
9285
9286 * s/sol2.h:
9287 * s/sol2-4.h: Reorganize conditionals.
9288
9289 * ecrt0.c: Remove code depending on m68000, not used anymore.
9290
9291 * fns.c (hash_remove): Make static.
9292 * lisp.h (hash_remove): Don't prototype.
9293
9294 * m/ibmrs6000.h:
9295 * m/ibms390x.h:
9296 * m/macppc.h: Remove boilerplate comments.
9297
9298 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
9299 Solaris, which does not need them.
9300
9301 * m/vax.h: Remove comments about unsupported systems.
9302
9303 * s/darwin.h: Reorganize ifdefs.
9304
93052008-07-17 Andreas Schwab <schwab@suse.de>
9306
9307 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
9308
93092008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
9310
9311 Use SDATA. Follow coding convention of placing operators at
9312 beginning of next line rather than end of previous line, and placing
9313 spaces around infix operators.
9314
9315 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
9316 in case it was defined already.
9317 USE @GNUSTEP_MAKEFILES@ rather than envvars.
9318 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
9319 ns_default.
9320 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
9321 Lisp_Objects.
9322 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
9323 (ns_defined_color, ns_color_to_lisp): Declare.
9324 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
9325 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
9326 it's accepted even with USE_LISP_UNION_TYPE.
9327 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
9328 (update_frame_tool_bar): Remove apparently obsolete tests for
9329 non-integerness of f->tool_bar_lines.
9330 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
9331 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
9332 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
9333 (nsfont_open): Don't confuse NULL for Qnil.
9334 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
9335 * menu.h (find_and_call_menu_selection):
9336 * menu.c (find_and_call_menu_selection): Use just int for vector size.
9337 (find_and_return_menu_selection): Always return something.
9338 * frame.h: Include dispextern.h for Display_Info.
9339 (display_x_get_resource): Declare.
9340
93412008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
9342
9343 * syntax.c: Remove stdio.h include accidentally introduced in
9344 Emacs.app commit.
9345 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
9346 NS_IMPL_COCOA.
9347 * keyboard.c (handle_async_input, input_available_signal): Remove
9348 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
9349
93502008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9351
9352 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
9353 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
9354 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
9355 Use SDATA.
9356
9357 * keymap.c: Remove all NS-specific code.
9358 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
9359 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
9360 where_is_preferred_modifier, return a different value depending on how
9361 preferred is the binding.
9362 (where_is_internal): Adjust accordingly.
9363 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
9364 Adjust to new preferred_sequence_p.
9365 (syms_of_keymap): Declare `where-is-preferred-modifier'.
9366 * keyboard.c (parse_solitary_modifier): Not static any more.
9367 * keyboard.h (parse_solitary_modifier): Declare.
9368
93692008-07-16 Andreas Schwab <schwab@suse.de>
9370
9371 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
9372 of easymenu.
9373
93742008-07-16 Chong Yidong <cyd@stupidchicken.com>
9375
9376 * xdisp.c (move_it_in_display_line): Account for word wrap, so
9377 that we don't move off the line.
9378
93792008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9380
9381 * keyboard.c (Qsuper): Remove.
9382 (parse_menu_item): Don't call where_is_internal specially for NS.
9383
93842008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9385
9386 * s/gnu-linux.h: Remove boilerplate comments.
9387
9388 * m/alpha.h (__ELF__): Consolidate conditions.
9389
9390 * m/m68k.h (linux): Use GNU_LINUX instead.
9391 Remove boilerplate comments.
9392
9393 * m/intel386.h: Undo refactoring from previous change.
9394 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
9395 too, remove dead code.
9396 (linux): Use GNU_LINUX instead.
9397
93982008-07-16 Jason Rumney <jasonr@gnu.org>
9399
9400 * w32gui.h: Repeat 26 June changes lost by last change.
9401
94022008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9403
9404 * systty.h: Remove code for Aix on 386, unsupported platform.
9405
9406 * s/ms-w32.h: Remove boilerplate comments.
9407 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
9408
9409 * s/gnu-linux.h (TERM): Remove support.
9410 (HAVE_SYSVIPC): Remove, unused.
9411 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
9412 for this system.
9413
9414 * process.c: Remove support for IRIS, unused.
9415 Remove support for TERM, not relevant anymore.
9416
9417 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
9418 used with the definition.
9419
9420 * s/aix4-2.h (static): Do not undef.
9421
9422 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
9423 only used on Aix.
9424 (HAVE_SYSVIPC): Remove, unused.
9425
9426 * m/hp800.h (CANNOT_DUMP): Do not undef.
9427
9428 * m/alpha.h: Fix comment.
9429
9430 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
9431 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
9432 used by this configuration.
9433 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
9434 * unexec.c: Remove code depending on HPUX and
9435 USG_SHARED_LIBRARIES, not used with this file. Remove code
9436 depending on IRIS, unused. Remove if 0-ed code.
9437
9438 * s/template.h: Remove comments about static.
9439
9440 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
9441 Remove if 0-ed code.
9442 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
9443 were the same as the default.
9444 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
9445 Remove boilerplate comments.
9446 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
9447 (HAVE_SYSVIPC): Remove, unused.
9448 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
9449
9450 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9451 Remove boilerplate comments.
9452 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9453 Remove boilerplate comments.
9454 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9455 Remove boilerplate comments.
9456 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
9457
9458 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
9459 USG systems which do not use DATA_SEG_BITS.
9460 Refactor code. Remove boilerplate comments.
9461
9462 * m/ibms390.h:
9463 * m/m68k.h:
9464 * s/bsd-common.h:
9465 * s/cygwin.h:
9466 * s/darwin.h:
9467 * s/freebsd.h:
9468 * s/gnu.h:
9469 * s/msdos.h: Remove boilerplate comments.
9470
9471 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 9472 do not use this file.
aac0c6e3
MR
9473 (IRIS_4D): Remove, unused.
9474
9475 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 9476 do not use this file.
aac0c6e3
MR
9477 (SIGN_EXTEND_CHAR):
9478 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
9479 * unexmips.c: Remove file, unused.
9480
9481 * editfns.c (Fuser_full_name): Replace the only use of
9482 USER_FULL_NAME with its value.
9483 * config.in: Regenerate.
9484
94852008-07-16 David Reitter <david.reitter@gmail.com>
9486
9487 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
9488 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
9489
94902008-07-16 Glenn Morris <rgm@gnu.org>
9491
9492 * emacs.c (system-type): Doc fix.
9493
94942008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
9495
9496 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
9497 If the cache doesn't work, let's fix it, rather than work around it.
9498
94992008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9500
9501 * Makefile.in: Correct additions for nsfont.o in last commit.
9502 * nsfont.m: New file (forgot last commit).
9503
95042008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9505
9506 * callproc.c (set_initial_environment): Initialize
9507 Vprocess_environment under CANNOT_DUMP (fixes crash when
9508 batch-compiling for bootstrap).
9509
95102008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9511 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9512
9513 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
9514 fix crash due to different init order.
9515
95162008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9517
9518 Changes and additions for NeXTstep windowing system (Cocoa and
9519 GNUstep) support.
9520
9521 * Makefile.in:
9522 * config.in: Support defines and build commands for NS port.
9523 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
9524 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
9525 * dispextern.h: Include nsgui.h and add needed typedefs under NS
9526 windowing.
9527 (struct face): Add synth_ital field.
9528 * dispnew.c: Include nsterm.h when compiling under NS windowing.
9529 (init_display): Initialize Vinitial_window_system to "ns" when so
9530 compiled.
9531 * emacs.c: Include GSConfig.h when compiling under GNUstep.
9532 (display_arg): Use under NS.
9533 (main): Under NS, allocate autorelease pool and handle command line
9534 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
9535 (standard_args): Add NS-specific args.
9536 (shut_down_emacs): Shut down NS terminal if compiled under NS.
9537 * font.c (DEFAULT_ENCODING): New variable.
9538 (font_find_for_lface): Use it.
9539 (syms_of_font): Load syms_of_nsfont under NS.
9540 * font.h: Declare nsfont_driver when compiled under NS.
9541 * fontset.c: When compiling under NS, include nsterm.h.
9542 (fontset_from_font): Autoconstruct fontset under NS.
9543 * frame.c (various): Under NS, include nsterm.h, add Qns window system
9544 symbol, document and use it.
9545 (do_switch_frame): When for_deletion under Cocoa, add
9546 Fraise_frame(Qnil).
9547 (x_set_frame_parameters): Ensure font attribute changes are picked up.
9548 (x_get_arg): Allow "yes" and "no" as boolean values.
9549 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
9550 Qright under Cocoa.
9551 (focus-follows-mouse): Default to 0 under NS.
9552 * frame.h (enum output_method): Add output_ns.
9553 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
9554 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
9555 (FRAME_WINDOW_P): NS-specific definition.
9556 * fringe.c (max_used_fringe_bitmap): Make public.
9557 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
9558 (getloadavg): Use NeXT code under descendant OS's.
9559 * image.c (includes and header section, x_create_bitmap_from_data)
9560 (x_create_bitmap_from_file, free_bitmap_record, image_background)
9561 (image_background_transparent, x_clear_image_1)
9562 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
9563 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
9564 (x_to_xcolors, x_from_xcolors, x_disable_image)
9565 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
9566 other GUIs, including XPM support using code originally written for
9567 Carbon GUI.
9568 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
9569 using NS API.
9570 (image_ascent): Use font metrics macros instead of direct struct field
9571 access.
9572 * keyboard.c (includes): Add nsterm.h when compiling under NS.
9573 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
9574 Also, handle NS as GTK for menu bar purposes.
9575 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
9576 toolkit where they differ.
9577 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
9578 use cachelist, still needed under NS.
9579 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
9580 (struct widget_value): Define it here for menu.c.
9581 * keymap.c (includes): Include modifier internals.
9582 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
9583 NS.
9584 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
9585 support for preferring sequences using certain modifiers, specified by
9586 the FIRSTONLY argument.
9587 * lisp.h (hash_remove): Rename to avoid name clash when compiling
9588 under NS GNUstep implementation.
9589 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
9590 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
9591 * menu.c: Include nsterm.h under NS.
9592 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
9593 (free_menubar_widget_tree_value, update_submenu_strings)
9594 (find_and_call_menu_selection): Treat NS as X and NT.
9595 (find_and_return_menu_selection): New function, used for popup menus.
9596 * nsgui.h:
9597 * nsterm.h:
9598 * nsfns.m:
9599 * nsimage.m:
9600 * nsmenu.m:
9601 * nsselect.m:
9602 * nsterm.m: New files.
9603 * process.c (wait_reading_process_output): Under NS, call ns_select()
9604 instead of plain select().
9605 * syntax.c (char_quoted): Under NS, avoid a crash when called near
9606 beginning of buffer.
9607 * sysselect.h (init_process): Rename when compiling under Cocoa to
9608 avoid name conflict.
9609 * termhooks.h (display_info): Add ns_display_info to union.
9610 * terminal.c (Fterminal_live_p): Add ns to terminal types.
9611 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
9612 COCOA environment.
9613 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
9614 unexec() signature. (Note, this will dump, but the resulting file
9615 crashes; unexosx is used instead; keeping around for reference and
9616 possible aid in getting dump working under GNUstep.)
9617 * w32gui.h (button_type, widget_value): Remove definitions (now in
9618 keyboard.h).
9619 * window.c: Include nsterm.h when compiling under NS.
9620 * xdisp.c (includes): Include nsterm.h when compiling under NS.
9621 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
9622 other GUI windowing systems.
9623 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
9624 GTK.
9625 (x_consider_frame_title): Under NS, set icon type and frame
9626 modified-state indicator; use ns_set_name_as_filename() when using
9627 formatted title.
9628 (update_window_cursor): Make public when compiling under NS.
9629 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
9630 (hourglass_atimer, Vhourglass_delay
9631 * xfaces.c (header section, init_frame_faces, clear_font_table)
9632 (defined_color, unload_color, x_face_list_fonts)
9633 (prepare_face_for_display): Add NS support parallel to other GUIs.
9634 Emulate GCs like other non-X GUIs.
9635 (split_font_name): Don't lowercase font name under NS.
9636 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
9637 under NS.
9638 * s/darwin.h: Add support for compilation under NS.
9639
96402008-07-15 Jason Rumney <jasonr@gnu.org>
9641
9642 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
9643 (w32_show_hourglass): Rename from show_hourglass.
9644 (w32_hide_hourglass): Rename from hide_hourglass.
9645 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
9646 (Vhourglass_delay): Declare extern.
9647 (hourglass_started): Remove.
9648
9649 * xdisp.c (Vhourglass_delay): Remove static.
9650 (hourglass_started, start_hourglass, cancel_hourglass):
9651 Don't include these versions on WINDOWSNT.
9652
96532008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9654
9655 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
9656 variables (formerly in xfns.c).
9657 (show_hourglass, hide_hourglass): New prototypes (same).
9658 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9659 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9660 in xfns.c).
9661 (syms_of_xdisp): Declare/initialize display-hourglass,
9662 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
9663 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9664 formerly in xfns.c.
9665 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9666 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9667 (start_hourglass, cancel_hourglass): Remove.
9668 (show_hourglass, hide_hourglass): Remove prototypes and static
9669 modifiers.
9670 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9671 hourglass_atimer, hourglass_shown_p declaration/initialization.
9672 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9673 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9674 (start_hourglass, cancel_hourglass): Remove.
9675 (show_hourglass, hide_hourglass): Remove prototypes and static
9676 modifiers.
9677 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9678 hourglass_atimer, hourglass_shown_p declaration/initialization.
9679 * w32fns.c (display_hourglass_p, Vhourglass_delay)
9680 (DEFAULT_HOURGLASS_DELAY): Remove.
9681 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9682 hourglass_shown_p declaration/initialization.
9683
96842008-07-14 Jason Rumney <jasonr@gnu.org>
9685
9686 * w32fns.c (w32_get_arg): Remove wrapper function.
9687 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9688 directly.
9689 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9690
96912008-07-14 Kenichi Handa <handa@m17n.org>
9692
9693 * xfont.c (xfont_open): Add workaround for X's bug.
9694
96952008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9696
9697 * fontset.c: Include <stdio.h> unconditionally.
9698
96992008-07-13 Michael Albinus <michael.albinus@gmx.de>
9700
9701 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9702 for filtering.
9703
97042008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
9705
9706 * s/vms.h: Use __GNUC__ instead of _GNUC_.
9707
9708 * m/macppc.h:
9709 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
9710
9711 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9712 (SPECIAL_EMACS_INT):
9713 * m/ia64.h (SPECIAL_EMACS_INT):
9714 * m/amdx86-64.h (SPECIAL_EMACS_INT):
9715 * s/gnu.h (NLIST_STRUCT):
9716 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9717 * s/gnu-linux.h (LINUX):
9718 * s/msdos.h (HAVE_FACES):
9719 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9720
9721 * systty.h:
9722 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9723 anymore.
9724
97252008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9726
9727 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9728 always defined as int.
9729
9730 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9731 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9732 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9733 * s/freebsd.h (HAVE_WAIT_HEADER):
9734 * s/bsd-common.h (HAVE_UNION_WAIT):
9735 * s/aix4-2.h (HAVE_WAIT_HEADER):
9736 * m/mips.h (HAVE_UNION_WAIT):
9737 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9738 (COFF, static): Do not define, they are undefined later in the file.
9739
9740 * process.c (update_status): Don't use a union.
9741 (status_convert):
9742 (sigchld_handler): Use int instead of WAITTYPE.
9743
97442008-07-12 Chong Yidong <cyd@stupidchicken.com>
9745
9746 * indent.c (Fvertical_motion): Restore hscroll before moving to
9747 goal column.
9748
97492008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9750
9751 * lisp.h: Remove left over code.
9752
97532008-07-11 Andreas Schwab <schwab@suse.de>
9754
9755 * lisp.h: Fix logic in last change.
9756
9757 * menu.h: New file.
9758 * menu.c: Include it.
9759 * xmenu.c: Likewise.
9760 * Makefile.in: Update dependencies.
9761
97622008-07-11 Kenichi Handa <handa@m17n.org>
9763
9764 * fontset.c (fontset_from_font): Cancel the previous change.
9765
97662008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9767
9768 * lisp.h:
9769 * w32heap.c:
9770 * emacs.c:
9771 * alloc.c: Replace all references of NO_UNION_TYPE with
9772 USE_LISP_UNION_TYPE.
9773
9774 * m/xtensa.h (NO_UNION_TYPE):
9775 * m/vax.h (NO_UNION_TYPE):
9776 * m/template.h (NO_UNION_TYPE):
9777 * m/sparc.h (NO_UNION_TYPE):
9778 * m/mips.h (NO_UNION_TYPE):
9779 * m/macppc.h (NO_UNION_TYPE):
9780 * m/m68k.h (NO_UNION_TYPE):
9781 * m/iris4d.h (NO_UNION_TYPE):
9782 * m/intel386.h (NO_UNION_TYPE):
9783 * m/ibms390x.h (NO_UNION_TYPE):
9784 * m/ibms390.h (NO_UNION_TYPE):
9785 * m/ibmrs6000.h (NO_UNION_TYPE):
9786 * m/ia64.h (NO_UNION_TYPE):
9787 * m/hp800.h (NO_UNION_TYPE):
9788 * m/arm.h (NO_UNION_TYPE):
9789 * m/amdx86-64.h (NO_UNION_TYPE):
9790 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9791 defining it the same.
9792
97932008-07-10 Chong Yidong <cyd@stupidchicken.com>
9794
9795 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9796
97972008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9798
9799 * fileio.c:
9800 * sysdep.c
9801 * systty.h:
9802 * m/ibmrs6000.h:
9803 * m/iris4d.h:
9804 * s/aix4-2.h:
9805 * s/freebsd.h:
9806 * s/gnu-linux.h:
9807 * s/hpux10-20.h:
9808 * s/hpux11.h:
9809 * s/netbsd.h:
9810 * s/sol2-3.h:
9811 * s/sol2-4.h:
9812 * s/sol2.h:
9813 * s/usg5-4.h:
9814 * s/vms.h: Remove references to unused variables.
9815
98162008-07-10 Andreas Schwab <schwab@suse.de>
9817
9818 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9819 pattern before matching the generic family.
9820
98212008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9822
9823 * unexec.c:
9824 * s/vms.h:
9825 * s/usg5-4-2.h:
9826 * s/sol2-5.h:
9827 * s/freebsd.h:
9828 * s/darwin.h: Remove dead code.
9829
9830 * m/template.h:
9831 * m/sparc.h:
9832 * m/mips.h:
9833 * m/m68k.h:
9834 * m/iris4d.h:
9835 * m/intel386.h:
9836 * m/ibms390x.h:
9837 * m/ibms390.h:
9838 * m/ia64.h:
9839 * m/hp800.h:
9840 * m/arm.h:
9841 * m/amdx86-64.h: Remove dead code and references to unused
9842 and compiler defined symbols.
9843
9844 * unexmips.c:
9845 * unexelf.c: Remove references to desupported systems.
9846
9847 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9848
9849 * m/powermac.h: Remove boilerplate comments.
9850 (NO_REMAP): Remove unused definition.
9851
9852 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9853 define them.
9854
98552008-07-10 Kenichi Handa <handa@m17n.org>
9856
9857 * xfont.c (xfont_open): Log the reason of failure.
9858
98592008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9860
9861 * fontset.c (fontset_get_font_group):
9862 * font.c (font_check_otf): Specify argument types.
9863
98642008-07-09 Kenichi Handa <handa@m17n.org>
9865
9866 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9867 non-ASCII char is found.
9868
9869 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9870 (reorder_font_vector): Change the arg preferred_family to font.
9871 Prefer the spec matching with font.
9872 (fontset_get_font_group): New function.
9873 (fontset_find_font): Change the format of an element of a realized
9874 fontset. Use fontset_get_font_group.
9875 (fontset_font): Try the current fontset, the default fontset, the
9876 fallbacks of the current fontset, and the fallbacks of the default
9877 fontset in this order.
9878 (face_for_char): Delete the shortcut to use the current font.
9879 (fontset_from_font): Don't set fonts for Latin in the fontset.
9880
9881 * font.h (font_make_object, font_match_p): Adjust prototypes.
9882
9883 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9884
9885 * font.c (font_make_object): New arg entity and pixelsize.
9886 (font_check_otf_features, font_check_otf): New functions.
9887 (font_match_p): Check :lang, :script, and :otf properties.
9888
9889 * xfont.c (xfont_open): Adjust it for the change of
9890 font_make_object.
9891 (xfont_text_extents): Fix initial setting of metrics.
9892
9893 * ftfont.c (struct ftfont_info): New member index, delete member
9894 fc_charset_idx. Make the member order compatible with struct
9895 xftfont_info.
9896 (fc_charset_table): Change charset names to registry names.
9897 (ftfont_pattern_entity): Delete the args registry and
9898 fc_charset_idx. Change the value of :font-entity property
9899 to (FONTNAME . INDEX). Always set :registry property to
9900 `iso10646-1'.
9901 (struct ftfont_cache_data): New struct.
9902 (ftfont_lookup_cache): New arg for_face.
9903 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9904 (ftfont_driver): Set the member otf_capability.
9905 (ftfont_get_charset): Adjust it for the change of
9906 fc_charset_table.
9907 (OTF_TAG_SYM): New macro.
9908 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9909 for the change of fc_charset_table.
9910 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9911 ftfont_pattern_entity. Add FC_INDEX to objset.
9912 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9913 and ftfont_pattern_entity.
9914 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9915 font_make_object, struct ftfont_info.
9916 (ftfont_has_char): Use ftfont_get_fc_charset.
9917 (ftfont_otf_features, ftfont_otf_capability): New functions.
9918 (ftfont_shape): Use ftfont_get_otf.
9919 (ftfont_text_extents): Fix initial setting of metrics.
9920
9921 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9922 member order compatible with struct ftfont_info.
9923 (xftfont_open): Add FC_CHARSET to the pattern. Set
9924 xftfont_info->ft_size. Don't unlock the face. Check BDF
9925 properties if appropriate.
9926 (xftfont_close): Unlock the face.
9927 (xftfont_anchor_point, xftfont_shape): Deleted.
9928 (syms_of_xftfont): Don't set members anchor_point and shape of
9929 xftfont_driver.
9930
9931 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9932 font_make_object.
9933
9934 * w32font.c (w32font_open): Adjust it for the change of
9935 font_make_object.
9936 (w32font_open_internal): Don't set properties of font_object here.
9937
99382008-07-08 Chong Yidong <cyd@stupidchicken.com>
9939
9940 * macfns.c (x_create_tip_frame):
9941 * w32fns.c (x_create_tip_frame):
9942 * xfns.c (x_create_tip_frame): Pass parameter argument to
9943 face-set-after-frame-default.
9944
9945 * xfaces.c (Finternal_merge_in_global_face): Save merged
9946 attributes for the default face back into the face vector.
9947
99482008-07-08 Andreas Schwab <schwab@suse.de>
9949
9950 * fontset.h: Declare fontset_from_font. Don't declare
9951 new_fontset_from_font and fontset_from_font_name.
9952 * xterm.c: Include "fontset.h".
9953 * Makefile.in (xterm.o): Update dependencies.
9954
99552008-07-08 Glenn Morris <rgm@gnu.org>
9956
9957 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9958 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9959
99602008-07-07 Chong Yidong <cyd@stupidchicken.com>
9961
9962 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9963 (x_set_frame_parameters): Don't bind it.
9964
99652008-07-07 Juanma Barranquero <lekktu@gmail.com>
9966
9967 * w32fns.c (map_w32_filename): Declare extern.
9968
99692008-07-07 Jason Rumney <jasonr@gnu.org>
9970
9971 * w32term.c (WS_EX_LAYERED): Define if not already.
9972
99732008-07-06 Chong Yidong <cyd@stupidchicken.com>
9974
9975 * xfaces.c (set_font_frame_param): Don't try to set the font
9976 parameter if it is still unspecified in the lface.
9977
99782008-07-05 Chong Yidong <cyd@stupidchicken.com>
9979
9980 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9981 face if it didn't already exist.
9982
9983 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9984
99852008-07-05 Andreas Schwab <schwab@suse.de>
9986
9987 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9988
99892008-07-05 Chong Yidong <cyd@stupidchicken.com>
9990
9991 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9992 word-wrapping.
9993 (IT_DISPLAYING_WHITESPACE): New macro.
9994 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9995 when word-wrapping. Simplify word-wrapping logic. Use correct
9996 pixel positions when saving copies of the iterator.
9997 (display_line): Use proper wrap point if the last character on a
9998 line was preceded by whitespace.
9999
100002008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
10001
10002 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
10003
100042008-07-04 Kenichi Handa <handa@m17n.org>
10005
10006 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
10007
10008 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
10009
100102008-07-02 Jason Rumney <jasonr@gnu.org>
10011
10012 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 10013 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
10014
10015 * xdisp.c (next_element_from_display_vector): Move assignment out
10016 of if statement.
10017
100182008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
10019
10020 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
10021
10022 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
10023 (syms_of_fileio): Initialize and export them.
10024 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
10025
10026 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
10027 (Fsystem_move_file_to_trash): New function.
10028 (syms_of_w32fns): Export it to lisp.
10029
100302008-07-01 Jason Rumney <jasonr@gnu.org>
10031
10032 * w32font.c (w32font_text_extents): Don't count overhang as part
10033 of width.
10034
100352008-06-30 Miles Bader <miles@gnu.org>
10036
10037 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
10038 Add `avoid_cursor_p' field.
10039
10040 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
10041 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
10042 (append_glyph, append_composite_glyph, produce_image_glyph)
10043 (append_stretch_glyph): Initialize avoid_cursor_p.
10044 (get_it_property): Rename from `get_line_height_property'.
10045 (x_produce_glyphs): Use get_it_property.
10046 (handle_line_prefix, push_display_prop): New functions.
10047 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
10048 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
10049 New variables.
10050 (syms_of_xdisp): Initialize them.
10051
100522008-06-30 Kenichi Handa <handa@m17n.org>
10053
10054 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
10055 XftDefaultSubstitute (they are called in XftFontMatch).
10056 (xftfont_open): Fix args to ftfont_font_format.
10057
10058 * ftfont.c (fc_charset_table): New member lang.
10059 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 10060 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
10061 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
10062 (ftfont_open): Fix args to ftfont_font_format.
10063 (ftfont_font_format): New arg filename.
10064
100652008-06-30 Chong Yidong <cyd@stupidchicken.com>
10066
10067 * xfaces.c (Finternal_merge_in_global_face): If default face was
10068 modified, realize it again. Update the font face attribute.
10069
100702008-06-29 Jason Rumney <jasonr@gnu.org>
10071
10072 * w32term.c (x_set_frame_alpha): Fix logic.
10073
100742008-06-29 Kenichi Handa <handa@m17n.org>
10075
10076 * fontset.c (Finternal_char_font): Return font-object instead of
10077 font-name.
10078
10079 * composite.c (get_composition_id): Fix the width calculation for TAB.
10080
100812008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
10082
10083 * indent.c (Fvertical_motion): Properly handle float column arg.
10084
100852008-06-28 Jason Rumney <jasonr@gnu.org>
10086
10087 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
10088 (pfnSetLayeredWindowAttributes): New function pointer.
10089 (w32_initialize): Initialize it when supported.
10090 (x_set_frame_alpha): New function.
10091
10092 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
10093 (w32_frame_parm_handlers): Set alpha handler.
10094
10095 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
10096
100972008-06-27 Jason Rumney <jasonr@gnu.org>
10098
10099 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
10100 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
10101 (w32_to_x_charset, x_to_w32_charset)
10102 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10103 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10104 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10105 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10106 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10107 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10108 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
10109 (Qw32_charset_unicode): Remove.
10110 (syms_of_w32fns): Update for above changes.
10111
10112 * w32font.c (w32_to_x_charset, x_to_w32_charset)
10113 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10114 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10115 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10116 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10117 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10118 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10119 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
10120 (syms_of_w32font): Update for above changes.
10121
101222008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
10123
10124 * s/usg5-4.h: Fix previous change: keep the correct branch of a
10125 removed #if.
10126 (USG_SHARED_LIBRARIES): Remove duplicate definition.
10127
101282008-06-26 Juanma Barranquero <lekktu@gmail.com>
10129 Eli Zaretskii <eliz@gnu.org>
10130
10131 * makefile.w32-in (LOCAL_FLAGS):
10132 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
10133
10134 * sysdep.c (_spawnlp, _getpid):
10135 Declare with explicit _cdecl instead of _CRTAPI1.
10136
10137 * editfns.c (Fget_internal_run_time):
10138 Check for WINDOWSNT with #ifdef, not #if.
10139
101402008-06-26 Jason Rumney <jasonr@gnu.org>
10141
10142 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
10143
10144 * w32term.c (x_draw_glyph_string_foreground)
10145 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
10146 Use FONT_HANDLE macro.
10147 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
10148
10149 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10150 (uniscribe_encode_char): Use FONT_HANDLE macro.
10151
10152 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
10153 (w32font_text_extents): Use precast w32_font.
10154 (w32font_close): Free cached metrics.
10155 (w32font_open_internal): Allocate space for name on stack.
10156
101572008-06-26 Chong Yidong <cyd@stupidchicken.com>
10158
10159 * xdisp.c (extend_face_to_end_of_line): Fix last change.
10160
101612008-06-26 Jason Rumney <jasonr@gnu.org>
10162
10163 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
10164 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
10165
101662008-06-26 Juanma Barranquero <lekktu@gmail.com>
10167
10168 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
10169
101702008-06-26 Jason Rumney <jasonr@gnu.org>
10171
10172 * w32bdf.c, w32bdf.h: Remove obsolete files.
10173
10174 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
10175
10176 * w32gui.h: Don't include w32bdf.h.
10177 (XCharStruct, enum w32_char_font_type, W32FontStruct):
10178 Remove obsolete font support.
10179
10180 * w32font.h (struct w32font_info): Remove compat_w32_font.
10181 Add hfont member.
10182 (FONT_COMPAT): Remove obsolete macro.
10183
10184 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
10185 (w32font_encode_char, w32font_text_extents): Use new hfont member.
10186 (w32font_open_internal): Remove compat code. Set new hfont member.
10187 (Fx_select_font): Use new hfont member.
10188
10189 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10190 (uniscribe_encode_char): Use new hfont member.
10191
10192 * w32term.c (x_draw_glyph_string_foreground)
10193 (x_draw_composite_glyph_string_foreground): Use new hfont member.
10194 (x_draw_glyph_string): Use metrics in w32font_info.
10195
101962008-06-26 Kenichi Handa <handa@m17n.org>
10197
10198 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
10199
102002008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
10201
10202 * unexnext.c:
10203 * m/ews4800.h:
10204 * m/hp9000s300.h:
10205 * m/ibm370aix.h:
10206 * m/mips-siemens.h:
10207 * m/ncr386.h:
10208 * m/next.h:
10209 * m/pmax.h:
10210 * m/powerpcle.h:
10211 * m/tandem-s2.h:
10212 * s/386bsd.h:
10213 * s/bsd386.h:
10214 * s/bsd4-1.h:
10215 * s/bsd4-2.h:
10216 * s/bsdos2-1.h:
10217 * s/bsdos2.h:
10218 * s/bsdos3.h:
10219 * s/bsdos4.h:
10220 * s/nextstep.h:
10221 * s/ultrix4-3.h:
10222 * s/usg5-0.h:
10223 * s/usg5-2-2.h:
10224 * s/usg5-2.h:
10225 * s/usg5-4-3.h:
10226 * s/ux4800.h:
10227 * s/uxpds.h:
10228 * s/uxpv.h: Remove support for obsolete systems.
10229 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 10230 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
10231 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
10232 Remove, insert contents in s/aix4-2.h.
10233 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
10234 * s/bsd4-3.h: Rename to ...
10235 * s/bsd-common.h: ... this.
10236 * data.c:
10237 * doc.c:
10238 * ecrt0.c:
10239 * emacs.c:
10240 * fileio.c:
10241 * floatfns.c:
10242 * keyboard.c:
10243 * mem-limits.h:
10244 * print.c:
10245 * process.c:
10246 * sysdep.c:
10247 * syssignal.h:
10248 * systty.h:
10249 * syswait.h:
10250 * term.c:
10251 * unexec.c:
10252 * unexelf.c:
10253 * unexhp9k800.c:
10254 * m/hp800.h:
10255 * m/ibmrs6000.h:
10256 * m/mips.h:
10257 * m/vax.h:
10258 * s/darwin.h:
10259 * s/freebsd.h:
10260 * s/gnu.h:
10261 * s/ms-w32.h:
10262 * s/msdos.h:
10263 * s/netbsd.h:
10264 * s/template.h: Remove references to obsolete variables.
10265
10266 * Makefile.in: Add dependencies for all unexec files.
10267 (admindir): Remove unused variable.
10268 (UNEXEC_SRC): Remove references.
10269
102702008-06-25 Chong Yidong <cyd@stupidchicken.com>
10271
10272 * xfns.c (x_default_font_parameter): If Xft is available, first
10273 try Monospace-12 for the default font.
10274
102752008-06-25 Jason Rumney <jasonr@gnu.org>
10276
10277 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
10278
102792008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
10280
10281 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
10282
10283 * buffer.c (syms_of_buffer): Remove default-word-wrap.
10284
102852008-06-25 Juanma Barranquero <lekktu@gmail.com>
10286
10287 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
10288 <scroll-conservatively>: Fix typo in docstring.
10289
10290 * xselect.c (Fx_send_client_event): Doc fix.
10291
102922008-06-25 Kenichi Handa <handa@m17n.org>
10293
10294 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
10295
10296 * font.c (font_parse_fcname): Remove unused variables.
10297 (font_sort_entites): Delete the arg SPEC. Caller changed.
10298 Fix for the case of ! best_only.
10299 (font_delete_unmatched): Check DPI and AVGWIDTH too.
10300
10301 * lisp.h (Fstring_to_unibyte): EXFUN it.
10302
10303 * character.h (str_to_unibyte): Extern it.
10304
10305 * character.c (str_to_unibyte): New function.
10306
10307 * fns.c (Fstring_to_unibyte): New function.
10308 (syms_of_fns): Defsubr it.
10309
103102008-06-24 Kenichi Handa <handa@m17n.org>
10311
10312 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
10313 DPI too.
10314 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
10315
103162008-06-24 Andreas Schwab <schwab@suse.de>
10317
10318 * Makefile.in (${lispsource}loaddefs.el): Rename from
10319 ../lisp/loaddefs.el.
10320 (bootstrap-clean): Do what distclean does but don't remove
10321 Makefile.
10322 (distclean): Depend on bootstrap-clean and remove Makefile.
10323
103242008-06-24 Chong Yidong <cyd@stupidchicken.com>
10325
10326 * buffer.h (struct buffer): New member word_wrap.
10327
10328 * buffer.c (syms_of_buffer): New variables default-word-wrap and
10329 word-wrap.
10330 (init_buffer_once): Initialize them.
10331
10332 * dispextern.h (struct it): Replace bool truncate_lines_p with a
10333 line_wrap enum possessing three possible values.
10334
10335 * termopts.h: Replace truncate_partial_width_windows with
10336 Vtruncate_partial_width_windows.
10337
10338 * dispnew.c (direct_output_for_insert): Avoid direct output when
10339 inserting a space with word wrap on.
10340
10341 * indent.c (compute_motion): Obey integer values of
10342 truncate-partial-width-windows.
10343
10344 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
10345 replacing truncate_partial_width_windows.
10346 (init_iterator): If Vtruncate_partial_width_windows is an integer,
10347 truncate only if the window width is below that integer.
10348 (start_display, resize_mini_window, produce_stretch_glyph)
10349 (display_string, move_it_in_display_line_to): Use line_wrap.
10350 (back_to_previous_visible_line_start, reseat_1): Reset
10351 string_from_display_prop_p.
10352 (display_line): Extend default face to end of line when wrapping.
10353
103542008-06-24 Kim F. Storm <storm@cua.dk>
10355
10356 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
10357 to wrap continued lines at word boundaries.
10358
103592008-06-24 Jason Rumney <jasonr@gnu.org>
10360
10361 * font.c (Ffont_face_attributes): Multiply pixel size before point
10362 conversion to avoid multiplying rounding error.
10363
103642008-06-23 Jason Rumney <jasonr@gnu.org>
10365
10366 * w32term.c (x_draw_glyph_string_background)
10367 (x_draw_glyph_string): Remove old bdf font code.
10368
10369 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
10370
103712008-06-22 Kenichi Handa <handa@m17n.org>
10372
10373 * font.c (font_find_for_lface): Try the adstyle specified in
10374 the property of LFACE_FONT of LFACE (if any).
10375
103762008-06-21 Seiji Zenitani <zenitani@mac.com>
10377 Ryo Yoshitake <ryo@shiftmode.net>
10378
10379 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
10380
103812008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
10382
10383 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
10384 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
10385 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
10386 (witness-emacs): Remove.
10387 (lisp, shortlisp): Move loaddefs.el earlier.
10388 (mostlyclean): Forget about witness-emacs.
10389
103902008-06-22 Glenn Morris <rgm@gnu.org>
10391
10392 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
10393 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
10394
103952008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10396
10397 * Makefile.in (PRECOMP): Remove.
10398 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
10399 (witness-emacs): Run `compile-first'.
10400 (.el.elc): Use the new compile-onefile target.
10401
104022008-06-21 Kenichi Handa <handa@m17n.org>
10403
10404 * xftfont.c (xftfont_open): Handle QCembolden only when
10405 FC_EMBOLDEN is defined.
10406
104072008-06-21 Andreas Schwab <schwab@suse.de>
10408
10409 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
10410 (.el.elc): Likewise.
10411
104122008-06-21 Miles Bader <miles@gnu.org>
10413
10414 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
10415 build dir, not the lisp source dir.
10416
104172008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10418
10419 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
10420 (bootstrapclean): Remove.
10421 (.el.elc): New rule.
10422 (PRECOMP): New var.
10423 (../lisp/subdirs.el): Remove.
10424 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
10425 (witness-emacs): New target.
10426 (mostlyclean): Remove witness-emacs as well.
10427 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
10428 Add witness-emacs dependency.
10429
104302008-06-20 Chong Yidong <cyd@stupidchicken.com>
10431
10432 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
10433 defined by the font.
10434
104352008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10436
10437 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
10438 (bootstrap-clean): New target that keeps TAGS around.
10439 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
10440 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
10441
104422008-06-20 Jason Rumney <jasonr@gnu.org>
10443
10444 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
10445 Remove obsolete font code.
10446
10447 * w32font.c (font_matches_spec): Use csb bitfield from font signature
10448 to determine language support.
10449
104502008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10451
10452 * sysdep.c (cfsetspeed): New fun extracted from the code.
10453 (cfmakeraw): Move before first use.
10454
104552008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
10456
10457 * sysdep.c (cfmakeraw): Provide fallback implementation.
10458 (serial_configure): Provide fallback implementation of cfsetspeed.
10459
104602008-06-20 Kenichi Handa <handa@m17n.org>
10461
10462 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
10463 the pattern.
10464
10465 * fontset.c (fontset_from_font): Copy font_spec before changing
10466 the elements.
10467
10468 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
10469
104702008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10471
10472 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
10473 for explicit `font' parameters.
10474
10475 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
10476
104772008-06-19 Kenichi Handa <handa@m17n.org>
10478
10479 * frame.c: Include <ctype.h>.
10480 (x_set_font_backend): Allow spacing characters in the X resource
10481 for FontBackend.
10482
104832008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
10484
10485 * w32fns.c, xfns.c (Qfont_param): New var.
10486 (syms_of_w32fns): Initialize it.
10487 (x_default_font_parameter): Record explicit `font' into
10488 `font-parameter'.
10489
104902008-06-18 Kenichi Handa <handa@m17n.org>
10491
10492 * font.c (font_parse_xlfd): Fix previous change.
10493 (font_parse_fcname): Don't use :fc-unknown-spec.
10494 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
10495 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
10496 (font_add_log): Prepend the driver name to the resulting fonts.
10497
10498 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
10499 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
10500 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
10501
10502 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
10503 (QCembolden): New variables.
10504 (syms_of_xftfont): DEFSYM them.
10505 (xftfont_open): Call XftFontMatch. Don't trust the result of
10506 XftTextExtents8 if the pixel_size is less than 5.
10507
105082008-06-18 Andreas Schwab <schwab@suse.de>
10509
10510 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
10511 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
10512
105132008-06-18 Jason Rumney <jasonr@gnu.org>
10514
10515 * w32font.c (w32font_list, w32font_match): Add logging.
10516
10517 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
10518
105192008-06-17 Chong Yidong <cyd@stupidchicken.com>
10520
10521 * font.c (font_parse_fcname): Store divider characters for
10522 unknown-spec list. For known key symbols, intern using correct
10523 symbol name.
10524
105252008-06-17 Kenichi Handa <handa@m17n.org>
10526
10527 * xfaces.c (realize_default_face): If the frame is not on window
10528 system, set the fontset of face to nil.
10529
105302008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10531
10532 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
10533
105342008-06-16 Juanma Barranquero <lekktu@gmail.com>
10535
10536 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
10537 (build_font_name_from_vector): Delete externs.
10538
10539 * xfaces.c (struct font_name): Don't declare.
10540
105412008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
10542
10543 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
10544
105452008-06-16 Chong Yidong <cyd@stupidchicken.com>
10546
10547 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
10548
105492008-06-16 Juanma Barranquero <lekktu@gmail.com>
10550
10551 * font.c (Ffont_spec): Fix usage in docstring.
10552 (Ffont_face_attributes): Doc fix.
10553
105542008-06-16 Andreas Schwab <schwab@suse.de>
10555
10556 * font.c (Ffont_face_attributes): Fix definition.
10557
105582008-06-16 Jason Rumney <jasonr@gnu.org>
10559
10560 * font.h (font_style_symbolic_from_value): Remove.
10561
10562 * font.c (font_style_symbolic_from_value): Remove.
10563 (font_style_symbolic): Revert to pre 2008-06-13 version.
10564
10565 * w32font.c (w32_to_fc_weight): New function.
10566 (w32font_full_name, logfont_to_fcname): Use it.
10567
105682008-06-16 Kenichi Handa <handa@m17n.org>
10569
10570 * font.c (font_check_object): Delete it.
10571 (font_clear_cache): Check if a font-object is alive.
10572 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
10573 font-object to nil.
10574 (font_close_object): Don't check FONT_CLOSE_OBJECT.
10575 (font_at): Don't call font_check_object.
10576 (Ffont_get): Return a symbol for :weight, :slant, and :width.
10577
105782008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
10579
10580 * puresize.h (BASE_PURESIZE): Increase to 1230000.
10581
105822008-06-16 Chong Yidong <cyd@stupidchicken.com>
10583
10584 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
10585
105862008-06-15 Chong Yidong <cyd@stupidchicken.com>
10587
10588 * font.c (font_parse_fcname): Only one decimal point.
10589 (font_unparse_fcname): Handle data in family and foundry indices
10590 as symbols, not strings.
10591 (font_unparse_gtkname, Ffont_face_attributes): New functions.
10592
10593 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
10594
10595 * font.h (font_unparse_gtkname): Add prototype.
10596
105972008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10598
10599 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
10600
106012008-06-15 Andreas Schwab <schwab@suse.de>
10602
10603 * font.c (font_update_drivers): Fix crash when no drivers match.
10604
106052008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
10606
10607 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
10608 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
10609
106102008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
10611
10612 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
10613
106142008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
10615
10616 * process.c (Fserial_process_configure, Fprocess_send_eof):
10617 Use EQ to compare Lisp_Objects.
10618
106192008-06-13 Jason Rumney <jasonr@gnu.org>
10620
10621 * w32fns.c (Fw32_select_font): Remove old font API function.
10622
10623 * w32font.c (logfont_to_fcname): New function.
10624 (Fx_select_font): New font dialog function compatible with
10625 GTK/fontconfig version.
10626
10627 * font.c (font_style_symbolic_from_value): New function.
10628 (font_style_symbolic): Use it.
10629
10630 * font.h (font_style_symbolic_from_value): Declare new function.
10631
106322008-06-13 Juanma Barranquero <lekktu@gmail.com>
10633
10634 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
10635 <font-width-table>: Fix typos in docstrings.
10636
106372008-06-13 Daniel Engeler <engeler@gmail.com>
10638
10639 These changes add serial port access.
10640 * process.c: Add HAVE_SERIAL.
10641 (Fdelete_process, Fprocess_status, Fset_process_buffer)
10642 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
10643 (list_processes_1, select_wrapper, Fstop_process)
10644 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
10645 (status_notify): Modify to handle serial processes.
10646 [HAVE_SERIAL] (Fserial_process_configure)
10647 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
10648 New functions.
10649 * process.h (struct Lisp_Process): Add `type'.
10650 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
10651 New functions.
10652 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
10653 serial ports.
b71ac3dd 10654 (serial_open, serial_configure): New functions.
aac0c6e3
MR
10655 * w32.h: Add FILE_SERIAL.
10656 (struct _child_process): Add ovl_read, ovl_write.
10657
106582008-06-13 Kenichi Handa <handa@m17n.org>
10659
10660 * dispextern.h (enum lface_attribute_index): New member
10661 LFACE_FOUNDRY_INDEX.
10662
10663 * font.c (font_score): Delete arg alternate_families. Check only
10664 weight, slant, width, and size. Ignore the difference of alias
10665 style symbols.
10666 (font_sort_entites): Adjust for the above change. Reflect the
10667 order of font-driver to scores.
10668 (font_list_entities): Don't check alternate_familes here.
10669 (font_clear_prop): Handle foundry.
10670 (font_update_lface): Don't parse "foundry-family" form here.
10671 Handle FONT_FOUNDRY_INDEX.
10672 (font_find_for_lface): Likewise. Handle alternate families here.
10673 If registry is nil, try iso8859-1 and ascii-0.
10674 (font_open_for_lface): Pay attention to size in ENTITY.
10675 (font_open_by_name): Simplify by calling font_load_for_lface.
10676 (free_font_driver_list): Delete it.
10677 (font_update_drivers): Preserve the order of backends.
10678 (syms_of_font): Setting of sort_shift_bits adjusted for the change
10679 of font_score and font_sort_entites.
10680 (font_update_sort_order): Likewise.
10681
10682 * xfaces.c (LFACE_FOUNDRY): New macro.
10683 (check_lface_attrs): Check foundry.
10684 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10685 (merge_face_vectors): Check foundry.
10686 (merge_face_ref): Likewise.
10687 (Finternal_set_lisp_face_attribute): Likewise.
10688 (x_update_menu_appearance): Likewise.
10689 (Finternal_get_lisp_face_attribute): Likewise.
10690 (lface_hash): Likewise.
10691 (lface_same_font_attributes_p): Likewise.
10692 (x_supports_face_attributes_p): Likewise.
10693 (tty_supports_face_attributes_p): Likewise.
10694 (Finternal_set_alternative_font_family_alist): Intern strings.
10695 (Finternal_set_alternative_font_registry_alist): Downcase strings.
10696 (realize_default_face): Set LFACE_FOUNDRY (lface).
10697
10698 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10699 font-driver at first.
10700
10701 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10702
107032008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10704
10705 * lread.c (Fload): Use xfree, not free on saved_doc_string.
10706
107072008-06-12 Jim Meyering <meyering@redhat.com>
10708
10709 Make unexec_free handle NULL the same way free does.
10710 * unexmacosx.c (unexec_free): Ignore a NULL argument.
10711
107122008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10713
10714 * character.h (CHAR_TO_BYTE_SAFE): New macro.
10715 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10716 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10717 (WEAK_ALIAS): Simplify.
10718 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10719 when searching a unibyte buffer.
10720
107212008-06-12 Chong Yidong <cyd@stupidchicken.com>
10722
10723 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10724
107252008-06-12 Juanma Barranquero <lekktu@gmail.com>
10726
10727 * w32font.c: Include ctype.h.
10728
107292008-06-11 Jason Rumney <jasonr@gnu.org>
10730
10731 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10732 misreported as space.
10733 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10734 as aliases for registry iso10646-1.
10735
107362008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10737
10738 * buffer.c (clone_per_buffer_values): Skip `name'.
10739
107402008-06-11 Chong Yidong <cyd@stupidchicken.com>
10741
10742 * font.c (font_parse_fcname): Fix last change; accept decimal
10743 points in font size.
10744
107452008-06-10 Jason Rumney <jasonr@gnu.org>
10746
10747 * w32uniscribe.c (add_opentype_font_name_to_list):
10748 Skip non unicode fonts.
10749
107502008-06-10 Chong Yidong <cyd@stupidchicken.com>
10751
10752 * xfns.c (Fx_font_dialog): New function.
10753
10754 * gtkutil.c (xg_dialog_response_cb): Rename from
10755 xg_file_response_callback.
10756 (pop_down_dialog): Rename from pop_down_file_dialog.
10757 (xg_get_file_name): Callers changed.
10758 (xg_get_font_name): New function.
10759
10760 * gtkutil.h (xg_get_font_name): Insert prototype.
10761
107622008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10763
10764 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10765 x_underline_minimum_display_offset.
10766 (syms_of_xdisp): Declare it here rather than in xterm.c.
10767 * dispextern.h (underline_minimum_offset): Declare it.
10768 * w32term.c (x_draw_glyph_string): Use it.
10769 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10770 (syms_of_xterm): Don't declare it any more.
10771 (x_draw_glyph_string): Adjust to the new name.
10772
8719abec 107732008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
10774
10775 * xterm.c (x_underline_minimum_display_offset): New var.
10776 (x_draw_glyph_string): Use it.
10777 (syms_of_xterm): Declare it.
10778
107792008-06-10 Chong Yidong <cyd@stupidchicken.com>
10780
10781 * font.c (font_parse_fcname): Accept GTK-style font names too.
10782
107832008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10784
10785 * dired.c (file_name_completion): Don't return t if the match is exact
10786 but with different capitalization.
10787 * minibuf.c (Ftry_completion): Simplify.
10788
10789 * window.c (Vwindow_point_insertion_type): New var.
10790 (set_window_buffer): Use it.
10791 (syms_of_window): Init and export it to Lisp.
10792
107932008-06-10 Kenichi Handa <handa@m17n.org>
10794
10795 * font.h (font_intern_prop): Prototype adjusted.
10796
10797 * font.c (font_intern_prop): New arg force_symbol.
10798 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10799 Adjust for the change of font_intern_prop.
10800
10801 * ftfont.c (ftfont_pattern_entity):
10802 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10803 (w32_registry):
10804 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10805 the change of font_intern_prop.
10806
108072008-06-09 Juanma Barranquero <lekktu@gmail.com>
10808
10809 * w32menu.c (digest_single_submenu): Declare extern.
10810
108112008-06-09 Jason Rumney <jasonr@gnu.org>
10812
10813 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10814
10815 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10816 (parse_single_submenu): Remove.
10817 (digest_single_submenu): Remove.
10818 (syms_of_w32menu): Don't initialise variables that have moved
10819 to menu.c.
10820 (set_frame_menubar): Sync with version in xmenu.c.
10821 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10822
10823 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10824 Make static again.
10825
108262008-06-09 Jason Rumney <jasonr@gnu.org>
10827
10828 Changes to w32 files related to the move of common menu code
10829 to menu.c on 2008-06-08 by Chong Yidong.
10830
10831 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10832 defs to w32gui.h.
10833 (single_keymap_panes, push_menu_item, push_menu_pane):
10834 Make globally visible.
10835
10836 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10837 (local_free, malloc_widget_value, free_widget_value)
10838 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10839 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10840 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10841 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10842 (menu_items, menu_items_allocated, menu_items_used)
10843 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10844 (init_menu_items, finish_menu_items, discard_menu_items)
10845 (grow_menu_items, push_submenu_start, push_submenu_end)
10846 (push_left_right_boundary, push_menu_pane, push_menu_item)
10847 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10848 (free_menubar_widget_tree_value, parse_single_submenu)
10849 (update_submenu_strings): Remove functions.
10850 (xmalloc_widget_value): Remove and declare extern.
10851
10852 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10853 (OBJ1): Build it.
10854
10855 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10856 (local_heap, local_alloc, local_free, malloc_widget_value)
10857 (free_widget_value): Define here.
10858
108592008-06-09 Kenichi Handa <handa@m17n.org>
10860
10861 * font.h (Qascii_0): Extern it.
10862
10863 * font.c (Qascii_0): New variable.
10864 (syms_of_font): DEFSYM it.
10865 (font_open_by_name): If the registry "iso8859-1" fails, try also
10866 "ascii-0".
10867
10868 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10869
108702008-06-08 Kenichi Handa <handa@m17n.org>
10871
10872 * .gdbinit (xfont): New command.
10873
108742008-06-08 Andreas Schwab <schwab@suse.de>
10875
10876 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10877 * Makefile.in (menu.o): Update dependencies.
10878
10879 * Makefile.in (obj): Always add menu.o.
10880 * emacs.c (main): Always call syms_of_menu.
10881 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10882
108832008-06-08 Chong Yidong <cyd@stupidchicken.com>
10884
10885 * Makefile.in: Compile menu.c.
10886
10887 * lisp.h: Declare syms_of_menu.
10888
10889 * emacs.c (main): Call syms_of_menu.
10890
10891 * keyboard.h: Relocate platform-independent menu definitions from
10892 xmenu.c.
10893
10894 * menu.c: New file. Relocate platform-independent menu
10895 definitions from xmenu.c. Suggested by Adrian Robert.
10896
10897 * xmenu.c: Remove platform-independent menu definitions.
10898 (menu_items menu_items_inuse, menu_items_allocated)
10899 (menu_items_used, menu_items_n_panes)
10900 (menu_items_submenu_depth): Move to keyboard.h.
10901 (init_menu_items, finish_menu_items, unuse_menu_items)
10902 (discard_menu_items, restore_menu_items, save_menu_items)
10903 (grow_menu_items, push_submenu_start, push_submenu_end)
10904 (push_left_right_boundary, push_menu_pane, push_menu_item)
10905 (keymap_panes, single_keymap_panes, single_menu_item)
10906 (list_of_panes, list_of_items, find_and_call_menu_selection)
10907 (xmalloc_widget_value, free_menubar_widget_value_tree)
10908 (parse_single_submenu, digest_single_submenu)
10909 (update_submenu_strings): Move to menu.c.
10910
109112008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10912
10913 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10914
109152008-06-06 Miles Bader <miles@gnu.org>
10916
10917 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10918 face, not frame default.
10919
109202008-06-05 Martin Rudalics <rudalics@gmx.at>
10921
10922 * window.c (pop_up_windows, pop_up_frames)
10923 (display_buffer_reuse_frames, Vpop_up_frame_function)
10924 (Vdisplay_buffer_function, Veven_window_heights)
10925 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10926 (Vspecial_display_function, Vsame_window_buffer_names)
10927 (Vsame_window_regexps, split_height_threshold)
10928 (Vsplit_window_preferred_function): Move those vars to window.el.
10929 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10930 (Fdisplay_buffer): Move those functions to window.el.
10931 (syms_of_window): Remove corresponding declarations.
10932 (display_buffer): New function.
10933 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10934 * dispnew.c (Flast_nonminibuf_frame): New function.
10935 * buffer.c (Fpop_to_buffer): Move to window.el.
10936
109372008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10938
10939 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10940
109412008-06-05 Kenichi Handa <handa@m17n.org>
10942
10943 * coding.c (detect_coding): Fix previous change.
10944 (detect_coding_system): Likewise.
10945
109462008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10947
10948 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10949
10950 * keymap.c (Vminibuffer_local_filename_must_match_map):
10951 Rename from Vminibuffer_local_must_match_filename_map.
10952 (syms_of_keymap):
10953 * minibuf.c (Fcompleting_read): Adjust accordingly.
10954 * commands.h: Rename declaration as well.
10955
109562008-06-05 Kenichi Handa <handa@m17n.org>
10957
10958 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10959 family name.
10960 (Ffont_put): Likewise.
10961
10962 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10963 current font-spec.
10964
10965 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10966 is unspecified.
10967
10968 * xfaces.c (realize_x_face): If the font-related face attributes
10969 are the same as those of default face, realize a new fontset from
10970 default->fontset.
10971 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10972
109732008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10974
10975 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10976 (move_it_in_display_line): New wrapper.
10977
10978 * window.c (window_scroll_pixel_based_preserve_x)
10979 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10980 (window_scroll_pixel_based, window_scroll_line_based):
10981 Use them to preserve column positions.
10982 (syms_of_window): Initialize them.
10983
10984 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10985 (HPOS . VPOS) pair.
10986
10987 * dispextern.h (move_it_in_display_line): Declare.
10988
109892008-06-05 Juanma Barranquero <lekktu@gmail.com>
10990
10991 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10992 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10993 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10994
109952008-06-04 Juanma Barranquero <lekktu@gmail.com>
10996
10997 * window.c (Fset_window_parameter): Doc fix.
10998 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10999
110002008-06-04 Joakim Verona <joakim@verona.se>
11001
11002 * window.h (struct window): Add new member window_parameters.
11003
11004 * window.c (Fwindow_parameters, Fwindow_parameter)
11005 (Fset_window_parameter): New defuns.
11006 (syms_of_window): Defsubr the new defuns.
11007 (make_window): Initialize window_parameters to nil.
11008
110092008-06-04 John Paul Wallington <jpw@pobox.com>
11010
11011 * eval.c (Fdefmacro): Doc fix.
11012
110132008-06-04 Kenichi Handa <handa@m17n.org>
11014
11015 * coding.c (detect_coding): Fix handling of coding->head_ascii.
11016 Be sure to call setup_coding_system when we find a proper coding system.
11017 (detect_coding_system): Fix handling of coding->head_ascii.
11018
110192008-06-03 Andreas Schwab <schwab@suse.de>
11020
11021 * font.c (font_prop_validate_spacing): Fix last change.
11022
110232008-06-03 Kenichi Handa <handa@m17n.org>
11024
11025 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
11026 (font_parse_fcname): Fix handling of unknown key.
11027
11028 * xfont.c (xfont_list): Try an alias.
11029
11030 * charset.c (char_charset): Return NULL if the arg charset_list is
11031 specified and C doesn't belong to any of them.
11032
110332008-06-02 Chip Coldwell <coldwell@redhat.com>
11034
11035 * font.c (font_pixel_size): Don't take cdr of an integer.
11036
110372008-06-02 Jim Meyering <meyering@redhat.com>
11038
11039 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
11040 * alloc.c (xfree): Return right away for a NULL arg.
11041 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
11042 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
11043 * mac.c (create_apple_event_from_event_ref): Likewise.
11044 (create_apple_event_from_drag_ref, cfstring_create_normalized):
11045 Likewise.
11046 * doprnt.c (doprnt1): Likewise.
11047 * frame.c (frame): Likewise.
11048 * keyboard.c (wipe_kboard): Likewise.
11049 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
11050 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
11051 * term.c (tty_default_color_capabilities, maybe_fatal)
11052 (delete_tty): Likewise.
11053 * w16select.c (string): Likewise.
11054 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
11055 * w32bdf.c (w32_free_bdf_font): Likewise.
11056 * w32fns.c (w32_unload_font): Likewise.
11057 * w32font.c (w32font_close): Likewise.
11058 * window.c (size_window): Likewise.
11059 * xselect.c (receive_incremental_selection): Likewise.
11060 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
11061 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
11062 * w32.c (stat): Likewise.
11063
11064 Remove useless if-before-free tests.
11065 * editfns.c (Fset_time_zone_rule): Likewise.
11066 * lread.c (nosuffix): Likewise.
11067 * ralloc.c (get_bloc): Likewise.
11068 * regex.c (reg_free): Likewise.
11069 * xftfont.c (xftfont_open, xftfont_close): Likewise.
11070 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
11071 * xsmfns.c (smc_save_yourself_CB): Likewise.
11072
110732008-06-02 Kenichi Handa <handa@m17n.org>
11074
11075 * font.c (font_find_for_lface): Handle float font size.
11076 (font_open_for_lface): Likewise.
11077
11078 * xfaces.c (x_supports_face_attributes_p): Check face->font before
11079 comparing the properties.
11080
110812008-06-01 Jason Rumney <jasonr@gnu.org>
11082
11083 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
11084 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
11085 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
11086 Don't add empty script list.
11087 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
11088
110892008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
11090
11091 * Makefile.in (dot, dotdot): Remove, update users.
11092 ".." has been used elsewhere in the file for a long time.
11093 (LIBXT_STATIC): Remove conditional based on unused variable.
11094
110952008-06-01 Miles Bader <miles@gnu.org>
11096
11097 * xfaces.c (Vface_remapping_alist): New variable.
11098 (syms_of_xfaces): Initialize it.
11099 (enum named_merge_point_kind): New type.
11100 (struct named_merge_point): Add `named_merge_point_kind' field.
11101 (push_named_merge_point): Make cycle detection respect different
11102 named-merge-point kinds.
11103 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
11104 Remove face-name alias resolution.
11105 (lface_from_face_name): New definition using
11106 `lface_from_face_name_no_resolve'.
11107 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
11108 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
11109 (get_lface_attributes): New definition that layers face-remapping on
11110 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
11111 (lookup_basic_face): New function.
11112 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
11113 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
11114 `get_lface_attributes'.
11115 (face_at_buffer_position): Use `lookup_basic_face' to lookup
11116 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
11117 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
11118
11119 * xdisp.c (init_iterator): Pass base_face_id through
11120 `lookup_basic_face' when we actually use it as a face-id.
11121 (handle_single_display_prop): Use `lookup_basic_face' to lookup
11122 DEFAULT_FACE_ID.
11123
11124 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
11125 lookup the initial face-id.
11126
11127 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
11128
111292008-06-01 Juanma Barranquero <lekktu@gmail.com>
11130
11131 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
11132 (Fremove_text_properties): Fix typos in docstrings.
11133
111342008-05-31 Kenichi Handa <handa@m17n.org>
11135
11136 * font.c (font_list_entities): Fix the car part of data to be
11137 stored in the cache.
11138
11139 * ftfont.c (ftfont_font_format): Don't use strcasestr.
11140
111412008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11142
11143 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
11144 Add a `test' argument so another predicate than `equal' can be used.
11145 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
11146 (map_char_table): Remove unused vars `c' and `i'.
11147 * lisp.h (Foptimize_char_table): Adjust declaration.
11148 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
11149
111502008-05-30 Kenichi Handa <handa@m17n.org>
11151
11152 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
11153 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
11154 defined.
11155
111562008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11157
11158 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11159 (Fmake_variable_frame_local): Disallow mixing buffer-local and
11160 frame-local settings for the same variable.
11161
111622008-05-30 Kenichi Handa <handa@m17n.org>
11163
11164 * fontset.c (Ffont_info): Move to font.c.
11165 (syms_of_fontset): Delete defsubr of Sfont_info.
11166
11167 * font.c (font_style_to_value, font_score): Delete casting of the
11168 args to xstcasecmp.
11169 (register_font_driver): Increment num_font_drivers only when
11170 registering the driver globally.
11171 (Ffont_info): Move from fontset.c. Handle a font object too.
11172 (syms_of_font): Defsubr Sfont_info.
11173
111742008-05-29 Kenichi Handa <handa@m17n.org>
11175
11176 * coding.h (enum define_coding_utf8_arg_index): New enum.
11177 (enum coding_attr_index): Change coding_attr_utf_16_bom to
11178 coding_attr_utf_bom.
11179 (enum utf_bom_type): Rename from utf_16_bom_type.
11180 (struct utf_16_spec): Adjust for the above change.
11181 (struct coding_system): Add utf_8_bom in `spec' union.
11182
11183 * coding.c (CODING_UTF_8_BOM): New macro.
11184 (enum coding_category): Delete coding_category_utf_8, add
11185 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
11186 coding_category_utf_8_sig.
11187 (CATEGORY_MASK_UTF_8): Delete it.
11188 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
11189 (CATEGORY_MASK_UTF_8_SIG): New macros.
11190 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
11191 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
11192 CATEGORY_MASK_UTF_8_SIG.
11193 (CATEGORY_MASK_UTF_8): New macro.
11194 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
11195 (detect_coding_utf_8): Check BOM.
11196 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
11197 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
11198 (encode_coding_utf_16): Likewise.
11199 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
11200 (detect_coding, detect_coding_system): Handle utf-8-auto.
11201 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
11202 (syms_of_coding): Fix setting up of Vcoding_category_table.
11203
112042008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
11205
11206 * process.c (Faccept_process_output): If `millisec' is non-nil,
11207 `seconds' default to 0.
11208 (wait_reading_process_output): Also return non-nil if we read output
11209 from a non-running process.
11210
112112008-05-29 Jason Rumney <jasonr@gnu.org>
11212
11213 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
11214 `raster' specified.
11215 (add_font_entity_to_list): Allow non-opentype truetype fonts back
11216 in the uniscribe backend, but disallow any font that has no
11217 unicode subrange support.
11218
112192008-05-29 Juanma Barranquero <lekktu@gmail.com>
11220
11221 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
11222 Fix typos in docstrings.
11223
112242008-05-29 Kenichi Handa <handa@m17n.org>
11225
11226 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
11227 (Fx_family_fonts): Set frame correctly.
11228
112292008-05-28 Jason Rumney <jasonr@gnu.org>
11230
11231 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
11232
112332008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11234
11235 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
11236 calling build_annotations.
11237
112382008-05-28 Juanma Barranquero <lekktu@gmail.com>
11239
11240 * coding.c (Fdecode_coding_region, Fencode_coding_region)
11241 (Fencode_coding_string):
11242 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
11243 <latin-extra-code-table>: Fix typos in docstrings.
11244 (syms_of_coding) <coding-system-alist>: Doc fix.
11245 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
11246
112472008-05-28 Kenichi Handa <handa@m17n.org>
11248
11249 * fontset.c (Ffont_info): Don't call font_close_object.
11250
11251 * font.c (font_parse_family_registry): Use Ffont_put to validate
11252 foundry and family.
11253 (font_delete_unmatched): Don't check spacing.
11254 (font_list_entities): Add spacing to the spec to list fonts.
11255
11256 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
11257 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
11258
11259 * coding.c (encode_coding_raw_text): Fix previous change.
11260 (encode_coding_object): When the dst_object is a buffer and is
11261 different from src_object, move gap to PT.
11262
112632008-05-27 Chong Yidong <cyd@stupidchicken.com>
11264
11265 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
11266
112672008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11268
11269 * coding.c (encode_coding_raw_text): Set coding->produced_char for
11270 all branches. Compute it differently.
11271
11272 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
11273
112742008-05-27 Juanma Barranquero <lekktu@gmail.com>
11275
11276 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
11277 into "else if () ... else ...".
11278
112792008-05-27 Jason Rumney <jasonr@gnu.org>
11280
11281 * w32font.c (w32font_open_internal): Determine if glyph indices
11282 are likely to work here.
11283
112842008-05-27 Chong Yidong <cyd@stupidchicken.com>
11285
11286 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
11287 draw overlap glyphs with appropriate highlighting.
11288
112892008-05-27 Kenichi Handa <handa@m17n.org>
11290
11291 * xfont.c (xfont_open): Fix calculation of font->average_width.
11292
112932008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11294
11295 * casefiddle.c (casify_object): Try to guess better whether the
11296 argument is a byte or a char.
11297
112982008-05-26 Andreas Schwab <schwab@suse.de>
11299
11300 * xselect.c (x_reply_selection_request): Properly handle format == 32.
11301 Always send multiples of format size.
11302
11303 * xterm.c (x_set_frame_alpha): Fix type mismatch.
11304
113052008-05-26 Jason Rumney <jasonr@gnu.org>
11306
11307 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
11308 (compute_metrics): Don't set failure if we just cleared the cache.
11309 (w32_weight_table): Remove unused variable.
11310 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
11311 backwards compatibility.
11312
113132008-05-25 Kenichi Handa <handa@m17n.org>
11314
11315 * w32term.c (x_draw_glyph_string):
11316 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
11317
11318 * xfaces.c: Delete unused function prototypes.
11319 (xstrlwr, font_frame): Delete them.
11320 (clear_face_cache): Delete unused variable.
11321
11322 * xftfont.c (xftfont_open): Delete unused variable.
11323 If underline_thickness is not 1, adjust underline_position.
11324
11325 * ftxfont.c (ftxfont_open): Delete unused variable.
11326
11327 * fontset.c (face_for_char): Optimize for the case of no charset
11328 property.
11329
11330 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
11331 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
11332 (otf_open, font_otf_capability, generate_otf_features)
11333 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11334 Comment out by surrounding "#if 0" and "#endif" for the moment.
11335 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
11336 (syms_of_font): Codes for accessing above commented out.
11337
113382008-05-24 Eli Zaretskii <eliz@gnu.org>
11339
11340 * w32proc.c: Include dispextern.h.
11341
11342 * w32.c: Include dispextern.h.
11343
113442008-05-23 Juanma Barranquero <lekktu@gmail.com>
11345
11346 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
11347 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
11348 Fix typos in docstrings.
11349
113502008-05-23 Jason Rumney <jasonr@gnu.org>
11351
11352 * xsmfns.c: Remove includes that are already included by config.h.
11353
113542008-05-23 Kenichi Handa <handa@m17n.org>
11355
11356 * charset.c (Qemacs, charset_emacs): New variables.
11357 (char_charset): Fix for non-Unicode characters.
11358 (syms_of_charset): Define charset_emacs.
11359
11360 * w32term.c (x_draw_glyph_string): Be sure to update
11361 s->underline_thickness and s->underline_position. Be sure to draw
11362 underline within the current line area.
11363
11364 * xterm.c (x_draw_glyph_string): Be sure to update
11365 s->underline_thickness and s->underline_position. Be sure to draw
11366 underline within the current line area.
11367
11368 * fontset.c: Delete unused variables and add casting for char *
11369 throughout the file.
11370 (fontset_font): Try the fallback fonts of the current fontset
11371 before consulting the default fontset.
11372
11373 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
11374
11375 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
11376
113772008-05-22 Jason Rumney <jasonr@gnu.org>
11378
11379 * font.c: Don't include strings.h.
11380
11381 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
11382
11383 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
11384 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
11385 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
11386 to call xstrcasecmp.
11387
11388 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
11389
11390 * fontset.c (fs_query_fontset): Use xstrcasecmp.
11391
11392 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
11393
11394 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
11395
113962008-05-22 Kenichi Handa <handa@m17n.org>
11397
11398 * puresize.h (BASE_PURESIZE): Increase to 1220000.
11399
11400 * font.c (font_prop_validate_style): Adjust for the format
11401 change of font_style_table.
11402
11403 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
11404 two args.
11405
11406 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
11407 two args.
11408
114092008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
11410
11411 * minibuf.c (keys_of_minibuf): Delete.
11412 * lisp.h (keys_of_minibuf): Delete.
11413 * emacs.c (main): Don't call keys_of_minibuf.
11414
114152008-05-22 Kenichi Handa <handa@m17n.org>
11416
11417 * ftfont.c (ftfont_resolve_generic_family): Rename from
11418 ftfont_list_generic_family. Return a single family for each
11419 generic family.
11420 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
11421 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
11422 Call font_add_log.
11423 (ftfont_match): Call font_add_log.
11424
11425 * font.h (Ffont_xlfd_name): EXFUN adjusted.
11426 (FONT_DEBUG): Define it.
11427 (font_add_log): Extern it.
11428 (font_assert): Rename from xassert.
11429
11430 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
11431 (xfont_list_family): Call font_add_log.
11432 (xfont_match): Likewise.
11433 (memq_no_quit): Delete.
11434
11435 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
11436 call of Ffont_xlfd_name.
11437
11438 * xfaces.c (struct table_entry, slant_table, weight_table)
11439 (swidth_table): Move to font.c.
11440
11441 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
11442 xassert are changed to font_assert. Delete many unused variables.
11443 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
11444 New variables.
11445 (struct table_entry): Move from xfaces.c and modified.
11446 (weight_table, slant_table, width_table): Move from xfaces.c and
11447 contents adjusted for the change of struct table_entry.
11448 (font_style_to_value, font_style_symbolic): Adjust for the
11449 format change of font_style_table.
11450 (font_parse_family_registry): Don't overwrite existing foundry and
11451 family of font_spec.
11452 (font_score): Fix calculation of diff for sizes.
11453 (font_sort_entites): Call font_add_log.
11454 (font_delete_unmatched): Return a newly created list.
11455 (font_list_entities): Fix previous change. Call font_add_log.
11456 (font_matching_entity, font_open_entity, font_close_entity):
11457 Call font_add_log.
11458 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
11459 (Finternal_set_font_style_table): Delete.
11460 (BUILD_STYLE_TABLE): New macro.
11461 (build_style_table): New function.
11462 (Vfont_log, font_log_env_checked): New variables.
11463 (font_add_log): New function.
11464 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
11465 Declare Lisp variables "font-weight-table", "font-slant-table",
11466 "font-width-table", and "font-log". Initialize font_style_table.
11467
114682008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
11469
11470 * xterm.c (x_set_frame_alpha): Move declarations before statements.
11471
114722008-05-21 Seiji Zenitani <zenitani@mac.com>
11473 Ryo Yoshitake <ryo@shiftmode.net>
11474
11475 * frame.c (Qalpha): Add a new frame parameter `alpha'.
11476 (Vframe_alpha_lower_limit): New variable.
11477 (x_set_alpha): New function.
11478
11479 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
11480
11481 * xfns.c (x-create-frame, Qalpha):
11482 Initialize the frame parameter `alpha'.
11483 * xterm.c (OPAQUE, OPACITY): New.
11484 (x_set_frame_alpha): New function.
11485 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
11486
11487 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
11488 * w32fns.c (w32_frame_parm_handlers): Likewise.
11489
114902008-05-20 Jason Rumney <jasonr@gnu.org>
11491
11492 * w32font.c (add_font_entity_to_list): Don't add non-opentype
11493 truetype fonts to opentype list.
11494
114952008-05-20 Juanma Barranquero <lekktu@gmail.com>
11496
11497 * fontset.c (Ffontset_info): Doc fix.
11498 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
11499 <ignore-relative-composition>: Fix typos in docstrings.
11500
11501 * font.c (syms-of-font) <font-encoding-alist>:
11502 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
11503 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
11504 (Ffont_otf_alternates): Doc fixes.
11505
115062008-05-20 Kenichi Handa <handa@m17n.org>
11507
11508 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
11509 font.h through out the file.
11510 (FONT_DRIVERS): Rename from FONTOBJ.
11511 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
11512 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
11513
11514 * emacs.c (main): Call syms_of_font unconditionally.
11515
11516 * font.h (find_font_encoding): Extern it.
11517
11518 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
11519 fontset.c.
194d44e7 11520 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
11521 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
11522 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
11523 only when HAVE_WINDOW_SYSTEM is defined.
11524 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
11525 when HAVE_WINDOW_SYSTEM is defined.
11526
11527 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
11528 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
11529
11530 * xfaces.c: Include font.h unconditionally.
11531 (merge_face_ref, merge_face_vectors)
11532 (Finternal_set_lisp_face_attribute): Cancel the previous change.
11533
115342008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
11535
11536 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
11537 indirect_variable.
11538 * eval.c (lisp_indirect_variable): New fun.
11539 (Fuser_variable_p): Use it.
11540
115412008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11542
11543 * lisp.h (indirect_variable):
11544 * data.c (indirect_variable, let_shadows_buffer_binding_p):
11545 Use Lisp_Symbol pointers rather than Lisp_Object.
11546 Adjust callers.
11547 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
11548 To this end, change calling-convention.
11549
11550 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
11551 if some non-hidden buffers are selected by string&pred.
11552
115532008-05-19 Chong Yidong <cyd@stupidchicken.com>
11554
11555 * process.c (wait_reading_process_output): Always check status
11556 when in batch mode.
11557
115582008-05-19 Kenichi Handa <handa@m17n.org>
11559
11560 * font.c (font_list_entities): Fix handling of cache.
11561 (font_matching_entity): Likewise.
11562
11563 * ftfont.c (cs_iso8859_1): Delete.
11564 (ft_face_cache): New variable.
11565 (struct ftfont_info): New member fc_charset_idx.
11566 (ftfont_build_basic_charsets): Delete.
11567 (fc_charset_table): New variable.
11568 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
11569 . FC_CHARSET_IDX) as :font-entity property in the font entity.
11570 Callers changed.
11571 (ftfont_lookup_cache, ftfont_get_charset): New functions.
11572 (ftfont_spec_pattern): New argument fc_charset_idx.
11573 Check registry more rigidly. Change callers.
11574 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
11575 change of :font-entity property of the font.
11576
11577 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
11578 property of the font.
11579
115802008-05-18 Juanma Barranquero <lekktu@gmail.com>
11581
11582 * coding.c (Fcoding_system_p): Rename argument to match docstring.
11583 (Funencodable_char_position, Fcheck_coding_systems_region)
11584 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
11585 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
11586 (Ffind_operation_coding_system, Fset_coding_system_priority)
11587 (Fcoding_system_eol_type): Doc fixes.
11588
115892008-05-17 Glenn Morris <rgm@gnu.org>
11590
11591 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
11592
115932008-05-16 Eli Zaretskii <eliz@gnu.org>
11594
11595 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
11596 and st_gid.
11597
11598 * frame.c (Fdelete_frame): Don't call font_update_drivers if
11599 HAVE_WINDOW_SYSTEM is not defined.
11600
11601 * xfaces.c (merge_face_ref, merge_face_vectors)
11602 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
11603 HAVE_WINDOW_SYSTEM is defined.
11604 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
11605
116062008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
11607
11608 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
11609
116102008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11611
11612 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
11613
116142008-05-15 Kenichi Handa <handa@m17n.org>
11615
11616 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
11617 preference.
11618
116192008-05-15 Glenn Morris <rgm@gnu.org>
11620
11621 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
11622
116232008-05-15 Chong Yidong <cyd@stupidchicken.com>
11624
11625 * fns.c (init_fns): Don't initialize weak_hash_tables here.
11626 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
11627
11628 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
11629
116302008-05-15 Kenichi Handa <handa@m17n.org>
11631
11632 * ftfont.c (ftfont_list): Downcase family name to check generic
11633 families.
11634
11635 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
11636 font-spec for QCfont value.
11637
11638 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
11639 buffer. Check the return value of it.
11640
116412008-05-14 Jason Rumney <jasonr@gnu.org>
11642
11643 * w32term.c (w32_get_glyph_overhangs): Remove.
11644 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
11645
116462008-05-14 Kenichi Handa <handa@m17n.org>
11647
11648 * font.c (font_prop_validate): Make nil a valid value.
11649 (font_clear_cache): Check if the cached vector of entities is nil
11650 or not.
11651
116522008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11653
11654 * emacs.c (main_thread): Conditionalize on
11655 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11656 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11657
11658 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11659 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11660 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11661
116622008-05-14 Kenichi Handa <handa@m17n.org>
11663
11664 * coding.c (detect_coding_iso_2022): Ignore a coding category that
11665 has no corresponding coding system.
11666
116672008-05-14 Jason Rumney <jasonr@gnu.org>
11668
11669 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11670
11671 * w32font.h (w32font_open_internal): Update declaration.
11672
11673 * w32font.c (w32font_open_internal): Change last argument from
11674 w32font_info struct to font object. Fill in font object from
11675 font_entity. Get Outline metrics if possible. Use them to
11676 calculate underline position and thickness. Use xlfd name as name
11677 property. Don't set codepage.
11678 (w32font_open): Pass font_object to w32font_open_internal. Don't
11679 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11680 (w32font_draw): Use s->font.
11681 (clear_cached_metrics): Don't clear non-existent blocks.
11682
11683 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11684 font was not found.
11685 (x_draw_glyph_string): Use underline position and thickness from font.
11686
11687 * w32uniscribe.c (uniscribe_open): Pass font_object to
11688 w32font_open_internal.
11689
116902008-05-14 Kenichi Handa <handa@m17n.org>
11691
11692 These changes are to delete all legacy font-handling codes, and
11693 make Emacs use only font-backends.
11694
11695 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11696 (frame.o, image.o, print.o): Depend on $(FONTSRC).
11697
11698 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11699
11700 * charset.h (Vcharset_non_preferred_head)
11701 (Vcurrent_iso639_language): Extern them.
11702
11703 * charset.c (Vcharset_non_preferred_head): New variable.
11704 (Vcurrent_iso639_language): New variable.
11705 (syms_of_charset): Declare it as a Lisp variable.
11706 (char_charset): Don't check non preferred charsets. As a last
11707 resort, return charset_unicode.
11708 (Fset_charset_priority): Update Vcharset_non_preferred_head.
11709
11710 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11711 conditionals. Don't check enable_font_backend. Delete all codes
11712 used only when USE_FONT_BACKEND is not defined.
11713
11714 * dispextern.h (struct glyph_string): Change type of `font' to
11715 `struct font *'.
11716 (struct glyph_string): New member underline_position and
11717 underline_thickness.
11718 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11719 (struct face): Change type of `font' to `struct font *'. Remove
11720 members `font_name', `font_info_id'.
11721 (per_char_metric, encode_char): Delete externs.
11722 (calc_pixel_width_or_height): Adjust the prototype.
11723
11724 * emacs.c (enable_font_backend): Delete extern.
11725 (main): Don't set enable_font_backend. Don't check the command
11726 line argument "-disable-font-backend".
11727
11728 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11729 (enum font_property_index): New members FONT_DPI_INDEX,
11730 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11731 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11732 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11733 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11734 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11735 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11736 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11737 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11738 (struct font_spec, struct font_entity): New structs.
11739 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11740 (struct font): Many members from old "struct font_info" moved to
11741 here. Members font and entity deleted.
11742 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11743 the new font-related objects.
11744 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11745 (CHECK_FONT_GET_OBJECT): Likewise.
11746 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11747 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11748 (struct font_driver): New members case_sensitive anc check. Type
11749 of the member list and open changed.
11750 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11751 (font_symbolic_width, font_find_object, font_get_spec)
11752 (font_set_lface_from_name): Delete extern.
11753 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11754
11755 * font.c: Include <strings.h>.
11756 (enable_font_backend): Delete it.
11757 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11758 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11759 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11760 (null_string): Delete it.
11761 (null_vector): Make it static.
11762 (font_family_alist): Delete it.
11763 (Qnormal): Extern it.
11764 (QCextra, QClanguage): Delete it.
11765 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11766 (font_make_spec, font_make_entity, font_make_object)
11767 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11768 the string. Callers changed.
11769 (font_pixel_size): Adjusted for the format change of font-related
11770 objects.
11771 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11772 (font_style_to_value, font_style_symbolic): New function.
11773 (build_font_family_alist): Delete it.
11774 (font_registry_charsets): Use Fassoc_string instead of
11775 assq_no_quit.
11776 (font_prop_validate_symbol): Don't return null_string.
11777 (font_prop_validate_style): Adjusted for the change of
11778 style-related values in a font vector.
11779 (font_property_table): Delete entries for QClanguage and
11780 QCantialias, add entries for QCavgwidth.
11781 (get_font_prop_index): Delete the 2nd argument FROM.
11782 (font_prop_validate): Arguments changed.
11783 (font_put_extra): Adjusted for the change of font-related objects.
11784 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11785 (font_parse_fcname, font_unparse_fcname)
11786 (font_prepare_composition): Likewise.
11787 (font_parse_family_registry): Renamed from font_merge_old_spec.
11788 (otf_open): Delete the 1st arg entity.
11789 (font_otf_capability): Adjusted for the above change.
11790 (font_score): New arg alternate_families. Adjusted for the change
11791 of font-related objects.
11792 (font_sort_entites): New arg best_only.
11793 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11794 Delete them.
11795 (font_match_p): Check alternate families.
11796 (font_find_object): Delete it.
11797 (font_check_object): New function.
11798 (font_clear_cache): Adjusted for the change of font-related objects.
11799 (font_delete_unmatched): New arg.
11800 (font_list_entities): Call font_driver->list with a spec that
11801 doesn't specify style-related properties.
11802 (font_matching_entity): Arguments changed. Caller changed.
11803 (font_open_entity): Adjusted for the change of font-related objects.
11804 (font_close_object, font_has_char, font_encode_char)
11805 (font_get_name, font_get_spec): Likewise.
11806 (font_spec_from_name, font_clear_prop, font_update_lface):
11807 New functions.
11808 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11809 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11810 (font_at): Adjusted for the change of font-related objects.
11811 (font_range): New function.
11812 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11813 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11814 (Fcopy_font_spec, Fmerge_font_spec): New function.
11815 (Ffont_family_list): Renamed from list-families.
11816 (Finternal_set_font_style_table): Arguments changed.
11817 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11818 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11819 change of font-related objects.
11820 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11821
11822 * fontset.h (struct font_info): Delete it. Most members go to
11823 struct font.
11824 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11825 (enum FONT_SPEC_INDEX): Delete it.
11826 (font_info, list_fonts_func, load_font_func, query_font_func)
11827 (set_frame_fontset_func, find_ccl_program_func)
11828 (get_font_repertory_func, new_fontset_from_font_name): Delete
11829 externs.
11830 (fontset_from_font_name): Extern it.
11831 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11832 (FONT_INFO_FROM_FACE): Deleted.
11833 (face_for_font): Adjust prototype.
11834
11835 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11836 conditionals. Don't check enable_font_backend. Delete all codes
11837 used only when USE_FONT_BACKEND is not defined.
11838 (get_font_info_func, list_font_func, load_font_func)
11839 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11840 (get_font_repertory_func): Delete them.
11841 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11842 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11843 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11844 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11845 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11846 (fontset_compare_rfontdef): New function.
11847 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11848 rfont-defs by qsort. Adjusted for the change of font-group vector.
11849 (load_font_get_repertory): Deleted.
11850 (fontset_find_font): Use new macros to ref/set elements of
11851 font-def and rfont-def.
11852 (fontset_font): Fix the timing of remembering that no font for C.
11853 (free_face_fontset): Do nothing if the face has no fontset.
11854 (face_suitable_for_char_p): Use new macros to ref/set elements of
11855 rfont-def.
11856 (face_for_char): Likewise. Call face_for_char with font_object.
11857 (fs_load_font): Delete. Delete #pragma surrounding it.
11858 (fs_query_fontset): Use strcasecmp instead of strcmp.
11859 (generate_ascii_font_name): Adjusted for the format change of
11860 font-spec.
11861 (Fset_fontset_font): Likewise. Use new macros to set elements of
11862 font-def.
11863 (Fnew_fontset): Use font_unparse_xlfd to generate
11864 FONTSET_ASCII (fontset).
11865 (new_fontset_from_font_name): Deleted.
11866 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11867 a fontset is already created for the font. FIx updating of
11868 Vfontset_alias_alist.
11869 (fontset_ascii_font): Deleted.
11870 (Ffont_info): Adjusted for the format change of font-spec.
11871 (Finternal_char_font): Likewise.
11872 (Ffontset_info): Likewise.
11873 (syms_of_fontset): Don't check load_font_func.
11874
11875 * fns.c (internal_equal): Handle PREV_FONT.
11876
11877 * frame.h: Delete USE_FONT_BACKEND conditional.
11878
11879 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11880 conditionals. Don't check enable_font_backend. Delete all codes
11881 used only when USE_FONT_BACKEND is not defined.
11882 (x_set_font): Call x_new_font, not x_new_fontset2.
11883 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11884 already set for the frame.
11885
11886 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11887 a font-entity by font_make_entity. Use font_intern_prop instead
11888 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11889 font property. If a font is scalable, set avgwidth property to 0.
11890 Set font-entity property by font_put_extra.
11891 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11892 (ffont_driver): Adjusted for the change of struct font_driver.
11893 (ftfont_spec_pattern): New function.
11894 (ftfont_list): Return a list, not vector.
11895 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11896 (ftfont_list_family): Don't downcase names.
11897 (ftfont_free_entity): Deleted.
11898 (ftfont_open): Return a font-object. Adjusted for the change of
11899 struct font. Get underline_thickness and underline_position from
11900 font property. Don't update dpyinfo->smallest_font_height and
11901 dpyinfo->smallest_char_width.
11902 (ftfont_close): Don't free `struct font'.
11903 (ftfont_has_char): Adjusted for the format change of font-entity.
11904 (ftfont_encode_char, ftfont_text_extents): Likewise.
11905
11906 * ftxfont.c (ftxfont_list): Return a list, not vector.
11907 (ftxfont_open): Return a font-object. Adjusted for the change of
11908 struct font. Get underline_thickness and underline_position from
11909 font property. Don't update dpyinfo->smallest_font_height and
11910 dpyinfo->smallest_char_width.
11911 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11912 (ftxfont_draw): Adjusted for the change of struct font.
11913
11914 * image.c (image_ascent): Don't include "charset.h". Include
11915 "character.h" and "font.h".
11916
11917 * lisp.h (enum pvec_type): New member PREV_FONT.
11918 (Fassoc_string): EXFUN it.
11919
11920 * print.c: Include font.h.
11921 (print_object): Handle font-related objects.
11922
11923 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11924 conditionals. Don't check enable_font_backend. Delete all codes
11925 used only when USE_FONT_BACKEND is not defined.
11926 (handle_auto_composed_prop): Do nothing if it->f is not on a
11927 window system. Check how many following characters can be
11928 displayed by the same font.
11929 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11930 'struct font *'.
11931 (get_char_face_and_encoding): Assign the whole encoding task to
11932 the `encode-char' method of a font driver.
11933 (fill_composite_glyph_string): Adjusted for the change of `struct
11934 face' and `struct glyph_string'.
11935 (fill_glyph_string): Likewise.
11936 (get_per_char_metric): Arguments changed.
11937 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11938 and `struct glyph_string'.
11939 (produce_stretch_glyph, calc_line_height_property)
11940 (x_produce_glyphs): Likewise.
11941
11942 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11943 conditionals. Don't check enable_font_backend. Delete all codes
11944 used only when USE_FONT_BACKEND is not defined. Use
11945 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11946 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11947 (Qp): Extern them.
11948 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11949 Deleted.
11950 (struct font_name): Deleted.
11951 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11952 (compare_fonts_by_sort_order): New function.
11953 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11954 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11955 Deleted.
11956 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11957 compare_fonts_by_sort_order.
11958 (Fx_font_family_list): Call Ffont_family_list.
11959 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11960 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11961 (face_symbolic_slant, face_symbolic_swidth)
11962 (split_font_name_into_vector, build_font_name_from_vector)
11963 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11964 (font_rescale_ratio, split_font_name, build_font_name)
11965 (free_font_names, sort_fonts, x_face_list_fonts)
11966 (face_font_available_p, sorted_font_list, cmp_font_names)
11967 (font_list_1, concat_font_list, font_list, remove_duplicates):
11968 Deleted.
11969 (Fx_list_fonts): Use Ffont_list.
11970 (LFACE_AVGWIDTH): Deleted.
11971 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11972 by FONTP.
11973 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11974 (set_lface_from_font_name): Delete it.
11975 (set_lface_from_font): Renamed from
11976 set_lface_from_font_and_fontset. Caller changed. Don't set
11977 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11978 for face.
11979 (merge_face_vectors): Copy font-spec if necessary.
11980 Clear properties of the font-spec if necessary.
11981 (merge_face_ref): Clear properties of the font-spec if necessary.
11982 (Finternal_set_lisp_face_attribute): Likewise.
11983 (set_font_frame_param): Use font_load_for_lface to load a
11984 font-object, and call Fmodify_frame_parameters with it.
11985 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11986 font name by Ffont_xlfd_name.
11987 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11988 QCslant, and QCwidth.
11989 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11990 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11991 Compare fonts by EQ.
11992 (lookup_non_ascii_face): Deleted.
11993 (face_for_font): The 2nd argument changed.
11994 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11995 Check atomic font properties by case insensitive.
11996 (realize_non_ascii_face): Set face->overstrike correctly.
11997 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11998 (dump_realized_face): Get font name from
11999 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
12000
12001 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
12002 conditionals. Don't check enable_font_backend. Delete all codes
12003 used only when USE_FONT_BACKEND is not defined.
12004 (xic_create_xfontset): Original code deleted and renamed from
12005 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
12006 (x_make_gc): Don't set GCFont in GCs.
12007 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
12008 opened by "fixed".
12009 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
12010 find_ccl_program_func, query_font_func, set_frame_fontset_func,
12011 get_font_repertory_func.
12012
12013 * xfont.c: Include <stdlib.h> and "ccl.h".
12014 (struct xfont_info): New structure.
12015 (xfont_query_font): Deleted.
12016 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
12017 moved from xterm.c.
12018 (xfont_driver): Adjusted for the change of struct font_driver.
12019 (compare_font_names): New function.
12020 (xfont_list_pattern): Sort font names case insensitively. Make
12021 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
12022 (xfont_list): Return a list, not vector.
12023 (xfont_match): If the font doesn't have QCname property, generate
12024 a name from the other font properties.
12025 (xfont_open): Return a font-object. Adjusted for the change of
12026 struct font. Get underline_thickness and underline_position from
12027 font property. Don't update dpyinfo->smallest_font_height and
12028 dpyinfo->smallest_char_width.
12029 (xfont_close): Don't free struct font.
12030 (xfont_prepare_face): Adjusted for the change of struct font.
12031 (xfont_done_face): Deleted.
12032 (xfont_has_char): Adjusted for the change of struct font.
12033 (xfont_encode_char, xfont_draw): Likewise.
12034 (xfont_check): New function.
12035
12036 * xftfont.c (xftfont_list): Adjusted for the change of `list'
12037 callback function.
12038 (xftfont_match): Adjusted for the format change of font-entity.
12039 (xftfont_open): Adjusted for the format change of font-entity and
12040 font-object. Adjusted for the change of struct font. Return a
12041 font-object. Don't update dpyinfo->smallest_font_height and
12042 dpyinfo->smallest_char_width.
12043 (xftfont_close): Block input while calling XftFontClose.
12044 (xftfont_prepare_face): Don't block input while calling
12045 xftfont_get_colors. Adjusted for the change of struct font.
12046 (xftfont_shape): Return value of error case fixed.
12047
12048 * xrdb.c (x_load_resources): Don't setup a fontset resource.
12049
12050 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
12051 conditionals.
12052 (FONT_WIDTH): Return (f)->max_width.
12053 (struct x_display_info): Delete member `font'.
12054 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
12055 (x_find_ccl_program, x_get_font_repertory): Delete externs.
12056 (struct x_output): Change type of `font' to `struct font *'.
12057
12058 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
12059 conditionals. Don't check enable_font_backend. Delete all codes
12060 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
12061 (x_per_char_metric, x_encode_char): Deleted.
12062 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
12063 (x_compute_glyph_string_overhangs): Adjusted for the change of
12064 `struct face'.
12065 (x_draw_glyph_string_foreground)
12066 (x_draw_composite_glyph_string_foreground): Likewise.
12067 (x_draw_glyph_string): Likewise. Use font->underline_position and
12068 font->underline_thickness.
12069 (x_new_font): Renamed from x_new_fontset2.
12070 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
12071 (x_check_font): Call `check' method of a font driver.
12072 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
12073 (x_query_font, x_get_font_repertory): Deleted.
12074 (x_find_ccl_program): Renamed and moved to xfont.c.
12075 (x_redisplay_interface): Adjusted for the change of `struct
12076 redisplay_interface'.
12077
12078 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
12079 conditionals. Don't check enable_font_backend. Delete all codes
12080 used only when USE_FONT_BACKEND is not defined. Surround non-used
12081 code by "#ifdef OLD_FONT" and "endif".
12082 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
12083
12084 * w32font.h (struct w32font_info): New member.
12085 (FONT_COMPAT): New macro.
12086 (w32font_open_internal): Prototype adjusted.
12087
12088 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
12089 OLD_FONT" and "endif".
12090
12091 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
12092 conditionals. Don't check enable_font_backend. Delete all codes
12093 used only when USE_FONT_BACKEND is not defined.
12094 (w32font_open): Return a font-object. Make a font-object by
12095 font_make_object. Adjusted for the change of struct w32font_info.
12096 (w32font_close): Don't free struct font. Adjusted for the change
12097 of struct w32font_info.
12098 (w32font_encode_char, w32font_text_extents, w32font_draw):
12099 Adjusted for the change of struct w32font_info.
12100 (w32font_draw): Likewise.
12101 (w32font_list_internal): Return a list, not vector.
12102 (w32font_open_internal): Change the 4th arg to font-object.
12103 Adjusted for the change of struct w32font_info and font-object format.
12104 (add_font_name_to_list): Don't downcase names.
12105 (w32_enumfont_pattern_entity): Make a font-entity by
12106 font_make_entity. Adjusted for the format change of font-entity.
12107 Use FONT_SET_STYLE to set a style-related font property. If a
12108 font is scalable, set avgwidth property to 0. Set font-entity
12109 property by font_put_extra.
12110 (font_matches_spec): Adjusted for the format change of font-entity.
12111 (w32_weight_table, w32_decode_weight): New variables.
12112 (w32_encode_weight): New function.
12113 (fill_in_logfont): Adjusted for the format change of font-spec.
12114 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
12115 weight value.
12116 (w32font_driver): Adjusted for the change of struct font_driver.
12117
12118 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
12119 conditionals. Don't check enable_font_backend. Surround non-used
12120 code by "#ifdef OLD_FONT" and "endif".
12121 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
12122 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
12123
12124 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
12125 conditionals. Don't check enable_font_backend. Delete all codes
12126 used only when USE_FONT_BACKEND is not defined. Surround non-used
12127 code by "#ifdef OLD_FONT" and "endif".
12128
12129 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
12130 (uniscribe_open): Return value changed to font-object.
12131 Adjusted for the format change of font-object.
12132 (uniscribe_otf_capability): Adjusted for the change of struct font.
12133 (add_opentype_font_name_to_list): Don't downcase names.
12134 (uniscribe_font_driver): Adjusted for the change of struct
12135 font_driver.
12136
121372008-05-13 Chong Yidong <cyd@stupidchicken.com>
12138
12139 * dispnew.c (update_frame_1): Check if tty output is still valid
12140 before flushing it.
12141
121422008-05-13 Jan Djärv <jan.h.d@swipnet.se>
12143
12144 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
12145 to Gtk+ menus.
12146
121472008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
12148
12149 * dired.c (file_name_completion): Tweak the code so as to always do it
12150 in a single pass. Tighten the scope of some variables.
12151
12152 * dired.c (Qdefault_directory): New var.
12153 (file_name_completion): Use it instead of Fexpand_file_name.
12154 (syms_of_dired): Initialize it.
12155
121562008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
12157
12158 * fileio.c (double_dollars): Remove dead code.
12159
121602008-05-10 Eli Zaretskii <eliz@gnu.org>
12161
12162 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
12163 Mention w32-get-true-file-attributes in doc string.
12164
12165 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
12166
121672008-05-09 Glenn Morris <rgm@gnu.org>
12168
12169 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
12170 2008-04-23.
12171
121722008-05-09 Eli Zaretskii <eliz@gnu.org>
12173
12174 Support for reporting owner and group of each file on MS-Windows:
12175 * dired.c (stat_uname, stat_gname): New functions, with special
12176 implementation for w32.
12177 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
12178
12179 * w32.c: Rename the_passwd_* to dflt_passwd_*.
12180 (dflt_group_name): New static variable.
12181 (dflt_group): Rename from the_group.
12182 (init_user_info): Init dflt_group fields. Get user's group name
12183 from LookupAccountSid.
12184 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
12185 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
12186 New initialization states.
12187 (globals_of_w32): Initialize them to zero. Initialize the default
12188 group name to "None".
12189 (GetFileSecurity_Name): New global var, the name of the function
12190 to call for GetFileSecurity.
12191 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
12192 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
12193 (get_file_security, get_security_descriptor_owner)
12194 (get_security_descriptor_group, is_valid_sid)
12195 (get_file_security_desc, get_rid, get_name_and_id)
12196 (get_file_owner_and_group): New functions.
12197 (stat): Use get_file_security_desc and get_file_owner_and_group to
12198 report the owner and primary group of each file. Don't ignore the
12199 high 32 bits of file's size, now that st_size is 64-bit wide.
12200 Fix test when to get true file attributes.
12201 (init_user_info): Use get_rid instead of equivalent inline code.
12202 (fstat): Don't ignore the high 32 bits of file's size.
12203
122042008-05-09 Chong Yidong <cyd@stupidchicken.com>
12205
12206 * image.c (png_load): Use correct bit-depth for setting background
12207 color.
12208
122092008-05-08 Eli Zaretskii <eliz@gnu.org>
12210
12211 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
12212 epa-hook.elc.
12213
122142008-05-08 Juanma Barranquero <lekktu@gmail.com>
12215
12216 * font.c (Ffont_match_p): Don't use `iff' in docstring.
12217
122182008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
12219
12220 * macfns.c (Fx_create_frame): Make a copy of frame parameters
12221 because the original parameters are in pure storage now.
12222 (mac_window): Remove unused params. Update callers.
12223
122242008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12225
12226 * lread.c (substitute_object_recurse): Use lower-level primitives.
12227 Don't signal errors when traversing sub-char-tables.
12228 Don't loop over all the possible characters when traversing char-tables.
12229
12230 * print.c (print_preprocess): Add sub-char-tables to the print-table,
12231 just like we do in print.c.
12232
122332008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
12234
12235 * minibuf.c (Ftry_completion): Remove code left over from when we used
12236 scmp instead of Fcompare_strings.
12237
122382008-05-04 Juanma Barranquero <lekktu@gmail.com>
12239
12240 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
12241
122422008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12243
12244 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
12245 Create bitmap context in native byte order.
12246
12247 * macterm.c (XDrawLine)
12248 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
12249 context in native byte order.
12250
122512008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12252
12253 * config.in: Regenerate.
12254
12255 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
12256 New definitions for Image I/O support.
12257 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12258 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
12259 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12260 (mac_data_provider_release_data, image_load_image_io)
12261 [USE_MAC_IMAGE_IO]: New functions.
12262 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
12263 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
12264 (init_image_func_pointer) [MAC_OSX]: Remove function.
12265 (image_load_quartz2d) [MAC_OSX]: Check availability of
12266 CGImageCreateWithPNGDataProvider at compile time.
12267 Use lowercase `false' for boolean constant.
12268 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
12269 Use image_load_image_io.
12270 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
12271 Don't check MyCGImageCreateWithPNGDataProvider.
12272 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
12273 Don't call init_image_func_pointer.
12274
12275 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
12276
12277 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
12278 Make variable non-static.
12279 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
12280 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12281
12282 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
12283 (RED_FROM_ULONG): Mask off higher bits.
12284 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
12285
12286 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
12287 Include AvailabilityMacros.h.
12288 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
12289 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
12290
122912008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
12292
12293 * chartab.c (Fset_char_table_range): If range is t, really set all
12294 chars to that value.
12295
122962008-05-03 Eli Zaretskii <eliz@gnu.org>
12297
12298 * dired.c (Ffile_attributes): Don't allow the device number become
12299 negative.
12300
123012008-05-02 Daiki Ueno <ueno@unixuser.org>
12302
12303 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
12304
123052008-05-02 Juri Linkov <juri@jurta.org>
12306
12307 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
12308 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
12309 DEFAULT argument as a list of default values in docstrings.
12310
123112008-05-01 Chong Yidong <cyd@stupidchicken.com>
12312
12313 * puresize.h (BASE_PURESIZE): Increase to 1210000.
12314
123152008-05-01 Martin Rudalics <rudalics@gmx.at>
12316
12317 * dispnew.c (change_frame_size_1): Preserve small windows when
12318 shrinking frames by calling set_window_height|width with third
12319 arg 2.
12320
12321 * window.h (struct window): Replace field too_small_ok by field
12322 resize_proportionally.
12323
12324 * window.c (make_window): Initialize resize_proportionally.
12325 (enlarge_window): Temporarily set resize_proportionally to make
12326 sure that shrink_windows does scale the window proportionally.
12327 (shrink_windows): When window has resize_proportionally set try
12328 to shrink it proportionally by stealing from other windows.
12329 (struct saved_window, Fset_window_configuration)
12330 (compare_window_configurations): Handle resize_proportionally.
12331 (WINDOW_TOTAL_SIZE): New macro.
12332 (window_min_size, shrink_windows, size_window): Use it.
12333 (check_min_window_sizes): Remove. Invalid values of
12334 window-min-height|width are handled by window_min_size_2 now.
12335 (size_window, Fsplit_window, enlarge_window)
12336 (adjust_window_trailing_edge, grow_mini_window): Don't call
12337 check_min_window_sizes.
12338 (window_min_size_2, window_min_size_1, window_min_size):
12339 New argument safe_p for retrieving "safe" minimum sizes.
12340 (Fdisplay_buffer, Fsplit_window, enlarge_window)
12341 (adjust_window_trailing_edge, grow_mini_window):
12342 Adjust arguments of window_min_size... functions.
12343 (shrink_windows): Argument min_size removed. New argument
12344 safe_p allows shrinking windows to their safe minimum sizes.
12345 Calculate minimum size and decide whether a window shall be
12346 deleted for each window individually.
12347 (size_window): When nodelete_p equals 2, tell shrink_windows to
12348 delete windows only if their new minimum size is no more safe.
12349 (shrink_window_lowest_first): Call window_min_size_1 to make
12350 sure to preserve modeline of bottom-most window when resizing
12351 the minibuffer.
12352 (Fset_window_configuration, Fcurrent_window_configuration)
12353 (compare_window_configurations): Do not handle
12354 window-min-height|width any more.
12355 (syms_of_window): Clarify window-min-height|width doc-strings.
12356
123572008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
12358
12359 * dired.c (file_name_completion): Fix up the encoding/decoding issue
12360 some more. Copy some of the code from Ftry_completions.
12361 Remove special case code that dates back to initial revision when the
12362 slash was only added when necessary and that can't trigger nowadays.
12363
123642008-04-27 Kenichi Handa <handa@m17n.org>
12365
12366 * font.c (font_prop_validate): Signal `error' instead of `font'.
12367
123682008-04-29 Jason Rumney <jasonr@gnu.org>
12369
12370 * w32fns.c (Fw32_battery_status): New defun.
12371 (syms_of_w32fns): Defsubr it.
12372
123732008-04-28 Andreas Schwab <schwab@suse.de>
12374
12375 * dired.c (file_name_completion): Fix another mixing of encoded
12376 and decoded names.
12377
123782008-04-28 Juanma Barranquero <lekktu@gmail.com>
12379
12380 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
12381
123822008-04-27 Juanma Barranquero <lekktu@gmail.com>
12383
12384 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
12385
123862008-04-27 Andreas Schwab <schwab@suse.de>
12387
12388 * dired.c (file_name_completion): Fix inappropriate mixing of
12389 encoded and decoded names.
12390
12391 * xterm.c (XTread_socket): Fix use of uninitialized variable.
12392
12393 * puresize.h (BASE_PURESIZE): Increase to 1200000.
12394
123952008-04-26 Eli Zaretskii <eliz@gnu.org>
12396
12397 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
12398 2008-03-31, it's not needed anymore with `struct stat' definition
12399 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
12400 for the same reasons.
12401
124022008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
12403
12404 * m/sparc.h: Additional redefinitions for GNU/Linux.
12405
124062008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12407
12408 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
12409 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
12410 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
12411 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
12412 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12413 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
12414 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12415 Likewise.
12416
12417 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
12418 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
12419 (mac_ax_number_of_characters): Add externs.
12420 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12421 [USE_MAC_TSM]: Likewise.
12422 (mac_handle_text_input_event) [MAC_OSX]:
12423 Handle kEventTextInputOffsetToPos for no active input area case.
12424 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12425 (mac_handle_document_access_event)
12426 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
12427 (install_application_handler) [MAC_OSX]: Register handlers for
12428 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12429 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12430 Register mac_handle_document_access_event.
12431
12432 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
12433 Make functions non-static.
12434
124352008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
12436
12437 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
12438 (read_file_name_completion_ignore_case, insert_default_directory)
12439 (Qdefault_directory): Move to minibuffer.el.
12440 (Fread_file_name): Call the new `read-file-name' instead.
12441
124422008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12443
12444 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
12445 Make function non-static.
12446 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
12447 Remove function.
12448 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12449 Move to mactoolbox.c.
12450 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
12451
12452 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
12453 (mac_rect_make): New macro.
12454
12455 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
12456 instead of float.
12457 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12458 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
12459 (XSetBackground) [USE_CG_DRAWING]: Likewise.
12460 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
12461 CGRectMake.
12462 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12463 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
12464 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
12465 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12466 instead of WindowRef in argument type.
12467 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
12468 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
12469 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
12470 instead of DISPLAY. All uses changed.
12471 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
12472 (x_calc_absolute_position): Simplify so as not to use
12473 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
12474
12475 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12476 instead of WindowRef in argument type.
12477 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
12478 [TARGET_API_MAC_CARBON]: Remove externs.
12479 (create_apple_event, mac_event_parameters_to_lisp)
12480 [TARGET_API_MAC_CARBON]: Add externs.
12481
12482 * mactoolbox.c (Vmac_ts_script_language_on_focus)
12483 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
12484 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
12485 is clicked.
12486 (x_activate_menubar): Remove extern for saved_menu_event_location.
12487 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12488 Move from mac.c.
12489
124902008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12491
12492 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
12493 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
12494
124952008-04-23 Jason Rumney <jasonr@gnu.org>
12496
12497 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
12498 attributes only for local files.
12499
12500 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
12501 default to Qlocal.
12502
125032008-04-22 Juri Linkov <juri@jurta.org>
12504
12505 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
12506 read-buffer-to-switch instead of using the letter "B".
12507
125082008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
12509
12510 * fileio.c (Qdefault_directory): New variable.
12511 (Fread_file_name): Use it to pass `dir' to the completion functions.
12512
125132008-04-20 Chong Yidong <cyd@stupidchicken.com>
12514
12515 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
12516
125172008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
12518
12519 * keyboard.c (Vpre_help_message): Remove.
12520 (show_help_echo): Remove default C code.
12521
12522 * dired.c (directory_files_internal, file_name_completion):
12523 Only call ENCODE_FILE if the string is indeed decoded.
12524
125252008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12526
12527 * Makefile.in (TOOLKIT_DEFINES): Remove.
12528 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
12529
125302008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12531
12532 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
12533 (mactoolbox.o): New target.
12534
12535 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
12536 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
12537
12538 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
12539 Use mac_set_frame_window_background instead of XSetWindowBackground.
12540 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
12541 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
12542 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
12543 instead of SetWindowTitleWithCFString.
12544 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
12545 Move function to mactoolbox.c.
12546 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
12547 Use mac_set_window_modified instead of SetWindowModified.
12548 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
12549 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
12550 (Fx_focus_frame): Use mac_front_non_floating_window instead of
12551 FrontNonFloatingWindow. Use mac_activate_window instead of
12552 ActivateWindow. Use mac_active_non_floating_window instead of
12553 ActiveNonFloatingWindow.
12554 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
12555 Use mac_show_hourglass and mac_hide_hourglass.
12556 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
12557 instead of GetGlobalMouse.
12558 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
12559 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
12560 Use mac_bring_window_to_front instead of BringToFront.
12561 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
12562 mactoolbox.c.
12563 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
12564 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
12565 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
12566 mactoolbox.c.
12567
12568 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
12569 (XtPointer): Move typedef from macmenu.c.
12570 (enum button_type): Move enum from macmenu.c.
12571 (widget_value): Move typedef from macmenu.c.
12572 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
12573 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12574 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12575 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12576 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12577 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12578 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12579 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
12580 (Selection): Move typedef from macselect.c.
12581 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
12582 macterm.c.
12583 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
12584 (mac_is_window_collapsed, mac_bring_window_to_front)
12585 (mac_send_window_behind, mac_hide_window, mac_show_window)
12586 (mac_collapse_window, mac_front_non_floating_window)
12587 (mac_active_non_floating_window, mac_activate_window)
12588 (mac_move_window_structure, mac_move_window, mac_size_window)
12589 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
12590
12591 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
12592 (enum mac_menu_kind): Move enum to mactoolbox.c.
12593 (min_menu_id): Move variable to mactoolbox.c.
12594 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
12595 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
12596 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12597 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12598 [TARGET_API_MAC_CARBON]: Likewise.
12599 (XtPointer): Move typedef to macgui.h.
12600 (enum button_type): Move enum to macgui.h.
12601 (widget_value): Move typedef to macgui.h.
12602 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12603 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12604 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12605 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12606 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12607 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12608 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
12609 (popup_activated_flag): Make variable non-static.
12610 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
12611 (add_menu_item, fill_menu, dispose_menus):
12612 Move functions to mactoolbox.c.
12613 (restore_show_help_function, menu_target_item_handler)
12614 (install_menu_target_item_handler, mac_handle_dialog_event)
12615 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
12616 [TARGET_API_MAC_CARBON]: Likewise.
12617 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
12618 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12619 (find_and_call_menu_selection, name_is_separator): Make function
12620 non-static.
12621 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
12622 to mactoolbox.c.
12623 (set_frame_menubar): Don't call install_menu_quit_handler.
12624 (menu_item_selection): New variable.
12625 (mac_menu_show): Use create_and_show_popup_menu.
12626 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
12627 selection but set variable menu_item_selection. All uses changed.
12628 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
12629 Call install_menu_quit_handler. Move to mactoolbox.c.
12630
12631 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
12632 (Selection): Move typedef to macgui.h.
12633 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
12634 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
12635 Make variables non-static.
12636 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12637 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
12638 Make functions non-static.
12639 (Vmac_service_selection) [MAC_OSX]: Likewise.
12640 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
12641 (mac_valid_selection_target_p, mac_clear_selection)
12642 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12643 (mac_put_selection_value, mac_selection_has_target_p)
12644 (mac_get_selection_value, mac_get_selection_target_list)
12645 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
12646 Move functions to mactoolbox.c.
12647 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
12648 Likewise.
12649 (copy_scrap_flavor_data, mac_handle_service_event)
12650 (install_service_handler) [MAC_OSX]: Likewise.
12651 (syms_of_macselect) <Vmac_dnd_known_types>:
12652 Use mac_dnd_default_known_types.
12653
12654 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
12655 Move to mactoolbox.c.
12656 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12657 (Fx_selection_owner_p): Add EXFUN.
12658 (install_window_handler, remove_window_handler, XSetWindowBackground):
12659 Remove externs.
12660 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12661 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12662 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12663 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12664 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12665 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12666 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12667 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12668 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12669 (create_and_show_popup_menu, mac_get_selection_from_symbol)
12670 (mac_valid_selection_target_p, mac_clear_selection)
12671 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12672 (mac_put_selection_value, mac_selection_has_target_p)
12673 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12674 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12675 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12676 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12677 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12678 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12679 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12680 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12681 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12682
12683 * mactoolbox.c: New file.
12684
126852008-04-18 Jason Rumney <jasonr@gnu.org>
12686
12687 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12688
126892008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12690
12691 * character.c (Fmultibyte_char_to_unibyte):
12692 Return latin1 chars unchanged.
12693
12694 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12695 relocated if it points to `name'.
12696
126972008-04-17 Kenichi Handa <handa@m17n.org>
12698
12699 * data.c (Faset): Allow setting a multibyte character in an
12700 ASCII-only unibyte string.
12701
12702 * lisp.h (STRING_SET_MULTIBYTE): New macro.
12703
127042008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
12705
12706 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12707 done in config.h.
12708
127092008-04-16 Juanma Barranquero <lekktu@gmail.com>
12710
12711 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12712 (Fchar_direction): Add usage in the docstring.
12713
127142008-04-15 Chong Yidong <cyd@stupidchicken.com>
12715
12716 * keyboard.c (read_key_sequence): Remove always-true checks.
12717
127182008-04-14 Jason Rumney <jasonr@gnu.org>
12719
12720 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12721 compatibility struct, for better underline positioning.
12722
127232008-04-13 David Hansen <david.hansen@gmx.net>
12724
12725 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12726 string.
12727
127282008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12729
12730 * m/hp800.h (XUINT, XSET): Remove.
12731
127322008-04-12 Juanma Barranquero <lekktu@gmail.com>
12733
12734 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12735 previous change.
12736
127372008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12738
12739 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12740 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12741
127422008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12743
12744 * keymap.h (map_keymap_canonical): Declare.
12745 * xmenu.c (single_keymap_panes): Use it.
12746
127472008-04-11 Glenn Morris <rgm@gnu.org>
12748
12749 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12750 set the target's value to that of the alias.
12751
127522008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12753
12754 * term.c (set_tty_color_mode): Left over typo.
12755
127562008-04-10 Michael Albinus <michael.albinus@gmx.de>
12757
12758 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12759 only after check for file name handler functions. Signal, when
12760 native functionality is not supported.
12761 (syms_of_fileio): Declare it unconditionally.
12762
127632008-04-10 Jason Rumney <jasonr@gnu.org>
12764
12765 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12766 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12767
12768 * w32.c (logon_network_drive): Also logon to remote drives that
12769 are mapped to drive letters.
12770
127712008-04-10 Glenn Morris <rgm@gnu.org>
12772
12773 * xdisp.c (truncate-partial-width-windows): Doc fix.
12774
127752008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12776
12777 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12778 Move functions to minibuffer.el.
12779 (syms_of_fileio): Don't declare them.
12780
127812008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12782
12783 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12784 (syms_of_minibuf): Remove its initialization.
12785
12786 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12787
127882008-04-09 Juanma Barranquero <lekktu@gmail.com>
12789
12790 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12791
127922008-04-09 Jason Rumney <jasonr@gnu.org>
12793
12794 * makefile.w32-in (distclean): Delete makefile too.
12795 (maintainer-clean): New target.
12796
12797 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12798
12799 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12800 for new font backend and composite cases.
12801
128022008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12803
12804 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12805 Most of the code moved to run_timers.
12806 (do_pending_atimers): Call run_timers.
12807 (run_timers): New function.
12808
12809 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12810 run atimers.
12811
12812 * process.c (wait_reading_process_output): The same as above.
12813
128142008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12815
12816 * minibuf.c (last_exact_completion): Remove variable.
12817 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12818 (complete_and_exit_1, complete_and_exit_2)
12819 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12820 (Fdisplay_completion_list, display_completion_list_1)
12821 (Fminibuffer_completion_help, Fself_insert_and_exit)
12822 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12823 minibuffer.el.
12824 (syms_of_minibuf): Remove corresponding initializations.
12825
12826 * keyboard.c (Qdeactivate_mark): New var.
12827 (command_loop_1): Use it to call `deactivate-mark'.
12828 (syms_of_keyboard): Initialize it.
12829
12830 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12831 to another frame.
12832 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12833 Don't call set_tty_color_mode.
12834 (store_frame_param): Reset previous_frame rather than call
12835 set_tty_color_mode.
12836 * term.c (set_tty_color_mode): Rewrite.
12837 * dispextern.h (set_tty_color_mode): New type.
12838 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12839
128402008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12841
12842 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12843 for generic chars, which do not exist any more in emacs-unicode.
12844
128452008-04-08 Michael Albinus <michael.albinus@gmx.de>
12846
12847 * coding.c (detect_coding_emacs_mule)
12848 (Ffind_operation_coding_system): Fix typo.
12849
128502008-04-08 Jason Rumney <jasonr@gnu.org>
12851
12852 * w32uniscribe.c (SNAME): Extract only symbol name.
12853
12854 * w32font.h (struct w32_metric_cache): New struct.
12855 (w32font_info): Use it.
12856 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12857 (CACHE_BLOCKSIZE): New constants.
12858
12859 * w32font.c (Qja, Qko, Qzh): New symbols.
12860 (syms_of_w32font): Initialise them.
12861 (font_matches_spec): Use them to filter by language.
12862 (recompute_cached_metrics): Remove function.
12863 (compute_metrics, clear_cached_metrics): New functions.
12864 (w32font_encode_char): Use them to manage metric cache.
12865 (w32font_text_extents): Cache metrics for all glyphs on demand.
12866 Delay converting glyph indices to WORD until needed.
12867 (w32font_open_internal): Initialize metric cache to empty.
12868 (registry_to_w32_charset): Charset should always be a symbol.
12869 (fill_in_logfont, list_all_matching_fonts): Family should
12870 always be a symbol.
12871
128722008-04-06 Jason Rumney <jasonr@gnu.org>
12873
12874 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12875 Give up if glyph indices not supported. Use uniscribe obtained
12876 ABC widths for individual metrics. Map glyph clusters back to
12877 characters using fClusterStart flag. Return number of glyphs
12878 produced, not chars processed.
12879 (uniscribe_shape): Map char at FROM to current glyph.
12880
128812008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12882
12883 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12884 Use SetMenuItemHierarchicalMenu.
12885
128862008-04-05 Jason Rumney <jasonr@gnu.org>
12887
12888 * image.c (pbm_load): Allow color values up to 65535.
12889 Throw an error if max_color_idx is outside the supported range.
12890 Report an error when image size is invalid.
12891 Read two bytes at a time when raw images have max_color_idx above 255.
12892
128932008-04-05 Eli Zaretskii <eliz@gnu.org>
12894
12895 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12896 cFileName a file name that includes `?' characters, use the 8+3
12897 alias in cAlternateFileName instead.
12898
128992008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12900
12901 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12902 append "CCL: Quitted" when the CCL program is quitted.
12903 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12904
12905 * ccl.h (struct ccl_program): New member quit_silently.
12906
129072008-04-05 Chong Yidong <cyd@stupidchicken.com>
12908
12909 * search.c (compile_pattern_1): Treat non-nil and non-string of
12910 search-spaces-regexp as nil.
12911
12912 * minibuf.c (Fassoc_string): Tweak docstring.
12913
129142008-04-05 Eli Zaretskii <eliz@gnu.org>
12915
12916 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12917 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12918 2008-03-14 to force inode be positive.
12919
12920 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12921 _S_* ones, since we now use our own sys/stat.h.
12922 (stat, fstat): Don't mangle the inode number.
12923 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12924
129252008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12926
12927 * frame.h (struct frame): Give one more bit to `visible' since we use
12928 values larger than 1 to indicate obscured frames on ttys.
12929
12930 * keymap.c (Qkeymap_canonicalize): New var.
12931 (Fmap_keymap_internal): New fun.
12932 (describe_map): Use keymap-canonicalize.
12933
12934 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12935 (Fundo_boundary): Set them.
12936 (syms_of_undo): Initialize them.
12937 (record_point): Use them instead of last_point_position*.
12938 (last_undo_buffer): Change type.
12939
129402008-04-04 Jason Rumney <jasonr@gnu.org>
12941
12942 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12943 (recompute_cached_metrics): Don't set ascent and descent per char.
12944
12945 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12946 (uniscribe_check_otf): Add GC protection before consing.
12947 Rearrange loop for counting features.
12948
129492008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12950
12951 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12952 buffer with byte-size of source buffer.
12953
129542008-04-03 Chong Yidong <cyd@stupidchicken.com>
12955
12956 * callint.c (Fcall_interactively): Handle temporary region even
12957 when shift-select-mode is off.
12958
129592008-04-03 Jason Rumney <jasonr@gnu.org>
12960
12961 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12962
129632008-04-03 Kenichi Handa <handa@m17n.org>
12964
12965 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12966 (CATEGORY_MASK_UTF_16): Likewise.
12967 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12968 binary file.
12969 (detect_coding): Add null-byte detection for a binary file.
12970 (detect_coding_system): Likewise.
12971
129722008-04-03 Jason Rumney <jasonr@gnu.org>
12973
12974 * w32uniscribe.c: New file.
12975
12976 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12977
12978 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12979
12980 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12981 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12982 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12983 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12984 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12985 (Qphonetic): New symbols.
12986 (syms_of_w32font): Initialize them.
12987 (font_supported_scripts): Use them.
12988 (w32font_list_family): List all charsets.
12989 (w32font_text_extents, recompute_cached_metrics): Fix metric
12990 calculations.
12991 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12992 Give opentype fonts their own format.
12993 (font_matches_spec): New arguments backend and logfont.
12994 Handle :otf spec for uniscribe backend.
12995 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12996 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12997
12998 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12999 font backend.
13000 (globals_of_w32fns): Initialize uniscribe font backend.
13001
13002 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
13003 dependencies.
13004 (w32uniscribe.$(O)): New file to build.
13005 (FONT_OBJ): Include w32uniscribe.$(O).
13006 (LIBS): Add uniscribe libraries.
13007
13008 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
13009
130102008-04-02 Chong Yidong <cyd@stupidchicken.com>
13011
13012 * callint.c (Vshift_select_mode): New var.
13013 (Finteractive): Document new ^ spec.
13014 (Fcall_interactively): Call handle-shift-selection if the ^ spec
13015 is present.
13016
13017 * keyboard.c (Vthis_command_keys_shift_translated): New var.
13018 (command_loop_1): Avoid running the direct display versions of
13019 forward-char and backward-char if shift-selection may occur.
13020 (read_key_sequence): Set Vthis_command_keys_shift_translated if
13021 shift-translation takes place.
13022
13023 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
13024 avoid clobbering by define-minor-mode.
13025
13026 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
13027 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
13028
13029 * syntax.c (Fforward_word): Add ^ interactive spec.
13030
13031 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
13032 (Fscroll_right): Add ^ interactive spec.
13033
130342008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
13035
13036 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
13037
13038 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
13039
13040 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
13041
130422008-03-31 Juri Linkov <juri@jurta.org>
13043
13044 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
13045
130462008-03-30 Jan Djärv <jan.h.d@swipnet.se>
13047
13048 * gtkutil.c (xg_set_geometry): Fix indentation.
13049 (xg_resize_outer_widget): Remove.
13050 (x_wm_size_hint_off): Fix indentation.
13051 (xg_frame_set_char_size): Call flush_and_sync after
13052 gtk_window_resize.
13053 (x_wm_set_size_hint): Pass NULL as geometry window to
13054 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
13055 Add menu bar and tool bar height to base height.
13056 (xg_update_frame_menubar, free_frame_menubar)
13057 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13058 (update_frame_tool_bar, free_frame_tool_bar):
13059 Change xg_resize_outer_widget to xg_frame_set_char_size.
13060
130612008-03-30 Michael Albinus <michael.albinus@gmx.de>
13062
13063 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
13064 (Fdbus_call_method): New parameter TIMEOUT.
13065 (dbus-send-signal): Optimize UNGCPRO call.
13066
130672008-03-29 Juri Linkov <juri@jurta.org>
13068
13069 * window.c (Fdisplay_buffer): Move call to
13070 Vsplit_window_preferred_function out of conditions that check
13071 if window is eligible for vertical splitting.
13072 When Vsplit_window_preferred_function is non-nil, call it and use
13073 its non-nil return value as window. Otherwise, continue doing
13074 vertical splitting using Fsplit_window with arg horflag=nil.
13075 (syms_of_window) <Vsplit_window_preferred_function>: Change the
13076 default value from `split-window' to nil.
13077
130782008-03-29 Juri Linkov <juri@jurta.org>
13079
13080 * callint.c (Fcall_interactively): Revert 2008-03-16 change
13081 for interactive code letters 'b' and 'B'.
13082
130832008-03-29 Eli Zaretskii <eliz@gnu.org>
13084
13085 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
13086 multibyte string.
13087
130882008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
13089
13090 * keyboard.c (pending_funcalls): New var.
13091 (timer_check): Run it.
13092 (syms_of_keyboard): Initialize it.
13093 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
13094 (Vdelete_terminal_functions): New vars.
13095 (syms_of_terminal): Initialize them.
13096 (Fdelete_terminal): Run delete-terminal-functions.
13097 * xdisp.c (safe_eval): Rewrite.
13098 (safe_call2): New fun.
13099 * frame.c (Qdelete_frame_functions): New var.
13100 (syms_of_frame): Initialize it.
13101 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
13102 * lisp.h (safe_call2, pending_funcalls): Declare.
13103
131042008-03-28 Andreas Schwab <schwab@suse.de>
13105
13106 * indent.c (Fmove_to_column): Move declaration before statements.
13107
131082008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
13109
13110 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
13111 (struct frame): Use bit fields for boolean vars.
13112
13113 * process.c (server_accept_connection): Simplify naming.
13114 (emacs_get_tty_pgrp): Use SDATA.
13115
13116 * coding.c (decode_coding_object): Fix last change.
13117
131182008-03-27 Jason Rumney <jasonr@gnu.org>
13119
13120 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
13121
131222008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
13123
13124 * charset.c (Fdefine_charset_internal): Change the way of
13125 registering charsets in Vcharset_order_list.
13126 (syms_of_charset): Make the charset `eight-bit' supplementary.
13127
131282008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
13129
13130 * regex.c (EXTEND_BUFFER): Change order of pointer addition
13131 operations, to avoid having the difference between pointers
13132 overflow.
13133
131342008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13135
13136 * indent.c (check_display_width): New fun.
13137 (scan_for_column): Use it.
13138
13139 * data.c (syms_of_data): Mark most-positive-fixnum and
13140 most-negative-fixnum as constants.
13141
13142 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
13143
13144 * indent.c (scan_for_column): Extract from current_column_1.
13145 Merge with the same code from Fmove_to_column.
13146 (current_column_1, Fmove_to_column): Use it.
13147
131482008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
13149
13150 * keymap.c (map_keymap_internal): New fun.
13151 (map_keymap): Use it.
13152 (Fmap_keymap_internal): New fun.
13153 (Fmap_keymap): Remove left-out test from before make_save_value.
13154
13155 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
13156
13157 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
13158 Use XCAR/XCDR.
13159
13160 * process.h (struct Lisp_Process): Remove filter_multibyte.
13161 * process.c (QCfilter_multibyte): Remove.
13162 (setup_process_coding_systems): Don't use filter_multibyte.
13163 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
13164 (read_process_output): Don't adjust multibyteness to filter_multibyte.
13165 (Fset_process_filter_multibyte): Change the coding-system to
13166 approximate the previous behavior.
13167 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
13168 coding-system.
13169
13170 * coding.c (decode_coding_object): When not decoding into a buffer,
13171 obey the coding system's preference of (uni|multi)byte.
13172
131732008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
13174
13175 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
13176 every char is changed and has a different byte-length.
13177 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
13178 Fix int -> EMACS_INT.
13179
131802008-03-23 David Hansen <david.hansen@gmx.net>
13181
13182 * dbusbind.c (xd_read_message): Remove extra copying of message
13183 strings. Check for NULL `interface' or `member'.
13184
131852008-03-22 Eli Zaretskii <eliz@gnu.org>
13186
13187 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13188 cFileName a file name that includes `?' characters, use the 8+3
13189 alias in cAlternateFileName instead.
13190
131912008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
13192
13193 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
13194
131952008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13196
13197 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
13198 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
13199 work on current_buffer only instead (that was already the case
13200 for some of the code anyway).
13201 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
13202 (temp_set_point, temp_set_point_both): Use EMACS_INT.
13203 (SET_PT, SET_PT_BOTH): Adjust.
13204 * intervals.h (set_point, temp_set_point, set_point_both)
13205 (temp_set_point_both): Remove redundant declarations.
13206
132072008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13208
13209 * fileio.c (Finsert_file_contents):
13210 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
13211 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
13212 when buffer != current_buffer anyway.
13213
132142008-03-20 Andreas Schwab <schwab@suse.de>
13215
13216 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
13217 as default.
13218
132192008-03-19 Jason Rumney <jasonr@gnu.org>
13220
13221 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
13222 (syms_of_w32fns): Initialize them.
13223 (HOURGLASS_ID): New constant.
13224 (x_window_to_frame): Don't check hourglass_window.
13225 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
13226 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
13227 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
13228 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
13229 Only change the cursor if hourglass is not active.
13230 (Fx_create_frame): Initialize frame's current_cursor.
13231 (hourglass_atimer): Remove.
13232 (hourglass_started): New function.
13233 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
13234 (show_hourglass): Adapt to w32, changing argument to frame.
13235
13236 * w32term.h (struct w32_output): Remove hourglass_window.
13237 Add current_cursor.
13238
13239 * eval.c (call_debugger, Fsignal):
13240 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
13241 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
13242 (Fexecute_extended_command, cancel_hourglass_unwind):
13243 * minibuf.c (read_minibuf):
13244 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
13245
132462008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
13247
13248 * window.c (run_funs): New fun.
13249 (run_window_configuration_change_hook): Use it to run the buffer-local
13250 and the global part of the hook.
13251
13252 * xdisp.c (format_mode_line_unwind_data): Add window argument.
13253 (unwind_format_mode_line): Restore selected window.
13254 (x_consider_frame_title, Fformat_mode_line): Set selected window.
13255
132562008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13257
13258 * editfns.c (Fchar_equal): Check they are valid characters.
13259
13260 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
13261
132622008-03-17 Andreas Schwab <schwab@suse.de>
13263
13264 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
13265 against a charset.
13266
13267 * lisp.h (Fbuffer_list): Declare.
13268
132692008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 13270
aac0c6e3
MR
13271 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
13272 handlebox_widget is != 0.
13273
132742008-03-16 Juri Linkov <juri@jurta.org>
13275
13276 * callint.c (Fcall_interactively): For interactive code letters
13277 'b' and 'B' put the buffer list into the list of default "future"
13278 values of the minibuffer.
13279
132802008-03-16 Andreas Schwab <schwab@suse.de>
13281
13282 * keyboard.c (read_key_sequence): Fix downcasing of letters with
13283 modifiers.
13284
13285 * regex.c (re_match_2_internal): Correct matching of a charset
13286 against latin-1 characters.
13287
132882008-03-16 Kenichi Handa <handa@m17n.org>
13289
13290 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
13291 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
13292 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
13293 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
13294 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
13295 CHAR_STRING_ADVANCE.
13296 (produce_chars): Fix for the case that the source and the
13297 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
13298 instead of CHAR_STRING_ADVANCE.
13299 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
13300 STRING_CHAR_ADVANCE.
13301
133022008-03-15 Andreas Schwab <schwab@suse.de>
13303
13304 * regex.c (re_match_2_internal): Correct matching of eight bit
13305 characters in unibyte strings.
13306
133072008-03-15 Martin Rudalics <rudalics@gmx.at>
13308
13309 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
13310 at end of range when it coincides with the end of the buffer.
13311
133122008-03-14 Eli Zaretskii <eliz@gnu.org>
13313
13314 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
13315
13316 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
13317
133182008-03-14 Jason Rumney <jasonr@gnu.org>
13319
13320 * editfns.c (initial_tz): New variable.
13321 (syms_of_editfns): Initialize it.
13322 (Fset_time_zone_rule): Set it when first called.
13323 Use it when TZSTRING is nil.
13324
13325 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
13326 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
13327 (monitor_from_point_fn, get_monitor_info_fn): New globals.
13328 (globals_of_w32fns): Initialize them.
13329 (compute_tip_xy): Use them to position tooltips.
13330
133312008-03-14 Glenn Morris <rgm@gnu.org>
13332
13333 * emacs.c (main): Revert previous change.
13334 (standard_args): Revert -internal-script back to -scriptload,
13335 and remove the long-option form.
13336
133372008-03-13 Glenn Morris <rgm@gnu.org>
13338
13339 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
13340 Remove option -enable-font-backend.
13341
133422008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
13343
13344 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
13345
133462008-03-11 Jan Djärv <jan.h.d@swipnet.se>
13347
13348 * xterm.c (x_connection_closed): For GTK: If this is the last
13349 terminal just exit without closing the display.
13350
133512008-03-11 Jason Rumney <jasonr@gnu.org>
13352
13353 * w32font.c (w32font_full_name): Use floor to round.
13354
f0131492 133552008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
13356
13357 * sound.c (alsa_configure): Declare vol at beginning of block.
13358
13359 * fontset.c (Ffontset_info): Remove extra semicolon.
13360
133612008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13362
13363 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
13364 size of resulting string.
13365
133662008-03-10 Jason Rumney <jasonr@gnu.org>
13367
13368 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
13369
133702008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13371
13372 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
13373 Don't pretend as if characters with display property haven't been
13374 consumed for string-replacing-string case.
13375
133762008-03-08 Kim F. Storm <storm@cua.dk>
13377
13378 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
13379 (get_next_display_element, next_element_from_string)
13380 (next_element_from_ellipsis, next_element_from_buffer): Use it.
13381
133822008-03-08 Andreas Schwab <schwab@suse.de>
13383
13384 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
13385
133862008-03-06 Jason Rumney <jasonr@gnu.org>
13387
13388 * w32font.c (w32_registry): Take font_type argument. Use ANSI
13389 when charset not specified. Only translate ANSI to unicode when
13390 font_type is truetype.
13391 (w32font_coverage_ok): New function.
13392 (add_font_entity_to_list): Use it to filter unsuitable fonts.
13393
133942008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
13395
13396 * lread.c (Fread_char): Resolve modifiers.
13397 (Fread_char_exclusive): Likewise.
13398
13399 * character.c (char_resolve_modifier_mask): New function.
13400 (char_string): Use char_resolve_modifier_mask.
13401 (Fchar_resolve_modifiers): New function.
13402 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
13403 function.
13404
134052008-03-04 Jason Rumney <jasonr@gnu.org>
13406
13407 * makefile.w32-in: Always include w32font.c in the build.
13408 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
13409
134102008-03-04 Andreas Schwab <schwab@suse.de>
13411
13412 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
13413 (versionclean): Likewise.
13414
134152008-03-04 Juanma Barranquero <lekktu@gmail.com>
13416
13417 * .cvsignore: Add oo.
13418
134192008-03-03 Andreas Schwab <schwab@suse.de>
13420
13421 * coding.c (decode_coding_object): Inhibit gap shrinking while
13422 decoding in place.
13423
134242008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
13425
13426 * w32term.c: Remove unused include "gnu.h".
13427 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
13428
13429 * gnu.h: Rename to ...
13430 * emacs-icon.h: ... this.
13431 * xterm.c: Use emacs-icon.h instead of gnu.h.
13432 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
13433
134342008-03-03 Juanma Barranquero <lekktu@gmail.com>
13435
13436 * w32font.c: Include math.h.
13437
134382008-03-03 Jason Rumney <jasonr@gnu.org>
13439
13440 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
13441 Compute options separately.
13442 (w32font_open_internal): Set glyph_idx before caching metrics.
13443
13444 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
13445 Define if system headers don't.
13446 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
13447 (w32font_encode_char): Don't declare here.
13448
13449 * w32font.c (Quniscribe, QCformat): New symbols.
13450 (syms_of_w32font): Define them.
13451 (w32font_has_char): Indicate uncertainty.
13452 (w32font_encode_char): Encode as glyph point. Make static.
13453 (recompute_cached_metrics): New function.
13454 (w32font_open_internal): Use it. Set font to use glyph points
13455 initially. Set format based on type of font.
13456 (w32font_text_extents, w32font_draw): Optionally use glyph points.
13457 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
13458 on it. Set format based on information available here.
13459 (add_font_entity_to_list): Identify backend based on opentype_only.
13460
134612008-03-02 Andreas Schwab <schwab@suse.de>
13462
13463 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
13464
13465 * coding.c (decode_coding_big5, produce_chars):
13466 Fix typos in last change.
13467
134682008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
13469
13470 * gnu.h: New icon.
13471
134722008-03-02 Kenichi Handa <handa@m17n.org>
13473
13474 * coding.c (decode_coding_utf_8): When eol-type of CODING is
13475 `dos', don't decode '\r' if that is the last in the source.
13476 (decode_coding_utf_16, decode_coding_emacs_mule)
13477 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13478 (decode_coding_raw_text, decode_coding_charset): Likewise.
13479 (produce_chars): Don't decode EOL here. Use EMACS_INT.
13480
134812008-03-01 Jason Rumney <jasonr@gnu.org>
13482
13483 * w32font.c (w32font_full_name): Report point size for scalable fonts.
13484
134852008-03-01 Kim F. Storm <storm@cua.dk>
13486
13487 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
13488
134892008-03-01 Jason Rumney <jasonr@gnu.org>
13490
13491 * w32font.c (w32font_full_name): New function.
13492 (w32font_open_internal): Use it.
13493
134942008-03-01 Kim F. Storm <storm@cua.dk>
13495
13496 * dispnew.c (line_draw_cost): Fix invalid glyph check.
13497
134982008-03-01 Jason Rumney <jasonr@gnu.org>
13499
13500 * font.c (font_unparse_fcname): Increase len when style is a symbol.
13501
135022008-03-01 Jan Djärv <jan.h.d@swipnet.se>
13503
13504 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
13505 xg_frame_resized when the event is for the edit widget.
13506
13507 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
13508
13509 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
13510 set_char_size.
13511 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
13512 operations on widgets here. Just set frame size if needed.
13513 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
13514 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
13515 (x_wm_set_size_hint): Set size hints on the edit widget only, not
13516 the whole frame.
13517 (xg_create_tool_bar): Move attachment of the tool bar to
13518 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
13519 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
13520
135212008-03-01 Jason Rumney <jasonr@gnu.org>
13522
13523 * w32fns.c (w32_msg_pump): Disable debug code.
13524
135252008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13526
13527 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
13528
135292008-02-29 Chong Yidong <cyd@stupidchicken.com>
13530
13531 * xdisp.c (next_overlay_string): Don't set
13532 overlay_strings_at_end_processed_p if we're currently reading from
13533 a display string.
13534
135352008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
13536
13537 * xdisp.c (get_overlay_strings_1): Fix typo.
13538
135392008-02-29 Chong Yidong <cyd@stupidchicken.com>
13540
13541 * xdisp.c (get_overlay_strings_1): Add missing argument type.
13542
135432008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
13544
13545 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
13546
13547 * xdisp.c (display_mode_element): Cancel the previous change.
13548 (decode_mode_spec): Likewise.
13549 (handle_auto_composed_prop): Don't make composition if it->string
13550 is a string.
13551
135522008-02-27 Kim F. Storm <storm@cua.dk>
13553
13554 * lisp.h (GLYPH): Change type from int to struct with separate char
13555 and face_id members.
13556 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
13557 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
13558 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
13559 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
13560 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
13561 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
13562 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
13563 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
13564 handle new Lisp glyph code encoding, either an integer or a cons.
13565
13566 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
13567 (GLYPH_ALIAS): Delete.
13568 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
13569 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
13570 (GLYPH_FROM_CHAR): Replace macro by ...
13571 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
13572
13573 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
13574 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
13575 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
13576 (GLYPH_INVALID_P): New macro.
13577 (spec_glyph_lookup_face): Update prototype.
13578
13579 * dispnew.c (line_draw_cost): Adapt to new glyph type.
13580 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
13581 new glyph code encoding.
13582 (spec_glyph_lookup_face): No return value; update passed glyph instead.
13583 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
13584
13585 * xdisp.c (get_next_display_element, next_element_from_display_vector):
13586 Adapt to new glyph type and new glyph code encoding.
13587
13588 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
13589
13590 * indent.c (current_column, current_column_1, Fmove_to_column)
13591 (compute_motion): Adapt to new glyph code encoding.
13592
13593 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
13594
135952008-02-27 Chong Yidong <cyd@stupidchicken.com>
13596
13597 * process.c (wait_reading_process_output): Check for window
13598 changes caused by timers.
13599 Suggested by Johan Bockgård.
13600
136012008-02-27 Glenn Morris <rgm@gnu.org>
13602
13603 * emacs.c (USAGE1): Add `--disable-font-backend'.
13604
136052008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
13606
13607 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
13608 is made to the buffer.
13609
136102008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
13611
13612 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
13613 (face_at_string_position):
13614 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
13615 (face_at_string_position):
13616 * xdisp.c (display_string, next_overlay_change):
13617 * buffer.h (overlays_at):
13618 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
13619 Update callers.
13620
136212008-02-26 Chong Yidong <cyd@stupidchicken.com>
13622
13623 * editfns.c (Fformat): Doc fix.
13624
136252008-02-26 Juanma Barranquero <lekktu@gmail.com>
13626
13627 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
13628 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
13629 (Ffont_otf_alternates, Fquery_font): Doc fixes.
13630
136312008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13632
13633 * buffer.c (Fbuffer_swap_text): New function.
13634 (syms_of_buffer): Defsubr it.
13635
136362008-02-25 Chong Yidong <cyd@stupidchicken.com>
13637
13638 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
13639
136402008-02-25 Jason Rumney <jasonr@gnu.org>
13641
13642 * w32font.c (w32font_draw): Draw one character at a time when padding.
13643
136442008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13645
13646 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
13647 Handle a nil arg. Use run_window_configuration_change_hook.
13648 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
13649 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
13650 Use run_window_configuration_change_hook.
13651
136522008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13653
13654 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
13655 1-pixel width.
13656
136572008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13658
13659 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13660 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13661 if the glyph in the font is zero pixel with.
13662
13663 * dispextern.h (struct glyph_string): New member padding_p.
13664
13665 * w32font.c (w32font_draw): Pay attention to s->padding_p.
13666
13667 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13668
13669 * xfont.c (xfont_draw): Pay attention to s->padding_p.
13670
13671 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13672
13673 * font.c: If the font driver doesn't have `shape' function, return Qnil.
13674
136752008-02-25 Jason Rumney <jasonr@gnu.org>
13676
13677 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13678
136792008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
13680
13681 Allow fine-grained image-cache flushing.
13682 * dispextern.h (struct image): Add `dependencies' field.
13683 (clear_image_caches): Change arg to Lisp_Object.
13684 * image.c (make_image): Initialize `dependencies' field.
13685 (clear_image_cache): Change arg to allow fine-grained flushing.
13686 Perform the flush even if image-cache-eviction-delay is nil.
13687 (clear_image_caches): Change arg to Lisp_Object.
13688 (Fclear_image_cache): Expand meaning of the argument.
13689 (mark_image): Mark `dependencies' field.
13690 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13691 (lface_hash): Use XHASH rather than XFASTINT.
13692 (face_at_buffer_position): Fix int -> EMACS_INT position.
13693 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13694 (select_frame_for_redisplay): Remove code duplication.
13695 (redisplay_internal): Adapt arg to call to clear_image_caches.
13696
136972008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
13698
13699 * s/vms4-0.h:
13700 * s/vms4-2.h:
13701 * s/vms4-4.h:
13702 * s/vms5-5.h: Remove, unused.
13703
13704 * s/irix5-2.h:
13705 * s/irix6-0.h:
13706 * s/riscos5.h:
13707 * s/mach-bsd4-3.h:
13708 * m/mips4.h: Remove files for obsolete systems.
13709
13710 * Makefile.in:
13711 * filelock.c:
13712 * unexmips.c:
13713 * m/hp9000s300.h:
13714 * m/iris4d.h:
13715 * s/aix3-1.h:
13716 * s/hpux.h:
13717 * s/msdos.h:
13718 * s/usg5-0.h:
13719 * s/usg5-2-2.h:
13720 * s/usg5-2.h:
13721 * s/usg5-3.h: Remove references to obsolete variables.
13722
13723 * s/irix5-0.h: Remove, move all the contents ...
13724 * s/irix6-5.h: ... here. Simplify.
13725 * config.in: Regenerate.
13726
137272008-02-24 Jason Rumney <jasonr@gnu.org>
13728
13729 * w32term.c (x_draw_glyph_string_background): Clear the background
13730 manually when cleartype is in use.
13731 (x_draw_glyph_string_foreground): Draw text transparently when
13732 cleartype is in use.
13733
13734 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13735 a font into it unless we have to.
13736
137372008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13738
13739 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13740 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 13741
aac0c6e3
MR
137422008-02-18 Jason Rumney <jasonr@gnu.org>
13743
13744 * w32fns.c (Fw32_shell_execute): Encode parameters.
13745
137462008-02-09 Eli Zaretskii <eliz@gnu.org>
13747
13748 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13749
137502008-02-05 Juanma Barranquero <lekktu@gmail.com>
13751
13752 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13753
137542008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13755
13756 * xterm.c (x_set_offset): Don't change the gravity if
13757 CHANGE_GRAVITY is -1.
13758
137592008-02-23 Chong Yidong <cyd@stupidchicken.com>
13760
13761 * fileio.c (auto_save_error_occurred): New var.
13762 (auto_save_error): Set it.
13763 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13764 error occurred.
13765
137662008-02-23 Eli Zaretskii <eliz@gnu.org>
13767
13768 * w32.c (globals_of_w32): Add initializations for
13769 g_b_init_get_sid_sub_authority and
13770 g_b_init_get_sid_sub_authority_count.
13771
137722008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13773
13774 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13775 (font_parse_xlfd): Use them for sanity check.
13776 (Finternal_set_font_style_table): Make sure the table is bijective.
13777
13778 Consolidate the image_cache to the terminal struct.
13779 * termhooks.h (P_): Remove redundant def.
13780 (struct terminal): New field `image_cache'.
13781 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13782 of FRAME_X_IMAGE_CACHE.
13783 * xterm.h (struct x_display_info): Remove image_cache field.
13784 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13785 * w32term.h (struct w32_display_info): Remove image_cache field.
13786 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13787 * macterm.h (struct mac_display_info): Remove image_cache field.
13788 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13789 * xterm.c (x_term_init):
13790 * w32term.c (w32_term_init):
13791 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13792 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13793 Remove declarations.
13794 (clear_image_caches, mark_image_cache): New declarations.
13795 * xfaces.c (clear_face_cache):
13796 * xdisp.c (redisplay_internal): Use clear_image_caches.
13797 * image.c (clear_image_cache): Don't check that a frame is on
13798 a window-system before checking if it shares the same cache.
13799 (clear_image_caches): New function.
13800 (Fclear_image_cache): Use it.
13801 (mark_image): Move from allo.c.
13802 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13803 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13804 (mark_object): Don't call mark_image_cache for frames.
13805 (mark_terminals): Call mark_image_cache.
13806
13807 * lisp.h (Fdelete_terminal): Declare.
13808
13809 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13810 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13811 wrong_type_argument.
13812
138132008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13814
13815 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13816 malayalam.el, and tamil.el. Add sinhala.el.
13817
138182008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13819
13820 * xterm.c (x_connection_closed): Consolidate identical tests.
13821 (x_delete_terminal): Don't crash if called via x_connection_closed.
13822
138232008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13824
13825 * xdisp.c (decode_mode_spec): New arg string.
13826 (display_mode_element): Adjust for the above change.
13827
138282008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13829
13830 * callint.c (Fcall_interactively): Use AREF.
13831
138322008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13833
13834 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13835
138362008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13837
13838 * xfns.c (Fx_show_tip): Set string to " " if empty.
13839
138402008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13841
13842 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13843 with Qt.
13844
138452008-02-17 Kenichi Handa <handa@m17n.org>
13846
13847 * ftfont.c (ftfont_shape): Return Lispy number.
13848
13849 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13850 for GCs.
13851 (Finternal_set_font_selection_order): Call font_update_sort_order
13852 only when enable_font_backend is set.
13853 (realize_x_face): Set face->font_info to that of default face only
13854 when enable_font_backend is set.
13855
13856 * xdisp.c (handle_composition_prop): Set it->c to the fist
13857 character of the composed region.
13858 (fill_composite_glyph_string): Set base_face->font_info to
13859 s->font_info. Get a face for ascii from base_face->ascii_face.
13860 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13861 with a face already decided.
13862 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13863 non-negative.
13864 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13865 call font_prepare_composition unconditionally.
13866
13867 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13868
13869 * xterm.h (struct x_display_info): New member font.
13870
13871 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13872 (x_set_mouse_face_gc, x_new_font): Likewise.
13873 (x_term_init): Setup display_info->font.
13874 (x_delete_terminal): Free display_info->font.
13875
13876 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13877
13878 * ftxfont.c (ftxfont_default_fid): Delete it.
13879 (ftxfont_open): Set xfont->fid to 0.
13880 (ftxfont_end_for_frame): Clear data specific to the frame and the
13881 font-driver.
13882
13883 * xftfont.c (xftfont_default_fid): Delete it.
13884 (xftfont_open): Set xfont->fid to 0.
13885
13886 * fontset.c (FONTSET_OBJLIST): New macro.
13887 (fontset_find_font): Update font-object list of the fontset.
13888 (free_realized_fontset): New function.
13889 (free_face_fontset): Call free_realized_fontset.
13890 (Ffont_info): Call font_close_object only when enable_font_backend
13891 is set.
13892
13893 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13894 [HAVE_NTGUI]: Include w32term.h.
13895 [MAC_OS]: Include macterm.ch.
13896 (font_otf_ValueRecord): Use make_number.
13897 (font_finish_cache): Fix handling of reference count.
13898 (font_clear_cache): Update num_fonts.
13899 (font_open_entity): Update smallest_char_width and
13900 smallest_font_height of the frame.
13901 (font_close_object): Update num_fonts.
13902 (Fclear_font_cache): Fix finding the target cache data.
13903
139042008-02-16 Glenn Morris <rgm@gnu.org>
13905
13906 * fontset.c (Finternal_char_font): Fix compilation warning.
13907
139082008-02-16 Eli Zaretskii <eliz@gnu.org>
13909
13910 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13911 instead of char arrays. Enlarge the size of array passed to
13912 get_token_information.
13913
13914 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13915 warnings.
13916
139172008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13918
13919 * .gdbinit: Don't set `args', it breaks gdb --args.
13920
139212008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13922
13923 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13924 within a narrowed buffer.
13925
139262008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13927
13928 * coding.c (decode_coding_object, encode_coding_object):
13929 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13930
139312008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13932
13933 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13934 hardcoding 1.
13935 (detect_coding_system):
13936 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13937 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13938 * insdel.c (insert_from_gap):
13939 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13940 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13941 (string_to_multibyte):
13942 * character.c (chars_in_text, multibyte_chars_in_text):
13943 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13944
13945 * character.h (FETCH_STRING_CHAR_ADVANCE)
13946 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13947 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13948 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13949
13950 * casefiddle.c (casify_region): Only call after-change and composition
13951 functions on the part of the region that was changed.
13952
13953 * keyboard.c (read_avail_input):
13954 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13955
139562008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13957
13958 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13959 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13960
139612008-02-11 Juanma Barranquero <lekktu@gmail.com>
13962
13963 * w32menu.c (push_submenu_start, push_submenu_end)
13964 (push_left_right_boundary, push_menu_pane, push_menu_item):
13965 * keyboard.c (read_key_sequence): Don't pass args with side effects
13966 to AREF, it fails when compiling with -DENABLE_CHECKING.
13967
139682008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13969
13970 * Makefile.in (${lispsource}international/charprop.el):
13971 Delete this target.
13972
13973 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13974 emacs-unicode-2.
13975
139762008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13977
13978 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13979
139802008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13981
13982 * frame.c (Qnoelisp): New symbol.
13983 (syms_of_frame): Initialize it.
13984 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13985 harmless Elisp code, from a strong `force' from x_connection_closed.
13986 * frame.h (Qnoelisp): Declare.
13987 * xterm.c (x_connection_closed): Pass `noelisp'.
13988
13989 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13990 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13991 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13992 rather than `int' for the type of `type'.
13993
139942008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13995
13996 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13997
13998 * Makefile.in (GNUC): Remove support for gcc-1.x.
13999
140002008-02-10 Richard Stallman <rms@gnu.org>
14001
14002 * lisp.h (ASET): Use AREF, not ASLOT.
14003
140042008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14005
14006 * lisp.h (ASET): Check bounds.
14007
140082008-02-10 Glenn Morris <rgm@gnu.org>
14009
14010 * buffer.c (mode-name): Doc fix.
14011
140122008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14013
14014 * Makefile.in:
14015 * emacs.c:
14016 * gmalloc.c:
14017 * keyboard.c:
14018 * lisp.h:
14019 * m/ibm370aix.h:
14020 * process.c:
14021 * regex.c:
14022 * s/hpux.h:
14023 * sysdep.c:
14024 * sysselect.h:
14025 * systty.h:
14026 * unexec.c:
14027 * w32term.c:
14028 * xsmfns.c:
14029 * xterm.c: Remove code that deals with obsolete variables.
14030
14031 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
14032
14033 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
14034 nothing else needs it anymore.
14035
140362008-02-09 Eli Zaretskii <eliz@gnu.org>
14037
14038 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
14039 instead of unibyte_char_to_multibyte.
14040
140412008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14042
14043 * s/gnu-linux.h: Remove commented out code.
14044
14045 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
14046
14047 * Makefile.in: Update what RMS says about using autoconf.
14048 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
14049 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
14050 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
14051 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
14052
140532008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
14054
14055 * keymap.c (Fkey_description): Move side effect outside of macro call.
14056
14057 * xfaces.c (Finternal_make_lisp_face):
14058 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
14059
14060 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
14061 (syms_of_fontset): Use ASET.
14062
14063 * fns.c (concat): Move side effect outside of macro call.
14064 (hash_clear): Use ASET.
14065
140662008-02-08 Richard Stallman <rms@gnu.org>
14067
14068 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
14069 If FORCE, and frame has a surrogate minibuffer for another frame,
14070 delete the other frame first.
14071
140722008-02-07 Timo Savola <timo.savola@iki.fi>
14073
14074 * xterm.c (x_detect_focus_change): Handle embed client message.
14075 (handle_one_xevent): Ditto.
14076 (handle_one_xevent): If embedded and we get a button press/release,
14077 request focus.
14078 (xembed_set_info, xembed_send_message): New functions.
14079 (x_make_frame_visible): Call xembed_set_info if embedded.
14080 (x_make_frame_invisible): Call xembed_set_info if embedded.
14081 (x_term_init): Initialize Xatom_XEMBED.
14082 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
14083 (x_iconify_frame): Ditto.
14084
14085 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
14086 (enum xembed_info, enum xembed_message, enum xembed_focus)
14087 (enum xembed_modifier, enum xembed_accelerator): New.
14088 (xembed_set_info, xembed_send_message): Declare.
14089 (FRAME_X_EMBEDDED_P): New.
14090
14091 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
14092 gtk_plug_new.
14093
14094 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
14095 window ID of a frame.
14096 (x_window): Reparent frame if embedded.
14097 (Fx_create_frame): Don't set border width if embedded.
14098
14099 * emacs.c (USAGE3): Add --parent-id.
14100 (standard_args): Ditto.
14101
141022008-02-07 Jan Djärv <jan.h.d@swipnet.se>
14103
14104 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
14105
141062008-02-07 Jim Meyering <meyering@redhat.com>
14107
14108 Use "do...while (0)", not "if (1)...else" in macro definitions.
14109 The latter provokes a warning from gcc about the empty else, when
14110 followed by ";". Also, without that trailing semicolon, it would
14111 silently swallow up any following statement.
14112 * syntax.h (SETUP_SYNTAX_TABLE)
14113 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
14114 * buffer.h (DECODE_POSITION): Likewise.
14115 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
14116 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
14117 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
14118 (FETCH_CHAR_ADVANCE): Likewise.
14119 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
14120
141212008-02-07 Jim Meyering <meyering@redhat.com>
14122
14123 * lread.c [lint]: Don't include <sys/inode.h>.
14124
141252008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
14126
14127 * xselect.c (x_handle_dnd_message):
14128 * xmenu.c (digest_single_submenu, xmenu_show):
14129 * xdisp.c (with_echo_area_buffer_unwind_data)
14130 (format_mode_line_unwind_data, unwind_format_mode_line)
14131 (display_menu_bar):
14132 * eval.c (Ffetch_bytecode):
14133 * doc.c (store_function_docstring):
14134 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
14135 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
14136 * buffer.c (add_overlay_mod_hooklist): Use ASET.
14137
141382008-02-07 Kenichi Handa <handa@m17n.org>
14139
14140 * ftxfont.c (ftxfont_open): Don't set
14141 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
14142
14143 * ftfont.c (ftfont_open): Fix previous change.
14144
141452008-02-06 Jason Rumney <jasonr@gnu.org>
14146
14147 * w32font.c (w32font_text_extents): Fill in lbearing metric.
14148 Use cached metrics for ASCII characters.
14149 (w32font_open_internal): Don't set font's owning_frame.
14150 Cache metrics for ASCII characters.
14151
14152 * w32font.h (struct w32font_info): Add ascii_metrics.
14153 Remove owning_frame.
14154
141552008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
14156
14157 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
14158 to negative value.
14159
14160 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
14161
14162 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
14163
14164 * charset.c (syms_of_charset): Set QCtest and Qeq.
14165
141662008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
14167
14168 * process.c (Fstart_process):
14169 * callproc.c (Fcall_process): Handle the case where
14170 Funhandled_file_name_directory returns nil.
14171
14172 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
14173 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
14174 * font.c (check_gstring): Use them and AREF to access the vector before
14175 we know it's really a gstring.
14176 (Ffont_shape_text): Fix typo.
46e722a9 14177 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
14178
14179 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
14180 Declare.
14181
14182 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
14183
141842008-02-05 Jason Rumney <jasonr@gnu.org>
14185
14186 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
14187 Set smallest_font_height and smallest_char_width in display info.
14188
141892008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
14190
14191 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
14192
141932008-02-05 Miles Bader <miles@gnu.org>
14194
14195 * xfaces.c (get_lface_attributes, merge_named_face)
14196 (lookup_named_face, lookup_derived_face, realize_named_face):
14197 Revert 2008-02-01 change by cyd@stupidchicken.com.
14198
141992008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
14200
14201 * fontset.c (Ffontset_info): Handle the case of inhibitting the
14202 fallback fonts.
14203 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
14204
142052008-02-04 Jason Rumney <jasonr@gnu.org>
14206
14207 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
14208 set full_name.
14209 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
14210
142112008-02-03 Jason Rumney <jasonr@gnu.org>
14212
14213 * makefile.w32-in (OBJ1): Include font.o here.
14214 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
14215
142162008-02-02 Jason Rumney <jasonr@gnu.org>
14217
14218 * makefile.w32-in (temacs): Bump EMHEAP to 21.
14219
142202008-02-01 Jason Rumney <jasonr@gnu.org>
14221
14222 * s/cygwin.h: Define VIRT_ADDR_VARIES.
14223
14224 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
14225
142262008-02-01 Andreas Schwab <schwab@suse.de>
14227
14228 * Makefile.in (shortlisp, lisp): Update for rename of
14229 ../lisp/language/myanmar.el.
14230
142312008-02-01 Chong Yidong <cyd@stupidchicken.com>
14232
14233 * xfaces.c (get_lface_attributes): Delete function.
14234 (merge_named_face, lookup_named_face, lookup_derived_face)
14235 (realize_named_face): Call lface_from_face_name directly, and use
14236 the fact that merge_face_vectors does not alter its FROM argument.
14237
142382008-02-01 Jason Rumney <jasonr@gnu.org>
14239
14240 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
14241 input in the default locale. Handle non-Unicode multibyte input.
14242
142432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14244
14245 * fontset.c (reorder_font_vector): Exclude nil elements from the
14246 font group. Don't try multiple fonts.
14247 (fontset_font): Adjust for the above change.
14248 (Finternal_char_font): Return nil if the found font doesn't
14249 contain the character ch.
14250
14251 * Makefile.in (lisp, shortlisp): Add cham.el.
14252
142532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14254
14255 * font.h (FONTP): Make it return 1 also for a font-object.
14256
14257 * .gdbinit (xfontset): New function.
14258
14259 * font.c (font_find_for_lface): Check if the character C is
14260 supported or not only for the first font.
14261
14262 * fontset.c (reorder_font_vector): Fix typo.
14263 (fontset_find_font): Don't add a font-spec specifying a script.
14264 Use 0 (not Qt) for the indication of empty font-group. Change the
14265 format of RFONT-DEF. Return Qt if no font in the font-group
14266 support the character.
14267 (fontset_font): Adjust for the above change. If no font was
14268 found the character, remember that.
14269 (face_for_char): Adjust for the change of RFONT-DEF.
14270 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
14271 no font for the target.
14272 (Finternal_char_font): Adjust for the change of RFONT-DEF.
14273
142742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14275
14276 * font.c (font_load_for_face): Handle the case that the font in
14277 face->lface is a string.
14278
142792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14280
14281 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
14282
142832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14284
14285 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
14286 Fix previous change. If the frame is not on a window system,
14287 signal an error.
14288
142892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14290
14291 * coding.c (decode_coding_object, encode_coding_object): Adjust
14292 marker positions after conversion.
14293
14294 * lisp.h (struct Lisp_Marker): New member need_adjustment.
14295
142962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14297
14298 * font.c (font_find_for_lface): Fix the handling of the return
14299 value of font_has_char.
14300 (Ffont_shape_text): Fix previous change.
14301
14302 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
14303 (fontset_ref_and_range): Delete it.
14304 (fontset_find_font): Call char_table_ref_and_range instead of
14305 FONTSET_REF_AND_RANGE.
14306 (make_fontset): Don't setup font groups of Latin here.
14307 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
14308 (new_fontset_from_font): Make the specified font the default for
14309 all Latin characters.
14310
143112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14312
14313 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
14314 is on a window system before accessing the fontset of the frame.
14315
143162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14317
14318 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
14319
14320 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
14321 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
14322
14323 * font.c (Ffont_shape_text): If the font driver doesn't have a
14324 shaper function, make zero-width glyphs to have at least one-pixel
14325 width. Fix setting of `to' field of glyphs.
14326
143272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14328
14329 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
14330 glyphs.
14331
14332 * font.h (struct font_driver): Improve docstring of member `shape'.
14333
143342008-02-01 Kenichi Handa <handa@m17n.org>
14335
14336 * composite.c (syms_of_composite): Fix docstring of
14337 auto-composition-function.
14338
14339 * font.h (LGLYPH_SIZE): New macro.
14340
14341 * font.c (Ffont_fill_gstring): Stop filling when a character not
14342 supported by the font is found.
14343 (Ffont_shape_text): When a shape callback function returns nil,
14344 try at most two more times with larger gstring.
14345 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
14346
14347 * xdisp.c (handle_auto_composed_prop): Change the argument to
14348 auto-composition-function.
14349
14350 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
14351 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
14352 Lispy glyph and store it in the lgstring.
14353
14354 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
14355
14356 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
14357
143582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14359
14360 * font.c (Ffont_shape_text): Avoid unnecessary composition.
14361
14362 * fontset.c (Vfont_encoding_charset_alist): New variable.
14363 (syms_of_fontset): DEFVAR it.
14364 (reorder_font_vector, fontset_find_font): Optimize for the case of
14365 no need of reordering.
14366 (face_for_char): Map the charset property by
14367 Vfont_encoding_charset_alist.
14368
143692008-02-01 Jason Rumney <jasonr@gnu.org>
14370
14371 * w32font.c (logfonts_match): Don't check adstyle here.
14372 (font_matches_spec): Check here against physical font instead.
14373 (add_font_entity_to_list): Avoid some substitutions.
14374
14375 * font.c (font_parse_fcname): Default weight and slant to normal.
14376 (font_score): Prefer normal fonts if weight or slant unspecified.
14377 (font_score) [WINDOWSNT]: Scale weight difference down to closer
14378 match freetype scores.
14379
143802008-02-01 Jason Rumney <jasonr@gnu.org>
14381
14382 * w32font.c (w32font_text_extents): Don't use the frame stored in the
14383 font, as it may have been deleted.
14384 (w32_enumfont_pattern_entity): Map generic family to adstyle using
14385 most common hyphenless variation.
14386 (logfonts_match): Check generic family.
14387 (font_matches_spec): Don't check generic family here.
14388 (fill_in_logfont): Set generic family based on adstyle.
14389
14390 * w32font.h (w32font_get_cache): Update declaration.
14391
143922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14393
14394 * ftfont.c (ftfont_get_cache): Adjust the argument type.
14395
14396 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
14397 If none of the new drivers are available, call font_update_drivers
14398 with the old drivers.
14399
14400 * w32font.c (w32font_get_cache): Adjust the argument type.
14401
14402 * xfont.c (xfont_get_cache): Adjust the argument type.
14403
14404 * font.h (struct font_driver): Change argument type of get_cache.
14405
14406 * xftfont.c (xftfont_start_for_frame): Delete prototype.
14407
14408 * font.c (Ffont_get): Fix arguments to Fassoc.
14409 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
14410 (font_clear_cache): New function.
14411 (font_list_entities, font_matching_entity): Use font_get_cache.
14412 (font_update_drivers): Call font_clear_cache when finishing a driver.
14413
14414 * fontset.c (fontset_find_font): Fix previous change.
14415
144162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14417
14418 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
14419 dpyinfo->font_table.
14420 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
14421 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
14422
14423 * font.c (font_at): Handle the case that the arg C is negative.
14424 Handle the unibyte case.
14425 (Ffont_at): Call font_at with the arg C -1.
14426
14427 * xdisp.c (handle_auto_composed_prop): Don't get a character at
14428 the position here, and call font_at with the arg C -1.
14429 Don't check the range of the existing composition at the point.
14430
144312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14432
14433 * fontset.c (fontset_add): New args charset_id and family.
14434 Change caller.
14435 (load_font_get_repertory, fontset_find_font): Assume that
14436 font_spec is always a font-spec object.
14437 (Fset_fontset_font): Always store a font-spec object in a fontset.
14438
14439 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
14440 instead of get_property_and_range.
14441
144422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14443
14444 * xftfont.c (struct xftfont_info): Delete the member ft_face.
14445 (xftfont_open): Don't keep locking face.
14446 (xftfont_close): Don't unlock face.
14447 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
14448
14449 * fontset.c (fontset_find_font): Don't prefer a font of
14450 supplementary charset.
14451
144522008-02-01 Kenichi Handa <handa@m17n.org>
14453
14454 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
14455 script, langsys_tag to langsys, new member script.
14456 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 14457 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
14458 listing to the script specified in that property. Fix arg to
14459 OTF_check_features.
14460
144612008-02-01 Jason Rumney <jasonr@gnu.org>
14462
14463 * w32font.h: New file.
14464
14465 * w32font.c: Include it.
14466 (struct w32font_info): Add owning_frame field. Move to w32font.h.
14467 (w32font_open): Set owning_frame.
14468 (w32font_text_extents): Use owning_frame.
14469 (struct font_callback_data): Add opentype_only field.
14470 (add_font_entity_to_list): Use it to filter fonts.
14471 Don't check against full name.
14472 (w32font_list_internal): New function.
14473 (w32font_list): Use it.
14474 (w32font_match_internal): New function.
14475 (w32font_match): Use it.
14476 (w32font_open_internal): New function.
14477 (w32font_open): Use it.
14478 (w32font_get_cache, w32font_close, w32font_has_char)
14479 (w32font_encode_char, w32font_text_extents, w32font_draw):
14480 Make non-static.
14481
14482 * makefile.w32-in (w32font.o): Depend on w32font.h.
14483
144842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14485
14486 * charset.c (Fdefine_charset_internal): Record a supplementary
14487 charset at the tail of Vcharset_order_list.
14488
14489 * font.c (Ffont_shape_text): Fix the return value.
14490
14491 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
14492
14493 * xdisp.c (handle_auto_composed_prop): Fix previous change.
14494
144952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14496
14497 * ftfont.c (struct OpenTypeSpec): New struct.
14498 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
14499 (ftfont_get_open_type_spec): New function.
14500 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
14501
14502 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
14503
145042008-02-01 Jason Rumney <jasonr@gnu.org>
14505
14506 * w32font.c (add_font_entity_to_list): Compare only the beginning
14507 of full name.
14508
145092008-02-01 Kenichi Handa <handa@m17n.org>
14510
14511 * xdisp.c (handle_auto_composed_prop): Simplify the code.
14512 Never return HANDLED_RECOMPUTE_PROPS.
14513
145142008-02-01 Kenichi Handa <handa@m17n.org>
14515
14516 * font.c (font_gstring_produce): Delete it.
14517
14518 * composite.h (COMPOSITION_METHOD):
14519 Handle COMPOSITION_WITH_GLYPH_STRING.
14520
145212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14522
14523 * xfont.c (Qx): Delete.
14524 (syms_of_xfont): Don't initialize Qx.
14525
14526 * composite.h (enum composition_method):
14527 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
14528
145292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14530
14531 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
14532 (choose_face_font): Accept new form of font-spec.
14533
14534 * frame.h (font_driver_list): Declare it unconditionally.
14535 (struct frame): Define members font_driver_list and font_data_list
14536 unconditionally.
14537
14538 * fontset.c: Include "font.h" unconditionally.
14539 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
14540 (Fset_fontset_font): Accept a font-spec object.
14541
14542 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
14543 PIXEL_SIZE part a wild card.
14544
14545 * dispextern.h (struct glyph_string): Define members clip and
14546 num_clips unconditionally.
14547 (struct face): Define members font_info and extra unconditionally.
14548
14549 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
14550 ftfont_info only when HAVE_LIBOTF is defined.
14551
145522008-02-01 Andreas Schwab <schwab@suse.de>
14553
14554 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
14555 and end.
14556
145572008-02-01 Jason Rumney <jasonr@gnu.org>
14558
14559 * w32font.c (w32font_driver): Add new fields.
14560
145612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14562
14563 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
14564 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
14565 (LIBES): Add @M17N_FLT_CFLAGS@.
14566
14567 * composite.c (compose_text): Don't treat the new style
14568 composition specially.
14569
14570 * emacs.c (main): Call syms_of_font unconditionally.
14571
14572 * font.h (FONT_ENTITY_NOT_LOADABLE)
14573 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
14574 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
14575 (struct font_driver): New member shape.
14576 (font_registry_charsets): Extern it.
14577 (font_find_for_lface, font_prepare_composition): Adjust prototype.
14578 (font_otf_capability, font_drive_otf): Delete their externs.
14579
14580 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
14581 (font_charset_alist, font_registry_charsets): Move from xfont.c
14582 and rename.
14583 (font_prop_validate_otf): New function.
14584 (font_property_table): Register it for QCotf.
14585 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
14586 (font_drive_otf): Delete.
14587 (font_prepare_composition): New arg F. Adjust for the change of
14588 lispy gstring.
14589 (font_find_for_lface): New arg C.
14590 (font_load_for_face): Adjust for the change of font_find_for_lface.
14591 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
14592 lispy gstring.
14593 (Ffont_shape_text): New function.
14594 (Fopen_font): If the font size is not given, use 12-pixel.
14595 (Ffont_at): New arg STRING.
c0943d3d 14596 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
14597 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
14598 conditionally.
14599
14600 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
14601 fonts of the same font-spec. Change the format of RFONT-DEF.
14602 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
14603 Adjust for the change of RFONT-DEF.
14604 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
14605
14606 * ftfont.h: New file.
14607
14608 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
14609 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14610 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14611 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
14612 font_otf_capability and font_drive_otf, set ftfont_shape.
14613 (ftfont_list): Adjust for the change of :otf property value.
14614 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
14615 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
14616 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
14617 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14618 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
14619 (otf_gstring, gstring, m17n_flt_initialized): New variables.
14620
14621 * w32term.c (x_draw_composite_glyph_string_foreground):
14622 Adjust for the change of lispy gstring.
14623
14624 * xdisp.c (handle_composition_prop): Adjust for the change of
14625 lispy gstring. Call a function for auto-composition with the
14626 third arg it->window.
14627 (fill_composite_glyph_string): Adjust for the change of lispy string.
14628 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
14629
14630 * xfaces.c (set_font_frame_param): Adjust for the change of
14631 font_find_for_lface.
14632
14633 * xfont.c (x_font_charset_alist): Move to font.c and rename.
14634 (xfont_registry_charsets): Likewise. Change caller.
14635 (syms_of_xfont): Don't handle x_font_charset_alist.
14636
14637 * xftfont.c: Include "ftfont.h".
14638 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14639 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14640 (xftfont_close) [HAVE_LIBOTF]: Close otf.
14641 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14642 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
14643 Set xftfont_driver.shape to xftfont_shape.
14644
14645 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14646 the change of lispy gstring.
14647
146482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14649
14650 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
14651
146522008-02-01 Jason Rumney <jasonr@gnu.org>
14653
14654 * w32font.c (w32font_draw): Fill background manually.
14655
146562008-02-01 Jason Rumney <jasonr@gnu.org>
14657
14658 * font.c (Qfontp): Remove unused symbol.
14659 (QCantialias): New symbol.
14660 (syms_of_font): Define it.
14661 (font_property_table): Set a validator for QCantialias.
14662
14663 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14664 Define if not already.
14665 (QCfamily): Share with xfaces.c.
14666 (Qstandard, Qsubpixel, Qnatural): New symbols.
14667 (syms_of_w32font): Define them. Don't define QCfamily here.
14668 (w32_antialias_type, lispy_antialias_type): New functions.
14669 (w32_enumfont_pattern_entity): New arg requested_font.
14670 Set antialias parameter if non-default was requested.
14671 (fill_in_logfont): Fill in lfQuality if :antialias specified.
14672
146732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14674
14675 * lread.c (read1): Undo the previous change.
14676
146772008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
14678
14679 * frame.c (Fdelete_frame): Call font_update_drivers only when
14680 USE_FONT_BACKEND is defined.
14681
146822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14683
14684 * font.h (struct font_bitmap): New member bits_per_pixel.
14685 (struct font_driver): New members start_for_frame and end_for_frame.
14686 (struct font_data_list): New struct.
14687 (font_put_frame_data, font_get_frame_data): Extern them.
14688
14689 * frame.h (struct frame): New member font_data_list.
14690
14691 * font.c (font_update_drivers): Call driver->start_for_frame and
14692 driver->end_for_frame at proper timings.
14693 (font_put_frame_data, font_get_frame_data): New functions.
14694 (Ffont_spec): Add usage in the docstring.
14695
14696 * frame.c (make_frame): Initialize f->font_data_list to NULL.
14697 (Fdelete_frame): Call font_update_drivers.
14698
14699 * xftfont.c (struct xftface_info): Delete the member xft_draw.
14700 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14701 (xftfont_get_xft_draw): New function.
14702 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
14703 (xftfont_end_for_frame): New function.
14704 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14705
14706 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14707 Change argument. Cache GCs in the per-frame data.
14708 (struct ftxfont_frame_data): New struct.
14709 (ftxfont_draw_bitmap): New arg gc_fore and flush.
14710 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14711 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
14712 (ftxfont_end_for_frame): New function.
14713 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14714
14715 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14716
147172008-02-01 Kenichi Handa <handa@m17n.org>
14718
14719 * xselect.c (Vselection_coding_system)
14720 (Vnext_selection_coding_system): Delete them.
14721 (syms_of_xselect): Don't declare selection-coding-system and
14722 next-selection-coding-system. They are declared in select.el.
14723
147242008-02-01 Jason Rumney <jasonr@gnu.org>
14725
14726 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14727
14728 * w32fns.c: Include imm.h.
14729 (get_composition_string_fn, get_ime_context_fn): New optional
14730 system functions.
14731 (globals_of_w32fns): Load them from imm32.dll.
14732 (ignore_ime_char): New flag.
14733 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14734 WM_IME_ENDCOMPOSITION messages.
14735
14736 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14737 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14738
147392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14740
14741 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14742 (READCHAR_REPORT_MULTIBYTE): New macro.
14743 (readchar): New 2nd arg MULTIBYTE.
14744 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14745 Make symbol's name multibyte according to the multibyteness of the
14746 source.
14747
147482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14749
14750 * xfaces.c (face_for_overlay_string): Call lookup_face with
14751 correct arguments (fix of synching with the trunk).
14752
147532008-02-01 Kenichi Handa <handa@m17n.org>
14754
14755 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14756 (font_prop_validate_non_neg, font_prop_validate_spacing):
14757 Delete argument prop_index.
14758 (font_property_table): Change arguments to validater. Change Callers.
14759 (font_lispy_object): Delete.
14760 (font_at): Use font_find_object instead fo font_lispy_object.
14761
147622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14763
14764 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14765 and file names.
14766
147672008-02-01 Jason Rumney <jasonr@gnu.org>
14768
14769 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14770 (font_matches_spec): Remove debug output.
14771 (add_font_entity_to_list): Avoid using substituted fonts.
14772
147732008-02-01 Jason Rumney <jasonr@gnu.org>
14774
14775 * doc.c (Fsnarf_documentation):
14776 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14777
147782008-02-01 Miles Bader <miles@gnu.org>
14779
14780 * dispextern.h (struct glyph_row): Only define "clip" field if
14781 HAVE_WINDOW_SYSTEM is defined.
14782
147832008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14784
14785 Fix up multi-tty merge.
14786
14787 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14788 and indentation.
14789
14790 * xfaces.c (free_realized_face, clear_face_gcs):
14791 Include font_done_for_face in the input_blocked section, just in case.
14792
14793 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14794 (get_char_face_and_encoding): Undo last change and remove the *other*
14795 duplicate definition (i.e. keep the one that's better scoped and that
14796 includes code for the font-backend).
14797
14798 * terminal.c (create_terminal): Default keyboard_coding to
14799 `no-conversion' and terminal_coding to `undecided'.
14800
14801 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14802
14803 * fontset.c (free_realized_fontsets): Check that the table entry does
14804 contain a fontset before trying to compare it to `base'.
14805
14806 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14807 syms_of_charset, and syms_of_coding earlier because init_window_once
14808 now needs Vcoding_system_hash_table to be setup.
14809
14810 * coding.h (default_buffer_file_coding): Remove.
14811
14812 * coding.c (default_buffer_file_coding): Remove.
14813 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14814 than ->symbol, and use the terminal-local coding system.
14815 (syms_of_coding): Don't setup the coding-systems that are not
14816 terminal-local.
14817 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14818
14819 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14820 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14821
14822 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14823 in chartab.c and were re-added here by mistake.
14824 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14825
14826 * doc.c (Fsnarf_documentation):
14827 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14828 src to etc.
14829
14830 * ChangeLog.10: Add mistakenly removed entry.
14831
148322008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14833
14834 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14835
148362008-02-01 Miles Bader <miles@gnu.org>
14837
14838 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14839 Add extra args to FACE_FOR_CHAR.
14840
148412008-02-01 Kenichi Handa <handa@m17n.org>
14842
14843 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14844 in sequence.
14845
14846 * chartab.c (map_sub_char_table, map_char_table): If the range
14847 contains just one character, call the function with that character
14848 even if the depth is not 3.
14849
148502008-02-01 Jason Rumney <jasonr@gnu.org>
14851
14852 * w32font.c (w32font_text_extents): Calculate metrics for the
14853 whole string.
14854
148552008-02-01 Jason Rumney <jasonr@gnu.org>
14856
14857 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14858
148592008-02-01 Jason Rumney <jasonr@gnu.org>
14860
14861 * w32term.c (x_set_glyph_string_clipping): Use
14862 get_glyph_string_clip_rects.
14863 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14864 Adjust for the change of struct glyph_string.
14865
14866 * w32font.c (w32font_draw): Do clipping here.
14867
148682008-02-01 Kenichi Handa <handa@m17n.org>
14869
14870 * xftfont.c (xftfont_draw): Adjust for the change of struct
14871 glyph_string.
14872
14873 * xterm.c (x_set_glyph_string_clipping): Use
14874 get_glyph_string_clip_rects.
14875 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14876 Adjust for the change of struct glyph_string.
14877
14878 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14879 the resulting clip(s}.
14880 (expose_overlaps): Add arg r. Change callers. Set it to
14881 row->clip temporarily.
14882 (expose_window): Redraw rows overlapping the exposed area.
14883
14884 * dispextern.h (struct glyph_row): New member clip.
14885 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14886 clip_height, new member clip, and num_clips.
14887
148882008-02-01 Kenichi Handa <handa@m17n.org>
14889
14890 * data.c (Fchar_or_string_p): Fix docstring.
14891
148922008-02-01 Kenichi Handa <handa@m17n.org>
14893
14894 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14895 create a temporary XftDraw object.
14896
148972008-02-01 Kenichi Handa <handa@m17n.org>
14898
14899 * font.c (Ffontp): Fix docstring.
14900
14901 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14902 strong evidence of ISO-2022.
14903
149042008-02-01 Kenichi Handa <handa@m17n.org>
14905
14906 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14907 SYNTAX_ENTRY_FOLLOW_PARENT.
14908
149092008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14910
14911 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14912 its type.
14913 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14914 Update to the new type of weak_hash_tables and next_weak.
14915
14916 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14917 a plain C pointer to Lisp_Hash_Table.
14918
14919 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14920 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14921 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14922 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14923 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14924 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14925 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14926 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14927 (GC_EQ): Remove since they've been identical to their non-GC_
14928 alter-egos ever since the markbit was eradicated.
14929
14930 * alloc.c:
14931 * buffer.c:
14932 * buffer.h:
14933 * data.c:
14934 * fileio.c:
14935 * filelock.c:
14936 * fns.c:
14937 * frame.h:
14938 * lisp.h:
14939 * macterm.c:
14940 * print.c:
14941 * process.c:
14942 * w32fns.c:
14943 * w32menu.c:
14944 * w32term.c:
14945 * xfns.c:
14946 * xmenu.c:
14947 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14948
149492008-02-01 Kenichi Handa <handa@m17n.org>
14950
14951 * chartab.c (map_sub_char_table): Make it work for the top-level
14952 char-table. Fix handling of parent char-table.
14953 (map_char_table): Adjust for the above change.
14954
149552008-02-01 Jason Rumney <jasonr@gnu.org>
14956
14957 * w32font.c (Qgdi): Rename from Qw32.
14958
149592008-02-01 Jason Rumney <jasonr@gnu.org>
14960
14961 * w32bdf.c (get_quoted_string): Make function static.
14962
149632008-02-01 Kenichi Handa <handa@m17n.org>
14964
14965 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14966 bigger ascent and descent than those of the font, use them as
14967 font's ascent and descent.
14968
149692008-02-01 Kenichi Handa <handa@m17n.org>
14970
14971 * Makefile.in (${lispsource}international/charprop.el): Move this
14972 target within "#ifdef HAVE_UNIDATA" and "#endif".
14973
149742008-02-01 Kenichi Handa <handa@m17n.org>
14975
14976 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14977 (shortlisp): Add ../lisp/language/tai-viet.el.
14978
149792008-02-01 Ulrich Mueller <ulm@gentoo.org>
14980
14981 * Makefile.in (${lispsource}international/charprop.el): Depend on
14982 temacs${EXEEXT}.
14983
149842008-02-01 Jason Rumney <jasonr@gnu.org>
14985
14986 * w32font.c (w32font_close): Delete the GDI font object.
14987
14988 * w32menu.c: Include character.h.
14989
14990 * w32proc.c: Likewise.
14991
14992 * w32select.c: Likewise.
14993
14994 * makefile.w32-in (w32proc.o): Depend on character.h.
14995
149962008-02-01 Jason Rumney <jasonr@gnu.org>
14997
14998 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14999
15000 * w32menu.c (syms_of_w32menu): Likewise.
15001
15002 * w32proc.c (syms_of_ntproc): Likewise.
15003
15004 * w32select.c (syms_of_w32select): Likewise.
15005
15006 * w32term.c (syms_of_w32term): Likewise.
15007
150082008-02-01 Jason Rumney <jasonr@gnu.org>
15009
15010 * w32font.c (w32font_draw): Delete brush after using it.
15011
150122008-02-01 Jason Rumney <jasonr@gnu.org>
15013
15014 * w32font.c (w32font_open): Don't set font_idx.
15015 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
15016 to font settings.
15017 (w32font_draw): Fill background explicitly.
15018
150192008-02-01 Jason Rumney <jasonr@gnu.org>
15020
15021 * w32term.c (w32_initialize): Don't call w32font_initialize.
15022
15023 * w32font.c (w32font_info): Remove subranges.
15024 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
15025 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
15026 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
15027 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
15028 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
15029 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
15030 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
15031 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
15032 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
15033 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
15034 New symbols.
15035 (font_callback_data): New struct.
15036 (w32font_list, w32font_match): Use it.
15037 (w32font_open): Don't populate subranges.
15038 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
15039 (w32font_encode_char): Always return unicode code-point as-is.
15040 (w32font_text_extents): Supply a transformation matrix to
15041 GetGlyphOutline. Never look up by glyph index. Avoid looping
15042 twice. Use unicode version of GetTexExtentPoint32 instead of
15043 glyph index version.
15044 (set_fonts_frame): Remove.
15045 (w32_enumfont_pattern_entity): Add frame parameter, use it to
15046 set frame parameter. Use backward compatible fake foundries.
15047 Save generic family in extra slot under QCfamily. Make width slot
15048 constant. Save QCspacing value. Save list of scripts instead of
15049 binary subranges.
15050 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
15051 (add_font_entity_to_list): Use font_callback_data struct. Filter
15052 unwanted fonts.
15053 (add_one_font_entity_to_list): Use font_callback_data struct.
15054 (w32_registry): Default to iso10646_1.
15055 (fill_in_logfont): Use dpi from extra slot. Don't bother with
15056 string font registries. Don't fill in font name if it is a generic
15057 family name, fill family instead. Use spacing, family and script
15058 extra info to fill pitch, family and charset fields.
15059 (list_all_matching_fonts): Use font_callback_data struct.
15060 (unicode_range_for_char): Remove.
15061 (font_supported_scripts): New function.
15062 (w32font_initialize): Remove.
15063 (syms_of_w32font): Update which symbols are defined.
15064
150652008-02-01 Jason Rumney <jasonr@gnu.org>
15066
15067 * font.c (font_pixel_size): Reverse assq_no_quit args.
15068
15069 * w32term.h (FONT_WIDTH): Report max width, not average.
15070 (FONT_MAX_WIDTH): Remove.
15071 (FONT_AVG_WIDTH): New macro.
15072
15073 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
15074 redefinition of FONT_WIDTH.
15075
15076 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
15077 (w32_cache_char_metrics): Use FONT_WIDTH.
15078
15079 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
15080
150812008-02-01 Jason Rumney <jasonr@gnu.org>
15082
15083 * w32font.c (w32font_open): Make lfHeight negative.
15084
15085 * w32fns.c (x_default_font_parameter): Use new style font name.
15086 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
15087
150882008-02-01 Jason Rumney <jasonr@gnu.org>
15089
15090 * w32font.c (QCsubranges): New symbol.
15091 (w32font_open, w32font_has_char): Get subranges from subproperty
15092 of extra.
15093 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
15094 (syms_of_w32font): Define :subranges symbol.
15095
15096 * font.c (font_put_extra): Expose externally.
15097
15098 * font.h (font_put_extra): Move declaration from font.c.
15099
15100 * font.c (Ffont_get): Use font driver to determine otf capability.
15101 (adjust_anchor): Check if driver defines anchor_point before using.
15102
15103 * w32font.c (w32font_open): Handle size, height and pixel_size better.
15104 (w32font_draw): Use options.
15105 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
15106 Fix detection of truetype fonts.
15107 (registry_to_w32_charset): Handle charsets other than iso8859-1
15108 expressed as lisp symbols.
15109 (w32_registry): Express charset as lisp symbol.
15110 (fill_in_logfont): Reverse pixel and point height logic.
15111 Don't set width here. Set quality to default.
15112
15113 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
15114 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
15115
15116 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15117 Remove redundant loop and allocation.
15118
15119 * makefile.w32-in (font.o, w32font.o): New objects.
15120 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
15121 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
15122
15123 * xdisp.c (fill_composite_glyph_string): Make the first arg to
15124 STORE_XCHARB a valid l-value.
15125
15126 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
15127 calculations for non-Truetype fonts.
15128 (x_draw_glyph_string): Sync with xterm.c.
15129 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15130 Remove redundant code.
15131 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
15132
15133 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
15134 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
15135
15136 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
15137 (x_to_w32_charset, w32_to_x_charset): Expose externally.
15138
15139 * w32font.c: New file for w32 font backend.
15140
151412008-02-01 Kenichi Handa <handa@m17n.org>
15142
15143 * term.c: Don't include "buffer.h" twice.
15144
151452008-02-01 Kenichi Handa <handa@m17n.org>
15146
15147 * character.c (Funibyte_string): New function.
15148 (syms_of_character): Defsubr it.
15149
151502008-02-01 Jason Rumney <jasonr@gnu.org>
15151
15152 * w32term.c [USE_FONT_BACKEND]:
15153 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
15154 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
15155 (x_draw_glyph_string, x_draw_glyph_string_foreground)
15156 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
15157 (x_free_frame_resources): Sync with xterm.c.
15158
151592008-02-01 Andreas Schwab <schwab@suse.de>
15160
15161 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
15162 char-table size.
15163
151642008-02-01 Kenichi Handa <handa@m17n.org>
15165
15166 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
15167
151682008-02-01 Kenichi Handa <handa@m17n.org>
15169
15170 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
15171 font_otf_gpos, add font_drive_otf.
15172
15173 * fontset.c (fontset_find_font): Pay attention to font size
15174 specified for a font.
15175 (reorder_font_vector): Check contents of font_def.
15176
15177 * font.c (struct otf_list): Delete it.
15178 (otf_list): Make it a lisp variable.
15179 (otf_open): Use lispy otf_list.
15180 (generate_otf_features): Rename from parse_gsub_gpos_spec.
15181 (check_otf_features): New function.
15182 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15183 New functions.
15184 (font_drive_otf): New function merging font_otf_gsub and
15185 font_otf_gpos.
15186 (font_open_for_lface): New arg spec. Change argument order.
15187 (font_load_for_face): Adjust for the change of font_open_for_lface.
15188 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
15189 Ffont_otf_gpos.
15190 (syms_of_font): Staticpro otf_list. Delete defsubr of
15191 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
15192
15193 * xfaces.c (set_font_frame_param): Adjust for the change of
15194 font_open_for_lface.
15195
15196 * font.h (font_open_for_lface): Adjust prototype.
15197 (struct font_driver): Delete members otf_gsub and otf_gpos, add
15198 member otf_drive.
15199 (font_otf_gsub, font_otf_gpos): Delete externs.
15200 (font_drive_otf): Extern it.
15201
152022008-02-01 Kenichi Handa <handa@m17n.org>
15203
15204 * font.c (font_at): If the window W is not on a window system,
15205 return Qnil.
15206
15207 * coding.c (produce_chars, encode_coding): Don't call
15208 insert_from_gap if no characters to produce.
15209
152102008-02-01 Kenichi Handa <handa@m17n.org>
15211
15212 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
15213 Fclear_face_cache.
15214
15215 * xfaces.c (face_for_font): Check also face->font==font->font.font.
15216
152172008-02-01 Miles Bader <miles@gnu.org>
15218
15219 * emacs.c (main): Change default value of `enable_font_backend' to 1.
15220 Parse "--disable-font-backend" option.
15221 (standard_args): Add "--disable-font-backend" option.
15222
152232008-02-01 Kenichi Handa <handa@m17n.org>
15224
15225 * fontset.c (fontset_find_font): New function.
15226 (fontset_font): Use fontset_find_font.
15227 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
15228 Register the specified font for all Latin characters.
15229 (new_fontset_from_font): Register the specified font for all Latin
15230 characters.
15231 (dump_fontset): For a realized fontset, include the base fontset
15232 name in the returned vector.
15233
152342008-02-01 Kenichi Handa <handa@m17n.org>
15235
15236 * character.h (CHAR_STRING): Cast C to unsigned on calling
15237 char_string.
15238
15239 * character.c (char_string): Type of arg C changed to unsigned.
15240 Signal an error if C is an invalid character code.
15241
15242 * editfns.c (general_insert_function, Fchar_to_string):
15243 Use CHARACTERP, not INTEGERP.
15244
152452008-02-01 Kenichi Handa <handa@m17n.org>
15246
15247 * character.h (MIN_MULTIBYTE_LEADING_CODE)
15248 (MAX_MULTIBYTE_LEADING_CODE): New macros.
15249
15250 * regex.c (analyse_first): Fix for multibyte characters in "case
15251 charset:" and "case categoryspec:".
15252
152532008-02-01 Andreas Schwab <schwab@suse.de>
15254
15255 * Makefile.in (LIBES): Move standard libraries to the end.
15256
152572008-02-01 Kenichi Handa <handa@m17n.org>
15258
15259 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
15260 nonzero, don't shrink the buffer nextb.
15261
15262 * buffer.h (struct buffer_text): New member inhibit_shrinking.
15263
15264 * coding.c (coding_alloc_by_making_gap): New arg offset.
15265 (alloc_destination): Call coding_alloc_by_making_gap with the arg
15266 offset.
15267 (decode_coding_iso_2022): Update coding->safe_charsets.
15268 (decode_coding_gap): Temporarily set
15269 current_buffer->text->inhibit_shrinking to 1.
15270
152712008-02-01 Kenichi Handa <handa@m17n.org>
15272
15273 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
15274 indexing into elements of s->cmp and s->char2b.
15275
152762008-02-01 Juanma Barranquero <lekktu@gmail.com>
15277
15278 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
15279
152802008-02-01 Kenichi Handa <handa@m17n.org>
15281
15282 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
15283 target_multibyte instead of multibyte.
15284 (re_match_2_internal): Call bcmp_translate with target_multibyte.
15285 (bcmp_translate): Change the argument name from multibyte to
15286 target_multibyte.
15287
152882008-02-01 Kenichi Handa <handa@m17n.org>
15289
15290 These changes are to compile a regexp into a pattern that can be
15291 used both for multibyte and unibyte targets.
15292
15293 * Makefile.in (search.o): Depend on charset.h.
15294
15295 * character.c (multibyte_char_to_unibyte_safe): New function.
15296
15297 * search.c: Include "charset.h".
15298 (compile_pattern_1): Delete argument multibyte. Don't set
15299 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
15300 (compile_pattern): Don't compare cp->buf.target_multibyte.
15301 Compare cp->buf.charset_unibyte.
15302 (compile_pattern): Set cp->buf.target_multibyte.
15303
15304 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
15305
15306 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
15307
15308 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
15309 multibyte. Change callers.
15310 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
15311 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
15312 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
15313 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
15314 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
15315 (regex_compile): Make the compiled pattern usable both for
15316 multibyte and unibyte targets.
15317 (analyse_first): Make the fastmap usable both for multibyte and
15318 unibyte targets.
15319 (TRANSLATE_VIA_MULTIBYTE): Delete.
15320 (re_match_2_internal): Pay attention to the case that the
15321 multibyteness of bufp and target may be different.
15322
153232008-02-01 Kenichi Handa <handa@m17n.org>
15324
15325 * xdisp.c (x_produce_glyphs): When a font is not found, make the
15326 empty box occupy at least one column width.
15327
153282008-02-01 Miles Bader <miles@gnu.org>
15329
15330 * Makefile.in: Remove redundant HAVE_XFT clause.
15331
153322008-02-01 Kenichi Handa <handa@m17n.org>
15333
15334 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
15335
153362008-02-01 Kenichi Handa <handa@m17n.org>
15337
15338 * fontset.c (Finternal_char_font): Fix for the case of POSITION
15339 being nil.
15340
153412008-02-01 Kenichi Handa <handa@m17n.org>
15342
15343 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
15344
153452008-02-01 Kenichi Handa <handa@m17n.org>
15346
15347 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
15348
153492008-02-01 Kenichi Handa <handa@m17n.org>
15350
15351 * search.c (simple_search): Fix previous change.
15352
153532008-02-01 Kenichi Handa <handa@m17n.org>
15354
15355 * xftfont.c (ftfont_font_format): Extern declaration.
15356
15357 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
15358
15359 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
15360 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
15361
15362 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
15363 (ftfont_font_format): Fix previous change.
15364
15365 * font.h (Ffont_xlfd_name): EXFUN it.
15366
15367 * font.c (font_parse_xlfd): Fix the array size of `f'.
15368 (register_font_driver): Use EQ to compare driver->type.
15369
15370 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
15371 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
15372 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
15373
153742008-02-01 Kenichi Handa <handa@m17n.org>
15375
15376 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
15377 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
15378
153792008-02-01 Kenichi Handa <handa@m17n.org>
15380
15381 * xfont.c (xfont_open): Set font->format.
15382
15383 * xftfont.c (xftfont_open): Set font->format.
15384
15385 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
15386 (ftfont_list): Include FC_FONTFORMAT in FcObject.
15387 (ftfont_open): Set font->format.
15388 (ftfont_font_format): New function.
15389
15390 * font.h (struct font): New member format.
15391
15392 * font.c (Qopentype): New variable.
15393 (syms_of_font): Defsym it.
15394 (Fquery_font): Change the format of the last element of the return
15395 value.
15396
153972008-02-01 Kenichi Handa <handa@m17n.org>
15398
15399 * xfns.c (xic_create_xfontset): Try the default fontset name as a
15400 last resort.
15401
154022008-02-01 Kenichi Handa <handa@m17n.org>
15403
15404 * coding.c (detect_coding_charset): Fix detection of multi-byte
15405 charset.
15406
154072008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
15408
15409 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
15410
154112008-02-01 Kenichi Handa <handa@m17n.org>
15412
15413 * xdisp.c (get_next_display_element): Set it->face_id for the
15414 first component of a composition.
15415 (x_produce_glyphs): Check if the font is changed or not for composition.
15416
154172008-02-01 Kenichi Handa <handa@m17n.org>
15418
15419 * fontset.c (Qlatin): New variable.
15420 (syms_of_fontset): Define it as a lisp symbol.
15421 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
15422
154232008-02-01 Kenichi Handa <handa@m17n.org>
15424
15425 * font.c (font_unparse_fcname): Pay attention to the case that
15426 some of font property is a null string.
15427
154282008-02-01 Kenichi Handa <handa@m17n.org>
15429
15430 * term.c: Include "composite.h".
15431 (encode_terminal_code): Output all components of composition.
15432 Check the size of encode_terminal_src.
15433 (produce_glyphs): For composition, call produce_composite_glyph.
15434 (append_composite_glyph, produce_composite_glyph): New functions.
15435
15436 * xdisp.c (x_produce_glyphs): In handling composition, if a font
15437 is not found, get font_info from the current ascii face.
15438
154392008-02-01 Kenichi Handa <handa@m17n.org>
15440
15441 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
15442 buffer-file-name to Qnil before calling insert_from_buffer.
15443
15444 * font.c (font_unparse_fcname): Pay attention to the case that
15445 foundry is a null string.
15446
154472008-02-01 Kenichi Handa <handa@m17n.org>
15448
15449 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
15450
15451 * font.c (Qunicode_sip): New variable.
15452 (syms_of_font): Declare it as a Lisp symbol.
15453
15454 * font.h (Qunicode_sip): Extern it.
15455
154562008-02-01 Kenichi Handa <handa@m17n.org>
15457
15458 * composite.c (get_composition_id): Pay attention to TAB component.
15459
15460 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
15461 TAB. Adjust for the change of s->char2b which always points to
15462 the first element of allocated memory.
15463
15464 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
15465
15466 * xdisp.c (handle_composition_prop): Set it->c to the first
15467 non-TAB component.
15468 (fill_composite_glyph_string): Change argument.
15469 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
15470 (x_produce_glyphs): Fix handling of left/right padding.
15471
154722008-02-01 Kenichi Handa <handa@m17n.org>
15473
15474 * coding.c (detect_coding_system): Fix for handling off
15475 inhibit_iso_escape_detection. Fix for the case that no coding
15476 system is defined for a specific coding category.
15477
154782008-02-01 Kenichi Handa <handa@m17n.org>
15479
15480 * font.c (font_matching_entity): Delete unused local var.
15481
15482 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
15483 opening a font.
15484
15485 * fileio.c (Finsert_file_contents): On recovering a file, assume
15486 Unix-like eol.
15487 (choose_write_coding_system): On auto-saving a file, force
15488 Unix-like eol.
15489
15490 * coding.c (setup_coding_system): Fix setting of
15491 coding->common_flags based on eol_type.
15492 (coding_inherit_eol_type): If PARENT is not nil, be sure to
15493 inherit from it.
15494
154952008-02-01 Kenichi Handa <handa@m17n.org>
15496
15497 * alloc.c (NSTATICS): Increas to 0x600.
15498
154992008-02-01 Kenichi Handa <handa@m17n.org>
15500
15501 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
15502 (ftfont_list): Don't check :name property.
15503 (ftfont_match): New function.
15504 (ftfont_pattern_entity): If the pattern doesn't contain
15505 FC_SPACING, don't assume FC_MONO.
15506
15507 * font.h (struct font_driver): New member `match'.
15508 (font_update_drivers): Adjust prototype.
15509
15510 * font.c (font_parse_fcname, font_parse_name): Don't change :name
15511 property of FONT.
15512 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
15513 them unconditionally.
15514 (font_matching_entity): New function.
15515 (font_open_by_name): Try font_matching_entity if exact match is
15516 not found.
15517 (font_update_drivers): Delete the arg FONT. Return a list of
15518 actually used backends. Don't free faces, font caches here.
15519 Don't store data in frame parameters. Don't call x_set_font.
15520 (Ffont_spec): Store :name property as is.
15521 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
15522 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
15523 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
15524 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
15525 Call font->driver->otf_gsub instead of font_otf_gsub.
15526
15527 * frame.c (x_set_font_backend): Do more works that were done in
15528 font_update_drivers before.
15529
15530 * xfont.c (xfont_match): New function.
15531 (xfont_driver): Set xfont_driver.match to xfont_match.
15532 (xfont_draw): Set font in GC if necessary.
15533
15534 * ftxfont.c (ftxfont_match): New function.
15535 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
15536
15537 * xftfont.c (xftfont_match): New function.
15538 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
15539
155402008-02-01 Kenichi Handa <handa@m17n.org>
15541
15542 * font.h (struct font): New member scalable.
15543 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
15544 (font_otf_gsub): Adjust prototype.
15545
15546 * font.c (font_otf_capability): Fix handling of the default langsys.
15547 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
15548 Check the contents of SPEC.
15549 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
15550 (check_gstring): New function.
15551 (REPLACEMENT_CHARACTER): New macro.
15552 (font_otf_gsub): New arg alternate_subst. Be sure to set all
15553 glyph codes of GSTRING.
15554 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
15555 (font_prepare_composition): Set cmp->glyph_len.
15556 (font_open_entity): Set font->scalable.
15557 (Ffont_get): Handle :otf property.
15558 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
15559 functions.
15560 (Fquery_font): Use font->font.full_name.
15561 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
15562 Sfont_otf_alternates.
15563
15564 * ftfont.c (ftfont_open): Set font->font.full_name and
15565 font->font.name properly. Fix calculation of font->font.height
15566 and font->min_width.
15567
15568 * ftxfont.c (ftxfont_create_gcs): New function.
15569 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
15570 (ftxfont_draw_backgrond): Fix filling region.
15571 (ftxfont_default_fid): New function.
15572 (ftxfont_open): Set xfont->fid to the return value of
15573 ftxfont_default_fid.
15574 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
15575 (ftxfont_done_face): Free only GCs that are created by
15576 ftxfont_create_gcs.
15577 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
15578
15579 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
15580 Clip to src->width, etc (not src->clip_XXX).
15581
15582 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
15583 FontBackend frame parameter.
15584
155852008-02-01 Kenichi Handa <handa@m17n.org>
15586
15587 * font.h (struct font_driver_list): New member `on'.
15588 (Fclear_font_cache): EXFUN it.
15589 (font_update_drivers): Extern it.
15590
15591 * font.c (font_unparse_fcname): Fix typo (swidth->width).
15592 (font_list_entities): Check driver_list->on.
c0943d3d 15593 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
15594 (font_update_drivers): New function.
15595 (Fclear_font_cache): Check driver_list->on.
15596
15597 * frame.h (Qfont_backend): Extern it.
15598 (x_set_font_backend): Extern it.
15599
15600 * frame.c (Qfont_backend): New variable.
15601 (frame_parms): New element for font-backend.
15602 (x_set_font_backend): New function.
15603
15604 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
15605 FontBackend frame parameter.
15606 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
15607 x_set_font_backend.
15608
15609 * xfont.c (xfont_list): Don't try listing by :name property if the
15610 name is not for XLFD.
15611
156122008-02-01 Kenichi Handa <handa@m17n.org>
15613
15614 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
15615 (LGLYPH_SET_TO): New macros.
15616 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
15617 element of G is vector or not.
15618 (font_at): Extern it.
15619
15620 * font.c: Include window.h.
15621 (font_lispy_object): New function.
15622 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
15623 end of valid glyph.
15624 (font_close_object): Fix getting (struct font *).
15625 (font_at): New function.
15626 (Ffont_get): If FONT is a font-object, get entity from it.
15627 (Ffont_make_gstring): Initialize elements of glyphs with nil.
15628 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
15629 range check.
15630 (Ffont_at): New function.
15631 (syms_of_font): Defsubr Sfont_at.
15632
15633 * xdisp.c (it_props): Move the entry for Qauto_composed to just
15634 before the entry for Qcomposition.
15635 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
15636 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
15637 the font in gstring.
15638 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
15639 LGLYPH_FORM (g) to detect the end of valid glyph.
15640 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
15641 we are composing with gstring.
15642
15643 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
15644 Check if adjustment is vector or not.
15645
15646 * Makefile.in (font.o): Make it depends on window.h.
15647
156482008-02-01 Kenichi Handa <handa@m17n.org>
15649
15650 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
15651 adjustment is vector or not.
15652
156532008-02-01 Miles Bader <miles@gnu.org>
15654
15655 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
15656
156572008-02-01 Kenichi Handa <handa@m17n.org>
15658
15659 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15660 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15661 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15662
15663 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15664 (DEVICE_DELTA): Fix typo.
15665 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15666 LGLYPH format.
15667
15668 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15669 the change of LGLYPH format.
15670
156712008-02-01 Kenichi Handa <handa@m17n.org>
15672
15673 * ftfont.c (ftfont_list): Fix typo.
15674 (ftfont_build_basic_charsets): Don't include letters with diacritics.
15675
156762008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15677
15678 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15679
15680 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15681 xftface_info is non-NULL.
15682
156832008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15684
15685 * ftfont.c (ftfont_list): Move misplaced #endif.
15686
156872008-02-01 Kenichi Handa <handa@m17n.org>
15688
15689 * ftfont.c (ftfont_list): Pay attention to the case that
15690 FC_CAPABILITY is not defined.
15691
156922008-02-01 Kenichi Handa <handa@m17n.org>
15693
15694 * xftfont.c (xftfont_open): Set charset related members to -1.
15695
15696 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
15697 QCname.
15698 (ftfont_open): Set charset related members to -1.
15699
15700 * fontset.c (Votf_script_alist): New variable.
15701 (syms_of_fontset): Initialize it.
15702 (fontset_font): Delete unused variable.
15703
15704 * fontset.h (Votf_script_alist): Extern it.
15705
15706 * font.c (font_find_for_lface): Optimize code.
15707
15708 * font.h (font_close_object, font_merge_old_spec): Extern them.
15709
157102008-02-01 Kenichi Handa <handa@m17n.org>
15711
15712 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15713 (syms_of_font): Initialize them.
15714 (font_pixel_size): Allow float value in dpi.
15715 (font_prop_validate_type): Delete.
15716 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15717 Change caller.
15718 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15719 (font_prop_validate_extra): Delete.
15720 (font_prop_validate_spacing): New function.
15721 (font_property_table): Add elements for all known properties.
15722 (get_font_prop_index): Rename from check_font_prop_name. New
15723 argument FROM. Change caller.
15724 (font_prop_validate): Validate all known properties.
15725 (font_put_extra): Delete argument force. Change caller.
15726 (font_expand_wildcards): Make it static. Fix the way of shrinking
15727 the possible range.
15728 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15729 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15730 Change caller.
15731 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15732 (font_parse_fcname): Delete argument merge. Fix parsing of point
15733 size. Don't validate properties values here. Change caller.
15734 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15735 (font_open_by_name): Delete unused variable.
15736 (Ffont_spec): Likewise. Validate property values.
15737 (Ffont_match_p): New function.
15738
15739 * font.h (QCscalable): Extern it.
15740 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15741
15742 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15743
15744 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15745 (xfont_list_pattern): New function.
15746 (xfont_list): Use xfont_list_pattern.
15747
157482008-02-01 Kenichi Handa <handa@m17n.org>
15749
15750 * font.h (Flist_fonts): EXFUN it.
15751
157522008-02-01 Jason Rumney <jasonr@gnu.org>
15753
15754 * w32term.c (w32_initialize): Add back smoothing_type and
15755 smoothing_enabled definitions.
15756
157572008-02-01 Kenichi Handa <handa@m17n.org>
15758
15759 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15760 s->face->font on determining underline position.
15761
157622008-02-01 Kenichi Handa <handa@m17n.org>
15763
15764 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15765 (font_has_char): Accept font-object too.
15766 (font_find_for_lface): Try at first with a size specified in face.
15767
157682008-02-01 Kenichi Handa <handa@m17n.org>
15769
15770 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15771 font_open_by_name.
15772
157732008-02-01 Kenichi Handa <handa@m17n.org>
15774
15775 * font.h (QCspacing, QCdpi): Extern them.
15776 (enum font_spacing): New enum.
15777 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15778
15779 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15780 (QCspacing, QCdpi): New variables.
15781 (syms_of_font): Initialize them.
15782 (font_pixel_size): New function.
15783 (font_put_extra): New function.
15784 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15785 in FONT_EXTRA.
15786 (font_parse_fcname): Handle enumerated values (e.g. bold).
15787 Fix handling font size. Add QCname property that contains only
15788 unknown properties.
15789 (font_score): Change argument. Change caller. Pay attention to
15790 FONT_PIXEL_SIZE_QUANTUM.
15791 (font_sort_entites, font_list_entities, font_find_for_lface)
15792 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15793 (Ffont_spec): Add QCname property that contains only unknown properties.
15794
15795 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15796 include weight in listing pattern, instead check weight of each
15797 listed font. Don't include scalable in pattern. Pay attention to
15798 FONT_PIXEL_SIZE_QUANTUM.
15799
158002008-02-01 Kenichi Handa <handa@m17n.org>
15801
15802 * font.c (font_parse_fcname): Fix parsing of point-size.
15803 (font_unparse_fcname): Produce symbolic names for style properties.
15804 (font_list_entities): Handle float size correctly.
15805 (font_open_by_name): Prefer `normal' property values if the name
15806 doesn't specify them.
15807
15808 * fontset.c (Finternal_char_font): Use font_get_name, not
15809 Ffont_xlfd_name.
15810
15811 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15812 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15813 pattern. Don't force scalable.
15814
15815 * xftfont.c (xftfont_open): For generating a name, start from
15816 96-byte buffer.
15817
158182008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15819
15820 * frame.h (x_new_fontset2): Fix prototype.
15821
158222008-02-01 Kenichi Handa <handa@m17n.org>
15823
15824 * font.h (struct font_driver): Delete member parse_name.
15825 (font_match_p, font_get_spec, font_parse_fcname)
15826 (font_unparse_fcname): Extern them.
15827 (font_get_name): Adjust prototype.
15828
15829 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15830 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15831 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15832 unnecessary checks for weight, slant, and swidth.
15833 (font_parse_fcname): New function.
15834 (font_unparse_fcname): New function.
15835 (font_parse_name): New function.
15836 (font_match_p): New function.
15837 (font_get_name): Change return value to Lisp string.
15838 (font_get_spec): New function.
15839 (Qunspecified, Qignore_defface): Don't extern them.
15840 (font_find_for_lface): Assume that LFACE is fully specified.
15841 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15842 object, use it for FACE.
15843 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15844 driver->parse_name.
15845 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15846
15847 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15848 prototype.
15849
15850 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15851 argument F. Don't call Fnew_fontset. Instead, directly call
15852 make_fontset.
15853
15854 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15855
15856 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15857 of x_new_fontset2.
15858
15859 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15860 (Qsans__serif): New variables.
15861 (ftfont_generic_family_list): New variable.
15862 (syms_of_ftfont): Initialize the above variables.
15863 (ftfont_pattern_entity): Delete argument NAME.
15864 (ftfont_list_generic_family): New function.
15865 (ftfont_parse_name): Delete this function.
15866 (ftfont_list): Try generic family only when FcFontList found no font.
15867 (ftfont_list_family): Fix args to FcObjectSetBuild.
15868
15869 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15870 object in attrs[LFACE_FONT_INDEX].
15871 (set_lface_from_font_name): Cancel all changes for font-backend.
15872 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15873 function.
15874 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15875 font object in QCfont attribute.
15876 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15877 (realize_default_face) [USE_FONT_BACKEND]: Call
15878 set_lface_from_font_and_fontset.
15879
15880 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15881 "fixed", and signal error here if no suitable font was found.
15882
15883 * xfont.c (xfont_parse_name): Delete this function.
15884
15885 * xftfont.c (xftfont_open): Change coding style of error
15886 handling. Generate fontconfig's fontname pattern.
15887
15888 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15889 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15890
15891 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15892 Both args FONTSET and FONT_OBJECT must be existing ones.
15893
158942008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15895
15896 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15897
158982008-02-01 Kenichi Handa <handa@m17n.org>
15899
15900 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15901
15902 * font.h (struct font): Fix typo.
15903
15904 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15905 XLFD_XXX_INDEX.
15906 (enum xlfd_field_mask): New enum.
15907 (intern_font_field): Changed argument. Change caller. If digits
15908 are followed by non-digits, return a symbol.
15909 (font_expand_wildcards): New function.
15910 (font_parse_xlfd): Fix wildcard handling.
15911 (Ffont_spec): If :name is specified, reflect the info in the other
15912 properties.
15913
15914 * ftfont.c (ftfont_pattern_entity): Fix typo.
15915 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15916 locale.
15917
159182008-02-01 Kenichi Handa <handa@m17n.org>
15919
15920 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15921
15922 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15923 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15924 registry doesn't specify encoding part.
15925 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15926 (font_open_by_name): At first try parsing the name.
15927 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15928 as Lisp symbols.
15929
15930 * fontset.c (reorder_font_vector): Pay attention to the case that
15931 the 3rd element of font_def is nil.
15932 (fontset_font): For the default fontset, append one more fontset
15933 elements for a script-based font specification. Don't add script
15934 attribute on finding a font.
15935 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15936 font name.
15937 (fontset_ascii_font): If a font can't be opened, return nil.
15938
15939 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15940 (ftfont_pattern_entity): New function.
15941 (ftfont_get_cache): Assume that freetype_font_cache is already
15942 initialized.
15943 (ftfont_list): Handle the case that a file is specified in font
15944 name. Use ftfont_pattern_entity to generate entities.
15945 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15946 (syms_of_ftfont): Initialize freetype_font_cache.
15947
15948 * xftfont.c (xftfont_open): Make the font name fontconfig's
15949 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15950 (xftfont_close): Free font->font.name if not NULL.
15951
15952 * xfont.c (xfont_list): If script is specified for a font, return
15953 null_vector.
15954 (xfont_list_family): Declare argument type.
15955
15956 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15957 name, set LFACE_FONT (lface) to nil.
15958
15959 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15960 return Qnil.
15961
159622008-02-01 Kenichi Handa <handa@m17n.org>
15963
15964 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15965 (standard_args): Add "-enable-font-backend".
15966
159672008-02-01 Kenichi Handa <handa@m17n.org>
15968
15969 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15970 (struct xftdraw_list, xftdraw_list): Delete them.
15971 (register_xftdraw, check_xftdraw): Delete them.
15972 (xftfont_prepare_face): Don't call register_xftdraw.
15973 (xftfont_done_face): Don't call check_xftdraw.
15974 (xftfont_draw): Get background color only when with_background is
15975 nonzero.
15976
15977 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15978
159792008-02-01 Kenichi Handa <handa@m17n.org>
15980
15981 These changes are for the new font handling codes.
15982
15983 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15984 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15985 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15986 (FONTSRC, FONTOBJ): New variables.
15987 (obj): Add $(FONTOBJ).
15988 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15989 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15990 @LIBOTF_LIBS@.
15991 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15992 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15993
15994 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15995
15996 * character.h (Vscript_representative_chars): Extern it.
15997
15998 * character.c (Vscript_representative_chars): New variable.
15999 (syms_of_character): Declare it as a Lisp variable.
16000
16001 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
16002 enable_font_backend is nonzero, accept the composition method
16003 COMPOSITION_WITH_GLYPH_STRING.
16004
16005 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
16006 enumeration COMPOSITION_WITH_GLYPH_STRING.
16007
16008 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
16009 members clip_x, clip_y, clip_width, and clip_height.
16010 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
16011
16012 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
16013 --enable-font-backend. Call syms_of_font.
16014
16015 * fns.c (assoc_no_quit): New function.
16016
16017 * fontset.h (FONT_INFO_FROM_FACE): New macro.
16018 (face_for_font, new_fontset_from_font)
16019 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
16020
16021 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
16022 (fontset_font, fontset_ascii, face_for_char)
16023 (make_fontset_for_ascii_face, Ffont_info)
16024 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
16025 is nonzero, use font-backend mechanism.
16026 (find_font_encoding): Make it non-static.
16027 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
16028 New functions.
16029
16030 * frame.h (struct frame): New members resx and resy.
16031 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
16032 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
16033
16034 * frame.c [USE_FONT_BACKEND]: Include "font.h".
16035 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
16036
16037 * lisp.h (assoc_no_quit): Extern it.
16038
16039 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
16040 Through out the file, use FONT_INFO_FROM_FACE instead of
16041 FONT_INFO_FROM_ID, use get_per_char_metric instead of
16042 rif->per_char_metric.
16043 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
16044 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
16045 (get_glyph_face_and_encoding, fill_composite_glyph_string)
16046 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16047 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
16048 nonzero, use font-backend mechanism.
16049 (get_per_char_metric): New function.
16050
16051 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
16052 (set_lface_from_font_name)
16053 (set_font_frame_param, free_realized_face)
16054 (prepare_face_for_display, clear_face_gcs)
16055 (Finternal_set_font_selection_order, realize_x_face)
16056 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
16057 font-backend mechanism.
16058 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
16059 (load_face_font) [USE_FONT_BACKEND]: Abort.
16060 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
16061 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
16062
16063 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
16064 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
16065 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
16066 nonzero, register all available font drivers. Call
16067 x_default_font_parameter for deciding a font.
16068 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
16069
16070 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
16071 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
16072 (x_set_glyph_string_clipping_exactly)
16073 (x_compute_glyph_string_overhangs)
16074 (x_draw_glyph_string_foreground)
16075 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
16076 (x_free_frame_resources) [USE_FONT_BACKEND]: If
16077 enable_font_backend is nonzero, use font-backend mechanism.
16078 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
16079
160802008-02-01 Kenichi Handa <handa@m17n.org>
16081
16082 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
16083 system_eol_type.
16084 (syms_of_coding): Initialize system_eol_type.
16085
16086 * process.c (Fset_process_coding_system): Inherit system's eol
16087 format if necessary.
16088
160892008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16090
16091 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
16092
160932008-02-01 Kenichi Handa <handa@m17n.org>
16094
16095 * coding.c (decode_eol): Pay attention to buffer relocation in
16096 del_range_2.
16097 (decode_coding): Call decode_eol before restoring undo_list.
16098
160992008-02-01 Kenichi Handa <handa@m17n.org>
16100
16101 * charset.c (Fdefine_charset_internal): Fix setting of
16102 emacs_mule_bytes.
16103
161042008-02-01 Kenichi Handa <handa@m17n.org>
16105
16106 * keyboard.c (read_char): Check if C is a character or not before
16107 looking up Vkeyboard_translate_table.
16108
161092008-02-01 Kenichi Handa <handa@m17n.org>
16110
16111 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
16112 condition to terminate the loop.
16113
161142008-02-01 Kenichi Handa <handa@m17n.org>
16115
16116 * coding.c (produce_composition): Compare charbuf[i] instead of
16117 args[i] against 0.
16118 (Fterminal_coding_system): Use EQ to compare Lisp objects.
16119
161202008-02-01 Kenichi Handa <handa@m17n.org>
16121
16122 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
16123 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
16124 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
16125 detect_coding.
16126 (emacs_mule_char): Handle old style (Emacs 20) component character
16127 of a composition.
16128 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
16129 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
16130 composition rule.
16131 (decode_coding_emacs_mule): Handle invalid bytes correctly.
16132
161332008-02-01 Kenichi Handa <handa@m17n.org>
16134
16135 * coding.c (encode_coding_ccl): Allocate destination dynamically
16136 when necessary.
16137
161382008-02-01 Kenichi Handa <handa@m17n.org>
16139
16140 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
16141 the loop. When quitted, show a proper error message.
16142
161432008-02-01 Kenichi Handa <handa@m17n.org>
16144
16145 * xterm.c (x_set_glyph_string_clipping_exactly): Set
16146 src->clip_head and src->clip_tail temporarily instead of src->hl.
16147
16148 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
16149 character sequence.
16150 (Fccl_execute_on_string): Use ASET, not XSET.
16151
161522008-02-01 Kenichi Handa <handa@m17n.org>
16153
16154 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
16155
161562008-02-01 Kenichi Handa <handa@m17n.org>
16157
16158 * coding.c (decode_coding): Fix the condition of terminating the
16159 decoding loop.
16160
161612008-02-01 Kenichi Handa <handa@m17n.org>
16162
16163 * data.c (Faset): On setting a character bigger than 255 in a
16164 unibyte string, signal an error instead of make the string multibyte.
16165
161662008-02-01 Kenichi Handa <handa@m17n.org>
16167
16168 * charset.c (map_charset_chars): Fix for ascii-compatible charset
16169 made by a mapping table.
16170
161712008-02-01 Kenichi Handa <handa@m17n.org>
16172
16173 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
16174 not.
16175 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
16176 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
16177
16178 * xterm.c (x_draw_composite_glyph_string_foreground): Check
16179 s->face is NULL or not.
16180
161812008-02-01 Kenichi Handa <handa@m17n.org>
16182
16183 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
16184 (x_draw_glyph_string): Fix drawing of right_overhang and
16185 left_overhang around/on cursor.
16186
16187 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
16188
161892008-02-01 Kenichi Handa <handa@m17n.org>
16190
16191 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
16192
161932008-02-01 Kenichi Handa <handa@m17n.org>
16194
16195 * coding.c (Fdefine_coding_system_internal)
16196 (Fdefine_coding_system_alias): Avoid a duplicated element in
16197 Vcoding_system_alist.
16198
161992008-02-01 Kenichi Handa <handa@m17n.org>
16200
16201 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
16202
16203 * coding.c (Qcoding_system_define_form): New variable.
16204 (syms_of_coding): Intern and staticpro it.
16205 (Fcoding_system_p): Check Qcoding_system_define_form.
16206 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
16207
16208 * coding.h (CODING_SYSTEM_P): If ID is not available, call
16209 Fcoding_system_p.
16210 (CHECK_CODING_SYSTEM): If ID is not available, call
16211 Fcheck_coding_system.
16212 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
16213 Try also Fcheck_coding_system.
16214
162152008-02-01 Kenichi Handa <handa@m17n.org>
16216
16217 * coding.c (code_conversion_restore): GCPRO arg.
16218
162192008-02-01 Kenichi Handa <handa@m17n.org>
16220
16221 * character.c (lisp_string_width): Check multibyteness of STRING.
16222
162232008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16224
16225 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
16226 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
16227 (decode_mac_font_name): Use decode_coding_c_string instead of
16228 decode_coding.
16229 (x_load_font): Initialize fontp->fontset to -1. Set
16230 fontp->encoding_type.
16231
162322008-02-01 Kenichi Handa <handa@m17n.org>
16233
16234 * search.c (search_buffer): Give up BM search on case-fold-search
16235 if one of a target character has a case-equivalence of different
8307f923 16236 byte length even if that target character is an ASCII.
aac0c6e3
MR
16237 (simple_search): Fix calculation of byte length of matched text.
16238 (boyer_moore): Fix handling of case-equivalent multibyte characters.
16239
162402008-02-01 Kenichi Handa <handa@m17n.org>
16241
16242 * coding.c (decode_coding): Fix handling of invalid bytes.
16243
162442008-02-01 Kenichi Handa <handa@m17n.org>
16245
16246 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
16247 Unicode characters.
16248
162492008-02-01 Kenichi Handa <handa@m17n.org>
16250
16251 * coding.c (encode_coding_object): If a pre-write-conversion
16252 function makes a new buffer, kill it.
16253
162542008-02-01 Kenichi Handa <handa@m17n.org>
16255
16256 * coding.c (QCascii_compatible_p): New variable.
16257 (syms_of_coding): Initialize it.
16258 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
16259 calling string_char.
16260 (record_conversion_result): Add `default:' case.
16261 (coding_charset_list): Delete unused variable `coding_type'.
16262 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
16263 property in the plist of the coding system.
16264 (Fcoding_system_put): Check QCascii_compatible_p.
16265
162662008-02-01 Miles Bader <miles@gnu.org>
16267
16268 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
16269 removed calculation of frame `f', as it's now used.
16270
162712008-02-01 Kenichi Handa <handa@m17n.org>
16272
16273 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
16274 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
16275 (UNIDATA): New variable.
16276 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
16277 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
16278 $(RUN_TEMACS) unconditionally.
16279
162802008-02-01 Kenichi Handa <handa@m17n.org>
16281
16282 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
16283 (admindir): New variable.
16284 ($(lispsource)international/charprop.el): New target.
16285
162862008-02-01 Miles Bader <miles@gnu.org>
16287
16288 * character.c (chars-in-region): Remove obsolete function.
16289 (syms_of_character): Remove its initialization.
16290
162912008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
16292
16293 * w32select.c (validate_coding_system)
16294 (setup_windows_coding_system): New functions.
16295 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
16296 setup_windows_coding_system.
16297 (setup_config, Fw32_get_clipboard_data): Use
16298 validate_coding_system.
16299 (Fx_selection_exists): Move call to setup_config to a place
16300 where signals are allowed.
16301
16302 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
16303 (Fcheck_coding_system): Add declarations.
16304
163052008-02-01 Kenichi Handa <handa@m17n.org>
16306
16307 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
16308
163092008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16310
16311 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
16312 string as the second argument for x_new_fontset.
16313
163142008-02-01 Kenichi Handa <handa@m17n.org>
16315
16316 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
16317 (encode_coding_object): Use safe_call instead of call2.
16318
163192008-02-01 Kenichi Handa <handa@m17n.org>
16320
16321 * fontset.c (Fset_fontset_font): Check family element of a given vector.
16322
16323 * Makefile.in (lisp): Include charprop.el.
16324
163252008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16326
16327 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
16328 Not sure if it's unnecessary.
16329
163302008-02-01 Steven Tamm <steventamm@mac.com>
16331
16332 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
16333 some possibly unnecessary fontset checking code that crashed
16334 when creating a new frame.
16335
163362008-02-01 Kenichi Handa <handa@m17n.org>
16337
16338 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
16339 lookup_face.
16340
16341 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
16342
16343 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
16344
163452008-02-01 Kenichi Handa <handa@m17n.org>
16346
16347 * coding.c: Cancel the change done in HEAD on 2008-02-01.
16348 (coding_charset_list): New function.
16349
16350 * coding.h (coding_charset_list): Extern it.
16351
163522008-02-01 Kenichi Handa <handa@m17n.org>
16353
16354 * fontset.c (Fset_fontset_font): Call find_font_encoding with
16355 concatenation of family and registry.
16356
163572008-02-01 Kenichi Handa <handa@m17n.org>
16358
16359 * character.h (BYTE8_STRING): Fix typo.
16360
16361 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
16362 string to multibyte (sync to HEAD).
16363
16364 * casefiddle.c (casify_region): Handle changes in byte-length
16365 using replace_range_2 (sync to HEAD).
16366
163672008-02-01 Andreas Schwab <schwab@suse.de>
16368
16369 * chartab.c (map_char_table): GCPRO table and arg.
16370
163712008-02-01 Kenichi Handa <handa@m17n.org>
16372
16373 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
16374 already at limit.
16375
163762008-02-01 Kenichi Handa <handa@m17n.org>
16377
16378 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
16379 instead of fast_c_string_match_ignore_case.
16380 (find_font_encoding): Change argument to Lisp_Object. Use
16381 fast_string_match_ignore_case instead of
16382 fast_c_string_match_ignore_case. Change caller.
16383
163842008-02-01 Kenichi Handa <handa@m17n.org>
16385
16386 * xdisp.c (get_next_display_element): In unibyte case, decide to
16387 display in octal form by checking a character by
16388 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
16389
16390 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
16391
16392 * character.c (unibyte_has_multibyte_table): New variable.
16393
16394 * character.h (unibyte_has_multibyte_table): Extern it.
16395 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
16396
163972008-02-01 Kenichi Handa <handa@m17n.org>
16398
16399 * coding.c (encode_coding_iso_2022): Fix handling of charset
16400 annotation.
16401
164022008-02-01 Kenichi Handa <handa@m17n.org>
16403
16404 * coding.c (setup_coding_system): If coding_system is nil, use
16405 Qundecided.
16406 (Fterminal_coding_system): Return nil if terminal coding system is
16407 `undecided'.
16408 (syms_of_coding): Define coding-system `undecided' here. Setup
16409 terminal_coding as `undecided'.
16410
164112008-02-01 Kenichi Handa <handa@m17n.org>
16412
16413 * xdisp.c (message_dolog, set_message_1): Call
16414 unibyte_char_to_multibyte with arg type int.
16415
16416 * lread.c (read1): Fix reading of a char-table.
16417
16418 * print.c (print_object): Include sub char-table in circularities
16419 detection.
16420
164212008-02-01 Kenichi Handa <handa@m17n.org>
16422
16423 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
16424 Append the found sequences in car of ARGS instead of prepending.
16425
164262008-02-01 Kenichi Handa <handa@m17n.org>
16427
16428 * fileio.c (report_file_error): Make a unibyte string from
16429 strerror (errorno).
16430 (Fsubstitute_in_file_name): Fix the arg to
16431 unibyte_char_to_multibyte. It is evaluated twice.
16432
164332008-02-01 Kenichi Handa <handa@m17n.org>
16434
16435 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
16436
164372008-02-01 Kenichi Handa <handa@m17n.org>
16438
16439 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
16440 BOM is not found.
16441 (detect_coding, detect_coding_system): Optimization for ISO-2022
16442 when no 8-bit data is found.
16443
164442008-02-01 Jason Rumney <jasonr@gnu.org>
16445
16446 * w32fns.c (x_to_w32_font): Update to use new coding struct.
16447
164482008-02-01 Kenichi Handa <handa@m17n.org>
16449
16450 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
16451 CHARS.
16452
164532008-02-01 Steven Tamm <steventamm@mac.com>
16454
16455 * macterm.c (mac_encode_char): Add charset argument and update
16456 to use encoding_type.
16457 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
16458 switch to pure fontset.
16459 (decode_mac_font_name): Temporarily remove decoding.
16460 (x_font_name_to_mac_font_name): Temporarily remove encoding.
16461 (x_load_font): Temporarily remove encoding.
16462
164632008-02-01 Kenichi Handa <handa@m17n.org>
16464
16465 * xfaces.c (Fface_font): If frame is not on a window system,
16466 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
16467 refer to face->font.
16468 (split_font_name_into_vector, build_font_name_from_vector)
16469 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
16470 when HAVE_WINDOW_SYSTEM is defined.
16471
164722008-02-01 Kenichi Handa <handa@m17n.org>
16473
16474 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
16475 (x_produce_glyphs): Fix setting of members of cmp in case
16476 cmp->glyph_len is zero.
16477
16478 * fontset.c (Fset_fontset_font): Fix docstring.
16479 (Ffontset_info): Make it backward compatible. New arg ALL.
16480
164812008-02-01 Kim F. Storm <storm@cua.dk>
16482
16483 * process.c (read_process_output): Grow decoding_buf when needed;
16484 this could cause a crash in allocate_string and compact_small_strings.
16485
164862008-02-01 Kenichi Handa <handa@m17n.org>
16487
16488 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
16489
164902008-02-01 Kenichi Handa <handa@m17n.org>
16491
16492 * coding.c (setup_coding_system): Set coding->common_flags
16493 correctly for raw-text.
16494 (consume_chars): On encoding unibyte text by raw-text, don't check
16495 multibyte form.
16496 (encode_coding): On encoding by raw-text, never use translation tables.
16497
16498 * fileio.c (e_write): Short cut for the case of no encoding.
16499
165002008-02-01 Kenichi Handa <handa@m17n.org>
16501
16502 * coding.c (detect_coding, detect_coding_system): Delete unused
16503 variables.
16504
165052008-02-01 Kenichi Handa <handa@m17n.org>
16506
16507 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
16508 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
16509
165102008-02-01 Kenichi Handa <handa@m17n.org>
16511
16512 * coding.c (Ffind_coding_systems_region_internal): Include
16513 raw-text and no-conversion in the result.
16514
165152008-02-01 Kenichi Handa <handa@m17n.org>
16516
16517 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
16518 (load_font_get_repertory): Delete unnecessary check of ENCODING of
16519 FONT_DEF.
16520 (font_def_arg, add_arg, from_arg, to_arg): New args.
16521 (set_fontset_font): Change argument.
16522 (Fset_fontset_font): Fix for the case that TARGET is a script
16523 name and charset name.
16524 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
16525
165262008-02-01 Kenichi Handa <handa@m17n.org>
16527
16528 * fontset.c (fontset_font): Rename from fontset_face. Change return
16529 value.
16530 (face_suitable_for_char_p, face_for_char): Adjust for the change
16531 of fontset_font.
16532 (make_fontset_for_ascii_face): Fix setting of the fontset element
16533 for ASCII.
16534 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
16535 to get a font name.
16536 (Ffontset_info): Adjust for the change of fontset_font.
16537
16538 * coding.c (emacs_mule_char): Check invalid code more rigidly.
16539
16540 * character.h (LEADING_CODE_LATIN_1_MIN)
16541 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
16542
165432008-02-01 Kenichi Handa <handa@m17n.org>
16544
16545 * editfns.c (check_translation): New function.
16546 (Ftranslate_region_internal): Handle M:N mapping.
16547
165482008-02-01 Kenichi Handa <handa@m17n.org>
16549
16550 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
16551
165522008-02-01 Kenichi Handa <handa@m17n.org>
16553
16554 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
16555 goto invalid_code.
16556 (decode_coding_iso_2022): Fix handling of invalid designation.
16557
16558 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
16559 after calling code_conversion_save.
16560
165612008-02-01 Kenichi Handa <handa@m17n.org>
16562
16563 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
16564
16565 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
16566
16567 * fontset.c: Include "intervals.h".
16568 (fontset_face): Fix comparing of Lisp_Objects.
16569 (free_face_fontset, new_fontset_from_font_name): Fix
16570 Lisp_Object/int mixup.
16571
16572 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
16573
16574 * coding.c: Add many prototypes for static functions.
16575 (get_translation_table): Allow max_lookup to be NULL.
16576 (decode_coding, Ffind_coding_systems_region_internal)
16577 (Funencodable_char_position, Fcheck_coding_systems_region): Call
16578 get_translation_table with max_lookup NULL.
16579
165802008-02-01 Kenichi Handa <handa@m17n.org>
16581
16582 * coding.c (get_translation_table): Declare it as Lisp_Object.
16583 (LOOKUP_TRANSLATION_TABLE): New macro.
16584 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
16585 instead of CHAR_TABLE_REF.
16586
165872008-02-01 Kenichi Handa <handa@m17n.org>
16588
16589 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
16590 annotation data format.
16591 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
16592 Change arguments FROM and TO to single argument NCHARS. Change caller.
16593 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
16594 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16595 (decode_coding_ccl, decode_coding_charset): Pay attention to
16596 coding->charbuf_used.
16597 (get_translation): New function.
16598 (produce_chars): New arguments translation_table and last_block.
16599 Translate characters here. Return number of carryover chars.
16600 Change caller.
16601 (produce_composition): New argument pos. Change caller.
16602 Adjust for the change of annotation data format.
16603 (produce_charset, produce_annotation): Likewise.
16604 (decode_coding, encode_coding): Don't call translate_chars.
16605 (consume_chars): New arg translation_table. Change caller.
16606 (translate_chars): Delete.
16607 (syms_of_coding): Make translation-table's number of extra slots 2.
16608
166092008-02-01 Kenichi Handa <handa@m17n.org>
16610
16611 * search.c (simple_search): Fix setting this_pos_byte in backward
16612 search.
16613
16614 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
16615 byte sequence.
16616 (detect_coding_ccl): Fix setting of the variable valids.
16617
166182008-02-01 Kenichi Handa <handa@m17n.org>
16619
16620 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
16621
16622 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
16623
16624 * editfns.c (Ftranslate_region_internal): Rename from
16625 Ftranslate_region. Accept a char-table in TABLE.
16626 (syms_of_editfns): Defsubr Stranslate_region_internal.
16627
16628 * xfaces.c (set_lface_from_font_name): If a font is specified for
16629 a frame, generate a fontset from the font.
16630 (build_scalable_font_name): If the scalable font is requested for
16631 a specific size, don't change that size.
16632 (try_font_list): Try a scalable font also in the case that a
16633 pattern string is specified.
16634
166352008-02-01 Kenichi Handa <handa@m17n.org>
16636
16637 * xfaces.c (Fface_font): New optional arg CHARACTER.
16638
166392008-02-01 Kenichi Handa <handa@m17n.org>
16640
16641 * charset.h (CHARSET_OFFSET): New macro.
16642
166432008-02-01 Kenichi Handa <handa@m17n.org>
16644
16645 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
16646
16647 * fontset.c (fontset_face): Handle the case that repertory is a
16648 char-table.
16649 (find_font_encoding): Return nil for unknown encoding.
16650 (Fset_fontset_font): Ignore a font of unknown encoding.
16651
166522008-02-01 Kenichi Handa <handa@m17n.org>
16653
16654 * keymap.c (describe_vector): Handle default value of a char table.
16655
16656 * fontset.c (fontset_face): Handle fallback fonts correctly.
16657 (Ffontset_info): Return infomation about fallback fonts.
16658
166592008-02-01 Kenichi Handa <handa@m17n.org>
16660
16661 * fontset.c (FONTSET_DEFAULT): New macro.
16662 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16663 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16664 the case that it is nil.
16665 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16666 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16667
16668 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16669 subset or superset.
16670
166712008-02-01 Kenichi Handa <handa@m17n.org>
16672
16673 * emacs.c (main): Call init_charset after syms_of_XXX.
16674
16675 * charset.c (Vcharset_map_directory): Delete.
16676 (Vcharset_map_path): New variable.
16677 (load_charset_map_from_file): Use Vcharset_map_path instead.
16678 (init_charset): Initialize Vcharset_map_path.
16679 (syms_of_charset): Delete declaration of "charset-map-directory",
16680 add declaration of "charset-map-path".
16681
166822008-02-01 Kenichi Handa <handa@m17n.org>
16683
16684 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16685 ASCII only string.
16686
16687 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16688
16689 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16690 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16691
166922008-02-01 Kenichi Handa <handa@m17n.org>
16693
16694 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16695
16696 * coding.c (QCmnemonic, QCdefalut_char)
16697 (QCdecode_translation_table, QCencode_translation_table)
16698 (QCpost_read_conversion, QCpre_write_conversion): New variables.
16699 (get_translation_table): Return a list of translation tables if
16700 necessary.
16701 (decode_coding): Call get_translation_table with ENCODEP 0.
16702 (char_encodable_p): If translation_table is non-nil, always call
16703 translate_char.
16704 (Fdefine_coding_system_internal): Accept list of translation
16705 tables as :encode-translation-table and :decode-translation-table.
16706 (Fcoding_system_put): New function.
16707 (syms_of_coding): Declare new symbols. Defsubr
16708 Scoding_system_put.
16709 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16710 typically JISX0212.
16711
16712 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16713 when the charset is superset type.
16714
16715 * character.c (translate_char): Accept list of translation tables.
16716
167172008-02-01 Kenichi Handa <handa@m17n.org>
16718
16719 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16720 (CODING_ATTR_TRANS_TBL): New macro.
16721
16722 * coding.c (get_translation_table): New function.
16723 (translate_chars): Fix the bug of skipping annotation data.
16724 (decode_coding, encode_coding): Utilize get_translation_table.
16725 (char_encodable_p, Funencodable_char_position): Translate char if
16726 necessary.
16727 (Ffind_coding_systems_region_internal)
16728 (Fcheck_coding_systems_region): Setup translation table for encode
16729 in a coding system attribute vector in advance.
16730 (Fdefine_coding_system_internal): Allow a symbol as translation
16731 table. For shift-jis type coding system, allow 4th charset.
16732
167332008-02-01 Kenichi Handa <handa@m17n.org>
16734
16735 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16736
16737 * xdisp.c (get_next_display_element): Pass -1 as POS to
16738 FACE_FOR_CHAR if displaying a C-string.
16739
167402008-02-01 Kenichi Handa <handa@m17n.org>
16741
16742 * composite.c (get_composition_id): Handle xoff and yoff in a
16743 composition rule.
16744
16745 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16746 (struct composition): New member lbearing and rbearing.
16747
16748 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16749 (x_get_glyph_overhangs): Handle a composition glyph.
16750 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16751
16752 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16753 composition glyph.
16754
167552008-02-01 Kenichi Handa <handa@m17n.org>
16756
16757 * print.c: Include charset.h.
16758 (Vprint_charset_text_property): New variable.
16759 (Qdefault): Extern it.
16760 (PRINT_STRING_NON_CHARSET_FOUND)
16761 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16762 (print_check_string_result): New variable.
16763 (print_check_string_charset_prop): New function.
16764 (print_prune_charset_plist): New variable.
16765 (print_prune_string_charset): New function.
16766 (print_object): Call print_prune_string_charset if
16767 Vprint_charset_text_property is not t.
16768 (print_interval): Print nothing if interval->plist is nil.
16769 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16770 variable. Init and staticpro print_prune_charset_plist.
16771
167722008-02-01 Kenichi Handa <handa@m17n.org>
16773
16774 * fontset.c (new_fontset_from_font_name): Use the specified font
16775 for all characters in the new fontset.
16776
16777 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16778 OBJECT args.
16779
16780 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16781 OBJECT args for composition too.
16782
16783 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16784 OBJECT args.
16785
167862008-02-01 Kenichi Handa <handa@m17n.org>
16787
16788 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16789
16790 * fontset.c (reorder_font_vector): Adjust for the change of
16791 FONT_DEF format.
16792 (fontset_face): New arg id. Change caller.
16793 (face_for_char): New args pos and object.
16794 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16795 (fs_query_fontset): Check NAME by Fassoc too.
16796 (Fset_fontset_font): Allow non-XLFD font name.
16797 (Ffontset_info): Adjust for the change of FONT_DEF format.
16798
16799 * fontset.h (face_for_char): Adjust prototype.
16800
16801 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16802 (append_space, extend_face_to_end_of_line)
16803 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16804 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16805
16806 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16807 POS and OBJECT args.
16808
16809 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16810 POS and OBJECT args.
16811
168122008-02-01 Jason Rumney <jasonr@gnu.org>
16813
16814 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16815 of GlobalAlloc'ed memory.
16816
168172008-02-01 Kenichi Handa <handa@m17n.org>
16818
16819 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16820
16821 * charset.h (charset_table_used): Delete extern.
16822
16823 * charset.c (charset_table_used): Make it static.
16824 (map_charset_chars): Fix args to c_function with.
16825
16826 * chartab.c (map_sub_char_table_for_charset): Fix args to
16827 c_function with.
16828
16829 * coding.h (enum coding_result_code): Delete
16830 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16831
16832 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16833 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16834 (Vlast_code_conversion_error): New variables.
16835 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16836 (ONE_MORE_BYTE): Record error if any instead of signaling an
16837 error. If non-ASCII multibyte char is found, return the negative
16838 value of the code. All callers changed to check it.
16839 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16840 (record_conversion_result): New function. Change all codes setting
16841 coding->result to call this function.
16842 (detect_coding_utf_8, decode_coding_utf_8)
16843 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16844 Don't use the local variable incomplete.
16845 (emacs_mule_char): Change the second arg to `const'.
16846 (decode_coding): Fix of flushing out unprocessed data.
16847 (make_conversion_work_buffer): Fix making of a work buffer.
16848 (decode_coding_object): Return coding->dst_object.
16849
16850 * fontset.c (set_fontset_font): Fix args.
16851
16852 * lisp.h (CHARACTERBITS): Define as 22.
16853
16854 * process.c (send_process): Be sure to set coding->src_multibyte.
16855
16856 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16857
168582008-02-01 Kenichi Handa <handa@m17n.org>
16859
16860 * xdisp.c (handle_auto_composed_prop): Give limit to
16861 Fnext_single_char_property_change.
16862
168632008-02-01 Kenichi Handa <handa@m17n.org>
16864
16865 * composite.c (syms_of_composite): Don't make the composition hash
16866 table weak.
16867
16868 * fontset.c (Fset_fontset_font): Fix docstring.
16869
16870 * lisp.h (detect_coding_system): Adjust prototype.
16871
16872 * fileio.c (kill_workbuf_unwind): Delete this function.
16873 (Finsert_file_contents): Adjust the call of detect_coding_system.
16874 Get conversion_buffer by code_conversion_save. Use the macro
16875 CODING_MAY_REQUIRE_DECODING. After decoding, update
16876 coding_system.
16877
16878 * coding.h (make_conversion_work_buffer): Delete extern.
16879 (code_conversion_save): Extern it.
16880
16881 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16882 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16883 (decode_coding_utf_8): Don't do eol converion.
16884 (detect_coding_utf_16): Check coding->src_chars, not
16885 coding->src_bytes. Add heuristics for those that have no signature.
16886 (decode_coding_emacs_mule, decode_coding_iso_2022)
16887 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16888 Don't do eol converion.
16889 (adjust_coding_eol_type): Return a new coding system.
16890 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16891 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16892 each change.
16893 (decode_coding): Pay attention to undo_list. Do eol conversion for
16894 all types of coding-systems (if necessary).
16895 (Vcode_conversion_work_buf_list): Delete it.
16896 (Vcode_conversion_reused_workbuf): Rename from
16897 Vcode_conversion_reused_work_buf.
16898 (Vcode_conversion_workbuf_name): New variable.
16899 (reused_workbuf_in_use): New variable.
16900 (make_conversion_work_buffer): Delete the arg DEPTH.
16901 (code_conversion_restore): Change argument to cons.
16902 (code_conversion_save): Delete the argument BUFFER. Change callers.
16903 (detect_coding_system): New argument src_chars. Change callers.
16904 Fix for utf-16 detection.
16905 (init_coding_once): Don't use ISO_carriage_return.
16906 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16907 reused_workbuf_in_use.
16908
169092008-02-01 Kenichi Handa <handa@m17n.org>
16910
16911 * keymap.c (store_in_keymap): Pay attention to the case that idx
16912 is a cons specifying a character range.
16913
169142008-02-01 Kenichi Handa <handa@m17n.org>
16915
16916 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16917 HANDLED_RECOMPUTE_PROPS.
16918
16919 * coding.c (Fdefine_coding_system_internal): Fix checking of
16920 ascii compatibility.
16921
169222008-02-01 Kenichi Handa <handa@m17n.org>
16923
16924 * charset.c (find_charsets_in_text): Delete unused locale variable.
16925 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16926
16927 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16928 Resync charset_list to Vemacs_mule_charset_list.
16929
16930 * keymap.c (store_in_keymap): Pay attention to the case that idx
16931 is a cons specifying a character range.
16932
169332008-02-01 Kenichi Handa <handa@m17n.org>
16934
16935 * composite.c (update_compositions): Bind inhibit-read-only, etc
16936 to t before calling remove-list-of-text-properties.
16937
16938 * print.c (print_object): Always print ASCII chars as is.
16939
169402008-02-01 Kenichi Handa <handa@m17n.org>
16941
16942 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16943
16944 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16945 is a char table.
16946
169472008-02-01 Kenichi Handa <handa@m17n.org>
16948
16949 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16950
169512008-02-01 Kenichi Handa <handa@m17n.org>
16952
16953 * xfaces.c (set_lface_from_font_name): Fix for the case that
16954 FONTNAME is not fontset name.
16955
169562008-02-01 Kenichi Handa <handa@m17n.org>
16957
16958 * fns.c (base64_encode_1): Fix previous change.
16959
169602008-02-01 Kenichi Handa <handa@m17n.org>
16961
16962 * fontset.c (set_fontset_font): New function.
16963 (Fset_fontset_font): If a font is specified for a charset, use
16964 map_charset_chars to store the font spec in a fontset.
16965
169662008-02-01 Kenichi Handa <handa@m17n.org>
16967
16968 * fontset.c (fontset_face): Create a fallback fontset on demand.
16969 (make_fontset): Don't create a fallback fontset here.
16970 (free_face_fontset): Free a fallback fontset (if any) too.
16971 (n_auto_fontsets): Delete this variable.
16972 (auto_fontset_alist): New variable.
16973 (new_fontset_from_font_name): Check auto_fontset_alist.
16974 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16975 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16976 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16977 Defsubr Sfontset_list_all.
16978
169792008-02-01 Kenichi Handa <handa@m17n.org>
16980
16981 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16982
169832008-02-01 Kenichi Handa <handa@m17n.org>
16984
16985 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16986
169872008-02-01 Kenichi Handa <handa@m17n.org>
16988
16989 * editfns.c (Fgoto_char): Fix docstring.
16990
169912008-02-01 Kenichi Handa <handa@m17n.org>
16992
16993 * insdel.c (insert_from_gap): Adjust intervals correctly.
16994
169952008-02-01 Jason Rumney <jasonr@gnu.org>
16996
16997 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16998 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16999 (w32_initialize): Try to load it.
17000 (x_get_font_repertory): Use it if available.
17001 (w32_encode_char): Add shortcut for unicode output.
17002
17003 * w32fns.c (w32_load_system_font): Default charset to -1.
17004 (x_to_w32_charset): Match all fonts for unicode.
17005 (w32_to_x_charset): New parameter matching. Don't return partial
17006 or wildcard charsets.
17007 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
17008 (w32_codepage_for_font): Return CP_UNICODE for unicode.
17009 (w32_to_x_font): Match charset to real charset.
17010 (enum_font_cb2): Always list unicode versions.
17011
17012 * makefile.w32-in (temacs): Increase EMHEAP.
17013
170142008-02-01 Jason Rumney <jasonr@gnu.org>
17015
17016 * w32term.c (w32_encode_char): New charset parameter.
17017 font_info.encoding becomes encoding_type.
17018 (x_get_font_repertory): New function. Warning: stub only!
17019 (x_new_font): Return quickly if font already set.
17020 (x_new_fontset): fontsetname parameter is Lisp_Object.
17021 Use new fs_query_fontset. Try new_fontset_from_font_name.
17022 Use fontset_name for return value.
17023
17024 * w32term.h: Declare x_get_font_repertory.
17025
17026 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
17027 place of find_charset_in_text. Use encode_coding_object in place
17028 of encode_coding.
17029 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
17030 decode_coding.
17031
17032 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
17033 of x_new_fontset.
17034 (w32_load_system_font): Initialize charset as unicode.
17035 font_info.encoding becomes encoding_type.
17036 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
17037 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
17038 (syms_of_w32fns): Set get_font_repertory_func.
17039
17040 * w32console.c: Include character.h. Use terminal_encode_buffer
17041 from term.c.
17042 (write_glyphs): Use new version of encode_terminal_code. Use
17043 encode_coding_object in place of encode_coding.
17044
17045 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
17046 encoding becomes encoding_type.
17047
17048 * term.c (terminal_encode_buffer): Make externally visible.
17049
17050 * makefile.w32-in: Add character.h dependancies.
17051 (character.o, chartab.o): New targets.
17052
170532008-02-01 Kenichi Handa <handa@m17n.org>
17054
17055 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
17056 CODING_ID_EOL_TYPE.
17057
170582008-02-01 Andreas Schwab <schwab@suse.de>
17059
17060 * coding.c (produce_chars): Revert last change.
17061
170622008-02-01 Kenichi Handa <handa@m17n.org>
17063
17064 * charset.h (charset_unicode): Extern it.
17065
17066 * charset.c (string_xstring_p): Check by (C >= 0x100).
17067 (find_charsets_in_text): Change format of the arc CHARSETS. New
17068 arg MULTIBYTE.
17069 (Ffind_charset_region, Ffind_charset_string): Adjust for the
17070 change of find_charsets_in_text.
17071 (Fsplit_char): Fix doc. Never return unknown.
17072
17073 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
17074
17075 * coding.c (Fdefine_coding_system_alias): Update
17076 Vcoding_system_list.
17077
17078 * fontset.c (load_font_get_repertory): Pay attention to the case
17079 that ENCODING of a font is specified by a char-table.
17080
17081 * xterm.c (x_get_font_repertory): Handle the case that the
17082 encoding of font is other than Unicode.
17083
170842008-02-01 Kenichi Handa <handa@m17n.org>
17085
17086 * term.c (encode_terminal_code): Don't handle glyph-table. Check
17087 if a character is encodable by the terminal coding system. If
17088 not, produces proper number of `?'s. Update
17089 terminal_encode_buffer and terminal_encode_buf_size if necessary.
17090 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
17091
170922008-02-01 Kenichi Handa <handa@m17n.org>
17093
17094 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
17095 variables.
17096 (encode_terminal_code): Change argument. Encode multiple
17097 characters at once. Store the result of encoding in
17098 terminal_encode_buffer.
17099 (write_glyphs, insert_glyphs): Adjust for the change of
17100 encode_terminal_code.
17101 (term_init): Initialize terminal_encode_buffer and
17102 terminal_encode_buf_size.
17103
17104 * coding.c (consume_chars): If coding->src_object is nil, don't
17105 check annotation.
17106
171072008-02-01 Kenichi Handa <handa@m17n.org>
17108
17109 * character.c (char_string): Use ASCII_CHAR_P instead of
17110 SINGLE_BYTE_CHAR_P.
17111
171122008-02-01 Kenichi Handa <handa@m17n.org>
17113
17114 * xdisp.c (handle_auto_composed_prop): Check if the last
17115 characters of auto-composed region is newly composed with the
17116 following characters.
17117 (handle_composition_prop): Fix checking of point being inside
17118 composition.
17119
171202008-02-01 Kenichi Handa <handa@m17n.org>
17121
17122 * fns.c (concat): Don't change multibyteness of the result by
17123 concatenating an 8-bit character.
17124
17125 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
17126 multibyteness of the result when newelt is an 8-bit character.
17127
171282008-02-01 Dave Love <fx@gnu.org>
17129
17130 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
17131 EMACS_INT.
17132
17133 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
17134
17135 * xfaces.c (face_numeric_value): Declare dim size_t.
17136 (Finternal_lisp_face_equal_p): Remove unused f.
17137
17138 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
17139 (MATRIX_ROW): Remove unused vars.
17140 (draw_glyphs, x_insert_glyphs, fast_find_position)
17141 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
17142 byte/char counts.
17143
17144 * regex.c (regex_compile): Remove unused var.
17145
17146 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17147
17148 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
17149 (Faccessible_keymaps, where_is_internal): Remove unused vars.
17150
17151 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
17152
17153 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
17154
17155 * fileio.c (Fwrite_region): Remove unused var.
17156
17157 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
17158 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
17159
17160 * composite.c (Fremove_list_of_text_properties): Declare.
17161
17162 * coding.c (inhibit_pre_post_conversion): Remove (unused).
17163 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
17164 (coding_inherit_eol_type): Remove unused attrs.
17165 (detect_coding): Cast arg of detect_eol.
17166
17167 * charset.c (syms_of_charset): Remove unused var p.
17168 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
17169 byte/char counts.
17170
17171 * casetab.c (set_case_table): Remove unused var.
17172
17173 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
17174 unused vars.
17175
171762008-02-01 Dave Love <fx@gnu.org>
17177
17178 * xterm.c (x_bitmap_mask): Declare.
17179
171802008-02-01 Dave Love <fx@gnu.org>
17181
17182 * xterm.c (x_term_init): Fix type error.
17183
17184 * lisp.h: Add Funibyte_char_to_multibyte.
17185
17186 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
17187 (Fset_coding_system_priority): Doc fix.
17188
17189 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
17190
17191 * indent.c (check_composition): Make start and end EMACS_INT.
17192
17193 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
17194
17195 * xdisp.c (handle_composition_prop, check_point_in_composition):
17196 Make buffer positions EMACS_INT.
17197
17198 * composite.c (find_composition, run_composition_function)
17199 (update_compositions, Ffind_composition_internal): Make buffer
17200 positions EMACS_INT.
17201
17202 * composite.h (find_composition, update_compositions): Make
17203 position args EMACS_INT.
17204
17205 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
17206
17207 * intervals.c (get_property_and_range):
17208 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
17209
17210 * unexalpha.c: Don't include varargs.h.
17211
172122008-02-01 Dave Love <fx@gnu.org>
17213
17214 * coding.h (ENCODE_UTF_8): New.
17215
17216 * Makefile.in (gtkutil.o): Depend on coding.h.
17217
17218 * coding.c (Fset_coding_system_priority): Doc fix.
17219
172202008-02-01 Kenichi Handa <handa@m17n.org>
17221
17222 * fileio.c (Finsert_file_contents): Call setup_coding_system in
17223 the case of auto saving.
17224
172252008-02-01 Andreas Schwab <schwab@suse.de>
17226
17227 * chartab.c (map_char_table, map_char_table_for_charset): Protect
17228 `range' from GC.
17229
172302008-02-01 Kenichi Handa <handa@m17n.org>
17231
17232 * coding.c (decode_coding_sjis): Check bytes more rigidly.
17233
172342008-02-01 Kenichi Handa <handa@m17n.org>
17235
17236 * fileio.c (choose_write_coding_system): Return a decided coding system.
17237 (Fwrite_region): Set Vlast_coding_system_used to the return value
17238 of choose_write_coding_system.
17239
172402008-02-01 Kenichi Handa <handa@m17n.org>
17241
17242 * charset.c (Fset_charset_priority): Pay attention to duplicated
17243 arguments.
17244
17245 * coding.c (QCcategory): New variable.
17246 (syms_of_coding): Defsym it. Set all elements of
17247 Vcoding_category_table and their symbol values.
17248 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
17249 coding-category-XXX, and coding-category-list.
17250 (Fdefine_coding_system_internal): Add category in the plist.
17251
172522008-02-01 Kenichi Handa <handa@m17n.org>
17253
17254 * callproc.c (Fcall_process): Handle carryover correctly.
17255
17256 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
17257 (raw_text_coding_system): Check NILP (coding_system).
17258 (coding_inherit_eol_type): Check NILP (coding_system) and
17259 NILP (parent).
17260 (consume_chars): Fix for the case of raw-text.
17261
17262 * process.c (read_process_output): Handle carryover correctly.
17263
172642008-02-01 Dave Love <fx@gnu.org>
17265
17266 * regex.c (re_search_2): Fix last change.
17267
172682008-02-01 Kenichi Handa <handa@m17n.org>
17269
17270 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
17271 target_multibyte. Even in a unibyte case, return a converted
17272 multibyte char.
17273 (GET_CHAR_AFTER): New macro.
17274 (PATFETCH): Translate via multibyte char.
17275 (HANDLE_UNIBYTE_RANGE): Delete this macro.
17276 (SETUP_MULTIBYTE_RANGE): New macro.
17277 (regex_compile): Setup compiled code so that its multibyteness
17278 matches that of a target. Fix the handling of "[X-YZ]" using
17279 SETUP_MULTIBYTE_RANGE.
17280 (analyse_first) <charset>: For filling fastmap for all multibyte
17281 characters, don't check by BASE_LEADING_CODE_P.
17282 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
17283 the same as RE_MULTIBYTE_P (bufp) now.
17284 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
17285 (TARGET_CHAR_AND_LENGTH): Delete this macro.
17286 (TRANSLATE_VIA_MULTIBYTE): New macro.
17287 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
17288 It is the same as RE_MULTIBYTE_P (bufp) now.
17289 <exactn>: Translate via multibyte.
17290 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
17291 translate it.
17292 <charset, charset_not>: Fetch a character by
17293 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
17294 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
17295 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
17296 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
17297 by GET_CHAR_AFTER.
17298 (bcmp_translate): Likewise.
17299
17300 * search.c (compile_pattern): Check the member target_multibyte,
17301 not the member multibyte of buf.
17302
17303 * lread.c (read1): While reading a string, set force_singlebyte
17304 and force_multibyte correctly.
17305
17306 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
17307 up of unibyte_to_multibyte_table.
17308
173092008-02-01 Kenichi Handa <handa@m17n.org>
17310
17311 * coding.c (setup_coding_system): If coding has
17312 post-read-conversion or pre-write-conversion, set
17313 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
17314 respectively.
17315 (decode_coding_gap): Run post-read-conversion if any.
17316
17317 * fileio.c (Finsert_file_contents): Even if we read into a
17318 unibyte buffer, check if we must decode the result or not.
17319
173202008-02-01 Kenichi Handa <handa@m17n.org>
17321
17322 * coding.c (make_conversion_work_buffer): Change the work buffer
17323 name to the same one as that of Emacs 21.
17324
173252008-02-01 Kenichi Handa <handa@m17n.org>
17326
17327 * coding.h (make_conversion_work_buffer): Adjust prototype.
17328 (code_conversion_restore): Don't extern it.
17329
17330 * coding.c (detected_mask): Delete unused variable.
17331 (decode_coding_iso_2022): Pay attention to the byte sequence of
17332 CTEXT extended segment, and retain those bytes as is.
17333 (decode_coding_ccl): Delete unused variable `valids'.
17334 (setup_coding_system): Delete unused variable `category'.
17335 (consume_chars): Delete unused variable `category'. Make it work
17336 for non-multibyte case.
17337 (make_conversion_work_buffer): Change argument.
17338 (saved_coding): Delete unused variable.
17339 (code_conversion_restore): Don't check saved_coding->destination.
17340 (code_conversion_save): New function.
17341 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
17342 instead of record_unwind_protect.
17343 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
17344 (detect_coding_system): Delete unused variable `mask'.
17345 (Fdefine_coding_system_internal): Delete unused variable id.
17346
17347 * fileio.c (kill_workbuf_unwind): New function.
17348 (Finsert_file_contents): On replacing, call
17349 make_conversion_work_buffer with correct args, and call
17350 record_unwind_protect with the first arg kill_workbuf_unwind.
17351
17352 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
17353
173542008-02-01 Kenichi Handa <handa@m17n.org>
17355
17356 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
17357 (fontset_add): Fix for the case that TO is less than TO1.
17358 (Ffontset_info): Don't use fallback fontset on checking the
17359 default fontset.
17360 (dump_fontset): New function for debugging.
17361
17362 * coding.c (Fdefine_coding_system_internal): Fix for the case that
17363 coding_type is Qcharset.
17364
173652008-02-01 Kenichi Handa <handa@m17n.org>
17366
17367 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
17368 (map_char_table): Don't inherit the value from the parent on
17369 initializing VAL. Adjust for the above change.
17370
173712008-02-01 Kenichi Handa <handa@m17n.org>
17372
17373 * coding.c (Qsignature, Qendian): Delete these variables.
17374 (syms_of_coding): Don't initialize them.
17375 (CATEGORY_MASK_UTF_16_AUTO): New macro.
17376 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
17377 detect_info->found.
17378 (decode_coding_utf_16): Don't detect BOM here.
17379 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
17380 is NOT utf_16_without_bom.
17381 (setup_coding_system): For a coding system of type utf-16, check
17382 if the attribute :endian is Qbig or not (not nil or not), and set
17383 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
17384 (detect_coding): If coding type is utf-16 and BOM detection is
17385 required, detect it.
17386 (Fdefine_coding_system_internal): For a coding system of type
17387 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
17388
173892008-02-01 Kenichi Handa <handa@m17n.org>
17390
17391 * coding.c (coding_set_source): Fix for the case that the current
17392 buffer is different from coding->src_object.
17393 (decode_coding_object): Don't use the conversion work buffer if
17394 DST_OBJECT is a buffer.
17395
173962008-02-01 Dave Love <fx@gnu.org>
17397
17398 * lread.c (read_emacs_mule_char) [len==2]: Index
17399 emacs_mule_charset correctly.
17400
174012008-02-01 Dave Love <fx@gnu.org>
17402
17403 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
17404 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
17405 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
17406 treated specially.)
17407 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
17408 (detected_mask): Remove Big5 bits.
17409
174102008-02-01 Kenichi Handa <handa@m17n.org>
17411
17412 The following changes are to make the font rescaling facility
17413 compatible with Emacs 21.
17414
17415 * xfaces.c (Vface_font_rescale_alist): Rename from
17416 Vface_resizing_fonts.
17417 (struct font_name): Rename member resizing_ratio to rescale_ratio.
17418 (font_rescale_ratio): Rename from font_resizing_ratio.
17419 (split_font_name): Set font->rescale_ratio.
17420 (better_font_p): Pay attention to font->rescale_ratio.
17421 (build_scalable_font_name): Likewise. Change RESX, and RESY
17422 fields.
17423 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
17424
174252008-02-01 Kenichi Handa <handa@m17n.org>
17426
17427 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
17428 (Qutf_16_le): Remove these variables.
17429 (syms_of_coding): Don't DEFSYM them.
17430 (decode_coding_utf_16): Fix handling of BOM.
17431 (encode_coding_utf_16): Fix handling of BOM.
17432
174332008-02-01 Kenichi Handa <handa@m17n.org>
17434
17435 * fileio.c (Finsert_file_contents): On replacing, before decoding
17436 the file into the work buffer, set point of the work buffer to the end.
17437
174382008-02-01 Dave Love <fx@gnu.org>
17439
17440 * coding.c (Fcheck_coding_systems_region): Fix type errors.
17441
174422008-02-01 Dave Love <fx@gnu.org>
17443
17444 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17445 and fix C types.
17446
174472008-02-01 Kenichi Handa <handa@m17n.org>
17448
17449 * xdisp.c (SKIP_GLYPHS): New macro.
17450 (set_cursor_from_row): Pay attention to string display properties.
17451
17452 * category.c (copy_category_entry): Fix for the case that RANGE
17453 is an integer.
17454
17455 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
17456
17457 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
17458
174592008-02-01 Kenichi Handa <handa@m17n.org>
17460
17461 * charset.c (Fcharset_id_internal): New function.
17462 (syms_of_charset): Defsubr it.
17463
17464 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
17465 with the last arg charset_list acquired from coding.
17466 (Fdefine_coding_system_internal): For ccl-based coding system, fix
17467 the attribute coding_attr_ccl_valids.
17468
17469 * coding.h (enum define_coding_ccl_arg_index): Set the first
17470 member coding_arg_ccl_decoder to coding_arg_max.
17471
17472 * ccl.h (ccl_driver): Adjust prototype.
17473
17474 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
17475 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 17476 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
17477 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
17478 last arg Qnil.
17479
174802008-02-01 Kenichi Handa <handa@m17n.org>
17481
17482 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
17483 call encode_char.
17484
17485 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
17486
174872008-02-01 Dave Love <fx@gnu.org>
17488
17489 * composite.c (syms_of_composite): Make composition_hash_table weak.
17490
174912008-02-01 Kenichi Handa <handa@m17n.org>
17492
17493 * dispextern.h (check_face_attributes, generate_ascii_font_name)
17494 (font_name_registry): Don't extern them.
17495 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
17496
17497 * fontset.h (Qfontset): Don't extern it.
17498 (new_fontset_from_font_name): Extern it.
17499
17500 * fontset.c: Give 8 extra slots to fontset objects.
17501 (Qfontset_info): New variable.
17502 (syms_of_fontset): Defsym it.
17503 (FONTSET_FALLBACK): New macro.
17504 (fontset_face): Try also the default fontset.
17505 (make_fontset): Realize a fallback fontset from the default fontset.
17506 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
17507 using split_font_name_into_vector and build_font_name_from_vector.
17508 (Fset_fontset_font): Access the elements of font_spec by enum
17509 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
17510 name by using split_font_name_into_vector.
17511 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
17512 generate a proper font name from the fontset name. Update
17513 Vfontset_alias_alist.
17514 (n_auto_fontsets): New variable.
17515 (new_fontset_from_font_name): New function.
17516 (Ffont_info): Store the information about fonts generated from the
17517 default fontset in the first extra slot of the returned char-table.
17518
17519 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
17520 (font_name_registry): Delete function.
17521 (split_font_name_into_vector): New function.
17522 (build_font_name_from_vector): New function.
17523 (font_list): The argument REGISTRY is now a list of registry names.
17524 (choose_face_font): If we are choosing an ASCII font, and ATTRS
17525 specifies an explicit font name, return the name as is. Make a
17526 list of registy names.
17527
17528 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
17529 of x_new_fontset.
17530 (Fx_create_frame): Don't call x_new_fontset here. Just use
17531 x_list_fonts to check the existence of fonts.
17532
17533 * xterm.h (x_new_fontset): Adjust prototype.
17534
17535 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
17536 string. Use new_fontset_from_font_name to create a fontset from a
17537 font name.
17538
175392008-02-01 Kenichi Handa <handa@m17n.org>
17540
17541 * syntax.c (Vfind_word_boundary_function_table): New name for
17542 Vnext_word_boundary_function_table.
17543 (find-word-boundary-function-table): New name for
17544 next-word-boundary-function-table.
17545
175462008-02-01 Dave Love <fx@gnu.org>
17547
17548 * Makefile.in: Fix some dependencies.
17549
17550 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
17551 set it to nil before returning.
17552
17553 * composite.c (update_compositions): Fix type error.
17554
17555 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
17556
175572008-02-01 Kenichi Handa <handa@m17n.org>
17558
17559 * xterm.c (x_new_font): Optimize for the case that the font is
17560 already set for the frame.
17561
175622008-02-01 Kenichi Handa <handa@m17n.org>
17563
17564 * chartab.c (char_table_ascii): Check if the char table contents
17565 is sub-char-table or not.
17566 (char_table_set, char_table_set_range): Fix argument to
17567 char_table_ascii.
17568
17569 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
17570 (detect_coding_utf_8, detect_coding_utf_16)
17571 (detect_coding_emacs_mule, detect_coding_iso_2022)
17572 (detect_coding_sjis, detect_coding_big5)
17573 (detect_coding_ccl, detect_coding_charset): Change argument MASK
17574 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
17575 sequence is valid in this coding system. Change callers.
17576 (MAX_ANNOTATION_LENGTH): New macro.
17577 (ADD_ANNOTATION_DATA): New macro.
17578 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
17579 ADD_ANNOTATION_DATA. Change the format of annotation data.
17580 (ADD_CHARSET_DATA): New macro.
17581 (emacs_mule_char): New argument ID. Change callers.
17582 (decode_coding_emacs_mule, decode_coding_iso_2022)
17583 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17584 Produce charset annotation data in coding->charbuf.
17585 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
17586 to charset annotation data in coding->charbuf.
17587 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
17588 coding->common_flags if the coding system is iso-2022 based and
17589 uses designation.
17590 (produce_composition): Adjust for the new annotation data format.
17591 (produce_charset): New function.
17592 (produce_annotation): Handle charset annotation.
17593 (handle_composition_annotation, handle_charset_annotation): New
17594 functions.
17595 (consume_chars): Handle charset annotation. Utilize the above two
17596 functions.
17597 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
17598 buffer, get the deleted text as a string and set
17599 coding->src_object to that string.
17600 (detect_coding, detect_coding_system): Use the new struct
17601 coding_detection_info.
17602
17603 * coding.h (struct coding_detection_info): New structure.
17604 (struct coding_system): Adjust prototype of the member `detector'.
17605 (CODING_ANNOTATE_CHARSET_MASK): New macro.
17606
176072008-02-01 Kenichi Handa <handa@m17n.org>
17608
17609 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
17610
176112008-02-01 Dave Love <fx@gnu.org>
17612
17613 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
17614 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
17615 to new local and nullify apropos_accumulate before returning.
17616 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
17617
176182008-02-01 Kenichi Handa <handa@m17n.org>
17619
17620 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
17621 correctly.
e3eea1fc 17622
aac0c6e3
MR
176232008-02-01 Dave Love <fx@gnu.org>
17624
17625 * fns.c (Flanginfo): Call synchronize_system_time_locale.
17626
176272008-02-01 Kenichi Handa <handa@m17n.org>
17628
17629 The following changes are to make character composition happen
17630 automatically on displaying.
17631
17632 * Makefile.in (lisp, shortlisp): Add composite.elc.
17633
17634 * composite.h (Qauto_composed, Vauto_composition_function)
17635 (Qauto_composition_function): Extern them.
17636
17637 * composite.c (Vcomposition_function_table)
17638 (Qcomposition_function_table): Delete variables.
17639 (Qauto_composed, Vauto_composition_function)
17640 (Qauto_composition_function): New variables.
17641 (run_composition_function): Don't call
17642 compose-chars-after-function.
17643 (update_compositions): Clear `auto-composed' text property.
17644 (compose_chars_in_text): Delete this function.
17645 (syms_of_composite): Staticpro Qauto_composed and
17646 Qauto_composition_function. Declare Vauto_composition_function as
17647 a Lisp variable.
17648
17649 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
17650
17651 * xdisp.c (it_props): Add an entry for Qauto_composed.
17652 (handle_auto_composed_prop): New function.
17653
17654 * xselect.c (selection_data_to_lisp_data): Don't call
17655 compose_chars_in_text.
17656
176572008-02-01 Dave Love <fx@gnu.org>
17658
17659 * keyboard.c (read_char): Modify checking around use of
17660 Vkeyboard_translate_table.
17661
17662 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17663 and fix C types.
17664
176652008-02-01 Kenichi Handa <handa@m17n.org>
17666
17667 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17668 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17669 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17670 the case that the last byte is '\r' correctly.
17671 (decode_coding): Flush out the unprocessed data correctly.
17672 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17673
176742008-02-01 Dave Love <fx@gnu.org>
17675
17676 * xterm.c (XTread_socket): Fix changes for defined keysyms.
17677 Add XK_ISO... case.
17678 (xaw_scroll_callback): Revert last change.
17679
176802008-02-01 Kenichi Handa <handa@m17n.org>
17681
17682 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17683
176842008-02-01 Kenichi Handa <handa@m17n.org>
17685
17686 * xfaces.c (Vface_resizing_fonts): New variable.
17687 (struct font_name): New member `resizing_ratio'.
17688 (font_resizing_ratio): New function.
17689 (split_font_name): Set font->resizing_ratio.
17690 (better_font_p): Pay attention to font->resizing_ratio.
17691 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
17692 RESX, and RESY fields.
17693 (try_alternative_families): Try scalable fonts if
17694 Vscalable_fonts_allowed is not Qt.
17695 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17696
176972008-02-01 Dave Love <fx@gnu.org>
17698
17699 * xterm.c (xaw_scroll_callback): Cast correctly.
17700
177012008-02-01 Dave Love <fx@gnu.org>
17702
17703 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
17704 (lispy_kana_keys): Comment out.
17705 (make_lispy_event) [XK_kana_A]: Comment out.
17706
17707 * xterm.c (xaw_scroll_callback): Cast call_data.
17708 (XTread_socket): Deal with ASCII keysyms.
17709 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17710
177112008-02-01 Dave Love <fx@gnu.org>
17712
17713 * xterm.c (Vx_keysym_table): New.
17714 (syms_of_xterm): Initialize it.
17715 (XTread_socket): Use it.
17716 From head: Eliminate incorrect optimization that tried to avoid
17717 decoding the output of X*LookupString.
17718 (x_get_font_repertory): Delete charset declaration.
17719
177202008-02-01 Kenichi Handa <handa@m17n.org>
17721
17722 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17723 return 0.
17724 (Fdefine_coding_system_internal): Setup
17725 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17726
177272008-02-01 Dave Love <fx@gnu.org>
17728
17729 * coding.c (Fcheck_coding_system): Doc fix.
17730
17731 * editfns.c (Finsert_byte): Return a proper value.
17732
177332008-02-01 Kenichi Handa <handa@m17n.org>
17734
17735 * coding.c (decode_coding): Fix args to translate_chars. Pay
17736 attention to Vstandard_translation_table_for_decode.
17737 (encode_coding): Fix args to translate_chars. Pay attention to
17738 Vstandard_translation_table_for_encode.
17739
17740 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17741 SINGLE_BYTE_CHAR_P.
17742
17743 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17744 not by SINGLE_BYTE_CHAR_P.
17745
17746 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17747 SINGLE_BYTE_CHAR_P.
17748
17749 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17750 SINGLE_BYTE_CHAR_P.
17751
17752 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17753 by SINGLE_BYTE_CHAR_P.
17754
17755 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17756 SINGLE_BYTE_CHAR_P.
17757
177582008-02-01 Dave Love <fx@gnu.org>
17759
17760 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17761
177622008-02-01 Dave Love <fx@gnu.org>
17763
17764 * fns.c (Flanginfo): Fix typo.
17765
17766 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17767
177682008-02-01 Kenichi Handa <handa@m17n.org>
17769
17770 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17771 (detect_coding_emacs_mule, detect_coding_iso_2022)
17772 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17773 incomplete byte sequence. Don't update *mask when correctly detected.
17774 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17775 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17776 (detect_coding, detect_coding_system): Adjust for the changes above.
17777
177782008-02-01 Kenichi Handa <handa@m17n.org>
17779
17780 * character.c (char_string): Rename from
17781 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17782 (string_char): Rename from string_char.
17783
17784 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17785 if C is greater than MAX_3_BYTE_CHAR.
17786 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17787 string_char instead of string_char_with_unification.
17788
177892008-02-01 Dave Love <fx@gnu.org>
17790
17791 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17792
177932008-02-01 Kenichi Handa <handa@m17n.org>
17794
17795 * keymap.c (push_key_description): Pay attention to force_multibyte.
17796
17797 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17798
177992008-02-01 Dave Love <fx@gnu.org>
17800
17801 * charset.c (define_charset_internal): Rename `supprementary'.
17802
17803 * Makefile.in (lisp, shortlisp): Remove latin-N.
17804
178052008-02-01 Dave Love <fx@gnu.org>
17806
17807 * xfns.c (x_window, x_window): Use use_xim.
17808
17809 * xterm.c (use_xim): Initialize.
17810 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17811 (x_term_init): Maybe set use_xim.
17812
17813 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17814
178152008-02-01 Kenichi Handa <handa@m17n.org>
17816
17817 * search.c (search_buffer): Fix case-fold-search of multibyte
17818 characters.
17819 (boyer_moore): Rename the last argument to char_high_bits.
17820
178212008-02-01 Kenichi Handa <handa@m17n.org>
17822
17823 * xdisp.c (display_string): Fix for the case of zero width glyph.
17824
17825 * xfns.c (x_set_font): Change the error message of the case that
17826 x_new_fontset returns Qt.
17827
17828 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17829 (Finternal_set_lisp_face_attribute): Use signal_error for the
17830 error of invalid fontset.
17831
17832 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17833 fontset, return Qt.
17834
178352008-02-01 Dave Love <fx@gnu.org>
17836
17837 * unexelf.c (unexec): Make .got handling not SGI-specific.
17838
17839 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17840
17841 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17842
17843 * keyboard.c (read_key_sequence): Fix type error.
17844
17845 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17846 type error.
17847
17848 * fontset.c (fontset_add): Return Lisp_Object.
17849
178502008-02-01 Dave Love <fx@gnu.org>
17851
17852 * charset.h (charset_ordered_list_tick): Declare extern.
17853
178542008-02-01 Kenichi Handa <handa@m17n.org>
17855
17856 The following changes (and some of 2008-02-01 changes of mine) are
17857 for handling syntax, category, and case conversion for unibyte
17858 characters by converting them to multibyte on the fly. With these
17859 changes, we don't have to setup syntax and case tables for unibyte
17860 characters in each language environment.
17861
17862 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17863 multibyte if necessary.
17864
17865 * bytecode.c (Fbyte_code): Likewise.
17866
17867 * character.h (LEADING_CODE_LATIN_1_MIN)
17868 (LEADING_CODE_LATIN_1_MAX): New macros.
17869 (unibyte_to_multibyte_table): Extern it.
17870 (unibyte_char_to_multibyte): New macro.
17871 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17872 (CHAR_LEADING_CODE): New macro.
17873 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17874
17875 * character.c (unibyte_to_multibyte_table): New variable.
17876 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17877 (multibyte_char_to_unibyte): If C is an eight-bit character,
17878 convert it to the corresponding byte value.
17879
17880 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17881 not 1, signals an error. Update the elements of
17882 unibyte_to_multibyte_table.
17883 (init_charset_once): Initialize unibyte_to_multibyte_table.
17884 (syms_of_charset): Define the charset `iso-8859-1'.
17885
17886 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17887 as is without converting it to unibyte. In a unibyte buffer,
17888 convert C to multibyte before checking the syntax.
17889
17890 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17891
17892 * minibuf.c (Fminibuffer_complete_word): Use the macro
17893 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17894
17895 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17896
17897 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17898 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17899 that is zero, convert an eight-bit char to multibyte.
17900 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17901 non-emacs case.
17902 (PATFETCH): Convert an eight-bit char to multibyte.
17903 (HANDLE_UNIBYTE_RANGE): New macro.
17904 (regex_compile): Setup the compiled pattern for multibyte chars
17905 even if the given regex string is unibyte. Use PATFETCH_RAW
17906 instead of PATFETCH in many places. To handle `charset'
17907 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17908 only for ASCII chars.
17909 (analyse_first) <exactn>: Simplify because the compiled pattern
17910 is multibyte.
17911 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17912 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17913 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17914 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17915 multibyte always 1.
17916 (re_search_2): In emacs, set the locale variable multibyte to 1,
17917 otherwise to 0. New local variable target_multibyte. Check it
17918 to decide the multibyteness of STR1 and STR2. If
17919 target_multibyte is zero, convert unibyte chars to multibyte
17920 before translating and checking fastmap.
17921 (TARGET_CHAR_AND_LENGTH): New macro.
17922 (re_match_2_internal): In emacs, set the locale variable multibyte
17923 to 1, otherwise to 0. New local variable target_multibyte. Check
17924 it to decide the multibyteness of STR1 and STR2. Use
17925 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17926 <charset, charset_not>: If multibyte is nonzero, check fastmap
17927 only for ASCII chars. Call bcmp_translate with
17928 target_multibyte, not with multibyte.
17929 <begline>: Declare the local variable C as `unsigned'.
17930 (bcmp_translate): Change the last arg name to target_multibyte.
17931
17932 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17933 the regexp pattern and the matching target. Set cp->buf.multibyte
17934 to the multibyteness of the regexp pattern. Set
17935 cp->but.target_multibyte to the multibyteness of the matching target.
17936 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17937 FETCH_STRING_CHAR_ADVANCE.
17938 (Freplace_match): Convert unibyte chars to multibyte.
17939
17940 * syntax.c (char_quoted, back_comment, scan_words)
17941 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17942 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17943 unibyte chars to multibyte.
17944 (skip_chars): Delete the arg syntaxp, and move the code for
17945 handling syntaxes to skip_syntaxes. Change callers.
17946 Fix the case that the multibyteness of STRING and the current
17947 buffer doesn't match.
17948 (skip_syntaxes): New function.
17949 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17950 SINGLE_BYTE_CHAR_P.
17951
179522008-02-01 Kenichi Handa <handa@m17n.org>
17953
17954 * xfaces.c (QCfontset): New variable.
17955 (LFACE_FONTSET): New macro.
17956 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17957 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17958 (Finternal_set_lisp_face_attribute)
17959 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17960 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17961 check also LFACE_FONTSET_INDEX.
17962 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17963 attrs[LFACE_FONT_INDEX].
17964 (syms_of_xfaces): Intern and staticpro QCfontset.
17965
17966 * dispextern.h (enum lface_attribute_index): New member
17967 LFACE_FONTSET_INDEX.
17968
17969 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17970
179712008-02-01 Kenichi Handa <handa@m17n.org>
17972
17973 * coding.c (coding_set_destination): Fix coding->destination for
17974 the case converting a region.
17975 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17976 (encode_coding_object): Fix coding->dst_pos and
17977 coding->dst_pos_byte for the case converting a region.
17978
17979 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17980
17981 * character.h (BYTE8_STRING): New macro.
17982
17983 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17984
179852008-02-01 Kenichi Handa <handa@m17n.org>
17986
17987 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17988 characters by octal form.
17989
17990 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17991
17992 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17993 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17994 _fetch_multibyte_char_len.
17995 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17996
17997 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17998
17999 * casefiddle.c (casify_object): Simplify. Handle the case that
18000 the case conversion change the byte length.
18001 (casify_region): Likewise.
18002
18003 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
18004
18005 * character.c (_fetch_multibyte_char_len): Delete this variable.
18006 (syms_of_character): Setup Vprintable_chars.
18007
18008 * editfns.c (Fchar_equal): Fix for the unibyte case.
18009 (Finsert_byte): New function.
18010 (syms_of_editfns): Defsubr it.
18011
18012 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
18013 of direct code 0x3ffff.
18014
18015 * search.c (Freplace_match): Fix for the unibyte case.
18016
180172008-02-01 Kenichi Handa <handa@m17n.org>
18018
18019 * lread.c (safe_to_load_p): Fix the logic.
18020
18021 * syntax.c (scan_words): Don't treat characters belonging to
18022 different scripts as constituting a word.
18023
18024 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18025
18026 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
18027
18028 * emacs.c (main): In the case of --unibyte, instead of aborting on
18029 finding non-empty buffer, make it unibyte.
18030
180312008-02-01 Kenichi Handa <handa@m17n.org>
18032
18033 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
18034 to create a fontset.
18035
180362008-02-01 Dave Love <fx@gnu.org>
18037
18038 * character.c (Funibyte_char_to_multibyte): Doc fix.
18039
18040 * xfns.c [HAVE_STDLIB_H]: Fix last change.
18041
180422008-02-01 Kenichi Handa <handa@m17n.org>
18043
18044 * fontset.c (fontset_add): Make the type `int'.
18045 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
18046
18047 * character.c (unibyte_char_to_multibyte)
18048 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
18049 charset_unibyte, not charset_primary.
18050
18051 * charset.h (charset_unibyte): Extern it instead of charset_primary.
18052
18053 * charset.c (charset_unibyte): Rename from charset_primary.
18054 (Funibyte_charset): Rename from Fprimary_charset.
18055 (Fset_unibyte_charset): Rename from Fset_primary_charset.
18056 (syms_of_charset): Adjust for the above changes.
18057
18058 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18059 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18060 it->multibyte_p is zero.
18061
18062 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
18063 Delete extern.
18064
180652008-02-01 Kenichi Handa <handa@m17n.org>
18066
18067 * coding.c (Fdefine_coding_system_internal): Fix category setting
18068 for a coding system of type iso-2022.
18069
180702008-02-01 Kenichi Handa <handa@m17n.org>
18071
18072 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
18073
180742008-02-01 Kenichi Handa <handa@m17n.org>
18075
18076 * syntax.c (Vnext_word_boundary_function_table): New variable.
18077 (next-word-boundary-function-table): Declare it as a Lisp variable
18078 in syms_of_syntax.
18079 (scan_words): Call functions in Vnext_word_boundary_function_table
18080 if any.
18081
18082 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
18083
18084 * fontset.c (fs_load_font): If fontp->charset is not negative,
18085 return fontp without setting its members.
18086
180872008-02-01 Dave Love <fx@gnu.org>
18088
18089 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
18090
18091 * m/sparc.h (HAVE_ALLOCA): Delete.
18092
18093 * s/irix6-5.h: Don't include strings.h.
18094 (bcopy, bzero, bcmp): Don't undef.
18095
18096 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
18097
18098 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
18099 (TIOCSIGSEND): Don't test IRIX6.
18100 (bcopy, bzero, bcmp): Define conditionally.
18101
181022008-02-01 Kenichi Handa <handa@m17n.org>
18103
18104 * buffer.c (Qas, Qmake, Qto): New variables.
18105 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
18106 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
18107
18108 * callproc.c (Fcall_process): Don't call insert_1_both directly if
18109 we are inserting a process output into a multibyte buffer.
18110
18111 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
18112 multibyte_char_to_unibyte.
18113
18114 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
18115 by the primary charset, make it eight-bit char.
18116 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
18117
18118 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
18119 (charset_8_bit__control, charset_8_bit_graphic)
18120 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
18121 (define_charset_internal): New function.
18122 (syms_of_charset): Call define_charset_internal for pre-defined
18123 charsets.
18124
18125 * charset.h (charset_8_bit): Extern it.
18126
18127 * coding.c (make_conversion_work_buffer): Adjust for the change
18128 of Fset_buffer_multibyte.
18129 (encode_coding_raw_text): Increment p0 in the loop.
18130
18131 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
18132
18133 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
18134 for the change of Fset_buffer_multibyte.
18135
18136 * fns.c (Fstring_to_multibyte): New function.
18137 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
18138
181392008-02-01 Dave Love <fx@gnu.org>
18140
18141 * xfns.c (x_put_x_image): Declare args.
18142
18143 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
18144 (try_font_list): Declare an arg.
18145
18146 * xdisp.c (message2_nolog, set_message): Declare an arg.
18147
18148 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
18149
18150 * syntax.c (scan_sexps_forward): Declare an arg.
18151
18152 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
18153 Declare an arg.
18154
18155 * lisp.h (Fnew_fontset): Declare.
18156
18157 * keymap.c (push_key_description): Call CHARACTERP correctly.
18158
18159 * fontset.c (fontset_add): Declare args. Call make_number correctly.
18160 (face_for_char): Delete unused vars.
18161 (Fset_fontset_font): Doc fix. Delete unused vars.
18162
18163 * doc.c (Fsubstitute_command_keys): Delete unused vars.
18164
18165 * composite.c (update_compositions): Declare arg.
18166
18167 * cm.c (calccost, cmgoto): Declare args.
18168
18169 * charset.c: Remove `emacs' conditional. Doc fixes.
18170 (map_char_table_for_charset): Declare.
18171
18172 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
18173
18174 * ccl.c: Remove `emacs' conditional.
18175
181762008-02-01 Kenichi Handa <handa@m17n.org>
18177
18178 The following changes are to allow specifying multiple font
18179 patterns for a character range (specified by script or charset).
18180
18181 * Makefile.in (abbrev.o): Depend on syntax.h.
18182 (xfaces.o): Depend on charset.h.
18183
18184 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
18185 SINGLE_BYTE_CHAR_P.
18186
18187 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
18188
18189 * character.h (Vchar_script_table): Extern it.
18190
18191 * character.c (Vscript_alist): Delete.
18192 (Vchar_script_table, Qchar_script_table): New variable.
18193 (syms_of_character): Declare Vchar_script_table as a lisp variable
18194 and initialize it.
18195
18196 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
18197 have property char-table-extra-slots, make no extra slot.
18198
18199 * dispextern.h (struct face): Delete member `charset'.
18200 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
18201 SINGLE_BYTE_CHAR_P.
18202 (choose_face_font, lookup_non_ascii_face, font_name_registry):
18203 Add prototypes.
18204 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
18205 (generate_ascii_font_name): Rename from generate_ascii_font.
18206
18207 * fontset.h (get_font_repertory_func): New prototype.
18208 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
18209 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
18210
18211 * fontset.c (Qprepend, Qappend): New variables.
18212 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
18213 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
18214 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
18215 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
18216 (fontset_ref_and_range, fontset_add, reorder_font_vector)
18217 (load_font_get_repertory): New functions.
18218 (fontset_set): Delete.
18219 (fontset_face): New arg FACE. Return face ID, not face.
18220 Complete re-write to handle new fontset structure. Change caller.
18221 (free_face_fontset): Use ASET istead of AREF (X) = Y.
18222 (face_for_char): Don't call lookup_face.
18223 (make_fontset_for_ascii_face): New arg FACE.
18224 (fs_load_font): New arg CHARSET_ID. Don't check
18225 Vfont_encoding_alist here.
18226 (find_font_encoding): New function.
18227 (list_fontsets): Use STRINGP, not ! NILP.
18228 (accumulate_script_ranges): New function.
18229 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
18230 re-written to handle new fontset structure.
18231 (Ffontset_font): Return a copy of element.
18232 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
18233 docstring of font-encoding-alist.
18234
18235 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
18236 (Fset_fotset_font): Fix arguments to 5.
18237
18238 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
18239
18240 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
18241 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18242 (highlight_trailing_whitespace): Adjust for the change of
18243 lookup_named_face.
18244
18245 * xfaces.c: Include charset.h.
18246 (load_face_font): Delete argument C. Change caller.
18247 (generate_ascii_font_name): Rename from generate_ascii_font.
18248 (font_name_registry): New function.
18249 (cache_face): Store ascii faces before non-ascii faces in buckets.
18250 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
18251 Lookup only ascii faces.
18252 (lookup_non_ascii_face): New function.
18253 (lookup_named_face): Delete argument C. Change caller.
18254 (lookup_derived_face): Delete argument C. Change caller.
18255 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
18256 a string, just call font_list with it.
18257 (choose_face_font): Delete arguments FACE and C. New arg
18258 FONT_SPEC. Change caller.
18259 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
18260 Change caller.
18261 (realize_non_ascii_face): New function.
18262 (realize_x_face): Call load_face_font here.
18263 (realize_tty_face): Delete argument C. Change caller.
18264 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
18265 get a face ID.
18266 (dump_realized_face): Don't print charset of FACE.
18267
18268 * xfns.c (x_set_font): Always call x_new_fontset and
18269 store_frame_parameter.
18270 (Fx_create_frame): Call x_new_fontset, not x_new_font.
18271 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
18272
18273 * xterm.h (x_get_font_repertory): Extern it.
18274
18275 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18276 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18277 it->multibyte_p is zero.
18278 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18279 (x_new_fontset): If FONTSETNAME doesn't match any existing
18280 fontsets, create a new one.
18281 (x_get_font_repertory): New function.
18282
182832008-02-01 Kenichi Handa <handa@m17n.org>
18284
18285 * coding.c (Ffind_coding_systems_region_internal): Detect an
18286 ASCII only string correctly.
18287
18288 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
18289 version is 0.
18290
182912008-02-01 Kenichi Handa <handa@m17n.org>
18292
18293 * lread.c: Include "coding.h".
18294 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
18295 (load_each_byte, unread_char): New variables.
18296 (readchar_backlog): Delete.
18297 (readchar): Return a character unless load_each_byte is nonzero.
18298 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
18299 cons. If unread_char is not -1, simply return it.
18300 (unreadchar): Handle the case that readcharfun is
18301 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
18302 (read_multibyte): Delete.
18303 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
18304 (read_emacs_mule_char): New functions.
18305 (Fload): Even if the file doesn't have the extension ".elc", if
18306 safe_to_load_p returns a positive version number, assume that the
18307 file contains bytecompiled code. If the version is less than 22,
18308 load the file while decoding multibyte sequences by emacs-mule.
18309 (readevalloop): Don't use readchar_backlog.
18310 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
18311 (Fread_from_string): Pay attention to the case that STREAM is a cons.
18312 (read_escape): Delete the arg BYTEREP.
18313 (read1): Set load_each_byte to 1 temporarily while handling
18314 #@NUMBER. Don't call read_multibyte.
18315 (read_vector): Call Fread with a cons. If readcharfun is
18316 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
18317 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
18318 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
18319 and Qload_force_doc_strings.
18320
183212008-02-01 Kenichi Handa <handa@m17n.org>
18322
18323 * xdisp.c (face_before_or_after_it_pos): Call
18324 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
18325
183262008-02-01 Kenichi Handa <handa@m17n.org>
18327
18328 * character.h (TRAILING_CODE_P): New macro.
18329 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
18330 (string_char_with_unification): Fix prototype.
18331 (Vscript_alist): Extern it.
18332
18333 * character.c (Vscript_alist): New variable.
18334 (string_char_with_unification, str_as_unibyte)
18335 (string_escape_byte8): Add `const' to local variables.
18336 (syms_of_character): Declare script-alist as a Lisp variable.
18337
18338 * charset.h (Vcharset_ordered_list): Extern it.
18339 (charset_ordered_list_tick): Extern it.
18340 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
18341 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
18342 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
18343 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
18344 (Funify_charset): Adjust for the change of Funify_charset.
18345
18346 * charset.c (charset_ordered_list_tick): New variable.
18347 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
18348 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
18349 deunify intead of unify a charset.
18350 (string_xstring_p): Add `const' to local variables.
18351 (find_charsets_in_text): Add `const' to arguments and local variables.
18352 (encode_char): Adjust for the change of Funify_charset. Fix
18353 detecting of invalid code.
18354 (Fset_charset_priority): Increment charset_ordered_list_tick.
18355 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
18356 and TO_CODE.
18357
18358 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
18359 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
18360 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
18361 (decode_coding_ccl, consume_chars)
18362 (Ffind_coding_systems_region_internal)
18363 (Fcheck_coding_systems_region): Add `const' to local variables.
18364
18365 * print.c (print_object): Use octal form for printing the
18366 contents of a bool vector.
18367
183682008-02-01 Dave Love <fx@gnu.org>
18369
18370 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
18371 <version == 20>: Refuse to load.
18372
183732008-02-01 Dave Love <fx@gnu.org>
18374
18375 * fns.c: Move coding.h.
18376 (Qcodeset, Qdays, Qmonths): New.
18377 (concat): Use CHARACTERP instead of INTEGERP.
18378 (Flocale_codeset): Delete.
18379 (Flanginfo): New function.
18380 (syms_of_fns): Change accordingly.
18381
18382 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
18383
183842008-02-01 Dave Love <fx@gnu.org>
18385
18386 * casetab.c (init_casetab_once, init_casetab_once): Fix
18387 CHAR_TABLE_SET call.
18388
18389 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
18390
18391 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
18392
18393 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
18394 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
18395 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
18396
18397 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
18398
18399 * coding.c (ENCODE_DESIGNATION, decode_eol)
18400 (make_conversion_work_buffer, code_conversion_restore)
18401 (Fdefine_coding_system_internal): Convert Lisp types.
18402 (code_conversion_restore): Use EQ, not ==.
18403 (Fencode_coding_string): Fix code_convert_string call.
18404
18405 * coding.h (code_convert_region): Fix prototype.
18406
18407 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
18408
18409 * fontset.c (fontset_ref, fontset_set, fs_load_font)
18410 (Ffontset_info): Convert Lisp types.
18411
18412 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
18413
18414 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
18415
18416 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
18417
18418 * chartab.c: Include "...h", not <...h> in some cases.
18419
18420 * callproc.c (Fcall_process): Remove unused variables.
18421
184222008-02-01 Dave Love <fx@gnu.org>
18423
18424 * coding.c (Fset_coding_system_priority): Allow null arg list.
18425
184262008-02-01 Dave Love <fx@gnu.org>
18427
18428 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18429 (Fself_insert_and_exit): Use CHARACTERP.
18430
18431 * callproc.c (Fcall_process): Remove unused vars.
18432
18433 * xterm.c (XTread_socket): Add extra dead keysyms.
18434
18435 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
18436
18437 * dispextern.h: Remove prototypes for redraw_frame,
18438 redraw_garbaged_frames.
18439
18440 * cmds.c (Fself_insert_command): Use CHARACTERP.
18441
18442 * chartab.c (make_sub_char_table): Remove unused var.
18443 (Fset_char_table_default, Fmap_char_table): Doc fix.
18444
18445 * keymap.c (access_keymap): Remove generic char code.
18446 (push_key_description): Use CHARACTERP.
18447
184482008-02-01 Dave Love <fx@gnu.org>
18449
18450 * charset.c: Doc fixes.
18451 (Funify_charset): Extra checking.
18452
184532008-02-01 Dave Love <fx@gnu.org>
18454
18455 * lread.c: Remove some unused variables.
18456 (safe_to_load_p): If safe, return the magic number version byte.
18457 (Fload): Maybe use load-with-code-conversion.
18458
184592008-02-01 Kenichi Handa <handa@m17n.org>
18460
18461 * category.c (Fmodify_category_entry): Don't modify the contents
18462 of category_set for characters out of the range. Avoid
18463 unnecessary modification.
18464
18465 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
18466 Vchar_unify_table. The default value of the table is now nil.
18467
18468 * character.c (syms_of_character): Setup Vchar_width_table for
18469 eight-bit-control and raw-byte chars.
18470
18471 * charset.h (enum define_charset_arg_index): Delete
18472 charset_arg_parents and add charset_arg_subset and
18473 charset_arg_superset.
18474 (enum charset_attr_index): Delete charset_parents and add
18475 charset_subset and charset_superset.
18476 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
18477 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
18478 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
18479 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
18480 (CHARSET_SUPERSET): New macros.
18481 (charset_work): Extern it.
18482 (ENCODE_CHAR): Use charset_work.
18483 (CHAR_CHARSET_P): Adjust for the change of encoder format.
18484 (map_charset_chars): Extern it.
18485
18486 * charset.c (load_charset_map): Set the default value of encoder
18487 and deunifier char-tables to nil.
18488 (map_charset_chars): Change argument. Change callers. Use
18489 map_char_table_for_charset instead of map_char_table.
18490 (Fmap_charset_chars): New optional args from_code and to_code.
18491 (Fdefine_charset_internal): Adjust for the change of
18492 `define-charset' (:parents -> :subset or :superset).
18493 (charset_work): New variable.
18494 (encode_char, syms_of_charset): Adjust for the change of
18495 Fdefine_charset_internal.
18496 (Ffind_charset_string): Setup the vector `charsets' correctly.
18497
18498 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
18499 the previous change.
18500 (char_table_ref_and_range): Adjust for the above change.
18501 (map_sub_char_table_for_charset): New function.
18502 (map_char_table_for_charset): New function.
18503
18504 * keymap.c (describe_vector): Handle a char-table directly here.
18505 (describe_char_table): Delete.
18506
18507 * lisp.h (map_charset_chars): Delete.
18508
185092008-02-01 Dave Love <fx@gnu.org>
18510
18511 * fns.c (count_combining): Comment out (unused).
18512 (Flocale_codeset): New.
18513 (syms_of_fns): Defsubr it.
18514
18515 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
18516 (size_t): Remove.
18517
185182008-02-01 Dave Love <fx@gnu.org>
18519
18520 * Makefile.in (chartab.o): Depend on charset.h.
18521
185222008-02-01 Kenichi Handa <handa@m17n.org>
18523
18524 * character.c (syms_of_character): Set the default value of
18525 Vprintable_chars to Qnil.
18526
185272008-02-01 Dave Love <fx@gnu.org>
18528
18529 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
18530
185312008-02-01 Kenichi Handa <handa@m17n.org>
18532
18533 * charset.c (load_charset_map): Handle the case that from < to
18534 correctly.
18535
18536 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
18537 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
18538 Pay attention to raw-8-bit chars.
18539
185402008-02-01 Kenichi Handa <handa@m17n.org>
18541
18542 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
18543 It is not bytecompiled now.
18544
18545 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
18546 (charset_jisx0208): New variables.
18547 (Fdefine_charset_internal): Setup them if appropriate.
18548 (init_charset_once): Initialize them to -1.
18549
18550 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
18551 (charset_jisx0208): Extern them.
18552
18553 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
18554 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
18555 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
18556 (setup_iso_safe_charsets): Fix arguments to Fassq.
18557 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
18558 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
18559 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
18560 (encode_coding_iso_2022): Change the 1st arg to
18561 ENCODE_ISO_CHARACTER to a variable.
18562
185632008-02-01 Kenichi Handa <handa@m17n.org>
18564
18565 * charset.h (enum define_charset_arg_index): New enums
18566 charset_arg_min_code and charset_arg_max_code.
18567 (struct charset): New member char_index_offset.
18568
18569 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
18570 Take charset->char_index_offset into account.
18571 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
18572 args[charset_arg_max_code]. Setup charset.char_index_offset.
18573 (syms_of_charset): Fix args to Fdefine_charset_internal.
18574
185752008-02-01 Dave Love <fx@gnu.org>
18576
18577 * coding.c (decode_coding_utf_8): Reject overlong sequences.
18578
185792008-02-01 Dave Love <fx@gnu.org>
18580
18581 * coding.c: Doc fixes.
18582 (Fcoding_system_aliases): Fix return value.
18583 (Qmac): Remove (duplicated) definition.
18584
185852008-02-01 Dave Love <fx@gnu.org>
18586
362654a6
JB
18587 * charset.c (Fcharset_priority_list, Fset_charset_priority):
18588 New functions.
aac0c6e3
MR
18589
18590 * character.c (Fstring): Doc fix.
18591
18592 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
18593
362654a6 18594 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
18595 (font-encoding-alist): Doc fix.
18596
185972008-02-01 Dave Love <fx@gnu.org>
18598
18599 * term.c (costs_set): Declare static, non-initialized for pcc.
18600 (encode_terminal_code): Remove unused var.
18601
18602 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18603 for K&R.
18604
18605 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
18606
18607 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
18608 (suffixes): Move out of make_subsidiaries for K&R.
18609
18610 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
18611
18612 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
18613
186142008-02-01 Dave Love <fx@gnu.org>
18615
18616 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
18617
18618 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
18619
186202008-02-01 Yong Lu <lyongu@asia-infonet.com>
18621
18622 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
18623
18624 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
18625
186262008-02-01 Kenichi Handa <handa@m17n.org>
18627
18628 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
18629 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
18630
186312008-02-01 Kenichi Handa <handa@m17n.org>
18632
18633 * coding.c (decode_coding_charset): Adjust for the change of
18634 Fdefine_coding_system_internal.
18635 (Fdefine_coding_system_internal): For a coding system of
18636 `charset' type, store a list of charset IDs in
18637 `charset_attr_charset_valids' element of coding attributes.
18638
186392008-02-01 Kenichi Handa <handa@m17n.org>
18640
18641 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
18642 (emacs_mule_char): New arg src. Delete arg `composition'. Change
18643 caller. Handle 2-byte and 3-byte charsets correctly.
18644 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
18645 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
18646 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
18647 (DECODE_EMACS_MULE_21_COMPOSITION): Call
18648 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
18649 sequence.
18650 (decode_coding_emacs_mule): Handle composition correctly. Rewind
18651 `src' and `consumed_chars' correctly before calling emacs_mule_char.
18652 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
18653 and alt&rule composition.
18654 (decode_coding_iso_2022): Handle composition correctly.
18655 (init_coding_once): Setup emacs_mule_bytes for private charsets.
18656
18657 * charset.c (Fdefine_charset_internal): Fix bug for the case of
18658 re-defining a charset. If the charset has :emacs-mule-id, setup
18659 emacs_mule_bytes.
18660 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18661
186622008-02-01 Kenichi Handa <handa@m17n.org>
18663
18664 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18665 (encode_coding_big5, encode_coding_charset): If coding requires safe
18666 encoding, produce a character specified by
18667 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18668
186692008-02-01 Dave Love <fx@gnu.org>
18670
18671 * xterm.c (XSetIMValues): Declare.
18672
18673 * process.c: Conditionally include sys/wait.h, pty.h.
18674
18675 * print.c (print_object): Fix print format for 64-bit systems.
18676
18677 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18678
18679 * buffer.c (emacs_strerror): Declare.
18680
18681 * fontset.c (Fclear_face_cache): Declare.
18682 (accumulate_font_info): Comment-out (unused).
18683 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18684 variables.
18685
18686 * character.h (string_escape_byte8): Declare.
18687
18688 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18689 unused vars.
18690 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18691 (Fmap_charset_chars): Doc fix.
18692
18693 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18694 (Fset_coding_system_priority, Fset_coding_system_priority)
18695 (Fdefine_coding_system_internal): Doc fix.
18696
186972008-02-01 Dave Love <fx@gnu.org>
18698
18699 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18700
187012008-02-01 Kenichi Handa <handa@m17n.org>
18702
18703 * character.c (string_escape_byte8): Make multibyte string with
18704 correct size.
18705
18706 * charset.c (Fmake_char): Delete unnecessary code.
18707
187082008-02-01 Kenichi Handa <handa@m17n.org>
18709
18710 * xfns.c (x_encode_text): Allocate coding.destination here, and
18711 call encode_coding_object with dst_object Qnil.
18712
18713 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18714 multibyte form correctly.
18715
18716 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18717 against Vfont_encoding_alist.
18718
18719 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18720 handling of charset list.
18721 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18722 (decode_coding_object): Move point to coding->dst_pos before
18723 calling post-read-conversion function.
18724 (encode_coding_object): Give correct arguments to
18725 pre-write-conversion. Ignore the return value of
18726 pre-write-conversion function. Pay attention to the case that
18727 pre-write-conversion changes the current buffer. If dst_object is
18728 Qt, even if coding->src_bytes is zero, allocate at least one byte
18729 to coding->destination.
18730
18731 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18732
18733 * charset.c (Fmake_char): Make it more backward compatible.
18734 (Fmap_charset_chars): Fix docstring.
18735
187362008-02-01 Dave Love <fx@gnu.org>
18737
18738 * coding.c: Doc fixes.
18739 (Fdefine_coding_system_alias): Use names, not symbols, in
18740 coding-system-alist.
18741
187422008-02-01 Kenichi Handa <handa@m17n.org>
18743
18744 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18745 of calling free_realized_face.
18746
187472008-02-01 Yong Lu <lyongu@asia-infonet.com>
18748
18749 * charset.c (read_hex): Don't treat SPC as a comment starter.
18750 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18751 (Fdecode_char): Fix typo.
18752
187532008-02-01 Kenichi Handa <handa@m17n.org>
18754
18755 * charset.h (struct charset): New member `code_space_mask'.
18756
18757 * coding.c (coding_set_source): Delete the local variable beg_byte.
18758 (encode_coding_charset, Fdefine_coding_system_internal):
18759 Delete the local variable charset.
18760 (Fdefine_coding_system_internal): Setup
18761 attrs[coding_attr_charset_valids] correctly.
18762
18763 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18764 member to check if CODE is valid or not.
18765 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18766 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18767 is within the range of charset->min_code and carset->max_code.
18768
187692008-02-01 Dave Love <fx@gnu.org>
18770
18771 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18772
18773 * dispextern.h (generate_ascii_font): Fix return type.
18774
18775 * xfaces.c (generate_ascii_font): Fix arg declaration.
18776
18777 * coding.c (coding_inherit_eol_type)
18778 (Fset_terminal_coding_system_internal)
18779 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18780
187812008-02-01 Kenichi Handa <handa@m17n.org>
18782
18783 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18784 multiple charsets correctly.
18785
187862008-02-01 Kenichi Handa <handa@m17n.org>
18787
18788 * search.c (boyer_moore): Fix handling of multibyte character
18789 translation.
18790
18791 * xdisp.c (display_mode_element): When the variable `elt' is
18792 changed, update `this' and `lisp_string'.
18793
187942008-02-01 Kenichi Handa <handa@m17n.org>
18795
18796 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18797
18798 * callproc.c (Fcall_process): Be sure to give the current buffer
18799 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18800
18801 * charset.c (struct charset_map_entries): New struct.
18802 (load_charset_map): Rename from parse_charset_map. New args
18803 entries and n_entries. Change caller.
18804 (load_charset_map_from_file): Rename from load_charset_map.
18805 Change caller. New arg control_flag. Call load_charset_map at
18806 the tail.
18807 (load_charset_map_from_vector): New function.
18808 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18809 (encode_char): If the charset is compact, change a character index
18810 to a code point.
18811
18812 * coding.c (coding_alloc_by_making_gap): Check the case that the
18813 source and destination are the same correctly.
18814 (decode_coding_raw_text): Set coding->consumed_char and
18815 coding->consumed to 0.
18816 (produce_chars): If coding->chars_at_source is nonzero, update
18817 coding->consumed_char and coding->consumed before calling
18818 alloc_destination.
18819 (Fdefine_coding_system_alias): Register ALIAS in
18820 Vcoding_system_alist.
18821 (syms_of_coding): Define `no-conversion' coding system at the tail.
18822
18823 * fileio.c (Finsert_file_contents): Set coding_system instead of
18824 val. If the current buffer is multibyte, always call
18825 decode_coding_gap.
18826
18827 * xfaces.c (try_font_list): Give higher priority to fontset's
18828 family than face's family.
18829
188302008-02-01 Kenichi Handa <handa@m17n.org>
18831
18832 * callproc.c (Fcall_process): Be sure to give the current buffer
18833 to decode_coding_c_string.
18834
18835 * xfaces.c (try_font_list): Give a family specified in a fontset
18836 higher priority than a family specified in a face.
18837
188382008-02-01 Kenichi Handa <handa@m17n.org>
18839
18840 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18841 Fix arguments to insert_from_buffer.
18842
18843 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18844
188452008-02-01 Kenichi Handa <handa@m17n.org>
18846
18847 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18848 (decode_coding_gap): Set coding->dst_multibyte correctly.
18849
188502008-02-01 Kenichi Handa <handa@m17n.org>
18851
18852 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18853 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18854 (encode_coding_utf_16): Substitute coding->default_char for
18855 non-Unicode characters.
18856 (decode_coding): Don't call record_insert here.
18857 (setup_coding_system): Initialize `surrogate' of
18858 coding->spec.utf_16 to 0.
18859 (EMIT_ONE_BYTE): Fix for multibyte case.
18860
18861 * insdel.c (insert_from_gap): Call record_insert.
18862
188632008-02-01 Kenichi Handa <handa@m17n.org>
18864
18865 * casefiddle.c (casify_region): Fix multibyte case.
18866
18867 * character.c (c_string_width): Add return type `int'.
18868 (char_string_with_unification): Delete arg ADVANCED.
18869
18870 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18871 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18872 (CHAR_STRING_ADVANCE): Make it do-while statement.
18873
18874 * chartab.c (sub_char_table_set_range): Optimize for the case
18875 DEPTH == 3. Add workaround code for a GCC optimization bug.
18876
18877 * charset.c (parse_charset_map): Remove an unused variable.
18878
18879 * coding.c: Delete unused variables.
18880
18881 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18882 earlier. If inserted is zero and the coding system doesn't
18883 require flushing, don't call decode_coding_gap.
18884
18885 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18886
188872008-02-01 Kenichi Handa <handa@m17n.org>
18888
18889 The following changes are for using Unicode as an internal
18890 character model, and use UTF-8 format for buffer/string
18891 representation.
18892
18893 * .gdbinit (xchartable): Adjust for the change of char table structure.
18894 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18895
18896 * Makefile.in (obj): Add character.o and chartab.o.
18897 (lisp, shortlisp): Remove utf-8.elc.
18898 (*.o): For many files, change dependency on charset.h to
18899 character.h, and add dependency on character.h.
18900 (character.o, chartab.o): New targets.
18901
18902 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18903 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18904 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18905 of "charset.h".
18906
18907 * dired.c, filelock.c: Include "character.h".
18908
18909 * alloc.c: Include "character.h" instead of "charset.h".
18910 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18911 (syms_of_alloc): Remove defsubr for Smake_char_table.
18912
18913 * buffer.c: Include "character.h" instead of "charset.h", don't
18914 include "coding.h".
18915 (Fset_buffer_multibyte): Adjust for UTF-8.
18916
18917 * buffer.h: EXFUN Fbuffer_live_p.
18918
18919 * callproc.c: Include "character.h" instead of "charset.h".
18920 (Fcall_process): Big change for the new code-conversion APIs.
18921
18922 * casetab.c: Include "character.h" instead of "charset.h".
18923 (set_canon, set_identity, shuffle): Adjust for the new
18924 map_char_table spec.
18925 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18926 accessing the char table structure.
18927
18928 * chartab.c: New file that implements char table.
18929
18930 * category.c: Include "character.h".
18931 (copy_category_entry): New function.
18932 (copy_category_table): Call map_char_table and copy_category_entry.
18933 (Fmake_category_table): Initialize all top-level slots.
18934 (char_category_set): New function.
18935 (modify_lower_category_set): Delete.
18936 (Fmodify_category_entry): Call char_table_ref_and_range.
18937
18938 * category.h (CATEGORY_SET): Just call char_category_set.
18939
18940 * ccl.c: Include "character.h".
18941 (Qccl, Qcclp): New variables.
18942 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18943 it's less than 256.
18944 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18945 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18946 and DST type.
18947 (ccl_driver): Change types of argument, adjust code accordingly.
18948 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18949 ccl_driver.
18950 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18951
18952 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18953 New members src_multibyte, dst_multibyte, consumed, and produced.
18954 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18955 (CODING_SPEC_CCL_PROGRAM): New macro.
18956 (ccl_driver): Update prototype.
18957 (Qccl, Qcclp, Fccl_program_p): Extern them.
18958 (CHECK_CCL_PROGRAM): New macro.
18959
18960 * character.c, character.h, chartab.c: New files.
18961
18962 * charset.c: Mostly re-written. Move character and multibyte sequence
18963 handling codes to character.c.
18964
18965 * charset.h: Mostly re-written. Move character and multibyte sequence
18966 handling codes to character.h.
18967
18968 * coding.c, coding.h: Mostly re-written.
18969
18970 * composite.c: Include "character.h" instead of "charset.h".
18971 (CHAR_WIDTH): Move to character.h.
18972 (HASH_KEY, HASH_VALUE): Delete.
18973
18974 * composite.h (enum composition_method): Change order of enumeration
18975 symbols.
18976
18977 * data.c: Include "character.h" instead of "charset.h".
18978 (Faref): Call CHAR_TABLE_REF for a char table.
18979 (Faset): Call CHAR_TABLE_SET for a char table.
18980
18981 * dispextern.h (free_realized_face, check_face_attribytes)
18982 (generate_ascii_font): Extern them.
18983 (free_realized_multibyte_face): Delete extern.
18984
18985 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18986 table structure.
18987
18988 * editfns.c: Include "character.h" instead of "charset.h".
18989 (Fchar_to_string): Always call CHAR_STRING.
18990
18991 * emacs.c (main): Call init_charset_once, init_charset,
18992 syms_of_chartab, and syms_of_character.
18993
18994 * fileio.c: Include "character.h" instead of "charset.h".
18995 (Finsert_file_contents): Big change for the new code-conversion API.
18996 (choose_write_coding_system, Fwrite_region): Likewise.
18997 (build_annotations_2): Delete.
18998 (e_write): Big change for the new code-conversion API.
18999
19000 * fns.c: Include "character.h" instead of "charset.h".
19001 (copy_sub_char_table): Move to chartab.c.
19002 (Fcopy_sequence): Call copy_char_table for a char table.
19003 (concat): Delete codes calling count_multibyte.
19004 (string_char_to_byte, string_byte_to_char): Adjust for the new
19005 multibyte form.
19006 (internal_equal): Adjust for the change of char table structure.
19007 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
19008 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
19009 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
19010 (char_table_translate, optimize_sub_char_table)
19011 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
19012 chartab.c.
19013 (char_table_ref_and_index): Delete.
19014 (HASH_KEY, HASH_VALUE): Move to lisp.h.
19015 (Fmd5): Call preferred_coding_system instead of accessing
19016 Vcoding_category_list. Adjust for the new code-conversion API.
19017 (syms_of_fns): Move defsubr for char table related functions to
19018 chartab.c.
19019
19020 * fontset.c: Mostly re-written.
19021
19022 * fontset.h (struct font_info): Change type of the member encoding_type.
19023 (enum FONT_SPEC_INDEX): New enum.
19024 (fontset_font_pattern, fs_load_font): Update prototype.
19025 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
19026
19027 * indent.c: Include "character.h" instead of "charset.h".
19028 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
19029
19030 * insdel.c: Include "character.h" instead of "charset.h".
19031 (copy_text): Don't refer to Vnonascii_translation_table.
19032 (insert_from_gap): New function.
19033
19034 * keyboard.c: Include "character.h" instead of "charset.h".
19035 (command_loop_1): Never call direct_output_forward_char before
19036 a non-ASCII character.
19037 (read_char): If Vkeyboard_translate_table is a char table, always
19038 translate a character.
19039
19040 * keymap.c: Include "character.h".
19041 (store_in_keymap): Handle the case that IDX is a cons.
19042 (Fdefine_key): Handle the case that KEY is a cons and the car part
19043 is also a cons (range).
19044 (push_key_description): Adjust for the new character code.
19045 (describe_vector): Call describe_char_table for a char table.
19046 (describe_char_table): New function.
19047
19048 * keymap.h (describe_char_table): Extern it.
19049
19050 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
19051 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
19052 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
19053 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
19054 Delete.
19055 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
19056 structure.
19057 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
19058 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
19059 (CHARTAB_SIZE_BITS_3): New macros.
19060 (chartab_size): Extern it.
19061 (struct Lisp_Char_Table): Re-design.
19062 (struct Lisp_Sub_Char_Table): New structure.
19063 (HASH_KEY, HASH_VALUE): Move from fns.c.
19064 (CHARACTERBITS): Define as 22.
19065 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
19066 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
19067 (GC_SUB_CHAR_TABLE_P): New macro.
19068 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
19069 (code_convert_string_norecord): Deleted extern.
19070 (init_character_once, syms_of_character, init_charset)
19071 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
19072
19073 * lread.c: Include "character.h".
19074 (read_multibyte): New arg NBYTES.
19075 (read_escape): Change the meaning of returned *BYTEREP.
19076 (to_multibyte): Delete.
19077 (read1): Adjust the handling of char table and string.
19078
19079 * print.c: Include "character.h" instead of "charset.h".
19080 (print_string): Convert 8-bit raw bytes to octal form by
19081 string_escape_byte8.
19082 (print_object): Adjust for the new multibyte form. Print 8-bit
19083 raw bytes always in octal form. Handle sub char table correctly.
19084
19085 * process.c: Include "character.h" instead of "charset.h".
19086 (read_process_output, send_process): Adjust for the new
19087 code-conversion API.
19088
19089 * puresize.h (BASE_PURESIZE): Increase.
19090
19091 * regex.c: Include "character.h" instead of "charset.h".
19092 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
19093 (regex_compile): Accept a range whose starting and ending
19094 character have different leading bytes.
19095 (analyse_first): Adjust for the above change.
19096
19097 * search.c: Include "character.h" instead of "charset.h".
19098 (search_buffer, boyer_moore): Adjust for the new multibyte form.
19099 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
19100
19101 * syntax.c: Include "character.h" instead of "charset.h".
19102 (syntax_parent_lookup): Delete.
19103 (Fmodify_syntax_entry): Accept a cons as CHAR.
19104 (skip_chars): Adjust for the new multibyte form.
19105 (init_syntax_once): Call char_table_set_range instead of directly
19106 accessing the structure of a char table.
19107
19108 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
19109 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
19110 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
19111 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
19112
19113 * term.c: Include "buffer.h" and "character.h".
19114 (encode_terminal_code, write_glyphs): Adjust for the new
19115 code-conversion API.
19116 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
19117
19118 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
19119
19120 * xdisp.c: Include "character.h".
19121 (get_next_display_element): Adjust for the new multibyte form.
19122 (disp_char_vector): Adjust for the new char table structure.
19123 (decode_mode_spec_coding): Adjust for the new structure of
19124 coding system.
19125 (decode_mode_spec): Adjust for the new code-conversion API.
19126
19127 * xfaces.c: Include "character.h" instead of "charset.h".
19128 (load_face_font): Adjust for the change of choose_face_font and
19129 FS_LOAD_FONT.
19130 (generate_ascii_font): New function.
19131 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
19132 (set_font_frame_param): Adjust for the change of choose_face_font.
19133 (free_realized_face): Make it public.
19134 (free_realized_faces_for_fontset): Rename from
19135 free_realized_multibyte_face. Free also faces realized for ASCII.
19136 (choose_face_font): Change arguments. Adjust for the change of
19137 fontset_font_pattern and FS_LOAD_FONT.
19138
19139 * xfns.c: Include "character.h".
19140 (x_encode_text): Adjust for the new code-conversion API.
19141
19142 * xselect.c: Don't include "charset.h".
19143 (selection_data_to_lisp_data): Adjust for the new code conversion API.
19144
19145 * xterm.c: Include "character.h".
19146 (x_encode_char): New argument CHARSET. Change caller.
19147 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
19148 Call ENCODE_CHAR instead of SPLIT_CHAR.
19149 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
19150 CHAR_WIDTH instead of CHARSET_WIDTH.
19151 (XTread_socket): Adjust for the new code-conversion API.
19152 (x_new_font): Adjust for the change of FS_LOAD_FONT.
19153 (x_load_font): Adjust for the change of struct font.
19154
191552008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19156
19157 * xfaces.c (face_at_buffer_position): Remove unused vars.
19158
191592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19160
19161 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
19162 Fix overflow checking.
19163
191642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19165
19166 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
19167 Cancel previous change.
19168
191692008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19170
19171 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
19172 ccl->eight_bit_control. Fix check for buffer overflow.
19173 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
19174 (ccl_driver): Initialize extra_bytes to 0.
19175
191762008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19177
19178 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
19179 return it ORed with ctrl_modifier.
19180
191812008-01-29 Miles Bader <miles@gnu.org>
19182
19183 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
19184
191852008-01-28 Jason Rumney <jasonr@gnu.org>
19186
19187 * w32.c (stat): Don't double check for networked drive.
19188
191892008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
19190
19191 * window.c (run_window_configuration_change_hook): New function.
19192 Code extracted from set_window_buffer. Set the selected frame.
19193 (set_window_buffer): Use it.
19194 * window.h (run_window_configuration_change_hook): Declare.
19195 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
19196
19197 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
19198
191992008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
19200
19201 * Makefile.in: Remove references to unused macros.
19202
192032008-01-26 Eli Zaretskii <eliz@gnu.org>
19204
19205 * w32.c (g_b_init_get_sid_sub_authority)
19206 (g_b_init_get_sid_sub_authority_count): New static variables.
19207 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
19208 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
19209 (init_user_info): Use them to retrieve uid and gid.
19210 Use 500/513, the Windows defaults, as Administrator's uid/gid.
19211 (fstat): Use pw_uid and pw_gid from the_passwd structure for
19212 st_uid and st_gid of the file.
19213
192142008-01-26 Jason Rumney <jasonr@gnu.org>
19215
19216 * w32.c (logon_network_drive): New function.
19217 (stat): Use it.
19218
192192008-01-26 Chong Yidong <cyd@stupidchicken.com>
19220
19221 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
19222 invisible text covered with an ellipsis.
19223
192242008-01-25 Richard Stallman <rms@gnu.org>
19225
19226 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
19227 jump back to beginning. Move some other initializations after that.
19228 (Qwindow_text_change_functions, Vwindow_text_change_functions):
19229 New variables.
19230 (syms_of_xdisp): Init them.
19231
19232 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
19233
19234 * buffer.c (reset_buffer_local_variables):
19235 Implement `permanent-local-hook'.
19236 (Qpermanent_local_hook): New variable.
19237 (syms_of_buffer): Init and staticpro it.
19238
192392008-01-25 Michael Albinus <michael.albinus@gmx.de>
19240
19241 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
19242
192432008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
19244
19245 * fns.c (Fclrhash): Return TABLE.
19246
192472008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19248
19249 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
19250 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
19251 is set even without positional changes.
19252 (x_scroll_bar_clear): Set bar->redraw_needed_p.
19253
19254 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
19255
192562008-01-23 Jason Rumney <jasonr@gnu.org>
19257
19258 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
19259
19260 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
19261 the unicode range available in MULE by locale-coding-system.
19262 Improve dbcs lead byte detection. Set event timestamp and modifiers
19263 earlier.
19264
192652008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19266
19267 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
19268 [MAC_OSX] (init_mac_osx_environment): Initialize it.
19269 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
19270 when used on child processes.
19271
192722008-01-21 Michael Albinus <michael.albinus@gmx.de>
19273
19274 * dbusbind.c (Fdbus_method_return_internal): Rename from
19275 Fdbus_method_return.
19276 (Fdbus_unregister_object): Move to dbus.el.
19277 (Fdbus_call_method, Fdbus_method_return_internal)
19278 (Fdbus_send_signal): Improve debug messages.
19279
192802008-01-20 Martin Rudalics <rudalics@gmx.at>
19281
19282 * undo.c (undo_inhibit_record_point): New variable.
19283 (syms_of_undo): Initialize it.
19284 (record_point): Don't record point when undo_inhibit_record_point
19285 is set.
19286
192872008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
19288
19289 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
19290
19291 * xdisp.c (Qauto_hscroll_mode): New var.
19292 (syms_of_xdisp): Initialize it.
19293 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
19294 window's buffer.
19295 (hscroll_windows): Don't check automatic_hscrolling_p here.
19296
19297 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
19298 vscroll if we're setting window-buffer to the value it already has.
19299
193002008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
19301
19302 * m/intel386.h: Remove references to XENIX.
19303
193042008-01-17 Andreas Schwab <schwab@suse.de>
19305
19306 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
19307 instead of HAVE_X86_64_LIB64_DIR.
19308 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
19309
193102008-01-17 Glenn Morris <rgm@gnu.org>
19311
19312 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
19313 to HAVE_X86_64_LIB64_DIR.
19314
193152008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
19316
19317 * s/irix3-3.h:
19318 * s/irix4-0.h:
19319 * s/386-ix.h:
19320 * s/domain.h:
19321 * s/hpux9-x11r4.h:
19322 * s/hpux9shxr4.h: Remove files for systems no longer supported.
19323
19324 * sysdep.c: Remove code containing references to symbols defined
19325 by unsupported systems.
19326
193272008-01-16 Glenn Morris <rgm@gnu.org>
19328
19329 * coding.c (select-safe-coding-system-function): Doc fix.
19330
193312008-01-15 Glenn Morris <rgm@gnu.org>
19332
19333 * config.in: Revert 2008-01-13 change: this is a generated file.
19334
193352008-01-13 Tom Tromey <tromey@redhat.com>
19336
19337 * lisp.h: Fix typo.
19338
193392008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19340
19341 * m/sequent-ptx.h:
19342 * m/sequent.h:
19343 * s/ptx.h:
19344 * s/ptx4-2.h:
19345 * s/ptx4.h: Remove files for systems no longer supported.
19346
19347 * callproc.c (Fcall_process): Fix previous change.
19348
193492008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19350
19351 * unexsunos4.c: Remove file, system not supported anymore.
19352
19353 * m/mips.h:
19354 * m/intel386.h:
19355 * callproc.c:
19356 * config.in:
19357 * ecrt0.c:
19358 * emacs.c:
19359 * fileio.c:
19360 * frame.c:
19361 * getpagesize.h:
19362 * keyboard.c:
19363 * lread.c:
19364 * process.c:
19365 * puresize.h:
19366 * sysdep.c:
19367 * systty.h:
19368 * syswait.h:
19369 * unexec.c:
19370 * xdisp.c:
19371 * alloc.c: Remove code containing references to symbols defined by
19372 unsupported systems.
19373
193742008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
19375
19376 * coding.c (detect_coding_mask): Fix previous change.
19377
193782008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
19379
19380 * coding.c (detect_coding_iso2022): New arg
19381 latin_extra_code_state. Allow Latin extra codes only
19382 when *latin_extra_code_state is nonzero.
19383 (detect_coding_mask): If there is a NULL byte, detect the encoding
19384 as UTF-16 or binary. If Latin extra codes exist, detect the
19385 encoding as ISO-2022 only when there's no other proper encoding is
19386 found.
19387
193882008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19389
19390 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
19391 #ifdef MAC_OS.
19392
193932008-01-08 Richard Stallman <rms@gnu.org>
19394
19395 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
19396
193972008-01-06 Nick Roberts <nickrob@snap.net.nz>
19398
19399 * keyboard.c (parse_menu_item): Don't enclose key bindings on
19400 menu bar in parentheses.
19401
194022008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
19403
19404 * m/7300.h:
19405 * m/acorn.h:
19406 * m/alliant-2800.h:
19407 * m/alliant.h:
19408 * m/alliant1.h:
19409 * m/alliant4.h:
19410 * m/altos.h:
19411 * m/amdahl.h:
19412 * m/apollo.h:
19413 * m/att3b.h:
19414 * m/aviion-intel.h:
19415 * m/aviion.h:
19416 * m/celerity.h:
19417 * m/clipper.h:
19418 * m/cnvrgnt.h:
19419 * m/convex.h:
19420 * m/cydra5.h:
19421 * m/delta88k.h:
19422 * m/dpx2.h:
19423 * m/dual.h:
19424 * m/elxsi.h:
19425 * m/f301.h:
19426 * m/gould-np1.h:
19427 * m/gould.h:
19428 * m/i860.h:
19429 * m/ibmps2-aix.h:
19430 * m/ibmrt-aix.h:
19431 * m/ibmrt.h:
19432 * m/irist.h:
19433 * m/is386.h:
19434 * m/isi-ov.h:
19435 * m/mega68.h:
19436 * m/mg1.h:
19437 * m/news-r6.h:
19438 * m/news-risc.h:
19439 * m/news.h:
19440 * m/nh3000.h:
19441 * m/nh4000.h:
19442 * m/ns16000.h:
19443 * m/ns32000.h:
19444 * m/nu.h:
19445 * m/orion.h:
19446 * m/orion105.h:
19447 * m/paragon.h:
19448 * m/pfa50.h:
19449 * m/plexus.h:
19450 * m/pyramid.h:
19451 * m/pyrmips.h:
19452 * m/sh3el.h:
19453 * m/sps7.h:
19454 * m/sr2k.h:
19455 * m/stride.h:
19456 * m/sun1.h:
19457 * m/sun2.h:
19458 * m/sun3-68881.h:
19459 * m/sun3-fpa.h:
19460 * m/sun3-soft.h:
19461 * m/sun3.h:
19462 * m/sun386.h:
19463 * m/symmetry.h:
19464 * m/tad68k.h:
19465 * m/tahoe.h:
19466 * m/targon31.h:
19467 * m/tek4300.h:
19468 * m/tekxd88.h:
19469 * m/tower32.h:
19470 * m/tower32v3.h:
19471 * m/ustation.h:
19472 * m/wicat.h:
19473 * m/xps100.h:
19474 * s/cxux.h:
19475 * s/cxux7.h:
19476 * s/dgux.h:
19477 * s/dgux4.h:
19478 * s/dgux5-4-3.h:
19479 * s/dgux5-4r2.h:
19480 * s/esix.h:
19481 * s/esix5r4.h:
19482 * s/hiuxmpp.h:
19483 * s/hiuxwe2.h:
19484 * s/iris3-5.h:
19485 * s/iris3-6.h:
19486 * s/isc2-2.h:
19487 * s/isc3-0.h:
19488 * s/isc4-0.h:
19489 * s/isc4-1.h:
19490 * s/newsos5.h:
19491 * s/newsos6.h:
19492 * s/osf1.h:
19493 * s/osf5-0.h:
19494 * s/riscix1-1.h:
19495 * s/riscix12.h:
19496 * s/sco4.h:
19497 * s/sco5.h:
19498 * s/sunos4-0.h:
19499 * s/sunos4-1.h:
19500 * s/sunos413.h:
19501 * s/sunos4shr.h:
19502 * s/umax.h:
19503 * s/unipl5-2.h:
19504 * s/xenix.h:
19505 * cxux-crt0.s:
19506 * unexapollo.c:
19507 * unexconvex.c:
19508 * unexenix.c:
19509 * unexsni.c: Remove files for systems no longer supported.
19510
19511 * m/intel386.h: Remove references to unsupported systems.
19512
19513 * w32.c (get_emacs_configuration): Remove reference to i860.
19514
19515 * sysdep.c: Remove dead code.
19516
195172008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
19518
19519 * s/rtu.h:
19520 * m/masscomp.h: Remove files. Platform is obsolete.
19521
195222008-01-04 Michael Albinus <michael.albinus@gmx.de>
19523
19524 * dbusbind.c (Fdbus_method_return): New function.
19525 (xd_read_message): Add the serial number to the event.
19526 (Fdbus_register_method): Activate the function.
19527
195282008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
19529
19530 * keyboard.c (read_key_sequence): Fix typo.
19531
195322008-01-03 Michael Albinus <michael.albinus@gmx.de>
19533
19534 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
19535 (xd_signature, xd_append_arg): Handle element type detection for
19536 empty arrays.
19537 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
19538 SDATA () calls; this must be solved more general.
19539 (Fdbus_register_signal): Use SBYTES instead of strlen.
19540
195412008-01-03 Magnus Henoch <magnus@zemdatav>
19542
19543 * dbusbind.c (xd_append_arg): Use unsigned char instead of
19544 unsigned int for byte values (necessary for big-endian platform).
19545 (Fdbus_call_method): Handle the case of no returned arguments.
19546
195472007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
19548
19549 * dbusbind.c (xd_read_message): Use non-static input_event struct.
19550
195512007-12-31 Magnus Henoch <mange@freemail.hu>
19552
19553 * dbusbind.c (xd_signature): Signature of variant is just "v".
19554
195552007-12-30 Michael Albinus <michael.albinus@gmx.de>
19556
19557 * dbusbind.c: Fix several errors and compiler warnings.
19558 Reported by Tom Tromey <tromey@redhat.com>.
19559 (XD_ERROR, XD_DEBUG_MESSAGE)
19560 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
19561 (xd_append_arg): Part for basic D-Bus types rewritten.
19562 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
19563 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
19564 appropriate.
19565 (xd_read_message): Return Qnil. Don't signal an error; it is not
19566 useful during event reading.
19567 (Fdbus_register_signal): Signal an error if the check for
19568 FUNCTIONP fails.
19569 (Fdbus_register_method): New function. The implementation is not
19570 complete, the call of the function signals an error therefore.
19571 (Fdbus_unregister_object): New function, renamed from
19572 Fdbus_unregister_signal. The initial check signals an error, if
19573 the object is not well formed.
19574
195752007-12-30 Richard Stallman <rms@gnu.org>
19576
19577 * textprop.c (get_char_property_and_overlay):
19578 Signal error if POSITION is out of range in a buffer.
19579
195802007-12-29 Martin Rudalics <rudalics@gmx.at>
19581
19582 * w32fns.c (Fx_create_frame): Make copy of frame parameters
19583 because the original parameters are in pure storage now.
19584
195852007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19586
19587 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
19588
195892007-12-22 Eli Zaretskii <eliz@gnu.org>
19590
19591 * callint.c (syms_of_callint) <command-history>: Add reference to
19592 history-length in the doc string.
19593
195942007-12-17 Jason Rumney <jasonr@gnu.org>
19595
19596 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
19597 before passing as wParam.
19598
195992007-12-22 Michael Albinus <michael.albinus@gmx.de>
19600
19601 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
19602 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
19603 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
19604 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
19605 as number.
19606 (Fdbus_call_method): Fix docstring.
19607
196082007-12-21 Michael Albinus <michael.albinus@gmx.de>
19609
19610 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
19611 New macros.
19612 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
19613 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
19614 Simplify.
19615 (xd_signature): New function.
19616 (xd_append_arg): Compute also signatures. Major rewrite.
19617 (xd_retrieve_arg): Make debug messages friendly.
19618 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
19619 Check for signatures of arguments.
19620
196212007-12-19 Michael Albinus <michael.albinus@gmx.de>
19622
19623 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
19624 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
19625 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
19626 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
19627 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
19628 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
19629 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
19630 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
19631 (xd_retrieve_value): Remove. Functionality included in ...
19632 (xd_append_arg): New function.
19633 (Fdbus_call_method, Fdbus_send_signal): Apply it.
19634
196352007-12-16 Michael Albinus <michael.albinus@gmx.de>
19636
19637 * dbusbind.c (top): Include <stdio.h>.
19638 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
19639 dbus_message_new_method_call and dbus_message_new_signal.
19640 (Fdbus_register_signal): Rename unique_name to uname.
19641 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
19642 non-existing unique name. Fix typos in matching rule. Return an
19643 object which is useful in Fdbus_unregister_signal.
19644 (Fdbus_unregister_signal): Reimplementation, in order to remove
19645 only the corresponding entry.
19646 (Vdbus_registered_functions_table): Change the order of entries.
19647 Apply these changes in xd_read_message and Fdbus_register_signal.
19648
196492007-12-16 Andreas Schwab <schwab@suse.de>
19650
19651 * fileio.c (Finsert_file_contents): Fix overflow check to not
19652 depend on undefined integer overflow.
19653
196542007-12-14 Jason Rumney <jasonr@gnu.org>
19655
19656 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19657 for characters above 127.
19658
196592007-12-13 Jason Rumney <jasonr@gnu.org>
19660
19661 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19662 before dereferencing array.
19663 (lookup_vk_code): Remove zero comparison.
19664
196652007-12-14 Michael Albinus <michael.albinus@gmx.de>
19666
19667 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19668 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19669 Use `unsigned int' instead of `uint'.
19670 (xd_read_message, Fdbus_register_signal): Split expressions into
19671 multiple lines before operators "&&" and "||", according to the
19672 GNU Coding Standards.
19673
196742007-12-14 Eli Zaretskii <eliz@gnu.org>
19675
19676 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19677
196782007-12-12 Juri Linkov <juri@jurta.org>
19679
19680 * buffer.c (Frename_buffer): In interactive spec replace
19681 `read-buffer' with `read-string' that uses `buffer-name-history'
19682 as history, and the current buffer's name as default.
19683
196842007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19685
19686 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19687 manipulating the backtrace manually.
19688 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19689 (struct backtrace, backtrace_list): Remove.
19690 (command_loop_1): Remove dead var `no_direct'.
19691
19692 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19693 preserve non-built-in buffer-local variables.
19694 (Fkill_all_local_variables): Don't re-create&re-set permanent
19695 buffer-local variables.
19696
196972007-12-09 Juri Linkov <juri@jurta.org>
19698
19699 * buffer.c (Frename_buffer): Change interactive spec from "s" to
19700 Lisp code that uses `read-buffer' with current buffer as default.
19701
197022007-12-08 Michael Albinus <michael.albinus@gmx.de>
19703
19704 * dbusbind.c (xd_read_message): Generate an event for every
19705 registered handler. There might be several handlers registered
19706 for the same signal.
19707 (Fdbus_register_signal): Don't overwrite a registration for the
19708 same signal. Add a new registration if handlers are different.
19709 (Vdbus_registered_functions_table): Rework doc string.
19710
197112007-12-07 Michael Albinus <michael.albinus@gmx.de>
19712
19713 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19714 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19715 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19716 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19717 Unify argument lists.
19718 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19719 arguments and hash table keys. Use unique name for service.
19720 (Fdbus_unregister_signal): Remove checks.
19721 (Vdbus_registered_functions_table): Fix doc string.
19722
197232007-12-05 Magnus Henoch <mange@freemail.hu>
19724
19725 * process.c (make_process): Initialize pty_flag to 0.
19726
197272007-12-05 Jason Rumney <jasonr@gnu.org>
19728
19729 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19730 specified XBMs.
19731
197322007-12-05 Richard Stallman <rms@gnu.org>
19733
19734 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19735
197362007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19737
19738 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19739 New variable.
19740 (mac_try_close_socket) [MAC_OSX]: New function.
19741 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19742 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19743
19744 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19745 Use mac_try_close_socket.
19746
197472007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19748
19749 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19750 reloc_base.
19751 (copy_dysymtab): Compute relocation base here.
19752 (rebase_reloc_address) [__ppc64__]: New function.
19753 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19754 changed.
19755
197562007-12-05 Jason Rumney <jasonr@gnu.org>
19757
19758 * w32proc.c (sys_spawnve): Quote args with wildcards.
19759
197602007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19761
19762 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19763 __objc_* sections.
19764 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19765
197662007-12-05 Michael Albinus <michael.albinus@gmx.de>
19767
19768 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19769 Move check for Vdbus_registered_functions_table to
19770 xd_read_queued_messages.
19771 (xd_read_queued_messages): Protect xd_read_message calls by
19772 internal_condition_case_1.
19773
197742007-12-04 Michael Albinus <michael.albinus@gmx.de>
19775
19776 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19777 Qdbus_system_bus and Qdbus_session_bus, respectively.
19778 (Vdbus_intern_symbols): Remove.
19779 (Vdbus_registered_functions_table): New hash table.
19780 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19781 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19782 Rewrite in order to manage registered functions by hash table
19783 Vdbus_registered_functions_table.
19784
197852007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19786
19787 * xterm.c: Update URL to Window Manager Specification in comment.
19788
197892007-12-02 Michael Albinus <michael.albinus@gmx.de>
19790
19791 * config.in (HAVE_DBUS): Add.
19792
19793 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19794 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19795 (obj): Add $(DBUS_OBJ).
19796 (LIBES): Add $(DBUS_LIBS).
19797 (dbusbind.o): New target.
19798
19799 * dbusbind.c: New file.
19800
19801 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19802
19803 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19804 (Qdbus_event): New Lisp symbol.
19805 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19806 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 19807 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
19808
19809 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19810
198112007-12-01 Richard Stallman <rms@gnu.org>
19812
19813 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19814
198152007-11-30 Jason Rumney <jasonr@gnu.org>
19816
19817 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19818 (w32con_reset_terminal_modes): Clear screen buffer.
19819 (w32_face_attributes): Don't use color indexes that are out of range.
19820 Only reverse the default colors.
19821
19822 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19823 WINDOWSNT.
19824
19825 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19826
198272007-11-29 Jason Rumney <jasonr@gnu.org>
19828
19829 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19830 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19831 if the terminal colors are initialized.
19832 (unspecified_fg, unspecified_bg): Remove unused declarations.
19833
198342007-11-29 Andreas Schwab <schwab@suse.de>
19835
19836 * keyboard.c (apply_modifiers): Fix typo.
19837
198382007-11-29 Richard Stallman <rms@gnu.org>
19839
19840 * keymap.c (Fcurrent_local_map): Doc fix.
19841
198422007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19843
19844 * s/gnu-kfreebsd.h: New file.
19845
198462007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19847
19848 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19849 Don't cast redundantly.
19850
19851 * keyboard.c (KEY_TO_CHAR): New macro.
19852 (parse_modifiers, apply_modifiers): Accept integer arguments.
19853 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19854 for chars and symbol keys.
19855 After doing such remapping, apply function-key-map again.
19856
198572007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19858
19859 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19860 compiled anymore.
19861
198622007-11-26 Andreas Schwab <schwab@suse.de>
19863
19864 * process.c (list_processes_1): Fix indentation level of the
19865 command column.
19866
198672007-11-23 Andreas Schwab <schwab@suse.de>
19868
19869 * editfns.c (Fformat): Handle %c specially since it requires the
19870 argument to be of type int.
19871
198722007-11-23 Markus Triska <markus.triska@gmx.at>
19873
19874 * emacs.c (main): Call init_editfns before init_process, since
19875 init_process sets Vprocess_connection_type depending on OS release.
19876
198772007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19878
19879 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19880 (find_symbol_value): Use do_symval_forwarding.
19881
19882 * data.c (set_internal): Set the value in the `cons-cell' (for
19883 Buffer_Local_values) not only for frame-local variables.
19884
198852007-11-22 Andreas Schwab <schwab@suse.de>
19886
19887 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19888 values to sprintf.
19889 * keymap.c (Fsingle_key_description): Likewise.
19890 * print.c (print_object): Likewise.
19891
198922007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19893
19894 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19895 file for image is nil.
19896
198972007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19898
19899 * term.c: Include stdarg.h.
19900 (fatal): Implement using varargs.
19901 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19902
199032007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19904
19905 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19906 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19907 Update call to buffer_slot_type_mismatch.
19908 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19909 (buffer_slot_type_mismatch): Update.
19910 * buffer.c (buffer_local_types): Remove.
19911 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19912 (defvar_per_buffer): Set the type in the buffer_objfwd.
19913
199142007-11-21 Jason Rumney <jasonr@gnu.org>
19915
19916 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19917 CreateFileMapping returns NULL on failure.
19918
199192007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19920
19921 * search.c (Fset_match_data): Remove the `evaporate' feature.
19922 (unwind_set_match_data): Don't use the `evaporate' feature.
19923
199242007-11-21 Jason Rumney <jasonr@gnu.org>
19925
19926 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19927
19928 * w32console.c (w32con_write_glyphs): Remove unused variables.
19929
199302007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19931
19932 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19933
19934 * s/darwin.h (MULTI_KBOARD): Remove.
19935
19936 * macfns.c (x_create_tip_frame, Fx_create_frame)
19937 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19938
199392007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19940
19941 * buffer.c (Fbuffer_local_value): Remove redundant test.
19942 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19943 than in `current-buffer' to match the comment.
19944 Do the swap using swap_in_global_binding.
19945
19946 * data.c (store_symval_forwarding, set_internal):
19947 * eval.c (specbind): Remove dead code.
19948
19949 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19950 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19951 Since we do not want to see internal Lisp_*fwd objects here.
19952
199532007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19954
19955 * sysdep.c (init_system_name): Use getaddrinfo if available.
19956
19957 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19958 (x_scroll_bar_note_movement): start, end, with, height in struct
19959 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19960
199612007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19962
19963 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19964
199652007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19966
19967 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19968 This undoes Richard's change of 14-Oct-2002.
19969
19970 * alloc.c (allocate_other_vector):
19971 * lisp.h (allocate_other_vector): Remove.
19972
19973 * window.c (struct save_window_data): Move non-lisp data to the end
19974 and make it `int' rather than Lisp_Object.
19975 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19976 Done wrap/unwrap integer values.
19977 (Fset_window_configuration, compare_window_configurations):
19978 Update use of fields to their new types.
19979
19980 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19981 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19982 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19983 (SET_SCROLL_BAR_X_WINDOW): Remove.
19984 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19985 Access the new x_window field directly.
19986 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19987 Don't wrap/unwrap integers into Lisp_Objects.
19988 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19989 (x_scroll_bar_report_motion):
19990 Don't wrap/unwrap integers into Lisp_Objects.
19991 (x_term_init): Use SDATA.
19992 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19993 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19994 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19995 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19996 * xfns.c (x_set_background_color):
19997 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19998 Access the new x_window field directly.
19999
20000 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
20001 (allocate_pseudovector): Make non-static.
20002
20003 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
20004 (allocate_pseudovector): Declare.
20005 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
20006
200072007-11-15 Andreas Schwab <schwab@suse.de>
20008
20009 * editfns.c (Fformat): Correctly format EMACS_INT values.
20010 Also take precision into account when formatting an integer.
20011
20012 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
20013
200142007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
20015
20016 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
20017 (syms_of_keyboard): Defsubr it.
20018
20019 * data.c (swap_in_global_binding): Fix longstanding bug where
20020 store_symval_forwarding was not called with the right second argument,
20021 thus causing objfwd-ing from being dropped.
20022
200232007-11-14 Juanma Barranquero <lekktu@gmail.com>
20024
20025 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
20026 (Fx_display_pixel_height, Fx_display_planes)
20027 (Fx_display_color_cells, Fx_server_max_request_size)
20028 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20029 (Fx_display_visual_class, Fx_display_save_under):
20030 * w32fns.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_screens)
20034 (Fx_display_mm_height, Fx_display_mm_width)
20035 (Fx_display_backing_store, Fx_display_visual_class)
20036 (Fw32_select_font, Fx_display_save_under):
20037 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
20038 (Fx_display_pixel_height, Fx_display_planes)
20039 (Fx_display_color_cells, Fx_server_max_request_size)
20040 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20041 (Fx_display_save_under): Fix typos in docstrings.
20042
200432007-11-14 Juanma Barranquero <lekktu@gmail.com>
20044
20045 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
20046 corresponding to deleted entries; they are an implementation detail.
20047 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
20048 Remove variables.
20049 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
20050 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
20051 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
20052 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
20053 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
20054 (Fw32_define_rgb_color, Fw32_load_color_file)
20055 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
20056 Fix typos in docstrings.
20057 (Fx_server_version): Reflow docstring.
20058 (Fw32_shell_execute): Doc fixes.
20059
200602007-11-13 Juanma Barranquero <lekktu@gmail.com>
20061
20062 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
20063 if w32_parse_hot_key returned nil.
20064
200652007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
20066
20067 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
20068
200692007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 20070
aac0c6e3
MR
20071 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
20072
20073 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
20074
20075 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
20076 Remove W32_SCROLL_BAR_CLICK_EVENT.
20077
20078 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
20079 Add MULTIMEDIA_KEY_EVENT.
20080
20081 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
20082 (lispy_multimedia_keys) [WINDOWSNT]: New array.
20083 (make_lispy_event) [WINDOWSNT]: Use it to translate
20084 MULTIMEDIA_KEY_EVENT.
20085
20086 * w32term.h (WM_APPCOMMAND): Define if not already.
20087 (GET_APPCOMMAND_LPARAM): Likewise.
20088
20089 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
20090 WM_APPCOMMAND.
20091
20092 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
20093 (syms_of_w32fns): Export and initialize it.
20094 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
20095
200962007-11-09 Chong Yidong <cyd@stupidchicken.com>
20097
20098 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
20099 twice.
20100
20101 * xdisp.c (handle_face_prop): Fix last change.
20102
201032007-11-09 Richard Stallman <rms@gnu.org>
20104
20105 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
20106 not just for after-strings and before-strings.
20107 Call face_for_overlay_string and pass the overlay to it.
20108 (handle_display_prop): Determine whether property came from an overlay.
20109 Pass OVERLAY arg to handle_single_display_spec.
20110 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
20111 (load_overlay_strings): Fill in it->string_overlays.
20112 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
20113
20114 * xfaces.c (face_for_overlay_string): Function renamed from
20115 face_at_buffer_position_no_overlays, and add arg OVERLAY.
20116
20117 * dispextern.h (struct it): New elt string_overlays.
20118 New elt from_overlay, also in stack.
20119 Rearrange a few elements.
20120 (face_for_overlay_string): Decl renamed from
20121 face_at_buffer_position_no_overlays, and add argument.
20122
201232007-11-09 Richard Stallman <rms@gnu.org>
20124
20125 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
20126 to get the base face for an overlay string.
20127
20128 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
20129
20130 * xfaces.c (face_at_buffer_position_no_overlays): New function.
20131
20132 * xdisp.c (handle_stop): Move some code out of loop.
20133
201342007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20135
20136 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
20137 Fix conversion from Lisp object to ATSUFontID.
20138
201392007-11-09 Jason Rumney <jasonr@gnu.org>
20140
20141 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
20142
201432007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20144
20145 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
20146 Don't assume regions are aligned to page boundary.
20147 (print_load_command_name): Add LC_UUID if defined.
20148
201492007-11-09 Richard Stallman <rms@gnu.org>
20150
20151 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
20152
201532007-11-07 Jason Rumney <jasonr@gnu.org>
20154
20155 * s/windows95.h: Remove.
20156
201572007-11-06 Jan Djärv <jan.h.d@swipnet.se>
20158
20159 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
20160 abort with a message on unhandled store_type values.
20161
201622007-11-01 Jan Djärv <jan.h.d@swipnet.se>
20163
20164 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
20165 Remove HAVE_X11R5 and HAVE_X11R4.
20166
201672007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20168
20169 * Makefile.in: Remove references to sunfns.c and sunfns.o.
20170
201712007-11-01 Johan Bockgård <bojohan@gnu.org>
20172
20173 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
20174 Don't set s->stippled_p here, since it has already been set by
20175 x_set_glyph_string_gc from x_draw_glyph_string.
20176
201772007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20178
20179 * sunfns.c: Remove file.
20180
20181 * m/sun386.h:
20182 * m/sun2.h:
20183 * m/sparc.h: Remove Sun windows code.
20184
201852007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
20186
20187 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
20188 (init_keyboard): Set current_kboard's window-system to nil.
20189 (tty_read_avail_input): Typo.
20190 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
20191
201922007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
20193
20194 * s/usg5-4.h:
20195 * s/usg5-3.h:
20196 * s/ptx.h:
20197 * m/is386.h:
20198 * m/ibmps2-aix.h:
20199 * Makefile.in: Remove all mentions of X10.
20200
20201 * dispnew.c (syms_of_display): Don't mention version 10.
20202
202032007-10-28 Juanma Barranquero <lekktu@gmail.com>
20204
20205 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
20206 ($(BLD)/abbrev.$(O)): Remove.
20207
202082007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
20209
20210 Rewrite abbrev.c in Elisp.
20211 * image.c (Qcount): Don't declare as extern.
20212 (syms_of_image): Initialize and staticpro `Qcount'.
20213 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
20214 * emacs.c (main): Don't call syms_of_abbrev.
20215 * Makefile.in (obj): Remove abbrev.o.
20216 (abbrev.o): Remove.
20217 * abbrev.c: Remove.
20218
202192007-10-26 Martin Rudalics <rudalics@gmx.at>
20220
20221 * window.c (window_min_size_2): Don't count header-line.
20222
202232007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
20224
20225 * frame.h (struct frame): Move all bit fields after the first bit
20226 field to take advantage of the available space. Group all the
20227 chars together to reduce wasted space due to padding.
20228
202292007-10-26 Juanma Barranquero <lekktu@gmail.com>
20230
20231 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
20232
20233 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
20234 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
20235 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
20236 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
20237 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
20238 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
20239 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
20240 (last_marked, mark_object_loop_halt): Make static.
20241
20242 * frame.c (syms_of_frame) <delete-frame-functions>:
20243 Fix typo in docstring.
20244
202452007-10-25 Juanma Barranquero <lekktu@gmail.com>
20246
20247 * w32.c (init_environment): Fix tiny memory leak.
20248 (w32_get_resource): Remove unused variable `ok'.
20249
202502007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
20251
20252 Make `window-system' into a keyboard-local variable (rather than
20253 frame-local as done originally by multi-tty).
20254
20255 * keyboard.h (struct kboard): Add Vwindow_system.
20256 * keyboard.c (init_kboard): Set a default for Vwindow_system.
20257 (mark_kboards): Mark Vwindow_system.
20258
20259 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
20260 (init_display): Don't set the obsolete `window-system' frame-param.
20261
20262 * xterm.c (x_term_init):
20263 * w32term.c (w32_create_terminal):
20264 * term.c (init_tty): Set Vwindow_system.
20265 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
20266 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
20267
20268 * xfns.c (Fx_create_frame, x_create_tip_frame):
20269 * w32fns.c (Fx_create_frame, x_create_tip_frame):
20270 * macfns.c (Fx_create_frame):
20271 Don't set the obsolete `window-system' frame-param.
20272
20273 * frame.h (Qwindow_system): Remove.
20274 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
20275 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
20276
202772007-10-24 Richard Stallman <rms@gnu.org>
20278
20279 * frame.c (x_figure_window_size): For fullscreen case,
20280 set USPosition | PPosition without clobbering rest of window_prompting.
20281
20282 * keyboard.c (Fcurrent_idle_time): Doc fix.
20283
20284 * print.c (Fwith_output_to_temp_buffer): Doc fix.
20285
202862007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
20287
20288 * process.c (unwind_request_sigio): Only define if __ultrix__.
20289
20290 * callproc.c (child_setup): Remove spurious *.
20291
20292 * lisp.h (Fget_text_property): Declare.
20293 (have_menus_p): Declare it here rather than in sys-dep header files.
20294 * macterm.h (have_menus_p):
20295 * msdos.h (have_menus_p):
20296 * xterm.h (have_menus_p): Remove.
20297
20298 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20299 (Fmake_variable_frame_local): Just check the variable's const-ness
20300 rather than checking nil or t.
20301
203022007-10-22 Jason Rumney <jasonr@gnu.org>
20303
20304 * w32fns.c: Include math.h.
20305 (w32_abort): Declaration moved to nt/config.nt.
20306
20307 * s/ms-w32.h (HAVE_STDLIB_H): Define.
20308 (abort): Redefinition moved to nt/config.nt.
20309
20310 * m/windowsnt.h: Remove.
20311
203122007-10-22 Juanma Barranquero <lekktu@gmail.com>
20313
20314 * emacs.c (Fdump_emacs): Fix typo in message.
20315 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
20316 <installation-directory>: Reflow docstring.
20317
203182007-10-22 Juri Linkov <juri@jurta.org>
20319
20320 * minibuf.c: Allow minibuffer default to be a list of default values.
20321 With empty input use the first element of this list as returned default.
20322 (string_to_object)
20323 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
20324 (read_minibuf): If defalt is cons, set histstring to its car.
20325 (Fread_string): If default_value is cons, set val to its car.
20326 (Fread_buffer): If def is cons, use its car.
20327 (Fcompleting_read): If defalt is cons, set val to its car.
20328
203292007-10-21 Michael Albinus <michael.albinus@gmx.de>
20330
20331 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
20332
203332007-10-20 Juanma Barranquero <lekktu@gmail.com>
20334
20335 * doc.c (Fdocumentation): Check for advice in all cases.
20336
203372007-10-19 Chong Yidong <cyd@stupidchicken.com>
20338
20339 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
20340
203412007-10-19 Richard Stallman <rms@gnu.org>
20342
20343 * doc.c (Fdocumentation): Check for and handle an advised function.
20344
203452007-10-19 Juanma Barranquero <lekktu@gmail.com>
20346
20347 * process.c (Fset_process_filter): Doc fix.
20348
203492007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
20350
20351 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
20352 which caused key-translation-map to applied repeatedly (thus breaking
20353 double-mode).
20354
203552007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20356
20357 * xselect.c (x_own_selection, x_handle_selection_clear)
20358 (x_clear_frame_selections):
20359 * w32menu.c (list_of_panes, list_of_items):
20360 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
20361 * textprop.c (validate_plist, interval_has_all_properties)
20362 (interval_has_some_properties, interval_has_some_properties_list)
20363 (add_properties, text_property_list):
20364 * process.c (Fget_buffer_process, list_processes_1, status_notify):
20365 * minibuf.c (Fassoc_string):
20366 * macselect.c (x_own_selection, x_clear_frame_selections)
20367 (Fx_disown_selection_internal):
20368 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
20369 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
20370
203712007-10-17 Chong Yidong <cyd@stupidchicken.com>
20372
20373 * process.c: Link to libs for calling res_init() if available.
20374 (Fmake_network_process): Call res_init() before getaddrinfo or
20375 gethostbyname, if possible.
20376
203772007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20378
20379 * lread.c (read1): Set pvectype for char_tables.
20380
20381 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
20382 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
20383 Add type checks.
20384 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
20385
20386 * alloc.c (free_misc): Use XMISCTYPE.
20387 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
20388
203892007-10-17 Glenn Morris <rgm@gnu.org>
20390
20391 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
20392 (syms_of_minibuf): Add Qcompletion_ignore_case.
20393 * dired.c (Qcompletion_ignore_case): Change to external.
20394 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
20395 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
20396 (Fread_file_name): Use it rather than intern'ing.
20397
20398 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
20399 (Fread_coding_system): Ignore case of user input.
20400
204012007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20402
20403 * xdisp.c (handle_display_prop): Ignore display specs after
20404 replacing one when string text is being replaced.
20405 (handle_single_display_spec): Pretend as if characters with display
20406 property haven't been consumed only when buffer text is being replaced.
20407
204082007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
20409
20410 * xfns.c (Fx_create_frame, Fx_display_list):
20411 * window.c (window_fixed_size_p, enlarge_window)
20412 (shrink_window_lowest_first):
20413 * macterm.c (init_font_name_table):
20414 * macfns.c (Fx_create_frame, Fx_display_list):
20415 * lread.c (close_load_descs):
20416 * keyboard.c (read_char_x_menu_prompt):
20417 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
20418 * coding.c (code_convert_region_unwind): Test the type of an object
20419 rather than just !NILP before extracting data from it.
20420
20421 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
20422
20423 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
20424 (XMISCANY): New macro.
20425 (XMISCTYPE): Use it.
20426 (struct Lisp_Misc_Any): New type.
20427 (union Lisp_Misc): Use it.
20428 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
20429 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
20430 (find_symbol_value, set_internal, default_value, Fset_default)
20431 (Fmake_variable_buffer_local, Fmake_local_variable)
20432 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
20433 (Flocal_variable_if_set_p, Fvariable_binding_locus):
20434 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
20435 * alloc.c (allocate_buffer): Set the size and tag.
20436 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
20437 Use XMISCANY.
20438 (die): Follow the GNU convention for error messages.
20439 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
20440 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
20441 tag any more.
20442 (set_buffer_internal_1):
20443 * frame.c (store_frame_param):
20444 * eval.c (specbind):
20445 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
20446
20447 * doc.c (Fsnarf_documentation): Simplify.
20448
204492007-10-14 Juanma Barranquero <lekktu@gmail.com>
20450
20451 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
20452 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
20453
204542007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
20455
20456 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
20457
204582007-10-14 Juanma Barranquero <lekktu@gmail.com>
20459
20460 * eval.c (do_autoload): Don't save autoloads.
20461
20462 * data.c (Ffset): Save autoload of the function being set.
20463
204642007-10-07 John Paul Wallington <jpw@pobox.com>
20465
20466 * xfns.c (x_create_tip_frame): Set the `display-type' frame
20467 parameter before setting up faces.
20468
204692007-10-13 Eli Zaretskii <eliz@gnu.org>
20470
20471 * ccl.c (Fregister_code_conversion_map):
20472 * keyboard.c (append_tool_bar_item): Reformat last change.
20473
20474 * lisp.h (eabs): Rename from `abs'. All callers changed.
20475
204762007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
20477
20478 * buffer.c (add_overlay_mod_hooklist):
20479 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
20480 * fontset.c (make_fontset):
20481 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
20482 (append_tool_bar_item):
20483 * macmenu.c (grow_menu_items):
20484 * w32menu.c (grow_menu_items):
20485 * xmenu.c (grow_menu_items): Use larger_vector.
20486
204872007-10-13 Eli Zaretskii <eliz@gnu.org>
20488
20489 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
20490 selected frame'' on MSDOS).
20491
204922007-10-12 Martin Rudalics <rudalics@gmx.at>
20493
20494 * frame.c (Qexplicit_name): New variable.
20495 (x_report_frame_params): Report it in parameter alist.
20496 (syms_of_frame): Intern and staticpro it.
20497
204982007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
20499
20500 * macfns.c (x_create_tip_frame): Set terminal for frame.
20501
205022007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
20503
20504 * frame.c (Qenvironment): Remove.
20505 (syms_of_frame) <Qenvironment>: Don't initialize.
20506 (Fdelete_frame): Don't treat the `environment' param specially.
20507 * frame.h (Qenvironment): Don't declare.
20508 * callproc.c (set_initial_environment): Don't set unused frame param.
20509
20510 * frame.c (Fframe_with_environment): Remove.
20511 (syms_of_frame) <Sframe_with_environment>: Don't declare.
20512
20513 * lisp.h (Fframe_with_environment): Don't declare.
20514
205152007-10-10 Juanma Barranquero <lekktu@gmail.com>
20516
20517 * indent.c (indent_tabs_mode, last_known_column)
20518 (last_known_column_modified): Make static.
20519 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
20520
205212007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
20522
20523 * puresize.h (BASE_PURESIZE): Increase to 1170000.
20524
205252007-10-09 Jason Rumney <jasonr@gnu.org>
20526
20527 * w32term.c (x_set_window_size): Disable code that attempts to tell
20528 Lisp code about a size change before it actually happens.
20529
205302007-10-09 Richard Stallman <rms@gnu.org>
20531
20532 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
20533 return HANDLED_RETURN.
20534
205352007-10-08 Martin Rudalics <rudalics@gmx.at>
20536
20537 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
20538 when there's an unread command event.
20539
20540 * frame.c (focus_follows_mouse): Move here from frame.el to allow
20541 window autoselection act appropriately when leaving selected frame.
20542 (syms_of_frame): Initialize focus_follows_mouse.
20543 * frame.h (focus_follows_mouse): Extern it.
20544 * macterm.c (XTread_socket): When focus_follows_mouse is nil
20545 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
20546 * msdos.c (dos_rawgetc): Likewise.
20547 * w32term.c (w32_read_socket): Likewise.
20548 * xterm.c (handle_one_xevent): Likewise.
20549 * xdisp.c (syms_of_xdisp): In doc-string of
20550 mouse-autoselect-window mention focus-follows-mouse.
20551
205522007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20553
20554 * macterm.c (mac_load_query_font): Fix missing return value.
20555 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
20556 Add BLOCK_INPUT.
20557
205582007-10-08 Richard Stallman <rms@gnu.org>
20559
20560 * xdisp.c (get_window_cursor_type): Implement documented behavior
20561 for cursor-in-non-selected-windows = t.
20562
205632007-10-08 Jason Rumney <jasonr@gnu.org>
20564
20565 * w32.c (w32_get_resource): Always close registry keys.
20566
205672007-10-08 Jason Rumney <jasonr@gnu.org>
20568
20569 * makefile.w32-in (LIBS): Add COMCTL32.
20570
20571 * w32fns.c (globals_of_w32fns): Init common controls.
20572
205732007-10-08 Richard Stallman <rms@gnu.org>
20574
20575 * image.c (our_memory_buffer): Rename from omfib_buffer.
20576
205772007-10-08 Richard Stallman <rms@gnu.org>
20578
20579 * buffer.c (Foverlays_at): Doc fix.
20580
205812007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
20582
20583 * fns.c (Fplist_put): Preserve uneven tail data.
20584
205852007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
20586
20587 * termhooks.h (enum event_kind): Remove trailing comma.
20588
20589 * frame.h (enum): Remove trailing comma.
20590
205912007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20592
20593 * w32proc.c (delete_child): Don't terminate threads of zombies.
20594
205952007-10-08 Martin Rudalics <rudalics@gmx.at>
20596
20597 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
20598
20599 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
20600 last-repeatable-command.
20601 (init_kboard): Initialize Vlast_repeatable_command.
20602 (command_loop_1): Set it to real_this_command unless that was
20603 bound to an input event.
20604 (mark_kboards): Mark it.
20605
206062007-10-08 Richard Stallman <rms@gnu.org>
20607
20608 * eval.c (condition-case): Doc fix.
20609
206102007-10-08 Masatake YAMATO <jet@gyve.org>
20611
20612 * xfaces.c (tty_supports_face_attributes_p): Fix code
20613 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
20614 was copied and not edited.
20615
206162007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
20617
20618 Add new `input-decode-map' keymap and use it for terminal
20619 escape sequences.
20620 * keyboard.h (struct kboard): Add Vinput_decode_map.
20621 Remove Vlocal_key_translation_map.
20622 * keyboard.c (read_key_sequence): Add support for input-decode-map.
20623 (init_kboard): Init input-decode-map.
20624 Replace local-key-translation-map back with key-translation-map.
20625 (syms_of_keyboard): Declare input-decode-map.
20626 Remove local-key-translation-map. Update docstrings.
20627 (mark_kboards): Mark Vinput_decode_map.
20628 Don't mark Vlocal_key_translation_map.
20629 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
20630 Replace local-key-translation-map back with key-translation-map.
20631 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
20632 Bind in input-decode-map rather than function-key-map.
20633
20634 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
20635 This was made redundant by the previous introduction of XSETPVECTYPE.
20636
206372007-10-09 Richard Stallman <rms@gnu.org>
20638
20639 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
20640
206412007-09-29 Richard Stallman <rms@gnu.org>
20642
20643 * eval.c (internal_condition_case_2, internal_condition_case_1)
20644 (internal_condition_case): Reenable abort if x_catching_errors ()
20645 to see if that really happens and why.
20646
206472007-10-06 Andreas Schwab <schwab@suse.de>
20648
20649 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
20650
206512007-10-04 Juanma Barranquero <lekktu@gmail.com>
20652
20653 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
20654
206552007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
20656
20657 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20658
206592007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
20660
20661 * window.h (struct window):
20662 * window.c (struct save_window_data, struct saved_window):
20663 * termhooks.h (struct terminal):
20664 * process.h (struct Lisp_Process):
20665 * frame.h (struct frame):
20666 * buffer.h (struct buffer):
20667 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20668 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20669 The size field of (pseudo)vectors is now unsigned.
20670 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20671
20672 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20673 Turn `count' into an integer.
20674
20675 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20676 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20677 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20678 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20679 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20680
20681 * alloc.c (allocate_pseudovector): New fun.
20682 (ALLOCATE_PSEUDOVECTOR): New macro.
20683 (allocate_window, allocate_terminal, allocate_frame)
20684 (allocate_process): Use it.
20685 (mark_vectorlike): New function.
20686 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20687 (mark_terminals): Use it.
20688 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20689 (Fmake_byte_code): Use XSETPVECTYPE.
20690
20691 * frame.c (Fframe_parameters): Minor simplification.
20692
20693 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20694
20695 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20696
20697 * buffer.c (Fget_buffer_create, init_buffer_once):
20698 * lread.c (defsubr):
20699 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20700
20701 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20702 defined differently in the m/*.h files.
20703 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
20704 (XSETPVECTYPE): New macro.
20705 (XSETPSEUDOVECTOR): Use it.
20706
20707 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20708 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20709
20710 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20711 * lread.c (defvar_per_buffer):
20712 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20713
20714 * window.c (candidate_window_p): Only consider as visible frames that
20715 are on the same terminal.
20716
20717 * m/ibms390x.h (MARKBIT): Remove unused macro.
20718
207192007-10-01 Juanma Barranquero <lekktu@gmail.com>
20720
20721 * lread.c (Fload): Fix typo in docstring.
20722
207232007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20724
20725 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20726 of a non-zero value can't yield zero.
20727
207282007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20729
20730 * term.c (term_clear_mouse_face, term_mouse_highlight)
20731 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20732
20733 * print.c (safe_debug_print): Use XHASH.
20734
20735 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20736 Lisp elements such as tags.
20737 (XHASH): New macro.
20738 (EQ): Use it.
20739 (SREF, SSET, STRING_COPYIN): Use SDATA.
20740 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20741
20742 * alloc.c (mark_terminal): Remove left-over declaration.
20743 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20744 (allocate_vectorlike): Remove type argument. Adjust callers.
20745 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20746 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20747
20748 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20749 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20750 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20751 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20752 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20753 Use them.
20754
20755 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20756 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20757 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20758
207592007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20760
20761 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20762 loaded by default.
20763
207642007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20765
20766 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20767 on this tty.
20768 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20769
20770 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20771 Update all users.
20772 (handle_one_term_event): Use Gpm_DrawPointer.
20773 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20774 Signal errors instead of returning nil. Always return nil.
20775 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20776 Make it a noop if gpm-mouse was not activated.
20777 (syms_of_term): Update names.
20778
207792007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20780
20781 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20782 (init_sys_modes): Check that gpm_tty is the current tty.
20783
20784 * alloc.c (allocate_terminal): Set the vector size to only count the
20785 lisp fields. Initialize those to nil.
20786 (mark_object): Don't treat terminals specially.
20787 (mark_terminal): Remove.
20788 (mark_terminals): Use mark_object instead.
20789
20790 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20791 the GC to the beginning.
20792
20793 * indent.h:
20794 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20795
20796 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20797
207982007-09-25 Jason Rumney <jasonr@gnu.org>
20799
20800 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20801
20802 * w32console.c (create_w32cons_output): Remove.
20803
20804 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20805
20806 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20807 (reset_sys_modes): Use reset_terminal_modes_hook.
20808
208092007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20810
20811 * eval.c (do_autoload): Don't output any message.
20812
208132007-09-24 Juri Linkov <juri@jurta.org>
20814
20815 * emacs.c (standard_args): Change priority of "--no-splash"
20816 from 40 to 3. Add "--no-desktop" with the same priority.
20817
208182007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20819
20820 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20821 and optimize the case where they are all 1.
20822
208232007-09-23 Johannes Weiner <hannes@saeurebad.de>
20824
20825 * lisp.h (abs): Define if not defined.
20826 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20827 Don't define `abs', since it's defined in lisp.h.
20828
208292007-09-22 Eli Zaretskii <eliz@gnu.org>
20830
20831 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20832 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20833 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20834 (init_tty): Use DEV_TTY instead of "/dev/tty".
20835 [WINDOWSNT]: No need to protect from NAME arg being null.
20836
208372007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20838
20839 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20840 up the tty state.
20841
208422007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20843
20844 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20845 (gpm_tty): Change its type.
20846 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20847 (gpm_tty): Change its type and initialize it.
20848 (Fterm_open_connection): Check the frame is indeed a tty.
20849 Use the new gpm_tty.
20850 (Fterm_close_connection): Use the new gpm_tty.
20851 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20852 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20853
208542007-09-21 Juanma Barranquero <lekktu@gmail.com>
20855
20856 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20857 underline_color, to draw strike-through.
20858
208592007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20860
20861 * lisp.h (allocate_terminal): Declare.
20862
20863 * window.c (candidate_window_p): Consider frames that are being placed
20864 by the user as somewhere between visible and iconified.
20865 (window_loop): Prefer windows on the current frame.
20866 (Fselect_window): Move the use of select-frame to the beginning so we
20867 can just delegate all the work (it'll call us back anyway).
20868
20869 * frame.c (Qdisplay_environment_variable):
20870 * frame.h (Qdisplay_environment_variable): Delete.
20871
20872 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20873 of the first arg, since that value may be a union.
20874
20875 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20876 parameter rather than Qdisplay_environment_variable. If all else
20877 fails, look for DISPLAY in initial-environment.
20878
208792007-09-21 Glenn Morris <rgm@gnu.org>
20880
20881 * Makefile.in (emacstool): Remove target.
20882 (lisp, shortlisp): Remove termdev.elc.
20883
208842007-09-21 Markus Triska <markus.triska@gmx.at>
20885
20886 * xterm.c (x_delete_display): Compile session management conditionally.
20887
208882007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20889
20890 * callproc.c (getenv_internal_1): New function.
20891 (getenv_internal): Use it.
20892 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20893
20894 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20895 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20896 (Fset_terminal_parameter): Work with dead terminals as well.
20897 (Fmodify_terminal_parameters): Remove.
20898
20899 * terminal.c (get_terminal): Handle terminals.
20900 Make sure the terminal returned is live.
20901 (create_terminal): Use allocate_terminal.
20902 (mark_terminals): Move to alloc.c.
20903 (delete_terminal): Use terminal->name as liveness status.
20904 NULL out fields after freeing their contents.
20905 Don't deallocate the object.
20906 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20907 rather than an int.
20908 (Fterminal_live_p): Accept non-integer arguments.
20909 (Fterminal_list): Return terminal objects rather than an ints.
20910
20911 * alloc.c (enum mem_type): New member for `terminal' objects.
20912 (allocate_terminal): New function.
20913 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20914 Handle terminals.
20915 (mark_terminal): New fun.
20916 (mark_terminals): Move from terminal.c.
20917
20918 * term.c (get_tty_terminal): Don't treat output_initial specially.
20919 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20920 (delete_tty): Use terminal->name as liveness status.
20921
20922 * termhooks.h (struct terminal): Make it into a pseudovector.
20923 Remove `deleted' replaced by checking `name's nullness.
20924
20925 * print.c (print_object): Handle terminals.
20926
20927 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20928 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20929
20930 * frame.c (make_terminal_frame):
20931 * keyboard.c (tty_read_avail_input):
20932 * w32term.c (x_delete_terminal):
20933 * xfns.c (Fx_create_frame, x_create_tip_frame):
20934 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20935
209362007-09-20 Glenn Morris <rgm@gnu.org>
20937
20938 * process.c (Fmake_network_process): Doc fix.
20939
209402007-09-19 Jason Rumney <jasonr@gnu.org>
20941
20942 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20943
209442007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20945
20946 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20947 Fix a C warning regarding variable constness.
20948
20949 * xterm.c (handle_one_xevent): Fix a C warning.
20950
209512007-09-18 Jason Rumney <jasonr@gnu.org>
20952
20953 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20954
209552007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20956
20957 * gtkutil.c (gdpy_def): New variable.
20958 (xg_initialize): Initialize gdpy_def.
20959 (xg_display_close): If no other display exists, set gdpy_def to a
20960 new connection.
20961
209622007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20963
20964 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20965 when we have no file name for the icon.
20966 (xg_tool_bar_expose_callback): Remove.
20967 (xg_create_tool_bar): Don't connect expose signal to
20968 xg_tool_bar_expose_callback.
20969 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20970
209712007-09-16 Andreas Schwab <schwab@suse.de>
20972
20973 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20974 values instead of zapping them.
20975
209762007-09-14 Glenn Morris <rgm@gnu.org>
20977
20978 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20979 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20980 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20981 scope and rename to omfib_buffer for clarity.
20982 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20983
209842007-09-14 Kenichi Handa <handa@m17n.org>
20985
20986 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20987
209882007-09-13 Jason Rumney <jasonr@gnu.org>
20989
20990 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20991
20992 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20993
20994 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20995 (mac_term_init): Call here instead, passing rif.
20996
209972007-09-13 Glenn Morris <rgm@gnu.org>
20998
20999 * s/hpux.h: No longer define `static' as nothing.
21000
210012007-09-13 Johan Bockgård <bojohan@gnu.org>
21002
21003 * callint.c (Fcall_interactively): Remove unused var `fun'.
21004
210052007-09-12 Romain Francoise <romain@orebokech.com>
21006
21007 * window.c (prefer_window_split_horizontally, display_buffer):
21008 Revert 2007-09-08 change.
21009
210102007-09-12 Glenn Morris <rgm@gnu.org>
21011
21012 * alloca.c: Remove file.
21013 * Makefile.in (alloca): Do not undef.
21014 (allocaobj, alloca.o): Remove.
21015 (otherobj): Remove allocaobj.
21016 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
21017 * regex.c (C_ALLOCA): Remove all references and code that was only
21018 used when this was defined.
21019 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
21020 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
21021 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
21022
21023 * Makefile.in (SOURCES, unlock, relock): Delete.
21024
21025 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
21026 (menu_grab_callback): All uses changed.
21027
21028 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
21029 (x_reply_selection_request): All uses changed.
21030
210312007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
21032
21033 * lread.c (load_warn_old_style_backquotes): Change message to look
21034 better when it appears in the middle of byte-compiler messages.
21035
210362007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
21037
21038 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
21039
21040 * xterm.c (x_create_terminal): Add comment.
21041
21042 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
21043
210442007-09-10 Richard Stallman <rms@gnu.org>
21045
21046 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
21047
210482007-09-10 Michaël Cadilhac <michael@cadilhac.name>
21049
21050 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
21051 (DEFUN): Document `intspec', use it instead of `prompt'.
21052
21053 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
21054
21055 * data.c (Finteractive_form): If the interactive specification starts
21056 with a `(', use it as a Lisp form.
21057
21058 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
21059 name and file modes.
21060
21061 * callint.c (Fcall_interactively): Comment fixes.
21062
210632007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
21064
21065 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
21066 and compiled functions.
21067
210682007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
21069
21070 * window.c (prefer_window_split_horizontally): New variable.
21071 (display_buffer): Consider splitting window horizontally depending
21072 on prefer_window_split_horizontally.
21073
210742007-09-08 Eli Zaretskii <eliz@gnu.org>
21075
21076 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
21077
210782007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21079
21080 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
21081
21082 * frame.c (x_set_frame_parameters): Check number is positive before
21083 using XFASTINT.
21084
21085 * window.c (freeze_window_start): Don't presume selected_window holds
21086 a window object.
21087 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
21088
210892007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
21090
21091 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
21092
210932007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21094
21095 * window.c (Vsplit_window_preferred_function): New var.
21096 (Fdisplay_buffer): Use it.
21097 (syms_of_window): Export, and initialize it.
21098
210992007-09-06 Pixel <pixel@mandriva.com> (tiny change)
21100
21101 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
21102
211032007-09-06 Glenn Morris <rgm@gnu.org>
21104
21105 * gtkutil.c (menu_grab_callback) <cnt>:
21106 * xselect.c (x_reply_selection_request) <cnt>: Move static
21107 variable to file scope.
21108
211092007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
21110
21111 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
21112 consistent values of selected_frame and selected_window.
21113
211142007-09-04 Jason Rumney <jasonr@gnu.org>
21115
21116 * w32console.c (initialize_w32_display): Zero unused hooks.
21117
211182007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21119
21120 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
21121 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
21122
211232007-09-04 Jason Rumney <jasonr@gnu.org>
21124
21125 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
21126 in w32console.c. Set up input. Remove XXX comments that have been
21127 confirmed as correct.
21128
21129 * s/ms-w32.h (MULTI_KBOARD): Define.
21130
21131 * w32console.c (one_and_only_w32cons): Remove.
21132 (initialize_w32_display): Take terminal argument.
21133
21134 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
21135 initialize_w32_display.
21136 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
21137
21138 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
21139
21140 * keyboard.c (discard_mouse_events): Discard it.
21141 (make_lispy_event): Translate it to a lisp event.
21142 (lispy_wheel_names): Add wheel-left and right events.
21143 (syms_of_keyboard): Enlarge wheel_syms.
21144
21145 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
21146 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
21147
21148 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
21149
21150 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
21151 from WM_MOUSEHWHEEL.
21152 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
21153
21154 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
21155 terminal.
21156
21157 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
21158 keyboard for the terminal.
21159
211602007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21161
21162 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
21163 (Vresume_tty_hook): Rename from Vresume_tty_functions.
21164 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
21165 and resume-tty-function to resume-tty-hook.
21166 (Fsuspend_tty, Fresume_tty): Use new names.
21167
211682007-09-02 Jan Djärv <jan.h.d@swipnet.se>
21169
21170 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
21171 if it starts with "n:".
21172
211732007-08-31 Jan Djärv <jan.h.d@swipnet.se>
21174
21175 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
21176
211772007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
21178
21179 * frame.h:
21180 * frame.c (Qterm_environment_variable): Remove.
21181 (syms_of_frame): Don't init and staticpro it.
21182
21183 * callproc.c (getenv_internal): Remove special case for $TERM.
21184
21185 * callproc.c (Vinitial_environment): New variable.
21186 (set_initial_environment): Initialize it.
21187 (syms_of_callproc): Declare it.
21188 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
21189 TERM under which a process runs is never related to the TERM in which
21190 Emacs is running.
21191
211922007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21193
21194 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
21195 * s/darwin.h: ... do it here.
21196
211972007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
21198
21199 * lisp.h (set_initial_environment): Rename from set_global_environment.
21200
21201 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
21202 removed by mistake on the multi-tty branch.
21203
21204 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
21205 (Fmodify_frame_parameters): Return a value.
21206
21207 * image.c (png_load): Comment-out var only used in commented-out code.
21208
21209 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
21210 before passing it to mark_object.
21211
21212 * xfaces.c (internal_resolve_face_name): Return a value.
21213 (internal_resolve_face_name, resolve_face_name_error): Comment out.
21214
21215 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
21216 (x_icon): Comment-out var only used in commented-out code.
21217
212182007-08-29 Romain Francoise <romain@orebokech.com>
21219
21220 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
21221 QUIT hasn't been provided.
21222
212232007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21224
21225 * callproc.c (child_setup, getenv_internal): Use the
21226 display-environment-variable and term-environment-variable frame params.
21227 (set_initial_environment): Initialise Vprocess_environment.
21228
21229 * config.in: Disable multi-keyboard support on a mac.
21230
21231 * frame.c (Qterm_environment_variable)
21232 (Qdisplay_environment_variable): New variables.
21233 (syms_of_frame): Intern and staticpro them.
21234 (Fmake_terminal_frame): Disable output method test.
21235
21236 * frame.h: Declare them here.
21237
21238 * macfns.c (x_set_mouse_color): Get rif from the frame.
21239 (x_set_tool_bar_lines): Don't use updating_frame.
21240 (mac_window): Add 2 new parameters for consistency with other systems.
21241 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
21242 frame parameters following what is done in X11 and w32. Don't use
21243 FRAME_MAC_DISPLAY_INFO.
21244 (Fx_open_connection, start_hourglass): Remove window-system check.
21245 (x_create_tip_frame): Get the keyboard from the terminal.
21246
21247 * macmenu.c: Reorder includes.
21248 (Fx_popup_menu): Use terminal specific mouse_position_hook.
21249
21250 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
21251 terminal parameter.
21252 (x_clear_frame): Add a frame parameter.
21253 (note_mouse_movement): Get rif from the frame.
21254 (mac_term_init): Initialize the terminal.
21255 (mac_initialize): Make static and move terminal initialization ...
21256 (mac_create_terminal): ... to this new function.
21257
21258 * macterm.h (struct mac_display_info): Add terminal.
21259 (mac_initialize): Delete declaration.
21260
21261 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
21262
21263 * sysdep.c: Comment out text after #endif.
21264
21265 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
21266 is defined. Better initialize ttys in windows. Use terminal
21267 specific mouse_position_hook.
21268
21269 * termhooks.h (union display_info): Add mac_display_info.
21270
21271 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
21272 Set the default minibuffer frame, window_system and the rest of the
21273 frame parameters following what is done in X11.
21274
21275 * w32term.c (w32_initialize): Make static.
21276
21277 * xselect.c (x_handle_selection_clear): Only access
21278 terminal->kboard when MULTI_KBOARD is defined.
21279
21280 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
21281 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
21282
212832007-08-29 Jason Rumney <jasonr@gnu.org>
21284
21285 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
21286 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
21287
21288 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
21289 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
21290
21291 * keyboard.c (restore_kboard_configuration): Only define when
21292 MULTI_KBOARD defined.
21293
21294 * makefile.w32-in: Update dependancies from Makefile.in.
21295 (OBJ1): Add terminal.$(O)
21296
21297 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
21298 Don't define function body.
21299 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
21300
21301 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
21302
21303 * w32.c (request_sigio, unrequest_sigio): Remove.
21304
21305 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
21306 (w32con_clear_frame, w32con_clear_end_of_line)
21307 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
21308 (w32con_delete_glyphs, w32con_set_terminal_window)
21309 (scroll_line, w32_sys_ring_bell): Add frame arg.
21310 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
21311 Add terminal arg.
21312 (PICK_FRAME): Remove.
21313 (w32con_write_glyphs): Use frame specific terminal coding.
21314 (one_and_only_w32cons): New global variable.
21315 (initialize_w32_display): Use it for storing hooks.
21316 (create_w32cons_output): New function.
21317
21318 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
21319 arg a frame.
21320
21321 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
21322 Set window_system.
21323 (x_set_tool_bar_lines): Don't use updating_frame.
21324 (Fx_create_frame): Set terminal and ref count.
21325 (Fx_open_connection): Remove window-system check.
21326
21327 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
21328
21329 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
21330 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
21331 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
21332 Add frame arg.
21333 (x_delete_terminal, w32_create_terminal): New functions.
21334 (w32_term_init): Create a terminal.
21335 (w32_initialize): Move terminal specific initialization to
21336 w32_create_terminal.
21337
21338 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
21339 (w32_clear_rect, w32_clear_area): Use background from frame.
21340 (w32_display_info): Add terminal.
21341 (w32_sys_ring_bell, x_delete_display): Declare here.
21342
21343 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
21344
21345 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
21346
213472007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
21348
21349 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
21350 Fix get_named_tty calls for the controlling tty.
21351
213522007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
21353
194d44e7 21354 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
21355
213562007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
21357
21358 * term.c (tty_insert_glyphs): Add missing first parameter.
21359
213602007-08-29 Károly Lőrentey <karoly@lorentey.hu>
21361
21362 * buffer.c (Fbuffer_list, Fbury_buffer):
21363 Take frame->buried_buffer_list into account.
21364
21365 * cm.c (current_tty): New variable, for cmputc().
21366 (cmputc): Use it.
21367 (cmcheckmagic): Add tty parameter, look up terminal streams there.
21368 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
21369 (cmgoto): Add tty parameter. Pass it on to calccost().
21370 Use emacs_tputs() instead of tputs().
21371
21372 * cm.h (emacs_tputs): New macro to set current_tty, and then call
21373 tputs().
21374 (current_tty): New variable, for cmputc().
21375 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
21376
21377 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
21378 (internal_condition_case, internal_condition_case_1)
21379 (internal_condition_case_2): Don't abort when x_catching_errors.
21380
21381 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
21382 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
21383 prevent crashes caused by bogus longjmps in read_char.
21384
21385 * keymap.h (Fset_keymap_parent): Add EXFUN.
21386
21387 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
21388 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21389 Remove redundant definition.
21390
21391 * macfns.c (x_set_mouse_color, x_make_gc):
21392 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21393
21394 * w32term.c (x_free_frame_resources):
21395 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21396 (w32_initialize): Use the accessor macros for terminal characteristics.
21397
21398 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
21399 Use the accessor macros for terminal characteristics.
21400 * msdos.c (internal_terminal_init): Use the accessor macros for
21401 terminal characteristics.
21402 (ScreenVisualBell, internal_terminal_init):
21403 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21404
21405 * termopts.h (no_redraw_on_reenter): Declare.
21406
21407 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
21408 (mark_terminals, mark_ttys): Declare.
21409 (Fgarbage_collect): Call them.
21410 (mark_object): Mark buried_buffer_list.
21411
21412 * prefix-args.c: Include stdlib.h for exit.
21413
21414 * syssignal.h: Add comment.
21415
21416 * indent.c: Include stdio.h.
21417
21418 * window.h (Vinitial_window_system): Declare.
21419 (Vwindow_system): Delete declaration.
21420
21421 * fontset.c (Finternal_char_font): Use FRAME_RIF.
21422
21423 * image.c (lookup_image): Don't initialize `c' until the xasserts
21424 have been run.
21425
21426 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
21427 FRAME_FOREGROUND_PIXEL.
21428
21429 * print.c (print_preprocess): Don't lose print_depth levels while
21430 iterating.
21431
21432 * widget.c (update_from_various_frame_slots):
21433 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21434
21435 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
21436 frames.
21437 (window_internal_height): Remove bogus make_number call.
21438 (init_window_once): Call make_terminal_frame with two zero parameters.
21439
21440 * fileio.c (Fread_file_name): Update comment.
21441
21442 * callint.c (Fcall_interactively):
21443 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
21444 Make sure it is correctly unwound.
21445
21446 * xsmfns.c (x_session_close): New function.
21447
21448 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
21449 Delete declarations.
21450
21451 * xterm.h: Remove declaration for x_fully_uncatch_errors.
21452 (x_output): Remove background_pixel and foreground_pixel fields.
21453 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
21454 (x_delete_device, x_session_close): Declare.
21455
21456 * lread.c: Include setjmp.h. Update declaration of `read_char'.
21457 (read_filtered_event): Call `read_char' with a local
21458 `wrong_kboard_jmpbuf'.
21459
21460 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
21461 Don't call single_kboard_state. Use FRAME_RIF.
21462
21463 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
21464 systems.
21465
21466 * lisp.h (set_process_environment): Rename to `set_global_environment'.
21467 (Fframe_with_environment, Fset_input_meta_mode)
21468 (Fset_quit_char): EXFUN.
21469 (x_create_device, tty_output, terminal, tty_display_info): Declare.
21470 (init_sys_modes, reset_sys_modes): Update prototypes.
21471 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
21472
21473 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
21474 Vlocal_key_translation_map, and Vkeyboard_translate_table.
21475 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
21476 Delete declarations.
21477 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
21478 (temporarily_switch_to_single_kboard, tty_read_avail_input):
21479 New declarations.
21480
21481 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
21482 already does that during init_display(). Call syms_of_keymap
21483 before syms_of_keyboard. Call `syms_of_terminal'.
21484 Call set_initial_environment, not set_process_environment.
21485 (shut_down_emacs): Call reset_all_sys_modes() instead of
21486 reset_sys_modes().
21487
21488 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
21489 (internal_resolve_face_name, resolve_face_name_error): New functions.
21490 (resolve_face_name): Protect against loops and errors thrown by Fget.
21491 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
21492 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
21493
21494 * scroll.c: Replace CURTTY() with local variables throughout the
21495 file (where applicable).
21496 (calculate_scrolling, calculate_direct_scrolling)
21497 (scrolling_1, scroll_cost): Use the accessor macros for terminal
21498 characteristics.
21499
21500 * keymap.c (Vfunction_key_map): Remove.
21501 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
21502 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
21503 (Vkey_translation_map): Remove.
21504 (syms_of_keymap): Remove DEFVAR for key-translation-map.
21505 (Fdescribe_buffer_bindings)
21506 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
21507 Update for terminal-local key-translation-map.
21508
21509 * Makefile.in (callproc.o): Update dependencies.
21510 (lisp, shortlisp): Add termdev.elc.
21511 (obj): Add terminal.o.
21512 (terminal.o): Add dependencies.
21513 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
21514 (data.o, fns.o): Add termhooks.h dependency.
21515 (SOME_MACHINE_LISP): Add dnd.elc.
21516 (minibuf.o): Fix typo.
21517 Update dependencies.
21518
21519 * data.c (do_symval_forwarding, store_symval_forwarding)
21520 (find_symbol_value): Use the selected frame's keyboard, not
21521 current_kboard.
21522
21523 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
21524 Vwindow_system.
21525
21526 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
21527 Fmenu_bar_open.
21528 (syms_of_xmenu): Update defsubr.
21529 (mouse_position_for_popup, Fx_popup_menu)
21530 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
21531 (set_frame_menubar, free_frame_menubar)
b97439ce 21532 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
21533 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
21534 an X frame.
21535
21536 * xselect.c (x_own_selection): Abort if not an X frame.
21537 (some_frame_on_display): Check if it is an X frame.
21538 (x_handle_selection_clear): Deal with MULTI_KBOARD.
21539
21540 * coding.c: Include frame.h and termhooks.h.
21541 (terminal_coding, keyboard_coding): Delete.
21542 (Fset_terminal_coding_system_internal)
21543 (Fset_keyboard_coding_system_internal)
21544 (Fkeyboard_coding_system)
21545 (Fterminal_coding_system): Add a terminal parameter.
21546 Get terminal_coding from the terminal.
21547 (init_coding_once): Don't call setup_coding_system here.
21548
21549 * dispextern.h (set_scroll_region, turn_off_insert)
21550 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
21551 (tty_clear_end_of_line, tty_setup_colors)
21552 (delete_tty, updating_frame)
21553 (produce_special_glyphs, produce_glyphs, write_glyphs)
21554 (insert_glyphs): Remove.
21555 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
21556 (tty_turn_off_highlight, get_tty_size): Add declaration.
21557 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
21558
21559 * frame.h (enum output_method): Add output_initial.
21560 (struct x_output): Delete.
21561 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21562 Access foreground_pixel and background_pixel directly from the frame.
21563 (tty_display): Delete.
21564 (struct frame): Add buried_buffer_list, foreground_pixel,
21565 background_pixel and terminal. Delete kboard.
21566 (union output_data): Add tty.
21567 (FRAME_KBOARD): Get the kboard from the terminal.
21568 (FRAME_INITIAL_P): New macro.
21569 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
21570 (Qterm_environment_variable, Qdisplay_environment_variable)
21571 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
21572 New declarations.
21573
21574 * termchar.h (tty_output, tty_display_info): New structures.
21575 (tty_list): Declare.
21576 (FRAME_TTY, CURTTY): New macros.
21577 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
21578 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
21579 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
21580 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
21581
21582 * callproc.c: Include frame.h and termhooks.h, for terminal
21583 parameters.
21584 (add_env): New function.
21585 (child_setup): Use it.
21586 (child_setup, getenv_internal): Handle the new Vprocess_environment.
21587 (getenv_internal): Fix get_terminal_param call.
21588 (Fgetenv_internal, egetenv): Update doc.
21589 (syms_of_callproc): Initialize Vprocess_environment to nil.
21590 Register and initialize them. Remove obsolete defvars. Update doc
21591 strings.
21592 (child_setup): Handle Vlocal_environment_variables.
21593 (getenv_internal): Add terminal parameter.
21594 Handle Vlocal_environment_variables.
21595 (Fgetenv_internal): Add terminal parameter.
21596 (child_setup, getenv_internal, Fgetenv_internal): Store the local
21597 environment in a frame (not terminal) parameter. Update doc strings.
21598 (set_initial_environment): Rename from set_global_environment.
21599 Store Emacs environment in initial frame parameter.
21600
21601 * xdisp.c (redisplay_internal): Update references to
21602 `previous_terminal_frame'.
21603 (display_mode_line, Fformat_mode_line): Replace calls to
21604 `push_frame_kboard' with `push_kboard'.
21605 (get_glyph_string_clip_rects): Add extra parentheses and
21606 braces to prevent compiler warnings.
21607 (calc_pixel_width_or_height): Add xassert to check that the
21608 frame is alive. Don't call `lookup_image' on a termcap frame.
21609 (message2_nolog, message3_nolog, redisplay_internal)
21610 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
21611 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
21612 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
21613 (Fx_display_pixel_width, Fx_display_pixel_height)
21614 (Fx_display_planes, Fx_display_color_cells)
21615 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
21616 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
21617 (Fx_display_backing_store, Fx_display_visual_class)
21618 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
21619 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
21620
21621 * xfns.c (x_set_foreground_color x_set_background_color)
21622 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
21623 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21624 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
21625 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
21626 terminal that is being deleted.
21627 (Fx_create_frame): Use `store_frame_param' to set `window-system'
21628 frame parameter, and make sure it overrides any user-supplied setting.
21629 (Fx_close_connection, Fx_synchronize): Unify argument names with
21630 the rest of the DEFUNs.
21631
21632 * dispnew.c (Fsend_string_to_terminal): Update call to
21633 `get_tty_terminal'.
21634 (Fredraw_frame, Fsend_string_to_terminal)
21635 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
21636 FRAME_TERMCAP_P and FRAME_TTY.
21637 (window_change_signal): Don't believe width/height values that are
21638 impossibly small.
21639 (Vinitial_window_system): Rename from Vwindow_system.
21640 (termscript, Wcm, rif): Delete.
21641
21642 * termhooks.h (struct terminal): New struct containing the
21643 previously global text display hooks and new members NAME,
21644 DELETED and PARAM_ALIST.
21645 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
21646 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
21647 (FRAME_RIF): New macros.
21648 (get_terminal_param, get_device): New declarations.
21649 (termscript): Delete declaration.
21650
21651 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
21652 (XTflash, x_free_frame_resources, x_scroll_bar_create)
21653 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
21654 FRAME_FOREGROUND_PIXEL.
21655 (x_fully_uncatch_errors): Disable definition.
21656 (x_scroll_bar_expose): Fix reference to foreground pixel.
21657 (XTread_socket): Disable loop on all X displays.
21658 (x_delete_terminal): Don't set terminal->deleted and let
21659 delete_terminal delete the frames on the terminal.
21660 (x_delete_display): Doc update to reflect changes in
21661 delete_terminal.
21662 (x_display_info) <terminal>: Move member earlier in the struct.
21663 (deleting_tty): Remove old variable.
21664 (Fsuspend_tty): Call clear_tty_hooks.
21665 (Fresume_tty, init_tty): Call set_tty_hooks.
21666 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21667 errors on X frames.
21668 (x_catch_errors_unwind): Abort if x_error_message is NULL.
21669 (handle_one_xevent): Initialize `f' to NULL.
21670 (x_delete_terminal, x_create_terminal): New functions.
21671 (XTset_terminal_modes, XTreset_terminal_modes)
21672 (XTread_socket, x_connection_closed, x_term_init)
21673 (x_term_init, x_delete_display): Add terminal parameter.
21674 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21675 X connections.
21676
21677 * frame.c: Include termchar.h.
21678 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21679 (Qwindow_system, Qenvironment, Qterm_environment_variable)
21680 (Qdisplay_environment_variable): New vars.
21681 (Fframep): Deal with output_initial.
21682 (Fframe-live-p): Doc fix.
21683 (Fwindow-system): New function.
21684 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21685 (make_terminal_frame): Don't create frames on a terminal that is
21686 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21687 (store_frame_param): Check for found_for_frame before calling XFRAME.
21688 (Fmake_terminal_frame): Handle NULL tty names correctly.
21689 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21690 (Fdelete_frame): Remove unused variable `count'. Don't allow other
21691 frames to refer to a deleted frame in their 'environment parameter.
21692 (Fframe_with_environment): New function.
21693 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
21694 (get_future_frame_param): New function.
21695 (Fmake_terminal_frame): Use it.
21696 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21697
21698 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21699 * sysdep.c (reset_sys_modes): Update for renames.
21700
21701 * keyboard.c (tty_read_avail_input): New function.
21702 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
21703 (syms_of_keyboard): Defsubr them.
21704 (Fset_input_meta_mode, Fset_quit_char): New functions.
21705 (Fset_input_mode): Split to above functions.
21706 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21707 parameter. Use it in call to `read_char'.
21708 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
21709 Set wrong_kboard_jmpbuf correctly in recursive calls.
21710 Use current_kboard to access Vkeyboard_translate_table.
21711 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21712 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21713 Update longjmp invocations. Remember the original current_kboard,
21714 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21715 changes it. Comment out unnecessary calls to
21716 `record_single_kboard_state' and `any_kboard_state'.
21717 Update recursive calls.
21718 (wrong_kboard_jmpbuf): Remove global variable.
21719 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21720 Handle deleted interrupted_kboards correctly; that is a legal
21721 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21722 and read_char calls. Abort if interrupted_kboard died in read_char.
21723 (any_kboard_state, single_kboard_state)
21724 (push_frame_kboard): Remove function.
21725 (pop_kboard): Switch out of single_kboard mode if the kboard has
21726 been deleted. Remove unused variable. Help debugging by not
21727 changing current_kboard unnecessarily. Set current_kboard to the
21728 kboard of the selected frame when the stored kboard object has
21729 been deleted before pop_kboard.
21730 (temporarily_switch_to_single_kboard): Change first parameter to a
21731 frame pointer. Throw an error when caller wants to change kboards
21732 while in single_kboard mode. Don't push_kboard if we weren't in
21733 single kboard state. Don't pop_kboard if we popped into any
21734 kboard state.
21735 (restore_kboard_configuration): Abort if pop_kboard changed the
21736 kboard in single_kboard mode. Call pop_kboard only after setting
21737 up single_kboard mode.
21738 (Frecursive_edit): Switch to single_kboard mode only in nested
21739 command loops.
21740 (cmd_error, command_loop, command_loop_1, timer_check):
21741 Comment out unnecessary call to `any_kboard_state' and
21742 `record_single_kboard_state'.
21743 (delete_kboard): Exit single_kboard mode if we have just deleted
21744 that kboard. Use FRAME_KBOARD.
21745 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21746 `fatal_error_signal'.
21747 (record_single_kboard_state): Don't push_kboard if we weren't in
21748 single kboard state. Don't pop_kboard if we popped into any
21749 kboard state.
21750 (push_frame_kboard): Rename to push_kboard.
21751 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21752 (read_avail_input): Read input from all terminals.
21753 (mark_kboards): Also mark Vkeyboard_translate_table.
21754 (kbd_buffer_store_event_hold): Simplify condition.
21755 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21756 (Vkeyboard_translate_table): Move to struct kboard.
21757 (init_kboard): Initialize Vkeyboard_translate_table.
21758 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21759 Vkeyboard_translate_table. Update doc strings. Update docs of
21760 local-function-key-map and function-key-map.
21761
21762 * terminal.c: New file.
21763
21764 * term.c: Include errno.h.
21765 (Vring_bell_function, device_list, initial_device)
21766 (next_device_id, ring_bell, update_begin, update_end)
21767 (set_terminal_window, cursor_to, raw_cursor_to)
21768 (clear_to_end, clear_frame, clear_end_of_line)
21769 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21770 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21771 (syms_of_term): Move their initialization to terminal.c.
21772 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21773 (Ftty_display_color_cells)
21774 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21775 (clear_tty_hooks, set_tty_hooks)
21776 (init_tty, maybe_fatal): New functions.
21777 (Ftty_type): Return nil if terminal is not on a tty instead of
21778 throwing an error. Doc update.
21779 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21780 Doc update. Initialize new subrs and variables.
21781 (delete_tty): Use terminal->deleted.
21782 (tty_set_terminal_modes): Rename from set_terminal_modes.
21783 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21784 (set_scroll_region): Rename to `tty_set_scroll_region'.
21785 (turn_on_insert): Rename to `tty_turn_on_insert'.
21786 (turn_off_insert): Rename to `tty_turn_off_insert'.
21787 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21788 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21789 (toggle_highligh): Rename to `tty_toggle_highlight'.
21790 (background_highlight): Rename to `tty_background_highlight'.
21791 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21792 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21793 (tty_set_scroll_region, tty_background_highlight)
21794 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21795 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21796 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21797 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21798 Add static modifier.
21799 (tty_reset_terminal_modes, tty_set_terminal_window)
21800 (tty_set_scroll_region, tty_background_highlight)
21801 (tty_highlight_if_desired, tty_cursor_to)
21802 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21803 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21804 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21805 renames.
21806
218072007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21808
21809 * keyboard.c: Qrtl is new.
21810 (parse_tool_bar_item): Handle :rtl keyword.
21811 (syms_of_keyboard): Intern :rtl keyword.
21812
21813 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21814
21815 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21816 so no Lisp code is executed.
21817 (file_for_image, find_rtl_image): New functions.
21818 (xg_get_image_for_pixmap): Use file_for_image.
21819 (update_frame_tool_bar): If direction is RTL, use RTL image if
21820 defined. Use Gtk stock images if defined.
21821
218222007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21823
21824 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21825 for nonexistent or zero-width glyph in composition glyph.
21826
218272007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21828
21829 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21830
21831 * xdisp.c (Finvisible_p): New function.
21832 (syms_of_xdisp): defsubr it.
21833
218342007-08-24 Juanma Barranquero <lekktu@gmail.com>
21835
21836 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21837 Doc fixes.
21838
218392007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21840
21841 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21842
218432007-08-24 Martin Rudalics <rudalics@gmx.at>
21844
21845 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21846 whether decoding has modified buffer contents.
21847
218482007-08-24 Jason Rumney <jasonr@gnu.org>
21849
21850 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21851 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21852 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21853 (init_svg_functions) [HAVE_NTGUI]: New function.
21854 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21855 (svg_load_image): Use them.
21856 (svg_load_image) [HAVE_NTGUI]: Implement background.
21857
218582007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21859
21860 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21861 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21862 (LIBX): Remove @RSVG_LIBS@.
21863 (LIBES): Add $(RSVG_LIBS).
21864
21865 * image.c (svg_load_image): Blend with specified background if exists.
21866 Use IMAGE_BACKGROUND. Add Mac OS Support.
21867
21868 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21869 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21870 Remove macros.
21871 [MAC_OSX] (socket_callback): Do nothing.
21872 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21873 ReceiveNextEvent.
21874 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21875 socket_callback.
21876 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21877
218782007-08-22 Glenn Morris <rgm@gnu.org>
21879
21880 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21881
218822007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21883
21884 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21885
21886 * image.c: Add support for SVG images. Some additional comments
21887 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21888 (svg_image_p): New function to test for SVG image.
21889 (svg_load): New function to load SVG image.
21890 (svg_load_image): New function, helper for svg_load.
21891 (Qsvg): New Lisp_object.
21892 (svg_keyword_index): New enum.
21893 (svg_format): New static `image_keyword' struct.
21894 (svg_type): New static `image_type' struct.
21895 (librsvg/rsvg.h): Include it.
21896
218972007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21898
21899 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21900
219012007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21902
21903 * lread.c (Qold_style_backquotes): New var.
21904 (syms_of_lread): Init and staticpro it.
21905 (load_warn_old_style_backquotes): New fun.
21906 (Fload): Use them to warn about old style backquotes.
21907 (end_of_file_error, Fload): Remove unused vars.
21908
21909 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21910
21911 * lread.c (Vold_style_backquotes): New var.
21912 (syms_of_lread): Init and export it to Elisp.
21913 (read1): Set it when we find an old-style (back)quote.
21914
219152007-08-22 Jason Rumney <jasonr@gnu.org>
21916
21917 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21918
219192007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21920
21921 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21922
219232007-08-19 Richard Stallman <rms@gnu.org>
21924
21925 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21926
219272007-08-19 Andreas Schwab <schwab@suse.de>
21928
21929 * alloc.c (pure): Round PURESIZE up.
21930
219312007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21932
21933 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21934 active frame.
21935
219362007-08-16 Richard Stallman <rms@gnu.org>
21937
21938 * eval.c (Fcommandp): Add parens to clarify.
21939
21940 * minibuf.c (Fall_completions): Use enum for type of table.
21941
21942 * emacs.c (USAGE2): Improve text.
21943
219442007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21945
21946 * term.c (tty_default_color_capabilities): Declare static
21947 variables in file scope, to avoid HPUX compiler problem.
21948
219492007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21950
21951 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21952 to gtk_toolbar_insert.
21953
219542007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21955
21956 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21957
21958 * insdel.c (reset_var_on_error): New fun.
21959 (signal_before_change, signal_after_change):
21960 Use it to reset (after|before)-change-functions to nil in case of error.
21961 Bind inhibit-modification-hooks to t.
21962 Don't bind (after|before)-change-functions to nil while they run.
21963
219642007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21965
21966 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21967 filling pixmap with stippled background.
21968
219692007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21970
21971 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21972 Don't use invisible frame as parent window for repositioning.
21973
219742007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21975
21976 * print.c (new_backquote_output): Rename from old_backquote_output.
21977 (print): Inverse its logic (according to its name) so as to match the
21978 behavior of new_backquote_flag in lread.c.
21979
219802007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21981
21982 * gmalloc.c (posix_memalign): New function.
21983
21984 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21985 ActivateControl/DeactivateControl here.
21986 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21987 frame-notice-user-settings is non-nil.
21988 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21989 for kEventParamFMFontStyle.
21990 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21991 mac_pass_command_to_system and mac_pass_control_to_system here.
21992 (XTread_socket): Call ActivateControl/DeactivateControl here.
21993 (XTread_socket) [TARGET_API_MAC_CARBON]:
21994 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21995 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21996 for window repositioning.
21997
219982007-08-08 Glenn Morris <rgm@gnu.org>
21999
22000 * Replace `iff' in doc-strings and comments.
22001
220022007-08-07 Chong Yidong <cyd@stupidchicken.com>
22003
22004 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
22005
220062007-08-07 Martin Rudalics <rudalics@gmx.at>
22007
22008 * fileio.c (Finsert_file_contents): Run format-decode and
22009 after_insert_file_functions on entire buffer when REPLACE is
22010 non-nil and inhibit modification_hooks and point_motion_hooks.
22011 For consistency, run after_insert_file_functions iff something
22012 got inserted. Move signal_after_change and update_compositions
22013 after code running after_insert_file_functions. Make sure that
22014 undo_list doesn't record intermediate steps of the decoding process.
22015
220162007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22017
22018 * emacs.c (main)
22019 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
22020 Call malloc_enable_thread on interactive startup.
22021
22022 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
22023 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
22024 [USE_PTHREAD]: Conditionalize with it.
22025 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
22026 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
22027 New functions.
22028
220292007-08-06 Chong Yidong <cyd@stupidchicken.com>
22030
22031 * xdisp.c (redisplay_window): When restoring original buffer
22032 position, make sure it is still valid.
22033
22034 * image.c (png_load): Ignore png-supplied background color.
22035
220362007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22037
22038 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
22039 Use kCFAbsoluteTimeIntervalSince1970.
22040
22041 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
22042 New variable.
22043 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
22044 event loop should be quit.
22045 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
22046 Quit dialog event loop if quit_dialog_event_loop is set.
22047
22048 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
22049 (Selection): New typedef. Use instead of ScrapRef.
22050 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
22051 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
22052 (mac_clear_selection): Rename from clear_scrap.
22053 (get_flavor_type_from_symbol): New argument SEL and subsume function of
22054 scrap_has_target_type. All uses changed.
22055 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22056 (mac_selection_has_target_p): New functions.
22057 (mac_put_selection_value): Rename from put_scrap_string.
22058 (mac_get_selection_value): Rename from get_scrap_string.
22059 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
22060 (put_scrap_private_timestamp, scrap_has_target_type)
22061 (get_scrap_private_timestamp): Remove functions.
22062 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
22063 (x_own_selection, x_get_local_selection):
22064 Use mac_valid_selection_value_p.
22065 (x_own_selection): Don't use put_scrap_private_timestamp.
22066 Record OWNERSHIP-INFO into Vselection_alist instead.
22067 (x_get_local_selection): Don't check type if request is local.
22068 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
22069 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
22070
220712007-08-04 Jan Djärv <jan.h.d@swipnet.se>
22072
22073 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
22074 add comment explaining why.
22075
220762007-08-03 Richard Stallman <rms@gnu.org>
22077
22078 * fileio.c (Fvisited_file_modtime): Use make_time.
22079
220802007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
22081
22082 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
22083 build.
22084
220852007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
22086
22087 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
22088
220892007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
22090
22091 * puresize.h (BASE_PURESIZE): Increase to 1130000.
22092
220932007-07-30 Richard Stallman <rms@gnu.org>
22094
22095 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
22096
220972007-07-29 Jan Djärv <jan.h.d@swipnet.se>
22098
22099 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
22100
221012007-07-28 Nick Roberts <nickrob@snap.net.nz>
22102
22103 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
22104 remote default-directory.
22105
22106 * buffer.c (mode-line-format): Update doc string.
22107
221082007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22109
22110 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
22111 scroll bar gap.
22112 (x_scroll_bar_create): Set bar->fringe_extended_p.
22113 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
22114 on frame edge. Check fringe background extension. Don't clear
22115 extended fringe background area.
22116
22117 * w32term.h (struct scroll_bar): New member fringe_extended_p.
22118 (w32_fill_area): Enclose multiple statements with do ... while (0).
22119
22120 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
22121 Extend fringe background to scroll bar gap.
22122 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
22123 Set bar->fringe_extended_p.
22124 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22125 Put leftmost/rightmost scroll bars on frame edge. Check fringe
22126 background extension. Don't clear extended fringe background area.
22127
22128 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22129 New member fringe_extended_p.
22130
221312007-07-25 Glenn Morris <rgm@gnu.org>
22132
22133 * Relicense all FSF files to GPLv3 or later.
22134
22135 * COPYING: Switch to GPLv3.
22136
221372007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
22138
22139 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
22140
22141 * data.c (Finteractive_form): Check for the presence of an
22142 `interactive-form' symbol property more thoroughly.
22143
22144 * data.c (Finteractive_form): Use an `interactive-form' property if
22145 present, analogous to the function-documentation property.
22146
221472007-07-24 Jason Rumney <jasonr@gnu.org>
22148
22149 * w32fns.c (x_real_positions): Get real position from OS instead of
22150 calculating it.
22151
221522007-07-23 Jason Rumney <jasonr@gnu.org>
22153
22154 * filelock.c (current_lock_owner): Allow for @ sign in username.
22155
221562007-07-22 Nick Roberts <nickrob@snap.net.nz>
22157
22158 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
22159 remote default-directory.
22160
22161 * buffer.c (mode-line-format): Describe above case in doc string.
22162
221632007-07-20 Eli Zaretskii <eliz@gnu.org>
22164
22165 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
22166 Define if not defined.
22167
221682007-07-18 Jason Rumney <jasonr@gnu.org>
22169
22170 * w32proc.c (w32_executable_type): Handle 64 bit executables.
22171
221722007-07-18 Richard Stallman <rms@gnu.org>
22173
22174 * data.c (Fsetq_default): Doc fix.
22175
22176 * eval.c (Fsetq): Doc fix.
22177
221782007-07-18 Juanma Barranquero <lekktu@gmail.com>
22179
22180 * coding.c (Ffind_operation_coding_system):
22181 * eval.c (For, Fand): Doc fixes.
22182 Reported by Johan Bockgård.
22183
221842007-07-18 Jan Djärv <jan.h.d@swipnet.se>
22185
22186 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
22187
22188 * xterm.h: Declare x_ewmh_activate_frame.
22189
22190 * xterm.c (x_ewmh_activate_frame): New function.
22191 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
22192
221932007-07-17 Martin Rudalics <rudalics@gmx.at>
22194
22195 * window.c (Fdisplay_buffer): If largest or LRU window is the
22196 only window, split it even if it is not eligible for splitting.
22197 This restores the original behavior broken by the 2007-07-15
22198 change.
22199
222002007-07-17 Glenn Morris <rgm@gnu.org>
22201
22202 * abbrev.c (abbrev_check_chars): New function.
22203 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
22204 Call abbrev_check_chars to check abbrev characters are word
22205 constituents. Doc fix.
22206
222072007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
22208
22209 * process.c (Fstart_process, Fmake_network_process)
22210 (read_process_output): Fix up last changes.
22211
222122007-07-16 Eli Zaretskii <eliz@gnu.org>
22213
22214 * makefile.w32-in (clean): Don't delete *~.
22215
222162007-07-16 Andreas Schwab <schwab@suse.de>
22217
22218 * window.c (Fdisplay_buffer): Use NILP.
22219 (Fset_window_scroll_bars): Likewise.
22220
222212007-07-15 Martin Rudalics <rudalics@gmx.at>
22222
22223 * window.c (window_min_size_2): New function.
22224 (window_min_size_1, size_window, Fdisplay_buffer)
22225 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
22226 windows without mode- or header-lines when window-min-height is
22227 too small.
22228 (size_window): Reset nodelete_p after testing it, following an
22229 earlier note by Kim F. Storm.
22230 (display_buffer): Do not set split_height_threshold to twice the
22231 value of window_min_height to avoid changing the value of a
22232 customizable variable. Rather explicitly check whether the
22233 height of the window that shall be splitted is at least as large
22234 as split_height_threshold.
22235 (Fwindow_full_width_p): New defun.
22236 (syms_of_window): Defsubr it.
22237
22238 * window.h: Add EXFUN for Fwindow_full_width_p.
22239
222402007-07-14 Jason Rumney <jasonr@gnu.org>
22241
22242 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
22243
222442007-07-14 Richard Stallman <rms@gnu.org>
22245
22246 * eval.c (maybe_call_debugger): New function.
22247 (find_handler_clause): Use maybe_call_debugger.
22248 Call it when the handler says `debug'.
22249 Eliminate DEBUGGER_VALUE_PTR.
22250 (Fsignal): Eliminate debugger_value.
22251 (Qdebug): New variable.
22252 (syms_of_eval): Initialize it.
22253
222542007-07-14 Juanma Barranquero <lekktu@gmail.com>
22255
22256 * eval.c (Fprogn):
22257 * keyboard.c (Ftrack_mouse):
22258 * print.c (Fwith_output_to_temp_buffer):
22259 * window.c (Fsave_window_excursion): Doc fix.
22260
222612007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
22262
22263 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
22264
222652007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
22266
22267 * process.h (struct Lisp_Process): Turn slots infd, outfd,
22268 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
22269 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
22270 read_output_delay, and read_output_skip from Lisp_Objects to ints.
22271 Remove unused encoding_carryover.
22272 * process.c: Adjust all functions accordingly.
22273
222742007-07-12 Richard Stallman <rms@gnu.org>
22275
22276 * term.c: Include unistd.h only if HAVE_UNISTD_H.
22277
222782007-07-11 Jason Rumney <jasonr@gnu.org>
22279
22280 * makefile.w32-in (LIBS): Include OLE32.
22281
22282 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
22283 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
22284
222852007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
22286
22287 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
22288 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
22289 from a Lisp_Object into a bare pointer.
22290 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22291 Adjust the code correspondingly.
22292
22293 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
22294
22295 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
22296 (term_show_mouse_face): Remove unused var `j'.
22297 (handle_one_term_event): Remove unused vars `i' and `j'.
22298 Don't cast return value of ttyname since it's not necessary.
22299
223002007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
22301
22302 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
22303 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
22304
22305 * fns.c (map_char_table): Use an array of int for `indices' rather than
22306 an array of Lisp_Objects (which are only ever integers anyway).
22307 (Fmap_char_table): Update caller.
22308 * lisp.h: Update prototype.
22309 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
22310 * fontset.c (Ffontset_info):
22311 * casetab.c (set_case_table): Update callers.
22312
22313 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
22314
22315 * keymap.c (struct accessible_keymaps_data)
22316 (struct where_is_internal_data): New structures.
22317 (accessible_keymaps_1, where_is_internal_1): Use them to change
22318 interface to adhere to the one used by map_keymap.
22319 (Faccessible_keymaps, where_is_internal): Use map_keymap.
22320 (accessible_keymaps_char_table, where_is_internal_2): Remove.
22321
22322 * keymap.h (map_keymap_function_t): More informative prototype.
22323
223242007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
22325
22326 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
22327 (looking_at_1): Don't change search_regs and last_thing_searched
22328 if `inhibit-changing-match-data' is non-nil.
22329 (string_match_1, search_buffer, set_search_regs): Likewise.
22330 (syms_of_search): Add Lisp level definition for
22331 `inhibit-changing-match-data' and set it to nil.
22332 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
22333 start and end of the match, instead of using values in search_regs.
22334
223352007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
22336
22337 * minibuf.c (Fcompleting_read): New value `confirm-only'
22338 for `require-match'.
22339
223402007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
22341
22342 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
22343 part of the 2007-06-27 change to syms_of_fileio.
22344
223452007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22346
22347 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
22348 Check WINDOWP before using XWINDOW. Consolidate return statements.
22349
223502007-06-27 Richard Stallman <rms@gnu.org>
22351
22352 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
22353
223542007-06-27 Juanma Barranquero <lekktu@gmail.com>
22355
22356 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
22357
223582007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22359
22360 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
22361 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
22362 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
22363 (_free_internal, memalign): Use them.
22364 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
22365 Initialize to PTHREAD_MUTEX_INITIALIZER.
22366 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
22367 (morecore_nolock): Rename from morecore. All uses changed.
22368 Use only nolock versions of internal allocation functions.
22369 (_malloc_internal_nolock, _realloc_internal_nolock)
22370 (_free_internal_nolock): New functions created from
22371 _malloc_internal, _realloc_internal, and _free_internal.
22372 (_malloc_internal, _realloc_internal, _free_internal): Use them.
22373 Copy hook value to automatic variable before its use.
22374 (memalign): Copy hook value to automatic variable before its use.
22375
223762007-06-26 Kenichi Handa <handa@m17n.org>
22377
22378 * coding.c (Ffind_operation_coding_system): Docstring improved.
22379 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
22380
223812007-06-25 David Kastrup <dak@gnu.org>
22382
22383 * keymap.c (Fcurrent_active_maps): Add `position' argument.
22384 (Fwhere_is_internal): Adjust call to `current-active-maps' to
22385 cater for additional parameter.
22386
22387 * keymap.h: Adjust number of parameters to `current-active-maps'.
22388
22389 * doc.c (Fsubstitute_command_keys): Adjust call of
22390 `current-active-maps'.
22391
223922007-06-25 David Kastrup <dak@gnu.org>
22393
22394 * callint.c (Fcall_interactively): Make the parsing of interactive
22395 specs somewhat more readable.
22396
223972007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22398
22399 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
22400 to scroll bar gap also when bitmap fills fringe. Draw only foreground
22401 if extended background has already been filled.
22402
224032007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22404
22405 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
22406 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
22407
22408 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
22409 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
22410 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
22411 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
22412 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
22413 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
22414 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
22415 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
22416 Run timers during dialog popup.
22417 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
22418
224192007-06-21 Jason Rumney <jasonr@gnu.org>
22420
22421 * image.c (convert_mono_to_color_image): Swap fore and background.
22422
224232007-06-20 Jason Rumney <jasonr@gnu.org>
22424
22425 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
22426 (w32_free_bdf_font): Unmap memory not handle.
22427
224282007-06-20 Sam Steingold <sds@gnu.org>
22429
22430 * gmalloc.c (__morecore): Fix the declaration to comply with the
22431 definition.
22432
224332007-06-20 Juanma Barranquero <lekktu@gmail.com>
22434
22435 * w32term.c (w32_delete_display): Remove leftover declaration.
22436 (w32_define_cursor, w32_initialize): Make static.
22437
22438 * w32.c (_wsa_errlist): Fix typo in error message.
22439 (init_environment): Ignore any environment variable from the
22440 registry having a null value.
22441
224422007-06-20 Glenn Morris <rgm@gnu.org>
22443
22444 * Makefile.in (LIBGIF): Default to -lgif.
22445
224462007-06-17 Jason Rumney <jasonr@gnu.org>
22447
22448 * w32menu.c (add_menu_item): Don't use multibyte string functions on
22449 unicode strings.
22450
224512007-06-16 Juanma Barranquero <lekktu@gmail.com>
22452
22453 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
22454 Fix typo in docstring.
22455
224562007-06-16 Eli Zaretskii <eliz@gnu.org>
22457
22458 * w32menu.c (add_menu_item): Escape `&' characters in menu items
22459 and their keybindings.
22460
224612007-06-15 Chong Yidong <cyd@stupidchicken.com>
22462
22463 * composite.c (update_compositions): Fix last fix.
22464
224652007-06-14 Jason Rumney <jasonr@gnu.org>
22466
22467 * w32.c (get_process_times_fn): New function pointer.
22468 (globals_of_w32): Intialize it if present in kernel32.dll.
22469 (w32_get_internal_run_time): New function.
22470
22471 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
22472
224732007-06-14 Kenichi Handa <handa@etlken.m17n.org>
22474
22475 * composite.c (update_compositions): Check the validness of
22476 compositions.
22477
224782007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22479
22480 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
22481 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
22482
22483 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
22484 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
22485
22486 * macgui.h (USE_MAC_TOOLBAR): New define.
22487
22488 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22489 Return immediately unless popup is activated.
22490
22491 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
22492 background to scroll bar gap.
22493 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
22494 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
22495 scroll bars on frame edge. Check fringe background extension.
22496 Don't clear extended fringe background area.
22497 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
22498 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
22499 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
22500 [USE_MAC_TOOLBAR]: New macros.
22501 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
22502 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
22503 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
22504 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
22505 [USE_MAC_TOOLBAR]: New functions.
22506 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
22507 manually if previous repositioning has failed.
22508 (mac_handle_keyboard_event): Use precomputed event kind.
22509 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
22510 as tool bar item click. Handle mouse movement over tool bar items.
22511
22512 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
22513 toolbar_win_gravity.
22514 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
22515 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
22516 Add externs.
22517
22518 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
22519 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
22520
225212007-06-14 Chong Yidong <cyd@stupidchicken.com>
22522
22523 * image.c (search_image_cache): Remove unused variable.
22524
225252007-06-13 Chong Yidong <cyd@stupidchicken.com>
22526
22527 * xfns.c, xmenu.c: Link to xaw3d if available.
22528
225292007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22530
22531 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
22532 frame_foreground and frame_background.
22533
22534 * image.c (lookup_image): Save frame foreground and background colors.
22535 (search_image_cache): Check if saved and current frame colors match.
22536
225372007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
22538
22539 * regex.c (regex_compile): Remove the `regnum' counter.
22540 Use bufp->re_nsub instead. Add support for \(?N:RE\).
22541
225422007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
22543
22544 * term.c: Include intervals.h to declare Fget_text_property.
22545
225462007-06-10 Jason Rumney <jasonr@gnu.org>
22547
22548 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
22549
225502007-06-08 Juanma Barranquero <lekktu@gmail.com>
22551
22552 * callint.c (Fcall_interactively):
22553 * editfns.c (Fdelete_and_extract_region):
22554 * fileio.c (Fread_file_name):
22555 * fns.c (Fmapconcat):
22556 * keyboard.c (cmd_error_internal):
22557 * keymap.c (Fkey_description):
22558 * lread.c (openp):
22559 * minibuf.c (read_minibuf):
22560 * search.c (wordify):
22561 * sunfns.c (sel_read):
22562 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
22563 * xfns.c (x_default_scroll_bar_color_parameter):
22564 * xmenu.c (menu_help_callback):
22565 * xselect.c (Fx_get_atom_name):
22566 * xterm.c (x_term_init): Use empty_unibyte_string.
22567
225682007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
22569
22570 * alloc.c (init_strings): Initialize canonical empty strings.
22571 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
22572 canonical empty string when the requested size is 0.
22573
22574 * emacs.c (empty_unibyte_string): Rename from empty_string.
22575 (empty_multibyte_string): New canonical empty string.
22576 (syms_of_emacs): Don't initialize empty_string.
22577
22578 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
22579 string, if appropriate.
22580 (empty_unibyte_string, empty_multibyte_string): New externs.
22581 (empty_string): Remove extern.
22582
22583 * lread.c (syms_of_lread): Use empty_unibyte_string.
22584
225852007-06-07 Jason Rumney <jasonr@gnu.org>
22586
22587 * s/ms-w32.h: Don't define HAVE_TZNAME.
22588
22589 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
22590
225912007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22592
22593 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
22594
22595 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
22596 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
22597
22598 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22599 Don't call next handler.
22600 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
22601 Remove argument. Install handler to application.
22602 (set_frame_menubar): Don't change deep_p.
22603 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
22604 FRAME_OUTER_TO_INNER_DIFF_Y.
22605 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22606 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22607 [HAVE_DIALOGS]: New macros.
22608 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
22609 Use them.
22610 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
22611
22612 * macselect.c [MAC_OSX] (install_service_handler): Rename from
22613 init_service_handler. All callers changed. Return OSStatus value.
22614
22615 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
22616 All callers changed so as not to call SetPortWindowPort.
22617 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
22618 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
22619 mac_draw_string_common.
22620 (mac_draw_image_string_qd): Likewise.
22621 (mac_draw_string_common): Use them. Add INLINE.
22622 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
22623 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
22624 GetGlobalMouse.
22625 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
22626 and FRAME_OUTER_TO_INNER_DIFF_Y.
22627 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
22628 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
22629 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
22630 repositioning window to mac_handle_window_event.
22631 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
22632 saving window location to mac_handle_window_event
22633 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
22634 (install_menu_target_item_handler): Remove argument in extern.
22635 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
22636 Also accept command events.
22637 (do_keystroke): New function created from XTread_socket.
22638 (init_command_handler): Remove functions.
22639 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
22640 and save window location by kEventWindowShowing and kEventWindowHiding
22641 handlers here. Don't call next handler for window state change and
22642 focus events.
22643 (mac_handle_application_event, mac_handle_keyboard_event)
22644 [TARGET_API_MAC_CARBON]: New functions.
22645 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
22646 kEventWindowShowing and kEventWindowHiding events. Move installation
22647 of mouse, font, text input and menu target item handlers to
22648 install_application_handler.
22649 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
22650 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22651 New function.
22652 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22653 Register it.
22654 (XTread_socket) [TARGET_API_MAC_CARBON]:
22655 Consolidate SendEventToEventTarget calls.
22656 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22657 Move application activation handler to mac_handle_application_event.
22658 Move keyboard handler to mac_handle_keyboard_event.
22659 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22660 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22661 init_command_handler. Call install_application_handler.
22662
22663 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22664 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22665
226662007-06-07 Glenn Morris <rgm@gnu.org>
22667
22668 * emacs.c (main): Use `emacs-copyright' in --version output.
22669
226702007-06-06 Chong Yidong <cyd@stupidchicken.com>
22671
22672 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22673
226742007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22675
22676 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22677
22678 * macgui.h: Replace WindowPtr with WindowRef.
22679
22680 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22681 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22682 Replace ControlHandle with ControlRef.
22683 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22684
22685 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22686 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22687 Replace ControlHandle with ControlRef.
22688 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22689 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22690
22691 * macterm.h (struct scroll_bar): Rename member control_handle_low
22692 and control_handle_high to control_ref_low and control_ref_high.
22693 All uses changed.
22694 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22695 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22696 respectively. All uses changed.
22697 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22698 (install_window_handler, remove_window_handler): Replace WindowPtr
22699 with WindowRef in externs.
22700
227012007-06-05 Juanma Barranquero <lekktu@gmail.com>
22702
22703 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
22704
227052007-06-03 Nick Roberts <nickrob@snap.net.nz>
22706
22707 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22708
22709 * frame.c (Fmouse_position, Fmouse_pixel_position):
22710 Condition on HAVE_GPM too.
22711
22712 * term.c (term_mouse_highlight): Remove unused variables.
22713 (Fterm_open_connection): Set gpm_zerobased to 1.
22714 (term_mouse_movement, term_mouse_click, handle_one_term_event):
22715 Use zero based co-ordinates.
22716 (handle_one_term_event): Report a drag as mouse movement too.
22717
22718 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22719
227202007-06-03 Chong Yidong <cyd@stupidchicken.com>
22721
22722 * image.c (search_image_cache): New function. Require background
22723 color match if background color is unspecified in the image spec.
22724 (uncache_image, lookup_image): Use it.
22725
227262007-06-01 Juanma Barranquero <lekktu@gmail.com>
22727
22728 * window.c (Fshrink_window): Reflow docstring.
22729
227302007-06-02 Chong Yidong <cyd@stupidchicken.com>
22731
22732 * Version 22.1 released.
22733
227342007-06-01 Richard Stallman <rms@gnu.org>
22735
22736 * xfns.c (x_encode_text): Add GCPRO.
22737
227382007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22739
22740 * xfns.c (x_set_name_internal): Save encoded name before
22741 x_encode_text in case string data is relocated.
22742
227432007-05-31 Richard Stallman <rms@gnu.org>
22744
22745 * buffer.c (syms_of_buffer): Doc fix.
22746
227472007-05-30 Nick Roberts <nickrob@snap.net.nz>
22748
22749 * sysdep.c (init_sys_modes): Add rather than replace with
22750 O_NONBLOCK.
22751
22752 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22753 term_mouse_moveto.
22754
22755 * termhooks.h (term_mouse_moveto): New extern.
22756
22757 * term.c (mouse_face_window): Rename...
22758 (Qmouse_face_window): ...to this.
22759 (term_show_mouse_face, term_clear_mouse_face)
22760 (term_mouse_highlight): Use Qmouse_face_window.
22761 (term_mouse_moveto): New function.
22762 (term_mouse_position): Make it work.
22763 (syms_of_term): Uncomment assignment to mouse_position_hook.
22764 Staticpro Qmouse_face_window.
22765
227662007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22767
22768 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22769 around current_column call.
22770
227712007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22772
22773 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22774 * xdisp.c (next_element_from_buffer):
22775 * window.c (delete_window):
22776 * term.c (term_mouse_highlight):
22777 * msdos.c (getdefdir):
22778 * macterm.c (mac_create_bitmap_from_bitmap_data)
22779 (init_font_name_table):
22780 * fns.c (Fsxhash):
22781 * data.c (Fmake_local_variable):
22782 * ccl.c (ccl_driver): Likewise.
22783
227842007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22785
22786 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22787 Call mac_wakeup_from_rne on window size change.
22788
227892007-05-25 Chong Yidong <cyd@stupidchicken.com>
22790
22791 * image.c (uncache_image): Fix typo.
22792
227932007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22794
22795 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22796
227972007-05-22 Richard Stallman <rms@gnu.org>
22798
22799 * xterm.c (x_connection_closed): Remove NO_RETURN.
22800
228012007-05-22 Martin Rudalics <rudalics@gmx.at>
22802
22803 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22804
228052007-05-21 Chong Yidong <cyd@stupidchicken.com>
22806
22807 * image.c (uncache_image): New function.
22808 (Fimage_refresh): New function.
22809
228102007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22811
22812 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22813
228142007-05-20 Nick Roberts <nickrob@snap.net.nz>
22815
22816 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22817 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22818
228192007-05-20 Nick Roberts <nickrob@snap.net.nz>
22820
22821 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22822 conditional on [HAVE_GPM_H].
22823
228242007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22825
22826 * syntax.c (skip_chars): Update syntax-table only after we checked that
22827 the new location is valid.
22828
228292007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22830
22831 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22832 mac_get_window_bounds.
22833
228342007-05-20 Nick Roberts <nickrob@snap.net.nz>
22835
22836 * Makefile.in (LIBGPM): Allow it to be set from configure.
22837 If set then link Emacs with it.
22838
22839 * config.in: Regenerate.
22840
22841 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22842 New externs.
22843
22844 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22845 Include gpm.h.
22846 (handle_one_term_event, term_gpm): New externs.
22847
22848 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22849 and allow it to be interrupted by SIGIO.
22850
22851 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22852 (wait_reading_process_output): Wait on gpm_fd too.
22853 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22854 (add_gpm_wait_descriptor_called_flag): New variable.
22855 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22856
22857 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22858 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22859 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22860 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22861 (make_lispy_event): Add case GPM_CLICK_EVENT.
22862 (read_avail_input): Handle mouse input.
22863
22864 * term.c (write_glyphs_with_face): New function.
22865 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22866 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22867 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22868 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22869 (last_mouse_x, last_mouse_y): New variables.
22870 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22871 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22872 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22873 (Fterm_close_connection): New functions.
22874 (term_init): Initialise mouse_face_window.
22875
228762007-05-19 Chong Yidong <cyd@stupidchicken.com>
22877
22878 * xdisp.c (redisplay_window): If first window line is a
22879 continuation line, recompute the new window start instead of
22880 recentering.
22881
228822007-05-18 Glenn Morris <rgm@gnu.org>
22883
22884 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22885 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22886
228872007-05-17 Glenn Morris <rgm@gnu.org>
22888
22889 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22890
228912007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22892
22893 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22894 dead key repeat and up events.
22895
228962007-05-14 Chong Yidong <cyd@stupidchicken.com>
22897
22898 * image.c (pbm_load): Check image size for monochrome pbm.
22899
229002007-05-13 Chong Yidong <cyd@stupidchicken.com>
22901
22902 * xterm.c (XTread_socket): Revert last change.
22903
229042007-05-12 Chong Yidong <cyd@stupidchicken.com>
22905
22906 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22907
22908 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22909
229102007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22911
22912 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22913 mixup (YAILOM).
22914
229152007-05-07 Andreas Schwab <schwab@suse.de>
22916
22917 * keymap.c (Flookup_key): Fix typo in last change.
22918
229192007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22920
22921 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22922 mapping for unibyte strings.
22923
229242007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22925
22926 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22927 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22928
229292007-04-29 Richard Stallman <rms@gnu.org>
22930
22931 * insdel.c (replace_range): For undo, record insertion first.
22932
229332007-04-29 Andreas Schwab <schwab@suse.de>
22934
22935 * lisp.h (VECSIZE): Use OFFSETOF.
22936
229372007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22938
22939 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22940 disabled lines.
22941
229422007-04-28 Richard Stallman <rms@gnu.org>
22943
22944 * lread.c (read_escape): In a string, \s is always space.
22945
229462007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22947
22948 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22949
22950 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22951 submenu for menu bar items.
22952
22953See ChangeLog.10 for earlier changes.
22954
22955;; Local Variables:
22956;; coding: utf-8
22957;; add-log-time-zone-rule: t
aac0c6e3
MR
22958;; End:
22959
5df4f04c 22960 Copyright (C) 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
aac0c6e3
MR
22961
22962 This file is part of GNU Emacs.
22963
22964 GNU Emacs is free software: you can redistribute it and/or modify
22965 it under the terms of the GNU General Public License as published by
22966 the Free Software Foundation, either version 3 of the License, or
22967 (at your option) any later version.
22968
22969 GNU Emacs is distributed in the hope that it will be useful,
22970 but WITHOUT ANY WARRANTY; without even the implied warranty of
22971 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22972 GNU General Public License for more details.
22973
22974 You should have received a copy of the GNU General Public License
22975 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22976
22977;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40