Typo fix in doc/lispref/files.texi.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
25fb3d74
AS
12011-05-09 Andreas Schwab <schwab@linux-m68k.org>
2
3 * xmenu.c (set_frame_menubar): Fix submenu loops.
4
14fe7b53
EZ
52011-05-09 Eli Zaretskii <eliz@gnu.org>
6
7 Backport revisions 103939.1.41..103939.1.44 (inclusive) from trunk.
8 (bug#8623)
9 The next log entry shows the actual changes by Paul Eggert.
10
112011-05-08 Paul Eggert <eggert@cs.ucla.edu>
12
13 Fix a problem with aliasing and vector headers.
14 GCC 4.6.0 optimizes based on type-based alias analysis. For
15 example, if b is of type struct buffer * and v of type struct
16 Lisp_Vector *, then gcc -O2 was incorrectly assuming that &b->size
17 != &v->size, and therefore "v->size = 1; b->size = 2; return
18 v->size;" must therefore return 1. This assumption is incorrect
19 for Emacs, since it type-puns struct Lisp_Vector * with many other
20 types. To fix this problem, this patch adds a new type struct
21 vector_header that documents the constraints on layout of vectors
22 and pseudovectors, and helps optimizing compilers not get fooled
23 by Emacs's type punning. It also adds the macros XSETTYPED_PVECTYPE
24 XSETTYPED_PSEUDOVECTOR, TYPED_PSEUDOVECTORP, for similar reasons.
25 * lisp.h (XVECTOR_SIZE): New convenience macro. All previous uses of
26 XVECTOR (foo)->size replaced to use this macro, to avoid the hassle
27 of writing XVECTOR (foo)->header.size.
28 * lisp.h: Say "vectorlike header" rather than "vector header.
29 (struct vectorlike_header): Rename from struct vector_header.
30 (XVECTORLIKE_HEADER_SIZE): Renamed from XVECTOR_HEADER_SIZE.
31 All uses changed.
32 (XVECTOR_HEADER_SIZE): New macro, for use in XSETPSEUDOVECTOR.
33 (XSETTYPED_PVECTYPE): New macro, specifying the name of the size
34 member.
35 (XSETPVECTYPE): Rewrite in terms of new macro.
36 (XSETPVECTYPESIZE): New macro, specifying both type and size.
37 This is a bit clearer, and further avoids the possibility of
38 undesirable aliasing.
39 (XSETTYPED_PSEUDOVECTOR): New macro, specifying the size.
40 (XSETPSEUDOVECTOR): Rewrite in terms of XSETTYPED_PSEUDOVECTOR
41 and XVECTOR_HEADER_SIZE.
42 (XSETSUBR): Rewrite in terms of XSETTYPED_PSEUDOVECTOR and XSIZE,
43 since Lisp_Subr is a special case (no "next" field).
44 (ASIZE): Rewrite in terms of XVECTOR_SIZE.
45 (struct vector_header): New type.
46 (TYPED_PSEUDOVECTORP): New macro, also specifying the C type of the
47 object, to help avoid aliasing.
48 (PSEUDOVECTORP): Rewrite in terms of TYPED_PSEUDOVECTORP.
49 (SUBRP): Likewise, since Lisp_Subr is a special case.
50
51 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table):
52 (struct Lisp_Sub_Char_Table, struct Lisp_Bool_Vector):
53 (struct Lisp_Hash_Table): Combine first two members into a single
54 struct vector_header member. All uses of "size" and "next" members
55 changed to be "header.size" and "header.next".
56 * buffer.h (struct buffer): Likewise.
57 * font.h (struct font_spec, struct font_entity, struct font): Likewise.
58 * frame.h (struct frame): Likewise.
59 * process.h (struct Lisp_Process): Likewise.
60 * termhooks.h (struct terminal): Likewise.
61 * window.c (struct save_window_data, struct saved_window): Likewise.
62 * window.h (struct window): Likewise.
63 * alloc.c (allocate_buffer, Fmake_bool_vector, allocate_pseudovector):
64 Use XSETPVECTYPESIZE, not XSETPVECTYPE, to avoid aliasing problems.
65 * buffer.c (init_buffer_once): Likewise.
66 * lread.c (defsubr): Use XSETTYPED_PVECTYPE, since Lisp_Subr is a
67 special case.
68 * process.c (Fformat_network_address): Use local var for size,
69 for brevity.
70 * fns.c (vector): Remove; this old hack is no longer needed.
71 * bytecode.c (exec_byte_code): Don't use XVECTOR before CHECK_VECTOR.
72
fab624aa
EZ
732011-04-29 Eli Zaretskii <eliz@gnu.org>
74
75 * w32heap.c (allocate_heap) [USE_LISP_UNION_TYPE || USE_LSB_TAG]:
76 New version that can reserve upto 2GB of heap space.
77
45cb8994
CY
782011-04-26 Chong Yidong <cyd@stupidchicken.com>
79
80 * nsfns.m (Fns_read_file_name): Doc fix (Bug#8534).
81
97a93095
EZ
822011-04-18 Eli Zaretskii <eliz@gnu.org>
83
84 * s/ms-w32.h (localtime): Redirect to sys_localtime.
85
86 * w32.c: Include <time.h>.
87 (sys_localtime): New function.
88
c17819f4
CY
892011-04-13 Chong Yidong <cyd@stupidchicken.com>
90
91 * xdisp.c (init_xdisp): Initialize echo_area_window (Bug#6451).
92
300f9fca
ST
932011-04-10 Samuel Thibault <sthibault@debian.org> (tiny change)
94
95 * sysdep.c (wait_for_termination): On GNU Hurd, kill returns -1 on
96 zombies (Bug#8467).
97
fde4eb86
CY
982011-04-10 Chong Yidong <cyd@stupidchicken.com>
99
100 * buffer.c (syms_of_buffer): Doc fix (Bug#6902).
101
5324d904
CY
1022011-04-08 Chong Yidong <cyd@stupidchicken.com>
103
65969f63
CY
104 * ftfont.c (get_adstyle_property, ftfont_pattern_entity): Use
105 unsigned char, to match FcChar8 type definition.
106
107 * xterm.c (handle_one_xevent):
108 * xmenu.c (create_and_show_popup_menu):
109 * xselect.c (x_decline_selection_request)
110 (x_reply_selection_request): Avoid type-punned deref of X events.
5324d904 111
da2fb5b5 1122011-04-08 Samuel Thibault <sthibault@debian.org> (tiny change)
0080dc6b
SS
113
114 * term.c (init_tty): Fix incorrect ifdef placement (Bug#8450).
115
4e19a977
CS
1162011-03-19 Christoph Scholtes <cschol2112@googlemail.com>
117
118 * process.c (Fformat_network_address): Doc fix.
119
20f56955
CY
1202011-03-19 Chong Yidong <cyd@stupidchicken.com>
121
122 * buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
123 (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
124 These macros can no longer be used for assignment.
125
126 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Assign
127 struct members directly, instead of using BUF_BEGV etc.
128 (record_buffer_markers, fetch_buffer_markers): New functions for
129 recording and fetching special buffer markers.
130 (set_buffer_internal_1, set_buffer_temp): Use them.
131
132 * lread.c (unreadchar): Use SET_BUF_PT_BOTH.
133
134 * insdel.c (adjust_point): Use SET_BUF_PT_BOTH.
135
136 * intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
137 (get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.
138
139 * xdisp.c (hscroll_window_tree):
140 (reconsider_clip_changes): Use PT instead of BUF_PT.
141
45763476
JB
1422011-03-17 Juanma Barranquero <lekktu@gmail.com>
143
144 * xfaces.c (Fx_load_color_file):
145 Read color file from absolute filename (bug#8250).
146
1e048ad1
JB
1472011-03-11 Juanma Barranquero <lekktu@gmail.com>
148
149 Backport revno:103582 from trunk.
150 * w32xfns.c (select_palette): Check success of RealizePalette against
151 GDI_ERROR, not zero.
152
c47cbdfd
YM
1532011-03-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
154
126bc0dc
YM
155 * fringe.c (update_window_fringes): Remove unused variables.
156
c47cbdfd
YM
157 * unexmacosx.c (copy_data_segment): Also copy __got section.
158 (Bug#8223)
159
c6678f29 1602011-03-07 Chong Yidong <cyd@stupidchicken.com>
22770c84
CY
161
162 * Version 23.3 released.
163
e3b300a4
KH
1642011-02-22 Kenichi Handa <handa@m17n.org>
165
166 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
167 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is
168 integer.
169
f6ed3dbe
CY
1702011-02-19 Chong Yidong <cyd@stupidchicken.com>
171
172 * Makefile.in (prefix-args${EXEEXT}): Compile with ALL_CFLAGS.
173
a73d395b
EZ
1742011-02-13 Eli Zaretskii <eliz@gnu.org>
175
176 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
177 window is changed inside calls to do_pending_window_change.
178 (Bug#8020)
179
cb191a14
EZ
1802011-02-12 Eli Zaretskii <eliz@gnu.org>
181
182 * terminal.c (create_terminal): Use default-keyboard-coding-system
183 and default-terminal-coding-system to initialize coding systems of
184 the new terminal. (Bug#7840)
185
bae1fa42
MR
1862011-02-09 Martin Rudalics <rudalics@gmx.at>
187
188 * window.c (select_window): Check inhibit_point_swap argument when
189 deciding whether to return immediately.
190
9aabf64c
JD
1912011-02-08 Jan Djärv <jan.h.d@swipnet.se>
192
193 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
194 zero (Bug#7348).
195
95838641
GM
1962011-02-03 Glenn Morris <rgm@gnu.org>
197
198 * xfaces.c (Finternal_set_lisp_face_attribute):
199 Try to clarify some error messages. (Bug#2659)
200
aca092ac
SM
2012011-02-02 Stefan Monnier <monnier@iro.umontreal.ca>
202
203 * editfns.c (save_restriction_restore): Don't forget to invalidate the
204 current_column cache (bug#7946).
205
ea2460a0
KH
2062011-02-02 Kenichi Handa <handa@m17n.org>
207
208 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
209
210 * xftfont.c (xftfont_open): Likewise.
211
29feb0e9
AS
2122011-02-01 Andreas Schwab <schwab@linux-m68k.org>
213
214 * window.c (Fselect_window): Add missing return value.
215
df61c790
AS
2162011-01-29 Andreas Schwab <schwab@linux-m68k.org>
217
218 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
219 of int. All uses adjusted.
220 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
221 (svg_load_image): Remove casts.
222
7f9c5df9
CY
2232011-01-29 Chong Yidong <cyd@stupidchicken.com>
224
225 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
226 function definitions for compiling with libpng-1.5.
227 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
228 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
229 (Bug#7908).
230
46b3f2be
CY
2312011-01-28 Chong Yidong <cyd@stupidchicken.com>
232
233 * m/intel386.h: Define NO_ARG_ARRAY. Suggested by Dan Nicolaescu.
234
37d1c45d
CY
2352011-01-27 Chong Yidong <cyd@stupidchicken.com>
236
237 * font.c (font_parse_fcname): Require GTK-style font sizes to
238 occur at the end of the font string (Bug#7853).
239
ea08011c
CY
2402011-01-26 Chong Yidong <cyd@stupidchicken.com>
241
242 * font.c (font_parse_fcname): Fix typo in string length.
243
f996bbcb
SM
2442011-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
245
246 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
247 the buffer's point-max (bug#7876).
248
19634648
CY
2492011-01-23 Chong Yidong <cyd@stupidchicken.com>
250
251 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
252 Remove unused HAVE_SHM branch (Bug#6811).
253
6de1218f 2542011-01-23 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19634648 255
6de1218f
PG
256 * s/hpux11.h: Set CANNOT_DUMP on IA64 (Bug#6811).
257
e6b84b30
MR
2582011-01-22 Martin Rudalics <rudalics@gmx.at>
259
260 * window.c (select_window): New function.
261 (Fselect_window): Call it.
262 (inhibit_point_swap): Variable deleted.
263 (Fset_window_configuration): Call select_window directly.
264
0514b4be
SM
2652011-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
266
267 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
268
e7f50e8f
EZ
2692011-01-16 Eli Zaretskii <eliz@gnu.org>
270
271 * image.c (syms_of_image): Don't use SET_SYMBOL_VALUE. (Bug#7848)
272
6dc1d2d3
MR
2732011-01-15 Martin Rudalics <rudalics@gmx.at>
274
275 * window.c (inhibit_point_swap): New variable.
276 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
277 point this time.
278 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
279 of setting selected_window to nil (Bug#7728).
280
70ba1ec8
CY
2812011-01-12 Chong Yidong <cyd@stupidchicken.com>
282
283 * config.in (TERMINFO): New definition.
284
285 * s/netbsd.h: Use it to choose between terminfo and termcap
286 (Bug#7642).
287
0ad25444
JD
2882011-01-03 Jan Djärv <jan.h.d@swipnet.se>
289
290 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
291
292 * nsfns.m (ns_set_name_iconic): Remove.
293 (ns_get_screen): Don't assign integer to f.
294 (ns_set_name_internal): New function (Bug#7517).
295 (Vicon_title_format): Extern declare.
296 (ns_set_name): Call ns_set_name_internal.
297 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
298 (x_implicitly_set_name): Ditto.
299 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
300 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8.
301 Always use buffer name for title and buffer filename only for
b762841f 302 RepresentedFilename. Handle bad UTF-8 in buffer name (Bug#7517).
0ad25444 303
fb724e55
EZ
3042011-01-03 Eli Zaretskii <eliz@gnu.org>
305
306 * image.c (png_jmpbuf): Remove definition.
307 (my_png_error, png_load): Don't use png_jmpbuf.
308
5be1c984
EZ
3092010-12-31 Eli Zaretskii <eliz@gnu.org>
310
311 * image.c <Qlibpng_version>: New variable.
312 (syms_of_image): Intern and staticpro it. Set its value to the
313 version of PNG library we were compiled with.
314 (my_png_error, png_load): Avoid GCC warnings about direct access
315 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
316 (png_jmpbuf): New macro.
317 (my_png_error, png_load): Use it instead of #ifdef'ing according
318 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 319
cf07311b
SM
3202010-12-27 Stefan Monnier <monnier@iro.umontreal.ca>
321
322 * .gdbinit (xgetptr): Fix the union+lsb case.
323 (xbacktrace): Fix the union case.
324
794b75c7
SM
3252010-12-26 Stefan Monnier <monnier@iro.umontreal.ca>
326
327 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
328 different from selected-window's.
329
2e4ab211
EZ
3302010-12-25 Eli Zaretskii <eliz@gnu.org>
331
71fe378d
EZ
332 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
333 equivalent of a menu item when the key sequence is given by the
334 `:keys' attribute. (Bug#7662)
335
2e4ab211
EZ
336 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
337 the basic faces are supported.
338
84595ff0
JD
3392010-12-24 Jan Djärv <jan.h.d@swipnet.se>
340
341 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
342
30d621a2
EZ
3432010-12-17 Eli Zaretskii <eliz@gnu.org>
344
345 * xdisp.c (Fformat_mode_line): Fix last change.
346
4bf3e46e
CY
3472010-12-16 Chong Yidong <cyd@stupidchicken.com>
348
349 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
350 faces (Bug#7587).
351
1b2a627f
EZ
3522010-12-13 Eli Zaretskii <eliz@gnu.org>
353
354 * fileio.c (Fexpand_file_name): One more doc fix.
355
15579471
EZ
3562010-12-12 Eli Zaretskii <eliz@gnu.org>
357
358 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
359
f0559026
EZ
3602010-12-11 Eli Zaretskii <eliz@gnu.org>
361
76feb864
EZ
362 * w32fns.c (Fx_show_tip): Call try_window with last argument
363 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
364 solved. Round up the tip height to an integral multiple of the
365 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
366 (Bug#7398)
367
f0559026
EZ
368 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
369 (face_before_or_after_it_pos, next_element_from_string)
370 (next_element_from_c_string, produce_stretch_glyph): Remove unused
371 calculations of maximum string length before calling
372 string_char_and_length and STRING_CHAR_AND_LENGTH.
373 (string_char_and_length): Update commentary: MAXLEN is no longer
374 needed.
375
0b9fc69a
JD
3762010-12-10 Jan Djärv <jan.h.d@swipnet.se>
377
378 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
379 as (Qsave_session arg).
380
381 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
382 (smc_die_CB): Make an event with arg Qt.
383 (Fhandle_save_session): If event has Qt as argument,
384 call Fkill_emacs (Bug#7552).
385
2b815743
JD
3862010-12-07 Jan Djärv <jan.h.d@swipnet.se>
387
388 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
389
d8b2a962
CY
3902010-12-06 Chong Yidong <cyd@stupidchicken.com>
391
392 * dispextern.h (struct it): New member overlay_strings_charpos.
393
394 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
395 charpos where we computed n_overlay_strings.
396 (next_overlay_string): Load overlay strings at recorded position,
397 which may not be the same as the iterator's charpos (Bug#7016).
398
a56d164e
JD
3992010-12-05 Jan Djärv <jan.h.d@swipnet.se>
400
401 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
402 with cursor color and draw a rectangle around the image (Bug#7412).
403
77f1ed6c
CY
4042010-12-05 Chong Yidong <cyd@stupidchicken.com>
405
406 * xdisp.c (try_scrolling): Avoid infloop if the first line is
407 obscured due to a vscroll (Bug#7537).
408
2a91a0b5
JD
4092010-12-02 Jan Djärv <jhd@zeplinf.localdomain>
410
411 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
412
413 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
414 Use FRAME_TOOLBAR_HEIGHT.
415 (x_set_offset): Handle XNegative and YNegative in
416 f->size_hint_flags (Bug#7510).
417
b84ae584
KH
4182010-11-25 Kenichi Handa <handa@m17n.org>
419
420 * charset.c (emacs_mule_charset): Make it an array of charset ID;
421 i.e. integer.
422 (Fdefine_charset_internal): Adjusted for the above change.
423 (init_charset_once): Likewise.
424
425 * charset.h (emacs_mule_charset): Adjust the prototype. Delete
426 duplicated extern.
427
428 * coding.c (emacs_mule_char): Adjust for the change of
429 emacs_mule_charset.
430
431 * lread.c (read_emacs_mule_char): Adjust for the change of
432 emacs_mule_charset.
433
b8e5cf1d
EZ
4342010-11-22 Eli Zaretskii <eliz@gnu.org>
435
436 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
437 of w32api >= 3.15. (Bug#6989) (Bug#7452)
438
96ad0af7
YM
4392010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
440
441 * alloc.c (mark_terminals): Ensure that the image cache is marked
442 even if the terminal object was marked earlier (Bug#6301).
443
35f1de62
CY
4442010-11-21 Chong Yidong <cyd@stupidchicken.com>
445
446 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
447
8d7f026f
JD
4482010-11-20 Jan Djärv <jan.h.d@swipnet.se>
449
450 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
451 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
b762841f 452 Use 23 as menubar height if 0. (Bug#7425).
8d7f026f 453
37de8fd0
J
4542010-11-14 Jan Djärv <jan.h.d@swipnet.se>
455
456 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
457
458 * config.in (HAVE_G_TYPE_INIT): New symbol.
459
c7926fe2
EZ
4602010-11-12 Eli Zaretskii <eliz@gnu.org>
461
462 * lread.c (Fload): Mention `load-in-progress' and
463 `load-file-name'. (Bug#7346)
464
c0098065
EZ
4652010-11-09 Eli Zaretskii <eliz@gnu.org>
466
86520d8c
EZ
467 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
468 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
469 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
470 subprocesses. Use buffer_free only ifdef subprocesses.
471
472 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
473 the subprocesses version, not in the non-subprocesses one.
474
794a4b6d
EZ
475 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
476
c0098065
EZ
477 * xfns.c (x_real_positions): Fix declaration-after-statement
478 problem.
479
be3faa80
CY
4802010-11-05 Chong Yidong <cyd@stupidchicken.com>
481
482 * image.c (free_image): Don't garbage the frame here, since this
483 function can be called while redisplaying (Bug#7210).
484 (uncache_image): Garbage the frame here (Bug#6426).
485
055c91d4 4862010-11-04 Chong Yidong <cyd@stupidchicken.com>
184765cc
CY
487
488 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
489 Windows.
490
055c91d4 4912010-11-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
bd80a886
YM
492
493 * process.c (Fmake_network_process): Don't call turn_on_atimers around
494 `connect' (Bug#5723).
495
055c91d4 4962010-11-04 Helmut Eller <eller.helmut@gmail.com>
c2e124a9
HE
497
498 * process.c (Fmake_network_process): Call `select' for interrupted
499 `connect' rather than creating new socket (Bug#5173).
500
68ae6cda
KH
5012010-11-04 Kenichi Handa <handa@m17n.org>
502
503 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
504 Don't sheck SPEC if it is nil.
505 (font_list_entities): Call font_delete_unmatched if
506 Vface_ignored_fonts is non-nil.
507
db5cada2 5082010-11-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
fa884f18 509
2511e8e0
CY
510 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
511 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
512
513 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
514 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
515 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
516 TRY_WINDOW_CHECK_MARGINS.
517
518 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
519 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423).
fa884f18 520
d75c9992
JD
5212010-11-04 Jan Djärv <jan.h.d@swipnet.se>
522
31887d45
JD
523 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
524 parent is the root window. Check this after traversing window tree.
525
d75c9992
JD
526 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
527
528 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
529
530 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
531 before traversing window tree (Bug#5721).
532
754996bc
GM
5332010-11-03 Glenn Morris <rgm@gnu.org>
534
535 * Makefile.in (CRT_DIR): New variable, set by configure.
536 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
537 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
538
3649d303
JD
5392010-11-01 Jan Djärv <jan.h.d@swipnet.se>
540
541 * process.c (kbd_is_on_hold): New variable.
542 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
543 New functions.
544 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
545 select on empty input mask.
546 (init_process): Initialize kbd_is_on_hold to 0.
547
548 * process.h (hold_keyboard_input, unhold_keyboard_input)
549 (kbd_on_hold_p): Declare.
550
551 * keyboard.c (input_available_signal): Declare.
552 (kbd_buffer_nr_stored): New function.
553 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
554 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
555 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
556 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
557 (tty_read_avail_input): If input is on hold, return.
558 Don't read more that free slots in kbd_buffer (Bug#6571).
559
46eadc7a
CY
5602010-10-31 Chong Yidong <cyd@stupidchicken.com>
561
562 * xterm.c (x_connection_closed): Print informative error message
563 when aborting on GTK. This requires using shut_down_emacs
564 directly instead of Fkill_emacs.
565
655441b2
MA
5662010-10-25 Michael Albinus <michael.albinus@gmx.de>
567
568 * dbusbind.c (Fdbus_call_method_asynchronously)
569 (Fdbus_register_signal, Fdbus_register_method): Check, whether
570 `dbus-registered-objects-table' is initialized.
571
23c261f5
CY
5722010-10-24 Chong Yidong <cyd@stupidchicken.com>
573
574 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
575
89baa1df
EZ
5762010-10-22 Eli Zaretskii <eliz@gnu.org>
577
578 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
579
580 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
581 Deprecate use as a boolean flag.
582
5419963b
KB
5832010-10-18 Ken Brown <kbrown@cornell.edu>
584
585 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
586
31daa5e1
KH
5872010-10-15 Kenichi Handa <handa@m17n.org>
588
589 Fix incorrect font metrics when the same font is opened with
590 different pixelsizes.
591
592 * xftfont.c: Include composite.h.
593 (xftfont_shape): New function.
594 (syms_of_xftfont): Set xftfont_driver.shape.
595
9fa82824
DP
5962010-10-13 Damyan Pepper <damyanp@gmail.com>
597
598 Fix handling of font properties on Windows (bug#6303).
599 * font.c (font_filter_properties): New function, refactored from
600 ftfont_filter_properties.
601 * font.h (font_filter_properties): Declare.
602 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
603 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
604 (w32font_filter_properties): New function.
605 (w32font_driver): Add w32font_filter_properties.
606
51e4f4a8
JB
6072010-10-12 Juanma Barranquero <lekktu@gmail.com>
608
c0943d3d 609 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
610 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
611
a2e35ef5
JD
6122010-10-10 Jan Djärv <jan.h.d@swipnet.se>
613
614 * nsterm.m (Qleft): Declare.
615 (ns_right_alternate_modifier): New variable
616 (NSRightAlternateKeyMask): New define.
617 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
618 ns_right_alternate_modifier isn't Qleft.
619 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
620 as emacs modifier for NSRightAlternateKeyMask.
621 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
622
2e828c79
MA
6232010-10-08 Michael Albinus <michael.albinus@gmx.de>
624
625 * dbusbind.c (xd_get_dispatch_status): Return a Lisp_Object.
626 (xd_pending_messages): Catch xd_get_dispatch_status calls.
627
93d50df8
KH
6282010-10-08 Kenichi Handa <handa@m17n.org>
629
2b7c9342 630 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 631
a79b0f28
MA
6322010-10-03 Michael Albinus <michael.albinus@gmx.de>
633
634 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
635 (Fdbus_init_bus): ... here. (Bug#7113)
636
7b2bf907
GM
6372010-10-03 Glenn Morris <rgm@gnu.org>
638
639 * buffer.c (before-change-functions, after-change-functions):
640 Three-year overdue doc fix following 2007-08-13 change.
641
1911a33b
KH
6422010-10-02 Kenichi Handa <handa@m17n.org>
643
644 * coding.c (coding_inherit_eol_type): If parent doesn't specify
645 eol-format, inherit from the system's default.
646 (complement_process_encoding_system): Make a new coding system
647 inherit the original eol-format.
648
fcaf8878
KH
6492010-09-30 Kenichi Handa <handa@m17n.org>
650
651 * coding.c (complement_process_encoding_system): New function.
652
653 * coding.h (complement_process_encoding_system): Extern it.
654
655 * callproc.c (Fcall_process): Complement the coding system for
656 encoding arguments.
657 (Fcall_process_region): Complement the coding system for encoding
658 the input to the process.
659
660 * process.c (Fstart_process): Complement the coding system for
661 encoding arguments.
662 (send_process): Complement the coding system for encoding what
663 sent to the process.
664
18acb5ad
KH
6652010-09-29 Kenichi Handa <handa@m17n.org>
666
667 * xfont.c (xfont_open): Fix setting of font->average_width from
668 :avgwidth property (Bug#7123).
669
dec83468
MA
6702010-09-28 Michael Albinus <michael.albinus@gmx.de>
671
672 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
673 is more portable.
674
675 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
b762841f 676 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
dec83468
MA
677 has not defined SIGIO.
678
e0720500
MA
6792010-09-27 Michael Albinus <michael.albinus@gmx.de>
680
11a5af7c 681 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
682 (Bug#7113)
683
42d3022b
J
6842010-09-26 Jan Djärv <jan.h.d@swipnet.se>
685
686 * xgselect.c (xg_select): Clear file descriptors not set from
687 rfds and wfds.
688
fbb3da77
SM
6892010-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
690
691 * syntax.c (back_comment): Detect the case where a 1-char comment
692 starter is also the 2nd char of a 2-char comment ender.
693
2b5b82db
J
6942010-09-17 Jan Djärv <jan.h.d@swipnet.se>
695
696 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
697
5f61a25c
J
6982010-09-12 Jan Djärv <jan.h.d@swipnet.se>
699
700 * xterm.c (get_current_vm_state): New function.
701 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
702 want_fullscreen so set_wm_state calls are few (Bug#7013).
703 (x_handle_net_wm_state): Move code to get_current_vm_state and
704 call that function.
705
65c92e31 7062010-09-11 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
707
708 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
709
a552b35a
KH
7102010-09-08 Kenichi Handa <handa@m17n.org>
711
712 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
713 we may use designation or locking-shift.
714
396475b7
KH
7152010-09-07 Kenichi Handa <handa@m17n.org>
716
717 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
718 sequence when the source is multibyte.
719
d419e1d9
KH
7202010-08-31 Kenichi Handa <handa@m17n.org>
721
722 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
723 characters.
724
725 * term.c (encode_terminal_code): Fix the previous change.
65b3d997
A
726 (produce_glyphs): Don't set it->char_to_display here.
727 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
728 (produce_special_glyphs): Set temp_it.char_to_display before
729 calling produce_glyphs.
730
731 * xdisp.c (get_next_display_element): Set it->char_to_display
732 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
733 characters.
734 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
735 calling PRODUCE_GLYPHS.
736 (append_space_for_newline): Save and store it->char_to_display.
737 Set it->char_to_display before calling PRODUCE_GLYPHS.
738 (extend_face_to_end_of_line): Set it->char_to_display before
739 calling PRODUCE_GLYPHS.
740 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
741 character to its byte value.
742 (get_char_glyph_code): New function.
743 (produce_stretch_glyph): Set it2.char_to_display too before
744 calling x_produce_glyphs.
745 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
746 non-ASCII characters. Don't set it->char_to_display here.
747 Don't handle unibyte-display-via-language-environment here. For a
c0943d3d 748 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 749
769ae9e1
KH
7502010-08-29 Kenichi Handa <handa@m17n.org>
751
752 * term.c (encode_terminal_code): Encode byte chars to the
753 correspnding bytes.
754
b72e0717
AS
7552010-08-17 Andreas Schwab <schwab@linux-m68k.org>
756
757 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
758 instead of SAFE_ALLOCA.
759
3a7a9129
CY
7602010-08-17 Chong Yidong <cyd@stupidchicken.com>
761
762 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
763 (Bug#6214).
764
983b8302
J
7652010-08-14 Jan Djärv <jan.h.d@swipnet.se>
766
767 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
768
7d1b9df3
J
7692010-08-13 Jan Djärv <jan.h.d@swipnet.se>
770
771 * doc.c (Fsnarf_documentation): Initialize skip_file before
772 build-files test.
773
2294b255
PG
7742010-08-09 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
775
65b3d997
A
776 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
777 New definitions.
2294b255
PG
778 (HAVE_TERMIO): Remove.
779
7a84eee5
KH
7802010-08-06 Kenichi Handa <handa@m17n.org>
781
782 * charset.c: Include <stdlib.h>
783 (struct charset_sort_data): New struct.
784 (charset_compare): New function.
c0943d3d 785 (Fsort_charsets): New function.
7a84eee5
KH
786 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
787
788 * coding.c (decode_coding_iso_2022): Fix checking of dimension
789 number in CTEXT extended segment.
790
f5f6c0e0
JB
7912010-08-01 Juanma Barranquero <lekktu@gmail.com>
792
793 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
794 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
795
b756c005
JB
7962010-07-30 Juanma Barranquero <lekktu@gmail.com>
797
798 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
799 (Fhash_table_size): Fix typos in docstrings.
800 (Fmake_hash_table): Doc fix.
801
b4f588fa
JB
8022010-07-28 Juanma Barranquero <lekktu@gmail.com>
803
804 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
805 Doc fix (bug#5625).
806
9f8c08a7
KB
8072010-07-27 Ken Brown <kbrown@cornell.edu>
808
809 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
810 the MSDOS definition.
811
a2a0d36b
CS
8122010-07-25 Christoph Scholtes <cschol2112@gmail.com>
813
814 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
815
a77cfeaf
CS
8162010-07-22 Christoph Scholtes <cschol2112@gmail.com>
817
818 * window.c (Fwindow_height): Doc fix (bug#6518).
819
14fb5704
JB
8202010-07-21 Juanma Barranquero <lekktu@gmail.com>
821
822 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
823
499322ce
J
8242010-07-17 Jan Djärv <jan.h.d@swipnet.se>
825
826 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
827 is related to the menu bar (Bug#6499).
828
b78f9767
J
8292010-07-14 Jan Djärv <jan.h.d@swipnet.se>
830
831 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
832
833 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
834
835 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
836 i.e. don't put back ButtonRelease (Bug#6608).
837
838 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
839 instead of Window. Call xg_event_is_for_menubar when
840 USE_GTK (Bug#6499).
841
842 * gtkutil.h (xg_event_is_for_menubar): Declare.
843
844 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
845
1f60c16a
EZ
8462010-07-14 Eli Zaretskii <eliz@gnu.org>
847
848 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
849 when it's the same as the old foreground. (Bug#6609)
850
7c33a057
CY
8512010-07-10 Chong Yidong <cyd@stupidchicken.com>
852
853 * xfaces.c (realize_face): Garbage the frame if a face is removed
854 (Bug#6593).
855
9d70a3fc
AS
8562010-07-05 Andreas Schwab <schwab@linux-m68k.org>
857
858 * keyboard.c: Remove duplicate <setjmp.h>.
859 (read_key_sequence): Remove volatile qualifiers.
860
5a874e95
YM
8612010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
862
863 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
864 (struct glyph_row): New members left_fringe_offset and
865 right_fringe_offset.
866
867 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
868 specially.
869 * w32term.c (w32_draw_fringe_bitmap): Likewise.
870 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
871
872 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
b762841f 873 Take account of bitmap offset.
5a874e95
YM
874 (draw_window_fringes): Take account of window vscroll.
875 (update_window_fringes): Likewise. Extend top-aligned top indicator
876 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
877 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
878 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
879
0682186e
JB
8802010-07-04 Juanma Barranquero <lekktu@gmail.com>
881
882 * w32fns.c (Qtooltip): Declare.
883 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
884
ad3e6f44
J
8852010-07-03 Jan Djärv <jan.h.d@swipnet.se>
886
887 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
888 grab on just Press (Bug#6499).
889
54ee7410
CY
8902010-07-02 Chong Yidong <cyd@stupidchicken.com>
891
892 * frame.c (Qtooltip): New var.
893 (delete_frame): Use it. Fix faulty if statement. Don't update
894 mode line for tooltip frames. Suggested by Martin Rudalics.
895
896 * xfns.c (x_create_tip_frame):
897 * w32fns.c (x_create_tip_frame): Use it.
898
3d8416fc
NA
8992010-06-30 Naohiro Aota <naota@elisp.net> (tiny change)
900
901 * xftfont.c (xftfont_open): Check font width one by one also when
902 spacing is dual.
903
904 * ftfont.c (ftfont_open): Ditto.
905
b1feb9b4
AS
9062010-06-26 Andreas Schwab <schwab@linux-m68k.org>
907
908 * alloc.c (Fmake_byte_code): Don't access undefined argument
909 (Bug#6517).
910
c7dd9743
CY
9112010-06-25 Chong Yidong <cyd@stupidchicken.com>
912
913 * xdisp.c (next_element_from_image): Ensure that after-strings are
914 read the next time we hit handle_stop (Bug#1336).
915
5721b4ed
AS
9162010-06-23 Andreas Schwab <schwab@linux-m68k.org>
917
918 * lread.c (read1): Signal error if #s is not followed by paren.
919
277c5f18
CY
9202010-06-19 Chong Yidong <cyd@stupidchicken.com>
921
52ab9bb2
CY
922 * image.c (free_image): Mark frame as garbaged (Bug#6426).
923
277c5f18
CY
924 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
925
6fda6a0c
GM
9262010-06-15 Glenn Morris <rgm@gnu.org>
927
928 * editfns.c (Fbyte_to_string): Pacify compiler.
929
e454a4a3
SM
9302010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
931
932 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
933 Check `object's type before accessing its guts.
934
657d4c0b
AS
9352010-06-08 Andreas Schwab <schwab@linux-m68k.org>
936
937 * minibuf.c (Fall_completions): Add more checks.
938
9b27fd9f
JB
9392010-06-08 Juanma Barranquero <lekktu@gmail.com>
940
941 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
942
0eb7675e
AS
9432010-06-03 Andreas Schwab <schwab@linux-m68k.org>
944
945 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 946 address. (Bug#6346)
0eb7675e 947
78edd3b7
JB
9482010-06-03 Juanma Barranquero <lekktu@gmail.com>
949
950 * ccl.c (Fccl_program_p): Fix typo in docstring.
951
1ab8293c
SM
9522010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
953
954 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
955 of bug#6305).
956
5ca3929b
CY
9572010-05-27 Chong Yidong <cyd@stupidchicken.com>
958
959 * xdisp.c (redisplay_window): After redisplay, check if point is
960 still valid before setting it (Bug#6177).
961
f5b416d2 9622010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
963
964 * s/netbsd.h: If terminfo is found, use it in preference to
965 termcap. (Bug#6190) [Backport from trunk]
966
aeb77d46
CY
9672010-05-20 Kevin Ryde <user42@zip.com.au>
968
969 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
970 (Voverriding_terminal_local_map, Vsystem_key_alist)
971 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
972
c3bb441d
SM
9732010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
974
975 * editfns.c (Fbyte_to_string): New function.
976
754790b6
CY
9772010-05-18 Chong Yidong <cyd@stupidchicken.com>
978
979 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
980 prevent stack overflow if number of arguments is too large
981 (Bug#6214).
982
c8670ded
EZ
9832010-05-11 Eli Zaretskii <eliz@gnu.org>
984
985 * makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(SRC)/w32.h.
986
987 * w32fns.c: Include w32.h.
988 (Fw32_shell_execute): Decode the error message before passing it
989 to `error'. (Bug#6126)
990
3ffd4615 9912010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
992
993 * ftfont.c: Fix incorrect parentheses of #if condition for
994 definining M17N_FLT_USE_NEW_FEATURE.
995
61a808e8
CY
9962010-05-07 Chong Yidong <cyd@stupidchicken.com>
997
998 * Version 23.2 released.
999
5dcde606
AS
10002010-04-30 Andreas Schwab <schwab@linux-m68k.org>
1001
1002 * composite.c (autocmp_chars): Save point as marker before calling
1003 auto-composition-function (Bug#5984).
1004
1005 * lisp.h (restore_point_unwind): Add prototype.
1006
1007 * fileio.c (restore_point_unwind): Remove static attribute.
1008
c4170e32
KH
10092010-04-23 Kenichi Handa <handa@m17n.org>
1010
1011 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
1012 new feature of libotf and m17n-flt.
65b3d997
A
1013 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
1014 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
1015 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
1016 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
1017 that OUT is NULL. Use OTF_drive_gsub_with_log and
1018 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
1019 OTF_drive_gpos.
1020 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
65b3d997
A
1021 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
1022 Setup mflt_enable_new_feature and mflt_try_otf.
c4170e32 1023
e42cd1a7
JB
10242010-04-19 Juanma Barranquero <lekktu@gmail.com>
1025
1026 * dired.c (Ffile_attributes): Fix typo in docstring.
1027
79353a53
AR
10282010-04-13 Adrian Robert <Adrian.B.Robert@gmail.com>
1029
1030 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1031 NSInteger (Bug#5811).
1032
658b9b93
YM
10332010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1034
1035 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1036 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1037
16009a0e
YM
10382010-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1039
1040 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1041
f016f225
JD
10422010-04-07 Jan Djärv <jan.h.d@swipnet.se>
1043
1044 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
1045 FRAME_LINE_TO_PIXEL_Y.
1046
1047 * xterm.c (x_set_window_size_1): Don't add border_width/height to
1048 pixelwidth/height.
1049
84257d93
CY
10502010-04-05 Chong Yidong <cyd@stupidchicken.com>
1051
1052 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1053 terminal frames (Bug#5837).
1054
95b1abcf
CY
10552010-03-31 Chong Yidong <cyd@stupidchicken.com>
1056
1057 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
1058 * nsterm.h: Fix prototype.
1059
4a217bed
EZ
10602010-03-31 Eli Zaretskii <eliz@gnu.org>
1061
1062 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
1063 in this function. (Bug#5703)
1064
4f103e04
CY
10652010-03-31 Chong Yidong <cyd@stupidchicken.com>
1066
1067 * nsterm.h: Fix last change.
1068
a6d676d9
CY
10692010-03-30 Bernhard Herzog <bh@intevation.de> (tiny change)
1070
1071 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
1072
67fee863
JD
10732010-03-30 Jan Djärv <jan.h.d@swipnet.se>
1074
1075 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
1076 invisible (Bug#5766).
1077
9ae6e189
CY
10782010-03-29 Adrian Robert <adrian.b.robert@gmail.com>
1079
1080 * xdisp.c (x_consider_frame_title, update_window_cursor): Remove
1081 HAVE_NS conditionals.
194d44e7 1082 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
1083
1084 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
1085 filename for the title.
1086 (ns_set_doc_edited): Do nothing if the selected window is a
1087 minibuffer window.
1088
1089 * nsterm.h: Add prototypes for ns_set_name_as_filename and
1090 ns_set_doc_edited.
1091
1092 * nsterm.m: Remove unneeded prototype.
1093
25c72475
GM
10942010-03-28 Glenn Morris <rgm@gnu.org>
1095
1096 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
1097 in the DOC file. (Bug#5336)
1098
f79a01db
CY
10992010-03-24 Chong Yidong <cyd@stupidchicken.com>
1100
1101 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
1102
93318cbd
JD
11032010-03-20 Jan Djärv <jan.h.d@swipnet.se>
1104
1105 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
1106
1107 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
1108
1109 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
1110
ad13a3ee
YM
11112010-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1112
1113 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
1114 XLoadQueryFont.
1115
fbdc1721
KH
11162010-03-16 Kenichi Handa <handa@m17n.org>
1117
1118 * coding.c (decode_coding_ccl): Fix previous change for the
1119 multibyte case.
fb608df3
KH
1120 (encode_coding_ccl): Don't setup ccl program here. Fix for the
1121 case that the output buffer is fullfilled.
1122 (encode_coding): Setup ccl program here.
fbdc1721 1123
35cd7cd6
CY
11242010-03-15 Andreas Politz <politza@fh-trier.de> (tiny change)
1125
1126 * editfns.c (Fformat): Account for string precision when computing
1127 field width (Bug#5710).
1128
618db430
SM
11292010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
1130
c0335e02
SM
1131 Make it possible to C-g in a tight bytecode loop again (bug#5680).
1132 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
1133 (QUIT): Use it to consolidate code and remove redundancy.
1134 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
1135
254c06a8
SM
1136 * regex.c (regex_compile): Setup gl_state as well.
1137
618db430
SM
1138 * syntax.c (skip_chars): Setup gl_state (bug#3823).
1139 (in_classes): Use CONSP before XCAR/XCDR.
1140
233f0c9f
CY
11412010-03-03 Chong Yidong <cyd@stupidchicken.com>
1142
1143 * keymap.c (Fwhere_is_internal): Use Fequal to compare
1144 definitions, so that keyboard macros are correctly handled
1145 (Bug#5481).
1146
75f80e63
EZ
11472010-03-02 Eli Zaretskii <eliz@gnu.org>
1148
1149 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
1150 text that could be relocated inside the call to emacs_mule_char.
1151 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
1152 (CODING_DECODE_CHAR): Add a comment describing its purpose.
1153
dcfb9bc4
KH
11542010-03-02 Kenichi Handa <handa@m17n.org>
1155
fc9a17bc
KH
1156 * character.c (parse_str_as_multibyte): Fix handling of the
1157 multibyte form of raw-bytes.
1158 (str_as_multibyte): Likewise.
1159
dcfb9bc4
KH
1160 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
1161 form of raw-bytes.
1162
412c01b6
CY
11632010-02-28 Chong Yidong <cyd@stupidchicken.com>
1164
1165 * charset.c (load_charset_map_from_file)
1166 (load_charset_map_from_vector): Zero out allocated
1167 charset_map_entries before using them.
1168
df7e1ea0
AS
11692010-02-27 Andreas Schwab <schwab@linux-m68k.org>
1170
1171 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
1172
fe69a722
CY
11732010-02-27 Chong Yidong <cyd@stupidchicken.com>
1174
4ed28cf4
CY
1175 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
1176 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 1177
7379cfce
KH
11782010-02-26 Kenichi Handa <handa@m17n.org>
1179
f88cc4d6
KH
1180 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
1181
7379cfce
KH
1182 * xdisp.c (reseat_to_string): Fix previous change.
1183
cf2fdcfb
CY
11842010-02-26 David Reitter <david.reitter@gmail.com>
1185
1186 * nsfont.m (nsfont_draw): ns_antialias_text should be a
1187 Lisp_Object (Bug#4736).
1188
cc6c7c75
KH
11892010-02-25 Kenichi Handa <handa@m17n.org>
1190
1191 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
1192
32e737d7
JD
11932010-02-24 Jan Djärv <jan.h.d@swipnet.se>
1194
1195 * xterm.c (XTflash): Move declarations before statements.
1196
1197 * gtkutil.c (xg_get_gdk_display): Remove (unused).
1198 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
1199 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
1200 (xg_create_tool_bar): Remove unused variables.
1201 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 1202 (xg_create_frame_widgets): Remove variable grav.
32e737d7 1203
676cae9f
CY
12042010-02-21 Chong Yidong <cyd@stupidchicken.com>
1205
1206 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
1207
886cc2b8
SM
12082010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1209
1210 * term.c (fatal): Add a final \n if needed (bug#5596).
1211
ddb2d8e2
CY
12122010-02-18 Chong Yidong <cyd@stupidchicken.com>
1213
1214 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
1215
2a4f8d3d
GM
12162010-02-18 Glenn Morris <rgm@gnu.org>
1217
1218 * callint.c (Finteractive): Doc fix.
1219
ebaf11b6
KH
12202010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
1221
886cc2b8
SM
1222 * coding.c (record_conversion_result):
1223 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
1224 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
1225 memory allocation error.
1226
d0396581
KH
12272010-02-17 Kenichi Handa <handa@m17n.org>
1228
886cc2b8
SM
1229 * coding.c (decode_coding_ccl): Don't setup ccl program here.
1230 Fix for the case that the output buffer is fullfilled.
d0396581
KH
1231 (decode_coding): Setup ccl program here. Keep looping when the
1232 decoder stopped because the output buffer is
1233 fullfilled (bug#5534).
1234
1235 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
1236
98599f74
JD
12372010-02-13 Jan Djärv <jan.h.d@swipnet.se>
1238
471e4f04 1239 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 1240 bug #5571.
886cc2b8 1241 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 1242 overdrawn.
98599f74 1243
182659ae
JD
12442010-02-10 Jan Djärv <jan.h.d@swipnet.se>
1245
1246 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
1247 doing_interact here.
1248 (ice_connection_closed): New function.
1249 (x_session_check_input, smc_die_CB, ice_io_error_handler)
1250 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
1251 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
1252 returns I/O error.
1253 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
1254 bug #5512.
1255
9be32c4e 12562010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
1257
1258 * nsfont.m (nsfont_open): The system's value for the font descent
1259 is negative, so round it down to avoid clipping.
1260
a2f3eb19
CY
12612010-02-06 Chong Yidong <cyd@stupidchicken.com>
1262
1263 * charset.c (load_charset_map_from_file)
1264 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 1265 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 1266
3088147c
CY
12672010-02-05 Chong Yidong <cyd@stupidchicken.com>
1268
1269 * charset.c (load_charset_map_from_file): Allocate large
1270 charset_map_entries structure on the heap rather than the stack.
1271 (Bug#5526).
1272
b57d9029
KH
12732010-01-31 Kenichi Handa <handa@m17n.org>
1274
1275 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 1276 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 1277
c67d885b
CY
12782010-01-31 Chong Yidong <cyd@stupidchicken.com>
1279
1280 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
1281 <deactivated@gmail.com> (Bug#3605).
1282
8fab2362
CY
12832010-01-31 David De La Harpe Golden <david@harpegolden.net>
1284
1285 * fileio.c (Frename_file): Correctly rename symlinks to
1286 directories (Bug#5496).
1287
cb2a62f2
CY
12882010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
1289
1290 * nsterm.m (ns_ring_bell): Handle visible bell like X.
1291
944c7a26
AS
12922010-01-30 Andreas Schwab <schwab@linux-m68k.org>
1293
1294 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
1295
c024ac08
CY
12962010-01-29 Chong Yidong <cyd@stupidchicken.com>
1297
1298 * frame.c (DEFAULT_ROWS): Change default to 35.
1299
1300 * xfns.c (x_default_font_parameter): Change default XFT font to
1301 monospace-10 (Bug#3643).
1302
af93af83
EZ
13032010-01-29 Eli Zaretskii <eliz@gnu.org>
1304
1305 * w32inevt.c (key_event): Remove unnecessary comparison of
1306 event->uChar.AsciiChar with 128.
1307
ca0eb708
CY
13082010-01-28 Chong Yidong <cyd@stupidchicken.com>
1309
b242dbfc
CY
1310 * fileio.c (Frename_file): Fix last change (Bug#5487).
1311
ca0eb708
CY
1312 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
1313
1314 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
1315
45d45af5
JD
13162010-01-28 Jan Djärv <jan.h.d@swipnet.se>
1317
1318 * xfns.c (Fx_create_frame): Remove window size matching code from
1319 2010-01-15.
a73f9c9d 1320 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 1321
7e233730
JR
13222010-01-27 Jason Rumney <jasonr@gnu.org>
1323
1324 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 1325 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 1326
86e893e3
KH
13272010-01-27 Kenichi Handa <handa@m17n.org>
1328
1329 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 1330 pattern string (Bug#4209).
86e893e3 1331
8719abec
CY
13322010-01-27 David De La Harpe Golden <david@harpegolden.net>
1333
1334 * fileio.c (Frename_file): Call copy-directory and
1335 delete-directory for directories, in order to handle cross-device
1336 renaming (Bug#3353).
1337
844794c8
JD
13382010-01-25 Jan Djärv <jan.h.d@swipnet.se>
1339
aa3e13b5 1340 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 1341 sizes 24 and 10. Bug #3643.
844794c8 1342
bd4b5750
SM
13432010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
1344
8dc1adf6 1345 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
1346 * keymap.c (shadow_lookup): Add `remap' arg.
1347 (describe_map, describe_vector): Update calls to shadow_lookup.
1348 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
1349 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
1350 perform remapping during shadow_lookup check of remapped_sequences.
1351
285d07e2
CY
13522010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
1353
1354 * image.c (png_load): Use png_sig_cmp instead of the obsolete
1355 png_check_sig, which has been removed in libpng 1.4.
1356
c6d09b8d
CY
13572010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1358
1359 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
1360 lacks this header file).
1361
3d782998
YM
13622010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1363
1364 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
1365 as in Emacs 22.
1366
2aff7c53
YM
13672010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1368
1369 * lisp.h (make_pure_string): String pointer arg now points to const.
1370
1371 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
1372 args now point to const.
1373
74327f7a
EZ
13742010-01-22 Eli Zaretskii <eliz@gnu.org>
1375
1376 * lread.c (Fload): Don't treat files without .elc extension as
1377 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
1378 them. (bug#5303)
1379
4d1e6632
KH
13802010-01-20 Kenichi Handa <handa@m17n.org>
1381
1382 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
1383 treat the source as actual byte sequence.
1384
1fdede8f
AM
13852010-01-19 Alan Mackenzie <acm@muc.de>
1386
1387 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 1388 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
1389 `signal_after_change_p' to `coherent_change_p', and make the
1390 invocation of `modify_region' conditional on it.
1391
67477f30
JD
13922010-01-19 Jan Djärv <jan.h.d@swipnet.se>
1393
1394 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
1395 for debug purpose.
1396 (syms_of_xsettings): Declare xft-settings.
1397
244b023e
CY
13982010-01-18 Chong Yidong <cyd@stupidchicken.com>
1399
1400 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
1401
617364fe
CY
14022010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1403
1404 * xterm.c (event_handler_gdk): Block input (Bug#5037).
1405
4fe22cdf
CY
14062010-01-16 Chong Yidong <cyd@stupidchicken.com>
1407
1408 * emacs.c (standard_args): Adjust arg priorities to reflect how
1409 they are processed in startup.el.
1410
e118d2be
AS
14112010-01-16 Andreas Schwab <schwab@linux-m68k.org>
1412
1413 * Makefile.in (lisp, shortlisp): Update.
1414
523ae620
SM
14152010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1416
1417 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
1418 code, link the new kboard into all_kboard before running Lisp code,
1419 and protect the new terminal with GCPRO (Bug#5365).
1420 (x_term_init): Remove unused var `atom'.
1421 (x_delete_display, x_delete_terminal): Remove unused var `i'.
1422
f0d13888
JD
14232010-01-15 Jan Djärv <jan.h.d@swipnet.se>
1424
1425 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
1426 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
1427 to find out usable size of the desktop. Don't make frames larger than
ac146f82 1428 this. Bug #3643.
f0d13888 1429
cc320f07
KH
14302010-01-15 Kenichi Handa <handa@m17n.org>
1431
1432 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
1433
7ffdf101
CY
14342010-01-15 Chong Yidong <cyd@stupidchicken.com>
1435
1436 * nsterm.m (Qnone): Define.
1437
1438 * nsfns.m (Qnone): Move definition to nsterm.m.
1439
d12bd917
KH
14402010-01-14 Kenichi Handa <handa@m17n.org>
1441
1442 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
1443 systems.
1444
d9a7c140
KH
14452010-01-14 Kenichi Handa <handa@m17n.org>
1446
1447 Make auto-composition work on all buffers even if they are
1448 fundamental mode.
1449
1450 * composite.c (Vauto_composition_mode): New variable.
1451 (composition_compute_stop_pos): Check Vauto_composition_mode
1452 instead of Vauto_composition_function.
1453 (composition_adjust_point, Ffind_composition_internal): Likewise.
1454 (syms_of_composite): Declare Lisp variable
1455 "auto-composition-mode" here.
1456
63286bb2
CY
14572010-01-13 Chong Yidong <cyd@stupidchicken.com>
1458
1459 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
1460 during call to vendor-specific-keysyms (Bug#5365).
1461
c2623ee7
YM
14622010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1463
1464 * keyboard.c (input_available_signal) [SYNC_INPUT]:
1465 Call SIGNAL_THREAD_CHECK (Bug#5333).
1466
1467 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
1468 Call SIGNAL_THREAD_CHECK.
1469
0b5397c2
SM
14702010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
1471
1472 Try to fix bug#5314. This is probably not the final word, tho.
1473 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
1474 recent-auto-save-p as a side-effect.
1475 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
1476 * buffer.c (Fkill_buffer, reset_buffer):
1477 * editfns.c (Fsubst_char_in_region):
1478 * fileio.c (Finsert_file_contents, Fdo_auto_save)
1479 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
1480
dc954cb2
KH
14812010-01-13 Kenichi Handa <handa@m17n.org>
1482
1483 Display buffer name, etc. in mode line by composing correctly.
1484
1485 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
1486 STRING is not nil.
0b5397c2 1487 (display_mode_element): Adjust for the change of
dc954cb2
KH
1488 decode_mode_spec and display_line.
1489 (decode_mode_spec): Change arg MULTIBYTE to STRING.
1490 (display_string): Handle the case that STRING is non-null and
1491 LISP_STRING is not nil.
1492
0b5397c2
SM
1493 * xterm.c (x_draw_composite_glyph_string_foreground):
1494 Pay attention to s->face->overstrike.
dc954cb2
KH
1495
1496 * composite.c (composition_reseat_it): Don't check PT if STRING is
1497 non nil.
1498
4a00eaca
YM
14992010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1500
1501 * keyboard.c (read_char): Don't apply previous change when current
1502 buffer is unchanged by command execution.
1503
60abb287
JD
15042010-01-12 Jan Djärv <jan.h.d@swipnet.se>
1505
1506 * keyboard.c (read_char): Return after executing from special map.
1507
893db5bc
GM
15082010-01-12 Glenn Morris <rgm@gnu.org>
1509
1510 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
1511 bug-gnu-emacs rather than emacs-pretest-bug.
1512
4d03ece0
CY
15132010-01-11 Chong Yidong <cyd@stupidchicken.com>
1514
1515 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
1516 initializing the Lisp variables that depend on them.
1517
1df47e38
YM
15182010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1519
1520 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
1521 Clear areas that will not be updated after change of menu bar lines.
1522 Clear the menu bar window's current matrix when the window gets empty.
1523
2f1c6384
CY
15242010-01-09 Chong Yidong <cyd@stupidchicken.com>
1525
e398c61c
CY
1526 * intervals.h, textprop.c (extend_property_ranges): Return value
1527 and args changed. Discard properties that begin at or after the
1528 new end (Bug#5306).
1529
1530 * editfns.c (Fformat): Caller changed.
1531
e5a29a10
CY
1532 * nsterm.m (ns_set_default_prefs): Delete function.
1533 (syms_of_nsterm): Initialize ns_command_modifier,
1534 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
1535 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
1536
2f1c6384
CY
1537 * xdisp.c (pos_visible_p): Check for invisible text at the correct
1538 position (Bug#4040).
1539
d427a9fa
EZ
15402010-01-09 Eli Zaretskii <eliz@gnu.org>
1541
1542 * editfns.c (Ffloat_time): Doc fix.
1543
21b9df2f
JD
15442010-01-09 Jan Djärv <jan.h.d@swipnet.se>
1545
1546 * xfns.c (Fx_create_frame): Don't create frame larger than display
1547 by default bug#3643.
1548
4b00d3b1
YM
15492010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1550
1551 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1552 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1553 windows above internal border.
1554
1555 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1556 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1557 windows above internal border.
1558
1559 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1560 tool bar windows specially.
1561
1562 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1563
1564 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1565 specially.
1566 (XTflash): Take account of menu bar height.
1567
1568 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1569 specially.
1570
5075d853
JD
15712010-01-08 Jan Djärv <jan.h.d@swipnet.se>
1572
ac146f82 1573 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
1574 also be true before we can return early (bug #5339).
1575
474217c8
CY
15762010-01-06 David Reitter <david.reitter@gmail.com>
1577
1578 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1579 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1580 (Bug#3233).
1581
c0e6d47d
JD
15822010-01-06 Jan Djärv <jan.h.d@swipnet.se>
1583
d0cf45b7
JD
1584 * font.c (font_open_entity): Enable chache and call cached_font_ok
1585 for the driver if defined.
1586 (QCuser_spec): New symbol.
1587 (font_spec_from_name): Save name as user-spec.
1588 (font_load_for_lface): Keep user-spec instead of name.
1589 (font_open_by_name): Save name as user-spec.
1590 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 1591 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
1592
1593 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
1594 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1595 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1596
1597 * font.h (struct font_driver): Add cached_font_ok.
1598
c0e6d47d
JD
1599 * xterm.c (x_clear_frame): Queue draw for scroll bars.
1600
7c583cd8
JD
16012010-01-05 Jan Djärv <jan.h.d@swipnet.se>
1602
1603 * xterm.c (x_new_font): Move code for setting rows/cols before
1604 resizing ...
ac146f82 1605 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
1606
1607 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
1608 (xg_frame_resized, xg_frame_set_char_size):
1609 Call xg_clear_under_internal_border.
7c583cd8 1610 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 1611
03f77f0a
CY
16122010-01-05 Chong Yidong <cyd@stupidchicken.com>
1613
1614 * keyboard.c (read_key_sequence): Catch keyboard switch after
1615 making a new tty frame (Bug#5095).
1616
2a1ef5be
KH
16172010-01-05 Kenichi Handa <handa@m17n.org>
1618
1619 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1620
e3eb1dae
SM
16212010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1622
1623 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1624 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1625 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1626
777013f2
MA
16272010-01-03 Michael Albinus <michael.albinus@gmx.de>
1628
1629 * dbusbind.c (xd_add_watch): Improve debug message.
1630 (xd_remove_watch): Improve debug message. If DATA is the session
1631 bus, unset D-Bus session environment.
1632 (Fdbus_init_bus): Pass the bus as argument to
1633 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 1634
8932b1c2
CY
16352010-01-01 Chong Yidong <cyd@stupidchicken.com>
1636
87231e2c
CY
1637 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1638
4801c5fa
CY
1639 * lread.c (syms_of_lread): Make it clearer that these are the
1640 names of loaded files (Bug#5068).
1641
8932b1c2
CY
1642 * eval.c (run_hook_with_args): Handle the case where the global
1643 value has the obsolete single-function form (Bug#5026).
1644
11e3c684
CY
16452009-12-27 Chong Yidong <cyd@stupidchicken.com>
1646
1647 * minibuf.c (Fall_completions): Minor optimization.
1648
5b28ce35
EZ
16492009-12-26 Eli Zaretskii <eliz@gnu.org>
1650
5ce6e4f4
JB
1651 * .gdbinit (pgx): Fix display of composite glyphs.
1652 Display cmp.from and cmp.to as well.
1653 (pitx): Fix last change.
5b28ce35 1654
bcffff46
KH
16552009-12-25 Kenichi Handa <handa@m17n.org>
1656
1657 * composite.h (composition_adjust_point): Update prototype.
1658
1659 * composite.c (composition_reseat_it): Don't make a composition
1660 spanning over point.
1661 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1662 composable characters.
1663 (composition_adjust_point): New arg NEW_PT. Callers changed.
1664
1665 * keyboard.c (command_loop_1): Force redisplay if the last point
1666 was within a composition.
1667 (adjust_point_for_property): Don't adjust point for automatic
1668 composition when called after buffer modification.
1669
3f670e9a
EZ
16702009-12-19 Eli Zaretskii <eliz@gnu.org>
1671
5ce6e4f4
JB
1672 * .gdbinit (pitx): Don't use enum names, use their values.
1673 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
1674 (pgx): Don't use enum names, use their values.
1675 (pitmethod): New helper command.
1676 (pitx): Use it to display iteration method.
1677 (pgrowit): New command.
1678
ad903955
EZ
1679 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1680
3f670e9a
EZ
1681 Update dependencies in Makefile.in.
1682
1683 * Makefile.in (alloc.o): Depend on termhooks.h.
1684 (atimer.o): Depend on blockinput.h.
1685 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1686 and frame.h.
1687 (callint.o): Depend on systime.h, coding.h, and composite.h.
1688 (callproc.o): Depend on buffer.h.
1689 (casefiddle.o): Don't depend on charset.h.
1690 (casetab.o): Depend on character.h.
1691 (ccl.o): Depend on composite.h.
1692 (chartab.o): Depend on ccl.h.
1693 (cm.o): Depend on dispextern.h.
1694 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1695 (coding.o): Don't depend on $(INTERVALS_H).
1696 (composite.o): Don't depend on dispextern.h explicitly (it's in
1697 $(INTERVALS_H)). Depend on ccl.h.
1698 (data.o): Depend on systime.h, coding.h, composite.h,
1699 dispextern.h, font.h, and ccl.h.
1700 (dired.o): Depend on composite.h.
1701 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1702 composite.h (it's in $(INTERVALS_H)).
1703 (doc.o): Depend on systime.h, coding.h, and composite.h.
1704 (editfns.o): Don't depend explicitly on dispextern.h.
1705 (emacs.o): Depend on frame.h and coding.h.
1706 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1707 (fileio.o): Depend on frame.h and commands.h. Don't depend
1708 explicitly on dispextern.h.
1709 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1710 composite.h.
1711 (fns.o): Don't depend on termhooks.h.
1712 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1713 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1714 coding.h, $(INTERVALS_H), window.h, xterm.h.
1715 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1716 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1717 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1718 fontset.h, ccl.h, and ftfont.h.
1719 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1720 (gtkutil.o): Depend on dispextern.h and composite.h.
1721 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1722 termhooks.h, and ccl.h.
1723 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1724 (intervals.o): Depend on systime.h and coding.h.
1725 (keyboard.o): Depend on composite.h and coding.h.
1726 (keymap.o): Depend on coding.h and frame.h.
1727 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1728 (macros.o): Depend on systime.h, coding.h, and composite.h.
1729 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1730 and atimer.h.
1731 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1732 dispextern.h explicitly.
0b5397c2
SM
1733 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1734 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
1735 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1736 (regex.o): Don't depend on charset.h.
1737 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1738 (search.o): Don't depend explicitly on composite.h.
1739 (sound.o): Depend on atimer.h and systime.h.
1740 (syntax.o): Don't depend explicitly on composite.h.
1741 (sysdep.o): Depend on coding.h and composite.h.
1742 (term.o): Depend on xterm.h and buffer.h.
1743 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1744 (textprop.o): Don't depend on dispextern.h explicitly.
1745 (undo.o): Depend on dispextern.h.
1746 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1747 dispextern.h and composite.h explicitly.
1748 (xdisp.o): Depend on ccl.h.
1749 (xfaces.o): Depend on coding.h and ccl.h.
1750 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1751 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1752 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1753 ftfont.h.
1754 (xgselect.o): New dependency.
1755 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1756 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1757 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1758 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1759 (xsmfns.o): Depend on frame.h and dispextern.h.
1760 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1761 sysselect.h.
1762
7a6f7fea
AS
17632009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1764
1765 * font.c (Fclear_font_cache): Pass correct cache argument to
1766 font_clear_cache.
1767
f4c21026
AS
17682009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1769
1770 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1771 twice.
1772
f7ab0997
CY
17732009-12-15 Chong Yidong <cyd@stupidchicken.com>
1774
1775 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1776 calling file-remote-p. Reported by Jim Meyering.
1777
fa8e045a
MA
17782009-12-15 Michael Albinus <michael.albinus@gmx.de>
1779
1780 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 1781 avoid compiler warnings. (Bug #5217)
fa8e045a 1782
a63dba42
KH
17832009-12-14 Kenichi Handa <handa@m17n.org>
1784
1785 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1786 in 8-bit encoding.
1787
5ce6e4f4 17882009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
1789
1790 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1791 tooltip windows.
1792
223e5fc6
JD
17932009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1794
36acb2a7
JD
1795 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1796 Xatom_net_window_type.
1797
1798 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1799 Xatom_net_window_type.
1800
b8f00677
JD
1801 * xterm.c (my_log_handler): New function.
1802 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 1803 so we can filter out buggy messages. (Bug #5120).
b8f00677 1804
e5f0bc9a
JD
1805 * xterm.c (xg_scroll_callback): Parameter list changed,
1806 use parameter GtkScrollType to determine scroll/line/page.
1807 Only allow dragging if a button < 4 is grabbed (bug #5177).
1808 (xg_end_scroll_callback): New function.
1809 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1810 xg_create_scroll_bar.
1811
1812 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1813 (scroll_end_callback): Remove.
1814 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1815 button-release-event. Replace value-changed event with change-value,
1816 bug #5177,
1817 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1818 bug #5177.
1819
1820 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1821 (xg_create_scroll_bar): Add GCallback end_callback.
1822
223e5fc6
JD
1823 * xftfont.c (QClcdfilter): New variable.
1824 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1825 (syms_of_xftfont): Initialize QClcdfilter.
1826
3c055b77
JD
18272009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1828
1829 * xsettings.c (struct xsettings): Add member seen.
1830 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 1831 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
1832 (apply_xft_settings): Only update Xft settings with what member seen
1833 indicates as new.
1834
05fe33ff
EZ
18352009-12-12 Eli Zaretskii <eliz@gnu.org>
1836
1837 * dispextern.h (struct text_pos): Use EMACS_INT;
1838 (struct glyph): Use EMACS_INT for charpos.
1839 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1840 region_beg_charpos, region_end_charpos,
1841 redisplay_end_trigger_charpos, and also for
1842 iterator_stack_entry.end_charpos and
1843 iterator_stack_entry.stop_charpos.
1844
e8d7886a
JD
18452009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1846
5ce6e4f4 1847 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
1848 (xg_create_scroll_bar): Call scroll_end_callback on button release
1849 event (bug #5177).
1850 (xg_event_is_for_scrollbar): != replaced with ==.
1851
d0db2ec8
KH
18522009-12-12 Kenichi Handa <handa@m17n.org>
1853
1854 * ftfont.c (struct ftfont_info): New member matrix.
1855 (ftfont_open): Setup xftfont_info->matrix.
1856 (MFLTFontFT): New member matrix.
1857 (FLOOR, CEIL, ROUND): New macros.
1858 (ftfont_get_metrics): Handle matrix transformation.
1859 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1860
1861 * xftfont.c (struct xftfont_info): New member matrix.
1862 (xftfont_open): Setup xftfont_info->matrix.
1863
18642009-12-10 Kenichi Handa <handa@m17n.org>
1865
1866 * xdisp.c (append_space_for_newline): Consider face-remapping.
1867
2cc7b62f
AS
18682009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1869
b87dd913
AS
1870 * xsettings.c: Include "keyboard.h".
1871
eba5eb94
AS
1872 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1873
2cc7b62f
AS
1874 Fix implicit function declarations.
1875 * cmds.c: Include "frame.h".
1876 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1877 * frame.h: Move declaration of delete_frame outside of
1878 HAVE_WINDOW_SYSTEM.
1879
a4ef73c8
CY
18802009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1881
1882 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1883
1884 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1885 GTK builds.
1886
944a300c
AS
18872009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1888
1889 * unexelf.c (unexec): Don't search for .data twice.
1890
022eef62
CY
18912009-12-05 Chong Yidong <cyd@stupidchicken.com>
1892
426ac949
CY
1893 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1894 if push failed.
1895 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1896 of push_display_prop (Bug#5000).
1897
022eef62
CY
1898 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1899 value of font_list_entities (Bug#5085).
1900
be95bee9
JB
19012009-12-04 Juanma Barranquero <lekktu@gmail.com>
1902
1903 Fix `string-to-number' to deal consistently with integers and floats.
1904 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1905 trailing characters, not just whitespace.
1906 (read1): Pass new arg 0 to keep old behavior.
1907 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1908 trailing chars, as it is already done for integers. Doc fixes.
1909 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1910
24c2d7ce
EZ
19112009-12-04 Eli Zaretskii <eliz@gnu.org>
1912
0b5397c2
SM
1913 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1914 Delete unused enumeration value.
24c2d7ce 1915
7e694795
EZ
19162009-12-03 Eli Zaretskii <eliz@gnu.org>
1917
1918 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1919
84b31826
SM
19202009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1921
1922 * process.c (Fmake_network_process): Fix up the tests for
1923 "connectionless socket", so they DTRT for seqpacket sockets as well.
1924
f00c449b
SM
19252009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1926
1927 * process.c (Qseqpacket): New symbol.
1928 (HAVE_SEQPACKET): New macro.
1929 (Fmake_network_process): Accept new :type `seqpacket'.
1930 (init_process): Add `seqpacket' feature when applicable.
1931 (syms_of_process): Initialize Qseqpacket.
1932
8096a0ff
YM
19332009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1934
1935 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1936 if entity is Qnil.
1937
3e0de07f
SM
19382009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1939
1940 * print.c (print_preprocess): Preprocess the key_and_value table of
1941 hashtables, even tho they're "hidden" (bug#5082).
1942
abeafb2a
JD
19432009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1944
1945 * frame.c (frame_make_pointer_invisible)
1946 (frame_make_pointer_visible): Declare f before statements.
1947
4bf47195
EZ
19482009-11-28 Eli Zaretskii <eliz@gnu.org>
1949
1950 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1951 omitted dependencies on lisp.h.
1952
c525b3f2
JD
19532009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1954
ece2d4ed
JD
1955 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1956 is NULL.
1957
1958 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1959
1960 * frame.c (frame_make_pointer_invisible)
3e0de07f 1961 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
1962 frame.
1963
c525b3f2
JD
1964 * search.c (simple_search): Remove warning by making *p const.
1965
2f00e299
DN
19662009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1967
1968 * xdisp.c (power_letter): Remove duplicate const.
1969
084b049b
JD
19702009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1971
a1fadc6f
JD
1972 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1973
5ce6e4f4 1974 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
1975 defaults (bug #5025).
1976
28259cac
SM
19772009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1978
1979 * insdel.c (adjust_markers_for_delete): Move it in the
1980 right direction! (bug#4803)
1981
e8e14166
YM
19822009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1983
1984 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1985
1986 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1987
86677b58
GM
19882009-11-24 Glenn Morris <rgm@gnu.org>
1989
1990 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1991
581e51e8
JD
19922009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1993
cfc86c7a
JD
1994 * Makefile.in: Must create deps for ecrt0.o in its rule.
1995
581e51e8
JD
1996 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1997 because that is what Gtk+ font dialog understands.
1998
1999 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
2000 of Fcopy_sequence.
2001 (font_open_by_name): Put name given into QCname for font-object returned.
2002
2003 * frame.c (x_set_font): Save original font name as frame parameter
2004 font-parameter.
2005
2006 * xsettings.c (set_default_xft_settings): New function.
2007 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
2008 is found.
2009
8b264ecb
AS
20102009-11-22 Andreas Schwab <schwab@linux-m68k.org>
2011
2012 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
2013 searching backwards through multibyte buffer.
2014
872870b2
JD
20152009-11-21 Jan Djärv <jan.h.d@swipnet.se>
2016
2017 * xterm.c: #include xgselect.h.
2018 (x_initialize): Call xgselect_initialize.
2019
2020 * xsettings.c (something_changedCB): C++ comments => C comments.
2021 (init_gconf): Do not deal with any GLib file descriptors, xg_select
2022 does that now.
2023
2024 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
2025 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
2026 (scroll_bar_button_cb): Remove.
5ce6e4f4 2027 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
2028 event.
2029 (xg_create_scroll_bar): Don't bind button-press-event and
2030 button-release-event.
2031
2032 * process.c: Include xgselect.h if defined (USE_GTK) ||
2033 defined (HAVE_GCONF).
2034 (wait_reading_process_output): Call xg_select for the same condition.
2035
2036 * xgselect.c (xg_select): New function to better integrate with
2037 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
2038
2039 * xgselect.h: New file, declare xg_select, xgselect_initialize.
2040
2041 * Makefile.in (XOBJ): Add xgselect.o.
2042
62a6e103
AS
20432009-11-21 Andreas Schwab <schwab@linux-m68k.org>
2044
0b5397c2
SM
2045 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
2046 Remove ignored second argument. All callers changed.
62a6e103
AS
2047 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
2048 (RE_STRING_CHAR_AND_LENGTH): Likewise.
2049 * xdisp.c (string_char_and_length): Likewise.
2050
b0ca0f33
DN
20512009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
2052
2053 * xterm.c (x_new_font):
2054 * print.c (print_object):
2055 * cmds.c (Fself_insert_command): Move declarations before statements.
2056
dd5a6279
CY
20572009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
2058
2059 * s/cygwin.h: Remove unneeded linker flags.
2060
4a8e097d
JD
20612009-11-20 Jan Djärv <jan.h.d@swipnet.se>
2062
0d1d0d26
JD
2063 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
2064
2065 * xsettings.h: Declare xsettings_get_system_font.
2066
2067 * xsettings.c (xsettings_get_system_font): New function.
2068 (init_gconf): No use initiating gconf unless we have Xft also.
2069 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
2070 HAVE_GCONF.
2071
4a8e097d
JD
2072 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
2073 add a blank entry so it doesn't collapse into nothing.
2074
8ab1650e
SM
20752009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2076
2077 * lread.c (Funintern): Comment out last change.
2078
82c602f0
RS
20792009-11-19 Richard Stallman <rms@gnu.org>
2080
2081 * lread.c (Funintern): Error if symbol is t or nil.
2082
87e32266
SM
20832009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2084
2085 * insdel.c (make_gap_larger): Don't make as many assumptions about the
2086 representation of Lisp integers.
2087 Reported by MJ Chan <mjchan.inbox@gmail.com>.
2088
1b9ac145
AS
20892009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2090
2091 * lisp.h: Remove declaration of Ffont_get_system_font.
2092 * xfns.c: Move include of "xsettings.h".
2093 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
2094
dfb3c4c6
JD
20952009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2096
87e32266
SM
2097 * xsettings.c (something_changedCB, Ffont_get_system_font):
2098 Check use_system_font.
dfb3c4c6
JD
2099 (syms_of_xsettings): DEFVAR font-use-system-font.
2100
9370c1d8
AS
21012009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2102
25fe851a
AS
2103 * xfns.c (x_default_font_parameter): Remove dead assignment.
2104
9370c1d8
AS
2105 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
2106
637fa988
JD
21072009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2108
87e32266 2109 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 2110 not have FC_LCD_*. #define them if not there.
a6eb20d8 2111
87e32266 2112 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 2113
637fa988
JD
2114 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
2115
2116 * xterm.c (handle_one_xevent): Call xft_settings_event for
2117 ClientMessage, PropertyNotify and DestroyNotify.
2118 (x_term_init): If we have XFT, get DPI from Xft.dpi.
2119 Call xsettings_initialize.
2120
2121 * xftfont.c (xftfont_fix_match): New function.
2122 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
2123 Call xftfont_fix_match after XftFontMatch.
2124
2125 * xfont.c (xfont_driver): Initialize all members.
2126
87e32266
SM
2127 * xfns.c (x_default_font_parameter):
2128 Try font from Ffont_get_system_font.
637fa988
JD
2129 Do not get font from x_default_parameter if we got one from
2130 Ffont_get_system_font.
87e32266 2131 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
2132
2133 * w32font.c (w32font_driver): Initialize all members.
2134
2135 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
2136
2137 * lisp.h: Declare syms_of_xsettings.
2138
87e32266
SM
2139 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
2140 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
2141
2142 * ftfont.c (ftfont_filter_properties): New function.
2143
2144 * frame.c (x_set_font): Remove unused variable lval.
2145
87e32266 2146 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
2147
2148 * font.c (font_put_extra): Don't return if val is nil, it means
2149 boolean option is off.
2150 (font_parse_fcname): Collect all extra properties in extra_props
2151 and call filter_properties for all drivers with extra_props and
2152 font as parameter.
87e32266
SM
2153 (font_open_entity): Do not use cache, it does not pick up new
2154 fontconfig settings like hinting.
637fa988
JD
2155 (font_load_for_lface): If spec had a name in it, store it in entity.
2156
a73f9c9d 2157 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
2158
2159 * config.in: HAVE_GCONF is new.
2160
2161 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
2162 xsettings.o is new.
2163
5a942932
KH
21642009-11-17 Kenichi Handa <handa@m17n.org>
2165
2166 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
2167 back to the default font in case that no suitable font is found.
2168
b7c7a4d1
SM
21692009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2170
2171 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
2172 Suggested by Chad Brown <yandros@mit.edu>.
2173 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
2174
072f1e39
JD
21752009-11-16 Jan Djärv <jan.h.d@swipnet.se>
2176
2177 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
2178
5d1e70a2
AS
21792009-11-14 Andreas Schwab <schwab@linux-m68k.org>
2180
87e32266 2181 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 2182
a53cfbe5
JD
21832009-11-14 Jan Djärv <jan.h.d@swipnet.se>
2184
473a99b7
JD
2185 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
2186 has a parent.
2187
a53cfbe5 2188 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 2189 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
2190
2191 * config.in: Generated (AUTO_DEPEND).
2192
f04bb9b2
MA
21932009-11-13 Michael Albinus <michael.albinus@gmx.de>
2194
b7c7a4d1 2195 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
2196 Vdbus_registered_functions_table, because it contains also
2197 properties. Fix docstring.
b7c7a4d1 2198 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 2199
8f11f7ec
SM
22002009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
2201
2202 * alloc.c (mark_object): Don't reprocess marked strings.
2203 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
2204 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
2205
8a605fe8
KH
22062009-11-13 Kenichi Handa <handa@m17n.org>
2207
8f11f7ec 2208 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
2209 semantics of Vword_combining_categories.
2210 (Vword_combining_categories): Describe the slight change of the
2211 semantics.
2212
241c4680
EZ
22132009-11-13 Eli Zaretskii <eliz@gnu.org>
2214
2215 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
2216
2217 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
2218
5d58e44c
SM
22192009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
2220
2221 * xdisp.c (syms_of_xdisp): Fix typo in last change.
2222
5e13f9d3
JB
22232009-11-12 Juanma Barranquero <lekktu@gmail.com>
2224
2225 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
2226
cf54c754
DR
22272009-11-11 David Reitter <david.reitter@gmail.com>
2228
2229 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
2230 variables to fix 2009-11-09 change.
2231
a4ada374
DN
22322009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
2233
91433552
DN
2234 * process.c (ifflag_def): Make flag_sym constant.
2235 (Fnetwork_interface_info): Use a constant pointer.
2236 (ifflag_table):
2237 * xfns.c (cursor_bits):
2238 * xdisp.c (power_letter):
2239 * termcap.c (speeds, esctab):
2240 * sysdep.c (baud_convert):
2241 * keyboard.c (lispy_accent_codes, modifier_names):
2242 * image.c (xbm_format, xpm_format, pbm_format, png_format)
2243 (jpeg_format, tiff_format, gif_format, svg_format)
2244 (interlace_start, interlace_increment, gs_format):
2245 * gtkutil.c (separator_names):
2246 * fringe.c (swap_nibble):
2247 * fns.c (base64_value_to_char, base64_char_to_value):
2248 * fileio.c (make_temp_name_tbl):
2249 * coding.c (suffixes): Make constant.
2250
f4265f6c
DN
2251 * frame.c (make_initial_frame):
2252 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
2253 build_string.
2254 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
2255
04420943
DN
2256 * s/freebsd.h:
2257 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
2258
0a5d24ae
DN
2259 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
2260 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
2261
a4ada374
DN
2262 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
2263 * xterm.c (syms_of_xterm):
2264 * xfaces.c (syms_of_xfaces):
2265 * xdisp.c (syms_of_xdisp):
2266 * lread.c (syms_of_lread):
2267 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
2268 build_string.
91433552 2269
a4ada374
DN
2270 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
2271
af98fc7f
SM
22722009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2273
8ab1650e 2274 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 2275
e90292a9
JD
22762009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2277
2278 * keyboard.h: Declare timer_check.
2279
2280 * keyboard.c (timer_check_2): New function that does what the old
2281 timer_check did.
2282 (timer_check): Call timer_check_2 until -1 or a non-zero time is
2283 returned, i.e. don't return -1 with timers pending.
2284
2285 * process.c: Remove extern declaration of timer_check.
2286
2287 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
2288 even if timer_check returned -1.
2289
af98fc7f
SM
2290 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
2291 xg_dialog_data.
e90292a9
JD
2292 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
2293 the event loop.
2294 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
2295 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
2296 Destroy the dialog after xg_dialog_run.
2297
045b83c0
SM
22982009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2299
2300 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
2301
1fb99a3a
JD
23022009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2303
2304 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
2305
04e452cb
JB
23062009-11-09 Juanma Barranquero <lekktu@gmail.com>
2307
2308 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
2309
ef7417fd
SM
23102009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
2311
2312 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
2313 w32menu.c, and nsmenu.m.
2314 Simplify the obsolete case where position is nil.
2315 (cleanup_popup_menu): New function, moved from nsmenu.m.
2316 (struct skp): Remove slot `notreal'.
2317 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
2318 adjust callers.
2319 (single_menu_item): Adjust call to parse_menu_item.
2320 (syms_of_menu): Defsubr x-popup-menu.
2321 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
2322 (keymap_panes): Don't export any more.
2323 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
2324 (xmenu_show): Declare.
2325 * keyboard.c (parse_menu_item): Remove arg `notreal'.
2326 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
2327 * keyboard.h (parse_menu_item): Update declaration.
2328 * xmenu.c (Fx_popup_menu): Remove.
2329 (syms_of_xmenu): Don't defsubr x-popup-menu.
2330 * w32menu.c (Fx_popup_menu): Remove.
2331 (syms_of_w32menu): Don't defsubr x-popup-menu.
2332 * nsmenu.m (cleanup_popup_menu): Remove.
2333 (ns_menu_show): Rename from ns_popup_menu and remove all the code
2334 moved to menu.c's Fx_popup_menu.
2335 (Fx_popup_menu): Remove.
2336 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
2337 menu_items (it's done in menu.c already).
2338
424d6179
SM
23392009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
2340
2341 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
2342 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
2343
c0df13a6 23442009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
2345
2346 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 2347 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
2348 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
2349 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
2350
2de9f71c
SM
23512009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2352
2353 Let integers use up 2 tags to give them one extra bit and thus double
2354 their range.
2355 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
2356 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
2357 New macros.
2358 (enum Lisp_Type): Use them. Give explicit values.
2359 (Lisp_Type_Limit): Remove.
2360 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
2361 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
2362 Pay attention to USE_2_TAGS_FOR_INTS.
2363 (INTEGERP): Use LISP_INT_TAG_P.
2364 * fns.c (internal_equal): Simplify the default case.
2365 (sxhash): Use case_Lisp_Int.
2366 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
2367 any more.
2368 (Ftype_of): Use case_Lisp_Int.
2369 (store_symval_forwarding): Take into account the fact that Ints can
2370 now have more than one tag.
2371 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
2372 buffer_slot_type_mismatch):
2373 * xfaces.c (face_attr_equal_p):
2374 * print.c (print_object):
2375 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
2376 Use case_Lisp_Int.
2377
323637a2
EZ
23782009-11-06 Eli Zaretskii <eliz@gnu.org>
2379
7ac65b38
EZ
2380 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
2381
323637a2
EZ
2382 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
2383 warning.
2384
e511451f
JD
23852009-11-06 Jan Djärv <jan.h.d@swipnet.se>
2386
2387 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
2388
2389 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
2390
2391 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
2392 ButtonPressRelease and MotionNotify (bug#4870).
2393
5e2327cf
DN
23942009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
2395
5adc433e
DN
2396 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
2397
d67b4f80
DN
2398 * xterm.c (syms_of_xterm):
2399 * xselect.c (syms_of_xselect):
2400 * xmenu.c (syms_of_xmenu):
2401 * xfns.c (syms_of_xfns):
2402 * xfaces.c (syms_of_xfaces):
2403 * xdisp.c (syms_of_xdisp):
2404 * window.c (syms_of_window):
2405 * w32fns.c (syms_of_w32fns):
2406 * undo.c (syms_of_undo):
2407 * textprop.c (syms_of_textprop):
2408 * terminal.c (syms_of_terminal):
2409 * syntax.c (syms_of_syntax):
2410 * sound.c (syms_of_sound):
2411 * search.c (syms_of_search):
2412 * print.c (syms_of_print):
2413 * minibuf.c (syms_of_minibuf):
2414 * macros.c (syms_of_macros):
2415 * keymap.c (syms_of_keymap, initial_define_key)
2416 (initial_define_lispy_key):
2417 * keyboard.c (syms_of_keyboard):
2418 * insdel.c (syms_of_insdel):
2419 * image.c (syms_of_image):
2420 * fringe.c (syms_of_fringe):
2421 * frame.c (syms_of_frame):
2422 * fontset.c (syms_of_fontset):
2423 * fns.c (syms_of_fns):
2424 * fns.c (syms_of_fns):
2425 * fileio.c (syms_of_fileio):
2426 * fileio.c (syms_of_fileio):
2427 * eval.c (syms_of_eval):
2428 * doc.c (syms_of_doc):
2429 * dispnew.c (syms_of_display):
2430 * dired.c (syms_of_dired):
2431 * dbusbind.c (syms_of_dbusbind):
2432 * data.c (syms_of_data):
2433 * composite.c (syms_of_composite):
2434 * coding.c (syms_of_coding):
2435 * cmds.c (syms_of_cmds):
2436 * charset.c (define_charset_internal, syms_of_character):
2437 * ccl.c (syms_of_ccl):
2438 * category.c (syms_of_category, init_category_once):
2439 * casetab.c (syms_of_casetab):
2440 * casefiddle.c (syms_of_casefiddle):
2441 * callint.c (syms_of_callint):
2442 * bytecode.c (syms_of_bytecode):
2443 * buffer.c (keys_of_buffer, syms_of_buffer):
2444 * alloc.c (syms_of_alloc):
2445 * process.c (syms_of_process, init_process):
2446 * lread.c (syms_of_lread, init_obarray):
2447 * font.c (build_style_table):
2448 * emacs.c (syms_of_emacs, main): Replace calls to intern with
2449 intern_c_string, calls to make_pure_string with
2450 make_pure_c_string. Use pure_cons instead of Fcons.
2451
5e2327cf
DN
2452 * process.c (socket_options): Make it const.
2453 (set_socket_option, init_process): Use a const pointer.
2454
2455 * lread.c (intern_c_string): New function.
2456 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2457 (defvar_int): Uset it. Make the name const char*.
2458
2459 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2460 (defvar_int): Update prototypes.
2461 (DEFUN, EXFUN): Support for prototypes is now required.
2462 (intern_c_string): New prototype.
2463 (struct Lisp_Subr): Make symbol_name constant.
2464
2465 * font.c (struct table_entry): Remove unused member. Make NAMES
2466 constant.
2467 (weight_table, slant_table, width_table): Make constant.
2468
2469 * emacs.c (struct standard_args): Make name and longname constant.
2470
2471 * character.h (DEFSYM): Use intern_c_string.
2472
a56eaaef
DN
24732009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2474
2475 * alloc.c (make_pure_c_string): New function.
2476
2477 * eval.c (Fautoload): Purecopy all arguments.
2478
f6a07420
KH
24792009-11-05 Kenichi Handa <handa@m17n.org>
2480
2481 * fileio.c (Finsert_file_contents): Be sure set coding-system of
2482 the buffer in case of replace.
2483
5d28d4b1
DN
24842009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
2485
2486 * puresize.h (BASE_PURESIZE): Increase to 1620000.
2487
b349d111
SM
24882009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2489
d528b1ce
SM
2490 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
2491 when applicable (bug#4851).
2492
b349d111
SM
2493 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
2494 (P_): Support for prototypes is now required.
2495
c38eb027
CY
24962009-10-31 Chong Yidong <cyd@stupidchicken.com>
2497
2498 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
2499 (Bug#4827).
2500
0405f8d9
EZ
25012009-10-30 Eli Zaretskii <eliz@gnu.org>
2502
d528b1ce 2503 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 2504
ca0a881a
DN
25052009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
2506
2507 * puresize.h (BASE_PURESIZE): Increase to 1470000.
2508
d528b1ce
SM
2509 * lread.c (Fload): Purecopy the file name when building
2510 Vpreloaded_file_list.
ca0a881a 2511
47e0e0e4
JR
25122009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
2513
2514 * w32fns.c (syms_of_w32fns): Change default value of
2515 w32-scroll-lock-modifier to nil. (Bug#2827)
2516
057bce6f
JB
25172009-10-26 Juanma Barranquero <lekktu@gmail.com>
2518
782a943e 2519 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 2520
242bc74c
AS
25212009-10-26 Andreas Schwab <schwab@redhat.com>
2522
2523 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
2524
522d013a
JB
25252009-10-26 Juanma Barranquero <lekktu@gmail.com>
2526
2527 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
2528 For delta < 0, skip check that only makes sense when the mini-window
2529 is going to be enlarged. (Bug#4534)
2530
18060980
CY
25312009-10-25 Chong Yidong <cyd@stupidchicken.com>
2532
2533 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
2534 string in menu maps (Bug#4471).
2535
fec8f0fe
CY
25362009-10-24 Chong Yidong <cyd@stupidchicken.com>
2537
2538 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
2539 FRAME_NS_VIEW on terminal frames (Bug#4765).
2540
10d66ec0
AS
25412009-10-24 Andreas Schwab <schwab@linux-m68k.org>
2542
1cae01f7
AS
2543 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
2544 DBUS_TYPE_UINTnn separately to get proper sign extension.
2545
58a12889
AS
2546 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2547 can properly handle unsigned types.
d528b1ce 2548 (make_uid, make_gid): Remove.
58a12889 2549
987c9327
AS
2550 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2551 types again.
2552
522d013a 2553 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
2554 (system_process_attributes): Likewise.
2555
905a9ed3
DN
25562009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2557
2558 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2559
2560 * eval.c (Fautoload): Purecopy the filename. Simplify.
2561
2562 * category.c (Fdefine_category): Purecopy docstring.
2563
a599b3e8
AS
25642009-10-23 Andreas Schwab <schwab@linux-m68k.org>
2565
7b792fc9
AS
2566 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2567
a599b3e8
AS
2568 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2569
b35ac83e
CY
25702009-10-23 Chong Yidong <cyd@stupidchicken.com>
2571
2572 * window.c (Fwindow_edges, Fwindow_pixel_edges)
2573 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2574 (Bug#4775).
2575
e8903e00
SM
25762009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2577
2578 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2579 (init_fileio_once):
2580 * lisp.h (init_fileio_once): Remove.
2581 * emacs.c (main): Don't call init_fileio_once.
2582
8f43cbf3
DN
25832009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
2584
2585 * puresize.h (BASE_PURESIZE): Increase to 1430000.
2586
26898943
AS
25872009-10-21 Andreas Schwab <schwab@linux-m68k.org>
2588
2589 * doprnt.c (doprnt): Fix overflow check.
2590
5c646d5a
JD
25912009-10-21 Jan Djärv <jan.h.d@swipnet.se>
2592
3132a7ea
JD
2593 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
2594
5c646d5a
JD
2595 * xterm.h (x_wait_for_event): Declare it.
2596
2597 * xterm.c (pending_event_wait): New variable.
2598 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2599 see pending_event_wait.eventtype.
2600 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
2601 (x_new_font): Call change_frame_size with new rows/columns before we
2602 try to resize the frame.
5c646d5a 2603 (x_wait_for_event): New function.
d528b1ce
SM
2604 (x_set_window_size_1): Don't change gravity unless change_gravity
2605 is set.
5c646d5a
JD
2606 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2607 don't change frame size, instead wait for the ConfigureNotify.
2608 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2609 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2610 (x_initialize): Initialize pending_event_wait.
2611
2612 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2613 size.
2614
2615 * widget.c (EmacsFrameSetValues): Add comment.
2616 (EmacsFrameSetCharSize): Just call x_set_window_size.
2617
2618 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2619 x_wait_for_event.
d528b1ce 2620 (flush_and_sync): Remove again.
5c646d5a
JD
2621 (xg_get_font_name): Suggest monospace if no previous font is known.
2622
e9c1637d
SM
26232009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2624
2625 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 2626 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 2627
5a72cccb
YM
26282009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2629
2630 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2631 processing pending events when event is filtered for input method.
ab04798f 2632 (Bug#3681)
5a72cccb 2633
2629aa37
JB
26342009-10-20 Juanma Barranquero <lekktu@gmail.com>
2635
2636 * fns.c: Add #endif accidentally removed in previous change.
2637
c3417a74
DN
26382009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2639
2640 * fns.c: Remove code for unsupported system: MAC_OS.
2641 * image.c: Likewise. Include setjmp.h.
2642
9685cef2
JD
26432009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2644
2645 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2646 pixel -1 (bug #4742).
2647
d7306fe6
DN
26482009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2649
019d2c4c
DN
2650 * process.c (create_pty): Remove conditionals for no longer
2651 supported systems: UNIPLUS and RTU.
2652
ee6bacd4
DN
2653 * xterm.c:
2654 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2655
d7306fe6
DN
2656 * alloc.c: Do not define struct catchtag.
2657 * eval.c: Move struct catchtag definition ...
2658 * lisp.h: ... here.
2659
2660 * image.c: Move png.h #include earlier to avoid warnings.
2661
2662 * xterm.c:
2663 * xsmfns.c:
2664 * xselect.c:
2665 * xrdb.c:
2666 * xmenu.c:
2667 * xftfont.c:
2668 * xfont.c:
2669 * xfns.c:
2670 * xfaces.c:
2671 * xdisp.c:
2672 * window.c:
2673 * widget.c:
2674 * w32xfns.c:
2675 * w32uniscribe.c:
2676 * w32term.c:
2677 * w32select.c:
2678 * w32reg.c:
2679 * w32proc.c:
2680 * w32menu.c:
2681 * w32inevt.c:
2682 * w32heap.c:
2683 * w32font.c:
2684 * w32fns.c:
2685 * w32console.c:
2686 * w32.c:
2687 * w16select.c:
2688 * vm-limit.c:
2689 * unexsol.c:
2690 * unexec.c:
2691 * unexcw.c:
2692 * unexaix.c:
2693 * undo.c:
2694 * tparam.c:
2695 * textprop.c:
2696 * terminfo.c:
2697 * terminal.c:
2698 * termcap.c:
2699 * term.c:
2700 * syntax.c:
2701 * sound.c:
2702 * sheap.c:
2703 * search.c:
2704 * scroll.c:
2705 * region-cache.c:
2706 * regex.c:
2707 * ralloc.c:
2708 * process.c:
2709 * print.c:
b024548b
DN
2710 * nsterm.m:
2711 * nsselect.m:
2712 * nsmenu.m:
2713 * nsimage.m:
2714 * nsfont.m:
2715 * nsfns.m:
d7306fe6
DN
2716 * msdos.c:
2717 * minibuf.c:
2718 * menu.c:
2719 * marker.c:
2720 * macros.c:
2721 * keymap.c:
2722 * keyboard.c:
2723 * intervals.c:
2724 * insdel.c:
2725 * indent.c:
2726 * gtkutil.c:
2727 * ftxfont.c:
2728 * ftfont.c:
2729 * fringe.c:
2730 * frame.c:
2731 * fontset.c:
2732 * font.c:
2733 * fns.c:
2734 * floatfns.c:
2735 * filelock.c:
2736 * fileio.c:
2737 * emacs.c:
2738 * editfns.c:
2739 * dosfns.c:
2740 * doprnt.c:
2741 * doc.c:
2742 * dispnew.c:
2743 * dired.c:
2744 * dbusbind.c:
2745 * data.c:
2746 * composite.c:
2747 * coding.c:
2748 * cmds.c:
2749 * cm.c:
2750 * chartab.c:
2751 * charset.c:
2752 * character.c:
2753 * ccl.c:
2754 * category.c:
2755 * casetab.c:
2756 * casefiddle.c:
2757 * callproc.c:
2758 * callint.c:
2759 * bytecode.c:
2760 * buffer.c:
2761 * atimer.c: Include setjmp.h. (Bug#4643)
2762
fd5f21e6
SM
27632009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2764
4c0354d7
SM
2765 Remove leftover table unibyte_to_multibyte_table.
2766 * character.c (unibyte_to_multibyte_table): Remove.
2767 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2768 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2769 * character.h (UNIBYTE_TO_CHAR): New macro.
2770 (MAKE_CHAR_MULTIBYTE): Use it.
2771 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2772 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2773 (message_dolog, set_message_1):
2774 * search.c (Freplace_match):
2775 * editfns.c (Fcompare_buffer_substrings):
2776 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2777 (concat):
2778 * insdel.c (copy_text, count_size_as_multibyte):
2779 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2780 * term.c (produce_glyphs):
2781 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2782 * regex.c (RE_CHAR_TO_MULTIBYTE):
2783 * cmds.c (internal_self_insert):
2784 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2785
fd5f21e6
SM
2786 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2787
4418646e
DN
27882009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2789
2790 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2791
35f5c1d2
JB
27922009-10-16 Juanma Barranquero <lekktu@gmail.com>
2793
2794 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2795
a0cd8f6b
AR
27962009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2797
2798 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2799 still needed under Tiger.
2800
2801 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2802
2803 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2804 __Apple__.
2805
2806 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2807
01a8d3fa
KH
28082009-10-15 Kenichi Handa <handa@m17n.org>
2809
2810 * print.c (print_object): Escape a symbol like "2E10" too.
2811
bf6c75c9 28122009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
2813
2814 Cleanups and changes for 64-bit compile under Snow Leopard.
2815 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
2816
2817 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2818
c5959062 2819 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
2820 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2821 cast argument.
2822 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 2823 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
2824
2825 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2826
2827 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2828 where appropriate.
2829
2830 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2831 where appropriate.
6e4780c5
JB
2832 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2833 Use stringWithUTF8String.
bf6c75c9
AR
2834 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2835
6e4780c5
JB
2836 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2837 Add formal protocol mention to inheritance.
bf6c75c9
AR
2838 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2839
6e4780c5
JB
2840 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2841 Fix printf format.
bf6c75c9
AR
2842 (ns_query_color): Use CGFloat where appropriate.
2843 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 2844 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
2845 argument.
2846
3d87f118
AR
2847 * config.in (NS_HAVE_NSINTEGER): Drop.
2848
a95c8102
AR
2849 * dbusbind.c (dbus-method-return-internal)
2850 (dbus-method-error-internal): Use long format in printf, and cast
2851 argument.
2852
2853 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2854 in printf, and cast argument.
2855
6873acca 2856 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
2857 cast argument.
2858
9ec6f100
GM
28592009-10-11 Glenn Morris <rgm@gnu.org>
2860
2861 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2862
5be883cd
JD
28632009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2864
2865 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2866 menu bar with a small width so it doesn't enlarge the frame.
2867
d7a39b51
JB
28682009-10-08 Juanma Barranquero <lekktu@gmail.com>
2869
2870 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2871
0c2b6f8e
GM
28722009-10-06 Glenn Morris <rgm@gnu.org>
2873
2874 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2875 SOME_MACHINE_LISP (this enters indirectly via DOC).
2876
e02131a2
EZ
28772009-10-05 Eli Zaretskii <eliz@gnu.org>
2878
2879 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2880
b4744254
EZ
28812009-10-04 Eli Zaretskii <eliz@gnu.org>
2882
2883 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2884 Doc fix.
2885
dbf64827
JB
28862009-10-03 Martin Rudalics <rudalics@gmx.at>
2887
2888 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2889
e9a0aef8
MA
28902009-10-02 Michael Albinus <michael.albinus@gmx.de>
2891
d528b1ce 2892 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
2893 used anymore outside fileio.c.
2894
2895 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2896
64eb2b56
JB
28972009-10-01 Juanma Barranquero <lekktu@gmail.com>
2898
2899 * lisp.h (Qdelete_directory_internal):
2900 Declare, instead of Qdelete_directory.
2901
2902 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2903
9d28c33e
SM
29042009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2905
2906 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2907
9d8f3bd9
MA
29082009-10-01 Michael Albinus <michael.albinus@gmx.de>
2909
9d28c33e 2910 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
2911 Fdelete_directory. It is not a command anymore. It has no file
2912 name handler.
2913
9694740b
SM
29142009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2915
2916 * xdisp.c (get_next_display_element): Use an enum in last change.
2917
748e162f
KH
29182009-09-28 Kenichi Handa <handa@m17n.org>
2919
9694740b 2920 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
2921 unibyte_display_via_language_environment in handling
2922 Vnobreak_char_display.
2923
17efd58d
AR
29242009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2925
2926 * nsterm.h (ns_app_name): New extern variable.
2927
2928 * nsterm.m (ns_app_name): New variable.
2929 (ns_term_init): Set and use it.
2930 (ns_term_shutdown): Use it.
2931
2932 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2933 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2934
2935 * nsfns.m (ns_set_name_iconic, ns_set_name)
2936 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2937 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2938
9694740b
SM
2939 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2940 Remove double-casting in client_data comparison.
31c2d412 2941
3208cb35
YM
29422009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2943
2944 * keyboard.c (make_lispy_event): Remember last wheel direction.
2945 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2946
b7d552d6
GM
29472009-09-26 Glenn Morris <rgm@gnu.org>
2948
2949 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2950 internal.elc. Add term/pc-win.elc.
2951 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2952 term/x-win.elc.
2953 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2954 term/w32-win.elc.
2955 (NS_SUPPORT): New.
2956 (lisp): Add NS_SUPPORT.
2957 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2958
4ff670a8
DR
29592009-09-25 David Reitter <david.reitter@gmail.com>
2960
2961 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2962 on Mac OS X 10.6+ (bug#4513).
2963
feabfb6c
JB
29642009-09-24 Juanma Barranquero <lekktu@gmail.com>
2965
2966 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
2967 some parts of Emacs code (like font selection) don't grok them.
2968 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 2969
de59072a
AS
29702009-09-24 Andreas Schwab <schwab@redhat.com>
2971
2972 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2973
a489517b
JB
29742009-09-24 Juanma Barranquero <lekktu@gmail.com>
2975
2976 * dired.c (Fdirectory_files): Fix typo in docstring.
2977
0592970c
AR
29782009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2979
2980 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2981 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2982 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2983 under GNUstep.
2984 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2985
2986 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2987 glyph advancement.
2988
48e8a88b
AR
29892009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2990
2991 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 2992 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
2993
2994 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2995 deleted (bug #4492).
2996
e14f0a78
AR
2997 * nsfont.m (Vns_reg_to_script): New lisp variable.
2998 (syms_of_nsfont): Declare it.
2999 (ns_registry_to_script): New function.
3000 (ns_get_req_script): Call it.
3001 (ns_findfonts): Don't give up on non-unicode registry.
3002
3003 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
3004
5b650faa
SM
30052009-09-20 Tom Tromey <tromey@redhat.com>
3006
3007 * eval.c (find_handler_clause): Make stack-trace-on-error work in
3008 batch mode (bug#4228).
3009
a489517b 30102009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
3011
3012 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 3013 carefully. (Bug #4339)
0bae4e09 3014
fcfe06f3
CY
30152009-09-18 Chong Yidong <cyd@stupidchicken.com>
3016
d798ba87 3017 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 3018
31642728
AR
30192009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3020
3021 * emacs.c (inhibit_x_resources): Update doc string for NS.
3022 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 3023 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
3024
3025 * nsterm.h (ns_no_defaults): Remove.
3026
3027 * nsterm.m (ns_no_defaults): Remove.
3028 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
3029 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
3030 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
3031 don't update the NSWindow itself.
3032 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 3033 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
3034
3035 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
3036 ns_use_qd_smoothing.
3037
3038 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
3039 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 3040 (x-close-connection): Drop PSFlush() under OS X.
a489517b 3041 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 3042
8686ac71
JB
30432009-09-17 Juanma Barranquero <lekktu@gmail.com>
3044
3045 * emacs.c (inhibit_x_resources): New variable.
3046 (main) [HAVE_NS]: Don't process --quick command line option.
3047 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
3048
3049 * lisp.h (inhibit_x_resources): Declare it extern.
3050
3051 * w32reg.c (x_get_string_resource):
3052 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
3053
e227ba05
EZ
30542009-09-17 Eli Zaretskii <eliz@gnu.org>
3055
362654a6
JB
3056 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
3057 Add lisp/term/internal.elc.
e227ba05 3058
742d40e8
SM
30592009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3060
3061 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
3062 (bug#4461).
3063
005bd5a2
DN
30642009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
3065
3066 * puresize.h (BASE_PURESIZE): Increase to 1290000.
3067
3068 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
3069 (OBJECTS_MACHINE): Remove, unused.
3070
f9af9719
SM
30712009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
3072
3073 * frame.c (x_get_resource_string): Remove unused.
3074
0307c7d2
JD
30752009-09-15 Jan Djärv <jan.h.d@swipnet.se>
3076
3077 * xterm.c (x_new_font): Call change_frame_size before calling
3078 x_set_window_size, in case frame size won't change.
3079
3080 * frame.c (x_set_font): Remove dead code.
3081
428b13d6
SM
30822009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
3083
3084 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
3085
5766c380
SM
30862009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3087
3088 * lread.c (Fload): Don't output a message after loading an obsolete
3089 package any more (done in Lisp now).
3090
2fd0161b
CY
30912009-09-12 Chong Yidong <cyd@stupidchicken.com>
3092
3093 * fns.c (syms_of_fns): Doc fix (Bug#4227).
3094
bc5e75b6
SM
30952009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3096
3097 * keymap.c (Fwhere_is_internal): Use nconc2.
3098
c31c985e
AM
30992009-09-11 Alan Mackenzie <acm@muc.de>
3100
3101 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
3102 batch mode.
3103
78012bd2
AS
31042009-09-11 Andreas Schwab <schwab@linux-m68k.org>
3105
3106 * xdisp.c (display_mode_element): Detect cycles.
3107
9d889332
SM
31082009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3109
3110 * keymap.c (where_is_internal): Don't erroneously return nil right after
3111 filling the cache.
3112 (where_is_internal_1): Fix up typo.
3113
7ab5d780
GM
31142009-09-11 Glenn Morris <rgm@gnu.org>
3115
3116 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
3117 share a common doc-string.
3118
5238a749
SM
31192009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3120
66d77eda
SM
3121 * keymap.c (get_keymap): Return the actual keymap symbol rather than
3122 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
3123
5238a749
SM
3124 * keymap.c (QCadvertised_binding): New constant.
3125 (syms_of_keymap): Initialize it.
3126 (Fwhere_is_internal): Try and use bindings from :advertised-binding
3127 if applicable.
3128
19f48442
SM
31292009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
3130
50d4ba39
SM
3131 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
3132 (parse_menu_item): Streamline since bindings are recomputed all the
3133 time anyway. Don't bother checking Vdefine_key_rebound_commands any
3134 more and don't support lmenu's menu-alias any more either.
3135
a88a5372
SM
3136 * keymap.c (where_is_internal_data): Make noindirect a boolean.
3137 (where_is_internal): Strip it down to only traverse the keymaps.
3138 Move the cache handling from Fwhere_is_internal to here.
3139 (Fwhere_is_internal): Move the handling of remapping and the choice of
3140 the best binding from where_is_internal to here.
3141 Unify the cached/noncached paths, so remapping is also handled
3142 correctly when the cache is used, and so the cache can be used to
3143 speed up remap-handling when applicable.
3144 Give preference to non-remapped bindings.
3145 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
3146 non-remapped bindings.
3147 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
3148 command remapping.
3149
19f48442
SM
3150 * xdisp.c (display_mode_element): Move list length limit from 50 to
3151 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
3152
599498c3 31532009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
3154
3155 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
3156
f9b7b5ac
SM
31572009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
3158
a53af587
JB
3159 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
3160 (Bug#4334)
3161
f9b7b5ac
SM
3162 * keymap.c (where_is_internal): Filter out shadowed remappings.
3163 Assume that where_is_internal returns unshadowed bindings to simplify
3164 the code and get rid of the gotos. Use ASIZE.
3165
04f4b72d
JD
31662009-09-04 Jan Djärv <jan.h.d@swipnet.se>
3167
4da146f2
JD
3168 * xterm.c (x_focus_changed): If we get a focusout and pointer
3169 is invisible, make it visible.
3170
04f4b72d
JD
3171 * xterm.h: Remove condition for declaration of
3172 x_*_window_to_frame.
3173
7cef7ce3
SM
31742009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
3175
3176 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
3177 initial terminal as well.
3178
a54fa5b7
JD
31792009-09-02 Jan Djärv <jan.h.d@swipnet.se>
3180
3181 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 3182 x_menubar_window_to_frame.
a54fa5b7
JD
3183
3184 * xterm.c: Remove declarations also in xterm.h
3185 (XTmouse_position): Do not return valid positions
3186 for clicks in the menubar and the toolbar for Gtk+.
3187
3188 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
3189 if the widget for the event has the same top level as a frame,
3190 return the frame.
3191 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
3192 internal windows, bug #4122.
3193 (x_non_menubar_window_to_frame): Remove.
3194
5a021dd0
GM
31952009-09-02 Glenn Morris <rgm@gnu.org>
3196
3197 * buffer.c (default-major-mode): Move most of the doc from here...
3198 (major-mode): ... to here.
3199
548fe2f3
NR
32002009-08-30 Nick Roberts <nickrob@snap.net.nz>
3201
3202 * process.c (wait_reading_process_output): Keep the descriptor
3203 when pty is used by a non-child process, e.g., in I/O buffer of
3204 GDB this allows inferior to be restarted.
3205
e0840eef
EZ
32062009-08-29 Eli Zaretskii <eliz@gnu.org>
3207
3208 * xdisp.c (redisplay_internal): Remove redundant test and collapse
3209 both branches into one.
3210
82e98df4
SM
32112009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
3212
3213 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
3214 (main): Use enable-multibyte-characters rather than
3215 default-enable-multibyte-characters. Output a warning message when
3216 running a unibyte session.
3217
890617cb
YM
32182009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3219
3220 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
3221 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
3222 (copy_data_segment): Also copy __program_vars section.
3223 (copy_dyld_info) [LC_DYLD_INFO]: New function.
3224 (dump_it) [LC_DYLD_INFO]: Use it.
3225
3226 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
3227
e7adeadc
EZ
32282009-08-28 Eli Zaretskii <eliz@gnu.org>
3229
3230 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
3231 $(SRC)/buildobj.h.
3232 (buildobj.h): Renamed from $(SRC)/buildobj.h.
3233 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
3234 $(SRC)/buildobj.h.
3235 (clean): Add buildobj.h.
3236
3ed8bbdc
TZ
32372009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
3238
3239 * print.c (print_object): Set escapeflag to 1 when printing
3240 hashtable keys and values.
3241
155a6764
SM
32422009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
3243
3244 * lread.c (read_integer): Use doubles (and potentially return a float
3245 number) as we do in string-to-number.
3246 (read1): Use strtol to read integers, signal errors on strtol's
3247 overflow and use floats if strtol's output is too large for
3248 Elisp integers.
3249
877610de
EZ
32502009-08-27 Eli Zaretskii <eliz@gnu.org>
3251
3252 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
3253 (make-buildobj-SH): Fix last change.
3254 (SRC): Move to before where it's first used.
3255
ef73e7be
KH
32562009-08-27 Kenichi Handa <handa@m17n.org>
3257
550c8289
KH
3258 * process.c (send_process): Use encode_coding_object instead of
3259 encode_coding_string to perform eol-conversion even if the string
3260 is unibyte.
3261
60afa08d
KH
3262 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
3263 character.
3264
ef73e7be 3265 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 3266 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 3267
7b3a82d7
DN
32682009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
3269
5654bf63
DN
3270 * callproc.c (Fcall_process): Remove always true #if.
3271
7b3a82d7
DN
3272 * lisp.h: Replace #if 0 code for checking with text pointing to
3273 the --enable-checking configure flag.
3274
3275 * emacs.c (main): Mention the --enable-profiling configure flag
3276 instead of using CFLAGS.
3277
878bde49
KR
32782009-08-26 Ken Raeburn <raeburn@raeburn.org>
3279
3280 * Makefile.in (buildobj.h): New target.
3281 (doc.o): Depend on it.
3282 (temacs${EXEEXT}): Don't generate buildobj.lst.
3283 (mostlyclean): Delete buildobj.h, not buildobj.lst.
3284 * makefile.w32-in ($(SRC)/buildobj.h): New target.
3285 ($(BLD)/doc.$(O)): Depend on it.
3286 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
3287 provided by Eli Zaretskii.)
3288 ($(TEMACS)): Don't generate buildobj.lst.
3289 * doc.c: Include buildobj.h.
3290 (buildobj): New static variable.
3291 (Fsnarf_documentation): Use it, instead of opening and reading
3292 buildobj.lst.
3293
1574224c
MA
32942009-08-25 Michael Albinus <michael.albinus@gmx.de>
3295
3296 * dbusbind.c (Fdbus_call_method)
3297 (Fdbus_call_method_asynchronously): Use English numeric format for
3298 timeout values in doc string.
3299
d9da2f45
KH
33002009-08-25 Kenichi Handa <handa@m17n.org>
3301
ef73e7be
KH
3302 * alloc.c (mark_char_table): New function.
3303 (mark_object): Use mark_char_table for a char-table.
3304
d9da2f45
KH
3305 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
3306 (CHAR_TABLE_REF): Use it.
3307
c8edcc01
KR
33082009-08-23 Ken Raeburn <raeburn@raeburn.org>
3309
3310 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
3311 before invoking the newly build emacs to check for load-path
3312 shadowing.
3313
7763401b
GM
33142009-08-22 Glenn Morris <rgm@gnu.org>
3315
3316 * Makefile.in (bootstrap_exe): New variable.
3317 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
3318 Use ${bootstrap_exe}.
3319
729eadda
EZ
33202009-08-22 Eli Zaretskii <eliz@gnu.org>
3321
3322 * coding.h (encode_coding_string): Don't encode unibyte strings.
3323 (Bug#4047)
3324
eb4c6ace
MA
33252009-08-22 Michael Albinus <michael.albinus@gmx.de>
3326
3327 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
3328
3329 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
3330 intended as hotfix only.
3331 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
3332
36e34d1b
AR
33332009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3334
3335 * nsterm.m (ns_get_color): Update documentation properly for last
3336 change, and clean up loose ends in the code left by it. Fix
3337 longstanding bug with 16-bit hex parsing, and add support for
3338 yet another X11 format (rgb:r/g/b) for compatibility.
3339 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
3340 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
3341
f983eb8a
SM
33422009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
3343
3344 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
3345
3f56d3c6
MA
33462009-08-20 Michael Albinus <michael.albinus@gmx.de>
3347
3348 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
3349 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
3350 (xd_initialize, xd_pending_messages): Check, whether
3351 $DBUS_SESSION_BUS_ADDRESS is set.
3352
fb641d68
YM
33532009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3354
3355 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
3356
3357 * nsterm.m (ns_get_color): Remove incompatible color formats again.
3358
cf59a374
GM
33592009-08-20 Glenn Morris <rgm@gnu.org>
3360
3361 * emacs.c (system-type): Doc fix.
3362
1373f3be
SM
33632009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3364
3365 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
3366 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
3367
058ed861
MA
33682009-08-18 Michael Albinus <michael.albinus@gmx.de>
3369
1373f3be
SM
3370 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
3371 New functions.
058ed861
MA
3372 (xd_initialize): Revert change from 2009-08-16.
3373
563a866e 33742009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
3375
3376 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 3377 font-group vector, return nil.
5fc05db0 3378
e42bdf01
CY
33792009-08-17 Chong Yidong <cyd@stupidchicken.com>
3380
3381 * process.c (status_notify): Don't perform redisplay.
3382 (Fdelete_process, list_processes_1, process_send_signal):
3383 Expliticly perform redisplay.
3384 (wait_reading_process_output): Always check process status, but
3385 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
3386
4230ab74
KR
33872009-08-17 Ken Raeburn <raeburn@raeburn.org>
3388
1373f3be 3389 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
3390 (XFLOAT_INIT): New macro for storing a float value.
3391 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
3392 * fns.c (sxhash): Copy out the value of a float in order to
3393 examine its bytes.
3394 * dbusbind.c (xd_append_arg): Likewise.
3395
4230ab74
KR
3396 * emacs.c (main): Don't call syms_of_data twice.
3397
a0645cdd
MA
33982009-08-16 Michael Albinus <michael.albinus@gmx.de>
3399
3400 * dbusbind.c (xd_initialize): Add connection file descriptor to
3401 input_wait_mask, in order to let select() detect, whether a new
3402 message has been arrived.
ca4f31ea 3403 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 3404
485db0ba
MA
34052009-08-15 Michael Albinus <michael.albinus@gmx.de>
3406
1373f3be
SM
3407 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
3408 New functions.
485db0ba
MA
3409
3410 * lisp.h (xd_pending_messages): Declare.
3411
3412 * keyboard.c (readable_events): Call xd_pending_messages.
3413
b5b98ff4
CY
34142009-08-15 Chong Yidong <cyd@stupidchicken.com>
3415
1373f3be 3416 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 3417
f8354c6e
CY
3418 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
3419
b5b98ff4
CY
3420 * buffer.c (set_buffer_internal_1)
3421 (swap_out_buffer_local_variables): Check for unbound local
3422 variables (Bug#4138).
3423
8b9fc636
EZ
34242009-08-14 Eli Zaretskii <eliz@gnu.org>
3425
3426 * process.c (create_pty): Fix last change.
3427
ce959360
CY
34282009-08-13 Chong Yidong <cyd@stupidchicken.com>
3429
3430 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
3431 (xbm_load_image): Caller changed.
64b807c9 3432 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 3433
c7baf7e9
NR
34342009-08-13 Nick Roberts <nickrob@snap.net.nz>
3435
3436 * process.c (create_pty): New function.
3437 (Fstart_process): Use it to allow Emacs to just associate a pty
3438 with the buffer. See associated change in gdb-mi.el.
3439 (list_processes_1): Deal with no program name.
3440 (start_process_unwind): Use pid == -2 to mean no process.
3441
1ac9108a
SM
34422009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3443
3444 * cmds.c (nonundocount): New global variable.
3445 (keys_of_cmds): Initialize it.
3446 (Fself_insert_command): Use it to combine upto 20 sequential chars
3447 into a single undo entry, just like the Qself_insert_command code in
3448 keyboard.c does.
3449 Call frame_make_pointer_invisible, also like the Qself_insert_command
3450 code in keyboard.c does.
3451 * keyboard.c (command_loop_1): Use the new global nonundocount rather
3452 than its own local replacement for it.
3453
e267324c
KR
34542009-08-10 Ken Raeburn <raeburn@raeburn.org>
3455
1ac9108a 3456 * fns.c (concat): Don't re-set string length to its current value.
77437343 3457
1ac9108a
SM
3458 * coding.h (decode_coding_string, encode_coding_string):
3459 Use SBYTES macro.
f0bed503 3460
1ac9108a 3461 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
3462 (doprnt): Merge with doprnt1, discarding lispstrings code.
3463 * lisp.h (doprnt_lisp): Don't declare.
3464
416e006d
JL
34652009-08-07 Juri Linkov <juri@jurta.org>
3466
3467 * puresize.h (BASE_PURESIZE): Increase to 1270000.
3468
6f7d5780
DN
34692009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3470
3471 * print.c (syms_of_print): Undo previous change.
3472
f19a0f5b
TZ
34732009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
3474
3475 * lread.c (read1, syms_of_lread): Read hashtables back from the
3476 readable format.
3477
3478 * print.c (print_preprocess, print_object): Print hashtables fully
3479 and readably.
3480 (syms_of_print): Provide 'hashtable-print-readable.
3481
b9173dc2
AR
34822009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3483
3484 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
3485 no family set.
3486 (nsfont_open): Handle case when entity has no family.
3487
1586503c
AR
34882009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3489
3490 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
3491 element, not a list, for match case.
3492
087048cd
KH
34932009-07-28 Kenichi Handa <handa@m17n.org>
3494
3495 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
3496 rigidly.
3497
3498 * xfont.c (xfont_list_pattern): Don't ignore the return value of
3499 font_parse_xlfd. Check font properties more rigidly.
3500
780c2506
DN
35012009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3502
31fd7c5c
JB
3503 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
3504 bsd-common.h.
780c2506 3505
a8c0cc18
KH
35062009-07-27 Kenichi Handa <handa@m17n.org>
3507
3508 * xfaces.c (face_with_height): Call font_clear_prop.
3509
4fbe2306
CY
35102009-07-26 Chong Yidong <cyd@stupidchicken.com>
3511
111d9af3
CY
3512 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
3513
3514 * xterm.c (x_term_init): Use Qx.
3515
4fbe2306
CY
3516 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
3517
1ac9108a 3518 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
3519 (ns_get_color): Revert 2009-07-16 change.
3520
beb0b7f9
EZ
35212009-07-25 Eli Zaretskii <eliz@gnu.org>
3522
3523 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 3524 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 3525
2baf5e76
KR
35262009-07-25 Ken Raeburn <raeburn@raeburn.org>
3527
1ac9108a
SM
3528 * coding.h (decode_coding_string, encode_coding_string):
3529 Use SCHARS macro.
8890e5f5 3530
2baf5e76 3531 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 3532 (load_depth): Delete.
2baf5e76
KR
3533 (Qload_in_progress): New variable.
3534 (load_unwind): Don't reference load_depth or load_in_progress.
3535 (Fload): Likewise; specbind Qload_in_progress instead.
3536 (init_lread): Don't initialize load_depth.
3537 (syms_of_lread): Initialize and protect Qload_in_progress.
3538
1395c6f5
AR
35392009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3540
3541 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
3542
4e2f36cf
AR
35432009-07-23 Yavor Doganov <yavor@gnu.org>
3544
3545 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
3546
5dd9a6f7
AR
35472009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3548
3549 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
3550 Bugs 3792, 3720, 2402.
3551 (ns_lookup_indexed_color): Check for bad index.
3552 (ns_index_color): Init unused slot to 0.
3553 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3554 Bug 3714, possibly 3082.
5dd9a6f7 3555
c902b920
JR
35562009-07-22 Jason Rumney <jasonr@gnu.org>
3557
1ac9108a
SM
3558 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3559 Position IME window at cursor (Bug#2570).
c902b920
JR
3560 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3561 (globals_of_w32fns): Dynamically load functions required above.
3562
3563 * w32term.c (w32_draw_window_cursor): Send message to reposition
3564 any IME window.
3565
090101cf
CY
35662009-07-21 Chong Yidong <cyd@stupidchicken.com>
3567
3568 * fileio.c: Revert 2009-07-16 changes.
3569 (Vauto_save_include_big_deletions): New variable.
3570 (Fdo_auto_save): Disable auto-save only if
3571 auto-save-include-big-deletions is nil.
3572
e6583e3d
CY
35732009-07-21 Chong Yidong <cyd@stupidchicken.com>
3574
3575 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3576 the overflowed pixels into account (Bug#3879).
3577
ece435a5
KR
35782009-07-21 Ken Raeburn <raeburn@raeburn.org>
3579
3580 * lread.c (load_depth): New variable.
3581 (Fload, load_unwind, init_lread): Set it to the load recursion
3582 depth; set load_in_progress as a simple boolean based on the
3583 current load_depth. (Bug#3892)
3584
40b2d973
AR
35852009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3586
3587 * nsfont.m (ns_has_attribute): Remove.
3588 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3589
10be7e0d
JL
35902009-07-18 Juri Linkov <juri@jurta.org>
3591
3592 * process.c (Fset_process_query_on_exit_flag): Mention killing
3593 a buffer in docstring.
3594
fa055055
KH
35952009-07-17 Kenichi Handa <handa@m17n.org>
3596
3597 * casetab.c (shuffle): Fix the logic of setting up the cycle.
3598
042f7b69
YM
35992009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3600
3601 * nsfns.m (Fns_set_alpha): Remove function.
3602 (syms_of_nsfns): Don't defsubr it.
3603
3604 * nsterm.m (ns_get_color): Remove incompatible color formats.
3605 (ns_color_to_lisp): Generate #rrggbb color format string.
3606
4be941e3
RS
36072009-07-16 Richard Stallman <rms@gnu.org>
3608
3609 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3610 (Fset_buffer_auto_saved): Handle save_length = -2.
3611
4e6b227d
CY
36122009-07-16 Chong Yidong <cyd@stupidchicken.com>
3613
3614 * xterm.c (Qx_gtk_map_stock): New var.
3615
3616 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3617 of calling intern each time.
3618
a1856973
YM
36192009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3620
3621 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3622 does tiling.
3623
3624 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3625
497e54d8
KH
36262009-07-14 Kenichi Handa <handa@m17n.org>
3627
72d36834
KH
3628 * font.c (font_vconcat_entity_vectors): New function.
3629 (struct font_sort_data): New member font_driver_preference.
3630 (font_compare): Check font_driver_preference.
3631 (font_sort_entities): The format of the first argument changed.
3632 (font_delete_unmatched): Likewise.
3633 (font_list_entities): The return type changed.
3634 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
3635 (font_find_for_lface): Adjuste for the above changes.
3636 Don't suppress the checking of C even if the repertory supports it.
3637 (Flist_fonts): Adjust for the above changes.
72d36834 3638
1ac9108a
SM
3639 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3640 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
3641 Reject a font who has adstyle property that is different from a
3642 langname derived from registry property.
1ac9108a 3643 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 3644
b6046155
EZ
36452009-07-13 Eli Zaretskii <eliz@gnu.org>
3646
3647 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3648 local copy of dirfilename.
3649
fb6b6049
KH
36502009-07-13 Kenichi Handa <handa@m17n.org>
3651
e2402a5e
KH
3652 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3653 against max_char.
3654
fb6b6049
KH
3655 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3656 calling XSYMBOL (sym).
3657
65156807
EZ
36582009-07-11 Eli Zaretskii <eliz@gnu.org>
3659
1ac9108a
SM
3660 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3661 New function.
3662 (directory_files_internal) [WINDOWSNT]:
3663 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
3664 the filesystem of the directory is fast or slow.
3665
3666 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3667 file name.
3668 (is_slow_fs): New function.
3669 (stat): Use it to determine whether to issue more system calls to
3670 get accurate file attributes, when w32-get-true-file-attributes is
3671 `local'.
3672
e0ab5fcf
JD
36732009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3674
3675 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 3676 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
3677 parameter font-parameter as default to the font dialog.
3678
784ceded
KH
36792009-07-10 Kenichi Handa <handa@m17n.org>
3680
3681 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3682
fb8edc0b
EZ
36832009-07-09 Eli Zaretskii <eliz@gnu.org>
3684
1ac9108a 3685 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 3686
fb8edc0b
EZ
3687 * w32.c (stat): Treat UNC file names as residing on remote
3688 drives. (Bug#3542)
3689
635c75b1
KH
36902009-07-09 Kenichi Handa <handa@m17n.org>
3691
3692 * fontset.c (fontset_find_font): Fix previous change.
3693
c1d5ce94
MA
36942009-07-08 Michael Albinus <michael.albinus@gmx.de>
3695
3696 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3697 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3698 error flag.
3699
edb61b39
KH
37002009-07-08 Kenichi Handa <handa@m17n.org>
3701
374bf7e4
KH
3702 * fontset.c (fontset_find_font): Fix the logic of handling
3703 charset_matched.
3704 (font_for_char): Delete unused var.
3705 (generate_ascii_font_name): Delete it.
3706
edb61b39
KH
3707 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3708
3709 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3710 (encode_coding_sjis): Fix the code range check.
3711
0f3f018c
CY
37122009-07-07 Chong Yidong <cyd@stupidchicken.com>
3713
3714 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3715 (Fexpand_file_name): Copy string data properly (Bug#3772).
3716
fcaf6f3a
JD
37172009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3718
3719 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3720 first MapNotify.
3721
6809ca75
KH
37222009-07-07 Kenichi Handa <handa@m17n.org>
3723
3724 * character.h (unibyte_has_multibyte_table): Delete extern.
3725 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3726
3727 * charset.c (Fset_charset_priority): Update charset_unibyte.
3728 (syms_of_charset): Initialize charset_unibyte.
3729
3730 * character.c (unibyte_has_multibyte_table): Delete it.
3731 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3732 charset_unibyte.
3733 (multibyte_char_to_unibyte_safe): Likewise.
3734 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3735
1ac9108a 3736 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
3737 (x_produce_glyphs): Likewise.
3738
3739 * .gdbinit (xcharset): Fix the treating $arg0.
3740
ad9e2d54
EZ
37412009-07-04 Eli Zaretskii <eliz@gnu.org>
3742
3743 Emulation of `getloadavg' on MS-Windows.
3744 * w32.c: Include float.h
3745 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3746 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3747 (get_native_system_info, get_system_times): New functions.
3748 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3749 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3750 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3751 g_b_init_get_system_times, and num_of_processors.
3752
0a3472c7
JR
37532009-07-03 Jason Rumney <jasonr@gnu.org>
3754
3755 * w32term.c (w32_initialize): Use standard types.
3756
80904120
EZ
37572009-07-03 Eli Zaretskii <eliz@gnu.org>
3758
3759 * dired.c (Ffile_attributes): Decode user and group names by the
3760 locale's encoding. (Bug#3443)
3761
6978862d
DN
37622009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3763
f8d23104
DN
3764 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3765 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3766
3767 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3768
3769 * term.c (init_tty): Remove spurious #ifdef.
3770
6978862d
DN
3771 * m/mips.h: Mention this file is also used for netbsd.
3772 * m/pmax.h: Remove file.
3773
e044e4fc
JD
37742009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3775
3776 * xterm.h (struct x_display_info): Add invisible_cursor.
3777 (struct x_output): Add current_cursor.
3778
3779 * xterm.c (XTtoggle_invisible_pointer): New function.
3780 (x_define_frame_cursor): Don't define cursor if invisible or the
3781 same as before. Set current_cursor.
3782 (x_create_terminal): Set toggle_invisible_pointer_hook.
3783
3784 * xfns.c (make_invisible_cursor): New function.
3785 (x_set_mouse_color): Call make_invisible_cursor.
3786 Set current_cursor.
3787 (x_window): Set current_cursor.
3788
3789 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3790
3791 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3792 inserting a character.
3793 (read_avail_input): Call frame_make_pointer_visible.
3794
3795 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
3796 (frame_make_pointer_invisible, frame_make_pointer_visible):
3797 New functions.
e044e4fc
JD
3798 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3799
3800 * frame.h: Declare frame_make_pointer_invisible and
3801 frame_make_pointer_visible.
3802 (struct frame): Add pointer_invisible.
3803
574c8efa
JD
38042009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3805
7b507248
JD
3806 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3807 frame isn't visible.
3808 (xg_frame_resized): If width/height is -1, get size of window
3809 from X server.
3810
3811 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3812 for MapNotify.
3813
835bdaa7 3814 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 3815 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 3816 (flush_and_sync): Reintroduce.
574c8efa 3817
3f1c6666 38182009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 3819
31fd7c5c 3820 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
3821
3822 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3823 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3824
3825 * frame.h: Declare Qsticky.
3826
cad9ef74
JD
3827 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3828
3829 * nsfns.m (ns_frame_parm_handlers): Ditto.
3830
3831 * frame.c: Declare Qsticky.
3832 (frame_parms): Add sticky.
3833
3834 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3835
3836 * xterm.h: Declare x_set_sticky.
3837
3838 * xterm.c (x_set_sticky): New function.
3839
69b16610
JD
3840 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3841 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3842 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
3843
3844 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3845
3846 * frame.c: Qmaximized is new.
3847 (x_set_frame_parameters): Do not handle fullscreen specially.
3848 Only set width and height if explicitly set.
3849 (x_set_fullscreen): Handle Qmaximized.
3850 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3851 (syms_of_frame): Initialize Qmaximized.
3852
1ac9108a
SM
3853 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3854 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
3855
3856 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
3857 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3858 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
3859 set gravity to NorthWestGravity when USE_GTK.
3860 (set_wm_state): New function.
31fd7c5c 3861 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
3862 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3863 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 3864 or the case when no window manager is running. That means remove calls
3f1c6666
JD
3865 to x_real_positions and x_fullscreen_adjust.
3866
3867 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3868 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3869 flush_and_sync.
3870 (xg_height_changed): New function.
3871 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
3872 and gtk_window_set_policy. Set frame gravity after parsing the
3873 geometry string.
3f1c6666
JD
3874 (xg_update_frame_menubar, free_frame_menubar)
3875 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3876 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3877 Remove calls to xg_frame_set_char_size.
3878
fd503d99
KH
38792009-07-01 Kenichi Handa <handa@m17n.org>
3880
3881 * keyboard.c (decode_keyboard_code): New function.
3882 (tty_read_avail_input): Decode the input bytes if necessary.
3883
1ac9108a
SM
3884 * coding.c (setup_coding_system):
3885 Initialize coding->carryover_bytes to 0.
fd503d99
KH
3886 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3887 use Qno_conversion.
3888
24ed93fb
YM
38892009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3890
3891 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3892
99061dfc
CY
38932009-06-30 Chong Yidong <cyd@stupidchicken.com>
3894
1ac9108a 3895 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 3896
ff90fbde
JR
38972009-06-30 Jason Rumney <jasonr@gnu.org>
3898
3899 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3900 is already loaded.
3901 Set user model ID if supported (bug#1849).
3902
5f445726
JM
39032009-06-29 Jim Meyering <meyering@redhat.com>
3904
3905 Remove useless if-before-xfree test.
3906 * nsfont.m (nsfont_close): Remove useless test.
3907 * term.c (delete_tty): Likewise.
3908 * w32.c (system_process_attributes): Likewise.
3909 * w32font.c (w32font_close): Likewise.
3910 * xfaces.c (x_free_gc): Likewise.
3911 * xselect.c (buffer): Likewise.
3912
b9607587
AS
39132009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3914
3915 * process.c (send_process): Keep decoded string in a local
3916 variable and protect it from GC. (Bug#3521)
3917
89ba96f4
EZ
39182009-06-28 Eli Zaretskii <eliz@gnu.org>
3919
3920 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3921 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3922
098a1589
CY
39232009-06-28 Chong Yidong <cyd@stupidchicken.com>
3924
485422be
CY
3925 * xdisp.c (start_display, handle_face_prop)
3926 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
3927 (redisplay_window, try_window_id, produce_image_glyph):
3928 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 3929
098a1589
CY
3930 * xterm.c (x_update_window_begin, x_new_focus_frame)
3931 (x_scroll_bar_handle_click, handle_one_xevent)
3932 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3933 (x_make_frame_visible, x_make_frame_invisible)
3934 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3935 code chunks that are now obsolete.
3936
78c38319
MA
39372009-06-28 Michael Albinus <michael.albinus@gmx.de>
3938
3939 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3940 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3941 for hours, when optimzation is enabled.
3942 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3943 (xd_read_message): Make them static.
3944
4189ed40
CY
39452009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3946
3947 * term.c (turn_on_face): Allow simultaneously bold and dim
3948 terminal faces (Bug#3530).
3949
cd9b5e16
CY
39502009-06-27 Chong Yidong <cyd@stupidchicken.com>
3951
4e23bedb
CY
3952 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3953
cd9b5e16
CY
3954 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3955 truncation glyphs (Bug#3686).
3956
07cc3c35
GM
39572009-06-27 Glenn Morris <rgm@gnu.org>
3958
3959 * m/pmax.h: Restore file, with only netbsd portions.
3960
31fd7c5c 39612009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 3962
cd9b5e16 3963 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 3964
42d4a64f
KH
39652009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3966
3967 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3968 the arg FORCE_SYMBOL.
3969
930fe55b 39702009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
3971
3972 * fontset.c (fontset_find_font): When a usable rfont_def is found
3973 in a fallback font-group, make it the first element of the group.
3974
57ebc3fd
CY
39752009-06-24 Chong Yidong <cyd@stupidchicken.com>
3976
3977 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3978
f084f942
KH
39792009-06-24 Kenichi Handa <handa@m17n.org>
3980
3981 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3982 set for C.
3983 (fontset_font): Record the availability of a font for C both in
3984 the realized fontsets of the current one and the default one.
3985
2f686c87
DN
39862009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3987
3988 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3989 conditional, it is always defined on AIX.
3990
666e158e
MB
39912009-06-23 Miles Bader <miles@gnu.org>
3992
3993 * window.c (Vrecenter_redisplay): New variable.
3994 (syms_of_window): Initialize it.
3995 (Qtty): New extern declaration.
3996 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3997
c6da7cd2
JM
39982009-06-23 Jim Meyering <meyering@redhat.com>
3999
1ac9108a
SM
4000 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
4001 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 4002 pointer dereferences are guaranteed to be valid.
c6da7cd2 4003
678dca3d
KH
40042009-06-23 Kenichi Handa <handa@m17n.org>
4005
74d75424
KH
4006 * emacs.c (main): Call init_font ().
4007
4008 * font.h (Vfont_log): Extern it.
4009 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
4010
4011 * font.c (font_sort_entities, font_list_entities)
4012 (font_matching_entity, font_open_entity)
4013 (font_close_object): Change font_add_log to FONT_ADD_LOG.
4014 (Vfont_log): Delete static.
4015 (font_log_env_checked): Delete this variable.
4016 (font_add_log): Don't check font_log_env_checked.
4017 (font_deferred_log): Check Vfont_log.
4018 (init_font): New function.
4019
678dca3d
KH
4020 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
4021
4022 * w32font.c: Change font_add_log to FONT_ADD_LOG.
4023
4024 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
4025
4026 * xfont.c: Change font_add_log to FONT_ADD_LOG.
4027
4028 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
4029 (face_for_char): Don't call font_deferred_log here.
4030 (font_for_char): Likewise.
4031
8a668709
CY
40322009-06-22 Chong Yidong <cyd@stupidchicken.com>
4033
9a01ee33
CY
4034 * w32term.c (x_draw_glyph_string): Use the glyph string's width
4035 rather than its background_width for drawing the overline and
4036 underline (Bug#489).
4037
4038 * xterm.c (x_draw_glyph_string): Use the glyph string's width
4039 rather than its background_width for drawing the overline and
4040 underline (Bug#489).
ec7c9926
CY
4041 (xg_default_icon_file): New variable.
4042 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
4043 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 4044
8a668709
CY
4045 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
4046 (load_overlay_strings): Remove externs.
4047 (fast_find_position): Function deleted.
4048 (mouse_face_from_buffer_pos): New function, based on
4049 fast_find_position. Correctly handle before-strings,
4050 display-strings, and after-strings (Bug#1220).
4051 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
4052
4d4c02d8
CY
40532009-06-21 Chong Yidong <cyd@stupidchicken.com>
4054
1ac9108a 4055 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
4056 (move_it_in_display_line_to, move_it_in_display_line_to)
4057 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
4058
70243478
CY
40592009-06-21 Chong Yidong <cyd@stupidchicken.com>
4060
4061 * Branch for 23.1.
4062
13087e59
JR
40632009-06-21 Jason Rumney <jasonr@gnu.org>
4064
4065 * w32term.c (keyboard_codepage): New static variable.
4066 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
4067 (w32_read_socket) [WM_CHAR]: Use it to decode character
4068 input (bug#3237).
4069 (w32_initialize): Initialize it.
4070 (codepage_for_locale): New function.
4071
4735b74e
KR
40722009-06-20 Ken Raeburn <raeburn@raeburn.org>
4073
4074 * process.c (status_message): Pass Faset index argument as a lisp
4075 object, so as to work with USE_LISP_UNION_TYPE.
4076
0e727afa
YM
40772009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4078
4079 * coding.c (Ffind_coding_systems_region_internal):
4080 Cache checked characters.
4081
cf299835
KH
40822009-06-18 Kenichi Handa <handa@m17n.org>
4083
1ac9108a 4084 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 4085
90f20d94
AS
40862009-06-18 Andreas Schwab <aschwab@redhat.com>
4087
4088 * xdisp.c (redisplay_internal): Check that the frame is still
4089 live after redisplay of its windows.
4090 (redisplay_windows): Check that the window is still live.
4091
7f1faf1c
KH
40922009-06-17 Andreas Schwab <schwab@linux-m68k.org>
4093
4094 * coding.c (detect_coding_utf_16): Fix previous change.
4095
cc13543e
KH
40962009-06-16 Kenichi Handa <handa@m17n.org>
4097
4098 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
4099 UTF-16 by checking the dispersion of Eth and Oth bytes.
4100
977b85f4
AS
41012009-06-15 Andreas Schwab <schwab@linux-m68k.org>
4102
4103 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
4104
66bd43d1
KH
41052009-06-15 Kenichi Handa <handa@m17n.org>
4106
4107 * process.c (status_message): Fix previous change. Be sure to
4108 decode a localized string.
4109
cb5ca9c5
YM
41102009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4111
4112 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
4113 add comment explaining why.
4114
ec7709ba 41152009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 4116
ec7709ba 4117 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 4118
4b7f335c
AR
41192009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
4120
4121 * nsfont.m (ns_attribute_value): Remove.
4122 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
4123 (ns_has_attribute): Shrink the normal range.
4124 (ns_findfonts): Don't worry about requested spec in determining
4125 need for synthItal.
e41820ee 4126 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 4127
73b26103
SZ
41282009-06-14 Seiji Zenitani <zenitani@mac.com>
4129
4130 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
4131
5753e4da
KH
41322009-06-11 Kenichi Handa <handa@m17n.org>
4133
4134 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4135 overhang for the static composition case.
4136
3561b671
KH
41372009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4138
5753e4da
KH
4139 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4140 overhang for the automatic composition case.
4141
3561b671
KH
4142 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
4143 composition case.
4144
852bbd41
CY
41452009-06-10 Chong Yidong <cyd@stupidchicken.com>
4146
4147 * xdisp.c (get_next_display_element): When handling wrap-prefix
4148 and line-prefix, treat \n as a control character (bug#3502).
4149
9903d1e6
KH
41502009-06-10 Kenichi Handa <handa@m17n.org>
4151
4152 * font.c (font_parse_family_registry): Fix for one-char foundry.
4153 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
4154
0bcbaaaa
CY
41552009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
4156
4157 * process.c (status_message): Fix handling of multibyte signal
4158 string (Bug#3499).
4159
40aa3f13
JM
41602009-06-09 Jim Meyering <meyering@redhat.com>
4161
1f80c7e2
CY
4162 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
4163 color name is missing.
40aa3f13 4164
72d51285
KH
41652009-06-09 Kenichi Handa <handa@m17n.org>
4166
4167 * charset.c (Fmap_charset_chars): In docstring, state clearly that
4168 FROM-CODE and TO-CODE are codepoints of CHARSET.
4169
c1d04d84
AR
41702009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4171
4172 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
4173
41742009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4175
4176 Changes to support :script/:lang/:otf in NS font driver.
4177 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
4178 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
4179 indicate not part of font driver interface, and change callers.
4180 (ns_get_family): Remove pointless null check.
4181 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
4182 ns_spec_to_descriptor, ns_descriptor_to_entity.
4183 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
4184 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
4185 (ns_spec_to_descriptor, ns_descriptor_to_entity)
4186 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
4187 (ns_get_req_script, ns_accumulate_script_ranges)
4188 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
4189 New functions.
4190 (nsfont_list, nsfont_match): Use ns_findfonts.
4191 (nsfont_open): Use font descriptor instead of traits.
4192 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
4193 (dump_glyphstring): Rename to ns_dump_glyphstring.
4194
c7eb9816
AR
4195 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
4196
c1d04d84
AR
4197 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
4198
4199 * fontset.c (fontset_from_font): Remove NS-specific code.
4200
ec7709ba 42012009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
4202
4203 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
4204 nonactive windows.
4205
31fd7c5c 42062009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 4207
1ac9108a 4208 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 4209
68852c13 42102009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
4211
4212 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
4213
6756cd1d
CY
42142009-06-07 Chong Yidong <cyd@stupidchicken.com>
4215
4216 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
4217 account for the overflowing of newlines into the last glyph on the
4218 display line (Bug#3482).
4219
28bf482a
DR
42202009-06-05 David Reitter <david.reitter@gmail.com>
4221
ec7709ba
JB
4222 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
4223 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
4224 Fns_selection_exists_p, Fns_selection_owner_p.
4225
fdb55376
JR
42262009-06-03 Jason Rumney <jasonr@gnu.org>
4227
4228 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
4229 available. (Bug#3379)
4230
05129fbe
KH
42312009-05-29 Kenichi Handa <handa@m17n.org>
4232
1ac9108a
SM
4233 * coding.c (get_translation_table):
4234 Check Venable_character_translation.
05129fbe 4235
ec7709ba 42362009-05-26 David Reitter <david.reitter@gmail.com>
15891144 4237
ec7709ba
JB
4238 * nsterm.m (ns_raise_frame): Only raise frame if visible.
4239 (x_make_frame_visible): Move frame to front rather than calling
15891144 4240 ns_raise_frame().
ec7709ba 4241 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 4242 isn't key window.
ec7709ba 4243 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
4244 drawRect may be called by NSView even if the frame is hidden.
4245
ec7709ba
JB
4246 * nsfns.m (Fx_create_frame): Follow other ports in
4247 determining visibility; default to t. Ensure async_visible is set.
15891144 4248
21f73755
EZ
42492009-05-23 Eli Zaretskii <eliz@gnu.org>
4250
4251 * dired.c (Ffile_attributes): Doc fix.
4252
34001e41
CY
42532009-05-22 Chong Yidong <cyd@stupidchicken.com>
4254
4255 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
4256
46306a17
SM
42572009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
4258
4259 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
4260 and xfont_scratch_props.
4261 (syms_of_xfont): Do it here instead.
4262 (xfont_find_ccl_program): Delete, unused.
4263 (xfont_open): Delete unused var `i'.
4264
ef6e0694
KH
42652009-05-21 Kenichi Handa <handa@m17n.org>
4266
4267 * fontset.c (Qlatin): Don't make it static.
4268
46306a17
SM
4269 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
4270 New functions.
ef6e0694
KH
4271 (xfont_scripts_cache, xfont_scratch_props): New variables.
4272 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
4273 (xfont_list_pattern): Argument changed. Callers changed.
4274 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
4275 (xfont_list): Don't reject a font spec with :script property.
4276 (xfont_has_char): Fix setting of encoding.
4277 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
4278 xfont_scratch_props.
4279
42802009-05-19 Kenichi Handa <handa@m17n.org>
4281
46306a17 4282 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
4283 Callers changed.
4284
42852009-05-18 Kenichi Handa <handa@m17n.org>
4286
4287 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
4288
ac71ced7
SM
42892009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
4290
4291 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
4292 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
4293
1c6d1051
YM
42942009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4295
4296 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
4297 (x_delete_terminal): Dissociate resource database from display and
4298 then call XrmDestroyDatabase before closing display.
4299
9b9b779c
AR
43002009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4301
4302 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
4303 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
4304 whether selected frame is viable before raising it (based on patch
4305 by David Reitter), and improve commentary.
4306 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 4307
cccd42d5
KH
43082009-05-15 Kenichi Handa <handa@m17n.org>
4309
4310 * font.c (Ffont_spec): Check arguments.
4311
337fbd17
CY
43122009-05-14 Chong Yidong <cyd@stupidchicken.com>
4313
4314 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
4315 weight when testing attributes (Bug#3282).
4316
47a6002f
JD
43172009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4318
4319 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
4320 what we expect to get in the next ConfigureNotify event.
4321
9cb363db
YM
4322 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
4323 before Xft one (Bug#1696).
4324
b9126609
CY
43252009-05-07 David Reitter <david.reitter@gmail.com>
4326
4327 * nsfns.m (Fx_display_planes): Compute bitplanes using
4328 NSBitsPerPixelFromDepth (Bug#3207).
4329
27a69fd9
CY
43302009-05-10 Chong Yidong <cyd@stupidchicken.com>
4331
4332 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
4333
00f37552
TTN
43342009-05-10 Ulrich Mueller <ulm@gentoo.org>
4335
4336 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
4337
2d82a920
DR
43382009-05-07 David Reitter <david.reitter@gmail.com>
4339
ec7709ba
JB
4340 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
4341 Respect mouse face background.
2d82a920 4342
46b0d52d
DR
43432009-05-07 David Reitter <david.reitter@gmail.com>
4344
ec7709ba
JB
4345 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
4346 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
4347 in ns_update_begin and ns_update_end.
4348
ce1b23bb
SM
43492009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4350
5996e1b7
SM
4351 * nsfns.m (ns_get_screen): Rewrite.
4352 Don't presume selected-frame is of type `ns'.
4353
ba98e3a0
SM
4354 * font.c (font_update_drivers): Sanity fallback to avoid disabling
4355 all drivers.
4356
ce1b23bb
SM
4357 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
4358
bcda200f
YM
43592009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4360
4361 * keyboard.h (add_user_signal): Fix typo in extern.
4362
4363 * lisp.h (add_user_signal): Remove extern.
4364
4365 * unexelf.c (unexec): Consider a section to precede the .bss section
4366 if its addresses overlap that of .bss.
4367 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
4368 instead of dumping process.
4369
864660a2
SM
43702009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4371
4372 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
4373
50da4e56
SM
43742009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4375
4376 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
4377
51520a1a
DN
43782009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4379
4380 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
4381 any statements.
4382
409ea3a1
AS
43832009-05-02 Andreas Schwab <schwab@linux-m68k.org>
4384
59c4c60f
AS
4385 * process.c (read_process_output): Make sure the current buffer is
4386 always restored.
4387
409ea3a1
AS
4388 * coding.c (record_conversion_result): Don't modify
4389 Vlast_code_conversion_error for successful result.
4390 (alloc_destination): Don't clobber conversion result. (Bug#1650)
4391
56f00ed2
KH
43922009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4393
4394 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 4395 (load_charset_map): Remove unnecessary code.
56f00ed2 4396
4491c9d2
DR
43972009-04-30 David Reitter <david.reitter@gmail.com>
4398
35f5b128 4399 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
4400 through f24.
4401
6970f632
CY
44022009-04-30 Chong Yidong <cyd@stupidchicken.com>
4403
4404 * xfaces.c (face_at_buffer_position): New arg base_face_id.
4405
4406 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
4407 face_at_buffer_position.
4408 (face_before_or_after_it_pos, get_next_display_element)
4409 (note_mouse_highlight): Update face_at_buffer_position call.
4410
4411 * term.c (term_mouse_highlight):
4412 * msdos.c (IT_note_mouse_highlight):
4413 * fontset.c (Finternal_char_font):
35f5b128 4414 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
4415
4416 * dispextern.h (face_at_buffer_position): Update prototype.
4417
0c616f63
KH
44182009-04-30 Kenichi Handa <handa@m17n.org>
4419
35f5b128 4420 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 4421
ad3aaf33
AS
44222009-04-29 Andreas Schwab <schwab@linux-m68k.org>
4423
4424 * callproc.c (Fcall_process): Fix GC protection. Make sure
4425 current buffer is always restored.
4426
c3c963a0
YM
44272009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4428
4429 * atimer.c (init_atimer): Also clear stopped_atimers.
4430
4431 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
4432
7e3386cb
YM
4433 * process.c (create_process): Clean up merger residues of
4434 2008-07-17 change.
4435
91f68422
CY
44362009-04-29 Ulrich Mueller <ulm@gentoo.org>
4437
4438 * lread.c (Vread_circle): New variable.
4439 (read1): Disable recursive read if Vread_circle is nil.
4440
24b34550
KH
44412009-04-29 Kenichi Handa <handa@m17n.org>
4442
4443 * fontset.h (set_default_ascii_font): Delete extern.
4444
4445 * fontset.c (set_default_ascii_font): Delete this unused function.
4446
4447 * frame.c (x_set_font): When ARG is a font-object, check if the
4448 font-object matches with the ASCII font-spec of the frame's
9c358bda 4449 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 4450
77bf07e1
AS
44512009-04-28 Andreas Schwab <schwab@linux-m68k.org>
4452
4453 * fns.c (Flocale_info): Protect vector from GC during decoding.
4454
4455 * process.c (Fstart_process): Protect argv strings from GC during
4456 encoding.
4457
2c55aacf
AS
44582009-04-27 Andreas Schwab <schwab@linux-m68k.org>
4459
4460 * sysdep.c: Include <ctype.h>.
4461
b892d3c9
DR
44622009-04-27 David Reitter <david.reitter@gmail.com>
4463
35f5b128 4464 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
4465 Remove commented-out code.
4466
9d0644c4
JB
44672009-04-26 Johan Bockgård <bojohan@gnu.org>
4468
4469 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4470
b7053016
JR
44712009-04-25 Jason Rumney <jasonr@gnu.org>
4472
4473 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
4474
4e8231f3
YM
44752009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4476
4477 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
4478 Swap bytes in short integer if fringe bitmap width > 8.
4479
493dcf2c
KH
44802009-04-23 Kenichi Handa <handa@m17n.org>
4481
4482 * xfaces.c (Fx_list_fonts): If a font size is specified in
4483 PATTERN, set it in returned scalable fonts.
4484
401e9e57
CY
44852009-04-22 Chong Yidong <cyd@stupidchicken.com>
4486
708e05dc
CY
4487 * keyboard.c (Fset_input_meta_mode): Doc fix.
4488
4489 * dispnew.c (Fsend_string_to_terminal): Doc fix.
4490
1ac9108a 4491 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
4492
4493 * coding.c (Fterminal_coding_system): Doc fix.
4494
4495 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
4496 (Fx_display_pixel_height, Fx_display_planes)
4497 (Fx_display_color_cells, Fx_server_max_request_size)
4498 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4499 (Fx_display_mm_height, Fx_display_mm_width)
4500 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
4501 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
4502 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
4503 (check_x_display_info): Handle terminal objects instead of
4504 terminal ids.
4505
401e9e57
CY
4506 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
4507 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
4508 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
4509 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 4510
df80c7f0
KH
45112009-04-21 Kenichi Handa <handa@m17n.org>
4512
5a8f12af 4513 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 4514 (font_score): Check AVGWIDTH too.
908567ef 4515
df80c7f0
KH
4516 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
4517 worst case.
1ac9108a
SM
4518 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
4519 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 4520
705af33f
JR
45212009-04-19 Jason Rumney <jasonr@gnu.org>
4522
4523 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 4524 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
4525
4526 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
4527 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
4528 get_phys_cursor_geometry.
4529
b71ac3dd 4530 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
4531 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
4532 using get_phys_cursor_geometry.
4533
4534 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
4535 correctly calculated.
4536
dc2933eb
JD
45372009-04-19 Jan Djärv <jan.h.d@swipnet.se>
4538
1ac9108a
SM
4539 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
4540 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
4541 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
4542 is deprecated.
4543
973e7849
AS
45442009-04-18 Andreas Schwab <schwab@linux-m68k.org>
4545
4546 * font.c (font_put_frame_data): Use xfree instead of free.
4547
314d66f4
JB
45482009-04-17 Juanma Barranquero <lekktu@gmail.com>
4549
4550 * w32font.c (Qja, Qko): Remove declarations.
4551 (syms_of_w32font): Don't DEFSYM them.
4552
cf702558
CY
45532009-04-17 Chong Yidong <cyd@stupidchicken.com>
4554
4555 * font.c (Qja, Qko): Move definitions here from ftfont.c.
4556
4557 * font.h (Qja, Qko): Extern them.
4558
4559 * ftfont.c (Qja, Qko): Remove declarations.
4560
4561 * xfont.c (Qja, Qko): Remove declarations.
4562
b50504f5
KH
45632009-04-17 Kenichi Handa <handa@m17n.org>
4564
bde25748
KH
4565 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4566 string from a vector to handle Latin-1 characters correctly.
4567
b50504f5
KH
4568 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4569 entity even if the cache hits.
4570
f4646fff
AS
45712009-04-16 Andreas Schwab <schwab@linux-m68k.org>
4572
4573 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 4574 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 4575
e7deaab0
AS
4576 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4577 * lisp.h: Adjust prototypes.
4578
0a0e7d49
CY
45792009-04-16 Chong Yidong <cyd@stupidchicken.com>
4580
4581 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4582 change (Bug#3003).
4583
3c908a57
KH
45842009-04-16 Kenichi Handa <handa@m17n.org>
4585
1ac9108a 4586 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
4587
4588 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4589 adstyle.
4590
4591 * ftfont.c (Qja, Qko): Don't make them static.
4592 (enum ftfont_cache_for): New enum.
4593 (fc_charset_table): Undo the previous change.
4594 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
4595 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4596 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
4597 non-scarable font, try to get AVERAGE_WIDTH.
4598 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4599 Change ft_face_cache from a list of a hash-table. Don't check
4600 `ja' and `ko' adstyle here.
4601 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4602 FTFONT_CACHE_FOR_CHARET.
4603 (ftfont_get_charset): Undo the previous change.
1ac9108a 4604 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
4605 (ftfont_close): Likewise.
4606 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4607
4608 * font.c (font_sort_entites): Change the meaning of the arg
4609 BEST-ONLY. Don't optimize for VEC of lenght 1.
4610 (font_select_entity): Just return the value of font_sort_entites.
4611
4612 * xfaces.c (merge_face_vectors): Reflect font properties in
4613 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4614 font_clear_prop if a face attribute doesn't change.
4615
3c908a57
KH
4616 * charset.h (charset_ksc5601): Extern it.
4617
4618 * charset.c (charset_ksc5601): New variable.
4619 (Fdefine_charset_internal): Set charset_ksc5601.
4620 (init_charset_once): Initialize charset_ksc5601 to -1.
4621
d65859c3
DN
46222009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4623
4624 * fileio.c (history_delete_duplicates): Remove unused declaration.
4625
4626 * callint.c (history_delete_duplicates): New declaration.
4627 (Fcall_interactively): Remove command history duplicates when
4628 history_delete_duplicates is true.
4629
3ba010e5
EZ
46302009-04-14 Eli Zaretskii <eliz@gnu.org>
4631
4632 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4633
06f19b91
KH
46342009-04-14 Kenichi Handa <handa@m17n.org>
4635
4636 * font.c (Ffont_info): Fix docstring. Fix the second element of
4637 the returned value (bug#2949).
4638
2cce8bfc
CY
46392009-04-14 Chong Yidong <cyd@stupidchicken.com>
4640
4641 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4642
d156542d
KH
46432009-04-14 Kenichi Handa <handa@m17n.org>
4644
4645 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4646 encoding charset is ascii_compatible.
4647
4648 * charset.c (Fdefine_charset_internal): Make charset
4649 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4650 code_offset is 0, and covers all ASCII characters.
4651
86fa089e
SM
46522009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4653
4654 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4655 (ns_string_to_pasteboard_internal):
4656 * nsmenu.m (process_dialog):
4657 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4658 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4659 * lisp.h (Fx_load_color_file): Declare.
4660
a8a3728b
KH
46612009-04-13 Kenichi Handa <handa@m17n.org>
4662
1ac9108a 4663 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
4664 (font_select_entity): Suppress the code to optimize for the same
4665 kind of fonts.
4666 (font_load_for_lface): Get a font that supports at least ASCII
4667 characters.
4668
4669 * ftfont.c (Qja, Qko): New variables.
4670 (fc_charset_table): Delete uniquifier data for iso8859-1.
4671 (ftfont_get_latin1_charset): New function.
4672 (get_adstyle_property): New function.
4673 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4674 bitmap fonts.
4675 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4676 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4677 `ko' or `ja'.
4678 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 4679 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
4680 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4681 property.
4682 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4683 (syms_of_ftfont): DEFSYM Qja and Qko.
4684
483670b5
KH
46852009-04-09 Kenichi Handa <handa@m17n.org>
4686
12b55765
KH
4687 * charset.c (map_charset_chars): For a charset of `superset'
4688 method, fix calculation of code range.
4689
483670b5
KH
4690 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4691 from the list of extra properties.
4692 (font_clear_prop): Be sure to delete `:name' font property.
4693
57d3b93b
KH
46942009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4695
b4b2c2ca
YM
4696 * dispnew.c (redraw_overlapping_rows): Fix detection of
4697 overlapping for topmost and bottommost rows.
4698
1ac9108a 4699 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 4700
472c3609
JR
47012009-04-06 Jason Rumney <jasonr@gnu.org>
4702
4703 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4704
ab193662
KH
47052009-04-06 Kenichi Handa <handa@m17n.org>
4706
4707 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4708
4709 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4710
0c26f026
KH
47112009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4712
4713 * ftfont.c (ftfont_open): Fix checking of the return value of
4714 FT_Load_Char. Fix setting font->underline_thickness.
4715
e173bbce
CY
47162009-04-04 Chong Yidong <cyd@stupidchicken.com>
4717
4718 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4719 (Fterminal_parameters, Fterminal_parameter)
4720 (Fset_terminal_parameter): In doc string, refer to terminal
4721 objects rather than terminal ids.
4722
693a2698
EZ
47232009-04-04 Eli Zaretskii <eliz@gnu.org>
4724
4725 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4726 ret_lim_data. (Bug#2867)
4727
d5221487
CY
47282009-04-03 Chong Yidong <cyd@stupidchicken.com>
4729
4730 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4731 so they don't get wider than the window, matching 2006-01-23
4732 change to the partner function in xdisp.c (Bug#2800).
4733
223509a3
KH
47342009-04-03 Kenichi Handa <handa@m17n.org>
4735
4736 * print.c (print_object): Make each lowest sub_char_table start a
4737 new line (Bug#2866).
4738
74fcd0b1
KH
47392009-04-02 Kenichi Handa <handa@m17n.org>
4740
4741 * fontset.c (fontset_font): Record no-font when a fontset
4742 explicitly tells not to try another font-specs.
4743
c542407d
SM
47442009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4745
4746 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4747
e3869731
KH
47482009-03-30 Kenichi Handa <handa@m17n.org>
4749
d8d2f142
KH
4750 * fontset.c (fontset_from_font): Specify only registry in a
4751 font-spec for all characters supported by that registry.
4752
e3869731
KH
4753 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4754 even if HAVE_M17N_FLT is not defined.
4755
5da5f805
CY
47562009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4757
4758 * ftfont.c: Conditionalize prototyping and use of
4759 ftfont_variation_glyphs.
4760
ab226c50
SM
47612009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4762
9628fed7
SM
4763 * frame.c (delete_frame): Work around compiler bug.
4764
4765 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4766 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4767 Some more EMACS_INT.
4768 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4769
4770 * xdisp.c (dump_glyph): Fix typo.
4771
ae19ba7c
SM
4772 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4773 (adjust_markers_gap_motion, adjust_markers_for_delete)
4774 (adjust_markers_for_insert, adjust_point)
4775 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4776 (make_gap, copy_text, count_size_as_multibyte, insert)
4777 (insert_and_inherit, insert_before_markers)
4778 (insert_before_markers_and_inherit, insert_1)
4779 (count_combining_before, count_combining_after, insert_1_both)
4780 (insert_from_string, insert_from_string_before_markers)
4781 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4782 (insert_from_buffer_1, adjust_after_replace)
4783 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4784 (replace_range_2, del_range, del_range_1, del_range_byte)
4785 (del_range_both, del_range_2, modify_region)
4786 (prepare_to_modify_buffer, signal_before_change)
4787 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4788 for buffer positions and sizes.
4789 * lisp.h: Adjust prototypes accordingly.
4790
4791 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4792 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4793 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4794
ab226c50
SM
4795 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4796
46dfb8fb
JD
47972009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4798
4799 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4800 lines and columns so we keep the same pixel height and width.
4801
4802 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4803 the property _NET_WM_STATE has changed.
46dfb8fb
JD
4804 (x_handle_net_wm_state): New function to update frame parameter
4805 fullscreen.
4806 (x_term_init): Initialize atoms for _NET_WM_STATE.
4807
4808 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4809
d347e494
SM
48102009-03-27 Kevin Ryde <user42@zip.com.au>
4811
4812 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4813 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4814 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4815 (Fgpm_mouse_stop): Pass that new parameter.
4816 * termhooks.h (close_gpm): Adjust prototype.
4817
84db11d6
SM
48182009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4819
c95a5008
SM
4820 * lisp.h (Fx_focus_frame): Declare.
4821
84db11d6
SM
4822 * callint.c (Fcall_interactively): For '^' just delegate the work to
4823 handle-shift-selection.
4824 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4825
0a1958d6
CY
48262009-03-24 Chong Yidong <cyd@stupidchicken.com>
4827
0bfdff23
CY
4828 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4829
0a1958d6
CY
4830 * data.c (Qinteractive_form): New variable.
4831 (Finteractive_form): Use it.
4832
4833 * eval.c (Fcommandp): Use Qinteractive_form.
4834
58aec0d6
JR
48352009-03-24 Jason Rumney <jasonr@gnu.org>
4836
4837 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4838 Calculate total size precisely. Decode environment variables
4839 before substituting. (Bug#38)
4840
553dd618
KH
48412009-03-24 Kenichi Handa <handa@m17n.org>
4842
4843 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 4844 encoding (Bug#2722).
553dd618 4845
c39ea606
JD
48462009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4847
4848 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4849 that gdpy is set.
4850
bc9b2b5e
AM
48512009-03-22 Alan Mackenzie <acm@muc.de>
4852
4853 * callint.c (Finteractive): Clarify the doc string - even
4854 promptless elements need \n separators.
4855
9f995a76
JR
48562009-03-22 Jason Rumney <jasonr@gnu.org>
4857
4858 * w32term.c (syms_of_w32term): Doc fix for
4859 x-use-underline-position-properties.
4860
22749e9a
EZ
48612009-03-21 Eli Zaretskii <eliz@gnu.org>
4862
4863 * w32.c (getpwuid): Change argument type to unsigned.
4864 (struct w32_id): Change type of `rid' member to unsigned.
4865 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4866 argument ID to unsigned. All callers changed.
4867 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4868
e00553bf
EZ
48692009-03-20 Eli Zaretskii <eliz@gnu.org>
4870
4871 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4872 negative, produce a float value.
4873
4874 * dired.c (make_uid, make_gid): New functions.
4875 (Ffile_attributes): Use them to avoid negative UID and GID.
4876
f761d6b6
JB
48772009-03-20 Juanma Barranquero <lekktu@gmail.com>
4878
4879 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4880 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4881 Fix typos in docstrings.
4882
d507f8d7
KH
48832009-03-19 Kenichi Handa <handa@m17n.org>
4884
4885 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
4886 changed, use font_load_for_lface to get a new font object.
4887 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
4888
4889 * frame.c (x_set_font): Handle the case that ARG is a cons.
4890
c68845e0
GM
48912009-03-19 Glenn Morris <rgm@gnu.org>
4892
4893 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4894
bfa49dd1
CY
48952009-03-19 Chong Yidong <cyd@stupidchicken.com>
4896
4897 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4898
8458d4c1
KH
48992009-03-19 Kenichi Handa <handa@m17n.org>
4900
4901 * charset.c (load_charset_map_from_file): When a mapfile can't be
4902 loaded, signal an error.
4903
78e7d1fe
EZ
49042009-03-18 Eli Zaretskii <eliz@gnu.org>
4905
4906 * dired.c (Ffile_attributes): Make sure UID and GID are always
4907 positive, even if the value is too large for a positive EMACS_INT.
4908 Doc fix.
4909
4910 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4911
5da9fdfa
YM
49122009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4913
4914 * xmenu.c (xdialog_show): Move Fredisplay call ...
4915 (Fx_popup_dialog): ... here.
4916
7519c40d
SM
49172009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4918
4919 * dired.c (file_name_completion): Disable the first optimization just
4920 installed, since it is not implemented correctly.
4921
2cd298e2
SM
49222009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4923
4924 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 4925 only if the entry can affect bestmatch.
2cd298e2
SM
4926 Stop the search early, as Ftry_completion already does.
4927
48d37adf
CY
49282009-03-17 Chong Yidong <cyd@stupidchicken.com>
4929
e10c9c93 4930 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 4931
9286b16a
CY
49322009-03-15 Chong Yidong <cyd@stupidchicken.com>
4933
4934 * keyboard.c (parse_menu_item): Don't display remappings as menu
4935 equivalent bindings (Bug#788).
4936
f7b146dc
JR
49372009-03-15 Jason Rumney <jasonr@gnu.org>
4938
4939 * w32term.h (WM_EMACS_PAINT): New message.
4940 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4941 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4942 before passing to lisp thread. (Bug#950)
4943
f761d6b6 49442009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 4945
d93f9575
CY
4946 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4947 variable as it was never reset.
4948 (ns_term_init): Remove initialization of Lisp-settable defaults
4949 and ns_expand_space.
4950 (-setPanelFromDefaultValues): Remove ns_expand_space.
4951 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4952 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
4953 i.e. no additional spacing, similar to Carbon port.
4954
d93f9575
CY
4955 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4956 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 4957
305018ec
JD
49582009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4959
4960 * sound.c (alsa_configure): Remove call to deprecated
4961 snd_pcm_sw_params_set_xfer_align.
4962
f761d6b6 49632009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
4964
4965 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4966 after clicking in a detached tool bar.
4967 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4968
46e722a9
SM
49692009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4970
348db3dd
SM
4971 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4972 int/Lisp_Object mixup).
46e722a9 4973
a3d16f39
KH
49742009-03-13 Kenichi Handa <handa@m17n.org>
4975
4976 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 4977 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
4978 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4979 (set_fontset_font): Change ARG to a vector. Handle range_list in
4980 ARG correctly.
4981 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 4982 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
4983 the above change.
4984 (fontset_from_font): Fix previous change.
fe24f56a 4985 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
4986 entry. If FONTSET is the default fontset, don't set the extra
4987 slot of the returning char-table.
4988
b066e6b6
JB
49892009-03-12 Juanma Barranquero <lekktu@gmail.com>
4990
4991 * nsfns.m (Fx_close_connection): Doc fix.
4992 (Fns_do_applescript): Reflow docstring.
4993 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4994 (Fx_display_pixel_width, Fx_display_pixel_height)
4995 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4996 Fix typos in docstrings.
4997 (Fns_set_alpha): Fix typos in error messages.
4998
d472514e 49992009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 5000
d472514e 5001 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
5002 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
5003 were used for such events.
5004
d472514e
JB
5005 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
5006 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 5007
d472514e 5008 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
5009 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
5010
fb930676
KH
50112009-03-11 Kenichi Handa <handa@m17n.org>
5012
ff85581a
KH
5013 * font.h (font_open_by_spec): Extern it.
5014
c50b7e98
KH
5015 * font.c (font_open_by_spec): New function.
5016 (font_open_by_name): Use font_open_by_spec.
5017
fb930676
KH
5018 * frame.c (x_set_font): When ARG is a font-object, don't alter the
5019 fontset of the frame.
5020
5021 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
5022 modify the default font of frames that use this fontset.
5023 (num_auto_fontsets): New variable.
5024 (fontset_from_font): Use num_auto_fontsets to decide a fontset
5025 name. Be sure to set FONTSET_ASCII to the correct font name.
5026 (update_auto_fontset_alist): New function.
5027
df4e8455
JB
50282009-03-11 Juanma Barranquero <lekktu@gmail.com>
5029
5030 * makefile.w32-in: Update dependencies.
5031
0a375797
AR
50322009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5033
5034 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
5035
61313fa3
SM
50362009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5037
5038 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
5039
b55103fb
CY
50402009-03-10 Chong Yidong <cyd@stupidchicken.com>
5041
5042 * lread.c (Feval_buffer): Doc fix.
5043
dde2559c
KH
50442009-03-09 Kenichi Handa <handa@m17n.org>
5045
5046 * charset.c (Qfile_name_handler_alist): Extern it.
5047 (load_charset_map_from_file): Temporarily bind
5048 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
5049
df4e8455 50502009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 5051
47f588bb
GM
5052 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
5053 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 5054
4ddf94bd
AR
50552009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5056
4c9bdfc2
AR
5057 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
5058 (x_set_window_size): Change back to calculated method of setting
5059 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
5060 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
5061 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
5062
fe41ae9e
AR
5063 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
5064
4c9bdfc2
AR
5065 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
5066 accelerator in parens under GNUstep.
5067
825d0875
KH
50682009-03-06 Kenichi Handa <handa@m17n.org>
5069
5070 These changes are to detect incorrect composition sequence without
f3b3be74 5071 looking ahead the source. (Bug#2370)
825d0875
KH
5072
5073 * coding.h: Include "composite.h".
5074 (enum compisition_state): New enum.
5075 (struct compisition_status): New struct.
5076 (struct iso_2022_spec): New member cmp_status.
5077 (struct emacs_mule_spec): New struct.
5078 (struct coding_system): New members ctext_extended_segment_len and
5079 embedded_utf_8. Change the union member
5080 spec.emacs_mule_full_support to spec.emacs_mule.
5081
5082 * coding.c (CODING_ISO_CMP_STATUS): New macro.
5083 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 5084 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
5085 (ADD_COMPOSITION_DATA): New arg nbytes.
5086 (emacs_mule_char): New arg cmp_status.
5087 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
5088 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
5089 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
5090 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
5091 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
5092 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
5093 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
5094 (EMACS_MULE_COMPOSITION_END): New macro.
5095 (emacs_mule_finish_composition): New function.
5096 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
5097 (decode_coding_emacs_mule): Avoid long looking ahead while
5098 handling composition.
5099 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
5100 (ENCODE_COMPOSITION_RULE): New macro.
5101 (finish_composition): New function.
5102 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
5103 (DECODE_COMPOSITION_START): New implementation.
5104 (DECODE_COMPOSITION_END): Likewise.
5105 (STORE_COMPOSITION_RULE): New macro.
5106 (decode_coding_iso_2022): Avoid long looking ahead while handling
5107 composition, CTEXT extended segment, and embedded UTF-8.
5108 (setup_coding_system): For a coding of type iso-2022, reset
5109 CODING_ISO_EXTSEGMENT_LEN (coding) and
5110 CODING_ISO_EMBEDDED_UTF_8 (coding).
5111 (get_translation): Delete arguments last_block, from_nchars,
5112 to_nchars. Callers changed.
5113 (produce_chars): Don't modify charbuf. Adjusted for the change of
5114 get_translation.
98a326f7 5115 (produce_composition): Adjust for the new annotation sequence.
825d0875 5116 (handle_composition_annotation): Likewise.
98a326f7 5117 (consume_chars): Adjust for the change of get_translation.
825d0875 5118
ccbc4452
AR
51192009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
5120
4ddf94bd 5121 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 5122
988a7ddb
KH
51232009-03-05 Kenichi Handa <handa@m17n.org>
5124
5125 * font.c (font_select_entity): New function.
5126 (font_find_for_lface): Use font_select_entity to select a font.
5127
5128 * fontset.c (fontset_find_font): If a font found without
a8a3728b 5129 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
5130 font with C restriction.
5131
98a326f7 51322009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 5133
be1bce46 5134 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 5135
10ea2b82
JR
51362009-03-04 Jason Rumney <jasonr@gnu.org>
5137
2c93b248 5138 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 5139 characters that have already been read. (Bug#2569)
2c93b248 5140
10ea2b82
JR
5141 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
5142 Log an error message if check_image_size failed.
5143 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 5144 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 5145
71a0c011
EZ
51462009-03-02 Eli Zaretskii <eliz@gnu.org>
5147
5148 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
5149 when decoding process output.
5150
2f63bba8
RS
51512009-03-01 Richard M Stallman <rms@gnu.org>
5152
5153 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
5154
5155 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
5156
0a9564cb
EZ
51572009-02-28 Eli Zaretskii <eliz@gnu.org>
5158
5159 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
5160 (decode_coding_emacs_mule, decode_coding_iso_2022)
5161 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5162 (decode_coding_raw_text, decode_coding_charset)
5163 (setup_coding_system, decode_eol, decode_coding, consume_chars):
5164 Honor inhibit-eol-conversion. (Bug #2186)
5165
449148b3
JR
51662009-02-28 Jason Rumney <jasonr@gnu.org>
5167
5168 * coding.c (detect_coding_charset): If not checking latin extra,
5169 fail on characters between 0x80 and 0xA0. (Bug#2354)
5170
a4aee864
EZ
51712009-02-28 Eli Zaretskii <eliz@gnu.org>
5172
5173 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 5174 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 5175
d88bee5a
GM
51762009-02-27 Glenn Morris <rgm@gnu.org>
5177
5178 * callint.c (Finteractive): Doc fix.
5179
a808f22d
KH
51802009-02-27 Kenichi Handa <handa@m17n.org>
5181
5182 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
5183
caf8d60c
CY
51842009-02-27 Chong Yidong <cyd@stupidchicken.com>
5185
5186 * font.c (font_style_to_value): Set value for unknown symbols to
5187 100 instead of 255.
b61137ea
CY
5188 (weight_table, slant_table, width_table): Treat "unspecified" as
5189 the default value.
caf8d60c 5190
1a0de25c
JB
51912009-02-26 Juanma Barranquero <lekktu@gmail.com>
5192
5193 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
5194
8fc45744
JB
51952009-02-25 Juanma Barranquero <lekktu@gmail.com>
5196
107bd7d1
JB
5197 * lread.c (Fload): Stop checking Vloads_in_progress and signal
5198 error as soon as a recursive load is detected.
8fc45744 5199
f097e223
AR
52002009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5201
5202 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
5203 before caching.
5204
8810a12f
KH
52052009-02-24 Kenichi Handa <handa@m17n.org>
5206
5207 * fontset.c (fontset_find_font): Fix the condition for checking
5208 unavailable font.
5209
2c7d1565
GM
52102009-02-24 Glenn Morris <rgm@gnu.org>
5211
5212 * xfaces.c (Finternal_set_font_selection_order): Remove leading
5213 whitespace that confuses documentation.
5214
a20878b6
MB
52152009-02-23 Miles Bader <miles@gnu.org>
5216
5217 * process.c (Flist_system_processes, Fprocess_attributes)
5218 (syms_of_process): Rename `system-process-attributes' to
5219 `process-attributes'.
5220
b3b58c01
AS
52212009-02-22 Andreas Schwab <schwab@linux-m68k.org>
5222
1b3b981b
AS
5223 * coding.h (struct coding_system): Make safe_charsets a pointer to
5224 unsigned char.
5225 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
5226 being 255.
5227 (SAFE_CHARSET_P): Likewise.
5228 (setup_iso_safe_charsets): Properly setup safe_charsets.
5229 (Fdefine_coding_system_internal): Likewise.
5230 (setup_coding_system): Likewise. Remove unneeded casts.
5231 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
5232 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
5233 unneeded casts.
5234
b3b58c01
AS
5235 * insdel.c (del_range_2): Don't modify gap contents when called
5236 from decode_coding_object. (Bug#1809)
5237
0b6f228c
CY
52382009-02-21 Chong Yidong <cyd@stupidchicken.com>
5239
5240 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
5241 Qfont_object.
5242 (Ftype_of): Recognize font objects.
5243
5244 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
5245
5246 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
5247 moved to data.c.
5248
52f8870b
AR
52492009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5250
5251 * nsterm.m (x_make_frame_invisible): Unset async_visible,
5252 async_iconified. Based on a patch by Christian Lynbech
5253 <christian.lynbech@tieto.com>.
5254 (EmacsView-windowDidMiniaturize:): Unset async_visible.
5255
7087d5e9
GM
52562009-02-20 Glenn Morris <rgm@gnu.org>
5257
5258 * syntax.c (Fskip_chars_forward): Fix doc typo.
5259
41d2ceef
CY
52602009-02-20 Chong Yidong <cyd@stupidchicken.com>
5261
5262 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
5263
1a3b7ca6
CY
52642009-02-19 Chong Yidong <cyd@stupidchicken.com>
5265
5266 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
5267
73cce38d
KH
52682009-02-19 Kenichi Handa <handa@m17n.org>
5269
5270 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 5271 Don't overflow coding->carryover. (Bug#2370)
73cce38d 5272
a51092ee
DN
52732009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
5274
5275 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
5276
c423ecca
KH
52772009-02-18 Kenichi Handa <handa@m17n.org>
5278
5279 * font.c (font_check_otf_features): Fix handling of `nil' element.
5280 (Ffont_spec): Describe :lang and :otf in the docstring.
5281
4c1958f4
AS
52822009-02-16 Andreas Schwab <schwab@suse.de>
5283
5284 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
5285 string.
5286
5704f39a
KH
52872009-02-16 Kenichi Handa <handa@m17n.org>
5288
5289 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 5290 (Bug#1723)
5704f39a 5291
8f0085aa
CY
52922009-02-14 Chong Yidong <cyd@stupidchicken.com>
5293
a057d86a 5294 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
5295
5296 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
5297 (handle_line_prefix): Suppress wrapping of wrap prefixes.
5298
aff01dd9
EZ
52992009-02-14 Eli Zaretskii <eliz@gnu.org>
5300
5301 * msdos.c (MAX_SCREEN_BUF): New macro.
5302 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
5303 Encode the entire run of glyphs sharing the same face, instead of
5304 doing that one glyph at a time (fixes a bug with displaying
5305 double-size characters).
5306
ba301db3
AR
53072009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
5308
5309 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
5310
5311 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
5312 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 5313 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
5314
5315 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 5316 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 5317
51d861de
SM
53182009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
5319
ac146f82 5320 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
5321 invisible areas.
5322
7fed8996
JR
53232009-02-12 Jason Rumney <jasonr@gnu.org>
5324
631ea4fb
JR
5325 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
5326 (add_font_entity_to_list): Call check_face_name even when family
5327 is unspecified.
5328
cb4a3e42
JR
5329 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5330 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 5331 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 5332
7fed8996 5333 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 5334 raster fonts. (Bug#2219)
7fed8996 5335
895416e3
KH
53362009-02-12 Kenichi Handa <handa@m17n.org>
5337
5338 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
5339 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
5340 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 5341 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5342 (find_automatic_composition): While looking forward and backward,
5343 check static composition. Fix where to stop looking forward.
5344 (composition_adjust_point): Fix checking of static composition.
5345 (Fcomposition_get_gstring): Pay attention to
1dacf998 5346 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5347
5348 * lisp.h (fast_looking_at): Extern it.
5349
5350 * search.c (fast_looking_at): New function.
5351
51d861de 5352 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
5353 <struct glyph>.u.cmp.to.
5354 (append_composite_glyph): Likewise.
5355
51d861de 5356 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
5357 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
5358 composition.
51d861de 5359 (append_composite_glyph): Adjust for the change of
895416e3
KH
5360 <strcut glyph>.u.cmp.to.
5361
8510724d
JB
53622009-02-11 Juanma Barranquero <lekktu@gmail.com>
5363
5364 * casetab.c (init_casetab_once):
5365 * coding.c (ALLOC_CONVERSION_WORK_AREA):
5366 * font.c (font_update_lface):
5367 * fontset.c (Fnew_fontset):
5368 * ftfont.c (ftfont_drive_otf):
5369 * xfont.c (xfont_open):
5370 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
5371
294fa707
SM
53722009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5373
5374 * fileio.c (Fwrite_region): !NILP -> CONSP.
5375
b5bfebec
AS
53762009-02-10 Andreas Schwab <schwab@suse.de>
5377
5378 * process.c (send_process): Properly relocate pointer into data
adab88bd 5379 when using encoded data. (Bug#2272)
b5bfebec 5380
cb84a2be
KH
53812009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
5382
5383 * coding.c (detect_coding_charset): Fix previous change.
5384
89e09428
JR
53852009-02-08 Jason Rumney <jasonr@gnu.org>
5386
5387 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 5388 disappeared while hourglass was displayed. (Bug #2193)
89e09428 5389
4470a277
AS
53902009-02-07 Andreas Schwab <schwab@suse.de>
5391
5392 * unexelf.c (unexec): Fix error message.
5393
3175b12a
AR
53942009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
5395
5396 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 5397 when modal window is active. (Bug #2152)
3175b12a
AR
5398 (applicationShouldTerminate:): Remove now-unneeded while loop
5399 around NSRunAlertPanel.
5400
5401 * nsmenu.m (popupSession): New file-global variable.
5402 (pop_down_menu): End the popupSession before closing dialog.
5403 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
5404 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
5405 don't query NSApp for events (just sleep instead).
5406
8434d0b8
EZ
54072009-02-07 Eli Zaretskii <eliz@gnu.org>
5408
51d861de
SM
5409 * coding.c (syms_of_coding) <translation-table-for-input>:
5410 Modify doc string to discourage use for character code unification.
8434d0b8 5411
aa82edfd
CY
54122009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5413
5414 * atimer.c (run_timers): Update pending_atimers.
5415
2d283c7c
CY
54162009-02-06 Chong Yidong <cyd@stupidchicken.com>
5417
eb306cab
CY
5418 * image.c (svg_load_image): Fix last change.
5419
2d283c7c
CY
5420 * xfns.c (Fx_create_frame): Signal an error if no font is
5421 found (Bug#2147).
5422
4d8e170e
JB
54232009-02-05 Juanma Barranquero <lekktu@gmail.com>
5424
5425 * character.c (syms_of_character) <script-representative-chars>:
5426 Fix typo in docstring.
5427
c96169a0
AR
54282009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5429
5430 * nsmenu.m (pop_down_menu): New function.
5431 (ns_popup_dialog): Call it on unwind.
5432 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
5433 call timer_check() (Bug#2154).
5434 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
5435 handling_signal is set.
5436 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
5437
31fd7c5c 5438 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
5439
5440 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
5441
5442 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
5443
51d861de
SM
5444 * keyboard.c (poll_for_input_1, handle_async_input):
5445 Set handling_signal under HAVE_NS.
c96169a0 5446
aacd8ba1
GM
54472009-02-04 Glenn Morris <rgm@gnu.org>
5448
5449 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
5450
4cb75c4b
KH
54512009-02-04 Kenichi Handa <handa@m17n.org>
5452
5453 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
5454
5455 * charset.c (Fchar_charset): New optional arg restriction.
5456
5457 * coding.h (coding_system_charset_list): Extern it.
5458
5459 * coding.c (coding_system_charset_list): New function.
5460
5461 * composite.c: Include coding.h and termhooks.h.
5462 (composition_gstring_p): Fix for the terminal case.
5463 (composition_gstring_width): Likewise.
5464 (fill_gstring_body): Likewise.
5465 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
5466 the frame.
5467 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
5468 is within a composition.
867d4bb3 5469 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
5470
5471 * term.c (encode_terminal_code): Fix handling of composition.
5472 (produce_composite_glyph): For static composition, get pixel_width
5473 from struct composition.
5474
826ba17e
AS
54752009-02-02 Andreas Schwab <schwab@suse.de>
5476
5477 * unexelf.c (unexec): Handle unaligned bss offset.
5478
8ad093db
AR
54792009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5480
5481 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
5482 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 5483
8ad093db
AR
5484 * keyboard.c (handle_interrupt): Don't call
5485 quit_throw_to_read_char() under NS.
d0a76a6e 5486
8ad093db
AR
5487 * blockinput.h: Remove NS-specific code.
5488
4d18a7a2
DN
54892009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
5490
db878925
DN
5491 * dispnew.c (window_change_signal): Don't try to get the size of a
5492 suspended tty frame.
5493 * term.c (Fresume_tty): Resize if the size has changed while the
5494 tty was suspended.
5495
4d18a7a2
DN
5496 * alloc.c (mark_stack): Properly conditionalize previous change.
5497
8984df7c
JB
54982009-01-30 Juanma Barranquero <lekktu@gmail.com>
5499
5500 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
5501 * w32term.c (w32_read_socket) [SYNC_INPUT]:
5502 Remove; this code is not used on Windows.
5503
75f4f1ac
EZ
55042009-01-30 Eli Zaretskii <eliz@gnu.org>
5505
5506 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
5507 EOLs that also has stray ^M characters.
5508
07a1e794
JB
55092009-01-30 Juanma Barranquero <lekktu@gmail.com>
5510
5511 * atimer.c (run_timers, alarm_signal_handler):
5512 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
5513 * w32inevt.c (w32_console_read_socket):
5514 * w32term.c (w32_read_socket):
5515 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
5516
a8b11cc9
CY
55172009-01-30 Chong Yidong <cyd@stupidchicken.com>
5518
5519 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
5520 Initialize it as a relative filename pattern.
5521 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
5522 (Fcall_process_region): Simplify temp file creation using
5523 temporary-file-directory.
5524
c279587b
EZ
55252009-01-29 Eli Zaretskii <eliz@gnu.org>
5526
5527 * msdos.c: Rename pending_signals to msdos_pending_signals.
5528 (sig_suspender, sigprocmask): Adjust.
5529
a8fe3242
CY
55302009-01-29 Chong Yidong <cyd@stupidchicken.com>
5531
5532 * keyboard.c (pending_signals): New var.
5533 (poll_for_input, input_available_signal, init_keyboard): Set it.
5534 (process_pending_signals): New function.
5535
5536 * lisp.h (QUIT): Check pending_signals instead of
5537 interrupt_input_pending. Use process_pending_signals.
5538
51d861de 5539 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 5540
51d861de 5541 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
5542
5543 * sysdep.c (emacs_write): Use process_pending_signals.
5544
5545 * xterm.c (XTread_socket): Update pending_signals.
5546
5547 * w32term.c (w32_read_socket): Update pending_signals.
5548
5549 * w32inevt.c (w32_console_read_socket): Update pending_signals.
5550
6570a1c4
KH
55512009-01-29 Kenichi Handa <handa@m17n.org>
5552
5553 * xftfont.c (xftfont_has_char): New function.
5554 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5555
d72a4afa
AR
55562009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5557
5558 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5559 under GNUstep.
5560 (ns_query_color): New declaration.
5561
5562 * nsterm.m (ns_confirm_quit): New variable.
5563 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5564 (EmacsApp-applicationShouldTerminate:): Use it.
5565 (EmacsPrefsController): Let user set it.
5566 (ns_query_color): New function.
5567 (ns_defined_color): Use it.
5568 (ns_initialize): Drop.
5569 (ns_term_init): Add two lines from ns_initialize(), and set
5570 input_interrupt_mode to nil.
5571
5572 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 5573 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 5574
9fe78804
KH
55752009-01-28 Kenichi Handa <handa@m17n.org>
5576
5577 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
5578 (fontset_get_font_group): Remember that no font-group is specified
5579 for C.
9fe78804 5580
fa57de36
CY
55812009-01-27 Chong Yidong <cyd@stupidchicken.com>
5582
930600e9
CY
5583 * fns.c (concat): Check for string overflow (bug#1787).
5584
fa57de36
CY
5585 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5586 Quadruple undo limits (bug#1501).
5587
7179ce7b
KH
55882009-01-27 Kenichi Handa <handa@m17n.org>
5589
5590 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5591 directly use GT_Get_Char_index.
5592
5593 * xftfont.c (struct xftfont_info): New member `index'.
5594
5595 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 5596 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 5597
5be8fcc0
CY
55982009-01-26 Kenichi Handa <handa@m17n.org>
5599
5600 * fontset.c (fontset_find_font): Fix handling of non-cons return
5601 value of fontset_get_font_group.
5602 (fontset_font): Revert last change.
5603
19ae3e61
JR
56042009-01-26 Jason Rumney <jasonr@gnu.org>
5605
5606 * w32font.c (w32font_list_internal): Return quickly if registry is
5607 unknown. Simplify final return.
5608 (add_font_entity_to_list): Break complex logic down into more
5609 manageable chunks. Move unknown registry check to
5610 w32font_list_internal.
5611
8612b71a
AR
56122009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5613
5614 Changes to remove Feval calls from GUI under NS.
5615
d8038940
JB
5616 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5617 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
5618 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5619
5620 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5621 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5622 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5623 instead of NON_ASCII_KEYSTROKE_EVENT.
5624 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5625 (EmacsApp-applicationShouldTerminate:): Query user.
5626 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5627 instead of Feval.
5628
5629 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5630
5631 * keyboard.c (kbd_buffer_get_event): Check for it.
5632 (keys_of_keyboard): Define lispy keys for
5633 ns-put/unput-working-text.
5634
5635 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5636 versions.
5637 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5638
6288ae55
CY
56392009-01-25 Chong Yidong <cyd@stupidchicken.com>
5640
5641 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 5642 setting current_buffer directly. (Bug#2044)
6288ae55 5643
289e7f8f
CY
56442009-01-24 Chong Yidong <cyd@stupidchicken.com>
5645
5ce87308 5646 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 5647 any work. (Bug#1952, bug#1990).
5ce87308 5648
64cc3cf6 5649 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 5650
b3243e6f
AR
56512009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5652
5653 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
5654 (ns_no_defaults): New declaration.
5655 (main): Use it.
e0d2e69a 5656
d900b2af 5657 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 5658
d900b2af 5659 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 5660
d900b2af
AR
5661 * nsterm.m (ns_no_defaults): New variable.
5662 (ns_initialize): Don't read defaults when ns_no_defaults.
5663 (EmacsView-readSelectionFromPasteboard:)
5664 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 5665 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
5666 (ns_dumpglyphs_stretch): New function.
5667 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 5668 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 5669
e0d2e69a
AR
5670 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5671
3ac71f5d
CY
56722009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5673
5674 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5675 call for Sparc64.
5676
3fe53a83
AR
56772009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5678
5679 * nsfns.m:
5680 * nsgui.h:
5681 * nsmenu.m:
5682 * nsselect.m:
5683 * nsterm.h:
5684 * nsterm.m: Remove '23' comments that indicated code added during
5685 update from emacs-20 -> emacs-23.
5686
10f87c6f 56872009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
5688
5689 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 5690 ns_alternate_modifier. (Bug#1217)
a3b53a85 5691
c7cef62d
AR
5692 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5693 Display all shortcuts, including those w/o super modifier.
5694
575fb8bd
AR
5695 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5696
918b848b
CY
56972009-01-22 Chong Yidong <cyd@stupidchicken.com>
5698
5699 * fileio.c (Vwrite_region_post_annotation_function)
5700 (Vwrite_region_annotation_buffers): New vars.
5701 (build_annotations_unwind): Just reset
5702 Vwrite_region_annotation_buffers.
5703 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5704 Call write-region-post-annotation-function.
5705 (build_annotations): Add to Vwrite_region_annotation_buffers if
5706 buffer changes.
5707
a39e2539
AR
57082009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5709
5710 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5711 Tiger.
51d861de
SM
5712 * nsfns.m (ns_do_applescript):
5713 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 5714
35ed44db
AR
57152009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5716
5717 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5718
cbe0b5bf
AR
57192009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5720
5721 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 5722
6049d3a0
AR
5723 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5724
5725 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
5726 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5727 handle Ctrl-tab. (Bug#1841)
5728 (ns_get_color): Use unsigned long long for scanned hex string value.
5729 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 5730 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 5731 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 5732 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 5733 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 5734 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 5735 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 5736
d3810c21 5737 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 5738 DPI. (Bug#1316)
d3810c21
AR
5739 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5740 values in onTiger section.
4c7077c3 5741
e301e634
CY
57422009-01-19 Chong Yidong <cyd@stupidchicken.com>
5743
7f82490b
CY
5744 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5745 Check return value of font_spec_from_name.
64cc3cf6 5746 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
5747
5748 * font.c (font_spec_from_name): Return Qnil if font name could not
5749 be parsed.
5750 (font_parse_name): Treat a `?' character as part of an XLFD.
5751
e301e634
CY
5752 * fns.c (Fsubstring): Doc fix.
5753
1c0db158
KH
57542009-01-19 Kenichi Handa <handa@m17n.org>
5755
51d861de 5756 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
5757 (ftfont_list): Likewise.
5758
acf20901
JB
57592009-01-18 Juanma Barranquero <lekktu@gmail.com>
5760
fff4e459
JB
5761 * dbusbind.c (Fdbus_register_signal):
5762 * process.c (conv_sockaddr_to_lisp):
5763 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5764
acf20901
JB
5765 * callproc.c (Fgetenv_internal): Doc fix.
5766
e7abcdfb
CY
57672009-01-16 Chong Yidong <cyd@stupidchicken.com>
5768
5769 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5770 it is not even used.
5771
b60861e6
GM
57722009-01-16 Glenn Morris <rgm@gnu.org>
5773
5774 * font.c (Ffont_variation_glyphs): Silence compiler.
5775
8db52afe
JB
57762009-01-15 Juanma Barranquero <lekktu@gmail.com>
5777
5778 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5779 Reported by David Robinow <drobinow@gmail.com>.
5780
4cddb209
KH
57812009-01-15 Kenichi Handa <handa@m17n.org>
5782
51d861de 5783 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 5784
f247f67b
JR
57852009-01-14 Jason Rumney <jasonr@gnu.org>
5786
5787 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 5788 never a fontset. (Bug#1562)
f247f67b 5789
f56a4450
KH
57902009-01-14 Kenichi Handa <handa@m17n.org>
5791
5792 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 5793 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 5794
4e99855e
CY
57952009-01-13 Chong Yidong <cyd@stupidchicken.com>
5796
5797 * font.c (font_clear_prop): If clearing the family, clear the font
5798 width index too.
5799
fff4e459 5800 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 5801
24f01470
JB
58022009-01-12 Juanma Barranquero <lekktu@gmail.com>
5803
5804 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5805 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5806 functions, use sizeof.
5807
a41240a3
MR
58082009-01-12 Martin Rudalics <rudalics@gmx.at>
5809
5810 * keyboard.c (read_char): Fix case where last_nonmenu_event
5811 returned a bad value with submenus. (Bug#447)
5812
944636b8
CY
58132009-01-12 Chong Yidong <cyd@stupidchicken.com>
5814
5815 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5816 family, clear the font width index too.
5817
0dad7c6f
JR
58182009-01-11 Jason Rumney <jasonr@gnu.org>
5819
5820 * keyboard.c (cmd_error_internal): Exit when errors occur before
5821 frame creation and not in daemon mode. (Bug#1836)
5822
7c2363af
CY
58232009-01-10 Chong Yidong <cyd@stupidchicken.com>
5824
5825 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5826 of a display vector, backtrack.
5827 (try_window_reusing_current_matrix): Check glyph type before
5828 referencing charpos member.
5829
97b1b294
EZ
58302009-01-10 Eli Zaretskii <eliz@gnu.org>
5831
5832 Fix Bug #876:
5833
5834 * coding.c (inhibit_null_byte_detection): New variable.
5835 (detect_coding, detect_coding_system): Don't pay attention to null
5836 bytes if inhibit_null_byte_detection is non-zero.
51d861de 5837 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
5838 <inhibit-iso-escape-detection>: Doc fix.
5839
4624b6e3
JR
58402009-01-09 Jason Rumney <jasonr@gnu.org>
5841
5842 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 5843 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
5844 Only report Unicode Plane 2 fonts as unicode-sip.
5845
323b840c
CY
58462009-01-09 Chong Yidong <cyd@stupidchicken.com>
5847
51d861de
SM
5848 * xfaces.c (Fx_font_family_list): Delete function.
5849 Move compatibility version to faces.el.
323b840c 5850
51d861de 5851 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 5852
eba7400d
MR
58532009-01-09 Martin Rudalics <rudalics@gmx.at>
5854
5855 * frame.c (x_set_frame_parameters): Remember requested value for
5856 fullscreen before it's reset by the parameter handler.
5857
4b09796d
GM
58582009-01-09 Glenn Morris <rgm@gnu.org>
5859
5860 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 5861 (last_command_event): ... and update all users.
4b09796d
GM
5862 (last_input_char): For clarity, rename to...
5863 (last_input_event): ... and update all users.
5864 (last-command-char, last-input-char): Move to subr.el as aliases.
5865 * cmds.c, commands.h: Update for last_command_char rename.
5866
14ccea62
CY
58672009-01-08 Chong Yidong <cyd@stupidchicken.com>
5868
51d861de 5869 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 5870
5f004711
JR
58712009-01-08 Jason Rumney <jasonr@gnu.org>
5872
5873 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5874 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5875 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5876 Don't declare.
fff4e459 5877 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
5878 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5879
b71f6f73
KH
58802009-01-07 Kenichi Handa <handa@m17n.org>
5881
50b06221 5882 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 5883 remember the coding system used for decoding in
50b06221
KH
5884 coding_system (Bug#1039).
5885
b71f6f73 5886 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 5887 breaking the loop. (Bug#870)
b71f6f73
KH
5888 (decode_coding_utf_16, decode_coding_emacs_mule)
5889 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5890 (decode_coding_charset): Likewise.
5891
56f668f7
MR
58922009-01-05 Martin Rudalics <rudalics@gmx.at>
5893
5894 * frame.c (x_set_frame_parameters): Make sure height (width) get
5895 applied when fullwidth (fullheight) is set. (Bug#1522)
5896
5da9424d
JB
58972009-01-04 Juanma Barranquero <lekktu@gmail.com>
5898
5899 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5900 (utc_base): Declare as ULONGLONG, not long double.
5901 (convert_time_raw): Delete.
5902 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5903 (initialize_utc_base): New function.
5904 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5905 (convert_from_time_t): Use initialize_utc_base; compute result with
5906 64-bit arithmetic.
5907 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5908
c4605e09
EZ
59092009-01-03 Eli Zaretskii <eliz@gnu.org>
5910
9acef61c 5911 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
5912 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5913 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5914 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5915 [!subprocesses]: Define.
5916 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5917 (Flist_system_processes, Fsystem_process_attributes)
5918 [!subprocesses]: Call list_system_processes and
5919 system_process_attributes instead of returning Qnil.
5920
9acef61c
JB
5921 * dosfns.c (system_process_attributes, list_system_processes):
5922 New functions.
c4605e09
EZ
5923
5924 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5925
5926 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5927 Don't use the default (no-op) implementation.
5928
8b7d0a16
JR
59292009-01-03 Jason Rumney <jasonr@gnu.org>
5930
a6d46bc1
JR
5931 * keyboard.c (parse_modifiers_uncached): Wheel events are
5932 clicks (bug#687).
5933
8b7d0a16
JR
5934 * w32term.c (x_query_colors, x_query_color): New functions.
5935
5936 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5937 (svg_load_image): Cast returned pointers from dynamically loaded
5938 functions. Eliminate W32 specific code.
5939
bfe11752
DN
59402009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5941
89e2438a
DN
5942 * nsfns.m (x_set_foreground_color, x_set_background_color)
5943 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5944 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5945 x_ prefix instead of ns_. Update references.
5946 (syms_of_nsfns): Add a FIXME comment.
5947
5948 * nsterm.m (x_set_cursor_type): New prototype.
5949 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5950
bfe11752
DN
5951 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5952 for Solaris instead of incorrectly providing Qutime and Qcutime.
5953
031da700
EZ
59542009-01-02 Eli Zaretskii <eliz@gnu.org>
5955
5956 * w32.c (process_times): Compute sum of utime and stime.
5957 (system_process_attributes): Add Qtime to the alist.
5958
5959 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5960 and add them to the alist.
5961
5962 * process.c (top level) <Qtime, Qctime>: New variables.
5963 (syms_of_process): staticpro them.
5964 (Fsystem_process_attributes): Add their documentation to the doc
5965 string.
5966
5967 * process.h: Declare Qtime and Qctime.
5968
df23bf08
JR
59692009-01-02 Jason Rumney <jasonr@gnu.org>
5970
9acef61c 5971 * image.c (Qgobject): New symbol.
df23bf08
JR
5972 (syms_of_image): Initialize it.
5973 (init_svg_functions): Load some functions from gobject library.
5974
5bbdf7aa
DN
59752009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5976
5977 * frame.c (make_terminal_frame): Remove redundant code and useless
5978 block.
5979
63136da6
AS
59802009-01-01 Andreas Schwab <schwab@suse.de>
5981
5982 * process.c (conv_sockaddr_to_lisp): Add workaround for
5983 getsockname bug on BSD.
5984
9ef69046
CY
59852009-01-01 Chong Yidong <cyd@stupidchicken.com>
5986
d6fafbe0
CY
5987 * xfns.c (x_create_tip_frame): Set border width of the X window.
5988
51d861de 5989 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 5990
f9c34147
JR
59912009-01-01 Jason Rumney <jasonr@gnu.org>
5992
9acef61c 5993 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
5994 Don't block input, as per earlier xterm.c changes.
5995
f5497e45
AR
59962008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5997
5998 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5999 (ns_appkit_version_int): New function.
6000 (x-server-version): Use ns_appkit_version_int and follow 21+
6001 convention of returning 3 integers.
6002
c19cab20
KH
60032008-12-30 Kenichi Handa <handa@m17n.org>
6004
6005 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
6006 (CHAR_SURROGATE_PAIR_P): New macro.
6007
6008 * font.h (struct font_driver): New member get_variation_glyphs.
6009
9acef61c 6010 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
6011 (Ffont_variation_glyphs): New function.
6012 (syms_of_font): Defsubr it.
6013
6014 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
6015 ftfont_variation_glyphs.
6016 (setup_otf_gstring): New function.
6017 (ftfont_drive_otf): Use it.
6018 (ftfont_shape_by_flt): Handle variation selector.
6019 (ftfont_variation_glyphs): New function.
6020
28cd591f
MR
60212008-12-30 Martin Rudalics <rudalics@gmx.at>
6022
6023 * frame.c (Vemacs_iconified): Remove.
6024
7f714baf
JR
60252008-12-30 Jason Rumney <jasonr@gnu.org>
6026
6027 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 6028 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 6029
9d2d22ab
CY
60302008-12-30 Chong Yidong <cyd@stupidchicken.com>
6031
6032 * indent.c (Fvertical_motion): Don't advance iterator if we have
6033 reseated to the desired position.
6034
6035 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
6036 checking for pos match.
6037
545312c2
KH
60382008-12-30 Kenichi Handa <handa@m17n.org>
6039
1ede3eb6
KH
6040 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
6041 just get the low 8-bit of the code.
6042
545312c2
KH
6043 * font.c (font_intern_prop): Validate str as multibyte.
6044
bd7bbf29
DN
60452008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6046
31e0750e
DN
6047 * dispextern.h (struct face): Move lface and hash from the middle
6048 of bitfields.
6049
bd7bbf29
DN
6050 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
6051
b5672e7c
DN
60522008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6053
6054 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
6055 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
6056 instead of intervals.h.
6057
d704470f
AS
60582008-12-26 Andreas Schwab <schwab@suse.de>
6059
6060 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
6061 cons.
6062
54b33868
MR
60632008-12-26 Martin Rudalics <rudalics@gmx.at>
6064
6065 * textprop.c (Qminibuffer_prompt): New variable.
6066 (syms_of_textprop): Initialize it.
6067 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
6068 in minibuffer-prompt face. (Bug#1662)
6069
40b615d6
JR
60702008-12-25 Jason Rumney <jasonr@gnu.org>
6071
6072 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
6073
baae5c2d
JR
60742008-12-24 Jason Rumney <jasonr@gnu.org>
6075
6076 * ralloc.c (r_alloc_reset_variable): New function.
6077
6078 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 6079 record of what points where. (Bug#716)
baae5c2d 6080
a9051c88
DN
60812008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
6082
6083 * minibuf.c (read_minibuf): Follow the non-interactive case when
6084 running as a daemon, before detaching.
6085
8b146312
AS
60862008-12-22 Andreas Schwab <schwab@suse.de>
6087
6088 * buffer.c (init_buffer): Use realloc instead of xrealloc.
6089 * gtkutil.c (free_widget_value): Use xfree instead of free.
6090
56f2de10
MR
60912008-12-22 Martin Rudalics <rudalics@gmx.at>
6092
6093 * frame.c (delete_frame): New function derived from
6094 Fdelete_frame to handle Qnoelisp value for FORCE argument.
6095 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
6096 (Fdelete_frame): Call delete_frame. Remove line from doc-string
6097 saying that FORCE non-nil doesn't run `delete-frame-functions'.
6098 * frame.h: Extern delete_frame.
6099 * window.c (window_loop):
6100 * terminal.c (delete_terminal):
6101 * xterm.c (x_connection_closed):
6102 * xfns.c (Fx_hide_tip):
9acef61c 6103 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 6104
1fc200d6
JR
61052008-12-21 Jason Rumney <jasonr@gnu.org>
6106
6107 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
6108 when character maps to .notdef character.
6109
5e252df2
SM
61102008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
6111
6112 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
6113
99b72cc4
JR
61142008-12-20 Jason Rumney <jasonr@gnu.org>
6115
6116 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 6117 a graphical frame on Windows. (Bug#1325)
99b72cc4 6118
acc49a52
JD
61192008-12-20 Jan Djärv <jan.h.d@swipnet.se>
6120
6121 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
6122
6ea15123
CY
61232008-12-20 Chong Yidong <cyd@stupidchicken.com>
6124
6125 * minibuf.c (Fread_buffer): Doc fix.
6126
b2dab6c8
JR
61272008-12-20 Jason Rumney <jasonr@gnu.org>
6128
54ea0c87 6129 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 6130 server name in UNC paths. (Bug#719)
54ea0c87 6131
b2dab6c8 6132 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 6133 charbuf. (Bug#1035)
b2dab6c8 6134
6d1921be
DN
61352008-12-19 Daniel Engeler <engeler@gmail.com>
6136
6137 * sysdep.c (serial_configure): Fix typo.
6138
53934c98
DN
61392008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6140
6141 * sysdep.c: Include alloca.h.
f4f634e8
DN
6142 (system_process_attributes): Add implementation for Solaris.
6143
6144 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 6145
06e111a6
DN
61462008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6147
6148 Reorganize implementation of Flist_system_processes and
6149 Fsystem_process_attributes. No functional changes.
6150 * process.c: Don't #include pwd.h, grp.h and limits.h.
6151 (Flist_system_processes): Just call list_system_processes.
6152 (Fsystem_process_attributes): Just call system_process_attributes.
6153 (procfs_list_system_processes, time_from_jiffies)
6154 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
6155 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
6156
6157 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
6158 (list_system_processes): Rename from
6159 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
6160 Provide a do nothing implementation.
6161 (system_process_attributes): Rename from
6162 procfs_list_system_processes.
6163 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 6164 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
6165
6166 * w32.c (list_system_processes): Rename from
6167 w32_list_system_processes.
6168 (system_process_attributes): Rename from
6169 w32_system_process_attributes.
6170
6171 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
6172
6173 * process.h (w32_list_system_processes)
6174 (w32_system_process_attributes): Remove.
362654a6
JB
6175 (list_system_processes, system_process_attributes):
6176 New prototypes.
06e111a6 6177
6a705b23
KH
61782008-12-19 Kenichi Handa <handa@m17n.org>
6179
6180 * xfont.c (xfont_decode_coding_xlfd): New function.
6181 (xfont_encode_coding_xlfd): New function.
6182 (xfont_list_pattern): Decode XLFD by iso-8859-1.
6183 (xfont_list): Decode and encode XLFD by iso-8859-1.
6184 (xfont_match): Likewise.
6185 (xfont_list_family): Likewise.
6186 (xfont_open): Likewise.
6187
d66c0241 6188 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
6189 names are utf-8.
6190
d66c0241 6191 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
6192 names are utf-8.
6193
5a130941
JD
61942008-12-18 Jan Djärv <jan.h.d@swipnet.se>
6195
6196 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
6197 changed.
bfd20325
JD
6198 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
6199 clicked on a detached tool bar button.
5a130941 6200
fd95644b
DN
62012008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
6202
6203 * emacs.c (main): Print and error and exit when no data is read
6204 from the pipe.
6205
e6eee6ae
JR
62062008-12-17 Jason Rumney <jasonr@gnu.org>
6207
6208 * w32font.c (w32font_has_char): Always return -1.
6209
a35dd56b
KH
62102008-12-16 Kenichi Handa <handa@m17n.org>
6211
6212 * font.c (font_open_entity): Fix previous change.
6213
0e3635c2
DN
62142008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
6215
6216 * process.c: Include <limits.h>.
6217
d4835507 62182008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
6219
6220 * font.c (font_update_drivers): Fix mistake in reconstructing the
6221 driver list.
6222
62232008-12-16 Chong Yidong <cyd@stupidchicken.com>
6224
6225 * font.c (font_clear_cache): Fix format of font cache data.
6226
e2cbc401
CY
62272008-12-15 Chong Yidong <cyd@stupidchicken.com>
6228
6229 * xftfont.c (xftfont_open): Free Xft font pattern if
6230 XftFontOpenPattern fails.
6231
6232 * xterm.c (x_free_frame_resources): Remove extraneous call to
6233 free_frame_faces.
6234
b131d535
CY
62352008-12-13 Chong Yidong <cyd@stupidchicken.com>
6236
6237 * xterm.c (x_delete_display): Move xim_close_dpy call to
6238 x_delete_terminal.
6239 (x_delete_terminal): Call xim_close_dpy.
6240
e6df5336
JR
62412008-12-13 Jason Rumney <jasonr@gnu.org>
6242
6243 * w32font.c (intern_font_name): New function.
6244 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
6245 (w32font_open_internal, Fx_select_font): Decode font name.
6246 (fill_in_logfont, list_all_matching_fonts): Encode font name.
6247
6248 * w32font.h (intern_font_name): Declare new function.
6249
6250 * w32uniscribe.c (add_opentype_font_name_to_list):
6251 Use intern_font_name.
6252
20d68145
CY
62532008-12-13 Chong Yidong <cyd@stupidchicken.com>
6254
9f2554de
CY
6255 * frame.c (Fdelete_frame): Call free_font_driver_list.
6256
3d9bec9a
CY
6257 * font.c (free_font_driver_list): Implement missing function.
6258
20d68145
CY
6259 * w32term.c (w32_term_init): Don't initialize the image cache
6260 here; it will be done in init_frame_faces.
6261
6262 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
6263 (struct x_display_info): Remove unused member null_pixel. New
6264 member xim_callback_data.
6265
6266 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
6267 (xim_initialize): Save pointer to callback function data.
6268 (xim_close_dpy): Free callback function data. Call XCloseIM,
6269 reverting 2008-11-04 change by David Smith.
6270 (x_term_init): Don't initialize the image cache here; it will be
6271 done in init_frame_faces. Remove ancient "null_pixel" cruft.
6272 (x_delete_display): Free x_dnd_atoms member.
6273
96f9306b
KH
62742008-12-13 Kenichi Handa <handa@m17n.org>
6275
6dec9044
JB
6276 * font.c (font_rescale_ratio): Moved from xfaces.c.
6277 Argument type changed. Handle a font-spec too.
96f9306b 6278 (font_score): Check Vface_font_rescale_alist.
6dec9044 6279 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
6280
6281 * xfaces.c (font_rescale_ratio): Moved to font.c.
6282
8d5b4964
CY
62832008-12-13 Chong Yidong <cyd@stupidchicken.com>
6284
6285 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
6286
e6df5336
JR
62872008-12-12 Jason Rumney <jasonr@gnu.org>
6288
6289 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
6290 Vwindow_system_version to the real w32 major version.
6291
97c6058a
DN
62922008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
6293
6294 * term.c (init_tty): Move setting the terminal name before the
6295 potential user: maybe_fatal.
6296
ec4e88d7
CY
62972008-12-11 Chong Yidong <cyd@stupidchicken.com>
6298
d4835507
JB
6299 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
6300 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 6301
b4233ec9
JR
63022008-12-11 Jason Rumney <jasonr@gnu.org>
6303
8ec71e23 6304 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 6305 SYMBOL_CHARSET. (Bug#547)
8ec71e23 6306
b4233ec9 6307 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 6308 size for surrogates. (Bug#1096, bug#872)
b4233ec9 6309
011a0143
JB
63102008-12-11 Juanma Barranquero <lekktu@gmail.com>
6311
6312 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
6313
3c309f34
JB
63142008-12-11 Juanma Barranquero <lekktu@gmail.com>
6315
6316 * process.c (Fsystem_process_attributes, syms_of_process):
6317 Fix typo in name of Ssystem_process_attributes.
6318 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
6319
fedc6ab5
JB
63202008-12-11 Juanma Barranquero <lekktu@gmail.com>
6321
6322 * syntax.c (Fmodify_syntax_entry): Doc fix.
6323
ba3de0e8
JB
63242008-12-10 Juanma Barranquero <lekktu@gmail.com>
6325
6326 * font.c (Ffont_spec): Move usage to end of docstring.
6327
174f1c74
JR
63282008-12-10 Jason Rumney <jasonr@gnu.org>
6329
6330 * w32font.c (Qcham): New symbol.
6331 (font_supported_scripts): Add cham, and comments for other new
6332 scripts in bitfield from OpenType spec.
9d32f818
JR
6333 (add_font_entity_to_list): Limit unicode-sip fonts to those that
6334 contain characters beyond the bmp.
174f1c74 6335
7b649478
KH
63362008-12-10 Kenichi Handa <handa@m17n.org>
6337
6338 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 6339 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
6340 Qunicode_sip.
6341
2133e2d1
JB
63422008-12-10 Juanma Barranquero <lekktu@gmail.com>
6343
6344 * coding.c (QCdefault_char): Rename from QCdefalut_char.
6345 (Fcoding_system_put): Use QCdefault_char.
6346 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
6347
9af886ee
CY
63482008-12-09 Chong Yidong <cyd@stupidchicken.com>
6349
74d819eb
CY
6350 * xftfont.c (syms_of_xftfont): Fix typo.
6351
4ccfa1c0 6352 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 6353
7c19d3ae
DN
63542008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
6355
6356 * emacs.c (main): Close daemon_pipe on exec.
6357
567826bb
CY
63582008-12-08 Chong Yidong <cyd@stupidchicken.com>
6359
6360 * termchar.h (struct tty): New members termcap_term_buffer and
6361 termcap_strings_buffer.
6362
6363 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 6364 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
6365 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
6366 All callers changed.
6367 (init_tty): Store termcap data and string buffers in new struct
6368 tty members termcap_term_buffer and termcap_strings_buffer.
6369 (delete_tty): Free them.
4ccfa1c0 6370 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 6371
aa96c42b
SZ
63722008-12-07 Seiji Zenitani <zenitani@mac.com>
6373
6374 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 6375 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 6376
b7e1d896
CY
63772008-12-06 Chong Yidong <cyd@stupidchicken.com>
6378
6379 * coding.c (make_conversion_work_buffer): Disable buffer
6380 modification hooks in the work buffer.
6381
b5ec91a5
EZ
63822008-12-05 Eli Zaretskii <eliz@gnu.org>
6383
6384 * process.c (procfs_system_process_attributes): If `nread' has a
6385 negative value, assign zero to it.
6386
a5d2a52b
CY
63872008-12-05 Chong Yidong <cyd@stupidchicken.com>
6388
68c5540b 6389 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 6390
7bf1bb21
KH
63912008-12-05 Kenichi Handa <handa@m17n.org>
6392
6393 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
6394 second character is a combining character.
6395
2fdc7d00
EZ
63962008-12-05 Eli Zaretskii <eliz@gnu.org>
6397
6398 * process.c (procfs_system_process_attributes): Don't use cmd,
6399 cmdsize, and q without initializing them first.
6400
bf6bfba8
JR
64012008-12-04 Jason Rumney <jasonr@gnu.org>
6402
6403 * w32font.c (w32font_draw): Initialize orig_clip before getting
6404 it, and delete it when finished.
6405
a3b1a468
DN
64062008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
6407
6408 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
6409 case when running as a daemon before detaching.
6410
8b8be8eb
JB
64112008-12-03 Juanma Barranquero <lekktu@gmail.com>
6412
805f2638 6413 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 6414
b1bde622
KH
64152008-12-03 Kenichi Handa <handa@m17n.org>
6416
e500c47d
KH
6417 * font.c (font_at): Set `multibyte' at first.
6418
ca516334
KH
6419 * coding.c (decode_coding_charset): Check type of an element of
6420 vector VALIDS.
7bf1bb21 6421 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 6422
4ccfa1c0 6423 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
6424 (font_for_char): Likewise.
6425
1e5ecd37
CY
64262008-12-03 Chong Yidong <cyd@stupidchicken.com>
6427
d5b01609 6428 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
6429 (font_update_lface): Handle fonts with corrupted size specs,
6430 i.e. non-int and non-float.
d5b01609 6431
11e3a6e4 6432 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 6433 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 6434 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 6435
ab06788b
CY
6436 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
6437
1e5ecd37 6438 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 6439 underline_minimum_offset for underline position.
1e5ecd37 6440
63c125ab
DN
64412008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
6442
6443 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
6444
6445 * character.c (c_string_width): Specify the type for LEN.
6446
3a8406e1
KH
64472008-12-03 Kenichi Handa <handa@m17n.org>
6448
4ccfa1c0 6449 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 6450 (decode_coding_utf_8): Likewise.
4ccfa1c0 6451 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 6452 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 6453
651df7d9
CY
64542008-12-02 Chong Yidong <cyd@stupidchicken.com>
6455
6456 * keyboard.c (make_lispy_position): Only use PT if the selected
6457 window is current.
6458
1f625c6c
AS
64592008-12-02 Andreas Schwab <schwab@suse.de>
6460
f7741ce9
AS
6461 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
6462
1f625c6c
AS
6463 * doprnt.c (doprnt1): Fix size of charbuf.
6464
92bc2678
CY
64652008-12-02 Chong Yidong <cyd@stupidchicken.com>
6466
6467 * keyboard.c (timer_check): Revert last change.
6468
93b9e8cc
JB
64692008-12-02 Juanma Barranquero <lekktu@gmail.com>
6470
6471 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
6472
fd7a37d5
JB
64732008-12-01 Juanma Barranquero <lekktu@gmail.com>
6474
6475 * makefile.w32-in: Update dependencies.
6476 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
6477
c115043b
AS
64782008-12-01 Andreas Schwab <schwab@suse.de>
6479
6480 * font.c (register_font_driver): Use xmalloc.
6481 (font_put_frame_data): Likewise.
6482
f5668d2a
CY
64832008-12-01 Chong Yidong <cyd@stupidchicken.com>
6484
860d96be
CY
6485 * xfaces.c (realize_x_face): Make abort condition clearer.
6486
f5668d2a
CY
6487 * gtkutil.c (update_frame_tool_bar): Initialize variable.
6488
379c17e7
CY
64892008-11-30 Chong Yidong <cyd@stupidchicken.com>
6490
6491 * keyboard.c (timer_check): After a timer runs, ensure that the
6492 selected window's buffer is current.
6493
35f36d65
JB
64942008-11-30 Juanma Barranquero <lekktu@gmail.com>
6495
f952c61c
JB
6496 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
6497 It was accidentally restored by the Unicode merge.
6498
35f36d65
JB
6499 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
6500
b23077df
JB
65012008-11-29 Juanma Barranquero <lekktu@gmail.com>
6502
6503 * w32proc.c: Include "coding.h".
6504 (Fw32_short_file_name): Encode filename passed to Windows API.
6505 (Fw32_long_file_name): Encode filename passed to Windows API and
6506 decode back the result. (Bug#1433)
6507
b8ebe9dd
KH
65082008-11-29 Kenichi Handa <handa@m17n.org>
6509
8cc53f96
KH
6510 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
6511 not before accessing it.
6512
b8ebe9dd
KH
6513 * charset.c (Fdefine_charset_internal): After calculating
6514 min_char, max_char, and fastmap, copy the charset structure again.
6515 (encode_char): Fix the previous change.
6516
59bc82c0
SZ
65172008-11-28 Seiji Zenitani <zenitani@mac.com>
6518
6519 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
6520
6521 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
6522
6523 * nsterm.m (x_set_frame_alpha): New function.
6524
32247e3d
EZ
65252008-11-27 Eli Zaretskii <eliz@gnu.org>
6526
6527 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
6528
b003e5ff
JB
65292008-11-27 Juanma Barranquero <lekktu@gmail.com>
6530
6531 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
6532 pointer to check_face_name.
6533
708550f5
KH
65342008-11-27 Kenichi Handa <handa@m17n.org>
6535
6536 * category.h (SET_CATEGORY_SET): Call set_category_set.
6537 (set_category_set): Extern it.
6538
6539 * category.c (hash_get_category_set): New function.
6540 (Fmodify_category_entry): Adjusted for the change of
6541 char_table_ref_and_range. Call hash_get_category_set to get a
6542 category set to store in the table.
6543
6544 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
6545 Funify_charset.
6546
2ae37cf0 6547 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
6548 (DECODE_CHAR): Check if the decoder vector is ready.
6549 (ENCODE_CHAR): Check if the encoder char-table is ready.
6550 (maybe_unify_char): Extern it.
6551
6552 * charset.c (Vchar_unified_charset_table): Delete it.
6553 (inhibit_load_charset_map): New variable.
6554 (temp_charset_work): New variable.
6555 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6556 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6557 New macros.
6558 (load_charset_map): Meaning of control_flag changed. If
6559 inhibit_load_charset_map is nonzero, setup a table in
6560 temp_charset_work.
6561 (load_charset): New argument control_flag.
6562 (map_charset_for_dump): New function.
6563 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6564 map_charset_for_dump.
6565 (Fdefine_charset_internal): If the charset method is MAP, load
6566 mapping tables by calling load_charset.
6567 (Funify_charset): Don't load a mapping table but directly set
6568 Vchar_unify_table.
6569 (maybe_unify_char): New function.
6570 (decode_char): Don't handle the deleted method MAP_DEFERRED.
6571 Handle the case of inhibit_load_charset_map being nonzero.
6572 (encode_char): Don't handle the deleted method MAP_DEFERRED.
6573 Handle the case of inhibit_load_charset_map being nonzero.
6574 (Fclear_charset_maps): Just free temp_charset_work.
6575 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6576 variable.
6577
6578 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6579 change of char_table_ref_and_range.
6580 (char_table_ref_and_range): Change the meaning of argument FROM
6581 and TO. Now the caller must provide initial values for *FROM
6582 and *TO.
6583
6584 * fontset.c (fontset_add): Adjusted for the change of
6585 char_table_ref_and_range.
6586 (fontset_get_font_group): Likewise.
6587 (Ffontset_info): Likewise.
6588
6589 * keymap.c (describe_vector): Adjusted for the change of
6590 char_table_ref_and_range. For char-table, put boundary between
6591 non-ASCII and 8-bit characters.
6592
6593 * print.c (print_object): For bool-vector, delete unnecessary
6594 check of ASCII_BYTE_P.
6595
9196133b
JR
65962008-11-26 Jason Rumney <jasonr@gnu.org>
6597
6598 * w32font.c (w32font_open_internal): Don't include external
9acef61c 6599 leading in font height. (Bug#879)
9196133b 6600
9f688acf
GM
66012008-11-26 Glenn Morris <rgm@gnu.org>
6602
6603 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6604 redefinition with ifdef. (Bug#1383)
6605
90d19aff
AR
66062008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6607
6608 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6609
4ccfa1c0 66102008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
6611
6612 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6613 New EmacsView methods.
6614 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6615 Fixes bug #1048,1357,1414.
6616
66172008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6618
6619 Fix bug #1362.
6620 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6621 is not an indexed color.
6622 * nsterm.m (free_indexed_color): Add argument checking.
6623 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6624
e7d5ecb3
CY
66252008-11-24 Chong Yidong <cyd@stupidchicken.com>
6626
6627 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6628 Document confirm-after-completion value for
6629 minibuffer-completion-confirm.
6630
c285743c
JR
66312008-11-24 Jason Rumney <jasonr@gnu.org>
6632
6633 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6634 warning.
6635
b0857706
JR
66362008-11-23 Jason Rumney <jasonr@gnu.org>
6637
6638 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6639 restored before returning.
6640
6641 * w32font.c (check_face_name): New function.
6642 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 6643 fonts. (Bug#642)
b0857706 6644
ee50ff07
MR
66452008-11-22 Martin Rudalics <rudalics@gmx.at>
6646
6647 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6648 confirm-nonexistent-file-or-buffer in doc-string.
6649
b8ff72fa
SM
66502008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6651
6652 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6653 Fix copy/paste typo. Add checks.
6654
cee53ed4
KH
66552008-11-21 Kenichi Handa <handa@m17n.org>
6656
6657 * coding.c (detect_coding_iso_2022): Reject invalid composition
6658 sequence.
6659 (DECODE_COMPOSITION_START): If the current source is the last
6660 block, and the current composition doesn't end, regard this
6661 sequence as invalid.
6662 (decode_coding_iso_2022): Handle invalid composition sequence.
6663
f6ef1e65
MR
66642008-11-20 Martin Rudalics <rudalics@gmx.at>
6665
6666 * window.c (coordinates_in_window): Don't return
6667 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6668 line when the window is not the rightmost one. (Bug#1372)
6669
e08b1705
MR
66702008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6671
6672 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6673
ad98e89f
EZ
66742008-11-15 Eli Zaretskii <eliz@gnu.org>
6675
6676 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6677 and bright_bg if noninteractive is non-zero.
6678
fb098a4b
CY
66792008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6680
6681 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6682 x_draw_glyph_string_background.
6683
6684 * w32term.c (x_draw_glyph_string): Likewise.
6685
ce952b6e
CY
66862008-11-15 Chong Yidong <cyd@stupidchicken.com>
6687
6688 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6689 the next glyph string once past the overhang width.
6690
6691 * nsterm.m (ns_draw_glyph_string): Likewise.
6692
6693 * w32term.c (x_draw_glyph_string): Likewise.
6694
26ea7079
CY
66952008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6696
6697 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6698 double file close.
6699
1c33c906
MR
67002008-11-14 Martin Rudalics <rudalics@gmx.at>
6701
6702 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6703 dedicated status of window before attempting to display another
6704 buffer in it.
6705
8fc29035
JB
67062008-11-14 Juanma Barranquero <lekktu@gmail.com>
6707
6708 * msdos.c (Fmsdos_long_file_names):
6709 (syms_of_msdos) <dos-unsupported-char-glyph>:
6710 * dosfns.c (Fint86): Fix typos in docstrings.
6711
55fb4286
EZ
67122008-11-14 Eli Zaretskii <eliz@gnu.org>
6713
6714 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6715
3fda0315
KY
67162008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6717
6718 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6719
7e849c17
CY
67202008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6721
6722 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6723
6724 * frame.h: Negative alpha means "don't touch".
6725
6726 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6727
6728 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6729
b9fd67bd
DN
67302008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6731
6732 * hftctl.c:
6733 * chpdef.h:
6734 * acldef.h: Remove files used only for systems no longer supported.
6735
6736 * Makefile.in: Fix .o alphabetical ordering.
6737 (hftctl.o): Remove dependency, file removed.
6738 (keymap.o, print.o): Depend on charset.h.
6739
d5998e03
KH
67402008-11-10 Kenichi Handa <handa@m17n.org>
6741
2ae37cf0 6742 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 6743
be70e183
CY
67442008-11-08 Chong Yidong <cyd@stupidchicken.com>
6745
6746 * dired.c (file_name_completion): If completion_ignore_case is
6747 enabled, ignore case when checking completion-regexp-list.
6748
7cf94eac
EZ
67492008-11-08 Eli Zaretskii <eliz@gnu.org>
6750
6751 * vm-limit.c (get_lim_data): Fix last change.
6752
ee107a89
KH
67532008-11-08 Kenichi Handa <handa@m17n.org>
6754
6755 * character.c (Fget_byte): New function.
6756 (syms_of_character): Defsubr Fget_byte.
6757
5fd15622
CY
67582008-11-07 Chong Yidong <cyd@stupidchicken.com>
6759
6760 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6761 cursor position is valid after scrolling.
6762
13d62fad
JB
67632008-11-06 Juanma Barranquero <lekktu@gmail.com>
6764
6765 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6766
a1dd2936
GM
67672008-11-06 Glenn Morris <rgm@gnu.org>
6768
6769 * xterm.c (handle_one_xevent): Don't let popup menus cause
6770 mouse-autoselect-window related window switching. (Bug#1261)
6771
860cd236
CY
67722008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6773
6774 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6775
653a3150
AS
67762008-11-04 Andreas Schwab <schwab@suse.de>
6777
6778 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6779
870f5cac
CY
67802008-11-03 Chong Yidong <cyd@stupidchicken.com>
6781
6782 * xfns.c (Fx_wm_set_size_hint): New function.
6783
1e02f3cb
MR
67842008-11-03 Martin Rudalics <rudalics@gmx.at>
6785
6786 * textprop.c (Fprevious_single_char_property_change): Return 0
6787 when there's no change in a string. (Bug#1301)
6788
e630dfc6
MR
67892008-11-02 Martin Rudalics <rudalics@gmx.at>
6790
6791 * frame.c (do_switch_frame): New argument NORECORD passed to
6792 Fselect_window.
6793 (Fselect_frame): New argument NORECORD passed to
6794 do_switch_frame.
6795 (Fset_frame_selected_window): New argument NORECORD passed to
6796 Fselect_frame.
6797 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6798 in call of do_switch_frame.
6799 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6800 Handle NORECORD argument in call of Fselect_frame.
6801 * lisp.h (do_switch_frame, Fselect_frame)
6802 (Fset_frame_selected_window): Adjust declarations.
6803 * window.c (select_frame_norecord): New function.
6804 (run_window_configuration_change_hook): Use it and call
6805 Fselect_frame with NORECORD set.
6806 (Fselect_window): Pass NORECORD to Fselect_frame.
6807 (Fset_window_configuration): Handle NORECORD argument in call of
6808 do_switch_frame.
6809 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6810 Fset_frame_selected_window.
6811 * keyboard.c (command_loop_1): Handle NORECORD in call of
6812 Fselect_frame (currently ifdefd).
6813
9020b223
GM
68142008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6815
6816 * emacs.c (USAGE2): Untabify.
6817
793ffee8
SM
68182008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6819
6820 * composite.c (fill_gstring_header): Fix copy/paste typo.
6821
ab6d1131
MR
68222008-10-31 Martin Rudalics <rudalics@gmx.at>
6823
6824 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6825 (Fother_window): Rename argument and rewrite doc-string.
6826 (select_window_norecord): Fix return value. (Bug#1276)
6827
601a9cf1
JB
68282008-10-30 Juanma Barranquero <lekktu@gmail.com>
6829
6830 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6831 new frames overriding foreground for tooltips. Based on similar patch
6832 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6833
813b0652
CY
68342008-10-29 Chong Yidong <cyd@stupidchicken.com>
6835
6836 * emacs.c (Fdaemon_initialized): Initialize nfd.
6837
4414f58f
MR
68382008-10-29 Martin Rudalics <rudalics@gmx.at>
6839
6840 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6841 (Fwindow_text_height): Clarify doc-strings.
6842 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6843 doc-string of window-scroll-functions.
6844
ecdcaa09
RS
68452008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6846
6847 * category.c (syms_of_category): Fix typo in docstring.
6848
23fe745a
JB
68492008-10-28 Juanma Barranquero <lekktu@gmail.com>
6850
6851 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6852 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6853 Fix typos in docstrings.
6854
ff808935
DN
68552008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6856
6857 * emacs.c (daemon_pipe): Make non-static.
6858 (IS_DAEMON): Move definition ...
6859 * lisp.h (IS_DAEMON): ... here.
6860 (daemon_pipe): Declare.
6861 (is_daemon): Remove.
6862 * dispnew.c (init_display): Use IS_DAEMON.
6863
fc012771
SM
68642008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6865
6866 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6867 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6868
6869 * emacs.c (is_daemon): Remove.
6870 (main): Don't set is_daemon.
6871 (IS_DAEMON): New macro.
6872 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 6873 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
6874 parent exits.
6875 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6876
d8bdbe6f
CY
68772008-10-27 Chong Yidong <cyd@stupidchicken.com>
6878
d1a072bf
CY
6879 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6880 over-sized glyph, draw it with the default glyph width.
6881
e2e325aa
CY
6882 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6883 glyph, draw it with the default glyph width.
6884
6885 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6886 glyph, draw it with the default glyph width.
6887
d8bdbe6f
CY
6888 * xdisp.c (try_scrolling): When computing the distance from the
6889 scroll margin to PT, try moving some distance past the window
6890 bottom before giving up.
6891
7bfac547
MR
68922008-10-27 Martin Rudalics <rudalics@gmx.at>
6893
6894 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6895 (Fset_window_buffer): Explain in doc-string that a window can be
6896 "strongly" dedicated to its buffer.
6897
4ff029f6
DN
68982008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6899
6900 * emacs.c (daemon_name): New variable.
6901 (main): Deal with --daemon=SERVER_NAME.
6902 (Fdaemonp): Return a name if one was passed to --daemon.
6903
5790ef40
DN
69042008-10-26 Romain Francoise <romain@orebokech.com>
6905
f9bd0df9 6906 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
6907 (main): Create a pipe before forking, make the parent exit only after
6908 the child has closed its end of the pipe. Move closing the
6909 descriptors ...
6910 (Fdaemon_initialized): ... here. New function.
6911
f5385255
SM
69122008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6913
4d632321
SM
6914 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6915 the previous unoptimized table.
6916
f5385255
SM
6917 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6918 the distinction between non-nil and non-t value of `dedicated'.
6919
6c56a0f3
CY
69202008-10-25 Chong Yidong <cyd@stupidchicken.com>
6921
6922 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 6923 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 6924
fec89261
MR
69252008-10-25 Martin Rudalics <rudalics@gmx.at>
6926
6927 * window.c (Fget_buffer_window, Fdelete_windows_on)
6928 (Freplace_buffer_in_windows): Make buffer argument optional and
6929 rename to buffer_or_name.
6930
34fcddd0
CY
69312008-10-24 Chong Yidong <cyd@stupidchicken.com>
6932
f5385255
SM
6933 * xdisp.c (handle_single_display_spec, handle_display_prop):
6934 Undo 2005-05-16 change.
34fcddd0
CY
6935 (handle_stop): Pop iterator if it's loaded with an empty string.
6936 (get_overlay_strings_1): Don't save iterator if it's loaded with
6937 an empty string (bug#1201).
6938
064766f2
KH
69392008-10-24 Kenichi Handa <handa@m17n.org>
6940
6941 * ftfont.c (ftfont_otf_features): Fix previous change.
6942 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6943 calling ftfont_otf_features.
6944
f9bd0df9 69452008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
6946
6947 * font.c (font_match_p): Fix for the case that a vector of
6948 characters is in script-representative-chars.
6949
1dae9197
MA
69502008-10-24 Michael Albinus <michael.albinus@gmx.de>
6951
6952 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 6953 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
6954 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6955 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 6956 macro. (Bug#1186)
1dae9197 6957
f9bd0df9 69582008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
6959
6960 * s/sol2-10.h: New file.
6961
878a4584
JB
69622008-10-23 Juanma Barranquero <lekktu@gmail.com>
6963
6964 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6965 poor beast has survived 9+ years and the jump from xterm.c!).
6966
cd265ca6
MR
69672008-10-23 Martin Rudalics <rudalics@gmx.at>
6968
6969 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6970 Reword doc-string.
f5385255 6971 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 6972
472a4dc9
JB
69732008-10-23 Juanma Barranquero <lekktu@gmail.com>
6974
6975 * character.c (syms_of_character) <script-representative-chars>:
6976 <unicode-category-table>: Doc fixes.
6977
159bd5a2
NF
69782008-10-23 Noah Friedman <friedman@splode.com>
6979
6980 * coding.c (make_conversion_work_buffer): Check that
6981 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6982 Fget_buffer_create.
6983
49f9c344
KH
69842008-10-23 Kenichi Handa <handa@m17n.org>
6985
6986 * font.c (font_add_log): Check the values of extra properties.
6987
12bb3111
MR
69882008-10-22 Martin Rudalics <rudalics@gmx.at>
6989
6990 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6991 Reword doc-string.
6992 (Fset_window_parameter): Use NILP.
6993 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 6994 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 6995
bbeb4e99
JB
69962008-10-22 Juanma Barranquero <lekktu@gmail.com>
6997
6998 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6999
70002008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
7001
7002 * nsfns.m (ns_appkit_version): New function.
7003 (x-server-version): Use it.
7004 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
7005 (x-server-vendor): Don't check_ns().
7006
7007 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
7008
a9b555d3
JB
70092008-10-22 Juanma Barranquero <lekktu@gmail.com>
7010
7011 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
7012 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
7013
4626499f
KH
70142008-10-22 Kenichi Handa <handa@m17n.org>
7015
e3681952
KH
7016 * syntax.c (scan_words): Call word_boundary_p instead of comparing
7017 scripts.
7018
4626499f
KH
7019 * category.c (word_boundary_p): Check scripts instead of charset.
7020 Handle nil value in word-separating-categories and
7021 word-combining-categories.
7022 (syms_of_category): Fix docstrings of word-separating-categories
7023 and word-combining-categories.
7024
1560f91a
EZ
70252008-10-21 Eli Zaretskii <eliz@gnu.org>
7026
7027 * coding.c (Fencode_coding_region, Fdecode_coding_region)
7028 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
7029
f4668441
MR
70302008-10-21 Martin Rudalics <rudalics@gmx.at>
7031
7032 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
7033 Rename arg "buffer" to "buffer_or_name".
7034 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
7035 it optional.
7036 (no_switch_window): Remove since the return value is not used.
a9b555d3 7037 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
7038 Consider window as dedicated when Fwindow_dedicated_p returns a
7039 non-nil value.
7040 * lisp.h: Remove prototype for no_switch_window.
7041
fd75ddb2
JD
70422008-10-21 Jan Djärv <jan.h.d@swipnet.se>
7043
7044 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 7045 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 7046
07295713
KH
70472008-10-21 Kenichi Handa <handa@m17n.org>
7048
7049 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
7050 check Vlatin_extra_code_table.
7051
712adc82
EZ
70522008-10-20 Eli Zaretskii <eliz@gnu.org>
7053
7054 * fileio.c (Fset_file_modes): Doc fix.
7055
f549eb0b
MA
70562008-10-19 Michael Albinus <michael.albinus@gmx.de>
7057
7058 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
7059 in arrays.
7060
aac0c6e3
MR
70612008-10-19 Martin Rudalics <rudalics@gmx.at>
7062
7063 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7064 Mention kill-buffer in doc-string.
7065 (Fset_window_buffer): Reinsert tem check removed in last commit.
7066 (Fenlarge_window, Fshrink_window): Have argument names and
7067 doc-string follow Elisp manual more closely.
7068
70692008-10-18 Eli Zaretskii <eliz@gnu.org>
7070
7071 * fileio.c (Fset_file_modes): Doc fix.
7072
70732008-10-18 Martin Rudalics <rudalics@gmx.at>
7074
7075 * window.c (Fwindow_width, Fset_window_start)
7076 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
7077 (Fdelete_windows_on, Freplace_buffer_in_windows):
7078 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
7079 (Fwindow_dedicated_p): Make window argument optional.
7080 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
7081 (Fset_window_buffer): Respect any non-nil dedicated value for
7082 window. Rename "buffer" argument to "buffer_or_name".
7083
70842008-10-18 Ulrich Mueller <ulm@gentoo.org>
7085
7086 * m/sh3.h: New file, machine description for SuperH.
7087
70882008-10-17 Martin Rudalics <rudalics@gmx.at>
7089
7090 * window.c (Fsplit_window): Rename arg horflag to horizontal.
7091
70922008-10-17 Kenichi Handa <handa@m17n.org>
7093
7094 * ftfont.c (ftfont_otf_features): Fix indexing
7095 gsub_gpos->FeatureList.Feature. Check the validity of indices.
7096
70972008-10-16 Magnus Henoch <mange@freemail.hu>
7098
7099 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
7100 (Fdbus_call_method_asynchronously): Ditto.
7101 This change makes C-h f display the argument list.
7102
71032008-10-16 Chong Yidong <cyd@stupidchicken.com>
7104
7105 * fileio.c (Fexpand_file_name): Doc fix.
7106
7107 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
7108 of :foreground and :background equivalent to unspecified (20.x
7109 compatibility).
7110
71112008-10-15 Eli Zaretskii <eliz@gnu.org>
7112
7113 * buffer.c (syms_of_buffer): Doc fix.
7114
71152008-10-14 Kenichi Handa <handa@m17n.org>
7116
7117 * font.c (font_clear_prop): When clearing font width, clear the
7118 average width field too.
7119
71202008-10-12 Andreas Schwab <schwab@suse.de>
7121
7122 * ftfont.c (ftfont_shape_by_flt): Make static.
7123 * ftfont.h (ftfont_shape_by_flt): Don't declare.
7124
7125 * font.c: Don't include <m17n-flt.h>.
7126
71272008-10-10 Eli Zaretskii <eliz@gnu.org>
7128
7129 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
7130
71312008-10-09 Eli Zaretskii <eliz@gnu.org>
7132
7133 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
7134 away code.
7135
71362008-10-09 Chong Yidong <cyd@stupidchicken.com>
7137
7138 * dispnew.c (update_text_area): Avoid looping due to large glyph
7139 overhangs (bug#1070).
7140
71412008-10-09 Kenichi Handa <handa@m17n.org>
7142
7143 * fontset.c (face_for_char): If face->fontset is negative, just
7144 return ascii_face.
7145
f5385255
SM
7146 * font.c (font_delete_unmatched): Fix previous change.
7147 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
7148
71492008-10-09 Martin Rudalics <rudalics@gmx.at>
7150
7151 * frame.c (Fraise_frame): On text-only terminals select frame in
7152 order to make it visible. (Bug#1061)
7153
71542008-10-08 Chong Yidong <cyd@stupidchicken.com>
7155
7156 * fontset.c (fontset_find_font): Check frame validity.
7157
71582008-10-07 Chong Yidong <cyd@stupidchicken.com>
7159
a9b555d3 7160 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
7161 (xg_display_close): Allow Emacs to close all displays (bug#985).
7162
71632008-10-06 Andreas Schwab <schwab@suse.de>
7164
f5385255 7165 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
7166
71672008-10-06 Chong Yidong <cyd@stupidchicken.com>
7168
f5385255 7169 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 7170
a9b555d3 7171 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
7172
7173 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
7174 during initialization.
7175
71762008-10-04 Eli Zaretskii <eliz@gnu.org>
7177
7178 * xdisp.c (redisplay_internal): If frame switched, redisplay the
7179 whole thing on MSDOS frames as well as on a TTY.
7180
7181 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
7182 well as for TTY.
7183 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
7184 well as on a TTY.
7185
7186 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
7187 as well as for TTY.
7188
7189 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
7190
7191 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
7192 MSDOS frames as well.
7193
71942008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7195
7196 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
7197 correct arguments.
b71ac3dd 7198 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
7199
72002008-10-03 Glenn Morris <rgm@gnu.org>
7201
7202 * emacs.c (USAGE1): Add --daemon.
7203
72042008-10-02 Eli Zaretskii <eliz@gnu.org>
7205
7206 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
7207 100, so it's in percents as advertised.
7208
72092008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7210
7211 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
7212 (ns_output.current_cursor, ns_output.desired_cursor)
7213 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
7214 (FRAME_NEW_CURSOR_COLOR): Remove.
7215
7216 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 7217 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
7218 enumeration (HOLLOW_BOX_CURSOR, etc.).
7219
7220 * nsterm.m (ns_frame_rehighlight): Remove commented code.
7221 (draw_window_cursor): Simplify code.
f5385255
SM
7222 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
7223 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 7224 updates manually.
a9b555d3
JB
7225 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
7226 Use core Emacs cursor types.
aac0c6e3 7227
b8ff72fa 7228 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
7229
72302008-10-02 Martin Rudalics <rudalics@gmx.at>
7231
7232 * process.c (Faccept_process_output): Fix doc-string.
7233
72342008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
7235
7236 * gmalloc.c (__sbrk): Also define for uClibc.
7237
7238 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
7239 for uClibc.
7240
72412008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7242
7243 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
7244 styles.
7245 (nsfont_open): Reenable the cache.
7246
72472008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7248
7249 * font.c (font_matching_entity): Reflect ATTRS in font selection.
7250 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
7251
72522008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
7253
7254 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
7255 a suspended terminal.
7256
72572008-09-30 Michael Albinus <michael.albinus@gmx.de>
7258
7259 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
7260
72612008-09-30 Eli Zaretskii <eliz@gnu.org>
7262
7263 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
7264
72652008-09-30 Chong Yidong <cyd@stupidchicken.com>
7266
7267 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
7268 in a continued line coincides with a line beginning.
7269
72702008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7271
7272 * nsfont.m (nsfont_trait_distance): Fix bug.
7273 (nsfont_list): Return a list rather than a vector (syncs with Handa
7274 changes of 2008-05-14).
7275 (nsfont_open): Improve logging.
7276
72772008-09-29 Andreas Schwab <schwab@suse.de>
7278
7279 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7280
72812008-09-28 Martin Rudalics <rudalics@gmx.at>
7282
7283 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
7284 name as char-resolve-modifiers.
7285 Reported by: Markus Triska <markus.triska@gmx.at>
7286
72872008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
7288
7289 * dispnew.c (init_display): Return earlier when running as a daemon.
7290
72912008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7292
7293 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
7294
72952008-09-27 Eli Zaretskii <eliz@gnu.org>
7296
7297 * composite.c (Fcomposition_get_gstring)
7298 (Fcompose_region_internal, Fcompose_string_internal)
7299 (Ffind_composition_internal): Doc fix.
7300 (syms_of_composite) <compose-chars-after-function>: Doc fix.
7301 (syms_of_composite) <auto-composition-function>: Doc fix.
7302 (syms_of_composite) <composition-function-table>: Doc fix.
7303
73042008-09-25 Chong Yidong <cyd@stupidchicken.com>
7305
7306 * search.c (wordify): New argument for lax word-ends.
7307 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
7308
73092008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
7310
7311 * lisp.h (is_daemon): Declare.
7312 * dispnew.c (init_display): Do not try to initialize the terminal
7313 when running as a daemon.
7314
73152008-09-22 Chong Yidong <cyd@stupidchicken.com>
7316
7317 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
7318 x_display_pixel_height.
7319
73202008-09-22 Martin Rudalics <rudalics@gmx.at>
7321
7322 * undo.c (record_point): Don't call Fundo_boundary for first
7323 change. (Bug#731)
7324
73252008-09-22 Juanma Barranquero <lekktu@gmail.com>
7326
7327 * emacs.c (Fdaemonp): Doc fix.
7328
73292008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
7330
7331 * emacs.c (main): Place #ifdef in the proper place.
7332
73332008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
7334
7335 * emacs.c (standard_args): Add --daemon.
7336 (main): Disconnect from the terminal when --daemon is passed.
7337 (is_daemon): New variable.
7338 (Fdaemonp): New function.
7339 (syms_of_emacs): Defsubr it.
7340
73412008-09-20 Chong Yidong <cyd@stupidchicken.com>
7342
7343 * xdisp.c (get_next_display_element): Handle string display
7344 correctly when checking for the end of a box run.
7345
73462008-09-20 Glenn Morris <rgm@gnu.org>
7347
7348 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
7349 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
7350 (Frename_file): Avoid copying to trash if a rename involves
7351 a delete. (Bug#964).
7352
73532008-09-20 Eli Zaretskii <eliz@gnu.org>
7354
7355 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
7356 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
7357 frames as well as termcap frames.
7358 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
7359 get_named_tty.
7360
73612008-09-19 Eli Zaretskii <eliz@gnu.org>
7362
7363 * process.c (procfs_system_process_attributes): Fix cmdline in
7364 case /proc/PID/cmdline is empty.
7365
7366 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
7367 x_display_pixel_height.
7368
73692008-09-19 Juanma Barranquero <lekktu@gmail.com>
7370
7371 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
7372
7373 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7374 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
7375
73762008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
7377
7378 * dispextern.h (struct it): Move line_wrap away from the middle of
7379 bitfields. Move voffset in struct iterator_stack_entry after the
7380 bitfields. Move tab_width near after another short.
7381
73822008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
7383
7384 * frame.h (struct frame): Move alpha from the middle of bitfields.
7385
7386 * window.h (struct window): Move frozen_window_start_p after the
7387 rest of the bitfields to reduce padding.
7388
73892008-09-18 Chong Yidong <cyd@stupidchicken.com>
7390
7391 * xterm.h (x_display_info): Remove `height' and `width' members.
7392
7393 * nsterm.h (ns_display_info): Remove `height' and `width' members.
7394
7395 * w32term.h (w32_display_info): Remove `height', `width',
7396 `height_in', and `width_in' members.
7397
b8ff72fa
SM
7398 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7399 New functions.
aac0c6e3
MR
7400 (x_calc_absolute_position): Use them.
7401 (x_term_init): Omit removed `height' and `width' members.
7402
b8ff72fa
SM
7403 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7404 New functions.
aac0c6e3
MR
7405 (w32_read_socket, x_calc_absolute_position): Use them.
7406 (w32_initialize_display_info, w32_term_init): Omit removed members
7407 of w32_display_info.
7408
b8ff72fa
SM
7409 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
7410 New functions.
7411 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 7412
b8ff72fa
SM
7413 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7414 New functions.
aac0c6e3
MR
7415 (x_calc_absolute_position): Use them.
7416 (x_term_init): Omit removed `height' and `width' members.
7417
7418 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
7419 (compute_tip_xy):
7420 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
7421 * xmenu.c (menu_position_func): Use x_display_pixel_height and
7422 x_display_pixel_width.
7423
74242008-09-18 Kenichi Handa <handa@m17n.org>
7425
7426 * composite.c (fill_gstring_header): Don't check FROM and TO here.
7427 (composition_compute_stop_pos): Fix handling of static composition.
7428 (Fcomposition_get_gstring): Check FROM and TO at first.
7429
74302008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7431
46e722a9 7432 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
7433 mixup (YAILOM).
7434
74352008-09-17 Chong Yidong <cyd@stupidchicken.com>
7436
7437 * indent.c (Fvertical_motion): Use position reported by iterator
7438 instead of PT for determining screen motion (bug#943).
7439
74402008-09-17 Romain Francoise <romain@orebokech.com>
7441
7442 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
7443
74442008-09-17 Kenichi Handa <handa@m17n.org>
7445
7446 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
7447
7448 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
7449 if necessary.
7450
74512008-09-16 Kenichi Handa <handa@m17n.org>
7452
7453 * coding.c (make_conversion_work_buffer): Avoid calling
7454 Fget_buffer_create if it is not necessary.
7455
74562008-09-15 Martin Rudalics <rudalics@gmx.at>
7457
7458 * window.c (Fselect_window): Don't update window_select_count and
7459 use_time when norecord is not nil.
7460
74612008-09-14 Kenichi Handa <handa@m17n.org>
7462
7463 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
7464 specpdl_ptr.
7465
74662008-09-12 Kenichi Handa <handa@m17n.org>
7467
7468 * indent.c (scan_for_column): Don't handle automatic composition
7469 if the current buffer is not associated with a window.
7470
7471 * composite.c (composition_reseat_it): If the current buffer is
7472 not associated with a window, ignore the automatic composition.
7473 (find_automatic_composition): Likewise.
7474
74752008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7476
7477 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
7478 (Fgpm_mouse_stop): Use it.
7479 * termhooks.h (close_gpm): Declare.
7480 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
7481 connection if Gpm_GetEvent fails.
7482
7483 * window.c (set_window_buffer): Always preserve current-buffer.
7484
74852008-09-12 Glenn Morris <rgm@gnu.org>
7486
7487 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
7488
74892008-09-11 Glenn Morris <rgm@gnu.org>
7490
7491 * charset.c (charset-map-path): Doc fix.
7492
74932008-09-10 Kenichi Handa <handa@m17n.org>
7494
7495 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
7496
7497 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
7498 compose a grapheme cluster with the preceding base glyph.
7499
7500 * composite.c (composition_compute_stop_pos): Fix previous change.
7501 Reset cmp_it->id to -1 at first.
7502
75032008-09-10 Glenn Morris <rgm@gnu.org>
7504
7505 * Makefile.in (character.o, chartab.o): Fix config.h typo.
7506
75072008-09-09 Chong Yidong <cyd@stupidchicken.com>
7508
7509 * keyboard.c (read_key_sequence): Reapply translation maps when
7510 switching keyboards.
7511
75122008-09-09 Kenichi Handa <handa@m17n.org>
7513
7514 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
7515 characters.
7516
7517 * composite.c (FORWARD_CHAR): Fix calculation
7518 of (POSITION).pos_byte.
7519 (composition_compute_stop_pos): Limit the search of composition to
7520 at most 500 characters ahead. If we reach the limit or find a
7521 newline, set cmp_it->ch to -2 and return 0.
7522 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
7523
75242008-09-08 Kenichi Handa <handa@m17n.org>
7525
7526 * indent.c (Fvertical_motion): Be sure to set
7527 it_overshoot_expected if it.cmp_it.id is non-negative.
7528
75292008-09-07 Andreas Schwab <schwab@suse.de>
7530
7531 * callproc.c (Fcall_process): Don't hold references to string data
7532 across garbage collection. Move initialisation of new_argv down
7533 to avoid compiler bug.
7534
75352008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7536
7537 * process.c (Fsystem_process_attributes): Doc fix.
7538
75392008-09-07 Chong Yidong <cyd@stupidchicken.com>
7540
7541 * callproc.c (Fcall_process): Canonicalize current directory name.
7542
7543 * xdisp.c (move_it_to): When moving by vpos, ensure that the
7544 iterator advances to the next line if the current line ends in a
7545 continued tab.
7546
75472008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
7548
7549 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7550 member to point to cmp_from.
7551
7552 * xdisp.c: Doc fix for references to gidx data member.
7553
75542008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7555
7556 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7557
75582008-09-07 Kenichi Handa <handa@m17n.org>
7559
7560 * composite.c (FORWARD_CHAR): Check STOP after
7561 incrementing (POSITION).pos.
7562
75632008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7564
7565 * process.c (Fsystem_process_attributes): Doc fix.
7566
75672008-09-06 Chong Yidong <cyd@stupidchicken.com>
7568
7569 * keyboard.c (Ftop_level): Doc fix.
7570
75712008-09-06 Eli Zaretskii <eliz@gnu.org>
7572
7573 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7574 minibuffer, don't let lower part of menu invade the echo area.
7575
7576 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7577 "char *q" to access menu text and advance through it. Revert the
7578 change that displayed ">" instead of ASCII character 0x10.
7579
75802008-09-05 Eli Zaretskii <eliz@gnu.org>
7581
7582 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7583 toggle boxes and radio buttons on MS-DOS as well.
7584
75852008-09-05 Kenichi Handa <handa@m17n.org>
7586
7587 * composite.c (autocmp_chars): Check lookback count.
7588 (composition_compute_stop_pos): Set cmp_it->lookback.
7589 (composition_reseat_it): Check lookback count.
7590 (struct position_record): New struct.
7591 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7592 (find_automatic_composition): New function.
7593 (composition_adjust_point): Use find_automatic_composition.
7594
7595 * dispextern.h (struct composition_it): New member lookback.
7596
75972008-09-02 Chong Yidong <cyd@stupidchicken.com>
7598
7599 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7600 if moving by a single line.
7601
76022008-09-02 Andreas Schwab <schwab@suse.de>
7603
7604 * xterm.c (x_delete_display): Fix merge error.
7605
7606 * fileio.c (Fexpand_file_name): Remove unused variables.
7607
76082008-09-02 Eli Zaretskii <eliz@gnu.org>
7609
7610 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7611 storage on all platforms, not just on DOS_NT.
7612
76132008-09-02 Jason Rumney <jasonr@gnu.org>
7614
b8ff72fa
SM
7615 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7616 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
7617
76182008-09-01 Chong Yidong <cyd@stupidchicken.com>
7619
7620 * xfaces.c (Finternal_set_alternative_font_family_alist)
7621 (Finternal_set_alternative_font_registry_alist): Properly copy
7622 entire alist structure.
7623
76242008-09-01 Kenichi Handa <handa@m17n.org>
7625
d66c0241 7626 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 7627 representative chars of the script is a vector.
d66c0241
JB
7628 (ftfont_list): Handle the case where the representative chars of
7629 the script is a vector.
aac0c6e3
MR
7630
7631 * character.c (syms_of_character): Docstring of
7632 script-representative-chars fixed.
7633
76342008-08-31 Eli Zaretskii <eliz@gnu.org>
7635
7636 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7637 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7638 the menu. Allocate larger buffer for `text', to account for
7639 possible ^C characters.
7640
76412008-08-31 Martin Rudalics <rudalics@gmx.at>
7642
7643 * xdisp.c (prepare_menu_bars): Don't call
7644 Vwindow_size_change_functions with arg Qt.
7645
76462008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7647
7648 * font.h (font_range):
7649 * fileio.c (report_file_error):
46e722a9
SM
7650 * composite.c (composition_update_it): Yet another int/Lisp_Object
7651 mixup (YAILOM).
aac0c6e3
MR
7652
76532008-08-30 Glenn Morris <rgm@gnu.org>
7654
7655 * data.c (Fmake_variable_frame_local): Doc fix.
7656
7657 * frame.c (Fmodify_frame_parameters): Doc fix.
7658
76592008-08-30 Eli Zaretskii <eliz@gnu.org>
7660
7661 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7662 needed by GetTokenInformation.
7663 (w32_system_process_attributes): Check return values of all system
7664 APIs.
7665
7666 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7667 only when the state changes.
7668 (IT_update_begin, IT_update_end): Add termscript trace.
7669
7670 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7671 clipboard is unavailable. Set dst to NULL if it doesn't point to
7672 malloc'ed data.
7673 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7674 passing random values to xfree.
7675
7676 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 7677 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
7678
76792008-08-29 Jason Rumney <jasonr@gnu.org>
7680
7681 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7682
76832008-08-29 Eli Zaretskii <eliz@gnu.org>
7684
7685 * composite.c (fill_gstring_body): Avoid compiler warnings.
7686
7687 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7688 LGLYPH_SET_CODE to avoid compiler warnings.
7689
2ae37cf0 7690 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
7691
7692 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7693
7694 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7695 LGLYPH_SET_CODE.
7696
76972008-08-29 Kenichi Handa <handa@m17n.org>
7698
7699 * fileio.c (report_file_error): Don't downcase the first character
7700 of errstring if it is still unibyte.
7701
77022008-08-29 Kenichi Handa <handa@m17n.org>
7703
7704 These changes are to re-implement the automatic composition so
7705 that it doesn't use text properties.
7706
7707 * Makefile.in (ftfont.o): Depend on composite.h.
7708 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7709
7710 * character.h (Vunicode_category_table): Extern it.
7711
7712 * character.c (Vunicode_category_table): New variable.
7713 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7714
7715 * chartab.c (optimize_sub_char_table): Perform more greedy
7716 optimization.
7717
b8ff72fa
SM
7718 * composite.h (enum composition_method):
7719 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
7720 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7721 (Vcomposition_function_table): Extern it.
7722 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7723 (composition_gstring_put_cache, composition_gstring_from_id)
7724 (composition_gstring_p, composition_gstring_width)
7725 (composition_compute_stop_pos, composition_reseat_it)
7726 (composition_update_it, composition_adjust_point): Extern them.
7727 (Fcomposition_get_gstring): EXFUN it.
7728
d66c0241 7729 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
7730 (Vcomposition_function_table)
7731 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
7732 (gstring_hash_table, gstring_work, gstring_work_headers):
7733 New variables.
aac0c6e3
MR
7734 (gstring_lookup_cache, composition_gstring_put_cache)
7735 (composition_gstring_from_id, composition_gstring_p)
7736 (composition_gstring_width, fill_gstring_header)
7737 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7738 (composition_reseat_it, composition_update_it)
b8ff72fa 7739 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
7740 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7741 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 7742 Defsubr composition_get_gstring.
aac0c6e3
MR
7743
7744 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7745 cmp_id.
7746 (struct glyph_string): Delete the member gidx. New members
7747 cmp_id, cmp_from, and cmp_to.
7748 (enum it_method): Delete GET_FROM_COMPOSITION.
7749 (struct composition_it): New struct.
7750 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7751 Delete c, len, cmp_id, cmp_len in u.comp.
7752
7753 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 7754 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 7755 (enum lglyph_indices): Likewise.
b8ff72fa 7756 (font_range): Adjust extern.
aac0c6e3
MR
7757 (font_fill_lglyph_metrics): Extern it.
7758
7759 * font.c (QCf): New variable.
7760 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7761 (font_prepare_composition): Delete this function.
7762 (font_range): Type and arguments changed.
7763 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7764 (font_fill_lglyph_metrics): New function.
b8ff72fa 7765 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 7766 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
7767 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7768 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
7769
7770 * fontset.h (font_for_char): Extern it.
7771
7772 * fontset.c (font_for_char): New function.
7773
7774 * ftfont.c: Include composite.h.
7775 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 7776 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
7777
7778 * indent.c: Include composite.h and dispextern.h.
7779 (check_composition): Delete this function.
7780 (scan_for_column): Handle composition by
7781 composition_compute_stop_pos, composition_reseat_it, and
7782 composition_update_it.
7783 (compute_motion): Likewise.
7784 (Fvertical_motion): Fix checking of composition.
7785
7786 * keyboard.c (adjust_point_for_property): Check composition by
7787 composition_adjust_point.
7788
b8ff72fa 7789 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
7790 struct glyph_string.
7791
b8ff72fa
SM
7792 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7793 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
7794 struct glyph.
7795 (produce_composite_glyph): Likewise.
7796
b8ff72fa
SM
7797 * w32term.c (x_draw_composite_glyph_string_foreground):
7798 Adjust for the change of struct glyph_string.
aac0c6e3
MR
7799 (x_draw_glyph_string): Likewise.
7800
7801 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7802 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7803
7804 * xdisp.c: Include font.h.
7805 (it_props): Delete the entry for Qauto_composed.
7806 (init_iterator): Initialize it->cmp_it.id to -1.
7807 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 7808 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
7809 (handle_auto_composed_prop): Delete it.
7810 (handle_composition_prop): Handle only static composition.
7811 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7812 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 7813 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
7814 (pop_it): Likewise.
7815 (get_next_element): Delete next_element_from_composition.
7816 (CHAR_COMPOSED_P): New macro.
7817 (get_next_display_element): For automatic composition, get a face
7818 from the font in the glyph-string.
7819 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 7820 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
7821 (next_element_from_string): Check if the character at the current
7822 position is composed by CHAR_COMPOSED_P.
7823 (next_element_from_buffer): Likewise.
d66c0241
JB
7824 (next_element_from_composition): Adjust for the change of struct it.
7825 Update it->cmp_it.
b8ff72fa
SM
7826 (dump_glyph): Adjust for the change of struct glyph.
7827 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
7828 it and struct glyph. Don't handle automatic composition here.
7829 (fill_gstring_glyph_string): New function.
7830 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 7831 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
7832 (BUILD_GSTRING_GLYPH_STRING): New macro.
7833 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7834 automatic composition.
b8ff72fa 7835 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 7836 struct glyph.
b8ff72fa 7837 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 7838
b8ff72fa 7839 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
7840 the change of struct glyph_string.
7841 (x_draw_glyph_string): Likewise.
7842
78432008-08-29 Glenn Morris <rgm@gnu.org>
7844
7845 * buffer.c (word-wrap): Doc fix.
7846 * xdisp.c (truncate-partial-width-windows): Doc fix.
7847 Increase default to 50.
7848
78492008-08-29 Chong Yidong <cyd@stupidchicken.com>
7850
7851 * xdisp.c (update_tool_bar_unwind): New function.
7852 (update_tool_bar): Temporarily set selected frame before building
7853 tool-bar items.
7854
78552008-08-28 Michael Albinus <michael.albinus@gmx.de>
7856
7857 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7858 snprintf, respectively.
7859 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7860
78612008-08-28 Chong Yidong <cyd@stupidchicken.com>
7862
7863 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7864 LDFLAGS to GNUstep CC invocation.
7865
78662008-08-27 Chong Yidong <cyd@stupidchicken.com>
7867
7868 * indent.c (Fvertical_motion): Revert last change. Handle the
7869 general case where we are moving forward, and PT spans multiple
7870 screen lines.
7871
7872 * eval.c (find_handler_clause): Temporarily increase
7873 max-lisp-eval-depth while printing the backtrace buffer, to
7874 guarantee that help-mode code can run.
7875
78762008-08-27 Eli Zaretskii <eliz@gnu.org>
7877
7878 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7879 colors under -rv.
7880 (IT_set_frame_parameters): Don't swap foreground and background
7881 colors if `(reverse . t)' is present in the frame properties.
7882 (internal_terminal_init): Call init_frame_faces only for the
7883 initial frame.
7884
78852008-08-27 Andreas Schwab <schwab@suse.de>
7886
7887 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7888
78892008-08-27 Andreas Schwab <schwab@suse.de>
7890
7891 * search.c (search_buffer): Set char_base to zero only at the end.
7892
78932008-08-27 Kenichi Handa <handa@m17n.org>
7894
b8ff72fa 7895 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
7896
78972008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7898
7899 * xterm.c (x_term_init): Temporarily hide the partially
7900 initialized terminal while calling vendor-specific-keysyms.
7901
79022008-08-26 Eli Zaretskii <eliz@gnu.org>
7903
7904 * msdos.c (internal_terminal_init): Most initializations done only
7905 once, especially initial_screen_colors[] and termscript open.
7906
79072008-08-26 Chong Yidong <cyd@stupidchicken.com>
7908
7909 * eval.c (Fcondition_case): Doc fix.
7910
7911 * widgetprv.h (EmacsFramePart): Change font member to the new font
7912 struct.
7913
7914 * widget.c: Include character.h and font.h for XSETFONT.
7915 (setup_frame_gcs): Compute X font id from font struct, just once.
7916
79172008-08-26 Eli Zaretskii <eliz@gnu.org>
7918
7919 * term.c (get_named_tty): Fix last change.
7920
79212008-08-26 Chong Yidong <cyd@stupidchicken.com>
7922
7923 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 7924 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
7925
79262008-08-25 Eli Zaretskii <eliz@gnu.org>
7927
7928 * frame.c (do_switch_frame): Mark previously displayed frame as
7929 obscured for FRAME_MSDOS_P frames as well.
7930
79312008-08-24 Eli Zaretskii <eliz@gnu.org>
7932
7933 * frame.c (make_terminal_frame): Initialize f->terminal,
7934 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7935 Set the top frame to newly created frame.
7936 (Fmake_terminal_frame): Reuse the_only_display_info.
7937
7938 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7939 estimating available memory.
7940
b97439ce 79412008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
7942
7943 * nsterm.m (ns_draw_window_cursor): Don't call
7944 NSDisableScreenUpdates and NSEnableScreenUpdates on
7945 non-NS_IMPL_COCOA systems.
7946
79472008-08-23 Andreas Schwab <schwab@suse.de>
7948
7949 * process.c (procfs_system_process_attributes): Fix use of
7950 uninitialized variables.
7951
79522008-08-23 Eli Zaretskii <eliz@gnu.org>
7953
7954 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7955
7956 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7957 calling tty-set-up-initial-frame-faces.
7958
b8ff72fa
SM
7959 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7960 Allow MSDOS frames along with X frames.
aac0c6e3
MR
7961
7962 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7963 addition to output_termcap.
7964
7965 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7966
7967 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7968 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7969 highlight.
7970
7971 * process.c [!subprocesses]: Define QCname.
7972 (syms_of_process): Intern and staticpro it.
7973
7974 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
7975 Adjust for changes in encoding/decoding routines.
7976 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
7977 encode_coding and decode_coding.
7978
b8ff72fa 7979 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
7980
7981 * dosfns.c: Include frame.h before termhooks.h.
7982 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7983 variable termscript.
7984
7985 * s/msdos.h (USER_FULL_NAME): Define.
7986 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7987
7988 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7989 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7990 pw->pw_gecos.
7991
7992 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7993 SELECTED_FRAME as additional (1st) argument.
7994 (tty_read_avail_input): Handle output_msdos_raw in
7995 addition to output_termcap.
7996
7997 * msdos.c: Include frame.h before termhooks.h.
7998 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7999 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
8000 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
8001 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
8002 (IT_set_terminal_modes, IT_reset_terminal_modes)
8003 (IT_set_frame_parameters): Use tty->termscript instead of a global
8004 variable termscript.
8005 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
8006 global variable terminal_coding. Don't refer to
8007 Vnonascii_translation_table.
8008 (internal_terminal_init): Set Vwindow_system in current_kboard.
8009 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
8010 Announce date and time of session start, if termscript is open.
8011 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
8012 term.c:init_tty). Open termscript only of not already open.
8013 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
8014 here instead of dos_ttraw. Don't initialize display if this is an
8015 initial tty. Don't set FRAME_FONT.
8016 (Vwindow_system_version): Bump to 23.
8017 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
8018 is available, set up mouse_position_hook.
8019 (dos_ttraw, IT_set_terminal_modes): If called with initial
8020 terminal, do nothing.
8021 (IT_set_frame_parameters): Handle the Qtty_type frame
8022 parameter by calling internal_terminal_init.
8023 (dos_set_window_size, show_mouse_face)
8024 (clear_mouse_face, IT_note_mode_line_highlight)
8025 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
8026 (dos_rawgetc): Use tty_display_info instead of x_display_info.
8027 (initialize_msdos_display): New function.
8028 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
8029 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
8030 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
8031 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 8032 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
8033 (request_sigio, unrequest_sigio): Don't define, now defined on
8034 sysdep.c.
8035 (IT_write_glyphs): Rewrite to use encode_terminal_code.
8036
8037 * term.c [MSDOS]: Include msdos.h.
8038 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
8039 conditional to DOS_NT. Allow only one call to this function in a
8040 session. Don't allocate a new struct tty_display_info; instead,
8041 reuse the_only_display_info. Call get_tty_size to get screen
8042 dimensions. Call init_baud_rate to set bad_rate.
8043 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
8044 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 8045 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
8046 (get_tty_terminal, get_named_tty, Ftty_type)
8047 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
8048 output_termcap.
b8ff72fa
SM
8049 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
8050 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 8051 only when subprocesses are supported.
aac0c6e3
MR
8052
8053 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
8054 f->output_data.x.
8055 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
8056 terminal devices.
8057
5582fbc7 8058 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
8059 x_output.
8060 (FRAME_FONT): Use output_data.tty.
8061 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
8062 (struct x_display_info): Rename from display_info. Update all users in
8063 msdos.c.
aac0c6e3 8064 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 8065 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
8066 (dos_ttraw): Update prototype.
8067
8068 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
8069 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
8070
80712008-08-23 Jason Rumney <jasonr@gnu.org>
8072
8073 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
8074 (fn_TIFFSetDirectory): New library function used.
8075 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
8076 (tiff_load): Use :index to select among multiple images. Set count
8077 property when multiple images exist.
8078 (gif_format): Use :index, not :image.
8079
80802008-08-23 Chong Yidong <cyd@stupidchicken.com>
8081
8082 * xdisp.c (try_scrolling): Check INT_MAX instead of
8083 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
8084 to obtain INT_MAX.
8085
80862008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
8087
8088 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
8089
80902008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
8091
8092 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
8093 GNUstep library location.
8094
80952008-08-21 Chong Yidong <cyd@stupidchicken.com>
8096
8097 * xfaces.c (x_update_menu_appearance): Check validity of menu font
8098 before using it.
8099
8100 * puresize.h (BASE_PURESIZE): Increase to 1250000.
8101
81022008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8103
8104 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
8105 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
8106 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
8107 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
8108 (EmacsApp-cursor_blink_handler): Remove declaration.
8109 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
8110 match 01 Feb 2008 changes in xterm.c.
8111 (ns_read_socket): Add cast to avoid warning.
8112 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
8113 GNUstep.
8114
81152008-08-20 Chong Yidong <cyd@stupidchicken.com>
8116
8117 * xselect.c (x_get_foreign_selection): Return nil if desired
8118 selection could not be obtained, instead of signalling an error.
8119
81202008-08-20 David Reitter <david.reitter@gmail.com>
8121
8122 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
8123 * nsterm.m: Remove ns-specific code for cursor blinking.
8124 (ns_draw_window_cursor): Clear cursor properly rather than
8125 redrawing the area. Respect width of bar cursors.
8126 These changes enable the use of generic blink-cursor-mode and
8127 generic cursor types in NS and support smooth cursor movements (do
8128 not blink off after command).
8129 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
8130 Nextstep, too.
8131
81322008-08-19 Kenichi Handa <handa@m17n.org>
8133
8134 * font.c (Vfont_log_deferred): New variable.
8135 (font_add_log): Check Vfont_log_deferred.
8136 (font_deferred_log): New function.
8137
8138 * font.h (font_deferred_log): Extern it.
8139
8140 * fontset.c (reorder_font_vector): Use encoding charset of fonts
8141 for sorting.
8142 (face_for_char): Use deferred log.
8143
81442008-08-18 Kenichi Handa <handa@m17n.org>
8145
8146 * fontset.c (face_for_char): Add font log.
8147
8148 * font.c (font_add_log): Add the font properties :script, :lang,
8149 and :otf in the log.
8150
81512008-08-17 Chong Yidong <cyd@stupidchicken.com>
8152
8153 * xdisp.c: Remove dead code.
8154 (handle_invisible_prop, next_overlay_string): Defer call to
8155 setup_for_ellipsis.
8156 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
8157
81582008-08-15 Chong Yidong <cyd@stupidchicken.com>
8159
8160 * xfaces.c (lookup_derived_face): Properly handle possible zero
8161 return value of get_lface_attributes.
8162 (merge_faces): Don't tell lookup_derived_face to signal an error
8163 if face is not found.
8164
8165 * dired.c (Fdirectory_files): Doc fix.
8166
8167 * process.c (make_process): Initialize kill_without_query struct
8168 member.
8169
81702008-08-15 Eli Zaretskii <eliz@gnu.org>
8171
8172 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
8173 Alternative calculation of totphys for Visual Studio 6.
8174
8175 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
8176
8177 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
8178 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
8179 All users changed.
8180 (stat): Only root directory passed to GetDriveType. Allow RAM
8181 disk as well as local fixed disk when w32-get-true-file-attributes
8182 is set to `local'.
8183 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
8184 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
8185 (w32_cached_id, w32_add_to_cache): New functions.
8186 (get_name_and_id): Look account names in the cache before calling
8187 lookup_account_sid.
8188 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
8189 New initialization flags.
8190 (globals_of_w32): Initialize them to zero.
8191 (w32_system_process_attributes): Use w32_cached_id and
8192 w32_add_to_cache.
8193
81942008-08-14 Lawrence Mitchell <wence@gmx.li>
8195
8196 * lread.c (Fread_char, Fread_char_exclusive): If no character
8197 event is read before timeout is reached, return nil, rather than
8198 converting to a number.
8199
82002008-08-14 Chong Yidong <cyd@stupidchicken.com>
8201
8202 * fns.c (use_dialog_box): Doc fix.
8203
8204 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
8205 on OS X.
8206
82072008-08-13 Chong Yidong <cyd@stupidchicken.com>
8208
8209 * frame.c (Qns_parse_geometry): New var.
8210 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
8211
82122008-08-11 Chong Yidong <cyd@stupidchicken.com>
8213
8214 * xdisp.c (x_produce_glyphs): Handle the case when font has no
8215 space character in calculating tabs.
8216
82172008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
8218
8219 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
8220
82212008-08-10 Glenn Morris <rgm@gnu.org>
8222
8223 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
8224 silence gcc "limited range of data type" warnings in some
8225 make_fixnum_or_float calls.
8226
82272008-08-09 Eli Zaretskii <eliz@gnu.org>
8228
8229 * w32.c (w32_system_process_attributes): If the process does not
8230 exist, return nil.
8231
8232 * w32.c: Include thelp32.h, psapi.h and coding.h.
8233 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
8234 declarations.
8235 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
8236 (Process32Next_Proc): New typedefs.
8237 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
8238 (g_b_init_process32_next, g_b_init_open_thread_token)
8239 (g_b_init_impersonate_self, g_b_init_revert_to_self)
8240 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
8241 (g_b_init_get_process_working_set_size)
8242 (g_b_init_global_memory_status_ex): New static variables.
8243 (globals_of_w32): Initialize them.
8244 (create_toolhelp32_snapshot, process32_first, process32_next)
8245 (open_thread_token, impersonate_self, revert_to_self)
8246 (get_process_memory_info, get_process_working_set_size)
8247 (global_memory_status, global_memory_status_ex): New wrapper
8248 functions.
8249 (w32_list_system_processes, w32_system_process_attributes)
8250 (enable_privilege, restore_privilege, ltime, process_times):
8251 New functions.
8252 (convert_time_raw): New function.
8253 (convert_time): Remove conversion of FILETIME into time in 100
8254 nsec units, call convert_time_raw instead.
8255
8256 * process.h (w32_list_system_processes, w32_system_process_attributes):
8257 Add prototypes.
8258 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
8259 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
8260 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
8261 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
8262
8263 * process.c (Fsystem_process_attributes): Doc fix.
8264
82652008-08-08 Chong Yidong <cyd@stupidchicken.com>
8266
8267 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
8268 a continued multi-char glyph; if so, advance to the actual glyph.
8269
82702008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8271
8272 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
8273
8274 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
8275 (.m.o): Use it.
8276 * config.in: Regenerate.
8277
82782008-08-07 Chong Yidong <cyd@stupidchicken.com>
8279
8280 * xdisp.c (redisplay_window): Revert last change.
8281 (try_window): Check bottom scroll margin too.
8282
82832008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8284
8285 * config.in: Regenerate.
8286
8287 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
8288 -list-load-path-shadows'.
8289 (nsgui.h): Reduce number of things depending on it.
8290
82912008-08-06 Chong Yidong <cyd@stupidchicken.com>
8292
8293 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
8294 instead of window-end which does the wrong thing at eob.
8295 (try_cursor_movement): Minor optimization.
8296 (redisplay_window): If scroll margin is defined, don't assume
8297 window doesn't need scrolling.
8298
82992008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8300
8301 * config.in: Regenerate.
8302
8303 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
8304 (mostlyclean): Don't delete *.d under NS.
8305
8306 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
8307
83082008-08-06 Kenichi Handa <handa@m17n.org>
8309
8310 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
8311
83122008-08-06 Andreas Schwab <schwab@suse.de>
8313
8314 * config.in: Regenerate.
8315
83162008-08-05 Chong Yidong <cyd@stupidchicken.com>
8317
8318 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
8319 forcing a window start.
8320
8321 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
8322 (auto_save_1): Update modtime when auto-save-list-file-name is on.
8323
83242008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8325
8326 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
8327 argument.
8328
83292008-08-05 Juanma Barranquero <lekktu@gmail.com>
8330
8331 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
8332 <scroll-down-aggressively, before-change-functions>:
8333 <after-change-functions>: Reflow docstrings.
8334
83352008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8336 Ken Raeburn <raeburn@gnu.org>
8337
8338 Dock menu customization, based on a patch by Ken Raeburn, plus some
8339 other fixes.
8340 * nsmenu.m (dockMenu): New variable.
8341 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
8342
8343 * nsterm.h (dockMenu): Declare.
8344
8345 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
8346 (ns_term_init): Initialize dockMenu.
8347 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
8348 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
8349 left.
8350
8351 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
8352
83532008-08-04 Chong Yidong <cyd@stupidchicken.com>
8354
8355 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
8356
8357 * config.in: Regenerate.
8358
83592008-08-04 Seiji Zenitani <zenitani@mac.com>
8360
8361 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
8362
83632008-08-04 Chong Yidong <cyd@stupidchicken.com>
8364
8365 * nsterm.h (find_and_call_menu_selection): Fix prototype.
8366
83672008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8368
8369 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
8370
8371 * keyboard.h: Comment an #endif.
8372
8373 * lisp.h (have_menus_p): Adjust comment.
8374
8375 * menu.c (find_and_return_menu_selection): Fix comparison with
8376 client_data.
8377
8378 * nsmenu.m (popup_activated_flag): New variable.
8379 (popup_activated): New function.
8380 (menu-or-popup-active-p): New exported lisp definition.
8381 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
8382 when popup done.
8383 (ns_popup_dialog): Set popup_activated_flag.
8384
8385 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
8386 version for GNUstep (handled by conditional typedef in nsterm.m).
8387 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
8388 in rgb.txt).
8389
8390 * process.c (init_process): Use DARWIN_OS, not DARWIN.
8391
8392 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
8393
8394 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
8395
8396 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
8397 shortcircuit if popup_activated like GTK and X toolkit.
8398
8399 * m/inter386.h: Change DARWIN to DARWIN_OS.
8400
8401 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
8402 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
8403 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
8404 comment on NO_SOCK_SIGIO.
8405
84062008-08-03 Chong Yidong <cyd@stupidchicken.com>
8407
8408 * nsterm.m (windowDidResize): Remove stopModal call.
8409
84102008-08-03 Andreas Schwab <schwab@suse.de>
8411
8412 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
8413 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
8414
84152008-08-02 Chong Yidong <cyd@stupidchicken.com>
8416
8417 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
8418 Don't use uninitialized pointer variable when using getrlimit.
8419
84202008-08-02 Jason Rumney <jasonr@gnu.org>
8421
8422 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
8423
84242008-08-02 Eli Zaretskii <eliz@gnu.org>
8425
8426 * alloc.c (NSTATICS): Bump to 0x640.
8427
8428 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
8429
8430 * lisp.h: Add prototype for directory_files_internal.
8431
8432 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
8433 New functions.
8434 (syms_of_process): Defsubr them. Add initializations for various
8435 Q* symbols used in procfs_system_process_attributes.
8436 (procfs_list_system_processes, procfs_system_process_attributes)
8437 [HAVE_PROCFS]: New functions.
8438 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
8439 (procfs_get_total_memory): New functions.
8440
84412008-08-01 Juanma Barranquero <lekktu@gmail.com>
8442
8443 * xfaces.c (Fx_load_color_file): Fix previous change;
8444 it is #ifdef WINDOWSNT, not WINDOWS_NT.
8445
84462008-08-01 Michael Albinus <michael.albinus@gmx.de>
8447
8448 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
8449
84502008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8451
8452 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
8453
84542008-08-01 Chong Yidong <cyd@stupidchicken.com>
8455
8456 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
8457
8458 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
8459 define NSApplicationDelegateReplySuccess.
8460 (EmacsView -converstationIdentifier): Use long instead of
8461 NSInteger for GNUstep, since it doesn't have NSInteger.
8462
8463 * xmenu.c: Revert last change.
8464
8465 * keyboard.h: Fix last change.
8466
84672008-08-01 Juanma Barranquero <lekktu@gmail.com>
8468
8469 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
8470 on Windows.
8471
84722008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8473
8474 Warning clearing and clean-up in NS port.
8475 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
8476 Add prototypes.
8477 * nsgui.h (FACE_DEFAULT): Remove, unused.
8478 (XGCValues): Change colors to unsigned long.
8479 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
8480 nsterm.m.
8481 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
8482 (ns_list_fonts): Remove, unused.
8483 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
8484 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
8485 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
8486 (nsfont_draw): Compare face colors to 0, not nil.
8487 * nsmenu.m (struct widget_value): Drop unneeded declaration.
8488 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
8489 (-addSubmenuWithTitle:): Use NSMenuItem class.
8490 (ns_popup_menu): Use NO, not NULL, for enabled setting.
8491 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
8492 (ns_clip_to_row): Make gc arg a BOOL.
8493 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
8494 ns_clip_to_row() call.
8495 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
8496 used). Cast FRAME_FONT assignments.
8497 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
8498 (ns_string_to_lispmod): Change arg to const char.
8499 (ns_term_init): Use NSMenuItem class.
8500 (EmacsApp -openFile:): Move to different section of file.
8501 (EmacsApp -application:openFiles:): Don't return a value, call
8502 -replyToOpenOrPrint:.
8503 (EmacsView -keyDown:): Fix up cast.
8504 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
8505 (EmacsView -menuDown:): Cast tag in call to
8506 find_and_call_menu_selection().
8507 (ns_list_fonts): Remove, unused.
8508 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
8509 (ns_fontname_to_xlfd): Make static.
8510 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
8511 Remove prototypes (now in keyboard.h).
8512 (next_menubar_widget_id): Remove, unused.
8513 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
8514 Remove prototypes (now in keyboard.h).
8515 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
8516
85172008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
8518
8519 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
8520 (floatfns.o): Depend on syssignal.h.
8521 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
8522
8523 * systty.h: Fix previous change that removed BSD_TERMIOS.
8524 Add comments to #ifdefs.
8525
85262008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8527
8528 * w32fns.c (w32-load-color-file): Remove.
8529 (x-open-connection): Use renamed Fx_load_color_file.
8530 * xfaces.c (x-load-color-file): Add.
8531 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
8532 Emacs.clr.
8533 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
8534
85352008-07-31 Michael Albinus <michael.albinus@gmx.de>
8536
8537 * dbusbind.c (Fdbus_call_method_asynchronously)
8538 (Fdbus_method_error_internal): New defuns.
8539 (xd_read_message): Handle also reply messages.
8540 (Vdbus_registered_functions_table): Extend docstring.
8541
85422008-07-31 Juanma Barranquero <lekktu@gmail.com>
8543
8544 * keyboard.c (gobble_input): Fix previous change.
8545
85462008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8547
8548 * bitmaps/README:
8549 * xfns.c:
8550 * termcap.c:
8551 * term.c:
8552 * syswait.h:
8553 * systty.h:
8554 * systime.h:
8555 * syssignal.h:
8556 * sysdep.c:
8557 * process.h:
8558 * process.c:
8559 * print.c:
8560 * ndir.h:
8561 * lread.c:
8562 * keyboard.c:
8563 * getpagesize.h:
8564 * floatfns.c:
8565 * fileio.c:
8566 * emacs.c:
8567 * doc.c:
8568 * dispnew.c:
8569 * dired.c:
8570 * data.c:
8571 * callproc.c:
8572 * buffer.c:
8573 * README:
8574 * Makefile.in:
8575 * s/template.h:
8576 * s/msdos.h:
8577 * m/vax.h: Remove VMS support.
8578 * s/vms.h:
8579 * vlimit.h:
8580 * uaf.h:
8581 * temacs.opt:
8582 * param.h:
8583 * ioctl.h: Remove file.
8584
85852008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8586
8587 * s/ms-w32.h (MULTI_KBOARD): Remove.
8588 * xterm.c:
8589 * xselect.c:
8590 * xfns.c:
8591 * window.c:
8592 * w32term.c:
8593 * w32fns.c:
8594 * terminal.c:
8595 * termhooks.h:
8596 * term.c:
8597 * sysdep.c:
8598 * keyboard.h:
8599 * keyboard.c:
8600 * frame.h:
8601 * frame.c:
8602 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8603 * config.in: Regenerate.
8604
86052008-07-30 Jason Rumney <jasonr@gnu.org>
8606
8607 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8608
8609 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8610 (w32font_open_internal): Get unicode version of textmetrics.
8611 Don't enable or disable glyph indices here.
8612 (w32font_open): Disable use of glyph indices.
8613
8614 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8615
86162008-07-30 Chong Yidong <cyd@stupidchicken.com>
8617
8618 * minibuf.c (Vread_buffer_function): Doc fix.
8619
86202008-07-30 John Paul Wallington <jpw@pobox.com>
8621
8622 * minibuf.c (read_buffer_completion_ignore_case): New var.
8623 (Fread_buffer): Use it.
8624
86252008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8626
8627 * systty.h (sensemode): Remove empty #if. Remove reference to
8628 BSD_TERMIOS, unused.
8629
8630 * sysdep.c: Remove reference to DGUX.
8631 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8632
8633 * config.in: Regenerate.
8634
86352008-07-30 Jason Rumney <jasonr@gnu.org>
8636
8637 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8638
86392008-07-29 Jason Rumney <jasonr@gnu.org>
8640
8641 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8642 is populated.
8643 (uniscribe_encode_char): Always use uniscribe.
8644 Avoid using context if cache is populated.
8645
86462008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8647
8648 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8649 open menu.
8650
8651 * gtkutil.c (menu_nav_ended): Remove.
8652 (create_menus): Remove signal connect for menu_nav_ended.
8653
86542008-07-28 Chong Yidong <cyd@stupidchicken.com>
8655
8656 * xdisp.c (redisplay_window): Check return value of
8657 compute_window_start_on_continuation_line before forcing a window
8658 start.
8659
86602008-07-28 Jason Rumney <jasonr@gnu.org>
8661
8662 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8663
8664 * w32term.c (w32_enable_unicode_output, cleartype_active):
8665 Remove obsolete display options.
8666 (x_draw_glyph_string_background): Don't use old cleartype_active
8667 workaround.
8668 (w32_initialize): Remove cleartype_active initialization.
8669 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8670
86712008-07-28 Andreas Schwab <schwab@suse.de>
8672
8673 * lisp.h (init_weak_hash_tables, syms_of_font)
8674 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8675 (remove_hash_entry): Don't declare.
8676 * eval.c (maybe_call_debugger): Make static and move before use.
8677 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8678 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8679 * xterm.h (x_set_frame_alpha): Declare.
8680
86812008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8682
8683 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8684 (create_menus): Connect selection-done to menu_nav_ended.
8685
86862008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8687
8688 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8689 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8690 parameter with read of 'alpha' one.
8691 (Qns_frame_parameter): Remove.
5582fbc7 8692 * nsselect.m (selection-coding-system)
aac0c6e3
MR
8693 (next-selection-coding-system, Vselection_coding_system)
8694 (Vnext_selection_coding_system): Drop.
8695
86962008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8697
8698 * nsfns.m (do-applescript, do_applescript): Rename to
8699 ns-do-applescript, ns_do_applescript, and move within file.
8700
87012008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8702
8703 Remove support for Mac Carbon.
8704 * mactoolbox.c:
8705 * macterm.h:
8706 * macterm.c:
8707 * macselect.c:
8708 * macmenu.c:
8709 * macgui.h:
8710 * macfns.c:
8711 * mac.c: Remove file.
8712 * s/darwin.h:
8713 * m/intel386.h:
8714 * xfaces.c:
8715 * xdisp.c:
8716 * window.c:
8717 * tparam.c:
8718 * termhooks.h:
8719 * termcap.c:
8720 * term.c:
8721 * syssignal.h:
8722 * sysselect.h:
8723 * sysdep.c:
8724 * process.c:
8725 * lread.c:
8726 * lisp.h:
8727 * keyboard.c:
8728 * image.c:
8729 * fringe.c:
8730 * frame.h:
8731 * frame.c:
8732 * fontset.c:
8733 * font.h:
8734 * font.c:
8735 * fns.c:
8736 * fileio.c:
8737 * emacs.c:
8738 * dispnew.c:
8739 * dispextern.h:
8740 * config.in:
8741 * atimer.c:
2ae37cf0 8742 * Makefile.in: Remove code for Carbon.
aac0c6e3 8743
f0131492 87442008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
8745
8746 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8747
87482008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8749
8750 * macterm.h (kCGBitmapByteOrder32Host): New define for
8751 non-universal SDKs.
8752
8753 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8754 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8755
8756 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8757 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8758
87592008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8760
8761 * w32inevt.c: Include dispextern.h.
8762
87632008-07-26 Andreas Schwab <schwab@suse.de>
8764
8765 * print.c (print_object): Fix off-by-one in last change.
8766
87672008-07-25 Juanma Barranquero <lekktu@gmail.com>
8768
8769 * term.c (syms_of_term): Don't initialize default_orig_pair,
8770 default_set_foreground and default_set_background on Windows.
8771
87722008-07-25 Jason Rumney <jasonr@gnu.org>
8773
8774 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8775 ScriptItemize. Clean up return value checking. Remove unused
8776 variables.
8777 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8778 shaping engine.
8779
8780 * w32font.c (w32font_has_char): Handle the case where we can't
8781 determine the script for a character.
8782
87832008-07-25 Chong Yidong <cyd@stupidchicken.com>
8784
8785 * term.c (syms_of_term): Initialize default_orig_pair,
8786 default_set_foreground, and default_set_background.
8787
8788 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8789 clash (bug#86).
8790 (getloadavg): Callers changed.
8791
8792 * image.c (svg_load_image): Fix last change.
8793 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8794 image size is valid. Use g_object_unref instead of deprecated
8795 rsvg_handle_free to free rsvg handle.
8796 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8797
87982008-07-25 Jason Rumney <jasonr@gnu.org>
8799
8800 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8801 surrogates before looking up glyph index.
8802 (w32font_text_extents): Encode as surrogates if falling back to
8803 functions that need UTF-16 wide chars.
8804
8805 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8806 BMP as surrogates before looking up glyph index.
8807
88082008-07-25 Chong Yidong <cyd@stupidchicken.com>
8809
8810 * image.c (svg_load_image): Check for failure in return value of
8811 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8812
88132008-07-25 Jason Rumney <jasonr@gnu.org>
8814
8815 * w32font.c (Fx_select_font): Reverse sense of second arg.
8816
88172008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8818
8819 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8820 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8821
8822 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8823 (PURESIZE): Use it.
8824
88252008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8826
8827 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8828 * m/alpha.h (TEXT_END):
8829 * m/ibmrs6000.h (TEXT_END):
8830 * m/macppc.h (TEXT_END):
8831 * s/darwin.h (TEXT_END):
8832 * s/msdos.h (TEXT_END): Remove, unused.
8833 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8834 * s/cygwin.h: Remove comment.
8835
8836 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8837 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8838 * m/intel386.h (DOT_GLOBAL_START):
8839 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8840 (USG): Remove, file not used on USG platforms.
8841
8842 * Makefile.in (HAVE_X11): Remove empty #else.
8843
88442008-07-24 Andreas Schwab <schwab@suse.de>
8845
8846 * fileio.c (Finsert_file_contents): Properly adjust undo list
8847 after format conversion.
8848
88492008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8850
8851 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8852 (menu_nav_ended): Remove.
8853 (create_menus): Remove signal connect for menu_nav_ended.
8854 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8855 create_menus.
8856 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8857
88582008-07-23 Jason Rumney <jasonr@gnu.org>
8859
8860 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8861 with opened font.
8862 (w32font_open): Set font type to gdi.
8863
8864 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8865
88662008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8867
8868 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8869 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8870 defines it.
8871 * unexec.c (ADDR_CORRECT): Define unconditionally.
8872
8873 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8874
8875 * unexec.c: Remove code depending on !COFF and USG, the file is
8876 not used for such systems.
8877
8878 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8879 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8880 (LD_SWITCH_SYSTEM_1): Remove, update users.
8881
8882 * s/darwin.h (DATA_END):
8883 * m/intel386.h (DATA_END):
8884 * m/ibmrs6000.h (DATA_END):
8885 * m/alpha.h (DATA_END): Remove, unused.
8886
8887 * config.in: Regenerate.
8888 * s/ms-w32.h (subprocesses): Define unconditionally.
8889 * s/template.h (subprocesses): Update comment.
8890 * s/vms.h (subprocesses):
8891 * s/usg5-4.h (subprocesses):
8892 * s/hpux10-20.h (subprocesses):
8893 * s/gnu-linux.h (subprocesses):
8894 * s/cygwin.h (subprocesses):
8895 * s/bsd-common.h (subprocesses):
8896 * s/aix4-2.h (subprocesses):
8897 * s/darwin.h (subprocesses): Do not define, defined by default now.
8898
8899 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8900 Remove all references.
8901 (temacs): Add GNUstep specific ld flags.
8902
8903 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8904 similarly to what X does.
8905
89062008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8907
8908 * nsfns.m (x-list-fonts): Remove.
8909 (syms_of_nsfns): Drop the x-list-fonts declaration.
8910 * nsterm.m: Get rid of remaining "//" comments.
8911
89122008-07-22 Chong Yidong <cyd@stupidchicken.com>
8913
8914 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8915
8916 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8917 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8918 (Fns_own_selection_internal, Fx_disown_selection_internal)
8919 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8920
8921 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8922 ... */' style of docstrings. Doc fixes.
8923
89242008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8925
8926 * terminfo.c (UP, BC, PC): Undo previous change.
8927
8928 * nsfns.m: Rename ns prefixed functions/variables to the
8929 corresponding x versions. Update references.
8930
89312008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8932
8933 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8934
89352008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8936
8937 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8938 Remove forwarding functions.
8939 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8940 non-static.
8941 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8942 non-static.
8943 (ns_frame_parm_handlers): Use the new names.
8944 (syms_of_nsfns): Move to the end of file.
8945
8946 * nsterm.m (syms_of_nsterm): Move to the end of file.
8947
8948 * dispnew.c (init_display): Remove code for X10.
8949
89502008-07-22 Jason Rumney <jasonr@gnu.org>
8951
8952 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8953 bare drive.
8954
89552008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8956
8957 * nsterm.m (syms_of_nsterm): Remove debugging println.
8958
89592008-07-22 David Reitter <david.reitter@gmail.com>
8960
8961 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8962 Carbon implementation of the same functionality: execute arbitrary
8963 AppleScript code.
8964
89652008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8966
8967 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8968 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8969 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8970 (Fx_display_mm_height, Fx_display_mm_width)
8971 (Fx_display_backing_store, Fx_display_visual_class)
8972 (Fx_display_save_under, Fx_open_connection)
8973 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8974 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8975 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8976 (Fx_display_pixel_width, Fx_display_pixel_height)
8977 (Fx_display_usable_bounds, Fx_display_planes)
8978 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8979 ... */' style of docstrings.
8980
89812008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8982
8983 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8984 on this platform.
8985 (mips):
8986 * m/iris4d.h (mips): Do not define.
8987 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8988
8989 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8990
8991 * image.c:
8992 * nsfns.m:
8993 * nsselect.m:
8994 * nsterm.h:
8995 * nsterm.m: Rename ns prefixed functions/variables to the
8996 corresponding x versions. Update references.
8997
8998 * m/ibms390x.h (NO_REMAP): Do not undefine.
8999
9000 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
9001
90022008-07-21 Chong Yidong <cyd@stupidchicken.com>
9003
9004 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
9005 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
9006 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
9007 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
9008 (Fns_display_mm_height, Fns_display_mm_width)
9009 (Fns_display_backing_store, Fns_display_visual_class)
9010 (Fns_display_save_under, Fns_open_connection)
9011 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
9012 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
9013 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9014 (Fns_display_pixel_width, Fns_display_pixel_height)
9015 (Fns_display_usable_bounds, Fx_display_planes)
9016 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
9017
90182008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
9019
9020 * print.c (print_object): Check print_depth before searching for
9021 circularities.
9022
90232008-07-21 Michael Albinus <michael.albinus@gmx.de>
9024
9025 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
9026 only sprintf.
9027
90282008-07-21 Kenichi Handa <handa@m17n.org>
9029
9030 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
9031
90322008-07-20 Andreas Schwab <schwab@suse.de>
9033
9034 * syntax.c (find_start_pos, find_start_value)
9035 (find_start_value_byte, find_start_begv, find_defun_start)
9036 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
9037
90382008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9039
9040 * s/sol2-3.h: Insert contents of s/sol2.h.
9041 (LD_SWITCH_SYSTEM): Remove redundant definition.
9042 * s/sol2.h: Remove, unused.
9043
90442008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9045
9046 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
9047
90482008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9049
9050 * Makefile.in (ns_appdir): Fix typo in find command.
9051
90522008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9053
9054 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
9055
9056 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
9057 added not supported anymore.
9058
9059 * s/usg5-4-2.h (LIBS_SYSTEM):
9060 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
9061
9062 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9063 * s/lynxos.h (GETPGRP_NO_ARG):
9064 * s/hpux10-20.h (NO_SIOCTL_H):
9065 * s/gnu.h (GETPGRP_NO_ARG):
9066 * s/gnu-linux.h (NO_SIOCTL_H):
9067 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9068 * s/cygwin.h (GETPGRP_NO_ARG):
9069 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
9070 (C_DEBUG_SWITCH): Remove duplicate definition.
9071
9072 * m/ibms390.h: Remove boilerplate comments.
9073
9074 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
9075
9076 * process.c (HAVE_SERIAL): Consolidate ifdefs.
9077 (wait_reading_process_output): Remove code for SunOS, platform not
9078 supported anymore. Use SOLARIS2 instead of sun.
9079
90802008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9081
9082 * font.c (font_open_by_name): Under NS, default lface height to zero.
9083 (font_open_for_lface): Under NS, set size based on frame fontsize.
9084 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
9085 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
9086
90872008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9088
9089 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
9090 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
9091 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
9092 YES/NO.
9093 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
9094 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
9095 * Makefile.in (clean): Clear out build destination dir.
9096
90972008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9098
9099 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
9100 xterm, xselect.
9101 * lisp.h: Remove declaration of hash_remove.
9102 * nsgui.h: Remove redefinitions of hash_remove.
9103 * fns.c (hash_remove): Rename to hash_remove_from_table.
9104
91052008-07-19 Seiji Zenitani <zenitani@mac.com>
9106
9107 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
9108 strdup() the family UTF8String before modifying it.
9109
91102008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9111
9112 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
9113 NS_FACE_BACKGROUND with 0 instead of nil.
9114 * nsfont.m (nsfont_draw): Same.
9115
91162008-07-19 Chong Yidong <cyd@stupidchicken.com>
9117
9118 * nsfns.m (ns_set_background_color): Fix crash.
9119
91202008-07-18 Chong Yidong <cyd@stupidchicken.com>
9121
9122 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
9123
91242008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
9125
9126 * puresize.h (BASE_PURESIZE): Increase to 1240000.
9127
91282008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9129
9130 * gtkutil.c: Include <config.h> instead of "config.h".
9131
9132 * lisp.h (Foverlay_buffer): Add EXFUN.
9133
9134 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
9135 child process to complete child_setup. Undo 2005-09-21 change.
9136
9137 * s/darwin.h: Mention setsid after vfork.
9138
91392008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9140
9141 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
9142 Depend on macgui.h.
9143
9144 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
9145 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
9146
9147 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
9148 and f19.
9149 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
9150
9151 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
9152 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
9153 Remove enumerators.
9154
9155 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
9156 Check if FACE_FROM_ID returns NULL.
9157
91582008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
9159
9160 * w32inevt.c (change_frame_size): Remove extern declaration.
9161 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
9162 change_frame_size.
9163
91642008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9165
9166 * getloadavg.c: Revert last change (2008-07-15).
9167
91682008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9169
9170 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 9171 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
9172 from configure.
9173
91742008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
9175
9176 * s/sol2.h:
9177 * s/sol2-4.h: Reorganize conditionals.
9178
9179 * ecrt0.c: Remove code depending on m68000, not used anymore.
9180
9181 * fns.c (hash_remove): Make static.
9182 * lisp.h (hash_remove): Don't prototype.
9183
9184 * m/ibmrs6000.h:
9185 * m/ibms390x.h:
9186 * m/macppc.h: Remove boilerplate comments.
9187
9188 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
9189 Solaris, which does not need them.
9190
9191 * m/vax.h: Remove comments about unsupported systems.
9192
9193 * s/darwin.h: Reorganize ifdefs.
9194
91952008-07-17 Andreas Schwab <schwab@suse.de>
9196
9197 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
9198
91992008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
9200
9201 Use SDATA. Follow coding convention of placing operators at
9202 beginning of next line rather than end of previous line, and placing
9203 spaces around infix operators.
9204
9205 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
9206 in case it was defined already.
9207 USE @GNUSTEP_MAKEFILES@ rather than envvars.
9208 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
9209 ns_default.
9210 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
9211 Lisp_Objects.
9212 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
9213 (ns_defined_color, ns_color_to_lisp): Declare.
9214 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
9215 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
9216 it's accepted even with USE_LISP_UNION_TYPE.
9217 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
9218 (update_frame_tool_bar): Remove apparently obsolete tests for
9219 non-integerness of f->tool_bar_lines.
9220 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
9221 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
9222 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
9223 (nsfont_open): Don't confuse NULL for Qnil.
9224 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
9225 * menu.h (find_and_call_menu_selection):
9226 * menu.c (find_and_call_menu_selection): Use just int for vector size.
9227 (find_and_return_menu_selection): Always return something.
9228 * frame.h: Include dispextern.h for Display_Info.
9229 (display_x_get_resource): Declare.
9230
92312008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
9232
9233 * syntax.c: Remove stdio.h include accidentally introduced in
9234 Emacs.app commit.
9235 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
9236 NS_IMPL_COCOA.
9237 * keyboard.c (handle_async_input, input_available_signal): Remove
9238 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
9239
92402008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9241
9242 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
9243 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
9244 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
9245 Use SDATA.
9246
9247 * keymap.c: Remove all NS-specific code.
9248 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
9249 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
9250 where_is_preferred_modifier, return a different value depending on how
9251 preferred is the binding.
9252 (where_is_internal): Adjust accordingly.
9253 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
9254 Adjust to new preferred_sequence_p.
9255 (syms_of_keymap): Declare `where-is-preferred-modifier'.
9256 * keyboard.c (parse_solitary_modifier): Not static any more.
9257 * keyboard.h (parse_solitary_modifier): Declare.
9258
92592008-07-16 Andreas Schwab <schwab@suse.de>
9260
9261 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
9262 of easymenu.
9263
92642008-07-16 Chong Yidong <cyd@stupidchicken.com>
9265
9266 * xdisp.c (move_it_in_display_line): Account for word wrap, so
9267 that we don't move off the line.
9268
92692008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9270
9271 * keyboard.c (Qsuper): Remove.
9272 (parse_menu_item): Don't call where_is_internal specially for NS.
9273
92742008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9275
9276 * s/gnu-linux.h: Remove boilerplate comments.
9277
9278 * m/alpha.h (__ELF__): Consolidate conditions.
9279
9280 * m/m68k.h (linux): Use GNU_LINUX instead.
9281 Remove boilerplate comments.
9282
9283 * m/intel386.h: Undo refactoring from previous change.
9284 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
9285 too, remove dead code.
9286 (linux): Use GNU_LINUX instead.
9287
92882008-07-16 Jason Rumney <jasonr@gnu.org>
9289
9290 * w32gui.h: Repeat 26 June changes lost by last change.
9291
92922008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9293
9294 * systty.h: Remove code for Aix on 386, unsupported platform.
9295
9296 * s/ms-w32.h: Remove boilerplate comments.
9297 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
9298
9299 * s/gnu-linux.h (TERM): Remove support.
9300 (HAVE_SYSVIPC): Remove, unused.
9301 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
9302 for this system.
9303
9304 * process.c: Remove support for IRIS, unused.
9305 Remove support for TERM, not relevant anymore.
9306
9307 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
9308 used with the definition.
9309
9310 * s/aix4-2.h (static): Do not undef.
9311
9312 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
9313 only used on Aix.
9314 (HAVE_SYSVIPC): Remove, unused.
9315
9316 * m/hp800.h (CANNOT_DUMP): Do not undef.
9317
9318 * m/alpha.h: Fix comment.
9319
9320 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
9321 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
9322 used by this configuration.
9323 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
9324 * unexec.c: Remove code depending on HPUX and
9325 USG_SHARED_LIBRARIES, not used with this file. Remove code
9326 depending on IRIS, unused. Remove if 0-ed code.
9327
9328 * s/template.h: Remove comments about static.
9329
9330 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
9331 Remove if 0-ed code.
9332 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
9333 were the same as the default.
9334 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
9335 Remove boilerplate comments.
9336 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
9337 (HAVE_SYSVIPC): Remove, unused.
9338 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
9339
9340 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9341 Remove boilerplate comments.
9342 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9343 Remove boilerplate comments.
9344 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9345 Remove boilerplate comments.
9346 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
9347
9348 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
9349 USG systems which do not use DATA_SEG_BITS.
9350 Refactor code. Remove boilerplate comments.
9351
9352 * m/ibms390.h:
9353 * m/m68k.h:
9354 * s/bsd-common.h:
9355 * s/cygwin.h:
9356 * s/darwin.h:
9357 * s/freebsd.h:
9358 * s/gnu.h:
9359 * s/msdos.h: Remove boilerplate comments.
9360
9361 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 9362 do not use this file.
aac0c6e3
MR
9363 (IRIS_4D): Remove, unused.
9364
9365 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 9366 do not use this file.
aac0c6e3
MR
9367 (SIGN_EXTEND_CHAR):
9368 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
9369 * unexmips.c: Remove file, unused.
9370
9371 * editfns.c (Fuser_full_name): Replace the only use of
9372 USER_FULL_NAME with its value.
9373 * config.in: Regenerate.
9374
93752008-07-16 David Reitter <david.reitter@gmail.com>
9376
9377 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
9378 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
9379
93802008-07-16 Glenn Morris <rgm@gnu.org>
9381
9382 * emacs.c (system-type): Doc fix.
9383
93842008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
9385
9386 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
9387 If the cache doesn't work, let's fix it, rather than work around it.
9388
93892008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9390
9391 * Makefile.in: Correct additions for nsfont.o in last commit.
9392 * nsfont.m: New file (forgot last commit).
9393
93942008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9395
9396 * callproc.c (set_initial_environment): Initialize
9397 Vprocess_environment under CANNOT_DUMP (fixes crash when
9398 batch-compiling for bootstrap).
9399
94002008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9401 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9402
9403 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
9404 fix crash due to different init order.
9405
94062008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9407
9408 Changes and additions for NeXTstep windowing system (Cocoa and
9409 GNUstep) support.
9410
9411 * Makefile.in:
9412 * config.in: Support defines and build commands for NS port.
9413 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
9414 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
9415 * dispextern.h: Include nsgui.h and add needed typedefs under NS
9416 windowing.
9417 (struct face): Add synth_ital field.
9418 * dispnew.c: Include nsterm.h when compiling under NS windowing.
9419 (init_display): Initialize Vinitial_window_system to "ns" when so
9420 compiled.
9421 * emacs.c: Include GSConfig.h when compiling under GNUstep.
9422 (display_arg): Use under NS.
9423 (main): Under NS, allocate autorelease pool and handle command line
9424 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
9425 (standard_args): Add NS-specific args.
9426 (shut_down_emacs): Shut down NS terminal if compiled under NS.
9427 * font.c (DEFAULT_ENCODING): New variable.
9428 (font_find_for_lface): Use it.
9429 (syms_of_font): Load syms_of_nsfont under NS.
9430 * font.h: Declare nsfont_driver when compiled under NS.
9431 * fontset.c: When compiling under NS, include nsterm.h.
9432 (fontset_from_font): Autoconstruct fontset under NS.
9433 * frame.c (various): Under NS, include nsterm.h, add Qns window system
9434 symbol, document and use it.
9435 (do_switch_frame): When for_deletion under Cocoa, add
9436 Fraise_frame(Qnil).
9437 (x_set_frame_parameters): Ensure font attribute changes are picked up.
9438 (x_get_arg): Allow "yes" and "no" as boolean values.
9439 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
9440 Qright under Cocoa.
9441 (focus-follows-mouse): Default to 0 under NS.
9442 * frame.h (enum output_method): Add output_ns.
9443 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
9444 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
9445 (FRAME_WINDOW_P): NS-specific definition.
9446 * fringe.c (max_used_fringe_bitmap): Make public.
9447 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
9448 (getloadavg): Use NeXT code under descendant OS's.
9449 * image.c (includes and header section, x_create_bitmap_from_data)
9450 (x_create_bitmap_from_file, free_bitmap_record, image_background)
9451 (image_background_transparent, x_clear_image_1)
9452 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
9453 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
9454 (x_to_xcolors, x_from_xcolors, x_disable_image)
9455 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
9456 other GUIs, including XPM support using code originally written for
9457 Carbon GUI.
9458 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
9459 using NS API.
9460 (image_ascent): Use font metrics macros instead of direct struct field
9461 access.
9462 * keyboard.c (includes): Add nsterm.h when compiling under NS.
9463 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
9464 Also, handle NS as GTK for menu bar purposes.
9465 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
9466 toolkit where they differ.
9467 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
9468 use cachelist, still needed under NS.
9469 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
9470 (struct widget_value): Define it here for menu.c.
9471 * keymap.c (includes): Include modifier internals.
9472 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
9473 NS.
9474 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
9475 support for preferring sequences using certain modifiers, specified by
9476 the FIRSTONLY argument.
9477 * lisp.h (hash_remove): Rename to avoid name clash when compiling
9478 under NS GNUstep implementation.
9479 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
9480 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
9481 * menu.c: Include nsterm.h under NS.
9482 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
9483 (free_menubar_widget_tree_value, update_submenu_strings)
9484 (find_and_call_menu_selection): Treat NS as X and NT.
9485 (find_and_return_menu_selection): New function, used for popup menus.
9486 * nsgui.h:
9487 * nsterm.h:
9488 * nsfns.m:
9489 * nsimage.m:
9490 * nsmenu.m:
9491 * nsselect.m:
9492 * nsterm.m: New files.
9493 * process.c (wait_reading_process_output): Under NS, call ns_select()
9494 instead of plain select().
9495 * syntax.c (char_quoted): Under NS, avoid a crash when called near
9496 beginning of buffer.
9497 * sysselect.h (init_process): Rename when compiling under Cocoa to
9498 avoid name conflict.
9499 * termhooks.h (display_info): Add ns_display_info to union.
9500 * terminal.c (Fterminal_live_p): Add ns to terminal types.
9501 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
9502 COCOA environment.
9503 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
9504 unexec() signature. (Note, this will dump, but the resulting file
9505 crashes; unexosx is used instead; keeping around for reference and
9506 possible aid in getting dump working under GNUstep.)
9507 * w32gui.h (button_type, widget_value): Remove definitions (now in
9508 keyboard.h).
9509 * window.c: Include nsterm.h when compiling under NS.
9510 * xdisp.c (includes): Include nsterm.h when compiling under NS.
9511 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
9512 other GUI windowing systems.
9513 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
9514 GTK.
9515 (x_consider_frame_title): Under NS, set icon type and frame
9516 modified-state indicator; use ns_set_name_as_filename() when using
9517 formatted title.
9518 (update_window_cursor): Make public when compiling under NS.
9519 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
9520 (hourglass_atimer, Vhourglass_delay
9521 * xfaces.c (header section, init_frame_faces, clear_font_table)
9522 (defined_color, unload_color, x_face_list_fonts)
9523 (prepare_face_for_display): Add NS support parallel to other GUIs.
9524 Emulate GCs like other non-X GUIs.
9525 (split_font_name): Don't lowercase font name under NS.
9526 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
9527 under NS.
9528 * s/darwin.h: Add support for compilation under NS.
9529
95302008-07-15 Jason Rumney <jasonr@gnu.org>
9531
9532 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
9533 (w32_show_hourglass): Rename from show_hourglass.
9534 (w32_hide_hourglass): Rename from hide_hourglass.
9535 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
9536 (Vhourglass_delay): Declare extern.
9537 (hourglass_started): Remove.
9538
9539 * xdisp.c (Vhourglass_delay): Remove static.
9540 (hourglass_started, start_hourglass, cancel_hourglass):
9541 Don't include these versions on WINDOWSNT.
9542
95432008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9544
9545 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
9546 variables (formerly in xfns.c).
9547 (show_hourglass, hide_hourglass): New prototypes (same).
9548 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9549 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9550 in xfns.c).
9551 (syms_of_xdisp): Declare/initialize display-hourglass,
9552 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
9553 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9554 formerly in xfns.c.
9555 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9556 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9557 (start_hourglass, cancel_hourglass): Remove.
9558 (show_hourglass, hide_hourglass): Remove prototypes and static
9559 modifiers.
9560 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9561 hourglass_atimer, hourglass_shown_p declaration/initialization.
9562 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9563 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9564 (start_hourglass, cancel_hourglass): Remove.
9565 (show_hourglass, hide_hourglass): Remove prototypes and static
9566 modifiers.
9567 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9568 hourglass_atimer, hourglass_shown_p declaration/initialization.
9569 * w32fns.c (display_hourglass_p, Vhourglass_delay)
9570 (DEFAULT_HOURGLASS_DELAY): Remove.
9571 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9572 hourglass_shown_p declaration/initialization.
9573
95742008-07-14 Jason Rumney <jasonr@gnu.org>
9575
9576 * w32fns.c (w32_get_arg): Remove wrapper function.
9577 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9578 directly.
9579 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9580
95812008-07-14 Kenichi Handa <handa@m17n.org>
9582
9583 * xfont.c (xfont_open): Add workaround for X's bug.
9584
95852008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9586
9587 * fontset.c: Include <stdio.h> unconditionally.
9588
95892008-07-13 Michael Albinus <michael.albinus@gmx.de>
9590
9591 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9592 for filtering.
9593
95942008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
9595
9596 * s/vms.h: Use __GNUC__ instead of _GNUC_.
9597
9598 * m/macppc.h:
9599 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
9600
9601 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9602 (SPECIAL_EMACS_INT):
9603 * m/ia64.h (SPECIAL_EMACS_INT):
9604 * m/amdx86-64.h (SPECIAL_EMACS_INT):
9605 * s/gnu.h (NLIST_STRUCT):
9606 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9607 * s/gnu-linux.h (LINUX):
9608 * s/msdos.h (HAVE_FACES):
9609 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9610
9611 * systty.h:
9612 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9613 anymore.
9614
96152008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9616
9617 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9618 always defined as int.
9619
9620 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9621 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9622 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9623 * s/freebsd.h (HAVE_WAIT_HEADER):
9624 * s/bsd-common.h (HAVE_UNION_WAIT):
9625 * s/aix4-2.h (HAVE_WAIT_HEADER):
9626 * m/mips.h (HAVE_UNION_WAIT):
9627 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9628 (COFF, static): Do not define, they are undefined later in the file.
9629
9630 * process.c (update_status): Don't use a union.
9631 (status_convert):
9632 (sigchld_handler): Use int instead of WAITTYPE.
9633
96342008-07-12 Chong Yidong <cyd@stupidchicken.com>
9635
9636 * indent.c (Fvertical_motion): Restore hscroll before moving to
9637 goal column.
9638
96392008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9640
9641 * lisp.h: Remove left over code.
9642
96432008-07-11 Andreas Schwab <schwab@suse.de>
9644
9645 * lisp.h: Fix logic in last change.
9646
9647 * menu.h: New file.
9648 * menu.c: Include it.
9649 * xmenu.c: Likewise.
9650 * Makefile.in: Update dependencies.
9651
96522008-07-11 Kenichi Handa <handa@m17n.org>
9653
9654 * fontset.c (fontset_from_font): Cancel the previous change.
9655
96562008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9657
9658 * lisp.h:
9659 * w32heap.c:
9660 * emacs.c:
9661 * alloc.c: Replace all references of NO_UNION_TYPE with
9662 USE_LISP_UNION_TYPE.
9663
9664 * m/xtensa.h (NO_UNION_TYPE):
9665 * m/vax.h (NO_UNION_TYPE):
9666 * m/template.h (NO_UNION_TYPE):
9667 * m/sparc.h (NO_UNION_TYPE):
9668 * m/mips.h (NO_UNION_TYPE):
9669 * m/macppc.h (NO_UNION_TYPE):
9670 * m/m68k.h (NO_UNION_TYPE):
9671 * m/iris4d.h (NO_UNION_TYPE):
9672 * m/intel386.h (NO_UNION_TYPE):
9673 * m/ibms390x.h (NO_UNION_TYPE):
9674 * m/ibms390.h (NO_UNION_TYPE):
9675 * m/ibmrs6000.h (NO_UNION_TYPE):
9676 * m/ia64.h (NO_UNION_TYPE):
9677 * m/hp800.h (NO_UNION_TYPE):
9678 * m/arm.h (NO_UNION_TYPE):
9679 * m/amdx86-64.h (NO_UNION_TYPE):
9680 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9681 defining it the same.
9682
96832008-07-10 Chong Yidong <cyd@stupidchicken.com>
9684
9685 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9686
96872008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9688
9689 * fileio.c:
9690 * sysdep.c
9691 * systty.h:
9692 * m/ibmrs6000.h:
9693 * m/iris4d.h:
9694 * s/aix4-2.h:
9695 * s/freebsd.h:
9696 * s/gnu-linux.h:
9697 * s/hpux10-20.h:
9698 * s/hpux11.h:
9699 * s/netbsd.h:
9700 * s/sol2-3.h:
9701 * s/sol2-4.h:
9702 * s/sol2.h:
9703 * s/usg5-4.h:
9704 * s/vms.h: Remove references to unused variables.
9705
97062008-07-10 Andreas Schwab <schwab@suse.de>
9707
9708 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9709 pattern before matching the generic family.
9710
97112008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9712
9713 * unexec.c:
9714 * s/vms.h:
9715 * s/usg5-4-2.h:
9716 * s/sol2-5.h:
9717 * s/freebsd.h:
9718 * s/darwin.h: Remove dead code.
9719
9720 * m/template.h:
9721 * m/sparc.h:
9722 * m/mips.h:
9723 * m/m68k.h:
9724 * m/iris4d.h:
9725 * m/intel386.h:
9726 * m/ibms390x.h:
9727 * m/ibms390.h:
9728 * m/ia64.h:
9729 * m/hp800.h:
9730 * m/arm.h:
9731 * m/amdx86-64.h: Remove dead code and references to unused
9732 and compiler defined symbols.
9733
9734 * unexmips.c:
9735 * unexelf.c: Remove references to desupported systems.
9736
9737 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9738
9739 * m/powermac.h: Remove boilerplate comments.
9740 (NO_REMAP): Remove unused definition.
9741
9742 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9743 define them.
9744
97452008-07-10 Kenichi Handa <handa@m17n.org>
9746
9747 * xfont.c (xfont_open): Log the reason of failure.
9748
97492008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9750
9751 * fontset.c (fontset_get_font_group):
9752 * font.c (font_check_otf): Specify argument types.
9753
97542008-07-09 Kenichi Handa <handa@m17n.org>
9755
9756 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9757 non-ASCII char is found.
9758
9759 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9760 (reorder_font_vector): Change the arg preferred_family to font.
9761 Prefer the spec matching with font.
9762 (fontset_get_font_group): New function.
9763 (fontset_find_font): Change the format of an element of a realized
9764 fontset. Use fontset_get_font_group.
9765 (fontset_font): Try the current fontset, the default fontset, the
9766 fallbacks of the current fontset, and the fallbacks of the default
9767 fontset in this order.
9768 (face_for_char): Delete the shortcut to use the current font.
9769 (fontset_from_font): Don't set fonts for Latin in the fontset.
9770
9771 * font.h (font_make_object, font_match_p): Adjust prototypes.
9772
9773 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9774
9775 * font.c (font_make_object): New arg entity and pixelsize.
9776 (font_check_otf_features, font_check_otf): New functions.
9777 (font_match_p): Check :lang, :script, and :otf properties.
9778
9779 * xfont.c (xfont_open): Adjust it for the change of
9780 font_make_object.
9781 (xfont_text_extents): Fix initial setting of metrics.
9782
9783 * ftfont.c (struct ftfont_info): New member index, delete member
9784 fc_charset_idx. Make the member order compatible with struct
9785 xftfont_info.
9786 (fc_charset_table): Change charset names to registry names.
9787 (ftfont_pattern_entity): Delete the args registry and
9788 fc_charset_idx. Change the value of :font-entity property
9789 to (FONTNAME . INDEX). Always set :registry property to
9790 `iso10646-1'.
9791 (struct ftfont_cache_data): New struct.
9792 (ftfont_lookup_cache): New arg for_face.
9793 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9794 (ftfont_driver): Set the member otf_capability.
9795 (ftfont_get_charset): Adjust it for the change of
9796 fc_charset_table.
9797 (OTF_TAG_SYM): New macro.
9798 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9799 for the change of fc_charset_table.
9800 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9801 ftfont_pattern_entity. Add FC_INDEX to objset.
9802 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9803 and ftfont_pattern_entity.
9804 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9805 font_make_object, struct ftfont_info.
9806 (ftfont_has_char): Use ftfont_get_fc_charset.
9807 (ftfont_otf_features, ftfont_otf_capability): New functions.
9808 (ftfont_shape): Use ftfont_get_otf.
9809 (ftfont_text_extents): Fix initial setting of metrics.
9810
9811 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9812 member order compatible with struct ftfont_info.
9813 (xftfont_open): Add FC_CHARSET to the pattern. Set
9814 xftfont_info->ft_size. Don't unlock the face. Check BDF
9815 properties if appropriate.
9816 (xftfont_close): Unlock the face.
9817 (xftfont_anchor_point, xftfont_shape): Deleted.
9818 (syms_of_xftfont): Don't set members anchor_point and shape of
9819 xftfont_driver.
9820
9821 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9822 font_make_object.
9823
9824 * w32font.c (w32font_open): Adjust it for the change of
9825 font_make_object.
9826 (w32font_open_internal): Don't set properties of font_object here.
9827
98282008-07-08 Chong Yidong <cyd@stupidchicken.com>
9829
9830 * macfns.c (x_create_tip_frame):
9831 * w32fns.c (x_create_tip_frame):
9832 * xfns.c (x_create_tip_frame): Pass parameter argument to
9833 face-set-after-frame-default.
9834
9835 * xfaces.c (Finternal_merge_in_global_face): Save merged
9836 attributes for the default face back into the face vector.
9837
98382008-07-08 Andreas Schwab <schwab@suse.de>
9839
9840 * fontset.h: Declare fontset_from_font. Don't declare
9841 new_fontset_from_font and fontset_from_font_name.
9842 * xterm.c: Include "fontset.h".
9843 * Makefile.in (xterm.o): Update dependencies.
9844
98452008-07-08 Glenn Morris <rgm@gnu.org>
9846
9847 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9848 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9849
98502008-07-07 Chong Yidong <cyd@stupidchicken.com>
9851
9852 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9853 (x_set_frame_parameters): Don't bind it.
9854
98552008-07-07 Juanma Barranquero <lekktu@gmail.com>
9856
9857 * w32fns.c (map_w32_filename): Declare extern.
9858
98592008-07-07 Jason Rumney <jasonr@gnu.org>
9860
9861 * w32term.c (WS_EX_LAYERED): Define if not already.
9862
98632008-07-06 Chong Yidong <cyd@stupidchicken.com>
9864
9865 * xfaces.c (set_font_frame_param): Don't try to set the font
9866 parameter if it is still unspecified in the lface.
9867
98682008-07-05 Chong Yidong <cyd@stupidchicken.com>
9869
9870 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9871 face if it didn't already exist.
9872
9873 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9874
98752008-07-05 Andreas Schwab <schwab@suse.de>
9876
9877 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9878
98792008-07-05 Chong Yidong <cyd@stupidchicken.com>
9880
9881 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9882 word-wrapping.
9883 (IT_DISPLAYING_WHITESPACE): New macro.
9884 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9885 when word-wrapping. Simplify word-wrapping logic. Use correct
9886 pixel positions when saving copies of the iterator.
9887 (display_line): Use proper wrap point if the last character on a
9888 line was preceded by whitespace.
9889
98902008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9891
9892 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9893
98942008-07-04 Kenichi Handa <handa@m17n.org>
9895
9896 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9897
9898 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9899
99002008-07-02 Jason Rumney <jasonr@gnu.org>
9901
9902 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 9903 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
9904
9905 * xdisp.c (next_element_from_display_vector): Move assignment out
9906 of if statement.
9907
99082008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9909
9910 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9911
9912 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9913 (syms_of_fileio): Initialize and export them.
9914 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9915
9916 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9917 (Fsystem_move_file_to_trash): New function.
9918 (syms_of_w32fns): Export it to lisp.
9919
99202008-07-01 Jason Rumney <jasonr@gnu.org>
9921
9922 * w32font.c (w32font_text_extents): Don't count overhang as part
9923 of width.
9924
99252008-06-30 Miles Bader <miles@gnu.org>
9926
9927 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9928 Add `avoid_cursor_p' field.
9929
9930 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9931 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9932 (append_glyph, append_composite_glyph, produce_image_glyph)
9933 (append_stretch_glyph): Initialize avoid_cursor_p.
9934 (get_it_property): Rename from `get_line_height_property'.
9935 (x_produce_glyphs): Use get_it_property.
9936 (handle_line_prefix, push_display_prop): New functions.
9937 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9938 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9939 New variables.
9940 (syms_of_xdisp): Initialize them.
9941
99422008-06-30 Kenichi Handa <handa@m17n.org>
9943
9944 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9945 XftDefaultSubstitute (they are called in XftFontMatch).
9946 (xftfont_open): Fix args to ftfont_font_format.
9947
9948 * ftfont.c (fc_charset_table): New member lang.
9949 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 9950 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
9951 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9952 (ftfont_open): Fix args to ftfont_font_format.
9953 (ftfont_font_format): New arg filename.
9954
99552008-06-30 Chong Yidong <cyd@stupidchicken.com>
9956
9957 * xfaces.c (Finternal_merge_in_global_face): If default face was
9958 modified, realize it again. Update the font face attribute.
9959
99602008-06-29 Jason Rumney <jasonr@gnu.org>
9961
9962 * w32term.c (x_set_frame_alpha): Fix logic.
9963
99642008-06-29 Kenichi Handa <handa@m17n.org>
9965
9966 * fontset.c (Finternal_char_font): Return font-object instead of
9967 font-name.
9968
9969 * composite.c (get_composition_id): Fix the width calculation for TAB.
9970
99712008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9972
9973 * indent.c (Fvertical_motion): Properly handle float column arg.
9974
99752008-06-28 Jason Rumney <jasonr@gnu.org>
9976
9977 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9978 (pfnSetLayeredWindowAttributes): New function pointer.
9979 (w32_initialize): Initialize it when supported.
9980 (x_set_frame_alpha): New function.
9981
9982 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9983 (w32_frame_parm_handlers): Set alpha handler.
9984
9985 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9986
99872008-06-27 Jason Rumney <jasonr@gnu.org>
9988
9989 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9990 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9991 (w32_to_x_charset, x_to_w32_charset)
9992 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9993 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9994 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9995 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9996 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9997 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9998 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9999 (Qw32_charset_unicode): Remove.
10000 (syms_of_w32fns): Update for above changes.
10001
10002 * w32font.c (w32_to_x_charset, x_to_w32_charset)
10003 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10004 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10005 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10006 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10007 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10008 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10009 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
10010 (syms_of_w32font): Update for above changes.
10011
100122008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
10013
10014 * s/usg5-4.h: Fix previous change: keep the correct branch of a
10015 removed #if.
10016 (USG_SHARED_LIBRARIES): Remove duplicate definition.
10017
100182008-06-26 Juanma Barranquero <lekktu@gmail.com>
10019 Eli Zaretskii <eliz@gnu.org>
10020
10021 * makefile.w32-in (LOCAL_FLAGS):
10022 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
10023
10024 * sysdep.c (_spawnlp, _getpid):
10025 Declare with explicit _cdecl instead of _CRTAPI1.
10026
10027 * editfns.c (Fget_internal_run_time):
10028 Check for WINDOWSNT with #ifdef, not #if.
10029
100302008-06-26 Jason Rumney <jasonr@gnu.org>
10031
10032 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
10033
10034 * w32term.c (x_draw_glyph_string_foreground)
10035 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
10036 Use FONT_HANDLE macro.
10037 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
10038
10039 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10040 (uniscribe_encode_char): Use FONT_HANDLE macro.
10041
10042 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
10043 (w32font_text_extents): Use precast w32_font.
10044 (w32font_close): Free cached metrics.
10045 (w32font_open_internal): Allocate space for name on stack.
10046
100472008-06-26 Chong Yidong <cyd@stupidchicken.com>
10048
10049 * xdisp.c (extend_face_to_end_of_line): Fix last change.
10050
100512008-06-26 Jason Rumney <jasonr@gnu.org>
10052
10053 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
10054 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
10055
100562008-06-26 Juanma Barranquero <lekktu@gmail.com>
10057
10058 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
10059
100602008-06-26 Jason Rumney <jasonr@gnu.org>
10061
10062 * w32bdf.c, w32bdf.h: Remove obsolete files.
10063
10064 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
10065
10066 * w32gui.h: Don't include w32bdf.h.
10067 (XCharStruct, enum w32_char_font_type, W32FontStruct):
10068 Remove obsolete font support.
10069
10070 * w32font.h (struct w32font_info): Remove compat_w32_font.
10071 Add hfont member.
10072 (FONT_COMPAT): Remove obsolete macro.
10073
10074 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
10075 (w32font_encode_char, w32font_text_extents): Use new hfont member.
10076 (w32font_open_internal): Remove compat code. Set new hfont member.
10077 (Fx_select_font): Use new hfont member.
10078
10079 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10080 (uniscribe_encode_char): Use new hfont member.
10081
10082 * w32term.c (x_draw_glyph_string_foreground)
10083 (x_draw_composite_glyph_string_foreground): Use new hfont member.
10084 (x_draw_glyph_string): Use metrics in w32font_info.
10085
100862008-06-26 Kenichi Handa <handa@m17n.org>
10087
10088 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
10089
100902008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
10091
10092 * unexnext.c:
10093 * m/ews4800.h:
10094 * m/hp9000s300.h:
10095 * m/ibm370aix.h:
10096 * m/mips-siemens.h:
10097 * m/ncr386.h:
10098 * m/next.h:
10099 * m/pmax.h:
10100 * m/powerpcle.h:
10101 * m/tandem-s2.h:
10102 * s/386bsd.h:
10103 * s/bsd386.h:
10104 * s/bsd4-1.h:
10105 * s/bsd4-2.h:
10106 * s/bsdos2-1.h:
10107 * s/bsdos2.h:
10108 * s/bsdos3.h:
10109 * s/bsdos4.h:
10110 * s/nextstep.h:
10111 * s/ultrix4-3.h:
10112 * s/usg5-0.h:
10113 * s/usg5-2-2.h:
10114 * s/usg5-2.h:
10115 * s/usg5-4-3.h:
10116 * s/ux4800.h:
10117 * s/uxpds.h:
10118 * s/uxpv.h: Remove support for obsolete systems.
10119 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 10120 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
10121 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
10122 Remove, insert contents in s/aix4-2.h.
10123 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
10124 * s/bsd4-3.h: Rename to ...
10125 * s/bsd-common.h: ... this.
10126 * data.c:
10127 * doc.c:
10128 * ecrt0.c:
10129 * emacs.c:
10130 * fileio.c:
10131 * floatfns.c:
10132 * keyboard.c:
10133 * mem-limits.h:
10134 * print.c:
10135 * process.c:
10136 * sysdep.c:
10137 * syssignal.h:
10138 * systty.h:
10139 * syswait.h:
10140 * term.c:
10141 * unexec.c:
10142 * unexelf.c:
10143 * unexhp9k800.c:
10144 * m/hp800.h:
10145 * m/ibmrs6000.h:
10146 * m/mips.h:
10147 * m/vax.h:
10148 * s/darwin.h:
10149 * s/freebsd.h:
10150 * s/gnu.h:
10151 * s/ms-w32.h:
10152 * s/msdos.h:
10153 * s/netbsd.h:
10154 * s/template.h: Remove references to obsolete variables.
10155
10156 * Makefile.in: Add dependencies for all unexec files.
10157 (admindir): Remove unused variable.
10158 (UNEXEC_SRC): Remove references.
10159
101602008-06-25 Chong Yidong <cyd@stupidchicken.com>
10161
10162 * xfns.c (x_default_font_parameter): If Xft is available, first
10163 try Monospace-12 for the default font.
10164
101652008-06-25 Jason Rumney <jasonr@gnu.org>
10166
10167 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
10168
101692008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
10170
10171 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
10172
10173 * buffer.c (syms_of_buffer): Remove default-word-wrap.
10174
101752008-06-25 Juanma Barranquero <lekktu@gmail.com>
10176
10177 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
10178 <scroll-conservatively>: Fix typo in docstring.
10179
10180 * xselect.c (Fx_send_client_event): Doc fix.
10181
101822008-06-25 Kenichi Handa <handa@m17n.org>
10183
10184 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
10185
10186 * font.c (font_parse_fcname): Remove unused variables.
10187 (font_sort_entites): Delete the arg SPEC. Caller changed.
10188 Fix for the case of ! best_only.
10189 (font_delete_unmatched): Check DPI and AVGWIDTH too.
10190
10191 * lisp.h (Fstring_to_unibyte): EXFUN it.
10192
10193 * character.h (str_to_unibyte): Extern it.
10194
10195 * character.c (str_to_unibyte): New function.
10196
10197 * fns.c (Fstring_to_unibyte): New function.
10198 (syms_of_fns): Defsubr it.
10199
102002008-06-24 Kenichi Handa <handa@m17n.org>
10201
10202 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
10203 DPI too.
10204 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
10205
102062008-06-24 Andreas Schwab <schwab@suse.de>
10207
10208 * Makefile.in (${lispsource}loaddefs.el): Rename from
10209 ../lisp/loaddefs.el.
10210 (bootstrap-clean): Do what distclean does but don't remove
10211 Makefile.
10212 (distclean): Depend on bootstrap-clean and remove Makefile.
10213
102142008-06-24 Chong Yidong <cyd@stupidchicken.com>
10215
10216 * buffer.h (struct buffer): New member word_wrap.
10217
10218 * buffer.c (syms_of_buffer): New variables default-word-wrap and
10219 word-wrap.
10220 (init_buffer_once): Initialize them.
10221
10222 * dispextern.h (struct it): Replace bool truncate_lines_p with a
10223 line_wrap enum possessing three possible values.
10224
10225 * termopts.h: Replace truncate_partial_width_windows with
10226 Vtruncate_partial_width_windows.
10227
10228 * dispnew.c (direct_output_for_insert): Avoid direct output when
10229 inserting a space with word wrap on.
10230
10231 * indent.c (compute_motion): Obey integer values of
10232 truncate-partial-width-windows.
10233
10234 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
10235 replacing truncate_partial_width_windows.
10236 (init_iterator): If Vtruncate_partial_width_windows is an integer,
10237 truncate only if the window width is below that integer.
10238 (start_display, resize_mini_window, produce_stretch_glyph)
10239 (display_string, move_it_in_display_line_to): Use line_wrap.
10240 (back_to_previous_visible_line_start, reseat_1): Reset
10241 string_from_display_prop_p.
10242 (display_line): Extend default face to end of line when wrapping.
10243
102442008-06-24 Kim F. Storm <storm@cua.dk>
10245
10246 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
10247 to wrap continued lines at word boundaries.
10248
102492008-06-24 Jason Rumney <jasonr@gnu.org>
10250
10251 * font.c (Ffont_face_attributes): Multiply pixel size before point
10252 conversion to avoid multiplying rounding error.
10253
102542008-06-23 Jason Rumney <jasonr@gnu.org>
10255
10256 * w32term.c (x_draw_glyph_string_background)
10257 (x_draw_glyph_string): Remove old bdf font code.
10258
10259 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
10260
102612008-06-22 Kenichi Handa <handa@m17n.org>
10262
10263 * font.c (font_find_for_lface): Try the adstyle specified in
10264 the property of LFACE_FONT of LFACE (if any).
10265
102662008-06-21 Seiji Zenitani <zenitani@mac.com>
10267 Ryo Yoshitake <ryo@shiftmode.net>
10268
10269 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
10270
102712008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
10272
10273 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
10274 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
10275 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
10276 (witness-emacs): Remove.
10277 (lisp, shortlisp): Move loaddefs.el earlier.
10278 (mostlyclean): Forget about witness-emacs.
10279
102802008-06-22 Glenn Morris <rgm@gnu.org>
10281
10282 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
10283 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
10284
102852008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10286
10287 * Makefile.in (PRECOMP): Remove.
10288 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
10289 (witness-emacs): Run `compile-first'.
10290 (.el.elc): Use the new compile-onefile target.
10291
102922008-06-21 Kenichi Handa <handa@m17n.org>
10293
10294 * xftfont.c (xftfont_open): Handle QCembolden only when
10295 FC_EMBOLDEN is defined.
10296
102972008-06-21 Andreas Schwab <schwab@suse.de>
10298
10299 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
10300 (.el.elc): Likewise.
10301
103022008-06-21 Miles Bader <miles@gnu.org>
10303
10304 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
10305 build dir, not the lisp source dir.
10306
103072008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10308
10309 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
10310 (bootstrapclean): Remove.
10311 (.el.elc): New rule.
10312 (PRECOMP): New var.
10313 (../lisp/subdirs.el): Remove.
10314 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
10315 (witness-emacs): New target.
10316 (mostlyclean): Remove witness-emacs as well.
10317 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
10318 Add witness-emacs dependency.
10319
103202008-06-20 Chong Yidong <cyd@stupidchicken.com>
10321
10322 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
10323 defined by the font.
10324
103252008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10326
10327 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
10328 (bootstrap-clean): New target that keeps TAGS around.
10329 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
10330 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
10331
103322008-06-20 Jason Rumney <jasonr@gnu.org>
10333
10334 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
10335 Remove obsolete font code.
10336
10337 * w32font.c (font_matches_spec): Use csb bitfield from font signature
10338 to determine language support.
10339
103402008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10341
10342 * sysdep.c (cfsetspeed): New fun extracted from the code.
10343 (cfmakeraw): Move before first use.
10344
103452008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
10346
10347 * sysdep.c (cfmakeraw): Provide fallback implementation.
10348 (serial_configure): Provide fallback implementation of cfsetspeed.
10349
103502008-06-20 Kenichi Handa <handa@m17n.org>
10351
10352 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
10353 the pattern.
10354
10355 * fontset.c (fontset_from_font): Copy font_spec before changing
10356 the elements.
10357
10358 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
10359
103602008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10361
10362 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
10363 for explicit `font' parameters.
10364
10365 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
10366
103672008-06-19 Kenichi Handa <handa@m17n.org>
10368
10369 * frame.c: Include <ctype.h>.
10370 (x_set_font_backend): Allow spacing characters in the X resource
10371 for FontBackend.
10372
103732008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
10374
10375 * w32fns.c, xfns.c (Qfont_param): New var.
10376 (syms_of_w32fns): Initialize it.
10377 (x_default_font_parameter): Record explicit `font' into
10378 `font-parameter'.
10379
103802008-06-18 Kenichi Handa <handa@m17n.org>
10381
10382 * font.c (font_parse_xlfd): Fix previous change.
10383 (font_parse_fcname): Don't use :fc-unknown-spec.
10384 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
10385 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
10386 (font_add_log): Prepend the driver name to the resulting fonts.
10387
10388 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
10389 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
10390 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
10391
10392 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
10393 (QCembolden): New variables.
10394 (syms_of_xftfont): DEFSYM them.
10395 (xftfont_open): Call XftFontMatch. Don't trust the result of
10396 XftTextExtents8 if the pixel_size is less than 5.
10397
103982008-06-18 Andreas Schwab <schwab@suse.de>
10399
10400 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
10401 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
10402
104032008-06-18 Jason Rumney <jasonr@gnu.org>
10404
10405 * w32font.c (w32font_list, w32font_match): Add logging.
10406
10407 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
10408
104092008-06-17 Chong Yidong <cyd@stupidchicken.com>
10410
10411 * font.c (font_parse_fcname): Store divider characters for
10412 unknown-spec list. For known key symbols, intern using correct
10413 symbol name.
10414
104152008-06-17 Kenichi Handa <handa@m17n.org>
10416
10417 * xfaces.c (realize_default_face): If the frame is not on window
10418 system, set the fontset of face to nil.
10419
104202008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10421
10422 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
10423
104242008-06-16 Juanma Barranquero <lekktu@gmail.com>
10425
10426 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
10427 (build_font_name_from_vector): Delete externs.
10428
10429 * xfaces.c (struct font_name): Don't declare.
10430
104312008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
10432
10433 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
10434
104352008-06-16 Chong Yidong <cyd@stupidchicken.com>
10436
10437 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
10438
104392008-06-16 Juanma Barranquero <lekktu@gmail.com>
10440
10441 * font.c (Ffont_spec): Fix usage in docstring.
10442 (Ffont_face_attributes): Doc fix.
10443
104442008-06-16 Andreas Schwab <schwab@suse.de>
10445
10446 * font.c (Ffont_face_attributes): Fix definition.
10447
104482008-06-16 Jason Rumney <jasonr@gnu.org>
10449
10450 * font.h (font_style_symbolic_from_value): Remove.
10451
10452 * font.c (font_style_symbolic_from_value): Remove.
10453 (font_style_symbolic): Revert to pre 2008-06-13 version.
10454
10455 * w32font.c (w32_to_fc_weight): New function.
10456 (w32font_full_name, logfont_to_fcname): Use it.
10457
104582008-06-16 Kenichi Handa <handa@m17n.org>
10459
10460 * font.c (font_check_object): Delete it.
10461 (font_clear_cache): Check if a font-object is alive.
10462 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
10463 font-object to nil.
10464 (font_close_object): Don't check FONT_CLOSE_OBJECT.
10465 (font_at): Don't call font_check_object.
10466 (Ffont_get): Return a symbol for :weight, :slant, and :width.
10467
104682008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
10469
10470 * puresize.h (BASE_PURESIZE): Increase to 1230000.
10471
104722008-06-16 Chong Yidong <cyd@stupidchicken.com>
10473
10474 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
10475
104762008-06-15 Chong Yidong <cyd@stupidchicken.com>
10477
10478 * font.c (font_parse_fcname): Only one decimal point.
10479 (font_unparse_fcname): Handle data in family and foundry indices
10480 as symbols, not strings.
10481 (font_unparse_gtkname, Ffont_face_attributes): New functions.
10482
10483 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
10484
10485 * font.h (font_unparse_gtkname): Add prototype.
10486
104872008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10488
10489 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
10490
104912008-06-15 Andreas Schwab <schwab@suse.de>
10492
10493 * font.c (font_update_drivers): Fix crash when no drivers match.
10494
104952008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
10496
10497 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
10498 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
10499
105002008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
10501
10502 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
10503
105042008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
10505
10506 * process.c (Fserial_process_configure, Fprocess_send_eof):
10507 Use EQ to compare Lisp_Objects.
10508
105092008-06-13 Jason Rumney <jasonr@gnu.org>
10510
10511 * w32fns.c (Fw32_select_font): Remove old font API function.
10512
10513 * w32font.c (logfont_to_fcname): New function.
10514 (Fx_select_font): New font dialog function compatible with
10515 GTK/fontconfig version.
10516
10517 * font.c (font_style_symbolic_from_value): New function.
10518 (font_style_symbolic): Use it.
10519
10520 * font.h (font_style_symbolic_from_value): Declare new function.
10521
105222008-06-13 Juanma Barranquero <lekktu@gmail.com>
10523
10524 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
10525 <font-width-table>: Fix typos in docstrings.
10526
105272008-06-13 Daniel Engeler <engeler@gmail.com>
10528
10529 These changes add serial port access.
10530 * process.c: Add HAVE_SERIAL.
10531 (Fdelete_process, Fprocess_status, Fset_process_buffer)
10532 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
10533 (list_processes_1, select_wrapper, Fstop_process)
10534 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
10535 (status_notify): Modify to handle serial processes.
10536 [HAVE_SERIAL] (Fserial_process_configure)
10537 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
10538 New functions.
10539 * process.h (struct Lisp_Process): Add `type'.
10540 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
10541 New functions.
10542 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
10543 serial ports.
b71ac3dd 10544 (serial_open, serial_configure): New functions.
aac0c6e3
MR
10545 * w32.h: Add FILE_SERIAL.
10546 (struct _child_process): Add ovl_read, ovl_write.
10547
105482008-06-13 Kenichi Handa <handa@m17n.org>
10549
10550 * dispextern.h (enum lface_attribute_index): New member
10551 LFACE_FOUNDRY_INDEX.
10552
10553 * font.c (font_score): Delete arg alternate_families. Check only
10554 weight, slant, width, and size. Ignore the difference of alias
10555 style symbols.
10556 (font_sort_entites): Adjust for the above change. Reflect the
10557 order of font-driver to scores.
10558 (font_list_entities): Don't check alternate_familes here.
10559 (font_clear_prop): Handle foundry.
10560 (font_update_lface): Don't parse "foundry-family" form here.
10561 Handle FONT_FOUNDRY_INDEX.
10562 (font_find_for_lface): Likewise. Handle alternate families here.
10563 If registry is nil, try iso8859-1 and ascii-0.
10564 (font_open_for_lface): Pay attention to size in ENTITY.
10565 (font_open_by_name): Simplify by calling font_load_for_lface.
10566 (free_font_driver_list): Delete it.
10567 (font_update_drivers): Preserve the order of backends.
10568 (syms_of_font): Setting of sort_shift_bits adjusted for the change
10569 of font_score and font_sort_entites.
10570 (font_update_sort_order): Likewise.
10571
10572 * xfaces.c (LFACE_FOUNDRY): New macro.
10573 (check_lface_attrs): Check foundry.
10574 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10575 (merge_face_vectors): Check foundry.
10576 (merge_face_ref): Likewise.
10577 (Finternal_set_lisp_face_attribute): Likewise.
10578 (x_update_menu_appearance): Likewise.
10579 (Finternal_get_lisp_face_attribute): Likewise.
10580 (lface_hash): Likewise.
10581 (lface_same_font_attributes_p): Likewise.
10582 (x_supports_face_attributes_p): Likewise.
10583 (tty_supports_face_attributes_p): Likewise.
10584 (Finternal_set_alternative_font_family_alist): Intern strings.
10585 (Finternal_set_alternative_font_registry_alist): Downcase strings.
10586 (realize_default_face): Set LFACE_FOUNDRY (lface).
10587
10588 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10589 font-driver at first.
10590
10591 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10592
105932008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10594
10595 * lread.c (Fload): Use xfree, not free on saved_doc_string.
10596
105972008-06-12 Jim Meyering <meyering@redhat.com>
10598
10599 Make unexec_free handle NULL the same way free does.
10600 * unexmacosx.c (unexec_free): Ignore a NULL argument.
10601
106022008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10603
10604 * character.h (CHAR_TO_BYTE_SAFE): New macro.
10605 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10606 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10607 (WEAK_ALIAS): Simplify.
10608 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10609 when searching a unibyte buffer.
10610
106112008-06-12 Chong Yidong <cyd@stupidchicken.com>
10612
10613 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10614
106152008-06-12 Juanma Barranquero <lekktu@gmail.com>
10616
10617 * w32font.c: Include ctype.h.
10618
106192008-06-11 Jason Rumney <jasonr@gnu.org>
10620
10621 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10622 misreported as space.
10623 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10624 as aliases for registry iso10646-1.
10625
106262008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10627
10628 * buffer.c (clone_per_buffer_values): Skip `name'.
10629
106302008-06-11 Chong Yidong <cyd@stupidchicken.com>
10631
10632 * font.c (font_parse_fcname): Fix last change; accept decimal
10633 points in font size.
10634
106352008-06-10 Jason Rumney <jasonr@gnu.org>
10636
10637 * w32uniscribe.c (add_opentype_font_name_to_list):
10638 Skip non unicode fonts.
10639
106402008-06-10 Chong Yidong <cyd@stupidchicken.com>
10641
10642 * xfns.c (Fx_font_dialog): New function.
10643
10644 * gtkutil.c (xg_dialog_response_cb): Rename from
10645 xg_file_response_callback.
10646 (pop_down_dialog): Rename from pop_down_file_dialog.
10647 (xg_get_file_name): Callers changed.
10648 (xg_get_font_name): New function.
10649
10650 * gtkutil.h (xg_get_font_name): Insert prototype.
10651
106522008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10653
10654 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10655 x_underline_minimum_display_offset.
10656 (syms_of_xdisp): Declare it here rather than in xterm.c.
10657 * dispextern.h (underline_minimum_offset): Declare it.
10658 * w32term.c (x_draw_glyph_string): Use it.
10659 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10660 (syms_of_xterm): Don't declare it any more.
10661 (x_draw_glyph_string): Adjust to the new name.
10662
8719abec 106632008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
10664
10665 * xterm.c (x_underline_minimum_display_offset): New var.
10666 (x_draw_glyph_string): Use it.
10667 (syms_of_xterm): Declare it.
10668
106692008-06-10 Chong Yidong <cyd@stupidchicken.com>
10670
10671 * font.c (font_parse_fcname): Accept GTK-style font names too.
10672
106732008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10674
10675 * dired.c (file_name_completion): Don't return t if the match is exact
10676 but with different capitalization.
10677 * minibuf.c (Ftry_completion): Simplify.
10678
10679 * window.c (Vwindow_point_insertion_type): New var.
10680 (set_window_buffer): Use it.
10681 (syms_of_window): Init and export it to Lisp.
10682
106832008-06-10 Kenichi Handa <handa@m17n.org>
10684
10685 * font.h (font_intern_prop): Prototype adjusted.
10686
10687 * font.c (font_intern_prop): New arg force_symbol.
10688 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10689 Adjust for the change of font_intern_prop.
10690
10691 * ftfont.c (ftfont_pattern_entity):
10692 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10693 (w32_registry):
10694 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10695 the change of font_intern_prop.
10696
106972008-06-09 Juanma Barranquero <lekktu@gmail.com>
10698
10699 * w32menu.c (digest_single_submenu): Declare extern.
10700
107012008-06-09 Jason Rumney <jasonr@gnu.org>
10702
10703 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10704
10705 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10706 (parse_single_submenu): Remove.
10707 (digest_single_submenu): Remove.
10708 (syms_of_w32menu): Don't initialise variables that have moved
10709 to menu.c.
10710 (set_frame_menubar): Sync with version in xmenu.c.
10711 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10712
10713 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10714 Make static again.
10715
107162008-06-09 Jason Rumney <jasonr@gnu.org>
10717
10718 Changes to w32 files related to the move of common menu code
10719 to menu.c on 2008-06-08 by Chong Yidong.
10720
10721 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10722 defs to w32gui.h.
10723 (single_keymap_panes, push_menu_item, push_menu_pane):
10724 Make globally visible.
10725
10726 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10727 (local_free, malloc_widget_value, free_widget_value)
10728 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10729 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10730 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10731 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10732 (menu_items, menu_items_allocated, menu_items_used)
10733 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10734 (init_menu_items, finish_menu_items, discard_menu_items)
10735 (grow_menu_items, push_submenu_start, push_submenu_end)
10736 (push_left_right_boundary, push_menu_pane, push_menu_item)
10737 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10738 (free_menubar_widget_tree_value, parse_single_submenu)
10739 (update_submenu_strings): Remove functions.
10740 (xmalloc_widget_value): Remove and declare extern.
10741
10742 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10743 (OBJ1): Build it.
10744
10745 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10746 (local_heap, local_alloc, local_free, malloc_widget_value)
10747 (free_widget_value): Define here.
10748
107492008-06-09 Kenichi Handa <handa@m17n.org>
10750
10751 * font.h (Qascii_0): Extern it.
10752
10753 * font.c (Qascii_0): New variable.
10754 (syms_of_font): DEFSYM it.
10755 (font_open_by_name): If the registry "iso8859-1" fails, try also
10756 "ascii-0".
10757
10758 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10759
107602008-06-08 Kenichi Handa <handa@m17n.org>
10761
10762 * .gdbinit (xfont): New command.
10763
107642008-06-08 Andreas Schwab <schwab@suse.de>
10765
10766 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10767 * Makefile.in (menu.o): Update dependencies.
10768
10769 * Makefile.in (obj): Always add menu.o.
10770 * emacs.c (main): Always call syms_of_menu.
10771 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10772
107732008-06-08 Chong Yidong <cyd@stupidchicken.com>
10774
10775 * Makefile.in: Compile menu.c.
10776
10777 * lisp.h: Declare syms_of_menu.
10778
10779 * emacs.c (main): Call syms_of_menu.
10780
10781 * keyboard.h: Relocate platform-independent menu definitions from
10782 xmenu.c.
10783
10784 * menu.c: New file. Relocate platform-independent menu
10785 definitions from xmenu.c. Suggested by Adrian Robert.
10786
10787 * xmenu.c: Remove platform-independent menu definitions.
10788 (menu_items menu_items_inuse, menu_items_allocated)
10789 (menu_items_used, menu_items_n_panes)
10790 (menu_items_submenu_depth): Move to keyboard.h.
10791 (init_menu_items, finish_menu_items, unuse_menu_items)
10792 (discard_menu_items, restore_menu_items, save_menu_items)
10793 (grow_menu_items, push_submenu_start, push_submenu_end)
10794 (push_left_right_boundary, push_menu_pane, push_menu_item)
10795 (keymap_panes, single_keymap_panes, single_menu_item)
10796 (list_of_panes, list_of_items, find_and_call_menu_selection)
10797 (xmalloc_widget_value, free_menubar_widget_value_tree)
10798 (parse_single_submenu, digest_single_submenu)
10799 (update_submenu_strings): Move to menu.c.
10800
108012008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10802
10803 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10804
108052008-06-06 Miles Bader <miles@gnu.org>
10806
10807 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10808 face, not frame default.
10809
108102008-06-05 Martin Rudalics <rudalics@gmx.at>
10811
10812 * window.c (pop_up_windows, pop_up_frames)
10813 (display_buffer_reuse_frames, Vpop_up_frame_function)
10814 (Vdisplay_buffer_function, Veven_window_heights)
10815 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10816 (Vspecial_display_function, Vsame_window_buffer_names)
10817 (Vsame_window_regexps, split_height_threshold)
10818 (Vsplit_window_preferred_function): Move those vars to window.el.
10819 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10820 (Fdisplay_buffer): Move those functions to window.el.
10821 (syms_of_window): Remove corresponding declarations.
10822 (display_buffer): New function.
10823 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10824 * dispnew.c (Flast_nonminibuf_frame): New function.
10825 * buffer.c (Fpop_to_buffer): Move to window.el.
10826
108272008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10828
10829 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10830
108312008-06-05 Kenichi Handa <handa@m17n.org>
10832
10833 * coding.c (detect_coding): Fix previous change.
10834 (detect_coding_system): Likewise.
10835
108362008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10837
10838 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10839
10840 * keymap.c (Vminibuffer_local_filename_must_match_map):
10841 Rename from Vminibuffer_local_must_match_filename_map.
10842 (syms_of_keymap):
10843 * minibuf.c (Fcompleting_read): Adjust accordingly.
10844 * commands.h: Rename declaration as well.
10845
108462008-06-05 Kenichi Handa <handa@m17n.org>
10847
10848 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10849 family name.
10850 (Ffont_put): Likewise.
10851
10852 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10853 current font-spec.
10854
10855 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10856 is unspecified.
10857
10858 * xfaces.c (realize_x_face): If the font-related face attributes
10859 are the same as those of default face, realize a new fontset from
10860 default->fontset.
10861 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10862
108632008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10864
10865 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10866 (move_it_in_display_line): New wrapper.
10867
10868 * window.c (window_scroll_pixel_based_preserve_x)
10869 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10870 (window_scroll_pixel_based, window_scroll_line_based):
10871 Use them to preserve column positions.
10872 (syms_of_window): Initialize them.
10873
10874 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10875 (HPOS . VPOS) pair.
10876
10877 * dispextern.h (move_it_in_display_line): Declare.
10878
108792008-06-05 Juanma Barranquero <lekktu@gmail.com>
10880
10881 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10882 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10883 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10884
108852008-06-04 Juanma Barranquero <lekktu@gmail.com>
10886
10887 * window.c (Fset_window_parameter): Doc fix.
10888 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10889
108902008-06-04 Joakim Verona <joakim@verona.se>
10891
10892 * window.h (struct window): Add new member window_parameters.
10893
10894 * window.c (Fwindow_parameters, Fwindow_parameter)
10895 (Fset_window_parameter): New defuns.
10896 (syms_of_window): Defsubr the new defuns.
10897 (make_window): Initialize window_parameters to nil.
10898
108992008-06-04 John Paul Wallington <jpw@pobox.com>
10900
10901 * eval.c (Fdefmacro): Doc fix.
10902
109032008-06-04 Kenichi Handa <handa@m17n.org>
10904
10905 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10906 Be sure to call setup_coding_system when we find a proper coding system.
10907 (detect_coding_system): Fix handling of coding->head_ascii.
10908
109092008-06-03 Andreas Schwab <schwab@suse.de>
10910
10911 * font.c (font_prop_validate_spacing): Fix last change.
10912
109132008-06-03 Kenichi Handa <handa@m17n.org>
10914
10915 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10916 (font_parse_fcname): Fix handling of unknown key.
10917
10918 * xfont.c (xfont_list): Try an alias.
10919
10920 * charset.c (char_charset): Return NULL if the arg charset_list is
10921 specified and C doesn't belong to any of them.
10922
109232008-06-02 Chip Coldwell <coldwell@redhat.com>
10924
10925 * font.c (font_pixel_size): Don't take cdr of an integer.
10926
109272008-06-02 Jim Meyering <meyering@redhat.com>
10928
10929 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10930 * alloc.c (xfree): Return right away for a NULL arg.
10931 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10932 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10933 * mac.c (create_apple_event_from_event_ref): Likewise.
10934 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10935 Likewise.
10936 * doprnt.c (doprnt1): Likewise.
10937 * frame.c (frame): Likewise.
10938 * keyboard.c (wipe_kboard): Likewise.
10939 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10940 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10941 * term.c (tty_default_color_capabilities, maybe_fatal)
10942 (delete_tty): Likewise.
10943 * w16select.c (string): Likewise.
10944 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10945 * w32bdf.c (w32_free_bdf_font): Likewise.
10946 * w32fns.c (w32_unload_font): Likewise.
10947 * w32font.c (w32font_close): Likewise.
10948 * window.c (size_window): Likewise.
10949 * xselect.c (receive_incremental_selection): Likewise.
10950 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10951 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10952 * w32.c (stat): Likewise.
10953
10954 Remove useless if-before-free tests.
10955 * editfns.c (Fset_time_zone_rule): Likewise.
10956 * lread.c (nosuffix): Likewise.
10957 * ralloc.c (get_bloc): Likewise.
10958 * regex.c (reg_free): Likewise.
10959 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10960 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10961 * xsmfns.c (smc_save_yourself_CB): Likewise.
10962
109632008-06-02 Kenichi Handa <handa@m17n.org>
10964
10965 * font.c (font_find_for_lface): Handle float font size.
10966 (font_open_for_lface): Likewise.
10967
10968 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10969 comparing the properties.
10970
109712008-06-01 Jason Rumney <jasonr@gnu.org>
10972
10973 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10974 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10975 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10976 Don't add empty script list.
10977 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10978
109792008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10980
10981 * Makefile.in (dot, dotdot): Remove, update users.
10982 ".." has been used elsewhere in the file for a long time.
10983 (LIBXT_STATIC): Remove conditional based on unused variable.
10984
109852008-06-01 Miles Bader <miles@gnu.org>
10986
10987 * xfaces.c (Vface_remapping_alist): New variable.
10988 (syms_of_xfaces): Initialize it.
10989 (enum named_merge_point_kind): New type.
10990 (struct named_merge_point): Add `named_merge_point_kind' field.
10991 (push_named_merge_point): Make cycle detection respect different
10992 named-merge-point kinds.
10993 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10994 Remove face-name alias resolution.
10995 (lface_from_face_name): New definition using
10996 `lface_from_face_name_no_resolve'.
10997 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10998 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10999 (get_lface_attributes): New definition that layers face-remapping on
11000 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
11001 (lookup_basic_face): New function.
11002 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
11003 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
11004 `get_lface_attributes'.
11005 (face_at_buffer_position): Use `lookup_basic_face' to lookup
11006 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
11007 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
11008
11009 * xdisp.c (init_iterator): Pass base_face_id through
11010 `lookup_basic_face' when we actually use it as a face-id.
11011 (handle_single_display_prop): Use `lookup_basic_face' to lookup
11012 DEFAULT_FACE_ID.
11013
11014 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
11015 lookup the initial face-id.
11016
11017 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
11018
110192008-06-01 Juanma Barranquero <lekktu@gmail.com>
11020
11021 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
11022 (Fremove_text_properties): Fix typos in docstrings.
11023
110242008-05-31 Kenichi Handa <handa@m17n.org>
11025
11026 * font.c (font_list_entities): Fix the car part of data to be
11027 stored in the cache.
11028
11029 * ftfont.c (ftfont_font_format): Don't use strcasestr.
11030
110312008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11032
11033 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
11034 Add a `test' argument so another predicate than `equal' can be used.
11035 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
11036 (map_char_table): Remove unused vars `c' and `i'.
11037 * lisp.h (Foptimize_char_table): Adjust declaration.
11038 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
11039
110402008-05-30 Kenichi Handa <handa@m17n.org>
11041
11042 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
11043 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
11044 defined.
11045
110462008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11047
11048 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11049 (Fmake_variable_frame_local): Disallow mixing buffer-local and
11050 frame-local settings for the same variable.
11051
110522008-05-30 Kenichi Handa <handa@m17n.org>
11053
11054 * fontset.c (Ffont_info): Move to font.c.
11055 (syms_of_fontset): Delete defsubr of Sfont_info.
11056
11057 * font.c (font_style_to_value, font_score): Delete casting of the
11058 args to xstcasecmp.
11059 (register_font_driver): Increment num_font_drivers only when
11060 registering the driver globally.
11061 (Ffont_info): Move from fontset.c. Handle a font object too.
11062 (syms_of_font): Defsubr Sfont_info.
11063
110642008-05-29 Kenichi Handa <handa@m17n.org>
11065
11066 * coding.h (enum define_coding_utf8_arg_index): New enum.
11067 (enum coding_attr_index): Change coding_attr_utf_16_bom to
11068 coding_attr_utf_bom.
11069 (enum utf_bom_type): Rename from utf_16_bom_type.
11070 (struct utf_16_spec): Adjust for the above change.
11071 (struct coding_system): Add utf_8_bom in `spec' union.
11072
11073 * coding.c (CODING_UTF_8_BOM): New macro.
11074 (enum coding_category): Delete coding_category_utf_8, add
11075 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
11076 coding_category_utf_8_sig.
11077 (CATEGORY_MASK_UTF_8): Delete it.
11078 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
11079 (CATEGORY_MASK_UTF_8_SIG): New macros.
11080 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
11081 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
11082 CATEGORY_MASK_UTF_8_SIG.
11083 (CATEGORY_MASK_UTF_8): New macro.
11084 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
11085 (detect_coding_utf_8): Check BOM.
11086 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
11087 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
11088 (encode_coding_utf_16): Likewise.
11089 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
11090 (detect_coding, detect_coding_system): Handle utf-8-auto.
11091 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
11092 (syms_of_coding): Fix setting up of Vcoding_category_table.
11093
110942008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
11095
11096 * process.c (Faccept_process_output): If `millisec' is non-nil,
11097 `seconds' default to 0.
11098 (wait_reading_process_output): Also return non-nil if we read output
11099 from a non-running process.
11100
111012008-05-29 Jason Rumney <jasonr@gnu.org>
11102
11103 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
11104 `raster' specified.
11105 (add_font_entity_to_list): Allow non-opentype truetype fonts back
11106 in the uniscribe backend, but disallow any font that has no
11107 unicode subrange support.
11108
111092008-05-29 Juanma Barranquero <lekktu@gmail.com>
11110
11111 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
11112 Fix typos in docstrings.
11113
111142008-05-29 Kenichi Handa <handa@m17n.org>
11115
11116 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
11117 (Fx_family_fonts): Set frame correctly.
11118
111192008-05-28 Jason Rumney <jasonr@gnu.org>
11120
11121 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
11122
111232008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11124
11125 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
11126 calling build_annotations.
11127
111282008-05-28 Juanma Barranquero <lekktu@gmail.com>
11129
11130 * coding.c (Fdecode_coding_region, Fencode_coding_region)
11131 (Fencode_coding_string):
11132 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
11133 <latin-extra-code-table>: Fix typos in docstrings.
11134 (syms_of_coding) <coding-system-alist>: Doc fix.
11135 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
11136
111372008-05-28 Kenichi Handa <handa@m17n.org>
11138
11139 * fontset.c (Ffont_info): Don't call font_close_object.
11140
11141 * font.c (font_parse_family_registry): Use Ffont_put to validate
11142 foundry and family.
11143 (font_delete_unmatched): Don't check spacing.
11144 (font_list_entities): Add spacing to the spec to list fonts.
11145
11146 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
11147 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
11148
11149 * coding.c (encode_coding_raw_text): Fix previous change.
11150 (encode_coding_object): When the dst_object is a buffer and is
11151 different from src_object, move gap to PT.
11152
111532008-05-27 Chong Yidong <cyd@stupidchicken.com>
11154
11155 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
11156
111572008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11158
11159 * coding.c (encode_coding_raw_text): Set coding->produced_char for
11160 all branches. Compute it differently.
11161
11162 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
11163
111642008-05-27 Juanma Barranquero <lekktu@gmail.com>
11165
11166 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
11167 into "else if () ... else ...".
11168
111692008-05-27 Jason Rumney <jasonr@gnu.org>
11170
11171 * w32font.c (w32font_open_internal): Determine if glyph indices
11172 are likely to work here.
11173
111742008-05-27 Chong Yidong <cyd@stupidchicken.com>
11175
11176 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
11177 draw overlap glyphs with appropriate highlighting.
11178
111792008-05-27 Kenichi Handa <handa@m17n.org>
11180
11181 * xfont.c (xfont_open): Fix calculation of font->average_width.
11182
111832008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11184
11185 * casefiddle.c (casify_object): Try to guess better whether the
11186 argument is a byte or a char.
11187
111882008-05-26 Andreas Schwab <schwab@suse.de>
11189
11190 * xselect.c (x_reply_selection_request): Properly handle format == 32.
11191 Always send multiples of format size.
11192
11193 * xterm.c (x_set_frame_alpha): Fix type mismatch.
11194
111952008-05-26 Jason Rumney <jasonr@gnu.org>
11196
11197 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
11198 (compute_metrics): Don't set failure if we just cleared the cache.
11199 (w32_weight_table): Remove unused variable.
11200 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
11201 backwards compatibility.
11202
112032008-05-25 Kenichi Handa <handa@m17n.org>
11204
11205 * w32term.c (x_draw_glyph_string):
11206 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
11207
11208 * xfaces.c: Delete unused function prototypes.
11209 (xstrlwr, font_frame): Delete them.
11210 (clear_face_cache): Delete unused variable.
11211
11212 * xftfont.c (xftfont_open): Delete unused variable.
11213 If underline_thickness is not 1, adjust underline_position.
11214
11215 * ftxfont.c (ftxfont_open): Delete unused variable.
11216
11217 * fontset.c (face_for_char): Optimize for the case of no charset
11218 property.
11219
11220 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
11221 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
11222 (otf_open, font_otf_capability, generate_otf_features)
11223 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11224 Comment out by surrounding "#if 0" and "#endif" for the moment.
11225 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
11226 (syms_of_font): Codes for accessing above commented out.
11227
112282008-05-24 Eli Zaretskii <eliz@gnu.org>
11229
11230 * w32proc.c: Include dispextern.h.
11231
11232 * w32.c: Include dispextern.h.
11233
112342008-05-23 Juanma Barranquero <lekktu@gmail.com>
11235
11236 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
11237 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
11238 Fix typos in docstrings.
11239
112402008-05-23 Jason Rumney <jasonr@gnu.org>
11241
11242 * xsmfns.c: Remove includes that are already included by config.h.
11243
112442008-05-23 Kenichi Handa <handa@m17n.org>
11245
11246 * charset.c (Qemacs, charset_emacs): New variables.
11247 (char_charset): Fix for non-Unicode characters.
11248 (syms_of_charset): Define charset_emacs.
11249
11250 * w32term.c (x_draw_glyph_string): Be sure to update
11251 s->underline_thickness and s->underline_position. Be sure to draw
11252 underline within the current line area.
11253
11254 * xterm.c (x_draw_glyph_string): Be sure to update
11255 s->underline_thickness and s->underline_position. Be sure to draw
11256 underline within the current line area.
11257
11258 * fontset.c: Delete unused variables and add casting for char *
11259 throughout the file.
11260 (fontset_font): Try the fallback fonts of the current fontset
11261 before consulting the default fontset.
11262
11263 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
11264
11265 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
11266
112672008-05-22 Jason Rumney <jasonr@gnu.org>
11268
11269 * font.c: Don't include strings.h.
11270
11271 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
11272
11273 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
11274 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
11275 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
11276 to call xstrcasecmp.
11277
11278 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
11279
11280 * fontset.c (fs_query_fontset): Use xstrcasecmp.
11281
11282 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
11283
11284 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
11285
112862008-05-22 Kenichi Handa <handa@m17n.org>
11287
11288 * puresize.h (BASE_PURESIZE): Increase to 1220000.
11289
11290 * font.c (font_prop_validate_style): Adjust for the format
11291 change of font_style_table.
11292
11293 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
11294 two args.
11295
11296 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
11297 two args.
11298
112992008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
11300
11301 * minibuf.c (keys_of_minibuf): Delete.
11302 * lisp.h (keys_of_minibuf): Delete.
11303 * emacs.c (main): Don't call keys_of_minibuf.
11304
113052008-05-22 Kenichi Handa <handa@m17n.org>
11306
11307 * ftfont.c (ftfont_resolve_generic_family): Rename from
11308 ftfont_list_generic_family. Return a single family for each
11309 generic family.
11310 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
11311 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
11312 Call font_add_log.
11313 (ftfont_match): Call font_add_log.
11314
11315 * font.h (Ffont_xlfd_name): EXFUN adjusted.
11316 (FONT_DEBUG): Define it.
11317 (font_add_log): Extern it.
11318 (font_assert): Rename from xassert.
11319
11320 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
11321 (xfont_list_family): Call font_add_log.
11322 (xfont_match): Likewise.
11323 (memq_no_quit): Delete.
11324
11325 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
11326 call of Ffont_xlfd_name.
11327
11328 * xfaces.c (struct table_entry, slant_table, weight_table)
11329 (swidth_table): Move to font.c.
11330
11331 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
11332 xassert are changed to font_assert. Delete many unused variables.
11333 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
11334 New variables.
11335 (struct table_entry): Move from xfaces.c and modified.
11336 (weight_table, slant_table, width_table): Move from xfaces.c and
11337 contents adjusted for the change of struct table_entry.
11338 (font_style_to_value, font_style_symbolic): Adjust for the
11339 format change of font_style_table.
11340 (font_parse_family_registry): Don't overwrite existing foundry and
11341 family of font_spec.
11342 (font_score): Fix calculation of diff for sizes.
11343 (font_sort_entites): Call font_add_log.
11344 (font_delete_unmatched): Return a newly created list.
11345 (font_list_entities): Fix previous change. Call font_add_log.
11346 (font_matching_entity, font_open_entity, font_close_entity):
11347 Call font_add_log.
11348 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
11349 (Finternal_set_font_style_table): Delete.
11350 (BUILD_STYLE_TABLE): New macro.
11351 (build_style_table): New function.
11352 (Vfont_log, font_log_env_checked): New variables.
11353 (font_add_log): New function.
11354 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
11355 Declare Lisp variables "font-weight-table", "font-slant-table",
11356 "font-width-table", and "font-log". Initialize font_style_table.
11357
113582008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
11359
11360 * xterm.c (x_set_frame_alpha): Move declarations before statements.
11361
113622008-05-21 Seiji Zenitani <zenitani@mac.com>
11363 Ryo Yoshitake <ryo@shiftmode.net>
11364
11365 * frame.c (Qalpha): Add a new frame parameter `alpha'.
11366 (Vframe_alpha_lower_limit): New variable.
11367 (x_set_alpha): New function.
11368
11369 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
11370
11371 * xfns.c (x-create-frame, Qalpha):
11372 Initialize the frame parameter `alpha'.
11373 * xterm.c (OPAQUE, OPACITY): New.
11374 (x_set_frame_alpha): New function.
11375 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
11376
11377 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
11378 * w32fns.c (w32_frame_parm_handlers): Likewise.
11379
113802008-05-20 Jason Rumney <jasonr@gnu.org>
11381
11382 * w32font.c (add_font_entity_to_list): Don't add non-opentype
11383 truetype fonts to opentype list.
11384
113852008-05-20 Juanma Barranquero <lekktu@gmail.com>
11386
11387 * fontset.c (Ffontset_info): Doc fix.
11388 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
11389 <ignore-relative-composition>: Fix typos in docstrings.
11390
11391 * font.c (syms-of-font) <font-encoding-alist>:
11392 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
11393 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
11394 (Ffont_otf_alternates): Doc fixes.
11395
113962008-05-20 Kenichi Handa <handa@m17n.org>
11397
11398 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
11399 font.h through out the file.
11400 (FONT_DRIVERS): Rename from FONTOBJ.
11401 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
11402 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
11403
11404 * emacs.c (main): Call syms_of_font unconditionally.
11405
11406 * font.h (find_font_encoding): Extern it.
11407
11408 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
11409 fontset.c.
194d44e7 11410 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
11411 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
11412 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
11413 only when HAVE_WINDOW_SYSTEM is defined.
11414 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
11415 when HAVE_WINDOW_SYSTEM is defined.
11416
11417 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
11418 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
11419
11420 * xfaces.c: Include font.h unconditionally.
11421 (merge_face_ref, merge_face_vectors)
11422 (Finternal_set_lisp_face_attribute): Cancel the previous change.
11423
114242008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
11425
11426 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
11427 indirect_variable.
11428 * eval.c (lisp_indirect_variable): New fun.
11429 (Fuser_variable_p): Use it.
11430
114312008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11432
11433 * lisp.h (indirect_variable):
11434 * data.c (indirect_variable, let_shadows_buffer_binding_p):
11435 Use Lisp_Symbol pointers rather than Lisp_Object.
11436 Adjust callers.
11437 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
11438 To this end, change calling-convention.
11439
11440 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
11441 if some non-hidden buffers are selected by string&pred.
11442
114432008-05-19 Chong Yidong <cyd@stupidchicken.com>
11444
11445 * process.c (wait_reading_process_output): Always check status
11446 when in batch mode.
11447
114482008-05-19 Kenichi Handa <handa@m17n.org>
11449
11450 * font.c (font_list_entities): Fix handling of cache.
11451 (font_matching_entity): Likewise.
11452
11453 * ftfont.c (cs_iso8859_1): Delete.
11454 (ft_face_cache): New variable.
11455 (struct ftfont_info): New member fc_charset_idx.
11456 (ftfont_build_basic_charsets): Delete.
11457 (fc_charset_table): New variable.
11458 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
11459 . FC_CHARSET_IDX) as :font-entity property in the font entity.
11460 Callers changed.
11461 (ftfont_lookup_cache, ftfont_get_charset): New functions.
11462 (ftfont_spec_pattern): New argument fc_charset_idx.
11463 Check registry more rigidly. Change callers.
11464 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
11465 change of :font-entity property of the font.
11466
11467 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
11468 property of the font.
11469
114702008-05-18 Juanma Barranquero <lekktu@gmail.com>
11471
11472 * coding.c (Fcoding_system_p): Rename argument to match docstring.
11473 (Funencodable_char_position, Fcheck_coding_systems_region)
11474 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
11475 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
11476 (Ffind_operation_coding_system, Fset_coding_system_priority)
11477 (Fcoding_system_eol_type): Doc fixes.
11478
114792008-05-17 Glenn Morris <rgm@gnu.org>
11480
11481 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
11482
114832008-05-16 Eli Zaretskii <eliz@gnu.org>
11484
11485 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
11486 and st_gid.
11487
11488 * frame.c (Fdelete_frame): Don't call font_update_drivers if
11489 HAVE_WINDOW_SYSTEM is not defined.
11490
11491 * xfaces.c (merge_face_ref, merge_face_vectors)
11492 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
11493 HAVE_WINDOW_SYSTEM is defined.
11494 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
11495
114962008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
11497
11498 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
11499
115002008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11501
11502 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
11503
115042008-05-15 Kenichi Handa <handa@m17n.org>
11505
11506 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
11507 preference.
11508
115092008-05-15 Glenn Morris <rgm@gnu.org>
11510
11511 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
11512
115132008-05-15 Chong Yidong <cyd@stupidchicken.com>
11514
11515 * fns.c (init_fns): Don't initialize weak_hash_tables here.
11516 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
11517
11518 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
11519
115202008-05-15 Kenichi Handa <handa@m17n.org>
11521
11522 * ftfont.c (ftfont_list): Downcase family name to check generic
11523 families.
11524
11525 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
11526 font-spec for QCfont value.
11527
11528 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
11529 buffer. Check the return value of it.
11530
115312008-05-14 Jason Rumney <jasonr@gnu.org>
11532
11533 * w32term.c (w32_get_glyph_overhangs): Remove.
11534 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
11535
115362008-05-14 Kenichi Handa <handa@m17n.org>
11537
11538 * font.c (font_prop_validate): Make nil a valid value.
11539 (font_clear_cache): Check if the cached vector of entities is nil
11540 or not.
11541
115422008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11543
11544 * emacs.c (main_thread): Conditionalize on
11545 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11546 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11547
11548 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11549 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11550 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11551
115522008-05-14 Kenichi Handa <handa@m17n.org>
11553
11554 * coding.c (detect_coding_iso_2022): Ignore a coding category that
11555 has no corresponding coding system.
11556
115572008-05-14 Jason Rumney <jasonr@gnu.org>
11558
11559 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11560
11561 * w32font.h (w32font_open_internal): Update declaration.
11562
11563 * w32font.c (w32font_open_internal): Change last argument from
11564 w32font_info struct to font object. Fill in font object from
11565 font_entity. Get Outline metrics if possible. Use them to
11566 calculate underline position and thickness. Use xlfd name as name
11567 property. Don't set codepage.
11568 (w32font_open): Pass font_object to w32font_open_internal. Don't
11569 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11570 (w32font_draw): Use s->font.
11571 (clear_cached_metrics): Don't clear non-existent blocks.
11572
11573 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11574 font was not found.
11575 (x_draw_glyph_string): Use underline position and thickness from font.
11576
11577 * w32uniscribe.c (uniscribe_open): Pass font_object to
11578 w32font_open_internal.
11579
115802008-05-14 Kenichi Handa <handa@m17n.org>
11581
11582 These changes are to delete all legacy font-handling codes, and
11583 make Emacs use only font-backends.
11584
11585 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11586 (frame.o, image.o, print.o): Depend on $(FONTSRC).
11587
11588 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11589
11590 * charset.h (Vcharset_non_preferred_head)
11591 (Vcurrent_iso639_language): Extern them.
11592
11593 * charset.c (Vcharset_non_preferred_head): New variable.
11594 (Vcurrent_iso639_language): New variable.
11595 (syms_of_charset): Declare it as a Lisp variable.
11596 (char_charset): Don't check non preferred charsets. As a last
11597 resort, return charset_unicode.
11598 (Fset_charset_priority): Update Vcharset_non_preferred_head.
11599
11600 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11601 conditionals. Don't check enable_font_backend. Delete all codes
11602 used only when USE_FONT_BACKEND is not defined.
11603
11604 * dispextern.h (struct glyph_string): Change type of `font' to
11605 `struct font *'.
11606 (struct glyph_string): New member underline_position and
11607 underline_thickness.
11608 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11609 (struct face): Change type of `font' to `struct font *'. Remove
11610 members `font_name', `font_info_id'.
11611 (per_char_metric, encode_char): Delete externs.
11612 (calc_pixel_width_or_height): Adjust the prototype.
11613
11614 * emacs.c (enable_font_backend): Delete extern.
11615 (main): Don't set enable_font_backend. Don't check the command
11616 line argument "-disable-font-backend".
11617
11618 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11619 (enum font_property_index): New members FONT_DPI_INDEX,
11620 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11621 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11622 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11623 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11624 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11625 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11626 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11627 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11628 (struct font_spec, struct font_entity): New structs.
11629 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11630 (struct font): Many members from old "struct font_info" moved to
11631 here. Members font and entity deleted.
11632 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11633 the new font-related objects.
11634 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11635 (CHECK_FONT_GET_OBJECT): Likewise.
11636 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11637 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11638 (struct font_driver): New members case_sensitive anc check. Type
11639 of the member list and open changed.
11640 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11641 (font_symbolic_width, font_find_object, font_get_spec)
11642 (font_set_lface_from_name): Delete extern.
11643 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11644
11645 * font.c: Include <strings.h>.
11646 (enable_font_backend): Delete it.
11647 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11648 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11649 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11650 (null_string): Delete it.
11651 (null_vector): Make it static.
11652 (font_family_alist): Delete it.
11653 (Qnormal): Extern it.
11654 (QCextra, QClanguage): Delete it.
11655 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11656 (font_make_spec, font_make_entity, font_make_object)
11657 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11658 the string. Callers changed.
11659 (font_pixel_size): Adjusted for the format change of font-related
11660 objects.
11661 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11662 (font_style_to_value, font_style_symbolic): New function.
11663 (build_font_family_alist): Delete it.
11664 (font_registry_charsets): Use Fassoc_string instead of
11665 assq_no_quit.
11666 (font_prop_validate_symbol): Don't return null_string.
11667 (font_prop_validate_style): Adjusted for the change of
11668 style-related values in a font vector.
11669 (font_property_table): Delete entries for QClanguage and
11670 QCantialias, add entries for QCavgwidth.
11671 (get_font_prop_index): Delete the 2nd argument FROM.
11672 (font_prop_validate): Arguments changed.
11673 (font_put_extra): Adjusted for the change of font-related objects.
11674 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11675 (font_parse_fcname, font_unparse_fcname)
11676 (font_prepare_composition): Likewise.
11677 (font_parse_family_registry): Renamed from font_merge_old_spec.
11678 (otf_open): Delete the 1st arg entity.
11679 (font_otf_capability): Adjusted for the above change.
11680 (font_score): New arg alternate_families. Adjusted for the change
11681 of font-related objects.
11682 (font_sort_entites): New arg best_only.
11683 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11684 Delete them.
11685 (font_match_p): Check alternate families.
11686 (font_find_object): Delete it.
11687 (font_check_object): New function.
11688 (font_clear_cache): Adjusted for the change of font-related objects.
11689 (font_delete_unmatched): New arg.
11690 (font_list_entities): Call font_driver->list with a spec that
11691 doesn't specify style-related properties.
11692 (font_matching_entity): Arguments changed. Caller changed.
11693 (font_open_entity): Adjusted for the change of font-related objects.
11694 (font_close_object, font_has_char, font_encode_char)
11695 (font_get_name, font_get_spec): Likewise.
11696 (font_spec_from_name, font_clear_prop, font_update_lface):
11697 New functions.
11698 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11699 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11700 (font_at): Adjusted for the change of font-related objects.
11701 (font_range): New function.
11702 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11703 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11704 (Fcopy_font_spec, Fmerge_font_spec): New function.
11705 (Ffont_family_list): Renamed from list-families.
11706 (Finternal_set_font_style_table): Arguments changed.
11707 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11708 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11709 change of font-related objects.
11710 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11711
11712 * fontset.h (struct font_info): Delete it. Most members go to
11713 struct font.
11714 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11715 (enum FONT_SPEC_INDEX): Delete it.
11716 (font_info, list_fonts_func, load_font_func, query_font_func)
11717 (set_frame_fontset_func, find_ccl_program_func)
11718 (get_font_repertory_func, new_fontset_from_font_name): Delete
11719 externs.
11720 (fontset_from_font_name): Extern it.
11721 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11722 (FONT_INFO_FROM_FACE): Deleted.
11723 (face_for_font): Adjust prototype.
11724
11725 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11726 conditionals. Don't check enable_font_backend. Delete all codes
11727 used only when USE_FONT_BACKEND is not defined.
11728 (get_font_info_func, list_font_func, load_font_func)
11729 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11730 (get_font_repertory_func): Delete them.
11731 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11732 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11733 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11734 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11735 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11736 (fontset_compare_rfontdef): New function.
11737 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11738 rfont-defs by qsort. Adjusted for the change of font-group vector.
11739 (load_font_get_repertory): Deleted.
11740 (fontset_find_font): Use new macros to ref/set elements of
11741 font-def and rfont-def.
11742 (fontset_font): Fix the timing of remembering that no font for C.
11743 (free_face_fontset): Do nothing if the face has no fontset.
11744 (face_suitable_for_char_p): Use new macros to ref/set elements of
11745 rfont-def.
11746 (face_for_char): Likewise. Call face_for_char with font_object.
11747 (fs_load_font): Delete. Delete #pragma surrounding it.
11748 (fs_query_fontset): Use strcasecmp instead of strcmp.
11749 (generate_ascii_font_name): Adjusted for the format change of
11750 font-spec.
11751 (Fset_fontset_font): Likewise. Use new macros to set elements of
11752 font-def.
11753 (Fnew_fontset): Use font_unparse_xlfd to generate
11754 FONTSET_ASCII (fontset).
11755 (new_fontset_from_font_name): Deleted.
11756 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11757 a fontset is already created for the font. FIx updating of
11758 Vfontset_alias_alist.
11759 (fontset_ascii_font): Deleted.
11760 (Ffont_info): Adjusted for the format change of font-spec.
11761 (Finternal_char_font): Likewise.
11762 (Ffontset_info): Likewise.
11763 (syms_of_fontset): Don't check load_font_func.
11764
11765 * fns.c (internal_equal): Handle PREV_FONT.
11766
11767 * frame.h: Delete USE_FONT_BACKEND conditional.
11768
11769 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11770 conditionals. Don't check enable_font_backend. Delete all codes
11771 used only when USE_FONT_BACKEND is not defined.
11772 (x_set_font): Call x_new_font, not x_new_fontset2.
11773 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11774 already set for the frame.
11775
11776 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11777 a font-entity by font_make_entity. Use font_intern_prop instead
11778 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11779 font property. If a font is scalable, set avgwidth property to 0.
11780 Set font-entity property by font_put_extra.
11781 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11782 (ffont_driver): Adjusted for the change of struct font_driver.
11783 (ftfont_spec_pattern): New function.
11784 (ftfont_list): Return a list, not vector.
11785 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11786 (ftfont_list_family): Don't downcase names.
11787 (ftfont_free_entity): Deleted.
11788 (ftfont_open): Return a font-object. Adjusted for the change of
11789 struct font. Get underline_thickness and underline_position from
11790 font property. Don't update dpyinfo->smallest_font_height and
11791 dpyinfo->smallest_char_width.
11792 (ftfont_close): Don't free `struct font'.
11793 (ftfont_has_char): Adjusted for the format change of font-entity.
11794 (ftfont_encode_char, ftfont_text_extents): Likewise.
11795
11796 * ftxfont.c (ftxfont_list): Return a list, not vector.
11797 (ftxfont_open): Return a font-object. Adjusted for the change of
11798 struct font. Get underline_thickness and underline_position from
11799 font property. Don't update dpyinfo->smallest_font_height and
11800 dpyinfo->smallest_char_width.
11801 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11802 (ftxfont_draw): Adjusted for the change of struct font.
11803
11804 * image.c (image_ascent): Don't include "charset.h". Include
11805 "character.h" and "font.h".
11806
11807 * lisp.h (enum pvec_type): New member PREV_FONT.
11808 (Fassoc_string): EXFUN it.
11809
11810 * print.c: Include font.h.
11811 (print_object): Handle font-related objects.
11812
11813 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11814 conditionals. Don't check enable_font_backend. Delete all codes
11815 used only when USE_FONT_BACKEND is not defined.
11816 (handle_auto_composed_prop): Do nothing if it->f is not on a
11817 window system. Check how many following characters can be
11818 displayed by the same font.
11819 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11820 'struct font *'.
11821 (get_char_face_and_encoding): Assign the whole encoding task to
11822 the `encode-char' method of a font driver.
11823 (fill_composite_glyph_string): Adjusted for the change of `struct
11824 face' and `struct glyph_string'.
11825 (fill_glyph_string): Likewise.
11826 (get_per_char_metric): Arguments changed.
11827 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11828 and `struct glyph_string'.
11829 (produce_stretch_glyph, calc_line_height_property)
11830 (x_produce_glyphs): Likewise.
11831
11832 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11833 conditionals. Don't check enable_font_backend. Delete all codes
11834 used only when USE_FONT_BACKEND is not defined. Use
11835 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11836 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11837 (Qp): Extern them.
11838 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11839 Deleted.
11840 (struct font_name): Deleted.
11841 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11842 (compare_fonts_by_sort_order): New function.
11843 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11844 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11845 Deleted.
11846 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11847 compare_fonts_by_sort_order.
11848 (Fx_font_family_list): Call Ffont_family_list.
11849 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11850 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11851 (face_symbolic_slant, face_symbolic_swidth)
11852 (split_font_name_into_vector, build_font_name_from_vector)
11853 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11854 (font_rescale_ratio, split_font_name, build_font_name)
11855 (free_font_names, sort_fonts, x_face_list_fonts)
11856 (face_font_available_p, sorted_font_list, cmp_font_names)
11857 (font_list_1, concat_font_list, font_list, remove_duplicates):
11858 Deleted.
11859 (Fx_list_fonts): Use Ffont_list.
11860 (LFACE_AVGWIDTH): Deleted.
11861 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11862 by FONTP.
11863 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11864 (set_lface_from_font_name): Delete it.
11865 (set_lface_from_font): Renamed from
11866 set_lface_from_font_and_fontset. Caller changed. Don't set
11867 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11868 for face.
11869 (merge_face_vectors): Copy font-spec if necessary.
11870 Clear properties of the font-spec if necessary.
11871 (merge_face_ref): Clear properties of the font-spec if necessary.
11872 (Finternal_set_lisp_face_attribute): Likewise.
11873 (set_font_frame_param): Use font_load_for_lface to load a
11874 font-object, and call Fmodify_frame_parameters with it.
11875 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11876 font name by Ffont_xlfd_name.
11877 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11878 QCslant, and QCwidth.
11879 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11880 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11881 Compare fonts by EQ.
11882 (lookup_non_ascii_face): Deleted.
11883 (face_for_font): The 2nd argument changed.
11884 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11885 Check atomic font properties by case insensitive.
11886 (realize_non_ascii_face): Set face->overstrike correctly.
11887 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11888 (dump_realized_face): Get font name from
11889 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11890
11891 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11892 conditionals. Don't check enable_font_backend. Delete all codes
11893 used only when USE_FONT_BACKEND is not defined.
11894 (xic_create_xfontset): Original code deleted and renamed from
11895 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11896 (x_make_gc): Don't set GCFont in GCs.
11897 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11898 opened by "fixed".
11899 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11900 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11901 get_font_repertory_func.
11902
11903 * xfont.c: Include <stdlib.h> and "ccl.h".
11904 (struct xfont_info): New structure.
11905 (xfont_query_font): Deleted.
11906 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11907 moved from xterm.c.
11908 (xfont_driver): Adjusted for the change of struct font_driver.
11909 (compare_font_names): New function.
11910 (xfont_list_pattern): Sort font names case insensitively. Make
11911 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11912 (xfont_list): Return a list, not vector.
11913 (xfont_match): If the font doesn't have QCname property, generate
11914 a name from the other font properties.
11915 (xfont_open): Return a font-object. Adjusted for the change of
11916 struct font. Get underline_thickness and underline_position from
11917 font property. Don't update dpyinfo->smallest_font_height and
11918 dpyinfo->smallest_char_width.
11919 (xfont_close): Don't free struct font.
11920 (xfont_prepare_face): Adjusted for the change of struct font.
11921 (xfont_done_face): Deleted.
11922 (xfont_has_char): Adjusted for the change of struct font.
11923 (xfont_encode_char, xfont_draw): Likewise.
11924 (xfont_check): New function.
11925
11926 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11927 callback function.
11928 (xftfont_match): Adjusted for the format change of font-entity.
11929 (xftfont_open): Adjusted for the format change of font-entity and
11930 font-object. Adjusted for the change of struct font. Return a
11931 font-object. Don't update dpyinfo->smallest_font_height and
11932 dpyinfo->smallest_char_width.
11933 (xftfont_close): Block input while calling XftFontClose.
11934 (xftfont_prepare_face): Don't block input while calling
11935 xftfont_get_colors. Adjusted for the change of struct font.
11936 (xftfont_shape): Return value of error case fixed.
11937
11938 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11939
11940 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11941 conditionals.
11942 (FONT_WIDTH): Return (f)->max_width.
11943 (struct x_display_info): Delete member `font'.
11944 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11945 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11946 (struct x_output): Change type of `font' to `struct font *'.
11947
11948 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11949 conditionals. Don't check enable_font_backend. Delete all codes
11950 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11951 (x_per_char_metric, x_encode_char): Deleted.
11952 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11953 (x_compute_glyph_string_overhangs): Adjusted for the change of
11954 `struct face'.
11955 (x_draw_glyph_string_foreground)
11956 (x_draw_composite_glyph_string_foreground): Likewise.
11957 (x_draw_glyph_string): Likewise. Use font->underline_position and
11958 font->underline_thickness.
11959 (x_new_font): Renamed from x_new_fontset2.
11960 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11961 (x_check_font): Call `check' method of a font driver.
11962 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11963 (x_query_font, x_get_font_repertory): Deleted.
11964 (x_find_ccl_program): Renamed and moved to xfont.c.
11965 (x_redisplay_interface): Adjusted for the change of `struct
11966 redisplay_interface'.
11967
11968 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11969 conditionals. Don't check enable_font_backend. Delete all codes
11970 used only when USE_FONT_BACKEND is not defined. Surround non-used
11971 code by "#ifdef OLD_FONT" and "endif".
11972 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11973
11974 * w32font.h (struct w32font_info): New member.
11975 (FONT_COMPAT): New macro.
11976 (w32font_open_internal): Prototype adjusted.
11977
11978 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11979 OLD_FONT" and "endif".
11980
11981 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11982 conditionals. Don't check enable_font_backend. Delete all codes
11983 used only when USE_FONT_BACKEND is not defined.
11984 (w32font_open): Return a font-object. Make a font-object by
11985 font_make_object. Adjusted for the change of struct w32font_info.
11986 (w32font_close): Don't free struct font. Adjusted for the change
11987 of struct w32font_info.
11988 (w32font_encode_char, w32font_text_extents, w32font_draw):
11989 Adjusted for the change of struct w32font_info.
11990 (w32font_draw): Likewise.
11991 (w32font_list_internal): Return a list, not vector.
11992 (w32font_open_internal): Change the 4th arg to font-object.
11993 Adjusted for the change of struct w32font_info and font-object format.
11994 (add_font_name_to_list): Don't downcase names.
11995 (w32_enumfont_pattern_entity): Make a font-entity by
11996 font_make_entity. Adjusted for the format change of font-entity.
11997 Use FONT_SET_STYLE to set a style-related font property. If a
11998 font is scalable, set avgwidth property to 0. Set font-entity
11999 property by font_put_extra.
12000 (font_matches_spec): Adjusted for the format change of font-entity.
12001 (w32_weight_table, w32_decode_weight): New variables.
12002 (w32_encode_weight): New function.
12003 (fill_in_logfont): Adjusted for the format change of font-spec.
12004 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
12005 weight value.
12006 (w32font_driver): Adjusted for the change of struct font_driver.
12007
12008 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
12009 conditionals. Don't check enable_font_backend. Surround non-used
12010 code by "#ifdef OLD_FONT" and "endif".
12011 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
12012 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
12013
12014 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
12015 conditionals. Don't check enable_font_backend. Delete all codes
12016 used only when USE_FONT_BACKEND is not defined. Surround non-used
12017 code by "#ifdef OLD_FONT" and "endif".
12018
12019 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
12020 (uniscribe_open): Return value changed to font-object.
12021 Adjusted for the format change of font-object.
12022 (uniscribe_otf_capability): Adjusted for the change of struct font.
12023 (add_opentype_font_name_to_list): Don't downcase names.
12024 (uniscribe_font_driver): Adjusted for the change of struct
12025 font_driver.
12026
120272008-05-13 Chong Yidong <cyd@stupidchicken.com>
12028
12029 * dispnew.c (update_frame_1): Check if tty output is still valid
12030 before flushing it.
12031
120322008-05-13 Jan Djärv <jan.h.d@swipnet.se>
12033
12034 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
12035 to Gtk+ menus.
12036
120372008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
12038
12039 * dired.c (file_name_completion): Tweak the code so as to always do it
12040 in a single pass. Tighten the scope of some variables.
12041
12042 * dired.c (Qdefault_directory): New var.
12043 (file_name_completion): Use it instead of Fexpand_file_name.
12044 (syms_of_dired): Initialize it.
12045
120462008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
12047
12048 * fileio.c (double_dollars): Remove dead code.
12049
120502008-05-10 Eli Zaretskii <eliz@gnu.org>
12051
12052 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
12053 Mention w32-get-true-file-attributes in doc string.
12054
12055 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
12056
120572008-05-09 Glenn Morris <rgm@gnu.org>
12058
12059 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
12060 2008-04-23.
12061
120622008-05-09 Eli Zaretskii <eliz@gnu.org>
12063
12064 Support for reporting owner and group of each file on MS-Windows:
12065 * dired.c (stat_uname, stat_gname): New functions, with special
12066 implementation for w32.
12067 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
12068
12069 * w32.c: Rename the_passwd_* to dflt_passwd_*.
12070 (dflt_group_name): New static variable.
12071 (dflt_group): Rename from the_group.
12072 (init_user_info): Init dflt_group fields. Get user's group name
12073 from LookupAccountSid.
12074 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
12075 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
12076 New initialization states.
12077 (globals_of_w32): Initialize them to zero. Initialize the default
12078 group name to "None".
12079 (GetFileSecurity_Name): New global var, the name of the function
12080 to call for GetFileSecurity.
12081 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
12082 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
12083 (get_file_security, get_security_descriptor_owner)
12084 (get_security_descriptor_group, is_valid_sid)
12085 (get_file_security_desc, get_rid, get_name_and_id)
12086 (get_file_owner_and_group): New functions.
12087 (stat): Use get_file_security_desc and get_file_owner_and_group to
12088 report the owner and primary group of each file. Don't ignore the
12089 high 32 bits of file's size, now that st_size is 64-bit wide.
12090 Fix test when to get true file attributes.
12091 (init_user_info): Use get_rid instead of equivalent inline code.
12092 (fstat): Don't ignore the high 32 bits of file's size.
12093
120942008-05-09 Chong Yidong <cyd@stupidchicken.com>
12095
12096 * image.c (png_load): Use correct bit-depth for setting background
12097 color.
12098
120992008-05-08 Eli Zaretskii <eliz@gnu.org>
12100
12101 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
12102 epa-hook.elc.
12103
121042008-05-08 Juanma Barranquero <lekktu@gmail.com>
12105
12106 * font.c (Ffont_match_p): Don't use `iff' in docstring.
12107
121082008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
12109
12110 * macfns.c (Fx_create_frame): Make a copy of frame parameters
12111 because the original parameters are in pure storage now.
12112 (mac_window): Remove unused params. Update callers.
12113
121142008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12115
12116 * lread.c (substitute_object_recurse): Use lower-level primitives.
12117 Don't signal errors when traversing sub-char-tables.
12118 Don't loop over all the possible characters when traversing char-tables.
12119
12120 * print.c (print_preprocess): Add sub-char-tables to the print-table,
12121 just like we do in print.c.
12122
121232008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
12124
12125 * minibuf.c (Ftry_completion): Remove code left over from when we used
12126 scmp instead of Fcompare_strings.
12127
121282008-05-04 Juanma Barranquero <lekktu@gmail.com>
12129
12130 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
12131
121322008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12133
12134 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
12135 Create bitmap context in native byte order.
12136
12137 * macterm.c (XDrawLine)
12138 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
12139 context in native byte order.
12140
121412008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12142
12143 * config.in: Regenerate.
12144
12145 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
12146 New definitions for Image I/O support.
12147 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12148 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
12149 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12150 (mac_data_provider_release_data, image_load_image_io)
12151 [USE_MAC_IMAGE_IO]: New functions.
12152 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
12153 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
12154 (init_image_func_pointer) [MAC_OSX]: Remove function.
12155 (image_load_quartz2d) [MAC_OSX]: Check availability of
12156 CGImageCreateWithPNGDataProvider at compile time.
12157 Use lowercase `false' for boolean constant.
12158 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
12159 Use image_load_image_io.
12160 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
12161 Don't check MyCGImageCreateWithPNGDataProvider.
12162 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
12163 Don't call init_image_func_pointer.
12164
12165 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
12166
12167 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
12168 Make variable non-static.
12169 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
12170 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12171
12172 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
12173 (RED_FROM_ULONG): Mask off higher bits.
12174 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
12175
12176 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
12177 Include AvailabilityMacros.h.
12178 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
12179 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
12180
121812008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
12182
12183 * chartab.c (Fset_char_table_range): If range is t, really set all
12184 chars to that value.
12185
121862008-05-03 Eli Zaretskii <eliz@gnu.org>
12187
12188 * dired.c (Ffile_attributes): Don't allow the device number become
12189 negative.
12190
121912008-05-02 Daiki Ueno <ueno@unixuser.org>
12192
12193 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
12194
121952008-05-02 Juri Linkov <juri@jurta.org>
12196
12197 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
12198 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
12199 DEFAULT argument as a list of default values in docstrings.
12200
122012008-05-01 Chong Yidong <cyd@stupidchicken.com>
12202
12203 * puresize.h (BASE_PURESIZE): Increase to 1210000.
12204
122052008-05-01 Martin Rudalics <rudalics@gmx.at>
12206
12207 * dispnew.c (change_frame_size_1): Preserve small windows when
12208 shrinking frames by calling set_window_height|width with third
12209 arg 2.
12210
12211 * window.h (struct window): Replace field too_small_ok by field
12212 resize_proportionally.
12213
12214 * window.c (make_window): Initialize resize_proportionally.
12215 (enlarge_window): Temporarily set resize_proportionally to make
12216 sure that shrink_windows does scale the window proportionally.
12217 (shrink_windows): When window has resize_proportionally set try
12218 to shrink it proportionally by stealing from other windows.
12219 (struct saved_window, Fset_window_configuration)
12220 (compare_window_configurations): Handle resize_proportionally.
12221 (WINDOW_TOTAL_SIZE): New macro.
12222 (window_min_size, shrink_windows, size_window): Use it.
12223 (check_min_window_sizes): Remove. Invalid values of
12224 window-min-height|width are handled by window_min_size_2 now.
12225 (size_window, Fsplit_window, enlarge_window)
12226 (adjust_window_trailing_edge, grow_mini_window): Don't call
12227 check_min_window_sizes.
12228 (window_min_size_2, window_min_size_1, window_min_size):
12229 New argument safe_p for retrieving "safe" minimum sizes.
12230 (Fdisplay_buffer, Fsplit_window, enlarge_window)
12231 (adjust_window_trailing_edge, grow_mini_window):
12232 Adjust arguments of window_min_size... functions.
12233 (shrink_windows): Argument min_size removed. New argument
12234 safe_p allows shrinking windows to their safe minimum sizes.
12235 Calculate minimum size and decide whether a window shall be
12236 deleted for each window individually.
12237 (size_window): When nodelete_p equals 2, tell shrink_windows to
12238 delete windows only if their new minimum size is no more safe.
12239 (shrink_window_lowest_first): Call window_min_size_1 to make
12240 sure to preserve modeline of bottom-most window when resizing
12241 the minibuffer.
12242 (Fset_window_configuration, Fcurrent_window_configuration)
12243 (compare_window_configurations): Do not handle
12244 window-min-height|width any more.
12245 (syms_of_window): Clarify window-min-height|width doc-strings.
12246
122472008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
12248
12249 * dired.c (file_name_completion): Fix up the encoding/decoding issue
12250 some more. Copy some of the code from Ftry_completions.
12251 Remove special case code that dates back to initial revision when the
12252 slash was only added when necessary and that can't trigger nowadays.
12253
122542008-04-27 Kenichi Handa <handa@m17n.org>
12255
12256 * font.c (font_prop_validate): Signal `error' instead of `font'.
12257
122582008-04-29 Jason Rumney <jasonr@gnu.org>
12259
12260 * w32fns.c (Fw32_battery_status): New defun.
12261 (syms_of_w32fns): Defsubr it.
12262
122632008-04-28 Andreas Schwab <schwab@suse.de>
12264
12265 * dired.c (file_name_completion): Fix another mixing of encoded
12266 and decoded names.
12267
122682008-04-28 Juanma Barranquero <lekktu@gmail.com>
12269
12270 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
12271
122722008-04-27 Juanma Barranquero <lekktu@gmail.com>
12273
12274 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
12275
122762008-04-27 Andreas Schwab <schwab@suse.de>
12277
12278 * dired.c (file_name_completion): Fix inappropriate mixing of
12279 encoded and decoded names.
12280
12281 * xterm.c (XTread_socket): Fix use of uninitialized variable.
12282
12283 * puresize.h (BASE_PURESIZE): Increase to 1200000.
12284
122852008-04-26 Eli Zaretskii <eliz@gnu.org>
12286
12287 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
12288 2008-03-31, it's not needed anymore with `struct stat' definition
12289 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
12290 for the same reasons.
12291
122922008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
12293
12294 * m/sparc.h: Additional redefinitions for GNU/Linux.
12295
122962008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12297
12298 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
12299 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
12300 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
12301 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
12302 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12303 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
12304 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12305 Likewise.
12306
12307 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
12308 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
12309 (mac_ax_number_of_characters): Add externs.
12310 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12311 [USE_MAC_TSM]: Likewise.
12312 (mac_handle_text_input_event) [MAC_OSX]:
12313 Handle kEventTextInputOffsetToPos for no active input area case.
12314 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12315 (mac_handle_document_access_event)
12316 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
12317 (install_application_handler) [MAC_OSX]: Register handlers for
12318 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12319 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12320 Register mac_handle_document_access_event.
12321
12322 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
12323 Make functions non-static.
12324
123252008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
12326
12327 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
12328 (read_file_name_completion_ignore_case, insert_default_directory)
12329 (Qdefault_directory): Move to minibuffer.el.
12330 (Fread_file_name): Call the new `read-file-name' instead.
12331
123322008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12333
12334 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
12335 Make function non-static.
12336 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
12337 Remove function.
12338 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12339 Move to mactoolbox.c.
12340 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
12341
12342 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
12343 (mac_rect_make): New macro.
12344
12345 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
12346 instead of float.
12347 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12348 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
12349 (XSetBackground) [USE_CG_DRAWING]: Likewise.
12350 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
12351 CGRectMake.
12352 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12353 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
12354 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
12355 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12356 instead of WindowRef in argument type.
12357 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
12358 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
12359 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
12360 instead of DISPLAY. All uses changed.
12361 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
12362 (x_calc_absolute_position): Simplify so as not to use
12363 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
12364
12365 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12366 instead of WindowRef in argument type.
12367 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
12368 [TARGET_API_MAC_CARBON]: Remove externs.
12369 (create_apple_event, mac_event_parameters_to_lisp)
12370 [TARGET_API_MAC_CARBON]: Add externs.
12371
12372 * mactoolbox.c (Vmac_ts_script_language_on_focus)
12373 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
12374 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
12375 is clicked.
12376 (x_activate_menubar): Remove extern for saved_menu_event_location.
12377 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12378 Move from mac.c.
12379
123802008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12381
12382 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
12383 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
12384
123852008-04-23 Jason Rumney <jasonr@gnu.org>
12386
12387 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
12388 attributes only for local files.
12389
12390 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
12391 default to Qlocal.
12392
123932008-04-22 Juri Linkov <juri@jurta.org>
12394
12395 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
12396 read-buffer-to-switch instead of using the letter "B".
12397
123982008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
12399
12400 * fileio.c (Qdefault_directory): New variable.
12401 (Fread_file_name): Use it to pass `dir' to the completion functions.
12402
124032008-04-20 Chong Yidong <cyd@stupidchicken.com>
12404
12405 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
12406
124072008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
12408
12409 * keyboard.c (Vpre_help_message): Remove.
12410 (show_help_echo): Remove default C code.
12411
12412 * dired.c (directory_files_internal, file_name_completion):
12413 Only call ENCODE_FILE if the string is indeed decoded.
12414
124152008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12416
12417 * Makefile.in (TOOLKIT_DEFINES): Remove.
12418 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
12419
124202008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12421
12422 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
12423 (mactoolbox.o): New target.
12424
12425 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
12426 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
12427
12428 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
12429 Use mac_set_frame_window_background instead of XSetWindowBackground.
12430 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
12431 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
12432 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
12433 instead of SetWindowTitleWithCFString.
12434 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
12435 Move function to mactoolbox.c.
12436 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
12437 Use mac_set_window_modified instead of SetWindowModified.
12438 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
12439 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
12440 (Fx_focus_frame): Use mac_front_non_floating_window instead of
12441 FrontNonFloatingWindow. Use mac_activate_window instead of
12442 ActivateWindow. Use mac_active_non_floating_window instead of
12443 ActiveNonFloatingWindow.
12444 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
12445 Use mac_show_hourglass and mac_hide_hourglass.
12446 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
12447 instead of GetGlobalMouse.
12448 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
12449 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
12450 Use mac_bring_window_to_front instead of BringToFront.
12451 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
12452 mactoolbox.c.
12453 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
12454 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
12455 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
12456 mactoolbox.c.
12457
12458 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
12459 (XtPointer): Move typedef from macmenu.c.
12460 (enum button_type): Move enum from macmenu.c.
12461 (widget_value): Move typedef from macmenu.c.
12462 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
12463 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12464 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12465 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12466 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12467 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12468 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12469 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
12470 (Selection): Move typedef from macselect.c.
12471 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
12472 macterm.c.
12473 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
12474 (mac_is_window_collapsed, mac_bring_window_to_front)
12475 (mac_send_window_behind, mac_hide_window, mac_show_window)
12476 (mac_collapse_window, mac_front_non_floating_window)
12477 (mac_active_non_floating_window, mac_activate_window)
12478 (mac_move_window_structure, mac_move_window, mac_size_window)
12479 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
12480
12481 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
12482 (enum mac_menu_kind): Move enum to mactoolbox.c.
12483 (min_menu_id): Move variable to mactoolbox.c.
12484 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
12485 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
12486 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12487 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12488 [TARGET_API_MAC_CARBON]: Likewise.
12489 (XtPointer): Move typedef to macgui.h.
12490 (enum button_type): Move enum to macgui.h.
12491 (widget_value): Move typedef to macgui.h.
12492 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12493 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12494 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12495 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12496 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12497 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12498 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
12499 (popup_activated_flag): Make variable non-static.
12500 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
12501 (add_menu_item, fill_menu, dispose_menus):
12502 Move functions to mactoolbox.c.
12503 (restore_show_help_function, menu_target_item_handler)
12504 (install_menu_target_item_handler, mac_handle_dialog_event)
12505 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
12506 [TARGET_API_MAC_CARBON]: Likewise.
12507 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
12508 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12509 (find_and_call_menu_selection, name_is_separator): Make function
12510 non-static.
12511 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
12512 to mactoolbox.c.
12513 (set_frame_menubar): Don't call install_menu_quit_handler.
12514 (menu_item_selection): New variable.
12515 (mac_menu_show): Use create_and_show_popup_menu.
12516 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
12517 selection but set variable menu_item_selection. All uses changed.
12518 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
12519 Call install_menu_quit_handler. Move to mactoolbox.c.
12520
12521 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
12522 (Selection): Move typedef to macgui.h.
12523 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
12524 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
12525 Make variables non-static.
12526 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12527 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
12528 Make functions non-static.
12529 (Vmac_service_selection) [MAC_OSX]: Likewise.
12530 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
12531 (mac_valid_selection_target_p, mac_clear_selection)
12532 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12533 (mac_put_selection_value, mac_selection_has_target_p)
12534 (mac_get_selection_value, mac_get_selection_target_list)
12535 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
12536 Move functions to mactoolbox.c.
12537 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
12538 Likewise.
12539 (copy_scrap_flavor_data, mac_handle_service_event)
12540 (install_service_handler) [MAC_OSX]: Likewise.
12541 (syms_of_macselect) <Vmac_dnd_known_types>:
12542 Use mac_dnd_default_known_types.
12543
12544 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
12545 Move to mactoolbox.c.
12546 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12547 (Fx_selection_owner_p): Add EXFUN.
12548 (install_window_handler, remove_window_handler, XSetWindowBackground):
12549 Remove externs.
12550 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12551 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12552 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12553 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12554 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12555 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12556 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12557 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12558 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12559 (create_and_show_popup_menu, mac_get_selection_from_symbol)
12560 (mac_valid_selection_target_p, mac_clear_selection)
12561 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12562 (mac_put_selection_value, mac_selection_has_target_p)
12563 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12564 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12565 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12566 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12567 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12568 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12569 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12570 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12571 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12572
12573 * mactoolbox.c: New file.
12574
125752008-04-18 Jason Rumney <jasonr@gnu.org>
12576
12577 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12578
125792008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12580
12581 * character.c (Fmultibyte_char_to_unibyte):
12582 Return latin1 chars unchanged.
12583
12584 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12585 relocated if it points to `name'.
12586
125872008-04-17 Kenichi Handa <handa@m17n.org>
12588
12589 * data.c (Faset): Allow setting a multibyte character in an
12590 ASCII-only unibyte string.
12591
12592 * lisp.h (STRING_SET_MULTIBYTE): New macro.
12593
125942008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
12595
12596 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12597 done in config.h.
12598
125992008-04-16 Juanma Barranquero <lekktu@gmail.com>
12600
12601 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12602 (Fchar_direction): Add usage in the docstring.
12603
126042008-04-15 Chong Yidong <cyd@stupidchicken.com>
12605
12606 * keyboard.c (read_key_sequence): Remove always-true checks.
12607
126082008-04-14 Jason Rumney <jasonr@gnu.org>
12609
12610 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12611 compatibility struct, for better underline positioning.
12612
126132008-04-13 David Hansen <david.hansen@gmx.net>
12614
12615 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12616 string.
12617
126182008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12619
12620 * m/hp800.h (XUINT, XSET): Remove.
12621
126222008-04-12 Juanma Barranquero <lekktu@gmail.com>
12623
12624 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12625 previous change.
12626
126272008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12628
12629 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12630 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12631
126322008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12633
12634 * keymap.h (map_keymap_canonical): Declare.
12635 * xmenu.c (single_keymap_panes): Use it.
12636
126372008-04-11 Glenn Morris <rgm@gnu.org>
12638
12639 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12640 set the target's value to that of the alias.
12641
126422008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12643
12644 * term.c (set_tty_color_mode): Left over typo.
12645
126462008-04-10 Michael Albinus <michael.albinus@gmx.de>
12647
12648 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12649 only after check for file name handler functions. Signal, when
12650 native functionality is not supported.
12651 (syms_of_fileio): Declare it unconditionally.
12652
126532008-04-10 Jason Rumney <jasonr@gnu.org>
12654
12655 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12656 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12657
12658 * w32.c (logon_network_drive): Also logon to remote drives that
12659 are mapped to drive letters.
12660
126612008-04-10 Glenn Morris <rgm@gnu.org>
12662
12663 * xdisp.c (truncate-partial-width-windows): Doc fix.
12664
126652008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12666
12667 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12668 Move functions to minibuffer.el.
12669 (syms_of_fileio): Don't declare them.
12670
126712008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12672
12673 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12674 (syms_of_minibuf): Remove its initialization.
12675
12676 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12677
126782008-04-09 Juanma Barranquero <lekktu@gmail.com>
12679
12680 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12681
126822008-04-09 Jason Rumney <jasonr@gnu.org>
12683
12684 * makefile.w32-in (distclean): Delete makefile too.
12685 (maintainer-clean): New target.
12686
12687 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12688
12689 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12690 for new font backend and composite cases.
12691
126922008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12693
12694 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12695 Most of the code moved to run_timers.
12696 (do_pending_atimers): Call run_timers.
12697 (run_timers): New function.
12698
12699 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12700 run atimers.
12701
12702 * process.c (wait_reading_process_output): The same as above.
12703
127042008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12705
12706 * minibuf.c (last_exact_completion): Remove variable.
12707 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12708 (complete_and_exit_1, complete_and_exit_2)
12709 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12710 (Fdisplay_completion_list, display_completion_list_1)
12711 (Fminibuffer_completion_help, Fself_insert_and_exit)
12712 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12713 minibuffer.el.
12714 (syms_of_minibuf): Remove corresponding initializations.
12715
12716 * keyboard.c (Qdeactivate_mark): New var.
12717 (command_loop_1): Use it to call `deactivate-mark'.
12718 (syms_of_keyboard): Initialize it.
12719
12720 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12721 to another frame.
12722 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12723 Don't call set_tty_color_mode.
12724 (store_frame_param): Reset previous_frame rather than call
12725 set_tty_color_mode.
12726 * term.c (set_tty_color_mode): Rewrite.
12727 * dispextern.h (set_tty_color_mode): New type.
12728 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12729
127302008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12731
12732 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12733 for generic chars, which do not exist any more in emacs-unicode.
12734
127352008-04-08 Michael Albinus <michael.albinus@gmx.de>
12736
12737 * coding.c (detect_coding_emacs_mule)
12738 (Ffind_operation_coding_system): Fix typo.
12739
127402008-04-08 Jason Rumney <jasonr@gnu.org>
12741
12742 * w32uniscribe.c (SNAME): Extract only symbol name.
12743
12744 * w32font.h (struct w32_metric_cache): New struct.
12745 (w32font_info): Use it.
12746 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12747 (CACHE_BLOCKSIZE): New constants.
12748
12749 * w32font.c (Qja, Qko, Qzh): New symbols.
12750 (syms_of_w32font): Initialise them.
12751 (font_matches_spec): Use them to filter by language.
12752 (recompute_cached_metrics): Remove function.
12753 (compute_metrics, clear_cached_metrics): New functions.
12754 (w32font_encode_char): Use them to manage metric cache.
12755 (w32font_text_extents): Cache metrics for all glyphs on demand.
12756 Delay converting glyph indices to WORD until needed.
12757 (w32font_open_internal): Initialize metric cache to empty.
12758 (registry_to_w32_charset): Charset should always be a symbol.
12759 (fill_in_logfont, list_all_matching_fonts): Family should
12760 always be a symbol.
12761
127622008-04-06 Jason Rumney <jasonr@gnu.org>
12763
12764 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12765 Give up if glyph indices not supported. Use uniscribe obtained
12766 ABC widths for individual metrics. Map glyph clusters back to
12767 characters using fClusterStart flag. Return number of glyphs
12768 produced, not chars processed.
12769 (uniscribe_shape): Map char at FROM to current glyph.
12770
127712008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12772
12773 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12774 Use SetMenuItemHierarchicalMenu.
12775
127762008-04-05 Jason Rumney <jasonr@gnu.org>
12777
12778 * image.c (pbm_load): Allow color values up to 65535.
12779 Throw an error if max_color_idx is outside the supported range.
12780 Report an error when image size is invalid.
12781 Read two bytes at a time when raw images have max_color_idx above 255.
12782
127832008-04-05 Eli Zaretskii <eliz@gnu.org>
12784
12785 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12786 cFileName a file name that includes `?' characters, use the 8+3
12787 alias in cAlternateFileName instead.
12788
127892008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12790
12791 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12792 append "CCL: Quitted" when the CCL program is quitted.
12793 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12794
12795 * ccl.h (struct ccl_program): New member quit_silently.
12796
127972008-04-05 Chong Yidong <cyd@stupidchicken.com>
12798
12799 * search.c (compile_pattern_1): Treat non-nil and non-string of
12800 search-spaces-regexp as nil.
12801
12802 * minibuf.c (Fassoc_string): Tweak docstring.
12803
128042008-04-05 Eli Zaretskii <eliz@gnu.org>
12805
12806 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12807 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12808 2008-03-14 to force inode be positive.
12809
12810 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12811 _S_* ones, since we now use our own sys/stat.h.
12812 (stat, fstat): Don't mangle the inode number.
12813 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12814
128152008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12816
12817 * frame.h (struct frame): Give one more bit to `visible' since we use
12818 values larger than 1 to indicate obscured frames on ttys.
12819
12820 * keymap.c (Qkeymap_canonicalize): New var.
12821 (Fmap_keymap_internal): New fun.
12822 (describe_map): Use keymap-canonicalize.
12823
12824 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12825 (Fundo_boundary): Set them.
12826 (syms_of_undo): Initialize them.
12827 (record_point): Use them instead of last_point_position*.
12828 (last_undo_buffer): Change type.
12829
128302008-04-04 Jason Rumney <jasonr@gnu.org>
12831
12832 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12833 (recompute_cached_metrics): Don't set ascent and descent per char.
12834
12835 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12836 (uniscribe_check_otf): Add GC protection before consing.
12837 Rearrange loop for counting features.
12838
128392008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12840
12841 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12842 buffer with byte-size of source buffer.
12843
128442008-04-03 Chong Yidong <cyd@stupidchicken.com>
12845
12846 * callint.c (Fcall_interactively): Handle temporary region even
12847 when shift-select-mode is off.
12848
128492008-04-03 Jason Rumney <jasonr@gnu.org>
12850
12851 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12852
128532008-04-03 Kenichi Handa <handa@m17n.org>
12854
12855 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12856 (CATEGORY_MASK_UTF_16): Likewise.
12857 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12858 binary file.
12859 (detect_coding): Add null-byte detection for a binary file.
12860 (detect_coding_system): Likewise.
12861
128622008-04-03 Jason Rumney <jasonr@gnu.org>
12863
12864 * w32uniscribe.c: New file.
12865
12866 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12867
12868 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12869
12870 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12871 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12872 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12873 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12874 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12875 (Qphonetic): New symbols.
12876 (syms_of_w32font): Initialize them.
12877 (font_supported_scripts): Use them.
12878 (w32font_list_family): List all charsets.
12879 (w32font_text_extents, recompute_cached_metrics): Fix metric
12880 calculations.
12881 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12882 Give opentype fonts their own format.
12883 (font_matches_spec): New arguments backend and logfont.
12884 Handle :otf spec for uniscribe backend.
12885 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12886 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12887
12888 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12889 font backend.
12890 (globals_of_w32fns): Initialize uniscribe font backend.
12891
12892 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12893 dependencies.
12894 (w32uniscribe.$(O)): New file to build.
12895 (FONT_OBJ): Include w32uniscribe.$(O).
12896 (LIBS): Add uniscribe libraries.
12897
12898 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12899
129002008-04-02 Chong Yidong <cyd@stupidchicken.com>
12901
12902 * callint.c (Vshift_select_mode): New var.
12903 (Finteractive): Document new ^ spec.
12904 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12905 is present.
12906
12907 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12908 (command_loop_1): Avoid running the direct display versions of
12909 forward-char and backward-char if shift-selection may occur.
12910 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12911 shift-translation takes place.
12912
12913 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12914 avoid clobbering by define-minor-mode.
12915
12916 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12917 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12918
12919 * syntax.c (Fforward_word): Add ^ interactive spec.
12920
12921 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12922 (Fscroll_right): Add ^ interactive spec.
12923
129242008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12925
12926 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12927
12928 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12929
12930 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12931
129322008-03-31 Juri Linkov <juri@jurta.org>
12933
12934 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12935
129362008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12937
12938 * gtkutil.c (xg_set_geometry): Fix indentation.
12939 (xg_resize_outer_widget): Remove.
12940 (x_wm_size_hint_off): Fix indentation.
12941 (xg_frame_set_char_size): Call flush_and_sync after
12942 gtk_window_resize.
12943 (x_wm_set_size_hint): Pass NULL as geometry window to
12944 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12945 Add menu bar and tool bar height to base height.
12946 (xg_update_frame_menubar, free_frame_menubar)
12947 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12948 (update_frame_tool_bar, free_frame_tool_bar):
12949 Change xg_resize_outer_widget to xg_frame_set_char_size.
12950
129512008-03-30 Michael Albinus <michael.albinus@gmx.de>
12952
12953 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12954 (Fdbus_call_method): New parameter TIMEOUT.
12955 (dbus-send-signal): Optimize UNGCPRO call.
12956
129572008-03-29 Juri Linkov <juri@jurta.org>
12958
12959 * window.c (Fdisplay_buffer): Move call to
12960 Vsplit_window_preferred_function out of conditions that check
12961 if window is eligible for vertical splitting.
12962 When Vsplit_window_preferred_function is non-nil, call it and use
12963 its non-nil return value as window. Otherwise, continue doing
12964 vertical splitting using Fsplit_window with arg horflag=nil.
12965 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12966 default value from `split-window' to nil.
12967
129682008-03-29 Juri Linkov <juri@jurta.org>
12969
12970 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12971 for interactive code letters 'b' and 'B'.
12972
129732008-03-29 Eli Zaretskii <eliz@gnu.org>
12974
12975 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12976 multibyte string.
12977
129782008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12979
12980 * keyboard.c (pending_funcalls): New var.
12981 (timer_check): Run it.
12982 (syms_of_keyboard): Initialize it.
12983 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12984 (Vdelete_terminal_functions): New vars.
12985 (syms_of_terminal): Initialize them.
12986 (Fdelete_terminal): Run delete-terminal-functions.
12987 * xdisp.c (safe_eval): Rewrite.
12988 (safe_call2): New fun.
12989 * frame.c (Qdelete_frame_functions): New var.
12990 (syms_of_frame): Initialize it.
12991 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12992 * lisp.h (safe_call2, pending_funcalls): Declare.
12993
129942008-03-28 Andreas Schwab <schwab@suse.de>
12995
12996 * indent.c (Fmove_to_column): Move declaration before statements.
12997
129982008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12999
13000 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
13001 (struct frame): Use bit fields for boolean vars.
13002
13003 * process.c (server_accept_connection): Simplify naming.
13004 (emacs_get_tty_pgrp): Use SDATA.
13005
13006 * coding.c (decode_coding_object): Fix last change.
13007
130082008-03-27 Jason Rumney <jasonr@gnu.org>
13009
13010 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
13011
130122008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
13013
13014 * charset.c (Fdefine_charset_internal): Change the way of
13015 registering charsets in Vcharset_order_list.
13016 (syms_of_charset): Make the charset `eight-bit' supplementary.
13017
130182008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
13019
13020 * regex.c (EXTEND_BUFFER): Change order of pointer addition
13021 operations, to avoid having the difference between pointers
13022 overflow.
13023
130242008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13025
13026 * indent.c (check_display_width): New fun.
13027 (scan_for_column): Use it.
13028
13029 * data.c (syms_of_data): Mark most-positive-fixnum and
13030 most-negative-fixnum as constants.
13031
13032 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
13033
13034 * indent.c (scan_for_column): Extract from current_column_1.
13035 Merge with the same code from Fmove_to_column.
13036 (current_column_1, Fmove_to_column): Use it.
13037
130382008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
13039
13040 * keymap.c (map_keymap_internal): New fun.
13041 (map_keymap): Use it.
13042 (Fmap_keymap_internal): New fun.
13043 (Fmap_keymap): Remove left-out test from before make_save_value.
13044
13045 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
13046
13047 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
13048 Use XCAR/XCDR.
13049
13050 * process.h (struct Lisp_Process): Remove filter_multibyte.
13051 * process.c (QCfilter_multibyte): Remove.
13052 (setup_process_coding_systems): Don't use filter_multibyte.
13053 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
13054 (read_process_output): Don't adjust multibyteness to filter_multibyte.
13055 (Fset_process_filter_multibyte): Change the coding-system to
13056 approximate the previous behavior.
13057 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
13058 coding-system.
13059
13060 * coding.c (decode_coding_object): When not decoding into a buffer,
13061 obey the coding system's preference of (uni|multi)byte.
13062
130632008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
13064
13065 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
13066 every char is changed and has a different byte-length.
13067 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
13068 Fix int -> EMACS_INT.
13069
130702008-03-23 David Hansen <david.hansen@gmx.net>
13071
13072 * dbusbind.c (xd_read_message): Remove extra copying of message
13073 strings. Check for NULL `interface' or `member'.
13074
130752008-03-22 Eli Zaretskii <eliz@gnu.org>
13076
13077 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13078 cFileName a file name that includes `?' characters, use the 8+3
13079 alias in cAlternateFileName instead.
13080
130812008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
13082
13083 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
13084
130852008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13086
13087 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
13088 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
13089 work on current_buffer only instead (that was already the case
13090 for some of the code anyway).
13091 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
13092 (temp_set_point, temp_set_point_both): Use EMACS_INT.
13093 (SET_PT, SET_PT_BOTH): Adjust.
13094 * intervals.h (set_point, temp_set_point, set_point_both)
13095 (temp_set_point_both): Remove redundant declarations.
13096
130972008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13098
13099 * fileio.c (Finsert_file_contents):
13100 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
13101 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
13102 when buffer != current_buffer anyway.
13103
131042008-03-20 Andreas Schwab <schwab@suse.de>
13105
13106 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
13107 as default.
13108
131092008-03-19 Jason Rumney <jasonr@gnu.org>
13110
13111 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
13112 (syms_of_w32fns): Initialize them.
13113 (HOURGLASS_ID): New constant.
13114 (x_window_to_frame): Don't check hourglass_window.
13115 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
13116 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
13117 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
13118 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
13119 Only change the cursor if hourglass is not active.
13120 (Fx_create_frame): Initialize frame's current_cursor.
13121 (hourglass_atimer): Remove.
13122 (hourglass_started): New function.
13123 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
13124 (show_hourglass): Adapt to w32, changing argument to frame.
13125
13126 * w32term.h (struct w32_output): Remove hourglass_window.
13127 Add current_cursor.
13128
13129 * eval.c (call_debugger, Fsignal):
13130 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
13131 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
13132 (Fexecute_extended_command, cancel_hourglass_unwind):
13133 * minibuf.c (read_minibuf):
13134 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
13135
131362008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
13137
13138 * window.c (run_funs): New fun.
13139 (run_window_configuration_change_hook): Use it to run the buffer-local
13140 and the global part of the hook.
13141
13142 * xdisp.c (format_mode_line_unwind_data): Add window argument.
13143 (unwind_format_mode_line): Restore selected window.
13144 (x_consider_frame_title, Fformat_mode_line): Set selected window.
13145
131462008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13147
13148 * editfns.c (Fchar_equal): Check they are valid characters.
13149
13150 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
13151
131522008-03-17 Andreas Schwab <schwab@suse.de>
13153
13154 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
13155 against a charset.
13156
13157 * lisp.h (Fbuffer_list): Declare.
13158
131592008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 13160
aac0c6e3
MR
13161 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
13162 handlebox_widget is != 0.
13163
131642008-03-16 Juri Linkov <juri@jurta.org>
13165
13166 * callint.c (Fcall_interactively): For interactive code letters
13167 'b' and 'B' put the buffer list into the list of default "future"
13168 values of the minibuffer.
13169
131702008-03-16 Andreas Schwab <schwab@suse.de>
13171
13172 * keyboard.c (read_key_sequence): Fix downcasing of letters with
13173 modifiers.
13174
13175 * regex.c (re_match_2_internal): Correct matching of a charset
13176 against latin-1 characters.
13177
131782008-03-16 Kenichi Handa <handa@m17n.org>
13179
13180 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
13181 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
13182 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
13183 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
13184 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
13185 CHAR_STRING_ADVANCE.
13186 (produce_chars): Fix for the case that the source and the
13187 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
13188 instead of CHAR_STRING_ADVANCE.
13189 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
13190 STRING_CHAR_ADVANCE.
13191
131922008-03-15 Andreas Schwab <schwab@suse.de>
13193
13194 * regex.c (re_match_2_internal): Correct matching of eight bit
13195 characters in unibyte strings.
13196
131972008-03-15 Martin Rudalics <rudalics@gmx.at>
13198
13199 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
13200 at end of range when it coincides with the end of the buffer.
13201
132022008-03-14 Eli Zaretskii <eliz@gnu.org>
13203
13204 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
13205
13206 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
13207
132082008-03-14 Jason Rumney <jasonr@gnu.org>
13209
13210 * editfns.c (initial_tz): New variable.
13211 (syms_of_editfns): Initialize it.
13212 (Fset_time_zone_rule): Set it when first called.
13213 Use it when TZSTRING is nil.
13214
13215 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
13216 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
13217 (monitor_from_point_fn, get_monitor_info_fn): New globals.
13218 (globals_of_w32fns): Initialize them.
13219 (compute_tip_xy): Use them to position tooltips.
13220
132212008-03-14 Glenn Morris <rgm@gnu.org>
13222
13223 * emacs.c (main): Revert previous change.
13224 (standard_args): Revert -internal-script back to -scriptload,
13225 and remove the long-option form.
13226
132272008-03-13 Glenn Morris <rgm@gnu.org>
13228
13229 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
13230 Remove option -enable-font-backend.
13231
132322008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
13233
13234 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
13235
132362008-03-11 Jan Djärv <jan.h.d@swipnet.se>
13237
13238 * xterm.c (x_connection_closed): For GTK: If this is the last
13239 terminal just exit without closing the display.
13240
132412008-03-11 Jason Rumney <jasonr@gnu.org>
13242
13243 * w32font.c (w32font_full_name): Use floor to round.
13244
f0131492 132452008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
13246
13247 * sound.c (alsa_configure): Declare vol at beginning of block.
13248
13249 * fontset.c (Ffontset_info): Remove extra semicolon.
13250
132512008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13252
13253 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
13254 size of resulting string.
13255
132562008-03-10 Jason Rumney <jasonr@gnu.org>
13257
13258 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
13259
132602008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13261
13262 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
13263 Don't pretend as if characters with display property haven't been
13264 consumed for string-replacing-string case.
13265
132662008-03-08 Kim F. Storm <storm@cua.dk>
13267
13268 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
13269 (get_next_display_element, next_element_from_string)
13270 (next_element_from_ellipsis, next_element_from_buffer): Use it.
13271
132722008-03-08 Andreas Schwab <schwab@suse.de>
13273
13274 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
13275
132762008-03-06 Jason Rumney <jasonr@gnu.org>
13277
13278 * w32font.c (w32_registry): Take font_type argument. Use ANSI
13279 when charset not specified. Only translate ANSI to unicode when
13280 font_type is truetype.
13281 (w32font_coverage_ok): New function.
13282 (add_font_entity_to_list): Use it to filter unsuitable fonts.
13283
132842008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
13285
13286 * lread.c (Fread_char): Resolve modifiers.
13287 (Fread_char_exclusive): Likewise.
13288
13289 * character.c (char_resolve_modifier_mask): New function.
13290 (char_string): Use char_resolve_modifier_mask.
13291 (Fchar_resolve_modifiers): New function.
13292 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
13293 function.
13294
132952008-03-04 Jason Rumney <jasonr@gnu.org>
13296
13297 * makefile.w32-in: Always include w32font.c in the build.
13298 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
13299
133002008-03-04 Andreas Schwab <schwab@suse.de>
13301
13302 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
13303 (versionclean): Likewise.
13304
133052008-03-04 Juanma Barranquero <lekktu@gmail.com>
13306
13307 * .cvsignore: Add oo.
13308
133092008-03-03 Andreas Schwab <schwab@suse.de>
13310
13311 * coding.c (decode_coding_object): Inhibit gap shrinking while
13312 decoding in place.
13313
133142008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
13315
13316 * w32term.c: Remove unused include "gnu.h".
13317 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
13318
13319 * gnu.h: Rename to ...
13320 * emacs-icon.h: ... this.
13321 * xterm.c: Use emacs-icon.h instead of gnu.h.
13322 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
13323
133242008-03-03 Juanma Barranquero <lekktu@gmail.com>
13325
13326 * w32font.c: Include math.h.
13327
133282008-03-03 Jason Rumney <jasonr@gnu.org>
13329
13330 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
13331 Compute options separately.
13332 (w32font_open_internal): Set glyph_idx before caching metrics.
13333
13334 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
13335 Define if system headers don't.
13336 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
13337 (w32font_encode_char): Don't declare here.
13338
13339 * w32font.c (Quniscribe, QCformat): New symbols.
13340 (syms_of_w32font): Define them.
13341 (w32font_has_char): Indicate uncertainty.
13342 (w32font_encode_char): Encode as glyph point. Make static.
13343 (recompute_cached_metrics): New function.
13344 (w32font_open_internal): Use it. Set font to use glyph points
13345 initially. Set format based on type of font.
13346 (w32font_text_extents, w32font_draw): Optionally use glyph points.
13347 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
13348 on it. Set format based on information available here.
13349 (add_font_entity_to_list): Identify backend based on opentype_only.
13350
133512008-03-02 Andreas Schwab <schwab@suse.de>
13352
13353 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
13354
13355 * coding.c (decode_coding_big5, produce_chars):
13356 Fix typos in last change.
13357
133582008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
13359
13360 * gnu.h: New icon.
13361
133622008-03-02 Kenichi Handa <handa@m17n.org>
13363
13364 * coding.c (decode_coding_utf_8): When eol-type of CODING is
13365 `dos', don't decode '\r' if that is the last in the source.
13366 (decode_coding_utf_16, decode_coding_emacs_mule)
13367 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13368 (decode_coding_raw_text, decode_coding_charset): Likewise.
13369 (produce_chars): Don't decode EOL here. Use EMACS_INT.
13370
133712008-03-01 Jason Rumney <jasonr@gnu.org>
13372
13373 * w32font.c (w32font_full_name): Report point size for scalable fonts.
13374
133752008-03-01 Kim F. Storm <storm@cua.dk>
13376
13377 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
13378
133792008-03-01 Jason Rumney <jasonr@gnu.org>
13380
13381 * w32font.c (w32font_full_name): New function.
13382 (w32font_open_internal): Use it.
13383
133842008-03-01 Kim F. Storm <storm@cua.dk>
13385
13386 * dispnew.c (line_draw_cost): Fix invalid glyph check.
13387
133882008-03-01 Jason Rumney <jasonr@gnu.org>
13389
13390 * font.c (font_unparse_fcname): Increase len when style is a symbol.
13391
133922008-03-01 Jan Djärv <jan.h.d@swipnet.se>
13393
13394 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
13395 xg_frame_resized when the event is for the edit widget.
13396
13397 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
13398
13399 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
13400 set_char_size.
13401 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
13402 operations on widgets here. Just set frame size if needed.
13403 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
13404 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
13405 (x_wm_set_size_hint): Set size hints on the edit widget only, not
13406 the whole frame.
13407 (xg_create_tool_bar): Move attachment of the tool bar to
13408 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
13409 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
13410
134112008-03-01 Jason Rumney <jasonr@gnu.org>
13412
13413 * w32fns.c (w32_msg_pump): Disable debug code.
13414
134152008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13416
13417 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
13418
134192008-02-29 Chong Yidong <cyd@stupidchicken.com>
13420
13421 * xdisp.c (next_overlay_string): Don't set
13422 overlay_strings_at_end_processed_p if we're currently reading from
13423 a display string.
13424
134252008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
13426
13427 * xdisp.c (get_overlay_strings_1): Fix typo.
13428
134292008-02-29 Chong Yidong <cyd@stupidchicken.com>
13430
13431 * xdisp.c (get_overlay_strings_1): Add missing argument type.
13432
134332008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
13434
13435 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
13436
13437 * xdisp.c (display_mode_element): Cancel the previous change.
13438 (decode_mode_spec): Likewise.
13439 (handle_auto_composed_prop): Don't make composition if it->string
13440 is a string.
13441
134422008-02-27 Kim F. Storm <storm@cua.dk>
13443
13444 * lisp.h (GLYPH): Change type from int to struct with separate char
13445 and face_id members.
13446 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
13447 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
13448 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
13449 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
13450 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
13451 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
13452 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
13453 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
13454 handle new Lisp glyph code encoding, either an integer or a cons.
13455
13456 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
13457 (GLYPH_ALIAS): Delete.
13458 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
13459 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
13460 (GLYPH_FROM_CHAR): Replace macro by ...
13461 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
13462
13463 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
13464 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
13465 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
13466 (GLYPH_INVALID_P): New macro.
13467 (spec_glyph_lookup_face): Update prototype.
13468
13469 * dispnew.c (line_draw_cost): Adapt to new glyph type.
13470 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
13471 new glyph code encoding.
13472 (spec_glyph_lookup_face): No return value; update passed glyph instead.
13473 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
13474
13475 * xdisp.c (get_next_display_element, next_element_from_display_vector):
13476 Adapt to new glyph type and new glyph code encoding.
13477
13478 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
13479
13480 * indent.c (current_column, current_column_1, Fmove_to_column)
13481 (compute_motion): Adapt to new glyph code encoding.
13482
13483 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
13484
134852008-02-27 Chong Yidong <cyd@stupidchicken.com>
13486
13487 * process.c (wait_reading_process_output): Check for window
13488 changes caused by timers.
13489 Suggested by Johan Bockgård.
13490
134912008-02-27 Glenn Morris <rgm@gnu.org>
13492
13493 * emacs.c (USAGE1): Add `--disable-font-backend'.
13494
134952008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
13496
13497 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
13498 is made to the buffer.
13499
135002008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
13501
13502 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
13503 (face_at_string_position):
13504 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
13505 (face_at_string_position):
13506 * xdisp.c (display_string, next_overlay_change):
13507 * buffer.h (overlays_at):
13508 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
13509 Update callers.
13510
135112008-02-26 Chong Yidong <cyd@stupidchicken.com>
13512
13513 * editfns.c (Fformat): Doc fix.
13514
135152008-02-26 Juanma Barranquero <lekktu@gmail.com>
13516
13517 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
13518 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
13519 (Ffont_otf_alternates, Fquery_font): Doc fixes.
13520
135212008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13522
13523 * buffer.c (Fbuffer_swap_text): New function.
13524 (syms_of_buffer): Defsubr it.
13525
135262008-02-25 Chong Yidong <cyd@stupidchicken.com>
13527
13528 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
13529
135302008-02-25 Jason Rumney <jasonr@gnu.org>
13531
13532 * w32font.c (w32font_draw): Draw one character at a time when padding.
13533
135342008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13535
13536 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
13537 Handle a nil arg. Use run_window_configuration_change_hook.
13538 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
13539 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
13540 Use run_window_configuration_change_hook.
13541
135422008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13543
13544 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
13545 1-pixel width.
13546
135472008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13548
13549 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13550 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13551 if the glyph in the font is zero pixel with.
13552
13553 * dispextern.h (struct glyph_string): New member padding_p.
13554
13555 * w32font.c (w32font_draw): Pay attention to s->padding_p.
13556
13557 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13558
13559 * xfont.c (xfont_draw): Pay attention to s->padding_p.
13560
13561 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13562
13563 * font.c: If the font driver doesn't have `shape' function, return Qnil.
13564
135652008-02-25 Jason Rumney <jasonr@gnu.org>
13566
13567 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13568
135692008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
13570
13571 Allow fine-grained image-cache flushing.
13572 * dispextern.h (struct image): Add `dependencies' field.
13573 (clear_image_caches): Change arg to Lisp_Object.
13574 * image.c (make_image): Initialize `dependencies' field.
13575 (clear_image_cache): Change arg to allow fine-grained flushing.
13576 Perform the flush even if image-cache-eviction-delay is nil.
13577 (clear_image_caches): Change arg to Lisp_Object.
13578 (Fclear_image_cache): Expand meaning of the argument.
13579 (mark_image): Mark `dependencies' field.
13580 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13581 (lface_hash): Use XHASH rather than XFASTINT.
13582 (face_at_buffer_position): Fix int -> EMACS_INT position.
13583 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13584 (select_frame_for_redisplay): Remove code duplication.
13585 (redisplay_internal): Adapt arg to call to clear_image_caches.
13586
135872008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
13588
13589 * s/vms4-0.h:
13590 * s/vms4-2.h:
13591 * s/vms4-4.h:
13592 * s/vms5-5.h: Remove, unused.
13593
13594 * s/irix5-2.h:
13595 * s/irix6-0.h:
13596 * s/riscos5.h:
13597 * s/mach-bsd4-3.h:
13598 * m/mips4.h: Remove files for obsolete systems.
13599
13600 * Makefile.in:
13601 * filelock.c:
13602 * unexmips.c:
13603 * m/hp9000s300.h:
13604 * m/iris4d.h:
13605 * s/aix3-1.h:
13606 * s/hpux.h:
13607 * s/msdos.h:
13608 * s/usg5-0.h:
13609 * s/usg5-2-2.h:
13610 * s/usg5-2.h:
13611 * s/usg5-3.h: Remove references to obsolete variables.
13612
13613 * s/irix5-0.h: Remove, move all the contents ...
13614 * s/irix6-5.h: ... here. Simplify.
13615 * config.in: Regenerate.
13616
136172008-02-24 Jason Rumney <jasonr@gnu.org>
13618
13619 * w32term.c (x_draw_glyph_string_background): Clear the background
13620 manually when cleartype is in use.
13621 (x_draw_glyph_string_foreground): Draw text transparently when
13622 cleartype is in use.
13623
13624 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13625 a font into it unless we have to.
13626
136272008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13628
13629 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13630 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 13631
aac0c6e3
MR
136322008-02-18 Jason Rumney <jasonr@gnu.org>
13633
13634 * w32fns.c (Fw32_shell_execute): Encode parameters.
13635
136362008-02-09 Eli Zaretskii <eliz@gnu.org>
13637
13638 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13639
136402008-02-05 Juanma Barranquero <lekktu@gmail.com>
13641
13642 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13643
136442008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13645
13646 * xterm.c (x_set_offset): Don't change the gravity if
13647 CHANGE_GRAVITY is -1.
13648
136492008-02-23 Chong Yidong <cyd@stupidchicken.com>
13650
13651 * fileio.c (auto_save_error_occurred): New var.
13652 (auto_save_error): Set it.
13653 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13654 error occurred.
13655
136562008-02-23 Eli Zaretskii <eliz@gnu.org>
13657
13658 * w32.c (globals_of_w32): Add initializations for
13659 g_b_init_get_sid_sub_authority and
13660 g_b_init_get_sid_sub_authority_count.
13661
136622008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13663
13664 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13665 (font_parse_xlfd): Use them for sanity check.
13666 (Finternal_set_font_style_table): Make sure the table is bijective.
13667
13668 Consolidate the image_cache to the terminal struct.
13669 * termhooks.h (P_): Remove redundant def.
13670 (struct terminal): New field `image_cache'.
13671 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13672 of FRAME_X_IMAGE_CACHE.
13673 * xterm.h (struct x_display_info): Remove image_cache field.
13674 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13675 * w32term.h (struct w32_display_info): Remove image_cache field.
13676 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13677 * macterm.h (struct mac_display_info): Remove image_cache field.
13678 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13679 * xterm.c (x_term_init):
13680 * w32term.c (w32_term_init):
13681 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13682 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13683 Remove declarations.
13684 (clear_image_caches, mark_image_cache): New declarations.
13685 * xfaces.c (clear_face_cache):
13686 * xdisp.c (redisplay_internal): Use clear_image_caches.
13687 * image.c (clear_image_cache): Don't check that a frame is on
13688 a window-system before checking if it shares the same cache.
13689 (clear_image_caches): New function.
13690 (Fclear_image_cache): Use it.
13691 (mark_image): Move from allo.c.
13692 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13693 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13694 (mark_object): Don't call mark_image_cache for frames.
13695 (mark_terminals): Call mark_image_cache.
13696
13697 * lisp.h (Fdelete_terminal): Declare.
13698
13699 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13700 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13701 wrong_type_argument.
13702
137032008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13704
13705 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13706 malayalam.el, and tamil.el. Add sinhala.el.
13707
137082008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13709
13710 * xterm.c (x_connection_closed): Consolidate identical tests.
13711 (x_delete_terminal): Don't crash if called via x_connection_closed.
13712
137132008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13714
13715 * xdisp.c (decode_mode_spec): New arg string.
13716 (display_mode_element): Adjust for the above change.
13717
137182008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13719
13720 * callint.c (Fcall_interactively): Use AREF.
13721
137222008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13723
13724 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13725
137262008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13727
13728 * xfns.c (Fx_show_tip): Set string to " " if empty.
13729
137302008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13731
13732 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13733 with Qt.
13734
137352008-02-17 Kenichi Handa <handa@m17n.org>
13736
13737 * ftfont.c (ftfont_shape): Return Lispy number.
13738
13739 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13740 for GCs.
13741 (Finternal_set_font_selection_order): Call font_update_sort_order
13742 only when enable_font_backend is set.
13743 (realize_x_face): Set face->font_info to that of default face only
13744 when enable_font_backend is set.
13745
13746 * xdisp.c (handle_composition_prop): Set it->c to the fist
13747 character of the composed region.
13748 (fill_composite_glyph_string): Set base_face->font_info to
13749 s->font_info. Get a face for ascii from base_face->ascii_face.
13750 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13751 with a face already decided.
13752 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13753 non-negative.
13754 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13755 call font_prepare_composition unconditionally.
13756
13757 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13758
13759 * xterm.h (struct x_display_info): New member font.
13760
13761 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13762 (x_set_mouse_face_gc, x_new_font): Likewise.
13763 (x_term_init): Setup display_info->font.
13764 (x_delete_terminal): Free display_info->font.
13765
13766 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13767
13768 * ftxfont.c (ftxfont_default_fid): Delete it.
13769 (ftxfont_open): Set xfont->fid to 0.
13770 (ftxfont_end_for_frame): Clear data specific to the frame and the
13771 font-driver.
13772
13773 * xftfont.c (xftfont_default_fid): Delete it.
13774 (xftfont_open): Set xfont->fid to 0.
13775
13776 * fontset.c (FONTSET_OBJLIST): New macro.
13777 (fontset_find_font): Update font-object list of the fontset.
13778 (free_realized_fontset): New function.
13779 (free_face_fontset): Call free_realized_fontset.
13780 (Ffont_info): Call font_close_object only when enable_font_backend
13781 is set.
13782
13783 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13784 [HAVE_NTGUI]: Include w32term.h.
13785 [MAC_OS]: Include macterm.ch.
13786 (font_otf_ValueRecord): Use make_number.
13787 (font_finish_cache): Fix handling of reference count.
13788 (font_clear_cache): Update num_fonts.
13789 (font_open_entity): Update smallest_char_width and
13790 smallest_font_height of the frame.
13791 (font_close_object): Update num_fonts.
13792 (Fclear_font_cache): Fix finding the target cache data.
13793
137942008-02-16 Glenn Morris <rgm@gnu.org>
13795
13796 * fontset.c (Finternal_char_font): Fix compilation warning.
13797
137982008-02-16 Eli Zaretskii <eliz@gnu.org>
13799
13800 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13801 instead of char arrays. Enlarge the size of array passed to
13802 get_token_information.
13803
13804 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13805 warnings.
13806
138072008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13808
13809 * .gdbinit: Don't set `args', it breaks gdb --args.
13810
138112008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13812
13813 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13814 within a narrowed buffer.
13815
138162008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13817
13818 * coding.c (decode_coding_object, encode_coding_object):
13819 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13820
138212008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13822
13823 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13824 hardcoding 1.
13825 (detect_coding_system):
13826 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13827 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13828 * insdel.c (insert_from_gap):
13829 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13830 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13831 (string_to_multibyte):
13832 * character.c (chars_in_text, multibyte_chars_in_text):
13833 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13834
13835 * character.h (FETCH_STRING_CHAR_ADVANCE)
13836 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13837 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13838 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13839
13840 * casefiddle.c (casify_region): Only call after-change and composition
13841 functions on the part of the region that was changed.
13842
13843 * keyboard.c (read_avail_input):
13844 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13845
138462008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13847
13848 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13849 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13850
138512008-02-11 Juanma Barranquero <lekktu@gmail.com>
13852
13853 * w32menu.c (push_submenu_start, push_submenu_end)
13854 (push_left_right_boundary, push_menu_pane, push_menu_item):
13855 * keyboard.c (read_key_sequence): Don't pass args with side effects
13856 to AREF, it fails when compiling with -DENABLE_CHECKING.
13857
138582008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13859
13860 * Makefile.in (${lispsource}international/charprop.el):
13861 Delete this target.
13862
13863 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13864 emacs-unicode-2.
13865
138662008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13867
13868 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13869
138702008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13871
13872 * frame.c (Qnoelisp): New symbol.
13873 (syms_of_frame): Initialize it.
13874 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13875 harmless Elisp code, from a strong `force' from x_connection_closed.
13876 * frame.h (Qnoelisp): Declare.
13877 * xterm.c (x_connection_closed): Pass `noelisp'.
13878
13879 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13880 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13881 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13882 rather than `int' for the type of `type'.
13883
138842008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13885
13886 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13887
13888 * Makefile.in (GNUC): Remove support for gcc-1.x.
13889
138902008-02-10 Richard Stallman <rms@gnu.org>
13891
13892 * lisp.h (ASET): Use AREF, not ASLOT.
13893
138942008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13895
13896 * lisp.h (ASET): Check bounds.
13897
138982008-02-10 Glenn Morris <rgm@gnu.org>
13899
13900 * buffer.c (mode-name): Doc fix.
13901
139022008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13903
13904 * Makefile.in:
13905 * emacs.c:
13906 * gmalloc.c:
13907 * keyboard.c:
13908 * lisp.h:
13909 * m/ibm370aix.h:
13910 * process.c:
13911 * regex.c:
13912 * s/hpux.h:
13913 * sysdep.c:
13914 * sysselect.h:
13915 * systty.h:
13916 * unexec.c:
13917 * w32term.c:
13918 * xsmfns.c:
13919 * xterm.c: Remove code that deals with obsolete variables.
13920
13921 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13922
13923 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13924 nothing else needs it anymore.
13925
139262008-02-09 Eli Zaretskii <eliz@gnu.org>
13927
13928 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13929 instead of unibyte_char_to_multibyte.
13930
139312008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13932
13933 * s/gnu-linux.h: Remove commented out code.
13934
13935 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13936
13937 * Makefile.in: Update what RMS says about using autoconf.
13938 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13939 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13940 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13941 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13942
139432008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13944
13945 * keymap.c (Fkey_description): Move side effect outside of macro call.
13946
13947 * xfaces.c (Finternal_make_lisp_face):
13948 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13949
13950 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13951 (syms_of_fontset): Use ASET.
13952
13953 * fns.c (concat): Move side effect outside of macro call.
13954 (hash_clear): Use ASET.
13955
139562008-02-08 Richard Stallman <rms@gnu.org>
13957
13958 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13959 If FORCE, and frame has a surrogate minibuffer for another frame,
13960 delete the other frame first.
13961
139622008-02-07 Timo Savola <timo.savola@iki.fi>
13963
13964 * xterm.c (x_detect_focus_change): Handle embed client message.
13965 (handle_one_xevent): Ditto.
13966 (handle_one_xevent): If embedded and we get a button press/release,
13967 request focus.
13968 (xembed_set_info, xembed_send_message): New functions.
13969 (x_make_frame_visible): Call xembed_set_info if embedded.
13970 (x_make_frame_invisible): Call xembed_set_info if embedded.
13971 (x_term_init): Initialize Xatom_XEMBED.
13972 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13973 (x_iconify_frame): Ditto.
13974
13975 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13976 (enum xembed_info, enum xembed_message, enum xembed_focus)
13977 (enum xembed_modifier, enum xembed_accelerator): New.
13978 (xembed_set_info, xembed_send_message): Declare.
13979 (FRAME_X_EMBEDDED_P): New.
13980
13981 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13982 gtk_plug_new.
13983
13984 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13985 window ID of a frame.
13986 (x_window): Reparent frame if embedded.
13987 (Fx_create_frame): Don't set border width if embedded.
13988
13989 * emacs.c (USAGE3): Add --parent-id.
13990 (standard_args): Ditto.
13991
139922008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13993
13994 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13995
139962008-02-07 Jim Meyering <meyering@redhat.com>
13997
13998 Use "do...while (0)", not "if (1)...else" in macro definitions.
13999 The latter provokes a warning from gcc about the empty else, when
14000 followed by ";". Also, without that trailing semicolon, it would
14001 silently swallow up any following statement.
14002 * syntax.h (SETUP_SYNTAX_TABLE)
14003 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
14004 * buffer.h (DECODE_POSITION): Likewise.
14005 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
14006 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
14007 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
14008 (FETCH_CHAR_ADVANCE): Likewise.
14009 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
14010
140112008-02-07 Jim Meyering <meyering@redhat.com>
14012
14013 * lread.c [lint]: Don't include <sys/inode.h>.
14014
140152008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
14016
14017 * xselect.c (x_handle_dnd_message):
14018 * xmenu.c (digest_single_submenu, xmenu_show):
14019 * xdisp.c (with_echo_area_buffer_unwind_data)
14020 (format_mode_line_unwind_data, unwind_format_mode_line)
14021 (display_menu_bar):
14022 * eval.c (Ffetch_bytecode):
14023 * doc.c (store_function_docstring):
14024 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
14025 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
14026 * buffer.c (add_overlay_mod_hooklist): Use ASET.
14027
140282008-02-07 Kenichi Handa <handa@m17n.org>
14029
14030 * ftxfont.c (ftxfont_open): Don't set
14031 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
14032
14033 * ftfont.c (ftfont_open): Fix previous change.
14034
140352008-02-06 Jason Rumney <jasonr@gnu.org>
14036
14037 * w32font.c (w32font_text_extents): Fill in lbearing metric.
14038 Use cached metrics for ASCII characters.
14039 (w32font_open_internal): Don't set font's owning_frame.
14040 Cache metrics for ASCII characters.
14041
14042 * w32font.h (struct w32font_info): Add ascii_metrics.
14043 Remove owning_frame.
14044
140452008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
14046
14047 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
14048 to negative value.
14049
14050 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
14051
14052 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
14053
14054 * charset.c (syms_of_charset): Set QCtest and Qeq.
14055
140562008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
14057
14058 * process.c (Fstart_process):
14059 * callproc.c (Fcall_process): Handle the case where
14060 Funhandled_file_name_directory returns nil.
14061
14062 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
14063 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
14064 * font.c (check_gstring): Use them and AREF to access the vector before
14065 we know it's really a gstring.
14066 (Ffont_shape_text): Fix typo.
46e722a9 14067 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
14068
14069 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
14070 Declare.
14071
14072 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
14073
140742008-02-05 Jason Rumney <jasonr@gnu.org>
14075
14076 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
14077 Set smallest_font_height and smallest_char_width in display info.
14078
140792008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
14080
14081 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
14082
140832008-02-05 Miles Bader <miles@gnu.org>
14084
14085 * xfaces.c (get_lface_attributes, merge_named_face)
14086 (lookup_named_face, lookup_derived_face, realize_named_face):
14087 Revert 2008-02-01 change by cyd@stupidchicken.com.
14088
140892008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
14090
14091 * fontset.c (Ffontset_info): Handle the case of inhibitting the
14092 fallback fonts.
14093 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
14094
140952008-02-04 Jason Rumney <jasonr@gnu.org>
14096
14097 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
14098 set full_name.
14099 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
14100
141012008-02-03 Jason Rumney <jasonr@gnu.org>
14102
14103 * makefile.w32-in (OBJ1): Include font.o here.
14104 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
14105
141062008-02-02 Jason Rumney <jasonr@gnu.org>
14107
14108 * makefile.w32-in (temacs): Bump EMHEAP to 21.
14109
141102008-02-01 Jason Rumney <jasonr@gnu.org>
14111
14112 * s/cygwin.h: Define VIRT_ADDR_VARIES.
14113
14114 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
14115
141162008-02-01 Andreas Schwab <schwab@suse.de>
14117
14118 * Makefile.in (shortlisp, lisp): Update for rename of
14119 ../lisp/language/myanmar.el.
14120
141212008-02-01 Chong Yidong <cyd@stupidchicken.com>
14122
14123 * xfaces.c (get_lface_attributes): Delete function.
14124 (merge_named_face, lookup_named_face, lookup_derived_face)
14125 (realize_named_face): Call lface_from_face_name directly, and use
14126 the fact that merge_face_vectors does not alter its FROM argument.
14127
141282008-02-01 Jason Rumney <jasonr@gnu.org>
14129
14130 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
14131 input in the default locale. Handle non-Unicode multibyte input.
14132
141332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14134
14135 * fontset.c (reorder_font_vector): Exclude nil elements from the
14136 font group. Don't try multiple fonts.
14137 (fontset_font): Adjust for the above change.
14138 (Finternal_char_font): Return nil if the found font doesn't
14139 contain the character ch.
14140
14141 * Makefile.in (lisp, shortlisp): Add cham.el.
14142
141432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14144
14145 * font.h (FONTP): Make it return 1 also for a font-object.
14146
14147 * .gdbinit (xfontset): New function.
14148
14149 * font.c (font_find_for_lface): Check if the character C is
14150 supported or not only for the first font.
14151
14152 * fontset.c (reorder_font_vector): Fix typo.
14153 (fontset_find_font): Don't add a font-spec specifying a script.
14154 Use 0 (not Qt) for the indication of empty font-group. Change the
14155 format of RFONT-DEF. Return Qt if no font in the font-group
14156 support the character.
14157 (fontset_font): Adjust for the above change. If no font was
14158 found the character, remember that.
14159 (face_for_char): Adjust for the change of RFONT-DEF.
14160 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
14161 no font for the target.
14162 (Finternal_char_font): Adjust for the change of RFONT-DEF.
14163
141642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14165
14166 * font.c (font_load_for_face): Handle the case that the font in
14167 face->lface is a string.
14168
141692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14170
14171 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
14172
141732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14174
14175 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
14176 Fix previous change. If the frame is not on a window system,
14177 signal an error.
14178
141792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14180
14181 * coding.c (decode_coding_object, encode_coding_object): Adjust
14182 marker positions after conversion.
14183
14184 * lisp.h (struct Lisp_Marker): New member need_adjustment.
14185
141862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14187
14188 * font.c (font_find_for_lface): Fix the handling of the return
14189 value of font_has_char.
14190 (Ffont_shape_text): Fix previous change.
14191
14192 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
14193 (fontset_ref_and_range): Delete it.
14194 (fontset_find_font): Call char_table_ref_and_range instead of
14195 FONTSET_REF_AND_RANGE.
14196 (make_fontset): Don't setup font groups of Latin here.
14197 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
14198 (new_fontset_from_font): Make the specified font the default for
14199 all Latin characters.
14200
142012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14202
14203 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
14204 is on a window system before accessing the fontset of the frame.
14205
142062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14207
14208 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
14209
14210 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
14211 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
14212
14213 * font.c (Ffont_shape_text): If the font driver doesn't have a
14214 shaper function, make zero-width glyphs to have at least one-pixel
14215 width. Fix setting of `to' field of glyphs.
14216
142172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14218
14219 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
14220 glyphs.
14221
14222 * font.h (struct font_driver): Improve docstring of member `shape'.
14223
142242008-02-01 Kenichi Handa <handa@m17n.org>
14225
14226 * composite.c (syms_of_composite): Fix docstring of
14227 auto-composition-function.
14228
14229 * font.h (LGLYPH_SIZE): New macro.
14230
14231 * font.c (Ffont_fill_gstring): Stop filling when a character not
14232 supported by the font is found.
14233 (Ffont_shape_text): When a shape callback function returns nil,
14234 try at most two more times with larger gstring.
14235 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
14236
14237 * xdisp.c (handle_auto_composed_prop): Change the argument to
14238 auto-composition-function.
14239
14240 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
14241 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
14242 Lispy glyph and store it in the lgstring.
14243
14244 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
14245
14246 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
14247
142482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14249
14250 * font.c (Ffont_shape_text): Avoid unnecessary composition.
14251
14252 * fontset.c (Vfont_encoding_charset_alist): New variable.
14253 (syms_of_fontset): DEFVAR it.
14254 (reorder_font_vector, fontset_find_font): Optimize for the case of
14255 no need of reordering.
14256 (face_for_char): Map the charset property by
14257 Vfont_encoding_charset_alist.
14258
142592008-02-01 Jason Rumney <jasonr@gnu.org>
14260
14261 * w32font.c (logfonts_match): Don't check adstyle here.
14262 (font_matches_spec): Check here against physical font instead.
14263 (add_font_entity_to_list): Avoid some substitutions.
14264
14265 * font.c (font_parse_fcname): Default weight and slant to normal.
14266 (font_score): Prefer normal fonts if weight or slant unspecified.
14267 (font_score) [WINDOWSNT]: Scale weight difference down to closer
14268 match freetype scores.
14269
142702008-02-01 Jason Rumney <jasonr@gnu.org>
14271
14272 * w32font.c (w32font_text_extents): Don't use the frame stored in the
14273 font, as it may have been deleted.
14274 (w32_enumfont_pattern_entity): Map generic family to adstyle using
14275 most common hyphenless variation.
14276 (logfonts_match): Check generic family.
14277 (font_matches_spec): Don't check generic family here.
14278 (fill_in_logfont): Set generic family based on adstyle.
14279
14280 * w32font.h (w32font_get_cache): Update declaration.
14281
142822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14283
14284 * ftfont.c (ftfont_get_cache): Adjust the argument type.
14285
14286 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
14287 If none of the new drivers are available, call font_update_drivers
14288 with the old drivers.
14289
14290 * w32font.c (w32font_get_cache): Adjust the argument type.
14291
14292 * xfont.c (xfont_get_cache): Adjust the argument type.
14293
14294 * font.h (struct font_driver): Change argument type of get_cache.
14295
14296 * xftfont.c (xftfont_start_for_frame): Delete prototype.
14297
14298 * font.c (Ffont_get): Fix arguments to Fassoc.
14299 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
14300 (font_clear_cache): New function.
14301 (font_list_entities, font_matching_entity): Use font_get_cache.
14302 (font_update_drivers): Call font_clear_cache when finishing a driver.
14303
14304 * fontset.c (fontset_find_font): Fix previous change.
14305
143062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14307
14308 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
14309 dpyinfo->font_table.
14310 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
14311 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
14312
14313 * font.c (font_at): Handle the case that the arg C is negative.
14314 Handle the unibyte case.
14315 (Ffont_at): Call font_at with the arg C -1.
14316
14317 * xdisp.c (handle_auto_composed_prop): Don't get a character at
14318 the position here, and call font_at with the arg C -1.
14319 Don't check the range of the existing composition at the point.
14320
143212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14322
14323 * fontset.c (fontset_add): New args charset_id and family.
14324 Change caller.
14325 (load_font_get_repertory, fontset_find_font): Assume that
14326 font_spec is always a font-spec object.
14327 (Fset_fontset_font): Always store a font-spec object in a fontset.
14328
14329 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
14330 instead of get_property_and_range.
14331
143322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14333
14334 * xftfont.c (struct xftfont_info): Delete the member ft_face.
14335 (xftfont_open): Don't keep locking face.
14336 (xftfont_close): Don't unlock face.
14337 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
14338
14339 * fontset.c (fontset_find_font): Don't prefer a font of
14340 supplementary charset.
14341
143422008-02-01 Kenichi Handa <handa@m17n.org>
14343
14344 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
14345 script, langsys_tag to langsys, new member script.
14346 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 14347 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
14348 listing to the script specified in that property. Fix arg to
14349 OTF_check_features.
14350
143512008-02-01 Jason Rumney <jasonr@gnu.org>
14352
14353 * w32font.h: New file.
14354
14355 * w32font.c: Include it.
14356 (struct w32font_info): Add owning_frame field. Move to w32font.h.
14357 (w32font_open): Set owning_frame.
14358 (w32font_text_extents): Use owning_frame.
14359 (struct font_callback_data): Add opentype_only field.
14360 (add_font_entity_to_list): Use it to filter fonts.
14361 Don't check against full name.
14362 (w32font_list_internal): New function.
14363 (w32font_list): Use it.
14364 (w32font_match_internal): New function.
14365 (w32font_match): Use it.
14366 (w32font_open_internal): New function.
14367 (w32font_open): Use it.
14368 (w32font_get_cache, w32font_close, w32font_has_char)
14369 (w32font_encode_char, w32font_text_extents, w32font_draw):
14370 Make non-static.
14371
14372 * makefile.w32-in (w32font.o): Depend on w32font.h.
14373
143742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14375
14376 * charset.c (Fdefine_charset_internal): Record a supplementary
14377 charset at the tail of Vcharset_order_list.
14378
14379 * font.c (Ffont_shape_text): Fix the return value.
14380
14381 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
14382
14383 * xdisp.c (handle_auto_composed_prop): Fix previous change.
14384
143852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14386
14387 * ftfont.c (struct OpenTypeSpec): New struct.
14388 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
14389 (ftfont_get_open_type_spec): New function.
14390 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
14391
14392 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
14393
143942008-02-01 Jason Rumney <jasonr@gnu.org>
14395
14396 * w32font.c (add_font_entity_to_list): Compare only the beginning
14397 of full name.
14398
143992008-02-01 Kenichi Handa <handa@m17n.org>
14400
14401 * xdisp.c (handle_auto_composed_prop): Simplify the code.
14402 Never return HANDLED_RECOMPUTE_PROPS.
14403
144042008-02-01 Kenichi Handa <handa@m17n.org>
14405
14406 * font.c (font_gstring_produce): Delete it.
14407
14408 * composite.h (COMPOSITION_METHOD):
14409 Handle COMPOSITION_WITH_GLYPH_STRING.
14410
144112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14412
14413 * xfont.c (Qx): Delete.
14414 (syms_of_xfont): Don't initialize Qx.
14415
14416 * composite.h (enum composition_method):
14417 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
14418
144192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14420
14421 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
14422 (choose_face_font): Accept new form of font-spec.
14423
14424 * frame.h (font_driver_list): Declare it unconditionally.
14425 (struct frame): Define members font_driver_list and font_data_list
14426 unconditionally.
14427
14428 * fontset.c: Include "font.h" unconditionally.
14429 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
14430 (Fset_fontset_font): Accept a font-spec object.
14431
14432 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
14433 PIXEL_SIZE part a wild card.
14434
14435 * dispextern.h (struct glyph_string): Define members clip and
14436 num_clips unconditionally.
14437 (struct face): Define members font_info and extra unconditionally.
14438
14439 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
14440 ftfont_info only when HAVE_LIBOTF is defined.
14441
144422008-02-01 Andreas Schwab <schwab@suse.de>
14443
14444 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
14445 and end.
14446
144472008-02-01 Jason Rumney <jasonr@gnu.org>
14448
14449 * w32font.c (w32font_driver): Add new fields.
14450
144512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14452
14453 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
14454 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
14455 (LIBES): Add @M17N_FLT_CFLAGS@.
14456
14457 * composite.c (compose_text): Don't treat the new style
14458 composition specially.
14459
14460 * emacs.c (main): Call syms_of_font unconditionally.
14461
14462 * font.h (FONT_ENTITY_NOT_LOADABLE)
14463 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
14464 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
14465 (struct font_driver): New member shape.
14466 (font_registry_charsets): Extern it.
14467 (font_find_for_lface, font_prepare_composition): Adjust prototype.
14468 (font_otf_capability, font_drive_otf): Delete their externs.
14469
14470 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
14471 (font_charset_alist, font_registry_charsets): Move from xfont.c
14472 and rename.
14473 (font_prop_validate_otf): New function.
14474 (font_property_table): Register it for QCotf.
14475 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
14476 (font_drive_otf): Delete.
14477 (font_prepare_composition): New arg F. Adjust for the change of
14478 lispy gstring.
14479 (font_find_for_lface): New arg C.
14480 (font_load_for_face): Adjust for the change of font_find_for_lface.
14481 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
14482 lispy gstring.
14483 (Ffont_shape_text): New function.
14484 (Fopen_font): If the font size is not given, use 12-pixel.
14485 (Ffont_at): New arg STRING.
c0943d3d 14486 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
14487 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
14488 conditionally.
14489
14490 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
14491 fonts of the same font-spec. Change the format of RFONT-DEF.
14492 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
14493 Adjust for the change of RFONT-DEF.
14494 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
14495
14496 * ftfont.h: New file.
14497
14498 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
14499 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14500 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14501 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
14502 font_otf_capability and font_drive_otf, set ftfont_shape.
14503 (ftfont_list): Adjust for the change of :otf property value.
14504 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
14505 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
14506 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
14507 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14508 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
14509 (otf_gstring, gstring, m17n_flt_initialized): New variables.
14510
14511 * w32term.c (x_draw_composite_glyph_string_foreground):
14512 Adjust for the change of lispy gstring.
14513
14514 * xdisp.c (handle_composition_prop): Adjust for the change of
14515 lispy gstring. Call a function for auto-composition with the
14516 third arg it->window.
14517 (fill_composite_glyph_string): Adjust for the change of lispy string.
14518 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
14519
14520 * xfaces.c (set_font_frame_param): Adjust for the change of
14521 font_find_for_lface.
14522
14523 * xfont.c (x_font_charset_alist): Move to font.c and rename.
14524 (xfont_registry_charsets): Likewise. Change caller.
14525 (syms_of_xfont): Don't handle x_font_charset_alist.
14526
14527 * xftfont.c: Include "ftfont.h".
14528 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14529 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14530 (xftfont_close) [HAVE_LIBOTF]: Close otf.
14531 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14532 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
14533 Set xftfont_driver.shape to xftfont_shape.
14534
14535 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14536 the change of lispy gstring.
14537
145382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14539
14540 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
14541
145422008-02-01 Jason Rumney <jasonr@gnu.org>
14543
14544 * w32font.c (w32font_draw): Fill background manually.
14545
145462008-02-01 Jason Rumney <jasonr@gnu.org>
14547
14548 * font.c (Qfontp): Remove unused symbol.
14549 (QCantialias): New symbol.
14550 (syms_of_font): Define it.
14551 (font_property_table): Set a validator for QCantialias.
14552
14553 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14554 Define if not already.
14555 (QCfamily): Share with xfaces.c.
14556 (Qstandard, Qsubpixel, Qnatural): New symbols.
14557 (syms_of_w32font): Define them. Don't define QCfamily here.
14558 (w32_antialias_type, lispy_antialias_type): New functions.
14559 (w32_enumfont_pattern_entity): New arg requested_font.
14560 Set antialias parameter if non-default was requested.
14561 (fill_in_logfont): Fill in lfQuality if :antialias specified.
14562
145632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14564
14565 * lread.c (read1): Undo the previous change.
14566
145672008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
14568
14569 * frame.c (Fdelete_frame): Call font_update_drivers only when
14570 USE_FONT_BACKEND is defined.
14571
145722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14573
14574 * font.h (struct font_bitmap): New member bits_per_pixel.
14575 (struct font_driver): New members start_for_frame and end_for_frame.
14576 (struct font_data_list): New struct.
14577 (font_put_frame_data, font_get_frame_data): Extern them.
14578
14579 * frame.h (struct frame): New member font_data_list.
14580
14581 * font.c (font_update_drivers): Call driver->start_for_frame and
14582 driver->end_for_frame at proper timings.
14583 (font_put_frame_data, font_get_frame_data): New functions.
14584 (Ffont_spec): Add usage in the docstring.
14585
14586 * frame.c (make_frame): Initialize f->font_data_list to NULL.
14587 (Fdelete_frame): Call font_update_drivers.
14588
14589 * xftfont.c (struct xftface_info): Delete the member xft_draw.
14590 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14591 (xftfont_get_xft_draw): New function.
14592 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
14593 (xftfont_end_for_frame): New function.
14594 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14595
14596 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14597 Change argument. Cache GCs in the per-frame data.
14598 (struct ftxfont_frame_data): New struct.
14599 (ftxfont_draw_bitmap): New arg gc_fore and flush.
14600 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14601 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
14602 (ftxfont_end_for_frame): New function.
14603 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14604
14605 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14606
146072008-02-01 Kenichi Handa <handa@m17n.org>
14608
14609 * xselect.c (Vselection_coding_system)
14610 (Vnext_selection_coding_system): Delete them.
14611 (syms_of_xselect): Don't declare selection-coding-system and
14612 next-selection-coding-system. They are declared in select.el.
14613
146142008-02-01 Jason Rumney <jasonr@gnu.org>
14615
14616 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14617
14618 * w32fns.c: Include imm.h.
14619 (get_composition_string_fn, get_ime_context_fn): New optional
14620 system functions.
14621 (globals_of_w32fns): Load them from imm32.dll.
14622 (ignore_ime_char): New flag.
14623 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14624 WM_IME_ENDCOMPOSITION messages.
14625
14626 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14627 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14628
146292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14630
14631 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14632 (READCHAR_REPORT_MULTIBYTE): New macro.
14633 (readchar): New 2nd arg MULTIBYTE.
14634 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14635 Make symbol's name multibyte according to the multibyteness of the
14636 source.
14637
146382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14639
14640 * xfaces.c (face_for_overlay_string): Call lookup_face with
14641 correct arguments (fix of synching with the trunk).
14642
146432008-02-01 Kenichi Handa <handa@m17n.org>
14644
14645 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14646 (font_prop_validate_non_neg, font_prop_validate_spacing):
14647 Delete argument prop_index.
14648 (font_property_table): Change arguments to validater. Change Callers.
14649 (font_lispy_object): Delete.
14650 (font_at): Use font_find_object instead fo font_lispy_object.
14651
146522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14653
14654 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14655 and file names.
14656
146572008-02-01 Jason Rumney <jasonr@gnu.org>
14658
14659 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14660 (font_matches_spec): Remove debug output.
14661 (add_font_entity_to_list): Avoid using substituted fonts.
14662
146632008-02-01 Jason Rumney <jasonr@gnu.org>
14664
14665 * doc.c (Fsnarf_documentation):
14666 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14667
146682008-02-01 Miles Bader <miles@gnu.org>
14669
14670 * dispextern.h (struct glyph_row): Only define "clip" field if
14671 HAVE_WINDOW_SYSTEM is defined.
14672
146732008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14674
14675 Fix up multi-tty merge.
14676
14677 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14678 and indentation.
14679
14680 * xfaces.c (free_realized_face, clear_face_gcs):
14681 Include font_done_for_face in the input_blocked section, just in case.
14682
14683 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14684 (get_char_face_and_encoding): Undo last change and remove the *other*
14685 duplicate definition (i.e. keep the one that's better scoped and that
14686 includes code for the font-backend).
14687
14688 * terminal.c (create_terminal): Default keyboard_coding to
14689 `no-conversion' and terminal_coding to `undecided'.
14690
14691 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14692
14693 * fontset.c (free_realized_fontsets): Check that the table entry does
14694 contain a fontset before trying to compare it to `base'.
14695
14696 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14697 syms_of_charset, and syms_of_coding earlier because init_window_once
14698 now needs Vcoding_system_hash_table to be setup.
14699
14700 * coding.h (default_buffer_file_coding): Remove.
14701
14702 * coding.c (default_buffer_file_coding): Remove.
14703 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14704 than ->symbol, and use the terminal-local coding system.
14705 (syms_of_coding): Don't setup the coding-systems that are not
14706 terminal-local.
14707 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14708
14709 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14710 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14711
14712 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14713 in chartab.c and were re-added here by mistake.
14714 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14715
14716 * doc.c (Fsnarf_documentation):
14717 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14718 src to etc.
14719
14720 * ChangeLog.10: Add mistakenly removed entry.
14721
147222008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14723
14724 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14725
147262008-02-01 Miles Bader <miles@gnu.org>
14727
14728 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14729 Add extra args to FACE_FOR_CHAR.
14730
147312008-02-01 Kenichi Handa <handa@m17n.org>
14732
14733 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14734 in sequence.
14735
14736 * chartab.c (map_sub_char_table, map_char_table): If the range
14737 contains just one character, call the function with that character
14738 even if the depth is not 3.
14739
147402008-02-01 Jason Rumney <jasonr@gnu.org>
14741
14742 * w32font.c (w32font_text_extents): Calculate metrics for the
14743 whole string.
14744
147452008-02-01 Jason Rumney <jasonr@gnu.org>
14746
14747 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14748
147492008-02-01 Jason Rumney <jasonr@gnu.org>
14750
14751 * w32term.c (x_set_glyph_string_clipping): Use
14752 get_glyph_string_clip_rects.
14753 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14754 Adjust for the change of struct glyph_string.
14755
14756 * w32font.c (w32font_draw): Do clipping here.
14757
147582008-02-01 Kenichi Handa <handa@m17n.org>
14759
14760 * xftfont.c (xftfont_draw): Adjust for the change of struct
14761 glyph_string.
14762
14763 * xterm.c (x_set_glyph_string_clipping): Use
14764 get_glyph_string_clip_rects.
14765 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14766 Adjust for the change of struct glyph_string.
14767
14768 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14769 the resulting clip(s}.
14770 (expose_overlaps): Add arg r. Change callers. Set it to
14771 row->clip temporarily.
14772 (expose_window): Redraw rows overlapping the exposed area.
14773
14774 * dispextern.h (struct glyph_row): New member clip.
14775 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14776 clip_height, new member clip, and num_clips.
14777
147782008-02-01 Kenichi Handa <handa@m17n.org>
14779
14780 * data.c (Fchar_or_string_p): Fix docstring.
14781
147822008-02-01 Kenichi Handa <handa@m17n.org>
14783
14784 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14785 create a temporary XftDraw object.
14786
147872008-02-01 Kenichi Handa <handa@m17n.org>
14788
14789 * font.c (Ffontp): Fix docstring.
14790
14791 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14792 strong evidence of ISO-2022.
14793
147942008-02-01 Kenichi Handa <handa@m17n.org>
14795
14796 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14797 SYNTAX_ENTRY_FOLLOW_PARENT.
14798
147992008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14800
14801 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14802 its type.
14803 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14804 Update to the new type of weak_hash_tables and next_weak.
14805
14806 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14807 a plain C pointer to Lisp_Hash_Table.
14808
14809 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14810 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14811 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14812 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14813 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14814 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14815 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14816 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14817 (GC_EQ): Remove since they've been identical to their non-GC_
14818 alter-egos ever since the markbit was eradicated.
14819
14820 * alloc.c:
14821 * buffer.c:
14822 * buffer.h:
14823 * data.c:
14824 * fileio.c:
14825 * filelock.c:
14826 * fns.c:
14827 * frame.h:
14828 * lisp.h:
14829 * macterm.c:
14830 * print.c:
14831 * process.c:
14832 * w32fns.c:
14833 * w32menu.c:
14834 * w32term.c:
14835 * xfns.c:
14836 * xmenu.c:
14837 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14838
148392008-02-01 Kenichi Handa <handa@m17n.org>
14840
14841 * chartab.c (map_sub_char_table): Make it work for the top-level
14842 char-table. Fix handling of parent char-table.
14843 (map_char_table): Adjust for the above change.
14844
148452008-02-01 Jason Rumney <jasonr@gnu.org>
14846
14847 * w32font.c (Qgdi): Rename from Qw32.
14848
148492008-02-01 Jason Rumney <jasonr@gnu.org>
14850
14851 * w32bdf.c (get_quoted_string): Make function static.
14852
148532008-02-01 Kenichi Handa <handa@m17n.org>
14854
14855 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14856 bigger ascent and descent than those of the font, use them as
14857 font's ascent and descent.
14858
148592008-02-01 Kenichi Handa <handa@m17n.org>
14860
14861 * Makefile.in (${lispsource}international/charprop.el): Move this
14862 target within "#ifdef HAVE_UNIDATA" and "#endif".
14863
148642008-02-01 Kenichi Handa <handa@m17n.org>
14865
14866 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14867 (shortlisp): Add ../lisp/language/tai-viet.el.
14868
148692008-02-01 Ulrich Mueller <ulm@gentoo.org>
14870
14871 * Makefile.in (${lispsource}international/charprop.el): Depend on
14872 temacs${EXEEXT}.
14873
148742008-02-01 Jason Rumney <jasonr@gnu.org>
14875
14876 * w32font.c (w32font_close): Delete the GDI font object.
14877
14878 * w32menu.c: Include character.h.
14879
14880 * w32proc.c: Likewise.
14881
14882 * w32select.c: Likewise.
14883
14884 * makefile.w32-in (w32proc.o): Depend on character.h.
14885
148862008-02-01 Jason Rumney <jasonr@gnu.org>
14887
14888 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14889
14890 * w32menu.c (syms_of_w32menu): Likewise.
14891
14892 * w32proc.c (syms_of_ntproc): Likewise.
14893
14894 * w32select.c (syms_of_w32select): Likewise.
14895
14896 * w32term.c (syms_of_w32term): Likewise.
14897
148982008-02-01 Jason Rumney <jasonr@gnu.org>
14899
14900 * w32font.c (w32font_draw): Delete brush after using it.
14901
149022008-02-01 Jason Rumney <jasonr@gnu.org>
14903
14904 * w32font.c (w32font_open): Don't set font_idx.
14905 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14906 to font settings.
14907 (w32font_draw): Fill background explicitly.
14908
149092008-02-01 Jason Rumney <jasonr@gnu.org>
14910
14911 * w32term.c (w32_initialize): Don't call w32font_initialize.
14912
14913 * w32font.c (w32font_info): Remove subranges.
14914 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14915 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14916 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14917 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14918 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14919 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14920 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14921 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14922 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14923 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14924 New symbols.
14925 (font_callback_data): New struct.
14926 (w32font_list, w32font_match): Use it.
14927 (w32font_open): Don't populate subranges.
14928 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14929 (w32font_encode_char): Always return unicode code-point as-is.
14930 (w32font_text_extents): Supply a transformation matrix to
14931 GetGlyphOutline. Never look up by glyph index. Avoid looping
14932 twice. Use unicode version of GetTexExtentPoint32 instead of
14933 glyph index version.
14934 (set_fonts_frame): Remove.
14935 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14936 set frame parameter. Use backward compatible fake foundries.
14937 Save generic family in extra slot under QCfamily. Make width slot
14938 constant. Save QCspacing value. Save list of scripts instead of
14939 binary subranges.
14940 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14941 (add_font_entity_to_list): Use font_callback_data struct. Filter
14942 unwanted fonts.
14943 (add_one_font_entity_to_list): Use font_callback_data struct.
14944 (w32_registry): Default to iso10646_1.
14945 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14946 string font registries. Don't fill in font name if it is a generic
14947 family name, fill family instead. Use spacing, family and script
14948 extra info to fill pitch, family and charset fields.
14949 (list_all_matching_fonts): Use font_callback_data struct.
14950 (unicode_range_for_char): Remove.
14951 (font_supported_scripts): New function.
14952 (w32font_initialize): Remove.
14953 (syms_of_w32font): Update which symbols are defined.
14954
149552008-02-01 Jason Rumney <jasonr@gnu.org>
14956
14957 * font.c (font_pixel_size): Reverse assq_no_quit args.
14958
14959 * w32term.h (FONT_WIDTH): Report max width, not average.
14960 (FONT_MAX_WIDTH): Remove.
14961 (FONT_AVG_WIDTH): New macro.
14962
14963 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14964 redefinition of FONT_WIDTH.
14965
14966 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14967 (w32_cache_char_metrics): Use FONT_WIDTH.
14968
14969 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14970
149712008-02-01 Jason Rumney <jasonr@gnu.org>
14972
14973 * w32font.c (w32font_open): Make lfHeight negative.
14974
14975 * w32fns.c (x_default_font_parameter): Use new style font name.
14976 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14977
149782008-02-01 Jason Rumney <jasonr@gnu.org>
14979
14980 * w32font.c (QCsubranges): New symbol.
14981 (w32font_open, w32font_has_char): Get subranges from subproperty
14982 of extra.
14983 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14984 (syms_of_w32font): Define :subranges symbol.
14985
14986 * font.c (font_put_extra): Expose externally.
14987
14988 * font.h (font_put_extra): Move declaration from font.c.
14989
14990 * font.c (Ffont_get): Use font driver to determine otf capability.
14991 (adjust_anchor): Check if driver defines anchor_point before using.
14992
14993 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14994 (w32font_draw): Use options.
14995 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14996 Fix detection of truetype fonts.
14997 (registry_to_w32_charset): Handle charsets other than iso8859-1
14998 expressed as lisp symbols.
14999 (w32_registry): Express charset as lisp symbol.
15000 (fill_in_logfont): Reverse pixel and point height logic.
15001 Don't set width here. Set quality to default.
15002
15003 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
15004 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
15005
15006 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15007 Remove redundant loop and allocation.
15008
15009 * makefile.w32-in (font.o, w32font.o): New objects.
15010 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
15011 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
15012
15013 * xdisp.c (fill_composite_glyph_string): Make the first arg to
15014 STORE_XCHARB a valid l-value.
15015
15016 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
15017 calculations for non-Truetype fonts.
15018 (x_draw_glyph_string): Sync with xterm.c.
15019 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15020 Remove redundant code.
15021 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
15022
15023 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
15024 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
15025
15026 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
15027 (x_to_w32_charset, w32_to_x_charset): Expose externally.
15028
15029 * w32font.c: New file for w32 font backend.
15030
150312008-02-01 Kenichi Handa <handa@m17n.org>
15032
15033 * term.c: Don't include "buffer.h" twice.
15034
150352008-02-01 Kenichi Handa <handa@m17n.org>
15036
15037 * character.c (Funibyte_string): New function.
15038 (syms_of_character): Defsubr it.
15039
150402008-02-01 Jason Rumney <jasonr@gnu.org>
15041
15042 * w32term.c [USE_FONT_BACKEND]:
15043 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
15044 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
15045 (x_draw_glyph_string, x_draw_glyph_string_foreground)
15046 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
15047 (x_free_frame_resources): Sync with xterm.c.
15048
150492008-02-01 Andreas Schwab <schwab@suse.de>
15050
15051 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
15052 char-table size.
15053
150542008-02-01 Kenichi Handa <handa@m17n.org>
15055
15056 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
15057
150582008-02-01 Kenichi Handa <handa@m17n.org>
15059
15060 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
15061 font_otf_gpos, add font_drive_otf.
15062
15063 * fontset.c (fontset_find_font): Pay attention to font size
15064 specified for a font.
15065 (reorder_font_vector): Check contents of font_def.
15066
15067 * font.c (struct otf_list): Delete it.
15068 (otf_list): Make it a lisp variable.
15069 (otf_open): Use lispy otf_list.
15070 (generate_otf_features): Rename from parse_gsub_gpos_spec.
15071 (check_otf_features): New function.
15072 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15073 New functions.
15074 (font_drive_otf): New function merging font_otf_gsub and
15075 font_otf_gpos.
15076 (font_open_for_lface): New arg spec. Change argument order.
15077 (font_load_for_face): Adjust for the change of font_open_for_lface.
15078 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
15079 Ffont_otf_gpos.
15080 (syms_of_font): Staticpro otf_list. Delete defsubr of
15081 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
15082
15083 * xfaces.c (set_font_frame_param): Adjust for the change of
15084 font_open_for_lface.
15085
15086 * font.h (font_open_for_lface): Adjust prototype.
15087 (struct font_driver): Delete members otf_gsub and otf_gpos, add
15088 member otf_drive.
15089 (font_otf_gsub, font_otf_gpos): Delete externs.
15090 (font_drive_otf): Extern it.
15091
150922008-02-01 Kenichi Handa <handa@m17n.org>
15093
15094 * font.c (font_at): If the window W is not on a window system,
15095 return Qnil.
15096
15097 * coding.c (produce_chars, encode_coding): Don't call
15098 insert_from_gap if no characters to produce.
15099
151002008-02-01 Kenichi Handa <handa@m17n.org>
15101
15102 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
15103 Fclear_face_cache.
15104
15105 * xfaces.c (face_for_font): Check also face->font==font->font.font.
15106
151072008-02-01 Miles Bader <miles@gnu.org>
15108
15109 * emacs.c (main): Change default value of `enable_font_backend' to 1.
15110 Parse "--disable-font-backend" option.
15111 (standard_args): Add "--disable-font-backend" option.
15112
151132008-02-01 Kenichi Handa <handa@m17n.org>
15114
15115 * fontset.c (fontset_find_font): New function.
15116 (fontset_font): Use fontset_find_font.
15117 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
15118 Register the specified font for all Latin characters.
15119 (new_fontset_from_font): Register the specified font for all Latin
15120 characters.
15121 (dump_fontset): For a realized fontset, include the base fontset
15122 name in the returned vector.
15123
151242008-02-01 Kenichi Handa <handa@m17n.org>
15125
15126 * character.h (CHAR_STRING): Cast C to unsigned on calling
15127 char_string.
15128
15129 * character.c (char_string): Type of arg C changed to unsigned.
15130 Signal an error if C is an invalid character code.
15131
15132 * editfns.c (general_insert_function, Fchar_to_string):
15133 Use CHARACTERP, not INTEGERP.
15134
151352008-02-01 Kenichi Handa <handa@m17n.org>
15136
15137 * character.h (MIN_MULTIBYTE_LEADING_CODE)
15138 (MAX_MULTIBYTE_LEADING_CODE): New macros.
15139
15140 * regex.c (analyse_first): Fix for multibyte characters in "case
15141 charset:" and "case categoryspec:".
15142
151432008-02-01 Andreas Schwab <schwab@suse.de>
15144
15145 * Makefile.in (LIBES): Move standard libraries to the end.
15146
151472008-02-01 Kenichi Handa <handa@m17n.org>
15148
15149 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
15150 nonzero, don't shrink the buffer nextb.
15151
15152 * buffer.h (struct buffer_text): New member inhibit_shrinking.
15153
15154 * coding.c (coding_alloc_by_making_gap): New arg offset.
15155 (alloc_destination): Call coding_alloc_by_making_gap with the arg
15156 offset.
15157 (decode_coding_iso_2022): Update coding->safe_charsets.
15158 (decode_coding_gap): Temporarily set
15159 current_buffer->text->inhibit_shrinking to 1.
15160
151612008-02-01 Kenichi Handa <handa@m17n.org>
15162
15163 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
15164 indexing into elements of s->cmp and s->char2b.
15165
151662008-02-01 Juanma Barranquero <lekktu@gmail.com>
15167
15168 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
15169
151702008-02-01 Kenichi Handa <handa@m17n.org>
15171
15172 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
15173 target_multibyte instead of multibyte.
15174 (re_match_2_internal): Call bcmp_translate with target_multibyte.
15175 (bcmp_translate): Change the argument name from multibyte to
15176 target_multibyte.
15177
151782008-02-01 Kenichi Handa <handa@m17n.org>
15179
15180 These changes are to compile a regexp into a pattern that can be
15181 used both for multibyte and unibyte targets.
15182
15183 * Makefile.in (search.o): Depend on charset.h.
15184
15185 * character.c (multibyte_char_to_unibyte_safe): New function.
15186
15187 * search.c: Include "charset.h".
15188 (compile_pattern_1): Delete argument multibyte. Don't set
15189 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
15190 (compile_pattern): Don't compare cp->buf.target_multibyte.
15191 Compare cp->buf.charset_unibyte.
15192 (compile_pattern): Set cp->buf.target_multibyte.
15193
15194 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
15195
15196 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
15197
15198 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
15199 multibyte. Change callers.
15200 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
15201 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
15202 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
15203 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
15204 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
15205 (regex_compile): Make the compiled pattern usable both for
15206 multibyte and unibyte targets.
15207 (analyse_first): Make the fastmap usable both for multibyte and
15208 unibyte targets.
15209 (TRANSLATE_VIA_MULTIBYTE): Delete.
15210 (re_match_2_internal): Pay attention to the case that the
15211 multibyteness of bufp and target may be different.
15212
152132008-02-01 Kenichi Handa <handa@m17n.org>
15214
15215 * xdisp.c (x_produce_glyphs): When a font is not found, make the
15216 empty box occupy at least one column width.
15217
152182008-02-01 Miles Bader <miles@gnu.org>
15219
15220 * Makefile.in: Remove redundant HAVE_XFT clause.
15221
152222008-02-01 Kenichi Handa <handa@m17n.org>
15223
15224 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
15225
152262008-02-01 Kenichi Handa <handa@m17n.org>
15227
15228 * fontset.c (Finternal_char_font): Fix for the case of POSITION
15229 being nil.
15230
152312008-02-01 Kenichi Handa <handa@m17n.org>
15232
15233 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
15234
152352008-02-01 Kenichi Handa <handa@m17n.org>
15236
15237 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
15238
152392008-02-01 Kenichi Handa <handa@m17n.org>
15240
15241 * search.c (simple_search): Fix previous change.
15242
152432008-02-01 Kenichi Handa <handa@m17n.org>
15244
15245 * xftfont.c (ftfont_font_format): Extern declaration.
15246
15247 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
15248
15249 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
15250 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
15251
15252 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
15253 (ftfont_font_format): Fix previous change.
15254
15255 * font.h (Ffont_xlfd_name): EXFUN it.
15256
15257 * font.c (font_parse_xlfd): Fix the array size of `f'.
15258 (register_font_driver): Use EQ to compare driver->type.
15259
15260 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
15261 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
15262 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
15263
152642008-02-01 Kenichi Handa <handa@m17n.org>
15265
15266 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
15267 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
15268
152692008-02-01 Kenichi Handa <handa@m17n.org>
15270
15271 * xfont.c (xfont_open): Set font->format.
15272
15273 * xftfont.c (xftfont_open): Set font->format.
15274
15275 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
15276 (ftfont_list): Include FC_FONTFORMAT in FcObject.
15277 (ftfont_open): Set font->format.
15278 (ftfont_font_format): New function.
15279
15280 * font.h (struct font): New member format.
15281
15282 * font.c (Qopentype): New variable.
15283 (syms_of_font): Defsym it.
15284 (Fquery_font): Change the format of the last element of the return
15285 value.
15286
152872008-02-01 Kenichi Handa <handa@m17n.org>
15288
15289 * xfns.c (xic_create_xfontset): Try the default fontset name as a
15290 last resort.
15291
152922008-02-01 Kenichi Handa <handa@m17n.org>
15293
15294 * coding.c (detect_coding_charset): Fix detection of multi-byte
15295 charset.
15296
152972008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
15298
15299 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
15300
153012008-02-01 Kenichi Handa <handa@m17n.org>
15302
15303 * xdisp.c (get_next_display_element): Set it->face_id for the
15304 first component of a composition.
15305 (x_produce_glyphs): Check if the font is changed or not for composition.
15306
153072008-02-01 Kenichi Handa <handa@m17n.org>
15308
15309 * fontset.c (Qlatin): New variable.
15310 (syms_of_fontset): Define it as a lisp symbol.
15311 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
15312
153132008-02-01 Kenichi Handa <handa@m17n.org>
15314
15315 * font.c (font_unparse_fcname): Pay attention to the case that
15316 some of font property is a null string.
15317
153182008-02-01 Kenichi Handa <handa@m17n.org>
15319
15320 * term.c: Include "composite.h".
15321 (encode_terminal_code): Output all components of composition.
15322 Check the size of encode_terminal_src.
15323 (produce_glyphs): For composition, call produce_composite_glyph.
15324 (append_composite_glyph, produce_composite_glyph): New functions.
15325
15326 * xdisp.c (x_produce_glyphs): In handling composition, if a font
15327 is not found, get font_info from the current ascii face.
15328
153292008-02-01 Kenichi Handa <handa@m17n.org>
15330
15331 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
15332 buffer-file-name to Qnil before calling insert_from_buffer.
15333
15334 * font.c (font_unparse_fcname): Pay attention to the case that
15335 foundry is a null string.
15336
153372008-02-01 Kenichi Handa <handa@m17n.org>
15338
15339 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
15340
15341 * font.c (Qunicode_sip): New variable.
15342 (syms_of_font): Declare it as a Lisp symbol.
15343
15344 * font.h (Qunicode_sip): Extern it.
15345
153462008-02-01 Kenichi Handa <handa@m17n.org>
15347
15348 * composite.c (get_composition_id): Pay attention to TAB component.
15349
15350 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
15351 TAB. Adjust for the change of s->char2b which always points to
15352 the first element of allocated memory.
15353
15354 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
15355
15356 * xdisp.c (handle_composition_prop): Set it->c to the first
15357 non-TAB component.
15358 (fill_composite_glyph_string): Change argument.
15359 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
15360 (x_produce_glyphs): Fix handling of left/right padding.
15361
153622008-02-01 Kenichi Handa <handa@m17n.org>
15363
15364 * coding.c (detect_coding_system): Fix for handling off
15365 inhibit_iso_escape_detection. Fix for the case that no coding
15366 system is defined for a specific coding category.
15367
153682008-02-01 Kenichi Handa <handa@m17n.org>
15369
15370 * font.c (font_matching_entity): Delete unused local var.
15371
15372 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
15373 opening a font.
15374
15375 * fileio.c (Finsert_file_contents): On recovering a file, assume
15376 Unix-like eol.
15377 (choose_write_coding_system): On auto-saving a file, force
15378 Unix-like eol.
15379
15380 * coding.c (setup_coding_system): Fix setting of
15381 coding->common_flags based on eol_type.
15382 (coding_inherit_eol_type): If PARENT is not nil, be sure to
15383 inherit from it.
15384
153852008-02-01 Kenichi Handa <handa@m17n.org>
15386
15387 * alloc.c (NSTATICS): Increas to 0x600.
15388
153892008-02-01 Kenichi Handa <handa@m17n.org>
15390
15391 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
15392 (ftfont_list): Don't check :name property.
15393 (ftfont_match): New function.
15394 (ftfont_pattern_entity): If the pattern doesn't contain
15395 FC_SPACING, don't assume FC_MONO.
15396
15397 * font.h (struct font_driver): New member `match'.
15398 (font_update_drivers): Adjust prototype.
15399
15400 * font.c (font_parse_fcname, font_parse_name): Don't change :name
15401 property of FONT.
15402 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
15403 them unconditionally.
15404 (font_matching_entity): New function.
15405 (font_open_by_name): Try font_matching_entity if exact match is
15406 not found.
15407 (font_update_drivers): Delete the arg FONT. Return a list of
15408 actually used backends. Don't free faces, font caches here.
15409 Don't store data in frame parameters. Don't call x_set_font.
15410 (Ffont_spec): Store :name property as is.
15411 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
15412 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
15413 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
15414 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
15415 Call font->driver->otf_gsub instead of font_otf_gsub.
15416
15417 * frame.c (x_set_font_backend): Do more works that were done in
15418 font_update_drivers before.
15419
15420 * xfont.c (xfont_match): New function.
15421 (xfont_driver): Set xfont_driver.match to xfont_match.
15422 (xfont_draw): Set font in GC if necessary.
15423
15424 * ftxfont.c (ftxfont_match): New function.
15425 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
15426
15427 * xftfont.c (xftfont_match): New function.
15428 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
15429
154302008-02-01 Kenichi Handa <handa@m17n.org>
15431
15432 * font.h (struct font): New member scalable.
15433 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
15434 (font_otf_gsub): Adjust prototype.
15435
15436 * font.c (font_otf_capability): Fix handling of the default langsys.
15437 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
15438 Check the contents of SPEC.
15439 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
15440 (check_gstring): New function.
15441 (REPLACEMENT_CHARACTER): New macro.
15442 (font_otf_gsub): New arg alternate_subst. Be sure to set all
15443 glyph codes of GSTRING.
15444 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
15445 (font_prepare_composition): Set cmp->glyph_len.
15446 (font_open_entity): Set font->scalable.
15447 (Ffont_get): Handle :otf property.
15448 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
15449 functions.
15450 (Fquery_font): Use font->font.full_name.
15451 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
15452 Sfont_otf_alternates.
15453
15454 * ftfont.c (ftfont_open): Set font->font.full_name and
15455 font->font.name properly. Fix calculation of font->font.height
15456 and font->min_width.
15457
15458 * ftxfont.c (ftxfont_create_gcs): New function.
15459 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
15460 (ftxfont_draw_backgrond): Fix filling region.
15461 (ftxfont_default_fid): New function.
15462 (ftxfont_open): Set xfont->fid to the return value of
15463 ftxfont_default_fid.
15464 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
15465 (ftxfont_done_face): Free only GCs that are created by
15466 ftxfont_create_gcs.
15467 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
15468
15469 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
15470 Clip to src->width, etc (not src->clip_XXX).
15471
15472 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
15473 FontBackend frame parameter.
15474
154752008-02-01 Kenichi Handa <handa@m17n.org>
15476
15477 * font.h (struct font_driver_list): New member `on'.
15478 (Fclear_font_cache): EXFUN it.
15479 (font_update_drivers): Extern it.
15480
15481 * font.c (font_unparse_fcname): Fix typo (swidth->width).
15482 (font_list_entities): Check driver_list->on.
c0943d3d 15483 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
15484 (font_update_drivers): New function.
15485 (Fclear_font_cache): Check driver_list->on.
15486
15487 * frame.h (Qfont_backend): Extern it.
15488 (x_set_font_backend): Extern it.
15489
15490 * frame.c (Qfont_backend): New variable.
15491 (frame_parms): New element for font-backend.
15492 (x_set_font_backend): New function.
15493
15494 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
15495 FontBackend frame parameter.
15496 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
15497 x_set_font_backend.
15498
15499 * xfont.c (xfont_list): Don't try listing by :name property if the
15500 name is not for XLFD.
15501
155022008-02-01 Kenichi Handa <handa@m17n.org>
15503
15504 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
15505 (LGLYPH_SET_TO): New macros.
15506 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
15507 element of G is vector or not.
15508 (font_at): Extern it.
15509
15510 * font.c: Include window.h.
15511 (font_lispy_object): New function.
15512 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
15513 end of valid glyph.
15514 (font_close_object): Fix getting (struct font *).
15515 (font_at): New function.
15516 (Ffont_get): If FONT is a font-object, get entity from it.
15517 (Ffont_make_gstring): Initialize elements of glyphs with nil.
15518 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
15519 range check.
15520 (Ffont_at): New function.
15521 (syms_of_font): Defsubr Sfont_at.
15522
15523 * xdisp.c (it_props): Move the entry for Qauto_composed to just
15524 before the entry for Qcomposition.
15525 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
15526 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
15527 the font in gstring.
15528 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
15529 LGLYPH_FORM (g) to detect the end of valid glyph.
15530 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
15531 we are composing with gstring.
15532
15533 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
15534 Check if adjustment is vector or not.
15535
15536 * Makefile.in (font.o): Make it depends on window.h.
15537
155382008-02-01 Kenichi Handa <handa@m17n.org>
15539
15540 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
15541 adjustment is vector or not.
15542
155432008-02-01 Miles Bader <miles@gnu.org>
15544
15545 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
15546
155472008-02-01 Kenichi Handa <handa@m17n.org>
15548
15549 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15550 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15551 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15552
15553 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15554 (DEVICE_DELTA): Fix typo.
15555 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15556 LGLYPH format.
15557
15558 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15559 the change of LGLYPH format.
15560
155612008-02-01 Kenichi Handa <handa@m17n.org>
15562
15563 * ftfont.c (ftfont_list): Fix typo.
15564 (ftfont_build_basic_charsets): Don't include letters with diacritics.
15565
155662008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15567
15568 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15569
15570 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15571 xftface_info is non-NULL.
15572
155732008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15574
15575 * ftfont.c (ftfont_list): Move misplaced #endif.
15576
155772008-02-01 Kenichi Handa <handa@m17n.org>
15578
15579 * ftfont.c (ftfont_list): Pay attention to the case that
15580 FC_CAPABILITY is not defined.
15581
155822008-02-01 Kenichi Handa <handa@m17n.org>
15583
15584 * xftfont.c (xftfont_open): Set charset related members to -1.
15585
15586 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
15587 QCname.
15588 (ftfont_open): Set charset related members to -1.
15589
15590 * fontset.c (Votf_script_alist): New variable.
15591 (syms_of_fontset): Initialize it.
15592 (fontset_font): Delete unused variable.
15593
15594 * fontset.h (Votf_script_alist): Extern it.
15595
15596 * font.c (font_find_for_lface): Optimize code.
15597
15598 * font.h (font_close_object, font_merge_old_spec): Extern them.
15599
156002008-02-01 Kenichi Handa <handa@m17n.org>
15601
15602 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15603 (syms_of_font): Initialize them.
15604 (font_pixel_size): Allow float value in dpi.
15605 (font_prop_validate_type): Delete.
15606 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15607 Change caller.
15608 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15609 (font_prop_validate_extra): Delete.
15610 (font_prop_validate_spacing): New function.
15611 (font_property_table): Add elements for all known properties.
15612 (get_font_prop_index): Rename from check_font_prop_name. New
15613 argument FROM. Change caller.
15614 (font_prop_validate): Validate all known properties.
15615 (font_put_extra): Delete argument force. Change caller.
15616 (font_expand_wildcards): Make it static. Fix the way of shrinking
15617 the possible range.
15618 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15619 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15620 Change caller.
15621 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15622 (font_parse_fcname): Delete argument merge. Fix parsing of point
15623 size. Don't validate properties values here. Change caller.
15624 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15625 (font_open_by_name): Delete unused variable.
15626 (Ffont_spec): Likewise. Validate property values.
15627 (Ffont_match_p): New function.
15628
15629 * font.h (QCscalable): Extern it.
15630 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15631
15632 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15633
15634 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15635 (xfont_list_pattern): New function.
15636 (xfont_list): Use xfont_list_pattern.
15637
156382008-02-01 Kenichi Handa <handa@m17n.org>
15639
15640 * font.h (Flist_fonts): EXFUN it.
15641
156422008-02-01 Jason Rumney <jasonr@gnu.org>
15643
15644 * w32term.c (w32_initialize): Add back smoothing_type and
15645 smoothing_enabled definitions.
15646
156472008-02-01 Kenichi Handa <handa@m17n.org>
15648
15649 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15650 s->face->font on determining underline position.
15651
156522008-02-01 Kenichi Handa <handa@m17n.org>
15653
15654 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15655 (font_has_char): Accept font-object too.
15656 (font_find_for_lface): Try at first with a size specified in face.
15657
156582008-02-01 Kenichi Handa <handa@m17n.org>
15659
15660 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15661 font_open_by_name.
15662
156632008-02-01 Kenichi Handa <handa@m17n.org>
15664
15665 * font.h (QCspacing, QCdpi): Extern them.
15666 (enum font_spacing): New enum.
15667 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15668
15669 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15670 (QCspacing, QCdpi): New variables.
15671 (syms_of_font): Initialize them.
15672 (font_pixel_size): New function.
15673 (font_put_extra): New function.
15674 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15675 in FONT_EXTRA.
15676 (font_parse_fcname): Handle enumerated values (e.g. bold).
15677 Fix handling font size. Add QCname property that contains only
15678 unknown properties.
15679 (font_score): Change argument. Change caller. Pay attention to
15680 FONT_PIXEL_SIZE_QUANTUM.
15681 (font_sort_entites, font_list_entities, font_find_for_lface)
15682 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15683 (Ffont_spec): Add QCname property that contains only unknown properties.
15684
15685 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15686 include weight in listing pattern, instead check weight of each
15687 listed font. Don't include scalable in pattern. Pay attention to
15688 FONT_PIXEL_SIZE_QUANTUM.
15689
156902008-02-01 Kenichi Handa <handa@m17n.org>
15691
15692 * font.c (font_parse_fcname): Fix parsing of point-size.
15693 (font_unparse_fcname): Produce symbolic names for style properties.
15694 (font_list_entities): Handle float size correctly.
15695 (font_open_by_name): Prefer `normal' property values if the name
15696 doesn't specify them.
15697
15698 * fontset.c (Finternal_char_font): Use font_get_name, not
15699 Ffont_xlfd_name.
15700
15701 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15702 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15703 pattern. Don't force scalable.
15704
15705 * xftfont.c (xftfont_open): For generating a name, start from
15706 96-byte buffer.
15707
157082008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15709
15710 * frame.h (x_new_fontset2): Fix prototype.
15711
157122008-02-01 Kenichi Handa <handa@m17n.org>
15713
15714 * font.h (struct font_driver): Delete member parse_name.
15715 (font_match_p, font_get_spec, font_parse_fcname)
15716 (font_unparse_fcname): Extern them.
15717 (font_get_name): Adjust prototype.
15718
15719 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15720 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15721 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15722 unnecessary checks for weight, slant, and swidth.
15723 (font_parse_fcname): New function.
15724 (font_unparse_fcname): New function.
15725 (font_parse_name): New function.
15726 (font_match_p): New function.
15727 (font_get_name): Change return value to Lisp string.
15728 (font_get_spec): New function.
15729 (Qunspecified, Qignore_defface): Don't extern them.
15730 (font_find_for_lface): Assume that LFACE is fully specified.
15731 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15732 object, use it for FACE.
15733 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15734 driver->parse_name.
15735 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15736
15737 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15738 prototype.
15739
15740 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15741 argument F. Don't call Fnew_fontset. Instead, directly call
15742 make_fontset.
15743
15744 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15745
15746 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15747 of x_new_fontset2.
15748
15749 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15750 (Qsans__serif): New variables.
15751 (ftfont_generic_family_list): New variable.
15752 (syms_of_ftfont): Initialize the above variables.
15753 (ftfont_pattern_entity): Delete argument NAME.
15754 (ftfont_list_generic_family): New function.
15755 (ftfont_parse_name): Delete this function.
15756 (ftfont_list): Try generic family only when FcFontList found no font.
15757 (ftfont_list_family): Fix args to FcObjectSetBuild.
15758
15759 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15760 object in attrs[LFACE_FONT_INDEX].
15761 (set_lface_from_font_name): Cancel all changes for font-backend.
15762 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15763 function.
15764 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15765 font object in QCfont attribute.
15766 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15767 (realize_default_face) [USE_FONT_BACKEND]: Call
15768 set_lface_from_font_and_fontset.
15769
15770 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15771 "fixed", and signal error here if no suitable font was found.
15772
15773 * xfont.c (xfont_parse_name): Delete this function.
15774
15775 * xftfont.c (xftfont_open): Change coding style of error
15776 handling. Generate fontconfig's fontname pattern.
15777
15778 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15779 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15780
15781 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15782 Both args FONTSET and FONT_OBJECT must be existing ones.
15783
157842008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15785
15786 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15787
157882008-02-01 Kenichi Handa <handa@m17n.org>
15789
15790 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15791
15792 * font.h (struct font): Fix typo.
15793
15794 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15795 XLFD_XXX_INDEX.
15796 (enum xlfd_field_mask): New enum.
15797 (intern_font_field): Changed argument. Change caller. If digits
15798 are followed by non-digits, return a symbol.
15799 (font_expand_wildcards): New function.
15800 (font_parse_xlfd): Fix wildcard handling.
15801 (Ffont_spec): If :name is specified, reflect the info in the other
15802 properties.
15803
15804 * ftfont.c (ftfont_pattern_entity): Fix typo.
15805 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15806 locale.
15807
158082008-02-01 Kenichi Handa <handa@m17n.org>
15809
15810 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15811
15812 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15813 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15814 registry doesn't specify encoding part.
15815 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15816 (font_open_by_name): At first try parsing the name.
15817 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15818 as Lisp symbols.
15819
15820 * fontset.c (reorder_font_vector): Pay attention to the case that
15821 the 3rd element of font_def is nil.
15822 (fontset_font): For the default fontset, append one more fontset
15823 elements for a script-based font specification. Don't add script
15824 attribute on finding a font.
15825 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15826 font name.
15827 (fontset_ascii_font): If a font can't be opened, return nil.
15828
15829 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15830 (ftfont_pattern_entity): New function.
15831 (ftfont_get_cache): Assume that freetype_font_cache is already
15832 initialized.
15833 (ftfont_list): Handle the case that a file is specified in font
15834 name. Use ftfont_pattern_entity to generate entities.
15835 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15836 (syms_of_ftfont): Initialize freetype_font_cache.
15837
15838 * xftfont.c (xftfont_open): Make the font name fontconfig's
15839 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15840 (xftfont_close): Free font->font.name if not NULL.
15841
15842 * xfont.c (xfont_list): If script is specified for a font, return
15843 null_vector.
15844 (xfont_list_family): Declare argument type.
15845
15846 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15847 name, set LFACE_FONT (lface) to nil.
15848
15849 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15850 return Qnil.
15851
158522008-02-01 Kenichi Handa <handa@m17n.org>
15853
15854 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15855 (standard_args): Add "-enable-font-backend".
15856
158572008-02-01 Kenichi Handa <handa@m17n.org>
15858
15859 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15860 (struct xftdraw_list, xftdraw_list): Delete them.
15861 (register_xftdraw, check_xftdraw): Delete them.
15862 (xftfont_prepare_face): Don't call register_xftdraw.
15863 (xftfont_done_face): Don't call check_xftdraw.
15864 (xftfont_draw): Get background color only when with_background is
15865 nonzero.
15866
15867 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15868
158692008-02-01 Kenichi Handa <handa@m17n.org>
15870
15871 These changes are for the new font handling codes.
15872
15873 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15874 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15875 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15876 (FONTSRC, FONTOBJ): New variables.
15877 (obj): Add $(FONTOBJ).
15878 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15879 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15880 @LIBOTF_LIBS@.
15881 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15882 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15883
15884 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15885
15886 * character.h (Vscript_representative_chars): Extern it.
15887
15888 * character.c (Vscript_representative_chars): New variable.
15889 (syms_of_character): Declare it as a Lisp variable.
15890
15891 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15892 enable_font_backend is nonzero, accept the composition method
15893 COMPOSITION_WITH_GLYPH_STRING.
15894
15895 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15896 enumeration COMPOSITION_WITH_GLYPH_STRING.
15897
15898 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15899 members clip_x, clip_y, clip_width, and clip_height.
15900 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15901
15902 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15903 --enable-font-backend. Call syms_of_font.
15904
15905 * fns.c (assoc_no_quit): New function.
15906
15907 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15908 (face_for_font, new_fontset_from_font)
15909 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15910
15911 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15912 (fontset_font, fontset_ascii, face_for_char)
15913 (make_fontset_for_ascii_face, Ffont_info)
15914 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15915 is nonzero, use font-backend mechanism.
15916 (find_font_encoding): Make it non-static.
15917 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15918 New functions.
15919
15920 * frame.h (struct frame): New members resx and resy.
15921 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15922 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15923
15924 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15925 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15926
15927 * lisp.h (assoc_no_quit): Extern it.
15928
15929 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15930 Through out the file, use FONT_INFO_FROM_FACE instead of
15931 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15932 rif->per_char_metric.
15933 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15934 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15935 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15936 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15937 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15938 nonzero, use font-backend mechanism.
15939 (get_per_char_metric): New function.
15940
15941 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15942 (set_lface_from_font_name)
15943 (set_font_frame_param, free_realized_face)
15944 (prepare_face_for_display, clear_face_gcs)
15945 (Finternal_set_font_selection_order, realize_x_face)
15946 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15947 font-backend mechanism.
15948 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15949 (load_face_font) [USE_FONT_BACKEND]: Abort.
15950 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15951 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15952
15953 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15954 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15955 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15956 nonzero, register all available font drivers. Call
15957 x_default_font_parameter for deciding a font.
15958 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15959
15960 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15961 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15962 (x_set_glyph_string_clipping_exactly)
15963 (x_compute_glyph_string_overhangs)
15964 (x_draw_glyph_string_foreground)
15965 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15966 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15967 enable_font_backend is nonzero, use font-backend mechanism.
15968 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15969
159702008-02-01 Kenichi Handa <handa@m17n.org>
15971
15972 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15973 system_eol_type.
15974 (syms_of_coding): Initialize system_eol_type.
15975
15976 * process.c (Fset_process_coding_system): Inherit system's eol
15977 format if necessary.
15978
159792008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15980
15981 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15982
159832008-02-01 Kenichi Handa <handa@m17n.org>
15984
15985 * coding.c (decode_eol): Pay attention to buffer relocation in
15986 del_range_2.
15987 (decode_coding): Call decode_eol before restoring undo_list.
15988
159892008-02-01 Kenichi Handa <handa@m17n.org>
15990
15991 * charset.c (Fdefine_charset_internal): Fix setting of
15992 emacs_mule_bytes.
15993
159942008-02-01 Kenichi Handa <handa@m17n.org>
15995
15996 * keyboard.c (read_char): Check if C is a character or not before
15997 looking up Vkeyboard_translate_table.
15998
159992008-02-01 Kenichi Handa <handa@m17n.org>
16000
16001 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
16002 condition to terminate the loop.
16003
160042008-02-01 Kenichi Handa <handa@m17n.org>
16005
16006 * coding.c (produce_composition): Compare charbuf[i] instead of
16007 args[i] against 0.
16008 (Fterminal_coding_system): Use EQ to compare Lisp objects.
16009
160102008-02-01 Kenichi Handa <handa@m17n.org>
16011
16012 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
16013 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
16014 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
16015 detect_coding.
16016 (emacs_mule_char): Handle old style (Emacs 20) component character
16017 of a composition.
16018 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
16019 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
16020 composition rule.
16021 (decode_coding_emacs_mule): Handle invalid bytes correctly.
16022
160232008-02-01 Kenichi Handa <handa@m17n.org>
16024
16025 * coding.c (encode_coding_ccl): Allocate destination dynamically
16026 when necessary.
16027
160282008-02-01 Kenichi Handa <handa@m17n.org>
16029
16030 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
16031 the loop. When quitted, show a proper error message.
16032
160332008-02-01 Kenichi Handa <handa@m17n.org>
16034
16035 * xterm.c (x_set_glyph_string_clipping_exactly): Set
16036 src->clip_head and src->clip_tail temporarily instead of src->hl.
16037
16038 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
16039 character sequence.
16040 (Fccl_execute_on_string): Use ASET, not XSET.
16041
160422008-02-01 Kenichi Handa <handa@m17n.org>
16043
16044 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
16045
160462008-02-01 Kenichi Handa <handa@m17n.org>
16047
16048 * coding.c (decode_coding): Fix the condition of terminating the
16049 decoding loop.
16050
160512008-02-01 Kenichi Handa <handa@m17n.org>
16052
16053 * data.c (Faset): On setting a character bigger than 255 in a
16054 unibyte string, signal an error instead of make the string multibyte.
16055
160562008-02-01 Kenichi Handa <handa@m17n.org>
16057
16058 * charset.c (map_charset_chars): Fix for ascii-compatible charset
16059 made by a mapping table.
16060
160612008-02-01 Kenichi Handa <handa@m17n.org>
16062
16063 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
16064 not.
16065 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
16066 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
16067
16068 * xterm.c (x_draw_composite_glyph_string_foreground): Check
16069 s->face is NULL or not.
16070
160712008-02-01 Kenichi Handa <handa@m17n.org>
16072
16073 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
16074 (x_draw_glyph_string): Fix drawing of right_overhang and
16075 left_overhang around/on cursor.
16076
16077 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
16078
160792008-02-01 Kenichi Handa <handa@m17n.org>
16080
16081 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
16082
160832008-02-01 Kenichi Handa <handa@m17n.org>
16084
16085 * coding.c (Fdefine_coding_system_internal)
16086 (Fdefine_coding_system_alias): Avoid a duplicated element in
16087 Vcoding_system_alist.
16088
160892008-02-01 Kenichi Handa <handa@m17n.org>
16090
16091 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
16092
16093 * coding.c (Qcoding_system_define_form): New variable.
16094 (syms_of_coding): Intern and staticpro it.
16095 (Fcoding_system_p): Check Qcoding_system_define_form.
16096 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
16097
16098 * coding.h (CODING_SYSTEM_P): If ID is not available, call
16099 Fcoding_system_p.
16100 (CHECK_CODING_SYSTEM): If ID is not available, call
16101 Fcheck_coding_system.
16102 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
16103 Try also Fcheck_coding_system.
16104
161052008-02-01 Kenichi Handa <handa@m17n.org>
16106
16107 * coding.c (code_conversion_restore): GCPRO arg.
16108
161092008-02-01 Kenichi Handa <handa@m17n.org>
16110
16111 * character.c (lisp_string_width): Check multibyteness of STRING.
16112
161132008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16114
16115 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
16116 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
16117 (decode_mac_font_name): Use decode_coding_c_string instead of
16118 decode_coding.
16119 (x_load_font): Initialize fontp->fontset to -1. Set
16120 fontp->encoding_type.
16121
161222008-02-01 Kenichi Handa <handa@m17n.org>
16123
16124 * search.c (search_buffer): Give up BM search on case-fold-search
16125 if one of a target character has a case-equivalence of different
8307f923 16126 byte length even if that target character is an ASCII.
aac0c6e3
MR
16127 (simple_search): Fix calculation of byte length of matched text.
16128 (boyer_moore): Fix handling of case-equivalent multibyte characters.
16129
161302008-02-01 Kenichi Handa <handa@m17n.org>
16131
16132 * coding.c (decode_coding): Fix handling of invalid bytes.
16133
161342008-02-01 Kenichi Handa <handa@m17n.org>
16135
16136 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
16137 Unicode characters.
16138
161392008-02-01 Kenichi Handa <handa@m17n.org>
16140
16141 * coding.c (encode_coding_object): If a pre-write-conversion
16142 function makes a new buffer, kill it.
16143
161442008-02-01 Kenichi Handa <handa@m17n.org>
16145
16146 * coding.c (QCascii_compatible_p): New variable.
16147 (syms_of_coding): Initialize it.
16148 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
16149 calling string_char.
16150 (record_conversion_result): Add `default:' case.
16151 (coding_charset_list): Delete unused variable `coding_type'.
16152 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
16153 property in the plist of the coding system.
16154 (Fcoding_system_put): Check QCascii_compatible_p.
16155
161562008-02-01 Miles Bader <miles@gnu.org>
16157
16158 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
16159 removed calculation of frame `f', as it's now used.
16160
161612008-02-01 Kenichi Handa <handa@m17n.org>
16162
16163 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
16164 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
16165 (UNIDATA): New variable.
16166 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
16167 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
16168 $(RUN_TEMACS) unconditionally.
16169
161702008-02-01 Kenichi Handa <handa@m17n.org>
16171
16172 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
16173 (admindir): New variable.
16174 ($(lispsource)international/charprop.el): New target.
16175
161762008-02-01 Miles Bader <miles@gnu.org>
16177
16178 * character.c (chars-in-region): Remove obsolete function.
16179 (syms_of_character): Remove its initialization.
16180
161812008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
16182
16183 * w32select.c (validate_coding_system)
16184 (setup_windows_coding_system): New functions.
16185 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
16186 setup_windows_coding_system.
16187 (setup_config, Fw32_get_clipboard_data): Use
16188 validate_coding_system.
16189 (Fx_selection_exists): Move call to setup_config to a place
16190 where signals are allowed.
16191
16192 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
16193 (Fcheck_coding_system): Add declarations.
16194
161952008-02-01 Kenichi Handa <handa@m17n.org>
16196
16197 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
16198
161992008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16200
16201 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
16202 string as the second argument for x_new_fontset.
16203
162042008-02-01 Kenichi Handa <handa@m17n.org>
16205
16206 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
16207 (encode_coding_object): Use safe_call instead of call2.
16208
162092008-02-01 Kenichi Handa <handa@m17n.org>
16210
16211 * fontset.c (Fset_fontset_font): Check family element of a given vector.
16212
16213 * Makefile.in (lisp): Include charprop.el.
16214
162152008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16216
16217 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
16218 Not sure if it's unnecessary.
16219
162202008-02-01 Steven Tamm <steventamm@mac.com>
16221
16222 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
16223 some possibly unnecessary fontset checking code that crashed
16224 when creating a new frame.
16225
162262008-02-01 Kenichi Handa <handa@m17n.org>
16227
16228 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
16229 lookup_face.
16230
16231 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
16232
16233 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
16234
162352008-02-01 Kenichi Handa <handa@m17n.org>
16236
16237 * coding.c: Cancel the change done in HEAD on 2008-02-01.
16238 (coding_charset_list): New function.
16239
16240 * coding.h (coding_charset_list): Extern it.
16241
162422008-02-01 Kenichi Handa <handa@m17n.org>
16243
16244 * fontset.c (Fset_fontset_font): Call find_font_encoding with
16245 concatenation of family and registry.
16246
162472008-02-01 Kenichi Handa <handa@m17n.org>
16248
16249 * character.h (BYTE8_STRING): Fix typo.
16250
16251 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
16252 string to multibyte (sync to HEAD).
16253
16254 * casefiddle.c (casify_region): Handle changes in byte-length
16255 using replace_range_2 (sync to HEAD).
16256
162572008-02-01 Andreas Schwab <schwab@suse.de>
16258
16259 * chartab.c (map_char_table): GCPRO table and arg.
16260
162612008-02-01 Kenichi Handa <handa@m17n.org>
16262
16263 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
16264 already at limit.
16265
162662008-02-01 Kenichi Handa <handa@m17n.org>
16267
16268 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
16269 instead of fast_c_string_match_ignore_case.
16270 (find_font_encoding): Change argument to Lisp_Object. Use
16271 fast_string_match_ignore_case instead of
16272 fast_c_string_match_ignore_case. Change caller.
16273
162742008-02-01 Kenichi Handa <handa@m17n.org>
16275
16276 * xdisp.c (get_next_display_element): In unibyte case, decide to
16277 display in octal form by checking a character by
16278 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
16279
16280 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
16281
16282 * character.c (unibyte_has_multibyte_table): New variable.
16283
16284 * character.h (unibyte_has_multibyte_table): Extern it.
16285 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
16286
162872008-02-01 Kenichi Handa <handa@m17n.org>
16288
16289 * coding.c (encode_coding_iso_2022): Fix handling of charset
16290 annotation.
16291
162922008-02-01 Kenichi Handa <handa@m17n.org>
16293
16294 * coding.c (setup_coding_system): If coding_system is nil, use
16295 Qundecided.
16296 (Fterminal_coding_system): Return nil if terminal coding system is
16297 `undecided'.
16298 (syms_of_coding): Define coding-system `undecided' here. Setup
16299 terminal_coding as `undecided'.
16300
163012008-02-01 Kenichi Handa <handa@m17n.org>
16302
16303 * xdisp.c (message_dolog, set_message_1): Call
16304 unibyte_char_to_multibyte with arg type int.
16305
16306 * lread.c (read1): Fix reading of a char-table.
16307
16308 * print.c (print_object): Include sub char-table in circularities
16309 detection.
16310
163112008-02-01 Kenichi Handa <handa@m17n.org>
16312
16313 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
16314 Append the found sequences in car of ARGS instead of prepending.
16315
163162008-02-01 Kenichi Handa <handa@m17n.org>
16317
16318 * fileio.c (report_file_error): Make a unibyte string from
16319 strerror (errorno).
16320 (Fsubstitute_in_file_name): Fix the arg to
16321 unibyte_char_to_multibyte. It is evaluated twice.
16322
163232008-02-01 Kenichi Handa <handa@m17n.org>
16324
16325 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
16326
163272008-02-01 Kenichi Handa <handa@m17n.org>
16328
16329 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
16330 BOM is not found.
16331 (detect_coding, detect_coding_system): Optimization for ISO-2022
16332 when no 8-bit data is found.
16333
163342008-02-01 Jason Rumney <jasonr@gnu.org>
16335
16336 * w32fns.c (x_to_w32_font): Update to use new coding struct.
16337
163382008-02-01 Kenichi Handa <handa@m17n.org>
16339
16340 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
16341 CHARS.
16342
163432008-02-01 Steven Tamm <steventamm@mac.com>
16344
16345 * macterm.c (mac_encode_char): Add charset argument and update
16346 to use encoding_type.
16347 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
16348 switch to pure fontset.
16349 (decode_mac_font_name): Temporarily remove decoding.
16350 (x_font_name_to_mac_font_name): Temporarily remove encoding.
16351 (x_load_font): Temporarily remove encoding.
16352
163532008-02-01 Kenichi Handa <handa@m17n.org>
16354
16355 * xfaces.c (Fface_font): If frame is not on a window system,
16356 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
16357 refer to face->font.
16358 (split_font_name_into_vector, build_font_name_from_vector)
16359 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
16360 when HAVE_WINDOW_SYSTEM is defined.
16361
163622008-02-01 Kenichi Handa <handa@m17n.org>
16363
16364 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
16365 (x_produce_glyphs): Fix setting of members of cmp in case
16366 cmp->glyph_len is zero.
16367
16368 * fontset.c (Fset_fontset_font): Fix docstring.
16369 (Ffontset_info): Make it backward compatible. New arg ALL.
16370
163712008-02-01 Kim F. Storm <storm@cua.dk>
16372
16373 * process.c (read_process_output): Grow decoding_buf when needed;
16374 this could cause a crash in allocate_string and compact_small_strings.
16375
163762008-02-01 Kenichi Handa <handa@m17n.org>
16377
16378 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
16379
163802008-02-01 Kenichi Handa <handa@m17n.org>
16381
16382 * coding.c (setup_coding_system): Set coding->common_flags
16383 correctly for raw-text.
16384 (consume_chars): On encoding unibyte text by raw-text, don't check
16385 multibyte form.
16386 (encode_coding): On encoding by raw-text, never use translation tables.
16387
16388 * fileio.c (e_write): Short cut for the case of no encoding.
16389
163902008-02-01 Kenichi Handa <handa@m17n.org>
16391
16392 * coding.c (detect_coding, detect_coding_system): Delete unused
16393 variables.
16394
163952008-02-01 Kenichi Handa <handa@m17n.org>
16396
16397 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
16398 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
16399
164002008-02-01 Kenichi Handa <handa@m17n.org>
16401
16402 * coding.c (Ffind_coding_systems_region_internal): Include
16403 raw-text and no-conversion in the result.
16404
164052008-02-01 Kenichi Handa <handa@m17n.org>
16406
16407 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
16408 (load_font_get_repertory): Delete unnecessary check of ENCODING of
16409 FONT_DEF.
16410 (font_def_arg, add_arg, from_arg, to_arg): New args.
16411 (set_fontset_font): Change argument.
16412 (Fset_fontset_font): Fix for the case that TARGET is a script
16413 name and charset name.
16414 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
16415
164162008-02-01 Kenichi Handa <handa@m17n.org>
16417
16418 * fontset.c (fontset_font): Rename from fontset_face. Change return
16419 value.
16420 (face_suitable_for_char_p, face_for_char): Adjust for the change
16421 of fontset_font.
16422 (make_fontset_for_ascii_face): Fix setting of the fontset element
16423 for ASCII.
16424 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
16425 to get a font name.
16426 (Ffontset_info): Adjust for the change of fontset_font.
16427
16428 * coding.c (emacs_mule_char): Check invalid code more rigidly.
16429
16430 * character.h (LEADING_CODE_LATIN_1_MIN)
16431 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
16432
164332008-02-01 Kenichi Handa <handa@m17n.org>
16434
16435 * editfns.c (check_translation): New function.
16436 (Ftranslate_region_internal): Handle M:N mapping.
16437
164382008-02-01 Kenichi Handa <handa@m17n.org>
16439
16440 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
16441
164422008-02-01 Kenichi Handa <handa@m17n.org>
16443
16444 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
16445 goto invalid_code.
16446 (decode_coding_iso_2022): Fix handling of invalid designation.
16447
16448 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
16449 after calling code_conversion_save.
16450
164512008-02-01 Kenichi Handa <handa@m17n.org>
16452
16453 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
16454
16455 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
16456
16457 * fontset.c: Include "intervals.h".
16458 (fontset_face): Fix comparing of Lisp_Objects.
16459 (free_face_fontset, new_fontset_from_font_name): Fix
16460 Lisp_Object/int mixup.
16461
16462 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
16463
16464 * coding.c: Add many prototypes for static functions.
16465 (get_translation_table): Allow max_lookup to be NULL.
16466 (decode_coding, Ffind_coding_systems_region_internal)
16467 (Funencodable_char_position, Fcheck_coding_systems_region): Call
16468 get_translation_table with max_lookup NULL.
16469
164702008-02-01 Kenichi Handa <handa@m17n.org>
16471
16472 * coding.c (get_translation_table): Declare it as Lisp_Object.
16473 (LOOKUP_TRANSLATION_TABLE): New macro.
16474 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
16475 instead of CHAR_TABLE_REF.
16476
164772008-02-01 Kenichi Handa <handa@m17n.org>
16478
16479 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
16480 annotation data format.
16481 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
16482 Change arguments FROM and TO to single argument NCHARS. Change caller.
16483 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
16484 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16485 (decode_coding_ccl, decode_coding_charset): Pay attention to
16486 coding->charbuf_used.
16487 (get_translation): New function.
16488 (produce_chars): New arguments translation_table and last_block.
16489 Translate characters here. Return number of carryover chars.
16490 Change caller.
16491 (produce_composition): New argument pos. Change caller.
16492 Adjust for the change of annotation data format.
16493 (produce_charset, produce_annotation): Likewise.
16494 (decode_coding, encode_coding): Don't call translate_chars.
16495 (consume_chars): New arg translation_table. Change caller.
16496 (translate_chars): Delete.
16497 (syms_of_coding): Make translation-table's number of extra slots 2.
16498
164992008-02-01 Kenichi Handa <handa@m17n.org>
16500
16501 * search.c (simple_search): Fix setting this_pos_byte in backward
16502 search.
16503
16504 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
16505 byte sequence.
16506 (detect_coding_ccl): Fix setting of the variable valids.
16507
165082008-02-01 Kenichi Handa <handa@m17n.org>
16509
16510 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
16511
16512 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
16513
16514 * editfns.c (Ftranslate_region_internal): Rename from
16515 Ftranslate_region. Accept a char-table in TABLE.
16516 (syms_of_editfns): Defsubr Stranslate_region_internal.
16517
16518 * xfaces.c (set_lface_from_font_name): If a font is specified for
16519 a frame, generate a fontset from the font.
16520 (build_scalable_font_name): If the scalable font is requested for
16521 a specific size, don't change that size.
16522 (try_font_list): Try a scalable font also in the case that a
16523 pattern string is specified.
16524
165252008-02-01 Kenichi Handa <handa@m17n.org>
16526
16527 * xfaces.c (Fface_font): New optional arg CHARACTER.
16528
165292008-02-01 Kenichi Handa <handa@m17n.org>
16530
16531 * charset.h (CHARSET_OFFSET): New macro.
16532
165332008-02-01 Kenichi Handa <handa@m17n.org>
16534
16535 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
16536
16537 * fontset.c (fontset_face): Handle the case that repertory is a
16538 char-table.
16539 (find_font_encoding): Return nil for unknown encoding.
16540 (Fset_fontset_font): Ignore a font of unknown encoding.
16541
165422008-02-01 Kenichi Handa <handa@m17n.org>
16543
16544 * keymap.c (describe_vector): Handle default value of a char table.
16545
16546 * fontset.c (fontset_face): Handle fallback fonts correctly.
16547 (Ffontset_info): Return infomation about fallback fonts.
16548
165492008-02-01 Kenichi Handa <handa@m17n.org>
16550
16551 * fontset.c (FONTSET_DEFAULT): New macro.
16552 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16553 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16554 the case that it is nil.
16555 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16556 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16557
16558 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16559 subset or superset.
16560
165612008-02-01 Kenichi Handa <handa@m17n.org>
16562
16563 * emacs.c (main): Call init_charset after syms_of_XXX.
16564
16565 * charset.c (Vcharset_map_directory): Delete.
16566 (Vcharset_map_path): New variable.
16567 (load_charset_map_from_file): Use Vcharset_map_path instead.
16568 (init_charset): Initialize Vcharset_map_path.
16569 (syms_of_charset): Delete declaration of "charset-map-directory",
16570 add declaration of "charset-map-path".
16571
165722008-02-01 Kenichi Handa <handa@m17n.org>
16573
16574 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16575 ASCII only string.
16576
16577 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16578
16579 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16580 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16581
165822008-02-01 Kenichi Handa <handa@m17n.org>
16583
16584 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16585
16586 * coding.c (QCmnemonic, QCdefalut_char)
16587 (QCdecode_translation_table, QCencode_translation_table)
16588 (QCpost_read_conversion, QCpre_write_conversion): New variables.
16589 (get_translation_table): Return a list of translation tables if
16590 necessary.
16591 (decode_coding): Call get_translation_table with ENCODEP 0.
16592 (char_encodable_p): If translation_table is non-nil, always call
16593 translate_char.
16594 (Fdefine_coding_system_internal): Accept list of translation
16595 tables as :encode-translation-table and :decode-translation-table.
16596 (Fcoding_system_put): New function.
16597 (syms_of_coding): Declare new symbols. Defsubr
16598 Scoding_system_put.
16599 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16600 typically JISX0212.
16601
16602 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16603 when the charset is superset type.
16604
16605 * character.c (translate_char): Accept list of translation tables.
16606
166072008-02-01 Kenichi Handa <handa@m17n.org>
16608
16609 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16610 (CODING_ATTR_TRANS_TBL): New macro.
16611
16612 * coding.c (get_translation_table): New function.
16613 (translate_chars): Fix the bug of skipping annotation data.
16614 (decode_coding, encode_coding): Utilize get_translation_table.
16615 (char_encodable_p, Funencodable_char_position): Translate char if
16616 necessary.
16617 (Ffind_coding_systems_region_internal)
16618 (Fcheck_coding_systems_region): Setup translation table for encode
16619 in a coding system attribute vector in advance.
16620 (Fdefine_coding_system_internal): Allow a symbol as translation
16621 table. For shift-jis type coding system, allow 4th charset.
16622
166232008-02-01 Kenichi Handa <handa@m17n.org>
16624
16625 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16626
16627 * xdisp.c (get_next_display_element): Pass -1 as POS to
16628 FACE_FOR_CHAR if displaying a C-string.
16629
166302008-02-01 Kenichi Handa <handa@m17n.org>
16631
16632 * composite.c (get_composition_id): Handle xoff and yoff in a
16633 composition rule.
16634
16635 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16636 (struct composition): New member lbearing and rbearing.
16637
16638 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16639 (x_get_glyph_overhangs): Handle a composition glyph.
16640 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16641
16642 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16643 composition glyph.
16644
166452008-02-01 Kenichi Handa <handa@m17n.org>
16646
16647 * print.c: Include charset.h.
16648 (Vprint_charset_text_property): New variable.
16649 (Qdefault): Extern it.
16650 (PRINT_STRING_NON_CHARSET_FOUND)
16651 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16652 (print_check_string_result): New variable.
16653 (print_check_string_charset_prop): New function.
16654 (print_prune_charset_plist): New variable.
16655 (print_prune_string_charset): New function.
16656 (print_object): Call print_prune_string_charset if
16657 Vprint_charset_text_property is not t.
16658 (print_interval): Print nothing if interval->plist is nil.
16659 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16660 variable. Init and staticpro print_prune_charset_plist.
16661
166622008-02-01 Kenichi Handa <handa@m17n.org>
16663
16664 * fontset.c (new_fontset_from_font_name): Use the specified font
16665 for all characters in the new fontset.
16666
16667 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16668 OBJECT args.
16669
16670 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16671 OBJECT args for composition too.
16672
16673 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16674 OBJECT args.
16675
166762008-02-01 Kenichi Handa <handa@m17n.org>
16677
16678 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16679
16680 * fontset.c (reorder_font_vector): Adjust for the change of
16681 FONT_DEF format.
16682 (fontset_face): New arg id. Change caller.
16683 (face_for_char): New args pos and object.
16684 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16685 (fs_query_fontset): Check NAME by Fassoc too.
16686 (Fset_fontset_font): Allow non-XLFD font name.
16687 (Ffontset_info): Adjust for the change of FONT_DEF format.
16688
16689 * fontset.h (face_for_char): Adjust prototype.
16690
16691 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16692 (append_space, extend_face_to_end_of_line)
16693 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16694 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16695
16696 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16697 POS and OBJECT args.
16698
16699 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16700 POS and OBJECT args.
16701
167022008-02-01 Jason Rumney <jasonr@gnu.org>
16703
16704 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16705 of GlobalAlloc'ed memory.
16706
167072008-02-01 Kenichi Handa <handa@m17n.org>
16708
16709 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16710
16711 * charset.h (charset_table_used): Delete extern.
16712
16713 * charset.c (charset_table_used): Make it static.
16714 (map_charset_chars): Fix args to c_function with.
16715
16716 * chartab.c (map_sub_char_table_for_charset): Fix args to
16717 c_function with.
16718
16719 * coding.h (enum coding_result_code): Delete
16720 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16721
16722 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16723 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16724 (Vlast_code_conversion_error): New variables.
16725 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16726 (ONE_MORE_BYTE): Record error if any instead of signaling an
16727 error. If non-ASCII multibyte char is found, return the negative
16728 value of the code. All callers changed to check it.
16729 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16730 (record_conversion_result): New function. Change all codes setting
16731 coding->result to call this function.
16732 (detect_coding_utf_8, decode_coding_utf_8)
16733 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16734 Don't use the local variable incomplete.
16735 (emacs_mule_char): Change the second arg to `const'.
16736 (decode_coding): Fix of flushing out unprocessed data.
16737 (make_conversion_work_buffer): Fix making of a work buffer.
16738 (decode_coding_object): Return coding->dst_object.
16739
16740 * fontset.c (set_fontset_font): Fix args.
16741
16742 * lisp.h (CHARACTERBITS): Define as 22.
16743
16744 * process.c (send_process): Be sure to set coding->src_multibyte.
16745
16746 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16747
167482008-02-01 Kenichi Handa <handa@m17n.org>
16749
16750 * xdisp.c (handle_auto_composed_prop): Give limit to
16751 Fnext_single_char_property_change.
16752
167532008-02-01 Kenichi Handa <handa@m17n.org>
16754
16755 * composite.c (syms_of_composite): Don't make the composition hash
16756 table weak.
16757
16758 * fontset.c (Fset_fontset_font): Fix docstring.
16759
16760 * lisp.h (detect_coding_system): Adjust prototype.
16761
16762 * fileio.c (kill_workbuf_unwind): Delete this function.
16763 (Finsert_file_contents): Adjust the call of detect_coding_system.
16764 Get conversion_buffer by code_conversion_save. Use the macro
16765 CODING_MAY_REQUIRE_DECODING. After decoding, update
16766 coding_system.
16767
16768 * coding.h (make_conversion_work_buffer): Delete extern.
16769 (code_conversion_save): Extern it.
16770
16771 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16772 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16773 (decode_coding_utf_8): Don't do eol converion.
16774 (detect_coding_utf_16): Check coding->src_chars, not
16775 coding->src_bytes. Add heuristics for those that have no signature.
16776 (decode_coding_emacs_mule, decode_coding_iso_2022)
16777 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16778 Don't do eol converion.
16779 (adjust_coding_eol_type): Return a new coding system.
16780 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16781 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16782 each change.
16783 (decode_coding): Pay attention to undo_list. Do eol conversion for
16784 all types of coding-systems (if necessary).
16785 (Vcode_conversion_work_buf_list): Delete it.
16786 (Vcode_conversion_reused_workbuf): Rename from
16787 Vcode_conversion_reused_work_buf.
16788 (Vcode_conversion_workbuf_name): New variable.
16789 (reused_workbuf_in_use): New variable.
16790 (make_conversion_work_buffer): Delete the arg DEPTH.
16791 (code_conversion_restore): Change argument to cons.
16792 (code_conversion_save): Delete the argument BUFFER. Change callers.
16793 (detect_coding_system): New argument src_chars. Change callers.
16794 Fix for utf-16 detection.
16795 (init_coding_once): Don't use ISO_carriage_return.
16796 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16797 reused_workbuf_in_use.
16798
167992008-02-01 Kenichi Handa <handa@m17n.org>
16800
16801 * keymap.c (store_in_keymap): Pay attention to the case that idx
16802 is a cons specifying a character range.
16803
168042008-02-01 Kenichi Handa <handa@m17n.org>
16805
16806 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16807 HANDLED_RECOMPUTE_PROPS.
16808
16809 * coding.c (Fdefine_coding_system_internal): Fix checking of
16810 ascii compatibility.
16811
168122008-02-01 Kenichi Handa <handa@m17n.org>
16813
16814 * charset.c (find_charsets_in_text): Delete unused locale variable.
16815 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16816
16817 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16818 Resync charset_list to Vemacs_mule_charset_list.
16819
16820 * keymap.c (store_in_keymap): Pay attention to the case that idx
16821 is a cons specifying a character range.
16822
168232008-02-01 Kenichi Handa <handa@m17n.org>
16824
16825 * composite.c (update_compositions): Bind inhibit-read-only, etc
16826 to t before calling remove-list-of-text-properties.
16827
16828 * print.c (print_object): Always print ASCII chars as is.
16829
168302008-02-01 Kenichi Handa <handa@m17n.org>
16831
16832 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16833
16834 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16835 is a char table.
16836
168372008-02-01 Kenichi Handa <handa@m17n.org>
16838
16839 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16840
168412008-02-01 Kenichi Handa <handa@m17n.org>
16842
16843 * xfaces.c (set_lface_from_font_name): Fix for the case that
16844 FONTNAME is not fontset name.
16845
168462008-02-01 Kenichi Handa <handa@m17n.org>
16847
16848 * fns.c (base64_encode_1): Fix previous change.
16849
168502008-02-01 Kenichi Handa <handa@m17n.org>
16851
16852 * fontset.c (set_fontset_font): New function.
16853 (Fset_fontset_font): If a font is specified for a charset, use
16854 map_charset_chars to store the font spec in a fontset.
16855
168562008-02-01 Kenichi Handa <handa@m17n.org>
16857
16858 * fontset.c (fontset_face): Create a fallback fontset on demand.
16859 (make_fontset): Don't create a fallback fontset here.
16860 (free_face_fontset): Free a fallback fontset (if any) too.
16861 (n_auto_fontsets): Delete this variable.
16862 (auto_fontset_alist): New variable.
16863 (new_fontset_from_font_name): Check auto_fontset_alist.
16864 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16865 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16866 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16867 Defsubr Sfontset_list_all.
16868
168692008-02-01 Kenichi Handa <handa@m17n.org>
16870
16871 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16872
168732008-02-01 Kenichi Handa <handa@m17n.org>
16874
16875 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16876
168772008-02-01 Kenichi Handa <handa@m17n.org>
16878
16879 * editfns.c (Fgoto_char): Fix docstring.
16880
168812008-02-01 Kenichi Handa <handa@m17n.org>
16882
16883 * insdel.c (insert_from_gap): Adjust intervals correctly.
16884
168852008-02-01 Jason Rumney <jasonr@gnu.org>
16886
16887 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16888 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16889 (w32_initialize): Try to load it.
16890 (x_get_font_repertory): Use it if available.
16891 (w32_encode_char): Add shortcut for unicode output.
16892
16893 * w32fns.c (w32_load_system_font): Default charset to -1.
16894 (x_to_w32_charset): Match all fonts for unicode.
16895 (w32_to_x_charset): New parameter matching. Don't return partial
16896 or wildcard charsets.
16897 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16898 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16899 (w32_to_x_font): Match charset to real charset.
16900 (enum_font_cb2): Always list unicode versions.
16901
16902 * makefile.w32-in (temacs): Increase EMHEAP.
16903
169042008-02-01 Jason Rumney <jasonr@gnu.org>
16905
16906 * w32term.c (w32_encode_char): New charset parameter.
16907 font_info.encoding becomes encoding_type.
16908 (x_get_font_repertory): New function. Warning: stub only!
16909 (x_new_font): Return quickly if font already set.
16910 (x_new_fontset): fontsetname parameter is Lisp_Object.
16911 Use new fs_query_fontset. Try new_fontset_from_font_name.
16912 Use fontset_name for return value.
16913
16914 * w32term.h: Declare x_get_font_repertory.
16915
16916 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16917 place of find_charset_in_text. Use encode_coding_object in place
16918 of encode_coding.
16919 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16920 decode_coding.
16921
16922 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16923 of x_new_fontset.
16924 (w32_load_system_font): Initialize charset as unicode.
16925 font_info.encoding becomes encoding_type.
16926 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16927 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16928 (syms_of_w32fns): Set get_font_repertory_func.
16929
16930 * w32console.c: Include character.h. Use terminal_encode_buffer
16931 from term.c.
16932 (write_glyphs): Use new version of encode_terminal_code. Use
16933 encode_coding_object in place of encode_coding.
16934
16935 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16936 encoding becomes encoding_type.
16937
16938 * term.c (terminal_encode_buffer): Make externally visible.
16939
16940 * makefile.w32-in: Add character.h dependancies.
16941 (character.o, chartab.o): New targets.
16942
169432008-02-01 Kenichi Handa <handa@m17n.org>
16944
16945 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16946 CODING_ID_EOL_TYPE.
16947
169482008-02-01 Andreas Schwab <schwab@suse.de>
16949
16950 * coding.c (produce_chars): Revert last change.
16951
169522008-02-01 Kenichi Handa <handa@m17n.org>
16953
16954 * charset.h (charset_unicode): Extern it.
16955
16956 * charset.c (string_xstring_p): Check by (C >= 0x100).
16957 (find_charsets_in_text): Change format of the arc CHARSETS. New
16958 arg MULTIBYTE.
16959 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16960 change of find_charsets_in_text.
16961 (Fsplit_char): Fix doc. Never return unknown.
16962
16963 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16964
16965 * coding.c (Fdefine_coding_system_alias): Update
16966 Vcoding_system_list.
16967
16968 * fontset.c (load_font_get_repertory): Pay attention to the case
16969 that ENCODING of a font is specified by a char-table.
16970
16971 * xterm.c (x_get_font_repertory): Handle the case that the
16972 encoding of font is other than Unicode.
16973
169742008-02-01 Kenichi Handa <handa@m17n.org>
16975
16976 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16977 if a character is encodable by the terminal coding system. If
16978 not, produces proper number of `?'s. Update
16979 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16980 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16981
169822008-02-01 Kenichi Handa <handa@m17n.org>
16983
16984 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16985 variables.
16986 (encode_terminal_code): Change argument. Encode multiple
16987 characters at once. Store the result of encoding in
16988 terminal_encode_buffer.
16989 (write_glyphs, insert_glyphs): Adjust for the change of
16990 encode_terminal_code.
16991 (term_init): Initialize terminal_encode_buffer and
16992 terminal_encode_buf_size.
16993
16994 * coding.c (consume_chars): If coding->src_object is nil, don't
16995 check annotation.
16996
169972008-02-01 Kenichi Handa <handa@m17n.org>
16998
16999 * character.c (char_string): Use ASCII_CHAR_P instead of
17000 SINGLE_BYTE_CHAR_P.
17001
170022008-02-01 Kenichi Handa <handa@m17n.org>
17003
17004 * xdisp.c (handle_auto_composed_prop): Check if the last
17005 characters of auto-composed region is newly composed with the
17006 following characters.
17007 (handle_composition_prop): Fix checking of point being inside
17008 composition.
17009
170102008-02-01 Kenichi Handa <handa@m17n.org>
17011
17012 * fns.c (concat): Don't change multibyteness of the result by
17013 concatenating an 8-bit character.
17014
17015 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
17016 multibyteness of the result when newelt is an 8-bit character.
17017
170182008-02-01 Dave Love <fx@gnu.org>
17019
17020 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
17021 EMACS_INT.
17022
17023 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
17024
17025 * xfaces.c (face_numeric_value): Declare dim size_t.
17026 (Finternal_lisp_face_equal_p): Remove unused f.
17027
17028 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
17029 (MATRIX_ROW): Remove unused vars.
17030 (draw_glyphs, x_insert_glyphs, fast_find_position)
17031 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
17032 byte/char counts.
17033
17034 * regex.c (regex_compile): Remove unused var.
17035
17036 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17037
17038 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
17039 (Faccessible_keymaps, where_is_internal): Remove unused vars.
17040
17041 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
17042
17043 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
17044
17045 * fileio.c (Fwrite_region): Remove unused var.
17046
17047 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
17048 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
17049
17050 * composite.c (Fremove_list_of_text_properties): Declare.
17051
17052 * coding.c (inhibit_pre_post_conversion): Remove (unused).
17053 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
17054 (coding_inherit_eol_type): Remove unused attrs.
17055 (detect_coding): Cast arg of detect_eol.
17056
17057 * charset.c (syms_of_charset): Remove unused var p.
17058 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
17059 byte/char counts.
17060
17061 * casetab.c (set_case_table): Remove unused var.
17062
17063 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
17064 unused vars.
17065
170662008-02-01 Dave Love <fx@gnu.org>
17067
17068 * xterm.c (x_bitmap_mask): Declare.
17069
170702008-02-01 Dave Love <fx@gnu.org>
17071
17072 * xterm.c (x_term_init): Fix type error.
17073
17074 * lisp.h: Add Funibyte_char_to_multibyte.
17075
17076 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
17077 (Fset_coding_system_priority): Doc fix.
17078
17079 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
17080
17081 * indent.c (check_composition): Make start and end EMACS_INT.
17082
17083 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
17084
17085 * xdisp.c (handle_composition_prop, check_point_in_composition):
17086 Make buffer positions EMACS_INT.
17087
17088 * composite.c (find_composition, run_composition_function)
17089 (update_compositions, Ffind_composition_internal): Make buffer
17090 positions EMACS_INT.
17091
17092 * composite.h (find_composition, update_compositions): Make
17093 position args EMACS_INT.
17094
17095 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
17096
17097 * intervals.c (get_property_and_range):
17098 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
17099
17100 * unexalpha.c: Don't include varargs.h.
17101
171022008-02-01 Dave Love <fx@gnu.org>
17103
17104 * coding.h (ENCODE_UTF_8): New.
17105
17106 * Makefile.in (gtkutil.o): Depend on coding.h.
17107
17108 * coding.c (Fset_coding_system_priority): Doc fix.
17109
171102008-02-01 Kenichi Handa <handa@m17n.org>
17111
17112 * fileio.c (Finsert_file_contents): Call setup_coding_system in
17113 the case of auto saving.
17114
171152008-02-01 Andreas Schwab <schwab@suse.de>
17116
17117 * chartab.c (map_char_table, map_char_table_for_charset): Protect
17118 `range' from GC.
17119
171202008-02-01 Kenichi Handa <handa@m17n.org>
17121
17122 * coding.c (decode_coding_sjis): Check bytes more rigidly.
17123
171242008-02-01 Kenichi Handa <handa@m17n.org>
17125
17126 * fileio.c (choose_write_coding_system): Return a decided coding system.
17127 (Fwrite_region): Set Vlast_coding_system_used to the return value
17128 of choose_write_coding_system.
17129
171302008-02-01 Kenichi Handa <handa@m17n.org>
17131
17132 * charset.c (Fset_charset_priority): Pay attention to duplicated
17133 arguments.
17134
17135 * coding.c (QCcategory): New variable.
17136 (syms_of_coding): Defsym it. Set all elements of
17137 Vcoding_category_table and their symbol values.
17138 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
17139 coding-category-XXX, and coding-category-list.
17140 (Fdefine_coding_system_internal): Add category in the plist.
17141
171422008-02-01 Kenichi Handa <handa@m17n.org>
17143
17144 * callproc.c (Fcall_process): Handle carryover correctly.
17145
17146 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
17147 (raw_text_coding_system): Check NILP (coding_system).
17148 (coding_inherit_eol_type): Check NILP (coding_system) and
17149 NILP (parent).
17150 (consume_chars): Fix for the case of raw-text.
17151
17152 * process.c (read_process_output): Handle carryover correctly.
17153
171542008-02-01 Dave Love <fx@gnu.org>
17155
17156 * regex.c (re_search_2): Fix last change.
17157
171582008-02-01 Kenichi Handa <handa@m17n.org>
17159
17160 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
17161 target_multibyte. Even in a unibyte case, return a converted
17162 multibyte char.
17163 (GET_CHAR_AFTER): New macro.
17164 (PATFETCH): Translate via multibyte char.
17165 (HANDLE_UNIBYTE_RANGE): Delete this macro.
17166 (SETUP_MULTIBYTE_RANGE): New macro.
17167 (regex_compile): Setup compiled code so that its multibyteness
17168 matches that of a target. Fix the handling of "[X-YZ]" using
17169 SETUP_MULTIBYTE_RANGE.
17170 (analyse_first) <charset>: For filling fastmap for all multibyte
17171 characters, don't check by BASE_LEADING_CODE_P.
17172 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
17173 the same as RE_MULTIBYTE_P (bufp) now.
17174 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
17175 (TARGET_CHAR_AND_LENGTH): Delete this macro.
17176 (TRANSLATE_VIA_MULTIBYTE): New macro.
17177 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
17178 It is the same as RE_MULTIBYTE_P (bufp) now.
17179 <exactn>: Translate via multibyte.
17180 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
17181 translate it.
17182 <charset, charset_not>: Fetch a character by
17183 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
17184 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
17185 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
17186 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
17187 by GET_CHAR_AFTER.
17188 (bcmp_translate): Likewise.
17189
17190 * search.c (compile_pattern): Check the member target_multibyte,
17191 not the member multibyte of buf.
17192
17193 * lread.c (read1): While reading a string, set force_singlebyte
17194 and force_multibyte correctly.
17195
17196 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
17197 up of unibyte_to_multibyte_table.
17198
171992008-02-01 Kenichi Handa <handa@m17n.org>
17200
17201 * coding.c (setup_coding_system): If coding has
17202 post-read-conversion or pre-write-conversion, set
17203 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
17204 respectively.
17205 (decode_coding_gap): Run post-read-conversion if any.
17206
17207 * fileio.c (Finsert_file_contents): Even if we read into a
17208 unibyte buffer, check if we must decode the result or not.
17209
172102008-02-01 Kenichi Handa <handa@m17n.org>
17211
17212 * coding.c (make_conversion_work_buffer): Change the work buffer
17213 name to the same one as that of Emacs 21.
17214
172152008-02-01 Kenichi Handa <handa@m17n.org>
17216
17217 * coding.h (make_conversion_work_buffer): Adjust prototype.
17218 (code_conversion_restore): Don't extern it.
17219
17220 * coding.c (detected_mask): Delete unused variable.
17221 (decode_coding_iso_2022): Pay attention to the byte sequence of
17222 CTEXT extended segment, and retain those bytes as is.
17223 (decode_coding_ccl): Delete unused variable `valids'.
17224 (setup_coding_system): Delete unused variable `category'.
17225 (consume_chars): Delete unused variable `category'. Make it work
17226 for non-multibyte case.
17227 (make_conversion_work_buffer): Change argument.
17228 (saved_coding): Delete unused variable.
17229 (code_conversion_restore): Don't check saved_coding->destination.
17230 (code_conversion_save): New function.
17231 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
17232 instead of record_unwind_protect.
17233 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
17234 (detect_coding_system): Delete unused variable `mask'.
17235 (Fdefine_coding_system_internal): Delete unused variable id.
17236
17237 * fileio.c (kill_workbuf_unwind): New function.
17238 (Finsert_file_contents): On replacing, call
17239 make_conversion_work_buffer with correct args, and call
17240 record_unwind_protect with the first arg kill_workbuf_unwind.
17241
17242 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
17243
172442008-02-01 Kenichi Handa <handa@m17n.org>
17245
17246 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
17247 (fontset_add): Fix for the case that TO is less than TO1.
17248 (Ffontset_info): Don't use fallback fontset on checking the
17249 default fontset.
17250 (dump_fontset): New function for debugging.
17251
17252 * coding.c (Fdefine_coding_system_internal): Fix for the case that
17253 coding_type is Qcharset.
17254
172552008-02-01 Kenichi Handa <handa@m17n.org>
17256
17257 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
17258 (map_char_table): Don't inherit the value from the parent on
17259 initializing VAL. Adjust for the above change.
17260
172612008-02-01 Kenichi Handa <handa@m17n.org>
17262
17263 * coding.c (Qsignature, Qendian): Delete these variables.
17264 (syms_of_coding): Don't initialize them.
17265 (CATEGORY_MASK_UTF_16_AUTO): New macro.
17266 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
17267 detect_info->found.
17268 (decode_coding_utf_16): Don't detect BOM here.
17269 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
17270 is NOT utf_16_without_bom.
17271 (setup_coding_system): For a coding system of type utf-16, check
17272 if the attribute :endian is Qbig or not (not nil or not), and set
17273 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
17274 (detect_coding): If coding type is utf-16 and BOM detection is
17275 required, detect it.
17276 (Fdefine_coding_system_internal): For a coding system of type
17277 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
17278
172792008-02-01 Kenichi Handa <handa@m17n.org>
17280
17281 * coding.c (coding_set_source): Fix for the case that the current
17282 buffer is different from coding->src_object.
17283 (decode_coding_object): Don't use the conversion work buffer if
17284 DST_OBJECT is a buffer.
17285
172862008-02-01 Dave Love <fx@gnu.org>
17287
17288 * lread.c (read_emacs_mule_char) [len==2]: Index
17289 emacs_mule_charset correctly.
17290
172912008-02-01 Dave Love <fx@gnu.org>
17292
17293 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
17294 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
17295 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
17296 treated specially.)
17297 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
17298 (detected_mask): Remove Big5 bits.
17299
173002008-02-01 Kenichi Handa <handa@m17n.org>
17301
17302 The following changes are to make the font rescaling facility
17303 compatible with Emacs 21.
17304
17305 * xfaces.c (Vface_font_rescale_alist): Rename from
17306 Vface_resizing_fonts.
17307 (struct font_name): Rename member resizing_ratio to rescale_ratio.
17308 (font_rescale_ratio): Rename from font_resizing_ratio.
17309 (split_font_name): Set font->rescale_ratio.
17310 (better_font_p): Pay attention to font->rescale_ratio.
17311 (build_scalable_font_name): Likewise. Change RESX, and RESY
17312 fields.
17313 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
17314
173152008-02-01 Kenichi Handa <handa@m17n.org>
17316
17317 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
17318 (Qutf_16_le): Remove these variables.
17319 (syms_of_coding): Don't DEFSYM them.
17320 (decode_coding_utf_16): Fix handling of BOM.
17321 (encode_coding_utf_16): Fix handling of BOM.
17322
173232008-02-01 Kenichi Handa <handa@m17n.org>
17324
17325 * fileio.c (Finsert_file_contents): On replacing, before decoding
17326 the file into the work buffer, set point of the work buffer to the end.
17327
173282008-02-01 Dave Love <fx@gnu.org>
17329
17330 * coding.c (Fcheck_coding_systems_region): Fix type errors.
17331
173322008-02-01 Dave Love <fx@gnu.org>
17333
17334 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17335 and fix C types.
17336
173372008-02-01 Kenichi Handa <handa@m17n.org>
17338
17339 * xdisp.c (SKIP_GLYPHS): New macro.
17340 (set_cursor_from_row): Pay attention to string display properties.
17341
17342 * category.c (copy_category_entry): Fix for the case that RANGE
17343 is an integer.
17344
17345 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
17346
17347 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
17348
173492008-02-01 Kenichi Handa <handa@m17n.org>
17350
17351 * charset.c (Fcharset_id_internal): New function.
17352 (syms_of_charset): Defsubr it.
17353
17354 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
17355 with the last arg charset_list acquired from coding.
17356 (Fdefine_coding_system_internal): For ccl-based coding system, fix
17357 the attribute coding_attr_ccl_valids.
17358
17359 * coding.h (enum define_coding_ccl_arg_index): Set the first
17360 member coding_arg_ccl_decoder to coding_arg_max.
17361
17362 * ccl.h (ccl_driver): Adjust prototype.
17363
17364 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
17365 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 17366 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
17367 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
17368 last arg Qnil.
17369
173702008-02-01 Kenichi Handa <handa@m17n.org>
17371
17372 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
17373 call encode_char.
17374
17375 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
17376
173772008-02-01 Dave Love <fx@gnu.org>
17378
17379 * composite.c (syms_of_composite): Make composition_hash_table weak.
17380
173812008-02-01 Kenichi Handa <handa@m17n.org>
17382
17383 * dispextern.h (check_face_attributes, generate_ascii_font_name)
17384 (font_name_registry): Don't extern them.
17385 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
17386
17387 * fontset.h (Qfontset): Don't extern it.
17388 (new_fontset_from_font_name): Extern it.
17389
17390 * fontset.c: Give 8 extra slots to fontset objects.
17391 (Qfontset_info): New variable.
17392 (syms_of_fontset): Defsym it.
17393 (FONTSET_FALLBACK): New macro.
17394 (fontset_face): Try also the default fontset.
17395 (make_fontset): Realize a fallback fontset from the default fontset.
17396 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
17397 using split_font_name_into_vector and build_font_name_from_vector.
17398 (Fset_fontset_font): Access the elements of font_spec by enum
17399 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
17400 name by using split_font_name_into_vector.
17401 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
17402 generate a proper font name from the fontset name. Update
17403 Vfontset_alias_alist.
17404 (n_auto_fontsets): New variable.
17405 (new_fontset_from_font_name): New function.
17406 (Ffont_info): Store the information about fonts generated from the
17407 default fontset in the first extra slot of the returned char-table.
17408
17409 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
17410 (font_name_registry): Delete function.
17411 (split_font_name_into_vector): New function.
17412 (build_font_name_from_vector): New function.
17413 (font_list): The argument REGISTRY is now a list of registry names.
17414 (choose_face_font): If we are choosing an ASCII font, and ATTRS
17415 specifies an explicit font name, return the name as is. Make a
17416 list of registy names.
17417
17418 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
17419 of x_new_fontset.
17420 (Fx_create_frame): Don't call x_new_fontset here. Just use
17421 x_list_fonts to check the existence of fonts.
17422
17423 * xterm.h (x_new_fontset): Adjust prototype.
17424
17425 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
17426 string. Use new_fontset_from_font_name to create a fontset from a
17427 font name.
17428
174292008-02-01 Kenichi Handa <handa@m17n.org>
17430
17431 * syntax.c (Vfind_word_boundary_function_table): New name for
17432 Vnext_word_boundary_function_table.
17433 (find-word-boundary-function-table): New name for
17434 next-word-boundary-function-table.
17435
174362008-02-01 Dave Love <fx@gnu.org>
17437
17438 * Makefile.in: Fix some dependencies.
17439
17440 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
17441 set it to nil before returning.
17442
17443 * composite.c (update_compositions): Fix type error.
17444
17445 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
17446
174472008-02-01 Kenichi Handa <handa@m17n.org>
17448
17449 * xterm.c (x_new_font): Optimize for the case that the font is
17450 already set for the frame.
17451
174522008-02-01 Kenichi Handa <handa@m17n.org>
17453
17454 * chartab.c (char_table_ascii): Check if the char table contents
17455 is sub-char-table or not.
17456 (char_table_set, char_table_set_range): Fix argument to
17457 char_table_ascii.
17458
17459 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
17460 (detect_coding_utf_8, detect_coding_utf_16)
17461 (detect_coding_emacs_mule, detect_coding_iso_2022)
17462 (detect_coding_sjis, detect_coding_big5)
17463 (detect_coding_ccl, detect_coding_charset): Change argument MASK
17464 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
17465 sequence is valid in this coding system. Change callers.
17466 (MAX_ANNOTATION_LENGTH): New macro.
17467 (ADD_ANNOTATION_DATA): New macro.
17468 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
17469 ADD_ANNOTATION_DATA. Change the format of annotation data.
17470 (ADD_CHARSET_DATA): New macro.
17471 (emacs_mule_char): New argument ID. Change callers.
17472 (decode_coding_emacs_mule, decode_coding_iso_2022)
17473 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17474 Produce charset annotation data in coding->charbuf.
17475 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
17476 to charset annotation data in coding->charbuf.
17477 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
17478 coding->common_flags if the coding system is iso-2022 based and
17479 uses designation.
17480 (produce_composition): Adjust for the new annotation data format.
17481 (produce_charset): New function.
17482 (produce_annotation): Handle charset annotation.
17483 (handle_composition_annotation, handle_charset_annotation): New
17484 functions.
17485 (consume_chars): Handle charset annotation. Utilize the above two
17486 functions.
17487 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
17488 buffer, get the deleted text as a string and set
17489 coding->src_object to that string.
17490 (detect_coding, detect_coding_system): Use the new struct
17491 coding_detection_info.
17492
17493 * coding.h (struct coding_detection_info): New structure.
17494 (struct coding_system): Adjust prototype of the member `detector'.
17495 (CODING_ANNOTATE_CHARSET_MASK): New macro.
17496
174972008-02-01 Kenichi Handa <handa@m17n.org>
17498
17499 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
17500
175012008-02-01 Dave Love <fx@gnu.org>
17502
17503 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
17504 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
17505 to new local and nullify apropos_accumulate before returning.
17506 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
17507
175082008-02-01 Kenichi Handa <handa@m17n.org>
17509
17510 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
17511 correctly.
e3eea1fc 17512
aac0c6e3
MR
175132008-02-01 Dave Love <fx@gnu.org>
17514
17515 * fns.c (Flanginfo): Call synchronize_system_time_locale.
17516
175172008-02-01 Kenichi Handa <handa@m17n.org>
17518
17519 The following changes are to make character composition happen
17520 automatically on displaying.
17521
17522 * Makefile.in (lisp, shortlisp): Add composite.elc.
17523
17524 * composite.h (Qauto_composed, Vauto_composition_function)
17525 (Qauto_composition_function): Extern them.
17526
17527 * composite.c (Vcomposition_function_table)
17528 (Qcomposition_function_table): Delete variables.
17529 (Qauto_composed, Vauto_composition_function)
17530 (Qauto_composition_function): New variables.
17531 (run_composition_function): Don't call
17532 compose-chars-after-function.
17533 (update_compositions): Clear `auto-composed' text property.
17534 (compose_chars_in_text): Delete this function.
17535 (syms_of_composite): Staticpro Qauto_composed and
17536 Qauto_composition_function. Declare Vauto_composition_function as
17537 a Lisp variable.
17538
17539 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
17540
17541 * xdisp.c (it_props): Add an entry for Qauto_composed.
17542 (handle_auto_composed_prop): New function.
17543
17544 * xselect.c (selection_data_to_lisp_data): Don't call
17545 compose_chars_in_text.
17546
175472008-02-01 Dave Love <fx@gnu.org>
17548
17549 * keyboard.c (read_char): Modify checking around use of
17550 Vkeyboard_translate_table.
17551
17552 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17553 and fix C types.
17554
175552008-02-01 Kenichi Handa <handa@m17n.org>
17556
17557 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17558 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17559 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17560 the case that the last byte is '\r' correctly.
17561 (decode_coding): Flush out the unprocessed data correctly.
17562 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17563
175642008-02-01 Dave Love <fx@gnu.org>
17565
17566 * xterm.c (XTread_socket): Fix changes for defined keysyms.
17567 Add XK_ISO... case.
17568 (xaw_scroll_callback): Revert last change.
17569
175702008-02-01 Kenichi Handa <handa@m17n.org>
17571
17572 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17573
175742008-02-01 Kenichi Handa <handa@m17n.org>
17575
17576 * xfaces.c (Vface_resizing_fonts): New variable.
17577 (struct font_name): New member `resizing_ratio'.
17578 (font_resizing_ratio): New function.
17579 (split_font_name): Set font->resizing_ratio.
17580 (better_font_p): Pay attention to font->resizing_ratio.
17581 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
17582 RESX, and RESY fields.
17583 (try_alternative_families): Try scalable fonts if
17584 Vscalable_fonts_allowed is not Qt.
17585 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17586
175872008-02-01 Dave Love <fx@gnu.org>
17588
17589 * xterm.c (xaw_scroll_callback): Cast correctly.
17590
175912008-02-01 Dave Love <fx@gnu.org>
17592
17593 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
17594 (lispy_kana_keys): Comment out.
17595 (make_lispy_event) [XK_kana_A]: Comment out.
17596
17597 * xterm.c (xaw_scroll_callback): Cast call_data.
17598 (XTread_socket): Deal with ASCII keysyms.
17599 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17600
176012008-02-01 Dave Love <fx@gnu.org>
17602
17603 * xterm.c (Vx_keysym_table): New.
17604 (syms_of_xterm): Initialize it.
17605 (XTread_socket): Use it.
17606 From head: Eliminate incorrect optimization that tried to avoid
17607 decoding the output of X*LookupString.
17608 (x_get_font_repertory): Delete charset declaration.
17609
176102008-02-01 Kenichi Handa <handa@m17n.org>
17611
17612 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17613 return 0.
17614 (Fdefine_coding_system_internal): Setup
17615 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17616
176172008-02-01 Dave Love <fx@gnu.org>
17618
17619 * coding.c (Fcheck_coding_system): Doc fix.
17620
17621 * editfns.c (Finsert_byte): Return a proper value.
17622
176232008-02-01 Kenichi Handa <handa@m17n.org>
17624
17625 * coding.c (decode_coding): Fix args to translate_chars. Pay
17626 attention to Vstandard_translation_table_for_decode.
17627 (encode_coding): Fix args to translate_chars. Pay attention to
17628 Vstandard_translation_table_for_encode.
17629
17630 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17631 SINGLE_BYTE_CHAR_P.
17632
17633 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17634 not by SINGLE_BYTE_CHAR_P.
17635
17636 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17637 SINGLE_BYTE_CHAR_P.
17638
17639 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17640 SINGLE_BYTE_CHAR_P.
17641
17642 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17643 by SINGLE_BYTE_CHAR_P.
17644
17645 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17646 SINGLE_BYTE_CHAR_P.
17647
176482008-02-01 Dave Love <fx@gnu.org>
17649
17650 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17651
176522008-02-01 Dave Love <fx@gnu.org>
17653
17654 * fns.c (Flanginfo): Fix typo.
17655
17656 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17657
176582008-02-01 Kenichi Handa <handa@m17n.org>
17659
17660 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17661 (detect_coding_emacs_mule, detect_coding_iso_2022)
17662 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17663 incomplete byte sequence. Don't update *mask when correctly detected.
17664 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17665 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17666 (detect_coding, detect_coding_system): Adjust for the changes above.
17667
176682008-02-01 Kenichi Handa <handa@m17n.org>
17669
17670 * character.c (char_string): Rename from
17671 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17672 (string_char): Rename from string_char.
17673
17674 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17675 if C is greater than MAX_3_BYTE_CHAR.
17676 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17677 string_char instead of string_char_with_unification.
17678
176792008-02-01 Dave Love <fx@gnu.org>
17680
17681 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17682
176832008-02-01 Kenichi Handa <handa@m17n.org>
17684
17685 * keymap.c (push_key_description): Pay attention to force_multibyte.
17686
17687 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17688
176892008-02-01 Dave Love <fx@gnu.org>
17690
17691 * charset.c (define_charset_internal): Rename `supprementary'.
17692
17693 * Makefile.in (lisp, shortlisp): Remove latin-N.
17694
176952008-02-01 Dave Love <fx@gnu.org>
17696
17697 * xfns.c (x_window, x_window): Use use_xim.
17698
17699 * xterm.c (use_xim): Initialize.
17700 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17701 (x_term_init): Maybe set use_xim.
17702
17703 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17704
177052008-02-01 Kenichi Handa <handa@m17n.org>
17706
17707 * search.c (search_buffer): Fix case-fold-search of multibyte
17708 characters.
17709 (boyer_moore): Rename the last argument to char_high_bits.
17710
177112008-02-01 Kenichi Handa <handa@m17n.org>
17712
17713 * xdisp.c (display_string): Fix for the case of zero width glyph.
17714
17715 * xfns.c (x_set_font): Change the error message of the case that
17716 x_new_fontset returns Qt.
17717
17718 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17719 (Finternal_set_lisp_face_attribute): Use signal_error for the
17720 error of invalid fontset.
17721
17722 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17723 fontset, return Qt.
17724
177252008-02-01 Dave Love <fx@gnu.org>
17726
17727 * unexelf.c (unexec): Make .got handling not SGI-specific.
17728
17729 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17730
17731 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17732
17733 * keyboard.c (read_key_sequence): Fix type error.
17734
17735 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17736 type error.
17737
17738 * fontset.c (fontset_add): Return Lisp_Object.
17739
177402008-02-01 Dave Love <fx@gnu.org>
17741
17742 * charset.h (charset_ordered_list_tick): Declare extern.
17743
177442008-02-01 Kenichi Handa <handa@m17n.org>
17745
17746 The following changes (and some of 2008-02-01 changes of mine) are
17747 for handling syntax, category, and case conversion for unibyte
17748 characters by converting them to multibyte on the fly. With these
17749 changes, we don't have to setup syntax and case tables for unibyte
17750 characters in each language environment.
17751
17752 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17753 multibyte if necessary.
17754
17755 * bytecode.c (Fbyte_code): Likewise.
17756
17757 * character.h (LEADING_CODE_LATIN_1_MIN)
17758 (LEADING_CODE_LATIN_1_MAX): New macros.
17759 (unibyte_to_multibyte_table): Extern it.
17760 (unibyte_char_to_multibyte): New macro.
17761 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17762 (CHAR_LEADING_CODE): New macro.
17763 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17764
17765 * character.c (unibyte_to_multibyte_table): New variable.
17766 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17767 (multibyte_char_to_unibyte): If C is an eight-bit character,
17768 convert it to the corresponding byte value.
17769
17770 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17771 not 1, signals an error. Update the elements of
17772 unibyte_to_multibyte_table.
17773 (init_charset_once): Initialize unibyte_to_multibyte_table.
17774 (syms_of_charset): Define the charset `iso-8859-1'.
17775
17776 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17777 as is without converting it to unibyte. In a unibyte buffer,
17778 convert C to multibyte before checking the syntax.
17779
17780 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17781
17782 * minibuf.c (Fminibuffer_complete_word): Use the macro
17783 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17784
17785 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17786
17787 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17788 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17789 that is zero, convert an eight-bit char to multibyte.
17790 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17791 non-emacs case.
17792 (PATFETCH): Convert an eight-bit char to multibyte.
17793 (HANDLE_UNIBYTE_RANGE): New macro.
17794 (regex_compile): Setup the compiled pattern for multibyte chars
17795 even if the given regex string is unibyte. Use PATFETCH_RAW
17796 instead of PATFETCH in many places. To handle `charset'
17797 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17798 only for ASCII chars.
17799 (analyse_first) <exactn>: Simplify because the compiled pattern
17800 is multibyte.
17801 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17802 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17803 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17804 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17805 multibyte always 1.
17806 (re_search_2): In emacs, set the locale variable multibyte to 1,
17807 otherwise to 0. New local variable target_multibyte. Check it
17808 to decide the multibyteness of STR1 and STR2. If
17809 target_multibyte is zero, convert unibyte chars to multibyte
17810 before translating and checking fastmap.
17811 (TARGET_CHAR_AND_LENGTH): New macro.
17812 (re_match_2_internal): In emacs, set the locale variable multibyte
17813 to 1, otherwise to 0. New local variable target_multibyte. Check
17814 it to decide the multibyteness of STR1 and STR2. Use
17815 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17816 <charset, charset_not>: If multibyte is nonzero, check fastmap
17817 only for ASCII chars. Call bcmp_translate with
17818 target_multibyte, not with multibyte.
17819 <begline>: Declare the local variable C as `unsigned'.
17820 (bcmp_translate): Change the last arg name to target_multibyte.
17821
17822 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17823 the regexp pattern and the matching target. Set cp->buf.multibyte
17824 to the multibyteness of the regexp pattern. Set
17825 cp->but.target_multibyte to the multibyteness of the matching target.
17826 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17827 FETCH_STRING_CHAR_ADVANCE.
17828 (Freplace_match): Convert unibyte chars to multibyte.
17829
17830 * syntax.c (char_quoted, back_comment, scan_words)
17831 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17832 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17833 unibyte chars to multibyte.
17834 (skip_chars): Delete the arg syntaxp, and move the code for
17835 handling syntaxes to skip_syntaxes. Change callers.
17836 Fix the case that the multibyteness of STRING and the current
17837 buffer doesn't match.
17838 (skip_syntaxes): New function.
17839 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17840 SINGLE_BYTE_CHAR_P.
17841
178422008-02-01 Kenichi Handa <handa@m17n.org>
17843
17844 * xfaces.c (QCfontset): New variable.
17845 (LFACE_FONTSET): New macro.
17846 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17847 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17848 (Finternal_set_lisp_face_attribute)
17849 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17850 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17851 check also LFACE_FONTSET_INDEX.
17852 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17853 attrs[LFACE_FONT_INDEX].
17854 (syms_of_xfaces): Intern and staticpro QCfontset.
17855
17856 * dispextern.h (enum lface_attribute_index): New member
17857 LFACE_FONTSET_INDEX.
17858
17859 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17860
178612008-02-01 Kenichi Handa <handa@m17n.org>
17862
17863 * coding.c (coding_set_destination): Fix coding->destination for
17864 the case converting a region.
17865 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17866 (encode_coding_object): Fix coding->dst_pos and
17867 coding->dst_pos_byte for the case converting a region.
17868
17869 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17870
17871 * character.h (BYTE8_STRING): New macro.
17872
17873 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17874
178752008-02-01 Kenichi Handa <handa@m17n.org>
17876
17877 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17878 characters by octal form.
17879
17880 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17881
17882 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17883 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17884 _fetch_multibyte_char_len.
17885 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17886
17887 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17888
17889 * casefiddle.c (casify_object): Simplify. Handle the case that
17890 the case conversion change the byte length.
17891 (casify_region): Likewise.
17892
17893 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17894
17895 * character.c (_fetch_multibyte_char_len): Delete this variable.
17896 (syms_of_character): Setup Vprintable_chars.
17897
17898 * editfns.c (Fchar_equal): Fix for the unibyte case.
17899 (Finsert_byte): New function.
17900 (syms_of_editfns): Defsubr it.
17901
17902 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17903 of direct code 0x3ffff.
17904
17905 * search.c (Freplace_match): Fix for the unibyte case.
17906
179072008-02-01 Kenichi Handa <handa@m17n.org>
17908
17909 * lread.c (safe_to_load_p): Fix the logic.
17910
17911 * syntax.c (scan_words): Don't treat characters belonging to
17912 different scripts as constituting a word.
17913
17914 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17915
17916 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17917
17918 * emacs.c (main): In the case of --unibyte, instead of aborting on
17919 finding non-empty buffer, make it unibyte.
17920
179212008-02-01 Kenichi Handa <handa@m17n.org>
17922
17923 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17924 to create a fontset.
17925
179262008-02-01 Dave Love <fx@gnu.org>
17927
17928 * character.c (Funibyte_char_to_multibyte): Doc fix.
17929
17930 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17931
179322008-02-01 Kenichi Handa <handa@m17n.org>
17933
17934 * fontset.c (fontset_add): Make the type `int'.
17935 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17936
17937 * character.c (unibyte_char_to_multibyte)
17938 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17939 charset_unibyte, not charset_primary.
17940
17941 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17942
17943 * charset.c (charset_unibyte): Rename from charset_primary.
17944 (Funibyte_charset): Rename from Fprimary_charset.
17945 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17946 (syms_of_charset): Adjust for the above changes.
17947
17948 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17949 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17950 it->multibyte_p is zero.
17951
17952 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17953 Delete extern.
17954
179552008-02-01 Kenichi Handa <handa@m17n.org>
17956
17957 * coding.c (Fdefine_coding_system_internal): Fix category setting
17958 for a coding system of type iso-2022.
17959
179602008-02-01 Kenichi Handa <handa@m17n.org>
17961
17962 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17963
179642008-02-01 Kenichi Handa <handa@m17n.org>
17965
17966 * syntax.c (Vnext_word_boundary_function_table): New variable.
17967 (next-word-boundary-function-table): Declare it as a Lisp variable
17968 in syms_of_syntax.
17969 (scan_words): Call functions in Vnext_word_boundary_function_table
17970 if any.
17971
17972 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17973
17974 * fontset.c (fs_load_font): If fontp->charset is not negative,
17975 return fontp without setting its members.
17976
179772008-02-01 Dave Love <fx@gnu.org>
17978
17979 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17980
17981 * m/sparc.h (HAVE_ALLOCA): Delete.
17982
17983 * s/irix6-5.h: Don't include strings.h.
17984 (bcopy, bzero, bcmp): Don't undef.
17985
17986 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17987
17988 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17989 (TIOCSIGSEND): Don't test IRIX6.
17990 (bcopy, bzero, bcmp): Define conditionally.
17991
179922008-02-01 Kenichi Handa <handa@m17n.org>
17993
17994 * buffer.c (Qas, Qmake, Qto): New variables.
17995 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17996 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17997
17998 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17999 we are inserting a process output into a multibyte buffer.
18000
18001 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
18002 multibyte_char_to_unibyte.
18003
18004 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
18005 by the primary charset, make it eight-bit char.
18006 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
18007
18008 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
18009 (charset_8_bit__control, charset_8_bit_graphic)
18010 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
18011 (define_charset_internal): New function.
18012 (syms_of_charset): Call define_charset_internal for pre-defined
18013 charsets.
18014
18015 * charset.h (charset_8_bit): Extern it.
18016
18017 * coding.c (make_conversion_work_buffer): Adjust for the change
18018 of Fset_buffer_multibyte.
18019 (encode_coding_raw_text): Increment p0 in the loop.
18020
18021 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
18022
18023 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
18024 for the change of Fset_buffer_multibyte.
18025
18026 * fns.c (Fstring_to_multibyte): New function.
18027 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
18028
180292008-02-01 Dave Love <fx@gnu.org>
18030
18031 * xfns.c (x_put_x_image): Declare args.
18032
18033 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
18034 (try_font_list): Declare an arg.
18035
18036 * xdisp.c (message2_nolog, set_message): Declare an arg.
18037
18038 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
18039
18040 * syntax.c (scan_sexps_forward): Declare an arg.
18041
18042 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
18043 Declare an arg.
18044
18045 * lisp.h (Fnew_fontset): Declare.
18046
18047 * keymap.c (push_key_description): Call CHARACTERP correctly.
18048
18049 * fontset.c (fontset_add): Declare args. Call make_number correctly.
18050 (face_for_char): Delete unused vars.
18051 (Fset_fontset_font): Doc fix. Delete unused vars.
18052
18053 * doc.c (Fsubstitute_command_keys): Delete unused vars.
18054
18055 * composite.c (update_compositions): Declare arg.
18056
18057 * cm.c (calccost, cmgoto): Declare args.
18058
18059 * charset.c: Remove `emacs' conditional. Doc fixes.
18060 (map_char_table_for_charset): Declare.
18061
18062 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
18063
18064 * ccl.c: Remove `emacs' conditional.
18065
180662008-02-01 Kenichi Handa <handa@m17n.org>
18067
18068 The following changes are to allow specifying multiple font
18069 patterns for a character range (specified by script or charset).
18070
18071 * Makefile.in (abbrev.o): Depend on syntax.h.
18072 (xfaces.o): Depend on charset.h.
18073
18074 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
18075 SINGLE_BYTE_CHAR_P.
18076
18077 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
18078
18079 * character.h (Vchar_script_table): Extern it.
18080
18081 * character.c (Vscript_alist): Delete.
18082 (Vchar_script_table, Qchar_script_table): New variable.
18083 (syms_of_character): Declare Vchar_script_table as a lisp variable
18084 and initialize it.
18085
18086 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
18087 have property char-table-extra-slots, make no extra slot.
18088
18089 * dispextern.h (struct face): Delete member `charset'.
18090 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
18091 SINGLE_BYTE_CHAR_P.
18092 (choose_face_font, lookup_non_ascii_face, font_name_registry):
18093 Add prototypes.
18094 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
18095 (generate_ascii_font_name): Rename from generate_ascii_font.
18096
18097 * fontset.h (get_font_repertory_func): New prototype.
18098 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
18099 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
18100
18101 * fontset.c (Qprepend, Qappend): New variables.
18102 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
18103 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
18104 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
18105 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
18106 (fontset_ref_and_range, fontset_add, reorder_font_vector)
18107 (load_font_get_repertory): New functions.
18108 (fontset_set): Delete.
18109 (fontset_face): New arg FACE. Return face ID, not face.
18110 Complete re-write to handle new fontset structure. Change caller.
18111 (free_face_fontset): Use ASET istead of AREF (X) = Y.
18112 (face_for_char): Don't call lookup_face.
18113 (make_fontset_for_ascii_face): New arg FACE.
18114 (fs_load_font): New arg CHARSET_ID. Don't check
18115 Vfont_encoding_alist here.
18116 (find_font_encoding): New function.
18117 (list_fontsets): Use STRINGP, not ! NILP.
18118 (accumulate_script_ranges): New function.
18119 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
18120 re-written to handle new fontset structure.
18121 (Ffontset_font): Return a copy of element.
18122 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
18123 docstring of font-encoding-alist.
18124
18125 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
18126 (Fset_fotset_font): Fix arguments to 5.
18127
18128 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
18129
18130 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
18131 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18132 (highlight_trailing_whitespace): Adjust for the change of
18133 lookup_named_face.
18134
18135 * xfaces.c: Include charset.h.
18136 (load_face_font): Delete argument C. Change caller.
18137 (generate_ascii_font_name): Rename from generate_ascii_font.
18138 (font_name_registry): New function.
18139 (cache_face): Store ascii faces before non-ascii faces in buckets.
18140 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
18141 Lookup only ascii faces.
18142 (lookup_non_ascii_face): New function.
18143 (lookup_named_face): Delete argument C. Change caller.
18144 (lookup_derived_face): Delete argument C. Change caller.
18145 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
18146 a string, just call font_list with it.
18147 (choose_face_font): Delete arguments FACE and C. New arg
18148 FONT_SPEC. Change caller.
18149 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
18150 Change caller.
18151 (realize_non_ascii_face): New function.
18152 (realize_x_face): Call load_face_font here.
18153 (realize_tty_face): Delete argument C. Change caller.
18154 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
18155 get a face ID.
18156 (dump_realized_face): Don't print charset of FACE.
18157
18158 * xfns.c (x_set_font): Always call x_new_fontset and
18159 store_frame_parameter.
18160 (Fx_create_frame): Call x_new_fontset, not x_new_font.
18161 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
18162
18163 * xterm.h (x_get_font_repertory): Extern it.
18164
18165 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18166 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18167 it->multibyte_p is zero.
18168 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18169 (x_new_fontset): If FONTSETNAME doesn't match any existing
18170 fontsets, create a new one.
18171 (x_get_font_repertory): New function.
18172
181732008-02-01 Kenichi Handa <handa@m17n.org>
18174
18175 * coding.c (Ffind_coding_systems_region_internal): Detect an
18176 ASCII only string correctly.
18177
18178 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
18179 version is 0.
18180
181812008-02-01 Kenichi Handa <handa@m17n.org>
18182
18183 * lread.c: Include "coding.h".
18184 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
18185 (load_each_byte, unread_char): New variables.
18186 (readchar_backlog): Delete.
18187 (readchar): Return a character unless load_each_byte is nonzero.
18188 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
18189 cons. If unread_char is not -1, simply return it.
18190 (unreadchar): Handle the case that readcharfun is
18191 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
18192 (read_multibyte): Delete.
18193 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
18194 (read_emacs_mule_char): New functions.
18195 (Fload): Even if the file doesn't have the extension ".elc", if
18196 safe_to_load_p returns a positive version number, assume that the
18197 file contains bytecompiled code. If the version is less than 22,
18198 load the file while decoding multibyte sequences by emacs-mule.
18199 (readevalloop): Don't use readchar_backlog.
18200 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
18201 (Fread_from_string): Pay attention to the case that STREAM is a cons.
18202 (read_escape): Delete the arg BYTEREP.
18203 (read1): Set load_each_byte to 1 temporarily while handling
18204 #@NUMBER. Don't call read_multibyte.
18205 (read_vector): Call Fread with a cons. If readcharfun is
18206 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
18207 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
18208 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
18209 and Qload_force_doc_strings.
18210
182112008-02-01 Kenichi Handa <handa@m17n.org>
18212
18213 * xdisp.c (face_before_or_after_it_pos): Call
18214 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
18215
182162008-02-01 Kenichi Handa <handa@m17n.org>
18217
18218 * character.h (TRAILING_CODE_P): New macro.
18219 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
18220 (string_char_with_unification): Fix prototype.
18221 (Vscript_alist): Extern it.
18222
18223 * character.c (Vscript_alist): New variable.
18224 (string_char_with_unification, str_as_unibyte)
18225 (string_escape_byte8): Add `const' to local variables.
18226 (syms_of_character): Declare script-alist as a Lisp variable.
18227
18228 * charset.h (Vcharset_ordered_list): Extern it.
18229 (charset_ordered_list_tick): Extern it.
18230 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
18231 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
18232 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
18233 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
18234 (Funify_charset): Adjust for the change of Funify_charset.
18235
18236 * charset.c (charset_ordered_list_tick): New variable.
18237 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
18238 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
18239 deunify intead of unify a charset.
18240 (string_xstring_p): Add `const' to local variables.
18241 (find_charsets_in_text): Add `const' to arguments and local variables.
18242 (encode_char): Adjust for the change of Funify_charset. Fix
18243 detecting of invalid code.
18244 (Fset_charset_priority): Increment charset_ordered_list_tick.
18245 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
18246 and TO_CODE.
18247
18248 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
18249 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
18250 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
18251 (decode_coding_ccl, consume_chars)
18252 (Ffind_coding_systems_region_internal)
18253 (Fcheck_coding_systems_region): Add `const' to local variables.
18254
18255 * print.c (print_object): Use octal form for printing the
18256 contents of a bool vector.
18257
182582008-02-01 Dave Love <fx@gnu.org>
18259
18260 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
18261 <version == 20>: Refuse to load.
18262
182632008-02-01 Dave Love <fx@gnu.org>
18264
18265 * fns.c: Move coding.h.
18266 (Qcodeset, Qdays, Qmonths): New.
18267 (concat): Use CHARACTERP instead of INTEGERP.
18268 (Flocale_codeset): Delete.
18269 (Flanginfo): New function.
18270 (syms_of_fns): Change accordingly.
18271
18272 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
18273
182742008-02-01 Dave Love <fx@gnu.org>
18275
18276 * casetab.c (init_casetab_once, init_casetab_once): Fix
18277 CHAR_TABLE_SET call.
18278
18279 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
18280
18281 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
18282
18283 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
18284 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
18285 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
18286
18287 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
18288
18289 * coding.c (ENCODE_DESIGNATION, decode_eol)
18290 (make_conversion_work_buffer, code_conversion_restore)
18291 (Fdefine_coding_system_internal): Convert Lisp types.
18292 (code_conversion_restore): Use EQ, not ==.
18293 (Fencode_coding_string): Fix code_convert_string call.
18294
18295 * coding.h (code_convert_region): Fix prototype.
18296
18297 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
18298
18299 * fontset.c (fontset_ref, fontset_set, fs_load_font)
18300 (Ffontset_info): Convert Lisp types.
18301
18302 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
18303
18304 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
18305
18306 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
18307
18308 * chartab.c: Include "...h", not <...h> in some cases.
18309
18310 * callproc.c (Fcall_process): Remove unused variables.
18311
183122008-02-01 Dave Love <fx@gnu.org>
18313
18314 * coding.c (Fset_coding_system_priority): Allow null arg list.
18315
183162008-02-01 Dave Love <fx@gnu.org>
18317
18318 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18319 (Fself_insert_and_exit): Use CHARACTERP.
18320
18321 * callproc.c (Fcall_process): Remove unused vars.
18322
18323 * xterm.c (XTread_socket): Add extra dead keysyms.
18324
18325 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
18326
18327 * dispextern.h: Remove prototypes for redraw_frame,
18328 redraw_garbaged_frames.
18329
18330 * cmds.c (Fself_insert_command): Use CHARACTERP.
18331
18332 * chartab.c (make_sub_char_table): Remove unused var.
18333 (Fset_char_table_default, Fmap_char_table): Doc fix.
18334
18335 * keymap.c (access_keymap): Remove generic char code.
18336 (push_key_description): Use CHARACTERP.
18337
183382008-02-01 Dave Love <fx@gnu.org>
18339
18340 * charset.c: Doc fixes.
18341 (Funify_charset): Extra checking.
18342
183432008-02-01 Dave Love <fx@gnu.org>
18344
18345 * lread.c: Remove some unused variables.
18346 (safe_to_load_p): If safe, return the magic number version byte.
18347 (Fload): Maybe use load-with-code-conversion.
18348
183492008-02-01 Kenichi Handa <handa@m17n.org>
18350
18351 * category.c (Fmodify_category_entry): Don't modify the contents
18352 of category_set for characters out of the range. Avoid
18353 unnecessary modification.
18354
18355 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
18356 Vchar_unify_table. The default value of the table is now nil.
18357
18358 * character.c (syms_of_character): Setup Vchar_width_table for
18359 eight-bit-control and raw-byte chars.
18360
18361 * charset.h (enum define_charset_arg_index): Delete
18362 charset_arg_parents and add charset_arg_subset and
18363 charset_arg_superset.
18364 (enum charset_attr_index): Delete charset_parents and add
18365 charset_subset and charset_superset.
18366 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
18367 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
18368 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
18369 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
18370 (CHARSET_SUPERSET): New macros.
18371 (charset_work): Extern it.
18372 (ENCODE_CHAR): Use charset_work.
18373 (CHAR_CHARSET_P): Adjust for the change of encoder format.
18374 (map_charset_chars): Extern it.
18375
18376 * charset.c (load_charset_map): Set the default value of encoder
18377 and deunifier char-tables to nil.
18378 (map_charset_chars): Change argument. Change callers. Use
18379 map_char_table_for_charset instead of map_char_table.
18380 (Fmap_charset_chars): New optional args from_code and to_code.
18381 (Fdefine_charset_internal): Adjust for the change of
18382 `define-charset' (:parents -> :subset or :superset).
18383 (charset_work): New variable.
18384 (encode_char, syms_of_charset): Adjust for the change of
18385 Fdefine_charset_internal.
18386 (Ffind_charset_string): Setup the vector `charsets' correctly.
18387
18388 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
18389 the previous change.
18390 (char_table_ref_and_range): Adjust for the above change.
18391 (map_sub_char_table_for_charset): New function.
18392 (map_char_table_for_charset): New function.
18393
18394 * keymap.c (describe_vector): Handle a char-table directly here.
18395 (describe_char_table): Delete.
18396
18397 * lisp.h (map_charset_chars): Delete.
18398
183992008-02-01 Dave Love <fx@gnu.org>
18400
18401 * fns.c (count_combining): Comment out (unused).
18402 (Flocale_codeset): New.
18403 (syms_of_fns): Defsubr it.
18404
18405 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
18406 (size_t): Remove.
18407
184082008-02-01 Dave Love <fx@gnu.org>
18409
18410 * Makefile.in (chartab.o): Depend on charset.h.
18411
184122008-02-01 Kenichi Handa <handa@m17n.org>
18413
18414 * character.c (syms_of_character): Set the default value of
18415 Vprintable_chars to Qnil.
18416
184172008-02-01 Dave Love <fx@gnu.org>
18418
18419 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
18420
184212008-02-01 Kenichi Handa <handa@m17n.org>
18422
18423 * charset.c (load_charset_map): Handle the case that from < to
18424 correctly.
18425
18426 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
18427 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
18428 Pay attention to raw-8-bit chars.
18429
184302008-02-01 Kenichi Handa <handa@m17n.org>
18431
18432 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
18433 It is not bytecompiled now.
18434
18435 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
18436 (charset_jisx0208): New variables.
18437 (Fdefine_charset_internal): Setup them if appropriate.
18438 (init_charset_once): Initialize them to -1.
18439
18440 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
18441 (charset_jisx0208): Extern them.
18442
18443 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
18444 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
18445 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
18446 (setup_iso_safe_charsets): Fix arguments to Fassq.
18447 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
18448 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
18449 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
18450 (encode_coding_iso_2022): Change the 1st arg to
18451 ENCODE_ISO_CHARACTER to a variable.
18452
184532008-02-01 Kenichi Handa <handa@m17n.org>
18454
18455 * charset.h (enum define_charset_arg_index): New enums
18456 charset_arg_min_code and charset_arg_max_code.
18457 (struct charset): New member char_index_offset.
18458
18459 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
18460 Take charset->char_index_offset into account.
18461 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
18462 args[charset_arg_max_code]. Setup charset.char_index_offset.
18463 (syms_of_charset): Fix args to Fdefine_charset_internal.
18464
184652008-02-01 Dave Love <fx@gnu.org>
18466
18467 * coding.c (decode_coding_utf_8): Reject overlong sequences.
18468
184692008-02-01 Dave Love <fx@gnu.org>
18470
18471 * coding.c: Doc fixes.
18472 (Fcoding_system_aliases): Fix return value.
18473 (Qmac): Remove (duplicated) definition.
18474
184752008-02-01 Dave Love <fx@gnu.org>
18476
362654a6
JB
18477 * charset.c (Fcharset_priority_list, Fset_charset_priority):
18478 New functions.
aac0c6e3
MR
18479
18480 * character.c (Fstring): Doc fix.
18481
18482 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
18483
362654a6 18484 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
18485 (font-encoding-alist): Doc fix.
18486
184872008-02-01 Dave Love <fx@gnu.org>
18488
18489 * term.c (costs_set): Declare static, non-initialized for pcc.
18490 (encode_terminal_code): Remove unused var.
18491
18492 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18493 for K&R.
18494
18495 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
18496
18497 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
18498 (suffixes): Move out of make_subsidiaries for K&R.
18499
18500 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
18501
18502 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
18503
185042008-02-01 Dave Love <fx@gnu.org>
18505
18506 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
18507
18508 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
18509
185102008-02-01 Yong Lu <lyongu@asia-infonet.com>
18511
18512 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
18513
18514 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
18515
185162008-02-01 Kenichi Handa <handa@m17n.org>
18517
18518 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
18519 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
18520
185212008-02-01 Kenichi Handa <handa@m17n.org>
18522
18523 * coding.c (decode_coding_charset): Adjust for the change of
18524 Fdefine_coding_system_internal.
18525 (Fdefine_coding_system_internal): For a coding system of
18526 `charset' type, store a list of charset IDs in
18527 `charset_attr_charset_valids' element of coding attributes.
18528
185292008-02-01 Kenichi Handa <handa@m17n.org>
18530
18531 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
18532 (emacs_mule_char): New arg src. Delete arg `composition'. Change
18533 caller. Handle 2-byte and 3-byte charsets correctly.
18534 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
18535 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
18536 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
18537 (DECODE_EMACS_MULE_21_COMPOSITION): Call
18538 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
18539 sequence.
18540 (decode_coding_emacs_mule): Handle composition correctly. Rewind
18541 `src' and `consumed_chars' correctly before calling emacs_mule_char.
18542 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
18543 and alt&rule composition.
18544 (decode_coding_iso_2022): Handle composition correctly.
18545 (init_coding_once): Setup emacs_mule_bytes for private charsets.
18546
18547 * charset.c (Fdefine_charset_internal): Fix bug for the case of
18548 re-defining a charset. If the charset has :emacs-mule-id, setup
18549 emacs_mule_bytes.
18550 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18551
185522008-02-01 Kenichi Handa <handa@m17n.org>
18553
18554 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18555 (encode_coding_big5, encode_coding_charset): If coding requires safe
18556 encoding, produce a character specified by
18557 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18558
185592008-02-01 Dave Love <fx@gnu.org>
18560
18561 * xterm.c (XSetIMValues): Declare.
18562
18563 * process.c: Conditionally include sys/wait.h, pty.h.
18564
18565 * print.c (print_object): Fix print format for 64-bit systems.
18566
18567 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18568
18569 * buffer.c (emacs_strerror): Declare.
18570
18571 * fontset.c (Fclear_face_cache): Declare.
18572 (accumulate_font_info): Comment-out (unused).
18573 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18574 variables.
18575
18576 * character.h (string_escape_byte8): Declare.
18577
18578 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18579 unused vars.
18580 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18581 (Fmap_charset_chars): Doc fix.
18582
18583 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18584 (Fset_coding_system_priority, Fset_coding_system_priority)
18585 (Fdefine_coding_system_internal): Doc fix.
18586
185872008-02-01 Dave Love <fx@gnu.org>
18588
18589 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18590
185912008-02-01 Kenichi Handa <handa@m17n.org>
18592
18593 * character.c (string_escape_byte8): Make multibyte string with
18594 correct size.
18595
18596 * charset.c (Fmake_char): Delete unnecessary code.
18597
185982008-02-01 Kenichi Handa <handa@m17n.org>
18599
18600 * xfns.c (x_encode_text): Allocate coding.destination here, and
18601 call encode_coding_object with dst_object Qnil.
18602
18603 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18604 multibyte form correctly.
18605
18606 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18607 against Vfont_encoding_alist.
18608
18609 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18610 handling of charset list.
18611 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18612 (decode_coding_object): Move point to coding->dst_pos before
18613 calling post-read-conversion function.
18614 (encode_coding_object): Give correct arguments to
18615 pre-write-conversion. Ignore the return value of
18616 pre-write-conversion function. Pay attention to the case that
18617 pre-write-conversion changes the current buffer. If dst_object is
18618 Qt, even if coding->src_bytes is zero, allocate at least one byte
18619 to coding->destination.
18620
18621 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18622
18623 * charset.c (Fmake_char): Make it more backward compatible.
18624 (Fmap_charset_chars): Fix docstring.
18625
186262008-02-01 Dave Love <fx@gnu.org>
18627
18628 * coding.c: Doc fixes.
18629 (Fdefine_coding_system_alias): Use names, not symbols, in
18630 coding-system-alist.
18631
186322008-02-01 Kenichi Handa <handa@m17n.org>
18633
18634 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18635 of calling free_realized_face.
18636
186372008-02-01 Yong Lu <lyongu@asia-infonet.com>
18638
18639 * charset.c (read_hex): Don't treat SPC as a comment starter.
18640 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18641 (Fdecode_char): Fix typo.
18642
186432008-02-01 Kenichi Handa <handa@m17n.org>
18644
18645 * charset.h (struct charset): New member `code_space_mask'.
18646
18647 * coding.c (coding_set_source): Delete the local variable beg_byte.
18648 (encode_coding_charset, Fdefine_coding_system_internal):
18649 Delete the local variable charset.
18650 (Fdefine_coding_system_internal): Setup
18651 attrs[coding_attr_charset_valids] correctly.
18652
18653 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18654 member to check if CODE is valid or not.
18655 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18656 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18657 is within the range of charset->min_code and carset->max_code.
18658
186592008-02-01 Dave Love <fx@gnu.org>
18660
18661 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18662
18663 * dispextern.h (generate_ascii_font): Fix return type.
18664
18665 * xfaces.c (generate_ascii_font): Fix arg declaration.
18666
18667 * coding.c (coding_inherit_eol_type)
18668 (Fset_terminal_coding_system_internal)
18669 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18670
186712008-02-01 Kenichi Handa <handa@m17n.org>
18672
18673 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18674 multiple charsets correctly.
18675
186762008-02-01 Kenichi Handa <handa@m17n.org>
18677
18678 * search.c (boyer_moore): Fix handling of multibyte character
18679 translation.
18680
18681 * xdisp.c (display_mode_element): When the variable `elt' is
18682 changed, update `this' and `lisp_string'.
18683
186842008-02-01 Kenichi Handa <handa@m17n.org>
18685
18686 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18687
18688 * callproc.c (Fcall_process): Be sure to give the current buffer
18689 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18690
18691 * charset.c (struct charset_map_entries): New struct.
18692 (load_charset_map): Rename from parse_charset_map. New args
18693 entries and n_entries. Change caller.
18694 (load_charset_map_from_file): Rename from load_charset_map.
18695 Change caller. New arg control_flag. Call load_charset_map at
18696 the tail.
18697 (load_charset_map_from_vector): New function.
18698 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18699 (encode_char): If the charset is compact, change a character index
18700 to a code point.
18701
18702 * coding.c (coding_alloc_by_making_gap): Check the case that the
18703 source and destination are the same correctly.
18704 (decode_coding_raw_text): Set coding->consumed_char and
18705 coding->consumed to 0.
18706 (produce_chars): If coding->chars_at_source is nonzero, update
18707 coding->consumed_char and coding->consumed before calling
18708 alloc_destination.
18709 (Fdefine_coding_system_alias): Register ALIAS in
18710 Vcoding_system_alist.
18711 (syms_of_coding): Define `no-conversion' coding system at the tail.
18712
18713 * fileio.c (Finsert_file_contents): Set coding_system instead of
18714 val. If the current buffer is multibyte, always call
18715 decode_coding_gap.
18716
18717 * xfaces.c (try_font_list): Give higher priority to fontset's
18718 family than face's family.
18719
187202008-02-01 Kenichi Handa <handa@m17n.org>
18721
18722 * callproc.c (Fcall_process): Be sure to give the current buffer
18723 to decode_coding_c_string.
18724
18725 * xfaces.c (try_font_list): Give a family specified in a fontset
18726 higher priority than a family specified in a face.
18727
187282008-02-01 Kenichi Handa <handa@m17n.org>
18729
18730 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18731 Fix arguments to insert_from_buffer.
18732
18733 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18734
187352008-02-01 Kenichi Handa <handa@m17n.org>
18736
18737 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18738 (decode_coding_gap): Set coding->dst_multibyte correctly.
18739
187402008-02-01 Kenichi Handa <handa@m17n.org>
18741
18742 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18743 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18744 (encode_coding_utf_16): Substitute coding->default_char for
18745 non-Unicode characters.
18746 (decode_coding): Don't call record_insert here.
18747 (setup_coding_system): Initialize `surrogate' of
18748 coding->spec.utf_16 to 0.
18749 (EMIT_ONE_BYTE): Fix for multibyte case.
18750
18751 * insdel.c (insert_from_gap): Call record_insert.
18752
187532008-02-01 Kenichi Handa <handa@m17n.org>
18754
18755 * casefiddle.c (casify_region): Fix multibyte case.
18756
18757 * character.c (c_string_width): Add return type `int'.
18758 (char_string_with_unification): Delete arg ADVANCED.
18759
18760 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18761 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18762 (CHAR_STRING_ADVANCE): Make it do-while statement.
18763
18764 * chartab.c (sub_char_table_set_range): Optimize for the case
18765 DEPTH == 3. Add workaround code for a GCC optimization bug.
18766
18767 * charset.c (parse_charset_map): Remove an unused variable.
18768
18769 * coding.c: Delete unused variables.
18770
18771 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18772 earlier. If inserted is zero and the coding system doesn't
18773 require flushing, don't call decode_coding_gap.
18774
18775 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18776
187772008-02-01 Kenichi Handa <handa@m17n.org>
18778
18779 The following changes are for using Unicode as an internal
18780 character model, and use UTF-8 format for buffer/string
18781 representation.
18782
18783 * .gdbinit (xchartable): Adjust for the change of char table structure.
18784 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18785
18786 * Makefile.in (obj): Add character.o and chartab.o.
18787 (lisp, shortlisp): Remove utf-8.elc.
18788 (*.o): For many files, change dependency on charset.h to
18789 character.h, and add dependency on character.h.
18790 (character.o, chartab.o): New targets.
18791
18792 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18793 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18794 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18795 of "charset.h".
18796
18797 * dired.c, filelock.c: Include "character.h".
18798
18799 * alloc.c: Include "character.h" instead of "charset.h".
18800 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18801 (syms_of_alloc): Remove defsubr for Smake_char_table.
18802
18803 * buffer.c: Include "character.h" instead of "charset.h", don't
18804 include "coding.h".
18805 (Fset_buffer_multibyte): Adjust for UTF-8.
18806
18807 * buffer.h: EXFUN Fbuffer_live_p.
18808
18809 * callproc.c: Include "character.h" instead of "charset.h".
18810 (Fcall_process): Big change for the new code-conversion APIs.
18811
18812 * casetab.c: Include "character.h" instead of "charset.h".
18813 (set_canon, set_identity, shuffle): Adjust for the new
18814 map_char_table spec.
18815 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18816 accessing the char table structure.
18817
18818 * chartab.c: New file that implements char table.
18819
18820 * category.c: Include "character.h".
18821 (copy_category_entry): New function.
18822 (copy_category_table): Call map_char_table and copy_category_entry.
18823 (Fmake_category_table): Initialize all top-level slots.
18824 (char_category_set): New function.
18825 (modify_lower_category_set): Delete.
18826 (Fmodify_category_entry): Call char_table_ref_and_range.
18827
18828 * category.h (CATEGORY_SET): Just call char_category_set.
18829
18830 * ccl.c: Include "character.h".
18831 (Qccl, Qcclp): New variables.
18832 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18833 it's less than 256.
18834 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18835 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18836 and DST type.
18837 (ccl_driver): Change types of argument, adjust code accordingly.
18838 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18839 ccl_driver.
18840 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18841
18842 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18843 New members src_multibyte, dst_multibyte, consumed, and produced.
18844 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18845 (CODING_SPEC_CCL_PROGRAM): New macro.
18846 (ccl_driver): Update prototype.
18847 (Qccl, Qcclp, Fccl_program_p): Extern them.
18848 (CHECK_CCL_PROGRAM): New macro.
18849
18850 * character.c, character.h, chartab.c: New files.
18851
18852 * charset.c: Mostly re-written. Move character and multibyte sequence
18853 handling codes to character.c.
18854
18855 * charset.h: Mostly re-written. Move character and multibyte sequence
18856 handling codes to character.h.
18857
18858 * coding.c, coding.h: Mostly re-written.
18859
18860 * composite.c: Include "character.h" instead of "charset.h".
18861 (CHAR_WIDTH): Move to character.h.
18862 (HASH_KEY, HASH_VALUE): Delete.
18863
18864 * composite.h (enum composition_method): Change order of enumeration
18865 symbols.
18866
18867 * data.c: Include "character.h" instead of "charset.h".
18868 (Faref): Call CHAR_TABLE_REF for a char table.
18869 (Faset): Call CHAR_TABLE_SET for a char table.
18870
18871 * dispextern.h (free_realized_face, check_face_attribytes)
18872 (generate_ascii_font): Extern them.
18873 (free_realized_multibyte_face): Delete extern.
18874
18875 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18876 table structure.
18877
18878 * editfns.c: Include "character.h" instead of "charset.h".
18879 (Fchar_to_string): Always call CHAR_STRING.
18880
18881 * emacs.c (main): Call init_charset_once, init_charset,
18882 syms_of_chartab, and syms_of_character.
18883
18884 * fileio.c: Include "character.h" instead of "charset.h".
18885 (Finsert_file_contents): Big change for the new code-conversion API.
18886 (choose_write_coding_system, Fwrite_region): Likewise.
18887 (build_annotations_2): Delete.
18888 (e_write): Big change for the new code-conversion API.
18889
18890 * fns.c: Include "character.h" instead of "charset.h".
18891 (copy_sub_char_table): Move to chartab.c.
18892 (Fcopy_sequence): Call copy_char_table for a char table.
18893 (concat): Delete codes calling count_multibyte.
18894 (string_char_to_byte, string_byte_to_char): Adjust for the new
18895 multibyte form.
18896 (internal_equal): Adjust for the change of char table structure.
18897 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18898 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18899 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18900 (char_table_translate, optimize_sub_char_table)
18901 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18902 chartab.c.
18903 (char_table_ref_and_index): Delete.
18904 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18905 (Fmd5): Call preferred_coding_system instead of accessing
18906 Vcoding_category_list. Adjust for the new code-conversion API.
18907 (syms_of_fns): Move defsubr for char table related functions to
18908 chartab.c.
18909
18910 * fontset.c: Mostly re-written.
18911
18912 * fontset.h (struct font_info): Change type of the member encoding_type.
18913 (enum FONT_SPEC_INDEX): New enum.
18914 (fontset_font_pattern, fs_load_font): Update prototype.
18915 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18916
18917 * indent.c: Include "character.h" instead of "charset.h".
18918 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18919
18920 * insdel.c: Include "character.h" instead of "charset.h".
18921 (copy_text): Don't refer to Vnonascii_translation_table.
18922 (insert_from_gap): New function.
18923
18924 * keyboard.c: Include "character.h" instead of "charset.h".
18925 (command_loop_1): Never call direct_output_forward_char before
18926 a non-ASCII character.
18927 (read_char): If Vkeyboard_translate_table is a char table, always
18928 translate a character.
18929
18930 * keymap.c: Include "character.h".
18931 (store_in_keymap): Handle the case that IDX is a cons.
18932 (Fdefine_key): Handle the case that KEY is a cons and the car part
18933 is also a cons (range).
18934 (push_key_description): Adjust for the new character code.
18935 (describe_vector): Call describe_char_table for a char table.
18936 (describe_char_table): New function.
18937
18938 * keymap.h (describe_char_table): Extern it.
18939
18940 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18941 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18942 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18943 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18944 Delete.
18945 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18946 structure.
18947 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18948 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18949 (CHARTAB_SIZE_BITS_3): New macros.
18950 (chartab_size): Extern it.
18951 (struct Lisp_Char_Table): Re-design.
18952 (struct Lisp_Sub_Char_Table): New structure.
18953 (HASH_KEY, HASH_VALUE): Move from fns.c.
18954 (CHARACTERBITS): Define as 22.
18955 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18956 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18957 (GC_SUB_CHAR_TABLE_P): New macro.
18958 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18959 (code_convert_string_norecord): Deleted extern.
18960 (init_character_once, syms_of_character, init_charset)
18961 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18962
18963 * lread.c: Include "character.h".
18964 (read_multibyte): New arg NBYTES.
18965 (read_escape): Change the meaning of returned *BYTEREP.
18966 (to_multibyte): Delete.
18967 (read1): Adjust the handling of char table and string.
18968
18969 * print.c: Include "character.h" instead of "charset.h".
18970 (print_string): Convert 8-bit raw bytes to octal form by
18971 string_escape_byte8.
18972 (print_object): Adjust for the new multibyte form. Print 8-bit
18973 raw bytes always in octal form. Handle sub char table correctly.
18974
18975 * process.c: Include "character.h" instead of "charset.h".
18976 (read_process_output, send_process): Adjust for the new
18977 code-conversion API.
18978
18979 * puresize.h (BASE_PURESIZE): Increase.
18980
18981 * regex.c: Include "character.h" instead of "charset.h".
18982 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18983 (regex_compile): Accept a range whose starting and ending
18984 character have different leading bytes.
18985 (analyse_first): Adjust for the above change.
18986
18987 * search.c: Include "character.h" instead of "charset.h".
18988 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18989 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18990
18991 * syntax.c: Include "character.h" instead of "charset.h".
18992 (syntax_parent_lookup): Delete.
18993 (Fmodify_syntax_entry): Accept a cons as CHAR.
18994 (skip_chars): Adjust for the new multibyte form.
18995 (init_syntax_once): Call char_table_set_range instead of directly
18996 accessing the structure of a char table.
18997
18998 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18999 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
19000 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
19001 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
19002
19003 * term.c: Include "buffer.h" and "character.h".
19004 (encode_terminal_code, write_glyphs): Adjust for the new
19005 code-conversion API.
19006 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
19007
19008 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
19009
19010 * xdisp.c: Include "character.h".
19011 (get_next_display_element): Adjust for the new multibyte form.
19012 (disp_char_vector): Adjust for the new char table structure.
19013 (decode_mode_spec_coding): Adjust for the new structure of
19014 coding system.
19015 (decode_mode_spec): Adjust for the new code-conversion API.
19016
19017 * xfaces.c: Include "character.h" instead of "charset.h".
19018 (load_face_font): Adjust for the change of choose_face_font and
19019 FS_LOAD_FONT.
19020 (generate_ascii_font): New function.
19021 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
19022 (set_font_frame_param): Adjust for the change of choose_face_font.
19023 (free_realized_face): Make it public.
19024 (free_realized_faces_for_fontset): Rename from
19025 free_realized_multibyte_face. Free also faces realized for ASCII.
19026 (choose_face_font): Change arguments. Adjust for the change of
19027 fontset_font_pattern and FS_LOAD_FONT.
19028
19029 * xfns.c: Include "character.h".
19030 (x_encode_text): Adjust for the new code-conversion API.
19031
19032 * xselect.c: Don't include "charset.h".
19033 (selection_data_to_lisp_data): Adjust for the new code conversion API.
19034
19035 * xterm.c: Include "character.h".
19036 (x_encode_char): New argument CHARSET. Change caller.
19037 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
19038 Call ENCODE_CHAR instead of SPLIT_CHAR.
19039 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
19040 CHAR_WIDTH instead of CHARSET_WIDTH.
19041 (XTread_socket): Adjust for the new code-conversion API.
19042 (x_new_font): Adjust for the change of FS_LOAD_FONT.
19043 (x_load_font): Adjust for the change of struct font.
19044
190452008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19046
19047 * xfaces.c (face_at_buffer_position): Remove unused vars.
19048
190492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19050
19051 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
19052 Fix overflow checking.
19053
190542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19055
19056 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
19057 Cancel previous change.
19058
190592008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19060
19061 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
19062 ccl->eight_bit_control. Fix check for buffer overflow.
19063 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
19064 (ccl_driver): Initialize extra_bytes to 0.
19065
190662008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19067
19068 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
19069 return it ORed with ctrl_modifier.
19070
190712008-01-29 Miles Bader <miles@gnu.org>
19072
19073 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
19074
190752008-01-28 Jason Rumney <jasonr@gnu.org>
19076
19077 * w32.c (stat): Don't double check for networked drive.
19078
190792008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
19080
19081 * window.c (run_window_configuration_change_hook): New function.
19082 Code extracted from set_window_buffer. Set the selected frame.
19083 (set_window_buffer): Use it.
19084 * window.h (run_window_configuration_change_hook): Declare.
19085 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
19086
19087 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
19088
190892008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
19090
19091 * Makefile.in: Remove references to unused macros.
19092
190932008-01-26 Eli Zaretskii <eliz@gnu.org>
19094
19095 * w32.c (g_b_init_get_sid_sub_authority)
19096 (g_b_init_get_sid_sub_authority_count): New static variables.
19097 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
19098 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
19099 (init_user_info): Use them to retrieve uid and gid.
19100 Use 500/513, the Windows defaults, as Administrator's uid/gid.
19101 (fstat): Use pw_uid and pw_gid from the_passwd structure for
19102 st_uid and st_gid of the file.
19103
191042008-01-26 Jason Rumney <jasonr@gnu.org>
19105
19106 * w32.c (logon_network_drive): New function.
19107 (stat): Use it.
19108
191092008-01-26 Chong Yidong <cyd@stupidchicken.com>
19110
19111 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
19112 invisible text covered with an ellipsis.
19113
191142008-01-25 Richard Stallman <rms@gnu.org>
19115
19116 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
19117 jump back to beginning. Move some other initializations after that.
19118 (Qwindow_text_change_functions, Vwindow_text_change_functions):
19119 New variables.
19120 (syms_of_xdisp): Init them.
19121
19122 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
19123
19124 * buffer.c (reset_buffer_local_variables):
19125 Implement `permanent-local-hook'.
19126 (Qpermanent_local_hook): New variable.
19127 (syms_of_buffer): Init and staticpro it.
19128
191292008-01-25 Michael Albinus <michael.albinus@gmx.de>
19130
19131 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
19132
191332008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
19134
19135 * fns.c (Fclrhash): Return TABLE.
19136
191372008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19138
19139 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
19140 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
19141 is set even without positional changes.
19142 (x_scroll_bar_clear): Set bar->redraw_needed_p.
19143
19144 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
19145
191462008-01-23 Jason Rumney <jasonr@gnu.org>
19147
19148 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
19149
19150 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
19151 the unicode range available in MULE by locale-coding-system.
19152 Improve dbcs lead byte detection. Set event timestamp and modifiers
19153 earlier.
19154
191552008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19156
19157 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
19158 [MAC_OSX] (init_mac_osx_environment): Initialize it.
19159 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
19160 when used on child processes.
19161
191622008-01-21 Michael Albinus <michael.albinus@gmx.de>
19163
19164 * dbusbind.c (Fdbus_method_return_internal): Rename from
19165 Fdbus_method_return.
19166 (Fdbus_unregister_object): Move to dbus.el.
19167 (Fdbus_call_method, Fdbus_method_return_internal)
19168 (Fdbus_send_signal): Improve debug messages.
19169
191702008-01-20 Martin Rudalics <rudalics@gmx.at>
19171
19172 * undo.c (undo_inhibit_record_point): New variable.
19173 (syms_of_undo): Initialize it.
19174 (record_point): Don't record point when undo_inhibit_record_point
19175 is set.
19176
191772008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
19178
19179 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
19180
19181 * xdisp.c (Qauto_hscroll_mode): New var.
19182 (syms_of_xdisp): Initialize it.
19183 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
19184 window's buffer.
19185 (hscroll_windows): Don't check automatic_hscrolling_p here.
19186
19187 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
19188 vscroll if we're setting window-buffer to the value it already has.
19189
191902008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
19191
19192 * m/intel386.h: Remove references to XENIX.
19193
191942008-01-17 Andreas Schwab <schwab@suse.de>
19195
19196 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
19197 instead of HAVE_X86_64_LIB64_DIR.
19198 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
19199
192002008-01-17 Glenn Morris <rgm@gnu.org>
19201
19202 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
19203 to HAVE_X86_64_LIB64_DIR.
19204
192052008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
19206
19207 * s/irix3-3.h:
19208 * s/irix4-0.h:
19209 * s/386-ix.h:
19210 * s/domain.h:
19211 * s/hpux9-x11r4.h:
19212 * s/hpux9shxr4.h: Remove files for systems no longer supported.
19213
19214 * sysdep.c: Remove code containing references to symbols defined
19215 by unsupported systems.
19216
192172008-01-16 Glenn Morris <rgm@gnu.org>
19218
19219 * coding.c (select-safe-coding-system-function): Doc fix.
19220
192212008-01-15 Glenn Morris <rgm@gnu.org>
19222
19223 * config.in: Revert 2008-01-13 change: this is a generated file.
19224
192252008-01-13 Tom Tromey <tromey@redhat.com>
19226
19227 * lisp.h: Fix typo.
19228
192292008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19230
19231 * m/sequent-ptx.h:
19232 * m/sequent.h:
19233 * s/ptx.h:
19234 * s/ptx4-2.h:
19235 * s/ptx4.h: Remove files for systems no longer supported.
19236
19237 * callproc.c (Fcall_process): Fix previous change.
19238
192392008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19240
19241 * unexsunos4.c: Remove file, system not supported anymore.
19242
19243 * m/mips.h:
19244 * m/intel386.h:
19245 * callproc.c:
19246 * config.in:
19247 * ecrt0.c:
19248 * emacs.c:
19249 * fileio.c:
19250 * frame.c:
19251 * getpagesize.h:
19252 * keyboard.c:
19253 * lread.c:
19254 * process.c:
19255 * puresize.h:
19256 * sysdep.c:
19257 * systty.h:
19258 * syswait.h:
19259 * unexec.c:
19260 * xdisp.c:
19261 * alloc.c: Remove code containing references to symbols defined by
19262 unsupported systems.
19263
192642008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
19265
19266 * coding.c (detect_coding_mask): Fix previous change.
19267
192682008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
19269
19270 * coding.c (detect_coding_iso2022): New arg
19271 latin_extra_code_state. Allow Latin extra codes only
19272 when *latin_extra_code_state is nonzero.
19273 (detect_coding_mask): If there is a NULL byte, detect the encoding
19274 as UTF-16 or binary. If Latin extra codes exist, detect the
19275 encoding as ISO-2022 only when there's no other proper encoding is
19276 found.
19277
192782008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19279
19280 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
19281 #ifdef MAC_OS.
19282
192832008-01-08 Richard Stallman <rms@gnu.org>
19284
19285 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
19286
192872008-01-06 Nick Roberts <nickrob@snap.net.nz>
19288
19289 * keyboard.c (parse_menu_item): Don't enclose key bindings on
19290 menu bar in parentheses.
19291
192922008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
19293
19294 * m/7300.h:
19295 * m/acorn.h:
19296 * m/alliant-2800.h:
19297 * m/alliant.h:
19298 * m/alliant1.h:
19299 * m/alliant4.h:
19300 * m/altos.h:
19301 * m/amdahl.h:
19302 * m/apollo.h:
19303 * m/att3b.h:
19304 * m/aviion-intel.h:
19305 * m/aviion.h:
19306 * m/celerity.h:
19307 * m/clipper.h:
19308 * m/cnvrgnt.h:
19309 * m/convex.h:
19310 * m/cydra5.h:
19311 * m/delta88k.h:
19312 * m/dpx2.h:
19313 * m/dual.h:
19314 * m/elxsi.h:
19315 * m/f301.h:
19316 * m/gould-np1.h:
19317 * m/gould.h:
19318 * m/i860.h:
19319 * m/ibmps2-aix.h:
19320 * m/ibmrt-aix.h:
19321 * m/ibmrt.h:
19322 * m/irist.h:
19323 * m/is386.h:
19324 * m/isi-ov.h:
19325 * m/mega68.h:
19326 * m/mg1.h:
19327 * m/news-r6.h:
19328 * m/news-risc.h:
19329 * m/news.h:
19330 * m/nh3000.h:
19331 * m/nh4000.h:
19332 * m/ns16000.h:
19333 * m/ns32000.h:
19334 * m/nu.h:
19335 * m/orion.h:
19336 * m/orion105.h:
19337 * m/paragon.h:
19338 * m/pfa50.h:
19339 * m/plexus.h:
19340 * m/pyramid.h:
19341 * m/pyrmips.h:
19342 * m/sh3el.h:
19343 * m/sps7.h:
19344 * m/sr2k.h:
19345 * m/stride.h:
19346 * m/sun1.h:
19347 * m/sun2.h:
19348 * m/sun3-68881.h:
19349 * m/sun3-fpa.h:
19350 * m/sun3-soft.h:
19351 * m/sun3.h:
19352 * m/sun386.h:
19353 * m/symmetry.h:
19354 * m/tad68k.h:
19355 * m/tahoe.h:
19356 * m/targon31.h:
19357 * m/tek4300.h:
19358 * m/tekxd88.h:
19359 * m/tower32.h:
19360 * m/tower32v3.h:
19361 * m/ustation.h:
19362 * m/wicat.h:
19363 * m/xps100.h:
19364 * s/cxux.h:
19365 * s/cxux7.h:
19366 * s/dgux.h:
19367 * s/dgux4.h:
19368 * s/dgux5-4-3.h:
19369 * s/dgux5-4r2.h:
19370 * s/esix.h:
19371 * s/esix5r4.h:
19372 * s/hiuxmpp.h:
19373 * s/hiuxwe2.h:
19374 * s/iris3-5.h:
19375 * s/iris3-6.h:
19376 * s/isc2-2.h:
19377 * s/isc3-0.h:
19378 * s/isc4-0.h:
19379 * s/isc4-1.h:
19380 * s/newsos5.h:
19381 * s/newsos6.h:
19382 * s/osf1.h:
19383 * s/osf5-0.h:
19384 * s/riscix1-1.h:
19385 * s/riscix12.h:
19386 * s/sco4.h:
19387 * s/sco5.h:
19388 * s/sunos4-0.h:
19389 * s/sunos4-1.h:
19390 * s/sunos413.h:
19391 * s/sunos4shr.h:
19392 * s/umax.h:
19393 * s/unipl5-2.h:
19394 * s/xenix.h:
19395 * cxux-crt0.s:
19396 * unexapollo.c:
19397 * unexconvex.c:
19398 * unexenix.c:
19399 * unexsni.c: Remove files for systems no longer supported.
19400
19401 * m/intel386.h: Remove references to unsupported systems.
19402
19403 * w32.c (get_emacs_configuration): Remove reference to i860.
19404
19405 * sysdep.c: Remove dead code.
19406
194072008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
19408
19409 * s/rtu.h:
19410 * m/masscomp.h: Remove files. Platform is obsolete.
19411
194122008-01-04 Michael Albinus <michael.albinus@gmx.de>
19413
19414 * dbusbind.c (Fdbus_method_return): New function.
19415 (xd_read_message): Add the serial number to the event.
19416 (Fdbus_register_method): Activate the function.
19417
194182008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
19419
19420 * keyboard.c (read_key_sequence): Fix typo.
19421
194222008-01-03 Michael Albinus <michael.albinus@gmx.de>
19423
19424 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
19425 (xd_signature, xd_append_arg): Handle element type detection for
19426 empty arrays.
19427 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
19428 SDATA () calls; this must be solved more general.
19429 (Fdbus_register_signal): Use SBYTES instead of strlen.
19430
194312008-01-03 Magnus Henoch <magnus@zemdatav>
19432
19433 * dbusbind.c (xd_append_arg): Use unsigned char instead of
19434 unsigned int for byte values (necessary for big-endian platform).
19435 (Fdbus_call_method): Handle the case of no returned arguments.
19436
194372007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
19438
19439 * dbusbind.c (xd_read_message): Use non-static input_event struct.
19440
194412007-12-31 Magnus Henoch <mange@freemail.hu>
19442
19443 * dbusbind.c (xd_signature): Signature of variant is just "v".
19444
194452007-12-30 Michael Albinus <michael.albinus@gmx.de>
19446
19447 * dbusbind.c: Fix several errors and compiler warnings.
19448 Reported by Tom Tromey <tromey@redhat.com>.
19449 (XD_ERROR, XD_DEBUG_MESSAGE)
19450 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
19451 (xd_append_arg): Part for basic D-Bus types rewritten.
19452 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
19453 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
19454 appropriate.
19455 (xd_read_message): Return Qnil. Don't signal an error; it is not
19456 useful during event reading.
19457 (Fdbus_register_signal): Signal an error if the check for
19458 FUNCTIONP fails.
19459 (Fdbus_register_method): New function. The implementation is not
19460 complete, the call of the function signals an error therefore.
19461 (Fdbus_unregister_object): New function, renamed from
19462 Fdbus_unregister_signal. The initial check signals an error, if
19463 the object is not well formed.
19464
194652007-12-30 Richard Stallman <rms@gnu.org>
19466
19467 * textprop.c (get_char_property_and_overlay):
19468 Signal error if POSITION is out of range in a buffer.
19469
194702007-12-29 Martin Rudalics <rudalics@gmx.at>
19471
19472 * w32fns.c (Fx_create_frame): Make copy of frame parameters
19473 because the original parameters are in pure storage now.
19474
194752007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19476
19477 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
19478
194792007-12-22 Eli Zaretskii <eliz@gnu.org>
19480
19481 * callint.c (syms_of_callint) <command-history>: Add reference to
19482 history-length in the doc string.
19483
194842007-12-17 Jason Rumney <jasonr@gnu.org>
19485
19486 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
19487 before passing as wParam.
19488
194892007-12-22 Michael Albinus <michael.albinus@gmx.de>
19490
19491 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
19492 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
19493 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
19494 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
19495 as number.
19496 (Fdbus_call_method): Fix docstring.
19497
194982007-12-21 Michael Albinus <michael.albinus@gmx.de>
19499
19500 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
19501 New macros.
19502 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
19503 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
19504 Simplify.
19505 (xd_signature): New function.
19506 (xd_append_arg): Compute also signatures. Major rewrite.
19507 (xd_retrieve_arg): Make debug messages friendly.
19508 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
19509 Check for signatures of arguments.
19510
195112007-12-19 Michael Albinus <michael.albinus@gmx.de>
19512
19513 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
19514 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
19515 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
19516 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
19517 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
19518 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
19519 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
19520 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
19521 (xd_retrieve_value): Remove. Functionality included in ...
19522 (xd_append_arg): New function.
19523 (Fdbus_call_method, Fdbus_send_signal): Apply it.
19524
195252007-12-16 Michael Albinus <michael.albinus@gmx.de>
19526
19527 * dbusbind.c (top): Include <stdio.h>.
19528 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
19529 dbus_message_new_method_call and dbus_message_new_signal.
19530 (Fdbus_register_signal): Rename unique_name to uname.
19531 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
19532 non-existing unique name. Fix typos in matching rule. Return an
19533 object which is useful in Fdbus_unregister_signal.
19534 (Fdbus_unregister_signal): Reimplementation, in order to remove
19535 only the corresponding entry.
19536 (Vdbus_registered_functions_table): Change the order of entries.
19537 Apply these changes in xd_read_message and Fdbus_register_signal.
19538
195392007-12-16 Andreas Schwab <schwab@suse.de>
19540
19541 * fileio.c (Finsert_file_contents): Fix overflow check to not
19542 depend on undefined integer overflow.
19543
195442007-12-14 Jason Rumney <jasonr@gnu.org>
19545
19546 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19547 for characters above 127.
19548
195492007-12-13 Jason Rumney <jasonr@gnu.org>
19550
19551 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19552 before dereferencing array.
19553 (lookup_vk_code): Remove zero comparison.
19554
195552007-12-14 Michael Albinus <michael.albinus@gmx.de>
19556
19557 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19558 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19559 Use `unsigned int' instead of `uint'.
19560 (xd_read_message, Fdbus_register_signal): Split expressions into
19561 multiple lines before operators "&&" and "||", according to the
19562 GNU Coding Standards.
19563
195642007-12-14 Eli Zaretskii <eliz@gnu.org>
19565
19566 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19567
195682007-12-12 Juri Linkov <juri@jurta.org>
19569
19570 * buffer.c (Frename_buffer): In interactive spec replace
19571 `read-buffer' with `read-string' that uses `buffer-name-history'
19572 as history, and the current buffer's name as default.
19573
195742007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19575
19576 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19577 manipulating the backtrace manually.
19578 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19579 (struct backtrace, backtrace_list): Remove.
19580 (command_loop_1): Remove dead var `no_direct'.
19581
19582 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19583 preserve non-built-in buffer-local variables.
19584 (Fkill_all_local_variables): Don't re-create&re-set permanent
19585 buffer-local variables.
19586
195872007-12-09 Juri Linkov <juri@jurta.org>
19588
19589 * buffer.c (Frename_buffer): Change interactive spec from "s" to
19590 Lisp code that uses `read-buffer' with current buffer as default.
19591
195922007-12-08 Michael Albinus <michael.albinus@gmx.de>
19593
19594 * dbusbind.c (xd_read_message): Generate an event for every
19595 registered handler. There might be several handlers registered
19596 for the same signal.
19597 (Fdbus_register_signal): Don't overwrite a registration for the
19598 same signal. Add a new registration if handlers are different.
19599 (Vdbus_registered_functions_table): Rework doc string.
19600
196012007-12-07 Michael Albinus <michael.albinus@gmx.de>
19602
19603 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19604 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19605 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19606 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19607 Unify argument lists.
19608 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19609 arguments and hash table keys. Use unique name for service.
19610 (Fdbus_unregister_signal): Remove checks.
19611 (Vdbus_registered_functions_table): Fix doc string.
19612
196132007-12-05 Magnus Henoch <mange@freemail.hu>
19614
19615 * process.c (make_process): Initialize pty_flag to 0.
19616
196172007-12-05 Jason Rumney <jasonr@gnu.org>
19618
19619 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19620 specified XBMs.
19621
196222007-12-05 Richard Stallman <rms@gnu.org>
19623
19624 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19625
196262007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19627
19628 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19629 New variable.
19630 (mac_try_close_socket) [MAC_OSX]: New function.
19631 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19632 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19633
19634 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19635 Use mac_try_close_socket.
19636
196372007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19638
19639 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19640 reloc_base.
19641 (copy_dysymtab): Compute relocation base here.
19642 (rebase_reloc_address) [__ppc64__]: New function.
19643 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19644 changed.
19645
196462007-12-05 Jason Rumney <jasonr@gnu.org>
19647
19648 * w32proc.c (sys_spawnve): Quote args with wildcards.
19649
196502007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19651
19652 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19653 __objc_* sections.
19654 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19655
196562007-12-05 Michael Albinus <michael.albinus@gmx.de>
19657
19658 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19659 Move check for Vdbus_registered_functions_table to
19660 xd_read_queued_messages.
19661 (xd_read_queued_messages): Protect xd_read_message calls by
19662 internal_condition_case_1.
19663
196642007-12-04 Michael Albinus <michael.albinus@gmx.de>
19665
19666 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19667 Qdbus_system_bus and Qdbus_session_bus, respectively.
19668 (Vdbus_intern_symbols): Remove.
19669 (Vdbus_registered_functions_table): New hash table.
19670 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19671 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19672 Rewrite in order to manage registered functions by hash table
19673 Vdbus_registered_functions_table.
19674
196752007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19676
19677 * xterm.c: Update URL to Window Manager Specification in comment.
19678
196792007-12-02 Michael Albinus <michael.albinus@gmx.de>
19680
19681 * config.in (HAVE_DBUS): Add.
19682
19683 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19684 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19685 (obj): Add $(DBUS_OBJ).
19686 (LIBES): Add $(DBUS_LIBS).
19687 (dbusbind.o): New target.
19688
19689 * dbusbind.c: New file.
19690
19691 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19692
19693 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19694 (Qdbus_event): New Lisp symbol.
19695 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19696 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 19697 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
19698
19699 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19700
197012007-12-01 Richard Stallman <rms@gnu.org>
19702
19703 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19704
197052007-11-30 Jason Rumney <jasonr@gnu.org>
19706
19707 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19708 (w32con_reset_terminal_modes): Clear screen buffer.
19709 (w32_face_attributes): Don't use color indexes that are out of range.
19710 Only reverse the default colors.
19711
19712 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19713 WINDOWSNT.
19714
19715 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19716
197172007-11-29 Jason Rumney <jasonr@gnu.org>
19718
19719 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19720 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19721 if the terminal colors are initialized.
19722 (unspecified_fg, unspecified_bg): Remove unused declarations.
19723
197242007-11-29 Andreas Schwab <schwab@suse.de>
19725
19726 * keyboard.c (apply_modifiers): Fix typo.
19727
197282007-11-29 Richard Stallman <rms@gnu.org>
19729
19730 * keymap.c (Fcurrent_local_map): Doc fix.
19731
197322007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19733
19734 * s/gnu-kfreebsd.h: New file.
19735
197362007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19737
19738 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19739 Don't cast redundantly.
19740
19741 * keyboard.c (KEY_TO_CHAR): New macro.
19742 (parse_modifiers, apply_modifiers): Accept integer arguments.
19743 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19744 for chars and symbol keys.
19745 After doing such remapping, apply function-key-map again.
19746
197472007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19748
19749 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19750 compiled anymore.
19751
197522007-11-26 Andreas Schwab <schwab@suse.de>
19753
19754 * process.c (list_processes_1): Fix indentation level of the
19755 command column.
19756
197572007-11-23 Andreas Schwab <schwab@suse.de>
19758
19759 * editfns.c (Fformat): Handle %c specially since it requires the
19760 argument to be of type int.
19761
197622007-11-23 Markus Triska <markus.triska@gmx.at>
19763
19764 * emacs.c (main): Call init_editfns before init_process, since
19765 init_process sets Vprocess_connection_type depending on OS release.
19766
197672007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19768
19769 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19770 (find_symbol_value): Use do_symval_forwarding.
19771
19772 * data.c (set_internal): Set the value in the `cons-cell' (for
19773 Buffer_Local_values) not only for frame-local variables.
19774
197752007-11-22 Andreas Schwab <schwab@suse.de>
19776
19777 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19778 values to sprintf.
19779 * keymap.c (Fsingle_key_description): Likewise.
19780 * print.c (print_object): Likewise.
19781
197822007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19783
19784 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19785 file for image is nil.
19786
197872007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19788
19789 * term.c: Include stdarg.h.
19790 (fatal): Implement using varargs.
19791 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19792
197932007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19794
19795 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19796 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19797 Update call to buffer_slot_type_mismatch.
19798 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19799 (buffer_slot_type_mismatch): Update.
19800 * buffer.c (buffer_local_types): Remove.
19801 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19802 (defvar_per_buffer): Set the type in the buffer_objfwd.
19803
198042007-11-21 Jason Rumney <jasonr@gnu.org>
19805
19806 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19807 CreateFileMapping returns NULL on failure.
19808
198092007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19810
19811 * search.c (Fset_match_data): Remove the `evaporate' feature.
19812 (unwind_set_match_data): Don't use the `evaporate' feature.
19813
198142007-11-21 Jason Rumney <jasonr@gnu.org>
19815
19816 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19817
19818 * w32console.c (w32con_write_glyphs): Remove unused variables.
19819
198202007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19821
19822 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19823
19824 * s/darwin.h (MULTI_KBOARD): Remove.
19825
19826 * macfns.c (x_create_tip_frame, Fx_create_frame)
19827 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19828
198292007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19830
19831 * buffer.c (Fbuffer_local_value): Remove redundant test.
19832 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19833 than in `current-buffer' to match the comment.
19834 Do the swap using swap_in_global_binding.
19835
19836 * data.c (store_symval_forwarding, set_internal):
19837 * eval.c (specbind): Remove dead code.
19838
19839 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19840 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19841 Since we do not want to see internal Lisp_*fwd objects here.
19842
198432007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19844
19845 * sysdep.c (init_system_name): Use getaddrinfo if available.
19846
19847 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19848 (x_scroll_bar_note_movement): start, end, with, height in struct
19849 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19850
198512007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19852
19853 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19854
198552007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19856
19857 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19858 This undoes Richard's change of 14-Oct-2002.
19859
19860 * alloc.c (allocate_other_vector):
19861 * lisp.h (allocate_other_vector): Remove.
19862
19863 * window.c (struct save_window_data): Move non-lisp data to the end
19864 and make it `int' rather than Lisp_Object.
19865 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19866 Done wrap/unwrap integer values.
19867 (Fset_window_configuration, compare_window_configurations):
19868 Update use of fields to their new types.
19869
19870 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19871 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19872 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19873 (SET_SCROLL_BAR_X_WINDOW): Remove.
19874 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19875 Access the new x_window field directly.
19876 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19877 Don't wrap/unwrap integers into Lisp_Objects.
19878 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19879 (x_scroll_bar_report_motion):
19880 Don't wrap/unwrap integers into Lisp_Objects.
19881 (x_term_init): Use SDATA.
19882 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19883 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19884 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19885 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19886 * xfns.c (x_set_background_color):
19887 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19888 Access the new x_window field directly.
19889
19890 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19891 (allocate_pseudovector): Make non-static.
19892
19893 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19894 (allocate_pseudovector): Declare.
19895 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19896
198972007-11-15 Andreas Schwab <schwab@suse.de>
19898
19899 * editfns.c (Fformat): Correctly format EMACS_INT values.
19900 Also take precision into account when formatting an integer.
19901
19902 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19903
199042007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19905
19906 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19907 (syms_of_keyboard): Defsubr it.
19908
19909 * data.c (swap_in_global_binding): Fix longstanding bug where
19910 store_symval_forwarding was not called with the right second argument,
19911 thus causing objfwd-ing from being dropped.
19912
199132007-11-14 Juanma Barranquero <lekktu@gmail.com>
19914
19915 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19916 (Fx_display_pixel_height, Fx_display_planes)
19917 (Fx_display_color_cells, Fx_server_max_request_size)
19918 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19919 (Fx_display_visual_class, Fx_display_save_under):
19920 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19921 (Fx_display_pixel_height, Fx_display_planes)
19922 (Fx_display_color_cells, Fx_server_max_request_size)
19923 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19924 (Fx_display_mm_height, Fx_display_mm_width)
19925 (Fx_display_backing_store, Fx_display_visual_class)
19926 (Fw32_select_font, Fx_display_save_under):
19927 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19928 (Fx_display_pixel_height, Fx_display_planes)
19929 (Fx_display_color_cells, Fx_server_max_request_size)
19930 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19931 (Fx_display_save_under): Fix typos in docstrings.
19932
199332007-11-14 Juanma Barranquero <lekktu@gmail.com>
19934
19935 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19936 corresponding to deleted entries; they are an implementation detail.
19937 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19938 Remove variables.
19939 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19940 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19941 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19942 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19943 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19944 (Fw32_define_rgb_color, Fw32_load_color_file)
19945 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19946 Fix typos in docstrings.
19947 (Fx_server_version): Reflow docstring.
19948 (Fw32_shell_execute): Doc fixes.
19949
199502007-11-13 Juanma Barranquero <lekktu@gmail.com>
19951
19952 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19953 if w32_parse_hot_key returned nil.
19954
199552007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19956
19957 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19958
199592007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 19960
aac0c6e3
MR
19961 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19962
19963 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19964
19965 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19966 Remove W32_SCROLL_BAR_CLICK_EVENT.
19967
19968 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19969 Add MULTIMEDIA_KEY_EVENT.
19970
19971 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19972 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19973 (make_lispy_event) [WINDOWSNT]: Use it to translate
19974 MULTIMEDIA_KEY_EVENT.
19975
19976 * w32term.h (WM_APPCOMMAND): Define if not already.
19977 (GET_APPCOMMAND_LPARAM): Likewise.
19978
19979 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19980 WM_APPCOMMAND.
19981
19982 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19983 (syms_of_w32fns): Export and initialize it.
19984 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19985
199862007-11-09 Chong Yidong <cyd@stupidchicken.com>
19987
19988 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19989 twice.
19990
19991 * xdisp.c (handle_face_prop): Fix last change.
19992
199932007-11-09 Richard Stallman <rms@gnu.org>
19994
19995 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19996 not just for after-strings and before-strings.
19997 Call face_for_overlay_string and pass the overlay to it.
19998 (handle_display_prop): Determine whether property came from an overlay.
19999 Pass OVERLAY arg to handle_single_display_spec.
20000 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
20001 (load_overlay_strings): Fill in it->string_overlays.
20002 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
20003
20004 * xfaces.c (face_for_overlay_string): Function renamed from
20005 face_at_buffer_position_no_overlays, and add arg OVERLAY.
20006
20007 * dispextern.h (struct it): New elt string_overlays.
20008 New elt from_overlay, also in stack.
20009 Rearrange a few elements.
20010 (face_for_overlay_string): Decl renamed from
20011 face_at_buffer_position_no_overlays, and add argument.
20012
200132007-11-09 Richard Stallman <rms@gnu.org>
20014
20015 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
20016 to get the base face for an overlay string.
20017
20018 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
20019
20020 * xfaces.c (face_at_buffer_position_no_overlays): New function.
20021
20022 * xdisp.c (handle_stop): Move some code out of loop.
20023
200242007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20025
20026 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
20027 Fix conversion from Lisp object to ATSUFontID.
20028
200292007-11-09 Jason Rumney <jasonr@gnu.org>
20030
20031 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
20032
200332007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20034
20035 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
20036 Don't assume regions are aligned to page boundary.
20037 (print_load_command_name): Add LC_UUID if defined.
20038
200392007-11-09 Richard Stallman <rms@gnu.org>
20040
20041 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
20042
200432007-11-07 Jason Rumney <jasonr@gnu.org>
20044
20045 * s/windows95.h: Remove.
20046
200472007-11-06 Jan Djärv <jan.h.d@swipnet.se>
20048
20049 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
20050 abort with a message on unhandled store_type values.
20051
200522007-11-01 Jan Djärv <jan.h.d@swipnet.se>
20053
20054 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
20055 Remove HAVE_X11R5 and HAVE_X11R4.
20056
200572007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20058
20059 * Makefile.in: Remove references to sunfns.c and sunfns.o.
20060
200612007-11-01 Johan Bockgård <bojohan@gnu.org>
20062
20063 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
20064 Don't set s->stippled_p here, since it has already been set by
20065 x_set_glyph_string_gc from x_draw_glyph_string.
20066
200672007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20068
20069 * sunfns.c: Remove file.
20070
20071 * m/sun386.h:
20072 * m/sun2.h:
20073 * m/sparc.h: Remove Sun windows code.
20074
200752007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
20076
20077 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
20078 (init_keyboard): Set current_kboard's window-system to nil.
20079 (tty_read_avail_input): Typo.
20080 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
20081
200822007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
20083
20084 * s/usg5-4.h:
20085 * s/usg5-3.h:
20086 * s/ptx.h:
20087 * m/is386.h:
20088 * m/ibmps2-aix.h:
20089 * Makefile.in: Remove all mentions of X10.
20090
20091 * dispnew.c (syms_of_display): Don't mention version 10.
20092
200932007-10-28 Juanma Barranquero <lekktu@gmail.com>
20094
20095 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
20096 ($(BLD)/abbrev.$(O)): Remove.
20097
200982007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
20099
20100 Rewrite abbrev.c in Elisp.
20101 * image.c (Qcount): Don't declare as extern.
20102 (syms_of_image): Initialize and staticpro `Qcount'.
20103 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
20104 * emacs.c (main): Don't call syms_of_abbrev.
20105 * Makefile.in (obj): Remove abbrev.o.
20106 (abbrev.o): Remove.
20107 * abbrev.c: Remove.
20108
201092007-10-26 Martin Rudalics <rudalics@gmx.at>
20110
20111 * window.c (window_min_size_2): Don't count header-line.
20112
201132007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
20114
20115 * frame.h (struct frame): Move all bit fields after the first bit
20116 field to take advantage of the available space. Group all the
20117 chars together to reduce wasted space due to padding.
20118
201192007-10-26 Juanma Barranquero <lekktu@gmail.com>
20120
20121 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
20122
20123 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
20124 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
20125 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
20126 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
20127 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
20128 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
20129 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
20130 (last_marked, mark_object_loop_halt): Make static.
20131
20132 * frame.c (syms_of_frame) <delete-frame-functions>:
20133 Fix typo in docstring.
20134
201352007-10-25 Juanma Barranquero <lekktu@gmail.com>
20136
20137 * w32.c (init_environment): Fix tiny memory leak.
20138 (w32_get_resource): Remove unused variable `ok'.
20139
201402007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
20141
20142 Make `window-system' into a keyboard-local variable (rather than
20143 frame-local as done originally by multi-tty).
20144
20145 * keyboard.h (struct kboard): Add Vwindow_system.
20146 * keyboard.c (init_kboard): Set a default for Vwindow_system.
20147 (mark_kboards): Mark Vwindow_system.
20148
20149 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
20150 (init_display): Don't set the obsolete `window-system' frame-param.
20151
20152 * xterm.c (x_term_init):
20153 * w32term.c (w32_create_terminal):
20154 * term.c (init_tty): Set Vwindow_system.
20155 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
20156 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
20157
20158 * xfns.c (Fx_create_frame, x_create_tip_frame):
20159 * w32fns.c (Fx_create_frame, x_create_tip_frame):
20160 * macfns.c (Fx_create_frame):
20161 Don't set the obsolete `window-system' frame-param.
20162
20163 * frame.h (Qwindow_system): Remove.
20164 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
20165 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
20166
201672007-10-24 Richard Stallman <rms@gnu.org>
20168
20169 * frame.c (x_figure_window_size): For fullscreen case,
20170 set USPosition | PPosition without clobbering rest of window_prompting.
20171
20172 * keyboard.c (Fcurrent_idle_time): Doc fix.
20173
20174 * print.c (Fwith_output_to_temp_buffer): Doc fix.
20175
201762007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
20177
20178 * process.c (unwind_request_sigio): Only define if __ultrix__.
20179
20180 * callproc.c (child_setup): Remove spurious *.
20181
20182 * lisp.h (Fget_text_property): Declare.
20183 (have_menus_p): Declare it here rather than in sys-dep header files.
20184 * macterm.h (have_menus_p):
20185 * msdos.h (have_menus_p):
20186 * xterm.h (have_menus_p): Remove.
20187
20188 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20189 (Fmake_variable_frame_local): Just check the variable's const-ness
20190 rather than checking nil or t.
20191
201922007-10-22 Jason Rumney <jasonr@gnu.org>
20193
20194 * w32fns.c: Include math.h.
20195 (w32_abort): Declaration moved to nt/config.nt.
20196
20197 * s/ms-w32.h (HAVE_STDLIB_H): Define.
20198 (abort): Redefinition moved to nt/config.nt.
20199
20200 * m/windowsnt.h: Remove.
20201
202022007-10-22 Juanma Barranquero <lekktu@gmail.com>
20203
20204 * emacs.c (Fdump_emacs): Fix typo in message.
20205 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
20206 <installation-directory>: Reflow docstring.
20207
202082007-10-22 Juri Linkov <juri@jurta.org>
20209
20210 * minibuf.c: Allow minibuffer default to be a list of default values.
20211 With empty input use the first element of this list as returned default.
20212 (string_to_object)
20213 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
20214 (read_minibuf): If defalt is cons, set histstring to its car.
20215 (Fread_string): If default_value is cons, set val to its car.
20216 (Fread_buffer): If def is cons, use its car.
20217 (Fcompleting_read): If defalt is cons, set val to its car.
20218
202192007-10-21 Michael Albinus <michael.albinus@gmx.de>
20220
20221 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
20222
202232007-10-20 Juanma Barranquero <lekktu@gmail.com>
20224
20225 * doc.c (Fdocumentation): Check for advice in all cases.
20226
202272007-10-19 Chong Yidong <cyd@stupidchicken.com>
20228
20229 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
20230
202312007-10-19 Richard Stallman <rms@gnu.org>
20232
20233 * doc.c (Fdocumentation): Check for and handle an advised function.
20234
202352007-10-19 Juanma Barranquero <lekktu@gmail.com>
20236
20237 * process.c (Fset_process_filter): Doc fix.
20238
202392007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
20240
20241 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
20242 which caused key-translation-map to applied repeatedly (thus breaking
20243 double-mode).
20244
202452007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20246
20247 * xselect.c (x_own_selection, x_handle_selection_clear)
20248 (x_clear_frame_selections):
20249 * w32menu.c (list_of_panes, list_of_items):
20250 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
20251 * textprop.c (validate_plist, interval_has_all_properties)
20252 (interval_has_some_properties, interval_has_some_properties_list)
20253 (add_properties, text_property_list):
20254 * process.c (Fget_buffer_process, list_processes_1, status_notify):
20255 * minibuf.c (Fassoc_string):
20256 * macselect.c (x_own_selection, x_clear_frame_selections)
20257 (Fx_disown_selection_internal):
20258 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
20259 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
20260
202612007-10-17 Chong Yidong <cyd@stupidchicken.com>
20262
20263 * process.c: Link to libs for calling res_init() if available.
20264 (Fmake_network_process): Call res_init() before getaddrinfo or
20265 gethostbyname, if possible.
20266
202672007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20268
20269 * lread.c (read1): Set pvectype for char_tables.
20270
20271 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
20272 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
20273 Add type checks.
20274 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
20275
20276 * alloc.c (free_misc): Use XMISCTYPE.
20277 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
20278
202792007-10-17 Glenn Morris <rgm@gnu.org>
20280
20281 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
20282 (syms_of_minibuf): Add Qcompletion_ignore_case.
20283 * dired.c (Qcompletion_ignore_case): Change to external.
20284 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
20285 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
20286 (Fread_file_name): Use it rather than intern'ing.
20287
20288 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
20289 (Fread_coding_system): Ignore case of user input.
20290
202912007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20292
20293 * xdisp.c (handle_display_prop): Ignore display specs after
20294 replacing one when string text is being replaced.
20295 (handle_single_display_spec): Pretend as if characters with display
20296 property haven't been consumed only when buffer text is being replaced.
20297
202982007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
20299
20300 * xfns.c (Fx_create_frame, Fx_display_list):
20301 * window.c (window_fixed_size_p, enlarge_window)
20302 (shrink_window_lowest_first):
20303 * macterm.c (init_font_name_table):
20304 * macfns.c (Fx_create_frame, Fx_display_list):
20305 * lread.c (close_load_descs):
20306 * keyboard.c (read_char_x_menu_prompt):
20307 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
20308 * coding.c (code_convert_region_unwind): Test the type of an object
20309 rather than just !NILP before extracting data from it.
20310
20311 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
20312
20313 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
20314 (XMISCANY): New macro.
20315 (XMISCTYPE): Use it.
20316 (struct Lisp_Misc_Any): New type.
20317 (union Lisp_Misc): Use it.
20318 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
20319 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
20320 (find_symbol_value, set_internal, default_value, Fset_default)
20321 (Fmake_variable_buffer_local, Fmake_local_variable)
20322 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
20323 (Flocal_variable_if_set_p, Fvariable_binding_locus):
20324 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
20325 * alloc.c (allocate_buffer): Set the size and tag.
20326 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
20327 Use XMISCANY.
20328 (die): Follow the GNU convention for error messages.
20329 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
20330 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
20331 tag any more.
20332 (set_buffer_internal_1):
20333 * frame.c (store_frame_param):
20334 * eval.c (specbind):
20335 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
20336
20337 * doc.c (Fsnarf_documentation): Simplify.
20338
203392007-10-14 Juanma Barranquero <lekktu@gmail.com>
20340
20341 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
20342 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
20343
203442007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
20345
20346 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
20347
203482007-10-14 Juanma Barranquero <lekktu@gmail.com>
20349
20350 * eval.c (do_autoload): Don't save autoloads.
20351
20352 * data.c (Ffset): Save autoload of the function being set.
20353
203542007-10-07 John Paul Wallington <jpw@pobox.com>
20355
20356 * xfns.c (x_create_tip_frame): Set the `display-type' frame
20357 parameter before setting up faces.
20358
203592007-10-13 Eli Zaretskii <eliz@gnu.org>
20360
20361 * ccl.c (Fregister_code_conversion_map):
20362 * keyboard.c (append_tool_bar_item): Reformat last change.
20363
20364 * lisp.h (eabs): Rename from `abs'. All callers changed.
20365
203662007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
20367
20368 * buffer.c (add_overlay_mod_hooklist):
20369 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
20370 * fontset.c (make_fontset):
20371 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
20372 (append_tool_bar_item):
20373 * macmenu.c (grow_menu_items):
20374 * w32menu.c (grow_menu_items):
20375 * xmenu.c (grow_menu_items): Use larger_vector.
20376
203772007-10-13 Eli Zaretskii <eliz@gnu.org>
20378
20379 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
20380 selected frame'' on MSDOS).
20381
203822007-10-12 Martin Rudalics <rudalics@gmx.at>
20383
20384 * frame.c (Qexplicit_name): New variable.
20385 (x_report_frame_params): Report it in parameter alist.
20386 (syms_of_frame): Intern and staticpro it.
20387
203882007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
20389
20390 * macfns.c (x_create_tip_frame): Set terminal for frame.
20391
203922007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
20393
20394 * frame.c (Qenvironment): Remove.
20395 (syms_of_frame) <Qenvironment>: Don't initialize.
20396 (Fdelete_frame): Don't treat the `environment' param specially.
20397 * frame.h (Qenvironment): Don't declare.
20398 * callproc.c (set_initial_environment): Don't set unused frame param.
20399
20400 * frame.c (Fframe_with_environment): Remove.
20401 (syms_of_frame) <Sframe_with_environment>: Don't declare.
20402
20403 * lisp.h (Fframe_with_environment): Don't declare.
20404
204052007-10-10 Juanma Barranquero <lekktu@gmail.com>
20406
20407 * indent.c (indent_tabs_mode, last_known_column)
20408 (last_known_column_modified): Make static.
20409 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
20410
204112007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
20412
20413 * puresize.h (BASE_PURESIZE): Increase to 1170000.
20414
204152007-10-09 Jason Rumney <jasonr@gnu.org>
20416
20417 * w32term.c (x_set_window_size): Disable code that attempts to tell
20418 Lisp code about a size change before it actually happens.
20419
204202007-10-09 Richard Stallman <rms@gnu.org>
20421
20422 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
20423 return HANDLED_RETURN.
20424
204252007-10-08 Martin Rudalics <rudalics@gmx.at>
20426
20427 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
20428 when there's an unread command event.
20429
20430 * frame.c (focus_follows_mouse): Move here from frame.el to allow
20431 window autoselection act appropriately when leaving selected frame.
20432 (syms_of_frame): Initialize focus_follows_mouse.
20433 * frame.h (focus_follows_mouse): Extern it.
20434 * macterm.c (XTread_socket): When focus_follows_mouse is nil
20435 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
20436 * msdos.c (dos_rawgetc): Likewise.
20437 * w32term.c (w32_read_socket): Likewise.
20438 * xterm.c (handle_one_xevent): Likewise.
20439 * xdisp.c (syms_of_xdisp): In doc-string of
20440 mouse-autoselect-window mention focus-follows-mouse.
20441
204422007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20443
20444 * macterm.c (mac_load_query_font): Fix missing return value.
20445 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
20446 Add BLOCK_INPUT.
20447
204482007-10-08 Richard Stallman <rms@gnu.org>
20449
20450 * xdisp.c (get_window_cursor_type): Implement documented behavior
20451 for cursor-in-non-selected-windows = t.
20452
204532007-10-08 Jason Rumney <jasonr@gnu.org>
20454
20455 * w32.c (w32_get_resource): Always close registry keys.
20456
204572007-10-08 Jason Rumney <jasonr@gnu.org>
20458
20459 * makefile.w32-in (LIBS): Add COMCTL32.
20460
20461 * w32fns.c (globals_of_w32fns): Init common controls.
20462
204632007-10-08 Richard Stallman <rms@gnu.org>
20464
20465 * image.c (our_memory_buffer): Rename from omfib_buffer.
20466
204672007-10-08 Richard Stallman <rms@gnu.org>
20468
20469 * buffer.c (Foverlays_at): Doc fix.
20470
204712007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
20472
20473 * fns.c (Fplist_put): Preserve uneven tail data.
20474
204752007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
20476
20477 * termhooks.h (enum event_kind): Remove trailing comma.
20478
20479 * frame.h (enum): Remove trailing comma.
20480
204812007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20482
20483 * w32proc.c (delete_child): Don't terminate threads of zombies.
20484
204852007-10-08 Martin Rudalics <rudalics@gmx.at>
20486
20487 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
20488
20489 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
20490 last-repeatable-command.
20491 (init_kboard): Initialize Vlast_repeatable_command.
20492 (command_loop_1): Set it to real_this_command unless that was
20493 bound to an input event.
20494 (mark_kboards): Mark it.
20495
204962007-10-08 Richard Stallman <rms@gnu.org>
20497
20498 * eval.c (condition-case): Doc fix.
20499
205002007-10-08 Masatake YAMATO <jet@gyve.org>
20501
20502 * xfaces.c (tty_supports_face_attributes_p): Fix code
20503 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
20504 was copied and not edited.
20505
205062007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
20507
20508 Add new `input-decode-map' keymap and use it for terminal
20509 escape sequences.
20510 * keyboard.h (struct kboard): Add Vinput_decode_map.
20511 Remove Vlocal_key_translation_map.
20512 * keyboard.c (read_key_sequence): Add support for input-decode-map.
20513 (init_kboard): Init input-decode-map.
20514 Replace local-key-translation-map back with key-translation-map.
20515 (syms_of_keyboard): Declare input-decode-map.
20516 Remove local-key-translation-map. Update docstrings.
20517 (mark_kboards): Mark Vinput_decode_map.
20518 Don't mark Vlocal_key_translation_map.
20519 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
20520 Replace local-key-translation-map back with key-translation-map.
20521 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
20522 Bind in input-decode-map rather than function-key-map.
20523
20524 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
20525 This was made redundant by the previous introduction of XSETPVECTYPE.
20526
205272007-10-09 Richard Stallman <rms@gnu.org>
20528
20529 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
20530
205312007-09-29 Richard Stallman <rms@gnu.org>
20532
20533 * eval.c (internal_condition_case_2, internal_condition_case_1)
20534 (internal_condition_case): Reenable abort if x_catching_errors ()
20535 to see if that really happens and why.
20536
205372007-10-06 Andreas Schwab <schwab@suse.de>
20538
20539 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
20540
205412007-10-04 Juanma Barranquero <lekktu@gmail.com>
20542
20543 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
20544
205452007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
20546
20547 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20548
205492007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
20550
20551 * window.h (struct window):
20552 * window.c (struct save_window_data, struct saved_window):
20553 * termhooks.h (struct terminal):
20554 * process.h (struct Lisp_Process):
20555 * frame.h (struct frame):
20556 * buffer.h (struct buffer):
20557 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20558 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20559 The size field of (pseudo)vectors is now unsigned.
20560 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20561
20562 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20563 Turn `count' into an integer.
20564
20565 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20566 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20567 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20568 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20569 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20570
20571 * alloc.c (allocate_pseudovector): New fun.
20572 (ALLOCATE_PSEUDOVECTOR): New macro.
20573 (allocate_window, allocate_terminal, allocate_frame)
20574 (allocate_process): Use it.
20575 (mark_vectorlike): New function.
20576 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20577 (mark_terminals): Use it.
20578 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20579 (Fmake_byte_code): Use XSETPVECTYPE.
20580
20581 * frame.c (Fframe_parameters): Minor simplification.
20582
20583 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20584
20585 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20586
20587 * buffer.c (Fget_buffer_create, init_buffer_once):
20588 * lread.c (defsubr):
20589 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20590
20591 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20592 defined differently in the m/*.h files.
20593 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
20594 (XSETPVECTYPE): New macro.
20595 (XSETPSEUDOVECTOR): Use it.
20596
20597 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20598 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20599
20600 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20601 * lread.c (defvar_per_buffer):
20602 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20603
20604 * window.c (candidate_window_p): Only consider as visible frames that
20605 are on the same terminal.
20606
20607 * m/ibms390x.h (MARKBIT): Remove unused macro.
20608
206092007-10-01 Juanma Barranquero <lekktu@gmail.com>
20610
20611 * lread.c (Fload): Fix typo in docstring.
20612
206132007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20614
20615 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20616 of a non-zero value can't yield zero.
20617
206182007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20619
20620 * term.c (term_clear_mouse_face, term_mouse_highlight)
20621 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20622
20623 * print.c (safe_debug_print): Use XHASH.
20624
20625 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20626 Lisp elements such as tags.
20627 (XHASH): New macro.
20628 (EQ): Use it.
20629 (SREF, SSET, STRING_COPYIN): Use SDATA.
20630 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20631
20632 * alloc.c (mark_terminal): Remove left-over declaration.
20633 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20634 (allocate_vectorlike): Remove type argument. Adjust callers.
20635 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20636 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20637
20638 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20639 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20640 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20641 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20642 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20643 Use them.
20644
20645 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20646 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20647 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20648
206492007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20650
20651 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20652 loaded by default.
20653
206542007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20655
20656 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20657 on this tty.
20658 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20659
20660 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20661 Update all users.
20662 (handle_one_term_event): Use Gpm_DrawPointer.
20663 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20664 Signal errors instead of returning nil. Always return nil.
20665 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20666 Make it a noop if gpm-mouse was not activated.
20667 (syms_of_term): Update names.
20668
206692007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20670
20671 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20672 (init_sys_modes): Check that gpm_tty is the current tty.
20673
20674 * alloc.c (allocate_terminal): Set the vector size to only count the
20675 lisp fields. Initialize those to nil.
20676 (mark_object): Don't treat terminals specially.
20677 (mark_terminal): Remove.
20678 (mark_terminals): Use mark_object instead.
20679
20680 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20681 the GC to the beginning.
20682
20683 * indent.h:
20684 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20685
20686 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20687
206882007-09-25 Jason Rumney <jasonr@gnu.org>
20689
20690 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20691
20692 * w32console.c (create_w32cons_output): Remove.
20693
20694 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20695
20696 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20697 (reset_sys_modes): Use reset_terminal_modes_hook.
20698
206992007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20700
20701 * eval.c (do_autoload): Don't output any message.
20702
207032007-09-24 Juri Linkov <juri@jurta.org>
20704
20705 * emacs.c (standard_args): Change priority of "--no-splash"
20706 from 40 to 3. Add "--no-desktop" with the same priority.
20707
207082007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20709
20710 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20711 and optimize the case where they are all 1.
20712
207132007-09-23 Johannes Weiner <hannes@saeurebad.de>
20714
20715 * lisp.h (abs): Define if not defined.
20716 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20717 Don't define `abs', since it's defined in lisp.h.
20718
207192007-09-22 Eli Zaretskii <eliz@gnu.org>
20720
20721 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20722 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20723 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20724 (init_tty): Use DEV_TTY instead of "/dev/tty".
20725 [WINDOWSNT]: No need to protect from NAME arg being null.
20726
207272007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20728
20729 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20730 up the tty state.
20731
207322007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20733
20734 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20735 (gpm_tty): Change its type.
20736 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20737 (gpm_tty): Change its type and initialize it.
20738 (Fterm_open_connection): Check the frame is indeed a tty.
20739 Use the new gpm_tty.
20740 (Fterm_close_connection): Use the new gpm_tty.
20741 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20742 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20743
207442007-09-21 Juanma Barranquero <lekktu@gmail.com>
20745
20746 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20747 underline_color, to draw strike-through.
20748
207492007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20750
20751 * lisp.h (allocate_terminal): Declare.
20752
20753 * window.c (candidate_window_p): Consider frames that are being placed
20754 by the user as somewhere between visible and iconified.
20755 (window_loop): Prefer windows on the current frame.
20756 (Fselect_window): Move the use of select-frame to the beginning so we
20757 can just delegate all the work (it'll call us back anyway).
20758
20759 * frame.c (Qdisplay_environment_variable):
20760 * frame.h (Qdisplay_environment_variable): Delete.
20761
20762 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20763 of the first arg, since that value may be a union.
20764
20765 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20766 parameter rather than Qdisplay_environment_variable. If all else
20767 fails, look for DISPLAY in initial-environment.
20768
207692007-09-21 Glenn Morris <rgm@gnu.org>
20770
20771 * Makefile.in (emacstool): Remove target.
20772 (lisp, shortlisp): Remove termdev.elc.
20773
207742007-09-21 Markus Triska <markus.triska@gmx.at>
20775
20776 * xterm.c (x_delete_display): Compile session management conditionally.
20777
207782007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20779
20780 * callproc.c (getenv_internal_1): New function.
20781 (getenv_internal): Use it.
20782 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20783
20784 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20785 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20786 (Fset_terminal_parameter): Work with dead terminals as well.
20787 (Fmodify_terminal_parameters): Remove.
20788
20789 * terminal.c (get_terminal): Handle terminals.
20790 Make sure the terminal returned is live.
20791 (create_terminal): Use allocate_terminal.
20792 (mark_terminals): Move to alloc.c.
20793 (delete_terminal): Use terminal->name as liveness status.
20794 NULL out fields after freeing their contents.
20795 Don't deallocate the object.
20796 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20797 rather than an int.
20798 (Fterminal_live_p): Accept non-integer arguments.
20799 (Fterminal_list): Return terminal objects rather than an ints.
20800
20801 * alloc.c (enum mem_type): New member for `terminal' objects.
20802 (allocate_terminal): New function.
20803 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20804 Handle terminals.
20805 (mark_terminal): New fun.
20806 (mark_terminals): Move from terminal.c.
20807
20808 * term.c (get_tty_terminal): Don't treat output_initial specially.
20809 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20810 (delete_tty): Use terminal->name as liveness status.
20811
20812 * termhooks.h (struct terminal): Make it into a pseudovector.
20813 Remove `deleted' replaced by checking `name's nullness.
20814
20815 * print.c (print_object): Handle terminals.
20816
20817 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20818 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20819
20820 * frame.c (make_terminal_frame):
20821 * keyboard.c (tty_read_avail_input):
20822 * w32term.c (x_delete_terminal):
20823 * xfns.c (Fx_create_frame, x_create_tip_frame):
20824 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20825
208262007-09-20 Glenn Morris <rgm@gnu.org>
20827
20828 * process.c (Fmake_network_process): Doc fix.
20829
208302007-09-19 Jason Rumney <jasonr@gnu.org>
20831
20832 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20833
208342007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20835
20836 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20837 Fix a C warning regarding variable constness.
20838
20839 * xterm.c (handle_one_xevent): Fix a C warning.
20840
208412007-09-18 Jason Rumney <jasonr@gnu.org>
20842
20843 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20844
208452007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20846
20847 * gtkutil.c (gdpy_def): New variable.
20848 (xg_initialize): Initialize gdpy_def.
20849 (xg_display_close): If no other display exists, set gdpy_def to a
20850 new connection.
20851
208522007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20853
20854 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20855 when we have no file name for the icon.
20856 (xg_tool_bar_expose_callback): Remove.
20857 (xg_create_tool_bar): Don't connect expose signal to
20858 xg_tool_bar_expose_callback.
20859 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20860
208612007-09-16 Andreas Schwab <schwab@suse.de>
20862
20863 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20864 values instead of zapping them.
20865
208662007-09-14 Glenn Morris <rgm@gnu.org>
20867
20868 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20869 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20870 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20871 scope and rename to omfib_buffer for clarity.
20872 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20873
208742007-09-14 Kenichi Handa <handa@m17n.org>
20875
20876 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20877
208782007-09-13 Jason Rumney <jasonr@gnu.org>
20879
20880 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20881
20882 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20883
20884 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20885 (mac_term_init): Call here instead, passing rif.
20886
208872007-09-13 Glenn Morris <rgm@gnu.org>
20888
20889 * s/hpux.h: No longer define `static' as nothing.
20890
208912007-09-13 Johan Bockgård <bojohan@gnu.org>
20892
20893 * callint.c (Fcall_interactively): Remove unused var `fun'.
20894
208952007-09-12 Romain Francoise <romain@orebokech.com>
20896
20897 * window.c (prefer_window_split_horizontally, display_buffer):
20898 Revert 2007-09-08 change.
20899
209002007-09-12 Glenn Morris <rgm@gnu.org>
20901
20902 * alloca.c: Remove file.
20903 * Makefile.in (alloca): Do not undef.
20904 (allocaobj, alloca.o): Remove.
20905 (otherobj): Remove allocaobj.
20906 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20907 * regex.c (C_ALLOCA): Remove all references and code that was only
20908 used when this was defined.
20909 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20910 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20911 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20912
20913 * Makefile.in (SOURCES, unlock, relock): Delete.
20914
20915 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20916 (menu_grab_callback): All uses changed.
20917
20918 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20919 (x_reply_selection_request): All uses changed.
20920
209212007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20922
20923 * lread.c (load_warn_old_style_backquotes): Change message to look
20924 better when it appears in the middle of byte-compiler messages.
20925
209262007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20927
20928 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20929
20930 * xterm.c (x_create_terminal): Add comment.
20931
20932 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20933
209342007-09-10 Richard Stallman <rms@gnu.org>
20935
20936 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20937
209382007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20939
20940 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20941 (DEFUN): Document `intspec', use it instead of `prompt'.
20942
20943 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20944
20945 * data.c (Finteractive_form): If the interactive specification starts
20946 with a `(', use it as a Lisp form.
20947
20948 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20949 name and file modes.
20950
20951 * callint.c (Fcall_interactively): Comment fixes.
20952
209532007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20954
20955 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20956 and compiled functions.
20957
209582007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20959
20960 * window.c (prefer_window_split_horizontally): New variable.
20961 (display_buffer): Consider splitting window horizontally depending
20962 on prefer_window_split_horizontally.
20963
209642007-09-08 Eli Zaretskii <eliz@gnu.org>
20965
20966 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20967
209682007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20969
20970 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20971
20972 * frame.c (x_set_frame_parameters): Check number is positive before
20973 using XFASTINT.
20974
20975 * window.c (freeze_window_start): Don't presume selected_window holds
20976 a window object.
20977 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20978
209792007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20980
20981 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20982
209832007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20984
20985 * window.c (Vsplit_window_preferred_function): New var.
20986 (Fdisplay_buffer): Use it.
20987 (syms_of_window): Export, and initialize it.
20988
209892007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20990
20991 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20992
209932007-09-06 Glenn Morris <rgm@gnu.org>
20994
20995 * gtkutil.c (menu_grab_callback) <cnt>:
20996 * xselect.c (x_reply_selection_request) <cnt>: Move static
20997 variable to file scope.
20998
209992007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
21000
21001 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
21002 consistent values of selected_frame and selected_window.
21003
210042007-09-04 Jason Rumney <jasonr@gnu.org>
21005
21006 * w32console.c (initialize_w32_display): Zero unused hooks.
21007
210082007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21009
21010 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
21011 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
21012
210132007-09-04 Jason Rumney <jasonr@gnu.org>
21014
21015 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
21016 in w32console.c. Set up input. Remove XXX comments that have been
21017 confirmed as correct.
21018
21019 * s/ms-w32.h (MULTI_KBOARD): Define.
21020
21021 * w32console.c (one_and_only_w32cons): Remove.
21022 (initialize_w32_display): Take terminal argument.
21023
21024 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
21025 initialize_w32_display.
21026 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
21027
21028 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
21029
21030 * keyboard.c (discard_mouse_events): Discard it.
21031 (make_lispy_event): Translate it to a lisp event.
21032 (lispy_wheel_names): Add wheel-left and right events.
21033 (syms_of_keyboard): Enlarge wheel_syms.
21034
21035 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
21036 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
21037
21038 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
21039
21040 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
21041 from WM_MOUSEHWHEEL.
21042 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
21043
21044 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
21045 terminal.
21046
21047 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
21048 keyboard for the terminal.
21049
210502007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21051
21052 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
21053 (Vresume_tty_hook): Rename from Vresume_tty_functions.
21054 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
21055 and resume-tty-function to resume-tty-hook.
21056 (Fsuspend_tty, Fresume_tty): Use new names.
21057
210582007-09-02 Jan Djärv <jan.h.d@swipnet.se>
21059
21060 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
21061 if it starts with "n:".
21062
210632007-08-31 Jan Djärv <jan.h.d@swipnet.se>
21064
21065 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
21066
210672007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
21068
21069 * frame.h:
21070 * frame.c (Qterm_environment_variable): Remove.
21071 (syms_of_frame): Don't init and staticpro it.
21072
21073 * callproc.c (getenv_internal): Remove special case for $TERM.
21074
21075 * callproc.c (Vinitial_environment): New variable.
21076 (set_initial_environment): Initialize it.
21077 (syms_of_callproc): Declare it.
21078 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
21079 TERM under which a process runs is never related to the TERM in which
21080 Emacs is running.
21081
210822007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21083
21084 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
21085 * s/darwin.h: ... do it here.
21086
210872007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
21088
21089 * lisp.h (set_initial_environment): Rename from set_global_environment.
21090
21091 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
21092 removed by mistake on the multi-tty branch.
21093
21094 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
21095 (Fmodify_frame_parameters): Return a value.
21096
21097 * image.c (png_load): Comment-out var only used in commented-out code.
21098
21099 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
21100 before passing it to mark_object.
21101
21102 * xfaces.c (internal_resolve_face_name): Return a value.
21103 (internal_resolve_face_name, resolve_face_name_error): Comment out.
21104
21105 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
21106 (x_icon): Comment-out var only used in commented-out code.
21107
211082007-08-29 Romain Francoise <romain@orebokech.com>
21109
21110 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
21111 QUIT hasn't been provided.
21112
211132007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21114
21115 * callproc.c (child_setup, getenv_internal): Use the
21116 display-environment-variable and term-environment-variable frame params.
21117 (set_initial_environment): Initialise Vprocess_environment.
21118
21119 * config.in: Disable multi-keyboard support on a mac.
21120
21121 * frame.c (Qterm_environment_variable)
21122 (Qdisplay_environment_variable): New variables.
21123 (syms_of_frame): Intern and staticpro them.
21124 (Fmake_terminal_frame): Disable output method test.
21125
21126 * frame.h: Declare them here.
21127
21128 * macfns.c (x_set_mouse_color): Get rif from the frame.
21129 (x_set_tool_bar_lines): Don't use updating_frame.
21130 (mac_window): Add 2 new parameters for consistency with other systems.
21131 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
21132 frame parameters following what is done in X11 and w32. Don't use
21133 FRAME_MAC_DISPLAY_INFO.
21134 (Fx_open_connection, start_hourglass): Remove window-system check.
21135 (x_create_tip_frame): Get the keyboard from the terminal.
21136
21137 * macmenu.c: Reorder includes.
21138 (Fx_popup_menu): Use terminal specific mouse_position_hook.
21139
21140 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
21141 terminal parameter.
21142 (x_clear_frame): Add a frame parameter.
21143 (note_mouse_movement): Get rif from the frame.
21144 (mac_term_init): Initialize the terminal.
21145 (mac_initialize): Make static and move terminal initialization ...
21146 (mac_create_terminal): ... to this new function.
21147
21148 * macterm.h (struct mac_display_info): Add terminal.
21149 (mac_initialize): Delete declaration.
21150
21151 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
21152
21153 * sysdep.c: Comment out text after #endif.
21154
21155 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
21156 is defined. Better initialize ttys in windows. Use terminal
21157 specific mouse_position_hook.
21158
21159 * termhooks.h (union display_info): Add mac_display_info.
21160
21161 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
21162 Set the default minibuffer frame, window_system and the rest of the
21163 frame parameters following what is done in X11.
21164
21165 * w32term.c (w32_initialize): Make static.
21166
21167 * xselect.c (x_handle_selection_clear): Only access
21168 terminal->kboard when MULTI_KBOARD is defined.
21169
21170 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
21171 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
21172
211732007-08-29 Jason Rumney <jasonr@gnu.org>
21174
21175 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
21176 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
21177
21178 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
21179 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
21180
21181 * keyboard.c (restore_kboard_configuration): Only define when
21182 MULTI_KBOARD defined.
21183
21184 * makefile.w32-in: Update dependancies from Makefile.in.
21185 (OBJ1): Add terminal.$(O)
21186
21187 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
21188 Don't define function body.
21189 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
21190
21191 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
21192
21193 * w32.c (request_sigio, unrequest_sigio): Remove.
21194
21195 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
21196 (w32con_clear_frame, w32con_clear_end_of_line)
21197 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
21198 (w32con_delete_glyphs, w32con_set_terminal_window)
21199 (scroll_line, w32_sys_ring_bell): Add frame arg.
21200 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
21201 Add terminal arg.
21202 (PICK_FRAME): Remove.
21203 (w32con_write_glyphs): Use frame specific terminal coding.
21204 (one_and_only_w32cons): New global variable.
21205 (initialize_w32_display): Use it for storing hooks.
21206 (create_w32cons_output): New function.
21207
21208 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
21209 arg a frame.
21210
21211 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
21212 Set window_system.
21213 (x_set_tool_bar_lines): Don't use updating_frame.
21214 (Fx_create_frame): Set terminal and ref count.
21215 (Fx_open_connection): Remove window-system check.
21216
21217 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
21218
21219 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
21220 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
21221 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
21222 Add frame arg.
21223 (x_delete_terminal, w32_create_terminal): New functions.
21224 (w32_term_init): Create a terminal.
21225 (w32_initialize): Move terminal specific initialization to
21226 w32_create_terminal.
21227
21228 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
21229 (w32_clear_rect, w32_clear_area): Use background from frame.
21230 (w32_display_info): Add terminal.
21231 (w32_sys_ring_bell, x_delete_display): Declare here.
21232
21233 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
21234
21235 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
21236
212372007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
21238
21239 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
21240 Fix get_named_tty calls for the controlling tty.
21241
212422007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
21243
194d44e7 21244 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
21245
212462007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
21247
21248 * term.c (tty_insert_glyphs): Add missing first parameter.
21249
212502007-08-29 Károly Lőrentey <karoly@lorentey.hu>
21251
21252 * buffer.c (Fbuffer_list, Fbury_buffer):
21253 Take frame->buried_buffer_list into account.
21254
21255 * cm.c (current_tty): New variable, for cmputc().
21256 (cmputc): Use it.
21257 (cmcheckmagic): Add tty parameter, look up terminal streams there.
21258 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
21259 (cmgoto): Add tty parameter. Pass it on to calccost().
21260 Use emacs_tputs() instead of tputs().
21261
21262 * cm.h (emacs_tputs): New macro to set current_tty, and then call
21263 tputs().
21264 (current_tty): New variable, for cmputc().
21265 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
21266
21267 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
21268 (internal_condition_case, internal_condition_case_1)
21269 (internal_condition_case_2): Don't abort when x_catching_errors.
21270
21271 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
21272 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
21273 prevent crashes caused by bogus longjmps in read_char.
21274
21275 * keymap.h (Fset_keymap_parent): Add EXFUN.
21276
21277 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
21278 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21279 Remove redundant definition.
21280
21281 * macfns.c (x_set_mouse_color, x_make_gc):
21282 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21283
21284 * w32term.c (x_free_frame_resources):
21285 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21286 (w32_initialize): Use the accessor macros for terminal characteristics.
21287
21288 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
21289 Use the accessor macros for terminal characteristics.
21290 * msdos.c (internal_terminal_init): Use the accessor macros for
21291 terminal characteristics.
21292 (ScreenVisualBell, internal_terminal_init):
21293 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21294
21295 * termopts.h (no_redraw_on_reenter): Declare.
21296
21297 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
21298 (mark_terminals, mark_ttys): Declare.
21299 (Fgarbage_collect): Call them.
21300 (mark_object): Mark buried_buffer_list.
21301
21302 * prefix-args.c: Include stdlib.h for exit.
21303
21304 * syssignal.h: Add comment.
21305
21306 * indent.c: Include stdio.h.
21307
21308 * window.h (Vinitial_window_system): Declare.
21309 (Vwindow_system): Delete declaration.
21310
21311 * fontset.c (Finternal_char_font): Use FRAME_RIF.
21312
21313 * image.c (lookup_image): Don't initialize `c' until the xasserts
21314 have been run.
21315
21316 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
21317 FRAME_FOREGROUND_PIXEL.
21318
21319 * print.c (print_preprocess): Don't lose print_depth levels while
21320 iterating.
21321
21322 * widget.c (update_from_various_frame_slots):
21323 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21324
21325 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
21326 frames.
21327 (window_internal_height): Remove bogus make_number call.
21328 (init_window_once): Call make_terminal_frame with two zero parameters.
21329
21330 * fileio.c (Fread_file_name): Update comment.
21331
21332 * callint.c (Fcall_interactively):
21333 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
21334 Make sure it is correctly unwound.
21335
21336 * xsmfns.c (x_session_close): New function.
21337
21338 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
21339 Delete declarations.
21340
21341 * xterm.h: Remove declaration for x_fully_uncatch_errors.
21342 (x_output): Remove background_pixel and foreground_pixel fields.
21343 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
21344 (x_delete_device, x_session_close): Declare.
21345
21346 * lread.c: Include setjmp.h. Update declaration of `read_char'.
21347 (read_filtered_event): Call `read_char' with a local
21348 `wrong_kboard_jmpbuf'.
21349
21350 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
21351 Don't call single_kboard_state. Use FRAME_RIF.
21352
21353 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
21354 systems.
21355
21356 * lisp.h (set_process_environment): Rename to `set_global_environment'.
21357 (Fframe_with_environment, Fset_input_meta_mode)
21358 (Fset_quit_char): EXFUN.
21359 (x_create_device, tty_output, terminal, tty_display_info): Declare.
21360 (init_sys_modes, reset_sys_modes): Update prototypes.
21361 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
21362
21363 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
21364 Vlocal_key_translation_map, and Vkeyboard_translate_table.
21365 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
21366 Delete declarations.
21367 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
21368 (temporarily_switch_to_single_kboard, tty_read_avail_input):
21369 New declarations.
21370
21371 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
21372 already does that during init_display(). Call syms_of_keymap
21373 before syms_of_keyboard. Call `syms_of_terminal'.
21374 Call set_initial_environment, not set_process_environment.
21375 (shut_down_emacs): Call reset_all_sys_modes() instead of
21376 reset_sys_modes().
21377
21378 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
21379 (internal_resolve_face_name, resolve_face_name_error): New functions.
21380 (resolve_face_name): Protect against loops and errors thrown by Fget.
21381 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
21382 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
21383
21384 * scroll.c: Replace CURTTY() with local variables throughout the
21385 file (where applicable).
21386 (calculate_scrolling, calculate_direct_scrolling)
21387 (scrolling_1, scroll_cost): Use the accessor macros for terminal
21388 characteristics.
21389
21390 * keymap.c (Vfunction_key_map): Remove.
21391 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
21392 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
21393 (Vkey_translation_map): Remove.
21394 (syms_of_keymap): Remove DEFVAR for key-translation-map.
21395 (Fdescribe_buffer_bindings)
21396 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
21397 Update for terminal-local key-translation-map.
21398
21399 * Makefile.in (callproc.o): Update dependencies.
21400 (lisp, shortlisp): Add termdev.elc.
21401 (obj): Add terminal.o.
21402 (terminal.o): Add dependencies.
21403 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
21404 (data.o, fns.o): Add termhooks.h dependency.
21405 (SOME_MACHINE_LISP): Add dnd.elc.
21406 (minibuf.o): Fix typo.
21407 Update dependencies.
21408
21409 * data.c (do_symval_forwarding, store_symval_forwarding)
21410 (find_symbol_value): Use the selected frame's keyboard, not
21411 current_kboard.
21412
21413 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
21414 Vwindow_system.
21415
21416 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
21417 Fmenu_bar_open.
21418 (syms_of_xmenu): Update defsubr.
21419 (mouse_position_for_popup, Fx_popup_menu)
21420 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
21421 (set_frame_menubar, free_frame_menubar)
b97439ce 21422 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
21423 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
21424 an X frame.
21425
21426 * xselect.c (x_own_selection): Abort if not an X frame.
21427 (some_frame_on_display): Check if it is an X frame.
21428 (x_handle_selection_clear): Deal with MULTI_KBOARD.
21429
21430 * coding.c: Include frame.h and termhooks.h.
21431 (terminal_coding, keyboard_coding): Delete.
21432 (Fset_terminal_coding_system_internal)
21433 (Fset_keyboard_coding_system_internal)
21434 (Fkeyboard_coding_system)
21435 (Fterminal_coding_system): Add a terminal parameter.
21436 Get terminal_coding from the terminal.
21437 (init_coding_once): Don't call setup_coding_system here.
21438
21439 * dispextern.h (set_scroll_region, turn_off_insert)
21440 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
21441 (tty_clear_end_of_line, tty_setup_colors)
21442 (delete_tty, updating_frame)
21443 (produce_special_glyphs, produce_glyphs, write_glyphs)
21444 (insert_glyphs): Remove.
21445 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
21446 (tty_turn_off_highlight, get_tty_size): Add declaration.
21447 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
21448
21449 * frame.h (enum output_method): Add output_initial.
21450 (struct x_output): Delete.
21451 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21452 Access foreground_pixel and background_pixel directly from the frame.
21453 (tty_display): Delete.
21454 (struct frame): Add buried_buffer_list, foreground_pixel,
21455 background_pixel and terminal. Delete kboard.
21456 (union output_data): Add tty.
21457 (FRAME_KBOARD): Get the kboard from the terminal.
21458 (FRAME_INITIAL_P): New macro.
21459 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
21460 (Qterm_environment_variable, Qdisplay_environment_variable)
21461 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
21462 New declarations.
21463
21464 * termchar.h (tty_output, tty_display_info): New structures.
21465 (tty_list): Declare.
21466 (FRAME_TTY, CURTTY): New macros.
21467 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
21468 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
21469 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
21470 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
21471
21472 * callproc.c: Include frame.h and termhooks.h, for terminal
21473 parameters.
21474 (add_env): New function.
21475 (child_setup): Use it.
21476 (child_setup, getenv_internal): Handle the new Vprocess_environment.
21477 (getenv_internal): Fix get_terminal_param call.
21478 (Fgetenv_internal, egetenv): Update doc.
21479 (syms_of_callproc): Initialize Vprocess_environment to nil.
21480 Register and initialize them. Remove obsolete defvars. Update doc
21481 strings.
21482 (child_setup): Handle Vlocal_environment_variables.
21483 (getenv_internal): Add terminal parameter.
21484 Handle Vlocal_environment_variables.
21485 (Fgetenv_internal): Add terminal parameter.
21486 (child_setup, getenv_internal, Fgetenv_internal): Store the local
21487 environment in a frame (not terminal) parameter. Update doc strings.
21488 (set_initial_environment): Rename from set_global_environment.
21489 Store Emacs environment in initial frame parameter.
21490
21491 * xdisp.c (redisplay_internal): Update references to
21492 `previous_terminal_frame'.
21493 (display_mode_line, Fformat_mode_line): Replace calls to
21494 `push_frame_kboard' with `push_kboard'.
21495 (get_glyph_string_clip_rects): Add extra parentheses and
21496 braces to prevent compiler warnings.
21497 (calc_pixel_width_or_height): Add xassert to check that the
21498 frame is alive. Don't call `lookup_image' on a termcap frame.
21499 (message2_nolog, message3_nolog, redisplay_internal)
21500 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
21501 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
21502 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
21503 (Fx_display_pixel_width, Fx_display_pixel_height)
21504 (Fx_display_planes, Fx_display_color_cells)
21505 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
21506 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
21507 (Fx_display_backing_store, Fx_display_visual_class)
21508 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
21509 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
21510
21511 * xfns.c (x_set_foreground_color x_set_background_color)
21512 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
21513 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21514 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
21515 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
21516 terminal that is being deleted.
21517 (Fx_create_frame): Use `store_frame_param' to set `window-system'
21518 frame parameter, and make sure it overrides any user-supplied setting.
21519 (Fx_close_connection, Fx_synchronize): Unify argument names with
21520 the rest of the DEFUNs.
21521
21522 * dispnew.c (Fsend_string_to_terminal): Update call to
21523 `get_tty_terminal'.
21524 (Fredraw_frame, Fsend_string_to_terminal)
21525 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
21526 FRAME_TERMCAP_P and FRAME_TTY.
21527 (window_change_signal): Don't believe width/height values that are
21528 impossibly small.
21529 (Vinitial_window_system): Rename from Vwindow_system.
21530 (termscript, Wcm, rif): Delete.
21531
21532 * termhooks.h (struct terminal): New struct containing the
21533 previously global text display hooks and new members NAME,
21534 DELETED and PARAM_ALIST.
21535 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
21536 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
21537 (FRAME_RIF): New macros.
21538 (get_terminal_param, get_device): New declarations.
21539 (termscript): Delete declaration.
21540
21541 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
21542 (XTflash, x_free_frame_resources, x_scroll_bar_create)
21543 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
21544 FRAME_FOREGROUND_PIXEL.
21545 (x_fully_uncatch_errors): Disable definition.
21546 (x_scroll_bar_expose): Fix reference to foreground pixel.
21547 (XTread_socket): Disable loop on all X displays.
21548 (x_delete_terminal): Don't set terminal->deleted and let
21549 delete_terminal delete the frames on the terminal.
21550 (x_delete_display): Doc update to reflect changes in
21551 delete_terminal.
21552 (x_display_info) <terminal>: Move member earlier in the struct.
21553 (deleting_tty): Remove old variable.
21554 (Fsuspend_tty): Call clear_tty_hooks.
21555 (Fresume_tty, init_tty): Call set_tty_hooks.
21556 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21557 errors on X frames.
21558 (x_catch_errors_unwind): Abort if x_error_message is NULL.
21559 (handle_one_xevent): Initialize `f' to NULL.
21560 (x_delete_terminal, x_create_terminal): New functions.
21561 (XTset_terminal_modes, XTreset_terminal_modes)
21562 (XTread_socket, x_connection_closed, x_term_init)
21563 (x_term_init, x_delete_display): Add terminal parameter.
21564 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21565 X connections.
21566
21567 * frame.c: Include termchar.h.
21568 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21569 (Qwindow_system, Qenvironment, Qterm_environment_variable)
21570 (Qdisplay_environment_variable): New vars.
21571 (Fframep): Deal with output_initial.
21572 (Fframe-live-p): Doc fix.
21573 (Fwindow-system): New function.
21574 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21575 (make_terminal_frame): Don't create frames on a terminal that is
21576 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21577 (store_frame_param): Check for found_for_frame before calling XFRAME.
21578 (Fmake_terminal_frame): Handle NULL tty names correctly.
21579 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21580 (Fdelete_frame): Remove unused variable `count'. Don't allow other
21581 frames to refer to a deleted frame in their 'environment parameter.
21582 (Fframe_with_environment): New function.
21583 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
21584 (get_future_frame_param): New function.
21585 (Fmake_terminal_frame): Use it.
21586 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21587
21588 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21589 * sysdep.c (reset_sys_modes): Update for renames.
21590
21591 * keyboard.c (tty_read_avail_input): New function.
21592 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
21593 (syms_of_keyboard): Defsubr them.
21594 (Fset_input_meta_mode, Fset_quit_char): New functions.
21595 (Fset_input_mode): Split to above functions.
21596 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21597 parameter. Use it in call to `read_char'.
21598 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
21599 Set wrong_kboard_jmpbuf correctly in recursive calls.
21600 Use current_kboard to access Vkeyboard_translate_table.
21601 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21602 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21603 Update longjmp invocations. Remember the original current_kboard,
21604 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21605 changes it. Comment out unnecessary calls to
21606 `record_single_kboard_state' and `any_kboard_state'.
21607 Update recursive calls.
21608 (wrong_kboard_jmpbuf): Remove global variable.
21609 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21610 Handle deleted interrupted_kboards correctly; that is a legal
21611 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21612 and read_char calls. Abort if interrupted_kboard died in read_char.
21613 (any_kboard_state, single_kboard_state)
21614 (push_frame_kboard): Remove function.
21615 (pop_kboard): Switch out of single_kboard mode if the kboard has
21616 been deleted. Remove unused variable. Help debugging by not
21617 changing current_kboard unnecessarily. Set current_kboard to the
21618 kboard of the selected frame when the stored kboard object has
21619 been deleted before pop_kboard.
21620 (temporarily_switch_to_single_kboard): Change first parameter to a
21621 frame pointer. Throw an error when caller wants to change kboards
21622 while in single_kboard mode. Don't push_kboard if we weren't in
21623 single kboard state. Don't pop_kboard if we popped into any
21624 kboard state.
21625 (restore_kboard_configuration): Abort if pop_kboard changed the
21626 kboard in single_kboard mode. Call pop_kboard only after setting
21627 up single_kboard mode.
21628 (Frecursive_edit): Switch to single_kboard mode only in nested
21629 command loops.
21630 (cmd_error, command_loop, command_loop_1, timer_check):
21631 Comment out unnecessary call to `any_kboard_state' and
21632 `record_single_kboard_state'.
21633 (delete_kboard): Exit single_kboard mode if we have just deleted
21634 that kboard. Use FRAME_KBOARD.
21635 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21636 `fatal_error_signal'.
21637 (record_single_kboard_state): Don't push_kboard if we weren't in
21638 single kboard state. Don't pop_kboard if we popped into any
21639 kboard state.
21640 (push_frame_kboard): Rename to push_kboard.
21641 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21642 (read_avail_input): Read input from all terminals.
21643 (mark_kboards): Also mark Vkeyboard_translate_table.
21644 (kbd_buffer_store_event_hold): Simplify condition.
21645 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21646 (Vkeyboard_translate_table): Move to struct kboard.
21647 (init_kboard): Initialize Vkeyboard_translate_table.
21648 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21649 Vkeyboard_translate_table. Update doc strings. Update docs of
21650 local-function-key-map and function-key-map.
21651
21652 * terminal.c: New file.
21653
21654 * term.c: Include errno.h.
21655 (Vring_bell_function, device_list, initial_device)
21656 (next_device_id, ring_bell, update_begin, update_end)
21657 (set_terminal_window, cursor_to, raw_cursor_to)
21658 (clear_to_end, clear_frame, clear_end_of_line)
21659 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21660 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21661 (syms_of_term): Move their initialization to terminal.c.
21662 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21663 (Ftty_display_color_cells)
21664 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21665 (clear_tty_hooks, set_tty_hooks)
21666 (init_tty, maybe_fatal): New functions.
21667 (Ftty_type): Return nil if terminal is not on a tty instead of
21668 throwing an error. Doc update.
21669 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21670 Doc update. Initialize new subrs and variables.
21671 (delete_tty): Use terminal->deleted.
21672 (tty_set_terminal_modes): Rename from set_terminal_modes.
21673 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21674 (set_scroll_region): Rename to `tty_set_scroll_region'.
21675 (turn_on_insert): Rename to `tty_turn_on_insert'.
21676 (turn_off_insert): Rename to `tty_turn_off_insert'.
21677 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21678 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21679 (toggle_highligh): Rename to `tty_toggle_highlight'.
21680 (background_highlight): Rename to `tty_background_highlight'.
21681 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21682 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21683 (tty_set_scroll_region, tty_background_highlight)
21684 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21685 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21686 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21687 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21688 Add static modifier.
21689 (tty_reset_terminal_modes, tty_set_terminal_window)
21690 (tty_set_scroll_region, tty_background_highlight)
21691 (tty_highlight_if_desired, tty_cursor_to)
21692 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21693 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21694 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21695 renames.
21696
216972007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21698
21699 * keyboard.c: Qrtl is new.
21700 (parse_tool_bar_item): Handle :rtl keyword.
21701 (syms_of_keyboard): Intern :rtl keyword.
21702
21703 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21704
21705 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21706 so no Lisp code is executed.
21707 (file_for_image, find_rtl_image): New functions.
21708 (xg_get_image_for_pixmap): Use file_for_image.
21709 (update_frame_tool_bar): If direction is RTL, use RTL image if
21710 defined. Use Gtk stock images if defined.
21711
217122007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21713
21714 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21715 for nonexistent or zero-width glyph in composition glyph.
21716
217172007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21718
21719 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21720
21721 * xdisp.c (Finvisible_p): New function.
21722 (syms_of_xdisp): defsubr it.
21723
217242007-08-24 Juanma Barranquero <lekktu@gmail.com>
21725
21726 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21727 Doc fixes.
21728
217292007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21730
21731 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21732
217332007-08-24 Martin Rudalics <rudalics@gmx.at>
21734
21735 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21736 whether decoding has modified buffer contents.
21737
217382007-08-24 Jason Rumney <jasonr@gnu.org>
21739
21740 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21741 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21742 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21743 (init_svg_functions) [HAVE_NTGUI]: New function.
21744 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21745 (svg_load_image): Use them.
21746 (svg_load_image) [HAVE_NTGUI]: Implement background.
21747
217482007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21749
21750 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21751 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21752 (LIBX): Remove @RSVG_LIBS@.
21753 (LIBES): Add $(RSVG_LIBS).
21754
21755 * image.c (svg_load_image): Blend with specified background if exists.
21756 Use IMAGE_BACKGROUND. Add Mac OS Support.
21757
21758 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21759 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21760 Remove macros.
21761 [MAC_OSX] (socket_callback): Do nothing.
21762 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21763 ReceiveNextEvent.
21764 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21765 socket_callback.
21766 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21767
217682007-08-22 Glenn Morris <rgm@gnu.org>
21769
21770 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21771
217722007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21773
21774 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21775
21776 * image.c: Add support for SVG images. Some additional comments
21777 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21778 (svg_image_p): New function to test for SVG image.
21779 (svg_load): New function to load SVG image.
21780 (svg_load_image): New function, helper for svg_load.
21781 (Qsvg): New Lisp_object.
21782 (svg_keyword_index): New enum.
21783 (svg_format): New static `image_keyword' struct.
21784 (svg_type): New static `image_type' struct.
21785 (librsvg/rsvg.h): Include it.
21786
217872007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21788
21789 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21790
217912007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21792
21793 * lread.c (Qold_style_backquotes): New var.
21794 (syms_of_lread): Init and staticpro it.
21795 (load_warn_old_style_backquotes): New fun.
21796 (Fload): Use them to warn about old style backquotes.
21797 (end_of_file_error, Fload): Remove unused vars.
21798
21799 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21800
21801 * lread.c (Vold_style_backquotes): New var.
21802 (syms_of_lread): Init and export it to Elisp.
21803 (read1): Set it when we find an old-style (back)quote.
21804
218052007-08-22 Jason Rumney <jasonr@gnu.org>
21806
21807 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21808
218092007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21810
21811 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21812
218132007-08-19 Richard Stallman <rms@gnu.org>
21814
21815 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21816
218172007-08-19 Andreas Schwab <schwab@suse.de>
21818
21819 * alloc.c (pure): Round PURESIZE up.
21820
218212007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21822
21823 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21824 active frame.
21825
218262007-08-16 Richard Stallman <rms@gnu.org>
21827
21828 * eval.c (Fcommandp): Add parens to clarify.
21829
21830 * minibuf.c (Fall_completions): Use enum for type of table.
21831
21832 * emacs.c (USAGE2): Improve text.
21833
218342007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21835
21836 * term.c (tty_default_color_capabilities): Declare static
21837 variables in file scope, to avoid HPUX compiler problem.
21838
218392007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21840
21841 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21842 to gtk_toolbar_insert.
21843
218442007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21845
21846 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21847
21848 * insdel.c (reset_var_on_error): New fun.
21849 (signal_before_change, signal_after_change):
21850 Use it to reset (after|before)-change-functions to nil in case of error.
21851 Bind inhibit-modification-hooks to t.
21852 Don't bind (after|before)-change-functions to nil while they run.
21853
218542007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21855
21856 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21857 filling pixmap with stippled background.
21858
218592007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21860
21861 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21862 Don't use invisible frame as parent window for repositioning.
21863
218642007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21865
21866 * print.c (new_backquote_output): Rename from old_backquote_output.
21867 (print): Inverse its logic (according to its name) so as to match the
21868 behavior of new_backquote_flag in lread.c.
21869
218702007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21871
21872 * gmalloc.c (posix_memalign): New function.
21873
21874 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21875 ActivateControl/DeactivateControl here.
21876 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21877 frame-notice-user-settings is non-nil.
21878 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21879 for kEventParamFMFontStyle.
21880 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21881 mac_pass_command_to_system and mac_pass_control_to_system here.
21882 (XTread_socket): Call ActivateControl/DeactivateControl here.
21883 (XTread_socket) [TARGET_API_MAC_CARBON]:
21884 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21885 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21886 for window repositioning.
21887
218882007-08-08 Glenn Morris <rgm@gnu.org>
21889
21890 * Replace `iff' in doc-strings and comments.
21891
218922007-08-07 Chong Yidong <cyd@stupidchicken.com>
21893
21894 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21895
218962007-08-07 Martin Rudalics <rudalics@gmx.at>
21897
21898 * fileio.c (Finsert_file_contents): Run format-decode and
21899 after_insert_file_functions on entire buffer when REPLACE is
21900 non-nil and inhibit modification_hooks and point_motion_hooks.
21901 For consistency, run after_insert_file_functions iff something
21902 got inserted. Move signal_after_change and update_compositions
21903 after code running after_insert_file_functions. Make sure that
21904 undo_list doesn't record intermediate steps of the decoding process.
21905
219062007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21907
21908 * emacs.c (main)
21909 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21910 Call malloc_enable_thread on interactive startup.
21911
21912 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21913 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21914 [USE_PTHREAD]: Conditionalize with it.
21915 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21916 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21917 New functions.
21918
219192007-08-06 Chong Yidong <cyd@stupidchicken.com>
21920
21921 * xdisp.c (redisplay_window): When restoring original buffer
21922 position, make sure it is still valid.
21923
21924 * image.c (png_load): Ignore png-supplied background color.
21925
219262007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21927
21928 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21929 Use kCFAbsoluteTimeIntervalSince1970.
21930
21931 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21932 New variable.
21933 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21934 event loop should be quit.
21935 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21936 Quit dialog event loop if quit_dialog_event_loop is set.
21937
21938 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21939 (Selection): New typedef. Use instead of ScrapRef.
21940 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21941 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21942 (mac_clear_selection): Rename from clear_scrap.
21943 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21944 scrap_has_target_type. All uses changed.
21945 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21946 (mac_selection_has_target_p): New functions.
21947 (mac_put_selection_value): Rename from put_scrap_string.
21948 (mac_get_selection_value): Rename from get_scrap_string.
21949 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21950 (put_scrap_private_timestamp, scrap_has_target_type)
21951 (get_scrap_private_timestamp): Remove functions.
21952 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21953 (x_own_selection, x_get_local_selection):
21954 Use mac_valid_selection_value_p.
21955 (x_own_selection): Don't use put_scrap_private_timestamp.
21956 Record OWNERSHIP-INFO into Vselection_alist instead.
21957 (x_get_local_selection): Don't check type if request is local.
21958 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21959 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21960
219612007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21962
21963 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21964 add comment explaining why.
21965
219662007-08-03 Richard Stallman <rms@gnu.org>
21967
21968 * fileio.c (Fvisited_file_modtime): Use make_time.
21969
219702007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21971
21972 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21973 build.
21974
219752007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21976
21977 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21978
219792007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21980
21981 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21982
219832007-07-30 Richard Stallman <rms@gnu.org>
21984
21985 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21986
219872007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21988
21989 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21990
219912007-07-28 Nick Roberts <nickrob@snap.net.nz>
21992
21993 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21994 remote default-directory.
21995
21996 * buffer.c (mode-line-format): Update doc string.
21997
219982007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21999
22000 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
22001 scroll bar gap.
22002 (x_scroll_bar_create): Set bar->fringe_extended_p.
22003 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
22004 on frame edge. Check fringe background extension. Don't clear
22005 extended fringe background area.
22006
22007 * w32term.h (struct scroll_bar): New member fringe_extended_p.
22008 (w32_fill_area): Enclose multiple statements with do ... while (0).
22009
22010 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
22011 Extend fringe background to scroll bar gap.
22012 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
22013 Set bar->fringe_extended_p.
22014 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22015 Put leftmost/rightmost scroll bars on frame edge. Check fringe
22016 background extension. Don't clear extended fringe background area.
22017
22018 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22019 New member fringe_extended_p.
22020
220212007-07-25 Glenn Morris <rgm@gnu.org>
22022
22023 * Relicense all FSF files to GPLv3 or later.
22024
22025 * COPYING: Switch to GPLv3.
22026
220272007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
22028
22029 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
22030
22031 * data.c (Finteractive_form): Check for the presence of an
22032 `interactive-form' symbol property more thoroughly.
22033
22034 * data.c (Finteractive_form): Use an `interactive-form' property if
22035 present, analogous to the function-documentation property.
22036
220372007-07-24 Jason Rumney <jasonr@gnu.org>
22038
22039 * w32fns.c (x_real_positions): Get real position from OS instead of
22040 calculating it.
22041
220422007-07-23 Jason Rumney <jasonr@gnu.org>
22043
22044 * filelock.c (current_lock_owner): Allow for @ sign in username.
22045
220462007-07-22 Nick Roberts <nickrob@snap.net.nz>
22047
22048 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
22049 remote default-directory.
22050
22051 * buffer.c (mode-line-format): Describe above case in doc string.
22052
220532007-07-20 Eli Zaretskii <eliz@gnu.org>
22054
22055 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
22056 Define if not defined.
22057
220582007-07-18 Jason Rumney <jasonr@gnu.org>
22059
22060 * w32proc.c (w32_executable_type): Handle 64 bit executables.
22061
220622007-07-18 Richard Stallman <rms@gnu.org>
22063
22064 * data.c (Fsetq_default): Doc fix.
22065
22066 * eval.c (Fsetq): Doc fix.
22067
220682007-07-18 Juanma Barranquero <lekktu@gmail.com>
22069
22070 * coding.c (Ffind_operation_coding_system):
22071 * eval.c (For, Fand): Doc fixes.
22072 Reported by Johan Bockgård.
22073
220742007-07-18 Jan Djärv <jan.h.d@swipnet.se>
22075
22076 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
22077
22078 * xterm.h: Declare x_ewmh_activate_frame.
22079
22080 * xterm.c (x_ewmh_activate_frame): New function.
22081 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
22082
220832007-07-17 Martin Rudalics <rudalics@gmx.at>
22084
22085 * window.c (Fdisplay_buffer): If largest or LRU window is the
22086 only window, split it even if it is not eligible for splitting.
22087 This restores the original behavior broken by the 2007-07-15
22088 change.
22089
220902007-07-17 Glenn Morris <rgm@gnu.org>
22091
22092 * abbrev.c (abbrev_check_chars): New function.
22093 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
22094 Call abbrev_check_chars to check abbrev characters are word
22095 constituents. Doc fix.
22096
220972007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
22098
22099 * process.c (Fstart_process, Fmake_network_process)
22100 (read_process_output): Fix up last changes.
22101
221022007-07-16 Eli Zaretskii <eliz@gnu.org>
22103
22104 * makefile.w32-in (clean): Don't delete *~.
22105
221062007-07-16 Andreas Schwab <schwab@suse.de>
22107
22108 * window.c (Fdisplay_buffer): Use NILP.
22109 (Fset_window_scroll_bars): Likewise.
22110
221112007-07-15 Martin Rudalics <rudalics@gmx.at>
22112
22113 * window.c (window_min_size_2): New function.
22114 (window_min_size_1, size_window, Fdisplay_buffer)
22115 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
22116 windows without mode- or header-lines when window-min-height is
22117 too small.
22118 (size_window): Reset nodelete_p after testing it, following an
22119 earlier note by Kim F. Storm.
22120 (display_buffer): Do not set split_height_threshold to twice the
22121 value of window_min_height to avoid changing the value of a
22122 customizable variable. Rather explicitly check whether the
22123 height of the window that shall be splitted is at least as large
22124 as split_height_threshold.
22125 (Fwindow_full_width_p): New defun.
22126 (syms_of_window): Defsubr it.
22127
22128 * window.h: Add EXFUN for Fwindow_full_width_p.
22129
221302007-07-14 Jason Rumney <jasonr@gnu.org>
22131
22132 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
22133
221342007-07-14 Richard Stallman <rms@gnu.org>
22135
22136 * eval.c (maybe_call_debugger): New function.
22137 (find_handler_clause): Use maybe_call_debugger.
22138 Call it when the handler says `debug'.
22139 Eliminate DEBUGGER_VALUE_PTR.
22140 (Fsignal): Eliminate debugger_value.
22141 (Qdebug): New variable.
22142 (syms_of_eval): Initialize it.
22143
221442007-07-14 Juanma Barranquero <lekktu@gmail.com>
22145
22146 * eval.c (Fprogn):
22147 * keyboard.c (Ftrack_mouse):
22148 * print.c (Fwith_output_to_temp_buffer):
22149 * window.c (Fsave_window_excursion): Doc fix.
22150
221512007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
22152
22153 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
22154
221552007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
22156
22157 * process.h (struct Lisp_Process): Turn slots infd, outfd,
22158 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
22159 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
22160 read_output_delay, and read_output_skip from Lisp_Objects to ints.
22161 Remove unused encoding_carryover.
22162 * process.c: Adjust all functions accordingly.
22163
221642007-07-12 Richard Stallman <rms@gnu.org>
22165
22166 * term.c: Include unistd.h only if HAVE_UNISTD_H.
22167
221682007-07-11 Jason Rumney <jasonr@gnu.org>
22169
22170 * makefile.w32-in (LIBS): Include OLE32.
22171
22172 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
22173 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
22174
221752007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
22176
22177 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
22178 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
22179 from a Lisp_Object into a bare pointer.
22180 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22181 Adjust the code correspondingly.
22182
22183 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
22184
22185 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
22186 (term_show_mouse_face): Remove unused var `j'.
22187 (handle_one_term_event): Remove unused vars `i' and `j'.
22188 Don't cast return value of ttyname since it's not necessary.
22189
221902007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
22191
22192 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
22193 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
22194
22195 * fns.c (map_char_table): Use an array of int for `indices' rather than
22196 an array of Lisp_Objects (which are only ever integers anyway).
22197 (Fmap_char_table): Update caller.
22198 * lisp.h: Update prototype.
22199 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
22200 * fontset.c (Ffontset_info):
22201 * casetab.c (set_case_table): Update callers.
22202
22203 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
22204
22205 * keymap.c (struct accessible_keymaps_data)
22206 (struct where_is_internal_data): New structures.
22207 (accessible_keymaps_1, where_is_internal_1): Use them to change
22208 interface to adhere to the one used by map_keymap.
22209 (Faccessible_keymaps, where_is_internal): Use map_keymap.
22210 (accessible_keymaps_char_table, where_is_internal_2): Remove.
22211
22212 * keymap.h (map_keymap_function_t): More informative prototype.
22213
222142007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
22215
22216 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
22217 (looking_at_1): Don't change search_regs and last_thing_searched
22218 if `inhibit-changing-match-data' is non-nil.
22219 (string_match_1, search_buffer, set_search_regs): Likewise.
22220 (syms_of_search): Add Lisp level definition for
22221 `inhibit-changing-match-data' and set it to nil.
22222 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
22223 start and end of the match, instead of using values in search_regs.
22224
222252007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
22226
22227 * minibuf.c (Fcompleting_read): New value `confirm-only'
22228 for `require-match'.
22229
222302007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
22231
22232 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
22233 part of the 2007-06-27 change to syms_of_fileio.
22234
222352007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22236
22237 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
22238 Check WINDOWP before using XWINDOW. Consolidate return statements.
22239
222402007-06-27 Richard Stallman <rms@gnu.org>
22241
22242 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
22243
222442007-06-27 Juanma Barranquero <lekktu@gmail.com>
22245
22246 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
22247
222482007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22249
22250 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
22251 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
22252 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
22253 (_free_internal, memalign): Use them.
22254 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
22255 Initialize to PTHREAD_MUTEX_INITIALIZER.
22256 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
22257 (morecore_nolock): Rename from morecore. All uses changed.
22258 Use only nolock versions of internal allocation functions.
22259 (_malloc_internal_nolock, _realloc_internal_nolock)
22260 (_free_internal_nolock): New functions created from
22261 _malloc_internal, _realloc_internal, and _free_internal.
22262 (_malloc_internal, _realloc_internal, _free_internal): Use them.
22263 Copy hook value to automatic variable before its use.
22264 (memalign): Copy hook value to automatic variable before its use.
22265
222662007-06-26 Kenichi Handa <handa@m17n.org>
22267
22268 * coding.c (Ffind_operation_coding_system): Docstring improved.
22269 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
22270
222712007-06-25 David Kastrup <dak@gnu.org>
22272
22273 * keymap.c (Fcurrent_active_maps): Add `position' argument.
22274 (Fwhere_is_internal): Adjust call to `current-active-maps' to
22275 cater for additional parameter.
22276
22277 * keymap.h: Adjust number of parameters to `current-active-maps'.
22278
22279 * doc.c (Fsubstitute_command_keys): Adjust call of
22280 `current-active-maps'.
22281
222822007-06-25 David Kastrup <dak@gnu.org>
22283
22284 * callint.c (Fcall_interactively): Make the parsing of interactive
22285 specs somewhat more readable.
22286
222872007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22288
22289 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
22290 to scroll bar gap also when bitmap fills fringe. Draw only foreground
22291 if extended background has already been filled.
22292
222932007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22294
22295 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
22296 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
22297
22298 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
22299 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
22300 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
22301 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
22302 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
22303 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
22304 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
22305 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
22306 Run timers during dialog popup.
22307 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
22308
223092007-06-21 Jason Rumney <jasonr@gnu.org>
22310
22311 * image.c (convert_mono_to_color_image): Swap fore and background.
22312
223132007-06-20 Jason Rumney <jasonr@gnu.org>
22314
22315 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
22316 (w32_free_bdf_font): Unmap memory not handle.
22317
223182007-06-20 Sam Steingold <sds@gnu.org>
22319
22320 * gmalloc.c (__morecore): Fix the declaration to comply with the
22321 definition.
22322
223232007-06-20 Juanma Barranquero <lekktu@gmail.com>
22324
22325 * w32term.c (w32_delete_display): Remove leftover declaration.
22326 (w32_define_cursor, w32_initialize): Make static.
22327
22328 * w32.c (_wsa_errlist): Fix typo in error message.
22329 (init_environment): Ignore any environment variable from the
22330 registry having a null value.
22331
223322007-06-20 Glenn Morris <rgm@gnu.org>
22333
22334 * Makefile.in (LIBGIF): Default to -lgif.
22335
223362007-06-17 Jason Rumney <jasonr@gnu.org>
22337
22338 * w32menu.c (add_menu_item): Don't use multibyte string functions on
22339 unicode strings.
22340
223412007-06-16 Juanma Barranquero <lekktu@gmail.com>
22342
22343 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
22344 Fix typo in docstring.
22345
223462007-06-16 Eli Zaretskii <eliz@gnu.org>
22347
22348 * w32menu.c (add_menu_item): Escape `&' characters in menu items
22349 and their keybindings.
22350
223512007-06-15 Chong Yidong <cyd@stupidchicken.com>
22352
22353 * composite.c (update_compositions): Fix last fix.
22354
223552007-06-14 Jason Rumney <jasonr@gnu.org>
22356
22357 * w32.c (get_process_times_fn): New function pointer.
22358 (globals_of_w32): Intialize it if present in kernel32.dll.
22359 (w32_get_internal_run_time): New function.
22360
22361 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
22362
223632007-06-14 Kenichi Handa <handa@etlken.m17n.org>
22364
22365 * composite.c (update_compositions): Check the validness of
22366 compositions.
22367
223682007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22369
22370 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
22371 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
22372
22373 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
22374 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
22375
22376 * macgui.h (USE_MAC_TOOLBAR): New define.
22377
22378 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22379 Return immediately unless popup is activated.
22380
22381 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
22382 background to scroll bar gap.
22383 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
22384 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
22385 scroll bars on frame edge. Check fringe background extension.
22386 Don't clear extended fringe background area.
22387 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
22388 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
22389 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
22390 [USE_MAC_TOOLBAR]: New macros.
22391 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
22392 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
22393 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
22394 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
22395 [USE_MAC_TOOLBAR]: New functions.
22396 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
22397 manually if previous repositioning has failed.
22398 (mac_handle_keyboard_event): Use precomputed event kind.
22399 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
22400 as tool bar item click. Handle mouse movement over tool bar items.
22401
22402 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
22403 toolbar_win_gravity.
22404 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
22405 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
22406 Add externs.
22407
22408 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
22409 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
22410
224112007-06-14 Chong Yidong <cyd@stupidchicken.com>
22412
22413 * image.c (search_image_cache): Remove unused variable.
22414
224152007-06-13 Chong Yidong <cyd@stupidchicken.com>
22416
22417 * xfns.c, xmenu.c: Link to xaw3d if available.
22418
224192007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22420
22421 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
22422 frame_foreground and frame_background.
22423
22424 * image.c (lookup_image): Save frame foreground and background colors.
22425 (search_image_cache): Check if saved and current frame colors match.
22426
224272007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
22428
22429 * regex.c (regex_compile): Remove the `regnum' counter.
22430 Use bufp->re_nsub instead. Add support for \(?N:RE\).
22431
224322007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
22433
22434 * term.c: Include intervals.h to declare Fget_text_property.
22435
224362007-06-10 Jason Rumney <jasonr@gnu.org>
22437
22438 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
22439
224402007-06-08 Juanma Barranquero <lekktu@gmail.com>
22441
22442 * callint.c (Fcall_interactively):
22443 * editfns.c (Fdelete_and_extract_region):
22444 * fileio.c (Fread_file_name):
22445 * fns.c (Fmapconcat):
22446 * keyboard.c (cmd_error_internal):
22447 * keymap.c (Fkey_description):
22448 * lread.c (openp):
22449 * minibuf.c (read_minibuf):
22450 * search.c (wordify):
22451 * sunfns.c (sel_read):
22452 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
22453 * xfns.c (x_default_scroll_bar_color_parameter):
22454 * xmenu.c (menu_help_callback):
22455 * xselect.c (Fx_get_atom_name):
22456 * xterm.c (x_term_init): Use empty_unibyte_string.
22457
224582007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
22459
22460 * alloc.c (init_strings): Initialize canonical empty strings.
22461 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
22462 canonical empty string when the requested size is 0.
22463
22464 * emacs.c (empty_unibyte_string): Rename from empty_string.
22465 (empty_multibyte_string): New canonical empty string.
22466 (syms_of_emacs): Don't initialize empty_string.
22467
22468 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
22469 string, if appropriate.
22470 (empty_unibyte_string, empty_multibyte_string): New externs.
22471 (empty_string): Remove extern.
22472
22473 * lread.c (syms_of_lread): Use empty_unibyte_string.
22474
224752007-06-07 Jason Rumney <jasonr@gnu.org>
22476
22477 * s/ms-w32.h: Don't define HAVE_TZNAME.
22478
22479 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
22480
224812007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22482
22483 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
22484
22485 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
22486 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
22487
22488 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22489 Don't call next handler.
22490 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
22491 Remove argument. Install handler to application.
22492 (set_frame_menubar): Don't change deep_p.
22493 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
22494 FRAME_OUTER_TO_INNER_DIFF_Y.
22495 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22496 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22497 [HAVE_DIALOGS]: New macros.
22498 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
22499 Use them.
22500 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
22501
22502 * macselect.c [MAC_OSX] (install_service_handler): Rename from
22503 init_service_handler. All callers changed. Return OSStatus value.
22504
22505 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
22506 All callers changed so as not to call SetPortWindowPort.
22507 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
22508 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
22509 mac_draw_string_common.
22510 (mac_draw_image_string_qd): Likewise.
22511 (mac_draw_string_common): Use them. Add INLINE.
22512 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
22513 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
22514 GetGlobalMouse.
22515 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
22516 and FRAME_OUTER_TO_INNER_DIFF_Y.
22517 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
22518 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
22519 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
22520 repositioning window to mac_handle_window_event.
22521 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
22522 saving window location to mac_handle_window_event
22523 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
22524 (install_menu_target_item_handler): Remove argument in extern.
22525 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
22526 Also accept command events.
22527 (do_keystroke): New function created from XTread_socket.
22528 (init_command_handler): Remove functions.
22529 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
22530 and save window location by kEventWindowShowing and kEventWindowHiding
22531 handlers here. Don't call next handler for window state change and
22532 focus events.
22533 (mac_handle_application_event, mac_handle_keyboard_event)
22534 [TARGET_API_MAC_CARBON]: New functions.
22535 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
22536 kEventWindowShowing and kEventWindowHiding events. Move installation
22537 of mouse, font, text input and menu target item handlers to
22538 install_application_handler.
22539 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
22540 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22541 New function.
22542 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22543 Register it.
22544 (XTread_socket) [TARGET_API_MAC_CARBON]:
22545 Consolidate SendEventToEventTarget calls.
22546 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22547 Move application activation handler to mac_handle_application_event.
22548 Move keyboard handler to mac_handle_keyboard_event.
22549 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22550 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22551 init_command_handler. Call install_application_handler.
22552
22553 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22554 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22555
225562007-06-07 Glenn Morris <rgm@gnu.org>
22557
22558 * emacs.c (main): Use `emacs-copyright' in --version output.
22559
225602007-06-06 Chong Yidong <cyd@stupidchicken.com>
22561
22562 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22563
225642007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22565
22566 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22567
22568 * macgui.h: Replace WindowPtr with WindowRef.
22569
22570 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22571 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22572 Replace ControlHandle with ControlRef.
22573 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22574
22575 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22576 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22577 Replace ControlHandle with ControlRef.
22578 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22579 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22580
22581 * macterm.h (struct scroll_bar): Rename member control_handle_low
22582 and control_handle_high to control_ref_low and control_ref_high.
22583 All uses changed.
22584 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22585 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22586 respectively. All uses changed.
22587 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22588 (install_window_handler, remove_window_handler): Replace WindowPtr
22589 with WindowRef in externs.
22590
225912007-06-05 Juanma Barranquero <lekktu@gmail.com>
22592
22593 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
22594
225952007-06-03 Nick Roberts <nickrob@snap.net.nz>
22596
22597 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22598
22599 * frame.c (Fmouse_position, Fmouse_pixel_position):
22600 Condition on HAVE_GPM too.
22601
22602 * term.c (term_mouse_highlight): Remove unused variables.
22603 (Fterm_open_connection): Set gpm_zerobased to 1.
22604 (term_mouse_movement, term_mouse_click, handle_one_term_event):
22605 Use zero based co-ordinates.
22606 (handle_one_term_event): Report a drag as mouse movement too.
22607
22608 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22609
226102007-06-03 Chong Yidong <cyd@stupidchicken.com>
22611
22612 * image.c (search_image_cache): New function. Require background
22613 color match if background color is unspecified in the image spec.
22614 (uncache_image, lookup_image): Use it.
22615
226162007-06-01 Juanma Barranquero <lekktu@gmail.com>
22617
22618 * window.c (Fshrink_window): Reflow docstring.
22619
226202007-06-02 Chong Yidong <cyd@stupidchicken.com>
22621
22622 * Version 22.1 released.
22623
226242007-06-01 Richard Stallman <rms@gnu.org>
22625
22626 * xfns.c (x_encode_text): Add GCPRO.
22627
226282007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22629
22630 * xfns.c (x_set_name_internal): Save encoded name before
22631 x_encode_text in case string data is relocated.
22632
226332007-05-31 Richard Stallman <rms@gnu.org>
22634
22635 * buffer.c (syms_of_buffer): Doc fix.
22636
226372007-05-30 Nick Roberts <nickrob@snap.net.nz>
22638
22639 * sysdep.c (init_sys_modes): Add rather than replace with
22640 O_NONBLOCK.
22641
22642 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22643 term_mouse_moveto.
22644
22645 * termhooks.h (term_mouse_moveto): New extern.
22646
22647 * term.c (mouse_face_window): Rename...
22648 (Qmouse_face_window): ...to this.
22649 (term_show_mouse_face, term_clear_mouse_face)
22650 (term_mouse_highlight): Use Qmouse_face_window.
22651 (term_mouse_moveto): New function.
22652 (term_mouse_position): Make it work.
22653 (syms_of_term): Uncomment assignment to mouse_position_hook.
22654 Staticpro Qmouse_face_window.
22655
226562007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22657
22658 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22659 around current_column call.
22660
226612007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22662
22663 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22664 * xdisp.c (next_element_from_buffer):
22665 * window.c (delete_window):
22666 * term.c (term_mouse_highlight):
22667 * msdos.c (getdefdir):
22668 * macterm.c (mac_create_bitmap_from_bitmap_data)
22669 (init_font_name_table):
22670 * fns.c (Fsxhash):
22671 * data.c (Fmake_local_variable):
22672 * ccl.c (ccl_driver): Likewise.
22673
226742007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22675
22676 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22677 Call mac_wakeup_from_rne on window size change.
22678
226792007-05-25 Chong Yidong <cyd@stupidchicken.com>
22680
22681 * image.c (uncache_image): Fix typo.
22682
226832007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22684
22685 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22686
226872007-05-22 Richard Stallman <rms@gnu.org>
22688
22689 * xterm.c (x_connection_closed): Remove NO_RETURN.
22690
226912007-05-22 Martin Rudalics <rudalics@gmx.at>
22692
22693 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22694
226952007-05-21 Chong Yidong <cyd@stupidchicken.com>
22696
22697 * image.c (uncache_image): New function.
22698 (Fimage_refresh): New function.
22699
227002007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22701
22702 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22703
227042007-05-20 Nick Roberts <nickrob@snap.net.nz>
22705
22706 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22707 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22708
227092007-05-20 Nick Roberts <nickrob@snap.net.nz>
22710
22711 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22712 conditional on [HAVE_GPM_H].
22713
227142007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22715
22716 * syntax.c (skip_chars): Update syntax-table only after we checked that
22717 the new location is valid.
22718
227192007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22720
22721 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22722 mac_get_window_bounds.
22723
227242007-05-20 Nick Roberts <nickrob@snap.net.nz>
22725
22726 * Makefile.in (LIBGPM): Allow it to be set from configure.
22727 If set then link Emacs with it.
22728
22729 * config.in: Regenerate.
22730
22731 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22732 New externs.
22733
22734 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22735 Include gpm.h.
22736 (handle_one_term_event, term_gpm): New externs.
22737
22738 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22739 and allow it to be interrupted by SIGIO.
22740
22741 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22742 (wait_reading_process_output): Wait on gpm_fd too.
22743 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22744 (add_gpm_wait_descriptor_called_flag): New variable.
22745 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22746
22747 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22748 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22749 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22750 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22751 (make_lispy_event): Add case GPM_CLICK_EVENT.
22752 (read_avail_input): Handle mouse input.
22753
22754 * term.c (write_glyphs_with_face): New function.
22755 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22756 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22757 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22758 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22759 (last_mouse_x, last_mouse_y): New variables.
22760 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22761 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22762 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22763 (Fterm_close_connection): New functions.
22764 (term_init): Initialise mouse_face_window.
22765
227662007-05-19 Chong Yidong <cyd@stupidchicken.com>
22767
22768 * xdisp.c (redisplay_window): If first window line is a
22769 continuation line, recompute the new window start instead of
22770 recentering.
22771
227722007-05-18 Glenn Morris <rgm@gnu.org>
22773
22774 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22775 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22776
227772007-05-17 Glenn Morris <rgm@gnu.org>
22778
22779 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22780
227812007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22782
22783 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22784 dead key repeat and up events.
22785
227862007-05-14 Chong Yidong <cyd@stupidchicken.com>
22787
22788 * image.c (pbm_load): Check image size for monochrome pbm.
22789
227902007-05-13 Chong Yidong <cyd@stupidchicken.com>
22791
22792 * xterm.c (XTread_socket): Revert last change.
22793
227942007-05-12 Chong Yidong <cyd@stupidchicken.com>
22795
22796 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22797
22798 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22799
228002007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22801
22802 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22803 mixup (YAILOM).
22804
228052007-05-07 Andreas Schwab <schwab@suse.de>
22806
22807 * keymap.c (Flookup_key): Fix typo in last change.
22808
228092007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22810
22811 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22812 mapping for unibyte strings.
22813
228142007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22815
22816 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22817 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22818
228192007-04-29 Richard Stallman <rms@gnu.org>
22820
22821 * insdel.c (replace_range): For undo, record insertion first.
22822
228232007-04-29 Andreas Schwab <schwab@suse.de>
22824
22825 * lisp.h (VECSIZE): Use OFFSETOF.
22826
228272007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22828
22829 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22830 disabled lines.
22831
228322007-04-28 Richard Stallman <rms@gnu.org>
22833
22834 * lread.c (read_escape): In a string, \s is always space.
22835
228362007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22837
22838 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22839
22840 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22841 submenu for menu bar items.
22842
22843See ChangeLog.10 for earlier changes.
22844
22845;; Local Variables:
22846;; coding: utf-8
22847;; add-log-time-zone-rule: t
aac0c6e3
MR
22848;; End:
22849
5df4f04c 22850 Copyright (C) 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
aac0c6e3
MR
22851
22852 This file is part of GNU Emacs.
22853
22854 GNU Emacs is free software: you can redistribute it and/or modify
22855 it under the terms of the GNU General Public License as published by
22856 the Free Software Foundation, either version 3 of the License, or
22857 (at your option) any later version.
22858
22859 GNU Emacs is distributed in the hope that it will be useful,
22860 but WITHOUT ANY WARRANTY; without even the implied warranty of
22861 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22862 GNU General Public License for more details.
22863
22864 You should have received a copy of the GNU General Public License
22865 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22866
22867;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40