* src/emacs.c (main): Warn when starting a GTK emacs in daemon mode.
[bpt/emacs.git] / src / ChangeLog
1 2011-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * emacs.c (main): Warn when starting a GTK emacs in daemon mode.
4
5 2011-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6
7 * fringe.c (update_window_fringes): Don't update overlay arrow bitmap
8 in the current matrix if keep_current_p is non-zero.
9
10 2011-05-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11
12 * dispextern.h (struct glyph_row): New member fringe_bitmap_periodic_p.
13
14 * dispnew.c (shift_glyph_matrix, scrolling_window): Mark scrolled row
15 for fringe update if it has periodic bitmap.
16 (row_equal_p): Also compare left_fringe_offset, right_fringe_offset,
17 and fringe_bitmap_periodic_p.
18
19 * fringe.c (get_fringe_bitmap_data): New function.
20 (draw_fringe_bitmap_1, update_window_fringes): Use it.
21 (update_window_fringes): Record periodicity of fringe bitmap in glyph
22 row. Mark glyph row for fringe update if periodicity changed.
23
24 * xdisp.c (try_window_reusing_current_matrix): Don't mark scrolled row
25 for fringe update unless it has periodic bitmap.
26
27 2011-05-25 Kenichi Handa <handa@m17n.org>
28
29 * xdisp.c (get_next_display_element): Set correct it->face_id for
30 a static composition.
31
32 2011-05-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
33
34 * dispnew.c (scrolling_window): Don't exclude the case that the
35 last enabled row in the desired matrix touches the bottom boundary.
36
37 2011-05-11 Drew Adams <drew.adams@oracle.com>
38
39 * textprop.c (Fprevious_single_char_property_change): Doc fix (bug#8655).
40
41 2011-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
42
43 * w32term.c (w32_draw_fringe_bitmap): Rename local vars `left' and
44 `width' to `bar_area_x' and `bar_area_width', respectively.
45 (x_scroll_run): Take account of fringe background extension.
46
47 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]: Rename
48 local vars `left' and `width' to `bar_area_x' and
49 `bar_area_width', respectively.
50 (x_scroll_run) [USE_TOOLKIT_SCROLL_BARS]: Take account of fringe
51 background extension.
52
53 2011-05-09 Andreas Schwab <schwab@linux-m68k.org>
54
55 * xmenu.c (set_frame_menubar): Fix submenu loops.
56
57 2011-05-09 Eli Zaretskii <eliz@gnu.org>
58
59 Backport revisions 103939.1.41..103939.1.44 (inclusive) from trunk.
60 (bug#8623)
61 The next log entry shows the actual changes by Paul Eggert.
62
63 2011-05-08 Paul Eggert <eggert@cs.ucla.edu>
64
65 Fix a problem with aliasing and vector headers.
66 GCC 4.6.0 optimizes based on type-based alias analysis. For
67 example, if b is of type struct buffer * and v of type struct
68 Lisp_Vector *, then gcc -O2 was incorrectly assuming that &b->size
69 != &v->size, and therefore "v->size = 1; b->size = 2; return
70 v->size;" must therefore return 1. This assumption is incorrect
71 for Emacs, since it type-puns struct Lisp_Vector * with many other
72 types. To fix this problem, this patch adds a new type struct
73 vector_header that documents the constraints on layout of vectors
74 and pseudovectors, and helps optimizing compilers not get fooled
75 by Emacs's type punning. It also adds the macros XSETTYPED_PVECTYPE
76 XSETTYPED_PSEUDOVECTOR, TYPED_PSEUDOVECTORP, for similar reasons.
77 * lisp.h (XVECTOR_SIZE): New convenience macro. All previous uses of
78 XVECTOR (foo)->size replaced to use this macro, to avoid the hassle
79 of writing XVECTOR (foo)->header.size.
80 * lisp.h: Say "vectorlike header" rather than "vector header.
81 (struct vectorlike_header): Rename from struct vector_header.
82 (XVECTORLIKE_HEADER_SIZE): Renamed from XVECTOR_HEADER_SIZE.
83 All uses changed.
84 (XVECTOR_HEADER_SIZE): New macro, for use in XSETPSEUDOVECTOR.
85 (XSETTYPED_PVECTYPE): New macro, specifying the name of the size
86 member.
87 (XSETPVECTYPE): Rewrite in terms of new macro.
88 (XSETPVECTYPESIZE): New macro, specifying both type and size.
89 This is a bit clearer, and further avoids the possibility of
90 undesirable aliasing.
91 (XSETTYPED_PSEUDOVECTOR): New macro, specifying the size.
92 (XSETPSEUDOVECTOR): Rewrite in terms of XSETTYPED_PSEUDOVECTOR
93 and XVECTOR_HEADER_SIZE.
94 (XSETSUBR): Rewrite in terms of XSETTYPED_PSEUDOVECTOR and XSIZE,
95 since Lisp_Subr is a special case (no "next" field).
96 (ASIZE): Rewrite in terms of XVECTOR_SIZE.
97 (struct vector_header): New type.
98 (TYPED_PSEUDOVECTORP): New macro, also specifying the C type of the
99 object, to help avoid aliasing.
100 (PSEUDOVECTORP): Rewrite in terms of TYPED_PSEUDOVECTORP.
101 (SUBRP): Likewise, since Lisp_Subr is a special case.
102
103 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table):
104 (struct Lisp_Sub_Char_Table, struct Lisp_Bool_Vector):
105 (struct Lisp_Hash_Table): Combine first two members into a single
106 struct vector_header member. All uses of "size" and "next" members
107 changed to be "header.size" and "header.next".
108 * buffer.h (struct buffer): Likewise.
109 * font.h (struct font_spec, struct font_entity, struct font): Likewise.
110 * frame.h (struct frame): Likewise.
111 * process.h (struct Lisp_Process): Likewise.
112 * termhooks.h (struct terminal): Likewise.
113 * window.c (struct save_window_data, struct saved_window): Likewise.
114 * window.h (struct window): Likewise.
115 * alloc.c (allocate_buffer, Fmake_bool_vector, allocate_pseudovector):
116 Use XSETPVECTYPESIZE, not XSETPVECTYPE, to avoid aliasing problems.
117 * buffer.c (init_buffer_once): Likewise.
118 * lread.c (defsubr): Use XSETTYPED_PVECTYPE, since Lisp_Subr is a
119 special case.
120 * process.c (Fformat_network_address): Use local var for size,
121 for brevity.
122 * fns.c (vector): Remove; this old hack is no longer needed.
123 * bytecode.c (exec_byte_code): Don't use XVECTOR before CHECK_VECTOR.
124
125 2011-04-29 Eli Zaretskii <eliz@gnu.org>
126
127 * w32heap.c (allocate_heap) [USE_LISP_UNION_TYPE || USE_LSB_TAG]:
128 New version that can reserve upto 2GB of heap space.
129
130 2011-04-26 Chong Yidong <cyd@stupidchicken.com>
131
132 * nsfns.m (Fns_read_file_name): Doc fix (Bug#8534).
133
134 2011-04-18 Eli Zaretskii <eliz@gnu.org>
135
136 * s/ms-w32.h (localtime): Redirect to sys_localtime.
137
138 * w32.c: Include <time.h>.
139 (sys_localtime): New function.
140
141 2011-04-13 Chong Yidong <cyd@stupidchicken.com>
142
143 * xdisp.c (init_xdisp): Initialize echo_area_window (Bug#6451).
144
145 2011-04-10 Samuel Thibault <sthibault@debian.org> (tiny change)
146
147 * sysdep.c (wait_for_termination): On GNU Hurd, kill returns -1 on
148 zombies (Bug#8467).
149
150 2011-04-10 Chong Yidong <cyd@stupidchicken.com>
151
152 * buffer.c (syms_of_buffer): Doc fix (Bug#6902).
153
154 2011-04-08 Chong Yidong <cyd@stupidchicken.com>
155
156 * ftfont.c (get_adstyle_property, ftfont_pattern_entity): Use
157 unsigned char, to match FcChar8 type definition.
158
159 * xterm.c (handle_one_xevent):
160 * xmenu.c (create_and_show_popup_menu):
161 * xselect.c (x_decline_selection_request)
162 (x_reply_selection_request): Avoid type-punned deref of X events.
163
164 2011-04-08 Samuel Thibault <sthibault@debian.org> (tiny change)
165
166 * term.c (init_tty): Fix incorrect ifdef placement (Bug#8450).
167
168 2011-03-19 Christoph Scholtes <cschol2112@googlemail.com>
169
170 * process.c (Fformat_network_address): Doc fix.
171
172 2011-03-19 Chong Yidong <cyd@stupidchicken.com>
173
174 * buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
175 (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
176 These macros can no longer be used for assignment.
177
178 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Assign
179 struct members directly, instead of using BUF_BEGV etc.
180 (record_buffer_markers, fetch_buffer_markers): New functions for
181 recording and fetching special buffer markers.
182 (set_buffer_internal_1, set_buffer_temp): Use them.
183
184 * lread.c (unreadchar): Use SET_BUF_PT_BOTH.
185
186 * insdel.c (adjust_point): Use SET_BUF_PT_BOTH.
187
188 * intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
189 (get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.
190
191 * xdisp.c (hscroll_window_tree):
192 (reconsider_clip_changes): Use PT instead of BUF_PT.
193
194 2011-03-17 Juanma Barranquero <lekktu@gmail.com>
195
196 * xfaces.c (Fx_load_color_file):
197 Read color file from absolute filename (bug#8250).
198
199 2011-03-11 Juanma Barranquero <lekktu@gmail.com>
200
201 Backport revno:103582 from trunk.
202 * w32xfns.c (select_palette): Check success of RealizePalette against
203 GDI_ERROR, not zero.
204
205 2011-03-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
206
207 * fringe.c (update_window_fringes): Remove unused variables.
208
209 * unexmacosx.c (copy_data_segment): Also copy __got section.
210 (Bug#8223)
211
212 2011-03-07 Chong Yidong <cyd@stupidchicken.com>
213
214 * Version 23.3 released.
215
216 2011-02-22 Kenichi Handa <handa@m17n.org>
217
218 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
219 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is
220 integer.
221
222 2011-02-19 Chong Yidong <cyd@stupidchicken.com>
223
224 * Makefile.in (prefix-args${EXEEXT}): Compile with ALL_CFLAGS.
225
226 2011-02-13 Eli Zaretskii <eliz@gnu.org>
227
228 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
229 window is changed inside calls to do_pending_window_change.
230 (Bug#8020)
231
232 2011-02-12 Eli Zaretskii <eliz@gnu.org>
233
234 * terminal.c (create_terminal): Use default-keyboard-coding-system
235 and default-terminal-coding-system to initialize coding systems of
236 the new terminal. (Bug#7840)
237
238 2011-02-09 Martin Rudalics <rudalics@gmx.at>
239
240 * window.c (select_window): Check inhibit_point_swap argument when
241 deciding whether to return immediately.
242
243 2011-02-08 Jan Djärv <jan.h.d@swipnet.se>
244
245 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
246 zero (Bug#7348).
247
248 2011-02-03 Glenn Morris <rgm@gnu.org>
249
250 * xfaces.c (Finternal_set_lisp_face_attribute):
251 Try to clarify some error messages. (Bug#2659)
252
253 2011-02-02 Stefan Monnier <monnier@iro.umontreal.ca>
254
255 * editfns.c (save_restriction_restore): Don't forget to invalidate the
256 current_column cache (bug#7946).
257
258 2011-02-02 Kenichi Handa <handa@m17n.org>
259
260 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
261
262 * xftfont.c (xftfont_open): Likewise.
263
264 2011-02-01 Andreas Schwab <schwab@linux-m68k.org>
265
266 * window.c (Fselect_window): Add missing return value.
267
268 2011-01-29 Andreas Schwab <schwab@linux-m68k.org>
269
270 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
271 of int. All uses adjusted.
272 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
273 (svg_load_image): Remove casts.
274
275 2011-01-29 Chong Yidong <cyd@stupidchicken.com>
276
277 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
278 function definitions for compiling with libpng-1.5.
279 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
280 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
281 (Bug#7908).
282
283 2011-01-28 Chong Yidong <cyd@stupidchicken.com>
284
285 * m/intel386.h: Define NO_ARG_ARRAY. Suggested by Dan Nicolaescu.
286
287 2011-01-27 Chong Yidong <cyd@stupidchicken.com>
288
289 * font.c (font_parse_fcname): Require GTK-style font sizes to
290 occur at the end of the font string (Bug#7853).
291
292 2011-01-26 Chong Yidong <cyd@stupidchicken.com>
293
294 * font.c (font_parse_fcname): Fix typo in string length.
295
296 2011-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
297
298 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
299 the buffer's point-max (bug#7876).
300
301 2011-01-23 Chong Yidong <cyd@stupidchicken.com>
302
303 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
304 Remove unused HAVE_SHM branch (Bug#6811).
305
306 2011-01-23 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
307
308 * s/hpux11.h: Set CANNOT_DUMP on IA64 (Bug#6811).
309
310 2011-01-22 Martin Rudalics <rudalics@gmx.at>
311
312 * window.c (select_window): New function.
313 (Fselect_window): Call it.
314 (inhibit_point_swap): Variable deleted.
315 (Fset_window_configuration): Call select_window directly.
316
317 2011-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
318
319 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
320
321 2011-01-16 Eli Zaretskii <eliz@gnu.org>
322
323 * image.c (syms_of_image): Don't use SET_SYMBOL_VALUE. (Bug#7848)
324
325 2011-01-15 Martin Rudalics <rudalics@gmx.at>
326
327 * window.c (inhibit_point_swap): New variable.
328 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
329 point this time.
330 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
331 of setting selected_window to nil (Bug#7728).
332
333 2011-01-12 Chong Yidong <cyd@stupidchicken.com>
334
335 * config.in (TERMINFO): New definition.
336
337 * s/netbsd.h: Use it to choose between terminfo and termcap
338 (Bug#7642).
339
340 2011-01-03 Jan Djärv <jan.h.d@swipnet.se>
341
342 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
343
344 * nsfns.m (ns_set_name_iconic): Remove.
345 (ns_get_screen): Don't assign integer to f.
346 (ns_set_name_internal): New function (Bug#7517).
347 (Vicon_title_format): Extern declare.
348 (ns_set_name): Call ns_set_name_internal.
349 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
350 (x_implicitly_set_name): Ditto.
351 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
352 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8.
353 Always use buffer name for title and buffer filename only for
354 RepresentedFilename. Handle bad UTF-8 in buffer name (Bug#7517).
355
356 2011-01-03 Eli Zaretskii <eliz@gnu.org>
357
358 * image.c (png_jmpbuf): Remove definition.
359 (my_png_error, png_load): Don't use png_jmpbuf.
360
361 2010-12-31 Eli Zaretskii <eliz@gnu.org>
362
363 * image.c <Qlibpng_version>: New variable.
364 (syms_of_image): Intern and staticpro it. Set its value to the
365 version of PNG library we were compiled with.
366 (my_png_error, png_load): Avoid GCC warnings about direct access
367 to png_ptr->jmpbuf. (Bug#7716)
368 (png_jmpbuf): New macro.
369 (my_png_error, png_load): Use it instead of #ifdef'ing according
370 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
371
372 2010-12-27 Stefan Monnier <monnier@iro.umontreal.ca>
373
374 * .gdbinit (xgetptr): Fix the union+lsb case.
375 (xbacktrace): Fix the union case.
376
377 2010-12-26 Stefan Monnier <monnier@iro.umontreal.ca>
378
379 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
380 different from selected-window's.
381
382 2010-12-25 Eli Zaretskii <eliz@gnu.org>
383
384 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
385 equivalent of a menu item when the key sequence is given by the
386 `:keys' attribute. (Bug#7662)
387
388 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
389 the basic faces are supported.
390
391 2010-12-24 Jan Djärv <jan.h.d@swipnet.se>
392
393 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
394
395 2010-12-17 Eli Zaretskii <eliz@gnu.org>
396
397 * xdisp.c (Fformat_mode_line): Fix last change.
398
399 2010-12-16 Chong Yidong <cyd@stupidchicken.com>
400
401 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
402 faces (Bug#7587).
403
404 2010-12-13 Eli Zaretskii <eliz@gnu.org>
405
406 * fileio.c (Fexpand_file_name): One more doc fix.
407
408 2010-12-12 Eli Zaretskii <eliz@gnu.org>
409
410 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
411
412 2010-12-11 Eli Zaretskii <eliz@gnu.org>
413
414 * w32fns.c (Fx_show_tip): Call try_window with last argument
415 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
416 solved. Round up the tip height to an integral multiple of the
417 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
418 (Bug#7398)
419
420 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
421 (face_before_or_after_it_pos, next_element_from_string)
422 (next_element_from_c_string, produce_stretch_glyph): Remove unused
423 calculations of maximum string length before calling
424 string_char_and_length and STRING_CHAR_AND_LENGTH.
425 (string_char_and_length): Update commentary: MAXLEN is no longer
426 needed.
427
428 2010-12-10 Jan Djärv <jan.h.d@swipnet.se>
429
430 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
431 as (Qsave_session arg).
432
433 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
434 (smc_die_CB): Make an event with arg Qt.
435 (Fhandle_save_session): If event has Qt as argument,
436 call Fkill_emacs (Bug#7552).
437
438 2010-12-07 Jan Djärv <jan.h.d@swipnet.se>
439
440 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
441
442 2010-12-06 Chong Yidong <cyd@stupidchicken.com>
443
444 * dispextern.h (struct it): New member overlay_strings_charpos.
445
446 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
447 charpos where we computed n_overlay_strings.
448 (next_overlay_string): Load overlay strings at recorded position,
449 which may not be the same as the iterator's charpos (Bug#7016).
450
451 2010-12-05 Jan Djärv <jan.h.d@swipnet.se>
452
453 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
454 with cursor color and draw a rectangle around the image (Bug#7412).
455
456 2010-12-05 Chong Yidong <cyd@stupidchicken.com>
457
458 * xdisp.c (try_scrolling): Avoid infloop if the first line is
459 obscured due to a vscroll (Bug#7537).
460
461 2010-12-02 Jan Djärv <jhd@zeplinf.localdomain>
462
463 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
464
465 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
466 Use FRAME_TOOLBAR_HEIGHT.
467 (x_set_offset): Handle XNegative and YNegative in
468 f->size_hint_flags (Bug#7510).
469
470 2010-11-25 Kenichi Handa <handa@m17n.org>
471
472 * charset.c (emacs_mule_charset): Make it an array of charset ID;
473 i.e. integer.
474 (Fdefine_charset_internal): Adjusted for the above change.
475 (init_charset_once): Likewise.
476
477 * charset.h (emacs_mule_charset): Adjust the prototype. Delete
478 duplicated extern.
479
480 * coding.c (emacs_mule_char): Adjust for the change of
481 emacs_mule_charset.
482
483 * lread.c (read_emacs_mule_char): Adjust for the change of
484 emacs_mule_charset.
485
486 2010-11-22 Eli Zaretskii <eliz@gnu.org>
487
488 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
489 of w32api >= 3.15. (Bug#6989) (Bug#7452)
490
491 2010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
492
493 * alloc.c (mark_terminals): Ensure that the image cache is marked
494 even if the terminal object was marked earlier (Bug#6301).
495
496 2010-11-21 Chong Yidong <cyd@stupidchicken.com>
497
498 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
499
500 2010-11-20 Jan Djärv <jan.h.d@swipnet.se>
501
502 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
503 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
504 Use 23 as menubar height if 0. (Bug#7425).
505
506 2010-11-14 Jan Djärv <jan.h.d@swipnet.se>
507
508 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
509
510 * config.in (HAVE_G_TYPE_INIT): New symbol.
511
512 2010-11-12 Eli Zaretskii <eliz@gnu.org>
513
514 * lread.c (Fload): Mention `load-in-progress' and
515 `load-file-name'. (Bug#7346)
516
517 2010-11-09 Eli Zaretskii <eliz@gnu.org>
518
519 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
520 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
521 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
522 subprocesses. Use buffer_free only ifdef subprocesses.
523
524 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
525 the subprocesses version, not in the non-subprocesses one.
526
527 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
528
529 * xfns.c (x_real_positions): Fix declaration-after-statement
530 problem.
531
532 2010-11-05 Chong Yidong <cyd@stupidchicken.com>
533
534 * image.c (free_image): Don't garbage the frame here, since this
535 function can be called while redisplaying (Bug#7210).
536 (uncache_image): Garbage the frame here (Bug#6426).
537
538 2010-11-04 Chong Yidong <cyd@stupidchicken.com>
539
540 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
541 Windows.
542
543 2010-11-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
544
545 * process.c (Fmake_network_process): Don't call turn_on_atimers around
546 `connect' (Bug#5723).
547
548 2010-11-04 Helmut Eller <eller.helmut@gmail.com>
549
550 * process.c (Fmake_network_process): Call `select' for interrupted
551 `connect' rather than creating new socket (Bug#5173).
552
553 2010-11-04 Kenichi Handa <handa@m17n.org>
554
555 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
556 Don't sheck SPEC if it is nil.
557 (font_list_entities): Call font_delete_unmatched if
558 Vface_ignored_fonts is non-nil.
559
560 2010-11-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
561
562 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
563 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
564
565 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
566 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
567 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
568 TRY_WINDOW_CHECK_MARGINS.
569
570 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
571 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423).
572
573 2010-11-04 Jan Djärv <jan.h.d@swipnet.se>
574
575 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
576 parent is the root window. Check this after traversing window tree.
577
578 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
579
580 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
581
582 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
583 before traversing window tree (Bug#5721).
584
585 2010-11-03 Glenn Morris <rgm@gnu.org>
586
587 * Makefile.in (CRT_DIR): New variable, set by configure.
588 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
589 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
590
591 2010-11-01 Jan Djärv <jan.h.d@swipnet.se>
592
593 * process.c (kbd_is_on_hold): New variable.
594 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
595 New functions.
596 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
597 select on empty input mask.
598 (init_process): Initialize kbd_is_on_hold to 0.
599
600 * process.h (hold_keyboard_input, unhold_keyboard_input)
601 (kbd_on_hold_p): Declare.
602
603 * keyboard.c (input_available_signal): Declare.
604 (kbd_buffer_nr_stored): New function.
605 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
606 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
607 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
608 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
609 (tty_read_avail_input): If input is on hold, return.
610 Don't read more that free slots in kbd_buffer (Bug#6571).
611
612 2010-10-31 Chong Yidong <cyd@stupidchicken.com>
613
614 * xterm.c (x_connection_closed): Print informative error message
615 when aborting on GTK. This requires using shut_down_emacs
616 directly instead of Fkill_emacs.
617
618 2010-10-25 Michael Albinus <michael.albinus@gmx.de>
619
620 * dbusbind.c (Fdbus_call_method_asynchronously)
621 (Fdbus_register_signal, Fdbus_register_method): Check, whether
622 `dbus-registered-objects-table' is initialized.
623
624 2010-10-24 Chong Yidong <cyd@stupidchicken.com>
625
626 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
627
628 2010-10-22 Eli Zaretskii <eliz@gnu.org>
629
630 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
631
632 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
633 Deprecate use as a boolean flag.
634
635 2010-10-18 Ken Brown <kbrown@cornell.edu>
636
637 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
638
639 2010-10-15 Kenichi Handa <handa@m17n.org>
640
641 Fix incorrect font metrics when the same font is opened with
642 different pixelsizes.
643
644 * xftfont.c: Include composite.h.
645 (xftfont_shape): New function.
646 (syms_of_xftfont): Set xftfont_driver.shape.
647
648 2010-10-13 Damyan Pepper <damyanp@gmail.com>
649
650 Fix handling of font properties on Windows (bug#6303).
651 * font.c (font_filter_properties): New function, refactored from
652 ftfont_filter_properties.
653 * font.h (font_filter_properties): Declare.
654 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
655 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
656 (w32font_filter_properties): New function.
657 (w32font_driver): Add w32font_filter_properties.
658
659 2010-10-12 Juanma Barranquero <lekktu@gmail.com>
660
661 * font.c (Ffont_variation_glyphs):
662 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
663
664 2010-10-10 Jan Djärv <jan.h.d@swipnet.se>
665
666 * nsterm.m (Qleft): Declare.
667 (ns_right_alternate_modifier): New variable
668 (NSRightAlternateKeyMask): New define.
669 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
670 ns_right_alternate_modifier isn't Qleft.
671 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
672 as emacs modifier for NSRightAlternateKeyMask.
673 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
674
675 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
676
677 * dbusbind.c (xd_get_dispatch_status): Return a Lisp_Object.
678 (xd_pending_messages): Catch xd_get_dispatch_status calls.
679
680 2010-10-08 Kenichi Handa <handa@m17n.org>
681
682 * coding.c (complement_process_encoding_system): Fix previous change.
683
684 2010-10-03 Michael Albinus <michael.albinus@gmx.de>
685
686 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
687 (Fdbus_init_bus): ... here. (Bug#7113)
688
689 2010-10-03 Glenn Morris <rgm@gnu.org>
690
691 * buffer.c (before-change-functions, after-change-functions):
692 Three-year overdue doc fix following 2007-08-13 change.
693
694 2010-10-02 Kenichi Handa <handa@m17n.org>
695
696 * coding.c (coding_inherit_eol_type): If parent doesn't specify
697 eol-format, inherit from the system's default.
698 (complement_process_encoding_system): Make a new coding system
699 inherit the original eol-format.
700
701 2010-09-30 Kenichi Handa <handa@m17n.org>
702
703 * coding.c (complement_process_encoding_system): New function.
704
705 * coding.h (complement_process_encoding_system): Extern it.
706
707 * callproc.c (Fcall_process): Complement the coding system for
708 encoding arguments.
709 (Fcall_process_region): Complement the coding system for encoding
710 the input to the process.
711
712 * process.c (Fstart_process): Complement the coding system for
713 encoding arguments.
714 (send_process): Complement the coding system for encoding what
715 sent to the process.
716
717 2010-09-29 Kenichi Handa <handa@m17n.org>
718
719 * xfont.c (xfont_open): Fix setting of font->average_width from
720 :avgwidth property (Bug#7123).
721
722 2010-09-28 Michael Albinus <michael.albinus@gmx.de>
723
724 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
725 is more portable.
726
727 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
728 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
729 has not defined SIGIO.
730
731 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
732
733 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
734 (Bug#7113)
735
736 2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
737
738 * xgselect.c (xg_select): Clear file descriptors not set from
739 rfds and wfds.
740
741 2010-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
742
743 * syntax.c (back_comment): Detect the case where a 1-char comment
744 starter is also the 2nd char of a 2-char comment ender.
745
746 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
747
748 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
749
750 2010-09-12 Jan Djärv <jan.h.d@swipnet.se>
751
752 * xterm.c (get_current_vm_state): New function.
753 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
754 want_fullscreen so set_wm_state calls are few (Bug#7013).
755 (x_handle_net_wm_state): Move code to get_current_vm_state and
756 call that function.
757
758 2010-09-11 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
759
760 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
761
762 2010-09-08 Kenichi Handa <handa@m17n.org>
763
764 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
765 we may use designation or locking-shift.
766
767 2010-09-07 Kenichi Handa <handa@m17n.org>
768
769 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
770 sequence when the source is multibyte.
771
772 2010-08-31 Kenichi Handa <handa@m17n.org>
773
774 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
775 characters.
776
777 * term.c (encode_terminal_code): Fix the previous change.
778 (produce_glyphs): Don't set it->char_to_display here.
779 Don't handle unibyte-display-via-language-environment here.
780 (produce_special_glyphs): Set temp_it.char_to_display before
781 calling produce_glyphs.
782
783 * xdisp.c (get_next_display_element): Set it->char_to_display
784 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
785 characters.
786 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
787 calling PRODUCE_GLYPHS.
788 (append_space_for_newline): Save and store it->char_to_display.
789 Set it->char_to_display before calling PRODUCE_GLYPHS.
790 (extend_face_to_end_of_line): Set it->char_to_display before
791 calling PRODUCE_GLYPHS.
792 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
793 character to its byte value.
794 (get_char_glyph_code): New function.
795 (produce_stretch_glyph): Set it2.char_to_display too before
796 calling x_produce_glyphs.
797 (x_produce_glyphs): Simplify by using the same code for ASCII and
798 non-ASCII characters. Don't set it->char_to_display here.
799 Don't handle unibyte-display-via-language-environment here. For a
800 character of no glyph, use font->space_width instead of FONT_WIDTH.
801
802 2010-08-29 Kenichi Handa <handa@m17n.org>
803
804 * term.c (encode_terminal_code): Encode byte chars to the
805 correspnding bytes.
806
807 2010-08-17 Andreas Schwab <schwab@linux-m68k.org>
808
809 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
810 instead of SAFE_ALLOCA.
811
812 2010-08-17 Chong Yidong <cyd@stupidchicken.com>
813
814 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
815 (Bug#6214).
816
817 2010-08-14 Jan Djärv <jan.h.d@swipnet.se>
818
819 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
820
821 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
822
823 * doc.c (Fsnarf_documentation): Initialize skip_file before
824 build-files test.
825
826 2010-08-09 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
827
828 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
829 New definitions.
830 (HAVE_TERMIO): Remove.
831
832 2010-08-06 Kenichi Handa <handa@m17n.org>
833
834 * charset.c: Include <stdlib.h>
835 (struct charset_sort_data): New struct.
836 (charset_compare): New function.
837 (Fsort_charsets): New function.
838 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
839
840 * coding.c (decode_coding_iso_2022): Fix checking of dimension
841 number in CTEXT extended segment.
842
843 2010-08-01 Juanma Barranquero <lekktu@gmail.com>
844
845 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
846 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
847
848 2010-07-30 Juanma Barranquero <lekktu@gmail.com>
849
850 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
851 (Fhash_table_size): Fix typos in docstrings.
852 (Fmake_hash_table): Doc fix.
853
854 2010-07-28 Juanma Barranquero <lekktu@gmail.com>
855
856 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
857 Doc fix (bug#5625).
858
859 2010-07-27 Ken Brown <kbrown@cornell.edu>
860
861 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
862 the MSDOS definition.
863
864 2010-07-25 Christoph Scholtes <cschol2112@gmail.com>
865
866 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
867
868 2010-07-22 Christoph Scholtes <cschol2112@gmail.com>
869
870 * window.c (Fwindow_height): Doc fix (bug#6518).
871
872 2010-07-21 Juanma Barranquero <lekktu@gmail.com>
873
874 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
875
876 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
877
878 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
879 is related to the menu bar (Bug#6499).
880
881 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
882
883 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
884
885 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
886
887 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
888 i.e. don't put back ButtonRelease (Bug#6608).
889
890 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
891 instead of Window. Call xg_event_is_for_menubar when
892 USE_GTK (Bug#6499).
893
894 * gtkutil.h (xg_event_is_for_menubar): Declare.
895
896 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
897
898 2010-07-14 Eli Zaretskii <eliz@gnu.org>
899
900 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
901 when it's the same as the old foreground. (Bug#6609)
902
903 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
904
905 * xfaces.c (realize_face): Garbage the frame if a face is removed
906 (Bug#6593).
907
908 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
909
910 * keyboard.c: Remove duplicate <setjmp.h>.
911 (read_key_sequence): Remove volatile qualifiers.
912
913 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
914
915 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
916 (struct glyph_row): New members left_fringe_offset and
917 right_fringe_offset.
918
919 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
920 specially.
921 * w32term.c (w32_draw_fringe_bitmap): Likewise.
922 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
923
924 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
925 Take account of bitmap offset.
926 (draw_window_fringes): Take account of window vscroll.
927 (update_window_fringes): Likewise. Extend top-aligned top indicator
928 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
929 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
930 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
931
932 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
933
934 * w32fns.c (Qtooltip): Declare.
935 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
936
937 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
938
939 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
940 grab on just Press (Bug#6499).
941
942 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
943
944 * frame.c (Qtooltip): New var.
945 (delete_frame): Use it. Fix faulty if statement. Don't update
946 mode line for tooltip frames. Suggested by Martin Rudalics.
947
948 * xfns.c (x_create_tip_frame):
949 * w32fns.c (x_create_tip_frame): Use it.
950
951 2010-06-30 Naohiro Aota <naota@elisp.net> (tiny change)
952
953 * xftfont.c (xftfont_open): Check font width one by one also when
954 spacing is dual.
955
956 * ftfont.c (ftfont_open): Ditto.
957
958 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
959
960 * alloc.c (Fmake_byte_code): Don't access undefined argument
961 (Bug#6517).
962
963 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
964
965 * xdisp.c (next_element_from_image): Ensure that after-strings are
966 read the next time we hit handle_stop (Bug#1336).
967
968 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
969
970 * lread.c (read1): Signal error if #s is not followed by paren.
971
972 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
973
974 * image.c (free_image): Mark frame as garbaged (Bug#6426).
975
976 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
977
978 2010-06-15 Glenn Morris <rgm@gnu.org>
979
980 * editfns.c (Fbyte_to_string): Pacify compiler.
981
982 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
983
984 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
985 Check `object's type before accessing its guts.
986
987 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
988
989 * minibuf.c (Fall_completions): Add more checks.
990
991 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
992
993 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
994
995 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
996
997 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
998 address. (Bug#6346)
999
1000 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
1001
1002 * ccl.c (Fccl_program_p): Fix typo in docstring.
1003
1004 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
1005
1006 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
1007 of bug#6305).
1008
1009 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
1010
1011 * xdisp.c (redisplay_window): After redisplay, check if point is
1012 still valid before setting it (Bug#6177).
1013
1014 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
1015
1016 * s/netbsd.h: If terminfo is found, use it in preference to
1017 termcap. (Bug#6190) [Backport from trunk]
1018
1019 2010-05-20 Kevin Ryde <user42@zip.com.au>
1020
1021 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
1022 (Voverriding_terminal_local_map, Vsystem_key_alist)
1023 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
1024
1025 2010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
1026
1027 * editfns.c (Fbyte_to_string): New function.
1028
1029 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
1030
1031 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
1032 prevent stack overflow if number of arguments is too large
1033 (Bug#6214).
1034
1035 2010-05-11 Eli Zaretskii <eliz@gnu.org>
1036
1037 * makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(SRC)/w32.h.
1038
1039 * w32fns.c: Include w32.h.
1040 (Fw32_shell_execute): Decode the error message before passing it
1041 to `error'. (Bug#6126)
1042
1043 2010-05-11 Karel Klic <kklic@redhat.com>
1044
1045 * ftfont.c: Fix incorrect parentheses of #if condition for
1046 definining M17N_FLT_USE_NEW_FEATURE.
1047
1048 2010-05-07 Chong Yidong <cyd@stupidchicken.com>
1049
1050 * Version 23.2 released.
1051
1052 2010-04-30 Andreas Schwab <schwab@linux-m68k.org>
1053
1054 * composite.c (autocmp_chars): Save point as marker before calling
1055 auto-composition-function (Bug#5984).
1056
1057 * lisp.h (restore_point_unwind): Add prototype.
1058
1059 * fileio.c (restore_point_unwind): Remove static attribute.
1060
1061 2010-04-23 Kenichi Handa <handa@m17n.org>
1062
1063 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
1064 new feature of libotf and m17n-flt.
1065 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
1066 Call OTF_check_features even if no specific feature is given.
1067 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
1068 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
1069 that OUT is NULL. Use OTF_drive_gsub_with_log and
1070 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
1071 OTF_drive_gpos.
1072 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
1073 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
1074 Setup mflt_enable_new_feature and mflt_try_otf.
1075
1076 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
1077
1078 * dired.c (Ffile_attributes): Fix typo in docstring.
1079
1080 2010-04-13 Adrian Robert <Adrian.B.Robert@gmail.com>
1081
1082 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1083 NSInteger (Bug#5811).
1084
1085 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1086
1087 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1088 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1089
1090 2010-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1091
1092 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1093
1094 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
1095
1096 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
1097 FRAME_LINE_TO_PIXEL_Y.
1098
1099 * xterm.c (x_set_window_size_1): Don't add border_width/height to
1100 pixelwidth/height.
1101
1102 2010-04-05 Chong Yidong <cyd@stupidchicken.com>
1103
1104 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1105 terminal frames (Bug#5837).
1106
1107 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
1108
1109 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
1110 * nsterm.h: Fix prototype.
1111
1112 2010-03-31 Eli Zaretskii <eliz@gnu.org>
1113
1114 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
1115 in this function. (Bug#5703)
1116
1117 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
1118
1119 * nsterm.h: Fix last change.
1120
1121 2010-03-30 Bernhard Herzog <bh@intevation.de> (tiny change)
1122
1123 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
1124
1125 2010-03-30 Jan Djärv <jan.h.d@swipnet.se>
1126
1127 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
1128 invisible (Bug#5766).
1129
1130 2010-03-29 Adrian Robert <adrian.b.robert@gmail.com>
1131
1132 * xdisp.c (x_consider_frame_title, update_window_cursor): Remove
1133 HAVE_NS conditionals.
1134 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
1135
1136 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
1137 filename for the title.
1138 (ns_set_doc_edited): Do nothing if the selected window is a
1139 minibuffer window.
1140
1141 * nsterm.h: Add prototypes for ns_set_name_as_filename and
1142 ns_set_doc_edited.
1143
1144 * nsterm.m: Remove unneeded prototype.
1145
1146 2010-03-28 Glenn Morris <rgm@gnu.org>
1147
1148 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
1149 in the DOC file. (Bug#5336)
1150
1151 2010-03-24 Chong Yidong <cyd@stupidchicken.com>
1152
1153 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
1154
1155 2010-03-20 Jan Djärv <jan.h.d@swipnet.se>
1156
1157 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
1158
1159 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
1160
1161 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
1162
1163 2010-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1164
1165 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
1166 XLoadQueryFont.
1167
1168 2010-03-16 Kenichi Handa <handa@m17n.org>
1169
1170 * coding.c (decode_coding_ccl): Fix previous change for the
1171 multibyte case.
1172 (encode_coding_ccl): Don't setup ccl program here. Fix for the
1173 case that the output buffer is fullfilled.
1174 (encode_coding): Setup ccl program here.
1175
1176 2010-03-15 Andreas Politz <politza@fh-trier.de> (tiny change)
1177
1178 * editfns.c (Fformat): Account for string precision when computing
1179 field width (Bug#5710).
1180
1181 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
1182
1183 Make it possible to C-g in a tight bytecode loop again (bug#5680).
1184 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
1185 (QUIT): Use it to consolidate code and remove redundancy.
1186 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
1187
1188 * regex.c (regex_compile): Setup gl_state as well.
1189
1190 * syntax.c (skip_chars): Setup gl_state (bug#3823).
1191 (in_classes): Use CONSP before XCAR/XCDR.
1192
1193 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
1194
1195 * keymap.c (Fwhere_is_internal): Use Fequal to compare
1196 definitions, so that keyboard macros are correctly handled
1197 (Bug#5481).
1198
1199 2010-03-02 Eli Zaretskii <eliz@gnu.org>
1200
1201 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
1202 text that could be relocated inside the call to emacs_mule_char.
1203 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
1204 (CODING_DECODE_CHAR): Add a comment describing its purpose.
1205
1206 2010-03-02 Kenichi Handa <handa@m17n.org>
1207
1208 * character.c (parse_str_as_multibyte): Fix handling of the
1209 multibyte form of raw-bytes.
1210 (str_as_multibyte): Likewise.
1211
1212 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
1213 form of raw-bytes.
1214
1215 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
1216
1217 * charset.c (load_charset_map_from_file)
1218 (load_charset_map_from_vector): Zero out allocated
1219 charset_map_entries before using them.
1220
1221 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
1222
1223 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
1224
1225 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
1226
1227 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
1228 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
1229
1230 2010-02-26 Kenichi Handa <handa@m17n.org>
1231
1232 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
1233
1234 * xdisp.c (reseat_to_string): Fix previous change.
1235
1236 2010-02-26 David Reitter <david.reitter@gmail.com>
1237
1238 * nsfont.m (nsfont_draw): ns_antialias_text should be a
1239 Lisp_Object (Bug#4736).
1240
1241 2010-02-25 Kenichi Handa <handa@m17n.org>
1242
1243 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
1244
1245 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
1246
1247 * xterm.c (XTflash): Move declarations before statements.
1248
1249 * gtkutil.c (xg_get_gdk_display): Remove (unused).
1250 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
1251 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
1252 (xg_create_tool_bar): Remove unused variables.
1253 (x_wm_set_size_hint): Move declarations before statements.
1254 (xg_create_frame_widgets): Remove variable grav.
1255
1256 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
1257
1258 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
1259
1260 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1261
1262 * term.c (fatal): Add a final \n if needed (bug#5596).
1263
1264 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
1265
1266 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
1267
1268 2010-02-18 Glenn Morris <rgm@gnu.org>
1269
1270 * callint.c (Finteractive): Doc fix.
1271
1272 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
1273
1274 * coding.c (record_conversion_result):
1275 Handle CODING_RESULT_INSUFFICIENT_DST.
1276 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
1277 memory allocation error.
1278
1279 2010-02-17 Kenichi Handa <handa@m17n.org>
1280
1281 * coding.c (decode_coding_ccl): Don't setup ccl program here.
1282 Fix for the case that the output buffer is fullfilled.
1283 (decode_coding): Setup ccl program here. Keep looping when the
1284 decoder stopped because the output buffer is
1285 fullfilled (bug#5534).
1286
1287 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
1288
1289 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
1290
1291 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
1292 bug #5571.
1293 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
1294 overdrawn.
1295
1296 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
1297
1298 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
1299 doing_interact here.
1300 (ice_connection_closed): New function.
1301 (x_session_check_input, smc_die_CB, ice_io_error_handler)
1302 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
1303 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
1304 returns I/O error.
1305 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
1306 bug #5512.
1307
1308 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
1309
1310 * nsfont.m (nsfont_open): The system's value for the font descent
1311 is negative, so round it down to avoid clipping.
1312
1313 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
1314
1315 * charset.c (load_charset_map_from_file)
1316 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
1317 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
1318
1319 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
1320
1321 * charset.c (load_charset_map_from_file): Allocate large
1322 charset_map_entries structure on the heap rather than the stack.
1323 (Bug#5526).
1324
1325 2010-01-31 Kenichi Handa <handa@m17n.org>
1326
1327 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
1328 size in NAME is invalid, return -1 (Bug#5396).
1329
1330 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
1331
1332 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
1333 <deactivated@gmail.com> (Bug#3605).
1334
1335 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
1336
1337 * fileio.c (Frename_file): Correctly rename symlinks to
1338 directories (Bug#5496).
1339
1340 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
1341
1342 * nsterm.m (ns_ring_bell): Handle visible bell like X.
1343
1344 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
1345
1346 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
1347
1348 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
1349
1350 * frame.c (DEFAULT_ROWS): Change default to 35.
1351
1352 * xfns.c (x_default_font_parameter): Change default XFT font to
1353 monospace-10 (Bug#3643).
1354
1355 2010-01-29 Eli Zaretskii <eliz@gnu.org>
1356
1357 * w32inevt.c (key_event): Remove unnecessary comparison of
1358 event->uChar.AsciiChar with 128.
1359
1360 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
1361
1362 * fileio.c (Frename_file): Fix last change (Bug#5487).
1363
1364 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
1365
1366 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
1367
1368 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
1369
1370 * xfns.c (Fx_create_frame): Remove window size matching code from
1371 2010-01-15.
1372 (x_get_current_desktop, x_get_desktop_workarea): Remove.
1373
1374 2010-01-27 Jason Rumney <jasonr@gnu.org>
1375
1376 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
1377 (key_event): Use unicode for characters 128 and higher (Bug#4567).
1378
1379 2010-01-27 Kenichi Handa <handa@m17n.org>
1380
1381 * regex.c (analyse_first): Fix setting of fastmap for unibyte
1382 pattern string (Bug#4209).
1383
1384 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
1385
1386 * fileio.c (Frename_file): Call copy-directory and
1387 delete-directory for directories, in order to handle cross-device
1388 renaming (Bug#3353).
1389
1390 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
1391
1392 * xfns.c (Fx_create_frame): If frame height is too big, try
1393 sizes 24 and 10. Bug #3643.
1394
1395 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
1396
1397 Try and fix bug#788, hopefully for real this time.
1398 * keymap.c (shadow_lookup): Add `remap' arg.
1399 (describe_map, describe_vector): Update calls to shadow_lookup.
1400 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
1401 `remapped' so this flag is applicable to `sequence'. Be careful to
1402 perform remapping during shadow_lookup check of remapped_sequences.
1403
1404 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
1405
1406 * image.c (png_load): Use png_sig_cmp instead of the obsolete
1407 png_check_sig, which has been removed in libpng 1.4.
1408
1409 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1410
1411 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
1412 lacks this header file).
1413
1414 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1415
1416 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
1417 as in Emacs 22.
1418
1419 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1420
1421 * lisp.h (make_pure_string): String pointer arg now points to const.
1422
1423 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
1424 args now point to const.
1425
1426 2010-01-22 Eli Zaretskii <eliz@gnu.org>
1427
1428 * lread.c (Fload): Don't treat files without .elc extension as
1429 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
1430 them. (bug#5303)
1431
1432 2010-01-20 Kenichi Handa <handa@m17n.org>
1433
1434 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
1435 treat the source as actual byte sequence.
1436
1437 2010-01-19 Alan Mackenzie <acm@muc.de>
1438
1439 Fix spurious before-change-functions invocation from (insert ?\n).
1440 * textprop.c (set_text_properties): Rename parameter
1441 `signal_after_change_p' to `coherent_change_p', and make the
1442 invocation of `modify_region' conditional on it.
1443
1444 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
1445
1446 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
1447 for debug purpose.
1448 (syms_of_xsettings): Declare xft-settings.
1449
1450 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
1451
1452 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
1453
1454 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1455
1456 * xterm.c (event_handler_gdk): Block input (Bug#5037).
1457
1458 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
1459
1460 * emacs.c (standard_args): Adjust arg priorities to reflect how
1461 they are processed in startup.el.
1462
1463 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
1464
1465 * Makefile.in (lisp, shortlisp): Update.
1466
1467 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1468
1469 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
1470 code, link the new kboard into all_kboard before running Lisp code,
1471 and protect the new terminal with GCPRO (Bug#5365).
1472 (x_term_init): Remove unused var `atom'.
1473 (x_delete_display, x_delete_terminal): Remove unused var `i'.
1474
1475 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
1476
1477 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
1478 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
1479 to find out usable size of the desktop. Don't make frames larger than
1480 this. Bug #3643.
1481
1482 2010-01-15 Kenichi Handa <handa@m17n.org>
1483
1484 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
1485
1486 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
1487
1488 * nsterm.m (Qnone): Define.
1489
1490 * nsfns.m (Qnone): Move definition to nsterm.m.
1491
1492 2010-01-14 Kenichi Handa <handa@m17n.org>
1493
1494 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
1495 systems.
1496
1497 2010-01-14 Kenichi Handa <handa@m17n.org>
1498
1499 Make auto-composition work on all buffers even if they are
1500 fundamental mode.
1501
1502 * composite.c (Vauto_composition_mode): New variable.
1503 (composition_compute_stop_pos): Check Vauto_composition_mode
1504 instead of Vauto_composition_function.
1505 (composition_adjust_point, Ffind_composition_internal): Likewise.
1506 (syms_of_composite): Declare Lisp variable
1507 "auto-composition-mode" here.
1508
1509 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
1510
1511 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
1512 during call to vendor-specific-keysyms (Bug#5365).
1513
1514 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1515
1516 * keyboard.c (input_available_signal) [SYNC_INPUT]:
1517 Call SIGNAL_THREAD_CHECK (Bug#5333).
1518
1519 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
1520 Call SIGNAL_THREAD_CHECK.
1521
1522 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
1523
1524 Try to fix bug#5314. This is probably not the final word, tho.
1525 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
1526 recent-auto-save-p as a side-effect.
1527 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
1528 * buffer.c (Fkill_buffer, reset_buffer):
1529 * editfns.c (Fsubst_char_in_region):
1530 * fileio.c (Finsert_file_contents, Fdo_auto_save)
1531 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
1532
1533 2010-01-13 Kenichi Handa <handa@m17n.org>
1534
1535 Display buffer name, etc. in mode line by composing correctly.
1536
1537 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
1538 STRING is not nil.
1539 (display_mode_element): Adjust for the change of
1540 decode_mode_spec and display_line.
1541 (decode_mode_spec): Change arg MULTIBYTE to STRING.
1542 (display_string): Handle the case that STRING is non-null and
1543 LISP_STRING is not nil.
1544
1545 * xterm.c (x_draw_composite_glyph_string_foreground):
1546 Pay attention to s->face->overstrike.
1547
1548 * composite.c (composition_reseat_it): Don't check PT if STRING is
1549 non nil.
1550
1551 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1552
1553 * keyboard.c (read_char): Don't apply previous change when current
1554 buffer is unchanged by command execution.
1555
1556 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
1557
1558 * keyboard.c (read_char): Return after executing from special map.
1559
1560 2010-01-12 Glenn Morris <rgm@gnu.org>
1561
1562 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
1563 bug-gnu-emacs rather than emacs-pretest-bug.
1564
1565 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
1566
1567 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
1568 initializing the Lisp variables that depend on them.
1569
1570 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1571
1572 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
1573 Clear areas that will not be updated after change of menu bar lines.
1574 Clear the menu bar window's current matrix when the window gets empty.
1575
1576 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
1577
1578 * intervals.h, textprop.c (extend_property_ranges): Return value
1579 and args changed. Discard properties that begin at or after the
1580 new end (Bug#5306).
1581
1582 * editfns.c (Fformat): Caller changed.
1583
1584 * nsterm.m (ns_set_default_prefs): Delete function.
1585 (syms_of_nsterm): Initialize ns_command_modifier,
1586 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
1587 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
1588
1589 * xdisp.c (pos_visible_p): Check for invisible text at the correct
1590 position (Bug#4040).
1591
1592 2010-01-09 Eli Zaretskii <eliz@gnu.org>
1593
1594 * editfns.c (Ffloat_time): Doc fix.
1595
1596 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
1597
1598 * xfns.c (Fx_create_frame): Don't create frame larger than display
1599 by default bug#3643.
1600
1601 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1602
1603 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1604 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1605 windows above internal border.
1606
1607 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1608 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1609 windows above internal border.
1610
1611 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1612 tool bar windows specially.
1613
1614 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1615
1616 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1617 specially.
1618 (XTflash): Take account of menu bar height.
1619
1620 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1621 specially.
1622
1623 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
1624
1625 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
1626 also be true before we can return early (bug #5339).
1627
1628 2010-01-06 David Reitter <david.reitter@gmail.com>
1629
1630 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1631 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1632 (Bug#3233).
1633
1634 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
1635
1636 * font.c (font_open_entity): Enable chache and call cached_font_ok
1637 for the driver if defined.
1638 (QCuser_spec): New symbol.
1639 (font_spec_from_name): Save name as user-spec.
1640 (font_load_for_lface): Keep user-spec instead of name.
1641 (font_open_by_name): Save name as user-spec.
1642 (syms_of_font): Initialize QCuser_spec.
1643 (font_clear_prop): Clear name if it exists in font (bug#5157).
1644
1645 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
1646 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1647 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1648
1649 * font.h (struct font_driver): Add cached_font_ok.
1650
1651 * xterm.c (x_clear_frame): Queue draw for scroll bars.
1652
1653 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
1654
1655 * xterm.c (x_new_font): Move code for setting rows/cols before
1656 resizing ...
1657 (x_set_window_size): ... to here. Bug #2568.
1658
1659 * gtkutil.c (xg_clear_under_internal_border): New function.
1660 (xg_frame_resized, xg_frame_set_char_size):
1661 Call xg_clear_under_internal_border.
1662 (xg_update_scrollbar_pos): Clear under old scroll bar position.
1663
1664 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
1665
1666 * keyboard.c (read_key_sequence): Catch keyboard switch after
1667 making a new tty frame (Bug#5095).
1668
1669 2010-01-05 Kenichi Handa <handa@m17n.org>
1670
1671 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1672
1673 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1674
1675 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1676 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1677 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1678
1679 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
1680
1681 * dbusbind.c (xd_add_watch): Improve debug message.
1682 (xd_remove_watch): Improve debug message. If DATA is the session
1683 bus, unset D-Bus session environment.
1684 (Fdbus_init_bus): Pass the bus as argument to
1685 dbus_connection_set_watch_functions. (Bug#5283)
1686
1687 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
1688
1689 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1690
1691 * lread.c (syms_of_lread): Make it clearer that these are the
1692 names of loaded files (Bug#5068).
1693
1694 * eval.c (run_hook_with_args): Handle the case where the global
1695 value has the obsolete single-function form (Bug#5026).
1696
1697 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
1698
1699 * minibuf.c (Fall_completions): Minor optimization.
1700
1701 2009-12-26 Eli Zaretskii <eliz@gnu.org>
1702
1703 * .gdbinit (pgx): Fix display of composite glyphs.
1704 Display cmp.from and cmp.to as well.
1705 (pitx): Fix last change.
1706
1707 2009-12-25 Kenichi Handa <handa@m17n.org>
1708
1709 * composite.h (composition_adjust_point): Update prototype.
1710
1711 * composite.c (composition_reseat_it): Don't make a composition
1712 spanning over point.
1713 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1714 composable characters.
1715 (composition_adjust_point): New arg NEW_PT. Callers changed.
1716
1717 * keyboard.c (command_loop_1): Force redisplay if the last point
1718 was within a composition.
1719 (adjust_point_for_property): Don't adjust point for automatic
1720 composition when called after buffer modification.
1721
1722 2009-12-19 Eli Zaretskii <eliz@gnu.org>
1723
1724 * .gdbinit (pitx): Don't use enum names, use their values.
1725 Remove reference to non-existing value GET_FROM_COMPOSITION.
1726 (pgx): Don't use enum names, use their values.
1727 (pitmethod): New helper command.
1728 (pitx): Use it to display iteration method.
1729 (pgrowit): New command.
1730
1731 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1732
1733 Update dependencies in Makefile.in.
1734
1735 * Makefile.in (alloc.o): Depend on termhooks.h.
1736 (atimer.o): Depend on blockinput.h.
1737 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1738 and frame.h.
1739 (callint.o): Depend on systime.h, coding.h, and composite.h.
1740 (callproc.o): Depend on buffer.h.
1741 (casefiddle.o): Don't depend on charset.h.
1742 (casetab.o): Depend on character.h.
1743 (ccl.o): Depend on composite.h.
1744 (chartab.o): Depend on ccl.h.
1745 (cm.o): Depend on dispextern.h.
1746 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1747 (coding.o): Don't depend on $(INTERVALS_H).
1748 (composite.o): Don't depend on dispextern.h explicitly (it's in
1749 $(INTERVALS_H)). Depend on ccl.h.
1750 (data.o): Depend on systime.h, coding.h, composite.h,
1751 dispextern.h, font.h, and ccl.h.
1752 (dired.o): Depend on composite.h.
1753 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1754 composite.h (it's in $(INTERVALS_H)).
1755 (doc.o): Depend on systime.h, coding.h, and composite.h.
1756 (editfns.o): Don't depend explicitly on dispextern.h.
1757 (emacs.o): Depend on frame.h and coding.h.
1758 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1759 (fileio.o): Depend on frame.h and commands.h. Don't depend
1760 explicitly on dispextern.h.
1761 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1762 composite.h.
1763 (fns.o): Don't depend on termhooks.h.
1764 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1765 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1766 coding.h, $(INTERVALS_H), window.h, xterm.h.
1767 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1768 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1769 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1770 fontset.h, ccl.h, and ftfont.h.
1771 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1772 (gtkutil.o): Depend on dispextern.h and composite.h.
1773 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1774 termhooks.h, and ccl.h.
1775 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1776 (intervals.o): Depend on systime.h and coding.h.
1777 (keyboard.o): Depend on composite.h and coding.h.
1778 (keymap.o): Depend on coding.h and frame.h.
1779 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1780 (macros.o): Depend on systime.h, coding.h, and composite.h.
1781 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1782 and atimer.h.
1783 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1784 dispextern.h explicitly.
1785 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1786 Don't depend explicitly on dispextern.h and composite.h.
1787 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1788 (regex.o): Don't depend on charset.h.
1789 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1790 (search.o): Don't depend explicitly on composite.h.
1791 (sound.o): Depend on atimer.h and systime.h.
1792 (syntax.o): Don't depend explicitly on composite.h.
1793 (sysdep.o): Depend on coding.h and composite.h.
1794 (term.o): Depend on xterm.h and buffer.h.
1795 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1796 (textprop.o): Don't depend on dispextern.h explicitly.
1797 (undo.o): Depend on dispextern.h.
1798 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1799 dispextern.h and composite.h explicitly.
1800 (xdisp.o): Depend on ccl.h.
1801 (xfaces.o): Depend on coding.h and ccl.h.
1802 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1803 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1804 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1805 ftfont.h.
1806 (xgselect.o): New dependency.
1807 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1808 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1809 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1810 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1811 (xsmfns.o): Depend on frame.h and dispextern.h.
1812 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1813 sysselect.h.
1814
1815 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1816
1817 * font.c (Fclear_font_cache): Pass correct cache argument to
1818 font_clear_cache.
1819
1820 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1821
1822 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1823 twice.
1824
1825 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
1826
1827 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1828 calling file-remote-p. Reported by Jim Meyering.
1829
1830 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
1831
1832 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
1833 avoid compiler warnings. (Bug #5217)
1834
1835 2009-12-14 Kenichi Handa <handa@m17n.org>
1836
1837 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1838 in 8-bit encoding.
1839
1840 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
1841
1842 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1843 tooltip windows.
1844
1845 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1846
1847 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1848 Xatom_net_window_type.
1849
1850 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1851 Xatom_net_window_type.
1852
1853 * xterm.c (my_log_handler): New function.
1854 (x_term_init): Set my_log_handler as log handler during gtk_init
1855 so we can filter out buggy messages. (Bug #5120).
1856
1857 * xterm.c (xg_scroll_callback): Parameter list changed,
1858 use parameter GtkScrollType to determine scroll/line/page.
1859 Only allow dragging if a button < 4 is grabbed (bug #5177).
1860 (xg_end_scroll_callback): New function.
1861 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1862 xg_create_scroll_bar.
1863
1864 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1865 (scroll_end_callback): Remove.
1866 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1867 button-release-event. Replace value-changed event with change-value,
1868 bug #5177,
1869 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1870 bug #5177.
1871
1872 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1873 (xg_create_scroll_bar): Add GCallback end_callback.
1874
1875 * xftfont.c (QClcdfilter): New variable.
1876 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1877 (syms_of_xftfont): Initialize QClcdfilter.
1878
1879 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1880
1881 * xsettings.c (struct xsettings): Add member seen.
1882 (parse_xft_settings): Update member seen with what we have read.
1883 Return non-zero if Xft-settings have been parsed, 0 otherwise.
1884 (apply_xft_settings): Only update Xft settings with what member seen
1885 indicates as new.
1886
1887 2009-12-12 Eli Zaretskii <eliz@gnu.org>
1888
1889 * dispextern.h (struct text_pos): Use EMACS_INT;
1890 (struct glyph): Use EMACS_INT for charpos.
1891 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1892 region_beg_charpos, region_end_charpos,
1893 redisplay_end_trigger_charpos, and also for
1894 iterator_stack_entry.end_charpos and
1895 iterator_stack_entry.stop_charpos.
1896
1897 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1898
1899 * gtkutil.c (scroll_end_callback): New function (bug #5177).
1900 (xg_create_scroll_bar): Call scroll_end_callback on button release
1901 event (bug #5177).
1902 (xg_event_is_for_scrollbar): != replaced with ==.
1903
1904 2009-12-12 Kenichi Handa <handa@m17n.org>
1905
1906 * ftfont.c (struct ftfont_info): New member matrix.
1907 (ftfont_open): Setup xftfont_info->matrix.
1908 (MFLTFontFT): New member matrix.
1909 (FLOOR, CEIL, ROUND): New macros.
1910 (ftfont_get_metrics): Handle matrix transformation.
1911 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1912
1913 * xftfont.c (struct xftfont_info): New member matrix.
1914 (xftfont_open): Setup xftfont_info->matrix.
1915
1916 2009-12-10 Kenichi Handa <handa@m17n.org>
1917
1918 * xdisp.c (append_space_for_newline): Consider face-remapping.
1919
1920 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1921
1922 * xsettings.c: Include "keyboard.h".
1923
1924 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1925
1926 Fix implicit function declarations.
1927 * cmds.c: Include "frame.h".
1928 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1929 * frame.h: Move declaration of delete_frame outside of
1930 HAVE_WINDOW_SYSTEM.
1931
1932 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1933
1934 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1935
1936 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1937 GTK builds.
1938
1939 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1940
1941 * unexelf.c (unexec): Don't search for .data twice.
1942
1943 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
1944
1945 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1946 if push failed.
1947 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1948 of push_display_prop (Bug#5000).
1949
1950 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1951 value of font_list_entities (Bug#5085).
1952
1953 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
1954
1955 Fix `string-to-number' to deal consistently with integers and floats.
1956 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1957 trailing characters, not just whitespace.
1958 (read1): Pass new arg 0 to keep old behavior.
1959 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1960 trailing chars, as it is already done for integers. Doc fixes.
1961 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1962
1963 2009-12-04 Eli Zaretskii <eliz@gnu.org>
1964
1965 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1966 Delete unused enumeration value.
1967
1968 2009-12-03 Eli Zaretskii <eliz@gnu.org>
1969
1970 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1971
1972 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1973
1974 * process.c (Fmake_network_process): Fix up the tests for
1975 "connectionless socket", so they DTRT for seqpacket sockets as well.
1976
1977 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1978
1979 * process.c (Qseqpacket): New symbol.
1980 (HAVE_SEQPACKET): New macro.
1981 (Fmake_network_process): Accept new :type `seqpacket'.
1982 (init_process): Add `seqpacket' feature when applicable.
1983 (syms_of_process): Initialize Qseqpacket.
1984
1985 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1986
1987 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1988 if entity is Qnil.
1989
1990 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1991
1992 * print.c (print_preprocess): Preprocess the key_and_value table of
1993 hashtables, even tho they're "hidden" (bug#5082).
1994
1995 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1996
1997 * frame.c (frame_make_pointer_invisible)
1998 (frame_make_pointer_visible): Declare f before statements.
1999
2000 2009-11-28 Eli Zaretskii <eliz@gnu.org>
2001
2002 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
2003 omitted dependencies on lisp.h.
2004
2005 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
2006
2007 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
2008 is NULL.
2009
2010 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
2011
2012 * frame.c (frame_make_pointer_invisible)
2013 (frame_make_pointer_visible): Just return if there isn't any selected
2014 frame.
2015
2016 * search.c (simple_search): Remove warning by making *p const.
2017
2018 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
2019
2020 * xdisp.c (power_letter): Remove duplicate const.
2021
2022 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
2023
2024 * term.c (delete_tty): Remove check for last terminal (bug#4970).
2025
2026 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
2027 defaults (bug #5025).
2028
2029 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
2030
2031 * insdel.c (adjust_markers_for_delete): Move it in the
2032 right direction! (bug#4803)
2033
2034 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2035
2036 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
2037
2038 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
2039
2040 2009-11-24 Glenn Morris <rgm@gnu.org>
2041
2042 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
2043
2044 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
2045
2046 * Makefile.in: Must create deps for ecrt0.o in its rule.
2047
2048 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
2049 because that is what Gtk+ font dialog understands.
2050
2051 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
2052 of Fcopy_sequence.
2053 (font_open_by_name): Put name given into QCname for font-object returned.
2054
2055 * frame.c (x_set_font): Save original font name as frame parameter
2056 font-parameter.
2057
2058 * xsettings.c (set_default_xft_settings): New function.
2059 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
2060 is found.
2061
2062 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
2063
2064 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
2065 searching backwards through multibyte buffer.
2066
2067 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
2068
2069 * xterm.c: #include xgselect.h.
2070 (x_initialize): Call xgselect_initialize.
2071
2072 * xsettings.c (something_changedCB): C++ comments => C comments.
2073 (init_gconf): Do not deal with any GLib file descriptors, xg_select
2074 does that now.
2075
2076 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
2077 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
2078 (scroll_bar_button_cb): Remove.
2079 (create_menus): C++ comments => C comments. Don't bind grab-notify
2080 event.
2081 (xg_create_scroll_bar): Don't bind button-press-event and
2082 button-release-event.
2083
2084 * process.c: Include xgselect.h if defined (USE_GTK) ||
2085 defined (HAVE_GCONF).
2086 (wait_reading_process_output): Call xg_select for the same condition.
2087
2088 * xgselect.c (xg_select): New function to better integrate with
2089 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
2090
2091 * xgselect.h: New file, declare xg_select, xgselect_initialize.
2092
2093 * Makefile.in (XOBJ): Add xgselect.o.
2094
2095 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
2096
2097 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
2098 Remove ignored second argument. All callers changed.
2099 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
2100 (RE_STRING_CHAR_AND_LENGTH): Likewise.
2101 * xdisp.c (string_char_and_length): Likewise.
2102
2103 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
2104
2105 * xterm.c (x_new_font):
2106 * print.c (print_object):
2107 * cmds.c (Fself_insert_command): Move declarations before statements.
2108
2109 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
2110
2111 * s/cygwin.h: Remove unneeded linker flags.
2112
2113 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
2114
2115 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
2116
2117 * xsettings.h: Declare xsettings_get_system_font.
2118
2119 * xsettings.c (xsettings_get_system_font): New function.
2120 (init_gconf): No use initiating gconf unless we have Xft also.
2121 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
2122 HAVE_GCONF.
2123
2124 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
2125 add a blank entry so it doesn't collapse into nothing.
2126
2127 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2128
2129 * lread.c (Funintern): Comment out last change.
2130
2131 2009-11-19 Richard Stallman <rms@gnu.org>
2132
2133 * lread.c (Funintern): Error if symbol is t or nil.
2134
2135 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2136
2137 * insdel.c (make_gap_larger): Don't make as many assumptions about the
2138 representation of Lisp integers.
2139 Reported by MJ Chan <mjchan.inbox@gmail.com>.
2140
2141 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2142
2143 * lisp.h: Remove declaration of Ffont_get_system_font.
2144 * xfns.c: Move include of "xsettings.h".
2145 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
2146
2147 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2148
2149 * xsettings.c (something_changedCB, Ffont_get_system_font):
2150 Check use_system_font.
2151 (syms_of_xsettings): DEFVAR font-use-system-font.
2152
2153 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2154
2155 * xfns.c (x_default_font_parameter): Remove dead assignment.
2156
2157 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
2158
2159 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2160
2161 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
2162 not have FC_LCD_*. #define them if not there.
2163
2164 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
2165
2166 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
2167
2168 * xterm.c (handle_one_xevent): Call xft_settings_event for
2169 ClientMessage, PropertyNotify and DestroyNotify.
2170 (x_term_init): If we have XFT, get DPI from Xft.dpi.
2171 Call xsettings_initialize.
2172
2173 * xftfont.c (xftfont_fix_match): New function.
2174 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
2175 Call xftfont_fix_match after XftFontMatch.
2176
2177 * xfont.c (xfont_driver): Initialize all members.
2178
2179 * xfns.c (x_default_font_parameter):
2180 Try font from Ffont_get_system_font.
2181 Do not get font from x_default_parameter if we got one from
2182 Ffont_get_system_font.
2183 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
2184
2185 * w32font.c (w32font_driver): Initialize all members.
2186
2187 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
2188
2189 * lisp.h: Declare syms_of_xsettings.
2190
2191 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
2192 Handle CONFIG_CHANGED_EVENT.
2193
2194 * ftfont.c (ftfont_filter_properties): New function.
2195
2196 * frame.c (x_set_font): Remove unused variable lval.
2197
2198 * font.h (struct font_driver): Add filter_properties.
2199
2200 * font.c (font_put_extra): Don't return if val is nil, it means
2201 boolean option is off.
2202 (font_parse_fcname): Collect all extra properties in extra_props
2203 and call filter_properties for all drivers with extra_props and
2204 font as parameter.
2205 (font_open_entity): Do not use cache, it does not pick up new
2206 fontconfig settings like hinting.
2207 (font_load_for_lface): If spec had a name in it, store it in entity.
2208
2209 * emacs.c (main): Call syms_of_xsettings.
2210
2211 * config.in: HAVE_GCONF is new.
2212
2213 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
2214 xsettings.o is new.
2215
2216 2009-11-17 Kenichi Handa <handa@m17n.org>
2217
2218 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
2219 back to the default font in case that no suitable font is found.
2220
2221 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2222
2223 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
2224 Suggested by Chad Brown <yandros@mit.edu>.
2225 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
2226
2227 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
2228
2229 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
2230
2231 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
2232
2233 * Makefile.in: Ignore errors from mkdir when creating deps directory.
2234
2235 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
2236
2237 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
2238 has a parent.
2239
2240 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
2241 dependency files in deps/. Include those files into Makefile.
2242
2243 * config.in: Generated (AUTO_DEPEND).
2244
2245 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
2246
2247 * dbusbind.c (Vdbus_registered_objects_table): Rename from
2248 Vdbus_registered_functions_table, because it contains also
2249 properties. Fix docstring.
2250 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
2251
2252 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
2253
2254 * alloc.c (mark_object): Don't reprocess marked strings.
2255 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
2256 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
2257
2258 2009-11-13 Kenichi Handa <handa@m17n.org>
2259
2260 * category.c (word_boundary_p): Adjust for the change of the
2261 semantics of Vword_combining_categories.
2262 (Vword_combining_categories): Describe the slight change of the
2263 semantics.
2264
2265 2009-11-13 Eli Zaretskii <eliz@gnu.org>
2266
2267 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
2268
2269 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
2270
2271 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
2272
2273 * xdisp.c (syms_of_xdisp): Fix typo in last change.
2274
2275 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
2276
2277 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
2278
2279 2009-11-11 David Reitter <david.reitter@gmail.com>
2280
2281 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
2282 variables to fix 2009-11-09 change.
2283
2284 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
2285
2286 * process.c (ifflag_def): Make flag_sym constant.
2287 (Fnetwork_interface_info): Use a constant pointer.
2288 (ifflag_table):
2289 * xfns.c (cursor_bits):
2290 * xdisp.c (power_letter):
2291 * termcap.c (speeds, esctab):
2292 * sysdep.c (baud_convert):
2293 * keyboard.c (lispy_accent_codes, modifier_names):
2294 * image.c (xbm_format, xpm_format, pbm_format, png_format)
2295 (jpeg_format, tiff_format, gif_format, svg_format)
2296 (interlace_start, interlace_increment, gs_format):
2297 * gtkutil.c (separator_names):
2298 * fringe.c (swap_nibble):
2299 * fns.c (base64_value_to_char, base64_char_to_value):
2300 * fileio.c (make_temp_name_tbl):
2301 * coding.c (suffixes): Make constant.
2302
2303 * frame.c (make_initial_frame):
2304 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
2305 build_string.
2306 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
2307
2308 * s/freebsd.h:
2309 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
2310
2311 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
2312 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
2313
2314 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
2315 * xterm.c (syms_of_xterm):
2316 * xfaces.c (syms_of_xfaces):
2317 * xdisp.c (syms_of_xdisp):
2318 * lread.c (syms_of_lread):
2319 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
2320 build_string.
2321
2322 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
2323
2324 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2325
2326 * fns.c (Fplist_get): Merge the active and the commented out code.
2327
2328 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2329
2330 * keyboard.h: Declare timer_check.
2331
2332 * keyboard.c (timer_check_2): New function that does what the old
2333 timer_check did.
2334 (timer_check): Call timer_check_2 until -1 or a non-zero time is
2335 returned, i.e. don't return -1 with timers pending.
2336
2337 * process.c: Remove extern declaration of timer_check.
2338
2339 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
2340 even if timer_check returned -1.
2341
2342 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
2343 xg_dialog_data.
2344 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
2345 the event loop.
2346 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
2347 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
2348 Destroy the dialog after xg_dialog_run.
2349
2350 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2351
2352 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
2353
2354 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2355
2356 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
2357
2358 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
2359
2360 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
2361
2362 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
2363
2364 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
2365 w32menu.c, and nsmenu.m.
2366 Simplify the obsolete case where position is nil.
2367 (cleanup_popup_menu): New function, moved from nsmenu.m.
2368 (struct skp): Remove slot `notreal'.
2369 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
2370 adjust callers.
2371 (single_menu_item): Adjust call to parse_menu_item.
2372 (syms_of_menu): Defsubr x-popup-menu.
2373 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
2374 (keymap_panes): Don't export any more.
2375 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
2376 (xmenu_show): Declare.
2377 * keyboard.c (parse_menu_item): Remove arg `notreal'.
2378 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
2379 * keyboard.h (parse_menu_item): Update declaration.
2380 * xmenu.c (Fx_popup_menu): Remove.
2381 (syms_of_xmenu): Don't defsubr x-popup-menu.
2382 * w32menu.c (Fx_popup_menu): Remove.
2383 (syms_of_w32menu): Don't defsubr x-popup-menu.
2384 * nsmenu.m (cleanup_popup_menu): Remove.
2385 (ns_menu_show): Rename from ns_popup_menu and remove all the code
2386 moved to menu.c's Fx_popup_menu.
2387 (Fx_popup_menu): Remove.
2388 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
2389 menu_items (it's done in menu.c already).
2390
2391 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
2392
2393 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
2394 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
2395
2396 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
2397
2398 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
2399 xmenu_show. Hide any tooltip before opening a menu.
2400 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
2401 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
2402
2403 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2404
2405 Let integers use up 2 tags to give them one extra bit and thus double
2406 their range.
2407 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
2408 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
2409 New macros.
2410 (enum Lisp_Type): Use them. Give explicit values.
2411 (Lisp_Type_Limit): Remove.
2412 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
2413 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
2414 Pay attention to USE_2_TAGS_FOR_INTS.
2415 (INTEGERP): Use LISP_INT_TAG_P.
2416 * fns.c (internal_equal): Simplify the default case.
2417 (sxhash): Use case_Lisp_Int.
2418 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
2419 any more.
2420 (Ftype_of): Use case_Lisp_Int.
2421 (store_symval_forwarding): Take into account the fact that Ints can
2422 now have more than one tag.
2423 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
2424 buffer_slot_type_mismatch):
2425 * xfaces.c (face_attr_equal_p):
2426 * print.c (print_object):
2427 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
2428 Use case_Lisp_Int.
2429
2430 2009-11-06 Eli Zaretskii <eliz@gnu.org>
2431
2432 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
2433
2434 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
2435 warning.
2436
2437 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
2438
2439 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
2440
2441 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
2442
2443 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
2444 ButtonPressRelease and MotionNotify (bug#4870).
2445
2446 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
2447
2448 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
2449
2450 * xterm.c (syms_of_xterm):
2451 * xselect.c (syms_of_xselect):
2452 * xmenu.c (syms_of_xmenu):
2453 * xfns.c (syms_of_xfns):
2454 * xfaces.c (syms_of_xfaces):
2455 * xdisp.c (syms_of_xdisp):
2456 * window.c (syms_of_window):
2457 * w32fns.c (syms_of_w32fns):
2458 * undo.c (syms_of_undo):
2459 * textprop.c (syms_of_textprop):
2460 * terminal.c (syms_of_terminal):
2461 * syntax.c (syms_of_syntax):
2462 * sound.c (syms_of_sound):
2463 * search.c (syms_of_search):
2464 * print.c (syms_of_print):
2465 * minibuf.c (syms_of_minibuf):
2466 * macros.c (syms_of_macros):
2467 * keymap.c (syms_of_keymap, initial_define_key)
2468 (initial_define_lispy_key):
2469 * keyboard.c (syms_of_keyboard):
2470 * insdel.c (syms_of_insdel):
2471 * image.c (syms_of_image):
2472 * fringe.c (syms_of_fringe):
2473 * frame.c (syms_of_frame):
2474 * fontset.c (syms_of_fontset):
2475 * fns.c (syms_of_fns):
2476 * fns.c (syms_of_fns):
2477 * fileio.c (syms_of_fileio):
2478 * fileio.c (syms_of_fileio):
2479 * eval.c (syms_of_eval):
2480 * doc.c (syms_of_doc):
2481 * dispnew.c (syms_of_display):
2482 * dired.c (syms_of_dired):
2483 * dbusbind.c (syms_of_dbusbind):
2484 * data.c (syms_of_data):
2485 * composite.c (syms_of_composite):
2486 * coding.c (syms_of_coding):
2487 * cmds.c (syms_of_cmds):
2488 * charset.c (define_charset_internal, syms_of_character):
2489 * ccl.c (syms_of_ccl):
2490 * category.c (syms_of_category, init_category_once):
2491 * casetab.c (syms_of_casetab):
2492 * casefiddle.c (syms_of_casefiddle):
2493 * callint.c (syms_of_callint):
2494 * bytecode.c (syms_of_bytecode):
2495 * buffer.c (keys_of_buffer, syms_of_buffer):
2496 * alloc.c (syms_of_alloc):
2497 * process.c (syms_of_process, init_process):
2498 * lread.c (syms_of_lread, init_obarray):
2499 * font.c (build_style_table):
2500 * emacs.c (syms_of_emacs, main): Replace calls to intern with
2501 intern_c_string, calls to make_pure_string with
2502 make_pure_c_string. Use pure_cons instead of Fcons.
2503
2504 * process.c (socket_options): Make it const.
2505 (set_socket_option, init_process): Use a const pointer.
2506
2507 * lread.c (intern_c_string): New function.
2508 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2509 (defvar_int): Uset it. Make the name const char*.
2510
2511 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2512 (defvar_int): Update prototypes.
2513 (DEFUN, EXFUN): Support for prototypes is now required.
2514 (intern_c_string): New prototype.
2515 (struct Lisp_Subr): Make symbol_name constant.
2516
2517 * font.c (struct table_entry): Remove unused member. Make NAMES
2518 constant.
2519 (weight_table, slant_table, width_table): Make constant.
2520
2521 * emacs.c (struct standard_args): Make name and longname constant.
2522
2523 * character.h (DEFSYM): Use intern_c_string.
2524
2525 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2526
2527 * alloc.c (make_pure_c_string): New function.
2528
2529 * eval.c (Fautoload): Purecopy all arguments.
2530
2531 2009-11-05 Kenichi Handa <handa@m17n.org>
2532
2533 * fileio.c (Finsert_file_contents): Be sure set coding-system of
2534 the buffer in case of replace.
2535
2536 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
2537
2538 * puresize.h (BASE_PURESIZE): Increase to 1620000.
2539
2540 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2541
2542 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
2543 when applicable (bug#4851).
2544
2545 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
2546 (P_): Support for prototypes is now required.
2547
2548 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
2549
2550 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
2551 (Bug#4827).
2552
2553 2009-10-30 Eli Zaretskii <eliz@gnu.org>
2554
2555 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
2556
2557 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
2558
2559 * puresize.h (BASE_PURESIZE): Increase to 1470000.
2560
2561 * lread.c (Fload): Purecopy the file name when building
2562 Vpreloaded_file_list.
2563
2564 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
2565
2566 * w32fns.c (syms_of_w32fns): Change default value of
2567 w32-scroll-lock-modifier to nil. (Bug#2827)
2568
2569 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
2570
2571 * minibuf.c (Fall_completions): Fix typos in docstring.
2572
2573 2009-10-26 Andreas Schwab <schwab@redhat.com>
2574
2575 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
2576
2577 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
2578
2579 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
2580 For delta < 0, skip check that only makes sense when the mini-window
2581 is going to be enlarged. (Bug#4534)
2582
2583 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
2584
2585 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
2586 string in menu maps (Bug#4471).
2587
2588 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
2589
2590 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
2591 FRAME_NS_VIEW on terminal frames (Bug#4765).
2592
2593 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
2594
2595 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
2596 DBUS_TYPE_UINTnn separately to get proper sign extension.
2597
2598 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2599 can properly handle unsigned types.
2600 (make_uid, make_gid): Remove.
2601
2602 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2603 types again.
2604
2605 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
2606 (system_process_attributes): Likewise.
2607
2608 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2609
2610 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2611
2612 * eval.c (Fautoload): Purecopy the filename. Simplify.
2613
2614 * category.c (Fdefine_category): Purecopy docstring.
2615
2616 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
2617
2618 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2619
2620 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2621
2622 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
2623
2624 * window.c (Fwindow_edges, Fwindow_pixel_edges)
2625 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2626 (Bug#4775).
2627
2628 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2629
2630 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2631 (init_fileio_once):
2632 * lisp.h (init_fileio_once): Remove.
2633 * emacs.c (main): Don't call init_fileio_once.
2634
2635 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
2636
2637 * puresize.h (BASE_PURESIZE): Increase to 1430000.
2638
2639 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
2640
2641 * doprnt.c (doprnt): Fix overflow check.
2642
2643 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
2644
2645 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
2646
2647 * xterm.h (x_wait_for_event): Declare it.
2648
2649 * xterm.c (pending_event_wait): New variable.
2650 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2651 see pending_event_wait.eventtype.
2652 (handle_one_xevent): Don't change gravity when parent changes.
2653 (x_new_font): Call change_frame_size with new rows/columns before we
2654 try to resize the frame.
2655 (x_wait_for_event): New function.
2656 (x_set_window_size_1): Don't change gravity unless change_gravity
2657 is set.
2658 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2659 don't change frame size, instead wait for the ConfigureNotify.
2660 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2661 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2662 (x_initialize): Initialize pending_event_wait.
2663
2664 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2665 size.
2666
2667 * widget.c (EmacsFrameSetValues): Add comment.
2668 (EmacsFrameSetCharSize): Just call x_set_window_size.
2669
2670 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2671 x_wait_for_event.
2672 (flush_and_sync): Remove again.
2673 (xg_get_font_name): Suggest monospace if no previous font is known.
2674
2675 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2676
2677 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
2678 8th bit, since that only made sense in the ASCII world (bug#4751).
2679
2680 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2681
2682 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2683 processing pending events when event is filtered for input method.
2684 (Bug#3681)
2685
2686 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
2687
2688 * fns.c: Add #endif accidentally removed in previous change.
2689
2690 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2691
2692 * fns.c: Remove code for unsupported system: MAC_OS.
2693 * image.c: Likewise. Include setjmp.h.
2694
2695 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2696
2697 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2698 pixel -1 (bug #4742).
2699
2700 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2701
2702 * process.c (create_pty): Remove conditionals for no longer
2703 supported systems: UNIPLUS and RTU.
2704
2705 * xterm.c:
2706 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2707
2708 * alloc.c: Do not define struct catchtag.
2709 * eval.c: Move struct catchtag definition ...
2710 * lisp.h: ... here.
2711
2712 * image.c: Move png.h #include earlier to avoid warnings.
2713
2714 * xterm.c:
2715 * xsmfns.c:
2716 * xselect.c:
2717 * xrdb.c:
2718 * xmenu.c:
2719 * xftfont.c:
2720 * xfont.c:
2721 * xfns.c:
2722 * xfaces.c:
2723 * xdisp.c:
2724 * window.c:
2725 * widget.c:
2726 * w32xfns.c:
2727 * w32uniscribe.c:
2728 * w32term.c:
2729 * w32select.c:
2730 * w32reg.c:
2731 * w32proc.c:
2732 * w32menu.c:
2733 * w32inevt.c:
2734 * w32heap.c:
2735 * w32font.c:
2736 * w32fns.c:
2737 * w32console.c:
2738 * w32.c:
2739 * w16select.c:
2740 * vm-limit.c:
2741 * unexsol.c:
2742 * unexec.c:
2743 * unexcw.c:
2744 * unexaix.c:
2745 * undo.c:
2746 * tparam.c:
2747 * textprop.c:
2748 * terminfo.c:
2749 * terminal.c:
2750 * termcap.c:
2751 * term.c:
2752 * syntax.c:
2753 * sound.c:
2754 * sheap.c:
2755 * search.c:
2756 * scroll.c:
2757 * region-cache.c:
2758 * regex.c:
2759 * ralloc.c:
2760 * process.c:
2761 * print.c:
2762 * nsterm.m:
2763 * nsselect.m:
2764 * nsmenu.m:
2765 * nsimage.m:
2766 * nsfont.m:
2767 * nsfns.m:
2768 * msdos.c:
2769 * minibuf.c:
2770 * menu.c:
2771 * marker.c:
2772 * macros.c:
2773 * keymap.c:
2774 * keyboard.c:
2775 * intervals.c:
2776 * insdel.c:
2777 * indent.c:
2778 * gtkutil.c:
2779 * ftxfont.c:
2780 * ftfont.c:
2781 * fringe.c:
2782 * frame.c:
2783 * fontset.c:
2784 * font.c:
2785 * fns.c:
2786 * floatfns.c:
2787 * filelock.c:
2788 * fileio.c:
2789 * emacs.c:
2790 * editfns.c:
2791 * dosfns.c:
2792 * doprnt.c:
2793 * doc.c:
2794 * dispnew.c:
2795 * dired.c:
2796 * dbusbind.c:
2797 * data.c:
2798 * composite.c:
2799 * coding.c:
2800 * cmds.c:
2801 * cm.c:
2802 * chartab.c:
2803 * charset.c:
2804 * character.c:
2805 * ccl.c:
2806 * category.c:
2807 * casetab.c:
2808 * casefiddle.c:
2809 * callproc.c:
2810 * callint.c:
2811 * bytecode.c:
2812 * buffer.c:
2813 * atimer.c: Include setjmp.h. (Bug#4643)
2814
2815 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2816
2817 Remove leftover table unibyte_to_multibyte_table.
2818 * character.c (unibyte_to_multibyte_table): Remove.
2819 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2820 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2821 * character.h (UNIBYTE_TO_CHAR): New macro.
2822 (MAKE_CHAR_MULTIBYTE): Use it.
2823 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2824 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2825 (message_dolog, set_message_1):
2826 * search.c (Freplace_match):
2827 * editfns.c (Fcompare_buffer_substrings):
2828 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2829 (concat):
2830 * insdel.c (copy_text, count_size_as_multibyte):
2831 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2832 * term.c (produce_glyphs):
2833 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2834 * regex.c (RE_CHAR_TO_MULTIBYTE):
2835 * cmds.c (internal_self_insert):
2836 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2837
2838 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2839
2840 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2841
2842 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2843
2844 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
2845
2846 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2847
2848 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2849
2850 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2851 still needed under Tiger.
2852
2853 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2854
2855 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2856 __Apple__.
2857
2858 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2859
2860 2009-10-15 Kenichi Handa <handa@m17n.org>
2861
2862 * print.c (print_object): Escape a symbol like "2E10" too.
2863
2864 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
2865
2866 Cleanups and changes for 64-bit compile under Snow Leopard.
2867 Based on suggestions by Erik Charlebois.
2868
2869 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2870
2871 * nsfont.m (ns_char_width): Replace deprecated call.
2872 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2873 cast argument.
2874 (nsfont_open): Use ns_char_width() everywhere.
2875 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
2876
2877 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2878
2879 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2880 where appropriate.
2881
2882 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2883 where appropriate.
2884 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2885 Use stringWithUTF8String.
2886 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2887
2888 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2889 Add formal protocol mention to inheritance.
2890 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2891
2892 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2893 Fix printf format.
2894 (ns_query_color): Use CGFloat where appropriate.
2895 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
2896 (EmacsScroller-mouseDown:): Use long format in printf, and cast
2897 argument.
2898
2899 * config.in (NS_HAVE_NSINTEGER): Drop.
2900
2901 * dbusbind.c (dbus-method-return-internal)
2902 (dbus-method-error-internal): Use long format in printf, and cast
2903 argument.
2904
2905 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2906 in printf, and cast argument.
2907
2908 * process.c (list_processes_1): Use long format in printf, and
2909 cast argument.
2910
2911 2009-10-11 Glenn Morris <rgm@gnu.org>
2912
2913 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2914
2915 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2916
2917 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2918 menu bar with a small width so it doesn't enlarge the frame.
2919
2920 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
2921
2922 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2923
2924 2009-10-06 Glenn Morris <rgm@gnu.org>
2925
2926 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2927 SOME_MACHINE_LISP (this enters indirectly via DOC).
2928
2929 2009-10-05 Eli Zaretskii <eliz@gnu.org>
2930
2931 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2932
2933 2009-10-04 Eli Zaretskii <eliz@gnu.org>
2934
2935 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2936 Doc fix.
2937
2938 2009-10-03 Martin Rudalics <rudalics@gmx.at>
2939
2940 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2941
2942 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
2943
2944 * lisp.h (Qdelete_directory_internal): Remove, because it is not
2945 used anymore outside fileio.c.
2946
2947 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2948
2949 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
2950
2951 * lisp.h (Qdelete_directory_internal):
2952 Declare, instead of Qdelete_directory.
2953
2954 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2955
2956 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2957
2958 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2959
2960 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
2961
2962 * fileio.c (Fdelete_directory_internal): Rename from
2963 Fdelete_directory. It is not a command anymore. It has no file
2964 name handler.
2965
2966 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2967
2968 * xdisp.c (get_next_display_element): Use an enum in last change.
2969
2970 2009-09-28 Kenichi Handa <handa@m17n.org>
2971
2972 * xdisp.c (get_next_display_element): Pay attention to
2973 unibyte_display_via_language_environment in handling
2974 Vnobreak_char_display.
2975
2976 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2977
2978 * nsterm.h (ns_app_name): New extern variable.
2979
2980 * nsterm.m (ns_app_name): New variable.
2981 (ns_term_init): Set and use it.
2982 (ns_term_shutdown): Use it.
2983
2984 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2985 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2986
2987 * nsfns.m (ns_set_name_iconic, ns_set_name)
2988 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2989 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2990
2991 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2992 Remove double-casting in client_data comparison.
2993
2994 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2995
2996 * keyboard.c (make_lispy_event): Remember last wheel direction.
2997 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2998
2999 2009-09-26 Glenn Morris <rgm@gnu.org>
3000
3001 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
3002 internal.elc. Add term/pc-win.elc.
3003 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
3004 term/x-win.elc.
3005 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
3006 term/w32-win.elc.
3007 (NS_SUPPORT): New.
3008 (lisp): Add NS_SUPPORT.
3009 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
3010
3011 2009-09-25 David Reitter <david.reitter@gmail.com>
3012
3013 * nsmenu.m (EmacsMenu-clear): Recognize application menu
3014 on Mac OS X 10.6+ (bug#4513).
3015
3016 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
3017
3018 * frame.c (xrdb_get_resource): Return nil for empty string resources;
3019 some parts of Emacs code (like font selection) don't grok them.
3020 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
3021
3022 2009-09-24 Andreas Schwab <schwab@redhat.com>
3023
3024 * coding.c (decode_coding_iso_2022): Fix operator precedence.
3025
3026 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
3027
3028 * dired.c (Fdirectory_files): Fix typo in docstring.
3029
3030 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3031
3032 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
3033 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
3034 (EmacsScroller-setPosition:portion:whole:): Remove -display call
3035 under GNUstep.
3036 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
3037
3038 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
3039 glyph advancement.
3040
3041 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3042
3043 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
3044 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
3045
3046 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
3047 deleted (bug #4492).
3048
3049 * nsfont.m (Vns_reg_to_script): New lisp variable.
3050 (syms_of_nsfont): Declare it.
3051 (ns_registry_to_script): New function.
3052 (ns_get_req_script): Call it.
3053 (ns_findfonts): Don't give up on non-unicode registry.
3054
3055 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
3056
3057 2009-09-20 Tom Tromey <tromey@redhat.com>
3058
3059 * eval.c (find_handler_clause): Make stack-trace-on-error work in
3060 batch mode (bug#4228).
3061
3062 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
3063
3064 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
3065 carefully. (Bug #4339)
3066
3067 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
3068
3069 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
3070
3071 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3072
3073 * emacs.c (inhibit_x_resources): Update doc string for NS.
3074 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
3075 legacy code for -NXHost. Fix error printf in daemon case.
3076
3077 * nsterm.h (ns_no_defaults): Remove.
3078
3079 * nsterm.m (ns_no_defaults): Remove.
3080 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
3081 (ns_use_qd_smoothing): Remove legacy variable.
3082 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
3083 don't update the NSWindow itself.
3084 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
3085 state detection and store user rect ourselves. (Bug #3581)
3086
3087 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
3088 ns_use_qd_smoothing.
3089
3090 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
3091 platform versions. Drop support for emacs-20-style face specs.
3092 (x-close-connection): Drop PSFlush() under OS X.
3093 (x-focus-frame): Activate the app first. (Bug #4180)
3094
3095 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
3096
3097 * emacs.c (inhibit_x_resources): New variable.
3098 (main) [HAVE_NS]: Don't process --quick command line option.
3099 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
3100
3101 * lisp.h (inhibit_x_resources): Declare it extern.
3102
3103 * w32reg.c (x_get_string_resource):
3104 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
3105
3106 2009-09-17 Eli Zaretskii <eliz@gnu.org>
3107
3108 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
3109 Add lisp/term/internal.elc.
3110
3111 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3112
3113 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
3114 (bug#4461).
3115
3116 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
3117
3118 * puresize.h (BASE_PURESIZE): Increase to 1290000.
3119
3120 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
3121 (OBJECTS_MACHINE): Remove, unused.
3122
3123 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
3124
3125 * frame.c (x_get_resource_string): Remove unused.
3126
3127 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
3128
3129 * xterm.c (x_new_font): Call change_frame_size before calling
3130 x_set_window_size, in case frame size won't change.
3131
3132 * frame.c (x_set_font): Remove dead code.
3133
3134 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
3135
3136 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
3137
3138 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3139
3140 * lread.c (Fload): Don't output a message after loading an obsolete
3141 package any more (done in Lisp now).
3142
3143 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
3144
3145 * fns.c (syms_of_fns): Doc fix (Bug#4227).
3146
3147 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3148
3149 * keymap.c (Fwhere_is_internal): Use nconc2.
3150
3151 2009-09-11 Alan Mackenzie <acm@muc.de>
3152
3153 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
3154 batch mode.
3155
3156 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
3157
3158 * xdisp.c (display_mode_element): Detect cycles.
3159
3160 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3161
3162 * keymap.c (where_is_internal): Don't erroneously return nil right after
3163 filling the cache.
3164 (where_is_internal_1): Fix up typo.
3165
3166 2009-09-11 Glenn Morris <rgm@gnu.org>
3167
3168 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
3169 share a common doc-string.
3170
3171 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3172
3173 * keymap.c (get_keymap): Return the actual keymap symbol rather than
3174 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
3175
3176 * keymap.c (QCadvertised_binding): New constant.
3177 (syms_of_keymap): Initialize it.
3178 (Fwhere_is_internal): Try and use bindings from :advertised-binding
3179 if applicable.
3180
3181 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
3182
3183 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
3184 (parse_menu_item): Streamline since bindings are recomputed all the
3185 time anyway. Don't bother checking Vdefine_key_rebound_commands any
3186 more and don't support lmenu's menu-alias any more either.
3187
3188 * keymap.c (where_is_internal_data): Make noindirect a boolean.
3189 (where_is_internal): Strip it down to only traverse the keymaps.
3190 Move the cache handling from Fwhere_is_internal to here.
3191 (Fwhere_is_internal): Move the handling of remapping and the choice of
3192 the best binding from where_is_internal to here.
3193 Unify the cached/noncached paths, so remapping is also handled
3194 correctly when the cache is used, and so the cache can be used to
3195 speed up remap-handling when applicable.
3196 Give preference to non-remapped bindings.
3197 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
3198 non-remapped bindings.
3199 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
3200 command remapping.
3201
3202 * xdisp.c (display_mode_element): Move list length limit from 50 to
3203 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
3204
3205 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
3206
3207 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
3208
3209 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
3210
3211 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
3212 (Bug#4334)
3213
3214 * keymap.c (where_is_internal): Filter out shadowed remappings.
3215 Assume that where_is_internal returns unshadowed bindings to simplify
3216 the code and get rid of the gotos. Use ASIZE.
3217
3218 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
3219
3220 * xterm.c (x_focus_changed): If we get a focusout and pointer
3221 is invisible, make it visible.
3222
3223 * xterm.h: Remove condition for declaration of
3224 x_*_window_to_frame.
3225
3226 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
3227
3228 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
3229 initial terminal as well.
3230
3231 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
3232
3233 * xterm.h: Rename x_non_menubar_window_to_frame to
3234 x_menubar_window_to_frame.
3235
3236 * xterm.c: Remove declarations also in xterm.h
3237 (XTmouse_position): Do not return valid positions
3238 for clicks in the menubar and the toolbar for Gtk+.
3239
3240 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
3241 if the widget for the event has the same top level as a frame,
3242 return the frame.
3243 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
3244 internal windows, bug #4122.
3245 (x_non_menubar_window_to_frame): Remove.
3246
3247 2009-09-02 Glenn Morris <rgm@gnu.org>
3248
3249 * buffer.c (default-major-mode): Move most of the doc from here...
3250 (major-mode): ... to here.
3251
3252 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
3253
3254 * process.c (wait_reading_process_output): Keep the descriptor
3255 when pty is used by a non-child process, e.g., in I/O buffer of
3256 GDB this allows inferior to be restarted.
3257
3258 2009-08-29 Eli Zaretskii <eliz@gnu.org>
3259
3260 * xdisp.c (redisplay_internal): Remove redundant test and collapse
3261 both branches into one.
3262
3263 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
3264
3265 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
3266 (main): Use enable-multibyte-characters rather than
3267 default-enable-multibyte-characters. Output a warning message when
3268 running a unibyte session.
3269
3270 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3271
3272 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
3273 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
3274 (copy_data_segment): Also copy __program_vars section.
3275 (copy_dyld_info) [LC_DYLD_INFO]: New function.
3276 (dump_it) [LC_DYLD_INFO]: Use it.
3277
3278 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
3279
3280 2009-08-28 Eli Zaretskii <eliz@gnu.org>
3281
3282 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
3283 $(SRC)/buildobj.h.
3284 (buildobj.h): Renamed from $(SRC)/buildobj.h.
3285 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
3286 $(SRC)/buildobj.h.
3287 (clean): Add buildobj.h.
3288
3289 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
3290
3291 * print.c (print_object): Set escapeflag to 1 when printing
3292 hashtable keys and values.
3293
3294 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
3295
3296 * lread.c (read_integer): Use doubles (and potentially return a float
3297 number) as we do in string-to-number.
3298 (read1): Use strtol to read integers, signal errors on strtol's
3299 overflow and use floats if strtol's output is too large for
3300 Elisp integers.
3301
3302 2009-08-27 Eli Zaretskii <eliz@gnu.org>
3303
3304 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
3305 (make-buildobj-SH): Fix last change.
3306 (SRC): Move to before where it's first used.
3307
3308 2009-08-27 Kenichi Handa <handa@m17n.org>
3309
3310 * process.c (send_process): Use encode_coding_object instead of
3311 encode_coding_string to perform eol-conversion even if the string
3312 is unibyte.
3313
3314 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
3315 character.
3316
3317 * cmds.c (Fself_insert_command): Avoid unnecessay
3318 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
3319
3320 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
3321
3322 * callproc.c (Fcall_process): Remove always true #if.
3323
3324 * lisp.h: Replace #if 0 code for checking with text pointing to
3325 the --enable-checking configure flag.
3326
3327 * emacs.c (main): Mention the --enable-profiling configure flag
3328 instead of using CFLAGS.
3329
3330 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
3331
3332 * Makefile.in (buildobj.h): New target.
3333 (doc.o): Depend on it.
3334 (temacs${EXEEXT}): Don't generate buildobj.lst.
3335 (mostlyclean): Delete buildobj.h, not buildobj.lst.
3336 * makefile.w32-in ($(SRC)/buildobj.h): New target.
3337 ($(BLD)/doc.$(O)): Depend on it.
3338 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
3339 provided by Eli Zaretskii.)
3340 ($(TEMACS)): Don't generate buildobj.lst.
3341 * doc.c: Include buildobj.h.
3342 (buildobj): New static variable.
3343 (Fsnarf_documentation): Use it, instead of opening and reading
3344 buildobj.lst.
3345
3346 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
3347
3348 * dbusbind.c (Fdbus_call_method)
3349 (Fdbus_call_method_asynchronously): Use English numeric format for
3350 timeout values in doc string.
3351
3352 2009-08-25 Kenichi Handa <handa@m17n.org>
3353
3354 * alloc.c (mark_char_table): New function.
3355 (mark_object): Use mark_char_table for a char-table.
3356
3357 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
3358 (CHAR_TABLE_REF): Use it.
3359
3360 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
3361
3362 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
3363 before invoking the newly build emacs to check for load-path
3364 shadowing.
3365
3366 2009-08-22 Glenn Morris <rgm@gnu.org>
3367
3368 * Makefile.in (bootstrap_exe): New variable.
3369 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
3370 Use ${bootstrap_exe}.
3371
3372 2009-08-22 Eli Zaretskii <eliz@gnu.org>
3373
3374 * coding.h (encode_coding_string): Don't encode unibyte strings.
3375 (Bug#4047)
3376
3377 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
3378
3379 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
3380
3381 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
3382 intended as hotfix only.
3383 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
3384
3385 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3386
3387 * nsterm.m (ns_get_color): Update documentation properly for last
3388 change, and clean up loose ends in the code left by it. Fix
3389 longstanding bug with 16-bit hex parsing, and add support for
3390 yet another X11 format (rgb:r/g/b) for compatibility.
3391 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
3392 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
3393
3394 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
3395
3396 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
3397
3398 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
3399
3400 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
3401 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
3402 (xd_initialize, xd_pending_messages): Check, whether
3403 $DBUS_SESSION_BUS_ADDRESS is set.
3404
3405 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3406
3407 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
3408
3409 * nsterm.m (ns_get_color): Remove incompatible color formats again.
3410
3411 2009-08-20 Glenn Morris <rgm@gnu.org>
3412
3413 * emacs.c (system-type): Doc fix.
3414
3415 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3416
3417 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
3418 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
3419
3420 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
3421
3422 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
3423 New functions.
3424 (xd_initialize): Revert change from 2009-08-16.
3425
3426 2009-08-18 Kenichi Handa <handa@m17n.org>
3427
3428 * fontset.c (Ffontset_font): If a nil element is found in a
3429 font-group vector, return nil.
3430
3431 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
3432
3433 * process.c (status_notify): Don't perform redisplay.
3434 (Fdelete_process, list_processes_1, process_send_signal):
3435 Expliticly perform redisplay.
3436 (wait_reading_process_output): Always check process status, but
3437 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
3438
3439 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
3440
3441 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
3442 (XFLOAT_INIT): New macro for storing a float value.
3443 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
3444 * fns.c (sxhash): Copy out the value of a float in order to
3445 examine its bytes.
3446 * dbusbind.c (xd_append_arg): Likewise.
3447
3448 * emacs.c (main): Don't call syms_of_data twice.
3449
3450 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
3451
3452 * dbusbind.c (xd_initialize): Add connection file descriptor to
3453 input_wait_mask, in order to let select() detect, whether a new
3454 message has been arrived.
3455 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
3456
3457 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
3458
3459 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
3460 New functions.
3461
3462 * lisp.h (xd_pending_messages): Declare.
3463
3464 * keyboard.c (readable_events): Call xd_pending_messages.
3465
3466 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
3467
3468 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
3469
3470 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
3471
3472 * buffer.c (set_buffer_internal_1)
3473 (swap_out_buffer_local_variables): Check for unbound local
3474 variables (Bug#4138).
3475
3476 2009-08-14 Eli Zaretskii <eliz@gnu.org>
3477
3478 * process.c (create_pty): Fix last change.
3479
3480 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
3481
3482 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
3483 (xbm_load_image): Caller changed.
3484 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
3485
3486 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
3487
3488 * process.c (create_pty): New function.
3489 (Fstart_process): Use it to allow Emacs to just associate a pty
3490 with the buffer. See associated change in gdb-mi.el.
3491 (list_processes_1): Deal with no program name.
3492 (start_process_unwind): Use pid == -2 to mean no process.
3493
3494 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3495
3496 * cmds.c (nonundocount): New global variable.
3497 (keys_of_cmds): Initialize it.
3498 (Fself_insert_command): Use it to combine upto 20 sequential chars
3499 into a single undo entry, just like the Qself_insert_command code in
3500 keyboard.c does.
3501 Call frame_make_pointer_invisible, also like the Qself_insert_command
3502 code in keyboard.c does.
3503 * keyboard.c (command_loop_1): Use the new global nonundocount rather
3504 than its own local replacement for it.
3505
3506 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
3507
3508 * fns.c (concat): Don't re-set string length to its current value.
3509
3510 * coding.h (decode_coding_string, encode_coding_string):
3511 Use SBYTES macro.
3512
3513 * doprnt.c (doprnt_lisp): Delete unused function.
3514 (doprnt): Merge with doprnt1, discarding lispstrings code.
3515 * lisp.h (doprnt_lisp): Don't declare.
3516
3517 2009-08-07 Juri Linkov <juri@jurta.org>
3518
3519 * puresize.h (BASE_PURESIZE): Increase to 1270000.
3520
3521 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3522
3523 * print.c (syms_of_print): Undo previous change.
3524
3525 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
3526
3527 * lread.c (read1, syms_of_lread): Read hashtables back from the
3528 readable format.
3529
3530 * print.c (print_preprocess, print_object): Print hashtables fully
3531 and readably.
3532 (syms_of_print): Provide 'hashtable-print-readable.
3533
3534 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3535
3536 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
3537 no family set.
3538 (nsfont_open): Handle case when entity has no family.
3539
3540 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3541
3542 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
3543 element, not a list, for match case.
3544
3545 2009-07-28 Kenichi Handa <handa@m17n.org>
3546
3547 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
3548 rigidly.
3549
3550 * xfont.c (xfont_list_pattern): Don't ignore the return value of
3551 font_parse_xlfd. Check font properties more rigidly.
3552
3553 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3554
3555 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
3556 bsd-common.h.
3557
3558 2009-07-27 Kenichi Handa <handa@m17n.org>
3559
3560 * xfaces.c (face_with_height): Call font_clear_prop.
3561
3562 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
3563
3564 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
3565
3566 * xterm.c (x_term_init): Use Qx.
3567
3568 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
3569
3570 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
3571 (ns_get_color): Revert 2009-07-16 change.
3572
3573 2009-07-25 Eli Zaretskii <eliz@gnu.org>
3574
3575 * lread.c (syms_of_lread) <force_load_messages>: New variable.
3576 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
3577
3578 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
3579
3580 * coding.h (decode_coding_string, encode_coding_string):
3581 Use SCHARS macro.
3582
3583 * lread.c: Rewrite 2009-07-21 changes.
3584 (load_depth): Delete.
3585 (Qload_in_progress): New variable.
3586 (load_unwind): Don't reference load_depth or load_in_progress.
3587 (Fload): Likewise; specbind Qload_in_progress instead.
3588 (init_lread): Don't initialize load_depth.
3589 (syms_of_lread): Initialize and protect Qload_in_progress.
3590
3591 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3592
3593 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
3594
3595 2009-07-23 Yavor Doganov <yavor@gnu.org>
3596
3597 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
3598
3599 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3600
3601 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
3602 Bugs 3792, 3720, 2402.
3603 (ns_lookup_indexed_color): Check for bad index.
3604 (ns_index_color): Init unused slot to 0.
3605 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3606 Bug 3714, possibly 3082.
3607
3608 2009-07-22 Jason Rumney <jasonr@gnu.org>
3609
3610 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3611 Position IME window at cursor (Bug#2570).
3612 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3613 (globals_of_w32fns): Dynamically load functions required above.
3614
3615 * w32term.c (w32_draw_window_cursor): Send message to reposition
3616 any IME window.
3617
3618 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
3619
3620 * fileio.c: Revert 2009-07-16 changes.
3621 (Vauto_save_include_big_deletions): New variable.
3622 (Fdo_auto_save): Disable auto-save only if
3623 auto-save-include-big-deletions is nil.
3624
3625 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
3626
3627 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3628 the overflowed pixels into account (Bug#3879).
3629
3630 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
3631
3632 * lread.c (load_depth): New variable.
3633 (Fload, load_unwind, init_lread): Set it to the load recursion
3634 depth; set load_in_progress as a simple boolean based on the
3635 current load_depth. (Bug#3892)
3636
3637 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3638
3639 * nsfont.m (ns_has_attribute): Remove.
3640 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3641
3642 2009-07-18 Juri Linkov <juri@jurta.org>
3643
3644 * process.c (Fset_process_query_on_exit_flag): Mention killing
3645 a buffer in docstring.
3646
3647 2009-07-17 Kenichi Handa <handa@m17n.org>
3648
3649 * casetab.c (shuffle): Fix the logic of setting up the cycle.
3650
3651 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3652
3653 * nsfns.m (Fns_set_alpha): Remove function.
3654 (syms_of_nsfns): Don't defsubr it.
3655
3656 * nsterm.m (ns_get_color): Remove incompatible color formats.
3657 (ns_color_to_lisp): Generate #rrggbb color format string.
3658
3659 2009-07-16 Richard Stallman <rms@gnu.org>
3660
3661 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3662 (Fset_buffer_auto_saved): Handle save_length = -2.
3663
3664 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
3665
3666 * xterm.c (Qx_gtk_map_stock): New var.
3667
3668 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3669 of calling intern each time.
3670
3671 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3672
3673 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3674 does tiling.
3675
3676 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3677
3678 2009-07-14 Kenichi Handa <handa@m17n.org>
3679
3680 * font.c (font_vconcat_entity_vectors): New function.
3681 (struct font_sort_data): New member font_driver_preference.
3682 (font_compare): Check font_driver_preference.
3683 (font_sort_entities): The format of the first argument changed.
3684 (font_delete_unmatched): Likewise.
3685 (font_list_entities): The return type changed.
3686 (font_select_entity): The format of the second argument changed.
3687 (font_find_for_lface): Adjuste for the above changes.
3688 Don't suppress the checking of C even if the repertory supports it.
3689 (Flist_fonts): Adjust for the above changes.
3690
3691 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3692 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
3693 Reject a font who has adstyle property that is different from a
3694 langname derived from registry property.
3695 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
3696
3697 2009-07-13 Eli Zaretskii <eliz@gnu.org>
3698
3699 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3700 local copy of dirfilename.
3701
3702 2009-07-13 Kenichi Handa <handa@m17n.org>
3703
3704 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3705 against max_char.
3706
3707 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3708 calling XSYMBOL (sym).
3709
3710 2009-07-11 Eli Zaretskii <eliz@gnu.org>
3711
3712 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3713 New function.
3714 (directory_files_internal) [WINDOWSNT]:
3715 Bind w32-get-true-file-attributes to either t or nil, depending whether
3716 the filesystem of the directory is fast or slow.
3717
3718 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3719 file name.
3720 (is_slow_fs): New function.
3721 (stat): Use it to determine whether to issue more system calls to
3722 get accurate file attributes, when w32-get-true-file-attributes is
3723 `local'.
3724
3725 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3726
3727 * xfns.c (Fx_select_font): Remember last font selected in
3728 x_last_font_name and use that the next time. Also try the frame
3729 parameter font-parameter as default to the font dialog.
3730
3731 2009-07-10 Kenichi Handa <handa@m17n.org>
3732
3733 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3734
3735 2009-07-09 Eli Zaretskii <eliz@gnu.org>
3736
3737 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
3738
3739 * w32.c (stat): Treat UNC file names as residing on remote
3740 drives. (Bug#3542)
3741
3742 2009-07-09 Kenichi Handa <handa@m17n.org>
3743
3744 * fontset.c (fontset_find_font): Fix previous change.
3745
3746 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
3747
3748 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3749 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3750 error flag.
3751
3752 2009-07-08 Kenichi Handa <handa@m17n.org>
3753
3754 * fontset.c (fontset_find_font): Fix the logic of handling
3755 charset_matched.
3756 (font_for_char): Delete unused var.
3757 (generate_ascii_font_name): Delete it.
3758
3759 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3760
3761 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3762 (encode_coding_sjis): Fix the code range check.
3763
3764 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
3765
3766 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3767 (Fexpand_file_name): Copy string data properly (Bug#3772).
3768
3769 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3770
3771 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3772 first MapNotify.
3773
3774 2009-07-07 Kenichi Handa <handa@m17n.org>
3775
3776 * character.h (unibyte_has_multibyte_table): Delete extern.
3777 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3778
3779 * charset.c (Fset_charset_priority): Update charset_unibyte.
3780 (syms_of_charset): Initialize charset_unibyte.
3781
3782 * character.c (unibyte_has_multibyte_table): Delete it.
3783 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3784 charset_unibyte.
3785 (multibyte_char_to_unibyte_safe): Likewise.
3786 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3787
3788 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
3789 (x_produce_glyphs): Likewise.
3790
3791 * .gdbinit (xcharset): Fix the treating $arg0.
3792
3793 2009-07-04 Eli Zaretskii <eliz@gnu.org>
3794
3795 Emulation of `getloadavg' on MS-Windows.
3796 * w32.c: Include float.h
3797 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3798 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3799 (get_native_system_info, get_system_times): New functions.
3800 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3801 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3802 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3803 g_b_init_get_system_times, and num_of_processors.
3804
3805 2009-07-03 Jason Rumney <jasonr@gnu.org>
3806
3807 * w32term.c (w32_initialize): Use standard types.
3808
3809 2009-07-03 Eli Zaretskii <eliz@gnu.org>
3810
3811 * dired.c (Ffile_attributes): Decode user and group names by the
3812 locale's encoding. (Bug#3443)
3813
3814 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3815
3816 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3817 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3818
3819 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3820
3821 * term.c (init_tty): Remove spurious #ifdef.
3822
3823 * m/mips.h: Mention this file is also used for netbsd.
3824 * m/pmax.h: Remove file.
3825
3826 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3827
3828 * xterm.h (struct x_display_info): Add invisible_cursor.
3829 (struct x_output): Add current_cursor.
3830
3831 * xterm.c (XTtoggle_invisible_pointer): New function.
3832 (x_define_frame_cursor): Don't define cursor if invisible or the
3833 same as before. Set current_cursor.
3834 (x_create_terminal): Set toggle_invisible_pointer_hook.
3835
3836 * xfns.c (make_invisible_cursor): New function.
3837 (x_set_mouse_color): Call make_invisible_cursor.
3838 Set current_cursor.
3839 (x_window): Set current_cursor.
3840
3841 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3842
3843 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3844 inserting a character.
3845 (read_avail_input): Call frame_make_pointer_visible.
3846
3847 * frame.c (Vmake_pointer_invisible): New variable.
3848 (frame_make_pointer_invisible, frame_make_pointer_visible):
3849 New functions.
3850 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3851
3852 * frame.h: Declare frame_make_pointer_invisible and
3853 frame_make_pointer_visible.
3854 (struct frame): Add pointer_invisible.
3855
3856 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3857
3858 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3859 frame isn't visible.
3860 (xg_frame_resized): If width/height is -1, get size of window
3861 from X server.
3862
3863 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3864 for MapNotify.
3865
3866 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
3867 here or call change_frame_size. Just call flush_and_sync.
3868 (flush_and_sync): Reintroduce.
3869
3870 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
3871
3872 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
3873
3874 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3875 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3876
3877 * frame.h: Declare Qsticky.
3878
3879 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3880
3881 * nsfns.m (ns_frame_parm_handlers): Ditto.
3882
3883 * frame.c: Declare Qsticky.
3884 (frame_parms): Add sticky.
3885
3886 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3887
3888 * xterm.h: Declare x_set_sticky.
3889
3890 * xterm.c (x_set_sticky): New function.
3891
3892 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3893 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3894 xg_tool_bar_proxy_help_callback.
3895
3896 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3897
3898 * frame.c: Qmaximized is new.
3899 (x_set_frame_parameters): Do not handle fullscreen specially.
3900 Only set width and height if explicitly set.
3901 (x_set_fullscreen): Handle Qmaximized.
3902 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3903 (syms_of_frame): Initialize Qmaximized.
3904
3905 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3906 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3907
3908 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
3909 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3910 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3911 set gravity to NorthWestGravity when USE_GTK.
3912 (set_wm_state): New function.
3913 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3914 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3915 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
3916 or the case when no window manager is running. That means remove calls
3917 to x_real_positions and x_fullscreen_adjust.
3918
3919 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3920 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3921 flush_and_sync.
3922 (xg_height_changed): New function.
3923 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
3924 and gtk_window_set_policy. Set frame gravity after parsing the
3925 geometry string.
3926 (xg_update_frame_menubar, free_frame_menubar)
3927 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3928 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3929 Remove calls to xg_frame_set_char_size.
3930
3931 2009-07-01 Kenichi Handa <handa@m17n.org>
3932
3933 * keyboard.c (decode_keyboard_code): New function.
3934 (tty_read_avail_input): Decode the input bytes if necessary.
3935
3936 * coding.c (setup_coding_system):
3937 Initialize coding->carryover_bytes to 0.
3938 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3939 use Qno_conversion.
3940
3941 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3942
3943 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3944
3945 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
3946
3947 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
3948
3949 2009-06-30 Jason Rumney <jasonr@gnu.org>
3950
3951 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3952 is already loaded.
3953 Set user model ID if supported (bug#1849).
3954
3955 2009-06-29 Jim Meyering <meyering@redhat.com>
3956
3957 Remove useless if-before-xfree test.
3958 * nsfont.m (nsfont_close): Remove useless test.
3959 * term.c (delete_tty): Likewise.
3960 * w32.c (system_process_attributes): Likewise.
3961 * w32font.c (w32font_close): Likewise.
3962 * xfaces.c (x_free_gc): Likewise.
3963 * xselect.c (buffer): Likewise.
3964
3965 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3966
3967 * process.c (send_process): Keep decoded string in a local
3968 variable and protect it from GC. (Bug#3521)
3969
3970 2009-06-28 Eli Zaretskii <eliz@gnu.org>
3971
3972 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3973 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3974
3975 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
3976
3977 * xdisp.c (start_display, handle_face_prop)
3978 (move_it_vertically_backward, cursor_row_fully_visible_p)
3979 (redisplay_window, try_window_id, produce_image_glyph):
3980 Delete some #ifdef-ed out code chunks that are now obsolete.
3981
3982 * xterm.c (x_update_window_begin, x_new_focus_frame)
3983 (x_scroll_bar_handle_click, handle_one_xevent)
3984 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3985 (x_make_frame_visible, x_make_frame_invisible)
3986 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3987 code chunks that are now obsolete.
3988
3989 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
3990
3991 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3992 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3993 for hours, when optimzation is enabled.
3994 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3995 (xd_read_message): Make them static.
3996
3997 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3998
3999 * term.c (turn_on_face): Allow simultaneously bold and dim
4000 terminal faces (Bug#3530).
4001
4002 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
4003
4004 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
4005
4006 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
4007 truncation glyphs (Bug#3686).
4008
4009 2009-06-27 Glenn Morris <rgm@gnu.org>
4010
4011 * m/pmax.h: Restore file, with only netbsd portions.
4012
4013 2009-06-26 David Reitter <david.reitter@gmail.com>
4014
4015 * nsterm.m (keydown): Avoid infinite loop.
4016
4017 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
4018
4019 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
4020 the arg FORCE_SYMBOL.
4021
4022 2009-06-25 Kenichi Handa <handa@m17n.org>
4023
4024 * fontset.c (fontset_find_font): When a usable rfont_def is found
4025 in a fallback font-group, make it the first element of the group.
4026
4027 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
4028
4029 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
4030
4031 2009-06-24 Kenichi Handa <handa@m17n.org>
4032
4033 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
4034 set for C.
4035 (fontset_font): Record the availability of a font for C both in
4036 the realized fontsets of the current one and the default one.
4037
4038 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
4039
4040 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
4041 conditional, it is always defined on AIX.
4042
4043 2009-06-23 Miles Bader <miles@gnu.org>
4044
4045 * window.c (Vrecenter_redisplay): New variable.
4046 (syms_of_window): Initialize it.
4047 (Qtty): New extern declaration.
4048 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
4049
4050 2009-06-23 Jim Meyering <meyering@redhat.com>
4051
4052 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
4053 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
4054 pointer dereferences are guaranteed to be valid.
4055
4056 2009-06-23 Kenichi Handa <handa@m17n.org>
4057
4058 * emacs.c (main): Call init_font ().
4059
4060 * font.h (Vfont_log): Extern it.
4061 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
4062
4063 * font.c (font_sort_entities, font_list_entities)
4064 (font_matching_entity, font_open_entity)
4065 (font_close_object): Change font_add_log to FONT_ADD_LOG.
4066 (Vfont_log): Delete static.
4067 (font_log_env_checked): Delete this variable.
4068 (font_add_log): Don't check font_log_env_checked.
4069 (font_deferred_log): Check Vfont_log.
4070 (init_font): New function.
4071
4072 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
4073
4074 * w32font.c: Change font_add_log to FONT_ADD_LOG.
4075
4076 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
4077
4078 * xfont.c: Change font_add_log to FONT_ADD_LOG.
4079
4080 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
4081 (face_for_char): Don't call font_deferred_log here.
4082 (font_for_char): Likewise.
4083
4084 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
4085
4086 * w32term.c (x_draw_glyph_string): Use the glyph string's width
4087 rather than its background_width for drawing the overline and
4088 underline (Bug#489).
4089
4090 * xterm.c (x_draw_glyph_string): Use the glyph string's width
4091 rather than its background_width for drawing the overline and
4092 underline (Bug#489).
4093 (xg_default_icon_file): New variable.
4094 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
4095 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
4096
4097 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
4098 (load_overlay_strings): Remove externs.
4099 (fast_find_position): Function deleted.
4100 (mouse_face_from_buffer_pos): New function, based on
4101 fast_find_position. Correctly handle before-strings,
4102 display-strings, and after-strings (Bug#1220).
4103 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
4104
4105 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
4106
4107 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4108 (move_it_in_display_line_to, move_it_in_display_line_to)
4109 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
4110
4111 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
4112
4113 * Branch for 23.1.
4114
4115 2009-06-21 Jason Rumney <jasonr@gnu.org>
4116
4117 * w32term.c (keyboard_codepage): New static variable.
4118 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
4119 (w32_read_socket) [WM_CHAR]: Use it to decode character
4120 input (bug#3237).
4121 (w32_initialize): Initialize it.
4122 (codepage_for_locale): New function.
4123
4124 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
4125
4126 * process.c (status_message): Pass Faset index argument as a lisp
4127 object, so as to work with USE_LISP_UNION_TYPE.
4128
4129 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4130
4131 * coding.c (Ffind_coding_systems_region_internal):
4132 Cache checked characters.
4133
4134 2009-06-18 Kenichi Handa <handa@m17n.org>
4135
4136 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
4137
4138 2009-06-18 Andreas Schwab <aschwab@redhat.com>
4139
4140 * xdisp.c (redisplay_internal): Check that the frame is still
4141 live after redisplay of its windows.
4142 (redisplay_windows): Check that the window is still live.
4143
4144 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
4145
4146 * coding.c (detect_coding_utf_16): Fix previous change.
4147
4148 2009-06-16 Kenichi Handa <handa@m17n.org>
4149
4150 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
4151 UTF-16 by checking the dispersion of Eth and Oth bytes.
4152
4153 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
4154
4155 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
4156
4157 2009-06-15 Kenichi Handa <handa@m17n.org>
4158
4159 * process.c (status_message): Fix previous change. Be sure to
4160 decode a localized string.
4161
4162 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4163
4164 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
4165 add comment explaining why.
4166
4167 2009-06-14 Sidney Markowitz <sidney@sidney.com>
4168
4169 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
4170
4171 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
4172
4173 * nsfont.m (ns_attribute_value): Remove.
4174 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
4175 (ns_has_attribute): Shrink the normal range.
4176 (ns_findfonts): Don't worry about requested spec in determining
4177 need for synthItal.
4178 (ns_get_covering_families): Retain scriptToFamilies.
4179
4180 2009-06-14 Seiji Zenitani <zenitani@mac.com>
4181
4182 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
4183
4184 2009-06-11 Kenichi Handa <handa@m17n.org>
4185
4186 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4187 overhang for the static composition case.
4188
4189 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4190
4191 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4192 overhang for the automatic composition case.
4193
4194 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
4195 composition case.
4196
4197 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
4198
4199 * xdisp.c (get_next_display_element): When handling wrap-prefix
4200 and line-prefix, treat \n as a control character (bug#3502).
4201
4202 2009-06-10 Kenichi Handa <handa@m17n.org>
4203
4204 * font.c (font_parse_family_registry): Fix for one-char foundry.
4205 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
4206
4207 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
4208
4209 * process.c (status_message): Fix handling of multibyte signal
4210 string (Bug#3499).
4211
4212 2009-06-09 Jim Meyering <meyering@redhat.com>
4213
4214 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
4215 color name is missing.
4216
4217 2009-06-09 Kenichi Handa <handa@m17n.org>
4218
4219 * charset.c (Fmap_charset_chars): In docstring, state clearly that
4220 FROM-CODE and TO-CODE are codepoints of CHARSET.
4221
4222 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4223
4224 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
4225
4226 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4227
4228 Changes to support :script/:lang/:otf in NS font driver.
4229 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
4230 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
4231 indicate not part of font driver interface, and change callers.
4232 (ns_get_family): Remove pointless null check.
4233 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
4234 ns_spec_to_descriptor, ns_descriptor_to_entity.
4235 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
4236 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
4237 (ns_spec_to_descriptor, ns_descriptor_to_entity)
4238 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
4239 (ns_get_req_script, ns_accumulate_script_ranges)
4240 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
4241 New functions.
4242 (nsfont_list, nsfont_match): Use ns_findfonts.
4243 (nsfont_open): Use font descriptor instead of traits.
4244 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
4245 (dump_glyphstring): Rename to ns_dump_glyphstring.
4246
4247 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
4248
4249 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
4250
4251 * fontset.c (fontset_from_font): Remove NS-specific code.
4252
4253 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
4254
4255 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
4256 nonactive windows.
4257
4258 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
4259
4260 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
4261
4262 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4263
4264 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
4265
4266 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
4267
4268 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
4269 account for the overflowing of newlines into the last glyph on the
4270 display line (Bug#3482).
4271
4272 2009-06-05 David Reitter <david.reitter@gmail.com>
4273
4274 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
4275 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
4276 Fns_selection_exists_p, Fns_selection_owner_p.
4277
4278 2009-06-03 Jason Rumney <jasonr@gnu.org>
4279
4280 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
4281 available. (Bug#3379)
4282
4283 2009-05-29 Kenichi Handa <handa@m17n.org>
4284
4285 * coding.c (get_translation_table):
4286 Check Venable_character_translation.
4287
4288 2009-05-26 David Reitter <david.reitter@gmail.com>
4289
4290 * nsterm.m (ns_raise_frame): Only raise frame if visible.
4291 (x_make_frame_visible): Move frame to front rather than calling
4292 ns_raise_frame().
4293 (keyDown:): Do not swallow events that aren't re-sent if frame
4294 isn't key window.
4295 (drawRect:): Do not set visibility/iconified flags because
4296 drawRect may be called by NSView even if the frame is hidden.
4297
4298 * nsfns.m (Fx_create_frame): Follow other ports in
4299 determining visibility; default to t. Ensure async_visible is set.
4300
4301 2009-05-23 Eli Zaretskii <eliz@gnu.org>
4302
4303 * dired.c (Ffile_attributes): Doc fix.
4304
4305 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
4306
4307 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
4308
4309 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
4310
4311 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
4312 and xfont_scratch_props.
4313 (syms_of_xfont): Do it here instead.
4314 (xfont_find_ccl_program): Delete, unused.
4315 (xfont_open): Delete unused var `i'.
4316
4317 2009-05-21 Kenichi Handa <handa@m17n.org>
4318
4319 * fontset.c (Qlatin): Don't make it static.
4320
4321 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
4322 New functions.
4323 (xfont_scripts_cache, xfont_scratch_props): New variables.
4324 (Qlatin, Vscalable_fonts_allowed): Extern it.
4325 (xfont_list_pattern): Argument changed. Callers changed.
4326 Check Vscalable_fonts_allowed. Check the support of a script.
4327 (xfont_list): Don't reject a font spec with :script property.
4328 (xfont_has_char): Fix setting of encoding.
4329 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
4330 xfont_scratch_props.
4331
4332 2009-05-19 Kenichi Handa <handa@m17n.org>
4333
4334 * font.c (font_sort_entities): Rename from font_sort_entites.
4335 Callers changed.
4336
4337 2009-05-18 Kenichi Handa <handa@m17n.org>
4338
4339 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
4340
4341 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
4342
4343 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
4344 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
4345
4346 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4347
4348 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
4349 (x_delete_terminal): Dissociate resource database from display and
4350 then call XrmDestroyDatabase before closing display.
4351
4352 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4353
4354 * nsterm.m (ns_read_socket): Remove unused variable.
4355 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
4356 whether selected frame is viable before raising it (based on patch
4357 by David Reitter), and improve commentary.
4358 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
4359
4360 2009-05-15 Kenichi Handa <handa@m17n.org>
4361
4362 * font.c (Ffont_spec): Check arguments.
4363
4364 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
4365
4366 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
4367 weight when testing attributes (Bug#3282).
4368
4369 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4370
4371 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
4372 what we expect to get in the next ConfigureNotify event.
4373
4374 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
4375 before Xft one (Bug#1696).
4376
4377 2009-05-07 David Reitter <david.reitter@gmail.com>
4378
4379 * nsfns.m (Fx_display_planes): Compute bitplanes using
4380 NSBitsPerPixelFromDepth (Bug#3207).
4381
4382 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
4383
4384 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
4385
4386 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
4387
4388 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
4389
4390 2009-05-07 David Reitter <david.reitter@gmail.com>
4391
4392 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
4393 Respect mouse face background.
4394
4395 2009-05-07 David Reitter <david.reitter@gmail.com>
4396
4397 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
4398 Mouse movement/highlight: bracket drawing operations
4399 in ns_update_begin and ns_update_end.
4400
4401 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4402
4403 * nsfns.m (ns_get_screen): Rewrite.
4404 Don't presume selected-frame is of type `ns'.
4405
4406 * font.c (font_update_drivers): Sanity fallback to avoid disabling
4407 all drivers.
4408
4409 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
4410
4411 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4412
4413 * keyboard.h (add_user_signal): Fix typo in extern.
4414
4415 * lisp.h (add_user_signal): Remove extern.
4416
4417 * unexelf.c (unexec): Consider a section to precede the .bss section
4418 if its addresses overlap that of .bss.
4419 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
4420 instead of dumping process.
4421
4422 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4423
4424 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
4425
4426 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4427
4428 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
4429
4430 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4431
4432 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
4433 any statements.
4434
4435 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
4436
4437 * process.c (read_process_output): Make sure the current buffer is
4438 always restored.
4439
4440 * coding.c (record_conversion_result): Don't modify
4441 Vlast_code_conversion_error for successful result.
4442 (alloc_destination): Don't clobber conversion result. (Bug#1650)
4443
4444 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4445
4446 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
4447 (load_charset_map): Remove unnecessary code.
4448
4449 2009-04-30 David Reitter <david.reitter@gmail.com>
4450
4451 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4452 through f24.
4453
4454 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
4455
4456 * xfaces.c (face_at_buffer_position): New arg base_face_id.
4457
4458 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
4459 face_at_buffer_position.
4460 (face_before_or_after_it_pos, get_next_display_element)
4461 (note_mouse_highlight): Update face_at_buffer_position call.
4462
4463 * term.c (term_mouse_highlight):
4464 * msdos.c (IT_note_mouse_highlight):
4465 * fontset.c (Finternal_char_font):
4466 * font.c (font_at, font_range): Update face_at_buffer_position call.
4467
4468 * dispextern.h (face_at_buffer_position): Update prototype.
4469
4470 2009-04-30 Kenichi Handa <handa@m17n.org>
4471
4472 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
4473
4474 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
4475
4476 * callproc.c (Fcall_process): Fix GC protection. Make sure
4477 current buffer is always restored.
4478
4479 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4480
4481 * atimer.c (init_atimer): Also clear stopped_atimers.
4482
4483 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
4484
4485 * process.c (create_process): Clean up merger residues of
4486 2008-07-17 change.
4487
4488 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
4489
4490 * lread.c (Vread_circle): New variable.
4491 (read1): Disable recursive read if Vread_circle is nil.
4492
4493 2009-04-29 Kenichi Handa <handa@m17n.org>
4494
4495 * fontset.h (set_default_ascii_font): Delete extern.
4496
4497 * fontset.c (set_default_ascii_font): Delete this unused function.
4498
4499 * frame.c (x_set_font): When ARG is a font-object, check if the
4500 font-object matches with the ASCII font-spec of the frame's
4501 fontset. If not, create a new fontset for the frame. (Bug #3075)
4502
4503 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
4504
4505 * fns.c (Flocale_info): Protect vector from GC during decoding.
4506
4507 * process.c (Fstart_process): Protect argv strings from GC during
4508 encoding.
4509
4510 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
4511
4512 * sysdep.c: Include <ctype.h>.
4513
4514 2009-04-27 David Reitter <david.reitter@gmail.com>
4515
4516 * nsfont.m (nsfont_open): Remove unused variable shrink.
4517 Remove commented-out code.
4518
4519 2009-04-26 Johan Bockgård <bojohan@gnu.org>
4520
4521 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4522
4523 2009-04-25 Jason Rumney <jasonr@gnu.org>
4524
4525 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
4526
4527 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4528
4529 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
4530 Swap bytes in short integer if fringe bitmap width > 8.
4531
4532 2009-04-23 Kenichi Handa <handa@m17n.org>
4533
4534 * xfaces.c (Fx_list_fonts): If a font size is specified in
4535 PATTERN, set it in returned scalable fonts.
4536
4537 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
4538
4539 * keyboard.c (Fset_input_meta_mode): Doc fix.
4540
4541 * dispnew.c (Fsend_string_to_terminal): Doc fix.
4542
4543 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
4544
4545 * coding.c (Fterminal_coding_system): Doc fix.
4546
4547 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
4548 (Fx_display_pixel_height, Fx_display_planes)
4549 (Fx_display_color_cells, Fx_server_max_request_size)
4550 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4551 (Fx_display_mm_height, Fx_display_mm_width)
4552 (Fx_display_backing_store, Fx_display_visual_class)
4553 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
4554 Doc fixes, replacing "terminal id" with "terminal object".
4555 (check_x_display_info): Handle terminal objects instead of
4556 terminal ids.
4557
4558 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
4559 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
4560 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
4561 Doc fixes, replacing "terminal id" with "terminal object".
4562
4563 2009-04-21 Kenichi Handa <handa@m17n.org>
4564
4565 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
4566 (font_score): Check AVGWIDTH too.
4567
4568 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
4569 worst case.
4570 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
4571 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
4572
4573 2009-04-19 Jason Rumney <jasonr@gnu.org>
4574
4575 The following changes fix Bug#3005 for wide glyphs on each platform,
4576 without reintroducing Bug#1258 for stretch glyphs.
4577
4578 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
4579 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
4580 get_phys_cursor_geometry.
4581
4582 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
4583 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
4584 using get_phys_cursor_geometry.
4585
4586 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
4587 correctly calculated.
4588
4589 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
4590
4591 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
4592 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
4593 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
4594 is deprecated.
4595
4596 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
4597
4598 * font.c (font_put_frame_data): Use xfree instead of free.
4599
4600 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
4601
4602 * w32font.c (Qja, Qko): Remove declarations.
4603 (syms_of_w32font): Don't DEFSYM them.
4604
4605 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
4606
4607 * font.c (Qja, Qko): Move definitions here from ftfont.c.
4608
4609 * font.h (Qja, Qko): Extern them.
4610
4611 * ftfont.c (Qja, Qko): Remove declarations.
4612
4613 * xfont.c (Qja, Qko): Remove declarations.
4614
4615 2009-04-17 Kenichi Handa <handa@m17n.org>
4616
4617 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4618 string from a vector to handle Latin-1 characters correctly.
4619
4620 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4621 entity even if the cache hits.
4622
4623 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
4624
4625 * search.c (boyer_moore): Use zero as marker value for a possible
4626 match instead of depending on overflow behavior. (Bug#2844)
4627
4628 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4629 * lisp.h: Adjust prototypes.
4630
4631 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
4632
4633 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4634 change (Bug#3003).
4635
4636 2009-04-16 Kenichi Handa <handa@m17n.org>
4637
4638 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
4639
4640 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4641 adstyle.
4642
4643 * ftfont.c (Qja, Qko): Don't make them static.
4644 (enum ftfont_cache_for): New enum.
4645 (fc_charset_table): Undo the previous change.
4646 (ftfont_get_latin1_charset): Delete it.
4647 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4648 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
4649 non-scarable font, try to get AVERAGE_WIDTH.
4650 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4651 Change ft_face_cache from a list of a hash-table. Don't check
4652 `ja' and `ko' adstyle here.
4653 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4654 FTFONT_CACHE_FOR_CHARET.
4655 (ftfont_get_charset): Undo the previous change.
4656 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
4657 (ftfont_close): Likewise.
4658 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4659
4660 * font.c (font_sort_entites): Change the meaning of the arg
4661 BEST-ONLY. Don't optimize for VEC of lenght 1.
4662 (font_select_entity): Just return the value of font_sort_entites.
4663
4664 * xfaces.c (merge_face_vectors): Reflect font properties in
4665 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4666 font_clear_prop if a face attribute doesn't change.
4667
4668 * charset.h (charset_ksc5601): Extern it.
4669
4670 * charset.c (charset_ksc5601): New variable.
4671 (Fdefine_charset_internal): Set charset_ksc5601.
4672 (init_charset_once): Initialize charset_ksc5601 to -1.
4673
4674 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4675
4676 * fileio.c (history_delete_duplicates): Remove unused declaration.
4677
4678 * callint.c (history_delete_duplicates): New declaration.
4679 (Fcall_interactively): Remove command history duplicates when
4680 history_delete_duplicates is true.
4681
4682 2009-04-14 Eli Zaretskii <eliz@gnu.org>
4683
4684 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4685
4686 2009-04-14 Kenichi Handa <handa@m17n.org>
4687
4688 * font.c (Ffont_info): Fix docstring. Fix the second element of
4689 the returned value (bug#2949).
4690
4691 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
4692
4693 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4694
4695 2009-04-14 Kenichi Handa <handa@m17n.org>
4696
4697 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4698 encoding charset is ascii_compatible.
4699
4700 * charset.c (Fdefine_charset_internal): Make charset
4701 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4702 code_offset is 0, and covers all ASCII characters.
4703
4704 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4705
4706 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4707 (ns_string_to_pasteboard_internal):
4708 * nsmenu.m (process_dialog):
4709 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4710 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4711 * lisp.h (Fx_load_color_file): Declare.
4712
4713 2009-04-13 Kenichi Handa <handa@m17n.org>
4714
4715 * font.c (font_delete_unmatched): Preserve the order of list elements.
4716 (font_select_entity): Suppress the code to optimize for the same
4717 kind of fonts.
4718 (font_load_for_lface): Get a font that supports at least ASCII
4719 characters.
4720
4721 * ftfont.c (Qja, Qko): New variables.
4722 (fc_charset_table): Delete uniquifier data for iso8859-1.
4723 (ftfont_get_latin1_charset): New function.
4724 (get_adstyle_property): New function.
4725 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4726 bitmap fonts.
4727 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4728 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4729 `ko' or `ja'.
4730 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
4731 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
4732 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4733 property.
4734 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4735 (syms_of_ftfont): DEFSYM Qja and Qko.
4736
4737 2009-04-09 Kenichi Handa <handa@m17n.org>
4738
4739 * charset.c (map_charset_chars): For a charset of `superset'
4740 method, fix calculation of code range.
4741
4742 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4743 from the list of extra properties.
4744 (font_clear_prop): Be sure to delete `:name' font property.
4745
4746 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4747
4748 * dispnew.c (redraw_overlapping_rows): Fix detection of
4749 overlapping for topmost and bottommost rows.
4750
4751 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
4752
4753 2009-04-06 Jason Rumney <jasonr@gnu.org>
4754
4755 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4756
4757 2009-04-06 Kenichi Handa <handa@m17n.org>
4758
4759 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4760
4761 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4762
4763 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4764
4765 * ftfont.c (ftfont_open): Fix checking of the return value of
4766 FT_Load_Char. Fix setting font->underline_thickness.
4767
4768 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
4769
4770 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4771 (Fterminal_parameters, Fterminal_parameter)
4772 (Fset_terminal_parameter): In doc string, refer to terminal
4773 objects rather than terminal ids.
4774
4775 2009-04-04 Eli Zaretskii <eliz@gnu.org>
4776
4777 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4778 ret_lim_data. (Bug#2867)
4779
4780 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
4781
4782 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4783 so they don't get wider than the window, matching 2006-01-23
4784 change to the partner function in xdisp.c (Bug#2800).
4785
4786 2009-04-03 Kenichi Handa <handa@m17n.org>
4787
4788 * print.c (print_object): Make each lowest sub_char_table start a
4789 new line (Bug#2866).
4790
4791 2009-04-02 Kenichi Handa <handa@m17n.org>
4792
4793 * fontset.c (fontset_font): Record no-font when a fontset
4794 explicitly tells not to try another font-specs.
4795
4796 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4797
4798 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4799
4800 2009-03-30 Kenichi Handa <handa@m17n.org>
4801
4802 * fontset.c (fontset_from_font): Specify only registry in a
4803 font-spec for all characters supported by that registry.
4804
4805 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4806 even if HAVE_M17N_FLT is not defined.
4807
4808 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4809
4810 * ftfont.c: Conditionalize prototyping and use of
4811 ftfont_variation_glyphs.
4812
4813 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4814
4815 * frame.c (delete_frame): Work around compiler bug.
4816
4817 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4818 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4819 Some more EMACS_INT.
4820 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4821
4822 * xdisp.c (dump_glyph): Fix typo.
4823
4824 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4825 (adjust_markers_gap_motion, adjust_markers_for_delete)
4826 (adjust_markers_for_insert, adjust_point)
4827 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4828 (make_gap, copy_text, count_size_as_multibyte, insert)
4829 (insert_and_inherit, insert_before_markers)
4830 (insert_before_markers_and_inherit, insert_1)
4831 (count_combining_before, count_combining_after, insert_1_both)
4832 (insert_from_string, insert_from_string_before_markers)
4833 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4834 (insert_from_buffer_1, adjust_after_replace)
4835 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4836 (replace_range_2, del_range, del_range_1, del_range_byte)
4837 (del_range_both, del_range_2, modify_region)
4838 (prepare_to_modify_buffer, signal_before_change)
4839 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4840 for buffer positions and sizes.
4841 * lisp.h: Adjust prototypes accordingly.
4842
4843 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4844 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4845 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4846
4847 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4848
4849 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4850
4851 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4852 lines and columns so we keep the same pixel height and width.
4853
4854 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4855 the property _NET_WM_STATE has changed.
4856 (x_handle_net_wm_state): New function to update frame parameter
4857 fullscreen.
4858 (x_term_init): Initialize atoms for _NET_WM_STATE.
4859
4860 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4861
4862 2009-03-27 Kevin Ryde <user42@zip.com.au>
4863
4864 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4865 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4866 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4867 (Fgpm_mouse_stop): Pass that new parameter.
4868 * termhooks.h (close_gpm): Adjust prototype.
4869
4870 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4871
4872 * lisp.h (Fx_focus_frame): Declare.
4873
4874 * callint.c (Fcall_interactively): For '^' just delegate the work to
4875 handle-shift-selection.
4876 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4877
4878 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
4879
4880 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4881
4882 * data.c (Qinteractive_form): New variable.
4883 (Finteractive_form): Use it.
4884
4885 * eval.c (Fcommandp): Use Qinteractive_form.
4886
4887 2009-03-24 Jason Rumney <jasonr@gnu.org>
4888
4889 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4890 Calculate total size precisely. Decode environment variables
4891 before substituting. (Bug#38)
4892
4893 2009-03-24 Kenichi Handa <handa@m17n.org>
4894
4895 * font.c (find_font_encoding): Return Qnil for unsupported
4896 encoding (Bug#2722).
4897
4898 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4899
4900 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4901 that gdpy is set.
4902
4903 2009-03-22 Alan Mackenzie <acm@muc.de>
4904
4905 * callint.c (Finteractive): Clarify the doc string - even
4906 promptless elements need \n separators.
4907
4908 2009-03-22 Jason Rumney <jasonr@gnu.org>
4909
4910 * w32term.c (syms_of_w32term): Doc fix for
4911 x-use-underline-position-properties.
4912
4913 2009-03-21 Eli Zaretskii <eliz@gnu.org>
4914
4915 * w32.c (getpwuid): Change argument type to unsigned.
4916 (struct w32_id): Change type of `rid' member to unsigned.
4917 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4918 argument ID to unsigned. All callers changed.
4919 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4920
4921 2009-03-20 Eli Zaretskii <eliz@gnu.org>
4922
4923 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4924 negative, produce a float value.
4925
4926 * dired.c (make_uid, make_gid): New functions.
4927 (Ffile_attributes): Use them to avoid negative UID and GID.
4928
4929 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
4930
4931 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4932 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4933 Fix typos in docstrings.
4934
4935 2009-03-19 Kenichi Handa <handa@m17n.org>
4936
4937 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
4938 changed, use font_load_for_lface to get a new font object.
4939 Call free_realized_fontset after handling ASCII font change.
4940
4941 * frame.c (x_set_font): Handle the case that ARG is a cons.
4942
4943 2009-03-19 Glenn Morris <rgm@gnu.org>
4944
4945 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4946
4947 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
4948
4949 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4950
4951 2009-03-19 Kenichi Handa <handa@m17n.org>
4952
4953 * charset.c (load_charset_map_from_file): When a mapfile can't be
4954 loaded, signal an error.
4955
4956 2009-03-18 Eli Zaretskii <eliz@gnu.org>
4957
4958 * dired.c (Ffile_attributes): Make sure UID and GID are always
4959 positive, even if the value is too large for a positive EMACS_INT.
4960 Doc fix.
4961
4962 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4963
4964 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4965
4966 * xmenu.c (xdialog_show): Move Fredisplay call ...
4967 (Fx_popup_dialog): ... here.
4968
4969 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4970
4971 * dired.c (file_name_completion): Disable the first optimization just
4972 installed, since it is not implemented correctly.
4973
4974 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4975
4976 * dired.c (file_name_completion): Check completion-ignored-extensions
4977 only if the entry can affect bestmatch.
4978 Stop the search early, as Ftry_completion already does.
4979
4980 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
4981
4982 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
4983
4984 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
4985
4986 * keyboard.c (parse_menu_item): Don't display remappings as menu
4987 equivalent bindings (Bug#788).
4988
4989 2009-03-15 Jason Rumney <jasonr@gnu.org>
4990
4991 * w32term.h (WM_EMACS_PAINT): New message.
4992 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4993 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4994 before passing to lisp thread. (Bug#950)
4995
4996 2009-03-14 David Reitter <david.reitter@gmail.com>
4997
4998 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4999 variable as it was never reset.
5000 (ns_term_init): Remove initialization of Lisp-settable defaults
5001 and ns_expand_space.
5002 (-setPanelFromDefaultValues): Remove ns_expand_space.
5003 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
5004 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
5005 i.e. no additional spacing, similar to Carbon port.
5006
5007 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
5008 * nsfns.m (ns-popup-prefs-panel): Remove.
5009
5010 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
5011
5012 * sound.c (alsa_configure): Remove call to deprecated
5013 snd_pcm_sw_params_set_xfer_align.
5014
5015 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
5016
5017 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
5018 after clicking in a detached tool bar.
5019 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
5020
5021 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
5022
5023 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
5024 int/Lisp_Object mixup).
5025
5026 2009-03-13 Kenichi Handa <handa@m17n.org>
5027
5028 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
5029 Handle NAME nil and t correctly. Callers changed.
5030 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
5031 (set_fontset_font): Change ARG to a vector. Handle range_list in
5032 ARG correctly.
5033 (Fset_fontset_font): Fix the case that TARGET is both a script
5034 name and charset name. Adjust the arg to set_fontset_font for
5035 the above change.
5036 (fontset_from_font): Fix previous change.
5037 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
5038 entry. If FONTSET is the default fontset, don't set the extra
5039 slot of the returning char-table.
5040
5041 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
5042
5043 * nsfns.m (Fx_close_connection): Doc fix.
5044 (Fns_do_applescript): Reflow docstring.
5045 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
5046 (Fx_display_pixel_width, Fx_display_pixel_height)
5047 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
5048 Fix typos in docstrings.
5049 (Fns_set_alpha): Fix typos in error messages.
5050
5051 2009-03-12 David Reitter <david.reitter@gmail.com>
5052
5053 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
5054 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
5055 were used for such events.
5056
5057 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
5058 (toggleToolbar, performDragOperation, runHelp): Use it.
5059
5060 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
5061 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
5062
5063 2009-03-11 Kenichi Handa <handa@m17n.org>
5064
5065 * font.h (font_open_by_spec): Extern it.
5066
5067 * font.c (font_open_by_spec): New function.
5068 (font_open_by_name): Use font_open_by_spec.
5069
5070 * frame.c (x_set_font): When ARG is a font-object, don't alter the
5071 fontset of the frame.
5072
5073 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
5074 modify the default font of frames that use this fontset.
5075 (num_auto_fontsets): New variable.
5076 (fontset_from_font): Use num_auto_fontsets to decide a fontset
5077 name. Be sure to set FONTSET_ASCII to the correct font name.
5078 (update_auto_fontset_alist): New function.
5079
5080 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
5081
5082 * makefile.w32-in: Update dependencies.
5083
5084 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5085
5086 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
5087
5088 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5089
5090 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
5091
5092 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
5093
5094 * lread.c (Feval_buffer): Doc fix.
5095
5096 2009-03-09 Kenichi Handa <handa@m17n.org>
5097
5098 * charset.c (Qfile_name_handler_alist): Extern it.
5099 (load_charset_map_from_file): Temporarily bind
5100 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
5101
5102 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
5103
5104 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
5105 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
5106
5107 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5108
5109 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
5110 (x_set_window_size): Change back to calculated method of setting
5111 toolbar height under Cocoa. (Bug#2546)
5112 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
5113 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
5114
5115 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
5116
5117 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
5118 accelerator in parens under GNUstep.
5119
5120 2009-03-06 Kenichi Handa <handa@m17n.org>
5121
5122 These changes are to detect incorrect composition sequence without
5123 looking ahead the source. (Bug#2370)
5124
5125 * coding.h: Include "composite.h".
5126 (enum compisition_state): New enum.
5127 (struct compisition_status): New struct.
5128 (struct iso_2022_spec): New member cmp_status.
5129 (struct emacs_mule_spec): New struct.
5130 (struct coding_system): New members ctext_extended_segment_len and
5131 embedded_utf_8. Change the union member
5132 spec.emacs_mule_full_support to spec.emacs_mule.
5133
5134 * coding.c (CODING_ISO_CMP_STATUS): New macro.
5135 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
5136 (MAX_ANNOTATION_LENGTH): Define to 5.
5137 (ADD_COMPOSITION_DATA): New arg nbytes.
5138 (emacs_mule_char): New arg cmp_status.
5139 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
5140 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
5141 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
5142 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
5143 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
5144 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
5145 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
5146 (EMACS_MULE_COMPOSITION_END): New macro.
5147 (emacs_mule_finish_composition): New function.
5148 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
5149 (decode_coding_emacs_mule): Avoid long looking ahead while
5150 handling composition.
5151 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
5152 (ENCODE_COMPOSITION_RULE): New macro.
5153 (finish_composition): New function.
5154 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
5155 (DECODE_COMPOSITION_START): New implementation.
5156 (DECODE_COMPOSITION_END): Likewise.
5157 (STORE_COMPOSITION_RULE): New macro.
5158 (decode_coding_iso_2022): Avoid long looking ahead while handling
5159 composition, CTEXT extended segment, and embedded UTF-8.
5160 (setup_coding_system): For a coding of type iso-2022, reset
5161 CODING_ISO_EXTSEGMENT_LEN (coding) and
5162 CODING_ISO_EMBEDDED_UTF_8 (coding).
5163 (get_translation): Delete arguments last_block, from_nchars,
5164 to_nchars. Callers changed.
5165 (produce_chars): Don't modify charbuf. Adjusted for the change of
5166 get_translation.
5167 (produce_composition): Adjust for the new annotation sequence.
5168 (handle_composition_annotation): Likewise.
5169 (consume_chars): Adjust for the change of get_translation.
5170
5171 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
5172
5173 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
5174
5175 2009-03-05 Kenichi Handa <handa@m17n.org>
5176
5177 * font.c (font_select_entity): New function.
5178 (font_find_for_lface): Use font_select_entity to select a font.
5179
5180 * fontset.c (fontset_find_font): If a font found without
5181 restricting to the characters C doesn't support C, try to find a
5182 font with C restriction.
5183
5184 2009-03-04 Nikolaj Schumacher <me@nschum.de>
5185
5186 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
5187
5188 2009-03-04 Jason Rumney <jasonr@gnu.org>
5189
5190 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
5191 characters that have already been read. (Bug#2569)
5192
5193 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
5194 Log an error message if check_image_size failed.
5195 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
5196 (gs_load): Mention max-image-size in size error message. (Bug#2560)
5197
5198 2009-03-02 Eli Zaretskii <eliz@gnu.org>
5199
5200 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
5201 when decoding process output.
5202
5203 2009-03-01 Richard M Stallman <rms@gnu.org>
5204
5205 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
5206
5207 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
5208
5209 2009-02-28 Eli Zaretskii <eliz@gnu.org>
5210
5211 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
5212 (decode_coding_emacs_mule, decode_coding_iso_2022)
5213 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5214 (decode_coding_raw_text, decode_coding_charset)
5215 (setup_coding_system, decode_eol, decode_coding, consume_chars):
5216 Honor inhibit-eol-conversion. (Bug #2186)
5217
5218 2009-02-28 Jason Rumney <jasonr@gnu.org>
5219
5220 * coding.c (detect_coding_charset): If not checking latin extra,
5221 fail on characters between 0x80 and 0xA0. (Bug#2354)
5222
5223 2009-02-28 Eli Zaretskii <eliz@gnu.org>
5224
5225 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
5226 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
5227
5228 2009-02-27 Glenn Morris <rgm@gnu.org>
5229
5230 * callint.c (Finteractive): Doc fix.
5231
5232 2009-02-27 Kenichi Handa <handa@m17n.org>
5233
5234 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
5235
5236 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
5237
5238 * font.c (font_style_to_value): Set value for unknown symbols to
5239 100 instead of 255.
5240 (weight_table, slant_table, width_table): Treat "unspecified" as
5241 the default value.
5242
5243 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
5244
5245 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
5246
5247 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
5248
5249 * lread.c (Fload): Stop checking Vloads_in_progress and signal
5250 error as soon as a recursive load is detected.
5251
5252 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5253
5254 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
5255 before caching.
5256
5257 2009-02-24 Kenichi Handa <handa@m17n.org>
5258
5259 * fontset.c (fontset_find_font): Fix the condition for checking
5260 unavailable font.
5261
5262 2009-02-24 Glenn Morris <rgm@gnu.org>
5263
5264 * xfaces.c (Finternal_set_font_selection_order): Remove leading
5265 whitespace that confuses documentation.
5266
5267 2009-02-23 Miles Bader <miles@gnu.org>
5268
5269 * process.c (Flist_system_processes, Fprocess_attributes)
5270 (syms_of_process): Rename `system-process-attributes' to
5271 `process-attributes'.
5272
5273 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
5274
5275 * coding.h (struct coding_system): Make safe_charsets a pointer to
5276 unsigned char.
5277 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
5278 being 255.
5279 (SAFE_CHARSET_P): Likewise.
5280 (setup_iso_safe_charsets): Properly setup safe_charsets.
5281 (Fdefine_coding_system_internal): Likewise.
5282 (setup_coding_system): Likewise. Remove unneeded casts.
5283 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
5284 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
5285 unneeded casts.
5286
5287 * insdel.c (del_range_2): Don't modify gap contents when called
5288 from decode_coding_object. (Bug#1809)
5289
5290 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
5291
5292 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
5293 Qfont_object.
5294 (Ftype_of): Recognize font objects.
5295
5296 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
5297
5298 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
5299 moved to data.c.
5300
5301 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5302
5303 * nsterm.m (x_make_frame_invisible): Unset async_visible,
5304 async_iconified. Based on a patch by Christian Lynbech
5305 <christian.lynbech@tieto.com>.
5306 (EmacsView-windowDidMiniaturize:): Unset async_visible.
5307
5308 2009-02-20 Glenn Morris <rgm@gnu.org>
5309
5310 * syntax.c (Fskip_chars_forward): Fix doc typo.
5311
5312 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
5313
5314 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
5315
5316 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
5317
5318 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
5319
5320 2009-02-19 Kenichi Handa <handa@m17n.org>
5321
5322 * coding.c (detect_coding): Preserve coding->mode.
5323 Don't overflow coding->carryover. (Bug#2370)
5324
5325 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
5326
5327 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
5328
5329 2009-02-18 Kenichi Handa <handa@m17n.org>
5330
5331 * font.c (font_check_otf_features): Fix handling of `nil' element.
5332 (Ffont_spec): Describe :lang and :otf in the docstring.
5333
5334 2009-02-16 Andreas Schwab <schwab@suse.de>
5335
5336 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
5337 string.
5338
5339 2009-02-16 Kenichi Handa <handa@m17n.org>
5340
5341 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
5342 (Bug#1723)
5343
5344 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
5345
5346 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
5347
5348 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
5349 (handle_line_prefix): Suppress wrapping of wrap prefixes.
5350
5351 2009-02-14 Eli Zaretskii <eliz@gnu.org>
5352
5353 * msdos.c (MAX_SCREEN_BUF): New macro.
5354 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
5355 Encode the entire run of glyphs sharing the same face, instead of
5356 doing that one glyph at a time (fixes a bug with displaying
5357 double-size characters).
5358
5359 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
5360
5361 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
5362
5363 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
5364 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
5365 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
5366
5367 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
5368 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
5369
5370 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
5371
5372 * keyboard.c (adjust_point_for_property): Allow stopping between two
5373 invisible areas.
5374
5375 2009-02-12 Jason Rumney <jasonr@gnu.org>
5376
5377 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
5378 (add_font_entity_to_list): Call check_face_name even when family
5379 is unspecified.
5380
5381 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5382 Release DC when finished. Use NULL window to refer to desktop.
5383 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
5384
5385 * w32font.c (add_font_entity_to_list): Fix check for substituted
5386 raster fonts. (Bug#2219)
5387
5388 2009-02-12 Kenichi Handa <handa@m17n.org>
5389
5390 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
5391 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
5392 (autocmp_chars): Use fast_looking_at. Don't compose more
5393 characters than MAX_COMPOSITION_COMPONENTS.
5394 (find_automatic_composition): While looking forward and backward,
5395 check static composition. Fix where to stop looking forward.
5396 (composition_adjust_point): Fix checking of static composition.
5397 (Fcomposition_get_gstring): Pay attention to
5398 MAX_COMPOSITION_COMPONENTS.
5399
5400 * lisp.h (fast_looking_at): Extern it.
5401
5402 * search.c (fast_looking_at): New function.
5403
5404 * term.c (encode_terminal_code): Adjust for the change of
5405 <struct glyph>.u.cmp.to.
5406 (append_composite_glyph): Likewise.
5407
5408 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
5409 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
5410 composition.
5411 (append_composite_glyph): Adjust for the change of
5412 <strcut glyph>.u.cmp.to.
5413
5414 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
5415
5416 * casetab.c (init_casetab_once):
5417 * coding.c (ALLOC_CONVERSION_WORK_AREA):
5418 * font.c (font_update_lface):
5419 * fontset.c (Fnew_fontset):
5420 * ftfont.c (ftfont_drive_otf):
5421 * xfont.c (xfont_open):
5422 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
5423
5424 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5425
5426 * fileio.c (Fwrite_region): !NILP -> CONSP.
5427
5428 2009-02-10 Andreas Schwab <schwab@suse.de>
5429
5430 * process.c (send_process): Properly relocate pointer into data
5431 when using encoded data. (Bug#2272)
5432
5433 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
5434
5435 * coding.c (detect_coding_charset): Fix previous change.
5436
5437 2009-02-08 Jason Rumney <jasonr@gnu.org>
5438
5439 * w32fns.c (w32_hide_hourglass): Handle case where frame
5440 disappeared while hourglass was displayed. (Bug #2193)
5441
5442 2009-02-07 Andreas Schwab <schwab@suse.de>
5443
5444 * unexelf.c (unexec): Fix error message.
5445
5446 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
5447
5448 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
5449 when modal window is active. (Bug #2152)
5450 (applicationShouldTerminate:): Remove now-unneeded while loop
5451 around NSRunAlertPanel.
5452
5453 * nsmenu.m (popupSession): New file-global variable.
5454 (pop_down_menu): End the popupSession before closing dialog.
5455 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
5456 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
5457 don't query NSApp for events (just sleep instead).
5458
5459 2009-02-07 Eli Zaretskii <eliz@gnu.org>
5460
5461 * coding.c (syms_of_coding) <translation-table-for-input>:
5462 Modify doc string to discourage use for character code unification.
5463
5464 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5465
5466 * atimer.c (run_timers): Update pending_atimers.
5467
5468 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
5469
5470 * image.c (svg_load_image): Fix last change.
5471
5472 * xfns.c (Fx_create_frame): Signal an error if no font is
5473 found (Bug#2147).
5474
5475 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
5476
5477 * character.c (syms_of_character) <script-representative-chars>:
5478 Fix typo in docstring.
5479
5480 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5481
5482 * nsmenu.m (pop_down_menu): New function.
5483 (ns_popup_dialog): Call it on unwind.
5484 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
5485 call timer_check() (Bug#2154).
5486 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
5487 handling_signal is set.
5488 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
5489
5490 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
5491
5492 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
5493
5494 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
5495
5496 * keyboard.c (poll_for_input_1, handle_async_input):
5497 Set handling_signal under HAVE_NS.
5498
5499 2009-02-04 Glenn Morris <rgm@gnu.org>
5500
5501 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
5502
5503 2009-02-04 Kenichi Handa <handa@m17n.org>
5504
5505 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
5506
5507 * charset.c (Fchar_charset): New optional arg restriction.
5508
5509 * coding.h (coding_system_charset_list): Extern it.
5510
5511 * coding.c (coding_system_charset_list): New function.
5512
5513 * composite.c: Include coding.h and termhooks.h.
5514 (composition_gstring_p): Fix for the terminal case.
5515 (composition_gstring_width): Likewise.
5516 (fill_gstring_body): Likewise.
5517 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
5518 the frame.
5519 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
5520 is within a composition.
5521 (Fcomposition_get_gstring): Fix the terminal case.
5522
5523 * term.c (encode_terminal_code): Fix handling of composition.
5524 (produce_composite_glyph): For static composition, get pixel_width
5525 from struct composition.
5526
5527 2009-02-02 Andreas Schwab <schwab@suse.de>
5528
5529 * unexelf.c (unexec): Handle unaligned bss offset.
5530
5531 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5532
5533 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
5534 XT,w32read_socket changes to ns_read_socket.
5535
5536 * keyboard.c (handle_interrupt): Don't call
5537 quit_throw_to_read_char() under NS.
5538
5539 * blockinput.h: Remove NS-specific code.
5540
5541 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
5542
5543 * dispnew.c (window_change_signal): Don't try to get the size of a
5544 suspended tty frame.
5545 * term.c (Fresume_tty): Resize if the size has changed while the
5546 tty was suspended.
5547
5548 * alloc.c (mark_stack): Properly conditionalize previous change.
5549
5550 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
5551
5552 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
5553 * w32term.c (w32_read_socket) [SYNC_INPUT]:
5554 Remove; this code is not used on Windows.
5555
5556 2009-01-30 Eli Zaretskii <eliz@gnu.org>
5557
5558 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
5559 EOLs that also has stray ^M characters.
5560
5561 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
5562
5563 * atimer.c (run_timers, alarm_signal_handler):
5564 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
5565 * w32inevt.c (w32_console_read_socket):
5566 * w32term.c (w32_read_socket):
5567 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
5568
5569 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
5570
5571 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
5572 Initialize it as a relative filename pattern.
5573 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
5574 (Fcall_process_region): Simplify temp file creation using
5575 temporary-file-directory.
5576
5577 2009-01-29 Eli Zaretskii <eliz@gnu.org>
5578
5579 * msdos.c: Rename pending_signals to msdos_pending_signals.
5580 (sig_suspender, sigprocmask): Adjust.
5581
5582 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
5583
5584 * keyboard.c (pending_signals): New var.
5585 (poll_for_input, input_available_signal, init_keyboard): Set it.
5586 (process_pending_signals): New function.
5587
5588 * lisp.h (QUIT): Check pending_signals instead of
5589 interrupt_input_pending. Use process_pending_signals.
5590
5591 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
5592
5593 * process.c (wait_reading_process_output): Use process_pending_signals.
5594
5595 * sysdep.c (emacs_write): Use process_pending_signals.
5596
5597 * xterm.c (XTread_socket): Update pending_signals.
5598
5599 * w32term.c (w32_read_socket): Update pending_signals.
5600
5601 * w32inevt.c (w32_console_read_socket): Update pending_signals.
5602
5603 2009-01-29 Kenichi Handa <handa@m17n.org>
5604
5605 * xftfont.c (xftfont_has_char): New function.
5606 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5607
5608 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5609
5610 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5611 under GNUstep.
5612 (ns_query_color): New declaration.
5613
5614 * nsterm.m (ns_confirm_quit): New variable.
5615 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5616 (EmacsApp-applicationShouldTerminate:): Use it.
5617 (EmacsPrefsController): Let user set it.
5618 (ns_query_color): New function.
5619 (ns_defined_color): Use it.
5620 (ns_initialize): Drop.
5621 (ns_term_init): Add two lines from ns_initialize(), and set
5622 input_interrupt_mode to nil.
5623
5624 * image.c (svg_load_image): Don't right-shift background RGB when
5625 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
5626
5627 2009-01-28 Kenichi Handa <handa@m17n.org>
5628
5629 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
5630 (fontset_get_font_group): Remember that no font-group is specified
5631 for C.
5632
5633 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
5634
5635 * fns.c (concat): Check for string overflow (bug#1787).
5636
5637 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5638 Quadruple undo limits (bug#1501).
5639
5640 2009-01-27 Kenichi Handa <handa@m17n.org>
5641
5642 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5643 directly use GT_Get_Char_index.
5644
5645 * xftfont.c (struct xftfont_info): New member `index'.
5646
5647 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
5648 (Ffontset_font): Adjust for the change of fontset entry.
5649
5650 2009-01-26 Kenichi Handa <handa@m17n.org>
5651
5652 * fontset.c (fontset_find_font): Fix handling of non-cons return
5653 value of fontset_get_font_group.
5654 (fontset_font): Revert last change.
5655
5656 2009-01-26 Jason Rumney <jasonr@gnu.org>
5657
5658 * w32font.c (w32font_list_internal): Return quickly if registry is
5659 unknown. Simplify final return.
5660 (add_font_entity_to_list): Break complex logic down into more
5661 manageable chunks. Move unknown registry check to
5662 w32font_list_internal.
5663
5664 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5665
5666 Changes to remove Feval calls from GUI under NS.
5667
5668 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5669 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
5670 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5671
5672 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5673 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5674 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5675 instead of NON_ASCII_KEYSTROKE_EVENT.
5676 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5677 (EmacsApp-applicationShouldTerminate:): Query user.
5678 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5679 instead of Feval.
5680
5681 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5682
5683 * keyboard.c (kbd_buffer_get_event): Check for it.
5684 (keys_of_keyboard): Define lispy keys for
5685 ns-put/unput-working-text.
5686
5687 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5688 versions.
5689 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5690
5691 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
5692
5693 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
5694 setting current_buffer directly. (Bug#2044)
5695
5696 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
5697
5698 * fontset.c (fontset_font): If we know there is no font, don't do
5699 any work. (Bug#1952, bug#1990).
5700
5701 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
5702
5703 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5704
5705 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
5706 (ns_no_defaults): New declaration.
5707 (main): Use it.
5708
5709 * nsterm.h (ns_no_defaults): New declaration.
5710
5711 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
5712
5713 * nsterm.m (ns_no_defaults): New variable.
5714 (ns_initialize): Don't read defaults when ns_no_defaults.
5715 (EmacsView-readSelectionFromPasteboard:)
5716 (writeSelectionToPasteboard:types:): New stubbed-out methods for
5717 NSServicesRequests protocol. (Bug#1435)
5718 (ns_dumpglyphs_stretch): New function.
5719 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
5720 of 2008-11-15 to other terms. (Bug#615)
5721
5722 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5723
5724 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5725
5726 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5727 call for Sparc64.
5728
5729 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5730
5731 * nsfns.m:
5732 * nsgui.h:
5733 * nsmenu.m:
5734 * nsselect.m:
5735 * nsterm.h:
5736 * nsterm.m: Remove '23' comments that indicated code added during
5737 update from emacs-20 -> emacs-23.
5738
5739 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5740
5741 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
5742 ns_alternate_modifier. (Bug#1217)
5743
5744 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5745 Display all shortcuts, including those w/o super modifier.
5746
5747 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5748
5749 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
5750
5751 * fileio.c (Vwrite_region_post_annotation_function)
5752 (Vwrite_region_annotation_buffers): New vars.
5753 (build_annotations_unwind): Just reset
5754 Vwrite_region_annotation_buffers.
5755 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5756 Call write-region-post-annotation-function.
5757 (build_annotations): Add to Vwrite_region_annotation_buffers if
5758 buffer changes.
5759
5760 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5761
5762 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5763 Tiger.
5764 * nsfns.m (ns_do_applescript):
5765 Conditionalize typeUTF16ExternalRepresentation on Tiger.
5766
5767 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5768
5769 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5770
5771 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5772
5773 * nsmenu.m (NSMENUPROFILE): Change #if style.
5774
5775 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5776
5777 * nsterm.m (x_set_frame_alpha): Add prototype.
5778 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5779 handle Ctrl-tab. (Bug#1841)
5780 (ns_get_color): Use unsigned long long for scanned hex string value.
5781 (ns_term_shutdown): Abort on non SIGTERM signals.
5782 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
5783 (EmacsPrefsController-setPanelFromDefaultValues): New function.
5784 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
5785 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
5786 (ns_defined_color): Fix settings of the XColor variable fields:
5787 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
5788
5789 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
5790 DPI. (Bug#1316)
5791 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5792 values in onTiger section.
5793
5794 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
5795
5796 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5797 Check return value of font_spec_from_name.
5798 (Fx_list_fonts): Doc fix. (Bug#1951)
5799
5800 * font.c (font_spec_from_name): Return Qnil if font name could not
5801 be parsed.
5802 (font_parse_name): Treat a `?' character as part of an XLFD.
5803
5804 * fns.c (Fsubstring): Doc fix.
5805
5806 2009-01-19 Kenichi Handa <handa@m17n.org>
5807
5808 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
5809 (ftfont_list): Likewise.
5810
5811 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
5812
5813 * dbusbind.c (Fdbus_register_signal):
5814 * process.c (conv_sockaddr_to_lisp):
5815 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5816
5817 * callproc.c (Fgetenv_internal): Doc fix.
5818
5819 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
5820
5821 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5822 it is not even used.
5823
5824 2009-01-16 Glenn Morris <rgm@gnu.org>
5825
5826 * font.c (Ffont_variation_glyphs): Silence compiler.
5827
5828 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
5829
5830 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5831 Reported by David Robinow <drobinow@gmail.com>.
5832
5833 2009-01-15 Kenichi Handa <handa@m17n.org>
5834
5835 * coding.c (detect_coding_system): Fix handling of null_byte_found.
5836
5837 2009-01-14 Jason Rumney <jasonr@gnu.org>
5838
5839 * frame.c (x_set_font): Always store a font to the font parameter,
5840 never a fontset. (Bug#1562)
5841
5842 2009-01-14 Kenichi Handa <handa@m17n.org>
5843
5844 * coding.c (TWO_MORE_BYTES): New macro.
5845 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
5846
5847 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
5848
5849 * font.c (font_clear_prop): If clearing the family, clear the font
5850 width index too.
5851
5852 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
5853
5854 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
5855
5856 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5857 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5858 functions, use sizeof.
5859
5860 2009-01-12 Martin Rudalics <rudalics@gmx.at>
5861
5862 * keyboard.c (read_char): Fix case where last_nonmenu_event
5863 returned a bad value with submenus. (Bug#447)
5864
5865 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
5866
5867 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5868 family, clear the font width index too.
5869
5870 2009-01-11 Jason Rumney <jasonr@gnu.org>
5871
5872 * keyboard.c (cmd_error_internal): Exit when errors occur before
5873 frame creation and not in daemon mode. (Bug#1836)
5874
5875 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
5876
5877 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5878 of a display vector, backtrack.
5879 (try_window_reusing_current_matrix): Check glyph type before
5880 referencing charpos member.
5881
5882 2009-01-10 Eli Zaretskii <eliz@gnu.org>
5883
5884 Fix Bug #876:
5885
5886 * coding.c (inhibit_null_byte_detection): New variable.
5887 (detect_coding, detect_coding_system): Don't pay attention to null
5888 bytes if inhibit_null_byte_detection is non-zero.
5889 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
5890 <inhibit-iso-escape-detection>: Doc fix.
5891
5892 2009-01-09 Jason Rumney <jasonr@gnu.org>
5893
5894 * w32font.c (add_font_entity_to_list): Don't report unknown
5895 Windows charset as any unrecognized registry. (Bug#1548)
5896 Only report Unicode Plane 2 fonts as unicode-sip.
5897
5898 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
5899
5900 * xfaces.c (Fx_font_family_list): Delete function.
5901 Move compatibility version to faces.el.
5902
5903 * font.c (Ffont_family_list): Return a list of strings, not symbols.
5904
5905 2009-01-09 Martin Rudalics <rudalics@gmx.at>
5906
5907 * frame.c (x_set_frame_parameters): Remember requested value for
5908 fullscreen before it's reset by the parameter handler.
5909
5910 2009-01-09 Glenn Morris <rgm@gnu.org>
5911
5912 * keyboard.c (last_command_char): For clarity, rename to...
5913 (last_command_event): ... and update all users.
5914 (last_input_char): For clarity, rename to...
5915 (last_input_event): ... and update all users.
5916 (last-command-char, last-input-char): Move to subr.el as aliases.
5917 * cmds.c, commands.h: Update for last_command_char rename.
5918
5919 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
5920
5921 * font.c (font_open_for_lface): Handle unspecified height attribute.
5922
5923 2009-01-08 Jason Rumney <jasonr@gnu.org>
5924
5925 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5926 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5927 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5928 Don't declare.
5929 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5930 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5931
5932 2009-01-07 Kenichi Handa <handa@m17n.org>
5933
5934 * fileio.c (Finsert_file_contents): In the case of replace,
5935 remember the coding system used for decoding in
5936 coding_system (Bug#1039).
5937
5938 * coding.c (decode_coding_utf_8): Check byte_after_cr before
5939 breaking the loop. (Bug#870)
5940 (decode_coding_utf_16, decode_coding_emacs_mule)
5941 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5942 (decode_coding_charset): Likewise.
5943
5944 2009-01-05 Martin Rudalics <rudalics@gmx.at>
5945
5946 * frame.c (x_set_frame_parameters): Make sure height (width) get
5947 applied when fullwidth (fullheight) is set. (Bug#1522)
5948
5949 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
5950
5951 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5952 (utc_base): Declare as ULONGLONG, not long double.
5953 (convert_time_raw): Delete.
5954 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5955 (initialize_utc_base): New function.
5956 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5957 (convert_from_time_t): Use initialize_utc_base; compute result with
5958 64-bit arithmetic.
5959 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5960
5961 2009-01-03 Eli Zaretskii <eliz@gnu.org>
5962
5963 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
5964 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5965 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5966 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5967 [!subprocesses]: Define.
5968 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5969 (Flist_system_processes, Fsystem_process_attributes)
5970 [!subprocesses]: Call list_system_processes and
5971 system_process_attributes instead of returning Qnil.
5972
5973 * dosfns.c (system_process_attributes, list_system_processes):
5974 New functions.
5975
5976 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5977
5978 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5979 Don't use the default (no-op) implementation.
5980
5981 2009-01-03 Jason Rumney <jasonr@gnu.org>
5982
5983 * keyboard.c (parse_modifiers_uncached): Wheel events are
5984 clicks (bug#687).
5985
5986 * w32term.c (x_query_colors, x_query_color): New functions.
5987
5988 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5989 (svg_load_image): Cast returned pointers from dynamically loaded
5990 functions. Eliminate W32 specific code.
5991
5992 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5993
5994 * nsfns.m (x_set_foreground_color, x_set_background_color)
5995 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5996 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5997 x_ prefix instead of ns_. Update references.
5998 (syms_of_nsfns): Add a FIXME comment.
5999
6000 * nsterm.m (x_set_cursor_type): New prototype.
6001 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
6002
6003 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
6004 for Solaris instead of incorrectly providing Qutime and Qcutime.
6005
6006 2009-01-02 Eli Zaretskii <eliz@gnu.org>
6007
6008 * w32.c (process_times): Compute sum of utime and stime.
6009 (system_process_attributes): Add Qtime to the alist.
6010
6011 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
6012 and add them to the alist.
6013
6014 * process.c (top level) <Qtime, Qctime>: New variables.
6015 (syms_of_process): staticpro them.
6016 (Fsystem_process_attributes): Add their documentation to the doc
6017 string.
6018
6019 * process.h: Declare Qtime and Qctime.
6020
6021 2009-01-02 Jason Rumney <jasonr@gnu.org>
6022
6023 * image.c (Qgobject): New symbol.
6024 (syms_of_image): Initialize it.
6025 (init_svg_functions): Load some functions from gobject library.
6026
6027 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
6028
6029 * frame.c (make_terminal_frame): Remove redundant code and useless
6030 block.
6031
6032 2009-01-01 Andreas Schwab <schwab@suse.de>
6033
6034 * process.c (conv_sockaddr_to_lisp): Add workaround for
6035 getsockname bug on BSD.
6036
6037 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
6038
6039 * xfns.c (x_create_tip_frame): Set border width of the X window.
6040
6041 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
6042
6043 2009-01-01 Jason Rumney <jasonr@gnu.org>
6044
6045 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
6046 Don't block input, as per earlier xterm.c changes.
6047
6048 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
6049
6050 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
6051 (ns_appkit_version_int): New function.
6052 (x-server-version): Use ns_appkit_version_int and follow 21+
6053 convention of returning 3 integers.
6054
6055 2008-12-30 Kenichi Handa <handa@m17n.org>
6056
6057 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
6058 (CHAR_SURROGATE_PAIR_P): New macro.
6059
6060 * font.h (struct font_driver): New member get_variation_glyphs.
6061
6062 * font.c (font_range): Don't require a font for a variation selector.
6063 (Ffont_variation_glyphs): New function.
6064 (syms_of_font): Defsubr it.
6065
6066 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
6067 ftfont_variation_glyphs.
6068 (setup_otf_gstring): New function.
6069 (ftfont_drive_otf): Use it.
6070 (ftfont_shape_by_flt): Handle variation selector.
6071 (ftfont_variation_glyphs): New function.
6072
6073 2008-12-30 Martin Rudalics <rudalics@gmx.at>
6074
6075 * frame.c (Vemacs_iconified): Remove.
6076
6077 2008-12-30 Jason Rumney <jasonr@gnu.org>
6078
6079 * frame.c (store_frame_param, x_get_arg): Enable newer code on
6080 WINDOWSNT too, as related changes have already been synced. (Bug#117)
6081
6082 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
6083
6084 * indent.c (Fvertical_motion): Don't advance iterator if we have
6085 reseated to the desired position.
6086
6087 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
6088 checking for pos match.
6089
6090 2008-12-30 Kenichi Handa <handa@m17n.org>
6091
6092 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
6093 just get the low 8-bit of the code.
6094
6095 * font.c (font_intern_prop): Validate str as multibyte.
6096
6097 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6098
6099 * dispextern.h (struct face): Move lface and hash from the middle
6100 of bitfields.
6101
6102 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
6103
6104 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6105
6106 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
6107 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
6108 instead of intervals.h.
6109
6110 2008-12-26 Andreas Schwab <schwab@suse.de>
6111
6112 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
6113 cons.
6114
6115 2008-12-26 Martin Rudalics <rudalics@gmx.at>
6116
6117 * textprop.c (Qminibuffer_prompt): New variable.
6118 (syms_of_textprop): Initialize it.
6119 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
6120 in minibuffer-prompt face. (Bug#1662)
6121
6122 2008-12-25 Jason Rumney <jasonr@gnu.org>
6123
6124 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
6125
6126 2008-12-24 Jason Rumney <jasonr@gnu.org>
6127
6128 * ralloc.c (r_alloc_reset_variable): New function.
6129
6130 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
6131 record of what points where. (Bug#716)
6132
6133 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
6134
6135 * minibuf.c (read_minibuf): Follow the non-interactive case when
6136 running as a daemon, before detaching.
6137
6138 2008-12-22 Andreas Schwab <schwab@suse.de>
6139
6140 * buffer.c (init_buffer): Use realloc instead of xrealloc.
6141 * gtkutil.c (free_widget_value): Use xfree instead of free.
6142
6143 2008-12-22 Martin Rudalics <rudalics@gmx.at>
6144
6145 * frame.c (delete_frame): New function derived from
6146 Fdelete_frame to handle Qnoelisp value for FORCE argument.
6147 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
6148 (Fdelete_frame): Call delete_frame. Remove line from doc-string
6149 saying that FORCE non-nil doesn't run `delete-frame-functions'.
6150 * frame.h: Extern delete_frame.
6151 * window.c (window_loop):
6152 * terminal.c (delete_terminal):
6153 * xterm.c (x_connection_closed):
6154 * xfns.c (Fx_hide_tip):
6155 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
6156
6157 2008-12-21 Jason Rumney <jasonr@gnu.org>
6158
6159 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
6160 when character maps to .notdef character.
6161
6162 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
6163
6164 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
6165
6166 2008-12-20 Jason Rumney <jasonr@gnu.org>
6167
6168 * frame.c (Fmake_terminal_frame): Raise an error when called from
6169 a graphical frame on Windows. (Bug#1325)
6170
6171 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
6172
6173 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
6174
6175 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
6176
6177 * minibuf.c (Fread_buffer): Doc fix.
6178
6179 2008-12-20 Jason Rumney <jasonr@gnu.org>
6180
6181 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
6182 server name in UNC paths. (Bug#719)
6183
6184 * coding.c (decode_coding): Clear chars_at_source flag when using
6185 charbuf. (Bug#1035)
6186
6187 2008-12-19 Daniel Engeler <engeler@gmail.com>
6188
6189 * sysdep.c (serial_configure): Fix typo.
6190
6191 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6192
6193 * sysdep.c: Include alloca.h.
6194 (system_process_attributes): Add implementation for Solaris.
6195
6196 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
6197
6198 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6199
6200 Reorganize implementation of Flist_system_processes and
6201 Fsystem_process_attributes. No functional changes.
6202 * process.c: Don't #include pwd.h, grp.h and limits.h.
6203 (Flist_system_processes): Just call list_system_processes.
6204 (Fsystem_process_attributes): Just call system_process_attributes.
6205 (procfs_list_system_processes, time_from_jiffies)
6206 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
6207 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
6208
6209 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
6210 (list_system_processes): Rename from
6211 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
6212 Provide a do nothing implementation.
6213 (system_process_attributes): Rename from
6214 procfs_list_system_processes.
6215 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
6216 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
6217
6218 * w32.c (list_system_processes): Rename from
6219 w32_list_system_processes.
6220 (system_process_attributes): Rename from
6221 w32_system_process_attributes.
6222
6223 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
6224
6225 * process.h (w32_list_system_processes)
6226 (w32_system_process_attributes): Remove.
6227 (list_system_processes, system_process_attributes):
6228 New prototypes.
6229
6230 2008-12-19 Kenichi Handa <handa@m17n.org>
6231
6232 * xfont.c (xfont_decode_coding_xlfd): New function.
6233 (xfont_encode_coding_xlfd): New function.
6234 (xfont_list_pattern): Decode XLFD by iso-8859-1.
6235 (xfont_list): Decode and encode XLFD by iso-8859-1.
6236 (xfont_match): Likewise.
6237 (xfont_list_family): Likewise.
6238 (xfont_open): Likewise.
6239
6240 * ftfont.c (ftfont_open): Generate a multibyte string if given
6241 names are utf-8.
6242
6243 * xftfont.c (xftfont_open): Generate a multibyte string if given
6244 names are utf-8.
6245
6246 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
6247
6248 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
6249 changed.
6250 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
6251 clicked on a detached tool bar button.
6252
6253 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
6254
6255 * emacs.c (main): Print and error and exit when no data is read
6256 from the pipe.
6257
6258 2008-12-17 Jason Rumney <jasonr@gnu.org>
6259
6260 * w32font.c (w32font_has_char): Always return -1.
6261
6262 2008-12-16 Kenichi Handa <handa@m17n.org>
6263
6264 * font.c (font_open_entity): Fix previous change.
6265
6266 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
6267
6268 * process.c: Include <limits.h>.
6269
6270 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
6271
6272 * font.c (font_update_drivers): Fix mistake in reconstructing the
6273 driver list.
6274
6275 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
6276
6277 * font.c (font_clear_cache): Fix format of font cache data.
6278
6279 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
6280
6281 * xftfont.c (xftfont_open): Free Xft font pattern if
6282 XftFontOpenPattern fails.
6283
6284 * xterm.c (x_free_frame_resources): Remove extraneous call to
6285 free_frame_faces.
6286
6287 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
6288
6289 * xterm.c (x_delete_display): Move xim_close_dpy call to
6290 x_delete_terminal.
6291 (x_delete_terminal): Call xim_close_dpy.
6292
6293 2008-12-13 Jason Rumney <jasonr@gnu.org>
6294
6295 * w32font.c (intern_font_name): New function.
6296 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
6297 (w32font_open_internal, Fx_select_font): Decode font name.
6298 (fill_in_logfont, list_all_matching_fonts): Encode font name.
6299
6300 * w32font.h (intern_font_name): Declare new function.
6301
6302 * w32uniscribe.c (add_opentype_font_name_to_list):
6303 Use intern_font_name.
6304
6305 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
6306
6307 * frame.c (Fdelete_frame): Call free_font_driver_list.
6308
6309 * font.c (free_font_driver_list): Implement missing function.
6310
6311 * w32term.c (w32_term_init): Don't initialize the image cache
6312 here; it will be done in init_frame_faces.
6313
6314 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
6315 (struct x_display_info): Remove unused member null_pixel. New
6316 member xim_callback_data.
6317
6318 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
6319 (xim_initialize): Save pointer to callback function data.
6320 (xim_close_dpy): Free callback function data. Call XCloseIM,
6321 reverting 2008-11-04 change by David Smith.
6322 (x_term_init): Don't initialize the image cache here; it will be
6323 done in init_frame_faces. Remove ancient "null_pixel" cruft.
6324 (x_delete_display): Free x_dnd_atoms member.
6325
6326 2008-12-13 Kenichi Handa <handa@m17n.org>
6327
6328 * font.c (font_rescale_ratio): Moved from xfaces.c.
6329 Argument type changed. Handle a font-spec too.
6330 (font_score): Check Vface_font_rescale_alist.
6331 (font_open_entity): Likewise. (Bug#1547)
6332
6333 * xfaces.c (font_rescale_ratio): Moved to font.c.
6334
6335 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
6336
6337 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
6338
6339 2008-12-12 Jason Rumney <jasonr@gnu.org>
6340
6341 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
6342 Vwindow_system_version to the real w32 major version.
6343
6344 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
6345
6346 * term.c (init_tty): Move setting the terminal name before the
6347 potential user: maybe_fatal.
6348
6349 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
6350
6351 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
6352 all callers changed. Call free_frame_faces to free the face cache.
6353
6354 2008-12-11 Jason Rumney <jasonr@gnu.org>
6355
6356 * w32font.c (fill_in_logfont): Don't assume symbol script means
6357 SYMBOL_CHARSET. (Bug#547)
6358
6359 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
6360 size for surrogates. (Bug#1096, bug#872)
6361
6362 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
6363
6364 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
6365
6366 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
6367
6368 * process.c (Fsystem_process_attributes, syms_of_process):
6369 Fix typo in name of Ssystem_process_attributes.
6370 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
6371
6372 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
6373
6374 * syntax.c (Fmodify_syntax_entry): Doc fix.
6375
6376 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
6377
6378 * font.c (Ffont_spec): Move usage to end of docstring.
6379
6380 2008-12-10 Jason Rumney <jasonr@gnu.org>
6381
6382 * w32font.c (Qcham): New symbol.
6383 (font_supported_scripts): Add cham, and comments for other new
6384 scripts in bitfield from OpenType spec.
6385 (add_font_entity_to_list): Limit unicode-sip fonts to those that
6386 contain characters beyond the bmp.
6387
6388 2008-12-10 Kenichi Handa <handa@m17n.org>
6389
6390 * ftfont.c (fc_charset_table): Add "unicode-sip".
6391 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
6392 Qunicode_sip.
6393
6394 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
6395
6396 * coding.c (QCdefault_char): Rename from QCdefalut_char.
6397 (Fcoding_system_put): Use QCdefault_char.
6398 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
6399
6400 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
6401
6402 * xftfont.c (syms_of_xftfont): Fix typo.
6403
6404 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
6405
6406 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
6407
6408 * emacs.c (main): Close daemon_pipe on exec.
6409
6410 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
6411
6412 * termchar.h (struct tty): New members termcap_term_buffer and
6413 termcap_strings_buffer.
6414
6415 * term.c (encode_terminal_code): Free any previous memory blocks
6416 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
6417 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
6418 All callers changed.
6419 (init_tty): Store termcap data and string buffers in new struct
6420 tty members termcap_term_buffer and termcap_strings_buffer.
6421 (delete_tty): Free them.
6422 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
6423
6424 2008-12-07 Seiji Zenitani <zenitani@mac.com>
6425
6426 * nsfns.m (ns_set_background_color): Remove code duplication.
6427 It was a substitute for face-transparency on OS X 10.3.
6428
6429 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
6430
6431 * coding.c (make_conversion_work_buffer): Disable buffer
6432 modification hooks in the work buffer.
6433
6434 2008-12-05 Eli Zaretskii <eliz@gnu.org>
6435
6436 * process.c (procfs_system_process_attributes): If `nread' has a
6437 negative value, assign zero to it.
6438
6439 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
6440
6441 * eval.c (Vdebug_on_error): Doc fix.
6442
6443 2008-12-05 Kenichi Handa <handa@m17n.org>
6444
6445 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
6446 second character is a combining character.
6447
6448 2008-12-05 Eli Zaretskii <eliz@gnu.org>
6449
6450 * process.c (procfs_system_process_attributes): Don't use cmd,
6451 cmdsize, and q without initializing them first.
6452
6453 2008-12-04 Jason Rumney <jasonr@gnu.org>
6454
6455 * w32font.c (w32font_draw): Initialize orig_clip before getting
6456 it, and delete it when finished.
6457
6458 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
6459
6460 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
6461 case when running as a daemon before detaching.
6462
6463 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
6464
6465 * w32.c (init_environment): Don't unload library shell32.dll.
6466
6467 2008-12-03 Kenichi Handa <handa@m17n.org>
6468
6469 * font.c (font_at): Set `multibyte' at first.
6470
6471 * coding.c (decode_coding_charset): Check type of an element of
6472 vector VALIDS.
6473 (encode_coding_emacs_mule): Be sure to set `code'.
6474
6475 * fontset.c (face_for_char): Handle invalid charset property correctly.
6476 (font_for_char): Likewise.
6477
6478 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
6479
6480 * font.c (Fopen_font): Compute pixel size correctly.
6481 (font_update_lface): Handle fonts with corrupted size specs,
6482 i.e. non-int and non-float.
6483
6484 * ftfont.c (ftfont_match): Initialize entity variable.
6485 (ftfont_resolve_generic_family): Avoid using uninitialized var.
6486 (ftfont_list_family): Initialize list var earlier.
6487
6488 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
6489
6490 * xterm.c (x_draw_glyph_string): Fall back on
6491 underline_minimum_offset for underline position.
6492
6493 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
6494
6495 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
6496
6497 * character.c (c_string_width): Specify the type for LEN.
6498
6499 2008-12-03 Kenichi Handa <handa@m17n.org>
6500
6501 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
6502 (decode_coding_utf_8): Likewise.
6503 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
6504 (produce_chars): Initialize consumed_chars to 0.
6505
6506 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
6507
6508 * keyboard.c (make_lispy_position): Only use PT if the selected
6509 window is current.
6510
6511 2008-12-02 Andreas Schwab <schwab@suse.de>
6512
6513 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
6514
6515 * doprnt.c (doprnt1): Fix size of charbuf.
6516
6517 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
6518
6519 * keyboard.c (timer_check): Revert last change.
6520
6521 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
6522
6523 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
6524
6525 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
6526
6527 * makefile.w32-in: Update dependencies.
6528 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
6529
6530 2008-12-01 Andreas Schwab <schwab@suse.de>
6531
6532 * font.c (register_font_driver): Use xmalloc.
6533 (font_put_frame_data): Likewise.
6534
6535 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
6536
6537 * xfaces.c (realize_x_face): Make abort condition clearer.
6538
6539 * gtkutil.c (update_frame_tool_bar): Initialize variable.
6540
6541 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
6542
6543 * keyboard.c (timer_check): After a timer runs, ensure that the
6544 selected window's buffer is current.
6545
6546 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
6547
6548 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
6549 It was accidentally restored by the Unicode merge.
6550
6551 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
6552
6553 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
6554
6555 * w32proc.c: Include "coding.h".
6556 (Fw32_short_file_name): Encode filename passed to Windows API.
6557 (Fw32_long_file_name): Encode filename passed to Windows API and
6558 decode back the result. (Bug#1433)
6559
6560 2008-11-29 Kenichi Handa <handa@m17n.org>
6561
6562 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
6563 not before accessing it.
6564
6565 * charset.c (Fdefine_charset_internal): After calculating
6566 min_char, max_char, and fastmap, copy the charset structure again.
6567 (encode_char): Fix the previous change.
6568
6569 2008-11-28 Seiji Zenitani <zenitani@mac.com>
6570
6571 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
6572
6573 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
6574
6575 * nsterm.m (x_set_frame_alpha): New function.
6576
6577 2008-11-27 Eli Zaretskii <eliz@gnu.org>
6578
6579 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
6580
6581 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
6582
6583 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
6584 pointer to check_face_name.
6585
6586 2008-11-27 Kenichi Handa <handa@m17n.org>
6587
6588 * category.h (SET_CATEGORY_SET): Call set_category_set.
6589 (set_category_set): Extern it.
6590
6591 * category.c (hash_get_category_set): New function.
6592 (Fmodify_category_entry): Adjusted for the change of
6593 char_table_ref_and_range. Call hash_get_category_set to get a
6594 category set to store in the table.
6595
6596 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
6597 Funify_charset.
6598
6599 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
6600 (DECODE_CHAR): Check if the decoder vector is ready.
6601 (ENCODE_CHAR): Check if the encoder char-table is ready.
6602 (maybe_unify_char): Extern it.
6603
6604 * charset.c (Vchar_unified_charset_table): Delete it.
6605 (inhibit_load_charset_map): New variable.
6606 (temp_charset_work): New variable.
6607 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6608 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6609 New macros.
6610 (load_charset_map): Meaning of control_flag changed. If
6611 inhibit_load_charset_map is nonzero, setup a table in
6612 temp_charset_work.
6613 (load_charset): New argument control_flag.
6614 (map_charset_for_dump): New function.
6615 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6616 map_charset_for_dump.
6617 (Fdefine_charset_internal): If the charset method is MAP, load
6618 mapping tables by calling load_charset.
6619 (Funify_charset): Don't load a mapping table but directly set
6620 Vchar_unify_table.
6621 (maybe_unify_char): New function.
6622 (decode_char): Don't handle the deleted method MAP_DEFERRED.
6623 Handle the case of inhibit_load_charset_map being nonzero.
6624 (encode_char): Don't handle the deleted method MAP_DEFERRED.
6625 Handle the case of inhibit_load_charset_map being nonzero.
6626 (Fclear_charset_maps): Just free temp_charset_work.
6627 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6628 variable.
6629
6630 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6631 change of char_table_ref_and_range.
6632 (char_table_ref_and_range): Change the meaning of argument FROM
6633 and TO. Now the caller must provide initial values for *FROM
6634 and *TO.
6635
6636 * fontset.c (fontset_add): Adjusted for the change of
6637 char_table_ref_and_range.
6638 (fontset_get_font_group): Likewise.
6639 (Ffontset_info): Likewise.
6640
6641 * keymap.c (describe_vector): Adjusted for the change of
6642 char_table_ref_and_range. For char-table, put boundary between
6643 non-ASCII and 8-bit characters.
6644
6645 * print.c (print_object): For bool-vector, delete unnecessary
6646 check of ASCII_BYTE_P.
6647
6648 2008-11-26 Jason Rumney <jasonr@gnu.org>
6649
6650 * w32font.c (w32font_open_internal): Don't include external
6651 leading in font height. (Bug#879)
6652
6653 2008-11-26 Glenn Morris <rgm@gnu.org>
6654
6655 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6656 redefinition with ifdef. (Bug#1383)
6657
6658 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6659
6660 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6661
6662 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6663
6664 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6665 New EmacsView methods.
6666 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6667 Fixes bug #1048,1357,1414.
6668
6669 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6670
6671 Fix bug #1362.
6672 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6673 is not an indexed color.
6674 * nsterm.m (free_indexed_color): Add argument checking.
6675 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6676
6677 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
6678
6679 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6680 Document confirm-after-completion value for
6681 minibuffer-completion-confirm.
6682
6683 2008-11-24 Jason Rumney <jasonr@gnu.org>
6684
6685 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6686 warning.
6687
6688 2008-11-23 Jason Rumney <jasonr@gnu.org>
6689
6690 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6691 restored before returning.
6692
6693 * w32font.c (check_face_name): New function.
6694 (add_font_entity_to_list): Use it to filter out common substituted
6695 fonts. (Bug#642)
6696
6697 2008-11-22 Martin Rudalics <rudalics@gmx.at>
6698
6699 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6700 confirm-nonexistent-file-or-buffer in doc-string.
6701
6702 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6703
6704 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6705 Fix copy/paste typo. Add checks.
6706
6707 2008-11-21 Kenichi Handa <handa@m17n.org>
6708
6709 * coding.c (detect_coding_iso_2022): Reject invalid composition
6710 sequence.
6711 (DECODE_COMPOSITION_START): If the current source is the last
6712 block, and the current composition doesn't end, regard this
6713 sequence as invalid.
6714 (decode_coding_iso_2022): Handle invalid composition sequence.
6715
6716 2008-11-20 Martin Rudalics <rudalics@gmx.at>
6717
6718 * window.c (coordinates_in_window): Don't return
6719 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6720 line when the window is not the rightmost one. (Bug#1372)
6721
6722 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6723
6724 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6725
6726 2008-11-15 Eli Zaretskii <eliz@gnu.org>
6727
6728 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6729 and bright_bg if noninteractive is non-zero.
6730
6731 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6732
6733 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6734 x_draw_glyph_string_background.
6735
6736 * w32term.c (x_draw_glyph_string): Likewise.
6737
6738 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
6739
6740 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6741 the next glyph string once past the overhang width.
6742
6743 * nsterm.m (ns_draw_glyph_string): Likewise.
6744
6745 * w32term.c (x_draw_glyph_string): Likewise.
6746
6747 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6748
6749 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6750 double file close.
6751
6752 2008-11-14 Martin Rudalics <rudalics@gmx.at>
6753
6754 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6755 dedicated status of window before attempting to display another
6756 buffer in it.
6757
6758 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
6759
6760 * msdos.c (Fmsdos_long_file_names):
6761 (syms_of_msdos) <dos-unsupported-char-glyph>:
6762 * dosfns.c (Fint86): Fix typos in docstrings.
6763
6764 2008-11-14 Eli Zaretskii <eliz@gnu.org>
6765
6766 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6767
6768 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6769
6770 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6771
6772 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6773
6774 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6775
6776 * frame.h: Negative alpha means "don't touch".
6777
6778 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6779
6780 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6781
6782 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6783
6784 * hftctl.c:
6785 * chpdef.h:
6786 * acldef.h: Remove files used only for systems no longer supported.
6787
6788 * Makefile.in: Fix .o alphabetical ordering.
6789 (hftctl.o): Remove dependency, file removed.
6790 (keymap.o, print.o): Depend on charset.h.
6791
6792 2008-11-10 Kenichi Handa <handa@m17n.org>
6793
6794 * character.c (Fget_byte): Fix and make it faster for unibyte target.
6795
6796 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
6797
6798 * dired.c (file_name_completion): If completion_ignore_case is
6799 enabled, ignore case when checking completion-regexp-list.
6800
6801 2008-11-08 Eli Zaretskii <eliz@gnu.org>
6802
6803 * vm-limit.c (get_lim_data): Fix last change.
6804
6805 2008-11-08 Kenichi Handa <handa@m17n.org>
6806
6807 * character.c (Fget_byte): New function.
6808 (syms_of_character): Defsubr Fget_byte.
6809
6810 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
6811
6812 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6813 cursor position is valid after scrolling.
6814
6815 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
6816
6817 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6818
6819 2008-11-06 Glenn Morris <rgm@gnu.org>
6820
6821 * xterm.c (handle_one_xevent): Don't let popup menus cause
6822 mouse-autoselect-window related window switching. (Bug#1261)
6823
6824 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6825
6826 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6827
6828 2008-11-04 Andreas Schwab <schwab@suse.de>
6829
6830 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6831
6832 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
6833
6834 * xfns.c (Fx_wm_set_size_hint): New function.
6835
6836 2008-11-03 Martin Rudalics <rudalics@gmx.at>
6837
6838 * textprop.c (Fprevious_single_char_property_change): Return 0
6839 when there's no change in a string. (Bug#1301)
6840
6841 2008-11-02 Martin Rudalics <rudalics@gmx.at>
6842
6843 * frame.c (do_switch_frame): New argument NORECORD passed to
6844 Fselect_window.
6845 (Fselect_frame): New argument NORECORD passed to
6846 do_switch_frame.
6847 (Fset_frame_selected_window): New argument NORECORD passed to
6848 Fselect_frame.
6849 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6850 in call of do_switch_frame.
6851 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6852 Handle NORECORD argument in call of Fselect_frame.
6853 * lisp.h (do_switch_frame, Fselect_frame)
6854 (Fset_frame_selected_window): Adjust declarations.
6855 * window.c (select_frame_norecord): New function.
6856 (run_window_configuration_change_hook): Use it and call
6857 Fselect_frame with NORECORD set.
6858 (Fselect_window): Pass NORECORD to Fselect_frame.
6859 (Fset_window_configuration): Handle NORECORD argument in call of
6860 do_switch_frame.
6861 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6862 Fset_frame_selected_window.
6863 * keyboard.c (command_loop_1): Handle NORECORD in call of
6864 Fselect_frame (currently ifdefd).
6865
6866 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6867
6868 * emacs.c (USAGE2): Untabify.
6869
6870 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6871
6872 * composite.c (fill_gstring_header): Fix copy/paste typo.
6873
6874 2008-10-31 Martin Rudalics <rudalics@gmx.at>
6875
6876 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6877 (Fother_window): Rename argument and rewrite doc-string.
6878 (select_window_norecord): Fix return value. (Bug#1276)
6879
6880 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
6881
6882 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6883 new frames overriding foreground for tooltips. Based on similar patch
6884 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6885
6886 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
6887
6888 * emacs.c (Fdaemon_initialized): Initialize nfd.
6889
6890 2008-10-29 Martin Rudalics <rudalics@gmx.at>
6891
6892 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6893 (Fwindow_text_height): Clarify doc-strings.
6894 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6895 doc-string of window-scroll-functions.
6896
6897 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6898
6899 * category.c (syms_of_category): Fix typo in docstring.
6900
6901 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
6902
6903 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6904 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6905 Fix typos in docstrings.
6906
6907 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6908
6909 * emacs.c (daemon_pipe): Make non-static.
6910 (IS_DAEMON): Move definition ...
6911 * lisp.h (IS_DAEMON): ... here.
6912 (daemon_pipe): Declare.
6913 (is_daemon): Remove.
6914 * dispnew.c (init_display): Use IS_DAEMON.
6915
6916 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6917
6918 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6919 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6920
6921 * emacs.c (is_daemon): Remove.
6922 (main): Don't set is_daemon.
6923 (IS_DAEMON): New macro.
6924 (Fdaemonp, Fdaemon_initialized): Use it.
6925 (Fdaemon_initialized): Write a char into the pipe to make sure the
6926 parent exits.
6927 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6928
6929 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
6930
6931 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6932 over-sized glyph, draw it with the default glyph width.
6933
6934 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6935 glyph, draw it with the default glyph width.
6936
6937 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6938 glyph, draw it with the default glyph width.
6939
6940 * xdisp.c (try_scrolling): When computing the distance from the
6941 scroll margin to PT, try moving some distance past the window
6942 bottom before giving up.
6943
6944 2008-10-27 Martin Rudalics <rudalics@gmx.at>
6945
6946 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6947 (Fset_window_buffer): Explain in doc-string that a window can be
6948 "strongly" dedicated to its buffer.
6949
6950 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6951
6952 * emacs.c (daemon_name): New variable.
6953 (main): Deal with --daemon=SERVER_NAME.
6954 (Fdaemonp): Return a name if one was passed to --daemon.
6955
6956 2008-10-26 Romain Francoise <romain@orebokech.com>
6957
6958 * emacs.c (daemon_pipe): New variable.
6959 (main): Create a pipe before forking, make the parent exit only after
6960 the child has closed its end of the pipe. Move closing the
6961 descriptors ...
6962 (Fdaemon_initialized): ... here. New function.
6963
6964 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6965
6966 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6967 the previous unoptimized table.
6968
6969 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6970 the distinction between non-nil and non-t value of `dedicated'.
6971
6972 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
6973
6974 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
6975 read_char_minibuf_menu_text is large enough to hold the menu string.
6976
6977 2008-10-25 Martin Rudalics <rudalics@gmx.at>
6978
6979 * window.c (Fget_buffer_window, Fdelete_windows_on)
6980 (Freplace_buffer_in_windows): Make buffer argument optional and
6981 rename to buffer_or_name.
6982
6983 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
6984
6985 * xdisp.c (handle_single_display_spec, handle_display_prop):
6986 Undo 2005-05-16 change.
6987 (handle_stop): Pop iterator if it's loaded with an empty string.
6988 (get_overlay_strings_1): Don't save iterator if it's loaded with
6989 an empty string (bug#1201).
6990
6991 2008-10-24 Kenichi Handa <handa@m17n.org>
6992
6993 * ftfont.c (ftfont_otf_features): Fix previous change.
6994 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6995 calling ftfont_otf_features.
6996
6997 2008-10-24 Kenichi Handa <handa@m17n.org>
6998
6999 * font.c (font_match_p): Fix for the case that a vector of
7000 characters is in script-representative-chars.
7001
7002 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
7003
7004 * dbusbind.c (xd_in_read_queued_messages): New variable.
7005 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
7006 (xd_read_queued_messages): Catch Qdbus_error from the macros.
7007 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
7008 macro. (Bug#1186)
7009
7010 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
7011
7012 * s/sol2-10.h: New file.
7013
7014 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
7015
7016 * xdisp.c (fill_glyph_string): Fix typo in source (though the
7017 poor beast has survived 9+ years and the jump from xterm.c!).
7018
7019 2008-10-23 Martin Rudalics <rudalics@gmx.at>
7020
7021 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
7022 Reword doc-string.
7023 (Fbury_buffer): In doc-string say what happens to the buffer's window.
7024
7025 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
7026
7027 * character.c (syms_of_character) <script-representative-chars>:
7028 <unicode-category-table>: Doc fixes.
7029
7030 2008-10-23 Noah Friedman <friedman@splode.com>
7031
7032 * coding.c (make_conversion_work_buffer): Check that
7033 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
7034 Fget_buffer_create.
7035
7036 2008-10-23 Kenichi Handa <handa@m17n.org>
7037
7038 * font.c (font_add_log): Check the values of extra properties.
7039
7040 2008-10-22 Martin Rudalics <rudalics@gmx.at>
7041
7042 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7043 Reword doc-string.
7044 (Fset_window_parameter): Use NILP.
7045 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
7046 (Frecenter): Use "selected" instead of "current" window in doc-strings.
7047
7048 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
7049
7050 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
7051
7052 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7053
7054 * nsfns.m (ns_appkit_version): New function.
7055 (x-server-version): Use it.
7056 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
7057 (x-server-vendor): Don't check_ns().
7058
7059 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
7060
7061 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
7062
7063 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
7064 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
7065
7066 2008-10-22 Kenichi Handa <handa@m17n.org>
7067
7068 * syntax.c (scan_words): Call word_boundary_p instead of comparing
7069 scripts.
7070
7071 * category.c (word_boundary_p): Check scripts instead of charset.
7072 Handle nil value in word-separating-categories and
7073 word-combining-categories.
7074 (syms_of_category): Fix docstrings of word-separating-categories
7075 and word-combining-categories.
7076
7077 2008-10-21 Eli Zaretskii <eliz@gnu.org>
7078
7079 * coding.c (Fencode_coding_region, Fdecode_coding_region)
7080 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
7081
7082 2008-10-21 Martin Rudalics <rudalics@gmx.at>
7083
7084 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
7085 Rename arg "buffer" to "buffer_or_name".
7086 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
7087 it optional.
7088 (no_switch_window): Remove since the return value is not used.
7089 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
7090 Consider window as dedicated when Fwindow_dedicated_p returns a
7091 non-nil value.
7092 * lisp.h: Remove prototype for no_switch_window.
7093
7094 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
7095
7096 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
7097 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
7098
7099 2008-10-21 Kenichi Handa <handa@m17n.org>
7100
7101 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
7102 check Vlatin_extra_code_table.
7103
7104 2008-10-20 Eli Zaretskii <eliz@gnu.org>
7105
7106 * fileio.c (Fset_file_modes): Doc fix.
7107
7108 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
7109
7110 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
7111 in arrays.
7112
7113 2008-10-19 Martin Rudalics <rudalics@gmx.at>
7114
7115 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7116 Mention kill-buffer in doc-string.
7117 (Fset_window_buffer): Reinsert tem check removed in last commit.
7118 (Fenlarge_window, Fshrink_window): Have argument names and
7119 doc-string follow Elisp manual more closely.
7120
7121 2008-10-18 Eli Zaretskii <eliz@gnu.org>
7122
7123 * fileio.c (Fset_file_modes): Doc fix.
7124
7125 2008-10-18 Martin Rudalics <rudalics@gmx.at>
7126
7127 * window.c (Fwindow_width, Fset_window_start)
7128 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
7129 (Fdelete_windows_on, Freplace_buffer_in_windows):
7130 Make doc-strings follow code and Elisp manual more closely.
7131 (Fwindow_dedicated_p): Make window argument optional.
7132 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
7133 (Fset_window_buffer): Respect any non-nil dedicated value for
7134 window. Rename "buffer" argument to "buffer_or_name".
7135
7136 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
7137
7138 * m/sh3.h: New file, machine description for SuperH.
7139
7140 2008-10-17 Martin Rudalics <rudalics@gmx.at>
7141
7142 * window.c (Fsplit_window): Rename arg horflag to horizontal.
7143
7144 2008-10-17 Kenichi Handa <handa@m17n.org>
7145
7146 * ftfont.c (ftfont_otf_features): Fix indexing
7147 gsub_gpos->FeatureList.Feature. Check the validity of indices.
7148
7149 2008-10-16 Magnus Henoch <mange@freemail.hu>
7150
7151 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
7152 (Fdbus_call_method_asynchronously): Ditto.
7153 This change makes C-h f display the argument list.
7154
7155 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
7156
7157 * fileio.c (Fexpand_file_name): Doc fix.
7158
7159 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
7160 of :foreground and :background equivalent to unspecified (20.x
7161 compatibility).
7162
7163 2008-10-15 Eli Zaretskii <eliz@gnu.org>
7164
7165 * buffer.c (syms_of_buffer): Doc fix.
7166
7167 2008-10-14 Kenichi Handa <handa@m17n.org>
7168
7169 * font.c (font_clear_prop): When clearing font width, clear the
7170 average width field too.
7171
7172 2008-10-12 Andreas Schwab <schwab@suse.de>
7173
7174 * ftfont.c (ftfont_shape_by_flt): Make static.
7175 * ftfont.h (ftfont_shape_by_flt): Don't declare.
7176
7177 * font.c: Don't include <m17n-flt.h>.
7178
7179 2008-10-10 Eli Zaretskii <eliz@gnu.org>
7180
7181 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
7182
7183 2008-10-09 Eli Zaretskii <eliz@gnu.org>
7184
7185 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
7186 away code.
7187
7188 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
7189
7190 * dispnew.c (update_text_area): Avoid looping due to large glyph
7191 overhangs (bug#1070).
7192
7193 2008-10-09 Kenichi Handa <handa@m17n.org>
7194
7195 * fontset.c (face_for_char): If face->fontset is negative, just
7196 return ascii_face.
7197
7198 * font.c (font_delete_unmatched): Fix previous change.
7199 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
7200
7201 2008-10-09 Martin Rudalics <rudalics@gmx.at>
7202
7203 * frame.c (Fraise_frame): On text-only terminals select frame in
7204 order to make it visible. (Bug#1061)
7205
7206 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
7207
7208 * fontset.c (fontset_find_font): Check frame validity.
7209
7210 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
7211
7212 * gtkutil.c (xg_display_open): Reset default display if none exists.
7213 (xg_display_close): Allow Emacs to close all displays (bug#985).
7214
7215 2008-10-06 Andreas Schwab <schwab@suse.de>
7216
7217 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
7218
7219 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
7220
7221 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
7222
7223 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
7224
7225 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
7226 during initialization.
7227
7228 2008-10-04 Eli Zaretskii <eliz@gnu.org>
7229
7230 * xdisp.c (redisplay_internal): If frame switched, redisplay the
7231 whole thing on MSDOS frames as well as on a TTY.
7232
7233 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
7234 well as for TTY.
7235 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
7236 well as on a TTY.
7237
7238 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
7239 as well as for TTY.
7240
7241 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
7242
7243 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
7244 MSDOS frames as well.
7245
7246 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7247
7248 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
7249 correct arguments.
7250 * menu.c (find_and_return_menu_selection): Add cast.
7251
7252 2008-10-03 Glenn Morris <rgm@gnu.org>
7253
7254 * emacs.c (USAGE1): Add --daemon.
7255
7256 2008-10-02 Eli Zaretskii <eliz@gnu.org>
7257
7258 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
7259 100, so it's in percents as advertised.
7260
7261 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7262
7263 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
7264 (ns_output.current_cursor, ns_output.desired_cursor)
7265 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
7266 (FRAME_NEW_CURSOR_COLOR): Remove.
7267
7268 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
7269 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
7270 enumeration (HOLLOW_BOX_CURSOR, etc.).
7271
7272 * nsterm.m (ns_frame_rehighlight): Remove commented code.
7273 (draw_window_cursor): Simplify code.
7274 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
7275 Don't change cursor type. In latter, call rehighlight instead of doing
7276 updates manually.
7277 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
7278 Use core Emacs cursor types.
7279
7280 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
7281
7282 2008-10-02 Martin Rudalics <rudalics@gmx.at>
7283
7284 * process.c (Faccept_process_output): Fix doc-string.
7285
7286 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
7287
7288 * gmalloc.c (__sbrk): Also define for uClibc.
7289
7290 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
7291 for uClibc.
7292
7293 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7294
7295 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
7296 styles.
7297 (nsfont_open): Reenable the cache.
7298
7299 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7300
7301 * font.c (font_matching_entity): Reflect ATTRS in font selection.
7302 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
7303
7304 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
7305
7306 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
7307 a suspended terminal.
7308
7309 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
7310
7311 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
7312
7313 2008-09-30 Eli Zaretskii <eliz@gnu.org>
7314
7315 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
7316
7317 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
7318
7319 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
7320 in a continued line coincides with a line beginning.
7321
7322 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7323
7324 * nsfont.m (nsfont_trait_distance): Fix bug.
7325 (nsfont_list): Return a list rather than a vector (syncs with Handa
7326 changes of 2008-05-14).
7327 (nsfont_open): Improve logging.
7328
7329 2008-09-29 Andreas Schwab <schwab@suse.de>
7330
7331 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7332
7333 2008-09-28 Martin Rudalics <rudalics@gmx.at>
7334
7335 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
7336 name as char-resolve-modifiers.
7337 Reported by: Markus Triska <markus.triska@gmx.at>
7338
7339 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
7340
7341 * dispnew.c (init_display): Return earlier when running as a daemon.
7342
7343 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7344
7345 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
7346
7347 2008-09-27 Eli Zaretskii <eliz@gnu.org>
7348
7349 * composite.c (Fcomposition_get_gstring)
7350 (Fcompose_region_internal, Fcompose_string_internal)
7351 (Ffind_composition_internal): Doc fix.
7352 (syms_of_composite) <compose-chars-after-function>: Doc fix.
7353 (syms_of_composite) <auto-composition-function>: Doc fix.
7354 (syms_of_composite) <composition-function-table>: Doc fix.
7355
7356 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
7357
7358 * search.c (wordify): New argument for lax word-ends.
7359 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
7360
7361 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
7362
7363 * lisp.h (is_daemon): Declare.
7364 * dispnew.c (init_display): Do not try to initialize the terminal
7365 when running as a daemon.
7366
7367 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
7368
7369 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
7370 x_display_pixel_height.
7371
7372 2008-09-22 Martin Rudalics <rudalics@gmx.at>
7373
7374 * undo.c (record_point): Don't call Fundo_boundary for first
7375 change. (Bug#731)
7376
7377 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
7378
7379 * emacs.c (Fdaemonp): Doc fix.
7380
7381 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
7382
7383 * emacs.c (main): Place #ifdef in the proper place.
7384
7385 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
7386
7387 * emacs.c (standard_args): Add --daemon.
7388 (main): Disconnect from the terminal when --daemon is passed.
7389 (is_daemon): New variable.
7390 (Fdaemonp): New function.
7391 (syms_of_emacs): Defsubr it.
7392
7393 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
7394
7395 * xdisp.c (get_next_display_element): Handle string display
7396 correctly when checking for the end of a box run.
7397
7398 2008-09-20 Glenn Morris <rgm@gnu.org>
7399
7400 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
7401 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
7402 (Frename_file): Avoid copying to trash if a rename involves
7403 a delete. (Bug#964).
7404
7405 2008-09-20 Eli Zaretskii <eliz@gnu.org>
7406
7407 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
7408 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
7409 frames as well as termcap frames.
7410 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
7411 get_named_tty.
7412
7413 2008-09-19 Eli Zaretskii <eliz@gnu.org>
7414
7415 * process.c (procfs_system_process_attributes): Fix cmdline in
7416 case /proc/PID/cmdline is empty.
7417
7418 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
7419 x_display_pixel_height.
7420
7421 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
7422
7423 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
7424
7425 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7426 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
7427
7428 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
7429
7430 * dispextern.h (struct it): Move line_wrap away from the middle of
7431 bitfields. Move voffset in struct iterator_stack_entry after the
7432 bitfields. Move tab_width near after another short.
7433
7434 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
7435
7436 * frame.h (struct frame): Move alpha from the middle of bitfields.
7437
7438 * window.h (struct window): Move frozen_window_start_p after the
7439 rest of the bitfields to reduce padding.
7440
7441 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
7442
7443 * xterm.h (x_display_info): Remove `height' and `width' members.
7444
7445 * nsterm.h (ns_display_info): Remove `height' and `width' members.
7446
7447 * w32term.h (w32_display_info): Remove `height', `width',
7448 `height_in', and `width_in' members.
7449
7450 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7451 New functions.
7452 (x_calc_absolute_position): Use them.
7453 (x_term_init): Omit removed `height' and `width' members.
7454
7455 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7456 New functions.
7457 (w32_read_socket, x_calc_absolute_position): Use them.
7458 (w32_initialize_display_info, w32_term_init): Omit removed members
7459 of w32_display_info.
7460
7461 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
7462 New functions.
7463 (ns_initialize_display_info): Omit removed members of ns_display_info.
7464
7465 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7466 New functions.
7467 (x_calc_absolute_position): Use them.
7468 (x_term_init): Omit removed `height' and `width' members.
7469
7470 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7471 (compute_tip_xy):
7472 * frame.c (x_fullscreen_adjust):
7473 * xmenu.c (menu_position_func): Use x_display_pixel_height and
7474 x_display_pixel_width.
7475
7476 2008-09-18 Kenichi Handa <handa@m17n.org>
7477
7478 * composite.c (fill_gstring_header): Don't check FROM and TO here.
7479 (composition_compute_stop_pos): Fix handling of static composition.
7480 (Fcomposition_get_gstring): Check FROM and TO at first.
7481
7482 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7483
7484 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
7485 mixup (YAILOM).
7486
7487 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
7488
7489 * indent.c (Fvertical_motion): Use position reported by iterator
7490 instead of PT for determining screen motion (bug#943).
7491
7492 2008-09-17 Romain Francoise <romain@orebokech.com>
7493
7494 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
7495
7496 2008-09-17 Kenichi Handa <handa@m17n.org>
7497
7498 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
7499
7500 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
7501 if necessary.
7502
7503 2008-09-16 Kenichi Handa <handa@m17n.org>
7504
7505 * coding.c (make_conversion_work_buffer): Avoid calling
7506 Fget_buffer_create if it is not necessary.
7507
7508 2008-09-15 Martin Rudalics <rudalics@gmx.at>
7509
7510 * window.c (Fselect_window): Don't update window_select_count and
7511 use_time when norecord is not nil.
7512
7513 2008-09-14 Kenichi Handa <handa@m17n.org>
7514
7515 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
7516 specpdl_ptr.
7517
7518 2008-09-12 Kenichi Handa <handa@m17n.org>
7519
7520 * indent.c (scan_for_column): Don't handle automatic composition
7521 if the current buffer is not associated with a window.
7522
7523 * composite.c (composition_reseat_it): If the current buffer is
7524 not associated with a window, ignore the automatic composition.
7525 (find_automatic_composition): Likewise.
7526
7527 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7528
7529 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
7530 (Fgpm_mouse_stop): Use it.
7531 * termhooks.h (close_gpm): Declare.
7532 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
7533 connection if Gpm_GetEvent fails.
7534
7535 * window.c (set_window_buffer): Always preserve current-buffer.
7536
7537 2008-09-12 Glenn Morris <rgm@gnu.org>
7538
7539 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
7540
7541 2008-09-11 Glenn Morris <rgm@gnu.org>
7542
7543 * charset.c (charset-map-path): Doc fix.
7544
7545 2008-09-10 Kenichi Handa <handa@m17n.org>
7546
7547 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
7548
7549 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
7550 compose a grapheme cluster with the preceding base glyph.
7551
7552 * composite.c (composition_compute_stop_pos): Fix previous change.
7553 Reset cmp_it->id to -1 at first.
7554
7555 2008-09-10 Glenn Morris <rgm@gnu.org>
7556
7557 * Makefile.in (character.o, chartab.o): Fix config.h typo.
7558
7559 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
7560
7561 * keyboard.c (read_key_sequence): Reapply translation maps when
7562 switching keyboards.
7563
7564 2008-09-09 Kenichi Handa <handa@m17n.org>
7565
7566 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
7567 characters.
7568
7569 * composite.c (FORWARD_CHAR): Fix calculation
7570 of (POSITION).pos_byte.
7571 (composition_compute_stop_pos): Limit the search of composition to
7572 at most 500 characters ahead. If we reach the limit or find a
7573 newline, set cmp_it->ch to -2 and return 0.
7574 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
7575
7576 2008-09-08 Kenichi Handa <handa@m17n.org>
7577
7578 * indent.c (Fvertical_motion): Be sure to set
7579 it_overshoot_expected if it.cmp_it.id is non-negative.
7580
7581 2008-09-07 Andreas Schwab <schwab@suse.de>
7582
7583 * callproc.c (Fcall_process): Don't hold references to string data
7584 across garbage collection. Move initialisation of new_argv down
7585 to avoid compiler bug.
7586
7587 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7588
7589 * process.c (Fsystem_process_attributes): Doc fix.
7590
7591 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
7592
7593 * callproc.c (Fcall_process): Canonicalize current directory name.
7594
7595 * xdisp.c (move_it_to): When moving by vpos, ensure that the
7596 iterator advances to the next line if the current line ends in a
7597 continued tab.
7598
7599 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
7600
7601 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7602 member to point to cmp_from.
7603
7604 * xdisp.c: Doc fix for references to gidx data member.
7605
7606 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7607
7608 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7609
7610 2008-09-07 Kenichi Handa <handa@m17n.org>
7611
7612 * composite.c (FORWARD_CHAR): Check STOP after
7613 incrementing (POSITION).pos.
7614
7615 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7616
7617 * process.c (Fsystem_process_attributes): Doc fix.
7618
7619 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
7620
7621 * keyboard.c (Ftop_level): Doc fix.
7622
7623 2008-09-06 Eli Zaretskii <eliz@gnu.org>
7624
7625 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7626 minibuffer, don't let lower part of menu invade the echo area.
7627
7628 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7629 "char *q" to access menu text and advance through it. Revert the
7630 change that displayed ">" instead of ASCII character 0x10.
7631
7632 2008-09-05 Eli Zaretskii <eliz@gnu.org>
7633
7634 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7635 toggle boxes and radio buttons on MS-DOS as well.
7636
7637 2008-09-05 Kenichi Handa <handa@m17n.org>
7638
7639 * composite.c (autocmp_chars): Check lookback count.
7640 (composition_compute_stop_pos): Set cmp_it->lookback.
7641 (composition_reseat_it): Check lookback count.
7642 (struct position_record): New struct.
7643 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7644 (find_automatic_composition): New function.
7645 (composition_adjust_point): Use find_automatic_composition.
7646
7647 * dispextern.h (struct composition_it): New member lookback.
7648
7649 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
7650
7651 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7652 if moving by a single line.
7653
7654 2008-09-02 Andreas Schwab <schwab@suse.de>
7655
7656 * xterm.c (x_delete_display): Fix merge error.
7657
7658 * fileio.c (Fexpand_file_name): Remove unused variables.
7659
7660 2008-09-02 Eli Zaretskii <eliz@gnu.org>
7661
7662 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7663 storage on all platforms, not just on DOS_NT.
7664
7665 2008-09-02 Jason Rumney <jasonr@gnu.org>
7666
7667 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7668 Ensure mouse is not grabbed after menu is finished.
7669
7670 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
7671
7672 * xfaces.c (Finternal_set_alternative_font_family_alist)
7673 (Finternal_set_alternative_font_registry_alist): Properly copy
7674 entire alist structure.
7675
7676 2008-09-01 Kenichi Handa <handa@m17n.org>
7677
7678 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
7679 representative chars of the script is a vector.
7680 (ftfont_list): Handle the case where the representative chars of
7681 the script is a vector.
7682
7683 * character.c (syms_of_character): Docstring of
7684 script-representative-chars fixed.
7685
7686 2008-08-31 Eli Zaretskii <eliz@gnu.org>
7687
7688 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7689 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7690 the menu. Allocate larger buffer for `text', to account for
7691 possible ^C characters.
7692
7693 2008-08-31 Martin Rudalics <rudalics@gmx.at>
7694
7695 * xdisp.c (prepare_menu_bars): Don't call
7696 Vwindow_size_change_functions with arg Qt.
7697
7698 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7699
7700 * font.h (font_range):
7701 * fileio.c (report_file_error):
7702 * composite.c (composition_update_it): Yet another int/Lisp_Object
7703 mixup (YAILOM).
7704
7705 2008-08-30 Glenn Morris <rgm@gnu.org>
7706
7707 * data.c (Fmake_variable_frame_local): Doc fix.
7708
7709 * frame.c (Fmodify_frame_parameters): Doc fix.
7710
7711 2008-08-30 Eli Zaretskii <eliz@gnu.org>
7712
7713 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7714 needed by GetTokenInformation.
7715 (w32_system_process_attributes): Check return values of all system
7716 APIs.
7717
7718 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7719 only when the state changes.
7720 (IT_update_begin, IT_update_end): Add termscript trace.
7721
7722 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7723 clipboard is unavailable. Set dst to NULL if it doesn't point to
7724 malloc'ed data.
7725 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7726 passing random values to xfree.
7727
7728 * dispnew.c (init_display): Set `tty's association in frame's
7729 parameters alist to the name of the terminal device, if that is known.
7730
7731 2008-08-29 Jason Rumney <jasonr@gnu.org>
7732
7733 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7734
7735 2008-08-29 Eli Zaretskii <eliz@gnu.org>
7736
7737 * composite.c (fill_gstring_body): Avoid compiler warnings.
7738
7739 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7740 LGLYPH_SET_CODE to avoid compiler warnings.
7741
7742 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
7743
7744 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7745
7746 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7747 LGLYPH_SET_CODE.
7748
7749 2008-08-29 Kenichi Handa <handa@m17n.org>
7750
7751 * fileio.c (report_file_error): Don't downcase the first character
7752 of errstring if it is still unibyte.
7753
7754 2008-08-29 Kenichi Handa <handa@m17n.org>
7755
7756 These changes are to re-implement the automatic composition so
7757 that it doesn't use text properties.
7758
7759 * Makefile.in (ftfont.o): Depend on composite.h.
7760 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7761
7762 * character.h (Vunicode_category_table): Extern it.
7763
7764 * character.c (Vunicode_category_table): New variable.
7765 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7766
7767 * chartab.c (optimize_sub_char_table): Perform more greedy
7768 optimization.
7769
7770 * composite.h (enum composition_method):
7771 Delete COMPOSITION_WITH_GLYPH_STRING.
7772 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7773 (Vcomposition_function_table): Extern it.
7774 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7775 (composition_gstring_put_cache, composition_gstring_from_id)
7776 (composition_gstring_p, composition_gstring_width)
7777 (composition_compute_stop_pos, composition_reseat_it)
7778 (composition_update_it, composition_adjust_point): Extern them.
7779 (Fcomposition_get_gstring): EXFUN it.
7780
7781 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
7782 (Vcomposition_function_table)
7783 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
7784 (gstring_hash_table, gstring_work, gstring_work_headers):
7785 New variables.
7786 (gstring_lookup_cache, composition_gstring_put_cache)
7787 (composition_gstring_from_id, composition_gstring_p)
7788 (composition_gstring_width, fill_gstring_header)
7789 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7790 (composition_reseat_it, composition_update_it)
7791 (composition_adjust_point, Fcomposition_get_gstring): New functions.
7792 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7793 and gstring_work_headers. DEFVAR_LISP composition-function-table.
7794 Defsubr composition_get_gstring.
7795
7796 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7797 cmp_id.
7798 (struct glyph_string): Delete the member gidx. New members
7799 cmp_id, cmp_from, and cmp_to.
7800 (enum it_method): Delete GET_FROM_COMPOSITION.
7801 (struct composition_it): New struct.
7802 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7803 Delete c, len, cmp_id, cmp_len in u.comp.
7804
7805 * font.h (enum lgstring_indices): Delete it.
7806 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
7807 (enum lglyph_indices): Likewise.
7808 (font_range): Adjust extern.
7809 (font_fill_lglyph_metrics): Extern it.
7810
7811 * font.c (QCf): New variable.
7812 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7813 (font_prepare_composition): Delete this function.
7814 (font_range): Type and arguments changed.
7815 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7816 (font_fill_lglyph_metrics): New function.
7817 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
7818 (syms_of_font): DEFSYM QCf. Delete defsubr for
7819 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7820 Defsubr Sfont_shape_gstring.
7821
7822 * fontset.h (font_for_char): Extern it.
7823
7824 * fontset.c (font_for_char): New function.
7825
7826 * ftfont.c: Include composite.h.
7827 (ftfont_resolve_generic_family): Add langset "en" to pattern.
7828 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7829
7830 * indent.c: Include composite.h and dispextern.h.
7831 (check_composition): Delete this function.
7832 (scan_for_column): Handle composition by
7833 composition_compute_stop_pos, composition_reseat_it, and
7834 composition_update_it.
7835 (compute_motion): Likewise.
7836 (Fvertical_motion): Fix checking of composition.
7837
7838 * keyboard.c (adjust_point_for_property): Check composition by
7839 composition_adjust_point.
7840
7841 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
7842 struct glyph_string.
7843
7844 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7845 (append_composite_glyph): Adjust for the change of struct it and
7846 struct glyph.
7847 (produce_composite_glyph): Likewise.
7848
7849 * w32term.c (x_draw_composite_glyph_string_foreground):
7850 Adjust for the change of struct glyph_string.
7851 (x_draw_glyph_string): Likewise.
7852
7853 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7854 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7855
7856 * xdisp.c: Include font.h.
7857 (it_props): Delete the entry for Qauto_composed.
7858 (init_iterator): Initialize it->cmp_it.id to -1.
7859 (compute_stop_pos): Call composition_compute_stop_pos.
7860 (face_before_or_after_it_pos): Adjust for the change of struct it.
7861 (handle_auto_composed_prop): Delete it.
7862 (handle_composition_prop): Handle only static composition.
7863 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7864 from xassert. Initialize it->cmp_it.stop_pos.
7865 (push_it): Adjust for the change of struct it.
7866 (pop_it): Likewise.
7867 (get_next_element): Delete next_element_from_composition.
7868 (CHAR_COMPOSED_P): New macro.
7869 (get_next_display_element): For automatic composition, get a face
7870 from the font in the glyph-string.
7871 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
7872 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
7873 (next_element_from_string): Check if the character at the current
7874 position is composed by CHAR_COMPOSED_P.
7875 (next_element_from_buffer): Likewise.
7876 (next_element_from_composition): Adjust for the change of struct it.
7877 Update it->cmp_it.
7878 (dump_glyph): Adjust for the change of struct glyph.
7879 (fill_composite_glyph_string): Adjust for the change of struct
7880 it and struct glyph. Don't handle automatic composition here.
7881 (fill_gstring_glyph_string): New function.
7882 (x_get_glyph_overhangs): Handle automatic composition.
7883 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
7884 (BUILD_GSTRING_GLYPH_STRING): New macro.
7885 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7886 automatic composition.
7887 (append_composite_glyph): Adjust for the change of struct it and
7888 struct glyph.
7889 (x_produce_glyphs): Adjust for the change of struct it.
7890
7891 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
7892 the change of struct glyph_string.
7893 (x_draw_glyph_string): Likewise.
7894
7895 2008-08-29 Glenn Morris <rgm@gnu.org>
7896
7897 * buffer.c (word-wrap): Doc fix.
7898 * xdisp.c (truncate-partial-width-windows): Doc fix.
7899 Increase default to 50.
7900
7901 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
7902
7903 * xdisp.c (update_tool_bar_unwind): New function.
7904 (update_tool_bar): Temporarily set selected frame before building
7905 tool-bar items.
7906
7907 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
7908
7909 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7910 snprintf, respectively.
7911 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7912
7913 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
7914
7915 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7916 LDFLAGS to GNUstep CC invocation.
7917
7918 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
7919
7920 * indent.c (Fvertical_motion): Revert last change. Handle the
7921 general case where we are moving forward, and PT spans multiple
7922 screen lines.
7923
7924 * eval.c (find_handler_clause): Temporarily increase
7925 max-lisp-eval-depth while printing the backtrace buffer, to
7926 guarantee that help-mode code can run.
7927
7928 2008-08-27 Eli Zaretskii <eliz@gnu.org>
7929
7930 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7931 colors under -rv.
7932 (IT_set_frame_parameters): Don't swap foreground and background
7933 colors if `(reverse . t)' is present in the frame properties.
7934 (internal_terminal_init): Call init_frame_faces only for the
7935 initial frame.
7936
7937 2008-08-27 Andreas Schwab <schwab@suse.de>
7938
7939 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7940
7941 2008-08-27 Andreas Schwab <schwab@suse.de>
7942
7943 * search.c (search_buffer): Set char_base to zero only at the end.
7944
7945 2008-08-27 Kenichi Handa <handa@m17n.org>
7946
7947 * fileio.c (report_file_error): Fix handling of multibyte error string.
7948
7949 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7950
7951 * xterm.c (x_term_init): Temporarily hide the partially
7952 initialized terminal while calling vendor-specific-keysyms.
7953
7954 2008-08-26 Eli Zaretskii <eliz@gnu.org>
7955
7956 * msdos.c (internal_terminal_init): Most initializations done only
7957 once, especially initial_screen_colors[] and termscript open.
7958
7959 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
7960
7961 * eval.c (Fcondition_case): Doc fix.
7962
7963 * widgetprv.h (EmacsFramePart): Change font member to the new font
7964 struct.
7965
7966 * widget.c: Include character.h and font.h for XSETFONT.
7967 (setup_frame_gcs): Compute X font id from font struct, just once.
7968
7969 2008-08-26 Eli Zaretskii <eliz@gnu.org>
7970
7971 * term.c (get_named_tty): Fix last change.
7972
7973 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
7974
7975 * indent.c (Fvertical_motion): If moving forward starting from a
7976 multi-line string, move the iterator to the last line of that string.
7977
7978 2008-08-25 Eli Zaretskii <eliz@gnu.org>
7979
7980 * frame.c (do_switch_frame): Mark previously displayed frame as
7981 obscured for FRAME_MSDOS_P frames as well.
7982
7983 2008-08-24 Eli Zaretskii <eliz@gnu.org>
7984
7985 * frame.c (make_terminal_frame): Initialize f->terminal,
7986 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7987 Set the top frame to newly created frame.
7988 (Fmake_terminal_frame): Reuse the_only_display_info.
7989
7990 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7991 estimating available memory.
7992
7993 2008-08-23 David Reitter <david.reitter@gmail.com>
7994
7995 * nsterm.m (ns_draw_window_cursor): Don't call
7996 NSDisableScreenUpdates and NSEnableScreenUpdates on
7997 non-NS_IMPL_COCOA systems.
7998
7999 2008-08-23 Andreas Schwab <schwab@suse.de>
8000
8001 * process.c (procfs_system_process_attributes): Fix use of
8002 uninitialized variables.
8003
8004 2008-08-23 Eli Zaretskii <eliz@gnu.org>
8005
8006 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
8007
8008 * dispnew.c (init_display): Remove MS-DOS specific conditions for
8009 calling tty-set-up-initial-frame-faces.
8010
8011 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
8012 Allow MSDOS frames along with X frames.
8013
8014 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
8015 addition to output_termcap.
8016
8017 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
8018
8019 * termchar.h (FRAME_TTY): Support output_msdos_raw.
8020 (struct tty_display_info) [MSDOS]: Add fields related to mouse
8021 highlight.
8022
8023 * process.c [!subprocesses]: Define QCname.
8024 (syms_of_process): Intern and staticpro it.
8025
8026 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
8027 Adjust for changes in encoding/decoding routines.
8028 Use encode_coding_object and decode_coding_object instead of
8029 encode_coding and decode_coding.
8030
8031 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
8032
8033 * dosfns.c: Include frame.h before termhooks.h.
8034 (dos_cleanup): Use CURTTY ()->termscript instead of a global
8035 variable termscript.
8036
8037 * s/msdos.h (USER_FULL_NAME): Define.
8038 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
8039
8040 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
8041 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
8042 pw->pw_gecos.
8043
8044 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
8045 SELECTED_FRAME as additional (1st) argument.
8046 (tty_read_avail_input): Handle output_msdos_raw in
8047 addition to output_termcap.
8048
8049 * msdos.c: Include frame.h before termhooks.h.
8050 (mouse_on, mouse_off, mouse_moveto, mouse_init)
8051 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
8052 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
8053 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
8054 (IT_set_terminal_modes, IT_reset_terminal_modes)
8055 (IT_set_frame_parameters): Use tty->termscript instead of a global
8056 variable termscript.
8057 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
8058 global variable terminal_coding. Don't refer to
8059 Vnonascii_translation_table.
8060 (internal_terminal_init): Set Vwindow_system in current_kboard.
8061 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
8062 Announce date and time of session start, if termscript is open.
8063 Don't zero out the_only_display_info (it is done in
8064 term.c:init_tty). Open termscript only of not already open.
8065 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
8066 here instead of dos_ttraw. Don't initialize display if this is an
8067 initial tty. Don't set FRAME_FONT.
8068 (Vwindow_system_version): Bump to 23.
8069 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
8070 is available, set up mouse_position_hook.
8071 (dos_ttraw, IT_set_terminal_modes): If called with initial
8072 terminal, do nothing.
8073 (IT_set_frame_parameters): Handle the Qtty_type frame
8074 parameter by calling internal_terminal_init.
8075 (dos_set_window_size, show_mouse_face)
8076 (clear_mouse_face, IT_note_mode_line_highlight)
8077 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
8078 (dos_rawgetc): Use tty_display_info instead of x_display_info.
8079 (initialize_msdos_display): New function.
8080 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
8081 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
8082 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
8083 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
8084 Accept additional argument: a pointer to a frame. Update all callers.
8085 (request_sigio, unrequest_sigio): Don't define, now defined on
8086 sysdep.c.
8087 (IT_write_glyphs): Rewrite to use encode_terminal_code.
8088
8089 * term.c [MSDOS]: Include msdos.h.
8090 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
8091 conditional to DOS_NT. Allow only one call to this function in a
8092 session. Don't allocate a new struct tty_display_info; instead,
8093 reuse the_only_display_info. Call get_tty_size to get screen
8094 dimensions. Call init_baud_rate to set bad_rate.
8095 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
8096 (Fsuspend_tty) [MSDOS]: Don't close input and output.
8097 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
8098 (get_tty_terminal, get_named_tty, Ftty_type)
8099 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
8100 output_termcap.
8101 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
8102 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
8103 only when subprocesses are supported.
8104
8105 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
8106 f->output_data.x.
8107 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
8108 terminal devices.
8109
8110 * msdos.h: Remove definition of struct x_display_info and struct
8111 x_output.
8112 (FRAME_FONT): Use output_data.tty.
8113 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
8114 (struct x_display_info): Rename from display_info. Update all users in
8115 msdos.c.
8116 (struct x_output): Remove background_pixel and foreground_pixel.
8117 (the_only_display_info): Rename from the_only_x_display.
8118 (dos_ttraw): Update prototype.
8119
8120 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
8121 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
8122
8123 2008-08-23 Jason Rumney <jasonr@gnu.org>
8124
8125 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
8126 (fn_TIFFSetDirectory): New library function used.
8127 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
8128 (tiff_load): Use :index to select among multiple images. Set count
8129 property when multiple images exist.
8130 (gif_format): Use :index, not :image.
8131
8132 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
8133
8134 * xdisp.c (try_scrolling): Check INT_MAX instead of
8135 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
8136 to obtain INT_MAX.
8137
8138 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
8139
8140 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
8141
8142 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
8143
8144 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
8145 GNUstep library location.
8146
8147 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
8148
8149 * xfaces.c (x_update_menu_appearance): Check validity of menu font
8150 before using it.
8151
8152 * puresize.h (BASE_PURESIZE): Increase to 1250000.
8153
8154 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8155
8156 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
8157 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
8158 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
8159 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
8160 (EmacsApp-cursor_blink_handler): Remove declaration.
8161 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
8162 match 01 Feb 2008 changes in xterm.c.
8163 (ns_read_socket): Add cast to avoid warning.
8164 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
8165 GNUstep.
8166
8167 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
8168
8169 * xselect.c (x_get_foreign_selection): Return nil if desired
8170 selection could not be obtained, instead of signalling an error.
8171
8172 2008-08-20 David Reitter <david.reitter@gmail.com>
8173
8174 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
8175 * nsterm.m: Remove ns-specific code for cursor blinking.
8176 (ns_draw_window_cursor): Clear cursor properly rather than
8177 redrawing the area. Respect width of bar cursors.
8178 These changes enable the use of generic blink-cursor-mode and
8179 generic cursor types in NS and support smooth cursor movements (do
8180 not blink off after command).
8181 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
8182 Nextstep, too.
8183
8184 2008-08-19 Kenichi Handa <handa@m17n.org>
8185
8186 * font.c (Vfont_log_deferred): New variable.
8187 (font_add_log): Check Vfont_log_deferred.
8188 (font_deferred_log): New function.
8189
8190 * font.h (font_deferred_log): Extern it.
8191
8192 * fontset.c (reorder_font_vector): Use encoding charset of fonts
8193 for sorting.
8194 (face_for_char): Use deferred log.
8195
8196 2008-08-18 Kenichi Handa <handa@m17n.org>
8197
8198 * fontset.c (face_for_char): Add font log.
8199
8200 * font.c (font_add_log): Add the font properties :script, :lang,
8201 and :otf in the log.
8202
8203 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
8204
8205 * xdisp.c: Remove dead code.
8206 (handle_invisible_prop, next_overlay_string): Defer call to
8207 setup_for_ellipsis.
8208 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
8209
8210 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
8211
8212 * xfaces.c (lookup_derived_face): Properly handle possible zero
8213 return value of get_lface_attributes.
8214 (merge_faces): Don't tell lookup_derived_face to signal an error
8215 if face is not found.
8216
8217 * dired.c (Fdirectory_files): Doc fix.
8218
8219 * process.c (make_process): Initialize kill_without_query struct
8220 member.
8221
8222 2008-08-15 Eli Zaretskii <eliz@gnu.org>
8223
8224 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
8225 Alternative calculation of totphys for Visual Studio 6.
8226
8227 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
8228
8229 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
8230 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
8231 All users changed.
8232 (stat): Only root directory passed to GetDriveType. Allow RAM
8233 disk as well as local fixed disk when w32-get-true-file-attributes
8234 is set to `local'.
8235 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
8236 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
8237 (w32_cached_id, w32_add_to_cache): New functions.
8238 (get_name_and_id): Look account names in the cache before calling
8239 lookup_account_sid.
8240 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
8241 New initialization flags.
8242 (globals_of_w32): Initialize them to zero.
8243 (w32_system_process_attributes): Use w32_cached_id and
8244 w32_add_to_cache.
8245
8246 2008-08-14 Lawrence Mitchell <wence@gmx.li>
8247
8248 * lread.c (Fread_char, Fread_char_exclusive): If no character
8249 event is read before timeout is reached, return nil, rather than
8250 converting to a number.
8251
8252 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
8253
8254 * fns.c (use_dialog_box): Doc fix.
8255
8256 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
8257 on OS X.
8258
8259 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
8260
8261 * frame.c (Qns_parse_geometry): New var.
8262 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
8263
8264 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
8265
8266 * xdisp.c (x_produce_glyphs): Handle the case when font has no
8267 space character in calculating tabs.
8268
8269 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
8270
8271 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
8272
8273 2008-08-10 Glenn Morris <rgm@gnu.org>
8274
8275 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
8276 silence gcc "limited range of data type" warnings in some
8277 make_fixnum_or_float calls.
8278
8279 2008-08-09 Eli Zaretskii <eliz@gnu.org>
8280
8281 * w32.c (w32_system_process_attributes): If the process does not
8282 exist, return nil.
8283
8284 * w32.c: Include thelp32.h, psapi.h and coding.h.
8285 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
8286 declarations.
8287 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
8288 (Process32Next_Proc): New typedefs.
8289 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
8290 (g_b_init_process32_next, g_b_init_open_thread_token)
8291 (g_b_init_impersonate_self, g_b_init_revert_to_self)
8292 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
8293 (g_b_init_get_process_working_set_size)
8294 (g_b_init_global_memory_status_ex): New static variables.
8295 (globals_of_w32): Initialize them.
8296 (create_toolhelp32_snapshot, process32_first, process32_next)
8297 (open_thread_token, impersonate_self, revert_to_self)
8298 (get_process_memory_info, get_process_working_set_size)
8299 (global_memory_status, global_memory_status_ex): New wrapper
8300 functions.
8301 (w32_list_system_processes, w32_system_process_attributes)
8302 (enable_privilege, restore_privilege, ltime, process_times):
8303 New functions.
8304 (convert_time_raw): New function.
8305 (convert_time): Remove conversion of FILETIME into time in 100
8306 nsec units, call convert_time_raw instead.
8307
8308 * process.h (w32_list_system_processes, w32_system_process_attributes):
8309 Add prototypes.
8310 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
8311 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
8312 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
8313 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
8314
8315 * process.c (Fsystem_process_attributes): Doc fix.
8316
8317 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
8318
8319 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
8320 a continued multi-char glyph; if so, advance to the actual glyph.
8321
8322 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8323
8324 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
8325
8326 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
8327 (.m.o): Use it.
8328 * config.in: Regenerate.
8329
8330 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
8331
8332 * xdisp.c (redisplay_window): Revert last change.
8333 (try_window): Check bottom scroll margin too.
8334
8335 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8336
8337 * config.in: Regenerate.
8338
8339 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
8340 -list-load-path-shadows'.
8341 (nsgui.h): Reduce number of things depending on it.
8342
8343 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
8344
8345 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
8346 instead of window-end which does the wrong thing at eob.
8347 (try_cursor_movement): Minor optimization.
8348 (redisplay_window): If scroll margin is defined, don't assume
8349 window doesn't need scrolling.
8350
8351 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8352
8353 * config.in: Regenerate.
8354
8355 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
8356 (mostlyclean): Don't delete *.d under NS.
8357
8358 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
8359
8360 2008-08-06 Kenichi Handa <handa@m17n.org>
8361
8362 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
8363
8364 2008-08-06 Andreas Schwab <schwab@suse.de>
8365
8366 * config.in: Regenerate.
8367
8368 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
8369
8370 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
8371 forcing a window start.
8372
8373 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
8374 (auto_save_1): Update modtime when auto-save-list-file-name is on.
8375
8376 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8377
8378 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
8379 argument.
8380
8381 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
8382
8383 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
8384 <scroll-down-aggressively, before-change-functions>:
8385 <after-change-functions>: Reflow docstrings.
8386
8387 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8388 Ken Raeburn <raeburn@gnu.org>
8389
8390 Dock menu customization, based on a patch by Ken Raeburn, plus some
8391 other fixes.
8392 * nsmenu.m (dockMenu): New variable.
8393 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
8394
8395 * nsterm.h (dockMenu): Declare.
8396
8397 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
8398 (ns_term_init): Initialize dockMenu.
8399 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
8400 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
8401 left.
8402
8403 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
8404
8405 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
8406
8407 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
8408
8409 * config.in: Regenerate.
8410
8411 2008-08-04 Seiji Zenitani <zenitani@mac.com>
8412
8413 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
8414
8415 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
8416
8417 * nsterm.h (find_and_call_menu_selection): Fix prototype.
8418
8419 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8420
8421 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
8422
8423 * keyboard.h: Comment an #endif.
8424
8425 * lisp.h (have_menus_p): Adjust comment.
8426
8427 * menu.c (find_and_return_menu_selection): Fix comparison with
8428 client_data.
8429
8430 * nsmenu.m (popup_activated_flag): New variable.
8431 (popup_activated): New function.
8432 (menu-or-popup-active-p): New exported lisp definition.
8433 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
8434 when popup done.
8435 (ns_popup_dialog): Set popup_activated_flag.
8436
8437 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
8438 version for GNUstep (handled by conditional typedef in nsterm.m).
8439 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
8440 in rgb.txt).
8441
8442 * process.c (init_process): Use DARWIN_OS, not DARWIN.
8443
8444 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
8445
8446 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
8447
8448 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
8449 shortcircuit if popup_activated like GTK and X toolkit.
8450
8451 * m/inter386.h: Change DARWIN to DARWIN_OS.
8452
8453 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
8454 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
8455 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
8456 comment on NO_SOCK_SIGIO.
8457
8458 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
8459
8460 * nsterm.m (windowDidResize): Remove stopModal call.
8461
8462 2008-08-03 Andreas Schwab <schwab@suse.de>
8463
8464 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
8465 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
8466
8467 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
8468
8469 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
8470 Don't use uninitialized pointer variable when using getrlimit.
8471
8472 2008-08-02 Jason Rumney <jasonr@gnu.org>
8473
8474 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
8475
8476 2008-08-02 Eli Zaretskii <eliz@gnu.org>
8477
8478 * alloc.c (NSTATICS): Bump to 0x640.
8479
8480 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
8481
8482 * lisp.h: Add prototype for directory_files_internal.
8483
8484 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
8485 New functions.
8486 (syms_of_process): Defsubr them. Add initializations for various
8487 Q* symbols used in procfs_system_process_attributes.
8488 (procfs_list_system_processes, procfs_system_process_attributes)
8489 [HAVE_PROCFS]: New functions.
8490 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
8491 (procfs_get_total_memory): New functions.
8492
8493 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
8494
8495 * xfaces.c (Fx_load_color_file): Fix previous change;
8496 it is #ifdef WINDOWSNT, not WINDOWS_NT.
8497
8498 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
8499
8500 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
8501
8502 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8503
8504 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
8505
8506 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
8507
8508 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
8509
8510 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
8511 define NSApplicationDelegateReplySuccess.
8512 (EmacsView -converstationIdentifier): Use long instead of
8513 NSInteger for GNUstep, since it doesn't have NSInteger.
8514
8515 * xmenu.c: Revert last change.
8516
8517 * keyboard.h: Fix last change.
8518
8519 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
8520
8521 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
8522 on Windows.
8523
8524 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8525
8526 Warning clearing and clean-up in NS port.
8527 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
8528 Add prototypes.
8529 * nsgui.h (FACE_DEFAULT): Remove, unused.
8530 (XGCValues): Change colors to unsigned long.
8531 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
8532 nsterm.m.
8533 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
8534 (ns_list_fonts): Remove, unused.
8535 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
8536 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
8537 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
8538 (nsfont_draw): Compare face colors to 0, not nil.
8539 * nsmenu.m (struct widget_value): Drop unneeded declaration.
8540 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
8541 (-addSubmenuWithTitle:): Use NSMenuItem class.
8542 (ns_popup_menu): Use NO, not NULL, for enabled setting.
8543 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
8544 (ns_clip_to_row): Make gc arg a BOOL.
8545 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
8546 ns_clip_to_row() call.
8547 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
8548 used). Cast FRAME_FONT assignments.
8549 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
8550 (ns_string_to_lispmod): Change arg to const char.
8551 (ns_term_init): Use NSMenuItem class.
8552 (EmacsApp -openFile:): Move to different section of file.
8553 (EmacsApp -application:openFiles:): Don't return a value, call
8554 -replyToOpenOrPrint:.
8555 (EmacsView -keyDown:): Fix up cast.
8556 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
8557 (EmacsView -menuDown:): Cast tag in call to
8558 find_and_call_menu_selection().
8559 (ns_list_fonts): Remove, unused.
8560 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
8561 (ns_fontname_to_xlfd): Make static.
8562 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
8563 Remove prototypes (now in keyboard.h).
8564 (next_menubar_widget_id): Remove, unused.
8565 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
8566 Remove prototypes (now in keyboard.h).
8567 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
8568
8569 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
8570
8571 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
8572 (floatfns.o): Depend on syssignal.h.
8573 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
8574
8575 * systty.h: Fix previous change that removed BSD_TERMIOS.
8576 Add comments to #ifdefs.
8577
8578 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8579
8580 * w32fns.c (w32-load-color-file): Remove.
8581 (x-open-connection): Use renamed Fx_load_color_file.
8582 * xfaces.c (x-load-color-file): Add.
8583 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
8584 Emacs.clr.
8585 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
8586
8587 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
8588
8589 * dbusbind.c (Fdbus_call_method_asynchronously)
8590 (Fdbus_method_error_internal): New defuns.
8591 (xd_read_message): Handle also reply messages.
8592 (Vdbus_registered_functions_table): Extend docstring.
8593
8594 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
8595
8596 * keyboard.c (gobble_input): Fix previous change.
8597
8598 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8599
8600 * bitmaps/README:
8601 * xfns.c:
8602 * termcap.c:
8603 * term.c:
8604 * syswait.h:
8605 * systty.h:
8606 * systime.h:
8607 * syssignal.h:
8608 * sysdep.c:
8609 * process.h:
8610 * process.c:
8611 * print.c:
8612 * ndir.h:
8613 * lread.c:
8614 * keyboard.c:
8615 * getpagesize.h:
8616 * floatfns.c:
8617 * fileio.c:
8618 * emacs.c:
8619 * doc.c:
8620 * dispnew.c:
8621 * dired.c:
8622 * data.c:
8623 * callproc.c:
8624 * buffer.c:
8625 * README:
8626 * Makefile.in:
8627 * s/template.h:
8628 * s/msdos.h:
8629 * m/vax.h: Remove VMS support.
8630 * s/vms.h:
8631 * vlimit.h:
8632 * uaf.h:
8633 * temacs.opt:
8634 * param.h:
8635 * ioctl.h: Remove file.
8636
8637 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8638
8639 * s/ms-w32.h (MULTI_KBOARD): Remove.
8640 * xterm.c:
8641 * xselect.c:
8642 * xfns.c:
8643 * window.c:
8644 * w32term.c:
8645 * w32fns.c:
8646 * terminal.c:
8647 * termhooks.h:
8648 * term.c:
8649 * sysdep.c:
8650 * keyboard.h:
8651 * keyboard.c:
8652 * frame.h:
8653 * frame.c:
8654 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8655 * config.in: Regenerate.
8656
8657 2008-07-30 Jason Rumney <jasonr@gnu.org>
8658
8659 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8660
8661 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8662 (w32font_open_internal): Get unicode version of textmetrics.
8663 Don't enable or disable glyph indices here.
8664 (w32font_open): Disable use of glyph indices.
8665
8666 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8667
8668 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
8669
8670 * minibuf.c (Vread_buffer_function): Doc fix.
8671
8672 2008-07-30 John Paul Wallington <jpw@pobox.com>
8673
8674 * minibuf.c (read_buffer_completion_ignore_case): New var.
8675 (Fread_buffer): Use it.
8676
8677 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8678
8679 * systty.h (sensemode): Remove empty #if. Remove reference to
8680 BSD_TERMIOS, unused.
8681
8682 * sysdep.c: Remove reference to DGUX.
8683 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8684
8685 * config.in: Regenerate.
8686
8687 2008-07-30 Jason Rumney <jasonr@gnu.org>
8688
8689 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8690
8691 2008-07-29 Jason Rumney <jasonr@gnu.org>
8692
8693 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8694 is populated.
8695 (uniscribe_encode_char): Always use uniscribe.
8696 Avoid using context if cache is populated.
8697
8698 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8699
8700 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8701 open menu.
8702
8703 * gtkutil.c (menu_nav_ended): Remove.
8704 (create_menus): Remove signal connect for menu_nav_ended.
8705
8706 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
8707
8708 * xdisp.c (redisplay_window): Check return value of
8709 compute_window_start_on_continuation_line before forcing a window
8710 start.
8711
8712 2008-07-28 Jason Rumney <jasonr@gnu.org>
8713
8714 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8715
8716 * w32term.c (w32_enable_unicode_output, cleartype_active):
8717 Remove obsolete display options.
8718 (x_draw_glyph_string_background): Don't use old cleartype_active
8719 workaround.
8720 (w32_initialize): Remove cleartype_active initialization.
8721 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8722
8723 2008-07-28 Andreas Schwab <schwab@suse.de>
8724
8725 * lisp.h (init_weak_hash_tables, syms_of_font)
8726 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8727 (remove_hash_entry): Don't declare.
8728 * eval.c (maybe_call_debugger): Make static and move before use.
8729 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8730 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8731 * xterm.h (x_set_frame_alpha): Declare.
8732
8733 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8734
8735 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8736 (create_menus): Connect selection-done to menu_nav_ended.
8737
8738 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8739
8740 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8741 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8742 parameter with read of 'alpha' one.
8743 (Qns_frame_parameter): Remove.
8744 * nsselect.m (selection-coding-system)
8745 (next-selection-coding-system, Vselection_coding_system)
8746 (Vnext_selection_coding_system): Drop.
8747
8748 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8749
8750 * nsfns.m (do-applescript, do_applescript): Rename to
8751 ns-do-applescript, ns_do_applescript, and move within file.
8752
8753 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8754
8755 Remove support for Mac Carbon.
8756 * mactoolbox.c:
8757 * macterm.h:
8758 * macterm.c:
8759 * macselect.c:
8760 * macmenu.c:
8761 * macgui.h:
8762 * macfns.c:
8763 * mac.c: Remove file.
8764 * s/darwin.h:
8765 * m/intel386.h:
8766 * xfaces.c:
8767 * xdisp.c:
8768 * window.c:
8769 * tparam.c:
8770 * termhooks.h:
8771 * termcap.c:
8772 * term.c:
8773 * syssignal.h:
8774 * sysselect.h:
8775 * sysdep.c:
8776 * process.c:
8777 * lread.c:
8778 * lisp.h:
8779 * keyboard.c:
8780 * image.c:
8781 * fringe.c:
8782 * frame.h:
8783 * frame.c:
8784 * fontset.c:
8785 * font.h:
8786 * font.c:
8787 * fns.c:
8788 * fileio.c:
8789 * emacs.c:
8790 * dispnew.c:
8791 * dispextern.h:
8792 * config.in:
8793 * atimer.c:
8794 * Makefile.in: Remove code for Carbon.
8795
8796 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8797
8798 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8799
8800 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8801
8802 * macterm.h (kCGBitmapByteOrder32Host): New define for
8803 non-universal SDKs.
8804
8805 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8806 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8807
8808 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8809 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8810
8811 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8812
8813 * w32inevt.c: Include dispextern.h.
8814
8815 2008-07-26 Andreas Schwab <schwab@suse.de>
8816
8817 * print.c (print_object): Fix off-by-one in last change.
8818
8819 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
8820
8821 * term.c (syms_of_term): Don't initialize default_orig_pair,
8822 default_set_foreground and default_set_background on Windows.
8823
8824 2008-07-25 Jason Rumney <jasonr@gnu.org>
8825
8826 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8827 ScriptItemize. Clean up return value checking. Remove unused
8828 variables.
8829 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8830 shaping engine.
8831
8832 * w32font.c (w32font_has_char): Handle the case where we can't
8833 determine the script for a character.
8834
8835 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
8836
8837 * term.c (syms_of_term): Initialize default_orig_pair,
8838 default_set_foreground, and default_set_background.
8839
8840 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8841 clash (bug#86).
8842 (getloadavg): Callers changed.
8843
8844 * image.c (svg_load_image): Fix last change.
8845 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8846 image size is valid. Use g_object_unref instead of deprecated
8847 rsvg_handle_free to free rsvg handle.
8848 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8849
8850 2008-07-25 Jason Rumney <jasonr@gnu.org>
8851
8852 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8853 surrogates before looking up glyph index.
8854 (w32font_text_extents): Encode as surrogates if falling back to
8855 functions that need UTF-16 wide chars.
8856
8857 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8858 BMP as surrogates before looking up glyph index.
8859
8860 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
8861
8862 * image.c (svg_load_image): Check for failure in return value of
8863 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8864
8865 2008-07-25 Jason Rumney <jasonr@gnu.org>
8866
8867 * w32font.c (Fx_select_font): Reverse sense of second arg.
8868
8869 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8870
8871 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8872 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8873
8874 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8875 (PURESIZE): Use it.
8876
8877 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8878
8879 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8880 * m/alpha.h (TEXT_END):
8881 * m/ibmrs6000.h (TEXT_END):
8882 * m/macppc.h (TEXT_END):
8883 * s/darwin.h (TEXT_END):
8884 * s/msdos.h (TEXT_END): Remove, unused.
8885 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8886 * s/cygwin.h: Remove comment.
8887
8888 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8889 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8890 * m/intel386.h (DOT_GLOBAL_START):
8891 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8892 (USG): Remove, file not used on USG platforms.
8893
8894 * Makefile.in (HAVE_X11): Remove empty #else.
8895
8896 2008-07-24 Andreas Schwab <schwab@suse.de>
8897
8898 * fileio.c (Finsert_file_contents): Properly adjust undo list
8899 after format conversion.
8900
8901 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8902
8903 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8904 (menu_nav_ended): Remove.
8905 (create_menus): Remove signal connect for menu_nav_ended.
8906 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8907 create_menus.
8908 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8909
8910 2008-07-23 Jason Rumney <jasonr@gnu.org>
8911
8912 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8913 with opened font.
8914 (w32font_open): Set font type to gdi.
8915
8916 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8917
8918 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8919
8920 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8921 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8922 defines it.
8923 * unexec.c (ADDR_CORRECT): Define unconditionally.
8924
8925 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8926
8927 * unexec.c: Remove code depending on !COFF and USG, the file is
8928 not used for such systems.
8929
8930 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8931 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8932 (LD_SWITCH_SYSTEM_1): Remove, update users.
8933
8934 * s/darwin.h (DATA_END):
8935 * m/intel386.h (DATA_END):
8936 * m/ibmrs6000.h (DATA_END):
8937 * m/alpha.h (DATA_END): Remove, unused.
8938
8939 * config.in: Regenerate.
8940 * s/ms-w32.h (subprocesses): Define unconditionally.
8941 * s/template.h (subprocesses): Update comment.
8942 * s/vms.h (subprocesses):
8943 * s/usg5-4.h (subprocesses):
8944 * s/hpux10-20.h (subprocesses):
8945 * s/gnu-linux.h (subprocesses):
8946 * s/cygwin.h (subprocesses):
8947 * s/bsd-common.h (subprocesses):
8948 * s/aix4-2.h (subprocesses):
8949 * s/darwin.h (subprocesses): Do not define, defined by default now.
8950
8951 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8952 Remove all references.
8953 (temacs): Add GNUstep specific ld flags.
8954
8955 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8956 similarly to what X does.
8957
8958 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8959
8960 * nsfns.m (x-list-fonts): Remove.
8961 (syms_of_nsfns): Drop the x-list-fonts declaration.
8962 * nsterm.m: Get rid of remaining "//" comments.
8963
8964 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
8965
8966 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8967
8968 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8969 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8970 (Fns_own_selection_internal, Fx_disown_selection_internal)
8971 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8972
8973 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8974 ... */' style of docstrings. Doc fixes.
8975
8976 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8977
8978 * terminfo.c (UP, BC, PC): Undo previous change.
8979
8980 * nsfns.m: Rename ns prefixed functions/variables to the
8981 corresponding x versions. Update references.
8982
8983 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8984
8985 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8986
8987 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8988
8989 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8990 Remove forwarding functions.
8991 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8992 non-static.
8993 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8994 non-static.
8995 (ns_frame_parm_handlers): Use the new names.
8996 (syms_of_nsfns): Move to the end of file.
8997
8998 * nsterm.m (syms_of_nsterm): Move to the end of file.
8999
9000 * dispnew.c (init_display): Remove code for X10.
9001
9002 2008-07-22 Jason Rumney <jasonr@gnu.org>
9003
9004 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
9005 bare drive.
9006
9007 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9008
9009 * nsterm.m (syms_of_nsterm): Remove debugging println.
9010
9011 2008-07-22 David Reitter <david.reitter@gmail.com>
9012
9013 * nsfns.m (do_applescript, F_do_applescript): NS version of the
9014 Carbon implementation of the same functionality: execute arbitrary
9015 AppleScript code.
9016
9017 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9018
9019 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
9020 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
9021 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9022 (Fx_display_mm_height, Fx_display_mm_width)
9023 (Fx_display_backing_store, Fx_display_visual_class)
9024 (Fx_display_save_under, Fx_open_connection)
9025 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
9026 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
9027 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9028 (Fx_display_pixel_width, Fx_display_pixel_height)
9029 (Fx_display_usable_bounds, Fx_display_planes)
9030 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
9031 ... */' style of docstrings.
9032
9033 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
9034
9035 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
9036 on this platform.
9037 (mips):
9038 * m/iris4d.h (mips): Do not define.
9039 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
9040
9041 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
9042
9043 * image.c:
9044 * nsfns.m:
9045 * nsselect.m:
9046 * nsterm.h:
9047 * nsterm.m: Rename ns prefixed functions/variables to the
9048 corresponding x versions. Update references.
9049
9050 * m/ibms390x.h (NO_REMAP): Do not undefine.
9051
9052 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
9053
9054 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
9055
9056 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
9057 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
9058 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
9059 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
9060 (Fns_display_mm_height, Fns_display_mm_width)
9061 (Fns_display_backing_store, Fns_display_visual_class)
9062 (Fns_display_save_under, Fns_open_connection)
9063 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
9064 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
9065 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9066 (Fns_display_pixel_width, Fns_display_pixel_height)
9067 (Fns_display_usable_bounds, Fx_display_planes)
9068 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
9069
9070 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
9071
9072 * print.c (print_object): Check print_depth before searching for
9073 circularities.
9074
9075 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
9076
9077 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
9078 only sprintf.
9079
9080 2008-07-21 Kenichi Handa <handa@m17n.org>
9081
9082 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
9083
9084 2008-07-20 Andreas Schwab <schwab@suse.de>
9085
9086 * syntax.c (find_start_pos, find_start_value)
9087 (find_start_value_byte, find_start_begv, find_defun_start)
9088 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
9089
9090 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9091
9092 * s/sol2-3.h: Insert contents of s/sol2.h.
9093 (LD_SWITCH_SYSTEM): Remove redundant definition.
9094 * s/sol2.h: Remove, unused.
9095
9096 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9097
9098 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
9099
9100 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9101
9102 * Makefile.in (ns_appdir): Fix typo in find command.
9103
9104 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9105
9106 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
9107
9108 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
9109 added not supported anymore.
9110
9111 * s/usg5-4-2.h (LIBS_SYSTEM):
9112 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
9113
9114 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9115 * s/lynxos.h (GETPGRP_NO_ARG):
9116 * s/hpux10-20.h (NO_SIOCTL_H):
9117 * s/gnu.h (GETPGRP_NO_ARG):
9118 * s/gnu-linux.h (NO_SIOCTL_H):
9119 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9120 * s/cygwin.h (GETPGRP_NO_ARG):
9121 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
9122 (C_DEBUG_SWITCH): Remove duplicate definition.
9123
9124 * m/ibms390.h: Remove boilerplate comments.
9125
9126 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
9127
9128 * process.c (HAVE_SERIAL): Consolidate ifdefs.
9129 (wait_reading_process_output): Remove code for SunOS, platform not
9130 supported anymore. Use SOLARIS2 instead of sun.
9131
9132 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9133
9134 * font.c (font_open_by_name): Under NS, default lface height to zero.
9135 (font_open_for_lface): Under NS, set size based on frame fontsize.
9136 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
9137 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
9138
9139 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9140
9141 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
9142 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
9143 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
9144 YES/NO.
9145 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
9146 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
9147 * Makefile.in (clean): Clear out build destination dir.
9148
9149 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9150
9151 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
9152 xterm, xselect.
9153 * lisp.h: Remove declaration of hash_remove.
9154 * nsgui.h: Remove redefinitions of hash_remove.
9155 * fns.c (hash_remove): Rename to hash_remove_from_table.
9156
9157 2008-07-19 Seiji Zenitani <zenitani@mac.com>
9158
9159 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
9160 strdup() the family UTF8String before modifying it.
9161
9162 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9163
9164 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
9165 NS_FACE_BACKGROUND with 0 instead of nil.
9166 * nsfont.m (nsfont_draw): Same.
9167
9168 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
9169
9170 * nsfns.m (ns_set_background_color): Fix crash.
9171
9172 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
9173
9174 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
9175
9176 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
9177
9178 * puresize.h (BASE_PURESIZE): Increase to 1240000.
9179
9180 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9181
9182 * gtkutil.c: Include <config.h> instead of "config.h".
9183
9184 * lisp.h (Foverlay_buffer): Add EXFUN.
9185
9186 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
9187 child process to complete child_setup. Undo 2005-09-21 change.
9188
9189 * s/darwin.h: Mention setsid after vfork.
9190
9191 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9192
9193 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
9194 Depend on macgui.h.
9195
9196 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
9197 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
9198
9199 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
9200 and f19.
9201 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
9202
9203 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
9204 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
9205 Remove enumerators.
9206
9207 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
9208 Check if FACE_FROM_ID returns NULL.
9209
9210 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
9211
9212 * w32inevt.c (change_frame_size): Remove extern declaration.
9213 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
9214 change_frame_size.
9215
9216 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9217
9218 * getloadavg.c: Revert last change (2008-07-15).
9219
9220 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9221
9222 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
9223 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
9224 from configure.
9225
9226 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
9227
9228 * s/sol2.h:
9229 * s/sol2-4.h: Reorganize conditionals.
9230
9231 * ecrt0.c: Remove code depending on m68000, not used anymore.
9232
9233 * fns.c (hash_remove): Make static.
9234 * lisp.h (hash_remove): Don't prototype.
9235
9236 * m/ibmrs6000.h:
9237 * m/ibms390x.h:
9238 * m/macppc.h: Remove boilerplate comments.
9239
9240 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
9241 Solaris, which does not need them.
9242
9243 * m/vax.h: Remove comments about unsupported systems.
9244
9245 * s/darwin.h: Reorganize ifdefs.
9246
9247 2008-07-17 Andreas Schwab <schwab@suse.de>
9248
9249 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
9250
9251 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
9252
9253 Use SDATA. Follow coding convention of placing operators at
9254 beginning of next line rather than end of previous line, and placing
9255 spaces around infix operators.
9256
9257 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
9258 in case it was defined already.
9259 USE @GNUSTEP_MAKEFILES@ rather than envvars.
9260 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
9261 ns_default.
9262 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
9263 Lisp_Objects.
9264 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
9265 (ns_defined_color, ns_color_to_lisp): Declare.
9266 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
9267 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
9268 it's accepted even with USE_LISP_UNION_TYPE.
9269 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
9270 (update_frame_tool_bar): Remove apparently obsolete tests for
9271 non-integerness of f->tool_bar_lines.
9272 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
9273 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
9274 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
9275 (nsfont_open): Don't confuse NULL for Qnil.
9276 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
9277 * menu.h (find_and_call_menu_selection):
9278 * menu.c (find_and_call_menu_selection): Use just int for vector size.
9279 (find_and_return_menu_selection): Always return something.
9280 * frame.h: Include dispextern.h for Display_Info.
9281 (display_x_get_resource): Declare.
9282
9283 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
9284
9285 * syntax.c: Remove stdio.h include accidentally introduced in
9286 Emacs.app commit.
9287 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
9288 NS_IMPL_COCOA.
9289 * keyboard.c (handle_async_input, input_available_signal): Remove
9290 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
9291
9292 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9293
9294 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
9295 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
9296 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
9297 Use SDATA.
9298
9299 * keymap.c: Remove all NS-specific code.
9300 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
9301 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
9302 where_is_preferred_modifier, return a different value depending on how
9303 preferred is the binding.
9304 (where_is_internal): Adjust accordingly.
9305 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
9306 Adjust to new preferred_sequence_p.
9307 (syms_of_keymap): Declare `where-is-preferred-modifier'.
9308 * keyboard.c (parse_solitary_modifier): Not static any more.
9309 * keyboard.h (parse_solitary_modifier): Declare.
9310
9311 2008-07-16 Andreas Schwab <schwab@suse.de>
9312
9313 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
9314 of easymenu.
9315
9316 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
9317
9318 * xdisp.c (move_it_in_display_line): Account for word wrap, so
9319 that we don't move off the line.
9320
9321 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9322
9323 * keyboard.c (Qsuper): Remove.
9324 (parse_menu_item): Don't call where_is_internal specially for NS.
9325
9326 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9327
9328 * s/gnu-linux.h: Remove boilerplate comments.
9329
9330 * m/alpha.h (__ELF__): Consolidate conditions.
9331
9332 * m/m68k.h (linux): Use GNU_LINUX instead.
9333 Remove boilerplate comments.
9334
9335 * m/intel386.h: Undo refactoring from previous change.
9336 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
9337 too, remove dead code.
9338 (linux): Use GNU_LINUX instead.
9339
9340 2008-07-16 Jason Rumney <jasonr@gnu.org>
9341
9342 * w32gui.h: Repeat 26 June changes lost by last change.
9343
9344 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9345
9346 * systty.h: Remove code for Aix on 386, unsupported platform.
9347
9348 * s/ms-w32.h: Remove boilerplate comments.
9349 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
9350
9351 * s/gnu-linux.h (TERM): Remove support.
9352 (HAVE_SYSVIPC): Remove, unused.
9353 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
9354 for this system.
9355
9356 * process.c: Remove support for IRIS, unused.
9357 Remove support for TERM, not relevant anymore.
9358
9359 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
9360 used with the definition.
9361
9362 * s/aix4-2.h (static): Do not undef.
9363
9364 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
9365 only used on Aix.
9366 (HAVE_SYSVIPC): Remove, unused.
9367
9368 * m/hp800.h (CANNOT_DUMP): Do not undef.
9369
9370 * m/alpha.h: Fix comment.
9371
9372 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
9373 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
9374 used by this configuration.
9375 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
9376 * unexec.c: Remove code depending on HPUX and
9377 USG_SHARED_LIBRARIES, not used with this file. Remove code
9378 depending on IRIS, unused. Remove if 0-ed code.
9379
9380 * s/template.h: Remove comments about static.
9381
9382 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
9383 Remove if 0-ed code.
9384 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
9385 were the same as the default.
9386 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
9387 Remove boilerplate comments.
9388 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
9389 (HAVE_SYSVIPC): Remove, unused.
9390 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
9391
9392 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9393 Remove boilerplate comments.
9394 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9395 Remove boilerplate comments.
9396 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9397 Remove boilerplate comments.
9398 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
9399
9400 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
9401 USG systems which do not use DATA_SEG_BITS.
9402 Refactor code. Remove boilerplate comments.
9403
9404 * m/ibms390.h:
9405 * m/m68k.h:
9406 * s/bsd-common.h:
9407 * s/cygwin.h:
9408 * s/darwin.h:
9409 * s/freebsd.h:
9410 * s/gnu.h:
9411 * s/msdos.h: Remove boilerplate comments.
9412
9413 * m/iris4d.h: Remove boilerplate comments and code for systems that
9414 do not use this file.
9415 (IRIS_4D): Remove, unused.
9416
9417 * m/mips.h: Remove boilerplate comments and code for systems that
9418 do not use this file.
9419 (SIGN_EXTEND_CHAR):
9420 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
9421 * unexmips.c: Remove file, unused.
9422
9423 * editfns.c (Fuser_full_name): Replace the only use of
9424 USER_FULL_NAME with its value.
9425 * config.in: Regenerate.
9426
9427 2008-07-16 David Reitter <david.reitter@gmail.com>
9428
9429 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
9430 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
9431
9432 2008-07-16 Glenn Morris <rgm@gnu.org>
9433
9434 * emacs.c (system-type): Doc fix.
9435
9436 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
9437
9438 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
9439 If the cache doesn't work, let's fix it, rather than work around it.
9440
9441 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9442
9443 * Makefile.in: Correct additions for nsfont.o in last commit.
9444 * nsfont.m: New file (forgot last commit).
9445
9446 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9447
9448 * callproc.c (set_initial_environment): Initialize
9449 Vprocess_environment under CANNOT_DUMP (fixes crash when
9450 batch-compiling for bootstrap).
9451
9452 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9453 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9454
9455 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
9456 fix crash due to different init order.
9457
9458 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9459
9460 Changes and additions for NeXTstep windowing system (Cocoa and
9461 GNUstep) support.
9462
9463 * Makefile.in:
9464 * config.in: Support defines and build commands for NS port.
9465 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
9466 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
9467 * dispextern.h: Include nsgui.h and add needed typedefs under NS
9468 windowing.
9469 (struct face): Add synth_ital field.
9470 * dispnew.c: Include nsterm.h when compiling under NS windowing.
9471 (init_display): Initialize Vinitial_window_system to "ns" when so
9472 compiled.
9473 * emacs.c: Include GSConfig.h when compiling under GNUstep.
9474 (display_arg): Use under NS.
9475 (main): Under NS, allocate autorelease pool and handle command line
9476 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
9477 (standard_args): Add NS-specific args.
9478 (shut_down_emacs): Shut down NS terminal if compiled under NS.
9479 * font.c (DEFAULT_ENCODING): New variable.
9480 (font_find_for_lface): Use it.
9481 (syms_of_font): Load syms_of_nsfont under NS.
9482 * font.h: Declare nsfont_driver when compiled under NS.
9483 * fontset.c: When compiling under NS, include nsterm.h.
9484 (fontset_from_font): Autoconstruct fontset under NS.
9485 * frame.c (various): Under NS, include nsterm.h, add Qns window system
9486 symbol, document and use it.
9487 (do_switch_frame): When for_deletion under Cocoa, add
9488 Fraise_frame(Qnil).
9489 (x_set_frame_parameters): Ensure font attribute changes are picked up.
9490 (x_get_arg): Allow "yes" and "no" as boolean values.
9491 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
9492 Qright under Cocoa.
9493 (focus-follows-mouse): Default to 0 under NS.
9494 * frame.h (enum output_method): Add output_ns.
9495 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
9496 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
9497 (FRAME_WINDOW_P): NS-specific definition.
9498 * fringe.c (max_used_fringe_bitmap): Make public.
9499 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
9500 (getloadavg): Use NeXT code under descendant OS's.
9501 * image.c (includes and header section, x_create_bitmap_from_data)
9502 (x_create_bitmap_from_file, free_bitmap_record, image_background)
9503 (image_background_transparent, x_clear_image_1)
9504 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
9505 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
9506 (x_to_xcolors, x_from_xcolors, x_disable_image)
9507 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
9508 other GUIs, including XPM support using code originally written for
9509 Carbon GUI.
9510 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
9511 using NS API.
9512 (image_ascent): Use font metrics macros instead of direct struct field
9513 access.
9514 * keyboard.c (includes): Add nsterm.h when compiling under NS.
9515 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
9516 Also, handle NS as GTK for menu bar purposes.
9517 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
9518 toolkit where they differ.
9519 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
9520 use cachelist, still needed under NS.
9521 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
9522 (struct widget_value): Define it here for menu.c.
9523 * keymap.c (includes): Include modifier internals.
9524 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
9525 NS.
9526 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
9527 support for preferring sequences using certain modifiers, specified by
9528 the FIRSTONLY argument.
9529 * lisp.h (hash_remove): Rename to avoid name clash when compiling
9530 under NS GNUstep implementation.
9531 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
9532 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
9533 * menu.c: Include nsterm.h under NS.
9534 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
9535 (free_menubar_widget_tree_value, update_submenu_strings)
9536 (find_and_call_menu_selection): Treat NS as X and NT.
9537 (find_and_return_menu_selection): New function, used for popup menus.
9538 * nsgui.h:
9539 * nsterm.h:
9540 * nsfns.m:
9541 * nsimage.m:
9542 * nsmenu.m:
9543 * nsselect.m:
9544 * nsterm.m: New files.
9545 * process.c (wait_reading_process_output): Under NS, call ns_select()
9546 instead of plain select().
9547 * syntax.c (char_quoted): Under NS, avoid a crash when called near
9548 beginning of buffer.
9549 * sysselect.h (init_process): Rename when compiling under Cocoa to
9550 avoid name conflict.
9551 * termhooks.h (display_info): Add ns_display_info to union.
9552 * terminal.c (Fterminal_live_p): Add ns to terminal types.
9553 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
9554 COCOA environment.
9555 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
9556 unexec() signature. (Note, this will dump, but the resulting file
9557 crashes; unexosx is used instead; keeping around for reference and
9558 possible aid in getting dump working under GNUstep.)
9559 * w32gui.h (button_type, widget_value): Remove definitions (now in
9560 keyboard.h).
9561 * window.c: Include nsterm.h when compiling under NS.
9562 * xdisp.c (includes): Include nsterm.h when compiling under NS.
9563 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
9564 other GUI windowing systems.
9565 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
9566 GTK.
9567 (x_consider_frame_title): Under NS, set icon type and frame
9568 modified-state indicator; use ns_set_name_as_filename() when using
9569 formatted title.
9570 (update_window_cursor): Make public when compiling under NS.
9571 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
9572 (hourglass_atimer, Vhourglass_delay
9573 * xfaces.c (header section, init_frame_faces, clear_font_table)
9574 (defined_color, unload_color, x_face_list_fonts)
9575 (prepare_face_for_display): Add NS support parallel to other GUIs.
9576 Emulate GCs like other non-X GUIs.
9577 (split_font_name): Don't lowercase font name under NS.
9578 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
9579 under NS.
9580 * s/darwin.h: Add support for compilation under NS.
9581
9582 2008-07-15 Jason Rumney <jasonr@gnu.org>
9583
9584 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
9585 (w32_show_hourglass): Rename from show_hourglass.
9586 (w32_hide_hourglass): Rename from hide_hourglass.
9587 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
9588 (Vhourglass_delay): Declare extern.
9589 (hourglass_started): Remove.
9590
9591 * xdisp.c (Vhourglass_delay): Remove static.
9592 (hourglass_started, start_hourglass, cancel_hourglass):
9593 Don't include these versions on WINDOWSNT.
9594
9595 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9596
9597 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
9598 variables (formerly in xfns.c).
9599 (show_hourglass, hide_hourglass): New prototypes (same).
9600 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9601 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9602 in xfns.c).
9603 (syms_of_xdisp): Declare/initialize display-hourglass,
9604 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
9605 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9606 formerly in xfns.c.
9607 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9608 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9609 (start_hourglass, cancel_hourglass): Remove.
9610 (show_hourglass, hide_hourglass): Remove prototypes and static
9611 modifiers.
9612 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9613 hourglass_atimer, hourglass_shown_p declaration/initialization.
9614 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9615 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9616 (start_hourglass, cancel_hourglass): Remove.
9617 (show_hourglass, hide_hourglass): Remove prototypes and static
9618 modifiers.
9619 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9620 hourglass_atimer, hourglass_shown_p declaration/initialization.
9621 * w32fns.c (display_hourglass_p, Vhourglass_delay)
9622 (DEFAULT_HOURGLASS_DELAY): Remove.
9623 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9624 hourglass_shown_p declaration/initialization.
9625
9626 2008-07-14 Jason Rumney <jasonr@gnu.org>
9627
9628 * w32fns.c (w32_get_arg): Remove wrapper function.
9629 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9630 directly.
9631 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9632
9633 2008-07-14 Kenichi Handa <handa@m17n.org>
9634
9635 * xfont.c (xfont_open): Add workaround for X's bug.
9636
9637 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9638
9639 * fontset.c: Include <stdio.h> unconditionally.
9640
9641 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
9642
9643 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9644 for filtering.
9645
9646 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
9647
9648 * s/vms.h: Use __GNUC__ instead of _GNUC_.
9649
9650 * m/macppc.h:
9651 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
9652
9653 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9654 (SPECIAL_EMACS_INT):
9655 * m/ia64.h (SPECIAL_EMACS_INT):
9656 * m/amdx86-64.h (SPECIAL_EMACS_INT):
9657 * s/gnu.h (NLIST_STRUCT):
9658 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9659 * s/gnu-linux.h (LINUX):
9660 * s/msdos.h (HAVE_FACES):
9661 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9662
9663 * systty.h:
9664 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9665 anymore.
9666
9667 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9668
9669 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9670 always defined as int.
9671
9672 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9673 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9674 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9675 * s/freebsd.h (HAVE_WAIT_HEADER):
9676 * s/bsd-common.h (HAVE_UNION_WAIT):
9677 * s/aix4-2.h (HAVE_WAIT_HEADER):
9678 * m/mips.h (HAVE_UNION_WAIT):
9679 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9680 (COFF, static): Do not define, they are undefined later in the file.
9681
9682 * process.c (update_status): Don't use a union.
9683 (status_convert):
9684 (sigchld_handler): Use int instead of WAITTYPE.
9685
9686 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
9687
9688 * indent.c (Fvertical_motion): Restore hscroll before moving to
9689 goal column.
9690
9691 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9692
9693 * lisp.h: Remove left over code.
9694
9695 2008-07-11 Andreas Schwab <schwab@suse.de>
9696
9697 * lisp.h: Fix logic in last change.
9698
9699 * menu.h: New file.
9700 * menu.c: Include it.
9701 * xmenu.c: Likewise.
9702 * Makefile.in: Update dependencies.
9703
9704 2008-07-11 Kenichi Handa <handa@m17n.org>
9705
9706 * fontset.c (fontset_from_font): Cancel the previous change.
9707
9708 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9709
9710 * lisp.h:
9711 * w32heap.c:
9712 * emacs.c:
9713 * alloc.c: Replace all references of NO_UNION_TYPE with
9714 USE_LISP_UNION_TYPE.
9715
9716 * m/xtensa.h (NO_UNION_TYPE):
9717 * m/vax.h (NO_UNION_TYPE):
9718 * m/template.h (NO_UNION_TYPE):
9719 * m/sparc.h (NO_UNION_TYPE):
9720 * m/mips.h (NO_UNION_TYPE):
9721 * m/macppc.h (NO_UNION_TYPE):
9722 * m/m68k.h (NO_UNION_TYPE):
9723 * m/iris4d.h (NO_UNION_TYPE):
9724 * m/intel386.h (NO_UNION_TYPE):
9725 * m/ibms390x.h (NO_UNION_TYPE):
9726 * m/ibms390.h (NO_UNION_TYPE):
9727 * m/ibmrs6000.h (NO_UNION_TYPE):
9728 * m/ia64.h (NO_UNION_TYPE):
9729 * m/hp800.h (NO_UNION_TYPE):
9730 * m/arm.h (NO_UNION_TYPE):
9731 * m/amdx86-64.h (NO_UNION_TYPE):
9732 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9733 defining it the same.
9734
9735 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
9736
9737 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9738
9739 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9740
9741 * fileio.c:
9742 * sysdep.c
9743 * systty.h:
9744 * m/ibmrs6000.h:
9745 * m/iris4d.h:
9746 * s/aix4-2.h:
9747 * s/freebsd.h:
9748 * s/gnu-linux.h:
9749 * s/hpux10-20.h:
9750 * s/hpux11.h:
9751 * s/netbsd.h:
9752 * s/sol2-3.h:
9753 * s/sol2-4.h:
9754 * s/sol2.h:
9755 * s/usg5-4.h:
9756 * s/vms.h: Remove references to unused variables.
9757
9758 2008-07-10 Andreas Schwab <schwab@suse.de>
9759
9760 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9761 pattern before matching the generic family.
9762
9763 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9764
9765 * unexec.c:
9766 * s/vms.h:
9767 * s/usg5-4-2.h:
9768 * s/sol2-5.h:
9769 * s/freebsd.h:
9770 * s/darwin.h: Remove dead code.
9771
9772 * m/template.h:
9773 * m/sparc.h:
9774 * m/mips.h:
9775 * m/m68k.h:
9776 * m/iris4d.h:
9777 * m/intel386.h:
9778 * m/ibms390x.h:
9779 * m/ibms390.h:
9780 * m/ia64.h:
9781 * m/hp800.h:
9782 * m/arm.h:
9783 * m/amdx86-64.h: Remove dead code and references to unused
9784 and compiler defined symbols.
9785
9786 * unexmips.c:
9787 * unexelf.c: Remove references to desupported systems.
9788
9789 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9790
9791 * m/powermac.h: Remove boilerplate comments.
9792 (NO_REMAP): Remove unused definition.
9793
9794 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9795 define them.
9796
9797 2008-07-10 Kenichi Handa <handa@m17n.org>
9798
9799 * xfont.c (xfont_open): Log the reason of failure.
9800
9801 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9802
9803 * fontset.c (fontset_get_font_group):
9804 * font.c (font_check_otf): Specify argument types.
9805
9806 2008-07-09 Kenichi Handa <handa@m17n.org>
9807
9808 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9809 non-ASCII char is found.
9810
9811 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9812 (reorder_font_vector): Change the arg preferred_family to font.
9813 Prefer the spec matching with font.
9814 (fontset_get_font_group): New function.
9815 (fontset_find_font): Change the format of an element of a realized
9816 fontset. Use fontset_get_font_group.
9817 (fontset_font): Try the current fontset, the default fontset, the
9818 fallbacks of the current fontset, and the fallbacks of the default
9819 fontset in this order.
9820 (face_for_char): Delete the shortcut to use the current font.
9821 (fontset_from_font): Don't set fonts for Latin in the fontset.
9822
9823 * font.h (font_make_object, font_match_p): Adjust prototypes.
9824
9825 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9826
9827 * font.c (font_make_object): New arg entity and pixelsize.
9828 (font_check_otf_features, font_check_otf): New functions.
9829 (font_match_p): Check :lang, :script, and :otf properties.
9830
9831 * xfont.c (xfont_open): Adjust it for the change of
9832 font_make_object.
9833 (xfont_text_extents): Fix initial setting of metrics.
9834
9835 * ftfont.c (struct ftfont_info): New member index, delete member
9836 fc_charset_idx. Make the member order compatible with struct
9837 xftfont_info.
9838 (fc_charset_table): Change charset names to registry names.
9839 (ftfont_pattern_entity): Delete the args registry and
9840 fc_charset_idx. Change the value of :font-entity property
9841 to (FONTNAME . INDEX). Always set :registry property to
9842 `iso10646-1'.
9843 (struct ftfont_cache_data): New struct.
9844 (ftfont_lookup_cache): New arg for_face.
9845 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9846 (ftfont_driver): Set the member otf_capability.
9847 (ftfont_get_charset): Adjust it for the change of
9848 fc_charset_table.
9849 (OTF_TAG_SYM): New macro.
9850 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9851 for the change of fc_charset_table.
9852 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9853 ftfont_pattern_entity. Add FC_INDEX to objset.
9854 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9855 and ftfont_pattern_entity.
9856 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9857 font_make_object, struct ftfont_info.
9858 (ftfont_has_char): Use ftfont_get_fc_charset.
9859 (ftfont_otf_features, ftfont_otf_capability): New functions.
9860 (ftfont_shape): Use ftfont_get_otf.
9861 (ftfont_text_extents): Fix initial setting of metrics.
9862
9863 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9864 member order compatible with struct ftfont_info.
9865 (xftfont_open): Add FC_CHARSET to the pattern. Set
9866 xftfont_info->ft_size. Don't unlock the face. Check BDF
9867 properties if appropriate.
9868 (xftfont_close): Unlock the face.
9869 (xftfont_anchor_point, xftfont_shape): Deleted.
9870 (syms_of_xftfont): Don't set members anchor_point and shape of
9871 xftfont_driver.
9872
9873 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9874 font_make_object.
9875
9876 * w32font.c (w32font_open): Adjust it for the change of
9877 font_make_object.
9878 (w32font_open_internal): Don't set properties of font_object here.
9879
9880 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
9881
9882 * macfns.c (x_create_tip_frame):
9883 * w32fns.c (x_create_tip_frame):
9884 * xfns.c (x_create_tip_frame): Pass parameter argument to
9885 face-set-after-frame-default.
9886
9887 * xfaces.c (Finternal_merge_in_global_face): Save merged
9888 attributes for the default face back into the face vector.
9889
9890 2008-07-08 Andreas Schwab <schwab@suse.de>
9891
9892 * fontset.h: Declare fontset_from_font. Don't declare
9893 new_fontset_from_font and fontset_from_font_name.
9894 * xterm.c: Include "fontset.h".
9895 * Makefile.in (xterm.o): Update dependencies.
9896
9897 2008-07-08 Glenn Morris <rgm@gnu.org>
9898
9899 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9900 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9901
9902 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
9903
9904 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9905 (x_set_frame_parameters): Don't bind it.
9906
9907 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
9908
9909 * w32fns.c (map_w32_filename): Declare extern.
9910
9911 2008-07-07 Jason Rumney <jasonr@gnu.org>
9912
9913 * w32term.c (WS_EX_LAYERED): Define if not already.
9914
9915 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
9916
9917 * xfaces.c (set_font_frame_param): Don't try to set the font
9918 parameter if it is still unspecified in the lface.
9919
9920 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
9921
9922 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9923 face if it didn't already exist.
9924
9925 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9926
9927 2008-07-05 Andreas Schwab <schwab@suse.de>
9928
9929 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9930
9931 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
9932
9933 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9934 word-wrapping.
9935 (IT_DISPLAYING_WHITESPACE): New macro.
9936 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9937 when word-wrapping. Simplify word-wrapping logic. Use correct
9938 pixel positions when saving copies of the iterator.
9939 (display_line): Use proper wrap point if the last character on a
9940 line was preceded by whitespace.
9941
9942 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9943
9944 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9945
9946 2008-07-04 Kenichi Handa <handa@m17n.org>
9947
9948 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9949
9950 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9951
9952 2008-07-02 Jason Rumney <jasonr@gnu.org>
9953
9954 * xfns.c (syms_of_xfns): Only define x-select-font when both
9955 HAVE_FREETYPE and USE_GTK.
9956
9957 * xdisp.c (next_element_from_display_vector): Move assignment out
9958 of if statement.
9959
9960 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9961
9962 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9963
9964 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9965 (syms_of_fileio): Initialize and export them.
9966 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9967
9968 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9969 (Fsystem_move_file_to_trash): New function.
9970 (syms_of_w32fns): Export it to lisp.
9971
9972 2008-07-01 Jason Rumney <jasonr@gnu.org>
9973
9974 * w32font.c (w32font_text_extents): Don't count overhang as part
9975 of width.
9976
9977 2008-06-30 Miles Bader <miles@gnu.org>
9978
9979 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9980 Add `avoid_cursor_p' field.
9981
9982 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9983 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9984 (append_glyph, append_composite_glyph, produce_image_glyph)
9985 (append_stretch_glyph): Initialize avoid_cursor_p.
9986 (get_it_property): Rename from `get_line_height_property'.
9987 (x_produce_glyphs): Use get_it_property.
9988 (handle_line_prefix, push_display_prop): New functions.
9989 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9990 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9991 New variables.
9992 (syms_of_xdisp): Initialize them.
9993
9994 2008-06-30 Kenichi Handa <handa@m17n.org>
9995
9996 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9997 XftDefaultSubstitute (they are called in XftFontMatch).
9998 (xftfont_open): Fix args to ftfont_font_format.
9999
10000 * ftfont.c (fc_charset_table): New member lang.
10001 (ftfont_resolve_generic_family): New arg pattern.
10002 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
10003 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
10004 (ftfont_open): Fix args to ftfont_font_format.
10005 (ftfont_font_format): New arg filename.
10006
10007 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
10008
10009 * xfaces.c (Finternal_merge_in_global_face): If default face was
10010 modified, realize it again. Update the font face attribute.
10011
10012 2008-06-29 Jason Rumney <jasonr@gnu.org>
10013
10014 * w32term.c (x_set_frame_alpha): Fix logic.
10015
10016 2008-06-29 Kenichi Handa <handa@m17n.org>
10017
10018 * fontset.c (Finternal_char_font): Return font-object instead of
10019 font-name.
10020
10021 * composite.c (get_composition_id): Fix the width calculation for TAB.
10022
10023 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
10024
10025 * indent.c (Fvertical_motion): Properly handle float column arg.
10026
10027 2008-06-28 Jason Rumney <jasonr@gnu.org>
10028
10029 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
10030 (pfnSetLayeredWindowAttributes): New function pointer.
10031 (w32_initialize): Initialize it when supported.
10032 (x_set_frame_alpha): New function.
10033
10034 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
10035 (w32_frame_parm_handlers): Set alpha handler.
10036
10037 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
10038
10039 2008-06-27 Jason Rumney <jasonr@gnu.org>
10040
10041 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
10042 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
10043 (w32_to_x_charset, x_to_w32_charset)
10044 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10045 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10046 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10047 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10048 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10049 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10050 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
10051 (Qw32_charset_unicode): Remove.
10052 (syms_of_w32fns): Update for above changes.
10053
10054 * w32font.c (w32_to_x_charset, x_to_w32_charset)
10055 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10056 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10057 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10058 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10059 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10060 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10061 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
10062 (syms_of_w32font): Update for above changes.
10063
10064 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
10065
10066 * s/usg5-4.h: Fix previous change: keep the correct branch of a
10067 removed #if.
10068 (USG_SHARED_LIBRARIES): Remove duplicate definition.
10069
10070 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
10071 Eli Zaretskii <eliz@gnu.org>
10072
10073 * makefile.w32-in (LOCAL_FLAGS):
10074 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
10075
10076 * sysdep.c (_spawnlp, _getpid):
10077 Declare with explicit _cdecl instead of _CRTAPI1.
10078
10079 * editfns.c (Fget_internal_run_time):
10080 Check for WINDOWSNT with #ifdef, not #if.
10081
10082 2008-06-26 Jason Rumney <jasonr@gnu.org>
10083
10084 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
10085
10086 * w32term.c (x_draw_glyph_string_foreground)
10087 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
10088 Use FONT_HANDLE macro.
10089 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
10090
10091 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10092 (uniscribe_encode_char): Use FONT_HANDLE macro.
10093
10094 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
10095 (w32font_text_extents): Use precast w32_font.
10096 (w32font_close): Free cached metrics.
10097 (w32font_open_internal): Allocate space for name on stack.
10098
10099 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
10100
10101 * xdisp.c (extend_face_to_end_of_line): Fix last change.
10102
10103 2008-06-26 Jason Rumney <jasonr@gnu.org>
10104
10105 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
10106 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
10107
10108 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
10109
10110 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
10111
10112 2008-06-26 Jason Rumney <jasonr@gnu.org>
10113
10114 * w32bdf.c, w32bdf.h: Remove obsolete files.
10115
10116 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
10117
10118 * w32gui.h: Don't include w32bdf.h.
10119 (XCharStruct, enum w32_char_font_type, W32FontStruct):
10120 Remove obsolete font support.
10121
10122 * w32font.h (struct w32font_info): Remove compat_w32_font.
10123 Add hfont member.
10124 (FONT_COMPAT): Remove obsolete macro.
10125
10126 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
10127 (w32font_encode_char, w32font_text_extents): Use new hfont member.
10128 (w32font_open_internal): Remove compat code. Set new hfont member.
10129 (Fx_select_font): Use new hfont member.
10130
10131 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10132 (uniscribe_encode_char): Use new hfont member.
10133
10134 * w32term.c (x_draw_glyph_string_foreground)
10135 (x_draw_composite_glyph_string_foreground): Use new hfont member.
10136 (x_draw_glyph_string): Use metrics in w32font_info.
10137
10138 2008-06-26 Kenichi Handa <handa@m17n.org>
10139
10140 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
10141
10142 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
10143
10144 * unexnext.c:
10145 * m/ews4800.h:
10146 * m/hp9000s300.h:
10147 * m/ibm370aix.h:
10148 * m/mips-siemens.h:
10149 * m/ncr386.h:
10150 * m/next.h:
10151 * m/pmax.h:
10152 * m/powerpcle.h:
10153 * m/tandem-s2.h:
10154 * s/386bsd.h:
10155 * s/bsd386.h:
10156 * s/bsd4-1.h:
10157 * s/bsd4-2.h:
10158 * s/bsdos2-1.h:
10159 * s/bsdos2.h:
10160 * s/bsdos3.h:
10161 * s/bsdos4.h:
10162 * s/nextstep.h:
10163 * s/ultrix4-3.h:
10164 * s/usg5-0.h:
10165 * s/usg5-2-2.h:
10166 * s/usg5-2.h:
10167 * s/usg5-4-3.h:
10168 * s/ux4800.h:
10169 * s/uxpds.h:
10170 * s/uxpv.h: Remove support for obsolete systems.
10171 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
10172 Remove, insert contents in s/hpux10-20.h.
10173 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
10174 Remove, insert contents in s/aix4-2.h.
10175 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
10176 * s/bsd4-3.h: Rename to ...
10177 * s/bsd-common.h: ... this.
10178 * data.c:
10179 * doc.c:
10180 * ecrt0.c:
10181 * emacs.c:
10182 * fileio.c:
10183 * floatfns.c:
10184 * keyboard.c:
10185 * mem-limits.h:
10186 * print.c:
10187 * process.c:
10188 * sysdep.c:
10189 * syssignal.h:
10190 * systty.h:
10191 * syswait.h:
10192 * term.c:
10193 * unexec.c:
10194 * unexelf.c:
10195 * unexhp9k800.c:
10196 * m/hp800.h:
10197 * m/ibmrs6000.h:
10198 * m/mips.h:
10199 * m/vax.h:
10200 * s/darwin.h:
10201 * s/freebsd.h:
10202 * s/gnu.h:
10203 * s/ms-w32.h:
10204 * s/msdos.h:
10205 * s/netbsd.h:
10206 * s/template.h: Remove references to obsolete variables.
10207
10208 * Makefile.in: Add dependencies for all unexec files.
10209 (admindir): Remove unused variable.
10210 (UNEXEC_SRC): Remove references.
10211
10212 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
10213
10214 * xfns.c (x_default_font_parameter): If Xft is available, first
10215 try Monospace-12 for the default font.
10216
10217 2008-06-25 Jason Rumney <jasonr@gnu.org>
10218
10219 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
10220
10221 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
10222
10223 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
10224
10225 * buffer.c (syms_of_buffer): Remove default-word-wrap.
10226
10227 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
10228
10229 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
10230 <scroll-conservatively>: Fix typo in docstring.
10231
10232 * xselect.c (Fx_send_client_event): Doc fix.
10233
10234 2008-06-25 Kenichi Handa <handa@m17n.org>
10235
10236 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
10237
10238 * font.c (font_parse_fcname): Remove unused variables.
10239 (font_sort_entites): Delete the arg SPEC. Caller changed.
10240 Fix for the case of ! best_only.
10241 (font_delete_unmatched): Check DPI and AVGWIDTH too.
10242
10243 * lisp.h (Fstring_to_unibyte): EXFUN it.
10244
10245 * character.h (str_to_unibyte): Extern it.
10246
10247 * character.c (str_to_unibyte): New function.
10248
10249 * fns.c (Fstring_to_unibyte): New function.
10250 (syms_of_fns): Defsubr it.
10251
10252 2008-06-24 Kenichi Handa <handa@m17n.org>
10253
10254 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
10255 DPI too.
10256 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
10257
10258 2008-06-24 Andreas Schwab <schwab@suse.de>
10259
10260 * Makefile.in (${lispsource}loaddefs.el): Rename from
10261 ../lisp/loaddefs.el.
10262 (bootstrap-clean): Do what distclean does but don't remove
10263 Makefile.
10264 (distclean): Depend on bootstrap-clean and remove Makefile.
10265
10266 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
10267
10268 * buffer.h (struct buffer): New member word_wrap.
10269
10270 * buffer.c (syms_of_buffer): New variables default-word-wrap and
10271 word-wrap.
10272 (init_buffer_once): Initialize them.
10273
10274 * dispextern.h (struct it): Replace bool truncate_lines_p with a
10275 line_wrap enum possessing three possible values.
10276
10277 * termopts.h: Replace truncate_partial_width_windows with
10278 Vtruncate_partial_width_windows.
10279
10280 * dispnew.c (direct_output_for_insert): Avoid direct output when
10281 inserting a space with word wrap on.
10282
10283 * indent.c (compute_motion): Obey integer values of
10284 truncate-partial-width-windows.
10285
10286 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
10287 replacing truncate_partial_width_windows.
10288 (init_iterator): If Vtruncate_partial_width_windows is an integer,
10289 truncate only if the window width is below that integer.
10290 (start_display, resize_mini_window, produce_stretch_glyph)
10291 (display_string, move_it_in_display_line_to): Use line_wrap.
10292 (back_to_previous_visible_line_start, reseat_1): Reset
10293 string_from_display_prop_p.
10294 (display_line): Extend default face to end of line when wrapping.
10295
10296 2008-06-24 Kim F. Storm <storm@cua.dk>
10297
10298 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
10299 to wrap continued lines at word boundaries.
10300
10301 2008-06-24 Jason Rumney <jasonr@gnu.org>
10302
10303 * font.c (Ffont_face_attributes): Multiply pixel size before point
10304 conversion to avoid multiplying rounding error.
10305
10306 2008-06-23 Jason Rumney <jasonr@gnu.org>
10307
10308 * w32term.c (x_draw_glyph_string_background)
10309 (x_draw_glyph_string): Remove old bdf font code.
10310
10311 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
10312
10313 2008-06-22 Kenichi Handa <handa@m17n.org>
10314
10315 * font.c (font_find_for_lface): Try the adstyle specified in
10316 the property of LFACE_FONT of LFACE (if any).
10317
10318 2008-06-21 Seiji Zenitani <zenitani@mac.com>
10319 Ryo Yoshitake <ryo@shiftmode.net>
10320
10321 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
10322
10323 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
10324
10325 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
10326 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
10327 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
10328 (witness-emacs): Remove.
10329 (lisp, shortlisp): Move loaddefs.el earlier.
10330 (mostlyclean): Forget about witness-emacs.
10331
10332 2008-06-22 Glenn Morris <rgm@gnu.org>
10333
10334 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
10335 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
10336
10337 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10338
10339 * Makefile.in (PRECOMP): Remove.
10340 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
10341 (witness-emacs): Run `compile-first'.
10342 (.el.elc): Use the new compile-onefile target.
10343
10344 2008-06-21 Kenichi Handa <handa@m17n.org>
10345
10346 * xftfont.c (xftfont_open): Handle QCembolden only when
10347 FC_EMBOLDEN is defined.
10348
10349 2008-06-21 Andreas Schwab <schwab@suse.de>
10350
10351 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
10352 (.el.elc): Likewise.
10353
10354 2008-06-21 Miles Bader <miles@gnu.org>
10355
10356 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
10357 build dir, not the lisp source dir.
10358
10359 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10360
10361 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
10362 (bootstrapclean): Remove.
10363 (.el.elc): New rule.
10364 (PRECOMP): New var.
10365 (../lisp/subdirs.el): Remove.
10366 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
10367 (witness-emacs): New target.
10368 (mostlyclean): Remove witness-emacs as well.
10369 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
10370 Add witness-emacs dependency.
10371
10372 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
10373
10374 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
10375 defined by the font.
10376
10377 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10378
10379 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
10380 (bootstrap-clean): New target that keeps TAGS around.
10381 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
10382 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
10383
10384 2008-06-20 Jason Rumney <jasonr@gnu.org>
10385
10386 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
10387 Remove obsolete font code.
10388
10389 * w32font.c (font_matches_spec): Use csb bitfield from font signature
10390 to determine language support.
10391
10392 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10393
10394 * sysdep.c (cfsetspeed): New fun extracted from the code.
10395 (cfmakeraw): Move before first use.
10396
10397 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
10398
10399 * sysdep.c (cfmakeraw): Provide fallback implementation.
10400 (serial_configure): Provide fallback implementation of cfsetspeed.
10401
10402 2008-06-20 Kenichi Handa <handa@m17n.org>
10403
10404 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
10405 the pattern.
10406
10407 * fontset.c (fontset_from_font): Copy font_spec before changing
10408 the elements.
10409
10410 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
10411
10412 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10413
10414 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
10415 for explicit `font' parameters.
10416
10417 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
10418
10419 2008-06-19 Kenichi Handa <handa@m17n.org>
10420
10421 * frame.c: Include <ctype.h>.
10422 (x_set_font_backend): Allow spacing characters in the X resource
10423 for FontBackend.
10424
10425 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
10426
10427 * w32fns.c, xfns.c (Qfont_param): New var.
10428 (syms_of_w32fns): Initialize it.
10429 (x_default_font_parameter): Record explicit `font' into
10430 `font-parameter'.
10431
10432 2008-06-18 Kenichi Handa <handa@m17n.org>
10433
10434 * font.c (font_parse_xlfd): Fix previous change.
10435 (font_parse_fcname): Don't use :fc-unknown-spec.
10436 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
10437 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
10438 (font_add_log): Prepend the driver name to the resulting fonts.
10439
10440 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
10441 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
10442 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
10443
10444 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
10445 (QCembolden): New variables.
10446 (syms_of_xftfont): DEFSYM them.
10447 (xftfont_open): Call XftFontMatch. Don't trust the result of
10448 XftTextExtents8 if the pixel_size is less than 5.
10449
10450 2008-06-18 Andreas Schwab <schwab@suse.de>
10451
10452 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
10453 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
10454
10455 2008-06-18 Jason Rumney <jasonr@gnu.org>
10456
10457 * w32font.c (w32font_list, w32font_match): Add logging.
10458
10459 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
10460
10461 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
10462
10463 * font.c (font_parse_fcname): Store divider characters for
10464 unknown-spec list. For known key symbols, intern using correct
10465 symbol name.
10466
10467 2008-06-17 Kenichi Handa <handa@m17n.org>
10468
10469 * xfaces.c (realize_default_face): If the frame is not on window
10470 system, set the fontset of face to nil.
10471
10472 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10473
10474 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
10475
10476 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
10477
10478 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
10479 (build_font_name_from_vector): Delete externs.
10480
10481 * xfaces.c (struct font_name): Don't declare.
10482
10483 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
10484
10485 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
10486
10487 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
10488
10489 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
10490
10491 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
10492
10493 * font.c (Ffont_spec): Fix usage in docstring.
10494 (Ffont_face_attributes): Doc fix.
10495
10496 2008-06-16 Andreas Schwab <schwab@suse.de>
10497
10498 * font.c (Ffont_face_attributes): Fix definition.
10499
10500 2008-06-16 Jason Rumney <jasonr@gnu.org>
10501
10502 * font.h (font_style_symbolic_from_value): Remove.
10503
10504 * font.c (font_style_symbolic_from_value): Remove.
10505 (font_style_symbolic): Revert to pre 2008-06-13 version.
10506
10507 * w32font.c (w32_to_fc_weight): New function.
10508 (w32font_full_name, logfont_to_fcname): Use it.
10509
10510 2008-06-16 Kenichi Handa <handa@m17n.org>
10511
10512 * font.c (font_check_object): Delete it.
10513 (font_clear_cache): Check if a font-object is alive.
10514 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
10515 font-object to nil.
10516 (font_close_object): Don't check FONT_CLOSE_OBJECT.
10517 (font_at): Don't call font_check_object.
10518 (Ffont_get): Return a symbol for :weight, :slant, and :width.
10519
10520 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
10521
10522 * puresize.h (BASE_PURESIZE): Increase to 1230000.
10523
10524 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
10525
10526 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
10527
10528 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
10529
10530 * font.c (font_parse_fcname): Only one decimal point.
10531 (font_unparse_fcname): Handle data in family and foundry indices
10532 as symbols, not strings.
10533 (font_unparse_gtkname, Ffont_face_attributes): New functions.
10534
10535 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
10536
10537 * font.h (font_unparse_gtkname): Add prototype.
10538
10539 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10540
10541 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
10542
10543 2008-06-15 Andreas Schwab <schwab@suse.de>
10544
10545 * font.c (font_update_drivers): Fix crash when no drivers match.
10546
10547 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
10548
10549 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
10550 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
10551
10552 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
10553
10554 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
10555
10556 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
10557
10558 * process.c (Fserial_process_configure, Fprocess_send_eof):
10559 Use EQ to compare Lisp_Objects.
10560
10561 2008-06-13 Jason Rumney <jasonr@gnu.org>
10562
10563 * w32fns.c (Fw32_select_font): Remove old font API function.
10564
10565 * w32font.c (logfont_to_fcname): New function.
10566 (Fx_select_font): New font dialog function compatible with
10567 GTK/fontconfig version.
10568
10569 * font.c (font_style_symbolic_from_value): New function.
10570 (font_style_symbolic): Use it.
10571
10572 * font.h (font_style_symbolic_from_value): Declare new function.
10573
10574 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
10575
10576 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
10577 <font-width-table>: Fix typos in docstrings.
10578
10579 2008-06-13 Daniel Engeler <engeler@gmail.com>
10580
10581 These changes add serial port access.
10582 * process.c: Add HAVE_SERIAL.
10583 (Fdelete_process, Fprocess_status, Fset_process_buffer)
10584 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
10585 (list_processes_1, select_wrapper, Fstop_process)
10586 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
10587 (status_notify): Modify to handle serial processes.
10588 [HAVE_SERIAL] (Fserial_process_configure)
10589 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
10590 New functions.
10591 * process.h (struct Lisp_Process): Add `type'.
10592 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
10593 New functions.
10594 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
10595 serial ports.
10596 (serial_open, serial_configure): New functions.
10597 * w32.h: Add FILE_SERIAL.
10598 (struct _child_process): Add ovl_read, ovl_write.
10599
10600 2008-06-13 Kenichi Handa <handa@m17n.org>
10601
10602 * dispextern.h (enum lface_attribute_index): New member
10603 LFACE_FOUNDRY_INDEX.
10604
10605 * font.c (font_score): Delete arg alternate_families. Check only
10606 weight, slant, width, and size. Ignore the difference of alias
10607 style symbols.
10608 (font_sort_entites): Adjust for the above change. Reflect the
10609 order of font-driver to scores.
10610 (font_list_entities): Don't check alternate_familes here.
10611 (font_clear_prop): Handle foundry.
10612 (font_update_lface): Don't parse "foundry-family" form here.
10613 Handle FONT_FOUNDRY_INDEX.
10614 (font_find_for_lface): Likewise. Handle alternate families here.
10615 If registry is nil, try iso8859-1 and ascii-0.
10616 (font_open_for_lface): Pay attention to size in ENTITY.
10617 (font_open_by_name): Simplify by calling font_load_for_lface.
10618 (free_font_driver_list): Delete it.
10619 (font_update_drivers): Preserve the order of backends.
10620 (syms_of_font): Setting of sort_shift_bits adjusted for the change
10621 of font_score and font_sort_entites.
10622 (font_update_sort_order): Likewise.
10623
10624 * xfaces.c (LFACE_FOUNDRY): New macro.
10625 (check_lface_attrs): Check foundry.
10626 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10627 (merge_face_vectors): Check foundry.
10628 (merge_face_ref): Likewise.
10629 (Finternal_set_lisp_face_attribute): Likewise.
10630 (x_update_menu_appearance): Likewise.
10631 (Finternal_get_lisp_face_attribute): Likewise.
10632 (lface_hash): Likewise.
10633 (lface_same_font_attributes_p): Likewise.
10634 (x_supports_face_attributes_p): Likewise.
10635 (tty_supports_face_attributes_p): Likewise.
10636 (Finternal_set_alternative_font_family_alist): Intern strings.
10637 (Finternal_set_alternative_font_registry_alist): Downcase strings.
10638 (realize_default_face): Set LFACE_FOUNDRY (lface).
10639
10640 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10641 font-driver at first.
10642
10643 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10644
10645 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10646
10647 * lread.c (Fload): Use xfree, not free on saved_doc_string.
10648
10649 2008-06-12 Jim Meyering <meyering@redhat.com>
10650
10651 Make unexec_free handle NULL the same way free does.
10652 * unexmacosx.c (unexec_free): Ignore a NULL argument.
10653
10654 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10655
10656 * character.h (CHAR_TO_BYTE_SAFE): New macro.
10657 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10658 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10659 (WEAK_ALIAS): Simplify.
10660 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10661 when searching a unibyte buffer.
10662
10663 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
10664
10665 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10666
10667 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
10668
10669 * w32font.c: Include ctype.h.
10670
10671 2008-06-11 Jason Rumney <jasonr@gnu.org>
10672
10673 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10674 misreported as space.
10675 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10676 as aliases for registry iso10646-1.
10677
10678 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10679
10680 * buffer.c (clone_per_buffer_values): Skip `name'.
10681
10682 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
10683
10684 * font.c (font_parse_fcname): Fix last change; accept decimal
10685 points in font size.
10686
10687 2008-06-10 Jason Rumney <jasonr@gnu.org>
10688
10689 * w32uniscribe.c (add_opentype_font_name_to_list):
10690 Skip non unicode fonts.
10691
10692 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
10693
10694 * xfns.c (Fx_font_dialog): New function.
10695
10696 * gtkutil.c (xg_dialog_response_cb): Rename from
10697 xg_file_response_callback.
10698 (pop_down_dialog): Rename from pop_down_file_dialog.
10699 (xg_get_file_name): Callers changed.
10700 (xg_get_font_name): New function.
10701
10702 * gtkutil.h (xg_get_font_name): Insert prototype.
10703
10704 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10705
10706 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10707 x_underline_minimum_display_offset.
10708 (syms_of_xdisp): Declare it here rather than in xterm.c.
10709 * dispextern.h (underline_minimum_offset): Declare it.
10710 * w32term.c (x_draw_glyph_string): Use it.
10711 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10712 (syms_of_xterm): Don't declare it any more.
10713 (x_draw_glyph_string): Adjust to the new name.
10714
10715 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
10716
10717 * xterm.c (x_underline_minimum_display_offset): New var.
10718 (x_draw_glyph_string): Use it.
10719 (syms_of_xterm): Declare it.
10720
10721 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
10722
10723 * font.c (font_parse_fcname): Accept GTK-style font names too.
10724
10725 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10726
10727 * dired.c (file_name_completion): Don't return t if the match is exact
10728 but with different capitalization.
10729 * minibuf.c (Ftry_completion): Simplify.
10730
10731 * window.c (Vwindow_point_insertion_type): New var.
10732 (set_window_buffer): Use it.
10733 (syms_of_window): Init and export it to Lisp.
10734
10735 2008-06-10 Kenichi Handa <handa@m17n.org>
10736
10737 * font.h (font_intern_prop): Prototype adjusted.
10738
10739 * font.c (font_intern_prop): New arg force_symbol.
10740 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10741 Adjust for the change of font_intern_prop.
10742
10743 * ftfont.c (ftfont_pattern_entity):
10744 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10745 (w32_registry):
10746 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10747 the change of font_intern_prop.
10748
10749 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
10750
10751 * w32menu.c (digest_single_submenu): Declare extern.
10752
10753 2008-06-09 Jason Rumney <jasonr@gnu.org>
10754
10755 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10756
10757 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10758 (parse_single_submenu): Remove.
10759 (digest_single_submenu): Remove.
10760 (syms_of_w32menu): Don't initialise variables that have moved
10761 to menu.c.
10762 (set_frame_menubar): Sync with version in xmenu.c.
10763 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10764
10765 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10766 Make static again.
10767
10768 2008-06-09 Jason Rumney <jasonr@gnu.org>
10769
10770 Changes to w32 files related to the move of common menu code
10771 to menu.c on 2008-06-08 by Chong Yidong.
10772
10773 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10774 defs to w32gui.h.
10775 (single_keymap_panes, push_menu_item, push_menu_pane):
10776 Make globally visible.
10777
10778 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10779 (local_free, malloc_widget_value, free_widget_value)
10780 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10781 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10782 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10783 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10784 (menu_items, menu_items_allocated, menu_items_used)
10785 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10786 (init_menu_items, finish_menu_items, discard_menu_items)
10787 (grow_menu_items, push_submenu_start, push_submenu_end)
10788 (push_left_right_boundary, push_menu_pane, push_menu_item)
10789 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10790 (free_menubar_widget_tree_value, parse_single_submenu)
10791 (update_submenu_strings): Remove functions.
10792 (xmalloc_widget_value): Remove and declare extern.
10793
10794 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10795 (OBJ1): Build it.
10796
10797 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10798 (local_heap, local_alloc, local_free, malloc_widget_value)
10799 (free_widget_value): Define here.
10800
10801 2008-06-09 Kenichi Handa <handa@m17n.org>
10802
10803 * font.h (Qascii_0): Extern it.
10804
10805 * font.c (Qascii_0): New variable.
10806 (syms_of_font): DEFSYM it.
10807 (font_open_by_name): If the registry "iso8859-1" fails, try also
10808 "ascii-0".
10809
10810 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10811
10812 2008-06-08 Kenichi Handa <handa@m17n.org>
10813
10814 * .gdbinit (xfont): New command.
10815
10816 2008-06-08 Andreas Schwab <schwab@suse.de>
10817
10818 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10819 * Makefile.in (menu.o): Update dependencies.
10820
10821 * Makefile.in (obj): Always add menu.o.
10822 * emacs.c (main): Always call syms_of_menu.
10823 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10824
10825 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
10826
10827 * Makefile.in: Compile menu.c.
10828
10829 * lisp.h: Declare syms_of_menu.
10830
10831 * emacs.c (main): Call syms_of_menu.
10832
10833 * keyboard.h: Relocate platform-independent menu definitions from
10834 xmenu.c.
10835
10836 * menu.c: New file. Relocate platform-independent menu
10837 definitions from xmenu.c. Suggested by Adrian Robert.
10838
10839 * xmenu.c: Remove platform-independent menu definitions.
10840 (menu_items menu_items_inuse, menu_items_allocated)
10841 (menu_items_used, menu_items_n_panes)
10842 (menu_items_submenu_depth): Move to keyboard.h.
10843 (init_menu_items, finish_menu_items, unuse_menu_items)
10844 (discard_menu_items, restore_menu_items, save_menu_items)
10845 (grow_menu_items, push_submenu_start, push_submenu_end)
10846 (push_left_right_boundary, push_menu_pane, push_menu_item)
10847 (keymap_panes, single_keymap_panes, single_menu_item)
10848 (list_of_panes, list_of_items, find_and_call_menu_selection)
10849 (xmalloc_widget_value, free_menubar_widget_value_tree)
10850 (parse_single_submenu, digest_single_submenu)
10851 (update_submenu_strings): Move to menu.c.
10852
10853 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10854
10855 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10856
10857 2008-06-06 Miles Bader <miles@gnu.org>
10858
10859 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10860 face, not frame default.
10861
10862 2008-06-05 Martin Rudalics <rudalics@gmx.at>
10863
10864 * window.c (pop_up_windows, pop_up_frames)
10865 (display_buffer_reuse_frames, Vpop_up_frame_function)
10866 (Vdisplay_buffer_function, Veven_window_heights)
10867 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10868 (Vspecial_display_function, Vsame_window_buffer_names)
10869 (Vsame_window_regexps, split_height_threshold)
10870 (Vsplit_window_preferred_function): Move those vars to window.el.
10871 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10872 (Fdisplay_buffer): Move those functions to window.el.
10873 (syms_of_window): Remove corresponding declarations.
10874 (display_buffer): New function.
10875 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10876 * dispnew.c (Flast_nonminibuf_frame): New function.
10877 * buffer.c (Fpop_to_buffer): Move to window.el.
10878
10879 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10880
10881 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10882
10883 2008-06-05 Kenichi Handa <handa@m17n.org>
10884
10885 * coding.c (detect_coding): Fix previous change.
10886 (detect_coding_system): Likewise.
10887
10888 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10889
10890 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10891
10892 * keymap.c (Vminibuffer_local_filename_must_match_map):
10893 Rename from Vminibuffer_local_must_match_filename_map.
10894 (syms_of_keymap):
10895 * minibuf.c (Fcompleting_read): Adjust accordingly.
10896 * commands.h: Rename declaration as well.
10897
10898 2008-06-05 Kenichi Handa <handa@m17n.org>
10899
10900 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10901 family name.
10902 (Ffont_put): Likewise.
10903
10904 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10905 current font-spec.
10906
10907 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10908 is unspecified.
10909
10910 * xfaces.c (realize_x_face): If the font-related face attributes
10911 are the same as those of default face, realize a new fontset from
10912 default->fontset.
10913 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10914
10915 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10916
10917 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10918 (move_it_in_display_line): New wrapper.
10919
10920 * window.c (window_scroll_pixel_based_preserve_x)
10921 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10922 (window_scroll_pixel_based, window_scroll_line_based):
10923 Use them to preserve column positions.
10924 (syms_of_window): Initialize them.
10925
10926 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10927 (HPOS . VPOS) pair.
10928
10929 * dispextern.h (move_it_in_display_line): Declare.
10930
10931 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
10932
10933 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10934 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10935 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10936
10937 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
10938
10939 * window.c (Fset_window_parameter): Doc fix.
10940 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10941
10942 2008-06-04 Joakim Verona <joakim@verona.se>
10943
10944 * window.h (struct window): Add new member window_parameters.
10945
10946 * window.c (Fwindow_parameters, Fwindow_parameter)
10947 (Fset_window_parameter): New defuns.
10948 (syms_of_window): Defsubr the new defuns.
10949 (make_window): Initialize window_parameters to nil.
10950
10951 2008-06-04 John Paul Wallington <jpw@pobox.com>
10952
10953 * eval.c (Fdefmacro): Doc fix.
10954
10955 2008-06-04 Kenichi Handa <handa@m17n.org>
10956
10957 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10958 Be sure to call setup_coding_system when we find a proper coding system.
10959 (detect_coding_system): Fix handling of coding->head_ascii.
10960
10961 2008-06-03 Andreas Schwab <schwab@suse.de>
10962
10963 * font.c (font_prop_validate_spacing): Fix last change.
10964
10965 2008-06-03 Kenichi Handa <handa@m17n.org>
10966
10967 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10968 (font_parse_fcname): Fix handling of unknown key.
10969
10970 * xfont.c (xfont_list): Try an alias.
10971
10972 * charset.c (char_charset): Return NULL if the arg charset_list is
10973 specified and C doesn't belong to any of them.
10974
10975 2008-06-02 Chip Coldwell <coldwell@redhat.com>
10976
10977 * font.c (font_pixel_size): Don't take cdr of an integer.
10978
10979 2008-06-02 Jim Meyering <meyering@redhat.com>
10980
10981 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10982 * alloc.c (xfree): Return right away for a NULL arg.
10983 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10984 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10985 * mac.c (create_apple_event_from_event_ref): Likewise.
10986 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10987 Likewise.
10988 * doprnt.c (doprnt1): Likewise.
10989 * frame.c (frame): Likewise.
10990 * keyboard.c (wipe_kboard): Likewise.
10991 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10992 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10993 * term.c (tty_default_color_capabilities, maybe_fatal)
10994 (delete_tty): Likewise.
10995 * w16select.c (string): Likewise.
10996 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10997 * w32bdf.c (w32_free_bdf_font): Likewise.
10998 * w32fns.c (w32_unload_font): Likewise.
10999 * w32font.c (w32font_close): Likewise.
11000 * window.c (size_window): Likewise.
11001 * xselect.c (receive_incremental_selection): Likewise.
11002 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
11003 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
11004 * w32.c (stat): Likewise.
11005
11006 Remove useless if-before-free tests.
11007 * editfns.c (Fset_time_zone_rule): Likewise.
11008 * lread.c (nosuffix): Likewise.
11009 * ralloc.c (get_bloc): Likewise.
11010 * regex.c (reg_free): Likewise.
11011 * xftfont.c (xftfont_open, xftfont_close): Likewise.
11012 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
11013 * xsmfns.c (smc_save_yourself_CB): Likewise.
11014
11015 2008-06-02 Kenichi Handa <handa@m17n.org>
11016
11017 * font.c (font_find_for_lface): Handle float font size.
11018 (font_open_for_lface): Likewise.
11019
11020 * xfaces.c (x_supports_face_attributes_p): Check face->font before
11021 comparing the properties.
11022
11023 2008-06-01 Jason Rumney <jasonr@gnu.org>
11024
11025 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
11026 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
11027 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
11028 Don't add empty script list.
11029 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
11030
11031 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
11032
11033 * Makefile.in (dot, dotdot): Remove, update users.
11034 ".." has been used elsewhere in the file for a long time.
11035 (LIBXT_STATIC): Remove conditional based on unused variable.
11036
11037 2008-06-01 Miles Bader <miles@gnu.org>
11038
11039 * xfaces.c (Vface_remapping_alist): New variable.
11040 (syms_of_xfaces): Initialize it.
11041 (enum named_merge_point_kind): New type.
11042 (struct named_merge_point): Add `named_merge_point_kind' field.
11043 (push_named_merge_point): Make cycle detection respect different
11044 named-merge-point kinds.
11045 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
11046 Remove face-name alias resolution.
11047 (lface_from_face_name): New definition using
11048 `lface_from_face_name_no_resolve'.
11049 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
11050 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
11051 (get_lface_attributes): New definition that layers face-remapping on
11052 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
11053 (lookup_basic_face): New function.
11054 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
11055 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
11056 `get_lface_attributes'.
11057 (face_at_buffer_position): Use `lookup_basic_face' to lookup
11058 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
11059 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
11060
11061 * xdisp.c (init_iterator): Pass base_face_id through
11062 `lookup_basic_face' when we actually use it as a face-id.
11063 (handle_single_display_prop): Use `lookup_basic_face' to lookup
11064 DEFAULT_FACE_ID.
11065
11066 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
11067 lookup the initial face-id.
11068
11069 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
11070
11071 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
11072
11073 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
11074 (Fremove_text_properties): Fix typos in docstrings.
11075
11076 2008-05-31 Kenichi Handa <handa@m17n.org>
11077
11078 * font.c (font_list_entities): Fix the car part of data to be
11079 stored in the cache.
11080
11081 * ftfont.c (ftfont_font_format): Don't use strcasestr.
11082
11083 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11084
11085 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
11086 Add a `test' argument so another predicate than `equal' can be used.
11087 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
11088 (map_char_table): Remove unused vars `c' and `i'.
11089 * lisp.h (Foptimize_char_table): Adjust declaration.
11090 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
11091
11092 2008-05-30 Kenichi Handa <handa@m17n.org>
11093
11094 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
11095 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
11096 defined.
11097
11098 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11099
11100 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11101 (Fmake_variable_frame_local): Disallow mixing buffer-local and
11102 frame-local settings for the same variable.
11103
11104 2008-05-30 Kenichi Handa <handa@m17n.org>
11105
11106 * fontset.c (Ffont_info): Move to font.c.
11107 (syms_of_fontset): Delete defsubr of Sfont_info.
11108
11109 * font.c (font_style_to_value, font_score): Delete casting of the
11110 args to xstcasecmp.
11111 (register_font_driver): Increment num_font_drivers only when
11112 registering the driver globally.
11113 (Ffont_info): Move from fontset.c. Handle a font object too.
11114 (syms_of_font): Defsubr Sfont_info.
11115
11116 2008-05-29 Kenichi Handa <handa@m17n.org>
11117
11118 * coding.h (enum define_coding_utf8_arg_index): New enum.
11119 (enum coding_attr_index): Change coding_attr_utf_16_bom to
11120 coding_attr_utf_bom.
11121 (enum utf_bom_type): Rename from utf_16_bom_type.
11122 (struct utf_16_spec): Adjust for the above change.
11123 (struct coding_system): Add utf_8_bom in `spec' union.
11124
11125 * coding.c (CODING_UTF_8_BOM): New macro.
11126 (enum coding_category): Delete coding_category_utf_8, add
11127 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
11128 coding_category_utf_8_sig.
11129 (CATEGORY_MASK_UTF_8): Delete it.
11130 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
11131 (CATEGORY_MASK_UTF_8_SIG): New macros.
11132 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
11133 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
11134 CATEGORY_MASK_UTF_8_SIG.
11135 (CATEGORY_MASK_UTF_8): New macro.
11136 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
11137 (detect_coding_utf_8): Check BOM.
11138 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
11139 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
11140 (encode_coding_utf_16): Likewise.
11141 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
11142 (detect_coding, detect_coding_system): Handle utf-8-auto.
11143 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
11144 (syms_of_coding): Fix setting up of Vcoding_category_table.
11145
11146 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
11147
11148 * process.c (Faccept_process_output): If `millisec' is non-nil,
11149 `seconds' default to 0.
11150 (wait_reading_process_output): Also return non-nil if we read output
11151 from a non-running process.
11152
11153 2008-05-29 Jason Rumney <jasonr@gnu.org>
11154
11155 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
11156 `raster' specified.
11157 (add_font_entity_to_list): Allow non-opentype truetype fonts back
11158 in the uniscribe backend, but disallow any font that has no
11159 unicode subrange support.
11160
11161 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
11162
11163 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
11164 Fix typos in docstrings.
11165
11166 2008-05-29 Kenichi Handa <handa@m17n.org>
11167
11168 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
11169 (Fx_family_fonts): Set frame correctly.
11170
11171 2008-05-28 Jason Rumney <jasonr@gnu.org>
11172
11173 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
11174
11175 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11176
11177 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
11178 calling build_annotations.
11179
11180 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
11181
11182 * coding.c (Fdecode_coding_region, Fencode_coding_region)
11183 (Fencode_coding_string):
11184 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
11185 <latin-extra-code-table>: Fix typos in docstrings.
11186 (syms_of_coding) <coding-system-alist>: Doc fix.
11187 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
11188
11189 2008-05-28 Kenichi Handa <handa@m17n.org>
11190
11191 * fontset.c (Ffont_info): Don't call font_close_object.
11192
11193 * font.c (font_parse_family_registry): Use Ffont_put to validate
11194 foundry and family.
11195 (font_delete_unmatched): Don't check spacing.
11196 (font_list_entities): Add spacing to the spec to list fonts.
11197
11198 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
11199 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
11200
11201 * coding.c (encode_coding_raw_text): Fix previous change.
11202 (encode_coding_object): When the dst_object is a buffer and is
11203 different from src_object, move gap to PT.
11204
11205 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
11206
11207 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
11208
11209 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11210
11211 * coding.c (encode_coding_raw_text): Set coding->produced_char for
11212 all branches. Compute it differently.
11213
11214 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
11215
11216 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
11217
11218 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
11219 into "else if () ... else ...".
11220
11221 2008-05-27 Jason Rumney <jasonr@gnu.org>
11222
11223 * w32font.c (w32font_open_internal): Determine if glyph indices
11224 are likely to work here.
11225
11226 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
11227
11228 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
11229 draw overlap glyphs with appropriate highlighting.
11230
11231 2008-05-27 Kenichi Handa <handa@m17n.org>
11232
11233 * xfont.c (xfont_open): Fix calculation of font->average_width.
11234
11235 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11236
11237 * casefiddle.c (casify_object): Try to guess better whether the
11238 argument is a byte or a char.
11239
11240 2008-05-26 Andreas Schwab <schwab@suse.de>
11241
11242 * xselect.c (x_reply_selection_request): Properly handle format == 32.
11243 Always send multiples of format size.
11244
11245 * xterm.c (x_set_frame_alpha): Fix type mismatch.
11246
11247 2008-05-26 Jason Rumney <jasonr@gnu.org>
11248
11249 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
11250 (compute_metrics): Don't set failure if we just cleared the cache.
11251 (w32_weight_table): Remove unused variable.
11252 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
11253 backwards compatibility.
11254
11255 2008-05-25 Kenichi Handa <handa@m17n.org>
11256
11257 * w32term.c (x_draw_glyph_string):
11258 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
11259
11260 * xfaces.c: Delete unused function prototypes.
11261 (xstrlwr, font_frame): Delete them.
11262 (clear_face_cache): Delete unused variable.
11263
11264 * xftfont.c (xftfont_open): Delete unused variable.
11265 If underline_thickness is not 1, adjust underline_position.
11266
11267 * ftxfont.c (ftxfont_open): Delete unused variable.
11268
11269 * fontset.c (face_for_char): Optimize for the case of no charset
11270 property.
11271
11272 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
11273 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
11274 (otf_open, font_otf_capability, generate_otf_features)
11275 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11276 Comment out by surrounding "#if 0" and "#endif" for the moment.
11277 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
11278 (syms_of_font): Codes for accessing above commented out.
11279
11280 2008-05-24 Eli Zaretskii <eliz@gnu.org>
11281
11282 * w32proc.c: Include dispextern.h.
11283
11284 * w32.c: Include dispextern.h.
11285
11286 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
11287
11288 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
11289 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
11290 Fix typos in docstrings.
11291
11292 2008-05-23 Jason Rumney <jasonr@gnu.org>
11293
11294 * xsmfns.c: Remove includes that are already included by config.h.
11295
11296 2008-05-23 Kenichi Handa <handa@m17n.org>
11297
11298 * charset.c (Qemacs, charset_emacs): New variables.
11299 (char_charset): Fix for non-Unicode characters.
11300 (syms_of_charset): Define charset_emacs.
11301
11302 * w32term.c (x_draw_glyph_string): Be sure to update
11303 s->underline_thickness and s->underline_position. Be sure to draw
11304 underline within the current line area.
11305
11306 * xterm.c (x_draw_glyph_string): Be sure to update
11307 s->underline_thickness and s->underline_position. Be sure to draw
11308 underline within the current line area.
11309
11310 * fontset.c: Delete unused variables and add casting for char *
11311 throughout the file.
11312 (fontset_font): Try the fallback fonts of the current fontset
11313 before consulting the default fontset.
11314
11315 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
11316
11317 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
11318
11319 2008-05-22 Jason Rumney <jasonr@gnu.org>
11320
11321 * font.c: Don't include strings.h.
11322
11323 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
11324
11325 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
11326 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
11327 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
11328 to call xstrcasecmp.
11329
11330 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
11331
11332 * fontset.c (fs_query_fontset): Use xstrcasecmp.
11333
11334 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
11335
11336 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
11337
11338 2008-05-22 Kenichi Handa <handa@m17n.org>
11339
11340 * puresize.h (BASE_PURESIZE): Increase to 1220000.
11341
11342 * font.c (font_prop_validate_style): Adjust for the format
11343 change of font_style_table.
11344
11345 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
11346 two args.
11347
11348 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
11349 two args.
11350
11351 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
11352
11353 * minibuf.c (keys_of_minibuf): Delete.
11354 * lisp.h (keys_of_minibuf): Delete.
11355 * emacs.c (main): Don't call keys_of_minibuf.
11356
11357 2008-05-22 Kenichi Handa <handa@m17n.org>
11358
11359 * ftfont.c (ftfont_resolve_generic_family): Rename from
11360 ftfont_list_generic_family. Return a single family for each
11361 generic family.
11362 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
11363 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
11364 Call font_add_log.
11365 (ftfont_match): Call font_add_log.
11366
11367 * font.h (Ffont_xlfd_name): EXFUN adjusted.
11368 (FONT_DEBUG): Define it.
11369 (font_add_log): Extern it.
11370 (font_assert): Rename from xassert.
11371
11372 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
11373 (xfont_list_family): Call font_add_log.
11374 (xfont_match): Likewise.
11375 (memq_no_quit): Delete.
11376
11377 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
11378 call of Ffont_xlfd_name.
11379
11380 * xfaces.c (struct table_entry, slant_table, weight_table)
11381 (swidth_table): Move to font.c.
11382
11383 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
11384 xassert are changed to font_assert. Delete many unused variables.
11385 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
11386 New variables.
11387 (struct table_entry): Move from xfaces.c and modified.
11388 (weight_table, slant_table, width_table): Move from xfaces.c and
11389 contents adjusted for the change of struct table_entry.
11390 (font_style_to_value, font_style_symbolic): Adjust for the
11391 format change of font_style_table.
11392 (font_parse_family_registry): Don't overwrite existing foundry and
11393 family of font_spec.
11394 (font_score): Fix calculation of diff for sizes.
11395 (font_sort_entites): Call font_add_log.
11396 (font_delete_unmatched): Return a newly created list.
11397 (font_list_entities): Fix previous change. Call font_add_log.
11398 (font_matching_entity, font_open_entity, font_close_entity):
11399 Call font_add_log.
11400 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
11401 (Finternal_set_font_style_table): Delete.
11402 (BUILD_STYLE_TABLE): New macro.
11403 (build_style_table): New function.
11404 (Vfont_log, font_log_env_checked): New variables.
11405 (font_add_log): New function.
11406 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
11407 Declare Lisp variables "font-weight-table", "font-slant-table",
11408 "font-width-table", and "font-log". Initialize font_style_table.
11409
11410 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
11411
11412 * xterm.c (x_set_frame_alpha): Move declarations before statements.
11413
11414 2008-05-21 Seiji Zenitani <zenitani@mac.com>
11415 Ryo Yoshitake <ryo@shiftmode.net>
11416
11417 * frame.c (Qalpha): Add a new frame parameter `alpha'.
11418 (Vframe_alpha_lower_limit): New variable.
11419 (x_set_alpha): New function.
11420
11421 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
11422
11423 * xfns.c (x-create-frame, Qalpha):
11424 Initialize the frame parameter `alpha'.
11425 * xterm.c (OPAQUE, OPACITY): New.
11426 (x_set_frame_alpha): New function.
11427 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
11428
11429 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
11430 * w32fns.c (w32_frame_parm_handlers): Likewise.
11431
11432 2008-05-20 Jason Rumney <jasonr@gnu.org>
11433
11434 * w32font.c (add_font_entity_to_list): Don't add non-opentype
11435 truetype fonts to opentype list.
11436
11437 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
11438
11439 * fontset.c (Ffontset_info): Doc fix.
11440 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
11441 <ignore-relative-composition>: Fix typos in docstrings.
11442
11443 * font.c (syms-of-font) <font-encoding-alist>:
11444 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
11445 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
11446 (Ffont_otf_alternates): Doc fixes.
11447
11448 2008-05-20 Kenichi Handa <handa@m17n.org>
11449
11450 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
11451 font.h through out the file.
11452 (FONT_DRIVERS): Rename from FONTOBJ.
11453 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
11454 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
11455
11456 * emacs.c (main): Call syms_of_font unconditionally.
11457
11458 * font.h (find_font_encoding): Extern it.
11459
11460 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
11461 fontset.c.
11462 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
11463 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
11464 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
11465 only when HAVE_WINDOW_SYSTEM is defined.
11466 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
11467 when HAVE_WINDOW_SYSTEM is defined.
11468
11469 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
11470 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
11471
11472 * xfaces.c: Include font.h unconditionally.
11473 (merge_face_ref, merge_face_vectors)
11474 (Finternal_set_lisp_face_attribute): Cancel the previous change.
11475
11476 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
11477
11478 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
11479 indirect_variable.
11480 * eval.c (lisp_indirect_variable): New fun.
11481 (Fuser_variable_p): Use it.
11482
11483 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11484
11485 * lisp.h (indirect_variable):
11486 * data.c (indirect_variable, let_shadows_buffer_binding_p):
11487 Use Lisp_Symbol pointers rather than Lisp_Object.
11488 Adjust callers.
11489 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
11490 To this end, change calling-convention.
11491
11492 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
11493 if some non-hidden buffers are selected by string&pred.
11494
11495 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
11496
11497 * process.c (wait_reading_process_output): Always check status
11498 when in batch mode.
11499
11500 2008-05-19 Kenichi Handa <handa@m17n.org>
11501
11502 * font.c (font_list_entities): Fix handling of cache.
11503 (font_matching_entity): Likewise.
11504
11505 * ftfont.c (cs_iso8859_1): Delete.
11506 (ft_face_cache): New variable.
11507 (struct ftfont_info): New member fc_charset_idx.
11508 (ftfont_build_basic_charsets): Delete.
11509 (fc_charset_table): New variable.
11510 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
11511 . FC_CHARSET_IDX) as :font-entity property in the font entity.
11512 Callers changed.
11513 (ftfont_lookup_cache, ftfont_get_charset): New functions.
11514 (ftfont_spec_pattern): New argument fc_charset_idx.
11515 Check registry more rigidly. Change callers.
11516 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
11517 change of :font-entity property of the font.
11518
11519 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
11520 property of the font.
11521
11522 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
11523
11524 * coding.c (Fcoding_system_p): Rename argument to match docstring.
11525 (Funencodable_char_position, Fcheck_coding_systems_region)
11526 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
11527 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
11528 (Ffind_operation_coding_system, Fset_coding_system_priority)
11529 (Fcoding_system_eol_type): Doc fixes.
11530
11531 2008-05-17 Glenn Morris <rgm@gnu.org>
11532
11533 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
11534
11535 2008-05-16 Eli Zaretskii <eliz@gnu.org>
11536
11537 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
11538 and st_gid.
11539
11540 * frame.c (Fdelete_frame): Don't call font_update_drivers if
11541 HAVE_WINDOW_SYSTEM is not defined.
11542
11543 * xfaces.c (merge_face_ref, merge_face_vectors)
11544 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
11545 HAVE_WINDOW_SYSTEM is defined.
11546 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
11547
11548 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
11549
11550 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
11551
11552 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11553
11554 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
11555
11556 2008-05-15 Kenichi Handa <handa@m17n.org>
11557
11558 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
11559 preference.
11560
11561 2008-05-15 Glenn Morris <rgm@gnu.org>
11562
11563 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
11564
11565 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
11566
11567 * fns.c (init_fns): Don't initialize weak_hash_tables here.
11568 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
11569
11570 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
11571
11572 2008-05-15 Kenichi Handa <handa@m17n.org>
11573
11574 * ftfont.c (ftfont_list): Downcase family name to check generic
11575 families.
11576
11577 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
11578 font-spec for QCfont value.
11579
11580 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
11581 buffer. Check the return value of it.
11582
11583 2008-05-14 Jason Rumney <jasonr@gnu.org>
11584
11585 * w32term.c (w32_get_glyph_overhangs): Remove.
11586 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
11587
11588 2008-05-14 Kenichi Handa <handa@m17n.org>
11589
11590 * font.c (font_prop_validate): Make nil a valid value.
11591 (font_clear_cache): Check if the cached vector of entities is nil
11592 or not.
11593
11594 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11595
11596 * emacs.c (main_thread): Conditionalize on
11597 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11598 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11599
11600 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11601 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11602 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11603
11604 2008-05-14 Kenichi Handa <handa@m17n.org>
11605
11606 * coding.c (detect_coding_iso_2022): Ignore a coding category that
11607 has no corresponding coding system.
11608
11609 2008-05-14 Jason Rumney <jasonr@gnu.org>
11610
11611 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11612
11613 * w32font.h (w32font_open_internal): Update declaration.
11614
11615 * w32font.c (w32font_open_internal): Change last argument from
11616 w32font_info struct to font object. Fill in font object from
11617 font_entity. Get Outline metrics if possible. Use them to
11618 calculate underline position and thickness. Use xlfd name as name
11619 property. Don't set codepage.
11620 (w32font_open): Pass font_object to w32font_open_internal. Don't
11621 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11622 (w32font_draw): Use s->font.
11623 (clear_cached_metrics): Don't clear non-existent blocks.
11624
11625 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11626 font was not found.
11627 (x_draw_glyph_string): Use underline position and thickness from font.
11628
11629 * w32uniscribe.c (uniscribe_open): Pass font_object to
11630 w32font_open_internal.
11631
11632 2008-05-14 Kenichi Handa <handa@m17n.org>
11633
11634 These changes are to delete all legacy font-handling codes, and
11635 make Emacs use only font-backends.
11636
11637 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11638 (frame.o, image.o, print.o): Depend on $(FONTSRC).
11639
11640 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11641
11642 * charset.h (Vcharset_non_preferred_head)
11643 (Vcurrent_iso639_language): Extern them.
11644
11645 * charset.c (Vcharset_non_preferred_head): New variable.
11646 (Vcurrent_iso639_language): New variable.
11647 (syms_of_charset): Declare it as a Lisp variable.
11648 (char_charset): Don't check non preferred charsets. As a last
11649 resort, return charset_unicode.
11650 (Fset_charset_priority): Update Vcharset_non_preferred_head.
11651
11652 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11653 conditionals. Don't check enable_font_backend. Delete all codes
11654 used only when USE_FONT_BACKEND is not defined.
11655
11656 * dispextern.h (struct glyph_string): Change type of `font' to
11657 `struct font *'.
11658 (struct glyph_string): New member underline_position and
11659 underline_thickness.
11660 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11661 (struct face): Change type of `font' to `struct font *'. Remove
11662 members `font_name', `font_info_id'.
11663 (per_char_metric, encode_char): Delete externs.
11664 (calc_pixel_width_or_height): Adjust the prototype.
11665
11666 * emacs.c (enable_font_backend): Delete extern.
11667 (main): Don't set enable_font_backend. Don't check the command
11668 line argument "-disable-font-backend".
11669
11670 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11671 (enum font_property_index): New members FONT_DPI_INDEX,
11672 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11673 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11674 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11675 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11676 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11677 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11678 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11679 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11680 (struct font_spec, struct font_entity): New structs.
11681 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11682 (struct font): Many members from old "struct font_info" moved to
11683 here. Members font and entity deleted.
11684 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11685 the new font-related objects.
11686 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11687 (CHECK_FONT_GET_OBJECT): Likewise.
11688 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11689 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11690 (struct font_driver): New members case_sensitive anc check. Type
11691 of the member list and open changed.
11692 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11693 (font_symbolic_width, font_find_object, font_get_spec)
11694 (font_set_lface_from_name): Delete extern.
11695 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11696
11697 * font.c: Include <strings.h>.
11698 (enable_font_backend): Delete it.
11699 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11700 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11701 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11702 (null_string): Delete it.
11703 (null_vector): Make it static.
11704 (font_family_alist): Delete it.
11705 (Qnormal): Extern it.
11706 (QCextra, QClanguage): Delete it.
11707 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11708 (font_make_spec, font_make_entity, font_make_object)
11709 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11710 the string. Callers changed.
11711 (font_pixel_size): Adjusted for the format change of font-related
11712 objects.
11713 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11714 (font_style_to_value, font_style_symbolic): New function.
11715 (build_font_family_alist): Delete it.
11716 (font_registry_charsets): Use Fassoc_string instead of
11717 assq_no_quit.
11718 (font_prop_validate_symbol): Don't return null_string.
11719 (font_prop_validate_style): Adjusted for the change of
11720 style-related values in a font vector.
11721 (font_property_table): Delete entries for QClanguage and
11722 QCantialias, add entries for QCavgwidth.
11723 (get_font_prop_index): Delete the 2nd argument FROM.
11724 (font_prop_validate): Arguments changed.
11725 (font_put_extra): Adjusted for the change of font-related objects.
11726 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11727 (font_parse_fcname, font_unparse_fcname)
11728 (font_prepare_composition): Likewise.
11729 (font_parse_family_registry): Renamed from font_merge_old_spec.
11730 (otf_open): Delete the 1st arg entity.
11731 (font_otf_capability): Adjusted for the above change.
11732 (font_score): New arg alternate_families. Adjusted for the change
11733 of font-related objects.
11734 (font_sort_entites): New arg best_only.
11735 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11736 Delete them.
11737 (font_match_p): Check alternate families.
11738 (font_find_object): Delete it.
11739 (font_check_object): New function.
11740 (font_clear_cache): Adjusted for the change of font-related objects.
11741 (font_delete_unmatched): New arg.
11742 (font_list_entities): Call font_driver->list with a spec that
11743 doesn't specify style-related properties.
11744 (font_matching_entity): Arguments changed. Caller changed.
11745 (font_open_entity): Adjusted for the change of font-related objects.
11746 (font_close_object, font_has_char, font_encode_char)
11747 (font_get_name, font_get_spec): Likewise.
11748 (font_spec_from_name, font_clear_prop, font_update_lface):
11749 New functions.
11750 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11751 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11752 (font_at): Adjusted for the change of font-related objects.
11753 (font_range): New function.
11754 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11755 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11756 (Fcopy_font_spec, Fmerge_font_spec): New function.
11757 (Ffont_family_list): Renamed from list-families.
11758 (Finternal_set_font_style_table): Arguments changed.
11759 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11760 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11761 change of font-related objects.
11762 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11763
11764 * fontset.h (struct font_info): Delete it. Most members go to
11765 struct font.
11766 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11767 (enum FONT_SPEC_INDEX): Delete it.
11768 (font_info, list_fonts_func, load_font_func, query_font_func)
11769 (set_frame_fontset_func, find_ccl_program_func)
11770 (get_font_repertory_func, new_fontset_from_font_name): Delete
11771 externs.
11772 (fontset_from_font_name): Extern it.
11773 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11774 (FONT_INFO_FROM_FACE): Deleted.
11775 (face_for_font): Adjust prototype.
11776
11777 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11778 conditionals. Don't check enable_font_backend. Delete all codes
11779 used only when USE_FONT_BACKEND is not defined.
11780 (get_font_info_func, list_font_func, load_font_func)
11781 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11782 (get_font_repertory_func): Delete them.
11783 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11784 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11785 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11786 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11787 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11788 (fontset_compare_rfontdef): New function.
11789 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11790 rfont-defs by qsort. Adjusted for the change of font-group vector.
11791 (load_font_get_repertory): Deleted.
11792 (fontset_find_font): Use new macros to ref/set elements of
11793 font-def and rfont-def.
11794 (fontset_font): Fix the timing of remembering that no font for C.
11795 (free_face_fontset): Do nothing if the face has no fontset.
11796 (face_suitable_for_char_p): Use new macros to ref/set elements of
11797 rfont-def.
11798 (face_for_char): Likewise. Call face_for_char with font_object.
11799 (fs_load_font): Delete. Delete #pragma surrounding it.
11800 (fs_query_fontset): Use strcasecmp instead of strcmp.
11801 (generate_ascii_font_name): Adjusted for the format change of
11802 font-spec.
11803 (Fset_fontset_font): Likewise. Use new macros to set elements of
11804 font-def.
11805 (Fnew_fontset): Use font_unparse_xlfd to generate
11806 FONTSET_ASCII (fontset).
11807 (new_fontset_from_font_name): Deleted.
11808 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11809 a fontset is already created for the font. FIx updating of
11810 Vfontset_alias_alist.
11811 (fontset_ascii_font): Deleted.
11812 (Ffont_info): Adjusted for the format change of font-spec.
11813 (Finternal_char_font): Likewise.
11814 (Ffontset_info): Likewise.
11815 (syms_of_fontset): Don't check load_font_func.
11816
11817 * fns.c (internal_equal): Handle PREV_FONT.
11818
11819 * frame.h: Delete USE_FONT_BACKEND conditional.
11820
11821 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11822 conditionals. Don't check enable_font_backend. Delete all codes
11823 used only when USE_FONT_BACKEND is not defined.
11824 (x_set_font): Call x_new_font, not x_new_fontset2.
11825 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11826 already set for the frame.
11827
11828 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11829 a font-entity by font_make_entity. Use font_intern_prop instead
11830 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11831 font property. If a font is scalable, set avgwidth property to 0.
11832 Set font-entity property by font_put_extra.
11833 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11834 (ffont_driver): Adjusted for the change of struct font_driver.
11835 (ftfont_spec_pattern): New function.
11836 (ftfont_list): Return a list, not vector.
11837 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11838 (ftfont_list_family): Don't downcase names.
11839 (ftfont_free_entity): Deleted.
11840 (ftfont_open): Return a font-object. Adjusted for the change of
11841 struct font. Get underline_thickness and underline_position from
11842 font property. Don't update dpyinfo->smallest_font_height and
11843 dpyinfo->smallest_char_width.
11844 (ftfont_close): Don't free `struct font'.
11845 (ftfont_has_char): Adjusted for the format change of font-entity.
11846 (ftfont_encode_char, ftfont_text_extents): Likewise.
11847
11848 * ftxfont.c (ftxfont_list): Return a list, not vector.
11849 (ftxfont_open): Return a font-object. Adjusted for the change of
11850 struct font. Get underline_thickness and underline_position from
11851 font property. Don't update dpyinfo->smallest_font_height and
11852 dpyinfo->smallest_char_width.
11853 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11854 (ftxfont_draw): Adjusted for the change of struct font.
11855
11856 * image.c (image_ascent): Don't include "charset.h". Include
11857 "character.h" and "font.h".
11858
11859 * lisp.h (enum pvec_type): New member PREV_FONT.
11860 (Fassoc_string): EXFUN it.
11861
11862 * print.c: Include font.h.
11863 (print_object): Handle font-related objects.
11864
11865 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11866 conditionals. Don't check enable_font_backend. Delete all codes
11867 used only when USE_FONT_BACKEND is not defined.
11868 (handle_auto_composed_prop): Do nothing if it->f is not on a
11869 window system. Check how many following characters can be
11870 displayed by the same font.
11871 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11872 'struct font *'.
11873 (get_char_face_and_encoding): Assign the whole encoding task to
11874 the `encode-char' method of a font driver.
11875 (fill_composite_glyph_string): Adjusted for the change of `struct
11876 face' and `struct glyph_string'.
11877 (fill_glyph_string): Likewise.
11878 (get_per_char_metric): Arguments changed.
11879 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11880 and `struct glyph_string'.
11881 (produce_stretch_glyph, calc_line_height_property)
11882 (x_produce_glyphs): Likewise.
11883
11884 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11885 conditionals. Don't check enable_font_backend. Delete all codes
11886 used only when USE_FONT_BACKEND is not defined. Use
11887 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11888 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11889 (Qp): Extern them.
11890 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11891 Deleted.
11892 (struct font_name): Deleted.
11893 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11894 (compare_fonts_by_sort_order): New function.
11895 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11896 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11897 Deleted.
11898 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11899 compare_fonts_by_sort_order.
11900 (Fx_font_family_list): Call Ffont_family_list.
11901 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11902 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11903 (face_symbolic_slant, face_symbolic_swidth)
11904 (split_font_name_into_vector, build_font_name_from_vector)
11905 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11906 (font_rescale_ratio, split_font_name, build_font_name)
11907 (free_font_names, sort_fonts, x_face_list_fonts)
11908 (face_font_available_p, sorted_font_list, cmp_font_names)
11909 (font_list_1, concat_font_list, font_list, remove_duplicates):
11910 Deleted.
11911 (Fx_list_fonts): Use Ffont_list.
11912 (LFACE_AVGWIDTH): Deleted.
11913 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11914 by FONTP.
11915 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11916 (set_lface_from_font_name): Delete it.
11917 (set_lface_from_font): Renamed from
11918 set_lface_from_font_and_fontset. Caller changed. Don't set
11919 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11920 for face.
11921 (merge_face_vectors): Copy font-spec if necessary.
11922 Clear properties of the font-spec if necessary.
11923 (merge_face_ref): Clear properties of the font-spec if necessary.
11924 (Finternal_set_lisp_face_attribute): Likewise.
11925 (set_font_frame_param): Use font_load_for_lface to load a
11926 font-object, and call Fmodify_frame_parameters with it.
11927 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11928 font name by Ffont_xlfd_name.
11929 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11930 QCslant, and QCwidth.
11931 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11932 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11933 Compare fonts by EQ.
11934 (lookup_non_ascii_face): Deleted.
11935 (face_for_font): The 2nd argument changed.
11936 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11937 Check atomic font properties by case insensitive.
11938 (realize_non_ascii_face): Set face->overstrike correctly.
11939 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11940 (dump_realized_face): Get font name from
11941 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11942
11943 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11944 conditionals. Don't check enable_font_backend. Delete all codes
11945 used only when USE_FONT_BACKEND is not defined.
11946 (xic_create_xfontset): Original code deleted and renamed from
11947 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11948 (x_make_gc): Don't set GCFont in GCs.
11949 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11950 opened by "fixed".
11951 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11952 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11953 get_font_repertory_func.
11954
11955 * xfont.c: Include <stdlib.h> and "ccl.h".
11956 (struct xfont_info): New structure.
11957 (xfont_query_font): Deleted.
11958 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11959 moved from xterm.c.
11960 (xfont_driver): Adjusted for the change of struct font_driver.
11961 (compare_font_names): New function.
11962 (xfont_list_pattern): Sort font names case insensitively. Make
11963 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11964 (xfont_list): Return a list, not vector.
11965 (xfont_match): If the font doesn't have QCname property, generate
11966 a name from the other font properties.
11967 (xfont_open): Return a font-object. Adjusted for the change of
11968 struct font. Get underline_thickness and underline_position from
11969 font property. Don't update dpyinfo->smallest_font_height and
11970 dpyinfo->smallest_char_width.
11971 (xfont_close): Don't free struct font.
11972 (xfont_prepare_face): Adjusted for the change of struct font.
11973 (xfont_done_face): Deleted.
11974 (xfont_has_char): Adjusted for the change of struct font.
11975 (xfont_encode_char, xfont_draw): Likewise.
11976 (xfont_check): New function.
11977
11978 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11979 callback function.
11980 (xftfont_match): Adjusted for the format change of font-entity.
11981 (xftfont_open): Adjusted for the format change of font-entity and
11982 font-object. Adjusted for the change of struct font. Return a
11983 font-object. Don't update dpyinfo->smallest_font_height and
11984 dpyinfo->smallest_char_width.
11985 (xftfont_close): Block input while calling XftFontClose.
11986 (xftfont_prepare_face): Don't block input while calling
11987 xftfont_get_colors. Adjusted for the change of struct font.
11988 (xftfont_shape): Return value of error case fixed.
11989
11990 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11991
11992 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11993 conditionals.
11994 (FONT_WIDTH): Return (f)->max_width.
11995 (struct x_display_info): Delete member `font'.
11996 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11997 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11998 (struct x_output): Change type of `font' to `struct font *'.
11999
12000 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
12001 conditionals. Don't check enable_font_backend. Delete all codes
12002 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
12003 (x_per_char_metric, x_encode_char): Deleted.
12004 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
12005 (x_compute_glyph_string_overhangs): Adjusted for the change of
12006 `struct face'.
12007 (x_draw_glyph_string_foreground)
12008 (x_draw_composite_glyph_string_foreground): Likewise.
12009 (x_draw_glyph_string): Likewise. Use font->underline_position and
12010 font->underline_thickness.
12011 (x_new_font): Renamed from x_new_fontset2.
12012 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
12013 (x_check_font): Call `check' method of a font driver.
12014 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
12015 (x_query_font, x_get_font_repertory): Deleted.
12016 (x_find_ccl_program): Renamed and moved to xfont.c.
12017 (x_redisplay_interface): Adjusted for the change of `struct
12018 redisplay_interface'.
12019
12020 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
12021 conditionals. Don't check enable_font_backend. Delete all codes
12022 used only when USE_FONT_BACKEND is not defined. Surround non-used
12023 code by "#ifdef OLD_FONT" and "endif".
12024 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
12025
12026 * w32font.h (struct w32font_info): New member.
12027 (FONT_COMPAT): New macro.
12028 (w32font_open_internal): Prototype adjusted.
12029
12030 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
12031 OLD_FONT" and "endif".
12032
12033 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
12034 conditionals. Don't check enable_font_backend. Delete all codes
12035 used only when USE_FONT_BACKEND is not defined.
12036 (w32font_open): Return a font-object. Make a font-object by
12037 font_make_object. Adjusted for the change of struct w32font_info.
12038 (w32font_close): Don't free struct font. Adjusted for the change
12039 of struct w32font_info.
12040 (w32font_encode_char, w32font_text_extents, w32font_draw):
12041 Adjusted for the change of struct w32font_info.
12042 (w32font_draw): Likewise.
12043 (w32font_list_internal): Return a list, not vector.
12044 (w32font_open_internal): Change the 4th arg to font-object.
12045 Adjusted for the change of struct w32font_info and font-object format.
12046 (add_font_name_to_list): Don't downcase names.
12047 (w32_enumfont_pattern_entity): Make a font-entity by
12048 font_make_entity. Adjusted for the format change of font-entity.
12049 Use FONT_SET_STYLE to set a style-related font property. If a
12050 font is scalable, set avgwidth property to 0. Set font-entity
12051 property by font_put_extra.
12052 (font_matches_spec): Adjusted for the format change of font-entity.
12053 (w32_weight_table, w32_decode_weight): New variables.
12054 (w32_encode_weight): New function.
12055 (fill_in_logfont): Adjusted for the format change of font-spec.
12056 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
12057 weight value.
12058 (w32font_driver): Adjusted for the change of struct font_driver.
12059
12060 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
12061 conditionals. Don't check enable_font_backend. Surround non-used
12062 code by "#ifdef OLD_FONT" and "endif".
12063 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
12064 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
12065
12066 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
12067 conditionals. Don't check enable_font_backend. Delete all codes
12068 used only when USE_FONT_BACKEND is not defined. Surround non-used
12069 code by "#ifdef OLD_FONT" and "endif".
12070
12071 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
12072 (uniscribe_open): Return value changed to font-object.
12073 Adjusted for the format change of font-object.
12074 (uniscribe_otf_capability): Adjusted for the change of struct font.
12075 (add_opentype_font_name_to_list): Don't downcase names.
12076 (uniscribe_font_driver): Adjusted for the change of struct
12077 font_driver.
12078
12079 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
12080
12081 * dispnew.c (update_frame_1): Check if tty output is still valid
12082 before flushing it.
12083
12084 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
12085
12086 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
12087 to Gtk+ menus.
12088
12089 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
12090
12091 * dired.c (file_name_completion): Tweak the code so as to always do it
12092 in a single pass. Tighten the scope of some variables.
12093
12094 * dired.c (Qdefault_directory): New var.
12095 (file_name_completion): Use it instead of Fexpand_file_name.
12096 (syms_of_dired): Initialize it.
12097
12098 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
12099
12100 * fileio.c (double_dollars): Remove dead code.
12101
12102 2008-05-10 Eli Zaretskii <eliz@gnu.org>
12103
12104 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
12105 Mention w32-get-true-file-attributes in doc string.
12106
12107 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
12108
12109 2008-05-09 Glenn Morris <rgm@gnu.org>
12110
12111 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
12112 2008-04-23.
12113
12114 2008-05-09 Eli Zaretskii <eliz@gnu.org>
12115
12116 Support for reporting owner and group of each file on MS-Windows:
12117 * dired.c (stat_uname, stat_gname): New functions, with special
12118 implementation for w32.
12119 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
12120
12121 * w32.c: Rename the_passwd_* to dflt_passwd_*.
12122 (dflt_group_name): New static variable.
12123 (dflt_group): Rename from the_group.
12124 (init_user_info): Init dflt_group fields. Get user's group name
12125 from LookupAccountSid.
12126 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
12127 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
12128 New initialization states.
12129 (globals_of_w32): Initialize them to zero. Initialize the default
12130 group name to "None".
12131 (GetFileSecurity_Name): New global var, the name of the function
12132 to call for GetFileSecurity.
12133 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
12134 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
12135 (get_file_security, get_security_descriptor_owner)
12136 (get_security_descriptor_group, is_valid_sid)
12137 (get_file_security_desc, get_rid, get_name_and_id)
12138 (get_file_owner_and_group): New functions.
12139 (stat): Use get_file_security_desc and get_file_owner_and_group to
12140 report the owner and primary group of each file. Don't ignore the
12141 high 32 bits of file's size, now that st_size is 64-bit wide.
12142 Fix test when to get true file attributes.
12143 (init_user_info): Use get_rid instead of equivalent inline code.
12144 (fstat): Don't ignore the high 32 bits of file's size.
12145
12146 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
12147
12148 * image.c (png_load): Use correct bit-depth for setting background
12149 color.
12150
12151 2008-05-08 Eli Zaretskii <eliz@gnu.org>
12152
12153 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
12154 epa-hook.elc.
12155
12156 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
12157
12158 * font.c (Ffont_match_p): Don't use `iff' in docstring.
12159
12160 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
12161
12162 * macfns.c (Fx_create_frame): Make a copy of frame parameters
12163 because the original parameters are in pure storage now.
12164 (mac_window): Remove unused params. Update callers.
12165
12166 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12167
12168 * lread.c (substitute_object_recurse): Use lower-level primitives.
12169 Don't signal errors when traversing sub-char-tables.
12170 Don't loop over all the possible characters when traversing char-tables.
12171
12172 * print.c (print_preprocess): Add sub-char-tables to the print-table,
12173 just like we do in print.c.
12174
12175 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
12176
12177 * minibuf.c (Ftry_completion): Remove code left over from when we used
12178 scmp instead of Fcompare_strings.
12179
12180 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
12181
12182 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
12183
12184 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12185
12186 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
12187 Create bitmap context in native byte order.
12188
12189 * macterm.c (XDrawLine)
12190 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
12191 context in native byte order.
12192
12193 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12194
12195 * config.in: Regenerate.
12196
12197 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
12198 New definitions for Image I/O support.
12199 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12200 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
12201 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12202 (mac_data_provider_release_data, image_load_image_io)
12203 [USE_MAC_IMAGE_IO]: New functions.
12204 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
12205 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
12206 (init_image_func_pointer) [MAC_OSX]: Remove function.
12207 (image_load_quartz2d) [MAC_OSX]: Check availability of
12208 CGImageCreateWithPNGDataProvider at compile time.
12209 Use lowercase `false' for boolean constant.
12210 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
12211 Use image_load_image_io.
12212 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
12213 Don't check MyCGImageCreateWithPNGDataProvider.
12214 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
12215 Don't call init_image_func_pointer.
12216
12217 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
12218
12219 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
12220 Make variable non-static.
12221 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
12222 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12223
12224 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
12225 (RED_FROM_ULONG): Mask off higher bits.
12226 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
12227
12228 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
12229 Include AvailabilityMacros.h.
12230 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
12231 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
12232
12233 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
12234
12235 * chartab.c (Fset_char_table_range): If range is t, really set all
12236 chars to that value.
12237
12238 2008-05-03 Eli Zaretskii <eliz@gnu.org>
12239
12240 * dired.c (Ffile_attributes): Don't allow the device number become
12241 negative.
12242
12243 2008-05-02 Daiki Ueno <ueno@unixuser.org>
12244
12245 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
12246
12247 2008-05-02 Juri Linkov <juri@jurta.org>
12248
12249 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
12250 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
12251 DEFAULT argument as a list of default values in docstrings.
12252
12253 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
12254
12255 * puresize.h (BASE_PURESIZE): Increase to 1210000.
12256
12257 2008-05-01 Martin Rudalics <rudalics@gmx.at>
12258
12259 * dispnew.c (change_frame_size_1): Preserve small windows when
12260 shrinking frames by calling set_window_height|width with third
12261 arg 2.
12262
12263 * window.h (struct window): Replace field too_small_ok by field
12264 resize_proportionally.
12265
12266 * window.c (make_window): Initialize resize_proportionally.
12267 (enlarge_window): Temporarily set resize_proportionally to make
12268 sure that shrink_windows does scale the window proportionally.
12269 (shrink_windows): When window has resize_proportionally set try
12270 to shrink it proportionally by stealing from other windows.
12271 (struct saved_window, Fset_window_configuration)
12272 (compare_window_configurations): Handle resize_proportionally.
12273 (WINDOW_TOTAL_SIZE): New macro.
12274 (window_min_size, shrink_windows, size_window): Use it.
12275 (check_min_window_sizes): Remove. Invalid values of
12276 window-min-height|width are handled by window_min_size_2 now.
12277 (size_window, Fsplit_window, enlarge_window)
12278 (adjust_window_trailing_edge, grow_mini_window): Don't call
12279 check_min_window_sizes.
12280 (window_min_size_2, window_min_size_1, window_min_size):
12281 New argument safe_p for retrieving "safe" minimum sizes.
12282 (Fdisplay_buffer, Fsplit_window, enlarge_window)
12283 (adjust_window_trailing_edge, grow_mini_window):
12284 Adjust arguments of window_min_size... functions.
12285 (shrink_windows): Argument min_size removed. New argument
12286 safe_p allows shrinking windows to their safe minimum sizes.
12287 Calculate minimum size and decide whether a window shall be
12288 deleted for each window individually.
12289 (size_window): When nodelete_p equals 2, tell shrink_windows to
12290 delete windows only if their new minimum size is no more safe.
12291 (shrink_window_lowest_first): Call window_min_size_1 to make
12292 sure to preserve modeline of bottom-most window when resizing
12293 the minibuffer.
12294 (Fset_window_configuration, Fcurrent_window_configuration)
12295 (compare_window_configurations): Do not handle
12296 window-min-height|width any more.
12297 (syms_of_window): Clarify window-min-height|width doc-strings.
12298
12299 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
12300
12301 * dired.c (file_name_completion): Fix up the encoding/decoding issue
12302 some more. Copy some of the code from Ftry_completions.
12303 Remove special case code that dates back to initial revision when the
12304 slash was only added when necessary and that can't trigger nowadays.
12305
12306 2008-04-27 Kenichi Handa <handa@m17n.org>
12307
12308 * font.c (font_prop_validate): Signal `error' instead of `font'.
12309
12310 2008-04-29 Jason Rumney <jasonr@gnu.org>
12311
12312 * w32fns.c (Fw32_battery_status): New defun.
12313 (syms_of_w32fns): Defsubr it.
12314
12315 2008-04-28 Andreas Schwab <schwab@suse.de>
12316
12317 * dired.c (file_name_completion): Fix another mixing of encoded
12318 and decoded names.
12319
12320 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
12321
12322 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
12323
12324 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
12325
12326 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
12327
12328 2008-04-27 Andreas Schwab <schwab@suse.de>
12329
12330 * dired.c (file_name_completion): Fix inappropriate mixing of
12331 encoded and decoded names.
12332
12333 * xterm.c (XTread_socket): Fix use of uninitialized variable.
12334
12335 * puresize.h (BASE_PURESIZE): Increase to 1200000.
12336
12337 2008-04-26 Eli Zaretskii <eliz@gnu.org>
12338
12339 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
12340 2008-03-31, it's not needed anymore with `struct stat' definition
12341 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
12342 for the same reasons.
12343
12344 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
12345
12346 * m/sparc.h: Additional redefinitions for GNU/Linux.
12347
12348 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12349
12350 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
12351 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
12352 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
12353 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
12354 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12355 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
12356 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12357 Likewise.
12358
12359 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
12360 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
12361 (mac_ax_number_of_characters): Add externs.
12362 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12363 [USE_MAC_TSM]: Likewise.
12364 (mac_handle_text_input_event) [MAC_OSX]:
12365 Handle kEventTextInputOffsetToPos for no active input area case.
12366 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12367 (mac_handle_document_access_event)
12368 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
12369 (install_application_handler) [MAC_OSX]: Register handlers for
12370 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12371 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12372 Register mac_handle_document_access_event.
12373
12374 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
12375 Make functions non-static.
12376
12377 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
12378
12379 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
12380 (read_file_name_completion_ignore_case, insert_default_directory)
12381 (Qdefault_directory): Move to minibuffer.el.
12382 (Fread_file_name): Call the new `read-file-name' instead.
12383
12384 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12385
12386 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
12387 Make function non-static.
12388 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
12389 Remove function.
12390 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12391 Move to mactoolbox.c.
12392 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
12393
12394 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
12395 (mac_rect_make): New macro.
12396
12397 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
12398 instead of float.
12399 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12400 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
12401 (XSetBackground) [USE_CG_DRAWING]: Likewise.
12402 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
12403 CGRectMake.
12404 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12405 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
12406 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
12407 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12408 instead of WindowRef in argument type.
12409 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
12410 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
12411 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
12412 instead of DISPLAY. All uses changed.
12413 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
12414 (x_calc_absolute_position): Simplify so as not to use
12415 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
12416
12417 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12418 instead of WindowRef in argument type.
12419 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
12420 [TARGET_API_MAC_CARBON]: Remove externs.
12421 (create_apple_event, mac_event_parameters_to_lisp)
12422 [TARGET_API_MAC_CARBON]: Add externs.
12423
12424 * mactoolbox.c (Vmac_ts_script_language_on_focus)
12425 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
12426 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
12427 is clicked.
12428 (x_activate_menubar): Remove extern for saved_menu_event_location.
12429 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12430 Move from mac.c.
12431
12432 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12433
12434 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
12435 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
12436
12437 2008-04-23 Jason Rumney <jasonr@gnu.org>
12438
12439 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
12440 attributes only for local files.
12441
12442 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
12443 default to Qlocal.
12444
12445 2008-04-22 Juri Linkov <juri@jurta.org>
12446
12447 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
12448 read-buffer-to-switch instead of using the letter "B".
12449
12450 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
12451
12452 * fileio.c (Qdefault_directory): New variable.
12453 (Fread_file_name): Use it to pass `dir' to the completion functions.
12454
12455 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
12456
12457 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
12458
12459 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
12460
12461 * keyboard.c (Vpre_help_message): Remove.
12462 (show_help_echo): Remove default C code.
12463
12464 * dired.c (directory_files_internal, file_name_completion):
12465 Only call ENCODE_FILE if the string is indeed decoded.
12466
12467 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12468
12469 * Makefile.in (TOOLKIT_DEFINES): Remove.
12470 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
12471
12472 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12473
12474 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
12475 (mactoolbox.o): New target.
12476
12477 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
12478 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
12479
12480 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
12481 Use mac_set_frame_window_background instead of XSetWindowBackground.
12482 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
12483 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
12484 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
12485 instead of SetWindowTitleWithCFString.
12486 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
12487 Move function to mactoolbox.c.
12488 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
12489 Use mac_set_window_modified instead of SetWindowModified.
12490 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
12491 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
12492 (Fx_focus_frame): Use mac_front_non_floating_window instead of
12493 FrontNonFloatingWindow. Use mac_activate_window instead of
12494 ActivateWindow. Use mac_active_non_floating_window instead of
12495 ActiveNonFloatingWindow.
12496 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
12497 Use mac_show_hourglass and mac_hide_hourglass.
12498 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
12499 instead of GetGlobalMouse.
12500 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
12501 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
12502 Use mac_bring_window_to_front instead of BringToFront.
12503 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
12504 mactoolbox.c.
12505 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
12506 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
12507 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
12508 mactoolbox.c.
12509
12510 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
12511 (XtPointer): Move typedef from macmenu.c.
12512 (enum button_type): Move enum from macmenu.c.
12513 (widget_value): Move typedef from macmenu.c.
12514 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
12515 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12516 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12517 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12518 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12519 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12520 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12521 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
12522 (Selection): Move typedef from macselect.c.
12523 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
12524 macterm.c.
12525 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
12526 (mac_is_window_collapsed, mac_bring_window_to_front)
12527 (mac_send_window_behind, mac_hide_window, mac_show_window)
12528 (mac_collapse_window, mac_front_non_floating_window)
12529 (mac_active_non_floating_window, mac_activate_window)
12530 (mac_move_window_structure, mac_move_window, mac_size_window)
12531 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
12532
12533 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
12534 (enum mac_menu_kind): Move enum to mactoolbox.c.
12535 (min_menu_id): Move variable to mactoolbox.c.
12536 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
12537 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
12538 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12539 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12540 [TARGET_API_MAC_CARBON]: Likewise.
12541 (XtPointer): Move typedef to macgui.h.
12542 (enum button_type): Move enum to macgui.h.
12543 (widget_value): Move typedef to macgui.h.
12544 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12545 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12546 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12547 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12548 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12549 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12550 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
12551 (popup_activated_flag): Make variable non-static.
12552 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
12553 (add_menu_item, fill_menu, dispose_menus):
12554 Move functions to mactoolbox.c.
12555 (restore_show_help_function, menu_target_item_handler)
12556 (install_menu_target_item_handler, mac_handle_dialog_event)
12557 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
12558 [TARGET_API_MAC_CARBON]: Likewise.
12559 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
12560 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12561 (find_and_call_menu_selection, name_is_separator): Make function
12562 non-static.
12563 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
12564 to mactoolbox.c.
12565 (set_frame_menubar): Don't call install_menu_quit_handler.
12566 (menu_item_selection): New variable.
12567 (mac_menu_show): Use create_and_show_popup_menu.
12568 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
12569 selection but set variable menu_item_selection. All uses changed.
12570 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
12571 Call install_menu_quit_handler. Move to mactoolbox.c.
12572
12573 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
12574 (Selection): Move typedef to macgui.h.
12575 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
12576 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
12577 Make variables non-static.
12578 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12579 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
12580 Make functions non-static.
12581 (Vmac_service_selection) [MAC_OSX]: Likewise.
12582 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
12583 (mac_valid_selection_target_p, mac_clear_selection)
12584 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12585 (mac_put_selection_value, mac_selection_has_target_p)
12586 (mac_get_selection_value, mac_get_selection_target_list)
12587 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
12588 Move functions to mactoolbox.c.
12589 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
12590 Likewise.
12591 (copy_scrap_flavor_data, mac_handle_service_event)
12592 (install_service_handler) [MAC_OSX]: Likewise.
12593 (syms_of_macselect) <Vmac_dnd_known_types>:
12594 Use mac_dnd_default_known_types.
12595
12596 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
12597 Move to mactoolbox.c.
12598 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12599 (Fx_selection_owner_p): Add EXFUN.
12600 (install_window_handler, remove_window_handler, XSetWindowBackground):
12601 Remove externs.
12602 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12603 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12604 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12605 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12606 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12607 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12608 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12609 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12610 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12611 (create_and_show_popup_menu, mac_get_selection_from_symbol)
12612 (mac_valid_selection_target_p, mac_clear_selection)
12613 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12614 (mac_put_selection_value, mac_selection_has_target_p)
12615 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12616 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12617 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12618 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12619 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12620 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12621 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12622 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12623 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12624
12625 * mactoolbox.c: New file.
12626
12627 2008-04-18 Jason Rumney <jasonr@gnu.org>
12628
12629 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12630
12631 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12632
12633 * character.c (Fmultibyte_char_to_unibyte):
12634 Return latin1 chars unchanged.
12635
12636 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12637 relocated if it points to `name'.
12638
12639 2008-04-17 Kenichi Handa <handa@m17n.org>
12640
12641 * data.c (Faset): Allow setting a multibyte character in an
12642 ASCII-only unibyte string.
12643
12644 * lisp.h (STRING_SET_MULTIBYTE): New macro.
12645
12646 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
12647
12648 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12649 done in config.h.
12650
12651 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
12652
12653 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12654 (Fchar_direction): Add usage in the docstring.
12655
12656 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
12657
12658 * keyboard.c (read_key_sequence): Remove always-true checks.
12659
12660 2008-04-14 Jason Rumney <jasonr@gnu.org>
12661
12662 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12663 compatibility struct, for better underline positioning.
12664
12665 2008-04-13 David Hansen <david.hansen@gmx.net>
12666
12667 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12668 string.
12669
12670 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12671
12672 * m/hp800.h (XUINT, XSET): Remove.
12673
12674 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
12675
12676 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12677 previous change.
12678
12679 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12680
12681 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12682 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12683
12684 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12685
12686 * keymap.h (map_keymap_canonical): Declare.
12687 * xmenu.c (single_keymap_panes): Use it.
12688
12689 2008-04-11 Glenn Morris <rgm@gnu.org>
12690
12691 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12692 set the target's value to that of the alias.
12693
12694 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12695
12696 * term.c (set_tty_color_mode): Left over typo.
12697
12698 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
12699
12700 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12701 only after check for file name handler functions. Signal, when
12702 native functionality is not supported.
12703 (syms_of_fileio): Declare it unconditionally.
12704
12705 2008-04-10 Jason Rumney <jasonr@gnu.org>
12706
12707 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12708 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12709
12710 * w32.c (logon_network_drive): Also logon to remote drives that
12711 are mapped to drive letters.
12712
12713 2008-04-10 Glenn Morris <rgm@gnu.org>
12714
12715 * xdisp.c (truncate-partial-width-windows): Doc fix.
12716
12717 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12718
12719 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12720 Move functions to minibuffer.el.
12721 (syms_of_fileio): Don't declare them.
12722
12723 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12724
12725 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12726 (syms_of_minibuf): Remove its initialization.
12727
12728 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12729
12730 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
12731
12732 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12733
12734 2008-04-09 Jason Rumney <jasonr@gnu.org>
12735
12736 * makefile.w32-in (distclean): Delete makefile too.
12737 (maintainer-clean): New target.
12738
12739 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12740
12741 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12742 for new font backend and composite cases.
12743
12744 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12745
12746 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12747 Most of the code moved to run_timers.
12748 (do_pending_atimers): Call run_timers.
12749 (run_timers): New function.
12750
12751 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12752 run atimers.
12753
12754 * process.c (wait_reading_process_output): The same as above.
12755
12756 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12757
12758 * minibuf.c (last_exact_completion): Remove variable.
12759 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12760 (complete_and_exit_1, complete_and_exit_2)
12761 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12762 (Fdisplay_completion_list, display_completion_list_1)
12763 (Fminibuffer_completion_help, Fself_insert_and_exit)
12764 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12765 minibuffer.el.
12766 (syms_of_minibuf): Remove corresponding initializations.
12767
12768 * keyboard.c (Qdeactivate_mark): New var.
12769 (command_loop_1): Use it to call `deactivate-mark'.
12770 (syms_of_keyboard): Initialize it.
12771
12772 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12773 to another frame.
12774 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12775 Don't call set_tty_color_mode.
12776 (store_frame_param): Reset previous_frame rather than call
12777 set_tty_color_mode.
12778 * term.c (set_tty_color_mode): Rewrite.
12779 * dispextern.h (set_tty_color_mode): New type.
12780 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12781
12782 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12783
12784 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12785 for generic chars, which do not exist any more in emacs-unicode.
12786
12787 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
12788
12789 * coding.c (detect_coding_emacs_mule)
12790 (Ffind_operation_coding_system): Fix typo.
12791
12792 2008-04-08 Jason Rumney <jasonr@gnu.org>
12793
12794 * w32uniscribe.c (SNAME): Extract only symbol name.
12795
12796 * w32font.h (struct w32_metric_cache): New struct.
12797 (w32font_info): Use it.
12798 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12799 (CACHE_BLOCKSIZE): New constants.
12800
12801 * w32font.c (Qja, Qko, Qzh): New symbols.
12802 (syms_of_w32font): Initialise them.
12803 (font_matches_spec): Use them to filter by language.
12804 (recompute_cached_metrics): Remove function.
12805 (compute_metrics, clear_cached_metrics): New functions.
12806 (w32font_encode_char): Use them to manage metric cache.
12807 (w32font_text_extents): Cache metrics for all glyphs on demand.
12808 Delay converting glyph indices to WORD until needed.
12809 (w32font_open_internal): Initialize metric cache to empty.
12810 (registry_to_w32_charset): Charset should always be a symbol.
12811 (fill_in_logfont, list_all_matching_fonts): Family should
12812 always be a symbol.
12813
12814 2008-04-06 Jason Rumney <jasonr@gnu.org>
12815
12816 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12817 Give up if glyph indices not supported. Use uniscribe obtained
12818 ABC widths for individual metrics. Map glyph clusters back to
12819 characters using fClusterStart flag. Return number of glyphs
12820 produced, not chars processed.
12821 (uniscribe_shape): Map char at FROM to current glyph.
12822
12823 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12824
12825 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12826 Use SetMenuItemHierarchicalMenu.
12827
12828 2008-04-05 Jason Rumney <jasonr@gnu.org>
12829
12830 * image.c (pbm_load): Allow color values up to 65535.
12831 Throw an error if max_color_idx is outside the supported range.
12832 Report an error when image size is invalid.
12833 Read two bytes at a time when raw images have max_color_idx above 255.
12834
12835 2008-04-05 Eli Zaretskii <eliz@gnu.org>
12836
12837 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12838 cFileName a file name that includes `?' characters, use the 8+3
12839 alias in cAlternateFileName instead.
12840
12841 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12842
12843 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12844 append "CCL: Quitted" when the CCL program is quitted.
12845 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12846
12847 * ccl.h (struct ccl_program): New member quit_silently.
12848
12849 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
12850
12851 * search.c (compile_pattern_1): Treat non-nil and non-string of
12852 search-spaces-regexp as nil.
12853
12854 * minibuf.c (Fassoc_string): Tweak docstring.
12855
12856 2008-04-05 Eli Zaretskii <eliz@gnu.org>
12857
12858 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12859 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12860 2008-03-14 to force inode be positive.
12861
12862 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12863 _S_* ones, since we now use our own sys/stat.h.
12864 (stat, fstat): Don't mangle the inode number.
12865 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12866
12867 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12868
12869 * frame.h (struct frame): Give one more bit to `visible' since we use
12870 values larger than 1 to indicate obscured frames on ttys.
12871
12872 * keymap.c (Qkeymap_canonicalize): New var.
12873 (Fmap_keymap_internal): New fun.
12874 (describe_map): Use keymap-canonicalize.
12875
12876 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12877 (Fundo_boundary): Set them.
12878 (syms_of_undo): Initialize them.
12879 (record_point): Use them instead of last_point_position*.
12880 (last_undo_buffer): Change type.
12881
12882 2008-04-04 Jason Rumney <jasonr@gnu.org>
12883
12884 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12885 (recompute_cached_metrics): Don't set ascent and descent per char.
12886
12887 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12888 (uniscribe_check_otf): Add GC protection before consing.
12889 Rearrange loop for counting features.
12890
12891 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12892
12893 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12894 buffer with byte-size of source buffer.
12895
12896 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
12897
12898 * callint.c (Fcall_interactively): Handle temporary region even
12899 when shift-select-mode is off.
12900
12901 2008-04-03 Jason Rumney <jasonr@gnu.org>
12902
12903 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12904
12905 2008-04-03 Kenichi Handa <handa@m17n.org>
12906
12907 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12908 (CATEGORY_MASK_UTF_16): Likewise.
12909 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12910 binary file.
12911 (detect_coding): Add null-byte detection for a binary file.
12912 (detect_coding_system): Likewise.
12913
12914 2008-04-03 Jason Rumney <jasonr@gnu.org>
12915
12916 * w32uniscribe.c: New file.
12917
12918 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12919
12920 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12921
12922 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12923 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12924 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12925 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12926 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12927 (Qphonetic): New symbols.
12928 (syms_of_w32font): Initialize them.
12929 (font_supported_scripts): Use them.
12930 (w32font_list_family): List all charsets.
12931 (w32font_text_extents, recompute_cached_metrics): Fix metric
12932 calculations.
12933 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12934 Give opentype fonts their own format.
12935 (font_matches_spec): New arguments backend and logfont.
12936 Handle :otf spec for uniscribe backend.
12937 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12938 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12939
12940 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12941 font backend.
12942 (globals_of_w32fns): Initialize uniscribe font backend.
12943
12944 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12945 dependencies.
12946 (w32uniscribe.$(O)): New file to build.
12947 (FONT_OBJ): Include w32uniscribe.$(O).
12948 (LIBS): Add uniscribe libraries.
12949
12950 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12951
12952 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
12953
12954 * callint.c (Vshift_select_mode): New var.
12955 (Finteractive): Document new ^ spec.
12956 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12957 is present.
12958
12959 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12960 (command_loop_1): Avoid running the direct display versions of
12961 forward-char and backward-char if shift-selection may occur.
12962 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12963 shift-translation takes place.
12964
12965 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12966 avoid clobbering by define-minor-mode.
12967
12968 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12969 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12970
12971 * syntax.c (Fforward_word): Add ^ interactive spec.
12972
12973 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12974 (Fscroll_right): Add ^ interactive spec.
12975
12976 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12977
12978 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12979
12980 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12981
12982 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12983
12984 2008-03-31 Juri Linkov <juri@jurta.org>
12985
12986 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12987
12988 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12989
12990 * gtkutil.c (xg_set_geometry): Fix indentation.
12991 (xg_resize_outer_widget): Remove.
12992 (x_wm_size_hint_off): Fix indentation.
12993 (xg_frame_set_char_size): Call flush_and_sync after
12994 gtk_window_resize.
12995 (x_wm_set_size_hint): Pass NULL as geometry window to
12996 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12997 Add menu bar and tool bar height to base height.
12998 (xg_update_frame_menubar, free_frame_menubar)
12999 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13000 (update_frame_tool_bar, free_frame_tool_bar):
13001 Change xg_resize_outer_widget to xg_frame_set_char_size.
13002
13003 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
13004
13005 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
13006 (Fdbus_call_method): New parameter TIMEOUT.
13007 (dbus-send-signal): Optimize UNGCPRO call.
13008
13009 2008-03-29 Juri Linkov <juri@jurta.org>
13010
13011 * window.c (Fdisplay_buffer): Move call to
13012 Vsplit_window_preferred_function out of conditions that check
13013 if window is eligible for vertical splitting.
13014 When Vsplit_window_preferred_function is non-nil, call it and use
13015 its non-nil return value as window. Otherwise, continue doing
13016 vertical splitting using Fsplit_window with arg horflag=nil.
13017 (syms_of_window) <Vsplit_window_preferred_function>: Change the
13018 default value from `split-window' to nil.
13019
13020 2008-03-29 Juri Linkov <juri@jurta.org>
13021
13022 * callint.c (Fcall_interactively): Revert 2008-03-16 change
13023 for interactive code letters 'b' and 'B'.
13024
13025 2008-03-29 Eli Zaretskii <eliz@gnu.org>
13026
13027 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
13028 multibyte string.
13029
13030 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
13031
13032 * keyboard.c (pending_funcalls): New var.
13033 (timer_check): Run it.
13034 (syms_of_keyboard): Initialize it.
13035 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
13036 (Vdelete_terminal_functions): New vars.
13037 (syms_of_terminal): Initialize them.
13038 (Fdelete_terminal): Run delete-terminal-functions.
13039 * xdisp.c (safe_eval): Rewrite.
13040 (safe_call2): New fun.
13041 * frame.c (Qdelete_frame_functions): New var.
13042 (syms_of_frame): Initialize it.
13043 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
13044 * lisp.h (safe_call2, pending_funcalls): Declare.
13045
13046 2008-03-28 Andreas Schwab <schwab@suse.de>
13047
13048 * indent.c (Fmove_to_column): Move declaration before statements.
13049
13050 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
13051
13052 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
13053 (struct frame): Use bit fields for boolean vars.
13054
13055 * process.c (server_accept_connection): Simplify naming.
13056 (emacs_get_tty_pgrp): Use SDATA.
13057
13058 * coding.c (decode_coding_object): Fix last change.
13059
13060 2008-03-27 Jason Rumney <jasonr@gnu.org>
13061
13062 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
13063
13064 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
13065
13066 * charset.c (Fdefine_charset_internal): Change the way of
13067 registering charsets in Vcharset_order_list.
13068 (syms_of_charset): Make the charset `eight-bit' supplementary.
13069
13070 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
13071
13072 * regex.c (EXTEND_BUFFER): Change order of pointer addition
13073 operations, to avoid having the difference between pointers
13074 overflow.
13075
13076 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13077
13078 * indent.c (check_display_width): New fun.
13079 (scan_for_column): Use it.
13080
13081 * data.c (syms_of_data): Mark most-positive-fixnum and
13082 most-negative-fixnum as constants.
13083
13084 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
13085
13086 * indent.c (scan_for_column): Extract from current_column_1.
13087 Merge with the same code from Fmove_to_column.
13088 (current_column_1, Fmove_to_column): Use it.
13089
13090 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
13091
13092 * keymap.c (map_keymap_internal): New fun.
13093 (map_keymap): Use it.
13094 (Fmap_keymap_internal): New fun.
13095 (Fmap_keymap): Remove left-out test from before make_save_value.
13096
13097 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
13098
13099 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
13100 Use XCAR/XCDR.
13101
13102 * process.h (struct Lisp_Process): Remove filter_multibyte.
13103 * process.c (QCfilter_multibyte): Remove.
13104 (setup_process_coding_systems): Don't use filter_multibyte.
13105 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
13106 (read_process_output): Don't adjust multibyteness to filter_multibyte.
13107 (Fset_process_filter_multibyte): Change the coding-system to
13108 approximate the previous behavior.
13109 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
13110 coding-system.
13111
13112 * coding.c (decode_coding_object): When not decoding into a buffer,
13113 obey the coding system's preference of (uni|multi)byte.
13114
13115 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
13116
13117 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
13118 every char is changed and has a different byte-length.
13119 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
13120 Fix int -> EMACS_INT.
13121
13122 2008-03-23 David Hansen <david.hansen@gmx.net>
13123
13124 * dbusbind.c (xd_read_message): Remove extra copying of message
13125 strings. Check for NULL `interface' or `member'.
13126
13127 2008-03-22 Eli Zaretskii <eliz@gnu.org>
13128
13129 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13130 cFileName a file name that includes `?' characters, use the 8+3
13131 alias in cAlternateFileName instead.
13132
13133 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
13134
13135 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
13136
13137 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13138
13139 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
13140 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
13141 work on current_buffer only instead (that was already the case
13142 for some of the code anyway).
13143 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
13144 (temp_set_point, temp_set_point_both): Use EMACS_INT.
13145 (SET_PT, SET_PT_BOTH): Adjust.
13146 * intervals.h (set_point, temp_set_point, set_point_both)
13147 (temp_set_point_both): Remove redundant declarations.
13148
13149 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13150
13151 * fileio.c (Finsert_file_contents):
13152 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
13153 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
13154 when buffer != current_buffer anyway.
13155
13156 2008-03-20 Andreas Schwab <schwab@suse.de>
13157
13158 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
13159 as default.
13160
13161 2008-03-19 Jason Rumney <jasonr@gnu.org>
13162
13163 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
13164 (syms_of_w32fns): Initialize them.
13165 (HOURGLASS_ID): New constant.
13166 (x_window_to_frame): Don't check hourglass_window.
13167 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
13168 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
13169 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
13170 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
13171 Only change the cursor if hourglass is not active.
13172 (Fx_create_frame): Initialize frame's current_cursor.
13173 (hourglass_atimer): Remove.
13174 (hourglass_started): New function.
13175 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
13176 (show_hourglass): Adapt to w32, changing argument to frame.
13177
13178 * w32term.h (struct w32_output): Remove hourglass_window.
13179 Add current_cursor.
13180
13181 * eval.c (call_debugger, Fsignal):
13182 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
13183 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
13184 (Fexecute_extended_command, cancel_hourglass_unwind):
13185 * minibuf.c (read_minibuf):
13186 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
13187
13188 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
13189
13190 * window.c (run_funs): New fun.
13191 (run_window_configuration_change_hook): Use it to run the buffer-local
13192 and the global part of the hook.
13193
13194 * xdisp.c (format_mode_line_unwind_data): Add window argument.
13195 (unwind_format_mode_line): Restore selected window.
13196 (x_consider_frame_title, Fformat_mode_line): Set selected window.
13197
13198 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13199
13200 * editfns.c (Fchar_equal): Check they are valid characters.
13201
13202 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
13203
13204 2008-03-17 Andreas Schwab <schwab@suse.de>
13205
13206 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
13207 against a charset.
13208
13209 * lisp.h (Fbuffer_list): Declare.
13210
13211 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
13212
13213 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
13214 handlebox_widget is != 0.
13215
13216 2008-03-16 Juri Linkov <juri@jurta.org>
13217
13218 * callint.c (Fcall_interactively): For interactive code letters
13219 'b' and 'B' put the buffer list into the list of default "future"
13220 values of the minibuffer.
13221
13222 2008-03-16 Andreas Schwab <schwab@suse.de>
13223
13224 * keyboard.c (read_key_sequence): Fix downcasing of letters with
13225 modifiers.
13226
13227 * regex.c (re_match_2_internal): Correct matching of a charset
13228 against latin-1 characters.
13229
13230 2008-03-16 Kenichi Handa <handa@m17n.org>
13231
13232 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
13233 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
13234 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
13235 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
13236 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
13237 CHAR_STRING_ADVANCE.
13238 (produce_chars): Fix for the case that the source and the
13239 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
13240 instead of CHAR_STRING_ADVANCE.
13241 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
13242 STRING_CHAR_ADVANCE.
13243
13244 2008-03-15 Andreas Schwab <schwab@suse.de>
13245
13246 * regex.c (re_match_2_internal): Correct matching of eight bit
13247 characters in unibyte strings.
13248
13249 2008-03-15 Martin Rudalics <rudalics@gmx.at>
13250
13251 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
13252 at end of range when it coincides with the end of the buffer.
13253
13254 2008-03-14 Eli Zaretskii <eliz@gnu.org>
13255
13256 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
13257
13258 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
13259
13260 2008-03-14 Jason Rumney <jasonr@gnu.org>
13261
13262 * editfns.c (initial_tz): New variable.
13263 (syms_of_editfns): Initialize it.
13264 (Fset_time_zone_rule): Set it when first called.
13265 Use it when TZSTRING is nil.
13266
13267 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
13268 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
13269 (monitor_from_point_fn, get_monitor_info_fn): New globals.
13270 (globals_of_w32fns): Initialize them.
13271 (compute_tip_xy): Use them to position tooltips.
13272
13273 2008-03-14 Glenn Morris <rgm@gnu.org>
13274
13275 * emacs.c (main): Revert previous change.
13276 (standard_args): Revert -internal-script back to -scriptload,
13277 and remove the long-option form.
13278
13279 2008-03-13 Glenn Morris <rgm@gnu.org>
13280
13281 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
13282 Remove option -enable-font-backend.
13283
13284 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
13285
13286 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
13287
13288 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
13289
13290 * xterm.c (x_connection_closed): For GTK: If this is the last
13291 terminal just exit without closing the display.
13292
13293 2008-03-11 Jason Rumney <jasonr@gnu.org>
13294
13295 * w32font.c (w32font_full_name): Use floor to round.
13296
13297 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
13298
13299 * sound.c (alsa_configure): Declare vol at beginning of block.
13300
13301 * fontset.c (Ffontset_info): Remove extra semicolon.
13302
13303 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13304
13305 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
13306 size of resulting string.
13307
13308 2008-03-10 Jason Rumney <jasonr@gnu.org>
13309
13310 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
13311
13312 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13313
13314 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
13315 Don't pretend as if characters with display property haven't been
13316 consumed for string-replacing-string case.
13317
13318 2008-03-08 Kim F. Storm <storm@cua.dk>
13319
13320 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
13321 (get_next_display_element, next_element_from_string)
13322 (next_element_from_ellipsis, next_element_from_buffer): Use it.
13323
13324 2008-03-08 Andreas Schwab <schwab@suse.de>
13325
13326 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
13327
13328 2008-03-06 Jason Rumney <jasonr@gnu.org>
13329
13330 * w32font.c (w32_registry): Take font_type argument. Use ANSI
13331 when charset not specified. Only translate ANSI to unicode when
13332 font_type is truetype.
13333 (w32font_coverage_ok): New function.
13334 (add_font_entity_to_list): Use it to filter unsuitable fonts.
13335
13336 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
13337
13338 * lread.c (Fread_char): Resolve modifiers.
13339 (Fread_char_exclusive): Likewise.
13340
13341 * character.c (char_resolve_modifier_mask): New function.
13342 (char_string): Use char_resolve_modifier_mask.
13343 (Fchar_resolve_modifiers): New function.
13344 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
13345 function.
13346
13347 2008-03-04 Jason Rumney <jasonr@gnu.org>
13348
13349 * makefile.w32-in: Always include w32font.c in the build.
13350 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
13351
13352 2008-03-04 Andreas Schwab <schwab@suse.de>
13353
13354 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
13355 (versionclean): Likewise.
13356
13357 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
13358
13359 * .cvsignore: Add oo.
13360
13361 2008-03-03 Andreas Schwab <schwab@suse.de>
13362
13363 * coding.c (decode_coding_object): Inhibit gap shrinking while
13364 decoding in place.
13365
13366 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
13367
13368 * w32term.c: Remove unused include "gnu.h".
13369 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
13370
13371 * gnu.h: Rename to ...
13372 * emacs-icon.h: ... this.
13373 * xterm.c: Use emacs-icon.h instead of gnu.h.
13374 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
13375
13376 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
13377
13378 * w32font.c: Include math.h.
13379
13380 2008-03-03 Jason Rumney <jasonr@gnu.org>
13381
13382 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
13383 Compute options separately.
13384 (w32font_open_internal): Set glyph_idx before caching metrics.
13385
13386 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
13387 Define if system headers don't.
13388 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
13389 (w32font_encode_char): Don't declare here.
13390
13391 * w32font.c (Quniscribe, QCformat): New symbols.
13392 (syms_of_w32font): Define them.
13393 (w32font_has_char): Indicate uncertainty.
13394 (w32font_encode_char): Encode as glyph point. Make static.
13395 (recompute_cached_metrics): New function.
13396 (w32font_open_internal): Use it. Set font to use glyph points
13397 initially. Set format based on type of font.
13398 (w32font_text_extents, w32font_draw): Optionally use glyph points.
13399 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
13400 on it. Set format based on information available here.
13401 (add_font_entity_to_list): Identify backend based on opentype_only.
13402
13403 2008-03-02 Andreas Schwab <schwab@suse.de>
13404
13405 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
13406
13407 * coding.c (decode_coding_big5, produce_chars):
13408 Fix typos in last change.
13409
13410 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
13411
13412 * gnu.h: New icon.
13413
13414 2008-03-02 Kenichi Handa <handa@m17n.org>
13415
13416 * coding.c (decode_coding_utf_8): When eol-type of CODING is
13417 `dos', don't decode '\r' if that is the last in the source.
13418 (decode_coding_utf_16, decode_coding_emacs_mule)
13419 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13420 (decode_coding_raw_text, decode_coding_charset): Likewise.
13421 (produce_chars): Don't decode EOL here. Use EMACS_INT.
13422
13423 2008-03-01 Jason Rumney <jasonr@gnu.org>
13424
13425 * w32font.c (w32font_full_name): Report point size for scalable fonts.
13426
13427 2008-03-01 Kim F. Storm <storm@cua.dk>
13428
13429 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
13430
13431 2008-03-01 Jason Rumney <jasonr@gnu.org>
13432
13433 * w32font.c (w32font_full_name): New function.
13434 (w32font_open_internal): Use it.
13435
13436 2008-03-01 Kim F. Storm <storm@cua.dk>
13437
13438 * dispnew.c (line_draw_cost): Fix invalid glyph check.
13439
13440 2008-03-01 Jason Rumney <jasonr@gnu.org>
13441
13442 * font.c (font_unparse_fcname): Increase len when style is a symbol.
13443
13444 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
13445
13446 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
13447 xg_frame_resized when the event is for the edit widget.
13448
13449 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
13450
13451 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
13452 set_char_size.
13453 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
13454 operations on widgets here. Just set frame size if needed.
13455 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
13456 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
13457 (x_wm_set_size_hint): Set size hints on the edit widget only, not
13458 the whole frame.
13459 (xg_create_tool_bar): Move attachment of the tool bar to
13460 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
13461 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
13462
13463 2008-03-01 Jason Rumney <jasonr@gnu.org>
13464
13465 * w32fns.c (w32_msg_pump): Disable debug code.
13466
13467 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13468
13469 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
13470
13471 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
13472
13473 * xdisp.c (next_overlay_string): Don't set
13474 overlay_strings_at_end_processed_p if we're currently reading from
13475 a display string.
13476
13477 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
13478
13479 * xdisp.c (get_overlay_strings_1): Fix typo.
13480
13481 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
13482
13483 * xdisp.c (get_overlay_strings_1): Add missing argument type.
13484
13485 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
13486
13487 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
13488
13489 * xdisp.c (display_mode_element): Cancel the previous change.
13490 (decode_mode_spec): Likewise.
13491 (handle_auto_composed_prop): Don't make composition if it->string
13492 is a string.
13493
13494 2008-02-27 Kim F. Storm <storm@cua.dk>
13495
13496 * lisp.h (GLYPH): Change type from int to struct with separate char
13497 and face_id members.
13498 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
13499 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
13500 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
13501 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
13502 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
13503 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
13504 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
13505 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
13506 handle new Lisp glyph code encoding, either an integer or a cons.
13507
13508 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
13509 (GLYPH_ALIAS): Delete.
13510 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
13511 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
13512 (GLYPH_FROM_CHAR): Replace macro by ...
13513 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
13514
13515 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
13516 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
13517 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
13518 (GLYPH_INVALID_P): New macro.
13519 (spec_glyph_lookup_face): Update prototype.
13520
13521 * dispnew.c (line_draw_cost): Adapt to new glyph type.
13522 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
13523 new glyph code encoding.
13524 (spec_glyph_lookup_face): No return value; update passed glyph instead.
13525 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
13526
13527 * xdisp.c (get_next_display_element, next_element_from_display_vector):
13528 Adapt to new glyph type and new glyph code encoding.
13529
13530 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
13531
13532 * indent.c (current_column, current_column_1, Fmove_to_column)
13533 (compute_motion): Adapt to new glyph code encoding.
13534
13535 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
13536
13537 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
13538
13539 * process.c (wait_reading_process_output): Check for window
13540 changes caused by timers.
13541 Suggested by Johan Bockgård.
13542
13543 2008-02-27 Glenn Morris <rgm@gnu.org>
13544
13545 * emacs.c (USAGE1): Add `--disable-font-backend'.
13546
13547 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
13548
13549 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
13550 is made to the buffer.
13551
13552 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
13553
13554 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
13555 (face_at_string_position):
13556 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
13557 (face_at_string_position):
13558 * xdisp.c (display_string, next_overlay_change):
13559 * buffer.h (overlays_at):
13560 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
13561 Update callers.
13562
13563 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
13564
13565 * editfns.c (Fformat): Doc fix.
13566
13567 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
13568
13569 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
13570 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
13571 (Ffont_otf_alternates, Fquery_font): Doc fixes.
13572
13573 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13574
13575 * buffer.c (Fbuffer_swap_text): New function.
13576 (syms_of_buffer): Defsubr it.
13577
13578 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
13579
13580 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
13581
13582 2008-02-25 Jason Rumney <jasonr@gnu.org>
13583
13584 * w32font.c (w32font_draw): Draw one character at a time when padding.
13585
13586 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13587
13588 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
13589 Handle a nil arg. Use run_window_configuration_change_hook.
13590 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
13591 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
13592 Use run_window_configuration_change_hook.
13593
13594 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13595
13596 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
13597 1-pixel width.
13598
13599 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13600
13601 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13602 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13603 if the glyph in the font is zero pixel with.
13604
13605 * dispextern.h (struct glyph_string): New member padding_p.
13606
13607 * w32font.c (w32font_draw): Pay attention to s->padding_p.
13608
13609 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13610
13611 * xfont.c (xfont_draw): Pay attention to s->padding_p.
13612
13613 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13614
13615 * font.c: If the font driver doesn't have `shape' function, return Qnil.
13616
13617 2008-02-25 Jason Rumney <jasonr@gnu.org>
13618
13619 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13620
13621 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
13622
13623 Allow fine-grained image-cache flushing.
13624 * dispextern.h (struct image): Add `dependencies' field.
13625 (clear_image_caches): Change arg to Lisp_Object.
13626 * image.c (make_image): Initialize `dependencies' field.
13627 (clear_image_cache): Change arg to allow fine-grained flushing.
13628 Perform the flush even if image-cache-eviction-delay is nil.
13629 (clear_image_caches): Change arg to Lisp_Object.
13630 (Fclear_image_cache): Expand meaning of the argument.
13631 (mark_image): Mark `dependencies' field.
13632 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13633 (lface_hash): Use XHASH rather than XFASTINT.
13634 (face_at_buffer_position): Fix int -> EMACS_INT position.
13635 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13636 (select_frame_for_redisplay): Remove code duplication.
13637 (redisplay_internal): Adapt arg to call to clear_image_caches.
13638
13639 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
13640
13641 * s/vms4-0.h:
13642 * s/vms4-2.h:
13643 * s/vms4-4.h:
13644 * s/vms5-5.h: Remove, unused.
13645
13646 * s/irix5-2.h:
13647 * s/irix6-0.h:
13648 * s/riscos5.h:
13649 * s/mach-bsd4-3.h:
13650 * m/mips4.h: Remove files for obsolete systems.
13651
13652 * Makefile.in:
13653 * filelock.c:
13654 * unexmips.c:
13655 * m/hp9000s300.h:
13656 * m/iris4d.h:
13657 * s/aix3-1.h:
13658 * s/hpux.h:
13659 * s/msdos.h:
13660 * s/usg5-0.h:
13661 * s/usg5-2-2.h:
13662 * s/usg5-2.h:
13663 * s/usg5-3.h: Remove references to obsolete variables.
13664
13665 * s/irix5-0.h: Remove, move all the contents ...
13666 * s/irix6-5.h: ... here. Simplify.
13667 * config.in: Regenerate.
13668
13669 2008-02-24 Jason Rumney <jasonr@gnu.org>
13670
13671 * w32term.c (x_draw_glyph_string_background): Clear the background
13672 manually when cleartype is in use.
13673 (x_draw_glyph_string_foreground): Draw text transparently when
13674 cleartype is in use.
13675
13676 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13677 a font into it unless we have to.
13678
13679 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13680
13681 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13682 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
13683
13684 2008-02-18 Jason Rumney <jasonr@gnu.org>
13685
13686 * w32fns.c (Fw32_shell_execute): Encode parameters.
13687
13688 2008-02-09 Eli Zaretskii <eliz@gnu.org>
13689
13690 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13691
13692 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
13693
13694 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13695
13696 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13697
13698 * xterm.c (x_set_offset): Don't change the gravity if
13699 CHANGE_GRAVITY is -1.
13700
13701 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
13702
13703 * fileio.c (auto_save_error_occurred): New var.
13704 (auto_save_error): Set it.
13705 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13706 error occurred.
13707
13708 2008-02-23 Eli Zaretskii <eliz@gnu.org>
13709
13710 * w32.c (globals_of_w32): Add initializations for
13711 g_b_init_get_sid_sub_authority and
13712 g_b_init_get_sid_sub_authority_count.
13713
13714 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13715
13716 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13717 (font_parse_xlfd): Use them for sanity check.
13718 (Finternal_set_font_style_table): Make sure the table is bijective.
13719
13720 Consolidate the image_cache to the terminal struct.
13721 * termhooks.h (P_): Remove redundant def.
13722 (struct terminal): New field `image_cache'.
13723 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13724 of FRAME_X_IMAGE_CACHE.
13725 * xterm.h (struct x_display_info): Remove image_cache field.
13726 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13727 * w32term.h (struct w32_display_info): Remove image_cache field.
13728 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13729 * macterm.h (struct mac_display_info): Remove image_cache field.
13730 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13731 * xterm.c (x_term_init):
13732 * w32term.c (w32_term_init):
13733 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13734 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13735 Remove declarations.
13736 (clear_image_caches, mark_image_cache): New declarations.
13737 * xfaces.c (clear_face_cache):
13738 * xdisp.c (redisplay_internal): Use clear_image_caches.
13739 * image.c (clear_image_cache): Don't check that a frame is on
13740 a window-system before checking if it shares the same cache.
13741 (clear_image_caches): New function.
13742 (Fclear_image_cache): Use it.
13743 (mark_image): Move from allo.c.
13744 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13745 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13746 (mark_object): Don't call mark_image_cache for frames.
13747 (mark_terminals): Call mark_image_cache.
13748
13749 * lisp.h (Fdelete_terminal): Declare.
13750
13751 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13752 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13753 wrong_type_argument.
13754
13755 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13756
13757 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13758 malayalam.el, and tamil.el. Add sinhala.el.
13759
13760 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13761
13762 * xterm.c (x_connection_closed): Consolidate identical tests.
13763 (x_delete_terminal): Don't crash if called via x_connection_closed.
13764
13765 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13766
13767 * xdisp.c (decode_mode_spec): New arg string.
13768 (display_mode_element): Adjust for the above change.
13769
13770 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13771
13772 * callint.c (Fcall_interactively): Use AREF.
13773
13774 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13775
13776 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13777
13778 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13779
13780 * xfns.c (Fx_show_tip): Set string to " " if empty.
13781
13782 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13783
13784 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13785 with Qt.
13786
13787 2008-02-17 Kenichi Handa <handa@m17n.org>
13788
13789 * ftfont.c (ftfont_shape): Return Lispy number.
13790
13791 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13792 for GCs.
13793 (Finternal_set_font_selection_order): Call font_update_sort_order
13794 only when enable_font_backend is set.
13795 (realize_x_face): Set face->font_info to that of default face only
13796 when enable_font_backend is set.
13797
13798 * xdisp.c (handle_composition_prop): Set it->c to the fist
13799 character of the composed region.
13800 (fill_composite_glyph_string): Set base_face->font_info to
13801 s->font_info. Get a face for ascii from base_face->ascii_face.
13802 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13803 with a face already decided.
13804 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13805 non-negative.
13806 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13807 call font_prepare_composition unconditionally.
13808
13809 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13810
13811 * xterm.h (struct x_display_info): New member font.
13812
13813 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13814 (x_set_mouse_face_gc, x_new_font): Likewise.
13815 (x_term_init): Setup display_info->font.
13816 (x_delete_terminal): Free display_info->font.
13817
13818 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13819
13820 * ftxfont.c (ftxfont_default_fid): Delete it.
13821 (ftxfont_open): Set xfont->fid to 0.
13822 (ftxfont_end_for_frame): Clear data specific to the frame and the
13823 font-driver.
13824
13825 * xftfont.c (xftfont_default_fid): Delete it.
13826 (xftfont_open): Set xfont->fid to 0.
13827
13828 * fontset.c (FONTSET_OBJLIST): New macro.
13829 (fontset_find_font): Update font-object list of the fontset.
13830 (free_realized_fontset): New function.
13831 (free_face_fontset): Call free_realized_fontset.
13832 (Ffont_info): Call font_close_object only when enable_font_backend
13833 is set.
13834
13835 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13836 [HAVE_NTGUI]: Include w32term.h.
13837 [MAC_OS]: Include macterm.ch.
13838 (font_otf_ValueRecord): Use make_number.
13839 (font_finish_cache): Fix handling of reference count.
13840 (font_clear_cache): Update num_fonts.
13841 (font_open_entity): Update smallest_char_width and
13842 smallest_font_height of the frame.
13843 (font_close_object): Update num_fonts.
13844 (Fclear_font_cache): Fix finding the target cache data.
13845
13846 2008-02-16 Glenn Morris <rgm@gnu.org>
13847
13848 * fontset.c (Finternal_char_font): Fix compilation warning.
13849
13850 2008-02-16 Eli Zaretskii <eliz@gnu.org>
13851
13852 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13853 instead of char arrays. Enlarge the size of array passed to
13854 get_token_information.
13855
13856 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13857 warnings.
13858
13859 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13860
13861 * .gdbinit: Don't set `args', it breaks gdb --args.
13862
13863 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13864
13865 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13866 within a narrowed buffer.
13867
13868 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13869
13870 * coding.c (decode_coding_object, encode_coding_object):
13871 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13872
13873 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13874
13875 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13876 hardcoding 1.
13877 (detect_coding_system):
13878 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13879 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13880 * insdel.c (insert_from_gap):
13881 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13882 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13883 (string_to_multibyte):
13884 * character.c (chars_in_text, multibyte_chars_in_text):
13885 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13886
13887 * character.h (FETCH_STRING_CHAR_ADVANCE)
13888 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13889 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13890 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13891
13892 * casefiddle.c (casify_region): Only call after-change and composition
13893 functions on the part of the region that was changed.
13894
13895 * keyboard.c (read_avail_input):
13896 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13897
13898 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13899
13900 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13901 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13902
13903 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
13904
13905 * w32menu.c (push_submenu_start, push_submenu_end)
13906 (push_left_right_boundary, push_menu_pane, push_menu_item):
13907 * keyboard.c (read_key_sequence): Don't pass args with side effects
13908 to AREF, it fails when compiling with -DENABLE_CHECKING.
13909
13910 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13911
13912 * Makefile.in (${lispsource}international/charprop.el):
13913 Delete this target.
13914
13915 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13916 emacs-unicode-2.
13917
13918 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13919
13920 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13921
13922 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13923
13924 * frame.c (Qnoelisp): New symbol.
13925 (syms_of_frame): Initialize it.
13926 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13927 harmless Elisp code, from a strong `force' from x_connection_closed.
13928 * frame.h (Qnoelisp): Declare.
13929 * xterm.c (x_connection_closed): Pass `noelisp'.
13930
13931 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13932 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13933 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13934 rather than `int' for the type of `type'.
13935
13936 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13937
13938 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13939
13940 * Makefile.in (GNUC): Remove support for gcc-1.x.
13941
13942 2008-02-10 Richard Stallman <rms@gnu.org>
13943
13944 * lisp.h (ASET): Use AREF, not ASLOT.
13945
13946 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13947
13948 * lisp.h (ASET): Check bounds.
13949
13950 2008-02-10 Glenn Morris <rgm@gnu.org>
13951
13952 * buffer.c (mode-name): Doc fix.
13953
13954 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13955
13956 * Makefile.in:
13957 * emacs.c:
13958 * gmalloc.c:
13959 * keyboard.c:
13960 * lisp.h:
13961 * m/ibm370aix.h:
13962 * process.c:
13963 * regex.c:
13964 * s/hpux.h:
13965 * sysdep.c:
13966 * sysselect.h:
13967 * systty.h:
13968 * unexec.c:
13969 * w32term.c:
13970 * xsmfns.c:
13971 * xterm.c: Remove code that deals with obsolete variables.
13972
13973 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13974
13975 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13976 nothing else needs it anymore.
13977
13978 2008-02-09 Eli Zaretskii <eliz@gnu.org>
13979
13980 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13981 instead of unibyte_char_to_multibyte.
13982
13983 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13984
13985 * s/gnu-linux.h: Remove commented out code.
13986
13987 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13988
13989 * Makefile.in: Update what RMS says about using autoconf.
13990 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13991 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13992 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13993 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13994
13995 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13996
13997 * keymap.c (Fkey_description): Move side effect outside of macro call.
13998
13999 * xfaces.c (Finternal_make_lisp_face):
14000 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
14001
14002 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
14003 (syms_of_fontset): Use ASET.
14004
14005 * fns.c (concat): Move side effect outside of macro call.
14006 (hash_clear): Use ASET.
14007
14008 2008-02-08 Richard Stallman <rms@gnu.org>
14009
14010 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
14011 If FORCE, and frame has a surrogate minibuffer for another frame,
14012 delete the other frame first.
14013
14014 2008-02-07 Timo Savola <timo.savola@iki.fi>
14015
14016 * xterm.c (x_detect_focus_change): Handle embed client message.
14017 (handle_one_xevent): Ditto.
14018 (handle_one_xevent): If embedded and we get a button press/release,
14019 request focus.
14020 (xembed_set_info, xembed_send_message): New functions.
14021 (x_make_frame_visible): Call xembed_set_info if embedded.
14022 (x_make_frame_invisible): Call xembed_set_info if embedded.
14023 (x_term_init): Initialize Xatom_XEMBED.
14024 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
14025 (x_iconify_frame): Ditto.
14026
14027 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
14028 (enum xembed_info, enum xembed_message, enum xembed_focus)
14029 (enum xembed_modifier, enum xembed_accelerator): New.
14030 (xembed_set_info, xembed_send_message): Declare.
14031 (FRAME_X_EMBEDDED_P): New.
14032
14033 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
14034 gtk_plug_new.
14035
14036 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
14037 window ID of a frame.
14038 (x_window): Reparent frame if embedded.
14039 (Fx_create_frame): Don't set border width if embedded.
14040
14041 * emacs.c (USAGE3): Add --parent-id.
14042 (standard_args): Ditto.
14043
14044 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
14045
14046 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
14047
14048 2008-02-07 Jim Meyering <meyering@redhat.com>
14049
14050 Use "do...while (0)", not "if (1)...else" in macro definitions.
14051 The latter provokes a warning from gcc about the empty else, when
14052 followed by ";". Also, without that trailing semicolon, it would
14053 silently swallow up any following statement.
14054 * syntax.h (SETUP_SYNTAX_TABLE)
14055 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
14056 * buffer.h (DECODE_POSITION): Likewise.
14057 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
14058 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
14059 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
14060 (FETCH_CHAR_ADVANCE): Likewise.
14061 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
14062
14063 2008-02-07 Jim Meyering <meyering@redhat.com>
14064
14065 * lread.c [lint]: Don't include <sys/inode.h>.
14066
14067 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
14068
14069 * xselect.c (x_handle_dnd_message):
14070 * xmenu.c (digest_single_submenu, xmenu_show):
14071 * xdisp.c (with_echo_area_buffer_unwind_data)
14072 (format_mode_line_unwind_data, unwind_format_mode_line)
14073 (display_menu_bar):
14074 * eval.c (Ffetch_bytecode):
14075 * doc.c (store_function_docstring):
14076 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
14077 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
14078 * buffer.c (add_overlay_mod_hooklist): Use ASET.
14079
14080 2008-02-07 Kenichi Handa <handa@m17n.org>
14081
14082 * ftxfont.c (ftxfont_open): Don't set
14083 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
14084
14085 * ftfont.c (ftfont_open): Fix previous change.
14086
14087 2008-02-06 Jason Rumney <jasonr@gnu.org>
14088
14089 * w32font.c (w32font_text_extents): Fill in lbearing metric.
14090 Use cached metrics for ASCII characters.
14091 (w32font_open_internal): Don't set font's owning_frame.
14092 Cache metrics for ASCII characters.
14093
14094 * w32font.h (struct w32font_info): Add ascii_metrics.
14095 Remove owning_frame.
14096
14097 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
14098
14099 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
14100 to negative value.
14101
14102 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
14103
14104 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
14105
14106 * charset.c (syms_of_charset): Set QCtest and Qeq.
14107
14108 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
14109
14110 * process.c (Fstart_process):
14111 * callproc.c (Fcall_process): Handle the case where
14112 Funhandled_file_name_directory returns nil.
14113
14114 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
14115 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
14116 * font.c (check_gstring): Use them and AREF to access the vector before
14117 we know it's really a gstring.
14118 (Ffont_shape_text): Fix typo.
14119 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
14120
14121 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
14122 Declare.
14123
14124 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
14125
14126 2008-02-05 Jason Rumney <jasonr@gnu.org>
14127
14128 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
14129 Set smallest_font_height and smallest_char_width in display info.
14130
14131 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
14132
14133 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
14134
14135 2008-02-05 Miles Bader <miles@gnu.org>
14136
14137 * xfaces.c (get_lface_attributes, merge_named_face)
14138 (lookup_named_face, lookup_derived_face, realize_named_face):
14139 Revert 2008-02-01 change by cyd@stupidchicken.com.
14140
14141 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
14142
14143 * fontset.c (Ffontset_info): Handle the case of inhibitting the
14144 fallback fonts.
14145 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
14146
14147 2008-02-04 Jason Rumney <jasonr@gnu.org>
14148
14149 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
14150 set full_name.
14151 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
14152
14153 2008-02-03 Jason Rumney <jasonr@gnu.org>
14154
14155 * makefile.w32-in (OBJ1): Include font.o here.
14156 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
14157
14158 2008-02-02 Jason Rumney <jasonr@gnu.org>
14159
14160 * makefile.w32-in (temacs): Bump EMHEAP to 21.
14161
14162 2008-02-01 Jason Rumney <jasonr@gnu.org>
14163
14164 * s/cygwin.h: Define VIRT_ADDR_VARIES.
14165
14166 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
14167
14168 2008-02-01 Andreas Schwab <schwab@suse.de>
14169
14170 * Makefile.in (shortlisp, lisp): Update for rename of
14171 ../lisp/language/myanmar.el.
14172
14173 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
14174
14175 * xfaces.c (get_lface_attributes): Delete function.
14176 (merge_named_face, lookup_named_face, lookup_derived_face)
14177 (realize_named_face): Call lface_from_face_name directly, and use
14178 the fact that merge_face_vectors does not alter its FROM argument.
14179
14180 2008-02-01 Jason Rumney <jasonr@gnu.org>
14181
14182 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
14183 input in the default locale. Handle non-Unicode multibyte input.
14184
14185 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14186
14187 * fontset.c (reorder_font_vector): Exclude nil elements from the
14188 font group. Don't try multiple fonts.
14189 (fontset_font): Adjust for the above change.
14190 (Finternal_char_font): Return nil if the found font doesn't
14191 contain the character ch.
14192
14193 * Makefile.in (lisp, shortlisp): Add cham.el.
14194
14195 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14196
14197 * font.h (FONTP): Make it return 1 also for a font-object.
14198
14199 * .gdbinit (xfontset): New function.
14200
14201 * font.c (font_find_for_lface): Check if the character C is
14202 supported or not only for the first font.
14203
14204 * fontset.c (reorder_font_vector): Fix typo.
14205 (fontset_find_font): Don't add a font-spec specifying a script.
14206 Use 0 (not Qt) for the indication of empty font-group. Change the
14207 format of RFONT-DEF. Return Qt if no font in the font-group
14208 support the character.
14209 (fontset_font): Adjust for the above change. If no font was
14210 found the character, remember that.
14211 (face_for_char): Adjust for the change of RFONT-DEF.
14212 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
14213 no font for the target.
14214 (Finternal_char_font): Adjust for the change of RFONT-DEF.
14215
14216 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14217
14218 * font.c (font_load_for_face): Handle the case that the font in
14219 face->lface is a string.
14220
14221 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14222
14223 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
14224
14225 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14226
14227 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
14228 Fix previous change. If the frame is not on a window system,
14229 signal an error.
14230
14231 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14232
14233 * coding.c (decode_coding_object, encode_coding_object): Adjust
14234 marker positions after conversion.
14235
14236 * lisp.h (struct Lisp_Marker): New member need_adjustment.
14237
14238 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14239
14240 * font.c (font_find_for_lface): Fix the handling of the return
14241 value of font_has_char.
14242 (Ffont_shape_text): Fix previous change.
14243
14244 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
14245 (fontset_ref_and_range): Delete it.
14246 (fontset_find_font): Call char_table_ref_and_range instead of
14247 FONTSET_REF_AND_RANGE.
14248 (make_fontset): Don't setup font groups of Latin here.
14249 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
14250 (new_fontset_from_font): Make the specified font the default for
14251 all Latin characters.
14252
14253 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14254
14255 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
14256 is on a window system before accessing the fontset of the frame.
14257
14258 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14259
14260 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
14261
14262 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
14263 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
14264
14265 * font.c (Ffont_shape_text): If the font driver doesn't have a
14266 shaper function, make zero-width glyphs to have at least one-pixel
14267 width. Fix setting of `to' field of glyphs.
14268
14269 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14270
14271 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
14272 glyphs.
14273
14274 * font.h (struct font_driver): Improve docstring of member `shape'.
14275
14276 2008-02-01 Kenichi Handa <handa@m17n.org>
14277
14278 * composite.c (syms_of_composite): Fix docstring of
14279 auto-composition-function.
14280
14281 * font.h (LGLYPH_SIZE): New macro.
14282
14283 * font.c (Ffont_fill_gstring): Stop filling when a character not
14284 supported by the font is found.
14285 (Ffont_shape_text): When a shape callback function returns nil,
14286 try at most two more times with larger gstring.
14287 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
14288
14289 * xdisp.c (handle_auto_composed_prop): Change the argument to
14290 auto-composition-function.
14291
14292 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
14293 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
14294 Lispy glyph and store it in the lgstring.
14295
14296 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
14297
14298 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
14299
14300 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14301
14302 * font.c (Ffont_shape_text): Avoid unnecessary composition.
14303
14304 * fontset.c (Vfont_encoding_charset_alist): New variable.
14305 (syms_of_fontset): DEFVAR it.
14306 (reorder_font_vector, fontset_find_font): Optimize for the case of
14307 no need of reordering.
14308 (face_for_char): Map the charset property by
14309 Vfont_encoding_charset_alist.
14310
14311 2008-02-01 Jason Rumney <jasonr@gnu.org>
14312
14313 * w32font.c (logfonts_match): Don't check adstyle here.
14314 (font_matches_spec): Check here against physical font instead.
14315 (add_font_entity_to_list): Avoid some substitutions.
14316
14317 * font.c (font_parse_fcname): Default weight and slant to normal.
14318 (font_score): Prefer normal fonts if weight or slant unspecified.
14319 (font_score) [WINDOWSNT]: Scale weight difference down to closer
14320 match freetype scores.
14321
14322 2008-02-01 Jason Rumney <jasonr@gnu.org>
14323
14324 * w32font.c (w32font_text_extents): Don't use the frame stored in the
14325 font, as it may have been deleted.
14326 (w32_enumfont_pattern_entity): Map generic family to adstyle using
14327 most common hyphenless variation.
14328 (logfonts_match): Check generic family.
14329 (font_matches_spec): Don't check generic family here.
14330 (fill_in_logfont): Set generic family based on adstyle.
14331
14332 * w32font.h (w32font_get_cache): Update declaration.
14333
14334 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14335
14336 * ftfont.c (ftfont_get_cache): Adjust the argument type.
14337
14338 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
14339 If none of the new drivers are available, call font_update_drivers
14340 with the old drivers.
14341
14342 * w32font.c (w32font_get_cache): Adjust the argument type.
14343
14344 * xfont.c (xfont_get_cache): Adjust the argument type.
14345
14346 * font.h (struct font_driver): Change argument type of get_cache.
14347
14348 * xftfont.c (xftfont_start_for_frame): Delete prototype.
14349
14350 * font.c (Ffont_get): Fix arguments to Fassoc.
14351 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
14352 (font_clear_cache): New function.
14353 (font_list_entities, font_matching_entity): Use font_get_cache.
14354 (font_update_drivers): Call font_clear_cache when finishing a driver.
14355
14356 * fontset.c (fontset_find_font): Fix previous change.
14357
14358 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14359
14360 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
14361 dpyinfo->font_table.
14362 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
14363 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
14364
14365 * font.c (font_at): Handle the case that the arg C is negative.
14366 Handle the unibyte case.
14367 (Ffont_at): Call font_at with the arg C -1.
14368
14369 * xdisp.c (handle_auto_composed_prop): Don't get a character at
14370 the position here, and call font_at with the arg C -1.
14371 Don't check the range of the existing composition at the point.
14372
14373 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14374
14375 * fontset.c (fontset_add): New args charset_id and family.
14376 Change caller.
14377 (load_font_get_repertory, fontset_find_font): Assume that
14378 font_spec is always a font-spec object.
14379 (Fset_fontset_font): Always store a font-spec object in a fontset.
14380
14381 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
14382 instead of get_property_and_range.
14383
14384 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14385
14386 * xftfont.c (struct xftfont_info): Delete the member ft_face.
14387 (xftfont_open): Don't keep locking face.
14388 (xftfont_close): Don't unlock face.
14389 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
14390
14391 * fontset.c (fontset_find_font): Don't prefer a font of
14392 supplementary charset.
14393
14394 2008-02-01 Kenichi Handa <handa@m17n.org>
14395
14396 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
14397 script, langsys_tag to langsys, new member script.
14398 (OTF_TAG_STR): Terminate by '\0'.
14399 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
14400 listing to the script specified in that property. Fix arg to
14401 OTF_check_features.
14402
14403 2008-02-01 Jason Rumney <jasonr@gnu.org>
14404
14405 * w32font.h: New file.
14406
14407 * w32font.c: Include it.
14408 (struct w32font_info): Add owning_frame field. Move to w32font.h.
14409 (w32font_open): Set owning_frame.
14410 (w32font_text_extents): Use owning_frame.
14411 (struct font_callback_data): Add opentype_only field.
14412 (add_font_entity_to_list): Use it to filter fonts.
14413 Don't check against full name.
14414 (w32font_list_internal): New function.
14415 (w32font_list): Use it.
14416 (w32font_match_internal): New function.
14417 (w32font_match): Use it.
14418 (w32font_open_internal): New function.
14419 (w32font_open): Use it.
14420 (w32font_get_cache, w32font_close, w32font_has_char)
14421 (w32font_encode_char, w32font_text_extents, w32font_draw):
14422 Make non-static.
14423
14424 * makefile.w32-in (w32font.o): Depend on w32font.h.
14425
14426 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14427
14428 * charset.c (Fdefine_charset_internal): Record a supplementary
14429 charset at the tail of Vcharset_order_list.
14430
14431 * font.c (Ffont_shape_text): Fix the return value.
14432
14433 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
14434
14435 * xdisp.c (handle_auto_composed_prop): Fix previous change.
14436
14437 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14438
14439 * ftfont.c (struct OpenTypeSpec): New struct.
14440 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
14441 (ftfont_get_open_type_spec): New function.
14442 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
14443
14444 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
14445
14446 2008-02-01 Jason Rumney <jasonr@gnu.org>
14447
14448 * w32font.c (add_font_entity_to_list): Compare only the beginning
14449 of full name.
14450
14451 2008-02-01 Kenichi Handa <handa@m17n.org>
14452
14453 * xdisp.c (handle_auto_composed_prop): Simplify the code.
14454 Never return HANDLED_RECOMPUTE_PROPS.
14455
14456 2008-02-01 Kenichi Handa <handa@m17n.org>
14457
14458 * font.c (font_gstring_produce): Delete it.
14459
14460 * composite.h (COMPOSITION_METHOD):
14461 Handle COMPOSITION_WITH_GLYPH_STRING.
14462
14463 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14464
14465 * xfont.c (Qx): Delete.
14466 (syms_of_xfont): Don't initialize Qx.
14467
14468 * composite.h (enum composition_method):
14469 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
14470
14471 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14472
14473 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
14474 (choose_face_font): Accept new form of font-spec.
14475
14476 * frame.h (font_driver_list): Declare it unconditionally.
14477 (struct frame): Define members font_driver_list and font_data_list
14478 unconditionally.
14479
14480 * fontset.c: Include "font.h" unconditionally.
14481 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
14482 (Fset_fontset_font): Accept a font-spec object.
14483
14484 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
14485 PIXEL_SIZE part a wild card.
14486
14487 * dispextern.h (struct glyph_string): Define members clip and
14488 num_clips unconditionally.
14489 (struct face): Define members font_info and extra unconditionally.
14490
14491 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
14492 ftfont_info only when HAVE_LIBOTF is defined.
14493
14494 2008-02-01 Andreas Schwab <schwab@suse.de>
14495
14496 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
14497 and end.
14498
14499 2008-02-01 Jason Rumney <jasonr@gnu.org>
14500
14501 * w32font.c (w32font_driver): Add new fields.
14502
14503 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14504
14505 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
14506 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
14507 (LIBES): Add @M17N_FLT_CFLAGS@.
14508
14509 * composite.c (compose_text): Don't treat the new style
14510 composition specially.
14511
14512 * emacs.c (main): Call syms_of_font unconditionally.
14513
14514 * font.h (FONT_ENTITY_NOT_LOADABLE)
14515 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
14516 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
14517 (struct font_driver): New member shape.
14518 (font_registry_charsets): Extern it.
14519 (font_find_for_lface, font_prepare_composition): Adjust prototype.
14520 (font_otf_capability, font_drive_otf): Delete their externs.
14521
14522 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
14523 (font_charset_alist, font_registry_charsets): Move from xfont.c
14524 and rename.
14525 (font_prop_validate_otf): New function.
14526 (font_property_table): Register it for QCotf.
14527 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
14528 (font_drive_otf): Delete.
14529 (font_prepare_composition): New arg F. Adjust for the change of
14530 lispy gstring.
14531 (font_find_for_lface): New arg C.
14532 (font_load_for_face): Adjust for the change of font_find_for_lface.
14533 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
14534 lispy gstring.
14535 (Ffont_shape_text): New function.
14536 (Fopen_font): If the font size is not given, use 12-pixel.
14537 (Ffont_at): New arg STRING.
14538 (syms_of_font): Initialize font_charset_alist.
14539 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
14540 conditionally.
14541
14542 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
14543 fonts of the same font-spec. Change the format of RFONT-DEF.
14544 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
14545 Adjust for the change of RFONT-DEF.
14546 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
14547
14548 * ftfont.h: New file.
14549
14550 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
14551 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14552 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14553 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
14554 font_otf_capability and font_drive_otf, set ftfont_shape.
14555 (ftfont_list): Adjust for the change of :otf property value.
14556 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
14557 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
14558 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
14559 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14560 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
14561 (otf_gstring, gstring, m17n_flt_initialized): New variables.
14562
14563 * w32term.c (x_draw_composite_glyph_string_foreground):
14564 Adjust for the change of lispy gstring.
14565
14566 * xdisp.c (handle_composition_prop): Adjust for the change of
14567 lispy gstring. Call a function for auto-composition with the
14568 third arg it->window.
14569 (fill_composite_glyph_string): Adjust for the change of lispy string.
14570 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
14571
14572 * xfaces.c (set_font_frame_param): Adjust for the change of
14573 font_find_for_lface.
14574
14575 * xfont.c (x_font_charset_alist): Move to font.c and rename.
14576 (xfont_registry_charsets): Likewise. Change caller.
14577 (syms_of_xfont): Don't handle x_font_charset_alist.
14578
14579 * xftfont.c: Include "ftfont.h".
14580 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14581 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14582 (xftfont_close) [HAVE_LIBOTF]: Close otf.
14583 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14584 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
14585 Set xftfont_driver.shape to xftfont_shape.
14586
14587 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14588 the change of lispy gstring.
14589
14590 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14591
14592 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
14593
14594 2008-02-01 Jason Rumney <jasonr@gnu.org>
14595
14596 * w32font.c (w32font_draw): Fill background manually.
14597
14598 2008-02-01 Jason Rumney <jasonr@gnu.org>
14599
14600 * font.c (Qfontp): Remove unused symbol.
14601 (QCantialias): New symbol.
14602 (syms_of_font): Define it.
14603 (font_property_table): Set a validator for QCantialias.
14604
14605 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14606 Define if not already.
14607 (QCfamily): Share with xfaces.c.
14608 (Qstandard, Qsubpixel, Qnatural): New symbols.
14609 (syms_of_w32font): Define them. Don't define QCfamily here.
14610 (w32_antialias_type, lispy_antialias_type): New functions.
14611 (w32_enumfont_pattern_entity): New arg requested_font.
14612 Set antialias parameter if non-default was requested.
14613 (fill_in_logfont): Fill in lfQuality if :antialias specified.
14614
14615 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14616
14617 * lread.c (read1): Undo the previous change.
14618
14619 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
14620
14621 * frame.c (Fdelete_frame): Call font_update_drivers only when
14622 USE_FONT_BACKEND is defined.
14623
14624 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14625
14626 * font.h (struct font_bitmap): New member bits_per_pixel.
14627 (struct font_driver): New members start_for_frame and end_for_frame.
14628 (struct font_data_list): New struct.
14629 (font_put_frame_data, font_get_frame_data): Extern them.
14630
14631 * frame.h (struct frame): New member font_data_list.
14632
14633 * font.c (font_update_drivers): Call driver->start_for_frame and
14634 driver->end_for_frame at proper timings.
14635 (font_put_frame_data, font_get_frame_data): New functions.
14636 (Ffont_spec): Add usage in the docstring.
14637
14638 * frame.c (make_frame): Initialize f->font_data_list to NULL.
14639 (Fdelete_frame): Call font_update_drivers.
14640
14641 * xftfont.c (struct xftface_info): Delete the member xft_draw.
14642 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14643 (xftfont_get_xft_draw): New function.
14644 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
14645 (xftfont_end_for_frame): New function.
14646 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14647
14648 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14649 Change argument. Cache GCs in the per-frame data.
14650 (struct ftxfont_frame_data): New struct.
14651 (ftxfont_draw_bitmap): New arg gc_fore and flush.
14652 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14653 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
14654 (ftxfont_end_for_frame): New function.
14655 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14656
14657 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14658
14659 2008-02-01 Kenichi Handa <handa@m17n.org>
14660
14661 * xselect.c (Vselection_coding_system)
14662 (Vnext_selection_coding_system): Delete them.
14663 (syms_of_xselect): Don't declare selection-coding-system and
14664 next-selection-coding-system. They are declared in select.el.
14665
14666 2008-02-01 Jason Rumney <jasonr@gnu.org>
14667
14668 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14669
14670 * w32fns.c: Include imm.h.
14671 (get_composition_string_fn, get_ime_context_fn): New optional
14672 system functions.
14673 (globals_of_w32fns): Load them from imm32.dll.
14674 (ignore_ime_char): New flag.
14675 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14676 WM_IME_ENDCOMPOSITION messages.
14677
14678 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14679 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14680
14681 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14682
14683 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14684 (READCHAR_REPORT_MULTIBYTE): New macro.
14685 (readchar): New 2nd arg MULTIBYTE.
14686 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14687 Make symbol's name multibyte according to the multibyteness of the
14688 source.
14689
14690 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14691
14692 * xfaces.c (face_for_overlay_string): Call lookup_face with
14693 correct arguments (fix of synching with the trunk).
14694
14695 2008-02-01 Kenichi Handa <handa@m17n.org>
14696
14697 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14698 (font_prop_validate_non_neg, font_prop_validate_spacing):
14699 Delete argument prop_index.
14700 (font_property_table): Change arguments to validater. Change Callers.
14701 (font_lispy_object): Delete.
14702 (font_at): Use font_find_object instead fo font_lispy_object.
14703
14704 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14705
14706 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14707 and file names.
14708
14709 2008-02-01 Jason Rumney <jasonr@gnu.org>
14710
14711 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14712 (font_matches_spec): Remove debug output.
14713 (add_font_entity_to_list): Avoid using substituted fonts.
14714
14715 2008-02-01 Jason Rumney <jasonr@gnu.org>
14716
14717 * doc.c (Fsnarf_documentation):
14718 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14719
14720 2008-02-01 Miles Bader <miles@gnu.org>
14721
14722 * dispextern.h (struct glyph_row): Only define "clip" field if
14723 HAVE_WINDOW_SYSTEM is defined.
14724
14725 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14726
14727 Fix up multi-tty merge.
14728
14729 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14730 and indentation.
14731
14732 * xfaces.c (free_realized_face, clear_face_gcs):
14733 Include font_done_for_face in the input_blocked section, just in case.
14734
14735 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14736 (get_char_face_and_encoding): Undo last change and remove the *other*
14737 duplicate definition (i.e. keep the one that's better scoped and that
14738 includes code for the font-backend).
14739
14740 * terminal.c (create_terminal): Default keyboard_coding to
14741 `no-conversion' and terminal_coding to `undecided'.
14742
14743 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14744
14745 * fontset.c (free_realized_fontsets): Check that the table entry does
14746 contain a fontset before trying to compare it to `base'.
14747
14748 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14749 syms_of_charset, and syms_of_coding earlier because init_window_once
14750 now needs Vcoding_system_hash_table to be setup.
14751
14752 * coding.h (default_buffer_file_coding): Remove.
14753
14754 * coding.c (default_buffer_file_coding): Remove.
14755 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14756 than ->symbol, and use the terminal-local coding system.
14757 (syms_of_coding): Don't setup the coding-systems that are not
14758 terminal-local.
14759 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14760
14761 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14762 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14763
14764 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14765 in chartab.c and were re-added here by mistake.
14766 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14767
14768 * doc.c (Fsnarf_documentation):
14769 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14770 src to etc.
14771
14772 * ChangeLog.10: Add mistakenly removed entry.
14773
14774 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14775
14776 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14777
14778 2008-02-01 Miles Bader <miles@gnu.org>
14779
14780 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14781 Add extra args to FACE_FOR_CHAR.
14782
14783 2008-02-01 Kenichi Handa <handa@m17n.org>
14784
14785 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14786 in sequence.
14787
14788 * chartab.c (map_sub_char_table, map_char_table): If the range
14789 contains just one character, call the function with that character
14790 even if the depth is not 3.
14791
14792 2008-02-01 Jason Rumney <jasonr@gnu.org>
14793
14794 * w32font.c (w32font_text_extents): Calculate metrics for the
14795 whole string.
14796
14797 2008-02-01 Jason Rumney <jasonr@gnu.org>
14798
14799 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14800
14801 2008-02-01 Jason Rumney <jasonr@gnu.org>
14802
14803 * w32term.c (x_set_glyph_string_clipping): Use
14804 get_glyph_string_clip_rects.
14805 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14806 Adjust for the change of struct glyph_string.
14807
14808 * w32font.c (w32font_draw): Do clipping here.
14809
14810 2008-02-01 Kenichi Handa <handa@m17n.org>
14811
14812 * xftfont.c (xftfont_draw): Adjust for the change of struct
14813 glyph_string.
14814
14815 * xterm.c (x_set_glyph_string_clipping): Use
14816 get_glyph_string_clip_rects.
14817 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14818 Adjust for the change of struct glyph_string.
14819
14820 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14821 the resulting clip(s}.
14822 (expose_overlaps): Add arg r. Change callers. Set it to
14823 row->clip temporarily.
14824 (expose_window): Redraw rows overlapping the exposed area.
14825
14826 * dispextern.h (struct glyph_row): New member clip.
14827 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14828 clip_height, new member clip, and num_clips.
14829
14830 2008-02-01 Kenichi Handa <handa@m17n.org>
14831
14832 * data.c (Fchar_or_string_p): Fix docstring.
14833
14834 2008-02-01 Kenichi Handa <handa@m17n.org>
14835
14836 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14837 create a temporary XftDraw object.
14838
14839 2008-02-01 Kenichi Handa <handa@m17n.org>
14840
14841 * font.c (Ffontp): Fix docstring.
14842
14843 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14844 strong evidence of ISO-2022.
14845
14846 2008-02-01 Kenichi Handa <handa@m17n.org>
14847
14848 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14849 SYNTAX_ENTRY_FOLLOW_PARENT.
14850
14851 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14852
14853 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14854 its type.
14855 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14856 Update to the new type of weak_hash_tables and next_weak.
14857
14858 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14859 a plain C pointer to Lisp_Hash_Table.
14860
14861 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14862 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14863 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14864 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14865 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14866 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14867 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14868 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14869 (GC_EQ): Remove since they've been identical to their non-GC_
14870 alter-egos ever since the markbit was eradicated.
14871
14872 * alloc.c:
14873 * buffer.c:
14874 * buffer.h:
14875 * data.c:
14876 * fileio.c:
14877 * filelock.c:
14878 * fns.c:
14879 * frame.h:
14880 * lisp.h:
14881 * macterm.c:
14882 * print.c:
14883 * process.c:
14884 * w32fns.c:
14885 * w32menu.c:
14886 * w32term.c:
14887 * xfns.c:
14888 * xmenu.c:
14889 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14890
14891 2008-02-01 Kenichi Handa <handa@m17n.org>
14892
14893 * chartab.c (map_sub_char_table): Make it work for the top-level
14894 char-table. Fix handling of parent char-table.
14895 (map_char_table): Adjust for the above change.
14896
14897 2008-02-01 Jason Rumney <jasonr@gnu.org>
14898
14899 * w32font.c (Qgdi): Rename from Qw32.
14900
14901 2008-02-01 Jason Rumney <jasonr@gnu.org>
14902
14903 * w32bdf.c (get_quoted_string): Make function static.
14904
14905 2008-02-01 Kenichi Handa <handa@m17n.org>
14906
14907 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14908 bigger ascent and descent than those of the font, use them as
14909 font's ascent and descent.
14910
14911 2008-02-01 Kenichi Handa <handa@m17n.org>
14912
14913 * Makefile.in (${lispsource}international/charprop.el): Move this
14914 target within "#ifdef HAVE_UNIDATA" and "#endif".
14915
14916 2008-02-01 Kenichi Handa <handa@m17n.org>
14917
14918 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14919 (shortlisp): Add ../lisp/language/tai-viet.el.
14920
14921 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
14922
14923 * Makefile.in (${lispsource}international/charprop.el): Depend on
14924 temacs${EXEEXT}.
14925
14926 2008-02-01 Jason Rumney <jasonr@gnu.org>
14927
14928 * w32font.c (w32font_close): Delete the GDI font object.
14929
14930 * w32menu.c: Include character.h.
14931
14932 * w32proc.c: Likewise.
14933
14934 * w32select.c: Likewise.
14935
14936 * makefile.w32-in (w32proc.o): Depend on character.h.
14937
14938 2008-02-01 Jason Rumney <jasonr@gnu.org>
14939
14940 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14941
14942 * w32menu.c (syms_of_w32menu): Likewise.
14943
14944 * w32proc.c (syms_of_ntproc): Likewise.
14945
14946 * w32select.c (syms_of_w32select): Likewise.
14947
14948 * w32term.c (syms_of_w32term): Likewise.
14949
14950 2008-02-01 Jason Rumney <jasonr@gnu.org>
14951
14952 * w32font.c (w32font_draw): Delete brush after using it.
14953
14954 2008-02-01 Jason Rumney <jasonr@gnu.org>
14955
14956 * w32font.c (w32font_open): Don't set font_idx.
14957 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14958 to font settings.
14959 (w32font_draw): Fill background explicitly.
14960
14961 2008-02-01 Jason Rumney <jasonr@gnu.org>
14962
14963 * w32term.c (w32_initialize): Don't call w32font_initialize.
14964
14965 * w32font.c (w32font_info): Remove subranges.
14966 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14967 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14968 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14969 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14970 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14971 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14972 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14973 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14974 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14975 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14976 New symbols.
14977 (font_callback_data): New struct.
14978 (w32font_list, w32font_match): Use it.
14979 (w32font_open): Don't populate subranges.
14980 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14981 (w32font_encode_char): Always return unicode code-point as-is.
14982 (w32font_text_extents): Supply a transformation matrix to
14983 GetGlyphOutline. Never look up by glyph index. Avoid looping
14984 twice. Use unicode version of GetTexExtentPoint32 instead of
14985 glyph index version.
14986 (set_fonts_frame): Remove.
14987 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14988 set frame parameter. Use backward compatible fake foundries.
14989 Save generic family in extra slot under QCfamily. Make width slot
14990 constant. Save QCspacing value. Save list of scripts instead of
14991 binary subranges.
14992 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14993 (add_font_entity_to_list): Use font_callback_data struct. Filter
14994 unwanted fonts.
14995 (add_one_font_entity_to_list): Use font_callback_data struct.
14996 (w32_registry): Default to iso10646_1.
14997 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14998 string font registries. Don't fill in font name if it is a generic
14999 family name, fill family instead. Use spacing, family and script
15000 extra info to fill pitch, family and charset fields.
15001 (list_all_matching_fonts): Use font_callback_data struct.
15002 (unicode_range_for_char): Remove.
15003 (font_supported_scripts): New function.
15004 (w32font_initialize): Remove.
15005 (syms_of_w32font): Update which symbols are defined.
15006
15007 2008-02-01 Jason Rumney <jasonr@gnu.org>
15008
15009 * font.c (font_pixel_size): Reverse assq_no_quit args.
15010
15011 * w32term.h (FONT_WIDTH): Report max width, not average.
15012 (FONT_MAX_WIDTH): Remove.
15013 (FONT_AVG_WIDTH): New macro.
15014
15015 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
15016 redefinition of FONT_WIDTH.
15017
15018 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
15019 (w32_cache_char_metrics): Use FONT_WIDTH.
15020
15021 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
15022
15023 2008-02-01 Jason Rumney <jasonr@gnu.org>
15024
15025 * w32font.c (w32font_open): Make lfHeight negative.
15026
15027 * w32fns.c (x_default_font_parameter): Use new style font name.
15028 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
15029
15030 2008-02-01 Jason Rumney <jasonr@gnu.org>
15031
15032 * w32font.c (QCsubranges): New symbol.
15033 (w32font_open, w32font_has_char): Get subranges from subproperty
15034 of extra.
15035 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
15036 (syms_of_w32font): Define :subranges symbol.
15037
15038 * font.c (font_put_extra): Expose externally.
15039
15040 * font.h (font_put_extra): Move declaration from font.c.
15041
15042 * font.c (Ffont_get): Use font driver to determine otf capability.
15043 (adjust_anchor): Check if driver defines anchor_point before using.
15044
15045 * w32font.c (w32font_open): Handle size, height and pixel_size better.
15046 (w32font_draw): Use options.
15047 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
15048 Fix detection of truetype fonts.
15049 (registry_to_w32_charset): Handle charsets other than iso8859-1
15050 expressed as lisp symbols.
15051 (w32_registry): Express charset as lisp symbol.
15052 (fill_in_logfont): Reverse pixel and point height logic.
15053 Don't set width here. Set quality to default.
15054
15055 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
15056 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
15057
15058 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15059 Remove redundant loop and allocation.
15060
15061 * makefile.w32-in (font.o, w32font.o): New objects.
15062 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
15063 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
15064
15065 * xdisp.c (fill_composite_glyph_string): Make the first arg to
15066 STORE_XCHARB a valid l-value.
15067
15068 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
15069 calculations for non-Truetype fonts.
15070 (x_draw_glyph_string): Sync with xterm.c.
15071 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15072 Remove redundant code.
15073 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
15074
15075 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
15076 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
15077
15078 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
15079 (x_to_w32_charset, w32_to_x_charset): Expose externally.
15080
15081 * w32font.c: New file for w32 font backend.
15082
15083 2008-02-01 Kenichi Handa <handa@m17n.org>
15084
15085 * term.c: Don't include "buffer.h" twice.
15086
15087 2008-02-01 Kenichi Handa <handa@m17n.org>
15088
15089 * character.c (Funibyte_string): New function.
15090 (syms_of_character): Defsubr it.
15091
15092 2008-02-01 Jason Rumney <jasonr@gnu.org>
15093
15094 * w32term.c [USE_FONT_BACKEND]:
15095 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
15096 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
15097 (x_draw_glyph_string, x_draw_glyph_string_foreground)
15098 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
15099 (x_free_frame_resources): Sync with xterm.c.
15100
15101 2008-02-01 Andreas Schwab <schwab@suse.de>
15102
15103 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
15104 char-table size.
15105
15106 2008-02-01 Kenichi Handa <handa@m17n.org>
15107
15108 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
15109
15110 2008-02-01 Kenichi Handa <handa@m17n.org>
15111
15112 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
15113 font_otf_gpos, add font_drive_otf.
15114
15115 * fontset.c (fontset_find_font): Pay attention to font size
15116 specified for a font.
15117 (reorder_font_vector): Check contents of font_def.
15118
15119 * font.c (struct otf_list): Delete it.
15120 (otf_list): Make it a lisp variable.
15121 (otf_open): Use lispy otf_list.
15122 (generate_otf_features): Rename from parse_gsub_gpos_spec.
15123 (check_otf_features): New function.
15124 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15125 New functions.
15126 (font_drive_otf): New function merging font_otf_gsub and
15127 font_otf_gpos.
15128 (font_open_for_lface): New arg spec. Change argument order.
15129 (font_load_for_face): Adjust for the change of font_open_for_lface.
15130 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
15131 Ffont_otf_gpos.
15132 (syms_of_font): Staticpro otf_list. Delete defsubr of
15133 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
15134
15135 * xfaces.c (set_font_frame_param): Adjust for the change of
15136 font_open_for_lface.
15137
15138 * font.h (font_open_for_lface): Adjust prototype.
15139 (struct font_driver): Delete members otf_gsub and otf_gpos, add
15140 member otf_drive.
15141 (font_otf_gsub, font_otf_gpos): Delete externs.
15142 (font_drive_otf): Extern it.
15143
15144 2008-02-01 Kenichi Handa <handa@m17n.org>
15145
15146 * font.c (font_at): If the window W is not on a window system,
15147 return Qnil.
15148
15149 * coding.c (produce_chars, encode_coding): Don't call
15150 insert_from_gap if no characters to produce.
15151
15152 2008-02-01 Kenichi Handa <handa@m17n.org>
15153
15154 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
15155 Fclear_face_cache.
15156
15157 * xfaces.c (face_for_font): Check also face->font==font->font.font.
15158
15159 2008-02-01 Miles Bader <miles@gnu.org>
15160
15161 * emacs.c (main): Change default value of `enable_font_backend' to 1.
15162 Parse "--disable-font-backend" option.
15163 (standard_args): Add "--disable-font-backend" option.
15164
15165 2008-02-01 Kenichi Handa <handa@m17n.org>
15166
15167 * fontset.c (fontset_find_font): New function.
15168 (fontset_font): Use fontset_find_font.
15169 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
15170 Register the specified font for all Latin characters.
15171 (new_fontset_from_font): Register the specified font for all Latin
15172 characters.
15173 (dump_fontset): For a realized fontset, include the base fontset
15174 name in the returned vector.
15175
15176 2008-02-01 Kenichi Handa <handa@m17n.org>
15177
15178 * character.h (CHAR_STRING): Cast C to unsigned on calling
15179 char_string.
15180
15181 * character.c (char_string): Type of arg C changed to unsigned.
15182 Signal an error if C is an invalid character code.
15183
15184 * editfns.c (general_insert_function, Fchar_to_string):
15185 Use CHARACTERP, not INTEGERP.
15186
15187 2008-02-01 Kenichi Handa <handa@m17n.org>
15188
15189 * character.h (MIN_MULTIBYTE_LEADING_CODE)
15190 (MAX_MULTIBYTE_LEADING_CODE): New macros.
15191
15192 * regex.c (analyse_first): Fix for multibyte characters in "case
15193 charset:" and "case categoryspec:".
15194
15195 2008-02-01 Andreas Schwab <schwab@suse.de>
15196
15197 * Makefile.in (LIBES): Move standard libraries to the end.
15198
15199 2008-02-01 Kenichi Handa <handa@m17n.org>
15200
15201 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
15202 nonzero, don't shrink the buffer nextb.
15203
15204 * buffer.h (struct buffer_text): New member inhibit_shrinking.
15205
15206 * coding.c (coding_alloc_by_making_gap): New arg offset.
15207 (alloc_destination): Call coding_alloc_by_making_gap with the arg
15208 offset.
15209 (decode_coding_iso_2022): Update coding->safe_charsets.
15210 (decode_coding_gap): Temporarily set
15211 current_buffer->text->inhibit_shrinking to 1.
15212
15213 2008-02-01 Kenichi Handa <handa@m17n.org>
15214
15215 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
15216 indexing into elements of s->cmp and s->char2b.
15217
15218 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
15219
15220 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
15221
15222 2008-02-01 Kenichi Handa <handa@m17n.org>
15223
15224 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
15225 target_multibyte instead of multibyte.
15226 (re_match_2_internal): Call bcmp_translate with target_multibyte.
15227 (bcmp_translate): Change the argument name from multibyte to
15228 target_multibyte.
15229
15230 2008-02-01 Kenichi Handa <handa@m17n.org>
15231
15232 These changes are to compile a regexp into a pattern that can be
15233 used both for multibyte and unibyte targets.
15234
15235 * Makefile.in (search.o): Depend on charset.h.
15236
15237 * character.c (multibyte_char_to_unibyte_safe): New function.
15238
15239 * search.c: Include "charset.h".
15240 (compile_pattern_1): Delete argument multibyte. Don't set
15241 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
15242 (compile_pattern): Don't compare cp->buf.target_multibyte.
15243 Compare cp->buf.charset_unibyte.
15244 (compile_pattern): Set cp->buf.target_multibyte.
15245
15246 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
15247
15248 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
15249
15250 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
15251 multibyte. Change callers.
15252 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
15253 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
15254 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
15255 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
15256 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
15257 (regex_compile): Make the compiled pattern usable both for
15258 multibyte and unibyte targets.
15259 (analyse_first): Make the fastmap usable both for multibyte and
15260 unibyte targets.
15261 (TRANSLATE_VIA_MULTIBYTE): Delete.
15262 (re_match_2_internal): Pay attention to the case that the
15263 multibyteness of bufp and target may be different.
15264
15265 2008-02-01 Kenichi Handa <handa@m17n.org>
15266
15267 * xdisp.c (x_produce_glyphs): When a font is not found, make the
15268 empty box occupy at least one column width.
15269
15270 2008-02-01 Miles Bader <miles@gnu.org>
15271
15272 * Makefile.in: Remove redundant HAVE_XFT clause.
15273
15274 2008-02-01 Kenichi Handa <handa@m17n.org>
15275
15276 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
15277
15278 2008-02-01 Kenichi Handa <handa@m17n.org>
15279
15280 * fontset.c (Finternal_char_font): Fix for the case of POSITION
15281 being nil.
15282
15283 2008-02-01 Kenichi Handa <handa@m17n.org>
15284
15285 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
15286
15287 2008-02-01 Kenichi Handa <handa@m17n.org>
15288
15289 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
15290
15291 2008-02-01 Kenichi Handa <handa@m17n.org>
15292
15293 * search.c (simple_search): Fix previous change.
15294
15295 2008-02-01 Kenichi Handa <handa@m17n.org>
15296
15297 * xftfont.c (ftfont_font_format): Extern declaration.
15298
15299 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
15300
15301 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
15302 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
15303
15304 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
15305 (ftfont_font_format): Fix previous change.
15306
15307 * font.h (Ffont_xlfd_name): EXFUN it.
15308
15309 * font.c (font_parse_xlfd): Fix the array size of `f'.
15310 (register_font_driver): Use EQ to compare driver->type.
15311
15312 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
15313 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
15314 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
15315
15316 2008-02-01 Kenichi Handa <handa@m17n.org>
15317
15318 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
15319 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
15320
15321 2008-02-01 Kenichi Handa <handa@m17n.org>
15322
15323 * xfont.c (xfont_open): Set font->format.
15324
15325 * xftfont.c (xftfont_open): Set font->format.
15326
15327 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
15328 (ftfont_list): Include FC_FONTFORMAT in FcObject.
15329 (ftfont_open): Set font->format.
15330 (ftfont_font_format): New function.
15331
15332 * font.h (struct font): New member format.
15333
15334 * font.c (Qopentype): New variable.
15335 (syms_of_font): Defsym it.
15336 (Fquery_font): Change the format of the last element of the return
15337 value.
15338
15339 2008-02-01 Kenichi Handa <handa@m17n.org>
15340
15341 * xfns.c (xic_create_xfontset): Try the default fontset name as a
15342 last resort.
15343
15344 2008-02-01 Kenichi Handa <handa@m17n.org>
15345
15346 * coding.c (detect_coding_charset): Fix detection of multi-byte
15347 charset.
15348
15349 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
15350
15351 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
15352
15353 2008-02-01 Kenichi Handa <handa@m17n.org>
15354
15355 * xdisp.c (get_next_display_element): Set it->face_id for the
15356 first component of a composition.
15357 (x_produce_glyphs): Check if the font is changed or not for composition.
15358
15359 2008-02-01 Kenichi Handa <handa@m17n.org>
15360
15361 * fontset.c (Qlatin): New variable.
15362 (syms_of_fontset): Define it as a lisp symbol.
15363 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
15364
15365 2008-02-01 Kenichi Handa <handa@m17n.org>
15366
15367 * font.c (font_unparse_fcname): Pay attention to the case that
15368 some of font property is a null string.
15369
15370 2008-02-01 Kenichi Handa <handa@m17n.org>
15371
15372 * term.c: Include "composite.h".
15373 (encode_terminal_code): Output all components of composition.
15374 Check the size of encode_terminal_src.
15375 (produce_glyphs): For composition, call produce_composite_glyph.
15376 (append_composite_glyph, produce_composite_glyph): New functions.
15377
15378 * xdisp.c (x_produce_glyphs): In handling composition, if a font
15379 is not found, get font_info from the current ascii face.
15380
15381 2008-02-01 Kenichi Handa <handa@m17n.org>
15382
15383 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
15384 buffer-file-name to Qnil before calling insert_from_buffer.
15385
15386 * font.c (font_unparse_fcname): Pay attention to the case that
15387 foundry is a null string.
15388
15389 2008-02-01 Kenichi Handa <handa@m17n.org>
15390
15391 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
15392
15393 * font.c (Qunicode_sip): New variable.
15394 (syms_of_font): Declare it as a Lisp symbol.
15395
15396 * font.h (Qunicode_sip): Extern it.
15397
15398 2008-02-01 Kenichi Handa <handa@m17n.org>
15399
15400 * composite.c (get_composition_id): Pay attention to TAB component.
15401
15402 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
15403 TAB. Adjust for the change of s->char2b which always points to
15404 the first element of allocated memory.
15405
15406 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
15407
15408 * xdisp.c (handle_composition_prop): Set it->c to the first
15409 non-TAB component.
15410 (fill_composite_glyph_string): Change argument.
15411 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
15412 (x_produce_glyphs): Fix handling of left/right padding.
15413
15414 2008-02-01 Kenichi Handa <handa@m17n.org>
15415
15416 * coding.c (detect_coding_system): Fix for handling off
15417 inhibit_iso_escape_detection. Fix for the case that no coding
15418 system is defined for a specific coding category.
15419
15420 2008-02-01 Kenichi Handa <handa@m17n.org>
15421
15422 * font.c (font_matching_entity): Delete unused local var.
15423
15424 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
15425 opening a font.
15426
15427 * fileio.c (Finsert_file_contents): On recovering a file, assume
15428 Unix-like eol.
15429 (choose_write_coding_system): On auto-saving a file, force
15430 Unix-like eol.
15431
15432 * coding.c (setup_coding_system): Fix setting of
15433 coding->common_flags based on eol_type.
15434 (coding_inherit_eol_type): If PARENT is not nil, be sure to
15435 inherit from it.
15436
15437 2008-02-01 Kenichi Handa <handa@m17n.org>
15438
15439 * alloc.c (NSTATICS): Increas to 0x600.
15440
15441 2008-02-01 Kenichi Handa <handa@m17n.org>
15442
15443 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
15444 (ftfont_list): Don't check :name property.
15445 (ftfont_match): New function.
15446 (ftfont_pattern_entity): If the pattern doesn't contain
15447 FC_SPACING, don't assume FC_MONO.
15448
15449 * font.h (struct font_driver): New member `match'.
15450 (font_update_drivers): Adjust prototype.
15451
15452 * font.c (font_parse_fcname, font_parse_name): Don't change :name
15453 property of FONT.
15454 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
15455 them unconditionally.
15456 (font_matching_entity): New function.
15457 (font_open_by_name): Try font_matching_entity if exact match is
15458 not found.
15459 (font_update_drivers): Delete the arg FONT. Return a list of
15460 actually used backends. Don't free faces, font caches here.
15461 Don't store data in frame parameters. Don't call x_set_font.
15462 (Ffont_spec): Store :name property as is.
15463 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
15464 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
15465 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
15466 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
15467 Call font->driver->otf_gsub instead of font_otf_gsub.
15468
15469 * frame.c (x_set_font_backend): Do more works that were done in
15470 font_update_drivers before.
15471
15472 * xfont.c (xfont_match): New function.
15473 (xfont_driver): Set xfont_driver.match to xfont_match.
15474 (xfont_draw): Set font in GC if necessary.
15475
15476 * ftxfont.c (ftxfont_match): New function.
15477 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
15478
15479 * xftfont.c (xftfont_match): New function.
15480 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
15481
15482 2008-02-01 Kenichi Handa <handa@m17n.org>
15483
15484 * font.h (struct font): New member scalable.
15485 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
15486 (font_otf_gsub): Adjust prototype.
15487
15488 * font.c (font_otf_capability): Fix handling of the default langsys.
15489 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
15490 Check the contents of SPEC.
15491 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
15492 (check_gstring): New function.
15493 (REPLACEMENT_CHARACTER): New macro.
15494 (font_otf_gsub): New arg alternate_subst. Be sure to set all
15495 glyph codes of GSTRING.
15496 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
15497 (font_prepare_composition): Set cmp->glyph_len.
15498 (font_open_entity): Set font->scalable.
15499 (Ffont_get): Handle :otf property.
15500 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
15501 functions.
15502 (Fquery_font): Use font->font.full_name.
15503 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
15504 Sfont_otf_alternates.
15505
15506 * ftfont.c (ftfont_open): Set font->font.full_name and
15507 font->font.name properly. Fix calculation of font->font.height
15508 and font->min_width.
15509
15510 * ftxfont.c (ftxfont_create_gcs): New function.
15511 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
15512 (ftxfont_draw_backgrond): Fix filling region.
15513 (ftxfont_default_fid): New function.
15514 (ftxfont_open): Set xfont->fid to the return value of
15515 ftxfont_default_fid.
15516 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
15517 (ftxfont_done_face): Free only GCs that are created by
15518 ftxfont_create_gcs.
15519 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
15520
15521 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
15522 Clip to src->width, etc (not src->clip_XXX).
15523
15524 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
15525 FontBackend frame parameter.
15526
15527 2008-02-01 Kenichi Handa <handa@m17n.org>
15528
15529 * font.h (struct font_driver_list): New member `on'.
15530 (Fclear_font_cache): EXFUN it.
15531 (font_update_drivers): Extern it.
15532
15533 * font.c (font_unparse_fcname): Fix typo (swidth->width).
15534 (font_list_entities): Check driver_list->on.
15535 (register_font_driver): Initialize `on' member to 0.
15536 (font_update_drivers): New function.
15537 (Fclear_font_cache): Check driver_list->on.
15538
15539 * frame.h (Qfont_backend): Extern it.
15540 (x_set_font_backend): Extern it.
15541
15542 * frame.c (Qfont_backend): New variable.
15543 (frame_parms): New element for font-backend.
15544 (x_set_font_backend): New function.
15545
15546 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
15547 FontBackend frame parameter.
15548 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
15549 x_set_font_backend.
15550
15551 * xfont.c (xfont_list): Don't try listing by :name property if the
15552 name is not for XLFD.
15553
15554 2008-02-01 Kenichi Handa <handa@m17n.org>
15555
15556 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
15557 (LGLYPH_SET_TO): New macros.
15558 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
15559 element of G is vector or not.
15560 (font_at): Extern it.
15561
15562 * font.c: Include window.h.
15563 (font_lispy_object): New function.
15564 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
15565 end of valid glyph.
15566 (font_close_object): Fix getting (struct font *).
15567 (font_at): New function.
15568 (Ffont_get): If FONT is a font-object, get entity from it.
15569 (Ffont_make_gstring): Initialize elements of glyphs with nil.
15570 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
15571 range check.
15572 (Ffont_at): New function.
15573 (syms_of_font): Defsubr Sfont_at.
15574
15575 * xdisp.c (it_props): Move the entry for Qauto_composed to just
15576 before the entry for Qcomposition.
15577 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
15578 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
15579 the font in gstring.
15580 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
15581 LGLYPH_FORM (g) to detect the end of valid glyph.
15582 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
15583 we are composing with gstring.
15584
15585 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
15586 Check if adjustment is vector or not.
15587
15588 * Makefile.in (font.o): Make it depends on window.h.
15589
15590 2008-02-01 Kenichi Handa <handa@m17n.org>
15591
15592 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
15593 adjustment is vector or not.
15594
15595 2008-02-01 Miles Bader <miles@gnu.org>
15596
15597 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
15598
15599 2008-02-01 Kenichi Handa <handa@m17n.org>
15600
15601 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15602 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15603 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15604
15605 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15606 (DEVICE_DELTA): Fix typo.
15607 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15608 LGLYPH format.
15609
15610 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15611 the change of LGLYPH format.
15612
15613 2008-02-01 Kenichi Handa <handa@m17n.org>
15614
15615 * ftfont.c (ftfont_list): Fix typo.
15616 (ftfont_build_basic_charsets): Don't include letters with diacritics.
15617
15618 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15619
15620 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15621
15622 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15623 xftface_info is non-NULL.
15624
15625 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15626
15627 * ftfont.c (ftfont_list): Move misplaced #endif.
15628
15629 2008-02-01 Kenichi Handa <handa@m17n.org>
15630
15631 * ftfont.c (ftfont_list): Pay attention to the case that
15632 FC_CAPABILITY is not defined.
15633
15634 2008-02-01 Kenichi Handa <handa@m17n.org>
15635
15636 * xftfont.c (xftfont_open): Set charset related members to -1.
15637
15638 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
15639 QCname.
15640 (ftfont_open): Set charset related members to -1.
15641
15642 * fontset.c (Votf_script_alist): New variable.
15643 (syms_of_fontset): Initialize it.
15644 (fontset_font): Delete unused variable.
15645
15646 * fontset.h (Votf_script_alist): Extern it.
15647
15648 * font.c (font_find_for_lface): Optimize code.
15649
15650 * font.h (font_close_object, font_merge_old_spec): Extern them.
15651
15652 2008-02-01 Kenichi Handa <handa@m17n.org>
15653
15654 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15655 (syms_of_font): Initialize them.
15656 (font_pixel_size): Allow float value in dpi.
15657 (font_prop_validate_type): Delete.
15658 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15659 Change caller.
15660 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15661 (font_prop_validate_extra): Delete.
15662 (font_prop_validate_spacing): New function.
15663 (font_property_table): Add elements for all known properties.
15664 (get_font_prop_index): Rename from check_font_prop_name. New
15665 argument FROM. Change caller.
15666 (font_prop_validate): Validate all known properties.
15667 (font_put_extra): Delete argument force. Change caller.
15668 (font_expand_wildcards): Make it static. Fix the way of shrinking
15669 the possible range.
15670 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15671 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15672 Change caller.
15673 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15674 (font_parse_fcname): Delete argument merge. Fix parsing of point
15675 size. Don't validate properties values here. Change caller.
15676 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15677 (font_open_by_name): Delete unused variable.
15678 (Ffont_spec): Likewise. Validate property values.
15679 (Ffont_match_p): New function.
15680
15681 * font.h (QCscalable): Extern it.
15682 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15683
15684 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15685
15686 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15687 (xfont_list_pattern): New function.
15688 (xfont_list): Use xfont_list_pattern.
15689
15690 2008-02-01 Kenichi Handa <handa@m17n.org>
15691
15692 * font.h (Flist_fonts): EXFUN it.
15693
15694 2008-02-01 Jason Rumney <jasonr@gnu.org>
15695
15696 * w32term.c (w32_initialize): Add back smoothing_type and
15697 smoothing_enabled definitions.
15698
15699 2008-02-01 Kenichi Handa <handa@m17n.org>
15700
15701 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15702 s->face->font on determining underline position.
15703
15704 2008-02-01 Kenichi Handa <handa@m17n.org>
15705
15706 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15707 (font_has_char): Accept font-object too.
15708 (font_find_for_lface): Try at first with a size specified in face.
15709
15710 2008-02-01 Kenichi Handa <handa@m17n.org>
15711
15712 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15713 font_open_by_name.
15714
15715 2008-02-01 Kenichi Handa <handa@m17n.org>
15716
15717 * font.h (QCspacing, QCdpi): Extern them.
15718 (enum font_spacing): New enum.
15719 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15720
15721 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15722 (QCspacing, QCdpi): New variables.
15723 (syms_of_font): Initialize them.
15724 (font_pixel_size): New function.
15725 (font_put_extra): New function.
15726 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15727 in FONT_EXTRA.
15728 (font_parse_fcname): Handle enumerated values (e.g. bold).
15729 Fix handling font size. Add QCname property that contains only
15730 unknown properties.
15731 (font_score): Change argument. Change caller. Pay attention to
15732 FONT_PIXEL_SIZE_QUANTUM.
15733 (font_sort_entites, font_list_entities, font_find_for_lface)
15734 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15735 (Ffont_spec): Add QCname property that contains only unknown properties.
15736
15737 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15738 include weight in listing pattern, instead check weight of each
15739 listed font. Don't include scalable in pattern. Pay attention to
15740 FONT_PIXEL_SIZE_QUANTUM.
15741
15742 2008-02-01 Kenichi Handa <handa@m17n.org>
15743
15744 * font.c (font_parse_fcname): Fix parsing of point-size.
15745 (font_unparse_fcname): Produce symbolic names for style properties.
15746 (font_list_entities): Handle float size correctly.
15747 (font_open_by_name): Prefer `normal' property values if the name
15748 doesn't specify them.
15749
15750 * fontset.c (Finternal_char_font): Use font_get_name, not
15751 Ffont_xlfd_name.
15752
15753 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15754 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15755 pattern. Don't force scalable.
15756
15757 * xftfont.c (xftfont_open): For generating a name, start from
15758 96-byte buffer.
15759
15760 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15761
15762 * frame.h (x_new_fontset2): Fix prototype.
15763
15764 2008-02-01 Kenichi Handa <handa@m17n.org>
15765
15766 * font.h (struct font_driver): Delete member parse_name.
15767 (font_match_p, font_get_spec, font_parse_fcname)
15768 (font_unparse_fcname): Extern them.
15769 (font_get_name): Adjust prototype.
15770
15771 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15772 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15773 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15774 unnecessary checks for weight, slant, and swidth.
15775 (font_parse_fcname): New function.
15776 (font_unparse_fcname): New function.
15777 (font_parse_name): New function.
15778 (font_match_p): New function.
15779 (font_get_name): Change return value to Lisp string.
15780 (font_get_spec): New function.
15781 (Qunspecified, Qignore_defface): Don't extern them.
15782 (font_find_for_lface): Assume that LFACE is fully specified.
15783 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15784 object, use it for FACE.
15785 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15786 driver->parse_name.
15787 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15788
15789 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15790 prototype.
15791
15792 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15793 argument F. Don't call Fnew_fontset. Instead, directly call
15794 make_fontset.
15795
15796 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15797
15798 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15799 of x_new_fontset2.
15800
15801 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15802 (Qsans__serif): New variables.
15803 (ftfont_generic_family_list): New variable.
15804 (syms_of_ftfont): Initialize the above variables.
15805 (ftfont_pattern_entity): Delete argument NAME.
15806 (ftfont_list_generic_family): New function.
15807 (ftfont_parse_name): Delete this function.
15808 (ftfont_list): Try generic family only when FcFontList found no font.
15809 (ftfont_list_family): Fix args to FcObjectSetBuild.
15810
15811 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15812 object in attrs[LFACE_FONT_INDEX].
15813 (set_lface_from_font_name): Cancel all changes for font-backend.
15814 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15815 function.
15816 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15817 font object in QCfont attribute.
15818 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15819 (realize_default_face) [USE_FONT_BACKEND]: Call
15820 set_lface_from_font_and_fontset.
15821
15822 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15823 "fixed", and signal error here if no suitable font was found.
15824
15825 * xfont.c (xfont_parse_name): Delete this function.
15826
15827 * xftfont.c (xftfont_open): Change coding style of error
15828 handling. Generate fontconfig's fontname pattern.
15829
15830 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15831 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15832
15833 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15834 Both args FONTSET and FONT_OBJECT must be existing ones.
15835
15836 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15837
15838 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15839
15840 2008-02-01 Kenichi Handa <handa@m17n.org>
15841
15842 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15843
15844 * font.h (struct font): Fix typo.
15845
15846 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15847 XLFD_XXX_INDEX.
15848 (enum xlfd_field_mask): New enum.
15849 (intern_font_field): Changed argument. Change caller. If digits
15850 are followed by non-digits, return a symbol.
15851 (font_expand_wildcards): New function.
15852 (font_parse_xlfd): Fix wildcard handling.
15853 (Ffont_spec): If :name is specified, reflect the info in the other
15854 properties.
15855
15856 * ftfont.c (ftfont_pattern_entity): Fix typo.
15857 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15858 locale.
15859
15860 2008-02-01 Kenichi Handa <handa@m17n.org>
15861
15862 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15863
15864 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15865 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15866 registry doesn't specify encoding part.
15867 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15868 (font_open_by_name): At first try parsing the name.
15869 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15870 as Lisp symbols.
15871
15872 * fontset.c (reorder_font_vector): Pay attention to the case that
15873 the 3rd element of font_def is nil.
15874 (fontset_font): For the default fontset, append one more fontset
15875 elements for a script-based font specification. Don't add script
15876 attribute on finding a font.
15877 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15878 font name.
15879 (fontset_ascii_font): If a font can't be opened, return nil.
15880
15881 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15882 (ftfont_pattern_entity): New function.
15883 (ftfont_get_cache): Assume that freetype_font_cache is already
15884 initialized.
15885 (ftfont_list): Handle the case that a file is specified in font
15886 name. Use ftfont_pattern_entity to generate entities.
15887 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15888 (syms_of_ftfont): Initialize freetype_font_cache.
15889
15890 * xftfont.c (xftfont_open): Make the font name fontconfig's
15891 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15892 (xftfont_close): Free font->font.name if not NULL.
15893
15894 * xfont.c (xfont_list): If script is specified for a font, return
15895 null_vector.
15896 (xfont_list_family): Declare argument type.
15897
15898 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15899 name, set LFACE_FONT (lface) to nil.
15900
15901 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15902 return Qnil.
15903
15904 2008-02-01 Kenichi Handa <handa@m17n.org>
15905
15906 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15907 (standard_args): Add "-enable-font-backend".
15908
15909 2008-02-01 Kenichi Handa <handa@m17n.org>
15910
15911 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15912 (struct xftdraw_list, xftdraw_list): Delete them.
15913 (register_xftdraw, check_xftdraw): Delete them.
15914 (xftfont_prepare_face): Don't call register_xftdraw.
15915 (xftfont_done_face): Don't call check_xftdraw.
15916 (xftfont_draw): Get background color only when with_background is
15917 nonzero.
15918
15919 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15920
15921 2008-02-01 Kenichi Handa <handa@m17n.org>
15922
15923 These changes are for the new font handling codes.
15924
15925 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15926 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15927 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15928 (FONTSRC, FONTOBJ): New variables.
15929 (obj): Add $(FONTOBJ).
15930 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15931 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15932 @LIBOTF_LIBS@.
15933 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15934 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15935
15936 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15937
15938 * character.h (Vscript_representative_chars): Extern it.
15939
15940 * character.c (Vscript_representative_chars): New variable.
15941 (syms_of_character): Declare it as a Lisp variable.
15942
15943 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15944 enable_font_backend is nonzero, accept the composition method
15945 COMPOSITION_WITH_GLYPH_STRING.
15946
15947 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15948 enumeration COMPOSITION_WITH_GLYPH_STRING.
15949
15950 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15951 members clip_x, clip_y, clip_width, and clip_height.
15952 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15953
15954 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15955 --enable-font-backend. Call syms_of_font.
15956
15957 * fns.c (assoc_no_quit): New function.
15958
15959 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15960 (face_for_font, new_fontset_from_font)
15961 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15962
15963 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15964 (fontset_font, fontset_ascii, face_for_char)
15965 (make_fontset_for_ascii_face, Ffont_info)
15966 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15967 is nonzero, use font-backend mechanism.
15968 (find_font_encoding): Make it non-static.
15969 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15970 New functions.
15971
15972 * frame.h (struct frame): New members resx and resy.
15973 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15974 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15975
15976 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15977 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15978
15979 * lisp.h (assoc_no_quit): Extern it.
15980
15981 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15982 Through out the file, use FONT_INFO_FROM_FACE instead of
15983 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15984 rif->per_char_metric.
15985 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15986 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15987 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15988 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15989 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15990 nonzero, use font-backend mechanism.
15991 (get_per_char_metric): New function.
15992
15993 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15994 (set_lface_from_font_name)
15995 (set_font_frame_param, free_realized_face)
15996 (prepare_face_for_display, clear_face_gcs)
15997 (Finternal_set_font_selection_order, realize_x_face)
15998 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15999 font-backend mechanism.
16000 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
16001 (load_face_font) [USE_FONT_BACKEND]: Abort.
16002 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
16003 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
16004
16005 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
16006 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
16007 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
16008 nonzero, register all available font drivers. Call
16009 x_default_font_parameter for deciding a font.
16010 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
16011
16012 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
16013 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
16014 (x_set_glyph_string_clipping_exactly)
16015 (x_compute_glyph_string_overhangs)
16016 (x_draw_glyph_string_foreground)
16017 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
16018 (x_free_frame_resources) [USE_FONT_BACKEND]: If
16019 enable_font_backend is nonzero, use font-backend mechanism.
16020 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
16021
16022 2008-02-01 Kenichi Handa <handa@m17n.org>
16023
16024 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
16025 system_eol_type.
16026 (syms_of_coding): Initialize system_eol_type.
16027
16028 * process.c (Fset_process_coding_system): Inherit system's eol
16029 format if necessary.
16030
16031 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16032
16033 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
16034
16035 2008-02-01 Kenichi Handa <handa@m17n.org>
16036
16037 * coding.c (decode_eol): Pay attention to buffer relocation in
16038 del_range_2.
16039 (decode_coding): Call decode_eol before restoring undo_list.
16040
16041 2008-02-01 Kenichi Handa <handa@m17n.org>
16042
16043 * charset.c (Fdefine_charset_internal): Fix setting of
16044 emacs_mule_bytes.
16045
16046 2008-02-01 Kenichi Handa <handa@m17n.org>
16047
16048 * keyboard.c (read_char): Check if C is a character or not before
16049 looking up Vkeyboard_translate_table.
16050
16051 2008-02-01 Kenichi Handa <handa@m17n.org>
16052
16053 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
16054 condition to terminate the loop.
16055
16056 2008-02-01 Kenichi Handa <handa@m17n.org>
16057
16058 * coding.c (produce_composition): Compare charbuf[i] instead of
16059 args[i] against 0.
16060 (Fterminal_coding_system): Use EQ to compare Lisp objects.
16061
16062 2008-02-01 Kenichi Handa <handa@m17n.org>
16063
16064 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
16065 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
16066 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
16067 detect_coding.
16068 (emacs_mule_char): Handle old style (Emacs 20) component character
16069 of a composition.
16070 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
16071 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
16072 composition rule.
16073 (decode_coding_emacs_mule): Handle invalid bytes correctly.
16074
16075 2008-02-01 Kenichi Handa <handa@m17n.org>
16076
16077 * coding.c (encode_coding_ccl): Allocate destination dynamically
16078 when necessary.
16079
16080 2008-02-01 Kenichi Handa <handa@m17n.org>
16081
16082 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
16083 the loop. When quitted, show a proper error message.
16084
16085 2008-02-01 Kenichi Handa <handa@m17n.org>
16086
16087 * xterm.c (x_set_glyph_string_clipping_exactly): Set
16088 src->clip_head and src->clip_tail temporarily instead of src->hl.
16089
16090 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
16091 character sequence.
16092 (Fccl_execute_on_string): Use ASET, not XSET.
16093
16094 2008-02-01 Kenichi Handa <handa@m17n.org>
16095
16096 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
16097
16098 2008-02-01 Kenichi Handa <handa@m17n.org>
16099
16100 * coding.c (decode_coding): Fix the condition of terminating the
16101 decoding loop.
16102
16103 2008-02-01 Kenichi Handa <handa@m17n.org>
16104
16105 * data.c (Faset): On setting a character bigger than 255 in a
16106 unibyte string, signal an error instead of make the string multibyte.
16107
16108 2008-02-01 Kenichi Handa <handa@m17n.org>
16109
16110 * charset.c (map_charset_chars): Fix for ascii-compatible charset
16111 made by a mapping table.
16112
16113 2008-02-01 Kenichi Handa <handa@m17n.org>
16114
16115 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
16116 not.
16117 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
16118 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
16119
16120 * xterm.c (x_draw_composite_glyph_string_foreground): Check
16121 s->face is NULL or not.
16122
16123 2008-02-01 Kenichi Handa <handa@m17n.org>
16124
16125 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
16126 (x_draw_glyph_string): Fix drawing of right_overhang and
16127 left_overhang around/on cursor.
16128
16129 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
16130
16131 2008-02-01 Kenichi Handa <handa@m17n.org>
16132
16133 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
16134
16135 2008-02-01 Kenichi Handa <handa@m17n.org>
16136
16137 * coding.c (Fdefine_coding_system_internal)
16138 (Fdefine_coding_system_alias): Avoid a duplicated element in
16139 Vcoding_system_alist.
16140
16141 2008-02-01 Kenichi Handa <handa@m17n.org>
16142
16143 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
16144
16145 * coding.c (Qcoding_system_define_form): New variable.
16146 (syms_of_coding): Intern and staticpro it.
16147 (Fcoding_system_p): Check Qcoding_system_define_form.
16148 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
16149
16150 * coding.h (CODING_SYSTEM_P): If ID is not available, call
16151 Fcoding_system_p.
16152 (CHECK_CODING_SYSTEM): If ID is not available, call
16153 Fcheck_coding_system.
16154 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
16155 Try also Fcheck_coding_system.
16156
16157 2008-02-01 Kenichi Handa <handa@m17n.org>
16158
16159 * coding.c (code_conversion_restore): GCPRO arg.
16160
16161 2008-02-01 Kenichi Handa <handa@m17n.org>
16162
16163 * character.c (lisp_string_width): Check multibyteness of STRING.
16164
16165 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16166
16167 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
16168 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
16169 (decode_mac_font_name): Use decode_coding_c_string instead of
16170 decode_coding.
16171 (x_load_font): Initialize fontp->fontset to -1. Set
16172 fontp->encoding_type.
16173
16174 2008-02-01 Kenichi Handa <handa@m17n.org>
16175
16176 * search.c (search_buffer): Give up BM search on case-fold-search
16177 if one of a target character has a case-equivalence of different
16178 byte length even if that target character is an ASCII.
16179 (simple_search): Fix calculation of byte length of matched text.
16180 (boyer_moore): Fix handling of case-equivalent multibyte characters.
16181
16182 2008-02-01 Kenichi Handa <handa@m17n.org>
16183
16184 * coding.c (decode_coding): Fix handling of invalid bytes.
16185
16186 2008-02-01 Kenichi Handa <handa@m17n.org>
16187
16188 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
16189 Unicode characters.
16190
16191 2008-02-01 Kenichi Handa <handa@m17n.org>
16192
16193 * coding.c (encode_coding_object): If a pre-write-conversion
16194 function makes a new buffer, kill it.
16195
16196 2008-02-01 Kenichi Handa <handa@m17n.org>
16197
16198 * coding.c (QCascii_compatible_p): New variable.
16199 (syms_of_coding): Initialize it.
16200 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
16201 calling string_char.
16202 (record_conversion_result): Add `default:' case.
16203 (coding_charset_list): Delete unused variable `coding_type'.
16204 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
16205 property in the plist of the coding system.
16206 (Fcoding_system_put): Check QCascii_compatible_p.
16207
16208 2008-02-01 Miles Bader <miles@gnu.org>
16209
16210 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
16211 removed calculation of frame `f', as it's now used.
16212
16213 2008-02-01 Kenichi Handa <handa@m17n.org>
16214
16215 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
16216 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
16217 (UNIDATA): New variable.
16218 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
16219 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
16220 $(RUN_TEMACS) unconditionally.
16221
16222 2008-02-01 Kenichi Handa <handa@m17n.org>
16223
16224 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
16225 (admindir): New variable.
16226 ($(lispsource)international/charprop.el): New target.
16227
16228 2008-02-01 Miles Bader <miles@gnu.org>
16229
16230 * character.c (chars-in-region): Remove obsolete function.
16231 (syms_of_character): Remove its initialization.
16232
16233 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
16234
16235 * w32select.c (validate_coding_system)
16236 (setup_windows_coding_system): New functions.
16237 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
16238 setup_windows_coding_system.
16239 (setup_config, Fw32_get_clipboard_data): Use
16240 validate_coding_system.
16241 (Fx_selection_exists): Move call to setup_config to a place
16242 where signals are allowed.
16243
16244 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
16245 (Fcheck_coding_system): Add declarations.
16246
16247 2008-02-01 Kenichi Handa <handa@m17n.org>
16248
16249 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
16250
16251 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16252
16253 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
16254 string as the second argument for x_new_fontset.
16255
16256 2008-02-01 Kenichi Handa <handa@m17n.org>
16257
16258 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
16259 (encode_coding_object): Use safe_call instead of call2.
16260
16261 2008-02-01 Kenichi Handa <handa@m17n.org>
16262
16263 * fontset.c (Fset_fontset_font): Check family element of a given vector.
16264
16265 * Makefile.in (lisp): Include charprop.el.
16266
16267 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16268
16269 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
16270 Not sure if it's unnecessary.
16271
16272 2008-02-01 Steven Tamm <steventamm@mac.com>
16273
16274 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
16275 some possibly unnecessary fontset checking code that crashed
16276 when creating a new frame.
16277
16278 2008-02-01 Kenichi Handa <handa@m17n.org>
16279
16280 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
16281 lookup_face.
16282
16283 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
16284
16285 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
16286
16287 2008-02-01 Kenichi Handa <handa@m17n.org>
16288
16289 * coding.c: Cancel the change done in HEAD on 2008-02-01.
16290 (coding_charset_list): New function.
16291
16292 * coding.h (coding_charset_list): Extern it.
16293
16294 2008-02-01 Kenichi Handa <handa@m17n.org>
16295
16296 * fontset.c (Fset_fontset_font): Call find_font_encoding with
16297 concatenation of family and registry.
16298
16299 2008-02-01 Kenichi Handa <handa@m17n.org>
16300
16301 * character.h (BYTE8_STRING): Fix typo.
16302
16303 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
16304 string to multibyte (sync to HEAD).
16305
16306 * casefiddle.c (casify_region): Handle changes in byte-length
16307 using replace_range_2 (sync to HEAD).
16308
16309 2008-02-01 Andreas Schwab <schwab@suse.de>
16310
16311 * chartab.c (map_char_table): GCPRO table and arg.
16312
16313 2008-02-01 Kenichi Handa <handa@m17n.org>
16314
16315 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
16316 already at limit.
16317
16318 2008-02-01 Kenichi Handa <handa@m17n.org>
16319
16320 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
16321 instead of fast_c_string_match_ignore_case.
16322 (find_font_encoding): Change argument to Lisp_Object. Use
16323 fast_string_match_ignore_case instead of
16324 fast_c_string_match_ignore_case. Change caller.
16325
16326 2008-02-01 Kenichi Handa <handa@m17n.org>
16327
16328 * xdisp.c (get_next_display_element): In unibyte case, decide to
16329 display in octal form by checking a character by
16330 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
16331
16332 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
16333
16334 * character.c (unibyte_has_multibyte_table): New variable.
16335
16336 * character.h (unibyte_has_multibyte_table): Extern it.
16337 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
16338
16339 2008-02-01 Kenichi Handa <handa@m17n.org>
16340
16341 * coding.c (encode_coding_iso_2022): Fix handling of charset
16342 annotation.
16343
16344 2008-02-01 Kenichi Handa <handa@m17n.org>
16345
16346 * coding.c (setup_coding_system): If coding_system is nil, use
16347 Qundecided.
16348 (Fterminal_coding_system): Return nil if terminal coding system is
16349 `undecided'.
16350 (syms_of_coding): Define coding-system `undecided' here. Setup
16351 terminal_coding as `undecided'.
16352
16353 2008-02-01 Kenichi Handa <handa@m17n.org>
16354
16355 * xdisp.c (message_dolog, set_message_1): Call
16356 unibyte_char_to_multibyte with arg type int.
16357
16358 * lread.c (read1): Fix reading of a char-table.
16359
16360 * print.c (print_object): Include sub char-table in circularities
16361 detection.
16362
16363 2008-02-01 Kenichi Handa <handa@m17n.org>
16364
16365 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
16366 Append the found sequences in car of ARGS instead of prepending.
16367
16368 2008-02-01 Kenichi Handa <handa@m17n.org>
16369
16370 * fileio.c (report_file_error): Make a unibyte string from
16371 strerror (errorno).
16372 (Fsubstitute_in_file_name): Fix the arg to
16373 unibyte_char_to_multibyte. It is evaluated twice.
16374
16375 2008-02-01 Kenichi Handa <handa@m17n.org>
16376
16377 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
16378
16379 2008-02-01 Kenichi Handa <handa@m17n.org>
16380
16381 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
16382 BOM is not found.
16383 (detect_coding, detect_coding_system): Optimization for ISO-2022
16384 when no 8-bit data is found.
16385
16386 2008-02-01 Jason Rumney <jasonr@gnu.org>
16387
16388 * w32fns.c (x_to_w32_font): Update to use new coding struct.
16389
16390 2008-02-01 Kenichi Handa <handa@m17n.org>
16391
16392 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
16393 CHARS.
16394
16395 2008-02-01 Steven Tamm <steventamm@mac.com>
16396
16397 * macterm.c (mac_encode_char): Add charset argument and update
16398 to use encoding_type.
16399 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
16400 switch to pure fontset.
16401 (decode_mac_font_name): Temporarily remove decoding.
16402 (x_font_name_to_mac_font_name): Temporarily remove encoding.
16403 (x_load_font): Temporarily remove encoding.
16404
16405 2008-02-01 Kenichi Handa <handa@m17n.org>
16406
16407 * xfaces.c (Fface_font): If frame is not on a window system,
16408 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
16409 refer to face->font.
16410 (split_font_name_into_vector, build_font_name_from_vector)
16411 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
16412 when HAVE_WINDOW_SYSTEM is defined.
16413
16414 2008-02-01 Kenichi Handa <handa@m17n.org>
16415
16416 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
16417 (x_produce_glyphs): Fix setting of members of cmp in case
16418 cmp->glyph_len is zero.
16419
16420 * fontset.c (Fset_fontset_font): Fix docstring.
16421 (Ffontset_info): Make it backward compatible. New arg ALL.
16422
16423 2008-02-01 Kim F. Storm <storm@cua.dk>
16424
16425 * process.c (read_process_output): Grow decoding_buf when needed;
16426 this could cause a crash in allocate_string and compact_small_strings.
16427
16428 2008-02-01 Kenichi Handa <handa@m17n.org>
16429
16430 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
16431
16432 2008-02-01 Kenichi Handa <handa@m17n.org>
16433
16434 * coding.c (setup_coding_system): Set coding->common_flags
16435 correctly for raw-text.
16436 (consume_chars): On encoding unibyte text by raw-text, don't check
16437 multibyte form.
16438 (encode_coding): On encoding by raw-text, never use translation tables.
16439
16440 * fileio.c (e_write): Short cut for the case of no encoding.
16441
16442 2008-02-01 Kenichi Handa <handa@m17n.org>
16443
16444 * coding.c (detect_coding, detect_coding_system): Delete unused
16445 variables.
16446
16447 2008-02-01 Kenichi Handa <handa@m17n.org>
16448
16449 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
16450 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
16451
16452 2008-02-01 Kenichi Handa <handa@m17n.org>
16453
16454 * coding.c (Ffind_coding_systems_region_internal): Include
16455 raw-text and no-conversion in the result.
16456
16457 2008-02-01 Kenichi Handa <handa@m17n.org>
16458
16459 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
16460 (load_font_get_repertory): Delete unnecessary check of ENCODING of
16461 FONT_DEF.
16462 (font_def_arg, add_arg, from_arg, to_arg): New args.
16463 (set_fontset_font): Change argument.
16464 (Fset_fontset_font): Fix for the case that TARGET is a script
16465 name and charset name.
16466 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
16467
16468 2008-02-01 Kenichi Handa <handa@m17n.org>
16469
16470 * fontset.c (fontset_font): Rename from fontset_face. Change return
16471 value.
16472 (face_suitable_for_char_p, face_for_char): Adjust for the change
16473 of fontset_font.
16474 (make_fontset_for_ascii_face): Fix setting of the fontset element
16475 for ASCII.
16476 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
16477 to get a font name.
16478 (Ffontset_info): Adjust for the change of fontset_font.
16479
16480 * coding.c (emacs_mule_char): Check invalid code more rigidly.
16481
16482 * character.h (LEADING_CODE_LATIN_1_MIN)
16483 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
16484
16485 2008-02-01 Kenichi Handa <handa@m17n.org>
16486
16487 * editfns.c (check_translation): New function.
16488 (Ftranslate_region_internal): Handle M:N mapping.
16489
16490 2008-02-01 Kenichi Handa <handa@m17n.org>
16491
16492 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
16493
16494 2008-02-01 Kenichi Handa <handa@m17n.org>
16495
16496 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
16497 goto invalid_code.
16498 (decode_coding_iso_2022): Fix handling of invalid designation.
16499
16500 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
16501 after calling code_conversion_save.
16502
16503 2008-02-01 Kenichi Handa <handa@m17n.org>
16504
16505 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
16506
16507 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
16508
16509 * fontset.c: Include "intervals.h".
16510 (fontset_face): Fix comparing of Lisp_Objects.
16511 (free_face_fontset, new_fontset_from_font_name): Fix
16512 Lisp_Object/int mixup.
16513
16514 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
16515
16516 * coding.c: Add many prototypes for static functions.
16517 (get_translation_table): Allow max_lookup to be NULL.
16518 (decode_coding, Ffind_coding_systems_region_internal)
16519 (Funencodable_char_position, Fcheck_coding_systems_region): Call
16520 get_translation_table with max_lookup NULL.
16521
16522 2008-02-01 Kenichi Handa <handa@m17n.org>
16523
16524 * coding.c (get_translation_table): Declare it as Lisp_Object.
16525 (LOOKUP_TRANSLATION_TABLE): New macro.
16526 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
16527 instead of CHAR_TABLE_REF.
16528
16529 2008-02-01 Kenichi Handa <handa@m17n.org>
16530
16531 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
16532 annotation data format.
16533 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
16534 Change arguments FROM and TO to single argument NCHARS. Change caller.
16535 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
16536 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16537 (decode_coding_ccl, decode_coding_charset): Pay attention to
16538 coding->charbuf_used.
16539 (get_translation): New function.
16540 (produce_chars): New arguments translation_table and last_block.
16541 Translate characters here. Return number of carryover chars.
16542 Change caller.
16543 (produce_composition): New argument pos. Change caller.
16544 Adjust for the change of annotation data format.
16545 (produce_charset, produce_annotation): Likewise.
16546 (decode_coding, encode_coding): Don't call translate_chars.
16547 (consume_chars): New arg translation_table. Change caller.
16548 (translate_chars): Delete.
16549 (syms_of_coding): Make translation-table's number of extra slots 2.
16550
16551 2008-02-01 Kenichi Handa <handa@m17n.org>
16552
16553 * search.c (simple_search): Fix setting this_pos_byte in backward
16554 search.
16555
16556 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
16557 byte sequence.
16558 (detect_coding_ccl): Fix setting of the variable valids.
16559
16560 2008-02-01 Kenichi Handa <handa@m17n.org>
16561
16562 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
16563
16564 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
16565
16566 * editfns.c (Ftranslate_region_internal): Rename from
16567 Ftranslate_region. Accept a char-table in TABLE.
16568 (syms_of_editfns): Defsubr Stranslate_region_internal.
16569
16570 * xfaces.c (set_lface_from_font_name): If a font is specified for
16571 a frame, generate a fontset from the font.
16572 (build_scalable_font_name): If the scalable font is requested for
16573 a specific size, don't change that size.
16574 (try_font_list): Try a scalable font also in the case that a
16575 pattern string is specified.
16576
16577 2008-02-01 Kenichi Handa <handa@m17n.org>
16578
16579 * xfaces.c (Fface_font): New optional arg CHARACTER.
16580
16581 2008-02-01 Kenichi Handa <handa@m17n.org>
16582
16583 * charset.h (CHARSET_OFFSET): New macro.
16584
16585 2008-02-01 Kenichi Handa <handa@m17n.org>
16586
16587 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
16588
16589 * fontset.c (fontset_face): Handle the case that repertory is a
16590 char-table.
16591 (find_font_encoding): Return nil for unknown encoding.
16592 (Fset_fontset_font): Ignore a font of unknown encoding.
16593
16594 2008-02-01 Kenichi Handa <handa@m17n.org>
16595
16596 * keymap.c (describe_vector): Handle default value of a char table.
16597
16598 * fontset.c (fontset_face): Handle fallback fonts correctly.
16599 (Ffontset_info): Return infomation about fallback fonts.
16600
16601 2008-02-01 Kenichi Handa <handa@m17n.org>
16602
16603 * fontset.c (FONTSET_DEFAULT): New macro.
16604 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16605 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16606 the case that it is nil.
16607 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16608 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16609
16610 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16611 subset or superset.
16612
16613 2008-02-01 Kenichi Handa <handa@m17n.org>
16614
16615 * emacs.c (main): Call init_charset after syms_of_XXX.
16616
16617 * charset.c (Vcharset_map_directory): Delete.
16618 (Vcharset_map_path): New variable.
16619 (load_charset_map_from_file): Use Vcharset_map_path instead.
16620 (init_charset): Initialize Vcharset_map_path.
16621 (syms_of_charset): Delete declaration of "charset-map-directory",
16622 add declaration of "charset-map-path".
16623
16624 2008-02-01 Kenichi Handa <handa@m17n.org>
16625
16626 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16627 ASCII only string.
16628
16629 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16630
16631 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16632 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16633
16634 2008-02-01 Kenichi Handa <handa@m17n.org>
16635
16636 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16637
16638 * coding.c (QCmnemonic, QCdefalut_char)
16639 (QCdecode_translation_table, QCencode_translation_table)
16640 (QCpost_read_conversion, QCpre_write_conversion): New variables.
16641 (get_translation_table): Return a list of translation tables if
16642 necessary.
16643 (decode_coding): Call get_translation_table with ENCODEP 0.
16644 (char_encodable_p): If translation_table is non-nil, always call
16645 translate_char.
16646 (Fdefine_coding_system_internal): Accept list of translation
16647 tables as :encode-translation-table and :decode-translation-table.
16648 (Fcoding_system_put): New function.
16649 (syms_of_coding): Declare new symbols. Defsubr
16650 Scoding_system_put.
16651 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16652 typically JISX0212.
16653
16654 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16655 when the charset is superset type.
16656
16657 * character.c (translate_char): Accept list of translation tables.
16658
16659 2008-02-01 Kenichi Handa <handa@m17n.org>
16660
16661 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16662 (CODING_ATTR_TRANS_TBL): New macro.
16663
16664 * coding.c (get_translation_table): New function.
16665 (translate_chars): Fix the bug of skipping annotation data.
16666 (decode_coding, encode_coding): Utilize get_translation_table.
16667 (char_encodable_p, Funencodable_char_position): Translate char if
16668 necessary.
16669 (Ffind_coding_systems_region_internal)
16670 (Fcheck_coding_systems_region): Setup translation table for encode
16671 in a coding system attribute vector in advance.
16672 (Fdefine_coding_system_internal): Allow a symbol as translation
16673 table. For shift-jis type coding system, allow 4th charset.
16674
16675 2008-02-01 Kenichi Handa <handa@m17n.org>
16676
16677 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16678
16679 * xdisp.c (get_next_display_element): Pass -1 as POS to
16680 FACE_FOR_CHAR if displaying a C-string.
16681
16682 2008-02-01 Kenichi Handa <handa@m17n.org>
16683
16684 * composite.c (get_composition_id): Handle xoff and yoff in a
16685 composition rule.
16686
16687 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16688 (struct composition): New member lbearing and rbearing.
16689
16690 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16691 (x_get_glyph_overhangs): Handle a composition glyph.
16692 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16693
16694 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16695 composition glyph.
16696
16697 2008-02-01 Kenichi Handa <handa@m17n.org>
16698
16699 * print.c: Include charset.h.
16700 (Vprint_charset_text_property): New variable.
16701 (Qdefault): Extern it.
16702 (PRINT_STRING_NON_CHARSET_FOUND)
16703 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16704 (print_check_string_result): New variable.
16705 (print_check_string_charset_prop): New function.
16706 (print_prune_charset_plist): New variable.
16707 (print_prune_string_charset): New function.
16708 (print_object): Call print_prune_string_charset if
16709 Vprint_charset_text_property is not t.
16710 (print_interval): Print nothing if interval->plist is nil.
16711 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16712 variable. Init and staticpro print_prune_charset_plist.
16713
16714 2008-02-01 Kenichi Handa <handa@m17n.org>
16715
16716 * fontset.c (new_fontset_from_font_name): Use the specified font
16717 for all characters in the new fontset.
16718
16719 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16720 OBJECT args.
16721
16722 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16723 OBJECT args for composition too.
16724
16725 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16726 OBJECT args.
16727
16728 2008-02-01 Kenichi Handa <handa@m17n.org>
16729
16730 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16731
16732 * fontset.c (reorder_font_vector): Adjust for the change of
16733 FONT_DEF format.
16734 (fontset_face): New arg id. Change caller.
16735 (face_for_char): New args pos and object.
16736 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16737 (fs_query_fontset): Check NAME by Fassoc too.
16738 (Fset_fontset_font): Allow non-XLFD font name.
16739 (Ffontset_info): Adjust for the change of FONT_DEF format.
16740
16741 * fontset.h (face_for_char): Adjust prototype.
16742
16743 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16744 (append_space, extend_face_to_end_of_line)
16745 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16746 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16747
16748 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16749 POS and OBJECT args.
16750
16751 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16752 POS and OBJECT args.
16753
16754 2008-02-01 Jason Rumney <jasonr@gnu.org>
16755
16756 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16757 of GlobalAlloc'ed memory.
16758
16759 2008-02-01 Kenichi Handa <handa@m17n.org>
16760
16761 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16762
16763 * charset.h (charset_table_used): Delete extern.
16764
16765 * charset.c (charset_table_used): Make it static.
16766 (map_charset_chars): Fix args to c_function with.
16767
16768 * chartab.c (map_sub_char_table_for_charset): Fix args to
16769 c_function with.
16770
16771 * coding.h (enum coding_result_code): Delete
16772 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16773
16774 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16775 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16776 (Vlast_code_conversion_error): New variables.
16777 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16778 (ONE_MORE_BYTE): Record error if any instead of signaling an
16779 error. If non-ASCII multibyte char is found, return the negative
16780 value of the code. All callers changed to check it.
16781 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16782 (record_conversion_result): New function. Change all codes setting
16783 coding->result to call this function.
16784 (detect_coding_utf_8, decode_coding_utf_8)
16785 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16786 Don't use the local variable incomplete.
16787 (emacs_mule_char): Change the second arg to `const'.
16788 (decode_coding): Fix of flushing out unprocessed data.
16789 (make_conversion_work_buffer): Fix making of a work buffer.
16790 (decode_coding_object): Return coding->dst_object.
16791
16792 * fontset.c (set_fontset_font): Fix args.
16793
16794 * lisp.h (CHARACTERBITS): Define as 22.
16795
16796 * process.c (send_process): Be sure to set coding->src_multibyte.
16797
16798 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16799
16800 2008-02-01 Kenichi Handa <handa@m17n.org>
16801
16802 * xdisp.c (handle_auto_composed_prop): Give limit to
16803 Fnext_single_char_property_change.
16804
16805 2008-02-01 Kenichi Handa <handa@m17n.org>
16806
16807 * composite.c (syms_of_composite): Don't make the composition hash
16808 table weak.
16809
16810 * fontset.c (Fset_fontset_font): Fix docstring.
16811
16812 * lisp.h (detect_coding_system): Adjust prototype.
16813
16814 * fileio.c (kill_workbuf_unwind): Delete this function.
16815 (Finsert_file_contents): Adjust the call of detect_coding_system.
16816 Get conversion_buffer by code_conversion_save. Use the macro
16817 CODING_MAY_REQUIRE_DECODING. After decoding, update
16818 coding_system.
16819
16820 * coding.h (make_conversion_work_buffer): Delete extern.
16821 (code_conversion_save): Extern it.
16822
16823 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16824 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16825 (decode_coding_utf_8): Don't do eol converion.
16826 (detect_coding_utf_16): Check coding->src_chars, not
16827 coding->src_bytes. Add heuristics for those that have no signature.
16828 (decode_coding_emacs_mule, decode_coding_iso_2022)
16829 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16830 Don't do eol converion.
16831 (adjust_coding_eol_type): Return a new coding system.
16832 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16833 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16834 each change.
16835 (decode_coding): Pay attention to undo_list. Do eol conversion for
16836 all types of coding-systems (if necessary).
16837 (Vcode_conversion_work_buf_list): Delete it.
16838 (Vcode_conversion_reused_workbuf): Rename from
16839 Vcode_conversion_reused_work_buf.
16840 (Vcode_conversion_workbuf_name): New variable.
16841 (reused_workbuf_in_use): New variable.
16842 (make_conversion_work_buffer): Delete the arg DEPTH.
16843 (code_conversion_restore): Change argument to cons.
16844 (code_conversion_save): Delete the argument BUFFER. Change callers.
16845 (detect_coding_system): New argument src_chars. Change callers.
16846 Fix for utf-16 detection.
16847 (init_coding_once): Don't use ISO_carriage_return.
16848 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16849 reused_workbuf_in_use.
16850
16851 2008-02-01 Kenichi Handa <handa@m17n.org>
16852
16853 * keymap.c (store_in_keymap): Pay attention to the case that idx
16854 is a cons specifying a character range.
16855
16856 2008-02-01 Kenichi Handa <handa@m17n.org>
16857
16858 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16859 HANDLED_RECOMPUTE_PROPS.
16860
16861 * coding.c (Fdefine_coding_system_internal): Fix checking of
16862 ascii compatibility.
16863
16864 2008-02-01 Kenichi Handa <handa@m17n.org>
16865
16866 * charset.c (find_charsets_in_text): Delete unused locale variable.
16867 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16868
16869 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16870 Resync charset_list to Vemacs_mule_charset_list.
16871
16872 * keymap.c (store_in_keymap): Pay attention to the case that idx
16873 is a cons specifying a character range.
16874
16875 2008-02-01 Kenichi Handa <handa@m17n.org>
16876
16877 * composite.c (update_compositions): Bind inhibit-read-only, etc
16878 to t before calling remove-list-of-text-properties.
16879
16880 * print.c (print_object): Always print ASCII chars as is.
16881
16882 2008-02-01 Kenichi Handa <handa@m17n.org>
16883
16884 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16885
16886 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16887 is a char table.
16888
16889 2008-02-01 Kenichi Handa <handa@m17n.org>
16890
16891 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16892
16893 2008-02-01 Kenichi Handa <handa@m17n.org>
16894
16895 * xfaces.c (set_lface_from_font_name): Fix for the case that
16896 FONTNAME is not fontset name.
16897
16898 2008-02-01 Kenichi Handa <handa@m17n.org>
16899
16900 * fns.c (base64_encode_1): Fix previous change.
16901
16902 2008-02-01 Kenichi Handa <handa@m17n.org>
16903
16904 * fontset.c (set_fontset_font): New function.
16905 (Fset_fontset_font): If a font is specified for a charset, use
16906 map_charset_chars to store the font spec in a fontset.
16907
16908 2008-02-01 Kenichi Handa <handa@m17n.org>
16909
16910 * fontset.c (fontset_face): Create a fallback fontset on demand.
16911 (make_fontset): Don't create a fallback fontset here.
16912 (free_face_fontset): Free a fallback fontset (if any) too.
16913 (n_auto_fontsets): Delete this variable.
16914 (auto_fontset_alist): New variable.
16915 (new_fontset_from_font_name): Check auto_fontset_alist.
16916 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16917 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16918 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16919 Defsubr Sfontset_list_all.
16920
16921 2008-02-01 Kenichi Handa <handa@m17n.org>
16922
16923 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16924
16925 2008-02-01 Kenichi Handa <handa@m17n.org>
16926
16927 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16928
16929 2008-02-01 Kenichi Handa <handa@m17n.org>
16930
16931 * editfns.c (Fgoto_char): Fix docstring.
16932
16933 2008-02-01 Kenichi Handa <handa@m17n.org>
16934
16935 * insdel.c (insert_from_gap): Adjust intervals correctly.
16936
16937 2008-02-01 Jason Rumney <jasonr@gnu.org>
16938
16939 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16940 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16941 (w32_initialize): Try to load it.
16942 (x_get_font_repertory): Use it if available.
16943 (w32_encode_char): Add shortcut for unicode output.
16944
16945 * w32fns.c (w32_load_system_font): Default charset to -1.
16946 (x_to_w32_charset): Match all fonts for unicode.
16947 (w32_to_x_charset): New parameter matching. Don't return partial
16948 or wildcard charsets.
16949 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16950 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16951 (w32_to_x_font): Match charset to real charset.
16952 (enum_font_cb2): Always list unicode versions.
16953
16954 * makefile.w32-in (temacs): Increase EMHEAP.
16955
16956 2008-02-01 Jason Rumney <jasonr@gnu.org>
16957
16958 * w32term.c (w32_encode_char): New charset parameter.
16959 font_info.encoding becomes encoding_type.
16960 (x_get_font_repertory): New function. Warning: stub only!
16961 (x_new_font): Return quickly if font already set.
16962 (x_new_fontset): fontsetname parameter is Lisp_Object.
16963 Use new fs_query_fontset. Try new_fontset_from_font_name.
16964 Use fontset_name for return value.
16965
16966 * w32term.h: Declare x_get_font_repertory.
16967
16968 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16969 place of find_charset_in_text. Use encode_coding_object in place
16970 of encode_coding.
16971 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16972 decode_coding.
16973
16974 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16975 of x_new_fontset.
16976 (w32_load_system_font): Initialize charset as unicode.
16977 font_info.encoding becomes encoding_type.
16978 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16979 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16980 (syms_of_w32fns): Set get_font_repertory_func.
16981
16982 * w32console.c: Include character.h. Use terminal_encode_buffer
16983 from term.c.
16984 (write_glyphs): Use new version of encode_terminal_code. Use
16985 encode_coding_object in place of encode_coding.
16986
16987 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16988 encoding becomes encoding_type.
16989
16990 * term.c (terminal_encode_buffer): Make externally visible.
16991
16992 * makefile.w32-in: Add character.h dependancies.
16993 (character.o, chartab.o): New targets.
16994
16995 2008-02-01 Kenichi Handa <handa@m17n.org>
16996
16997 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16998 CODING_ID_EOL_TYPE.
16999
17000 2008-02-01 Andreas Schwab <schwab@suse.de>
17001
17002 * coding.c (produce_chars): Revert last change.
17003
17004 2008-02-01 Kenichi Handa <handa@m17n.org>
17005
17006 * charset.h (charset_unicode): Extern it.
17007
17008 * charset.c (string_xstring_p): Check by (C >= 0x100).
17009 (find_charsets_in_text): Change format of the arc CHARSETS. New
17010 arg MULTIBYTE.
17011 (Ffind_charset_region, Ffind_charset_string): Adjust for the
17012 change of find_charsets_in_text.
17013 (Fsplit_char): Fix doc. Never return unknown.
17014
17015 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
17016
17017 * coding.c (Fdefine_coding_system_alias): Update
17018 Vcoding_system_list.
17019
17020 * fontset.c (load_font_get_repertory): Pay attention to the case
17021 that ENCODING of a font is specified by a char-table.
17022
17023 * xterm.c (x_get_font_repertory): Handle the case that the
17024 encoding of font is other than Unicode.
17025
17026 2008-02-01 Kenichi Handa <handa@m17n.org>
17027
17028 * term.c (encode_terminal_code): Don't handle glyph-table. Check
17029 if a character is encodable by the terminal coding system. If
17030 not, produces proper number of `?'s. Update
17031 terminal_encode_buffer and terminal_encode_buf_size if necessary.
17032 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
17033
17034 2008-02-01 Kenichi Handa <handa@m17n.org>
17035
17036 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
17037 variables.
17038 (encode_terminal_code): Change argument. Encode multiple
17039 characters at once. Store the result of encoding in
17040 terminal_encode_buffer.
17041 (write_glyphs, insert_glyphs): Adjust for the change of
17042 encode_terminal_code.
17043 (term_init): Initialize terminal_encode_buffer and
17044 terminal_encode_buf_size.
17045
17046 * coding.c (consume_chars): If coding->src_object is nil, don't
17047 check annotation.
17048
17049 2008-02-01 Kenichi Handa <handa@m17n.org>
17050
17051 * character.c (char_string): Use ASCII_CHAR_P instead of
17052 SINGLE_BYTE_CHAR_P.
17053
17054 2008-02-01 Kenichi Handa <handa@m17n.org>
17055
17056 * xdisp.c (handle_auto_composed_prop): Check if the last
17057 characters of auto-composed region is newly composed with the
17058 following characters.
17059 (handle_composition_prop): Fix checking of point being inside
17060 composition.
17061
17062 2008-02-01 Kenichi Handa <handa@m17n.org>
17063
17064 * fns.c (concat): Don't change multibyteness of the result by
17065 concatenating an 8-bit character.
17066
17067 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
17068 multibyteness of the result when newelt is an 8-bit character.
17069
17070 2008-02-01 Dave Love <fx@gnu.org>
17071
17072 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
17073 EMACS_INT.
17074
17075 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
17076
17077 * xfaces.c (face_numeric_value): Declare dim size_t.
17078 (Finternal_lisp_face_equal_p): Remove unused f.
17079
17080 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
17081 (MATRIX_ROW): Remove unused vars.
17082 (draw_glyphs, x_insert_glyphs, fast_find_position)
17083 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
17084 byte/char counts.
17085
17086 * regex.c (regex_compile): Remove unused var.
17087
17088 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17089
17090 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
17091 (Faccessible_keymaps, where_is_internal): Remove unused vars.
17092
17093 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
17094
17095 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
17096
17097 * fileio.c (Fwrite_region): Remove unused var.
17098
17099 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
17100 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
17101
17102 * composite.c (Fremove_list_of_text_properties): Declare.
17103
17104 * coding.c (inhibit_pre_post_conversion): Remove (unused).
17105 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
17106 (coding_inherit_eol_type): Remove unused attrs.
17107 (detect_coding): Cast arg of detect_eol.
17108
17109 * charset.c (syms_of_charset): Remove unused var p.
17110 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
17111 byte/char counts.
17112
17113 * casetab.c (set_case_table): Remove unused var.
17114
17115 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
17116 unused vars.
17117
17118 2008-02-01 Dave Love <fx@gnu.org>
17119
17120 * xterm.c (x_bitmap_mask): Declare.
17121
17122 2008-02-01 Dave Love <fx@gnu.org>
17123
17124 * xterm.c (x_term_init): Fix type error.
17125
17126 * lisp.h: Add Funibyte_char_to_multibyte.
17127
17128 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
17129 (Fset_coding_system_priority): Doc fix.
17130
17131 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
17132
17133 * indent.c (check_composition): Make start and end EMACS_INT.
17134
17135 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
17136
17137 * xdisp.c (handle_composition_prop, check_point_in_composition):
17138 Make buffer positions EMACS_INT.
17139
17140 * composite.c (find_composition, run_composition_function)
17141 (update_compositions, Ffind_composition_internal): Make buffer
17142 positions EMACS_INT.
17143
17144 * composite.h (find_composition, update_compositions): Make
17145 position args EMACS_INT.
17146
17147 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
17148
17149 * intervals.c (get_property_and_range):
17150 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
17151
17152 * unexalpha.c: Don't include varargs.h.
17153
17154 2008-02-01 Dave Love <fx@gnu.org>
17155
17156 * coding.h (ENCODE_UTF_8): New.
17157
17158 * Makefile.in (gtkutil.o): Depend on coding.h.
17159
17160 * coding.c (Fset_coding_system_priority): Doc fix.
17161
17162 2008-02-01 Kenichi Handa <handa@m17n.org>
17163
17164 * fileio.c (Finsert_file_contents): Call setup_coding_system in
17165 the case of auto saving.
17166
17167 2008-02-01 Andreas Schwab <schwab@suse.de>
17168
17169 * chartab.c (map_char_table, map_char_table_for_charset): Protect
17170 `range' from GC.
17171
17172 2008-02-01 Kenichi Handa <handa@m17n.org>
17173
17174 * coding.c (decode_coding_sjis): Check bytes more rigidly.
17175
17176 2008-02-01 Kenichi Handa <handa@m17n.org>
17177
17178 * fileio.c (choose_write_coding_system): Return a decided coding system.
17179 (Fwrite_region): Set Vlast_coding_system_used to the return value
17180 of choose_write_coding_system.
17181
17182 2008-02-01 Kenichi Handa <handa@m17n.org>
17183
17184 * charset.c (Fset_charset_priority): Pay attention to duplicated
17185 arguments.
17186
17187 * coding.c (QCcategory): New variable.
17188 (syms_of_coding): Defsym it. Set all elements of
17189 Vcoding_category_table and their symbol values.
17190 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
17191 coding-category-XXX, and coding-category-list.
17192 (Fdefine_coding_system_internal): Add category in the plist.
17193
17194 2008-02-01 Kenichi Handa <handa@m17n.org>
17195
17196 * callproc.c (Fcall_process): Handle carryover correctly.
17197
17198 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
17199 (raw_text_coding_system): Check NILP (coding_system).
17200 (coding_inherit_eol_type): Check NILP (coding_system) and
17201 NILP (parent).
17202 (consume_chars): Fix for the case of raw-text.
17203
17204 * process.c (read_process_output): Handle carryover correctly.
17205
17206 2008-02-01 Dave Love <fx@gnu.org>
17207
17208 * regex.c (re_search_2): Fix last change.
17209
17210 2008-02-01 Kenichi Handa <handa@m17n.org>
17211
17212 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
17213 target_multibyte. Even in a unibyte case, return a converted
17214 multibyte char.
17215 (GET_CHAR_AFTER): New macro.
17216 (PATFETCH): Translate via multibyte char.
17217 (HANDLE_UNIBYTE_RANGE): Delete this macro.
17218 (SETUP_MULTIBYTE_RANGE): New macro.
17219 (regex_compile): Setup compiled code so that its multibyteness
17220 matches that of a target. Fix the handling of "[X-YZ]" using
17221 SETUP_MULTIBYTE_RANGE.
17222 (analyse_first) <charset>: For filling fastmap for all multibyte
17223 characters, don't check by BASE_LEADING_CODE_P.
17224 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
17225 the same as RE_MULTIBYTE_P (bufp) now.
17226 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
17227 (TARGET_CHAR_AND_LENGTH): Delete this macro.
17228 (TRANSLATE_VIA_MULTIBYTE): New macro.
17229 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
17230 It is the same as RE_MULTIBYTE_P (bufp) now.
17231 <exactn>: Translate via multibyte.
17232 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
17233 translate it.
17234 <charset, charset_not>: Fetch a character by
17235 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
17236 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
17237 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
17238 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
17239 by GET_CHAR_AFTER.
17240 (bcmp_translate): Likewise.
17241
17242 * search.c (compile_pattern): Check the member target_multibyte,
17243 not the member multibyte of buf.
17244
17245 * lread.c (read1): While reading a string, set force_singlebyte
17246 and force_multibyte correctly.
17247
17248 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
17249 up of unibyte_to_multibyte_table.
17250
17251 2008-02-01 Kenichi Handa <handa@m17n.org>
17252
17253 * coding.c (setup_coding_system): If coding has
17254 post-read-conversion or pre-write-conversion, set
17255 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
17256 respectively.
17257 (decode_coding_gap): Run post-read-conversion if any.
17258
17259 * fileio.c (Finsert_file_contents): Even if we read into a
17260 unibyte buffer, check if we must decode the result or not.
17261
17262 2008-02-01 Kenichi Handa <handa@m17n.org>
17263
17264 * coding.c (make_conversion_work_buffer): Change the work buffer
17265 name to the same one as that of Emacs 21.
17266
17267 2008-02-01 Kenichi Handa <handa@m17n.org>
17268
17269 * coding.h (make_conversion_work_buffer): Adjust prototype.
17270 (code_conversion_restore): Don't extern it.
17271
17272 * coding.c (detected_mask): Delete unused variable.
17273 (decode_coding_iso_2022): Pay attention to the byte sequence of
17274 CTEXT extended segment, and retain those bytes as is.
17275 (decode_coding_ccl): Delete unused variable `valids'.
17276 (setup_coding_system): Delete unused variable `category'.
17277 (consume_chars): Delete unused variable `category'. Make it work
17278 for non-multibyte case.
17279 (make_conversion_work_buffer): Change argument.
17280 (saved_coding): Delete unused variable.
17281 (code_conversion_restore): Don't check saved_coding->destination.
17282 (code_conversion_save): New function.
17283 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
17284 instead of record_unwind_protect.
17285 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
17286 (detect_coding_system): Delete unused variable `mask'.
17287 (Fdefine_coding_system_internal): Delete unused variable id.
17288
17289 * fileio.c (kill_workbuf_unwind): New function.
17290 (Finsert_file_contents): On replacing, call
17291 make_conversion_work_buffer with correct args, and call
17292 record_unwind_protect with the first arg kill_workbuf_unwind.
17293
17294 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
17295
17296 2008-02-01 Kenichi Handa <handa@m17n.org>
17297
17298 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
17299 (fontset_add): Fix for the case that TO is less than TO1.
17300 (Ffontset_info): Don't use fallback fontset on checking the
17301 default fontset.
17302 (dump_fontset): New function for debugging.
17303
17304 * coding.c (Fdefine_coding_system_internal): Fix for the case that
17305 coding_type is Qcharset.
17306
17307 2008-02-01 Kenichi Handa <handa@m17n.org>
17308
17309 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
17310 (map_char_table): Don't inherit the value from the parent on
17311 initializing VAL. Adjust for the above change.
17312
17313 2008-02-01 Kenichi Handa <handa@m17n.org>
17314
17315 * coding.c (Qsignature, Qendian): Delete these variables.
17316 (syms_of_coding): Don't initialize them.
17317 (CATEGORY_MASK_UTF_16_AUTO): New macro.
17318 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
17319 detect_info->found.
17320 (decode_coding_utf_16): Don't detect BOM here.
17321 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
17322 is NOT utf_16_without_bom.
17323 (setup_coding_system): For a coding system of type utf-16, check
17324 if the attribute :endian is Qbig or not (not nil or not), and set
17325 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
17326 (detect_coding): If coding type is utf-16 and BOM detection is
17327 required, detect it.
17328 (Fdefine_coding_system_internal): For a coding system of type
17329 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
17330
17331 2008-02-01 Kenichi Handa <handa@m17n.org>
17332
17333 * coding.c (coding_set_source): Fix for the case that the current
17334 buffer is different from coding->src_object.
17335 (decode_coding_object): Don't use the conversion work buffer if
17336 DST_OBJECT is a buffer.
17337
17338 2008-02-01 Dave Love <fx@gnu.org>
17339
17340 * lread.c (read_emacs_mule_char) [len==2]: Index
17341 emacs_mule_charset correctly.
17342
17343 2008-02-01 Dave Love <fx@gnu.org>
17344
17345 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
17346 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
17347 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
17348 treated specially.)
17349 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
17350 (detected_mask): Remove Big5 bits.
17351
17352 2008-02-01 Kenichi Handa <handa@m17n.org>
17353
17354 The following changes are to make the font rescaling facility
17355 compatible with Emacs 21.
17356
17357 * xfaces.c (Vface_font_rescale_alist): Rename from
17358 Vface_resizing_fonts.
17359 (struct font_name): Rename member resizing_ratio to rescale_ratio.
17360 (font_rescale_ratio): Rename from font_resizing_ratio.
17361 (split_font_name): Set font->rescale_ratio.
17362 (better_font_p): Pay attention to font->rescale_ratio.
17363 (build_scalable_font_name): Likewise. Change RESX, and RESY
17364 fields.
17365 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
17366
17367 2008-02-01 Kenichi Handa <handa@m17n.org>
17368
17369 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
17370 (Qutf_16_le): Remove these variables.
17371 (syms_of_coding): Don't DEFSYM them.
17372 (decode_coding_utf_16): Fix handling of BOM.
17373 (encode_coding_utf_16): Fix handling of BOM.
17374
17375 2008-02-01 Kenichi Handa <handa@m17n.org>
17376
17377 * fileio.c (Finsert_file_contents): On replacing, before decoding
17378 the file into the work buffer, set point of the work buffer to the end.
17379
17380 2008-02-01 Dave Love <fx@gnu.org>
17381
17382 * coding.c (Fcheck_coding_systems_region): Fix type errors.
17383
17384 2008-02-01 Dave Love <fx@gnu.org>
17385
17386 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17387 and fix C types.
17388
17389 2008-02-01 Kenichi Handa <handa@m17n.org>
17390
17391 * xdisp.c (SKIP_GLYPHS): New macro.
17392 (set_cursor_from_row): Pay attention to string display properties.
17393
17394 * category.c (copy_category_entry): Fix for the case that RANGE
17395 is an integer.
17396
17397 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
17398
17399 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
17400
17401 2008-02-01 Kenichi Handa <handa@m17n.org>
17402
17403 * charset.c (Fcharset_id_internal): New function.
17404 (syms_of_charset): Defsubr it.
17405
17406 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
17407 with the last arg charset_list acquired from coding.
17408 (Fdefine_coding_system_internal): For ccl-based coding system, fix
17409 the attribute coding_attr_ccl_valids.
17410
17411 * coding.h (enum define_coding_ccl_arg_index): Set the first
17412 member coding_arg_ccl_decoder to coding_arg_max.
17413
17414 * ccl.h (ccl_driver): Adjust prototype.
17415
17416 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
17417 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
17418 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
17419 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
17420 last arg Qnil.
17421
17422 2008-02-01 Kenichi Handa <handa@m17n.org>
17423
17424 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
17425 call encode_char.
17426
17427 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
17428
17429 2008-02-01 Dave Love <fx@gnu.org>
17430
17431 * composite.c (syms_of_composite): Make composition_hash_table weak.
17432
17433 2008-02-01 Kenichi Handa <handa@m17n.org>
17434
17435 * dispextern.h (check_face_attributes, generate_ascii_font_name)
17436 (font_name_registry): Don't extern them.
17437 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
17438
17439 * fontset.h (Qfontset): Don't extern it.
17440 (new_fontset_from_font_name): Extern it.
17441
17442 * fontset.c: Give 8 extra slots to fontset objects.
17443 (Qfontset_info): New variable.
17444 (syms_of_fontset): Defsym it.
17445 (FONTSET_FALLBACK): New macro.
17446 (fontset_face): Try also the default fontset.
17447 (make_fontset): Realize a fallback fontset from the default fontset.
17448 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
17449 using split_font_name_into_vector and build_font_name_from_vector.
17450 (Fset_fontset_font): Access the elements of font_spec by enum
17451 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
17452 name by using split_font_name_into_vector.
17453 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
17454 generate a proper font name from the fontset name. Update
17455 Vfontset_alias_alist.
17456 (n_auto_fontsets): New variable.
17457 (new_fontset_from_font_name): New function.
17458 (Ffont_info): Store the information about fonts generated from the
17459 default fontset in the first extra slot of the returned char-table.
17460
17461 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
17462 (font_name_registry): Delete function.
17463 (split_font_name_into_vector): New function.
17464 (build_font_name_from_vector): New function.
17465 (font_list): The argument REGISTRY is now a list of registry names.
17466 (choose_face_font): If we are choosing an ASCII font, and ATTRS
17467 specifies an explicit font name, return the name as is. Make a
17468 list of registy names.
17469
17470 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
17471 of x_new_fontset.
17472 (Fx_create_frame): Don't call x_new_fontset here. Just use
17473 x_list_fonts to check the existence of fonts.
17474
17475 * xterm.h (x_new_fontset): Adjust prototype.
17476
17477 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
17478 string. Use new_fontset_from_font_name to create a fontset from a
17479 font name.
17480
17481 2008-02-01 Kenichi Handa <handa@m17n.org>
17482
17483 * syntax.c (Vfind_word_boundary_function_table): New name for
17484 Vnext_word_boundary_function_table.
17485 (find-word-boundary-function-table): New name for
17486 next-word-boundary-function-table.
17487
17488 2008-02-01 Dave Love <fx@gnu.org>
17489
17490 * Makefile.in: Fix some dependencies.
17491
17492 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
17493 set it to nil before returning.
17494
17495 * composite.c (update_compositions): Fix type error.
17496
17497 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
17498
17499 2008-02-01 Kenichi Handa <handa@m17n.org>
17500
17501 * xterm.c (x_new_font): Optimize for the case that the font is
17502 already set for the frame.
17503
17504 2008-02-01 Kenichi Handa <handa@m17n.org>
17505
17506 * chartab.c (char_table_ascii): Check if the char table contents
17507 is sub-char-table or not.
17508 (char_table_set, char_table_set_range): Fix argument to
17509 char_table_ascii.
17510
17511 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
17512 (detect_coding_utf_8, detect_coding_utf_16)
17513 (detect_coding_emacs_mule, detect_coding_iso_2022)
17514 (detect_coding_sjis, detect_coding_big5)
17515 (detect_coding_ccl, detect_coding_charset): Change argument MASK
17516 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
17517 sequence is valid in this coding system. Change callers.
17518 (MAX_ANNOTATION_LENGTH): New macro.
17519 (ADD_ANNOTATION_DATA): New macro.
17520 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
17521 ADD_ANNOTATION_DATA. Change the format of annotation data.
17522 (ADD_CHARSET_DATA): New macro.
17523 (emacs_mule_char): New argument ID. Change callers.
17524 (decode_coding_emacs_mule, decode_coding_iso_2022)
17525 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17526 Produce charset annotation data in coding->charbuf.
17527 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
17528 to charset annotation data in coding->charbuf.
17529 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
17530 coding->common_flags if the coding system is iso-2022 based and
17531 uses designation.
17532 (produce_composition): Adjust for the new annotation data format.
17533 (produce_charset): New function.
17534 (produce_annotation): Handle charset annotation.
17535 (handle_composition_annotation, handle_charset_annotation): New
17536 functions.
17537 (consume_chars): Handle charset annotation. Utilize the above two
17538 functions.
17539 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
17540 buffer, get the deleted text as a string and set
17541 coding->src_object to that string.
17542 (detect_coding, detect_coding_system): Use the new struct
17543 coding_detection_info.
17544
17545 * coding.h (struct coding_detection_info): New structure.
17546 (struct coding_system): Adjust prototype of the member `detector'.
17547 (CODING_ANNOTATE_CHARSET_MASK): New macro.
17548
17549 2008-02-01 Kenichi Handa <handa@m17n.org>
17550
17551 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
17552
17553 2008-02-01 Dave Love <fx@gnu.org>
17554
17555 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
17556 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
17557 to new local and nullify apropos_accumulate before returning.
17558 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
17559
17560 2008-02-01 Kenichi Handa <handa@m17n.org>
17561
17562 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
17563 correctly.
17564
17565 2008-02-01 Dave Love <fx@gnu.org>
17566
17567 * fns.c (Flanginfo): Call synchronize_system_time_locale.
17568
17569 2008-02-01 Kenichi Handa <handa@m17n.org>
17570
17571 The following changes are to make character composition happen
17572 automatically on displaying.
17573
17574 * Makefile.in (lisp, shortlisp): Add composite.elc.
17575
17576 * composite.h (Qauto_composed, Vauto_composition_function)
17577 (Qauto_composition_function): Extern them.
17578
17579 * composite.c (Vcomposition_function_table)
17580 (Qcomposition_function_table): Delete variables.
17581 (Qauto_composed, Vauto_composition_function)
17582 (Qauto_composition_function): New variables.
17583 (run_composition_function): Don't call
17584 compose-chars-after-function.
17585 (update_compositions): Clear `auto-composed' text property.
17586 (compose_chars_in_text): Delete this function.
17587 (syms_of_composite): Staticpro Qauto_composed and
17588 Qauto_composition_function. Declare Vauto_composition_function as
17589 a Lisp variable.
17590
17591 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
17592
17593 * xdisp.c (it_props): Add an entry for Qauto_composed.
17594 (handle_auto_composed_prop): New function.
17595
17596 * xselect.c (selection_data_to_lisp_data): Don't call
17597 compose_chars_in_text.
17598
17599 2008-02-01 Dave Love <fx@gnu.org>
17600
17601 * keyboard.c (read_char): Modify checking around use of
17602 Vkeyboard_translate_table.
17603
17604 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17605 and fix C types.
17606
17607 2008-02-01 Kenichi Handa <handa@m17n.org>
17608
17609 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17610 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17611 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17612 the case that the last byte is '\r' correctly.
17613 (decode_coding): Flush out the unprocessed data correctly.
17614 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17615
17616 2008-02-01 Dave Love <fx@gnu.org>
17617
17618 * xterm.c (XTread_socket): Fix changes for defined keysyms.
17619 Add XK_ISO... case.
17620 (xaw_scroll_callback): Revert last change.
17621
17622 2008-02-01 Kenichi Handa <handa@m17n.org>
17623
17624 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17625
17626 2008-02-01 Kenichi Handa <handa@m17n.org>
17627
17628 * xfaces.c (Vface_resizing_fonts): New variable.
17629 (struct font_name): New member `resizing_ratio'.
17630 (font_resizing_ratio): New function.
17631 (split_font_name): Set font->resizing_ratio.
17632 (better_font_p): Pay attention to font->resizing_ratio.
17633 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
17634 RESX, and RESY fields.
17635 (try_alternative_families): Try scalable fonts if
17636 Vscalable_fonts_allowed is not Qt.
17637 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17638
17639 2008-02-01 Dave Love <fx@gnu.org>
17640
17641 * xterm.c (xaw_scroll_callback): Cast correctly.
17642
17643 2008-02-01 Dave Love <fx@gnu.org>
17644
17645 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
17646 (lispy_kana_keys): Comment out.
17647 (make_lispy_event) [XK_kana_A]: Comment out.
17648
17649 * xterm.c (xaw_scroll_callback): Cast call_data.
17650 (XTread_socket): Deal with ASCII keysyms.
17651 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17652
17653 2008-02-01 Dave Love <fx@gnu.org>
17654
17655 * xterm.c (Vx_keysym_table): New.
17656 (syms_of_xterm): Initialize it.
17657 (XTread_socket): Use it.
17658 From head: Eliminate incorrect optimization that tried to avoid
17659 decoding the output of X*LookupString.
17660 (x_get_font_repertory): Delete charset declaration.
17661
17662 2008-02-01 Kenichi Handa <handa@m17n.org>
17663
17664 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17665 return 0.
17666 (Fdefine_coding_system_internal): Setup
17667 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17668
17669 2008-02-01 Dave Love <fx@gnu.org>
17670
17671 * coding.c (Fcheck_coding_system): Doc fix.
17672
17673 * editfns.c (Finsert_byte): Return a proper value.
17674
17675 2008-02-01 Kenichi Handa <handa@m17n.org>
17676
17677 * coding.c (decode_coding): Fix args to translate_chars. Pay
17678 attention to Vstandard_translation_table_for_decode.
17679 (encode_coding): Fix args to translate_chars. Pay attention to
17680 Vstandard_translation_table_for_encode.
17681
17682 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17683 SINGLE_BYTE_CHAR_P.
17684
17685 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17686 not by SINGLE_BYTE_CHAR_P.
17687
17688 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17689 SINGLE_BYTE_CHAR_P.
17690
17691 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17692 SINGLE_BYTE_CHAR_P.
17693
17694 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17695 by SINGLE_BYTE_CHAR_P.
17696
17697 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17698 SINGLE_BYTE_CHAR_P.
17699
17700 2008-02-01 Dave Love <fx@gnu.org>
17701
17702 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17703
17704 2008-02-01 Dave Love <fx@gnu.org>
17705
17706 * fns.c (Flanginfo): Fix typo.
17707
17708 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17709
17710 2008-02-01 Kenichi Handa <handa@m17n.org>
17711
17712 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17713 (detect_coding_emacs_mule, detect_coding_iso_2022)
17714 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17715 incomplete byte sequence. Don't update *mask when correctly detected.
17716 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17717 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17718 (detect_coding, detect_coding_system): Adjust for the changes above.
17719
17720 2008-02-01 Kenichi Handa <handa@m17n.org>
17721
17722 * character.c (char_string): Rename from
17723 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17724 (string_char): Rename from string_char.
17725
17726 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17727 if C is greater than MAX_3_BYTE_CHAR.
17728 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17729 string_char instead of string_char_with_unification.
17730
17731 2008-02-01 Dave Love <fx@gnu.org>
17732
17733 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17734
17735 2008-02-01 Kenichi Handa <handa@m17n.org>
17736
17737 * keymap.c (push_key_description): Pay attention to force_multibyte.
17738
17739 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17740
17741 2008-02-01 Dave Love <fx@gnu.org>
17742
17743 * charset.c (define_charset_internal): Rename `supprementary'.
17744
17745 * Makefile.in (lisp, shortlisp): Remove latin-N.
17746
17747 2008-02-01 Dave Love <fx@gnu.org>
17748
17749 * xfns.c (x_window, x_window): Use use_xim.
17750
17751 * xterm.c (use_xim): Initialize.
17752 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17753 (x_term_init): Maybe set use_xim.
17754
17755 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17756
17757 2008-02-01 Kenichi Handa <handa@m17n.org>
17758
17759 * search.c (search_buffer): Fix case-fold-search of multibyte
17760 characters.
17761 (boyer_moore): Rename the last argument to char_high_bits.
17762
17763 2008-02-01 Kenichi Handa <handa@m17n.org>
17764
17765 * xdisp.c (display_string): Fix for the case of zero width glyph.
17766
17767 * xfns.c (x_set_font): Change the error message of the case that
17768 x_new_fontset returns Qt.
17769
17770 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17771 (Finternal_set_lisp_face_attribute): Use signal_error for the
17772 error of invalid fontset.
17773
17774 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17775 fontset, return Qt.
17776
17777 2008-02-01 Dave Love <fx@gnu.org>
17778
17779 * unexelf.c (unexec): Make .got handling not SGI-specific.
17780
17781 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17782
17783 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17784
17785 * keyboard.c (read_key_sequence): Fix type error.
17786
17787 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17788 type error.
17789
17790 * fontset.c (fontset_add): Return Lisp_Object.
17791
17792 2008-02-01 Dave Love <fx@gnu.org>
17793
17794 * charset.h (charset_ordered_list_tick): Declare extern.
17795
17796 2008-02-01 Kenichi Handa <handa@m17n.org>
17797
17798 The following changes (and some of 2008-02-01 changes of mine) are
17799 for handling syntax, category, and case conversion for unibyte
17800 characters by converting them to multibyte on the fly. With these
17801 changes, we don't have to setup syntax and case tables for unibyte
17802 characters in each language environment.
17803
17804 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17805 multibyte if necessary.
17806
17807 * bytecode.c (Fbyte_code): Likewise.
17808
17809 * character.h (LEADING_CODE_LATIN_1_MIN)
17810 (LEADING_CODE_LATIN_1_MAX): New macros.
17811 (unibyte_to_multibyte_table): Extern it.
17812 (unibyte_char_to_multibyte): New macro.
17813 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17814 (CHAR_LEADING_CODE): New macro.
17815 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17816
17817 * character.c (unibyte_to_multibyte_table): New variable.
17818 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17819 (multibyte_char_to_unibyte): If C is an eight-bit character,
17820 convert it to the corresponding byte value.
17821
17822 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17823 not 1, signals an error. Update the elements of
17824 unibyte_to_multibyte_table.
17825 (init_charset_once): Initialize unibyte_to_multibyte_table.
17826 (syms_of_charset): Define the charset `iso-8859-1'.
17827
17828 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17829 as is without converting it to unibyte. In a unibyte buffer,
17830 convert C to multibyte before checking the syntax.
17831
17832 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17833
17834 * minibuf.c (Fminibuffer_complete_word): Use the macro
17835 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17836
17837 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17838
17839 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17840 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17841 that is zero, convert an eight-bit char to multibyte.
17842 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17843 non-emacs case.
17844 (PATFETCH): Convert an eight-bit char to multibyte.
17845 (HANDLE_UNIBYTE_RANGE): New macro.
17846 (regex_compile): Setup the compiled pattern for multibyte chars
17847 even if the given regex string is unibyte. Use PATFETCH_RAW
17848 instead of PATFETCH in many places. To handle `charset'
17849 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17850 only for ASCII chars.
17851 (analyse_first) <exactn>: Simplify because the compiled pattern
17852 is multibyte.
17853 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17854 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17855 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17856 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17857 multibyte always 1.
17858 (re_search_2): In emacs, set the locale variable multibyte to 1,
17859 otherwise to 0. New local variable target_multibyte. Check it
17860 to decide the multibyteness of STR1 and STR2. If
17861 target_multibyte is zero, convert unibyte chars to multibyte
17862 before translating and checking fastmap.
17863 (TARGET_CHAR_AND_LENGTH): New macro.
17864 (re_match_2_internal): In emacs, set the locale variable multibyte
17865 to 1, otherwise to 0. New local variable target_multibyte. Check
17866 it to decide the multibyteness of STR1 and STR2. Use
17867 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17868 <charset, charset_not>: If multibyte is nonzero, check fastmap
17869 only for ASCII chars. Call bcmp_translate with
17870 target_multibyte, not with multibyte.
17871 <begline>: Declare the local variable C as `unsigned'.
17872 (bcmp_translate): Change the last arg name to target_multibyte.
17873
17874 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17875 the regexp pattern and the matching target. Set cp->buf.multibyte
17876 to the multibyteness of the regexp pattern. Set
17877 cp->but.target_multibyte to the multibyteness of the matching target.
17878 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17879 FETCH_STRING_CHAR_ADVANCE.
17880 (Freplace_match): Convert unibyte chars to multibyte.
17881
17882 * syntax.c (char_quoted, back_comment, scan_words)
17883 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17884 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17885 unibyte chars to multibyte.
17886 (skip_chars): Delete the arg syntaxp, and move the code for
17887 handling syntaxes to skip_syntaxes. Change callers.
17888 Fix the case that the multibyteness of STRING and the current
17889 buffer doesn't match.
17890 (skip_syntaxes): New function.
17891 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17892 SINGLE_BYTE_CHAR_P.
17893
17894 2008-02-01 Kenichi Handa <handa@m17n.org>
17895
17896 * xfaces.c (QCfontset): New variable.
17897 (LFACE_FONTSET): New macro.
17898 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17899 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17900 (Finternal_set_lisp_face_attribute)
17901 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17902 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17903 check also LFACE_FONTSET_INDEX.
17904 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17905 attrs[LFACE_FONT_INDEX].
17906 (syms_of_xfaces): Intern and staticpro QCfontset.
17907
17908 * dispextern.h (enum lface_attribute_index): New member
17909 LFACE_FONTSET_INDEX.
17910
17911 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17912
17913 2008-02-01 Kenichi Handa <handa@m17n.org>
17914
17915 * coding.c (coding_set_destination): Fix coding->destination for
17916 the case converting a region.
17917 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17918 (encode_coding_object): Fix coding->dst_pos and
17919 coding->dst_pos_byte for the case converting a region.
17920
17921 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17922
17923 * character.h (BYTE8_STRING): New macro.
17924
17925 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17926
17927 2008-02-01 Kenichi Handa <handa@m17n.org>
17928
17929 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17930 characters by octal form.
17931
17932 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17933
17934 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17935 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17936 _fetch_multibyte_char_len.
17937 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17938
17939 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17940
17941 * casefiddle.c (casify_object): Simplify. Handle the case that
17942 the case conversion change the byte length.
17943 (casify_region): Likewise.
17944
17945 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17946
17947 * character.c (_fetch_multibyte_char_len): Delete this variable.
17948 (syms_of_character): Setup Vprintable_chars.
17949
17950 * editfns.c (Fchar_equal): Fix for the unibyte case.
17951 (Finsert_byte): New function.
17952 (syms_of_editfns): Defsubr it.
17953
17954 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17955 of direct code 0x3ffff.
17956
17957 * search.c (Freplace_match): Fix for the unibyte case.
17958
17959 2008-02-01 Kenichi Handa <handa@m17n.org>
17960
17961 * lread.c (safe_to_load_p): Fix the logic.
17962
17963 * syntax.c (scan_words): Don't treat characters belonging to
17964 different scripts as constituting a word.
17965
17966 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17967
17968 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17969
17970 * emacs.c (main): In the case of --unibyte, instead of aborting on
17971 finding non-empty buffer, make it unibyte.
17972
17973 2008-02-01 Kenichi Handa <handa@m17n.org>
17974
17975 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17976 to create a fontset.
17977
17978 2008-02-01 Dave Love <fx@gnu.org>
17979
17980 * character.c (Funibyte_char_to_multibyte): Doc fix.
17981
17982 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17983
17984 2008-02-01 Kenichi Handa <handa@m17n.org>
17985
17986 * fontset.c (fontset_add): Make the type `int'.
17987 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17988
17989 * character.c (unibyte_char_to_multibyte)
17990 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17991 charset_unibyte, not charset_primary.
17992
17993 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17994
17995 * charset.c (charset_unibyte): Rename from charset_primary.
17996 (Funibyte_charset): Rename from Fprimary_charset.
17997 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17998 (syms_of_charset): Adjust for the above changes.
17999
18000 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18001 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18002 it->multibyte_p is zero.
18003
18004 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
18005 Delete extern.
18006
18007 2008-02-01 Kenichi Handa <handa@m17n.org>
18008
18009 * coding.c (Fdefine_coding_system_internal): Fix category setting
18010 for a coding system of type iso-2022.
18011
18012 2008-02-01 Kenichi Handa <handa@m17n.org>
18013
18014 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
18015
18016 2008-02-01 Kenichi Handa <handa@m17n.org>
18017
18018 * syntax.c (Vnext_word_boundary_function_table): New variable.
18019 (next-word-boundary-function-table): Declare it as a Lisp variable
18020 in syms_of_syntax.
18021 (scan_words): Call functions in Vnext_word_boundary_function_table
18022 if any.
18023
18024 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
18025
18026 * fontset.c (fs_load_font): If fontp->charset is not negative,
18027 return fontp without setting its members.
18028
18029 2008-02-01 Dave Love <fx@gnu.org>
18030
18031 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
18032
18033 * m/sparc.h (HAVE_ALLOCA): Delete.
18034
18035 * s/irix6-5.h: Don't include strings.h.
18036 (bcopy, bzero, bcmp): Don't undef.
18037
18038 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
18039
18040 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
18041 (TIOCSIGSEND): Don't test IRIX6.
18042 (bcopy, bzero, bcmp): Define conditionally.
18043
18044 2008-02-01 Kenichi Handa <handa@m17n.org>
18045
18046 * buffer.c (Qas, Qmake, Qto): New variables.
18047 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
18048 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
18049
18050 * callproc.c (Fcall_process): Don't call insert_1_both directly if
18051 we are inserting a process output into a multibyte buffer.
18052
18053 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
18054 multibyte_char_to_unibyte.
18055
18056 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
18057 by the primary charset, make it eight-bit char.
18058 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
18059
18060 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
18061 (charset_8_bit__control, charset_8_bit_graphic)
18062 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
18063 (define_charset_internal): New function.
18064 (syms_of_charset): Call define_charset_internal for pre-defined
18065 charsets.
18066
18067 * charset.h (charset_8_bit): Extern it.
18068
18069 * coding.c (make_conversion_work_buffer): Adjust for the change
18070 of Fset_buffer_multibyte.
18071 (encode_coding_raw_text): Increment p0 in the loop.
18072
18073 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
18074
18075 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
18076 for the change of Fset_buffer_multibyte.
18077
18078 * fns.c (Fstring_to_multibyte): New function.
18079 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
18080
18081 2008-02-01 Dave Love <fx@gnu.org>
18082
18083 * xfns.c (x_put_x_image): Declare args.
18084
18085 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
18086 (try_font_list): Declare an arg.
18087
18088 * xdisp.c (message2_nolog, set_message): Declare an arg.
18089
18090 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
18091
18092 * syntax.c (scan_sexps_forward): Declare an arg.
18093
18094 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
18095 Declare an arg.
18096
18097 * lisp.h (Fnew_fontset): Declare.
18098
18099 * keymap.c (push_key_description): Call CHARACTERP correctly.
18100
18101 * fontset.c (fontset_add): Declare args. Call make_number correctly.
18102 (face_for_char): Delete unused vars.
18103 (Fset_fontset_font): Doc fix. Delete unused vars.
18104
18105 * doc.c (Fsubstitute_command_keys): Delete unused vars.
18106
18107 * composite.c (update_compositions): Declare arg.
18108
18109 * cm.c (calccost, cmgoto): Declare args.
18110
18111 * charset.c: Remove `emacs' conditional. Doc fixes.
18112 (map_char_table_for_charset): Declare.
18113
18114 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
18115
18116 * ccl.c: Remove `emacs' conditional.
18117
18118 2008-02-01 Kenichi Handa <handa@m17n.org>
18119
18120 The following changes are to allow specifying multiple font
18121 patterns for a character range (specified by script or charset).
18122
18123 * Makefile.in (abbrev.o): Depend on syntax.h.
18124 (xfaces.o): Depend on charset.h.
18125
18126 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
18127 SINGLE_BYTE_CHAR_P.
18128
18129 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
18130
18131 * character.h (Vchar_script_table): Extern it.
18132
18133 * character.c (Vscript_alist): Delete.
18134 (Vchar_script_table, Qchar_script_table): New variable.
18135 (syms_of_character): Declare Vchar_script_table as a lisp variable
18136 and initialize it.
18137
18138 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
18139 have property char-table-extra-slots, make no extra slot.
18140
18141 * dispextern.h (struct face): Delete member `charset'.
18142 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
18143 SINGLE_BYTE_CHAR_P.
18144 (choose_face_font, lookup_non_ascii_face, font_name_registry):
18145 Add prototypes.
18146 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
18147 (generate_ascii_font_name): Rename from generate_ascii_font.
18148
18149 * fontset.h (get_font_repertory_func): New prototype.
18150 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
18151 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
18152
18153 * fontset.c (Qprepend, Qappend): New variables.
18154 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
18155 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
18156 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
18157 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
18158 (fontset_ref_and_range, fontset_add, reorder_font_vector)
18159 (load_font_get_repertory): New functions.
18160 (fontset_set): Delete.
18161 (fontset_face): New arg FACE. Return face ID, not face.
18162 Complete re-write to handle new fontset structure. Change caller.
18163 (free_face_fontset): Use ASET istead of AREF (X) = Y.
18164 (face_for_char): Don't call lookup_face.
18165 (make_fontset_for_ascii_face): New arg FACE.
18166 (fs_load_font): New arg CHARSET_ID. Don't check
18167 Vfont_encoding_alist here.
18168 (find_font_encoding): New function.
18169 (list_fontsets): Use STRINGP, not ! NILP.
18170 (accumulate_script_ranges): New function.
18171 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
18172 re-written to handle new fontset structure.
18173 (Ffontset_font): Return a copy of element.
18174 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
18175 docstring of font-encoding-alist.
18176
18177 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
18178 (Fset_fotset_font): Fix arguments to 5.
18179
18180 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
18181
18182 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
18183 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18184 (highlight_trailing_whitespace): Adjust for the change of
18185 lookup_named_face.
18186
18187 * xfaces.c: Include charset.h.
18188 (load_face_font): Delete argument C. Change caller.
18189 (generate_ascii_font_name): Rename from generate_ascii_font.
18190 (font_name_registry): New function.
18191 (cache_face): Store ascii faces before non-ascii faces in buckets.
18192 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
18193 Lookup only ascii faces.
18194 (lookup_non_ascii_face): New function.
18195 (lookup_named_face): Delete argument C. Change caller.
18196 (lookup_derived_face): Delete argument C. Change caller.
18197 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
18198 a string, just call font_list with it.
18199 (choose_face_font): Delete arguments FACE and C. New arg
18200 FONT_SPEC. Change caller.
18201 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
18202 Change caller.
18203 (realize_non_ascii_face): New function.
18204 (realize_x_face): Call load_face_font here.
18205 (realize_tty_face): Delete argument C. Change caller.
18206 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
18207 get a face ID.
18208 (dump_realized_face): Don't print charset of FACE.
18209
18210 * xfns.c (x_set_font): Always call x_new_fontset and
18211 store_frame_parameter.
18212 (Fx_create_frame): Call x_new_fontset, not x_new_font.
18213 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
18214
18215 * xterm.h (x_get_font_repertory): Extern it.
18216
18217 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18218 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18219 it->multibyte_p is zero.
18220 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18221 (x_new_fontset): If FONTSETNAME doesn't match any existing
18222 fontsets, create a new one.
18223 (x_get_font_repertory): New function.
18224
18225 2008-02-01 Kenichi Handa <handa@m17n.org>
18226
18227 * coding.c (Ffind_coding_systems_region_internal): Detect an
18228 ASCII only string correctly.
18229
18230 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
18231 version is 0.
18232
18233 2008-02-01 Kenichi Handa <handa@m17n.org>
18234
18235 * lread.c: Include "coding.h".
18236 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
18237 (load_each_byte, unread_char): New variables.
18238 (readchar_backlog): Delete.
18239 (readchar): Return a character unless load_each_byte is nonzero.
18240 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
18241 cons. If unread_char is not -1, simply return it.
18242 (unreadchar): Handle the case that readcharfun is
18243 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
18244 (read_multibyte): Delete.
18245 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
18246 (read_emacs_mule_char): New functions.
18247 (Fload): Even if the file doesn't have the extension ".elc", if
18248 safe_to_load_p returns a positive version number, assume that the
18249 file contains bytecompiled code. If the version is less than 22,
18250 load the file while decoding multibyte sequences by emacs-mule.
18251 (readevalloop): Don't use readchar_backlog.
18252 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
18253 (Fread_from_string): Pay attention to the case that STREAM is a cons.
18254 (read_escape): Delete the arg BYTEREP.
18255 (read1): Set load_each_byte to 1 temporarily while handling
18256 #@NUMBER. Don't call read_multibyte.
18257 (read_vector): Call Fread with a cons. If readcharfun is
18258 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
18259 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
18260 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
18261 and Qload_force_doc_strings.
18262
18263 2008-02-01 Kenichi Handa <handa@m17n.org>
18264
18265 * xdisp.c (face_before_or_after_it_pos): Call
18266 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
18267
18268 2008-02-01 Kenichi Handa <handa@m17n.org>
18269
18270 * character.h (TRAILING_CODE_P): New macro.
18271 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
18272 (string_char_with_unification): Fix prototype.
18273 (Vscript_alist): Extern it.
18274
18275 * character.c (Vscript_alist): New variable.
18276 (string_char_with_unification, str_as_unibyte)
18277 (string_escape_byte8): Add `const' to local variables.
18278 (syms_of_character): Declare script-alist as a Lisp variable.
18279
18280 * charset.h (Vcharset_ordered_list): Extern it.
18281 (charset_ordered_list_tick): Extern it.
18282 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
18283 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
18284 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
18285 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
18286 (Funify_charset): Adjust for the change of Funify_charset.
18287
18288 * charset.c (charset_ordered_list_tick): New variable.
18289 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
18290 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
18291 deunify intead of unify a charset.
18292 (string_xstring_p): Add `const' to local variables.
18293 (find_charsets_in_text): Add `const' to arguments and local variables.
18294 (encode_char): Adjust for the change of Funify_charset. Fix
18295 detecting of invalid code.
18296 (Fset_charset_priority): Increment charset_ordered_list_tick.
18297 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
18298 and TO_CODE.
18299
18300 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
18301 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
18302 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
18303 (decode_coding_ccl, consume_chars)
18304 (Ffind_coding_systems_region_internal)
18305 (Fcheck_coding_systems_region): Add `const' to local variables.
18306
18307 * print.c (print_object): Use octal form for printing the
18308 contents of a bool vector.
18309
18310 2008-02-01 Dave Love <fx@gnu.org>
18311
18312 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
18313 <version == 20>: Refuse to load.
18314
18315 2008-02-01 Dave Love <fx@gnu.org>
18316
18317 * fns.c: Move coding.h.
18318 (Qcodeset, Qdays, Qmonths): New.
18319 (concat): Use CHARACTERP instead of INTEGERP.
18320 (Flocale_codeset): Delete.
18321 (Flanginfo): New function.
18322 (syms_of_fns): Change accordingly.
18323
18324 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
18325
18326 2008-02-01 Dave Love <fx@gnu.org>
18327
18328 * casetab.c (init_casetab_once, init_casetab_once): Fix
18329 CHAR_TABLE_SET call.
18330
18331 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
18332
18333 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
18334
18335 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
18336 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
18337 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
18338
18339 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
18340
18341 * coding.c (ENCODE_DESIGNATION, decode_eol)
18342 (make_conversion_work_buffer, code_conversion_restore)
18343 (Fdefine_coding_system_internal): Convert Lisp types.
18344 (code_conversion_restore): Use EQ, not ==.
18345 (Fencode_coding_string): Fix code_convert_string call.
18346
18347 * coding.h (code_convert_region): Fix prototype.
18348
18349 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
18350
18351 * fontset.c (fontset_ref, fontset_set, fs_load_font)
18352 (Ffontset_info): Convert Lisp types.
18353
18354 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
18355
18356 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
18357
18358 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
18359
18360 * chartab.c: Include "...h", not <...h> in some cases.
18361
18362 * callproc.c (Fcall_process): Remove unused variables.
18363
18364 2008-02-01 Dave Love <fx@gnu.org>
18365
18366 * coding.c (Fset_coding_system_priority): Allow null arg list.
18367
18368 2008-02-01 Dave Love <fx@gnu.org>
18369
18370 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18371 (Fself_insert_and_exit): Use CHARACTERP.
18372
18373 * callproc.c (Fcall_process): Remove unused vars.
18374
18375 * xterm.c (XTread_socket): Add extra dead keysyms.
18376
18377 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
18378
18379 * dispextern.h: Remove prototypes for redraw_frame,
18380 redraw_garbaged_frames.
18381
18382 * cmds.c (Fself_insert_command): Use CHARACTERP.
18383
18384 * chartab.c (make_sub_char_table): Remove unused var.
18385 (Fset_char_table_default, Fmap_char_table): Doc fix.
18386
18387 * keymap.c (access_keymap): Remove generic char code.
18388 (push_key_description): Use CHARACTERP.
18389
18390 2008-02-01 Dave Love <fx@gnu.org>
18391
18392 * charset.c: Doc fixes.
18393 (Funify_charset): Extra checking.
18394
18395 2008-02-01 Dave Love <fx@gnu.org>
18396
18397 * lread.c: Remove some unused variables.
18398 (safe_to_load_p): If safe, return the magic number version byte.
18399 (Fload): Maybe use load-with-code-conversion.
18400
18401 2008-02-01 Kenichi Handa <handa@m17n.org>
18402
18403 * category.c (Fmodify_category_entry): Don't modify the contents
18404 of category_set for characters out of the range. Avoid
18405 unnecessary modification.
18406
18407 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
18408 Vchar_unify_table. The default value of the table is now nil.
18409
18410 * character.c (syms_of_character): Setup Vchar_width_table for
18411 eight-bit-control and raw-byte chars.
18412
18413 * charset.h (enum define_charset_arg_index): Delete
18414 charset_arg_parents and add charset_arg_subset and
18415 charset_arg_superset.
18416 (enum charset_attr_index): Delete charset_parents and add
18417 charset_subset and charset_superset.
18418 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
18419 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
18420 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
18421 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
18422 (CHARSET_SUPERSET): New macros.
18423 (charset_work): Extern it.
18424 (ENCODE_CHAR): Use charset_work.
18425 (CHAR_CHARSET_P): Adjust for the change of encoder format.
18426 (map_charset_chars): Extern it.
18427
18428 * charset.c (load_charset_map): Set the default value of encoder
18429 and deunifier char-tables to nil.
18430 (map_charset_chars): Change argument. Change callers. Use
18431 map_char_table_for_charset instead of map_char_table.
18432 (Fmap_charset_chars): New optional args from_code and to_code.
18433 (Fdefine_charset_internal): Adjust for the change of
18434 `define-charset' (:parents -> :subset or :superset).
18435 (charset_work): New variable.
18436 (encode_char, syms_of_charset): Adjust for the change of
18437 Fdefine_charset_internal.
18438 (Ffind_charset_string): Setup the vector `charsets' correctly.
18439
18440 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
18441 the previous change.
18442 (char_table_ref_and_range): Adjust for the above change.
18443 (map_sub_char_table_for_charset): New function.
18444 (map_char_table_for_charset): New function.
18445
18446 * keymap.c (describe_vector): Handle a char-table directly here.
18447 (describe_char_table): Delete.
18448
18449 * lisp.h (map_charset_chars): Delete.
18450
18451 2008-02-01 Dave Love <fx@gnu.org>
18452
18453 * fns.c (count_combining): Comment out (unused).
18454 (Flocale_codeset): New.
18455 (syms_of_fns): Defsubr it.
18456
18457 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
18458 (size_t): Remove.
18459
18460 2008-02-01 Dave Love <fx@gnu.org>
18461
18462 * Makefile.in (chartab.o): Depend on charset.h.
18463
18464 2008-02-01 Kenichi Handa <handa@m17n.org>
18465
18466 * character.c (syms_of_character): Set the default value of
18467 Vprintable_chars to Qnil.
18468
18469 2008-02-01 Dave Love <fx@gnu.org>
18470
18471 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
18472
18473 2008-02-01 Kenichi Handa <handa@m17n.org>
18474
18475 * charset.c (load_charset_map): Handle the case that from < to
18476 correctly.
18477
18478 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
18479 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
18480 Pay attention to raw-8-bit chars.
18481
18482 2008-02-01 Kenichi Handa <handa@m17n.org>
18483
18484 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
18485 It is not bytecompiled now.
18486
18487 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
18488 (charset_jisx0208): New variables.
18489 (Fdefine_charset_internal): Setup them if appropriate.
18490 (init_charset_once): Initialize them to -1.
18491
18492 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
18493 (charset_jisx0208): Extern them.
18494
18495 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
18496 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
18497 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
18498 (setup_iso_safe_charsets): Fix arguments to Fassq.
18499 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
18500 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
18501 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
18502 (encode_coding_iso_2022): Change the 1st arg to
18503 ENCODE_ISO_CHARACTER to a variable.
18504
18505 2008-02-01 Kenichi Handa <handa@m17n.org>
18506
18507 * charset.h (enum define_charset_arg_index): New enums
18508 charset_arg_min_code and charset_arg_max_code.
18509 (struct charset): New member char_index_offset.
18510
18511 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
18512 Take charset->char_index_offset into account.
18513 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
18514 args[charset_arg_max_code]. Setup charset.char_index_offset.
18515 (syms_of_charset): Fix args to Fdefine_charset_internal.
18516
18517 2008-02-01 Dave Love <fx@gnu.org>
18518
18519 * coding.c (decode_coding_utf_8): Reject overlong sequences.
18520
18521 2008-02-01 Dave Love <fx@gnu.org>
18522
18523 * coding.c: Doc fixes.
18524 (Fcoding_system_aliases): Fix return value.
18525 (Qmac): Remove (duplicated) definition.
18526
18527 2008-02-01 Dave Love <fx@gnu.org>
18528
18529 * charset.c (Fcharset_priority_list, Fset_charset_priority):
18530 New functions.
18531
18532 * character.c (Fstring): Doc fix.
18533
18534 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
18535
18536 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
18537 (font-encoding-alist): Doc fix.
18538
18539 2008-02-01 Dave Love <fx@gnu.org>
18540
18541 * term.c (costs_set): Declare static, non-initialized for pcc.
18542 (encode_terminal_code): Remove unused var.
18543
18544 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18545 for K&R.
18546
18547 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
18548
18549 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
18550 (suffixes): Move out of make_subsidiaries for K&R.
18551
18552 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
18553
18554 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
18555
18556 2008-02-01 Dave Love <fx@gnu.org>
18557
18558 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
18559
18560 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
18561
18562 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
18563
18564 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
18565
18566 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
18567
18568 2008-02-01 Kenichi Handa <handa@m17n.org>
18569
18570 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
18571 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
18572
18573 2008-02-01 Kenichi Handa <handa@m17n.org>
18574
18575 * coding.c (decode_coding_charset): Adjust for the change of
18576 Fdefine_coding_system_internal.
18577 (Fdefine_coding_system_internal): For a coding system of
18578 `charset' type, store a list of charset IDs in
18579 `charset_attr_charset_valids' element of coding attributes.
18580
18581 2008-02-01 Kenichi Handa <handa@m17n.org>
18582
18583 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
18584 (emacs_mule_char): New arg src. Delete arg `composition'. Change
18585 caller. Handle 2-byte and 3-byte charsets correctly.
18586 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
18587 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
18588 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
18589 (DECODE_EMACS_MULE_21_COMPOSITION): Call
18590 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
18591 sequence.
18592 (decode_coding_emacs_mule): Handle composition correctly. Rewind
18593 `src' and `consumed_chars' correctly before calling emacs_mule_char.
18594 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
18595 and alt&rule composition.
18596 (decode_coding_iso_2022): Handle composition correctly.
18597 (init_coding_once): Setup emacs_mule_bytes for private charsets.
18598
18599 * charset.c (Fdefine_charset_internal): Fix bug for the case of
18600 re-defining a charset. If the charset has :emacs-mule-id, setup
18601 emacs_mule_bytes.
18602 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18603
18604 2008-02-01 Kenichi Handa <handa@m17n.org>
18605
18606 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18607 (encode_coding_big5, encode_coding_charset): If coding requires safe
18608 encoding, produce a character specified by
18609 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18610
18611 2008-02-01 Dave Love <fx@gnu.org>
18612
18613 * xterm.c (XSetIMValues): Declare.
18614
18615 * process.c: Conditionally include sys/wait.h, pty.h.
18616
18617 * print.c (print_object): Fix print format for 64-bit systems.
18618
18619 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18620
18621 * buffer.c (emacs_strerror): Declare.
18622
18623 * fontset.c (Fclear_face_cache): Declare.
18624 (accumulate_font_info): Comment-out (unused).
18625 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18626 variables.
18627
18628 * character.h (string_escape_byte8): Declare.
18629
18630 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18631 unused vars.
18632 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18633 (Fmap_charset_chars): Doc fix.
18634
18635 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18636 (Fset_coding_system_priority, Fset_coding_system_priority)
18637 (Fdefine_coding_system_internal): Doc fix.
18638
18639 2008-02-01 Dave Love <fx@gnu.org>
18640
18641 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18642
18643 2008-02-01 Kenichi Handa <handa@m17n.org>
18644
18645 * character.c (string_escape_byte8): Make multibyte string with
18646 correct size.
18647
18648 * charset.c (Fmake_char): Delete unnecessary code.
18649
18650 2008-02-01 Kenichi Handa <handa@m17n.org>
18651
18652 * xfns.c (x_encode_text): Allocate coding.destination here, and
18653 call encode_coding_object with dst_object Qnil.
18654
18655 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18656 multibyte form correctly.
18657
18658 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18659 against Vfont_encoding_alist.
18660
18661 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18662 handling of charset list.
18663 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18664 (decode_coding_object): Move point to coding->dst_pos before
18665 calling post-read-conversion function.
18666 (encode_coding_object): Give correct arguments to
18667 pre-write-conversion. Ignore the return value of
18668 pre-write-conversion function. Pay attention to the case that
18669 pre-write-conversion changes the current buffer. If dst_object is
18670 Qt, even if coding->src_bytes is zero, allocate at least one byte
18671 to coding->destination.
18672
18673 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18674
18675 * charset.c (Fmake_char): Make it more backward compatible.
18676 (Fmap_charset_chars): Fix docstring.
18677
18678 2008-02-01 Dave Love <fx@gnu.org>
18679
18680 * coding.c: Doc fixes.
18681 (Fdefine_coding_system_alias): Use names, not symbols, in
18682 coding-system-alist.
18683
18684 2008-02-01 Kenichi Handa <handa@m17n.org>
18685
18686 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18687 of calling free_realized_face.
18688
18689 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
18690
18691 * charset.c (read_hex): Don't treat SPC as a comment starter.
18692 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18693 (Fdecode_char): Fix typo.
18694
18695 2008-02-01 Kenichi Handa <handa@m17n.org>
18696
18697 * charset.h (struct charset): New member `code_space_mask'.
18698
18699 * coding.c (coding_set_source): Delete the local variable beg_byte.
18700 (encode_coding_charset, Fdefine_coding_system_internal):
18701 Delete the local variable charset.
18702 (Fdefine_coding_system_internal): Setup
18703 attrs[coding_attr_charset_valids] correctly.
18704
18705 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18706 member to check if CODE is valid or not.
18707 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18708 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18709 is within the range of charset->min_code and carset->max_code.
18710
18711 2008-02-01 Dave Love <fx@gnu.org>
18712
18713 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18714
18715 * dispextern.h (generate_ascii_font): Fix return type.
18716
18717 * xfaces.c (generate_ascii_font): Fix arg declaration.
18718
18719 * coding.c (coding_inherit_eol_type)
18720 (Fset_terminal_coding_system_internal)
18721 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18722
18723 2008-02-01 Kenichi Handa <handa@m17n.org>
18724
18725 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18726 multiple charsets correctly.
18727
18728 2008-02-01 Kenichi Handa <handa@m17n.org>
18729
18730 * search.c (boyer_moore): Fix handling of multibyte character
18731 translation.
18732
18733 * xdisp.c (display_mode_element): When the variable `elt' is
18734 changed, update `this' and `lisp_string'.
18735
18736 2008-02-01 Kenichi Handa <handa@m17n.org>
18737
18738 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18739
18740 * callproc.c (Fcall_process): Be sure to give the current buffer
18741 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18742
18743 * charset.c (struct charset_map_entries): New struct.
18744 (load_charset_map): Rename from parse_charset_map. New args
18745 entries and n_entries. Change caller.
18746 (load_charset_map_from_file): Rename from load_charset_map.
18747 Change caller. New arg control_flag. Call load_charset_map at
18748 the tail.
18749 (load_charset_map_from_vector): New function.
18750 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18751 (encode_char): If the charset is compact, change a character index
18752 to a code point.
18753
18754 * coding.c (coding_alloc_by_making_gap): Check the case that the
18755 source and destination are the same correctly.
18756 (decode_coding_raw_text): Set coding->consumed_char and
18757 coding->consumed to 0.
18758 (produce_chars): If coding->chars_at_source is nonzero, update
18759 coding->consumed_char and coding->consumed before calling
18760 alloc_destination.
18761 (Fdefine_coding_system_alias): Register ALIAS in
18762 Vcoding_system_alist.
18763 (syms_of_coding): Define `no-conversion' coding system at the tail.
18764
18765 * fileio.c (Finsert_file_contents): Set coding_system instead of
18766 val. If the current buffer is multibyte, always call
18767 decode_coding_gap.
18768
18769 * xfaces.c (try_font_list): Give higher priority to fontset's
18770 family than face's family.
18771
18772 2008-02-01 Kenichi Handa <handa@m17n.org>
18773
18774 * callproc.c (Fcall_process): Be sure to give the current buffer
18775 to decode_coding_c_string.
18776
18777 * xfaces.c (try_font_list): Give a family specified in a fontset
18778 higher priority than a family specified in a face.
18779
18780 2008-02-01 Kenichi Handa <handa@m17n.org>
18781
18782 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18783 Fix arguments to insert_from_buffer.
18784
18785 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18786
18787 2008-02-01 Kenichi Handa <handa@m17n.org>
18788
18789 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18790 (decode_coding_gap): Set coding->dst_multibyte correctly.
18791
18792 2008-02-01 Kenichi Handa <handa@m17n.org>
18793
18794 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18795 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18796 (encode_coding_utf_16): Substitute coding->default_char for
18797 non-Unicode characters.
18798 (decode_coding): Don't call record_insert here.
18799 (setup_coding_system): Initialize `surrogate' of
18800 coding->spec.utf_16 to 0.
18801 (EMIT_ONE_BYTE): Fix for multibyte case.
18802
18803 * insdel.c (insert_from_gap): Call record_insert.
18804
18805 2008-02-01 Kenichi Handa <handa@m17n.org>
18806
18807 * casefiddle.c (casify_region): Fix multibyte case.
18808
18809 * character.c (c_string_width): Add return type `int'.
18810 (char_string_with_unification): Delete arg ADVANCED.
18811
18812 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18813 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18814 (CHAR_STRING_ADVANCE): Make it do-while statement.
18815
18816 * chartab.c (sub_char_table_set_range): Optimize for the case
18817 DEPTH == 3. Add workaround code for a GCC optimization bug.
18818
18819 * charset.c (parse_charset_map): Remove an unused variable.
18820
18821 * coding.c: Delete unused variables.
18822
18823 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18824 earlier. If inserted is zero and the coding system doesn't
18825 require flushing, don't call decode_coding_gap.
18826
18827 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18828
18829 2008-02-01 Kenichi Handa <handa@m17n.org>
18830
18831 The following changes are for using Unicode as an internal
18832 character model, and use UTF-8 format for buffer/string
18833 representation.
18834
18835 * .gdbinit (xchartable): Adjust for the change of char table structure.
18836 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18837
18838 * Makefile.in (obj): Add character.o and chartab.o.
18839 (lisp, shortlisp): Remove utf-8.elc.
18840 (*.o): For many files, change dependency on charset.h to
18841 character.h, and add dependency on character.h.
18842 (character.o, chartab.o): New targets.
18843
18844 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18845 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18846 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18847 of "charset.h".
18848
18849 * dired.c, filelock.c: Include "character.h".
18850
18851 * alloc.c: Include "character.h" instead of "charset.h".
18852 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18853 (syms_of_alloc): Remove defsubr for Smake_char_table.
18854
18855 * buffer.c: Include "character.h" instead of "charset.h", don't
18856 include "coding.h".
18857 (Fset_buffer_multibyte): Adjust for UTF-8.
18858
18859 * buffer.h: EXFUN Fbuffer_live_p.
18860
18861 * callproc.c: Include "character.h" instead of "charset.h".
18862 (Fcall_process): Big change for the new code-conversion APIs.
18863
18864 * casetab.c: Include "character.h" instead of "charset.h".
18865 (set_canon, set_identity, shuffle): Adjust for the new
18866 map_char_table spec.
18867 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18868 accessing the char table structure.
18869
18870 * chartab.c: New file that implements char table.
18871
18872 * category.c: Include "character.h".
18873 (copy_category_entry): New function.
18874 (copy_category_table): Call map_char_table and copy_category_entry.
18875 (Fmake_category_table): Initialize all top-level slots.
18876 (char_category_set): New function.
18877 (modify_lower_category_set): Delete.
18878 (Fmodify_category_entry): Call char_table_ref_and_range.
18879
18880 * category.h (CATEGORY_SET): Just call char_category_set.
18881
18882 * ccl.c: Include "character.h".
18883 (Qccl, Qcclp): New variables.
18884 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18885 it's less than 256.
18886 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18887 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18888 and DST type.
18889 (ccl_driver): Change types of argument, adjust code accordingly.
18890 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18891 ccl_driver.
18892 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18893
18894 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18895 New members src_multibyte, dst_multibyte, consumed, and produced.
18896 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18897 (CODING_SPEC_CCL_PROGRAM): New macro.
18898 (ccl_driver): Update prototype.
18899 (Qccl, Qcclp, Fccl_program_p): Extern them.
18900 (CHECK_CCL_PROGRAM): New macro.
18901
18902 * character.c, character.h, chartab.c: New files.
18903
18904 * charset.c: Mostly re-written. Move character and multibyte sequence
18905 handling codes to character.c.
18906
18907 * charset.h: Mostly re-written. Move character and multibyte sequence
18908 handling codes to character.h.
18909
18910 * coding.c, coding.h: Mostly re-written.
18911
18912 * composite.c: Include "character.h" instead of "charset.h".
18913 (CHAR_WIDTH): Move to character.h.
18914 (HASH_KEY, HASH_VALUE): Delete.
18915
18916 * composite.h (enum composition_method): Change order of enumeration
18917 symbols.
18918
18919 * data.c: Include "character.h" instead of "charset.h".
18920 (Faref): Call CHAR_TABLE_REF for a char table.
18921 (Faset): Call CHAR_TABLE_SET for a char table.
18922
18923 * dispextern.h (free_realized_face, check_face_attribytes)
18924 (generate_ascii_font): Extern them.
18925 (free_realized_multibyte_face): Delete extern.
18926
18927 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18928 table structure.
18929
18930 * editfns.c: Include "character.h" instead of "charset.h".
18931 (Fchar_to_string): Always call CHAR_STRING.
18932
18933 * emacs.c (main): Call init_charset_once, init_charset,
18934 syms_of_chartab, and syms_of_character.
18935
18936 * fileio.c: Include "character.h" instead of "charset.h".
18937 (Finsert_file_contents): Big change for the new code-conversion API.
18938 (choose_write_coding_system, Fwrite_region): Likewise.
18939 (build_annotations_2): Delete.
18940 (e_write): Big change for the new code-conversion API.
18941
18942 * fns.c: Include "character.h" instead of "charset.h".
18943 (copy_sub_char_table): Move to chartab.c.
18944 (Fcopy_sequence): Call copy_char_table for a char table.
18945 (concat): Delete codes calling count_multibyte.
18946 (string_char_to_byte, string_byte_to_char): Adjust for the new
18947 multibyte form.
18948 (internal_equal): Adjust for the change of char table structure.
18949 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18950 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18951 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18952 (char_table_translate, optimize_sub_char_table)
18953 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18954 chartab.c.
18955 (char_table_ref_and_index): Delete.
18956 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18957 (Fmd5): Call preferred_coding_system instead of accessing
18958 Vcoding_category_list. Adjust for the new code-conversion API.
18959 (syms_of_fns): Move defsubr for char table related functions to
18960 chartab.c.
18961
18962 * fontset.c: Mostly re-written.
18963
18964 * fontset.h (struct font_info): Change type of the member encoding_type.
18965 (enum FONT_SPEC_INDEX): New enum.
18966 (fontset_font_pattern, fs_load_font): Update prototype.
18967 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18968
18969 * indent.c: Include "character.h" instead of "charset.h".
18970 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18971
18972 * insdel.c: Include "character.h" instead of "charset.h".
18973 (copy_text): Don't refer to Vnonascii_translation_table.
18974 (insert_from_gap): New function.
18975
18976 * keyboard.c: Include "character.h" instead of "charset.h".
18977 (command_loop_1): Never call direct_output_forward_char before
18978 a non-ASCII character.
18979 (read_char): If Vkeyboard_translate_table is a char table, always
18980 translate a character.
18981
18982 * keymap.c: Include "character.h".
18983 (store_in_keymap): Handle the case that IDX is a cons.
18984 (Fdefine_key): Handle the case that KEY is a cons and the car part
18985 is also a cons (range).
18986 (push_key_description): Adjust for the new character code.
18987 (describe_vector): Call describe_char_table for a char table.
18988 (describe_char_table): New function.
18989
18990 * keymap.h (describe_char_table): Extern it.
18991
18992 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18993 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18994 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18995 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18996 Delete.
18997 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18998 structure.
18999 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
19000 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
19001 (CHARTAB_SIZE_BITS_3): New macros.
19002 (chartab_size): Extern it.
19003 (struct Lisp_Char_Table): Re-design.
19004 (struct Lisp_Sub_Char_Table): New structure.
19005 (HASH_KEY, HASH_VALUE): Move from fns.c.
19006 (CHARACTERBITS): Define as 22.
19007 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
19008 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
19009 (GC_SUB_CHAR_TABLE_P): New macro.
19010 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
19011 (code_convert_string_norecord): Deleted extern.
19012 (init_character_once, syms_of_character, init_charset)
19013 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
19014
19015 * lread.c: Include "character.h".
19016 (read_multibyte): New arg NBYTES.
19017 (read_escape): Change the meaning of returned *BYTEREP.
19018 (to_multibyte): Delete.
19019 (read1): Adjust the handling of char table and string.
19020
19021 * print.c: Include "character.h" instead of "charset.h".
19022 (print_string): Convert 8-bit raw bytes to octal form by
19023 string_escape_byte8.
19024 (print_object): Adjust for the new multibyte form. Print 8-bit
19025 raw bytes always in octal form. Handle sub char table correctly.
19026
19027 * process.c: Include "character.h" instead of "charset.h".
19028 (read_process_output, send_process): Adjust for the new
19029 code-conversion API.
19030
19031 * puresize.h (BASE_PURESIZE): Increase.
19032
19033 * regex.c: Include "character.h" instead of "charset.h".
19034 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
19035 (regex_compile): Accept a range whose starting and ending
19036 character have different leading bytes.
19037 (analyse_first): Adjust for the above change.
19038
19039 * search.c: Include "character.h" instead of "charset.h".
19040 (search_buffer, boyer_moore): Adjust for the new multibyte form.
19041 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
19042
19043 * syntax.c: Include "character.h" instead of "charset.h".
19044 (syntax_parent_lookup): Delete.
19045 (Fmodify_syntax_entry): Accept a cons as CHAR.
19046 (skip_chars): Adjust for the new multibyte form.
19047 (init_syntax_once): Call char_table_set_range instead of directly
19048 accessing the structure of a char table.
19049
19050 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
19051 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
19052 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
19053 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
19054
19055 * term.c: Include "buffer.h" and "character.h".
19056 (encode_terminal_code, write_glyphs): Adjust for the new
19057 code-conversion API.
19058 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
19059
19060 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
19061
19062 * xdisp.c: Include "character.h".
19063 (get_next_display_element): Adjust for the new multibyte form.
19064 (disp_char_vector): Adjust for the new char table structure.
19065 (decode_mode_spec_coding): Adjust for the new structure of
19066 coding system.
19067 (decode_mode_spec): Adjust for the new code-conversion API.
19068
19069 * xfaces.c: Include "character.h" instead of "charset.h".
19070 (load_face_font): Adjust for the change of choose_face_font and
19071 FS_LOAD_FONT.
19072 (generate_ascii_font): New function.
19073 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
19074 (set_font_frame_param): Adjust for the change of choose_face_font.
19075 (free_realized_face): Make it public.
19076 (free_realized_faces_for_fontset): Rename from
19077 free_realized_multibyte_face. Free also faces realized for ASCII.
19078 (choose_face_font): Change arguments. Adjust for the change of
19079 fontset_font_pattern and FS_LOAD_FONT.
19080
19081 * xfns.c: Include "character.h".
19082 (x_encode_text): Adjust for the new code-conversion API.
19083
19084 * xselect.c: Don't include "charset.h".
19085 (selection_data_to_lisp_data): Adjust for the new code conversion API.
19086
19087 * xterm.c: Include "character.h".
19088 (x_encode_char): New argument CHARSET. Change caller.
19089 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
19090 Call ENCODE_CHAR instead of SPLIT_CHAR.
19091 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
19092 CHAR_WIDTH instead of CHARSET_WIDTH.
19093 (XTread_socket): Adjust for the new code-conversion API.
19094 (x_new_font): Adjust for the change of FS_LOAD_FONT.
19095 (x_load_font): Adjust for the change of struct font.
19096
19097 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19098
19099 * xfaces.c (face_at_buffer_position): Remove unused vars.
19100
19101 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19102
19103 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
19104 Fix overflow checking.
19105
19106 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19107
19108 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
19109 Cancel previous change.
19110
19111 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19112
19113 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
19114 ccl->eight_bit_control. Fix check for buffer overflow.
19115 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
19116 (ccl_driver): Initialize extra_bytes to 0.
19117
19118 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19119
19120 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
19121 return it ORed with ctrl_modifier.
19122
19123 2008-01-29 Miles Bader <miles@gnu.org>
19124
19125 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
19126
19127 2008-01-28 Jason Rumney <jasonr@gnu.org>
19128
19129 * w32.c (stat): Don't double check for networked drive.
19130
19131 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
19132
19133 * window.c (run_window_configuration_change_hook): New function.
19134 Code extracted from set_window_buffer. Set the selected frame.
19135 (set_window_buffer): Use it.
19136 * window.h (run_window_configuration_change_hook): Declare.
19137 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
19138
19139 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
19140
19141 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
19142
19143 * Makefile.in: Remove references to unused macros.
19144
19145 2008-01-26 Eli Zaretskii <eliz@gnu.org>
19146
19147 * w32.c (g_b_init_get_sid_sub_authority)
19148 (g_b_init_get_sid_sub_authority_count): New static variables.
19149 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
19150 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
19151 (init_user_info): Use them to retrieve uid and gid.
19152 Use 500/513, the Windows defaults, as Administrator's uid/gid.
19153 (fstat): Use pw_uid and pw_gid from the_passwd structure for
19154 st_uid and st_gid of the file.
19155
19156 2008-01-26 Jason Rumney <jasonr@gnu.org>
19157
19158 * w32.c (logon_network_drive): New function.
19159 (stat): Use it.
19160
19161 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
19162
19163 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
19164 invisible text covered with an ellipsis.
19165
19166 2008-01-25 Richard Stallman <rms@gnu.org>
19167
19168 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
19169 jump back to beginning. Move some other initializations after that.
19170 (Qwindow_text_change_functions, Vwindow_text_change_functions):
19171 New variables.
19172 (syms_of_xdisp): Init them.
19173
19174 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
19175
19176 * buffer.c (reset_buffer_local_variables):
19177 Implement `permanent-local-hook'.
19178 (Qpermanent_local_hook): New variable.
19179 (syms_of_buffer): Init and staticpro it.
19180
19181 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
19182
19183 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
19184
19185 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
19186
19187 * fns.c (Fclrhash): Return TABLE.
19188
19189 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19190
19191 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
19192 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
19193 is set even without positional changes.
19194 (x_scroll_bar_clear): Set bar->redraw_needed_p.
19195
19196 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
19197
19198 2008-01-23 Jason Rumney <jasonr@gnu.org>
19199
19200 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
19201
19202 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
19203 the unicode range available in MULE by locale-coding-system.
19204 Improve dbcs lead byte detection. Set event timestamp and modifiers
19205 earlier.
19206
19207 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19208
19209 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
19210 [MAC_OSX] (init_mac_osx_environment): Initialize it.
19211 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
19212 when used on child processes.
19213
19214 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
19215
19216 * dbusbind.c (Fdbus_method_return_internal): Rename from
19217 Fdbus_method_return.
19218 (Fdbus_unregister_object): Move to dbus.el.
19219 (Fdbus_call_method, Fdbus_method_return_internal)
19220 (Fdbus_send_signal): Improve debug messages.
19221
19222 2008-01-20 Martin Rudalics <rudalics@gmx.at>
19223
19224 * undo.c (undo_inhibit_record_point): New variable.
19225 (syms_of_undo): Initialize it.
19226 (record_point): Don't record point when undo_inhibit_record_point
19227 is set.
19228
19229 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
19230
19231 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
19232
19233 * xdisp.c (Qauto_hscroll_mode): New var.
19234 (syms_of_xdisp): Initialize it.
19235 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
19236 window's buffer.
19237 (hscroll_windows): Don't check automatic_hscrolling_p here.
19238
19239 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
19240 vscroll if we're setting window-buffer to the value it already has.
19241
19242 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
19243
19244 * m/intel386.h: Remove references to XENIX.
19245
19246 2008-01-17 Andreas Schwab <schwab@suse.de>
19247
19248 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
19249 instead of HAVE_X86_64_LIB64_DIR.
19250 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
19251
19252 2008-01-17 Glenn Morris <rgm@gnu.org>
19253
19254 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
19255 to HAVE_X86_64_LIB64_DIR.
19256
19257 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
19258
19259 * s/irix3-3.h:
19260 * s/irix4-0.h:
19261 * s/386-ix.h:
19262 * s/domain.h:
19263 * s/hpux9-x11r4.h:
19264 * s/hpux9shxr4.h: Remove files for systems no longer supported.
19265
19266 * sysdep.c: Remove code containing references to symbols defined
19267 by unsupported systems.
19268
19269 2008-01-16 Glenn Morris <rgm@gnu.org>
19270
19271 * coding.c (select-safe-coding-system-function): Doc fix.
19272
19273 2008-01-15 Glenn Morris <rgm@gnu.org>
19274
19275 * config.in: Revert 2008-01-13 change: this is a generated file.
19276
19277 2008-01-13 Tom Tromey <tromey@redhat.com>
19278
19279 * lisp.h: Fix typo.
19280
19281 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19282
19283 * m/sequent-ptx.h:
19284 * m/sequent.h:
19285 * s/ptx.h:
19286 * s/ptx4-2.h:
19287 * s/ptx4.h: Remove files for systems no longer supported.
19288
19289 * callproc.c (Fcall_process): Fix previous change.
19290
19291 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19292
19293 * unexsunos4.c: Remove file, system not supported anymore.
19294
19295 * m/mips.h:
19296 * m/intel386.h:
19297 * callproc.c:
19298 * config.in:
19299 * ecrt0.c:
19300 * emacs.c:
19301 * fileio.c:
19302 * frame.c:
19303 * getpagesize.h:
19304 * keyboard.c:
19305 * lread.c:
19306 * process.c:
19307 * puresize.h:
19308 * sysdep.c:
19309 * systty.h:
19310 * syswait.h:
19311 * unexec.c:
19312 * xdisp.c:
19313 * alloc.c: Remove code containing references to symbols defined by
19314 unsupported systems.
19315
19316 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
19317
19318 * coding.c (detect_coding_mask): Fix previous change.
19319
19320 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
19321
19322 * coding.c (detect_coding_iso2022): New arg
19323 latin_extra_code_state. Allow Latin extra codes only
19324 when *latin_extra_code_state is nonzero.
19325 (detect_coding_mask): If there is a NULL byte, detect the encoding
19326 as UTF-16 or binary. If Latin extra codes exist, detect the
19327 encoding as ISO-2022 only when there's no other proper encoding is
19328 found.
19329
19330 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19331
19332 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
19333 #ifdef MAC_OS.
19334
19335 2008-01-08 Richard Stallman <rms@gnu.org>
19336
19337 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
19338
19339 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
19340
19341 * keyboard.c (parse_menu_item): Don't enclose key bindings on
19342 menu bar in parentheses.
19343
19344 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
19345
19346 * m/7300.h:
19347 * m/acorn.h:
19348 * m/alliant-2800.h:
19349 * m/alliant.h:
19350 * m/alliant1.h:
19351 * m/alliant4.h:
19352 * m/altos.h:
19353 * m/amdahl.h:
19354 * m/apollo.h:
19355 * m/att3b.h:
19356 * m/aviion-intel.h:
19357 * m/aviion.h:
19358 * m/celerity.h:
19359 * m/clipper.h:
19360 * m/cnvrgnt.h:
19361 * m/convex.h:
19362 * m/cydra5.h:
19363 * m/delta88k.h:
19364 * m/dpx2.h:
19365 * m/dual.h:
19366 * m/elxsi.h:
19367 * m/f301.h:
19368 * m/gould-np1.h:
19369 * m/gould.h:
19370 * m/i860.h:
19371 * m/ibmps2-aix.h:
19372 * m/ibmrt-aix.h:
19373 * m/ibmrt.h:
19374 * m/irist.h:
19375 * m/is386.h:
19376 * m/isi-ov.h:
19377 * m/mega68.h:
19378 * m/mg1.h:
19379 * m/news-r6.h:
19380 * m/news-risc.h:
19381 * m/news.h:
19382 * m/nh3000.h:
19383 * m/nh4000.h:
19384 * m/ns16000.h:
19385 * m/ns32000.h:
19386 * m/nu.h:
19387 * m/orion.h:
19388 * m/orion105.h:
19389 * m/paragon.h:
19390 * m/pfa50.h:
19391 * m/plexus.h:
19392 * m/pyramid.h:
19393 * m/pyrmips.h:
19394 * m/sh3el.h:
19395 * m/sps7.h:
19396 * m/sr2k.h:
19397 * m/stride.h:
19398 * m/sun1.h:
19399 * m/sun2.h:
19400 * m/sun3-68881.h:
19401 * m/sun3-fpa.h:
19402 * m/sun3-soft.h:
19403 * m/sun3.h:
19404 * m/sun386.h:
19405 * m/symmetry.h:
19406 * m/tad68k.h:
19407 * m/tahoe.h:
19408 * m/targon31.h:
19409 * m/tek4300.h:
19410 * m/tekxd88.h:
19411 * m/tower32.h:
19412 * m/tower32v3.h:
19413 * m/ustation.h:
19414 * m/wicat.h:
19415 * m/xps100.h:
19416 * s/cxux.h:
19417 * s/cxux7.h:
19418 * s/dgux.h:
19419 * s/dgux4.h:
19420 * s/dgux5-4-3.h:
19421 * s/dgux5-4r2.h:
19422 * s/esix.h:
19423 * s/esix5r4.h:
19424 * s/hiuxmpp.h:
19425 * s/hiuxwe2.h:
19426 * s/iris3-5.h:
19427 * s/iris3-6.h:
19428 * s/isc2-2.h:
19429 * s/isc3-0.h:
19430 * s/isc4-0.h:
19431 * s/isc4-1.h:
19432 * s/newsos5.h:
19433 * s/newsos6.h:
19434 * s/osf1.h:
19435 * s/osf5-0.h:
19436 * s/riscix1-1.h:
19437 * s/riscix12.h:
19438 * s/sco4.h:
19439 * s/sco5.h:
19440 * s/sunos4-0.h:
19441 * s/sunos4-1.h:
19442 * s/sunos413.h:
19443 * s/sunos4shr.h:
19444 * s/umax.h:
19445 * s/unipl5-2.h:
19446 * s/xenix.h:
19447 * cxux-crt0.s:
19448 * unexapollo.c:
19449 * unexconvex.c:
19450 * unexenix.c:
19451 * unexsni.c: Remove files for systems no longer supported.
19452
19453 * m/intel386.h: Remove references to unsupported systems.
19454
19455 * w32.c (get_emacs_configuration): Remove reference to i860.
19456
19457 * sysdep.c: Remove dead code.
19458
19459 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
19460
19461 * s/rtu.h:
19462 * m/masscomp.h: Remove files. Platform is obsolete.
19463
19464 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
19465
19466 * dbusbind.c (Fdbus_method_return): New function.
19467 (xd_read_message): Add the serial number to the event.
19468 (Fdbus_register_method): Activate the function.
19469
19470 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
19471
19472 * keyboard.c (read_key_sequence): Fix typo.
19473
19474 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
19475
19476 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
19477 (xd_signature, xd_append_arg): Handle element type detection for
19478 empty arrays.
19479 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
19480 SDATA () calls; this must be solved more general.
19481 (Fdbus_register_signal): Use SBYTES instead of strlen.
19482
19483 2008-01-03 Magnus Henoch <magnus@zemdatav>
19484
19485 * dbusbind.c (xd_append_arg): Use unsigned char instead of
19486 unsigned int for byte values (necessary for big-endian platform).
19487 (Fdbus_call_method): Handle the case of no returned arguments.
19488
19489 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
19490
19491 * dbusbind.c (xd_read_message): Use non-static input_event struct.
19492
19493 2007-12-31 Magnus Henoch <mange@freemail.hu>
19494
19495 * dbusbind.c (xd_signature): Signature of variant is just "v".
19496
19497 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
19498
19499 * dbusbind.c: Fix several errors and compiler warnings.
19500 Reported by Tom Tromey <tromey@redhat.com>.
19501 (XD_ERROR, XD_DEBUG_MESSAGE)
19502 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
19503 (xd_append_arg): Part for basic D-Bus types rewritten.
19504 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
19505 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
19506 appropriate.
19507 (xd_read_message): Return Qnil. Don't signal an error; it is not
19508 useful during event reading.
19509 (Fdbus_register_signal): Signal an error if the check for
19510 FUNCTIONP fails.
19511 (Fdbus_register_method): New function. The implementation is not
19512 complete, the call of the function signals an error therefore.
19513 (Fdbus_unregister_object): New function, renamed from
19514 Fdbus_unregister_signal. The initial check signals an error, if
19515 the object is not well formed.
19516
19517 2007-12-30 Richard Stallman <rms@gnu.org>
19518
19519 * textprop.c (get_char_property_and_overlay):
19520 Signal error if POSITION is out of range in a buffer.
19521
19522 2007-12-29 Martin Rudalics <rudalics@gmx.at>
19523
19524 * w32fns.c (Fx_create_frame): Make copy of frame parameters
19525 because the original parameters are in pure storage now.
19526
19527 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19528
19529 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
19530
19531 2007-12-22 Eli Zaretskii <eliz@gnu.org>
19532
19533 * callint.c (syms_of_callint) <command-history>: Add reference to
19534 history-length in the doc string.
19535
19536 2007-12-17 Jason Rumney <jasonr@gnu.org>
19537
19538 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
19539 before passing as wParam.
19540
19541 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
19542
19543 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
19544 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
19545 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
19546 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
19547 as number.
19548 (Fdbus_call_method): Fix docstring.
19549
19550 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
19551
19552 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
19553 New macros.
19554 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
19555 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
19556 Simplify.
19557 (xd_signature): New function.
19558 (xd_append_arg): Compute also signatures. Major rewrite.
19559 (xd_retrieve_arg): Make debug messages friendly.
19560 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
19561 Check for signatures of arguments.
19562
19563 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
19564
19565 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
19566 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
19567 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
19568 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
19569 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
19570 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
19571 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
19572 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
19573 (xd_retrieve_value): Remove. Functionality included in ...
19574 (xd_append_arg): New function.
19575 (Fdbus_call_method, Fdbus_send_signal): Apply it.
19576
19577 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
19578
19579 * dbusbind.c (top): Include <stdio.h>.
19580 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
19581 dbus_message_new_method_call and dbus_message_new_signal.
19582 (Fdbus_register_signal): Rename unique_name to uname.
19583 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
19584 non-existing unique name. Fix typos in matching rule. Return an
19585 object which is useful in Fdbus_unregister_signal.
19586 (Fdbus_unregister_signal): Reimplementation, in order to remove
19587 only the corresponding entry.
19588 (Vdbus_registered_functions_table): Change the order of entries.
19589 Apply these changes in xd_read_message and Fdbus_register_signal.
19590
19591 2007-12-16 Andreas Schwab <schwab@suse.de>
19592
19593 * fileio.c (Finsert_file_contents): Fix overflow check to not
19594 depend on undefined integer overflow.
19595
19596 2007-12-14 Jason Rumney <jasonr@gnu.org>
19597
19598 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19599 for characters above 127.
19600
19601 2007-12-13 Jason Rumney <jasonr@gnu.org>
19602
19603 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19604 before dereferencing array.
19605 (lookup_vk_code): Remove zero comparison.
19606
19607 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
19608
19609 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19610 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19611 Use `unsigned int' instead of `uint'.
19612 (xd_read_message, Fdbus_register_signal): Split expressions into
19613 multiple lines before operators "&&" and "||", according to the
19614 GNU Coding Standards.
19615
19616 2007-12-14 Eli Zaretskii <eliz@gnu.org>
19617
19618 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19619
19620 2007-12-12 Juri Linkov <juri@jurta.org>
19621
19622 * buffer.c (Frename_buffer): In interactive spec replace
19623 `read-buffer' with `read-string' that uses `buffer-name-history'
19624 as history, and the current buffer's name as default.
19625
19626 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19627
19628 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19629 manipulating the backtrace manually.
19630 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19631 (struct backtrace, backtrace_list): Remove.
19632 (command_loop_1): Remove dead var `no_direct'.
19633
19634 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19635 preserve non-built-in buffer-local variables.
19636 (Fkill_all_local_variables): Don't re-create&re-set permanent
19637 buffer-local variables.
19638
19639 2007-12-09 Juri Linkov <juri@jurta.org>
19640
19641 * buffer.c (Frename_buffer): Change interactive spec from "s" to
19642 Lisp code that uses `read-buffer' with current buffer as default.
19643
19644 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
19645
19646 * dbusbind.c (xd_read_message): Generate an event for every
19647 registered handler. There might be several handlers registered
19648 for the same signal.
19649 (Fdbus_register_signal): Don't overwrite a registration for the
19650 same signal. Add a new registration if handlers are different.
19651 (Vdbus_registered_functions_table): Rework doc string.
19652
19653 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
19654
19655 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19656 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19657 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19658 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19659 Unify argument lists.
19660 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19661 arguments and hash table keys. Use unique name for service.
19662 (Fdbus_unregister_signal): Remove checks.
19663 (Vdbus_registered_functions_table): Fix doc string.
19664
19665 2007-12-05 Magnus Henoch <mange@freemail.hu>
19666
19667 * process.c (make_process): Initialize pty_flag to 0.
19668
19669 2007-12-05 Jason Rumney <jasonr@gnu.org>
19670
19671 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19672 specified XBMs.
19673
19674 2007-12-05 Richard Stallman <rms@gnu.org>
19675
19676 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19677
19678 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19679
19680 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19681 New variable.
19682 (mac_try_close_socket) [MAC_OSX]: New function.
19683 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19684 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19685
19686 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19687 Use mac_try_close_socket.
19688
19689 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19690
19691 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19692 reloc_base.
19693 (copy_dysymtab): Compute relocation base here.
19694 (rebase_reloc_address) [__ppc64__]: New function.
19695 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19696 changed.
19697
19698 2007-12-05 Jason Rumney <jasonr@gnu.org>
19699
19700 * w32proc.c (sys_spawnve): Quote args with wildcards.
19701
19702 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19703
19704 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19705 __objc_* sections.
19706 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19707
19708 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
19709
19710 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19711 Move check for Vdbus_registered_functions_table to
19712 xd_read_queued_messages.
19713 (xd_read_queued_messages): Protect xd_read_message calls by
19714 internal_condition_case_1.
19715
19716 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
19717
19718 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19719 Qdbus_system_bus and Qdbus_session_bus, respectively.
19720 (Vdbus_intern_symbols): Remove.
19721 (Vdbus_registered_functions_table): New hash table.
19722 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19723 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19724 Rewrite in order to manage registered functions by hash table
19725 Vdbus_registered_functions_table.
19726
19727 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19728
19729 * xterm.c: Update URL to Window Manager Specification in comment.
19730
19731 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
19732
19733 * config.in (HAVE_DBUS): Add.
19734
19735 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19736 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19737 (obj): Add $(DBUS_OBJ).
19738 (LIBES): Add $(DBUS_LIBS).
19739 (dbusbind.o): New target.
19740
19741 * dbusbind.c: New file.
19742
19743 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19744
19745 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19746 (Qdbus_event): New Lisp symbol.
19747 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19748 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
19749 (keys_of_keyboard): Define dbus-event.
19750
19751 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19752
19753 2007-12-01 Richard Stallman <rms@gnu.org>
19754
19755 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19756
19757 2007-11-30 Jason Rumney <jasonr@gnu.org>
19758
19759 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19760 (w32con_reset_terminal_modes): Clear screen buffer.
19761 (w32_face_attributes): Don't use color indexes that are out of range.
19762 Only reverse the default colors.
19763
19764 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19765 WINDOWSNT.
19766
19767 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19768
19769 2007-11-29 Jason Rumney <jasonr@gnu.org>
19770
19771 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19772 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19773 if the terminal colors are initialized.
19774 (unspecified_fg, unspecified_bg): Remove unused declarations.
19775
19776 2007-11-29 Andreas Schwab <schwab@suse.de>
19777
19778 * keyboard.c (apply_modifiers): Fix typo.
19779
19780 2007-11-29 Richard Stallman <rms@gnu.org>
19781
19782 * keymap.c (Fcurrent_local_map): Doc fix.
19783
19784 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19785
19786 * s/gnu-kfreebsd.h: New file.
19787
19788 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19789
19790 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19791 Don't cast redundantly.
19792
19793 * keyboard.c (KEY_TO_CHAR): New macro.
19794 (parse_modifiers, apply_modifiers): Accept integer arguments.
19795 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19796 for chars and symbol keys.
19797 After doing such remapping, apply function-key-map again.
19798
19799 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19800
19801 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19802 compiled anymore.
19803
19804 2007-11-26 Andreas Schwab <schwab@suse.de>
19805
19806 * process.c (list_processes_1): Fix indentation level of the
19807 command column.
19808
19809 2007-11-23 Andreas Schwab <schwab@suse.de>
19810
19811 * editfns.c (Fformat): Handle %c specially since it requires the
19812 argument to be of type int.
19813
19814 2007-11-23 Markus Triska <markus.triska@gmx.at>
19815
19816 * emacs.c (main): Call init_editfns before init_process, since
19817 init_process sets Vprocess_connection_type depending on OS release.
19818
19819 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19820
19821 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19822 (find_symbol_value): Use do_symval_forwarding.
19823
19824 * data.c (set_internal): Set the value in the `cons-cell' (for
19825 Buffer_Local_values) not only for frame-local variables.
19826
19827 2007-11-22 Andreas Schwab <schwab@suse.de>
19828
19829 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19830 values to sprintf.
19831 * keymap.c (Fsingle_key_description): Likewise.
19832 * print.c (print_object): Likewise.
19833
19834 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19835
19836 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19837 file for image is nil.
19838
19839 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19840
19841 * term.c: Include stdarg.h.
19842 (fatal): Implement using varargs.
19843 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19844
19845 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19846
19847 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19848 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19849 Update call to buffer_slot_type_mismatch.
19850 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19851 (buffer_slot_type_mismatch): Update.
19852 * buffer.c (buffer_local_types): Remove.
19853 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19854 (defvar_per_buffer): Set the type in the buffer_objfwd.
19855
19856 2007-11-21 Jason Rumney <jasonr@gnu.org>
19857
19858 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19859 CreateFileMapping returns NULL on failure.
19860
19861 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19862
19863 * search.c (Fset_match_data): Remove the `evaporate' feature.
19864 (unwind_set_match_data): Don't use the `evaporate' feature.
19865
19866 2007-11-21 Jason Rumney <jasonr@gnu.org>
19867
19868 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19869
19870 * w32console.c (w32con_write_glyphs): Remove unused variables.
19871
19872 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19873
19874 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19875
19876 * s/darwin.h (MULTI_KBOARD): Remove.
19877
19878 * macfns.c (x_create_tip_frame, Fx_create_frame)
19879 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19880
19881 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19882
19883 * buffer.c (Fbuffer_local_value): Remove redundant test.
19884 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19885 than in `current-buffer' to match the comment.
19886 Do the swap using swap_in_global_binding.
19887
19888 * data.c (store_symval_forwarding, set_internal):
19889 * eval.c (specbind): Remove dead code.
19890
19891 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19892 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19893 Since we do not want to see internal Lisp_*fwd objects here.
19894
19895 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19896
19897 * sysdep.c (init_system_name): Use getaddrinfo if available.
19898
19899 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19900 (x_scroll_bar_note_movement): start, end, with, height in struct
19901 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19902
19903 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19904
19905 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19906
19907 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19908
19909 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19910 This undoes Richard's change of 14-Oct-2002.
19911
19912 * alloc.c (allocate_other_vector):
19913 * lisp.h (allocate_other_vector): Remove.
19914
19915 * window.c (struct save_window_data): Move non-lisp data to the end
19916 and make it `int' rather than Lisp_Object.
19917 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19918 Done wrap/unwrap integer values.
19919 (Fset_window_configuration, compare_window_configurations):
19920 Update use of fields to their new types.
19921
19922 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19923 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19924 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19925 (SET_SCROLL_BAR_X_WINDOW): Remove.
19926 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19927 Access the new x_window field directly.
19928 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19929 Don't wrap/unwrap integers into Lisp_Objects.
19930 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19931 (x_scroll_bar_report_motion):
19932 Don't wrap/unwrap integers into Lisp_Objects.
19933 (x_term_init): Use SDATA.
19934 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19935 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19936 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19937 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19938 * xfns.c (x_set_background_color):
19939 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19940 Access the new x_window field directly.
19941
19942 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19943 (allocate_pseudovector): Make non-static.
19944
19945 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19946 (allocate_pseudovector): Declare.
19947 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19948
19949 2007-11-15 Andreas Schwab <schwab@suse.de>
19950
19951 * editfns.c (Fformat): Correctly format EMACS_INT values.
19952 Also take precision into account when formatting an integer.
19953
19954 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19955
19956 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19957
19958 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19959 (syms_of_keyboard): Defsubr it.
19960
19961 * data.c (swap_in_global_binding): Fix longstanding bug where
19962 store_symval_forwarding was not called with the right second argument,
19963 thus causing objfwd-ing from being dropped.
19964
19965 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
19966
19967 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19968 (Fx_display_pixel_height, Fx_display_planes)
19969 (Fx_display_color_cells, Fx_server_max_request_size)
19970 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19971 (Fx_display_visual_class, Fx_display_save_under):
19972 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19973 (Fx_display_pixel_height, Fx_display_planes)
19974 (Fx_display_color_cells, Fx_server_max_request_size)
19975 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19976 (Fx_display_mm_height, Fx_display_mm_width)
19977 (Fx_display_backing_store, Fx_display_visual_class)
19978 (Fw32_select_font, Fx_display_save_under):
19979 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19980 (Fx_display_pixel_height, Fx_display_planes)
19981 (Fx_display_color_cells, Fx_server_max_request_size)
19982 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19983 (Fx_display_save_under): Fix typos in docstrings.
19984
19985 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
19986
19987 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19988 corresponding to deleted entries; they are an implementation detail.
19989 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19990 Remove variables.
19991 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19992 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19993 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19994 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19995 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19996 (Fw32_define_rgb_color, Fw32_load_color_file)
19997 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19998 Fix typos in docstrings.
19999 (Fx_server_version): Reflow docstring.
20000 (Fw32_shell_execute): Doc fixes.
20001
20002 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
20003
20004 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
20005 if w32_parse_hot_key returned nil.
20006
20007 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
20008
20009 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
20010
20011 2007-11-09 Jason Rumney <jasonr@gnu.org>
20012
20013 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
20014
20015 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
20016
20017 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
20018 Remove W32_SCROLL_BAR_CLICK_EVENT.
20019
20020 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
20021 Add MULTIMEDIA_KEY_EVENT.
20022
20023 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
20024 (lispy_multimedia_keys) [WINDOWSNT]: New array.
20025 (make_lispy_event) [WINDOWSNT]: Use it to translate
20026 MULTIMEDIA_KEY_EVENT.
20027
20028 * w32term.h (WM_APPCOMMAND): Define if not already.
20029 (GET_APPCOMMAND_LPARAM): Likewise.
20030
20031 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
20032 WM_APPCOMMAND.
20033
20034 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
20035 (syms_of_w32fns): Export and initialize it.
20036 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
20037
20038 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
20039
20040 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
20041 twice.
20042
20043 * xdisp.c (handle_face_prop): Fix last change.
20044
20045 2007-11-09 Richard Stallman <rms@gnu.org>
20046
20047 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
20048 not just for after-strings and before-strings.
20049 Call face_for_overlay_string and pass the overlay to it.
20050 (handle_display_prop): Determine whether property came from an overlay.
20051 Pass OVERLAY arg to handle_single_display_spec.
20052 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
20053 (load_overlay_strings): Fill in it->string_overlays.
20054 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
20055
20056 * xfaces.c (face_for_overlay_string): Function renamed from
20057 face_at_buffer_position_no_overlays, and add arg OVERLAY.
20058
20059 * dispextern.h (struct it): New elt string_overlays.
20060 New elt from_overlay, also in stack.
20061 Rearrange a few elements.
20062 (face_for_overlay_string): Decl renamed from
20063 face_at_buffer_position_no_overlays, and add argument.
20064
20065 2007-11-09 Richard Stallman <rms@gnu.org>
20066
20067 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
20068 to get the base face for an overlay string.
20069
20070 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
20071
20072 * xfaces.c (face_at_buffer_position_no_overlays): New function.
20073
20074 * xdisp.c (handle_stop): Move some code out of loop.
20075
20076 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20077
20078 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
20079 Fix conversion from Lisp object to ATSUFontID.
20080
20081 2007-11-09 Jason Rumney <jasonr@gnu.org>
20082
20083 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
20084
20085 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20086
20087 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
20088 Don't assume regions are aligned to page boundary.
20089 (print_load_command_name): Add LC_UUID if defined.
20090
20091 2007-11-09 Richard Stallman <rms@gnu.org>
20092
20093 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
20094
20095 2007-11-07 Jason Rumney <jasonr@gnu.org>
20096
20097 * s/windows95.h: Remove.
20098
20099 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
20100
20101 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
20102 abort with a message on unhandled store_type values.
20103
20104 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
20105
20106 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
20107 Remove HAVE_X11R5 and HAVE_X11R4.
20108
20109 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20110
20111 * Makefile.in: Remove references to sunfns.c and sunfns.o.
20112
20113 2007-11-01 Johan Bockgård <bojohan@gnu.org>
20114
20115 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
20116 Don't set s->stippled_p here, since it has already been set by
20117 x_set_glyph_string_gc from x_draw_glyph_string.
20118
20119 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20120
20121 * sunfns.c: Remove file.
20122
20123 * m/sun386.h:
20124 * m/sun2.h:
20125 * m/sparc.h: Remove Sun windows code.
20126
20127 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
20128
20129 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
20130 (init_keyboard): Set current_kboard's window-system to nil.
20131 (tty_read_avail_input): Typo.
20132 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
20133
20134 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
20135
20136 * s/usg5-4.h:
20137 * s/usg5-3.h:
20138 * s/ptx.h:
20139 * m/is386.h:
20140 * m/ibmps2-aix.h:
20141 * Makefile.in: Remove all mentions of X10.
20142
20143 * dispnew.c (syms_of_display): Don't mention version 10.
20144
20145 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
20146
20147 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
20148 ($(BLD)/abbrev.$(O)): Remove.
20149
20150 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
20151
20152 Rewrite abbrev.c in Elisp.
20153 * image.c (Qcount): Don't declare as extern.
20154 (syms_of_image): Initialize and staticpro `Qcount'.
20155 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
20156 * emacs.c (main): Don't call syms_of_abbrev.
20157 * Makefile.in (obj): Remove abbrev.o.
20158 (abbrev.o): Remove.
20159 * abbrev.c: Remove.
20160
20161 2007-10-26 Martin Rudalics <rudalics@gmx.at>
20162
20163 * window.c (window_min_size_2): Don't count header-line.
20164
20165 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
20166
20167 * frame.h (struct frame): Move all bit fields after the first bit
20168 field to take advantage of the available space. Group all the
20169 chars together to reduce wasted space due to padding.
20170
20171 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
20172
20173 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
20174
20175 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
20176 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
20177 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
20178 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
20179 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
20180 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
20181 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
20182 (last_marked, mark_object_loop_halt): Make static.
20183
20184 * frame.c (syms_of_frame) <delete-frame-functions>:
20185 Fix typo in docstring.
20186
20187 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
20188
20189 * w32.c (init_environment): Fix tiny memory leak.
20190 (w32_get_resource): Remove unused variable `ok'.
20191
20192 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
20193
20194 Make `window-system' into a keyboard-local variable (rather than
20195 frame-local as done originally by multi-tty).
20196
20197 * keyboard.h (struct kboard): Add Vwindow_system.
20198 * keyboard.c (init_kboard): Set a default for Vwindow_system.
20199 (mark_kboards): Mark Vwindow_system.
20200
20201 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
20202 (init_display): Don't set the obsolete `window-system' frame-param.
20203
20204 * xterm.c (x_term_init):
20205 * w32term.c (w32_create_terminal):
20206 * term.c (init_tty): Set Vwindow_system.
20207 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
20208 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
20209
20210 * xfns.c (Fx_create_frame, x_create_tip_frame):
20211 * w32fns.c (Fx_create_frame, x_create_tip_frame):
20212 * macfns.c (Fx_create_frame):
20213 Don't set the obsolete `window-system' frame-param.
20214
20215 * frame.h (Qwindow_system): Remove.
20216 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
20217 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
20218
20219 2007-10-24 Richard Stallman <rms@gnu.org>
20220
20221 * frame.c (x_figure_window_size): For fullscreen case,
20222 set USPosition | PPosition without clobbering rest of window_prompting.
20223
20224 * keyboard.c (Fcurrent_idle_time): Doc fix.
20225
20226 * print.c (Fwith_output_to_temp_buffer): Doc fix.
20227
20228 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
20229
20230 * process.c (unwind_request_sigio): Only define if __ultrix__.
20231
20232 * callproc.c (child_setup): Remove spurious *.
20233
20234 * lisp.h (Fget_text_property): Declare.
20235 (have_menus_p): Declare it here rather than in sys-dep header files.
20236 * macterm.h (have_menus_p):
20237 * msdos.h (have_menus_p):
20238 * xterm.h (have_menus_p): Remove.
20239
20240 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20241 (Fmake_variable_frame_local): Just check the variable's const-ness
20242 rather than checking nil or t.
20243
20244 2007-10-22 Jason Rumney <jasonr@gnu.org>
20245
20246 * w32fns.c: Include math.h.
20247 (w32_abort): Declaration moved to nt/config.nt.
20248
20249 * s/ms-w32.h (HAVE_STDLIB_H): Define.
20250 (abort): Redefinition moved to nt/config.nt.
20251
20252 * m/windowsnt.h: Remove.
20253
20254 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
20255
20256 * emacs.c (Fdump_emacs): Fix typo in message.
20257 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
20258 <installation-directory>: Reflow docstring.
20259
20260 2007-10-22 Juri Linkov <juri@jurta.org>
20261
20262 * minibuf.c: Allow minibuffer default to be a list of default values.
20263 With empty input use the first element of this list as returned default.
20264 (string_to_object)
20265 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
20266 (read_minibuf): If defalt is cons, set histstring to its car.
20267 (Fread_string): If default_value is cons, set val to its car.
20268 (Fread_buffer): If def is cons, use its car.
20269 (Fcompleting_read): If defalt is cons, set val to its car.
20270
20271 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
20272
20273 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
20274
20275 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
20276
20277 * doc.c (Fdocumentation): Check for advice in all cases.
20278
20279 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
20280
20281 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
20282
20283 2007-10-19 Richard Stallman <rms@gnu.org>
20284
20285 * doc.c (Fdocumentation): Check for and handle an advised function.
20286
20287 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
20288
20289 * process.c (Fset_process_filter): Doc fix.
20290
20291 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
20292
20293 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
20294 which caused key-translation-map to applied repeatedly (thus breaking
20295 double-mode).
20296
20297 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20298
20299 * xselect.c (x_own_selection, x_handle_selection_clear)
20300 (x_clear_frame_selections):
20301 * w32menu.c (list_of_panes, list_of_items):
20302 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
20303 * textprop.c (validate_plist, interval_has_all_properties)
20304 (interval_has_some_properties, interval_has_some_properties_list)
20305 (add_properties, text_property_list):
20306 * process.c (Fget_buffer_process, list_processes_1, status_notify):
20307 * minibuf.c (Fassoc_string):
20308 * macselect.c (x_own_selection, x_clear_frame_selections)
20309 (Fx_disown_selection_internal):
20310 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
20311 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
20312
20313 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
20314
20315 * process.c: Link to libs for calling res_init() if available.
20316 (Fmake_network_process): Call res_init() before getaddrinfo or
20317 gethostbyname, if possible.
20318
20319 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20320
20321 * lread.c (read1): Set pvectype for char_tables.
20322
20323 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
20324 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
20325 Add type checks.
20326 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
20327
20328 * alloc.c (free_misc): Use XMISCTYPE.
20329 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
20330
20331 2007-10-17 Glenn Morris <rgm@gnu.org>
20332
20333 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
20334 (syms_of_minibuf): Add Qcompletion_ignore_case.
20335 * dired.c (Qcompletion_ignore_case): Change to external.
20336 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
20337 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
20338 (Fread_file_name): Use it rather than intern'ing.
20339
20340 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
20341 (Fread_coding_system): Ignore case of user input.
20342
20343 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20344
20345 * xdisp.c (handle_display_prop): Ignore display specs after
20346 replacing one when string text is being replaced.
20347 (handle_single_display_spec): Pretend as if characters with display
20348 property haven't been consumed only when buffer text is being replaced.
20349
20350 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
20351
20352 * xfns.c (Fx_create_frame, Fx_display_list):
20353 * window.c (window_fixed_size_p, enlarge_window)
20354 (shrink_window_lowest_first):
20355 * macterm.c (init_font_name_table):
20356 * macfns.c (Fx_create_frame, Fx_display_list):
20357 * lread.c (close_load_descs):
20358 * keyboard.c (read_char_x_menu_prompt):
20359 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
20360 * coding.c (code_convert_region_unwind): Test the type of an object
20361 rather than just !NILP before extracting data from it.
20362
20363 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
20364
20365 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
20366 (XMISCANY): New macro.
20367 (XMISCTYPE): Use it.
20368 (struct Lisp_Misc_Any): New type.
20369 (union Lisp_Misc): Use it.
20370 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
20371 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
20372 (find_symbol_value, set_internal, default_value, Fset_default)
20373 (Fmake_variable_buffer_local, Fmake_local_variable)
20374 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
20375 (Flocal_variable_if_set_p, Fvariable_binding_locus):
20376 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
20377 * alloc.c (allocate_buffer): Set the size and tag.
20378 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
20379 Use XMISCANY.
20380 (die): Follow the GNU convention for error messages.
20381 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
20382 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
20383 tag any more.
20384 (set_buffer_internal_1):
20385 * frame.c (store_frame_param):
20386 * eval.c (specbind):
20387 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
20388
20389 * doc.c (Fsnarf_documentation): Simplify.
20390
20391 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
20392
20393 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
20394 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
20395
20396 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
20397
20398 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
20399
20400 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
20401
20402 * eval.c (do_autoload): Don't save autoloads.
20403
20404 * data.c (Ffset): Save autoload of the function being set.
20405
20406 2007-10-07 John Paul Wallington <jpw@pobox.com>
20407
20408 * xfns.c (x_create_tip_frame): Set the `display-type' frame
20409 parameter before setting up faces.
20410
20411 2007-10-13 Eli Zaretskii <eliz@gnu.org>
20412
20413 * ccl.c (Fregister_code_conversion_map):
20414 * keyboard.c (append_tool_bar_item): Reformat last change.
20415
20416 * lisp.h (eabs): Rename from `abs'. All callers changed.
20417
20418 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
20419
20420 * buffer.c (add_overlay_mod_hooklist):
20421 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
20422 * fontset.c (make_fontset):
20423 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
20424 (append_tool_bar_item):
20425 * macmenu.c (grow_menu_items):
20426 * w32menu.c (grow_menu_items):
20427 * xmenu.c (grow_menu_items): Use larger_vector.
20428
20429 2007-10-13 Eli Zaretskii <eliz@gnu.org>
20430
20431 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
20432 selected frame'' on MSDOS).
20433
20434 2007-10-12 Martin Rudalics <rudalics@gmx.at>
20435
20436 * frame.c (Qexplicit_name): New variable.
20437 (x_report_frame_params): Report it in parameter alist.
20438 (syms_of_frame): Intern and staticpro it.
20439
20440 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
20441
20442 * macfns.c (x_create_tip_frame): Set terminal for frame.
20443
20444 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
20445
20446 * frame.c (Qenvironment): Remove.
20447 (syms_of_frame) <Qenvironment>: Don't initialize.
20448 (Fdelete_frame): Don't treat the `environment' param specially.
20449 * frame.h (Qenvironment): Don't declare.
20450 * callproc.c (set_initial_environment): Don't set unused frame param.
20451
20452 * frame.c (Fframe_with_environment): Remove.
20453 (syms_of_frame) <Sframe_with_environment>: Don't declare.
20454
20455 * lisp.h (Fframe_with_environment): Don't declare.
20456
20457 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
20458
20459 * indent.c (indent_tabs_mode, last_known_column)
20460 (last_known_column_modified): Make static.
20461 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
20462
20463 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
20464
20465 * puresize.h (BASE_PURESIZE): Increase to 1170000.
20466
20467 2007-10-09 Jason Rumney <jasonr@gnu.org>
20468
20469 * w32term.c (x_set_window_size): Disable code that attempts to tell
20470 Lisp code about a size change before it actually happens.
20471
20472 2007-10-09 Richard Stallman <rms@gnu.org>
20473
20474 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
20475 return HANDLED_RETURN.
20476
20477 2007-10-08 Martin Rudalics <rudalics@gmx.at>
20478
20479 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
20480 when there's an unread command event.
20481
20482 * frame.c (focus_follows_mouse): Move here from frame.el to allow
20483 window autoselection act appropriately when leaving selected frame.
20484 (syms_of_frame): Initialize focus_follows_mouse.
20485 * frame.h (focus_follows_mouse): Extern it.
20486 * macterm.c (XTread_socket): When focus_follows_mouse is nil
20487 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
20488 * msdos.c (dos_rawgetc): Likewise.
20489 * w32term.c (w32_read_socket): Likewise.
20490 * xterm.c (handle_one_xevent): Likewise.
20491 * xdisp.c (syms_of_xdisp): In doc-string of
20492 mouse-autoselect-window mention focus-follows-mouse.
20493
20494 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20495
20496 * macterm.c (mac_load_query_font): Fix missing return value.
20497 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
20498 Add BLOCK_INPUT.
20499
20500 2007-10-08 Richard Stallman <rms@gnu.org>
20501
20502 * xdisp.c (get_window_cursor_type): Implement documented behavior
20503 for cursor-in-non-selected-windows = t.
20504
20505 2007-10-08 Jason Rumney <jasonr@gnu.org>
20506
20507 * w32.c (w32_get_resource): Always close registry keys.
20508
20509 2007-10-08 Jason Rumney <jasonr@gnu.org>
20510
20511 * makefile.w32-in (LIBS): Add COMCTL32.
20512
20513 * w32fns.c (globals_of_w32fns): Init common controls.
20514
20515 2007-10-08 Richard Stallman <rms@gnu.org>
20516
20517 * image.c (our_memory_buffer): Rename from omfib_buffer.
20518
20519 2007-10-08 Richard Stallman <rms@gnu.org>
20520
20521 * buffer.c (Foverlays_at): Doc fix.
20522
20523 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
20524
20525 * fns.c (Fplist_put): Preserve uneven tail data.
20526
20527 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
20528
20529 * termhooks.h (enum event_kind): Remove trailing comma.
20530
20531 * frame.h (enum): Remove trailing comma.
20532
20533 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20534
20535 * w32proc.c (delete_child): Don't terminate threads of zombies.
20536
20537 2007-10-08 Martin Rudalics <rudalics@gmx.at>
20538
20539 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
20540
20541 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
20542 last-repeatable-command.
20543 (init_kboard): Initialize Vlast_repeatable_command.
20544 (command_loop_1): Set it to real_this_command unless that was
20545 bound to an input event.
20546 (mark_kboards): Mark it.
20547
20548 2007-10-08 Richard Stallman <rms@gnu.org>
20549
20550 * eval.c (condition-case): Doc fix.
20551
20552 2007-10-08 Masatake YAMATO <jet@gyve.org>
20553
20554 * xfaces.c (tty_supports_face_attributes_p): Fix code
20555 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
20556 was copied and not edited.
20557
20558 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
20559
20560 Add new `input-decode-map' keymap and use it for terminal
20561 escape sequences.
20562 * keyboard.h (struct kboard): Add Vinput_decode_map.
20563 Remove Vlocal_key_translation_map.
20564 * keyboard.c (read_key_sequence): Add support for input-decode-map.
20565 (init_kboard): Init input-decode-map.
20566 Replace local-key-translation-map back with key-translation-map.
20567 (syms_of_keyboard): Declare input-decode-map.
20568 Remove local-key-translation-map. Update docstrings.
20569 (mark_kboards): Mark Vinput_decode_map.
20570 Don't mark Vlocal_key_translation_map.
20571 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
20572 Replace local-key-translation-map back with key-translation-map.
20573 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
20574 Bind in input-decode-map rather than function-key-map.
20575
20576 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
20577 This was made redundant by the previous introduction of XSETPVECTYPE.
20578
20579 2007-10-09 Richard Stallman <rms@gnu.org>
20580
20581 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
20582
20583 2007-09-29 Richard Stallman <rms@gnu.org>
20584
20585 * eval.c (internal_condition_case_2, internal_condition_case_1)
20586 (internal_condition_case): Reenable abort if x_catching_errors ()
20587 to see if that really happens and why.
20588
20589 2007-10-06 Andreas Schwab <schwab@suse.de>
20590
20591 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
20592
20593 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
20594
20595 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
20596
20597 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
20598
20599 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20600
20601 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
20602
20603 * window.h (struct window):
20604 * window.c (struct save_window_data, struct saved_window):
20605 * termhooks.h (struct terminal):
20606 * process.h (struct Lisp_Process):
20607 * frame.h (struct frame):
20608 * buffer.h (struct buffer):
20609 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20610 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20611 The size field of (pseudo)vectors is now unsigned.
20612 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20613
20614 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20615 Turn `count' into an integer.
20616
20617 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20618 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20619 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20620 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20621 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20622
20623 * alloc.c (allocate_pseudovector): New fun.
20624 (ALLOCATE_PSEUDOVECTOR): New macro.
20625 (allocate_window, allocate_terminal, allocate_frame)
20626 (allocate_process): Use it.
20627 (mark_vectorlike): New function.
20628 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20629 (mark_terminals): Use it.
20630 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20631 (Fmake_byte_code): Use XSETPVECTYPE.
20632
20633 * frame.c (Fframe_parameters): Minor simplification.
20634
20635 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20636
20637 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20638
20639 * buffer.c (Fget_buffer_create, init_buffer_once):
20640 * lread.c (defsubr):
20641 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20642
20643 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20644 defined differently in the m/*.h files.
20645 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
20646 (XSETPVECTYPE): New macro.
20647 (XSETPSEUDOVECTOR): Use it.
20648
20649 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20650 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20651
20652 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20653 * lread.c (defvar_per_buffer):
20654 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20655
20656 * window.c (candidate_window_p): Only consider as visible frames that
20657 are on the same terminal.
20658
20659 * m/ibms390x.h (MARKBIT): Remove unused macro.
20660
20661 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
20662
20663 * lread.c (Fload): Fix typo in docstring.
20664
20665 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20666
20667 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20668 of a non-zero value can't yield zero.
20669
20670 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20671
20672 * term.c (term_clear_mouse_face, term_mouse_highlight)
20673 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20674
20675 * print.c (safe_debug_print): Use XHASH.
20676
20677 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20678 Lisp elements such as tags.
20679 (XHASH): New macro.
20680 (EQ): Use it.
20681 (SREF, SSET, STRING_COPYIN): Use SDATA.
20682 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20683
20684 * alloc.c (mark_terminal): Remove left-over declaration.
20685 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20686 (allocate_vectorlike): Remove type argument. Adjust callers.
20687 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20688 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20689
20690 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20691 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20692 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20693 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20694 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20695 Use them.
20696
20697 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20698 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20699 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20700
20701 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20702
20703 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20704 loaded by default.
20705
20706 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20707
20708 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20709 on this tty.
20710 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20711
20712 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20713 Update all users.
20714 (handle_one_term_event): Use Gpm_DrawPointer.
20715 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20716 Signal errors instead of returning nil. Always return nil.
20717 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20718 Make it a noop if gpm-mouse was not activated.
20719 (syms_of_term): Update names.
20720
20721 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20722
20723 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20724 (init_sys_modes): Check that gpm_tty is the current tty.
20725
20726 * alloc.c (allocate_terminal): Set the vector size to only count the
20727 lisp fields. Initialize those to nil.
20728 (mark_object): Don't treat terminals specially.
20729 (mark_terminal): Remove.
20730 (mark_terminals): Use mark_object instead.
20731
20732 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20733 the GC to the beginning.
20734
20735 * indent.h:
20736 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20737
20738 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20739
20740 2007-09-25 Jason Rumney <jasonr@gnu.org>
20741
20742 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20743
20744 * w32console.c (create_w32cons_output): Remove.
20745
20746 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20747
20748 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20749 (reset_sys_modes): Use reset_terminal_modes_hook.
20750
20751 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20752
20753 * eval.c (do_autoload): Don't output any message.
20754
20755 2007-09-24 Juri Linkov <juri@jurta.org>
20756
20757 * emacs.c (standard_args): Change priority of "--no-splash"
20758 from 40 to 3. Add "--no-desktop" with the same priority.
20759
20760 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20761
20762 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20763 and optimize the case where they are all 1.
20764
20765 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
20766
20767 * lisp.h (abs): Define if not defined.
20768 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20769 Don't define `abs', since it's defined in lisp.h.
20770
20771 2007-09-22 Eli Zaretskii <eliz@gnu.org>
20772
20773 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20774 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20775 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20776 (init_tty): Use DEV_TTY instead of "/dev/tty".
20777 [WINDOWSNT]: No need to protect from NAME arg being null.
20778
20779 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20780
20781 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20782 up the tty state.
20783
20784 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20785
20786 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20787 (gpm_tty): Change its type.
20788 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20789 (gpm_tty): Change its type and initialize it.
20790 (Fterm_open_connection): Check the frame is indeed a tty.
20791 Use the new gpm_tty.
20792 (Fterm_close_connection): Use the new gpm_tty.
20793 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20794 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20795
20796 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
20797
20798 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20799 underline_color, to draw strike-through.
20800
20801 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20802
20803 * lisp.h (allocate_terminal): Declare.
20804
20805 * window.c (candidate_window_p): Consider frames that are being placed
20806 by the user as somewhere between visible and iconified.
20807 (window_loop): Prefer windows on the current frame.
20808 (Fselect_window): Move the use of select-frame to the beginning so we
20809 can just delegate all the work (it'll call us back anyway).
20810
20811 * frame.c (Qdisplay_environment_variable):
20812 * frame.h (Qdisplay_environment_variable): Delete.
20813
20814 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20815 of the first arg, since that value may be a union.
20816
20817 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20818 parameter rather than Qdisplay_environment_variable. If all else
20819 fails, look for DISPLAY in initial-environment.
20820
20821 2007-09-21 Glenn Morris <rgm@gnu.org>
20822
20823 * Makefile.in (emacstool): Remove target.
20824 (lisp, shortlisp): Remove termdev.elc.
20825
20826 2007-09-21 Markus Triska <markus.triska@gmx.at>
20827
20828 * xterm.c (x_delete_display): Compile session management conditionally.
20829
20830 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20831
20832 * callproc.c (getenv_internal_1): New function.
20833 (getenv_internal): Use it.
20834 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20835
20836 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20837 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20838 (Fset_terminal_parameter): Work with dead terminals as well.
20839 (Fmodify_terminal_parameters): Remove.
20840
20841 * terminal.c (get_terminal): Handle terminals.
20842 Make sure the terminal returned is live.
20843 (create_terminal): Use allocate_terminal.
20844 (mark_terminals): Move to alloc.c.
20845 (delete_terminal): Use terminal->name as liveness status.
20846 NULL out fields after freeing their contents.
20847 Don't deallocate the object.
20848 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20849 rather than an int.
20850 (Fterminal_live_p): Accept non-integer arguments.
20851 (Fterminal_list): Return terminal objects rather than an ints.
20852
20853 * alloc.c (enum mem_type): New member for `terminal' objects.
20854 (allocate_terminal): New function.
20855 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20856 Handle terminals.
20857 (mark_terminal): New fun.
20858 (mark_terminals): Move from terminal.c.
20859
20860 * term.c (get_tty_terminal): Don't treat output_initial specially.
20861 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20862 (delete_tty): Use terminal->name as liveness status.
20863
20864 * termhooks.h (struct terminal): Make it into a pseudovector.
20865 Remove `deleted' replaced by checking `name's nullness.
20866
20867 * print.c (print_object): Handle terminals.
20868
20869 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20870 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20871
20872 * frame.c (make_terminal_frame):
20873 * keyboard.c (tty_read_avail_input):
20874 * w32term.c (x_delete_terminal):
20875 * xfns.c (Fx_create_frame, x_create_tip_frame):
20876 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20877
20878 2007-09-20 Glenn Morris <rgm@gnu.org>
20879
20880 * process.c (Fmake_network_process): Doc fix.
20881
20882 2007-09-19 Jason Rumney <jasonr@gnu.org>
20883
20884 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20885
20886 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20887
20888 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20889 Fix a C warning regarding variable constness.
20890
20891 * xterm.c (handle_one_xevent): Fix a C warning.
20892
20893 2007-09-18 Jason Rumney <jasonr@gnu.org>
20894
20895 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20896
20897 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20898
20899 * gtkutil.c (gdpy_def): New variable.
20900 (xg_initialize): Initialize gdpy_def.
20901 (xg_display_close): If no other display exists, set gdpy_def to a
20902 new connection.
20903
20904 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20905
20906 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20907 when we have no file name for the icon.
20908 (xg_tool_bar_expose_callback): Remove.
20909 (xg_create_tool_bar): Don't connect expose signal to
20910 xg_tool_bar_expose_callback.
20911 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20912
20913 2007-09-16 Andreas Schwab <schwab@suse.de>
20914
20915 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20916 values instead of zapping them.
20917
20918 2007-09-14 Glenn Morris <rgm@gnu.org>
20919
20920 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20921 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20922 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20923 scope and rename to omfib_buffer for clarity.
20924 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20925
20926 2007-09-14 Kenichi Handa <handa@m17n.org>
20927
20928 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20929
20930 2007-09-13 Jason Rumney <jasonr@gnu.org>
20931
20932 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20933
20934 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20935
20936 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20937 (mac_term_init): Call here instead, passing rif.
20938
20939 2007-09-13 Glenn Morris <rgm@gnu.org>
20940
20941 * s/hpux.h: No longer define `static' as nothing.
20942
20943 2007-09-13 Johan Bockgård <bojohan@gnu.org>
20944
20945 * callint.c (Fcall_interactively): Remove unused var `fun'.
20946
20947 2007-09-12 Romain Francoise <romain@orebokech.com>
20948
20949 * window.c (prefer_window_split_horizontally, display_buffer):
20950 Revert 2007-09-08 change.
20951
20952 2007-09-12 Glenn Morris <rgm@gnu.org>
20953
20954 * alloca.c: Remove file.
20955 * Makefile.in (alloca): Do not undef.
20956 (allocaobj, alloca.o): Remove.
20957 (otherobj): Remove allocaobj.
20958 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20959 * regex.c (C_ALLOCA): Remove all references and code that was only
20960 used when this was defined.
20961 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20962 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20963 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20964
20965 * Makefile.in (SOURCES, unlock, relock): Delete.
20966
20967 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20968 (menu_grab_callback): All uses changed.
20969
20970 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20971 (x_reply_selection_request): All uses changed.
20972
20973 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20974
20975 * lread.c (load_warn_old_style_backquotes): Change message to look
20976 better when it appears in the middle of byte-compiler messages.
20977
20978 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20979
20980 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20981
20982 * xterm.c (x_create_terminal): Add comment.
20983
20984 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20985
20986 2007-09-10 Richard Stallman <rms@gnu.org>
20987
20988 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20989
20990 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20991
20992 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20993 (DEFUN): Document `intspec', use it instead of `prompt'.
20994
20995 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20996
20997 * data.c (Finteractive_form): If the interactive specification starts
20998 with a `(', use it as a Lisp form.
20999
21000 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
21001 name and file modes.
21002
21003 * callint.c (Fcall_interactively): Comment fixes.
21004
21005 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
21006
21007 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
21008 and compiled functions.
21009
21010 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
21011
21012 * window.c (prefer_window_split_horizontally): New variable.
21013 (display_buffer): Consider splitting window horizontally depending
21014 on prefer_window_split_horizontally.
21015
21016 2007-09-08 Eli Zaretskii <eliz@gnu.org>
21017
21018 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
21019
21020 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21021
21022 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
21023
21024 * frame.c (x_set_frame_parameters): Check number is positive before
21025 using XFASTINT.
21026
21027 * window.c (freeze_window_start): Don't presume selected_window holds
21028 a window object.
21029 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
21030
21031 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
21032
21033 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
21034
21035 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21036
21037 * window.c (Vsplit_window_preferred_function): New var.
21038 (Fdisplay_buffer): Use it.
21039 (syms_of_window): Export, and initialize it.
21040
21041 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
21042
21043 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
21044
21045 2007-09-06 Glenn Morris <rgm@gnu.org>
21046
21047 * gtkutil.c (menu_grab_callback) <cnt>:
21048 * xselect.c (x_reply_selection_request) <cnt>: Move static
21049 variable to file scope.
21050
21051 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
21052
21053 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
21054 consistent values of selected_frame and selected_window.
21055
21056 2007-09-04 Jason Rumney <jasonr@gnu.org>
21057
21058 * w32console.c (initialize_w32_display): Zero unused hooks.
21059
21060 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21061
21062 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
21063 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
21064
21065 2007-09-04 Jason Rumney <jasonr@gnu.org>
21066
21067 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
21068 in w32console.c. Set up input. Remove XXX comments that have been
21069 confirmed as correct.
21070
21071 * s/ms-w32.h (MULTI_KBOARD): Define.
21072
21073 * w32console.c (one_and_only_w32cons): Remove.
21074 (initialize_w32_display): Take terminal argument.
21075
21076 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
21077 initialize_w32_display.
21078 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
21079
21080 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
21081
21082 * keyboard.c (discard_mouse_events): Discard it.
21083 (make_lispy_event): Translate it to a lisp event.
21084 (lispy_wheel_names): Add wheel-left and right events.
21085 (syms_of_keyboard): Enlarge wheel_syms.
21086
21087 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
21088 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
21089
21090 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
21091
21092 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
21093 from WM_MOUSEHWHEEL.
21094 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
21095
21096 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
21097 terminal.
21098
21099 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
21100 keyboard for the terminal.
21101
21102 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21103
21104 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
21105 (Vresume_tty_hook): Rename from Vresume_tty_functions.
21106 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
21107 and resume-tty-function to resume-tty-hook.
21108 (Fsuspend_tty, Fresume_tty): Use new names.
21109
21110 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
21111
21112 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
21113 if it starts with "n:".
21114
21115 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
21116
21117 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
21118
21119 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
21120
21121 * frame.h:
21122 * frame.c (Qterm_environment_variable): Remove.
21123 (syms_of_frame): Don't init and staticpro it.
21124
21125 * callproc.c (getenv_internal): Remove special case for $TERM.
21126
21127 * callproc.c (Vinitial_environment): New variable.
21128 (set_initial_environment): Initialize it.
21129 (syms_of_callproc): Declare it.
21130 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
21131 TERM under which a process runs is never related to the TERM in which
21132 Emacs is running.
21133
21134 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21135
21136 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
21137 * s/darwin.h: ... do it here.
21138
21139 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
21140
21141 * lisp.h (set_initial_environment): Rename from set_global_environment.
21142
21143 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
21144 removed by mistake on the multi-tty branch.
21145
21146 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
21147 (Fmodify_frame_parameters): Return a value.
21148
21149 * image.c (png_load): Comment-out var only used in commented-out code.
21150
21151 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
21152 before passing it to mark_object.
21153
21154 * xfaces.c (internal_resolve_face_name): Return a value.
21155 (internal_resolve_face_name, resolve_face_name_error): Comment out.
21156
21157 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
21158 (x_icon): Comment-out var only used in commented-out code.
21159
21160 2007-08-29 Romain Francoise <romain@orebokech.com>
21161
21162 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
21163 QUIT hasn't been provided.
21164
21165 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21166
21167 * callproc.c (child_setup, getenv_internal): Use the
21168 display-environment-variable and term-environment-variable frame params.
21169 (set_initial_environment): Initialise Vprocess_environment.
21170
21171 * config.in: Disable multi-keyboard support on a mac.
21172
21173 * frame.c (Qterm_environment_variable)
21174 (Qdisplay_environment_variable): New variables.
21175 (syms_of_frame): Intern and staticpro them.
21176 (Fmake_terminal_frame): Disable output method test.
21177
21178 * frame.h: Declare them here.
21179
21180 * macfns.c (x_set_mouse_color): Get rif from the frame.
21181 (x_set_tool_bar_lines): Don't use updating_frame.
21182 (mac_window): Add 2 new parameters for consistency with other systems.
21183 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
21184 frame parameters following what is done in X11 and w32. Don't use
21185 FRAME_MAC_DISPLAY_INFO.
21186 (Fx_open_connection, start_hourglass): Remove window-system check.
21187 (x_create_tip_frame): Get the keyboard from the terminal.
21188
21189 * macmenu.c: Reorder includes.
21190 (Fx_popup_menu): Use terminal specific mouse_position_hook.
21191
21192 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
21193 terminal parameter.
21194 (x_clear_frame): Add a frame parameter.
21195 (note_mouse_movement): Get rif from the frame.
21196 (mac_term_init): Initialize the terminal.
21197 (mac_initialize): Make static and move terminal initialization ...
21198 (mac_create_terminal): ... to this new function.
21199
21200 * macterm.h (struct mac_display_info): Add terminal.
21201 (mac_initialize): Delete declaration.
21202
21203 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
21204
21205 * sysdep.c: Comment out text after #endif.
21206
21207 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
21208 is defined. Better initialize ttys in windows. Use terminal
21209 specific mouse_position_hook.
21210
21211 * termhooks.h (union display_info): Add mac_display_info.
21212
21213 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
21214 Set the default minibuffer frame, window_system and the rest of the
21215 frame parameters following what is done in X11.
21216
21217 * w32term.c (w32_initialize): Make static.
21218
21219 * xselect.c (x_handle_selection_clear): Only access
21220 terminal->kboard when MULTI_KBOARD is defined.
21221
21222 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
21223 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
21224
21225 2007-08-29 Jason Rumney <jasonr@gnu.org>
21226
21227 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
21228 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
21229
21230 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
21231 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
21232
21233 * keyboard.c (restore_kboard_configuration): Only define when
21234 MULTI_KBOARD defined.
21235
21236 * makefile.w32-in: Update dependancies from Makefile.in.
21237 (OBJ1): Add terminal.$(O)
21238
21239 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
21240 Don't define function body.
21241 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
21242
21243 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
21244
21245 * w32.c (request_sigio, unrequest_sigio): Remove.
21246
21247 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
21248 (w32con_clear_frame, w32con_clear_end_of_line)
21249 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
21250 (w32con_delete_glyphs, w32con_set_terminal_window)
21251 (scroll_line, w32_sys_ring_bell): Add frame arg.
21252 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
21253 Add terminal arg.
21254 (PICK_FRAME): Remove.
21255 (w32con_write_glyphs): Use frame specific terminal coding.
21256 (one_and_only_w32cons): New global variable.
21257 (initialize_w32_display): Use it for storing hooks.
21258 (create_w32cons_output): New function.
21259
21260 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
21261 arg a frame.
21262
21263 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
21264 Set window_system.
21265 (x_set_tool_bar_lines): Don't use updating_frame.
21266 (Fx_create_frame): Set terminal and ref count.
21267 (Fx_open_connection): Remove window-system check.
21268
21269 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
21270
21271 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
21272 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
21273 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
21274 Add frame arg.
21275 (x_delete_terminal, w32_create_terminal): New functions.
21276 (w32_term_init): Create a terminal.
21277 (w32_initialize): Move terminal specific initialization to
21278 w32_create_terminal.
21279
21280 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
21281 (w32_clear_rect, w32_clear_area): Use background from frame.
21282 (w32_display_info): Add terminal.
21283 (w32_sys_ring_bell, x_delete_display): Declare here.
21284
21285 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
21286
21287 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
21288
21289 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
21290
21291 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
21292 Fix get_named_tty calls for the controlling tty.
21293
21294 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
21295
21296 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
21297
21298 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
21299
21300 * term.c (tty_insert_glyphs): Add missing first parameter.
21301
21302 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
21303
21304 * buffer.c (Fbuffer_list, Fbury_buffer):
21305 Take frame->buried_buffer_list into account.
21306
21307 * cm.c (current_tty): New variable, for cmputc().
21308 (cmputc): Use it.
21309 (cmcheckmagic): Add tty parameter, look up terminal streams there.
21310 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
21311 (cmgoto): Add tty parameter. Pass it on to calccost().
21312 Use emacs_tputs() instead of tputs().
21313
21314 * cm.h (emacs_tputs): New macro to set current_tty, and then call
21315 tputs().
21316 (current_tty): New variable, for cmputc().
21317 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
21318
21319 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
21320 (internal_condition_case, internal_condition_case_1)
21321 (internal_condition_case_2): Don't abort when x_catching_errors.
21322
21323 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
21324 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
21325 prevent crashes caused by bogus longjmps in read_char.
21326
21327 * keymap.h (Fset_keymap_parent): Add EXFUN.
21328
21329 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
21330 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21331 Remove redundant definition.
21332
21333 * macfns.c (x_set_mouse_color, x_make_gc):
21334 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21335
21336 * w32term.c (x_free_frame_resources):
21337 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21338 (w32_initialize): Use the accessor macros for terminal characteristics.
21339
21340 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
21341 Use the accessor macros for terminal characteristics.
21342 * msdos.c (internal_terminal_init): Use the accessor macros for
21343 terminal characteristics.
21344 (ScreenVisualBell, internal_terminal_init):
21345 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21346
21347 * termopts.h (no_redraw_on_reenter): Declare.
21348
21349 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
21350 (mark_terminals, mark_ttys): Declare.
21351 (Fgarbage_collect): Call them.
21352 (mark_object): Mark buried_buffer_list.
21353
21354 * prefix-args.c: Include stdlib.h for exit.
21355
21356 * syssignal.h: Add comment.
21357
21358 * indent.c: Include stdio.h.
21359
21360 * window.h (Vinitial_window_system): Declare.
21361 (Vwindow_system): Delete declaration.
21362
21363 * fontset.c (Finternal_char_font): Use FRAME_RIF.
21364
21365 * image.c (lookup_image): Don't initialize `c' until the xasserts
21366 have been run.
21367
21368 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
21369 FRAME_FOREGROUND_PIXEL.
21370
21371 * print.c (print_preprocess): Don't lose print_depth levels while
21372 iterating.
21373
21374 * widget.c (update_from_various_frame_slots):
21375 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21376
21377 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
21378 frames.
21379 (window_internal_height): Remove bogus make_number call.
21380 (init_window_once): Call make_terminal_frame with two zero parameters.
21381
21382 * fileio.c (Fread_file_name): Update comment.
21383
21384 * callint.c (Fcall_interactively):
21385 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
21386 Make sure it is correctly unwound.
21387
21388 * xsmfns.c (x_session_close): New function.
21389
21390 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
21391 Delete declarations.
21392
21393 * xterm.h: Remove declaration for x_fully_uncatch_errors.
21394 (x_output): Remove background_pixel and foreground_pixel fields.
21395 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
21396 (x_delete_device, x_session_close): Declare.
21397
21398 * lread.c: Include setjmp.h. Update declaration of `read_char'.
21399 (read_filtered_event): Call `read_char' with a local
21400 `wrong_kboard_jmpbuf'.
21401
21402 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
21403 Don't call single_kboard_state. Use FRAME_RIF.
21404
21405 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
21406 systems.
21407
21408 * lisp.h (set_process_environment): Rename to `set_global_environment'.
21409 (Fframe_with_environment, Fset_input_meta_mode)
21410 (Fset_quit_char): EXFUN.
21411 (x_create_device, tty_output, terminal, tty_display_info): Declare.
21412 (init_sys_modes, reset_sys_modes): Update prototypes.
21413 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
21414
21415 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
21416 Vlocal_key_translation_map, and Vkeyboard_translate_table.
21417 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
21418 Delete declarations.
21419 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
21420 (temporarily_switch_to_single_kboard, tty_read_avail_input):
21421 New declarations.
21422
21423 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
21424 already does that during init_display(). Call syms_of_keymap
21425 before syms_of_keyboard. Call `syms_of_terminal'.
21426 Call set_initial_environment, not set_process_environment.
21427 (shut_down_emacs): Call reset_all_sys_modes() instead of
21428 reset_sys_modes().
21429
21430 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
21431 (internal_resolve_face_name, resolve_face_name_error): New functions.
21432 (resolve_face_name): Protect against loops and errors thrown by Fget.
21433 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
21434 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
21435
21436 * scroll.c: Replace CURTTY() with local variables throughout the
21437 file (where applicable).
21438 (calculate_scrolling, calculate_direct_scrolling)
21439 (scrolling_1, scroll_cost): Use the accessor macros for terminal
21440 characteristics.
21441
21442 * keymap.c (Vfunction_key_map): Remove.
21443 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
21444 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
21445 (Vkey_translation_map): Remove.
21446 (syms_of_keymap): Remove DEFVAR for key-translation-map.
21447 (Fdescribe_buffer_bindings)
21448 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
21449 Update for terminal-local key-translation-map.
21450
21451 * Makefile.in (callproc.o): Update dependencies.
21452 (lisp, shortlisp): Add termdev.elc.
21453 (obj): Add terminal.o.
21454 (terminal.o): Add dependencies.
21455 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
21456 (data.o, fns.o): Add termhooks.h dependency.
21457 (SOME_MACHINE_LISP): Add dnd.elc.
21458 (minibuf.o): Fix typo.
21459 Update dependencies.
21460
21461 * data.c (do_symval_forwarding, store_symval_forwarding)
21462 (find_symbol_value): Use the selected frame's keyboard, not
21463 current_kboard.
21464
21465 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
21466 Vwindow_system.
21467
21468 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
21469 Fmenu_bar_open.
21470 (syms_of_xmenu): Update defsubr.
21471 (mouse_position_for_popup, Fx_popup_menu)
21472 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
21473 (set_frame_menubar, free_frame_menubar)
21474 (create_and_show_popup_menu, xmenu_show)
21475 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
21476 an X frame.
21477
21478 * xselect.c (x_own_selection): Abort if not an X frame.
21479 (some_frame_on_display): Check if it is an X frame.
21480 (x_handle_selection_clear): Deal with MULTI_KBOARD.
21481
21482 * coding.c: Include frame.h and termhooks.h.
21483 (terminal_coding, keyboard_coding): Delete.
21484 (Fset_terminal_coding_system_internal)
21485 (Fset_keyboard_coding_system_internal)
21486 (Fkeyboard_coding_system)
21487 (Fterminal_coding_system): Add a terminal parameter.
21488 Get terminal_coding from the terminal.
21489 (init_coding_once): Don't call setup_coding_system here.
21490
21491 * dispextern.h (set_scroll_region, turn_off_insert)
21492 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
21493 (tty_clear_end_of_line, tty_setup_colors)
21494 (delete_tty, updating_frame)
21495 (produce_special_glyphs, produce_glyphs, write_glyphs)
21496 (insert_glyphs): Remove.
21497 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
21498 (tty_turn_off_highlight, get_tty_size): Add declaration.
21499 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
21500
21501 * frame.h (enum output_method): Add output_initial.
21502 (struct x_output): Delete.
21503 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21504 Access foreground_pixel and background_pixel directly from the frame.
21505 (tty_display): Delete.
21506 (struct frame): Add buried_buffer_list, foreground_pixel,
21507 background_pixel and terminal. Delete kboard.
21508 (union output_data): Add tty.
21509 (FRAME_KBOARD): Get the kboard from the terminal.
21510 (FRAME_INITIAL_P): New macro.
21511 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
21512 (Qterm_environment_variable, Qdisplay_environment_variable)
21513 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
21514 New declarations.
21515
21516 * termchar.h (tty_output, tty_display_info): New structures.
21517 (tty_list): Declare.
21518 (FRAME_TTY, CURTTY): New macros.
21519 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
21520 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
21521 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
21522 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
21523
21524 * callproc.c: Include frame.h and termhooks.h, for terminal
21525 parameters.
21526 (add_env): New function.
21527 (child_setup): Use it.
21528 (child_setup, getenv_internal): Handle the new Vprocess_environment.
21529 (getenv_internal): Fix get_terminal_param call.
21530 (Fgetenv_internal, egetenv): Update doc.
21531 (syms_of_callproc): Initialize Vprocess_environment to nil.
21532 Register and initialize them. Remove obsolete defvars. Update doc
21533 strings.
21534 (child_setup): Handle Vlocal_environment_variables.
21535 (getenv_internal): Add terminal parameter.
21536 Handle Vlocal_environment_variables.
21537 (Fgetenv_internal): Add terminal parameter.
21538 (child_setup, getenv_internal, Fgetenv_internal): Store the local
21539 environment in a frame (not terminal) parameter. Update doc strings.
21540 (set_initial_environment): Rename from set_global_environment.
21541 Store Emacs environment in initial frame parameter.
21542
21543 * xdisp.c (redisplay_internal): Update references to
21544 `previous_terminal_frame'.
21545 (display_mode_line, Fformat_mode_line): Replace calls to
21546 `push_frame_kboard' with `push_kboard'.
21547 (get_glyph_string_clip_rects): Add extra parentheses and
21548 braces to prevent compiler warnings.
21549 (calc_pixel_width_or_height): Add xassert to check that the
21550 frame is alive. Don't call `lookup_image' on a termcap frame.
21551 (message2_nolog, message3_nolog, redisplay_internal)
21552 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
21553 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
21554 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
21555 (Fx_display_pixel_width, Fx_display_pixel_height)
21556 (Fx_display_planes, Fx_display_color_cells)
21557 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
21558 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
21559 (Fx_display_backing_store, Fx_display_visual_class)
21560 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
21561 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
21562
21563 * xfns.c (x_set_foreground_color x_set_background_color)
21564 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
21565 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21566 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
21567 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
21568 terminal that is being deleted.
21569 (Fx_create_frame): Use `store_frame_param' to set `window-system'
21570 frame parameter, and make sure it overrides any user-supplied setting.
21571 (Fx_close_connection, Fx_synchronize): Unify argument names with
21572 the rest of the DEFUNs.
21573
21574 * dispnew.c (Fsend_string_to_terminal): Update call to
21575 `get_tty_terminal'.
21576 (Fredraw_frame, Fsend_string_to_terminal)
21577 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
21578 FRAME_TERMCAP_P and FRAME_TTY.
21579 (window_change_signal): Don't believe width/height values that are
21580 impossibly small.
21581 (Vinitial_window_system): Rename from Vwindow_system.
21582 (termscript, Wcm, rif): Delete.
21583
21584 * termhooks.h (struct terminal): New struct containing the
21585 previously global text display hooks and new members NAME,
21586 DELETED and PARAM_ALIST.
21587 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
21588 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
21589 (FRAME_RIF): New macros.
21590 (get_terminal_param, get_device): New declarations.
21591 (termscript): Delete declaration.
21592
21593 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
21594 (XTflash, x_free_frame_resources, x_scroll_bar_create)
21595 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
21596 FRAME_FOREGROUND_PIXEL.
21597 (x_fully_uncatch_errors): Disable definition.
21598 (x_scroll_bar_expose): Fix reference to foreground pixel.
21599 (XTread_socket): Disable loop on all X displays.
21600 (x_delete_terminal): Don't set terminal->deleted and let
21601 delete_terminal delete the frames on the terminal.
21602 (x_delete_display): Doc update to reflect changes in
21603 delete_terminal.
21604 (x_display_info) <terminal>: Move member earlier in the struct.
21605 (deleting_tty): Remove old variable.
21606 (Fsuspend_tty): Call clear_tty_hooks.
21607 (Fresume_tty, init_tty): Call set_tty_hooks.
21608 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21609 errors on X frames.
21610 (x_catch_errors_unwind): Abort if x_error_message is NULL.
21611 (handle_one_xevent): Initialize `f' to NULL.
21612 (x_delete_terminal, x_create_terminal): New functions.
21613 (XTset_terminal_modes, XTreset_terminal_modes)
21614 (XTread_socket, x_connection_closed, x_term_init)
21615 (x_term_init, x_delete_display): Add terminal parameter.
21616 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21617 X connections.
21618
21619 * frame.c: Include termchar.h.
21620 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21621 (Qwindow_system, Qenvironment, Qterm_environment_variable)
21622 (Qdisplay_environment_variable): New vars.
21623 (Fframep): Deal with output_initial.
21624 (Fframe-live-p): Doc fix.
21625 (Fwindow-system): New function.
21626 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21627 (make_terminal_frame): Don't create frames on a terminal that is
21628 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21629 (store_frame_param): Check for found_for_frame before calling XFRAME.
21630 (Fmake_terminal_frame): Handle NULL tty names correctly.
21631 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21632 (Fdelete_frame): Remove unused variable `count'. Don't allow other
21633 frames to refer to a deleted frame in their 'environment parameter.
21634 (Fframe_with_environment): New function.
21635 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
21636 (get_future_frame_param): New function.
21637 (Fmake_terminal_frame): Use it.
21638 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21639
21640 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21641 * sysdep.c (reset_sys_modes): Update for renames.
21642
21643 * keyboard.c (tty_read_avail_input): New function.
21644 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
21645 (syms_of_keyboard): Defsubr them.
21646 (Fset_input_meta_mode, Fset_quit_char): New functions.
21647 (Fset_input_mode): Split to above functions.
21648 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21649 parameter. Use it in call to `read_char'.
21650 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
21651 Set wrong_kboard_jmpbuf correctly in recursive calls.
21652 Use current_kboard to access Vkeyboard_translate_table.
21653 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21654 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21655 Update longjmp invocations. Remember the original current_kboard,
21656 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21657 changes it. Comment out unnecessary calls to
21658 `record_single_kboard_state' and `any_kboard_state'.
21659 Update recursive calls.
21660 (wrong_kboard_jmpbuf): Remove global variable.
21661 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21662 Handle deleted interrupted_kboards correctly; that is a legal
21663 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21664 and read_char calls. Abort if interrupted_kboard died in read_char.
21665 (any_kboard_state, single_kboard_state)
21666 (push_frame_kboard): Remove function.
21667 (pop_kboard): Switch out of single_kboard mode if the kboard has
21668 been deleted. Remove unused variable. Help debugging by not
21669 changing current_kboard unnecessarily. Set current_kboard to the
21670 kboard of the selected frame when the stored kboard object has
21671 been deleted before pop_kboard.
21672 (temporarily_switch_to_single_kboard): Change first parameter to a
21673 frame pointer. Throw an error when caller wants to change kboards
21674 while in single_kboard mode. Don't push_kboard if we weren't in
21675 single kboard state. Don't pop_kboard if we popped into any
21676 kboard state.
21677 (restore_kboard_configuration): Abort if pop_kboard changed the
21678 kboard in single_kboard mode. Call pop_kboard only after setting
21679 up single_kboard mode.
21680 (Frecursive_edit): Switch to single_kboard mode only in nested
21681 command loops.
21682 (cmd_error, command_loop, command_loop_1, timer_check):
21683 Comment out unnecessary call to `any_kboard_state' and
21684 `record_single_kboard_state'.
21685 (delete_kboard): Exit single_kboard mode if we have just deleted
21686 that kboard. Use FRAME_KBOARD.
21687 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21688 `fatal_error_signal'.
21689 (record_single_kboard_state): Don't push_kboard if we weren't in
21690 single kboard state. Don't pop_kboard if we popped into any
21691 kboard state.
21692 (push_frame_kboard): Rename to push_kboard.
21693 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21694 (read_avail_input): Read input from all terminals.
21695 (mark_kboards): Also mark Vkeyboard_translate_table.
21696 (kbd_buffer_store_event_hold): Simplify condition.
21697 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21698 (Vkeyboard_translate_table): Move to struct kboard.
21699 (init_kboard): Initialize Vkeyboard_translate_table.
21700 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21701 Vkeyboard_translate_table. Update doc strings. Update docs of
21702 local-function-key-map and function-key-map.
21703
21704 * terminal.c: New file.
21705
21706 * term.c: Include errno.h.
21707 (Vring_bell_function, device_list, initial_device)
21708 (next_device_id, ring_bell, update_begin, update_end)
21709 (set_terminal_window, cursor_to, raw_cursor_to)
21710 (clear_to_end, clear_frame, clear_end_of_line)
21711 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21712 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21713 (syms_of_term): Move their initialization to terminal.c.
21714 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21715 (Ftty_display_color_cells)
21716 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21717 (clear_tty_hooks, set_tty_hooks)
21718 (init_tty, maybe_fatal): New functions.
21719 (Ftty_type): Return nil if terminal is not on a tty instead of
21720 throwing an error. Doc update.
21721 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21722 Doc update. Initialize new subrs and variables.
21723 (delete_tty): Use terminal->deleted.
21724 (tty_set_terminal_modes): Rename from set_terminal_modes.
21725 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21726 (set_scroll_region): Rename to `tty_set_scroll_region'.
21727 (turn_on_insert): Rename to `tty_turn_on_insert'.
21728 (turn_off_insert): Rename to `tty_turn_off_insert'.
21729 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21730 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21731 (toggle_highligh): Rename to `tty_toggle_highlight'.
21732 (background_highlight): Rename to `tty_background_highlight'.
21733 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21734 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21735 (tty_set_scroll_region, tty_background_highlight)
21736 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21737 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21738 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21739 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21740 Add static modifier.
21741 (tty_reset_terminal_modes, tty_set_terminal_window)
21742 (tty_set_scroll_region, tty_background_highlight)
21743 (tty_highlight_if_desired, tty_cursor_to)
21744 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21745 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21746 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21747 renames.
21748
21749 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21750
21751 * keyboard.c: Qrtl is new.
21752 (parse_tool_bar_item): Handle :rtl keyword.
21753 (syms_of_keyboard): Intern :rtl keyword.
21754
21755 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21756
21757 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21758 so no Lisp code is executed.
21759 (file_for_image, find_rtl_image): New functions.
21760 (xg_get_image_for_pixmap): Use file_for_image.
21761 (update_frame_tool_bar): If direction is RTL, use RTL image if
21762 defined. Use Gtk stock images if defined.
21763
21764 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21765
21766 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21767 for nonexistent or zero-width glyph in composition glyph.
21768
21769 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21770
21771 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21772
21773 * xdisp.c (Finvisible_p): New function.
21774 (syms_of_xdisp): defsubr it.
21775
21776 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
21777
21778 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21779 Doc fixes.
21780
21781 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21782
21783 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21784
21785 2007-08-24 Martin Rudalics <rudalics@gmx.at>
21786
21787 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21788 whether decoding has modified buffer contents.
21789
21790 2007-08-24 Jason Rumney <jasonr@gnu.org>
21791
21792 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21793 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21794 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21795 (init_svg_functions) [HAVE_NTGUI]: New function.
21796 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21797 (svg_load_image): Use them.
21798 (svg_load_image) [HAVE_NTGUI]: Implement background.
21799
21800 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21801
21802 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21803 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21804 (LIBX): Remove @RSVG_LIBS@.
21805 (LIBES): Add $(RSVG_LIBS).
21806
21807 * image.c (svg_load_image): Blend with specified background if exists.
21808 Use IMAGE_BACKGROUND. Add Mac OS Support.
21809
21810 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21811 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21812 Remove macros.
21813 [MAC_OSX] (socket_callback): Do nothing.
21814 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21815 ReceiveNextEvent.
21816 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21817 socket_callback.
21818 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21819
21820 2007-08-22 Glenn Morris <rgm@gnu.org>
21821
21822 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21823
21824 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21825
21826 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21827
21828 * image.c: Add support for SVG images. Some additional comments
21829 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21830 (svg_image_p): New function to test for SVG image.
21831 (svg_load): New function to load SVG image.
21832 (svg_load_image): New function, helper for svg_load.
21833 (Qsvg): New Lisp_object.
21834 (svg_keyword_index): New enum.
21835 (svg_format): New static `image_keyword' struct.
21836 (svg_type): New static `image_type' struct.
21837 (librsvg/rsvg.h): Include it.
21838
21839 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21840
21841 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21842
21843 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21844
21845 * lread.c (Qold_style_backquotes): New var.
21846 (syms_of_lread): Init and staticpro it.
21847 (load_warn_old_style_backquotes): New fun.
21848 (Fload): Use them to warn about old style backquotes.
21849 (end_of_file_error, Fload): Remove unused vars.
21850
21851 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21852
21853 * lread.c (Vold_style_backquotes): New var.
21854 (syms_of_lread): Init and export it to Elisp.
21855 (read1): Set it when we find an old-style (back)quote.
21856
21857 2007-08-22 Jason Rumney <jasonr@gnu.org>
21858
21859 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21860
21861 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21862
21863 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21864
21865 2007-08-19 Richard Stallman <rms@gnu.org>
21866
21867 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21868
21869 2007-08-19 Andreas Schwab <schwab@suse.de>
21870
21871 * alloc.c (pure): Round PURESIZE up.
21872
21873 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21874
21875 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21876 active frame.
21877
21878 2007-08-16 Richard Stallman <rms@gnu.org>
21879
21880 * eval.c (Fcommandp): Add parens to clarify.
21881
21882 * minibuf.c (Fall_completions): Use enum for type of table.
21883
21884 * emacs.c (USAGE2): Improve text.
21885
21886 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21887
21888 * term.c (tty_default_color_capabilities): Declare static
21889 variables in file scope, to avoid HPUX compiler problem.
21890
21891 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21892
21893 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21894 to gtk_toolbar_insert.
21895
21896 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21897
21898 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21899
21900 * insdel.c (reset_var_on_error): New fun.
21901 (signal_before_change, signal_after_change):
21902 Use it to reset (after|before)-change-functions to nil in case of error.
21903 Bind inhibit-modification-hooks to t.
21904 Don't bind (after|before)-change-functions to nil while they run.
21905
21906 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21907
21908 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21909 filling pixmap with stippled background.
21910
21911 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21912
21913 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21914 Don't use invisible frame as parent window for repositioning.
21915
21916 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21917
21918 * print.c (new_backquote_output): Rename from old_backquote_output.
21919 (print): Inverse its logic (according to its name) so as to match the
21920 behavior of new_backquote_flag in lread.c.
21921
21922 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21923
21924 * gmalloc.c (posix_memalign): New function.
21925
21926 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21927 ActivateControl/DeactivateControl here.
21928 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21929 frame-notice-user-settings is non-nil.
21930 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21931 for kEventParamFMFontStyle.
21932 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21933 mac_pass_command_to_system and mac_pass_control_to_system here.
21934 (XTread_socket): Call ActivateControl/DeactivateControl here.
21935 (XTread_socket) [TARGET_API_MAC_CARBON]:
21936 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21937 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21938 for window repositioning.
21939
21940 2007-08-08 Glenn Morris <rgm@gnu.org>
21941
21942 * Replace `iff' in doc-strings and comments.
21943
21944 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
21945
21946 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21947
21948 2007-08-07 Martin Rudalics <rudalics@gmx.at>
21949
21950 * fileio.c (Finsert_file_contents): Run format-decode and
21951 after_insert_file_functions on entire buffer when REPLACE is
21952 non-nil and inhibit modification_hooks and point_motion_hooks.
21953 For consistency, run after_insert_file_functions iff something
21954 got inserted. Move signal_after_change and update_compositions
21955 after code running after_insert_file_functions. Make sure that
21956 undo_list doesn't record intermediate steps of the decoding process.
21957
21958 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21959
21960 * emacs.c (main)
21961 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21962 Call malloc_enable_thread on interactive startup.
21963
21964 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21965 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21966 [USE_PTHREAD]: Conditionalize with it.
21967 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21968 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21969 New functions.
21970
21971 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
21972
21973 * xdisp.c (redisplay_window): When restoring original buffer
21974 position, make sure it is still valid.
21975
21976 * image.c (png_load): Ignore png-supplied background color.
21977
21978 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21979
21980 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21981 Use kCFAbsoluteTimeIntervalSince1970.
21982
21983 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21984 New variable.
21985 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21986 event loop should be quit.
21987 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21988 Quit dialog event loop if quit_dialog_event_loop is set.
21989
21990 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21991 (Selection): New typedef. Use instead of ScrapRef.
21992 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21993 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21994 (mac_clear_selection): Rename from clear_scrap.
21995 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21996 scrap_has_target_type. All uses changed.
21997 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21998 (mac_selection_has_target_p): New functions.
21999 (mac_put_selection_value): Rename from put_scrap_string.
22000 (mac_get_selection_value): Rename from get_scrap_string.
22001 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
22002 (put_scrap_private_timestamp, scrap_has_target_type)
22003 (get_scrap_private_timestamp): Remove functions.
22004 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
22005 (x_own_selection, x_get_local_selection):
22006 Use mac_valid_selection_value_p.
22007 (x_own_selection): Don't use put_scrap_private_timestamp.
22008 Record OWNERSHIP-INFO into Vselection_alist instead.
22009 (x_get_local_selection): Don't check type if request is local.
22010 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
22011 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
22012
22013 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
22014
22015 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
22016 add comment explaining why.
22017
22018 2007-08-03 Richard Stallman <rms@gnu.org>
22019
22020 * fileio.c (Fvisited_file_modtime): Use make_time.
22021
22022 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
22023
22024 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
22025 build.
22026
22027 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
22028
22029 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
22030
22031 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
22032
22033 * puresize.h (BASE_PURESIZE): Increase to 1130000.
22034
22035 2007-07-30 Richard Stallman <rms@gnu.org>
22036
22037 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
22038
22039 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
22040
22041 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
22042
22043 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
22044
22045 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
22046 remote default-directory.
22047
22048 * buffer.c (mode-line-format): Update doc string.
22049
22050 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22051
22052 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
22053 scroll bar gap.
22054 (x_scroll_bar_create): Set bar->fringe_extended_p.
22055 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
22056 on frame edge. Check fringe background extension. Don't clear
22057 extended fringe background area.
22058
22059 * w32term.h (struct scroll_bar): New member fringe_extended_p.
22060 (w32_fill_area): Enclose multiple statements with do ... while (0).
22061
22062 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
22063 Extend fringe background to scroll bar gap.
22064 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
22065 Set bar->fringe_extended_p.
22066 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22067 Put leftmost/rightmost scroll bars on frame edge. Check fringe
22068 background extension. Don't clear extended fringe background area.
22069
22070 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22071 New member fringe_extended_p.
22072
22073 2007-07-25 Glenn Morris <rgm@gnu.org>
22074
22075 * Relicense all FSF files to GPLv3 or later.
22076
22077 * COPYING: Switch to GPLv3.
22078
22079 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
22080
22081 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
22082
22083 * data.c (Finteractive_form): Check for the presence of an
22084 `interactive-form' symbol property more thoroughly.
22085
22086 * data.c (Finteractive_form): Use an `interactive-form' property if
22087 present, analogous to the function-documentation property.
22088
22089 2007-07-24 Jason Rumney <jasonr@gnu.org>
22090
22091 * w32fns.c (x_real_positions): Get real position from OS instead of
22092 calculating it.
22093
22094 2007-07-23 Jason Rumney <jasonr@gnu.org>
22095
22096 * filelock.c (current_lock_owner): Allow for @ sign in username.
22097
22098 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
22099
22100 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
22101 remote default-directory.
22102
22103 * buffer.c (mode-line-format): Describe above case in doc string.
22104
22105 2007-07-20 Eli Zaretskii <eliz@gnu.org>
22106
22107 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
22108 Define if not defined.
22109
22110 2007-07-18 Jason Rumney <jasonr@gnu.org>
22111
22112 * w32proc.c (w32_executable_type): Handle 64 bit executables.
22113
22114 2007-07-18 Richard Stallman <rms@gnu.org>
22115
22116 * data.c (Fsetq_default): Doc fix.
22117
22118 * eval.c (Fsetq): Doc fix.
22119
22120 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
22121
22122 * coding.c (Ffind_operation_coding_system):
22123 * eval.c (For, Fand): Doc fixes.
22124 Reported by Johan Bockgård.
22125
22126 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
22127
22128 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
22129
22130 * xterm.h: Declare x_ewmh_activate_frame.
22131
22132 * xterm.c (x_ewmh_activate_frame): New function.
22133 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
22134
22135 2007-07-17 Martin Rudalics <rudalics@gmx.at>
22136
22137 * window.c (Fdisplay_buffer): If largest or LRU window is the
22138 only window, split it even if it is not eligible for splitting.
22139 This restores the original behavior broken by the 2007-07-15
22140 change.
22141
22142 2007-07-17 Glenn Morris <rgm@gnu.org>
22143
22144 * abbrev.c (abbrev_check_chars): New function.
22145 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
22146 Call abbrev_check_chars to check abbrev characters are word
22147 constituents. Doc fix.
22148
22149 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
22150
22151 * process.c (Fstart_process, Fmake_network_process)
22152 (read_process_output): Fix up last changes.
22153
22154 2007-07-16 Eli Zaretskii <eliz@gnu.org>
22155
22156 * makefile.w32-in (clean): Don't delete *~.
22157
22158 2007-07-16 Andreas Schwab <schwab@suse.de>
22159
22160 * window.c (Fdisplay_buffer): Use NILP.
22161 (Fset_window_scroll_bars): Likewise.
22162
22163 2007-07-15 Martin Rudalics <rudalics@gmx.at>
22164
22165 * window.c (window_min_size_2): New function.
22166 (window_min_size_1, size_window, Fdisplay_buffer)
22167 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
22168 windows without mode- or header-lines when window-min-height is
22169 too small.
22170 (size_window): Reset nodelete_p after testing it, following an
22171 earlier note by Kim F. Storm.
22172 (display_buffer): Do not set split_height_threshold to twice the
22173 value of window_min_height to avoid changing the value of a
22174 customizable variable. Rather explicitly check whether the
22175 height of the window that shall be splitted is at least as large
22176 as split_height_threshold.
22177 (Fwindow_full_width_p): New defun.
22178 (syms_of_window): Defsubr it.
22179
22180 * window.h: Add EXFUN for Fwindow_full_width_p.
22181
22182 2007-07-14 Jason Rumney <jasonr@gnu.org>
22183
22184 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
22185
22186 2007-07-14 Richard Stallman <rms@gnu.org>
22187
22188 * eval.c (maybe_call_debugger): New function.
22189 (find_handler_clause): Use maybe_call_debugger.
22190 Call it when the handler says `debug'.
22191 Eliminate DEBUGGER_VALUE_PTR.
22192 (Fsignal): Eliminate debugger_value.
22193 (Qdebug): New variable.
22194 (syms_of_eval): Initialize it.
22195
22196 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
22197
22198 * eval.c (Fprogn):
22199 * keyboard.c (Ftrack_mouse):
22200 * print.c (Fwith_output_to_temp_buffer):
22201 * window.c (Fsave_window_excursion): Doc fix.
22202
22203 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
22204
22205 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
22206
22207 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
22208
22209 * process.h (struct Lisp_Process): Turn slots infd, outfd,
22210 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
22211 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
22212 read_output_delay, and read_output_skip from Lisp_Objects to ints.
22213 Remove unused encoding_carryover.
22214 * process.c: Adjust all functions accordingly.
22215
22216 2007-07-12 Richard Stallman <rms@gnu.org>
22217
22218 * term.c: Include unistd.h only if HAVE_UNISTD_H.
22219
22220 2007-07-11 Jason Rumney <jasonr@gnu.org>
22221
22222 * makefile.w32-in (LIBS): Include OLE32.
22223
22224 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
22225 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
22226
22227 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
22228
22229 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
22230 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
22231 from a Lisp_Object into a bare pointer.
22232 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22233 Adjust the code correspondingly.
22234
22235 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
22236
22237 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
22238 (term_show_mouse_face): Remove unused var `j'.
22239 (handle_one_term_event): Remove unused vars `i' and `j'.
22240 Don't cast return value of ttyname since it's not necessary.
22241
22242 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
22243
22244 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
22245 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
22246
22247 * fns.c (map_char_table): Use an array of int for `indices' rather than
22248 an array of Lisp_Objects (which are only ever integers anyway).
22249 (Fmap_char_table): Update caller.
22250 * lisp.h: Update prototype.
22251 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
22252 * fontset.c (Ffontset_info):
22253 * casetab.c (set_case_table): Update callers.
22254
22255 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
22256
22257 * keymap.c (struct accessible_keymaps_data)
22258 (struct where_is_internal_data): New structures.
22259 (accessible_keymaps_1, where_is_internal_1): Use them to change
22260 interface to adhere to the one used by map_keymap.
22261 (Faccessible_keymaps, where_is_internal): Use map_keymap.
22262 (accessible_keymaps_char_table, where_is_internal_2): Remove.
22263
22264 * keymap.h (map_keymap_function_t): More informative prototype.
22265
22266 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
22267
22268 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
22269 (looking_at_1): Don't change search_regs and last_thing_searched
22270 if `inhibit-changing-match-data' is non-nil.
22271 (string_match_1, search_buffer, set_search_regs): Likewise.
22272 (syms_of_search): Add Lisp level definition for
22273 `inhibit-changing-match-data' and set it to nil.
22274 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
22275 start and end of the match, instead of using values in search_regs.
22276
22277 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
22278
22279 * minibuf.c (Fcompleting_read): New value `confirm-only'
22280 for `require-match'.
22281
22282 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
22283
22284 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
22285 part of the 2007-06-27 change to syms_of_fileio.
22286
22287 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22288
22289 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
22290 Check WINDOWP before using XWINDOW. Consolidate return statements.
22291
22292 2007-06-27 Richard Stallman <rms@gnu.org>
22293
22294 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
22295
22296 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
22297
22298 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
22299
22300 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22301
22302 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
22303 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
22304 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
22305 (_free_internal, memalign): Use them.
22306 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
22307 Initialize to PTHREAD_MUTEX_INITIALIZER.
22308 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
22309 (morecore_nolock): Rename from morecore. All uses changed.
22310 Use only nolock versions of internal allocation functions.
22311 (_malloc_internal_nolock, _realloc_internal_nolock)
22312 (_free_internal_nolock): New functions created from
22313 _malloc_internal, _realloc_internal, and _free_internal.
22314 (_malloc_internal, _realloc_internal, _free_internal): Use them.
22315 Copy hook value to automatic variable before its use.
22316 (memalign): Copy hook value to automatic variable before its use.
22317
22318 2007-06-26 Kenichi Handa <handa@m17n.org>
22319
22320 * coding.c (Ffind_operation_coding_system): Docstring improved.
22321 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
22322
22323 2007-06-25 David Kastrup <dak@gnu.org>
22324
22325 * keymap.c (Fcurrent_active_maps): Add `position' argument.
22326 (Fwhere_is_internal): Adjust call to `current-active-maps' to
22327 cater for additional parameter.
22328
22329 * keymap.h: Adjust number of parameters to `current-active-maps'.
22330
22331 * doc.c (Fsubstitute_command_keys): Adjust call of
22332 `current-active-maps'.
22333
22334 2007-06-25 David Kastrup <dak@gnu.org>
22335
22336 * callint.c (Fcall_interactively): Make the parsing of interactive
22337 specs somewhat more readable.
22338
22339 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22340
22341 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
22342 to scroll bar gap also when bitmap fills fringe. Draw only foreground
22343 if extended background has already been filled.
22344
22345 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22346
22347 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
22348 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
22349
22350 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
22351 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
22352 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
22353 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
22354 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
22355 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
22356 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
22357 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
22358 Run timers during dialog popup.
22359 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
22360
22361 2007-06-21 Jason Rumney <jasonr@gnu.org>
22362
22363 * image.c (convert_mono_to_color_image): Swap fore and background.
22364
22365 2007-06-20 Jason Rumney <jasonr@gnu.org>
22366
22367 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
22368 (w32_free_bdf_font): Unmap memory not handle.
22369
22370 2007-06-20 Sam Steingold <sds@gnu.org>
22371
22372 * gmalloc.c (__morecore): Fix the declaration to comply with the
22373 definition.
22374
22375 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
22376
22377 * w32term.c (w32_delete_display): Remove leftover declaration.
22378 (w32_define_cursor, w32_initialize): Make static.
22379
22380 * w32.c (_wsa_errlist): Fix typo in error message.
22381 (init_environment): Ignore any environment variable from the
22382 registry having a null value.
22383
22384 2007-06-20 Glenn Morris <rgm@gnu.org>
22385
22386 * Makefile.in (LIBGIF): Default to -lgif.
22387
22388 2007-06-17 Jason Rumney <jasonr@gnu.org>
22389
22390 * w32menu.c (add_menu_item): Don't use multibyte string functions on
22391 unicode strings.
22392
22393 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
22394
22395 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
22396 Fix typo in docstring.
22397
22398 2007-06-16 Eli Zaretskii <eliz@gnu.org>
22399
22400 * w32menu.c (add_menu_item): Escape `&' characters in menu items
22401 and their keybindings.
22402
22403 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
22404
22405 * composite.c (update_compositions): Fix last fix.
22406
22407 2007-06-14 Jason Rumney <jasonr@gnu.org>
22408
22409 * w32.c (get_process_times_fn): New function pointer.
22410 (globals_of_w32): Intialize it if present in kernel32.dll.
22411 (w32_get_internal_run_time): New function.
22412
22413 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
22414
22415 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
22416
22417 * composite.c (update_compositions): Check the validness of
22418 compositions.
22419
22420 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22421
22422 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
22423 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
22424
22425 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
22426 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
22427
22428 * macgui.h (USE_MAC_TOOLBAR): New define.
22429
22430 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22431 Return immediately unless popup is activated.
22432
22433 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
22434 background to scroll bar gap.
22435 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
22436 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
22437 scroll bars on frame edge. Check fringe background extension.
22438 Don't clear extended fringe background area.
22439 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
22440 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
22441 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
22442 [USE_MAC_TOOLBAR]: New macros.
22443 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
22444 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
22445 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
22446 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
22447 [USE_MAC_TOOLBAR]: New functions.
22448 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
22449 manually if previous repositioning has failed.
22450 (mac_handle_keyboard_event): Use precomputed event kind.
22451 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
22452 as tool bar item click. Handle mouse movement over tool bar items.
22453
22454 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
22455 toolbar_win_gravity.
22456 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
22457 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
22458 Add externs.
22459
22460 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
22461 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
22462
22463 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
22464
22465 * image.c (search_image_cache): Remove unused variable.
22466
22467 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
22468
22469 * xfns.c, xmenu.c: Link to xaw3d if available.
22470
22471 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22472
22473 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
22474 frame_foreground and frame_background.
22475
22476 * image.c (lookup_image): Save frame foreground and background colors.
22477 (search_image_cache): Check if saved and current frame colors match.
22478
22479 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
22480
22481 * regex.c (regex_compile): Remove the `regnum' counter.
22482 Use bufp->re_nsub instead. Add support for \(?N:RE\).
22483
22484 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
22485
22486 * term.c: Include intervals.h to declare Fget_text_property.
22487
22488 2007-06-10 Jason Rumney <jasonr@gnu.org>
22489
22490 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
22491
22492 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
22493
22494 * callint.c (Fcall_interactively):
22495 * editfns.c (Fdelete_and_extract_region):
22496 * fileio.c (Fread_file_name):
22497 * fns.c (Fmapconcat):
22498 * keyboard.c (cmd_error_internal):
22499 * keymap.c (Fkey_description):
22500 * lread.c (openp):
22501 * minibuf.c (read_minibuf):
22502 * search.c (wordify):
22503 * sunfns.c (sel_read):
22504 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
22505 * xfns.c (x_default_scroll_bar_color_parameter):
22506 * xmenu.c (menu_help_callback):
22507 * xselect.c (Fx_get_atom_name):
22508 * xterm.c (x_term_init): Use empty_unibyte_string.
22509
22510 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
22511
22512 * alloc.c (init_strings): Initialize canonical empty strings.
22513 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
22514 canonical empty string when the requested size is 0.
22515
22516 * emacs.c (empty_unibyte_string): Rename from empty_string.
22517 (empty_multibyte_string): New canonical empty string.
22518 (syms_of_emacs): Don't initialize empty_string.
22519
22520 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
22521 string, if appropriate.
22522 (empty_unibyte_string, empty_multibyte_string): New externs.
22523 (empty_string): Remove extern.
22524
22525 * lread.c (syms_of_lread): Use empty_unibyte_string.
22526
22527 2007-06-07 Jason Rumney <jasonr@gnu.org>
22528
22529 * s/ms-w32.h: Don't define HAVE_TZNAME.
22530
22531 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
22532
22533 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22534
22535 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
22536
22537 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
22538 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
22539
22540 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22541 Don't call next handler.
22542 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
22543 Remove argument. Install handler to application.
22544 (set_frame_menubar): Don't change deep_p.
22545 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
22546 FRAME_OUTER_TO_INNER_DIFF_Y.
22547 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22548 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22549 [HAVE_DIALOGS]: New macros.
22550 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
22551 Use them.
22552 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
22553
22554 * macselect.c [MAC_OSX] (install_service_handler): Rename from
22555 init_service_handler. All callers changed. Return OSStatus value.
22556
22557 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
22558 All callers changed so as not to call SetPortWindowPort.
22559 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
22560 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
22561 mac_draw_string_common.
22562 (mac_draw_image_string_qd): Likewise.
22563 (mac_draw_string_common): Use them. Add INLINE.
22564 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
22565 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
22566 GetGlobalMouse.
22567 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
22568 and FRAME_OUTER_TO_INNER_DIFF_Y.
22569 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
22570 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
22571 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
22572 repositioning window to mac_handle_window_event.
22573 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
22574 saving window location to mac_handle_window_event
22575 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
22576 (install_menu_target_item_handler): Remove argument in extern.
22577 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
22578 Also accept command events.
22579 (do_keystroke): New function created from XTread_socket.
22580 (init_command_handler): Remove functions.
22581 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
22582 and save window location by kEventWindowShowing and kEventWindowHiding
22583 handlers here. Don't call next handler for window state change and
22584 focus events.
22585 (mac_handle_application_event, mac_handle_keyboard_event)
22586 [TARGET_API_MAC_CARBON]: New functions.
22587 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
22588 kEventWindowShowing and kEventWindowHiding events. Move installation
22589 of mouse, font, text input and menu target item handlers to
22590 install_application_handler.
22591 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
22592 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22593 New function.
22594 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22595 Register it.
22596 (XTread_socket) [TARGET_API_MAC_CARBON]:
22597 Consolidate SendEventToEventTarget calls.
22598 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22599 Move application activation handler to mac_handle_application_event.
22600 Move keyboard handler to mac_handle_keyboard_event.
22601 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22602 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22603 init_command_handler. Call install_application_handler.
22604
22605 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22606 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22607
22608 2007-06-07 Glenn Morris <rgm@gnu.org>
22609
22610 * emacs.c (main): Use `emacs-copyright' in --version output.
22611
22612 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
22613
22614 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22615
22616 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22617
22618 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22619
22620 * macgui.h: Replace WindowPtr with WindowRef.
22621
22622 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22623 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22624 Replace ControlHandle with ControlRef.
22625 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22626
22627 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22628 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22629 Replace ControlHandle with ControlRef.
22630 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22631 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22632
22633 * macterm.h (struct scroll_bar): Rename member control_handle_low
22634 and control_handle_high to control_ref_low and control_ref_high.
22635 All uses changed.
22636 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22637 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22638 respectively. All uses changed.
22639 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22640 (install_window_handler, remove_window_handler): Replace WindowPtr
22641 with WindowRef in externs.
22642
22643 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
22644
22645 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
22646
22647 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
22648
22649 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22650
22651 * frame.c (Fmouse_position, Fmouse_pixel_position):
22652 Condition on HAVE_GPM too.
22653
22654 * term.c (term_mouse_highlight): Remove unused variables.
22655 (Fterm_open_connection): Set gpm_zerobased to 1.
22656 (term_mouse_movement, term_mouse_click, handle_one_term_event):
22657 Use zero based co-ordinates.
22658 (handle_one_term_event): Report a drag as mouse movement too.
22659
22660 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22661
22662 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
22663
22664 * image.c (search_image_cache): New function. Require background
22665 color match if background color is unspecified in the image spec.
22666 (uncache_image, lookup_image): Use it.
22667
22668 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
22669
22670 * window.c (Fshrink_window): Reflow docstring.
22671
22672 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
22673
22674 * Version 22.1 released.
22675
22676 2007-06-01 Richard Stallman <rms@gnu.org>
22677
22678 * xfns.c (x_encode_text): Add GCPRO.
22679
22680 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22681
22682 * xfns.c (x_set_name_internal): Save encoded name before
22683 x_encode_text in case string data is relocated.
22684
22685 2007-05-31 Richard Stallman <rms@gnu.org>
22686
22687 * buffer.c (syms_of_buffer): Doc fix.
22688
22689 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
22690
22691 * sysdep.c (init_sys_modes): Add rather than replace with
22692 O_NONBLOCK.
22693
22694 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22695 term_mouse_moveto.
22696
22697 * termhooks.h (term_mouse_moveto): New extern.
22698
22699 * term.c (mouse_face_window): Rename...
22700 (Qmouse_face_window): ...to this.
22701 (term_show_mouse_face, term_clear_mouse_face)
22702 (term_mouse_highlight): Use Qmouse_face_window.
22703 (term_mouse_moveto): New function.
22704 (term_mouse_position): Make it work.
22705 (syms_of_term): Uncomment assignment to mouse_position_hook.
22706 Staticpro Qmouse_face_window.
22707
22708 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22709
22710 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22711 around current_column call.
22712
22713 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22714
22715 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22716 * xdisp.c (next_element_from_buffer):
22717 * window.c (delete_window):
22718 * term.c (term_mouse_highlight):
22719 * msdos.c (getdefdir):
22720 * macterm.c (mac_create_bitmap_from_bitmap_data)
22721 (init_font_name_table):
22722 * fns.c (Fsxhash):
22723 * data.c (Fmake_local_variable):
22724 * ccl.c (ccl_driver): Likewise.
22725
22726 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22727
22728 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22729 Call mac_wakeup_from_rne on window size change.
22730
22731 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
22732
22733 * image.c (uncache_image): Fix typo.
22734
22735 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22736
22737 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22738
22739 2007-05-22 Richard Stallman <rms@gnu.org>
22740
22741 * xterm.c (x_connection_closed): Remove NO_RETURN.
22742
22743 2007-05-22 Martin Rudalics <rudalics@gmx.at>
22744
22745 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22746
22747 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
22748
22749 * image.c (uncache_image): New function.
22750 (Fimage_refresh): New function.
22751
22752 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22753
22754 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22755
22756 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
22757
22758 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22759 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22760
22761 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
22762
22763 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22764 conditional on [HAVE_GPM_H].
22765
22766 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22767
22768 * syntax.c (skip_chars): Update syntax-table only after we checked that
22769 the new location is valid.
22770
22771 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22772
22773 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22774 mac_get_window_bounds.
22775
22776 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
22777
22778 * Makefile.in (LIBGPM): Allow it to be set from configure.
22779 If set then link Emacs with it.
22780
22781 * config.in: Regenerate.
22782
22783 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22784 New externs.
22785
22786 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22787 Include gpm.h.
22788 (handle_one_term_event, term_gpm): New externs.
22789
22790 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22791 and allow it to be interrupted by SIGIO.
22792
22793 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22794 (wait_reading_process_output): Wait on gpm_fd too.
22795 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22796 (add_gpm_wait_descriptor_called_flag): New variable.
22797 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22798
22799 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22800 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22801 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22802 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22803 (make_lispy_event): Add case GPM_CLICK_EVENT.
22804 (read_avail_input): Handle mouse input.
22805
22806 * term.c (write_glyphs_with_face): New function.
22807 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22808 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22809 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22810 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22811 (last_mouse_x, last_mouse_y): New variables.
22812 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22813 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22814 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22815 (Fterm_close_connection): New functions.
22816 (term_init): Initialise mouse_face_window.
22817
22818 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
22819
22820 * xdisp.c (redisplay_window): If first window line is a
22821 continuation line, recompute the new window start instead of
22822 recentering.
22823
22824 2007-05-18 Glenn Morris <rgm@gnu.org>
22825
22826 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22827 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22828
22829 2007-05-17 Glenn Morris <rgm@gnu.org>
22830
22831 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22832
22833 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22834
22835 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22836 dead key repeat and up events.
22837
22838 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
22839
22840 * image.c (pbm_load): Check image size for monochrome pbm.
22841
22842 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
22843
22844 * xterm.c (XTread_socket): Revert last change.
22845
22846 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
22847
22848 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22849
22850 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22851
22852 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22853
22854 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22855 mixup (YAILOM).
22856
22857 2007-05-07 Andreas Schwab <schwab@suse.de>
22858
22859 * keymap.c (Flookup_key): Fix typo in last change.
22860
22861 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22862
22863 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22864 mapping for unibyte strings.
22865
22866 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22867
22868 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22869 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22870
22871 2007-04-29 Richard Stallman <rms@gnu.org>
22872
22873 * insdel.c (replace_range): For undo, record insertion first.
22874
22875 2007-04-29 Andreas Schwab <schwab@suse.de>
22876
22877 * lisp.h (VECSIZE): Use OFFSETOF.
22878
22879 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22880
22881 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22882 disabled lines.
22883
22884 2007-04-28 Richard Stallman <rms@gnu.org>
22885
22886 * lread.c (read_escape): In a string, \s is always space.
22887
22888 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22889
22890 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22891
22892 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22893 submenu for menu bar items.
22894
22895 See ChangeLog.10 for earlier changes.
22896
22897 ;; Local Variables:
22898 ;; coding: utf-8
22899 ;; add-log-time-zone-rule: t
22900 ;; End:
22901
22902 Copyright (C) 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
22903
22904 This file is part of GNU Emacs.
22905
22906 GNU Emacs is free software: you can redistribute it and/or modify
22907 it under the terms of the GNU General Public License as published by
22908 the Free Software Foundation, either version 3 of the License, or
22909 (at your option) any later version.
22910
22911 GNU Emacs is distributed in the hope that it will be useful,
22912 but WITHOUT ANY WARRANTY; without even the implied warranty of
22913 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22914 GNU General Public License for more details.
22915
22916 You should have received a copy of the GNU General Public License
22917 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22918
22919 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40