Backport Bug#7933 fix from trunk.
[bpt/emacs.git] / src / ChangeLog
1 2011-01-29 Andreas Schwab <schwab@linux-m68k.org>
2
3 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
4 of int. All uses adjusted.
5 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
6 (svg_load_image): Remove casts.
7
8 2011-01-29 Chong Yidong <cyd@stupidchicken.com>
9
10 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
11 function definitions for compiling with libpng-1.5.
12 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
13 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
14 (Bug#7908).
15
16 2011-01-28 Chong Yidong <cyd@stupidchicken.com>
17
18 * m/intel386.h: Define NO_ARG_ARRAY. Suggested by Dan Nicolaescu.
19
20 2011-01-27 Chong Yidong <cyd@stupidchicken.com>
21
22 * font.c (font_parse_fcname): Require GTK-style font sizes to
23 occur at the end of the font string (Bug#7853).
24
25 2011-01-26 Chong Yidong <cyd@stupidchicken.com>
26
27 * font.c (font_parse_fcname): Fix typo in string length.
28
29 2011-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
30
31 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
32 the buffer's point-max (bug#7876).
33
34 2011-01-23 Chong Yidong <cyd@stupidchicken.com>
35
36 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
37 Remove unused HAVE_SHM branch (Bug#6811).
38
39 2011-01-23 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
40
41 * s/hpux11.h: Set CANNOT_DUMP on IA64 (Bug#6811).
42
43 2011-01-22 Martin Rudalics <rudalics@gmx.at>
44
45 * window.c (select_window): New function.
46 (Fselect_window): Call it.
47 (inhibit_point_swap): Variable deleted.
48 (Fset_window_configuration): Call select_window directly.
49
50 2011-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
51
52 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
53
54 2011-01-16 Eli Zaretskii <eliz@gnu.org>
55
56 * image.c (syms_of_image): Don't use SET_SYMBOL_VALUE. (Bug#7848)
57
58 2011-01-15 Martin Rudalics <rudalics@gmx.at>
59
60 * window.c (inhibit_point_swap): New variable.
61 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
62 point this time.
63 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
64 of setting selected_window to nil (Bug#7728).
65
66 2011-01-12 Chong Yidong <cyd@stupidchicken.com>
67
68 * config.in (TERMINFO): New definition.
69
70 * s/netbsd.h: Use it to choose between terminfo and termcap
71 (Bug#7642).
72
73 2011-01-03 Jan Djärv <jan.h.d@swipnet.se>
74
75 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
76
77 * nsfns.m (ns_set_name_iconic): Remove.
78 (ns_get_screen): Don't assign integer to f.
79 (ns_set_name_internal): New function (Bug#7517).
80 (Vicon_title_format): Extern declare.
81 (ns_set_name): Call ns_set_name_internal.
82 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
83 (x_implicitly_set_name): Ditto.
84 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
85 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8.
86 Always use buffer name for title and buffer filename only for
87 RepresentedFilename. Handle bad UTF-8 in buffer name (Bug#7517).
88
89 2011-01-03 Eli Zaretskii <eliz@gnu.org>
90
91 * image.c (png_jmpbuf): Remove definition.
92 (my_png_error, png_load): Don't use png_jmpbuf.
93
94 2010-12-31 Eli Zaretskii <eliz@gnu.org>
95
96 * image.c <Qlibpng_version>: New variable.
97 (syms_of_image): Intern and staticpro it. Set its value to the
98 version of PNG library we were compiled with.
99 (my_png_error, png_load): Avoid GCC warnings about direct access
100 to png_ptr->jmpbuf. (Bug#7716)
101 (png_jmpbuf): New macro.
102 (my_png_error, png_load): Use it instead of #ifdef'ing according
103 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
104
105 2010-12-27 Stefan Monnier <monnier@iro.umontreal.ca>
106
107 * .gdbinit (xgetptr): Fix the union+lsb case.
108 (xbacktrace): Fix the union case.
109
110 2010-12-26 Stefan Monnier <monnier@iro.umontreal.ca>
111
112 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
113 different from selected-window's.
114
115 2010-12-25 Eli Zaretskii <eliz@gnu.org>
116
117 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
118 equivalent of a menu item when the key sequence is given by the
119 `:keys' attribute. (Bug#7662)
120
121 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
122 the basic faces are supported.
123
124 2010-12-24 Jan Djärv <jan.h.d@swipnet.se>
125
126 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
127
128 2010-12-17 Eli Zaretskii <eliz@gnu.org>
129
130 * xdisp.c (Fformat_mode_line): Fix last change.
131
132 2010-12-16 Chong Yidong <cyd@stupidchicken.com>
133
134 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
135 faces (Bug#7587).
136
137 2010-12-13 Eli Zaretskii <eliz@gnu.org>
138
139 * fileio.c (Fexpand_file_name): One more doc fix.
140
141 2010-12-12 Eli Zaretskii <eliz@gnu.org>
142
143 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
144
145 2010-12-11 Eli Zaretskii <eliz@gnu.org>
146
147 * w32fns.c (Fx_show_tip): Call try_window with last argument
148 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
149 solved. Round up the tip height to an integral multiple of the
150 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
151 (Bug#7398)
152
153 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
154 (face_before_or_after_it_pos, next_element_from_string)
155 (next_element_from_c_string, produce_stretch_glyph): Remove unused
156 calculations of maximum string length before calling
157 string_char_and_length and STRING_CHAR_AND_LENGTH.
158 (string_char_and_length): Update commentary: MAXLEN is no longer
159 needed.
160
161 2010-12-10 Jan Djärv <jan.h.d@swipnet.se>
162
163 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
164 as (Qsave_session arg).
165
166 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
167 (smc_die_CB): Make an event with arg Qt.
168 (Fhandle_save_session): If event has Qt as argument,
169 call Fkill_emacs (Bug#7552).
170
171 2010-12-07 Jan Djärv <jan.h.d@swipnet.se>
172
173 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
174
175 2010-12-06 Chong Yidong <cyd@stupidchicken.com>
176
177 * dispextern.h (struct it): New member overlay_strings_charpos.
178
179 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
180 charpos where we computed n_overlay_strings.
181 (next_overlay_string): Load overlay strings at recorded position,
182 which may not be the same as the iterator's charpos (Bug#7016).
183
184 2010-12-05 Jan Djärv <jan.h.d@swipnet.se>
185
186 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
187 with cursor color and draw a rectangle around the image (Bug#7412).
188
189 2010-12-05 Chong Yidong <cyd@stupidchicken.com>
190
191 * xdisp.c (try_scrolling): Avoid infloop if the first line is
192 obscured due to a vscroll (Bug#7537).
193
194 2010-12-02 Jan Djärv <jhd@zeplinf.localdomain>
195
196 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
197
198 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
199 Use FRAME_TOOLBAR_HEIGHT.
200 (x_set_offset): Handle XNegative and YNegative in
201 f->size_hint_flags (Bug#7510).
202
203 2010-11-25 Kenichi Handa <handa@m17n.org>
204
205 * charset.c (emacs_mule_charset): Make it an array of charset ID;
206 i.e. integer.
207 (Fdefine_charset_internal): Adjusted for the above change.
208 (init_charset_once): Likewise.
209
210 * charset.h (emacs_mule_charset): Adjust the prototype. Delete
211 duplicated extern.
212
213 * coding.c (emacs_mule_char): Adjust for the change of
214 emacs_mule_charset.
215
216 * lread.c (read_emacs_mule_char): Adjust for the change of
217 emacs_mule_charset.
218
219 2010-11-22 Eli Zaretskii <eliz@gnu.org>
220
221 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
222 of w32api >= 3.15. (Bug#6989) (Bug#7452)
223
224 2010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
225
226 * alloc.c (mark_terminals): Ensure that the image cache is marked
227 even if the terminal object was marked earlier (Bug#6301).
228
229 2010-11-21 Chong Yidong <cyd@stupidchicken.com>
230
231 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
232
233 2010-11-20 Jan Djärv <jan.h.d@swipnet.se>
234
235 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
236 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
237 Use 23 as menubar height if 0. (Bug#7425).
238
239 2010-11-14 Jan Djärv <jan.h.d@swipnet.se>
240
241 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
242
243 * config.in (HAVE_G_TYPE_INIT): New symbol.
244
245 2010-11-12 Eli Zaretskii <eliz@gnu.org>
246
247 * lread.c (Fload): Mention `load-in-progress' and
248 `load-file-name'. (Bug#7346)
249
250 2010-11-09 Eli Zaretskii <eliz@gnu.org>
251
252 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
253 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
254 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
255 subprocesses. Use buffer_free only ifdef subprocesses.
256
257 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
258 the subprocesses version, not in the non-subprocesses one.
259
260 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
261
262 * xfns.c (x_real_positions): Fix declaration-after-statement
263 problem.
264
265 2010-11-05 Chong Yidong <cyd@stupidchicken.com>
266
267 * image.c (free_image): Don't garbage the frame here, since this
268 function can be called while redisplaying (Bug#7210).
269 (uncache_image): Garbage the frame here (Bug#6426).
270
271 2010-11-04 Chong Yidong <cyd@stupidchicken.com>
272
273 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
274 Windows.
275
276 2010-11-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
277
278 * process.c (Fmake_network_process): Don't call turn_on_atimers around
279 `connect' (Bug#5723).
280
281 2010-11-04 Helmut Eller <eller.helmut@gmail.com>
282
283 * process.c (Fmake_network_process): Call `select' for interrupted
284 `connect' rather than creating new socket (Bug#5173).
285
286 2010-11-04 Kenichi Handa <handa@m17n.org>
287
288 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
289 Don't sheck SPEC if it is nil.
290 (font_list_entities): Call font_delete_unmatched if
291 Vface_ignored_fonts is non-nil.
292
293 2010-11-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
294
295 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
296 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
297
298 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
299 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
300 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
301 TRY_WINDOW_CHECK_MARGINS.
302
303 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
304 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423).
305
306 2010-11-04 Jan Djärv <jan.h.d@swipnet.se>
307
308 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
309 parent is the root window. Check this after traversing window tree.
310
311 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
312
313 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
314
315 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
316 before traversing window tree (Bug#5721).
317
318 2010-11-03 Glenn Morris <rgm@gnu.org>
319
320 * Makefile.in (CRT_DIR): New variable, set by configure.
321 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
322 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
323
324 2010-11-01 Jan Djärv <jan.h.d@swipnet.se>
325
326 * process.c (kbd_is_on_hold): New variable.
327 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
328 New functions.
329 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
330 select on empty input mask.
331 (init_process): Initialize kbd_is_on_hold to 0.
332
333 * process.h (hold_keyboard_input, unhold_keyboard_input)
334 (kbd_on_hold_p): Declare.
335
336 * keyboard.c (input_available_signal): Declare.
337 (kbd_buffer_nr_stored): New function.
338 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
339 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
340 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
341 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
342 (tty_read_avail_input): If input is on hold, return.
343 Don't read more that free slots in kbd_buffer (Bug#6571).
344
345 2010-10-31 Chong Yidong <cyd@stupidchicken.com>
346
347 * xterm.c (x_connection_closed): Print informative error message
348 when aborting on GTK. This requires using shut_down_emacs
349 directly instead of Fkill_emacs.
350
351 2010-10-25 Michael Albinus <michael.albinus@gmx.de>
352
353 * dbusbind.c (Fdbus_call_method_asynchronously)
354 (Fdbus_register_signal, Fdbus_register_method): Check, whether
355 `dbus-registered-objects-table' is initialized.
356
357 2010-10-24 Chong Yidong <cyd@stupidchicken.com>
358
359 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
360
361 2010-10-22 Eli Zaretskii <eliz@gnu.org>
362
363 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
364
365 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
366 Deprecate use as a boolean flag.
367
368 2010-10-18 Ken Brown <kbrown@cornell.edu>
369
370 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
371
372 2010-10-15 Kenichi Handa <handa@m17n.org>
373
374 Fix incorrect font metrics when the same font is opened with
375 different pixelsizes.
376
377 * xftfont.c: Include composite.h.
378 (xftfont_shape): New function.
379 (syms_of_xftfont): Set xftfont_driver.shape.
380
381 2010-10-13 Damyan Pepper <damyanp@gmail.com>
382
383 Fix handling of font properties on Windows (bug#6303).
384 * font.c (font_filter_properties): New function, refactored from
385 ftfont_filter_properties.
386 * font.h (font_filter_properties): Declare.
387 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
388 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
389 (w32font_filter_properties): New function.
390 (w32font_driver): Add w32font_filter_properties.
391
392 2010-10-12 Juanma Barranquero <lekktu@gmail.com>
393
394 * font.c (Ffont_variation_glyphs):
395 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
396
397 2010-10-10 Jan Djärv <jan.h.d@swipnet.se>
398
399 * nsterm.m (Qleft): Declare.
400 (ns_right_alternate_modifier): New variable
401 (NSRightAlternateKeyMask): New define.
402 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
403 ns_right_alternate_modifier isn't Qleft.
404 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
405 as emacs modifier for NSRightAlternateKeyMask.
406 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
407
408 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
409
410 * dbusbind.c (xd_get_dispatch_status): Return a Lisp_Object.
411 (xd_pending_messages): Catch xd_get_dispatch_status calls.
412
413 2010-10-08 Kenichi Handa <handa@m17n.org>
414
415 * coding.c (complement_process_encoding_system): Fix previous change.
416
417 2010-10-03 Michael Albinus <michael.albinus@gmx.de>
418
419 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
420 (Fdbus_init_bus): ... here. (Bug#7113)
421
422 2010-10-03 Glenn Morris <rgm@gnu.org>
423
424 * buffer.c (before-change-functions, after-change-functions):
425 Three-year overdue doc fix following 2007-08-13 change.
426
427 2010-10-02 Kenichi Handa <handa@m17n.org>
428
429 * coding.c (coding_inherit_eol_type): If parent doesn't specify
430 eol-format, inherit from the system's default.
431 (complement_process_encoding_system): Make a new coding system
432 inherit the original eol-format.
433
434 2010-09-30 Kenichi Handa <handa@m17n.org>
435
436 * coding.c (complement_process_encoding_system): New function.
437
438 * coding.h (complement_process_encoding_system): Extern it.
439
440 * callproc.c (Fcall_process): Complement the coding system for
441 encoding arguments.
442 (Fcall_process_region): Complement the coding system for encoding
443 the input to the process.
444
445 * process.c (Fstart_process): Complement the coding system for
446 encoding arguments.
447 (send_process): Complement the coding system for encoding what
448 sent to the process.
449
450 2010-09-29 Kenichi Handa <handa@m17n.org>
451
452 * xfont.c (xfont_open): Fix setting of font->average_width from
453 :avgwidth property (Bug#7123).
454
455 2010-09-28 Michael Albinus <michael.albinus@gmx.de>
456
457 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
458 is more portable.
459
460 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
461 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
462 has not defined SIGIO.
463
464 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
465
466 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
467 (Bug#7113)
468
469 2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
470
471 * xgselect.c (xg_select): Clear file descriptors not set from
472 rfds and wfds.
473
474 2010-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
475
476 * syntax.c (back_comment): Detect the case where a 1-char comment
477 starter is also the 2nd char of a 2-char comment ender.
478
479 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
480
481 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
482
483 2010-09-12 Jan Djärv <jan.h.d@swipnet.se>
484
485 * xterm.c (get_current_vm_state): New function.
486 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
487 want_fullscreen so set_wm_state calls are few (Bug#7013).
488 (x_handle_net_wm_state): Move code to get_current_vm_state and
489 call that function.
490
491 2010-09-11 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
492
493 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
494
495 2010-09-08 Kenichi Handa <handa@m17n.org>
496
497 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
498 we may use designation or locking-shift.
499
500 2010-09-07 Kenichi Handa <handa@m17n.org>
501
502 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
503 sequence when the source is multibyte.
504
505 2010-08-31 Kenichi Handa <handa@m17n.org>
506
507 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
508 characters.
509
510 * term.c (encode_terminal_code): Fix the previous change.
511 (produce_glyphs): Don't set it->char_to_display here.
512 Don't handle unibyte-display-via-language-environment here.
513 (produce_special_glyphs): Set temp_it.char_to_display before
514 calling produce_glyphs.
515
516 * xdisp.c (get_next_display_element): Set it->char_to_display
517 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
518 characters.
519 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
520 calling PRODUCE_GLYPHS.
521 (append_space_for_newline): Save and store it->char_to_display.
522 Set it->char_to_display before calling PRODUCE_GLYPHS.
523 (extend_face_to_end_of_line): Set it->char_to_display before
524 calling PRODUCE_GLYPHS.
525 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
526 character to its byte value.
527 (get_char_glyph_code): New function.
528 (produce_stretch_glyph): Set it2.char_to_display too before
529 calling x_produce_glyphs.
530 (x_produce_glyphs): Simplify by using the same code for ASCII and
531 non-ASCII characters. Don't set it->char_to_display here.
532 Don't handle unibyte-display-via-language-environment here. For a
533 character of no glyph, use font->space_width instead of FONT_WIDTH.
534
535 2010-08-29 Kenichi Handa <handa@m17n.org>
536
537 * term.c (encode_terminal_code): Encode byte chars to the
538 correspnding bytes.
539
540 2010-08-17 Andreas Schwab <schwab@linux-m68k.org>
541
542 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
543 instead of SAFE_ALLOCA.
544
545 2010-08-17 Chong Yidong <cyd@stupidchicken.com>
546
547 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
548 (Bug#6214).
549
550 2010-08-14 Jan Djärv <jan.h.d@swipnet.se>
551
552 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
553
554 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
555
556 * doc.c (Fsnarf_documentation): Initialize skip_file before
557 build-files test.
558
559 2010-08-09 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
560
561 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
562 New definitions.
563 (HAVE_TERMIO): Remove.
564
565 2010-08-06 Kenichi Handa <handa@m17n.org>
566
567 * charset.c: Include <stdlib.h>
568 (struct charset_sort_data): New struct.
569 (charset_compare): New function.
570 (Fsort_charsets): New function.
571 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
572
573 * coding.c (decode_coding_iso_2022): Fix checking of dimension
574 number in CTEXT extended segment.
575
576 2010-08-01 Juanma Barranquero <lekktu@gmail.com>
577
578 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
579 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
580
581 2010-07-30 Juanma Barranquero <lekktu@gmail.com>
582
583 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
584 (Fhash_table_size): Fix typos in docstrings.
585 (Fmake_hash_table): Doc fix.
586
587 2010-07-28 Juanma Barranquero <lekktu@gmail.com>
588
589 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
590 Doc fix (bug#5625).
591
592 2010-07-27 Ken Brown <kbrown@cornell.edu>
593
594 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
595 the MSDOS definition.
596
597 2010-07-25 Christoph Scholtes <cschol2112@gmail.com>
598
599 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
600
601 2010-07-22 Christoph Scholtes <cschol2112@gmail.com>
602
603 * window.c (Fwindow_height): Doc fix (bug#6518).
604
605 2010-07-21 Juanma Barranquero <lekktu@gmail.com>
606
607 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
608
609 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
610
611 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
612 is related to the menu bar (Bug#6499).
613
614 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
615
616 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
617
618 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
619
620 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
621 i.e. don't put back ButtonRelease (Bug#6608).
622
623 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
624 instead of Window. Call xg_event_is_for_menubar when
625 USE_GTK (Bug#6499).
626
627 * gtkutil.h (xg_event_is_for_menubar): Declare.
628
629 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
630
631 2010-07-14 Eli Zaretskii <eliz@gnu.org>
632
633 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
634 when it's the same as the old foreground. (Bug#6609)
635
636 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
637
638 * xfaces.c (realize_face): Garbage the frame if a face is removed
639 (Bug#6593).
640
641 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
642
643 * keyboard.c: Remove duplicate <setjmp.h>.
644 (read_key_sequence): Remove volatile qualifiers.
645
646 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
647
648 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
649 (struct glyph_row): New members left_fringe_offset and
650 right_fringe_offset.
651
652 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
653 specially.
654 * w32term.c (w32_draw_fringe_bitmap): Likewise.
655 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
656
657 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
658 Take account of bitmap offset.
659 (draw_window_fringes): Take account of window vscroll.
660 (update_window_fringes): Likewise. Extend top-aligned top indicator
661 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
662 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
663 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
664
665 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
666
667 * w32fns.c (Qtooltip): Declare.
668 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
669
670 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
671
672 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
673 grab on just Press (Bug#6499).
674
675 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
676
677 * frame.c (Qtooltip): New var.
678 (delete_frame): Use it. Fix faulty if statement. Don't update
679 mode line for tooltip frames. Suggested by Martin Rudalics.
680
681 * xfns.c (x_create_tip_frame):
682 * w32fns.c (x_create_tip_frame): Use it.
683
684 2010-06-30 Naohiro Aota <naota@elisp.net> (tiny change)
685
686 * xftfont.c (xftfont_open): Check font width one by one also when
687 spacing is dual.
688
689 * ftfont.c (ftfont_open): Ditto.
690
691 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
692
693 * alloc.c (Fmake_byte_code): Don't access undefined argument
694 (Bug#6517).
695
696 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
697
698 * xdisp.c (next_element_from_image): Ensure that after-strings are
699 read the next time we hit handle_stop (Bug#1336).
700
701 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
702
703 * lread.c (read1): Signal error if #s is not followed by paren.
704
705 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
706
707 * image.c (free_image): Mark frame as garbaged (Bug#6426).
708
709 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
710
711 2010-06-15 Glenn Morris <rgm@gnu.org>
712
713 * editfns.c (Fbyte_to_string): Pacify compiler.
714
715 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
716
717 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
718 Check `object's type before accessing its guts.
719
720 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
721
722 * minibuf.c (Fall_completions): Add more checks.
723
724 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
725
726 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
727
728 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
729
730 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
731 address. (Bug#6346)
732
733 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
734
735 * ccl.c (Fccl_program_p): Fix typo in docstring.
736
737 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
738
739 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
740 of bug#6305).
741
742 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
743
744 * xdisp.c (redisplay_window): After redisplay, check if point is
745 still valid before setting it (Bug#6177).
746
747 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
748
749 * s/netbsd.h: If terminfo is found, use it in preference to
750 termcap. (Bug#6190) [Backport from trunk]
751
752 2010-05-20 Kevin Ryde <user42@zip.com.au>
753
754 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
755 (Voverriding_terminal_local_map, Vsystem_key_alist)
756 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
757
758 2010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
759
760 * editfns.c (Fbyte_to_string): New function.
761
762 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
763
764 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
765 prevent stack overflow if number of arguments is too large
766 (Bug#6214).
767
768 2010-05-11 Eli Zaretskii <eliz@gnu.org>
769
770 * makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(SRC)/w32.h.
771
772 * w32fns.c: Include w32.h.
773 (Fw32_shell_execute): Decode the error message before passing it
774 to `error'. (Bug#6126)
775
776 2010-05-11 Karel Klic <kklic@redhat.com>
777
778 * ftfont.c: Fix incorrect parentheses of #if condition for
779 definining M17N_FLT_USE_NEW_FEATURE.
780
781 2010-05-07 Chong Yidong <cyd@stupidchicken.com>
782
783 * Version 23.2 released.
784
785 2010-04-30 Andreas Schwab <schwab@linux-m68k.org>
786
787 * composite.c (autocmp_chars): Save point as marker before calling
788 auto-composition-function (Bug#5984).
789
790 * lisp.h (restore_point_unwind): Add prototype.
791
792 * fileio.c (restore_point_unwind): Remove static attribute.
793
794 2010-04-23 Kenichi Handa <handa@m17n.org>
795
796 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
797 new feature of libotf and m17n-flt.
798 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
799 Call OTF_check_features even if no specific feature is given.
800 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
801 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
802 that OUT is NULL. Use OTF_drive_gsub_with_log and
803 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
804 OTF_drive_gpos.
805 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
806 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
807 Setup mflt_enable_new_feature and mflt_try_otf.
808
809 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
810
811 * dired.c (Ffile_attributes): Fix typo in docstring.
812
813 2010-04-13 Adrian Robert <Adrian.B.Robert@gmail.com>
814
815 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
816 NSInteger (Bug#5811).
817
818 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
819
820 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
821 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
822
823 2010-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
824
825 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
826
827 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
828
829 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
830 FRAME_LINE_TO_PIXEL_Y.
831
832 * xterm.c (x_set_window_size_1): Don't add border_width/height to
833 pixelwidth/height.
834
835 2010-04-05 Chong Yidong <cyd@stupidchicken.com>
836
837 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
838 terminal frames (Bug#5837).
839
840 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
841
842 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
843 * nsterm.h: Fix prototype.
844
845 2010-03-31 Eli Zaretskii <eliz@gnu.org>
846
847 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
848 in this function. (Bug#5703)
849
850 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
851
852 * nsterm.h: Fix last change.
853
854 2010-03-30 Bernhard Herzog <bh@intevation.de> (tiny change)
855
856 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
857
858 2010-03-30 Jan Djärv <jan.h.d@swipnet.se>
859
860 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
861 invisible (Bug#5766).
862
863 2010-03-29 Adrian Robert <adrian.b.robert@gmail.com>
864
865 * xdisp.c (x_consider_frame_title, update_window_cursor): Remove
866 HAVE_NS conditionals.
867 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
868
869 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
870 filename for the title.
871 (ns_set_doc_edited): Do nothing if the selected window is a
872 minibuffer window.
873
874 * nsterm.h: Add prototypes for ns_set_name_as_filename and
875 ns_set_doc_edited.
876
877 * nsterm.m: Remove unneeded prototype.
878
879 2010-03-28 Glenn Morris <rgm@gnu.org>
880
881 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
882 in the DOC file. (Bug#5336)
883
884 2010-03-24 Chong Yidong <cyd@stupidchicken.com>
885
886 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
887
888 2010-03-20 Jan Djärv <jan.h.d@swipnet.se>
889
890 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
891
892 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
893
894 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
895
896 2010-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
897
898 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
899 XLoadQueryFont.
900
901 2010-03-16 Kenichi Handa <handa@m17n.org>
902
903 * coding.c (decode_coding_ccl): Fix previous change for the
904 multibyte case.
905 (encode_coding_ccl): Don't setup ccl program here. Fix for the
906 case that the output buffer is fullfilled.
907 (encode_coding): Setup ccl program here.
908
909 2010-03-15 Andreas Politz <politza@fh-trier.de> (tiny change)
910
911 * editfns.c (Fformat): Account for string precision when computing
912 field width (Bug#5710).
913
914 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
915
916 Make it possible to C-g in a tight bytecode loop again (bug#5680).
917 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
918 (QUIT): Use it to consolidate code and remove redundancy.
919 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
920
921 * regex.c (regex_compile): Setup gl_state as well.
922
923 * syntax.c (skip_chars): Setup gl_state (bug#3823).
924 (in_classes): Use CONSP before XCAR/XCDR.
925
926 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
927
928 * keymap.c (Fwhere_is_internal): Use Fequal to compare
929 definitions, so that keyboard macros are correctly handled
930 (Bug#5481).
931
932 2010-03-02 Eli Zaretskii <eliz@gnu.org>
933
934 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
935 text that could be relocated inside the call to emacs_mule_char.
936 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
937 (CODING_DECODE_CHAR): Add a comment describing its purpose.
938
939 2010-03-02 Kenichi Handa <handa@m17n.org>
940
941 * character.c (parse_str_as_multibyte): Fix handling of the
942 multibyte form of raw-bytes.
943 (str_as_multibyte): Likewise.
944
945 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
946 form of raw-bytes.
947
948 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
949
950 * charset.c (load_charset_map_from_file)
951 (load_charset_map_from_vector): Zero out allocated
952 charset_map_entries before using them.
953
954 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
955
956 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
957
958 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
959
960 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
961 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
962
963 2010-02-26 Kenichi Handa <handa@m17n.org>
964
965 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
966
967 * xdisp.c (reseat_to_string): Fix previous change.
968
969 2010-02-26 David Reitter <david.reitter@gmail.com>
970
971 * nsfont.m (nsfont_draw): ns_antialias_text should be a
972 Lisp_Object (Bug#4736).
973
974 2010-02-25 Kenichi Handa <handa@m17n.org>
975
976 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
977
978 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
979
980 * xterm.c (XTflash): Move declarations before statements.
981
982 * gtkutil.c (xg_get_gdk_display): Remove (unused).
983 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
984 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
985 (xg_create_tool_bar): Remove unused variables.
986 (x_wm_set_size_hint): Move declarations before statements.
987 (xg_create_frame_widgets): Remove variable grav.
988
989 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
990
991 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
992
993 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
994
995 * term.c (fatal): Add a final \n if needed (bug#5596).
996
997 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
998
999 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
1000
1001 2010-02-18 Glenn Morris <rgm@gnu.org>
1002
1003 * callint.c (Finteractive): Doc fix.
1004
1005 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
1006
1007 * coding.c (record_conversion_result):
1008 Handle CODING_RESULT_INSUFFICIENT_DST.
1009 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
1010 memory allocation error.
1011
1012 2010-02-17 Kenichi Handa <handa@m17n.org>
1013
1014 * coding.c (decode_coding_ccl): Don't setup ccl program here.
1015 Fix for the case that the output buffer is fullfilled.
1016 (decode_coding): Setup ccl program here. Keep looping when the
1017 decoder stopped because the output buffer is
1018 fullfilled (bug#5534).
1019
1020 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
1021
1022 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
1023
1024 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
1025 bug #5571.
1026 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
1027 overdrawn.
1028
1029 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
1030
1031 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
1032 doing_interact here.
1033 (ice_connection_closed): New function.
1034 (x_session_check_input, smc_die_CB, ice_io_error_handler)
1035 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
1036 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
1037 returns I/O error.
1038 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
1039 bug #5512.
1040
1041 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
1042
1043 * nsfont.m (nsfont_open): The system's value for the font descent
1044 is negative, so round it down to avoid clipping.
1045
1046 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
1047
1048 * charset.c (load_charset_map_from_file)
1049 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
1050 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
1051
1052 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
1053
1054 * charset.c (load_charset_map_from_file): Allocate large
1055 charset_map_entries structure on the heap rather than the stack.
1056 (Bug#5526).
1057
1058 2010-01-31 Kenichi Handa <handa@m17n.org>
1059
1060 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
1061 size in NAME is invalid, return -1 (Bug#5396).
1062
1063 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
1064
1065 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
1066 <deactivated@gmail.com> (Bug#3605).
1067
1068 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
1069
1070 * fileio.c (Frename_file): Correctly rename symlinks to
1071 directories (Bug#5496).
1072
1073 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
1074
1075 * nsterm.m (ns_ring_bell): Handle visible bell like X.
1076
1077 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
1078
1079 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
1080
1081 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
1082
1083 * frame.c (DEFAULT_ROWS): Change default to 35.
1084
1085 * xfns.c (x_default_font_parameter): Change default XFT font to
1086 monospace-10 (Bug#3643).
1087
1088 2010-01-29 Eli Zaretskii <eliz@gnu.org>
1089
1090 * w32inevt.c (key_event): Remove unnecessary comparison of
1091 event->uChar.AsciiChar with 128.
1092
1093 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
1094
1095 * fileio.c (Frename_file): Fix last change (Bug#5487).
1096
1097 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
1098
1099 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
1100
1101 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
1102
1103 * xfns.c (Fx_create_frame): Remove window size matching code from
1104 2010-01-15.
1105 (x_get_current_desktop, x_get_desktop_workarea): Remove.
1106
1107 2010-01-27 Jason Rumney <jasonr@gnu.org>
1108
1109 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
1110 (key_event): Use unicode for characters 128 and higher (Bug#4567).
1111
1112 2010-01-27 Kenichi Handa <handa@m17n.org>
1113
1114 * regex.c (analyse_first): Fix setting of fastmap for unibyte
1115 pattern string (Bug#4209).
1116
1117 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
1118
1119 * fileio.c (Frename_file): Call copy-directory and
1120 delete-directory for directories, in order to handle cross-device
1121 renaming (Bug#3353).
1122
1123 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
1124
1125 * xfns.c (Fx_create_frame): If frame height is too big, try
1126 sizes 24 and 10. Bug #3643.
1127
1128 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
1129
1130 Try and fix bug#788, hopefully for real this time.
1131 * keymap.c (shadow_lookup): Add `remap' arg.
1132 (describe_map, describe_vector): Update calls to shadow_lookup.
1133 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
1134 `remapped' so this flag is applicable to `sequence'. Be careful to
1135 perform remapping during shadow_lookup check of remapped_sequences.
1136
1137 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
1138
1139 * image.c (png_load): Use png_sig_cmp instead of the obsolete
1140 png_check_sig, which has been removed in libpng 1.4.
1141
1142 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1143
1144 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
1145 lacks this header file).
1146
1147 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1148
1149 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
1150 as in Emacs 22.
1151
1152 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1153
1154 * lisp.h (make_pure_string): String pointer arg now points to const.
1155
1156 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
1157 args now point to const.
1158
1159 2010-01-22 Eli Zaretskii <eliz@gnu.org>
1160
1161 * lread.c (Fload): Don't treat files without .elc extension as
1162 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
1163 them. (bug#5303)
1164
1165 2010-01-20 Kenichi Handa <handa@m17n.org>
1166
1167 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
1168 treat the source as actual byte sequence.
1169
1170 2010-01-19 Alan Mackenzie <acm@muc.de>
1171
1172 Fix spurious before-change-functions invocation from (insert ?\n).
1173 * textprop.c (set_text_properties): Rename parameter
1174 `signal_after_change_p' to `coherent_change_p', and make the
1175 invocation of `modify_region' conditional on it.
1176
1177 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
1178
1179 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
1180 for debug purpose.
1181 (syms_of_xsettings): Declare xft-settings.
1182
1183 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
1184
1185 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
1186
1187 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1188
1189 * xterm.c (event_handler_gdk): Block input (Bug#5037).
1190
1191 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
1192
1193 * emacs.c (standard_args): Adjust arg priorities to reflect how
1194 they are processed in startup.el.
1195
1196 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
1197
1198 * Makefile.in (lisp, shortlisp): Update.
1199
1200 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1201
1202 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
1203 code, link the new kboard into all_kboard before running Lisp code,
1204 and protect the new terminal with GCPRO (Bug#5365).
1205 (x_term_init): Remove unused var `atom'.
1206 (x_delete_display, x_delete_terminal): Remove unused var `i'.
1207
1208 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
1209
1210 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
1211 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
1212 to find out usable size of the desktop. Don't make frames larger than
1213 this. Bug #3643.
1214
1215 2010-01-15 Kenichi Handa <handa@m17n.org>
1216
1217 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
1218
1219 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
1220
1221 * nsterm.m (Qnone): Define.
1222
1223 * nsfns.m (Qnone): Move definition to nsterm.m.
1224
1225 2010-01-14 Kenichi Handa <handa@m17n.org>
1226
1227 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
1228 systems.
1229
1230 2010-01-14 Kenichi Handa <handa@m17n.org>
1231
1232 Make auto-composition work on all buffers even if they are
1233 fundamental mode.
1234
1235 * composite.c (Vauto_composition_mode): New variable.
1236 (composition_compute_stop_pos): Check Vauto_composition_mode
1237 instead of Vauto_composition_function.
1238 (composition_adjust_point, Ffind_composition_internal): Likewise.
1239 (syms_of_composite): Declare Lisp variable
1240 "auto-composition-mode" here.
1241
1242 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
1243
1244 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
1245 during call to vendor-specific-keysyms (Bug#5365).
1246
1247 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1248
1249 * keyboard.c (input_available_signal) [SYNC_INPUT]:
1250 Call SIGNAL_THREAD_CHECK (Bug#5333).
1251
1252 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
1253 Call SIGNAL_THREAD_CHECK.
1254
1255 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
1256
1257 Try to fix bug#5314. This is probably not the final word, tho.
1258 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
1259 recent-auto-save-p as a side-effect.
1260 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
1261 * buffer.c (Fkill_buffer, reset_buffer):
1262 * editfns.c (Fsubst_char_in_region):
1263 * fileio.c (Finsert_file_contents, Fdo_auto_save)
1264 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
1265
1266 2010-01-13 Kenichi Handa <handa@m17n.org>
1267
1268 Display buffer name, etc. in mode line by composing correctly.
1269
1270 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
1271 STRING is not nil.
1272 (display_mode_element): Adjust for the change of
1273 decode_mode_spec and display_line.
1274 (decode_mode_spec): Change arg MULTIBYTE to STRING.
1275 (display_string): Handle the case that STRING is non-null and
1276 LISP_STRING is not nil.
1277
1278 * xterm.c (x_draw_composite_glyph_string_foreground):
1279 Pay attention to s->face->overstrike.
1280
1281 * composite.c (composition_reseat_it): Don't check PT if STRING is
1282 non nil.
1283
1284 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1285
1286 * keyboard.c (read_char): Don't apply previous change when current
1287 buffer is unchanged by command execution.
1288
1289 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
1290
1291 * keyboard.c (read_char): Return after executing from special map.
1292
1293 2010-01-12 Glenn Morris <rgm@gnu.org>
1294
1295 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
1296 bug-gnu-emacs rather than emacs-pretest-bug.
1297
1298 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
1299
1300 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
1301 initializing the Lisp variables that depend on them.
1302
1303 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1304
1305 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
1306 Clear areas that will not be updated after change of menu bar lines.
1307 Clear the menu bar window's current matrix when the window gets empty.
1308
1309 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
1310
1311 * intervals.h, textprop.c (extend_property_ranges): Return value
1312 and args changed. Discard properties that begin at or after the
1313 new end (Bug#5306).
1314
1315 * editfns.c (Fformat): Caller changed.
1316
1317 * nsterm.m (ns_set_default_prefs): Delete function.
1318 (syms_of_nsterm): Initialize ns_command_modifier,
1319 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
1320 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
1321
1322 * xdisp.c (pos_visible_p): Check for invisible text at the correct
1323 position (Bug#4040).
1324
1325 2010-01-09 Eli Zaretskii <eliz@gnu.org>
1326
1327 * editfns.c (Ffloat_time): Doc fix.
1328
1329 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
1330
1331 * xfns.c (Fx_create_frame): Don't create frame larger than display
1332 by default bug#3643.
1333
1334 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1335
1336 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1337 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1338 windows above internal border.
1339
1340 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1341 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1342 windows above internal border.
1343
1344 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1345 tool bar windows specially.
1346
1347 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1348
1349 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1350 specially.
1351 (XTflash): Take account of menu bar height.
1352
1353 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1354 specially.
1355
1356 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
1357
1358 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
1359 also be true before we can return early (bug #5339).
1360
1361 2010-01-06 David Reitter <david.reitter@gmail.com>
1362
1363 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1364 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1365 (Bug#3233).
1366
1367 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
1368
1369 * font.c (font_open_entity): Enable chache and call cached_font_ok
1370 for the driver if defined.
1371 (QCuser_spec): New symbol.
1372 (font_spec_from_name): Save name as user-spec.
1373 (font_load_for_lface): Keep user-spec instead of name.
1374 (font_open_by_name): Save name as user-spec.
1375 (syms_of_font): Initialize QCuser_spec.
1376 (font_clear_prop): Clear name if it exists in font (bug#5157).
1377
1378 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
1379 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1380 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1381
1382 * font.h (struct font_driver): Add cached_font_ok.
1383
1384 * xterm.c (x_clear_frame): Queue draw for scroll bars.
1385
1386 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
1387
1388 * xterm.c (x_new_font): Move code for setting rows/cols before
1389 resizing ...
1390 (x_set_window_size): ... to here. Bug #2568.
1391
1392 * gtkutil.c (xg_clear_under_internal_border): New function.
1393 (xg_frame_resized, xg_frame_set_char_size):
1394 Call xg_clear_under_internal_border.
1395 (xg_update_scrollbar_pos): Clear under old scroll bar position.
1396
1397 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
1398
1399 * keyboard.c (read_key_sequence): Catch keyboard switch after
1400 making a new tty frame (Bug#5095).
1401
1402 2010-01-05 Kenichi Handa <handa@m17n.org>
1403
1404 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1405
1406 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1407
1408 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1409 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1410 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1411
1412 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
1413
1414 * dbusbind.c (xd_add_watch): Improve debug message.
1415 (xd_remove_watch): Improve debug message. If DATA is the session
1416 bus, unset D-Bus session environment.
1417 (Fdbus_init_bus): Pass the bus as argument to
1418 dbus_connection_set_watch_functions. (Bug#5283)
1419
1420 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
1421
1422 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1423
1424 * lread.c (syms_of_lread): Make it clearer that these are the
1425 names of loaded files (Bug#5068).
1426
1427 * eval.c (run_hook_with_args): Handle the case where the global
1428 value has the obsolete single-function form (Bug#5026).
1429
1430 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
1431
1432 * minibuf.c (Fall_completions): Minor optimization.
1433
1434 2009-12-26 Eli Zaretskii <eliz@gnu.org>
1435
1436 * .gdbinit (pgx): Fix display of composite glyphs.
1437 Display cmp.from and cmp.to as well.
1438 (pitx): Fix last change.
1439
1440 2009-12-25 Kenichi Handa <handa@m17n.org>
1441
1442 * composite.h (composition_adjust_point): Update prototype.
1443
1444 * composite.c (composition_reseat_it): Don't make a composition
1445 spanning over point.
1446 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1447 composable characters.
1448 (composition_adjust_point): New arg NEW_PT. Callers changed.
1449
1450 * keyboard.c (command_loop_1): Force redisplay if the last point
1451 was within a composition.
1452 (adjust_point_for_property): Don't adjust point for automatic
1453 composition when called after buffer modification.
1454
1455 2009-12-19 Eli Zaretskii <eliz@gnu.org>
1456
1457 * .gdbinit (pitx): Don't use enum names, use their values.
1458 Remove reference to non-existing value GET_FROM_COMPOSITION.
1459 (pgx): Don't use enum names, use their values.
1460 (pitmethod): New helper command.
1461 (pitx): Use it to display iteration method.
1462 (pgrowit): New command.
1463
1464 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1465
1466 Update dependencies in Makefile.in.
1467
1468 * Makefile.in (alloc.o): Depend on termhooks.h.
1469 (atimer.o): Depend on blockinput.h.
1470 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1471 and frame.h.
1472 (callint.o): Depend on systime.h, coding.h, and composite.h.
1473 (callproc.o): Depend on buffer.h.
1474 (casefiddle.o): Don't depend on charset.h.
1475 (casetab.o): Depend on character.h.
1476 (ccl.o): Depend on composite.h.
1477 (chartab.o): Depend on ccl.h.
1478 (cm.o): Depend on dispextern.h.
1479 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1480 (coding.o): Don't depend on $(INTERVALS_H).
1481 (composite.o): Don't depend on dispextern.h explicitly (it's in
1482 $(INTERVALS_H)). Depend on ccl.h.
1483 (data.o): Depend on systime.h, coding.h, composite.h,
1484 dispextern.h, font.h, and ccl.h.
1485 (dired.o): Depend on composite.h.
1486 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1487 composite.h (it's in $(INTERVALS_H)).
1488 (doc.o): Depend on systime.h, coding.h, and composite.h.
1489 (editfns.o): Don't depend explicitly on dispextern.h.
1490 (emacs.o): Depend on frame.h and coding.h.
1491 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1492 (fileio.o): Depend on frame.h and commands.h. Don't depend
1493 explicitly on dispextern.h.
1494 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1495 composite.h.
1496 (fns.o): Don't depend on termhooks.h.
1497 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1498 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1499 coding.h, $(INTERVALS_H), window.h, xterm.h.
1500 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1501 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1502 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1503 fontset.h, ccl.h, and ftfont.h.
1504 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1505 (gtkutil.o): Depend on dispextern.h and composite.h.
1506 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1507 termhooks.h, and ccl.h.
1508 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1509 (intervals.o): Depend on systime.h and coding.h.
1510 (keyboard.o): Depend on composite.h and coding.h.
1511 (keymap.o): Depend on coding.h and frame.h.
1512 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1513 (macros.o): Depend on systime.h, coding.h, and composite.h.
1514 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1515 and atimer.h.
1516 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1517 dispextern.h explicitly.
1518 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1519 Don't depend explicitly on dispextern.h and composite.h.
1520 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1521 (regex.o): Don't depend on charset.h.
1522 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1523 (search.o): Don't depend explicitly on composite.h.
1524 (sound.o): Depend on atimer.h and systime.h.
1525 (syntax.o): Don't depend explicitly on composite.h.
1526 (sysdep.o): Depend on coding.h and composite.h.
1527 (term.o): Depend on xterm.h and buffer.h.
1528 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1529 (textprop.o): Don't depend on dispextern.h explicitly.
1530 (undo.o): Depend on dispextern.h.
1531 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1532 dispextern.h and composite.h explicitly.
1533 (xdisp.o): Depend on ccl.h.
1534 (xfaces.o): Depend on coding.h and ccl.h.
1535 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1536 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1537 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1538 ftfont.h.
1539 (xgselect.o): New dependency.
1540 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1541 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1542 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1543 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1544 (xsmfns.o): Depend on frame.h and dispextern.h.
1545 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1546 sysselect.h.
1547
1548 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1549
1550 * font.c (Fclear_font_cache): Pass correct cache argument to
1551 font_clear_cache.
1552
1553 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1554
1555 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1556 twice.
1557
1558 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
1559
1560 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1561 calling file-remote-p. Reported by Jim Meyering.
1562
1563 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
1564
1565 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
1566 avoid compiler warnings. (Bug #5217)
1567
1568 2009-12-14 Kenichi Handa <handa@m17n.org>
1569
1570 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1571 in 8-bit encoding.
1572
1573 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
1574
1575 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1576 tooltip windows.
1577
1578 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1579
1580 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1581 Xatom_net_window_type.
1582
1583 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1584 Xatom_net_window_type.
1585
1586 * xterm.c (my_log_handler): New function.
1587 (x_term_init): Set my_log_handler as log handler during gtk_init
1588 so we can filter out buggy messages. (Bug #5120).
1589
1590 * xterm.c (xg_scroll_callback): Parameter list changed,
1591 use parameter GtkScrollType to determine scroll/line/page.
1592 Only allow dragging if a button < 4 is grabbed (bug #5177).
1593 (xg_end_scroll_callback): New function.
1594 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1595 xg_create_scroll_bar.
1596
1597 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1598 (scroll_end_callback): Remove.
1599 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1600 button-release-event. Replace value-changed event with change-value,
1601 bug #5177,
1602 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1603 bug #5177.
1604
1605 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1606 (xg_create_scroll_bar): Add GCallback end_callback.
1607
1608 * xftfont.c (QClcdfilter): New variable.
1609 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1610 (syms_of_xftfont): Initialize QClcdfilter.
1611
1612 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1613
1614 * xsettings.c (struct xsettings): Add member seen.
1615 (parse_xft_settings): Update member seen with what we have read.
1616 Return non-zero if Xft-settings have been parsed, 0 otherwise.
1617 (apply_xft_settings): Only update Xft settings with what member seen
1618 indicates as new.
1619
1620 2009-12-12 Eli Zaretskii <eliz@gnu.org>
1621
1622 * dispextern.h (struct text_pos): Use EMACS_INT;
1623 (struct glyph): Use EMACS_INT for charpos.
1624 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1625 region_beg_charpos, region_end_charpos,
1626 redisplay_end_trigger_charpos, and also for
1627 iterator_stack_entry.end_charpos and
1628 iterator_stack_entry.stop_charpos.
1629
1630 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1631
1632 * gtkutil.c (scroll_end_callback): New function (bug #5177).
1633 (xg_create_scroll_bar): Call scroll_end_callback on button release
1634 event (bug #5177).
1635 (xg_event_is_for_scrollbar): != replaced with ==.
1636
1637 2009-12-12 Kenichi Handa <handa@m17n.org>
1638
1639 * ftfont.c (struct ftfont_info): New member matrix.
1640 (ftfont_open): Setup xftfont_info->matrix.
1641 (MFLTFontFT): New member matrix.
1642 (FLOOR, CEIL, ROUND): New macros.
1643 (ftfont_get_metrics): Handle matrix transformation.
1644 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1645
1646 * xftfont.c (struct xftfont_info): New member matrix.
1647 (xftfont_open): Setup xftfont_info->matrix.
1648
1649 2009-12-10 Kenichi Handa <handa@m17n.org>
1650
1651 * xdisp.c (append_space_for_newline): Consider face-remapping.
1652
1653 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1654
1655 * xsettings.c: Include "keyboard.h".
1656
1657 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1658
1659 Fix implicit function declarations.
1660 * cmds.c: Include "frame.h".
1661 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1662 * frame.h: Move declaration of delete_frame outside of
1663 HAVE_WINDOW_SYSTEM.
1664
1665 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1666
1667 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1668
1669 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1670 GTK builds.
1671
1672 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1673
1674 * unexelf.c (unexec): Don't search for .data twice.
1675
1676 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
1677
1678 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1679 if push failed.
1680 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1681 of push_display_prop (Bug#5000).
1682
1683 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1684 value of font_list_entities (Bug#5085).
1685
1686 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
1687
1688 Fix `string-to-number' to deal consistently with integers and floats.
1689 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1690 trailing characters, not just whitespace.
1691 (read1): Pass new arg 0 to keep old behavior.
1692 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1693 trailing chars, as it is already done for integers. Doc fixes.
1694 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1695
1696 2009-12-04 Eli Zaretskii <eliz@gnu.org>
1697
1698 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1699 Delete unused enumeration value.
1700
1701 2009-12-03 Eli Zaretskii <eliz@gnu.org>
1702
1703 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1704
1705 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1706
1707 * process.c (Fmake_network_process): Fix up the tests for
1708 "connectionless socket", so they DTRT for seqpacket sockets as well.
1709
1710 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1711
1712 * process.c (Qseqpacket): New symbol.
1713 (HAVE_SEQPACKET): New macro.
1714 (Fmake_network_process): Accept new :type `seqpacket'.
1715 (init_process): Add `seqpacket' feature when applicable.
1716 (syms_of_process): Initialize Qseqpacket.
1717
1718 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1719
1720 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1721 if entity is Qnil.
1722
1723 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1724
1725 * print.c (print_preprocess): Preprocess the key_and_value table of
1726 hashtables, even tho they're "hidden" (bug#5082).
1727
1728 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1729
1730 * frame.c (frame_make_pointer_invisible)
1731 (frame_make_pointer_visible): Declare f before statements.
1732
1733 2009-11-28 Eli Zaretskii <eliz@gnu.org>
1734
1735 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1736 omitted dependencies on lisp.h.
1737
1738 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1739
1740 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1741 is NULL.
1742
1743 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1744
1745 * frame.c (frame_make_pointer_invisible)
1746 (frame_make_pointer_visible): Just return if there isn't any selected
1747 frame.
1748
1749 * search.c (simple_search): Remove warning by making *p const.
1750
1751 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1752
1753 * xdisp.c (power_letter): Remove duplicate const.
1754
1755 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1756
1757 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1758
1759 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
1760 defaults (bug #5025).
1761
1762 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1763
1764 * insdel.c (adjust_markers_for_delete): Move it in the
1765 right direction! (bug#4803)
1766
1767 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1768
1769 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1770
1771 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1772
1773 2009-11-24 Glenn Morris <rgm@gnu.org>
1774
1775 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1776
1777 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1778
1779 * Makefile.in: Must create deps for ecrt0.o in its rule.
1780
1781 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1782 because that is what Gtk+ font dialog understands.
1783
1784 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1785 of Fcopy_sequence.
1786 (font_open_by_name): Put name given into QCname for font-object returned.
1787
1788 * frame.c (x_set_font): Save original font name as frame parameter
1789 font-parameter.
1790
1791 * xsettings.c (set_default_xft_settings): New function.
1792 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1793 is found.
1794
1795 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1796
1797 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1798 searching backwards through multibyte buffer.
1799
1800 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1801
1802 * xterm.c: #include xgselect.h.
1803 (x_initialize): Call xgselect_initialize.
1804
1805 * xsettings.c (something_changedCB): C++ comments => C comments.
1806 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1807 does that now.
1808
1809 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1810 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1811 (scroll_bar_button_cb): Remove.
1812 (create_menus): C++ comments => C comments. Don't bind grab-notify
1813 event.
1814 (xg_create_scroll_bar): Don't bind button-press-event and
1815 button-release-event.
1816
1817 * process.c: Include xgselect.h if defined (USE_GTK) ||
1818 defined (HAVE_GCONF).
1819 (wait_reading_process_output): Call xg_select for the same condition.
1820
1821 * xgselect.c (xg_select): New function to better integrate with
1822 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1823
1824 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1825
1826 * Makefile.in (XOBJ): Add xgselect.o.
1827
1828 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1829
1830 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1831 Remove ignored second argument. All callers changed.
1832 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1833 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1834 * xdisp.c (string_char_and_length): Likewise.
1835
1836 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1837
1838 * xterm.c (x_new_font):
1839 * print.c (print_object):
1840 * cmds.c (Fself_insert_command): Move declarations before statements.
1841
1842 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1843
1844 * s/cygwin.h: Remove unneeded linker flags.
1845
1846 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1847
1848 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1849
1850 * xsettings.h: Declare xsettings_get_system_font.
1851
1852 * xsettings.c (xsettings_get_system_font): New function.
1853 (init_gconf): No use initiating gconf unless we have Xft also.
1854 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1855 HAVE_GCONF.
1856
1857 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1858 add a blank entry so it doesn't collapse into nothing.
1859
1860 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1861
1862 * lread.c (Funintern): Comment out last change.
1863
1864 2009-11-19 Richard Stallman <rms@gnu.org>
1865
1866 * lread.c (Funintern): Error if symbol is t or nil.
1867
1868 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1869
1870 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1871 representation of Lisp integers.
1872 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1873
1874 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1875
1876 * lisp.h: Remove declaration of Ffont_get_system_font.
1877 * xfns.c: Move include of "xsettings.h".
1878 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1879
1880 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1881
1882 * xsettings.c (something_changedCB, Ffont_get_system_font):
1883 Check use_system_font.
1884 (syms_of_xsettings): DEFVAR font-use-system-font.
1885
1886 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1887
1888 * xfns.c (x_default_font_parameter): Remove dead assignment.
1889
1890 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1891
1892 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1893
1894 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
1895 not have FC_LCD_*. #define them if not there.
1896
1897 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
1898
1899 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1900
1901 * xterm.c (handle_one_xevent): Call xft_settings_event for
1902 ClientMessage, PropertyNotify and DestroyNotify.
1903 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1904 Call xsettings_initialize.
1905
1906 * xftfont.c (xftfont_fix_match): New function.
1907 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1908 Call xftfont_fix_match after XftFontMatch.
1909
1910 * xfont.c (xfont_driver): Initialize all members.
1911
1912 * xfns.c (x_default_font_parameter):
1913 Try font from Ffont_get_system_font.
1914 Do not get font from x_default_parameter if we got one from
1915 Ffont_get_system_font.
1916 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
1917
1918 * w32font.c (w32font_driver): Initialize all members.
1919
1920 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1921
1922 * lisp.h: Declare syms_of_xsettings.
1923
1924 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1925 Handle CONFIG_CHANGED_EVENT.
1926
1927 * ftfont.c (ftfont_filter_properties): New function.
1928
1929 * frame.c (x_set_font): Remove unused variable lval.
1930
1931 * font.h (struct font_driver): Add filter_properties.
1932
1933 * font.c (font_put_extra): Don't return if val is nil, it means
1934 boolean option is off.
1935 (font_parse_fcname): Collect all extra properties in extra_props
1936 and call filter_properties for all drivers with extra_props and
1937 font as parameter.
1938 (font_open_entity): Do not use cache, it does not pick up new
1939 fontconfig settings like hinting.
1940 (font_load_for_lface): If spec had a name in it, store it in entity.
1941
1942 * emacs.c (main): Call syms_of_xsettings.
1943
1944 * config.in: HAVE_GCONF is new.
1945
1946 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1947 xsettings.o is new.
1948
1949 2009-11-17 Kenichi Handa <handa@m17n.org>
1950
1951 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1952 back to the default font in case that no suitable font is found.
1953
1954 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1955
1956 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1957 Suggested by Chad Brown <yandros@mit.edu>.
1958 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1959
1960 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1961
1962 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1963
1964 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1965
1966 * Makefile.in: Ignore errors from mkdir when creating deps directory.
1967
1968 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1969
1970 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1971 has a parent.
1972
1973 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
1974 dependency files in deps/. Include those files into Makefile.
1975
1976 * config.in: Generated (AUTO_DEPEND).
1977
1978 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
1979
1980 * dbusbind.c (Vdbus_registered_objects_table): Rename from
1981 Vdbus_registered_functions_table, because it contains also
1982 properties. Fix docstring.
1983 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
1984
1985 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1986
1987 * alloc.c (mark_object): Don't reprocess marked strings.
1988 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1989 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1990
1991 2009-11-13 Kenichi Handa <handa@m17n.org>
1992
1993 * category.c (word_boundary_p): Adjust for the change of the
1994 semantics of Vword_combining_categories.
1995 (Vword_combining_categories): Describe the slight change of the
1996 semantics.
1997
1998 2009-11-13 Eli Zaretskii <eliz@gnu.org>
1999
2000 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
2001
2002 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
2003
2004 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
2005
2006 * xdisp.c (syms_of_xdisp): Fix typo in last change.
2007
2008 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
2009
2010 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
2011
2012 2009-11-11 David Reitter <david.reitter@gmail.com>
2013
2014 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
2015 variables to fix 2009-11-09 change.
2016
2017 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
2018
2019 * process.c (ifflag_def): Make flag_sym constant.
2020 (Fnetwork_interface_info): Use a constant pointer.
2021 (ifflag_table):
2022 * xfns.c (cursor_bits):
2023 * xdisp.c (power_letter):
2024 * termcap.c (speeds, esctab):
2025 * sysdep.c (baud_convert):
2026 * keyboard.c (lispy_accent_codes, modifier_names):
2027 * image.c (xbm_format, xpm_format, pbm_format, png_format)
2028 (jpeg_format, tiff_format, gif_format, svg_format)
2029 (interlace_start, interlace_increment, gs_format):
2030 * gtkutil.c (separator_names):
2031 * fringe.c (swap_nibble):
2032 * fns.c (base64_value_to_char, base64_char_to_value):
2033 * fileio.c (make_temp_name_tbl):
2034 * coding.c (suffixes): Make constant.
2035
2036 * frame.c (make_initial_frame):
2037 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
2038 build_string.
2039 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
2040
2041 * s/freebsd.h:
2042 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
2043
2044 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
2045 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
2046
2047 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
2048 * xterm.c (syms_of_xterm):
2049 * xfaces.c (syms_of_xfaces):
2050 * xdisp.c (syms_of_xdisp):
2051 * lread.c (syms_of_lread):
2052 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
2053 build_string.
2054
2055 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
2056
2057 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2058
2059 * fns.c (Fplist_get): Merge the active and the commented out code.
2060
2061 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2062
2063 * keyboard.h: Declare timer_check.
2064
2065 * keyboard.c (timer_check_2): New function that does what the old
2066 timer_check did.
2067 (timer_check): Call timer_check_2 until -1 or a non-zero time is
2068 returned, i.e. don't return -1 with timers pending.
2069
2070 * process.c: Remove extern declaration of timer_check.
2071
2072 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
2073 even if timer_check returned -1.
2074
2075 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
2076 xg_dialog_data.
2077 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
2078 the event loop.
2079 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
2080 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
2081 Destroy the dialog after xg_dialog_run.
2082
2083 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2084
2085 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
2086
2087 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2088
2089 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
2090
2091 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
2092
2093 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
2094
2095 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
2096
2097 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
2098 w32menu.c, and nsmenu.m.
2099 Simplify the obsolete case where position is nil.
2100 (cleanup_popup_menu): New function, moved from nsmenu.m.
2101 (struct skp): Remove slot `notreal'.
2102 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
2103 adjust callers.
2104 (single_menu_item): Adjust call to parse_menu_item.
2105 (syms_of_menu): Defsubr x-popup-menu.
2106 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
2107 (keymap_panes): Don't export any more.
2108 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
2109 (xmenu_show): Declare.
2110 * keyboard.c (parse_menu_item): Remove arg `notreal'.
2111 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
2112 * keyboard.h (parse_menu_item): Update declaration.
2113 * xmenu.c (Fx_popup_menu): Remove.
2114 (syms_of_xmenu): Don't defsubr x-popup-menu.
2115 * w32menu.c (Fx_popup_menu): Remove.
2116 (syms_of_w32menu): Don't defsubr x-popup-menu.
2117 * nsmenu.m (cleanup_popup_menu): Remove.
2118 (ns_menu_show): Rename from ns_popup_menu and remove all the code
2119 moved to menu.c's Fx_popup_menu.
2120 (Fx_popup_menu): Remove.
2121 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
2122 menu_items (it's done in menu.c already).
2123
2124 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
2125
2126 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
2127 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
2128
2129 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
2130
2131 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
2132 xmenu_show. Hide any tooltip before opening a menu.
2133 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
2134 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
2135
2136 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2137
2138 Let integers use up 2 tags to give them one extra bit and thus double
2139 their range.
2140 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
2141 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
2142 New macros.
2143 (enum Lisp_Type): Use them. Give explicit values.
2144 (Lisp_Type_Limit): Remove.
2145 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
2146 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
2147 Pay attention to USE_2_TAGS_FOR_INTS.
2148 (INTEGERP): Use LISP_INT_TAG_P.
2149 * fns.c (internal_equal): Simplify the default case.
2150 (sxhash): Use case_Lisp_Int.
2151 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
2152 any more.
2153 (Ftype_of): Use case_Lisp_Int.
2154 (store_symval_forwarding): Take into account the fact that Ints can
2155 now have more than one tag.
2156 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
2157 buffer_slot_type_mismatch):
2158 * xfaces.c (face_attr_equal_p):
2159 * print.c (print_object):
2160 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
2161 Use case_Lisp_Int.
2162
2163 2009-11-06 Eli Zaretskii <eliz@gnu.org>
2164
2165 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
2166
2167 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
2168 warning.
2169
2170 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
2171
2172 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
2173
2174 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
2175
2176 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
2177 ButtonPressRelease and MotionNotify (bug#4870).
2178
2179 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
2180
2181 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
2182
2183 * xterm.c (syms_of_xterm):
2184 * xselect.c (syms_of_xselect):
2185 * xmenu.c (syms_of_xmenu):
2186 * xfns.c (syms_of_xfns):
2187 * xfaces.c (syms_of_xfaces):
2188 * xdisp.c (syms_of_xdisp):
2189 * window.c (syms_of_window):
2190 * w32fns.c (syms_of_w32fns):
2191 * undo.c (syms_of_undo):
2192 * textprop.c (syms_of_textprop):
2193 * terminal.c (syms_of_terminal):
2194 * syntax.c (syms_of_syntax):
2195 * sound.c (syms_of_sound):
2196 * search.c (syms_of_search):
2197 * print.c (syms_of_print):
2198 * minibuf.c (syms_of_minibuf):
2199 * macros.c (syms_of_macros):
2200 * keymap.c (syms_of_keymap, initial_define_key)
2201 (initial_define_lispy_key):
2202 * keyboard.c (syms_of_keyboard):
2203 * insdel.c (syms_of_insdel):
2204 * image.c (syms_of_image):
2205 * fringe.c (syms_of_fringe):
2206 * frame.c (syms_of_frame):
2207 * fontset.c (syms_of_fontset):
2208 * fns.c (syms_of_fns):
2209 * fns.c (syms_of_fns):
2210 * fileio.c (syms_of_fileio):
2211 * fileio.c (syms_of_fileio):
2212 * eval.c (syms_of_eval):
2213 * doc.c (syms_of_doc):
2214 * dispnew.c (syms_of_display):
2215 * dired.c (syms_of_dired):
2216 * dbusbind.c (syms_of_dbusbind):
2217 * data.c (syms_of_data):
2218 * composite.c (syms_of_composite):
2219 * coding.c (syms_of_coding):
2220 * cmds.c (syms_of_cmds):
2221 * charset.c (define_charset_internal, syms_of_character):
2222 * ccl.c (syms_of_ccl):
2223 * category.c (syms_of_category, init_category_once):
2224 * casetab.c (syms_of_casetab):
2225 * casefiddle.c (syms_of_casefiddle):
2226 * callint.c (syms_of_callint):
2227 * bytecode.c (syms_of_bytecode):
2228 * buffer.c (keys_of_buffer, syms_of_buffer):
2229 * alloc.c (syms_of_alloc):
2230 * process.c (syms_of_process, init_process):
2231 * lread.c (syms_of_lread, init_obarray):
2232 * font.c (build_style_table):
2233 * emacs.c (syms_of_emacs, main): Replace calls to intern with
2234 intern_c_string, calls to make_pure_string with
2235 make_pure_c_string. Use pure_cons instead of Fcons.
2236
2237 * process.c (socket_options): Make it const.
2238 (set_socket_option, init_process): Use a const pointer.
2239
2240 * lread.c (intern_c_string): New function.
2241 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2242 (defvar_int): Uset it. Make the name const char*.
2243
2244 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2245 (defvar_int): Update prototypes.
2246 (DEFUN, EXFUN): Support for prototypes is now required.
2247 (intern_c_string): New prototype.
2248 (struct Lisp_Subr): Make symbol_name constant.
2249
2250 * font.c (struct table_entry): Remove unused member. Make NAMES
2251 constant.
2252 (weight_table, slant_table, width_table): Make constant.
2253
2254 * emacs.c (struct standard_args): Make name and longname constant.
2255
2256 * character.h (DEFSYM): Use intern_c_string.
2257
2258 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2259
2260 * alloc.c (make_pure_c_string): New function.
2261
2262 * eval.c (Fautoload): Purecopy all arguments.
2263
2264 2009-11-05 Kenichi Handa <handa@m17n.org>
2265
2266 * fileio.c (Finsert_file_contents): Be sure set coding-system of
2267 the buffer in case of replace.
2268
2269 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
2270
2271 * puresize.h (BASE_PURESIZE): Increase to 1620000.
2272
2273 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2274
2275 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
2276 when applicable (bug#4851).
2277
2278 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
2279 (P_): Support for prototypes is now required.
2280
2281 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
2282
2283 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
2284 (Bug#4827).
2285
2286 2009-10-30 Eli Zaretskii <eliz@gnu.org>
2287
2288 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
2289
2290 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
2291
2292 * puresize.h (BASE_PURESIZE): Increase to 1470000.
2293
2294 * lread.c (Fload): Purecopy the file name when building
2295 Vpreloaded_file_list.
2296
2297 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
2298
2299 * w32fns.c (syms_of_w32fns): Change default value of
2300 w32-scroll-lock-modifier to nil. (Bug#2827)
2301
2302 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
2303
2304 * minibuf.c (Fall_completions): Fix typos in docstring.
2305
2306 2009-10-26 Andreas Schwab <schwab@redhat.com>
2307
2308 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
2309
2310 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
2311
2312 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
2313 For delta < 0, skip check that only makes sense when the mini-window
2314 is going to be enlarged. (Bug#4534)
2315
2316 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
2317
2318 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
2319 string in menu maps (Bug#4471).
2320
2321 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
2322
2323 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
2324 FRAME_NS_VIEW on terminal frames (Bug#4765).
2325
2326 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
2327
2328 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
2329 DBUS_TYPE_UINTnn separately to get proper sign extension.
2330
2331 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2332 can properly handle unsigned types.
2333 (make_uid, make_gid): Remove.
2334
2335 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2336 types again.
2337
2338 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
2339 (system_process_attributes): Likewise.
2340
2341 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2342
2343 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2344
2345 * eval.c (Fautoload): Purecopy the filename. Simplify.
2346
2347 * category.c (Fdefine_category): Purecopy docstring.
2348
2349 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
2350
2351 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2352
2353 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2354
2355 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
2356
2357 * window.c (Fwindow_edges, Fwindow_pixel_edges)
2358 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2359 (Bug#4775).
2360
2361 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2362
2363 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2364 (init_fileio_once):
2365 * lisp.h (init_fileio_once): Remove.
2366 * emacs.c (main): Don't call init_fileio_once.
2367
2368 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
2369
2370 * puresize.h (BASE_PURESIZE): Increase to 1430000.
2371
2372 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
2373
2374 * doprnt.c (doprnt): Fix overflow check.
2375
2376 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
2377
2378 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
2379
2380 * xterm.h (x_wait_for_event): Declare it.
2381
2382 * xterm.c (pending_event_wait): New variable.
2383 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2384 see pending_event_wait.eventtype.
2385 (handle_one_xevent): Don't change gravity when parent changes.
2386 (x_new_font): Call change_frame_size with new rows/columns before we
2387 try to resize the frame.
2388 (x_wait_for_event): New function.
2389 (x_set_window_size_1): Don't change gravity unless change_gravity
2390 is set.
2391 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2392 don't change frame size, instead wait for the ConfigureNotify.
2393 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2394 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2395 (x_initialize): Initialize pending_event_wait.
2396
2397 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2398 size.
2399
2400 * widget.c (EmacsFrameSetValues): Add comment.
2401 (EmacsFrameSetCharSize): Just call x_set_window_size.
2402
2403 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2404 x_wait_for_event.
2405 (flush_and_sync): Remove again.
2406 (xg_get_font_name): Suggest monospace if no previous font is known.
2407
2408 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2409
2410 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
2411 8th bit, since that only made sense in the ASCII world (bug#4751).
2412
2413 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2414
2415 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2416 processing pending events when event is filtered for input method.
2417 (Bug#3681)
2418
2419 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
2420
2421 * fns.c: Add #endif accidentally removed in previous change.
2422
2423 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2424
2425 * fns.c: Remove code for unsupported system: MAC_OS.
2426 * image.c: Likewise. Include setjmp.h.
2427
2428 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2429
2430 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2431 pixel -1 (bug #4742).
2432
2433 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2434
2435 * process.c (create_pty): Remove conditionals for no longer
2436 supported systems: UNIPLUS and RTU.
2437
2438 * xterm.c:
2439 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2440
2441 * alloc.c: Do not define struct catchtag.
2442 * eval.c: Move struct catchtag definition ...
2443 * lisp.h: ... here.
2444
2445 * image.c: Move png.h #include earlier to avoid warnings.
2446
2447 * xterm.c:
2448 * xsmfns.c:
2449 * xselect.c:
2450 * xrdb.c:
2451 * xmenu.c:
2452 * xftfont.c:
2453 * xfont.c:
2454 * xfns.c:
2455 * xfaces.c:
2456 * xdisp.c:
2457 * window.c:
2458 * widget.c:
2459 * w32xfns.c:
2460 * w32uniscribe.c:
2461 * w32term.c:
2462 * w32select.c:
2463 * w32reg.c:
2464 * w32proc.c:
2465 * w32menu.c:
2466 * w32inevt.c:
2467 * w32heap.c:
2468 * w32font.c:
2469 * w32fns.c:
2470 * w32console.c:
2471 * w32.c:
2472 * w16select.c:
2473 * vm-limit.c:
2474 * unexsol.c:
2475 * unexec.c:
2476 * unexcw.c:
2477 * unexaix.c:
2478 * undo.c:
2479 * tparam.c:
2480 * textprop.c:
2481 * terminfo.c:
2482 * terminal.c:
2483 * termcap.c:
2484 * term.c:
2485 * syntax.c:
2486 * sound.c:
2487 * sheap.c:
2488 * search.c:
2489 * scroll.c:
2490 * region-cache.c:
2491 * regex.c:
2492 * ralloc.c:
2493 * process.c:
2494 * print.c:
2495 * nsterm.m:
2496 * nsselect.m:
2497 * nsmenu.m:
2498 * nsimage.m:
2499 * nsfont.m:
2500 * nsfns.m:
2501 * msdos.c:
2502 * minibuf.c:
2503 * menu.c:
2504 * marker.c:
2505 * macros.c:
2506 * keymap.c:
2507 * keyboard.c:
2508 * intervals.c:
2509 * insdel.c:
2510 * indent.c:
2511 * gtkutil.c:
2512 * ftxfont.c:
2513 * ftfont.c:
2514 * fringe.c:
2515 * frame.c:
2516 * fontset.c:
2517 * font.c:
2518 * fns.c:
2519 * floatfns.c:
2520 * filelock.c:
2521 * fileio.c:
2522 * emacs.c:
2523 * editfns.c:
2524 * dosfns.c:
2525 * doprnt.c:
2526 * doc.c:
2527 * dispnew.c:
2528 * dired.c:
2529 * dbusbind.c:
2530 * data.c:
2531 * composite.c:
2532 * coding.c:
2533 * cmds.c:
2534 * cm.c:
2535 * chartab.c:
2536 * charset.c:
2537 * character.c:
2538 * ccl.c:
2539 * category.c:
2540 * casetab.c:
2541 * casefiddle.c:
2542 * callproc.c:
2543 * callint.c:
2544 * bytecode.c:
2545 * buffer.c:
2546 * atimer.c: Include setjmp.h. (Bug#4643)
2547
2548 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2549
2550 Remove leftover table unibyte_to_multibyte_table.
2551 * character.c (unibyte_to_multibyte_table): Remove.
2552 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2553 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2554 * character.h (UNIBYTE_TO_CHAR): New macro.
2555 (MAKE_CHAR_MULTIBYTE): Use it.
2556 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2557 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2558 (message_dolog, set_message_1):
2559 * search.c (Freplace_match):
2560 * editfns.c (Fcompare_buffer_substrings):
2561 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2562 (concat):
2563 * insdel.c (copy_text, count_size_as_multibyte):
2564 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2565 * term.c (produce_glyphs):
2566 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2567 * regex.c (RE_CHAR_TO_MULTIBYTE):
2568 * cmds.c (internal_self_insert):
2569 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2570
2571 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2572
2573 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2574
2575 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2576
2577 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
2578
2579 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2580
2581 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2582
2583 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2584 still needed under Tiger.
2585
2586 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2587
2588 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2589 __Apple__.
2590
2591 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2592
2593 2009-10-15 Kenichi Handa <handa@m17n.org>
2594
2595 * print.c (print_object): Escape a symbol like "2E10" too.
2596
2597 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
2598
2599 Cleanups and changes for 64-bit compile under Snow Leopard.
2600 Based on suggestions by Erik Charlebois.
2601
2602 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2603
2604 * nsfont.m (ns_char_width): Replace deprecated call.
2605 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2606 cast argument.
2607 (nsfont_open): Use ns_char_width() everywhere.
2608 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
2609
2610 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2611
2612 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2613 where appropriate.
2614
2615 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2616 where appropriate.
2617 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2618 Use stringWithUTF8String.
2619 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2620
2621 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2622 Add formal protocol mention to inheritance.
2623 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2624
2625 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2626 Fix printf format.
2627 (ns_query_color): Use CGFloat where appropriate.
2628 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
2629 (EmacsScroller-mouseDown:): Use long format in printf, and cast
2630 argument.
2631
2632 * config.in (NS_HAVE_NSINTEGER): Drop.
2633
2634 * dbusbind.c (dbus-method-return-internal)
2635 (dbus-method-error-internal): Use long format in printf, and cast
2636 argument.
2637
2638 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2639 in printf, and cast argument.
2640
2641 * process.c (list_processes_1): Use long format in printf, and
2642 cast argument.
2643
2644 2009-10-11 Glenn Morris <rgm@gnu.org>
2645
2646 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2647
2648 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2649
2650 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2651 menu bar with a small width so it doesn't enlarge the frame.
2652
2653 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
2654
2655 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2656
2657 2009-10-06 Glenn Morris <rgm@gnu.org>
2658
2659 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2660 SOME_MACHINE_LISP (this enters indirectly via DOC).
2661
2662 2009-10-05 Eli Zaretskii <eliz@gnu.org>
2663
2664 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2665
2666 2009-10-04 Eli Zaretskii <eliz@gnu.org>
2667
2668 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2669 Doc fix.
2670
2671 2009-10-03 Martin Rudalics <rudalics@gmx.at>
2672
2673 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2674
2675 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
2676
2677 * lisp.h (Qdelete_directory_internal): Remove, because it is not
2678 used anymore outside fileio.c.
2679
2680 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2681
2682 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
2683
2684 * lisp.h (Qdelete_directory_internal):
2685 Declare, instead of Qdelete_directory.
2686
2687 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2688
2689 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2690
2691 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2692
2693 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
2694
2695 * fileio.c (Fdelete_directory_internal): Rename from
2696 Fdelete_directory. It is not a command anymore. It has no file
2697 name handler.
2698
2699 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2700
2701 * xdisp.c (get_next_display_element): Use an enum in last change.
2702
2703 2009-09-28 Kenichi Handa <handa@m17n.org>
2704
2705 * xdisp.c (get_next_display_element): Pay attention to
2706 unibyte_display_via_language_environment in handling
2707 Vnobreak_char_display.
2708
2709 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2710
2711 * nsterm.h (ns_app_name): New extern variable.
2712
2713 * nsterm.m (ns_app_name): New variable.
2714 (ns_term_init): Set and use it.
2715 (ns_term_shutdown): Use it.
2716
2717 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2718 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2719
2720 * nsfns.m (ns_set_name_iconic, ns_set_name)
2721 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2722 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2723
2724 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2725 Remove double-casting in client_data comparison.
2726
2727 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2728
2729 * keyboard.c (make_lispy_event): Remember last wheel direction.
2730 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2731
2732 2009-09-26 Glenn Morris <rgm@gnu.org>
2733
2734 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2735 internal.elc. Add term/pc-win.elc.
2736 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2737 term/x-win.elc.
2738 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2739 term/w32-win.elc.
2740 (NS_SUPPORT): New.
2741 (lisp): Add NS_SUPPORT.
2742 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2743
2744 2009-09-25 David Reitter <david.reitter@gmail.com>
2745
2746 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2747 on Mac OS X 10.6+ (bug#4513).
2748
2749 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
2750
2751 * frame.c (xrdb_get_resource): Return nil for empty string resources;
2752 some parts of Emacs code (like font selection) don't grok them.
2753 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
2754
2755 2009-09-24 Andreas Schwab <schwab@redhat.com>
2756
2757 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2758
2759 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
2760
2761 * dired.c (Fdirectory_files): Fix typo in docstring.
2762
2763 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2764
2765 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2766 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2767 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2768 under GNUstep.
2769 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2770
2771 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2772 glyph advancement.
2773
2774 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2775
2776 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
2777 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
2778
2779 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2780 deleted (bug #4492).
2781
2782 * nsfont.m (Vns_reg_to_script): New lisp variable.
2783 (syms_of_nsfont): Declare it.
2784 (ns_registry_to_script): New function.
2785 (ns_get_req_script): Call it.
2786 (ns_findfonts): Don't give up on non-unicode registry.
2787
2788 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2789
2790 2009-09-20 Tom Tromey <tromey@redhat.com>
2791
2792 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2793 batch mode (bug#4228).
2794
2795 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
2796
2797 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
2798 carefully. (Bug #4339)
2799
2800 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
2801
2802 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
2803
2804 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2805
2806 * emacs.c (inhibit_x_resources): Update doc string for NS.
2807 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
2808 legacy code for -NXHost. Fix error printf in daemon case.
2809
2810 * nsterm.h (ns_no_defaults): Remove.
2811
2812 * nsterm.m (ns_no_defaults): Remove.
2813 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2814 (ns_use_qd_smoothing): Remove legacy variable.
2815 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2816 don't update the NSWindow itself.
2817 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
2818 state detection and store user rect ourselves. (Bug #3581)
2819
2820 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2821 ns_use_qd_smoothing.
2822
2823 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2824 platform versions. Drop support for emacs-20-style face specs.
2825 (x-close-connection): Drop PSFlush() under OS X.
2826 (x-focus-frame): Activate the app first. (Bug #4180)
2827
2828 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
2829
2830 * emacs.c (inhibit_x_resources): New variable.
2831 (main) [HAVE_NS]: Don't process --quick command line option.
2832 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2833
2834 * lisp.h (inhibit_x_resources): Declare it extern.
2835
2836 * w32reg.c (x_get_string_resource):
2837 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2838
2839 2009-09-17 Eli Zaretskii <eliz@gnu.org>
2840
2841 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2842 Add lisp/term/internal.elc.
2843
2844 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2845
2846 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2847 (bug#4461).
2848
2849 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2850
2851 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2852
2853 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2854 (OBJECTS_MACHINE): Remove, unused.
2855
2856 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2857
2858 * frame.c (x_get_resource_string): Remove unused.
2859
2860 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2861
2862 * xterm.c (x_new_font): Call change_frame_size before calling
2863 x_set_window_size, in case frame size won't change.
2864
2865 * frame.c (x_set_font): Remove dead code.
2866
2867 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2868
2869 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2870
2871 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2872
2873 * lread.c (Fload): Don't output a message after loading an obsolete
2874 package any more (done in Lisp now).
2875
2876 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
2877
2878 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2879
2880 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2881
2882 * keymap.c (Fwhere_is_internal): Use nconc2.
2883
2884 2009-09-11 Alan Mackenzie <acm@muc.de>
2885
2886 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2887 batch mode.
2888
2889 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2890
2891 * xdisp.c (display_mode_element): Detect cycles.
2892
2893 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2894
2895 * keymap.c (where_is_internal): Don't erroneously return nil right after
2896 filling the cache.
2897 (where_is_internal_1): Fix up typo.
2898
2899 2009-09-11 Glenn Morris <rgm@gnu.org>
2900
2901 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2902 share a common doc-string.
2903
2904 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2905
2906 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2907 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2908
2909 * keymap.c (QCadvertised_binding): New constant.
2910 (syms_of_keymap): Initialize it.
2911 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2912 if applicable.
2913
2914 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2915
2916 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2917 (parse_menu_item): Streamline since bindings are recomputed all the
2918 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2919 more and don't support lmenu's menu-alias any more either.
2920
2921 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2922 (where_is_internal): Strip it down to only traverse the keymaps.
2923 Move the cache handling from Fwhere_is_internal to here.
2924 (Fwhere_is_internal): Move the handling of remapping and the choice of
2925 the best binding from where_is_internal to here.
2926 Unify the cached/noncached paths, so remapping is also handled
2927 correctly when the cache is used, and so the cache can be used to
2928 speed up remap-handling when applicable.
2929 Give preference to non-remapped bindings.
2930 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2931 non-remapped bindings.
2932 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2933 command remapping.
2934
2935 * xdisp.c (display_mode_element): Move list length limit from 50 to
2936 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2937
2938 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
2939
2940 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2941
2942 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2943
2944 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2945 (Bug#4334)
2946
2947 * keymap.c (where_is_internal): Filter out shadowed remappings.
2948 Assume that where_is_internal returns unshadowed bindings to simplify
2949 the code and get rid of the gotos. Use ASIZE.
2950
2951 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2952
2953 * xterm.c (x_focus_changed): If we get a focusout and pointer
2954 is invisible, make it visible.
2955
2956 * xterm.h: Remove condition for declaration of
2957 x_*_window_to_frame.
2958
2959 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2960
2961 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2962 initial terminal as well.
2963
2964 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2965
2966 * xterm.h: Rename x_non_menubar_window_to_frame to
2967 x_menubar_window_to_frame.
2968
2969 * xterm.c: Remove declarations also in xterm.h
2970 (XTmouse_position): Do not return valid positions
2971 for clicks in the menubar and the toolbar for Gtk+.
2972
2973 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2974 if the widget for the event has the same top level as a frame,
2975 return the frame.
2976 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2977 internal windows, bug #4122.
2978 (x_non_menubar_window_to_frame): Remove.
2979
2980 2009-09-02 Glenn Morris <rgm@gnu.org>
2981
2982 * buffer.c (default-major-mode): Move most of the doc from here...
2983 (major-mode): ... to here.
2984
2985 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
2986
2987 * process.c (wait_reading_process_output): Keep the descriptor
2988 when pty is used by a non-child process, e.g., in I/O buffer of
2989 GDB this allows inferior to be restarted.
2990
2991 2009-08-29 Eli Zaretskii <eliz@gnu.org>
2992
2993 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2994 both branches into one.
2995
2996 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2997
2998 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2999 (main): Use enable-multibyte-characters rather than
3000 default-enable-multibyte-characters. Output a warning message when
3001 running a unibyte session.
3002
3003 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3004
3005 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
3006 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
3007 (copy_data_segment): Also copy __program_vars section.
3008 (copy_dyld_info) [LC_DYLD_INFO]: New function.
3009 (dump_it) [LC_DYLD_INFO]: Use it.
3010
3011 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
3012
3013 2009-08-28 Eli Zaretskii <eliz@gnu.org>
3014
3015 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
3016 $(SRC)/buildobj.h.
3017 (buildobj.h): Renamed from $(SRC)/buildobj.h.
3018 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
3019 $(SRC)/buildobj.h.
3020 (clean): Add buildobj.h.
3021
3022 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
3023
3024 * print.c (print_object): Set escapeflag to 1 when printing
3025 hashtable keys and values.
3026
3027 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
3028
3029 * lread.c (read_integer): Use doubles (and potentially return a float
3030 number) as we do in string-to-number.
3031 (read1): Use strtol to read integers, signal errors on strtol's
3032 overflow and use floats if strtol's output is too large for
3033 Elisp integers.
3034
3035 2009-08-27 Eli Zaretskii <eliz@gnu.org>
3036
3037 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
3038 (make-buildobj-SH): Fix last change.
3039 (SRC): Move to before where it's first used.
3040
3041 2009-08-27 Kenichi Handa <handa@m17n.org>
3042
3043 * process.c (send_process): Use encode_coding_object instead of
3044 encode_coding_string to perform eol-conversion even if the string
3045 is unibyte.
3046
3047 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
3048 character.
3049
3050 * cmds.c (Fself_insert_command): Avoid unnecessay
3051 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
3052
3053 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
3054
3055 * callproc.c (Fcall_process): Remove always true #if.
3056
3057 * lisp.h: Replace #if 0 code for checking with text pointing to
3058 the --enable-checking configure flag.
3059
3060 * emacs.c (main): Mention the --enable-profiling configure flag
3061 instead of using CFLAGS.
3062
3063 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
3064
3065 * Makefile.in (buildobj.h): New target.
3066 (doc.o): Depend on it.
3067 (temacs${EXEEXT}): Don't generate buildobj.lst.
3068 (mostlyclean): Delete buildobj.h, not buildobj.lst.
3069 * makefile.w32-in ($(SRC)/buildobj.h): New target.
3070 ($(BLD)/doc.$(O)): Depend on it.
3071 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
3072 provided by Eli Zaretskii.)
3073 ($(TEMACS)): Don't generate buildobj.lst.
3074 * doc.c: Include buildobj.h.
3075 (buildobj): New static variable.
3076 (Fsnarf_documentation): Use it, instead of opening and reading
3077 buildobj.lst.
3078
3079 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
3080
3081 * dbusbind.c (Fdbus_call_method)
3082 (Fdbus_call_method_asynchronously): Use English numeric format for
3083 timeout values in doc string.
3084
3085 2009-08-25 Kenichi Handa <handa@m17n.org>
3086
3087 * alloc.c (mark_char_table): New function.
3088 (mark_object): Use mark_char_table for a char-table.
3089
3090 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
3091 (CHAR_TABLE_REF): Use it.
3092
3093 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
3094
3095 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
3096 before invoking the newly build emacs to check for load-path
3097 shadowing.
3098
3099 2009-08-22 Glenn Morris <rgm@gnu.org>
3100
3101 * Makefile.in (bootstrap_exe): New variable.
3102 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
3103 Use ${bootstrap_exe}.
3104
3105 2009-08-22 Eli Zaretskii <eliz@gnu.org>
3106
3107 * coding.h (encode_coding_string): Don't encode unibyte strings.
3108 (Bug#4047)
3109
3110 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
3111
3112 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
3113
3114 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
3115 intended as hotfix only.
3116 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
3117
3118 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3119
3120 * nsterm.m (ns_get_color): Update documentation properly for last
3121 change, and clean up loose ends in the code left by it. Fix
3122 longstanding bug with 16-bit hex parsing, and add support for
3123 yet another X11 format (rgb:r/g/b) for compatibility.
3124 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
3125 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
3126
3127 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
3128
3129 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
3130
3131 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
3132
3133 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
3134 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
3135 (xd_initialize, xd_pending_messages): Check, whether
3136 $DBUS_SESSION_BUS_ADDRESS is set.
3137
3138 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3139
3140 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
3141
3142 * nsterm.m (ns_get_color): Remove incompatible color formats again.
3143
3144 2009-08-20 Glenn Morris <rgm@gnu.org>
3145
3146 * emacs.c (system-type): Doc fix.
3147
3148 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3149
3150 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
3151 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
3152
3153 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
3154
3155 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
3156 New functions.
3157 (xd_initialize): Revert change from 2009-08-16.
3158
3159 2009-08-18 Kenichi Handa <handa@m17n.org>
3160
3161 * fontset.c (Ffontset_font): If a nil element is found in a
3162 font-group vector, return nil.
3163
3164 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
3165
3166 * process.c (status_notify): Don't perform redisplay.
3167 (Fdelete_process, list_processes_1, process_send_signal):
3168 Expliticly perform redisplay.
3169 (wait_reading_process_output): Always check process status, but
3170 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
3171
3172 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
3173
3174 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
3175 (XFLOAT_INIT): New macro for storing a float value.
3176 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
3177 * fns.c (sxhash): Copy out the value of a float in order to
3178 examine its bytes.
3179 * dbusbind.c (xd_append_arg): Likewise.
3180
3181 * emacs.c (main): Don't call syms_of_data twice.
3182
3183 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
3184
3185 * dbusbind.c (xd_initialize): Add connection file descriptor to
3186 input_wait_mask, in order to let select() detect, whether a new
3187 message has been arrived.
3188 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
3189
3190 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
3191
3192 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
3193 New functions.
3194
3195 * lisp.h (xd_pending_messages): Declare.
3196
3197 * keyboard.c (readable_events): Call xd_pending_messages.
3198
3199 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
3200
3201 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
3202
3203 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
3204
3205 * buffer.c (set_buffer_internal_1)
3206 (swap_out_buffer_local_variables): Check for unbound local
3207 variables (Bug#4138).
3208
3209 2009-08-14 Eli Zaretskii <eliz@gnu.org>
3210
3211 * process.c (create_pty): Fix last change.
3212
3213 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
3214
3215 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
3216 (xbm_load_image): Caller changed.
3217 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
3218
3219 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
3220
3221 * process.c (create_pty): New function.
3222 (Fstart_process): Use it to allow Emacs to just associate a pty
3223 with the buffer. See associated change in gdb-mi.el.
3224 (list_processes_1): Deal with no program name.
3225 (start_process_unwind): Use pid == -2 to mean no process.
3226
3227 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3228
3229 * cmds.c (nonundocount): New global variable.
3230 (keys_of_cmds): Initialize it.
3231 (Fself_insert_command): Use it to combine upto 20 sequential chars
3232 into a single undo entry, just like the Qself_insert_command code in
3233 keyboard.c does.
3234 Call frame_make_pointer_invisible, also like the Qself_insert_command
3235 code in keyboard.c does.
3236 * keyboard.c (command_loop_1): Use the new global nonundocount rather
3237 than its own local replacement for it.
3238
3239 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
3240
3241 * fns.c (concat): Don't re-set string length to its current value.
3242
3243 * coding.h (decode_coding_string, encode_coding_string):
3244 Use SBYTES macro.
3245
3246 * doprnt.c (doprnt_lisp): Delete unused function.
3247 (doprnt): Merge with doprnt1, discarding lispstrings code.
3248 * lisp.h (doprnt_lisp): Don't declare.
3249
3250 2009-08-07 Juri Linkov <juri@jurta.org>
3251
3252 * puresize.h (BASE_PURESIZE): Increase to 1270000.
3253
3254 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3255
3256 * print.c (syms_of_print): Undo previous change.
3257
3258 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
3259
3260 * lread.c (read1, syms_of_lread): Read hashtables back from the
3261 readable format.
3262
3263 * print.c (print_preprocess, print_object): Print hashtables fully
3264 and readably.
3265 (syms_of_print): Provide 'hashtable-print-readable.
3266
3267 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3268
3269 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
3270 no family set.
3271 (nsfont_open): Handle case when entity has no family.
3272
3273 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3274
3275 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
3276 element, not a list, for match case.
3277
3278 2009-07-28 Kenichi Handa <handa@m17n.org>
3279
3280 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
3281 rigidly.
3282
3283 * xfont.c (xfont_list_pattern): Don't ignore the return value of
3284 font_parse_xlfd. Check font properties more rigidly.
3285
3286 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3287
3288 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
3289 bsd-common.h.
3290
3291 2009-07-27 Kenichi Handa <handa@m17n.org>
3292
3293 * xfaces.c (face_with_height): Call font_clear_prop.
3294
3295 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
3296
3297 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
3298
3299 * xterm.c (x_term_init): Use Qx.
3300
3301 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
3302
3303 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
3304 (ns_get_color): Revert 2009-07-16 change.
3305
3306 2009-07-25 Eli Zaretskii <eliz@gnu.org>
3307
3308 * lread.c (syms_of_lread) <force_load_messages>: New variable.
3309 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
3310
3311 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
3312
3313 * coding.h (decode_coding_string, encode_coding_string):
3314 Use SCHARS macro.
3315
3316 * lread.c: Rewrite 2009-07-21 changes.
3317 (load_depth): Delete.
3318 (Qload_in_progress): New variable.
3319 (load_unwind): Don't reference load_depth or load_in_progress.
3320 (Fload): Likewise; specbind Qload_in_progress instead.
3321 (init_lread): Don't initialize load_depth.
3322 (syms_of_lread): Initialize and protect Qload_in_progress.
3323
3324 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3325
3326 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
3327
3328 2009-07-23 Yavor Doganov <yavor@gnu.org>
3329
3330 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
3331
3332 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3333
3334 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
3335 Bugs 3792, 3720, 2402.
3336 (ns_lookup_indexed_color): Check for bad index.
3337 (ns_index_color): Init unused slot to 0.
3338 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3339 Bug 3714, possibly 3082.
3340
3341 2009-07-22 Jason Rumney <jasonr@gnu.org>
3342
3343 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3344 Position IME window at cursor (Bug#2570).
3345 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3346 (globals_of_w32fns): Dynamically load functions required above.
3347
3348 * w32term.c (w32_draw_window_cursor): Send message to reposition
3349 any IME window.
3350
3351 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
3352
3353 * fileio.c: Revert 2009-07-16 changes.
3354 (Vauto_save_include_big_deletions): New variable.
3355 (Fdo_auto_save): Disable auto-save only if
3356 auto-save-include-big-deletions is nil.
3357
3358 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
3359
3360 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3361 the overflowed pixels into account (Bug#3879).
3362
3363 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
3364
3365 * lread.c (load_depth): New variable.
3366 (Fload, load_unwind, init_lread): Set it to the load recursion
3367 depth; set load_in_progress as a simple boolean based on the
3368 current load_depth. (Bug#3892)
3369
3370 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3371
3372 * nsfont.m (ns_has_attribute): Remove.
3373 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3374
3375 2009-07-18 Juri Linkov <juri@jurta.org>
3376
3377 * process.c (Fset_process_query_on_exit_flag): Mention killing
3378 a buffer in docstring.
3379
3380 2009-07-17 Kenichi Handa <handa@m17n.org>
3381
3382 * casetab.c (shuffle): Fix the logic of setting up the cycle.
3383
3384 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3385
3386 * nsfns.m (Fns_set_alpha): Remove function.
3387 (syms_of_nsfns): Don't defsubr it.
3388
3389 * nsterm.m (ns_get_color): Remove incompatible color formats.
3390 (ns_color_to_lisp): Generate #rrggbb color format string.
3391
3392 2009-07-16 Richard Stallman <rms@gnu.org>
3393
3394 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3395 (Fset_buffer_auto_saved): Handle save_length = -2.
3396
3397 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
3398
3399 * xterm.c (Qx_gtk_map_stock): New var.
3400
3401 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3402 of calling intern each time.
3403
3404 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3405
3406 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3407 does tiling.
3408
3409 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3410
3411 2009-07-14 Kenichi Handa <handa@m17n.org>
3412
3413 * font.c (font_vconcat_entity_vectors): New function.
3414 (struct font_sort_data): New member font_driver_preference.
3415 (font_compare): Check font_driver_preference.
3416 (font_sort_entities): The format of the first argument changed.
3417 (font_delete_unmatched): Likewise.
3418 (font_list_entities): The return type changed.
3419 (font_select_entity): The format of the second argument changed.
3420 (font_find_for_lface): Adjuste for the above changes.
3421 Don't suppress the checking of C even if the repertory supports it.
3422 (Flist_fonts): Adjust for the above changes.
3423
3424 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3425 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
3426 Reject a font who has adstyle property that is different from a
3427 langname derived from registry property.
3428 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
3429
3430 2009-07-13 Eli Zaretskii <eliz@gnu.org>
3431
3432 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3433 local copy of dirfilename.
3434
3435 2009-07-13 Kenichi Handa <handa@m17n.org>
3436
3437 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3438 against max_char.
3439
3440 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3441 calling XSYMBOL (sym).
3442
3443 2009-07-11 Eli Zaretskii <eliz@gnu.org>
3444
3445 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3446 New function.
3447 (directory_files_internal) [WINDOWSNT]:
3448 Bind w32-get-true-file-attributes to either t or nil, depending whether
3449 the filesystem of the directory is fast or slow.
3450
3451 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3452 file name.
3453 (is_slow_fs): New function.
3454 (stat): Use it to determine whether to issue more system calls to
3455 get accurate file attributes, when w32-get-true-file-attributes is
3456 `local'.
3457
3458 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3459
3460 * xfns.c (Fx_select_font): Remember last font selected in
3461 x_last_font_name and use that the next time. Also try the frame
3462 parameter font-parameter as default to the font dialog.
3463
3464 2009-07-10 Kenichi Handa <handa@m17n.org>
3465
3466 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3467
3468 2009-07-09 Eli Zaretskii <eliz@gnu.org>
3469
3470 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
3471
3472 * w32.c (stat): Treat UNC file names as residing on remote
3473 drives. (Bug#3542)
3474
3475 2009-07-09 Kenichi Handa <handa@m17n.org>
3476
3477 * fontset.c (fontset_find_font): Fix previous change.
3478
3479 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
3480
3481 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3482 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3483 error flag.
3484
3485 2009-07-08 Kenichi Handa <handa@m17n.org>
3486
3487 * fontset.c (fontset_find_font): Fix the logic of handling
3488 charset_matched.
3489 (font_for_char): Delete unused var.
3490 (generate_ascii_font_name): Delete it.
3491
3492 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3493
3494 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3495 (encode_coding_sjis): Fix the code range check.
3496
3497 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
3498
3499 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3500 (Fexpand_file_name): Copy string data properly (Bug#3772).
3501
3502 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3503
3504 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3505 first MapNotify.
3506
3507 2009-07-07 Kenichi Handa <handa@m17n.org>
3508
3509 * character.h (unibyte_has_multibyte_table): Delete extern.
3510 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3511
3512 * charset.c (Fset_charset_priority): Update charset_unibyte.
3513 (syms_of_charset): Initialize charset_unibyte.
3514
3515 * character.c (unibyte_has_multibyte_table): Delete it.
3516 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3517 charset_unibyte.
3518 (multibyte_char_to_unibyte_safe): Likewise.
3519 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3520
3521 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
3522 (x_produce_glyphs): Likewise.
3523
3524 * .gdbinit (xcharset): Fix the treating $arg0.
3525
3526 2009-07-04 Eli Zaretskii <eliz@gnu.org>
3527
3528 Emulation of `getloadavg' on MS-Windows.
3529 * w32.c: Include float.h
3530 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3531 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3532 (get_native_system_info, get_system_times): New functions.
3533 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3534 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3535 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3536 g_b_init_get_system_times, and num_of_processors.
3537
3538 2009-07-03 Jason Rumney <jasonr@gnu.org>
3539
3540 * w32term.c (w32_initialize): Use standard types.
3541
3542 2009-07-03 Eli Zaretskii <eliz@gnu.org>
3543
3544 * dired.c (Ffile_attributes): Decode user and group names by the
3545 locale's encoding. (Bug#3443)
3546
3547 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3548
3549 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3550 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3551
3552 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3553
3554 * term.c (init_tty): Remove spurious #ifdef.
3555
3556 * m/mips.h: Mention this file is also used for netbsd.
3557 * m/pmax.h: Remove file.
3558
3559 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3560
3561 * xterm.h (struct x_display_info): Add invisible_cursor.
3562 (struct x_output): Add current_cursor.
3563
3564 * xterm.c (XTtoggle_invisible_pointer): New function.
3565 (x_define_frame_cursor): Don't define cursor if invisible or the
3566 same as before. Set current_cursor.
3567 (x_create_terminal): Set toggle_invisible_pointer_hook.
3568
3569 * xfns.c (make_invisible_cursor): New function.
3570 (x_set_mouse_color): Call make_invisible_cursor.
3571 Set current_cursor.
3572 (x_window): Set current_cursor.
3573
3574 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3575
3576 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3577 inserting a character.
3578 (read_avail_input): Call frame_make_pointer_visible.
3579
3580 * frame.c (Vmake_pointer_invisible): New variable.
3581 (frame_make_pointer_invisible, frame_make_pointer_visible):
3582 New functions.
3583 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3584
3585 * frame.h: Declare frame_make_pointer_invisible and
3586 frame_make_pointer_visible.
3587 (struct frame): Add pointer_invisible.
3588
3589 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3590
3591 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3592 frame isn't visible.
3593 (xg_frame_resized): If width/height is -1, get size of window
3594 from X server.
3595
3596 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3597 for MapNotify.
3598
3599 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
3600 here or call change_frame_size. Just call flush_and_sync.
3601 (flush_and_sync): Reintroduce.
3602
3603 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
3604
3605 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
3606
3607 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3608 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3609
3610 * frame.h: Declare Qsticky.
3611
3612 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3613
3614 * nsfns.m (ns_frame_parm_handlers): Ditto.
3615
3616 * frame.c: Declare Qsticky.
3617 (frame_parms): Add sticky.
3618
3619 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3620
3621 * xterm.h: Declare x_set_sticky.
3622
3623 * xterm.c (x_set_sticky): New function.
3624
3625 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3626 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3627 xg_tool_bar_proxy_help_callback.
3628
3629 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3630
3631 * frame.c: Qmaximized is new.
3632 (x_set_frame_parameters): Do not handle fullscreen specially.
3633 Only set width and height if explicitly set.
3634 (x_set_fullscreen): Handle Qmaximized.
3635 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3636 (syms_of_frame): Initialize Qmaximized.
3637
3638 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3639 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3640
3641 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
3642 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3643 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3644 set gravity to NorthWestGravity when USE_GTK.
3645 (set_wm_state): New function.
3646 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3647 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3648 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
3649 or the case when no window manager is running. That means remove calls
3650 to x_real_positions and x_fullscreen_adjust.
3651
3652 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3653 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3654 flush_and_sync.
3655 (xg_height_changed): New function.
3656 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
3657 and gtk_window_set_policy. Set frame gravity after parsing the
3658 geometry string.
3659 (xg_update_frame_menubar, free_frame_menubar)
3660 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3661 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3662 Remove calls to xg_frame_set_char_size.
3663
3664 2009-07-01 Kenichi Handa <handa@m17n.org>
3665
3666 * keyboard.c (decode_keyboard_code): New function.
3667 (tty_read_avail_input): Decode the input bytes if necessary.
3668
3669 * coding.c (setup_coding_system):
3670 Initialize coding->carryover_bytes to 0.
3671 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3672 use Qno_conversion.
3673
3674 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3675
3676 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3677
3678 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
3679
3680 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
3681
3682 2009-06-30 Jason Rumney <jasonr@gnu.org>
3683
3684 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3685 is already loaded.
3686 Set user model ID if supported (bug#1849).
3687
3688 2009-06-29 Jim Meyering <meyering@redhat.com>
3689
3690 Remove useless if-before-xfree test.
3691 * nsfont.m (nsfont_close): Remove useless test.
3692 * term.c (delete_tty): Likewise.
3693 * w32.c (system_process_attributes): Likewise.
3694 * w32font.c (w32font_close): Likewise.
3695 * xfaces.c (x_free_gc): Likewise.
3696 * xselect.c (buffer): Likewise.
3697
3698 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3699
3700 * process.c (send_process): Keep decoded string in a local
3701 variable and protect it from GC. (Bug#3521)
3702
3703 2009-06-28 Eli Zaretskii <eliz@gnu.org>
3704
3705 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3706 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3707
3708 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
3709
3710 * xdisp.c (start_display, handle_face_prop)
3711 (move_it_vertically_backward, cursor_row_fully_visible_p)
3712 (redisplay_window, try_window_id, produce_image_glyph):
3713 Delete some #ifdef-ed out code chunks that are now obsolete.
3714
3715 * xterm.c (x_update_window_begin, x_new_focus_frame)
3716 (x_scroll_bar_handle_click, handle_one_xevent)
3717 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3718 (x_make_frame_visible, x_make_frame_invisible)
3719 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3720 code chunks that are now obsolete.
3721
3722 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
3723
3724 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3725 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3726 for hours, when optimzation is enabled.
3727 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3728 (xd_read_message): Make them static.
3729
3730 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3731
3732 * term.c (turn_on_face): Allow simultaneously bold and dim
3733 terminal faces (Bug#3530).
3734
3735 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
3736
3737 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3738
3739 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3740 truncation glyphs (Bug#3686).
3741
3742 2009-06-27 Glenn Morris <rgm@gnu.org>
3743
3744 * m/pmax.h: Restore file, with only netbsd portions.
3745
3746 2009-06-26 David Reitter <david.reitter@gmail.com>
3747
3748 * nsterm.m (keydown): Avoid infinite loop.
3749
3750 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3751
3752 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3753 the arg FORCE_SYMBOL.
3754
3755 2009-06-25 Kenichi Handa <handa@m17n.org>
3756
3757 * fontset.c (fontset_find_font): When a usable rfont_def is found
3758 in a fallback font-group, make it the first element of the group.
3759
3760 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
3761
3762 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3763
3764 2009-06-24 Kenichi Handa <handa@m17n.org>
3765
3766 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3767 set for C.
3768 (fontset_font): Record the availability of a font for C both in
3769 the realized fontsets of the current one and the default one.
3770
3771 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3772
3773 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3774 conditional, it is always defined on AIX.
3775
3776 2009-06-23 Miles Bader <miles@gnu.org>
3777
3778 * window.c (Vrecenter_redisplay): New variable.
3779 (syms_of_window): Initialize it.
3780 (Qtty): New extern declaration.
3781 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3782
3783 2009-06-23 Jim Meyering <meyering@redhat.com>
3784
3785 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3786 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
3787 pointer dereferences are guaranteed to be valid.
3788
3789 2009-06-23 Kenichi Handa <handa@m17n.org>
3790
3791 * emacs.c (main): Call init_font ().
3792
3793 * font.h (Vfont_log): Extern it.
3794 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3795
3796 * font.c (font_sort_entities, font_list_entities)
3797 (font_matching_entity, font_open_entity)
3798 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3799 (Vfont_log): Delete static.
3800 (font_log_env_checked): Delete this variable.
3801 (font_add_log): Don't check font_log_env_checked.
3802 (font_deferred_log): Check Vfont_log.
3803 (init_font): New function.
3804
3805 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3806
3807 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3808
3809 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3810
3811 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3812
3813 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3814 (face_for_char): Don't call font_deferred_log here.
3815 (font_for_char): Likewise.
3816
3817 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
3818
3819 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3820 rather than its background_width for drawing the overline and
3821 underline (Bug#489).
3822
3823 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3824 rather than its background_width for drawing the overline and
3825 underline (Bug#489).
3826 (xg_default_icon_file): New variable.
3827 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3828 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
3829
3830 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3831 (load_overlay_strings): Remove externs.
3832 (fast_find_position): Function deleted.
3833 (mouse_face_from_buffer_pos): New function, based on
3834 fast_find_position. Correctly handle before-strings,
3835 display-strings, and after-strings (Bug#1220).
3836 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3837
3838 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
3839
3840 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
3841 (move_it_in_display_line_to, move_it_in_display_line_to)
3842 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3843
3844 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
3845
3846 * Branch for 23.1.
3847
3848 2009-06-21 Jason Rumney <jasonr@gnu.org>
3849
3850 * w32term.c (keyboard_codepage): New static variable.
3851 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3852 (w32_read_socket) [WM_CHAR]: Use it to decode character
3853 input (bug#3237).
3854 (w32_initialize): Initialize it.
3855 (codepage_for_locale): New function.
3856
3857 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
3858
3859 * process.c (status_message): Pass Faset index argument as a lisp
3860 object, so as to work with USE_LISP_UNION_TYPE.
3861
3862 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3863
3864 * coding.c (Ffind_coding_systems_region_internal):
3865 Cache checked characters.
3866
3867 2009-06-18 Kenichi Handa <handa@m17n.org>
3868
3869 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
3870
3871 2009-06-18 Andreas Schwab <aschwab@redhat.com>
3872
3873 * xdisp.c (redisplay_internal): Check that the frame is still
3874 live after redisplay of its windows.
3875 (redisplay_windows): Check that the window is still live.
3876
3877 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3878
3879 * coding.c (detect_coding_utf_16): Fix previous change.
3880
3881 2009-06-16 Kenichi Handa <handa@m17n.org>
3882
3883 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3884 UTF-16 by checking the dispersion of Eth and Oth bytes.
3885
3886 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3887
3888 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3889
3890 2009-06-15 Kenichi Handa <handa@m17n.org>
3891
3892 * process.c (status_message): Fix previous change. Be sure to
3893 decode a localized string.
3894
3895 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3896
3897 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3898 add comment explaining why.
3899
3900 2009-06-14 Sidney Markowitz <sidney@sidney.com>
3901
3902 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
3903
3904 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3905
3906 * nsfont.m (ns_attribute_value): Remove.
3907 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3908 (ns_has_attribute): Shrink the normal range.
3909 (ns_findfonts): Don't worry about requested spec in determining
3910 need for synthItal.
3911 (ns_get_covering_families): Retain scriptToFamilies.
3912
3913 2009-06-14 Seiji Zenitani <zenitani@mac.com>
3914
3915 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3916
3917 2009-06-11 Kenichi Handa <handa@m17n.org>
3918
3919 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3920 overhang for the static composition case.
3921
3922 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3923
3924 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3925 overhang for the automatic composition case.
3926
3927 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3928 composition case.
3929
3930 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
3931
3932 * xdisp.c (get_next_display_element): When handling wrap-prefix
3933 and line-prefix, treat \n as a control character (bug#3502).
3934
3935 2009-06-10 Kenichi Handa <handa@m17n.org>
3936
3937 * font.c (font_parse_family_registry): Fix for one-char foundry.
3938 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3939
3940 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3941
3942 * process.c (status_message): Fix handling of multibyte signal
3943 string (Bug#3499).
3944
3945 2009-06-09 Jim Meyering <meyering@redhat.com>
3946
3947 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3948 color name is missing.
3949
3950 2009-06-09 Kenichi Handa <handa@m17n.org>
3951
3952 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3953 FROM-CODE and TO-CODE are codepoints of CHARSET.
3954
3955 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3956
3957 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3958
3959 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3960
3961 Changes to support :script/:lang/:otf in NS font driver.
3962 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3963 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3964 indicate not part of font driver interface, and change callers.
3965 (ns_get_family): Remove pointless null check.
3966 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3967 ns_spec_to_descriptor, ns_descriptor_to_entity.
3968 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3969 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3970 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3971 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3972 (ns_get_req_script, ns_accumulate_script_ranges)
3973 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3974 New functions.
3975 (nsfont_list, nsfont_match): Use ns_findfonts.
3976 (nsfont_open): Use font descriptor instead of traits.
3977 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3978 (dump_glyphstring): Rename to ns_dump_glyphstring.
3979
3980 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3981
3982 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3983
3984 * fontset.c (fontset_from_font): Remove NS-specific code.
3985
3986 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
3987
3988 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3989 nonactive windows.
3990
3991 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
3992
3993 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
3994
3995 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3996
3997 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3998
3999 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
4000
4001 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
4002 account for the overflowing of newlines into the last glyph on the
4003 display line (Bug#3482).
4004
4005 2009-06-05 David Reitter <david.reitter@gmail.com>
4006
4007 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
4008 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
4009 Fns_selection_exists_p, Fns_selection_owner_p.
4010
4011 2009-06-03 Jason Rumney <jasonr@gnu.org>
4012
4013 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
4014 available. (Bug#3379)
4015
4016 2009-05-29 Kenichi Handa <handa@m17n.org>
4017
4018 * coding.c (get_translation_table):
4019 Check Venable_character_translation.
4020
4021 2009-05-26 David Reitter <david.reitter@gmail.com>
4022
4023 * nsterm.m (ns_raise_frame): Only raise frame if visible.
4024 (x_make_frame_visible): Move frame to front rather than calling
4025 ns_raise_frame().
4026 (keyDown:): Do not swallow events that aren't re-sent if frame
4027 isn't key window.
4028 (drawRect:): Do not set visibility/iconified flags because
4029 drawRect may be called by NSView even if the frame is hidden.
4030
4031 * nsfns.m (Fx_create_frame): Follow other ports in
4032 determining visibility; default to t. Ensure async_visible is set.
4033
4034 2009-05-23 Eli Zaretskii <eliz@gnu.org>
4035
4036 * dired.c (Ffile_attributes): Doc fix.
4037
4038 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
4039
4040 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
4041
4042 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
4043
4044 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
4045 and xfont_scratch_props.
4046 (syms_of_xfont): Do it here instead.
4047 (xfont_find_ccl_program): Delete, unused.
4048 (xfont_open): Delete unused var `i'.
4049
4050 2009-05-21 Kenichi Handa <handa@m17n.org>
4051
4052 * fontset.c (Qlatin): Don't make it static.
4053
4054 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
4055 New functions.
4056 (xfont_scripts_cache, xfont_scratch_props): New variables.
4057 (Qlatin, Vscalable_fonts_allowed): Extern it.
4058 (xfont_list_pattern): Argument changed. Callers changed.
4059 Check Vscalable_fonts_allowed. Check the support of a script.
4060 (xfont_list): Don't reject a font spec with :script property.
4061 (xfont_has_char): Fix setting of encoding.
4062 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
4063 xfont_scratch_props.
4064
4065 2009-05-19 Kenichi Handa <handa@m17n.org>
4066
4067 * font.c (font_sort_entities): Rename from font_sort_entites.
4068 Callers changed.
4069
4070 2009-05-18 Kenichi Handa <handa@m17n.org>
4071
4072 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
4073
4074 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
4075
4076 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
4077 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
4078
4079 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4080
4081 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
4082 (x_delete_terminal): Dissociate resource database from display and
4083 then call XrmDestroyDatabase before closing display.
4084
4085 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4086
4087 * nsterm.m (ns_read_socket): Remove unused variable.
4088 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
4089 whether selected frame is viable before raising it (based on patch
4090 by David Reitter), and improve commentary.
4091 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
4092
4093 2009-05-15 Kenichi Handa <handa@m17n.org>
4094
4095 * font.c (Ffont_spec): Check arguments.
4096
4097 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
4098
4099 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
4100 weight when testing attributes (Bug#3282).
4101
4102 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4103
4104 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
4105 what we expect to get in the next ConfigureNotify event.
4106
4107 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
4108 before Xft one (Bug#1696).
4109
4110 2009-05-07 David Reitter <david.reitter@gmail.com>
4111
4112 * nsfns.m (Fx_display_planes): Compute bitplanes using
4113 NSBitsPerPixelFromDepth (Bug#3207).
4114
4115 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
4116
4117 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
4118
4119 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
4120
4121 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
4122
4123 2009-05-07 David Reitter <david.reitter@gmail.com>
4124
4125 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
4126 Respect mouse face background.
4127
4128 2009-05-07 David Reitter <david.reitter@gmail.com>
4129
4130 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
4131 Mouse movement/highlight: bracket drawing operations
4132 in ns_update_begin and ns_update_end.
4133
4134 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4135
4136 * nsfns.m (ns_get_screen): Rewrite.
4137 Don't presume selected-frame is of type `ns'.
4138
4139 * font.c (font_update_drivers): Sanity fallback to avoid disabling
4140 all drivers.
4141
4142 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
4143
4144 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4145
4146 * keyboard.h (add_user_signal): Fix typo in extern.
4147
4148 * lisp.h (add_user_signal): Remove extern.
4149
4150 * unexelf.c (unexec): Consider a section to precede the .bss section
4151 if its addresses overlap that of .bss.
4152 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
4153 instead of dumping process.
4154
4155 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4156
4157 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
4158
4159 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4160
4161 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
4162
4163 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4164
4165 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
4166 any statements.
4167
4168 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
4169
4170 * process.c (read_process_output): Make sure the current buffer is
4171 always restored.
4172
4173 * coding.c (record_conversion_result): Don't modify
4174 Vlast_code_conversion_error for successful result.
4175 (alloc_destination): Don't clobber conversion result. (Bug#1650)
4176
4177 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4178
4179 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
4180 (load_charset_map): Remove unnecessary code.
4181
4182 2009-04-30 David Reitter <david.reitter@gmail.com>
4183
4184 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4185 through f24.
4186
4187 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
4188
4189 * xfaces.c (face_at_buffer_position): New arg base_face_id.
4190
4191 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
4192 face_at_buffer_position.
4193 (face_before_or_after_it_pos, get_next_display_element)
4194 (note_mouse_highlight): Update face_at_buffer_position call.
4195
4196 * term.c (term_mouse_highlight):
4197 * msdos.c (IT_note_mouse_highlight):
4198 * fontset.c (Finternal_char_font):
4199 * font.c (font_at, font_range): Update face_at_buffer_position call.
4200
4201 * dispextern.h (face_at_buffer_position): Update prototype.
4202
4203 2009-04-30 Kenichi Handa <handa@m17n.org>
4204
4205 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
4206
4207 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
4208
4209 * callproc.c (Fcall_process): Fix GC protection. Make sure
4210 current buffer is always restored.
4211
4212 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4213
4214 * atimer.c (init_atimer): Also clear stopped_atimers.
4215
4216 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
4217
4218 * process.c (create_process): Clean up merger residues of
4219 2008-07-17 change.
4220
4221 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
4222
4223 * lread.c (Vread_circle): New variable.
4224 (read1): Disable recursive read if Vread_circle is nil.
4225
4226 2009-04-29 Kenichi Handa <handa@m17n.org>
4227
4228 * fontset.h (set_default_ascii_font): Delete extern.
4229
4230 * fontset.c (set_default_ascii_font): Delete this unused function.
4231
4232 * frame.c (x_set_font): When ARG is a font-object, check if the
4233 font-object matches with the ASCII font-spec of the frame's
4234 fontset. If not, create a new fontset for the frame. (Bug #3075)
4235
4236 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
4237
4238 * fns.c (Flocale_info): Protect vector from GC during decoding.
4239
4240 * process.c (Fstart_process): Protect argv strings from GC during
4241 encoding.
4242
4243 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
4244
4245 * sysdep.c: Include <ctype.h>.
4246
4247 2009-04-27 David Reitter <david.reitter@gmail.com>
4248
4249 * nsfont.m (nsfont_open): Remove unused variable shrink.
4250 Remove commented-out code.
4251
4252 2009-04-26 Johan Bockgård <bojohan@gnu.org>
4253
4254 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4255
4256 2009-04-25 Jason Rumney <jasonr@gnu.org>
4257
4258 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
4259
4260 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4261
4262 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
4263 Swap bytes in short integer if fringe bitmap width > 8.
4264
4265 2009-04-23 Kenichi Handa <handa@m17n.org>
4266
4267 * xfaces.c (Fx_list_fonts): If a font size is specified in
4268 PATTERN, set it in returned scalable fonts.
4269
4270 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
4271
4272 * keyboard.c (Fset_input_meta_mode): Doc fix.
4273
4274 * dispnew.c (Fsend_string_to_terminal): Doc fix.
4275
4276 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
4277
4278 * coding.c (Fterminal_coding_system): Doc fix.
4279
4280 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
4281 (Fx_display_pixel_height, Fx_display_planes)
4282 (Fx_display_color_cells, Fx_server_max_request_size)
4283 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4284 (Fx_display_mm_height, Fx_display_mm_width)
4285 (Fx_display_backing_store, Fx_display_visual_class)
4286 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
4287 Doc fixes, replacing "terminal id" with "terminal object".
4288 (check_x_display_info): Handle terminal objects instead of
4289 terminal ids.
4290
4291 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
4292 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
4293 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
4294 Doc fixes, replacing "terminal id" with "terminal object".
4295
4296 2009-04-21 Kenichi Handa <handa@m17n.org>
4297
4298 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
4299 (font_score): Check AVGWIDTH too.
4300
4301 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
4302 worst case.
4303 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
4304 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
4305
4306 2009-04-19 Jason Rumney <jasonr@gnu.org>
4307
4308 The following changes fix Bug#3005 for wide glyphs on each platform,
4309 without reintroducing Bug#1258 for stretch glyphs.
4310
4311 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
4312 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
4313 get_phys_cursor_geometry.
4314
4315 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
4316 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
4317 using get_phys_cursor_geometry.
4318
4319 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
4320 correctly calculated.
4321
4322 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
4323
4324 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
4325 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
4326 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
4327 is deprecated.
4328
4329 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
4330
4331 * font.c (font_put_frame_data): Use xfree instead of free.
4332
4333 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
4334
4335 * w32font.c (Qja, Qko): Remove declarations.
4336 (syms_of_w32font): Don't DEFSYM them.
4337
4338 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
4339
4340 * font.c (Qja, Qko): Move definitions here from ftfont.c.
4341
4342 * font.h (Qja, Qko): Extern them.
4343
4344 * ftfont.c (Qja, Qko): Remove declarations.
4345
4346 * xfont.c (Qja, Qko): Remove declarations.
4347
4348 2009-04-17 Kenichi Handa <handa@m17n.org>
4349
4350 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4351 string from a vector to handle Latin-1 characters correctly.
4352
4353 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4354 entity even if the cache hits.
4355
4356 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
4357
4358 * search.c (boyer_moore): Use zero as marker value for a possible
4359 match instead of depending on overflow behavior. (Bug#2844)
4360
4361 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4362 * lisp.h: Adjust prototypes.
4363
4364 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
4365
4366 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4367 change (Bug#3003).
4368
4369 2009-04-16 Kenichi Handa <handa@m17n.org>
4370
4371 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
4372
4373 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4374 adstyle.
4375
4376 * ftfont.c (Qja, Qko): Don't make them static.
4377 (enum ftfont_cache_for): New enum.
4378 (fc_charset_table): Undo the previous change.
4379 (ftfont_get_latin1_charset): Delete it.
4380 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4381 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
4382 non-scarable font, try to get AVERAGE_WIDTH.
4383 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4384 Change ft_face_cache from a list of a hash-table. Don't check
4385 `ja' and `ko' adstyle here.
4386 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4387 FTFONT_CACHE_FOR_CHARET.
4388 (ftfont_get_charset): Undo the previous change.
4389 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
4390 (ftfont_close): Likewise.
4391 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4392
4393 * font.c (font_sort_entites): Change the meaning of the arg
4394 BEST-ONLY. Don't optimize for VEC of lenght 1.
4395 (font_select_entity): Just return the value of font_sort_entites.
4396
4397 * xfaces.c (merge_face_vectors): Reflect font properties in
4398 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4399 font_clear_prop if a face attribute doesn't change.
4400
4401 * charset.h (charset_ksc5601): Extern it.
4402
4403 * charset.c (charset_ksc5601): New variable.
4404 (Fdefine_charset_internal): Set charset_ksc5601.
4405 (init_charset_once): Initialize charset_ksc5601 to -1.
4406
4407 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4408
4409 * fileio.c (history_delete_duplicates): Remove unused declaration.
4410
4411 * callint.c (history_delete_duplicates): New declaration.
4412 (Fcall_interactively): Remove command history duplicates when
4413 history_delete_duplicates is true.
4414
4415 2009-04-14 Eli Zaretskii <eliz@gnu.org>
4416
4417 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4418
4419 2009-04-14 Kenichi Handa <handa@m17n.org>
4420
4421 * font.c (Ffont_info): Fix docstring. Fix the second element of
4422 the returned value (bug#2949).
4423
4424 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
4425
4426 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4427
4428 2009-04-14 Kenichi Handa <handa@m17n.org>
4429
4430 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4431 encoding charset is ascii_compatible.
4432
4433 * charset.c (Fdefine_charset_internal): Make charset
4434 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4435 code_offset is 0, and covers all ASCII characters.
4436
4437 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4438
4439 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4440 (ns_string_to_pasteboard_internal):
4441 * nsmenu.m (process_dialog):
4442 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4443 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4444 * lisp.h (Fx_load_color_file): Declare.
4445
4446 2009-04-13 Kenichi Handa <handa@m17n.org>
4447
4448 * font.c (font_delete_unmatched): Preserve the order of list elements.
4449 (font_select_entity): Suppress the code to optimize for the same
4450 kind of fonts.
4451 (font_load_for_lface): Get a font that supports at least ASCII
4452 characters.
4453
4454 * ftfont.c (Qja, Qko): New variables.
4455 (fc_charset_table): Delete uniquifier data for iso8859-1.
4456 (ftfont_get_latin1_charset): New function.
4457 (get_adstyle_property): New function.
4458 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4459 bitmap fonts.
4460 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4461 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4462 `ko' or `ja'.
4463 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
4464 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
4465 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4466 property.
4467 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4468 (syms_of_ftfont): DEFSYM Qja and Qko.
4469
4470 2009-04-09 Kenichi Handa <handa@m17n.org>
4471
4472 * charset.c (map_charset_chars): For a charset of `superset'
4473 method, fix calculation of code range.
4474
4475 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4476 from the list of extra properties.
4477 (font_clear_prop): Be sure to delete `:name' font property.
4478
4479 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4480
4481 * dispnew.c (redraw_overlapping_rows): Fix detection of
4482 overlapping for topmost and bottommost rows.
4483
4484 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
4485
4486 2009-04-06 Jason Rumney <jasonr@gnu.org>
4487
4488 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4489
4490 2009-04-06 Kenichi Handa <handa@m17n.org>
4491
4492 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4493
4494 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4495
4496 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4497
4498 * ftfont.c (ftfont_open): Fix checking of the return value of
4499 FT_Load_Char. Fix setting font->underline_thickness.
4500
4501 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
4502
4503 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4504 (Fterminal_parameters, Fterminal_parameter)
4505 (Fset_terminal_parameter): In doc string, refer to terminal
4506 objects rather than terminal ids.
4507
4508 2009-04-04 Eli Zaretskii <eliz@gnu.org>
4509
4510 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4511 ret_lim_data. (Bug#2867)
4512
4513 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
4514
4515 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4516 so they don't get wider than the window, matching 2006-01-23
4517 change to the partner function in xdisp.c (Bug#2800).
4518
4519 2009-04-03 Kenichi Handa <handa@m17n.org>
4520
4521 * print.c (print_object): Make each lowest sub_char_table start a
4522 new line (Bug#2866).
4523
4524 2009-04-02 Kenichi Handa <handa@m17n.org>
4525
4526 * fontset.c (fontset_font): Record no-font when a fontset
4527 explicitly tells not to try another font-specs.
4528
4529 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4530
4531 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4532
4533 2009-03-30 Kenichi Handa <handa@m17n.org>
4534
4535 * fontset.c (fontset_from_font): Specify only registry in a
4536 font-spec for all characters supported by that registry.
4537
4538 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4539 even if HAVE_M17N_FLT is not defined.
4540
4541 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4542
4543 * ftfont.c: Conditionalize prototyping and use of
4544 ftfont_variation_glyphs.
4545
4546 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4547
4548 * frame.c (delete_frame): Work around compiler bug.
4549
4550 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4551 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4552 Some more EMACS_INT.
4553 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4554
4555 * xdisp.c (dump_glyph): Fix typo.
4556
4557 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4558 (adjust_markers_gap_motion, adjust_markers_for_delete)
4559 (adjust_markers_for_insert, adjust_point)
4560 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4561 (make_gap, copy_text, count_size_as_multibyte, insert)
4562 (insert_and_inherit, insert_before_markers)
4563 (insert_before_markers_and_inherit, insert_1)
4564 (count_combining_before, count_combining_after, insert_1_both)
4565 (insert_from_string, insert_from_string_before_markers)
4566 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4567 (insert_from_buffer_1, adjust_after_replace)
4568 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4569 (replace_range_2, del_range, del_range_1, del_range_byte)
4570 (del_range_both, del_range_2, modify_region)
4571 (prepare_to_modify_buffer, signal_before_change)
4572 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4573 for buffer positions and sizes.
4574 * lisp.h: Adjust prototypes accordingly.
4575
4576 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4577 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4578 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4579
4580 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4581
4582 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4583
4584 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4585 lines and columns so we keep the same pixel height and width.
4586
4587 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4588 the property _NET_WM_STATE has changed.
4589 (x_handle_net_wm_state): New function to update frame parameter
4590 fullscreen.
4591 (x_term_init): Initialize atoms for _NET_WM_STATE.
4592
4593 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4594
4595 2009-03-27 Kevin Ryde <user42@zip.com.au>
4596
4597 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4598 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4599 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4600 (Fgpm_mouse_stop): Pass that new parameter.
4601 * termhooks.h (close_gpm): Adjust prototype.
4602
4603 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4604
4605 * lisp.h (Fx_focus_frame): Declare.
4606
4607 * callint.c (Fcall_interactively): For '^' just delegate the work to
4608 handle-shift-selection.
4609 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4610
4611 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
4612
4613 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4614
4615 * data.c (Qinteractive_form): New variable.
4616 (Finteractive_form): Use it.
4617
4618 * eval.c (Fcommandp): Use Qinteractive_form.
4619
4620 2009-03-24 Jason Rumney <jasonr@gnu.org>
4621
4622 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4623 Calculate total size precisely. Decode environment variables
4624 before substituting. (Bug#38)
4625
4626 2009-03-24 Kenichi Handa <handa@m17n.org>
4627
4628 * font.c (find_font_encoding): Return Qnil for unsupported
4629 encoding (Bug#2722).
4630
4631 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4632
4633 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4634 that gdpy is set.
4635
4636 2009-03-22 Alan Mackenzie <acm@muc.de>
4637
4638 * callint.c (Finteractive): Clarify the doc string - even
4639 promptless elements need \n separators.
4640
4641 2009-03-22 Jason Rumney <jasonr@gnu.org>
4642
4643 * w32term.c (syms_of_w32term): Doc fix for
4644 x-use-underline-position-properties.
4645
4646 2009-03-21 Eli Zaretskii <eliz@gnu.org>
4647
4648 * w32.c (getpwuid): Change argument type to unsigned.
4649 (struct w32_id): Change type of `rid' member to unsigned.
4650 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4651 argument ID to unsigned. All callers changed.
4652 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4653
4654 2009-03-20 Eli Zaretskii <eliz@gnu.org>
4655
4656 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4657 negative, produce a float value.
4658
4659 * dired.c (make_uid, make_gid): New functions.
4660 (Ffile_attributes): Use them to avoid negative UID and GID.
4661
4662 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
4663
4664 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4665 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4666 Fix typos in docstrings.
4667
4668 2009-03-19 Kenichi Handa <handa@m17n.org>
4669
4670 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
4671 changed, use font_load_for_lface to get a new font object.
4672 Call free_realized_fontset after handling ASCII font change.
4673
4674 * frame.c (x_set_font): Handle the case that ARG is a cons.
4675
4676 2009-03-19 Glenn Morris <rgm@gnu.org>
4677
4678 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4679
4680 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
4681
4682 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4683
4684 2009-03-19 Kenichi Handa <handa@m17n.org>
4685
4686 * charset.c (load_charset_map_from_file): When a mapfile can't be
4687 loaded, signal an error.
4688
4689 2009-03-18 Eli Zaretskii <eliz@gnu.org>
4690
4691 * dired.c (Ffile_attributes): Make sure UID and GID are always
4692 positive, even if the value is too large for a positive EMACS_INT.
4693 Doc fix.
4694
4695 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4696
4697 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4698
4699 * xmenu.c (xdialog_show): Move Fredisplay call ...
4700 (Fx_popup_dialog): ... here.
4701
4702 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4703
4704 * dired.c (file_name_completion): Disable the first optimization just
4705 installed, since it is not implemented correctly.
4706
4707 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4708
4709 * dired.c (file_name_completion): Check completion-ignored-extensions
4710 only if the entry can affect bestmatch.
4711 Stop the search early, as Ftry_completion already does.
4712
4713 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
4714
4715 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
4716
4717 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
4718
4719 * keyboard.c (parse_menu_item): Don't display remappings as menu
4720 equivalent bindings (Bug#788).
4721
4722 2009-03-15 Jason Rumney <jasonr@gnu.org>
4723
4724 * w32term.h (WM_EMACS_PAINT): New message.
4725 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4726 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4727 before passing to lisp thread. (Bug#950)
4728
4729 2009-03-14 David Reitter <david.reitter@gmail.com>
4730
4731 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4732 variable as it was never reset.
4733 (ns_term_init): Remove initialization of Lisp-settable defaults
4734 and ns_expand_space.
4735 (-setPanelFromDefaultValues): Remove ns_expand_space.
4736 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4737 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
4738 i.e. no additional spacing, similar to Carbon port.
4739
4740 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4741 * nsfns.m (ns-popup-prefs-panel): Remove.
4742
4743 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4744
4745 * sound.c (alsa_configure): Remove call to deprecated
4746 snd_pcm_sw_params_set_xfer_align.
4747
4748 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
4749
4750 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4751 after clicking in a detached tool bar.
4752 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4753
4754 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4755
4756 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4757 int/Lisp_Object mixup).
4758
4759 2009-03-13 Kenichi Handa <handa@m17n.org>
4760
4761 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
4762 Handle NAME nil and t correctly. Callers changed.
4763 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4764 (set_fontset_font): Change ARG to a vector. Handle range_list in
4765 ARG correctly.
4766 (Fset_fontset_font): Fix the case that TARGET is both a script
4767 name and charset name. Adjust the arg to set_fontset_font for
4768 the above change.
4769 (fontset_from_font): Fix previous change.
4770 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
4771 entry. If FONTSET is the default fontset, don't set the extra
4772 slot of the returning char-table.
4773
4774 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
4775
4776 * nsfns.m (Fx_close_connection): Doc fix.
4777 (Fns_do_applescript): Reflow docstring.
4778 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4779 (Fx_display_pixel_width, Fx_display_pixel_height)
4780 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4781 Fix typos in docstrings.
4782 (Fns_set_alpha): Fix typos in error messages.
4783
4784 2009-03-12 David Reitter <david.reitter@gmail.com>
4785
4786 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
4787 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4788 were used for such events.
4789
4790 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4791 (toggleToolbar, performDragOperation, runHelp): Use it.
4792
4793 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
4794 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4795
4796 2009-03-11 Kenichi Handa <handa@m17n.org>
4797
4798 * font.h (font_open_by_spec): Extern it.
4799
4800 * font.c (font_open_by_spec): New function.
4801 (font_open_by_name): Use font_open_by_spec.
4802
4803 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4804 fontset of the frame.
4805
4806 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4807 modify the default font of frames that use this fontset.
4808 (num_auto_fontsets): New variable.
4809 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4810 name. Be sure to set FONTSET_ASCII to the correct font name.
4811 (update_auto_fontset_alist): New function.
4812
4813 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
4814
4815 * makefile.w32-in: Update dependencies.
4816
4817 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4818
4819 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4820
4821 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4822
4823 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4824
4825 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
4826
4827 * lread.c (Feval_buffer): Doc fix.
4828
4829 2009-03-09 Kenichi Handa <handa@m17n.org>
4830
4831 * charset.c (Qfile_name_handler_alist): Extern it.
4832 (load_charset_map_from_file): Temporarily bind
4833 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4834
4835 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
4836
4837 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4838 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
4839
4840 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4841
4842 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4843 (x_set_window_size): Change back to calculated method of setting
4844 toolbar height under Cocoa. (Bug#2546)
4845 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4846 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4847
4848 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4849
4850 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4851 accelerator in parens under GNUstep.
4852
4853 2009-03-06 Kenichi Handa <handa@m17n.org>
4854
4855 These changes are to detect incorrect composition sequence without
4856 looking ahead the source. (Bug#2370)
4857
4858 * coding.h: Include "composite.h".
4859 (enum compisition_state): New enum.
4860 (struct compisition_status): New struct.
4861 (struct iso_2022_spec): New member cmp_status.
4862 (struct emacs_mule_spec): New struct.
4863 (struct coding_system): New members ctext_extended_segment_len and
4864 embedded_utf_8. Change the union member
4865 spec.emacs_mule_full_support to spec.emacs_mule.
4866
4867 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4868 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
4869 (MAX_ANNOTATION_LENGTH): Define to 5.
4870 (ADD_COMPOSITION_DATA): New arg nbytes.
4871 (emacs_mule_char): New arg cmp_status.
4872 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4873 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4874 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4875 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4876 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4877 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4878 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4879 (EMACS_MULE_COMPOSITION_END): New macro.
4880 (emacs_mule_finish_composition): New function.
4881 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4882 (decode_coding_emacs_mule): Avoid long looking ahead while
4883 handling composition.
4884 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4885 (ENCODE_COMPOSITION_RULE): New macro.
4886 (finish_composition): New function.
4887 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4888 (DECODE_COMPOSITION_START): New implementation.
4889 (DECODE_COMPOSITION_END): Likewise.
4890 (STORE_COMPOSITION_RULE): New macro.
4891 (decode_coding_iso_2022): Avoid long looking ahead while handling
4892 composition, CTEXT extended segment, and embedded UTF-8.
4893 (setup_coding_system): For a coding of type iso-2022, reset
4894 CODING_ISO_EXTSEGMENT_LEN (coding) and
4895 CODING_ISO_EMBEDDED_UTF_8 (coding).
4896 (get_translation): Delete arguments last_block, from_nchars,
4897 to_nchars. Callers changed.
4898 (produce_chars): Don't modify charbuf. Adjusted for the change of
4899 get_translation.
4900 (produce_composition): Adjust for the new annotation sequence.
4901 (handle_composition_annotation): Likewise.
4902 (consume_chars): Adjust for the change of get_translation.
4903
4904 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4905
4906 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
4907
4908 2009-03-05 Kenichi Handa <handa@m17n.org>
4909
4910 * font.c (font_select_entity): New function.
4911 (font_find_for_lface): Use font_select_entity to select a font.
4912
4913 * fontset.c (fontset_find_font): If a font found without
4914 restricting to the characters C doesn't support C, try to find a
4915 font with C restriction.
4916
4917 2009-03-04 Nikolaj Schumacher <me@nschum.de>
4918
4919 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
4920
4921 2009-03-04 Jason Rumney <jasonr@gnu.org>
4922
4923 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4924 characters that have already been read. (Bug#2569)
4925
4926 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4927 Log an error message if check_image_size failed.
4928 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4929 (gs_load): Mention max-image-size in size error message. (Bug#2560)
4930
4931 2009-03-02 Eli Zaretskii <eliz@gnu.org>
4932
4933 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4934 when decoding process output.
4935
4936 2009-03-01 Richard M Stallman <rms@gnu.org>
4937
4938 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4939
4940 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4941
4942 2009-02-28 Eli Zaretskii <eliz@gnu.org>
4943
4944 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4945 (decode_coding_emacs_mule, decode_coding_iso_2022)
4946 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4947 (decode_coding_raw_text, decode_coding_charset)
4948 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4949 Honor inhibit-eol-conversion. (Bug #2186)
4950
4951 2009-02-28 Jason Rumney <jasonr@gnu.org>
4952
4953 * coding.c (detect_coding_charset): If not checking latin extra,
4954 fail on characters between 0x80 and 0xA0. (Bug#2354)
4955
4956 2009-02-28 Eli Zaretskii <eliz@gnu.org>
4957
4958 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
4959 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
4960
4961 2009-02-27 Glenn Morris <rgm@gnu.org>
4962
4963 * callint.c (Finteractive): Doc fix.
4964
4965 2009-02-27 Kenichi Handa <handa@m17n.org>
4966
4967 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4968
4969 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
4970
4971 * font.c (font_style_to_value): Set value for unknown symbols to
4972 100 instead of 255.
4973 (weight_table, slant_table, width_table): Treat "unspecified" as
4974 the default value.
4975
4976 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
4977
4978 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4979
4980 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
4981
4982 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4983 error as soon as a recursive load is detected.
4984
4985 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4986
4987 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4988 before caching.
4989
4990 2009-02-24 Kenichi Handa <handa@m17n.org>
4991
4992 * fontset.c (fontset_find_font): Fix the condition for checking
4993 unavailable font.
4994
4995 2009-02-24 Glenn Morris <rgm@gnu.org>
4996
4997 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4998 whitespace that confuses documentation.
4999
5000 2009-02-23 Miles Bader <miles@gnu.org>
5001
5002 * process.c (Flist_system_processes, Fprocess_attributes)
5003 (syms_of_process): Rename `system-process-attributes' to
5004 `process-attributes'.
5005
5006 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
5007
5008 * coding.h (struct coding_system): Make safe_charsets a pointer to
5009 unsigned char.
5010 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
5011 being 255.
5012 (SAFE_CHARSET_P): Likewise.
5013 (setup_iso_safe_charsets): Properly setup safe_charsets.
5014 (Fdefine_coding_system_internal): Likewise.
5015 (setup_coding_system): Likewise. Remove unneeded casts.
5016 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
5017 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
5018 unneeded casts.
5019
5020 * insdel.c (del_range_2): Don't modify gap contents when called
5021 from decode_coding_object. (Bug#1809)
5022
5023 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
5024
5025 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
5026 Qfont_object.
5027 (Ftype_of): Recognize font objects.
5028
5029 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
5030
5031 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
5032 moved to data.c.
5033
5034 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5035
5036 * nsterm.m (x_make_frame_invisible): Unset async_visible,
5037 async_iconified. Based on a patch by Christian Lynbech
5038 <christian.lynbech@tieto.com>.
5039 (EmacsView-windowDidMiniaturize:): Unset async_visible.
5040
5041 2009-02-20 Glenn Morris <rgm@gnu.org>
5042
5043 * syntax.c (Fskip_chars_forward): Fix doc typo.
5044
5045 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
5046
5047 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
5048
5049 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
5050
5051 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
5052
5053 2009-02-19 Kenichi Handa <handa@m17n.org>
5054
5055 * coding.c (detect_coding): Preserve coding->mode.
5056 Don't overflow coding->carryover. (Bug#2370)
5057
5058 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
5059
5060 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
5061
5062 2009-02-18 Kenichi Handa <handa@m17n.org>
5063
5064 * font.c (font_check_otf_features): Fix handling of `nil' element.
5065 (Ffont_spec): Describe :lang and :otf in the docstring.
5066
5067 2009-02-16 Andreas Schwab <schwab@suse.de>
5068
5069 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
5070 string.
5071
5072 2009-02-16 Kenichi Handa <handa@m17n.org>
5073
5074 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
5075 (Bug#1723)
5076
5077 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
5078
5079 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
5080
5081 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
5082 (handle_line_prefix): Suppress wrapping of wrap prefixes.
5083
5084 2009-02-14 Eli Zaretskii <eliz@gnu.org>
5085
5086 * msdos.c (MAX_SCREEN_BUF): New macro.
5087 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
5088 Encode the entire run of glyphs sharing the same face, instead of
5089 doing that one glyph at a time (fixes a bug with displaying
5090 double-size characters).
5091
5092 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
5093
5094 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
5095
5096 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
5097 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
5098 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
5099
5100 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
5101 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
5102
5103 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
5104
5105 * keyboard.c (adjust_point_for_property): Allow stopping between two
5106 invisible areas.
5107
5108 2009-02-12 Jason Rumney <jasonr@gnu.org>
5109
5110 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
5111 (add_font_entity_to_list): Call check_face_name even when family
5112 is unspecified.
5113
5114 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5115 Release DC when finished. Use NULL window to refer to desktop.
5116 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
5117
5118 * w32font.c (add_font_entity_to_list): Fix check for substituted
5119 raster fonts. (Bug#2219)
5120
5121 2009-02-12 Kenichi Handa <handa@m17n.org>
5122
5123 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
5124 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
5125 (autocmp_chars): Use fast_looking_at. Don't compose more
5126 characters than MAX_COMPOSITION_COMPONENTS.
5127 (find_automatic_composition): While looking forward and backward,
5128 check static composition. Fix where to stop looking forward.
5129 (composition_adjust_point): Fix checking of static composition.
5130 (Fcomposition_get_gstring): Pay attention to
5131 MAX_COMPOSITION_COMPONENTS.
5132
5133 * lisp.h (fast_looking_at): Extern it.
5134
5135 * search.c (fast_looking_at): New function.
5136
5137 * term.c (encode_terminal_code): Adjust for the change of
5138 <struct glyph>.u.cmp.to.
5139 (append_composite_glyph): Likewise.
5140
5141 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
5142 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
5143 composition.
5144 (append_composite_glyph): Adjust for the change of
5145 <strcut glyph>.u.cmp.to.
5146
5147 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
5148
5149 * casetab.c (init_casetab_once):
5150 * coding.c (ALLOC_CONVERSION_WORK_AREA):
5151 * font.c (font_update_lface):
5152 * fontset.c (Fnew_fontset):
5153 * ftfont.c (ftfont_drive_otf):
5154 * xfont.c (xfont_open):
5155 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
5156
5157 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5158
5159 * fileio.c (Fwrite_region): !NILP -> CONSP.
5160
5161 2009-02-10 Andreas Schwab <schwab@suse.de>
5162
5163 * process.c (send_process): Properly relocate pointer into data
5164 when using encoded data. (Bug#2272)
5165
5166 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
5167
5168 * coding.c (detect_coding_charset): Fix previous change.
5169
5170 2009-02-08 Jason Rumney <jasonr@gnu.org>
5171
5172 * w32fns.c (w32_hide_hourglass): Handle case where frame
5173 disappeared while hourglass was displayed. (Bug #2193)
5174
5175 2009-02-07 Andreas Schwab <schwab@suse.de>
5176
5177 * unexelf.c (unexec): Fix error message.
5178
5179 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
5180
5181 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
5182 when modal window is active. (Bug #2152)
5183 (applicationShouldTerminate:): Remove now-unneeded while loop
5184 around NSRunAlertPanel.
5185
5186 * nsmenu.m (popupSession): New file-global variable.
5187 (pop_down_menu): End the popupSession before closing dialog.
5188 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
5189 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
5190 don't query NSApp for events (just sleep instead).
5191
5192 2009-02-07 Eli Zaretskii <eliz@gnu.org>
5193
5194 * coding.c (syms_of_coding) <translation-table-for-input>:
5195 Modify doc string to discourage use for character code unification.
5196
5197 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5198
5199 * atimer.c (run_timers): Update pending_atimers.
5200
5201 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
5202
5203 * image.c (svg_load_image): Fix last change.
5204
5205 * xfns.c (Fx_create_frame): Signal an error if no font is
5206 found (Bug#2147).
5207
5208 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
5209
5210 * character.c (syms_of_character) <script-representative-chars>:
5211 Fix typo in docstring.
5212
5213 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5214
5215 * nsmenu.m (pop_down_menu): New function.
5216 (ns_popup_dialog): Call it on unwind.
5217 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
5218 call timer_check() (Bug#2154).
5219 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
5220 handling_signal is set.
5221 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
5222
5223 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
5224
5225 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
5226
5227 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
5228
5229 * keyboard.c (poll_for_input_1, handle_async_input):
5230 Set handling_signal under HAVE_NS.
5231
5232 2009-02-04 Glenn Morris <rgm@gnu.org>
5233
5234 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
5235
5236 2009-02-04 Kenichi Handa <handa@m17n.org>
5237
5238 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
5239
5240 * charset.c (Fchar_charset): New optional arg restriction.
5241
5242 * coding.h (coding_system_charset_list): Extern it.
5243
5244 * coding.c (coding_system_charset_list): New function.
5245
5246 * composite.c: Include coding.h and termhooks.h.
5247 (composition_gstring_p): Fix for the terminal case.
5248 (composition_gstring_width): Likewise.
5249 (fill_gstring_body): Likewise.
5250 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
5251 the frame.
5252 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
5253 is within a composition.
5254 (Fcomposition_get_gstring): Fix the terminal case.
5255
5256 * term.c (encode_terminal_code): Fix handling of composition.
5257 (produce_composite_glyph): For static composition, get pixel_width
5258 from struct composition.
5259
5260 2009-02-02 Andreas Schwab <schwab@suse.de>
5261
5262 * unexelf.c (unexec): Handle unaligned bss offset.
5263
5264 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5265
5266 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
5267 XT,w32read_socket changes to ns_read_socket.
5268
5269 * keyboard.c (handle_interrupt): Don't call
5270 quit_throw_to_read_char() under NS.
5271
5272 * blockinput.h: Remove NS-specific code.
5273
5274 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
5275
5276 * dispnew.c (window_change_signal): Don't try to get the size of a
5277 suspended tty frame.
5278 * term.c (Fresume_tty): Resize if the size has changed while the
5279 tty was suspended.
5280
5281 * alloc.c (mark_stack): Properly conditionalize previous change.
5282
5283 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
5284
5285 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
5286 * w32term.c (w32_read_socket) [SYNC_INPUT]:
5287 Remove; this code is not used on Windows.
5288
5289 2009-01-30 Eli Zaretskii <eliz@gnu.org>
5290
5291 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
5292 EOLs that also has stray ^M characters.
5293
5294 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
5295
5296 * atimer.c (run_timers, alarm_signal_handler):
5297 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
5298 * w32inevt.c (w32_console_read_socket):
5299 * w32term.c (w32_read_socket):
5300 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
5301
5302 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
5303
5304 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
5305 Initialize it as a relative filename pattern.
5306 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
5307 (Fcall_process_region): Simplify temp file creation using
5308 temporary-file-directory.
5309
5310 2009-01-29 Eli Zaretskii <eliz@gnu.org>
5311
5312 * msdos.c: Rename pending_signals to msdos_pending_signals.
5313 (sig_suspender, sigprocmask): Adjust.
5314
5315 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
5316
5317 * keyboard.c (pending_signals): New var.
5318 (poll_for_input, input_available_signal, init_keyboard): Set it.
5319 (process_pending_signals): New function.
5320
5321 * lisp.h (QUIT): Check pending_signals instead of
5322 interrupt_input_pending. Use process_pending_signals.
5323
5324 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
5325
5326 * process.c (wait_reading_process_output): Use process_pending_signals.
5327
5328 * sysdep.c (emacs_write): Use process_pending_signals.
5329
5330 * xterm.c (XTread_socket): Update pending_signals.
5331
5332 * w32term.c (w32_read_socket): Update pending_signals.
5333
5334 * w32inevt.c (w32_console_read_socket): Update pending_signals.
5335
5336 2009-01-29 Kenichi Handa <handa@m17n.org>
5337
5338 * xftfont.c (xftfont_has_char): New function.
5339 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5340
5341 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5342
5343 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5344 under GNUstep.
5345 (ns_query_color): New declaration.
5346
5347 * nsterm.m (ns_confirm_quit): New variable.
5348 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5349 (EmacsApp-applicationShouldTerminate:): Use it.
5350 (EmacsPrefsController): Let user set it.
5351 (ns_query_color): New function.
5352 (ns_defined_color): Use it.
5353 (ns_initialize): Drop.
5354 (ns_term_init): Add two lines from ns_initialize(), and set
5355 input_interrupt_mode to nil.
5356
5357 * image.c (svg_load_image): Don't right-shift background RGB when
5358 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
5359
5360 2009-01-28 Kenichi Handa <handa@m17n.org>
5361
5362 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
5363 (fontset_get_font_group): Remember that no font-group is specified
5364 for C.
5365
5366 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
5367
5368 * fns.c (concat): Check for string overflow (bug#1787).
5369
5370 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5371 Quadruple undo limits (bug#1501).
5372
5373 2009-01-27 Kenichi Handa <handa@m17n.org>
5374
5375 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5376 directly use GT_Get_Char_index.
5377
5378 * xftfont.c (struct xftfont_info): New member `index'.
5379
5380 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
5381 (Ffontset_font): Adjust for the change of fontset entry.
5382
5383 2009-01-26 Kenichi Handa <handa@m17n.org>
5384
5385 * fontset.c (fontset_find_font): Fix handling of non-cons return
5386 value of fontset_get_font_group.
5387 (fontset_font): Revert last change.
5388
5389 2009-01-26 Jason Rumney <jasonr@gnu.org>
5390
5391 * w32font.c (w32font_list_internal): Return quickly if registry is
5392 unknown. Simplify final return.
5393 (add_font_entity_to_list): Break complex logic down into more
5394 manageable chunks. Move unknown registry check to
5395 w32font_list_internal.
5396
5397 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5398
5399 Changes to remove Feval calls from GUI under NS.
5400
5401 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5402 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
5403 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5404
5405 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5406 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5407 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5408 instead of NON_ASCII_KEYSTROKE_EVENT.
5409 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5410 (EmacsApp-applicationShouldTerminate:): Query user.
5411 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5412 instead of Feval.
5413
5414 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5415
5416 * keyboard.c (kbd_buffer_get_event): Check for it.
5417 (keys_of_keyboard): Define lispy keys for
5418 ns-put/unput-working-text.
5419
5420 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5421 versions.
5422 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5423
5424 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
5425
5426 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
5427 setting current_buffer directly. (Bug#2044)
5428
5429 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
5430
5431 * fontset.c (fontset_font): If we know there is no font, don't do
5432 any work. (Bug#1952, bug#1990).
5433
5434 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
5435
5436 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5437
5438 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
5439 (ns_no_defaults): New declaration.
5440 (main): Use it.
5441
5442 * nsterm.h (ns_no_defaults): New declaration.
5443
5444 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
5445
5446 * nsterm.m (ns_no_defaults): New variable.
5447 (ns_initialize): Don't read defaults when ns_no_defaults.
5448 (EmacsView-readSelectionFromPasteboard:)
5449 (writeSelectionToPasteboard:types:): New stubbed-out methods for
5450 NSServicesRequests protocol. (Bug#1435)
5451 (ns_dumpglyphs_stretch): New function.
5452 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
5453 of 2008-11-15 to other terms. (Bug#615)
5454
5455 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5456
5457 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5458
5459 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5460 call for Sparc64.
5461
5462 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5463
5464 * nsfns.m:
5465 * nsgui.h:
5466 * nsmenu.m:
5467 * nsselect.m:
5468 * nsterm.h:
5469 * nsterm.m: Remove '23' comments that indicated code added during
5470 update from emacs-20 -> emacs-23.
5471
5472 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5473
5474 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
5475 ns_alternate_modifier. (Bug#1217)
5476
5477 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5478 Display all shortcuts, including those w/o super modifier.
5479
5480 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5481
5482 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
5483
5484 * fileio.c (Vwrite_region_post_annotation_function)
5485 (Vwrite_region_annotation_buffers): New vars.
5486 (build_annotations_unwind): Just reset
5487 Vwrite_region_annotation_buffers.
5488 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5489 Call write-region-post-annotation-function.
5490 (build_annotations): Add to Vwrite_region_annotation_buffers if
5491 buffer changes.
5492
5493 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5494
5495 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5496 Tiger.
5497 * nsfns.m (ns_do_applescript):
5498 Conditionalize typeUTF16ExternalRepresentation on Tiger.
5499
5500 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5501
5502 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5503
5504 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5505
5506 * nsmenu.m (NSMENUPROFILE): Change #if style.
5507
5508 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5509
5510 * nsterm.m (x_set_frame_alpha): Add prototype.
5511 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5512 handle Ctrl-tab. (Bug#1841)
5513 (ns_get_color): Use unsigned long long for scanned hex string value.
5514 (ns_term_shutdown): Abort on non SIGTERM signals.
5515 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
5516 (EmacsPrefsController-setPanelFromDefaultValues): New function.
5517 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
5518 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
5519 (ns_defined_color): Fix settings of the XColor variable fields:
5520 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
5521
5522 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
5523 DPI. (Bug#1316)
5524 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5525 values in onTiger section.
5526
5527 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
5528
5529 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5530 Check return value of font_spec_from_name.
5531 (Fx_list_fonts): Doc fix. (Bug#1951)
5532
5533 * font.c (font_spec_from_name): Return Qnil if font name could not
5534 be parsed.
5535 (font_parse_name): Treat a `?' character as part of an XLFD.
5536
5537 * fns.c (Fsubstring): Doc fix.
5538
5539 2009-01-19 Kenichi Handa <handa@m17n.org>
5540
5541 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
5542 (ftfont_list): Likewise.
5543
5544 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
5545
5546 * dbusbind.c (Fdbus_register_signal):
5547 * process.c (conv_sockaddr_to_lisp):
5548 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5549
5550 * callproc.c (Fgetenv_internal): Doc fix.
5551
5552 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
5553
5554 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5555 it is not even used.
5556
5557 2009-01-16 Glenn Morris <rgm@gnu.org>
5558
5559 * font.c (Ffont_variation_glyphs): Silence compiler.
5560
5561 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
5562
5563 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5564 Reported by David Robinow <drobinow@gmail.com>.
5565
5566 2009-01-15 Kenichi Handa <handa@m17n.org>
5567
5568 * coding.c (detect_coding_system): Fix handling of null_byte_found.
5569
5570 2009-01-14 Jason Rumney <jasonr@gnu.org>
5571
5572 * frame.c (x_set_font): Always store a font to the font parameter,
5573 never a fontset. (Bug#1562)
5574
5575 2009-01-14 Kenichi Handa <handa@m17n.org>
5576
5577 * coding.c (TWO_MORE_BYTES): New macro.
5578 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
5579
5580 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
5581
5582 * font.c (font_clear_prop): If clearing the family, clear the font
5583 width index too.
5584
5585 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
5586
5587 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
5588
5589 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5590 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5591 functions, use sizeof.
5592
5593 2009-01-12 Martin Rudalics <rudalics@gmx.at>
5594
5595 * keyboard.c (read_char): Fix case where last_nonmenu_event
5596 returned a bad value with submenus. (Bug#447)
5597
5598 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
5599
5600 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5601 family, clear the font width index too.
5602
5603 2009-01-11 Jason Rumney <jasonr@gnu.org>
5604
5605 * keyboard.c (cmd_error_internal): Exit when errors occur before
5606 frame creation and not in daemon mode. (Bug#1836)
5607
5608 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
5609
5610 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5611 of a display vector, backtrack.
5612 (try_window_reusing_current_matrix): Check glyph type before
5613 referencing charpos member.
5614
5615 2009-01-10 Eli Zaretskii <eliz@gnu.org>
5616
5617 Fix Bug #876:
5618
5619 * coding.c (inhibit_null_byte_detection): New variable.
5620 (detect_coding, detect_coding_system): Don't pay attention to null
5621 bytes if inhibit_null_byte_detection is non-zero.
5622 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
5623 <inhibit-iso-escape-detection>: Doc fix.
5624
5625 2009-01-09 Jason Rumney <jasonr@gnu.org>
5626
5627 * w32font.c (add_font_entity_to_list): Don't report unknown
5628 Windows charset as any unrecognized registry. (Bug#1548)
5629 Only report Unicode Plane 2 fonts as unicode-sip.
5630
5631 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
5632
5633 * xfaces.c (Fx_font_family_list): Delete function.
5634 Move compatibility version to faces.el.
5635
5636 * font.c (Ffont_family_list): Return a list of strings, not symbols.
5637
5638 2009-01-09 Martin Rudalics <rudalics@gmx.at>
5639
5640 * frame.c (x_set_frame_parameters): Remember requested value for
5641 fullscreen before it's reset by the parameter handler.
5642
5643 2009-01-09 Glenn Morris <rgm@gnu.org>
5644
5645 * keyboard.c (last_command_char): For clarity, rename to...
5646 (last_command_event): ... and update all users.
5647 (last_input_char): For clarity, rename to...
5648 (last_input_event): ... and update all users.
5649 (last-command-char, last-input-char): Move to subr.el as aliases.
5650 * cmds.c, commands.h: Update for last_command_char rename.
5651
5652 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
5653
5654 * font.c (font_open_for_lface): Handle unspecified height attribute.
5655
5656 2009-01-08 Jason Rumney <jasonr@gnu.org>
5657
5658 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5659 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5660 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5661 Don't declare.
5662 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5663 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5664
5665 2009-01-07 Kenichi Handa <handa@m17n.org>
5666
5667 * fileio.c (Finsert_file_contents): In the case of replace,
5668 remember the coding system used for decoding in
5669 coding_system (Bug#1039).
5670
5671 * coding.c (decode_coding_utf_8): Check byte_after_cr before
5672 breaking the loop. (Bug#870)
5673 (decode_coding_utf_16, decode_coding_emacs_mule)
5674 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5675 (decode_coding_charset): Likewise.
5676
5677 2009-01-05 Martin Rudalics <rudalics@gmx.at>
5678
5679 * frame.c (x_set_frame_parameters): Make sure height (width) get
5680 applied when fullwidth (fullheight) is set. (Bug#1522)
5681
5682 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
5683
5684 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5685 (utc_base): Declare as ULONGLONG, not long double.
5686 (convert_time_raw): Delete.
5687 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5688 (initialize_utc_base): New function.
5689 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5690 (convert_from_time_t): Use initialize_utc_base; compute result with
5691 64-bit arithmetic.
5692 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5693
5694 2009-01-03 Eli Zaretskii <eliz@gnu.org>
5695
5696 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
5697 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5698 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5699 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5700 [!subprocesses]: Define.
5701 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5702 (Flist_system_processes, Fsystem_process_attributes)
5703 [!subprocesses]: Call list_system_processes and
5704 system_process_attributes instead of returning Qnil.
5705
5706 * dosfns.c (system_process_attributes, list_system_processes):
5707 New functions.
5708
5709 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5710
5711 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5712 Don't use the default (no-op) implementation.
5713
5714 2009-01-03 Jason Rumney <jasonr@gnu.org>
5715
5716 * keyboard.c (parse_modifiers_uncached): Wheel events are
5717 clicks (bug#687).
5718
5719 * w32term.c (x_query_colors, x_query_color): New functions.
5720
5721 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5722 (svg_load_image): Cast returned pointers from dynamically loaded
5723 functions. Eliminate W32 specific code.
5724
5725 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5726
5727 * nsfns.m (x_set_foreground_color, x_set_background_color)
5728 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5729 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5730 x_ prefix instead of ns_. Update references.
5731 (syms_of_nsfns): Add a FIXME comment.
5732
5733 * nsterm.m (x_set_cursor_type): New prototype.
5734 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5735
5736 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5737 for Solaris instead of incorrectly providing Qutime and Qcutime.
5738
5739 2009-01-02 Eli Zaretskii <eliz@gnu.org>
5740
5741 * w32.c (process_times): Compute sum of utime and stime.
5742 (system_process_attributes): Add Qtime to the alist.
5743
5744 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5745 and add them to the alist.
5746
5747 * process.c (top level) <Qtime, Qctime>: New variables.
5748 (syms_of_process): staticpro them.
5749 (Fsystem_process_attributes): Add their documentation to the doc
5750 string.
5751
5752 * process.h: Declare Qtime and Qctime.
5753
5754 2009-01-02 Jason Rumney <jasonr@gnu.org>
5755
5756 * image.c (Qgobject): New symbol.
5757 (syms_of_image): Initialize it.
5758 (init_svg_functions): Load some functions from gobject library.
5759
5760 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5761
5762 * frame.c (make_terminal_frame): Remove redundant code and useless
5763 block.
5764
5765 2009-01-01 Andreas Schwab <schwab@suse.de>
5766
5767 * process.c (conv_sockaddr_to_lisp): Add workaround for
5768 getsockname bug on BSD.
5769
5770 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
5771
5772 * xfns.c (x_create_tip_frame): Set border width of the X window.
5773
5774 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
5775
5776 2009-01-01 Jason Rumney <jasonr@gnu.org>
5777
5778 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
5779 Don't block input, as per earlier xterm.c changes.
5780
5781 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5782
5783 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5784 (ns_appkit_version_int): New function.
5785 (x-server-version): Use ns_appkit_version_int and follow 21+
5786 convention of returning 3 integers.
5787
5788 2008-12-30 Kenichi Handa <handa@m17n.org>
5789
5790 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5791 (CHAR_SURROGATE_PAIR_P): New macro.
5792
5793 * font.h (struct font_driver): New member get_variation_glyphs.
5794
5795 * font.c (font_range): Don't require a font for a variation selector.
5796 (Ffont_variation_glyphs): New function.
5797 (syms_of_font): Defsubr it.
5798
5799 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5800 ftfont_variation_glyphs.
5801 (setup_otf_gstring): New function.
5802 (ftfont_drive_otf): Use it.
5803 (ftfont_shape_by_flt): Handle variation selector.
5804 (ftfont_variation_glyphs): New function.
5805
5806 2008-12-30 Martin Rudalics <rudalics@gmx.at>
5807
5808 * frame.c (Vemacs_iconified): Remove.
5809
5810 2008-12-30 Jason Rumney <jasonr@gnu.org>
5811
5812 * frame.c (store_frame_param, x_get_arg): Enable newer code on
5813 WINDOWSNT too, as related changes have already been synced. (Bug#117)
5814
5815 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
5816
5817 * indent.c (Fvertical_motion): Don't advance iterator if we have
5818 reseated to the desired position.
5819
5820 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5821 checking for pos match.
5822
5823 2008-12-30 Kenichi Handa <handa@m17n.org>
5824
5825 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5826 just get the low 8-bit of the code.
5827
5828 * font.c (font_intern_prop): Validate str as multibyte.
5829
5830 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5831
5832 * dispextern.h (struct face): Move lface and hash from the middle
5833 of bitfields.
5834
5835 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5836
5837 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5838
5839 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5840 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5841 instead of intervals.h.
5842
5843 2008-12-26 Andreas Schwab <schwab@suse.de>
5844
5845 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5846 cons.
5847
5848 2008-12-26 Martin Rudalics <rudalics@gmx.at>
5849
5850 * textprop.c (Qminibuffer_prompt): New variable.
5851 (syms_of_textprop): Initialize it.
5852 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5853 in minibuffer-prompt face. (Bug#1662)
5854
5855 2008-12-25 Jason Rumney <jasonr@gnu.org>
5856
5857 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5858
5859 2008-12-24 Jason Rumney <jasonr@gnu.org>
5860
5861 * ralloc.c (r_alloc_reset_variable): New function.
5862
5863 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
5864 record of what points where. (Bug#716)
5865
5866 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5867
5868 * minibuf.c (read_minibuf): Follow the non-interactive case when
5869 running as a daemon, before detaching.
5870
5871 2008-12-22 Andreas Schwab <schwab@suse.de>
5872
5873 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5874 * gtkutil.c (free_widget_value): Use xfree instead of free.
5875
5876 2008-12-22 Martin Rudalics <rudalics@gmx.at>
5877
5878 * frame.c (delete_frame): New function derived from
5879 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5880 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5881 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5882 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5883 * frame.h: Extern delete_frame.
5884 * window.c (window_loop):
5885 * terminal.c (delete_terminal):
5886 * xterm.c (x_connection_closed):
5887 * xfns.c (Fx_hide_tip):
5888 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
5889
5890 2008-12-21 Jason Rumney <jasonr@gnu.org>
5891
5892 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5893 when character maps to .notdef character.
5894
5895 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5896
5897 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5898
5899 2008-12-20 Jason Rumney <jasonr@gnu.org>
5900
5901 * frame.c (Fmake_terminal_frame): Raise an error when called from
5902 a graphical frame on Windows. (Bug#1325)
5903
5904 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5905
5906 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5907
5908 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
5909
5910 * minibuf.c (Fread_buffer): Doc fix.
5911
5912 2008-12-20 Jason Rumney <jasonr@gnu.org>
5913
5914 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
5915 server name in UNC paths. (Bug#719)
5916
5917 * coding.c (decode_coding): Clear chars_at_source flag when using
5918 charbuf. (Bug#1035)
5919
5920 2008-12-19 Daniel Engeler <engeler@gmail.com>
5921
5922 * sysdep.c (serial_configure): Fix typo.
5923
5924 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5925
5926 * sysdep.c: Include alloca.h.
5927 (system_process_attributes): Add implementation for Solaris.
5928
5929 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
5930
5931 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5932
5933 Reorganize implementation of Flist_system_processes and
5934 Fsystem_process_attributes. No functional changes.
5935 * process.c: Don't #include pwd.h, grp.h and limits.h.
5936 (Flist_system_processes): Just call list_system_processes.
5937 (Fsystem_process_attributes): Just call system_process_attributes.
5938 (procfs_list_system_processes, time_from_jiffies)
5939 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5940 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5941
5942 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5943 (list_system_processes): Rename from
5944 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5945 Provide a do nothing implementation.
5946 (system_process_attributes): Rename from
5947 procfs_list_system_processes.
5948 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5949 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
5950
5951 * w32.c (list_system_processes): Rename from
5952 w32_list_system_processes.
5953 (system_process_attributes): Rename from
5954 w32_system_process_attributes.
5955
5956 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5957
5958 * process.h (w32_list_system_processes)
5959 (w32_system_process_attributes): Remove.
5960 (list_system_processes, system_process_attributes):
5961 New prototypes.
5962
5963 2008-12-19 Kenichi Handa <handa@m17n.org>
5964
5965 * xfont.c (xfont_decode_coding_xlfd): New function.
5966 (xfont_encode_coding_xlfd): New function.
5967 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5968 (xfont_list): Decode and encode XLFD by iso-8859-1.
5969 (xfont_match): Likewise.
5970 (xfont_list_family): Likewise.
5971 (xfont_open): Likewise.
5972
5973 * ftfont.c (ftfont_open): Generate a multibyte string if given
5974 names are utf-8.
5975
5976 * xftfont.c (xftfont_open): Generate a multibyte string if given
5977 names are utf-8.
5978
5979 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5980
5981 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5982 changed.
5983 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5984 clicked on a detached tool bar button.
5985
5986 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5987
5988 * emacs.c (main): Print and error and exit when no data is read
5989 from the pipe.
5990
5991 2008-12-17 Jason Rumney <jasonr@gnu.org>
5992
5993 * w32font.c (w32font_has_char): Always return -1.
5994
5995 2008-12-16 Kenichi Handa <handa@m17n.org>
5996
5997 * font.c (font_open_entity): Fix previous change.
5998
5999 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
6000
6001 * process.c: Include <limits.h>.
6002
6003 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
6004
6005 * font.c (font_update_drivers): Fix mistake in reconstructing the
6006 driver list.
6007
6008 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
6009
6010 * font.c (font_clear_cache): Fix format of font cache data.
6011
6012 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
6013
6014 * xftfont.c (xftfont_open): Free Xft font pattern if
6015 XftFontOpenPattern fails.
6016
6017 * xterm.c (x_free_frame_resources): Remove extraneous call to
6018 free_frame_faces.
6019
6020 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
6021
6022 * xterm.c (x_delete_display): Move xim_close_dpy call to
6023 x_delete_terminal.
6024 (x_delete_terminal): Call xim_close_dpy.
6025
6026 2008-12-13 Jason Rumney <jasonr@gnu.org>
6027
6028 * w32font.c (intern_font_name): New function.
6029 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
6030 (w32font_open_internal, Fx_select_font): Decode font name.
6031 (fill_in_logfont, list_all_matching_fonts): Encode font name.
6032
6033 * w32font.h (intern_font_name): Declare new function.
6034
6035 * w32uniscribe.c (add_opentype_font_name_to_list):
6036 Use intern_font_name.
6037
6038 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
6039
6040 * frame.c (Fdelete_frame): Call free_font_driver_list.
6041
6042 * font.c (free_font_driver_list): Implement missing function.
6043
6044 * w32term.c (w32_term_init): Don't initialize the image cache
6045 here; it will be done in init_frame_faces.
6046
6047 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
6048 (struct x_display_info): Remove unused member null_pixel. New
6049 member xim_callback_data.
6050
6051 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
6052 (xim_initialize): Save pointer to callback function data.
6053 (xim_close_dpy): Free callback function data. Call XCloseIM,
6054 reverting 2008-11-04 change by David Smith.
6055 (x_term_init): Don't initialize the image cache here; it will be
6056 done in init_frame_faces. Remove ancient "null_pixel" cruft.
6057 (x_delete_display): Free x_dnd_atoms member.
6058
6059 2008-12-13 Kenichi Handa <handa@m17n.org>
6060
6061 * font.c (font_rescale_ratio): Moved from xfaces.c.
6062 Argument type changed. Handle a font-spec too.
6063 (font_score): Check Vface_font_rescale_alist.
6064 (font_open_entity): Likewise. (Bug#1547)
6065
6066 * xfaces.c (font_rescale_ratio): Moved to font.c.
6067
6068 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
6069
6070 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
6071
6072 2008-12-12 Jason Rumney <jasonr@gnu.org>
6073
6074 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
6075 Vwindow_system_version to the real w32 major version.
6076
6077 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
6078
6079 * term.c (init_tty): Move setting the terminal name before the
6080 potential user: maybe_fatal.
6081
6082 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
6083
6084 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
6085 all callers changed. Call free_frame_faces to free the face cache.
6086
6087 2008-12-11 Jason Rumney <jasonr@gnu.org>
6088
6089 * w32font.c (fill_in_logfont): Don't assume symbol script means
6090 SYMBOL_CHARSET. (Bug#547)
6091
6092 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
6093 size for surrogates. (Bug#1096, bug#872)
6094
6095 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
6096
6097 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
6098
6099 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
6100
6101 * process.c (Fsystem_process_attributes, syms_of_process):
6102 Fix typo in name of Ssystem_process_attributes.
6103 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
6104
6105 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
6106
6107 * syntax.c (Fmodify_syntax_entry): Doc fix.
6108
6109 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
6110
6111 * font.c (Ffont_spec): Move usage to end of docstring.
6112
6113 2008-12-10 Jason Rumney <jasonr@gnu.org>
6114
6115 * w32font.c (Qcham): New symbol.
6116 (font_supported_scripts): Add cham, and comments for other new
6117 scripts in bitfield from OpenType spec.
6118 (add_font_entity_to_list): Limit unicode-sip fonts to those that
6119 contain characters beyond the bmp.
6120
6121 2008-12-10 Kenichi Handa <handa@m17n.org>
6122
6123 * ftfont.c (fc_charset_table): Add "unicode-sip".
6124 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
6125 Qunicode_sip.
6126
6127 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
6128
6129 * coding.c (QCdefault_char): Rename from QCdefalut_char.
6130 (Fcoding_system_put): Use QCdefault_char.
6131 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
6132
6133 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
6134
6135 * xftfont.c (syms_of_xftfont): Fix typo.
6136
6137 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
6138
6139 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
6140
6141 * emacs.c (main): Close daemon_pipe on exec.
6142
6143 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
6144
6145 * termchar.h (struct tty): New members termcap_term_buffer and
6146 termcap_strings_buffer.
6147
6148 * term.c (encode_terminal_code): Free any previous memory blocks
6149 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
6150 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
6151 All callers changed.
6152 (init_tty): Store termcap data and string buffers in new struct
6153 tty members termcap_term_buffer and termcap_strings_buffer.
6154 (delete_tty): Free them.
6155 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
6156
6157 2008-12-07 Seiji Zenitani <zenitani@mac.com>
6158
6159 * nsfns.m (ns_set_background_color): Remove code duplication.
6160 It was a substitute for face-transparency on OS X 10.3.
6161
6162 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
6163
6164 * coding.c (make_conversion_work_buffer): Disable buffer
6165 modification hooks in the work buffer.
6166
6167 2008-12-05 Eli Zaretskii <eliz@gnu.org>
6168
6169 * process.c (procfs_system_process_attributes): If `nread' has a
6170 negative value, assign zero to it.
6171
6172 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
6173
6174 * eval.c (Vdebug_on_error): Doc fix.
6175
6176 2008-12-05 Kenichi Handa <handa@m17n.org>
6177
6178 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
6179 second character is a combining character.
6180
6181 2008-12-05 Eli Zaretskii <eliz@gnu.org>
6182
6183 * process.c (procfs_system_process_attributes): Don't use cmd,
6184 cmdsize, and q without initializing them first.
6185
6186 2008-12-04 Jason Rumney <jasonr@gnu.org>
6187
6188 * w32font.c (w32font_draw): Initialize orig_clip before getting
6189 it, and delete it when finished.
6190
6191 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
6192
6193 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
6194 case when running as a daemon before detaching.
6195
6196 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
6197
6198 * w32.c (init_environment): Don't unload library shell32.dll.
6199
6200 2008-12-03 Kenichi Handa <handa@m17n.org>
6201
6202 * font.c (font_at): Set `multibyte' at first.
6203
6204 * coding.c (decode_coding_charset): Check type of an element of
6205 vector VALIDS.
6206 (encode_coding_emacs_mule): Be sure to set `code'.
6207
6208 * fontset.c (face_for_char): Handle invalid charset property correctly.
6209 (font_for_char): Likewise.
6210
6211 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
6212
6213 * font.c (Fopen_font): Compute pixel size correctly.
6214 (font_update_lface): Handle fonts with corrupted size specs,
6215 i.e. non-int and non-float.
6216
6217 * ftfont.c (ftfont_match): Initialize entity variable.
6218 (ftfont_resolve_generic_family): Avoid using uninitialized var.
6219 (ftfont_list_family): Initialize list var earlier.
6220
6221 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
6222
6223 * xterm.c (x_draw_glyph_string): Fall back on
6224 underline_minimum_offset for underline position.
6225
6226 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
6227
6228 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
6229
6230 * character.c (c_string_width): Specify the type for LEN.
6231
6232 2008-12-03 Kenichi Handa <handa@m17n.org>
6233
6234 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
6235 (decode_coding_utf_8): Likewise.
6236 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
6237 (produce_chars): Initialize consumed_chars to 0.
6238
6239 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
6240
6241 * keyboard.c (make_lispy_position): Only use PT if the selected
6242 window is current.
6243
6244 2008-12-02 Andreas Schwab <schwab@suse.de>
6245
6246 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
6247
6248 * doprnt.c (doprnt1): Fix size of charbuf.
6249
6250 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
6251
6252 * keyboard.c (timer_check): Revert last change.
6253
6254 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
6255
6256 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
6257
6258 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
6259
6260 * makefile.w32-in: Update dependencies.
6261 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
6262
6263 2008-12-01 Andreas Schwab <schwab@suse.de>
6264
6265 * font.c (register_font_driver): Use xmalloc.
6266 (font_put_frame_data): Likewise.
6267
6268 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
6269
6270 * xfaces.c (realize_x_face): Make abort condition clearer.
6271
6272 * gtkutil.c (update_frame_tool_bar): Initialize variable.
6273
6274 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
6275
6276 * keyboard.c (timer_check): After a timer runs, ensure that the
6277 selected window's buffer is current.
6278
6279 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
6280
6281 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
6282 It was accidentally restored by the Unicode merge.
6283
6284 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
6285
6286 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
6287
6288 * w32proc.c: Include "coding.h".
6289 (Fw32_short_file_name): Encode filename passed to Windows API.
6290 (Fw32_long_file_name): Encode filename passed to Windows API and
6291 decode back the result. (Bug#1433)
6292
6293 2008-11-29 Kenichi Handa <handa@m17n.org>
6294
6295 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
6296 not before accessing it.
6297
6298 * charset.c (Fdefine_charset_internal): After calculating
6299 min_char, max_char, and fastmap, copy the charset structure again.
6300 (encode_char): Fix the previous change.
6301
6302 2008-11-28 Seiji Zenitani <zenitani@mac.com>
6303
6304 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
6305
6306 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
6307
6308 * nsterm.m (x_set_frame_alpha): New function.
6309
6310 2008-11-27 Eli Zaretskii <eliz@gnu.org>
6311
6312 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
6313
6314 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
6315
6316 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
6317 pointer to check_face_name.
6318
6319 2008-11-27 Kenichi Handa <handa@m17n.org>
6320
6321 * category.h (SET_CATEGORY_SET): Call set_category_set.
6322 (set_category_set): Extern it.
6323
6324 * category.c (hash_get_category_set): New function.
6325 (Fmodify_category_entry): Adjusted for the change of
6326 char_table_ref_and_range. Call hash_get_category_set to get a
6327 category set to store in the table.
6328
6329 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
6330 Funify_charset.
6331
6332 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
6333 (DECODE_CHAR): Check if the decoder vector is ready.
6334 (ENCODE_CHAR): Check if the encoder char-table is ready.
6335 (maybe_unify_char): Extern it.
6336
6337 * charset.c (Vchar_unified_charset_table): Delete it.
6338 (inhibit_load_charset_map): New variable.
6339 (temp_charset_work): New variable.
6340 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6341 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6342 New macros.
6343 (load_charset_map): Meaning of control_flag changed. If
6344 inhibit_load_charset_map is nonzero, setup a table in
6345 temp_charset_work.
6346 (load_charset): New argument control_flag.
6347 (map_charset_for_dump): New function.
6348 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6349 map_charset_for_dump.
6350 (Fdefine_charset_internal): If the charset method is MAP, load
6351 mapping tables by calling load_charset.
6352 (Funify_charset): Don't load a mapping table but directly set
6353 Vchar_unify_table.
6354 (maybe_unify_char): New function.
6355 (decode_char): Don't handle the deleted method MAP_DEFERRED.
6356 Handle the case of inhibit_load_charset_map being nonzero.
6357 (encode_char): Don't handle the deleted method MAP_DEFERRED.
6358 Handle the case of inhibit_load_charset_map being nonzero.
6359 (Fclear_charset_maps): Just free temp_charset_work.
6360 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6361 variable.
6362
6363 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6364 change of char_table_ref_and_range.
6365 (char_table_ref_and_range): Change the meaning of argument FROM
6366 and TO. Now the caller must provide initial values for *FROM
6367 and *TO.
6368
6369 * fontset.c (fontset_add): Adjusted for the change of
6370 char_table_ref_and_range.
6371 (fontset_get_font_group): Likewise.
6372 (Ffontset_info): Likewise.
6373
6374 * keymap.c (describe_vector): Adjusted for the change of
6375 char_table_ref_and_range. For char-table, put boundary between
6376 non-ASCII and 8-bit characters.
6377
6378 * print.c (print_object): For bool-vector, delete unnecessary
6379 check of ASCII_BYTE_P.
6380
6381 2008-11-26 Jason Rumney <jasonr@gnu.org>
6382
6383 * w32font.c (w32font_open_internal): Don't include external
6384 leading in font height. (Bug#879)
6385
6386 2008-11-26 Glenn Morris <rgm@gnu.org>
6387
6388 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6389 redefinition with ifdef. (Bug#1383)
6390
6391 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6392
6393 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6394
6395 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6396
6397 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6398 New EmacsView methods.
6399 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6400 Fixes bug #1048,1357,1414.
6401
6402 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6403
6404 Fix bug #1362.
6405 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6406 is not an indexed color.
6407 * nsterm.m (free_indexed_color): Add argument checking.
6408 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6409
6410 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
6411
6412 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6413 Document confirm-after-completion value for
6414 minibuffer-completion-confirm.
6415
6416 2008-11-24 Jason Rumney <jasonr@gnu.org>
6417
6418 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6419 warning.
6420
6421 2008-11-23 Jason Rumney <jasonr@gnu.org>
6422
6423 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6424 restored before returning.
6425
6426 * w32font.c (check_face_name): New function.
6427 (add_font_entity_to_list): Use it to filter out common substituted
6428 fonts. (Bug#642)
6429
6430 2008-11-22 Martin Rudalics <rudalics@gmx.at>
6431
6432 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6433 confirm-nonexistent-file-or-buffer in doc-string.
6434
6435 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6436
6437 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6438 Fix copy/paste typo. Add checks.
6439
6440 2008-11-21 Kenichi Handa <handa@m17n.org>
6441
6442 * coding.c (detect_coding_iso_2022): Reject invalid composition
6443 sequence.
6444 (DECODE_COMPOSITION_START): If the current source is the last
6445 block, and the current composition doesn't end, regard this
6446 sequence as invalid.
6447 (decode_coding_iso_2022): Handle invalid composition sequence.
6448
6449 2008-11-20 Martin Rudalics <rudalics@gmx.at>
6450
6451 * window.c (coordinates_in_window): Don't return
6452 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6453 line when the window is not the rightmost one. (Bug#1372)
6454
6455 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6456
6457 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6458
6459 2008-11-15 Eli Zaretskii <eliz@gnu.org>
6460
6461 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6462 and bright_bg if noninteractive is non-zero.
6463
6464 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6465
6466 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6467 x_draw_glyph_string_background.
6468
6469 * w32term.c (x_draw_glyph_string): Likewise.
6470
6471 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
6472
6473 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6474 the next glyph string once past the overhang width.
6475
6476 * nsterm.m (ns_draw_glyph_string): Likewise.
6477
6478 * w32term.c (x_draw_glyph_string): Likewise.
6479
6480 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6481
6482 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6483 double file close.
6484
6485 2008-11-14 Martin Rudalics <rudalics@gmx.at>
6486
6487 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6488 dedicated status of window before attempting to display another
6489 buffer in it.
6490
6491 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
6492
6493 * msdos.c (Fmsdos_long_file_names):
6494 (syms_of_msdos) <dos-unsupported-char-glyph>:
6495 * dosfns.c (Fint86): Fix typos in docstrings.
6496
6497 2008-11-14 Eli Zaretskii <eliz@gnu.org>
6498
6499 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6500
6501 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6502
6503 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6504
6505 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6506
6507 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6508
6509 * frame.h: Negative alpha means "don't touch".
6510
6511 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6512
6513 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6514
6515 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6516
6517 * hftctl.c:
6518 * chpdef.h:
6519 * acldef.h: Remove files used only for systems no longer supported.
6520
6521 * Makefile.in: Fix .o alphabetical ordering.
6522 (hftctl.o): Remove dependency, file removed.
6523 (keymap.o, print.o): Depend on charset.h.
6524
6525 2008-11-10 Kenichi Handa <handa@m17n.org>
6526
6527 * character.c (Fget_byte): Fix and make it faster for unibyte target.
6528
6529 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
6530
6531 * dired.c (file_name_completion): If completion_ignore_case is
6532 enabled, ignore case when checking completion-regexp-list.
6533
6534 2008-11-08 Eli Zaretskii <eliz@gnu.org>
6535
6536 * vm-limit.c (get_lim_data): Fix last change.
6537
6538 2008-11-08 Kenichi Handa <handa@m17n.org>
6539
6540 * character.c (Fget_byte): New function.
6541 (syms_of_character): Defsubr Fget_byte.
6542
6543 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
6544
6545 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6546 cursor position is valid after scrolling.
6547
6548 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
6549
6550 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6551
6552 2008-11-06 Glenn Morris <rgm@gnu.org>
6553
6554 * xterm.c (handle_one_xevent): Don't let popup menus cause
6555 mouse-autoselect-window related window switching. (Bug#1261)
6556
6557 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6558
6559 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6560
6561 2008-11-04 Andreas Schwab <schwab@suse.de>
6562
6563 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6564
6565 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
6566
6567 * xfns.c (Fx_wm_set_size_hint): New function.
6568
6569 2008-11-03 Martin Rudalics <rudalics@gmx.at>
6570
6571 * textprop.c (Fprevious_single_char_property_change): Return 0
6572 when there's no change in a string. (Bug#1301)
6573
6574 2008-11-02 Martin Rudalics <rudalics@gmx.at>
6575
6576 * frame.c (do_switch_frame): New argument NORECORD passed to
6577 Fselect_window.
6578 (Fselect_frame): New argument NORECORD passed to
6579 do_switch_frame.
6580 (Fset_frame_selected_window): New argument NORECORD passed to
6581 Fselect_frame.
6582 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6583 in call of do_switch_frame.
6584 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6585 Handle NORECORD argument in call of Fselect_frame.
6586 * lisp.h (do_switch_frame, Fselect_frame)
6587 (Fset_frame_selected_window): Adjust declarations.
6588 * window.c (select_frame_norecord): New function.
6589 (run_window_configuration_change_hook): Use it and call
6590 Fselect_frame with NORECORD set.
6591 (Fselect_window): Pass NORECORD to Fselect_frame.
6592 (Fset_window_configuration): Handle NORECORD argument in call of
6593 do_switch_frame.
6594 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6595 Fset_frame_selected_window.
6596 * keyboard.c (command_loop_1): Handle NORECORD in call of
6597 Fselect_frame (currently ifdefd).
6598
6599 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6600
6601 * emacs.c (USAGE2): Untabify.
6602
6603 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6604
6605 * composite.c (fill_gstring_header): Fix copy/paste typo.
6606
6607 2008-10-31 Martin Rudalics <rudalics@gmx.at>
6608
6609 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6610 (Fother_window): Rename argument and rewrite doc-string.
6611 (select_window_norecord): Fix return value. (Bug#1276)
6612
6613 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
6614
6615 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6616 new frames overriding foreground for tooltips. Based on similar patch
6617 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6618
6619 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
6620
6621 * emacs.c (Fdaemon_initialized): Initialize nfd.
6622
6623 2008-10-29 Martin Rudalics <rudalics@gmx.at>
6624
6625 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6626 (Fwindow_text_height): Clarify doc-strings.
6627 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6628 doc-string of window-scroll-functions.
6629
6630 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6631
6632 * category.c (syms_of_category): Fix typo in docstring.
6633
6634 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
6635
6636 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6637 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6638 Fix typos in docstrings.
6639
6640 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6641
6642 * emacs.c (daemon_pipe): Make non-static.
6643 (IS_DAEMON): Move definition ...
6644 * lisp.h (IS_DAEMON): ... here.
6645 (daemon_pipe): Declare.
6646 (is_daemon): Remove.
6647 * dispnew.c (init_display): Use IS_DAEMON.
6648
6649 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6650
6651 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6652 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6653
6654 * emacs.c (is_daemon): Remove.
6655 (main): Don't set is_daemon.
6656 (IS_DAEMON): New macro.
6657 (Fdaemonp, Fdaemon_initialized): Use it.
6658 (Fdaemon_initialized): Write a char into the pipe to make sure the
6659 parent exits.
6660 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6661
6662 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
6663
6664 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6665 over-sized glyph, draw it with the default glyph width.
6666
6667 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6668 glyph, draw it with the default glyph width.
6669
6670 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6671 glyph, draw it with the default glyph width.
6672
6673 * xdisp.c (try_scrolling): When computing the distance from the
6674 scroll margin to PT, try moving some distance past the window
6675 bottom before giving up.
6676
6677 2008-10-27 Martin Rudalics <rudalics@gmx.at>
6678
6679 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6680 (Fset_window_buffer): Explain in doc-string that a window can be
6681 "strongly" dedicated to its buffer.
6682
6683 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6684
6685 * emacs.c (daemon_name): New variable.
6686 (main): Deal with --daemon=SERVER_NAME.
6687 (Fdaemonp): Return a name if one was passed to --daemon.
6688
6689 2008-10-26 Romain Francoise <romain@orebokech.com>
6690
6691 * emacs.c (daemon_pipe): New variable.
6692 (main): Create a pipe before forking, make the parent exit only after
6693 the child has closed its end of the pipe. Move closing the
6694 descriptors ...
6695 (Fdaemon_initialized): ... here. New function.
6696
6697 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6698
6699 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6700 the previous unoptimized table.
6701
6702 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6703 the distinction between non-nil and non-t value of `dedicated'.
6704
6705 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
6706
6707 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
6708 read_char_minibuf_menu_text is large enough to hold the menu string.
6709
6710 2008-10-25 Martin Rudalics <rudalics@gmx.at>
6711
6712 * window.c (Fget_buffer_window, Fdelete_windows_on)
6713 (Freplace_buffer_in_windows): Make buffer argument optional and
6714 rename to buffer_or_name.
6715
6716 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
6717
6718 * xdisp.c (handle_single_display_spec, handle_display_prop):
6719 Undo 2005-05-16 change.
6720 (handle_stop): Pop iterator if it's loaded with an empty string.
6721 (get_overlay_strings_1): Don't save iterator if it's loaded with
6722 an empty string (bug#1201).
6723
6724 2008-10-24 Kenichi Handa <handa@m17n.org>
6725
6726 * ftfont.c (ftfont_otf_features): Fix previous change.
6727 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6728 calling ftfont_otf_features.
6729
6730 2008-10-24 Kenichi Handa <handa@m17n.org>
6731
6732 * font.c (font_match_p): Fix for the case that a vector of
6733 characters is in script-representative-chars.
6734
6735 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
6736
6737 * dbusbind.c (xd_in_read_queued_messages): New variable.
6738 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
6739 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6740 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
6741 macro. (Bug#1186)
6742
6743 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
6744
6745 * s/sol2-10.h: New file.
6746
6747 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
6748
6749 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6750 poor beast has survived 9+ years and the jump from xterm.c!).
6751
6752 2008-10-23 Martin Rudalics <rudalics@gmx.at>
6753
6754 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6755 Reword doc-string.
6756 (Fbury_buffer): In doc-string say what happens to the buffer's window.
6757
6758 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
6759
6760 * character.c (syms_of_character) <script-representative-chars>:
6761 <unicode-category-table>: Doc fixes.
6762
6763 2008-10-23 Noah Friedman <friedman@splode.com>
6764
6765 * coding.c (make_conversion_work_buffer): Check that
6766 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6767 Fget_buffer_create.
6768
6769 2008-10-23 Kenichi Handa <handa@m17n.org>
6770
6771 * font.c (font_add_log): Check the values of extra properties.
6772
6773 2008-10-22 Martin Rudalics <rudalics@gmx.at>
6774
6775 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6776 Reword doc-string.
6777 (Fset_window_parameter): Use NILP.
6778 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
6779 (Frecenter): Use "selected" instead of "current" window in doc-strings.
6780
6781 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
6782
6783 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6784
6785 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6786
6787 * nsfns.m (ns_appkit_version): New function.
6788 (x-server-version): Use it.
6789 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6790 (x-server-vendor): Don't check_ns().
6791
6792 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6793
6794 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
6795
6796 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6797 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6798
6799 2008-10-22 Kenichi Handa <handa@m17n.org>
6800
6801 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6802 scripts.
6803
6804 * category.c (word_boundary_p): Check scripts instead of charset.
6805 Handle nil value in word-separating-categories and
6806 word-combining-categories.
6807 (syms_of_category): Fix docstrings of word-separating-categories
6808 and word-combining-categories.
6809
6810 2008-10-21 Eli Zaretskii <eliz@gnu.org>
6811
6812 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6813 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6814
6815 2008-10-21 Martin Rudalics <rudalics@gmx.at>
6816
6817 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6818 Rename arg "buffer" to "buffer_or_name".
6819 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6820 it optional.
6821 (no_switch_window): Remove since the return value is not used.
6822 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
6823 Consider window as dedicated when Fwindow_dedicated_p returns a
6824 non-nil value.
6825 * lisp.h: Remove prototype for no_switch_window.
6826
6827 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6828
6829 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
6830 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
6831
6832 2008-10-21 Kenichi Handa <handa@m17n.org>
6833
6834 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6835 check Vlatin_extra_code_table.
6836
6837 2008-10-20 Eli Zaretskii <eliz@gnu.org>
6838
6839 * fileio.c (Fset_file_modes): Doc fix.
6840
6841 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
6842
6843 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6844 in arrays.
6845
6846 2008-10-19 Martin Rudalics <rudalics@gmx.at>
6847
6848 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6849 Mention kill-buffer in doc-string.
6850 (Fset_window_buffer): Reinsert tem check removed in last commit.
6851 (Fenlarge_window, Fshrink_window): Have argument names and
6852 doc-string follow Elisp manual more closely.
6853
6854 2008-10-18 Eli Zaretskii <eliz@gnu.org>
6855
6856 * fileio.c (Fset_file_modes): Doc fix.
6857
6858 2008-10-18 Martin Rudalics <rudalics@gmx.at>
6859
6860 * window.c (Fwindow_width, Fset_window_start)
6861 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
6862 (Fdelete_windows_on, Freplace_buffer_in_windows):
6863 Make doc-strings follow code and Elisp manual more closely.
6864 (Fwindow_dedicated_p): Make window argument optional.
6865 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6866 (Fset_window_buffer): Respect any non-nil dedicated value for
6867 window. Rename "buffer" argument to "buffer_or_name".
6868
6869 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
6870
6871 * m/sh3.h: New file, machine description for SuperH.
6872
6873 2008-10-17 Martin Rudalics <rudalics@gmx.at>
6874
6875 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6876
6877 2008-10-17 Kenichi Handa <handa@m17n.org>
6878
6879 * ftfont.c (ftfont_otf_features): Fix indexing
6880 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6881
6882 2008-10-16 Magnus Henoch <mange@freemail.hu>
6883
6884 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6885 (Fdbus_call_method_asynchronously): Ditto.
6886 This change makes C-h f display the argument list.
6887
6888 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
6889
6890 * fileio.c (Fexpand_file_name): Doc fix.
6891
6892 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6893 of :foreground and :background equivalent to unspecified (20.x
6894 compatibility).
6895
6896 2008-10-15 Eli Zaretskii <eliz@gnu.org>
6897
6898 * buffer.c (syms_of_buffer): Doc fix.
6899
6900 2008-10-14 Kenichi Handa <handa@m17n.org>
6901
6902 * font.c (font_clear_prop): When clearing font width, clear the
6903 average width field too.
6904
6905 2008-10-12 Andreas Schwab <schwab@suse.de>
6906
6907 * ftfont.c (ftfont_shape_by_flt): Make static.
6908 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6909
6910 * font.c: Don't include <m17n-flt.h>.
6911
6912 2008-10-10 Eli Zaretskii <eliz@gnu.org>
6913
6914 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6915
6916 2008-10-09 Eli Zaretskii <eliz@gnu.org>
6917
6918 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6919 away code.
6920
6921 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
6922
6923 * dispnew.c (update_text_area): Avoid looping due to large glyph
6924 overhangs (bug#1070).
6925
6926 2008-10-09 Kenichi Handa <handa@m17n.org>
6927
6928 * fontset.c (face_for_char): If face->fontset is negative, just
6929 return ascii_face.
6930
6931 * font.c (font_delete_unmatched): Fix previous change.
6932 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
6933
6934 2008-10-09 Martin Rudalics <rudalics@gmx.at>
6935
6936 * frame.c (Fraise_frame): On text-only terminals select frame in
6937 order to make it visible. (Bug#1061)
6938
6939 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
6940
6941 * fontset.c (fontset_find_font): Check frame validity.
6942
6943 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
6944
6945 * gtkutil.c (xg_display_open): Reset default display if none exists.
6946 (xg_display_close): Allow Emacs to close all displays (bug#985).
6947
6948 2008-10-06 Andreas Schwab <schwab@suse.de>
6949
6950 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
6951
6952 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
6953
6954 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
6955
6956 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
6957
6958 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6959 during initialization.
6960
6961 2008-10-04 Eli Zaretskii <eliz@gnu.org>
6962
6963 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6964 whole thing on MSDOS frames as well as on a TTY.
6965
6966 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6967 well as for TTY.
6968 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6969 well as on a TTY.
6970
6971 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6972 as well as for TTY.
6973
6974 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6975
6976 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6977 MSDOS frames as well.
6978
6979 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6980
6981 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6982 correct arguments.
6983 * menu.c (find_and_return_menu_selection): Add cast.
6984
6985 2008-10-03 Glenn Morris <rgm@gnu.org>
6986
6987 * emacs.c (USAGE1): Add --daemon.
6988
6989 2008-10-02 Eli Zaretskii <eliz@gnu.org>
6990
6991 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6992 100, so it's in percents as advertised.
6993
6994 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6995
6996 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6997 (ns_output.current_cursor, ns_output.desired_cursor)
6998 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6999 (FRAME_NEW_CURSOR_COLOR): Remove.
7000
7001 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
7002 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
7003 enumeration (HOLLOW_BOX_CURSOR, etc.).
7004
7005 * nsterm.m (ns_frame_rehighlight): Remove commented code.
7006 (draw_window_cursor): Simplify code.
7007 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
7008 Don't change cursor type. In latter, call rehighlight instead of doing
7009 updates manually.
7010 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
7011 Use core Emacs cursor types.
7012
7013 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
7014
7015 2008-10-02 Martin Rudalics <rudalics@gmx.at>
7016
7017 * process.c (Faccept_process_output): Fix doc-string.
7018
7019 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
7020
7021 * gmalloc.c (__sbrk): Also define for uClibc.
7022
7023 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
7024 for uClibc.
7025
7026 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7027
7028 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
7029 styles.
7030 (nsfont_open): Reenable the cache.
7031
7032 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7033
7034 * font.c (font_matching_entity): Reflect ATTRS in font selection.
7035 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
7036
7037 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
7038
7039 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
7040 a suspended terminal.
7041
7042 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
7043
7044 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
7045
7046 2008-09-30 Eli Zaretskii <eliz@gnu.org>
7047
7048 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
7049
7050 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
7051
7052 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
7053 in a continued line coincides with a line beginning.
7054
7055 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7056
7057 * nsfont.m (nsfont_trait_distance): Fix bug.
7058 (nsfont_list): Return a list rather than a vector (syncs with Handa
7059 changes of 2008-05-14).
7060 (nsfont_open): Improve logging.
7061
7062 2008-09-29 Andreas Schwab <schwab@suse.de>
7063
7064 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7065
7066 2008-09-28 Martin Rudalics <rudalics@gmx.at>
7067
7068 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
7069 name as char-resolve-modifiers.
7070 Reported by: Markus Triska <markus.triska@gmx.at>
7071
7072 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
7073
7074 * dispnew.c (init_display): Return earlier when running as a daemon.
7075
7076 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7077
7078 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
7079
7080 2008-09-27 Eli Zaretskii <eliz@gnu.org>
7081
7082 * composite.c (Fcomposition_get_gstring)
7083 (Fcompose_region_internal, Fcompose_string_internal)
7084 (Ffind_composition_internal): Doc fix.
7085 (syms_of_composite) <compose-chars-after-function>: Doc fix.
7086 (syms_of_composite) <auto-composition-function>: Doc fix.
7087 (syms_of_composite) <composition-function-table>: Doc fix.
7088
7089 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
7090
7091 * search.c (wordify): New argument for lax word-ends.
7092 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
7093
7094 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
7095
7096 * lisp.h (is_daemon): Declare.
7097 * dispnew.c (init_display): Do not try to initialize the terminal
7098 when running as a daemon.
7099
7100 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
7101
7102 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
7103 x_display_pixel_height.
7104
7105 2008-09-22 Martin Rudalics <rudalics@gmx.at>
7106
7107 * undo.c (record_point): Don't call Fundo_boundary for first
7108 change. (Bug#731)
7109
7110 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
7111
7112 * emacs.c (Fdaemonp): Doc fix.
7113
7114 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
7115
7116 * emacs.c (main): Place #ifdef in the proper place.
7117
7118 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
7119
7120 * emacs.c (standard_args): Add --daemon.
7121 (main): Disconnect from the terminal when --daemon is passed.
7122 (is_daemon): New variable.
7123 (Fdaemonp): New function.
7124 (syms_of_emacs): Defsubr it.
7125
7126 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
7127
7128 * xdisp.c (get_next_display_element): Handle string display
7129 correctly when checking for the end of a box run.
7130
7131 2008-09-20 Glenn Morris <rgm@gnu.org>
7132
7133 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
7134 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
7135 (Frename_file): Avoid copying to trash if a rename involves
7136 a delete. (Bug#964).
7137
7138 2008-09-20 Eli Zaretskii <eliz@gnu.org>
7139
7140 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
7141 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
7142 frames as well as termcap frames.
7143 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
7144 get_named_tty.
7145
7146 2008-09-19 Eli Zaretskii <eliz@gnu.org>
7147
7148 * process.c (procfs_system_process_attributes): Fix cmdline in
7149 case /proc/PID/cmdline is empty.
7150
7151 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
7152 x_display_pixel_height.
7153
7154 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
7155
7156 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
7157
7158 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7159 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
7160
7161 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
7162
7163 * dispextern.h (struct it): Move line_wrap away from the middle of
7164 bitfields. Move voffset in struct iterator_stack_entry after the
7165 bitfields. Move tab_width near after another short.
7166
7167 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
7168
7169 * frame.h (struct frame): Move alpha from the middle of bitfields.
7170
7171 * window.h (struct window): Move frozen_window_start_p after the
7172 rest of the bitfields to reduce padding.
7173
7174 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
7175
7176 * xterm.h (x_display_info): Remove `height' and `width' members.
7177
7178 * nsterm.h (ns_display_info): Remove `height' and `width' members.
7179
7180 * w32term.h (w32_display_info): Remove `height', `width',
7181 `height_in', and `width_in' members.
7182
7183 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7184 New functions.
7185 (x_calc_absolute_position): Use them.
7186 (x_term_init): Omit removed `height' and `width' members.
7187
7188 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7189 New functions.
7190 (w32_read_socket, x_calc_absolute_position): Use them.
7191 (w32_initialize_display_info, w32_term_init): Omit removed members
7192 of w32_display_info.
7193
7194 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
7195 New functions.
7196 (ns_initialize_display_info): Omit removed members of ns_display_info.
7197
7198 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7199 New functions.
7200 (x_calc_absolute_position): Use them.
7201 (x_term_init): Omit removed `height' and `width' members.
7202
7203 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7204 (compute_tip_xy):
7205 * frame.c (x_fullscreen_adjust):
7206 * xmenu.c (menu_position_func): Use x_display_pixel_height and
7207 x_display_pixel_width.
7208
7209 2008-09-18 Kenichi Handa <handa@m17n.org>
7210
7211 * composite.c (fill_gstring_header): Don't check FROM and TO here.
7212 (composition_compute_stop_pos): Fix handling of static composition.
7213 (Fcomposition_get_gstring): Check FROM and TO at first.
7214
7215 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7216
7217 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
7218 mixup (YAILOM).
7219
7220 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
7221
7222 * indent.c (Fvertical_motion): Use position reported by iterator
7223 instead of PT for determining screen motion (bug#943).
7224
7225 2008-09-17 Romain Francoise <romain@orebokech.com>
7226
7227 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
7228
7229 2008-09-17 Kenichi Handa <handa@m17n.org>
7230
7231 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
7232
7233 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
7234 if necessary.
7235
7236 2008-09-16 Kenichi Handa <handa@m17n.org>
7237
7238 * coding.c (make_conversion_work_buffer): Avoid calling
7239 Fget_buffer_create if it is not necessary.
7240
7241 2008-09-15 Martin Rudalics <rudalics@gmx.at>
7242
7243 * window.c (Fselect_window): Don't update window_select_count and
7244 use_time when norecord is not nil.
7245
7246 2008-09-14 Kenichi Handa <handa@m17n.org>
7247
7248 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
7249 specpdl_ptr.
7250
7251 2008-09-12 Kenichi Handa <handa@m17n.org>
7252
7253 * indent.c (scan_for_column): Don't handle automatic composition
7254 if the current buffer is not associated with a window.
7255
7256 * composite.c (composition_reseat_it): If the current buffer is
7257 not associated with a window, ignore the automatic composition.
7258 (find_automatic_composition): Likewise.
7259
7260 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7261
7262 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
7263 (Fgpm_mouse_stop): Use it.
7264 * termhooks.h (close_gpm): Declare.
7265 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
7266 connection if Gpm_GetEvent fails.
7267
7268 * window.c (set_window_buffer): Always preserve current-buffer.
7269
7270 2008-09-12 Glenn Morris <rgm@gnu.org>
7271
7272 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
7273
7274 2008-09-11 Glenn Morris <rgm@gnu.org>
7275
7276 * charset.c (charset-map-path): Doc fix.
7277
7278 2008-09-10 Kenichi Handa <handa@m17n.org>
7279
7280 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
7281
7282 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
7283 compose a grapheme cluster with the preceding base glyph.
7284
7285 * composite.c (composition_compute_stop_pos): Fix previous change.
7286 Reset cmp_it->id to -1 at first.
7287
7288 2008-09-10 Glenn Morris <rgm@gnu.org>
7289
7290 * Makefile.in (character.o, chartab.o): Fix config.h typo.
7291
7292 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
7293
7294 * keyboard.c (read_key_sequence): Reapply translation maps when
7295 switching keyboards.
7296
7297 2008-09-09 Kenichi Handa <handa@m17n.org>
7298
7299 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
7300 characters.
7301
7302 * composite.c (FORWARD_CHAR): Fix calculation
7303 of (POSITION).pos_byte.
7304 (composition_compute_stop_pos): Limit the search of composition to
7305 at most 500 characters ahead. If we reach the limit or find a
7306 newline, set cmp_it->ch to -2 and return 0.
7307 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
7308
7309 2008-09-08 Kenichi Handa <handa@m17n.org>
7310
7311 * indent.c (Fvertical_motion): Be sure to set
7312 it_overshoot_expected if it.cmp_it.id is non-negative.
7313
7314 2008-09-07 Andreas Schwab <schwab@suse.de>
7315
7316 * callproc.c (Fcall_process): Don't hold references to string data
7317 across garbage collection. Move initialisation of new_argv down
7318 to avoid compiler bug.
7319
7320 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7321
7322 * process.c (Fsystem_process_attributes): Doc fix.
7323
7324 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
7325
7326 * callproc.c (Fcall_process): Canonicalize current directory name.
7327
7328 * xdisp.c (move_it_to): When moving by vpos, ensure that the
7329 iterator advances to the next line if the current line ends in a
7330 continued tab.
7331
7332 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
7333
7334 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7335 member to point to cmp_from.
7336
7337 * xdisp.c: Doc fix for references to gidx data member.
7338
7339 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7340
7341 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7342
7343 2008-09-07 Kenichi Handa <handa@m17n.org>
7344
7345 * composite.c (FORWARD_CHAR): Check STOP after
7346 incrementing (POSITION).pos.
7347
7348 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7349
7350 * process.c (Fsystem_process_attributes): Doc fix.
7351
7352 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
7353
7354 * keyboard.c (Ftop_level): Doc fix.
7355
7356 2008-09-06 Eli Zaretskii <eliz@gnu.org>
7357
7358 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7359 minibuffer, don't let lower part of menu invade the echo area.
7360
7361 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7362 "char *q" to access menu text and advance through it. Revert the
7363 change that displayed ">" instead of ASCII character 0x10.
7364
7365 2008-09-05 Eli Zaretskii <eliz@gnu.org>
7366
7367 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7368 toggle boxes and radio buttons on MS-DOS as well.
7369
7370 2008-09-05 Kenichi Handa <handa@m17n.org>
7371
7372 * composite.c (autocmp_chars): Check lookback count.
7373 (composition_compute_stop_pos): Set cmp_it->lookback.
7374 (composition_reseat_it): Check lookback count.
7375 (struct position_record): New struct.
7376 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7377 (find_automatic_composition): New function.
7378 (composition_adjust_point): Use find_automatic_composition.
7379
7380 * dispextern.h (struct composition_it): New member lookback.
7381
7382 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
7383
7384 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7385 if moving by a single line.
7386
7387 2008-09-02 Andreas Schwab <schwab@suse.de>
7388
7389 * xterm.c (x_delete_display): Fix merge error.
7390
7391 * fileio.c (Fexpand_file_name): Remove unused variables.
7392
7393 2008-09-02 Eli Zaretskii <eliz@gnu.org>
7394
7395 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7396 storage on all platforms, not just on DOS_NT.
7397
7398 2008-09-02 Jason Rumney <jasonr@gnu.org>
7399
7400 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7401 Ensure mouse is not grabbed after menu is finished.
7402
7403 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
7404
7405 * xfaces.c (Finternal_set_alternative_font_family_alist)
7406 (Finternal_set_alternative_font_registry_alist): Properly copy
7407 entire alist structure.
7408
7409 2008-09-01 Kenichi Handa <handa@m17n.org>
7410
7411 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
7412 representative chars of the script is a vector.
7413 (ftfont_list): Handle the case where the representative chars of
7414 the script is a vector.
7415
7416 * character.c (syms_of_character): Docstring of
7417 script-representative-chars fixed.
7418
7419 2008-08-31 Eli Zaretskii <eliz@gnu.org>
7420
7421 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7422 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7423 the menu. Allocate larger buffer for `text', to account for
7424 possible ^C characters.
7425
7426 2008-08-31 Martin Rudalics <rudalics@gmx.at>
7427
7428 * xdisp.c (prepare_menu_bars): Don't call
7429 Vwindow_size_change_functions with arg Qt.
7430
7431 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7432
7433 * font.h (font_range):
7434 * fileio.c (report_file_error):
7435 * composite.c (composition_update_it): Yet another int/Lisp_Object
7436 mixup (YAILOM).
7437
7438 2008-08-30 Glenn Morris <rgm@gnu.org>
7439
7440 * data.c (Fmake_variable_frame_local): Doc fix.
7441
7442 * frame.c (Fmodify_frame_parameters): Doc fix.
7443
7444 2008-08-30 Eli Zaretskii <eliz@gnu.org>
7445
7446 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7447 needed by GetTokenInformation.
7448 (w32_system_process_attributes): Check return values of all system
7449 APIs.
7450
7451 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7452 only when the state changes.
7453 (IT_update_begin, IT_update_end): Add termscript trace.
7454
7455 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7456 clipboard is unavailable. Set dst to NULL if it doesn't point to
7457 malloc'ed data.
7458 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7459 passing random values to xfree.
7460
7461 * dispnew.c (init_display): Set `tty's association in frame's
7462 parameters alist to the name of the terminal device, if that is known.
7463
7464 2008-08-29 Jason Rumney <jasonr@gnu.org>
7465
7466 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7467
7468 2008-08-29 Eli Zaretskii <eliz@gnu.org>
7469
7470 * composite.c (fill_gstring_body): Avoid compiler warnings.
7471
7472 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7473 LGLYPH_SET_CODE to avoid compiler warnings.
7474
7475 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
7476
7477 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7478
7479 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7480 LGLYPH_SET_CODE.
7481
7482 2008-08-29 Kenichi Handa <handa@m17n.org>
7483
7484 * fileio.c (report_file_error): Don't downcase the first character
7485 of errstring if it is still unibyte.
7486
7487 2008-08-29 Kenichi Handa <handa@m17n.org>
7488
7489 These changes are to re-implement the automatic composition so
7490 that it doesn't use text properties.
7491
7492 * Makefile.in (ftfont.o): Depend on composite.h.
7493 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7494
7495 * character.h (Vunicode_category_table): Extern it.
7496
7497 * character.c (Vunicode_category_table): New variable.
7498 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7499
7500 * chartab.c (optimize_sub_char_table): Perform more greedy
7501 optimization.
7502
7503 * composite.h (enum composition_method):
7504 Delete COMPOSITION_WITH_GLYPH_STRING.
7505 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7506 (Vcomposition_function_table): Extern it.
7507 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7508 (composition_gstring_put_cache, composition_gstring_from_id)
7509 (composition_gstring_p, composition_gstring_width)
7510 (composition_compute_stop_pos, composition_reseat_it)
7511 (composition_update_it, composition_adjust_point): Extern them.
7512 (Fcomposition_get_gstring): EXFUN it.
7513
7514 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
7515 (Vcomposition_function_table)
7516 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
7517 (gstring_hash_table, gstring_work, gstring_work_headers):
7518 New variables.
7519 (gstring_lookup_cache, composition_gstring_put_cache)
7520 (composition_gstring_from_id, composition_gstring_p)
7521 (composition_gstring_width, fill_gstring_header)
7522 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7523 (composition_reseat_it, composition_update_it)
7524 (composition_adjust_point, Fcomposition_get_gstring): New functions.
7525 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7526 and gstring_work_headers. DEFVAR_LISP composition-function-table.
7527 Defsubr composition_get_gstring.
7528
7529 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7530 cmp_id.
7531 (struct glyph_string): Delete the member gidx. New members
7532 cmp_id, cmp_from, and cmp_to.
7533 (enum it_method): Delete GET_FROM_COMPOSITION.
7534 (struct composition_it): New struct.
7535 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7536 Delete c, len, cmp_id, cmp_len in u.comp.
7537
7538 * font.h (enum lgstring_indices): Delete it.
7539 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
7540 (enum lglyph_indices): Likewise.
7541 (font_range): Adjust extern.
7542 (font_fill_lglyph_metrics): Extern it.
7543
7544 * font.c (QCf): New variable.
7545 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7546 (font_prepare_composition): Delete this function.
7547 (font_range): Type and arguments changed.
7548 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7549 (font_fill_lglyph_metrics): New function.
7550 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
7551 (syms_of_font): DEFSYM QCf. Delete defsubr for
7552 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7553 Defsubr Sfont_shape_gstring.
7554
7555 * fontset.h (font_for_char): Extern it.
7556
7557 * fontset.c (font_for_char): New function.
7558
7559 * ftfont.c: Include composite.h.
7560 (ftfont_resolve_generic_family): Add langset "en" to pattern.
7561 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7562
7563 * indent.c: Include composite.h and dispextern.h.
7564 (check_composition): Delete this function.
7565 (scan_for_column): Handle composition by
7566 composition_compute_stop_pos, composition_reseat_it, and
7567 composition_update_it.
7568 (compute_motion): Likewise.
7569 (Fvertical_motion): Fix checking of composition.
7570
7571 * keyboard.c (adjust_point_for_property): Check composition by
7572 composition_adjust_point.
7573
7574 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
7575 struct glyph_string.
7576
7577 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7578 (append_composite_glyph): Adjust for the change of struct it and
7579 struct glyph.
7580 (produce_composite_glyph): Likewise.
7581
7582 * w32term.c (x_draw_composite_glyph_string_foreground):
7583 Adjust for the change of struct glyph_string.
7584 (x_draw_glyph_string): Likewise.
7585
7586 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7587 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7588
7589 * xdisp.c: Include font.h.
7590 (it_props): Delete the entry for Qauto_composed.
7591 (init_iterator): Initialize it->cmp_it.id to -1.
7592 (compute_stop_pos): Call composition_compute_stop_pos.
7593 (face_before_or_after_it_pos): Adjust for the change of struct it.
7594 (handle_auto_composed_prop): Delete it.
7595 (handle_composition_prop): Handle only static composition.
7596 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7597 from xassert. Initialize it->cmp_it.stop_pos.
7598 (push_it): Adjust for the change of struct it.
7599 (pop_it): Likewise.
7600 (get_next_element): Delete next_element_from_composition.
7601 (CHAR_COMPOSED_P): New macro.
7602 (get_next_display_element): For automatic composition, get a face
7603 from the font in the glyph-string.
7604 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
7605 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
7606 (next_element_from_string): Check if the character at the current
7607 position is composed by CHAR_COMPOSED_P.
7608 (next_element_from_buffer): Likewise.
7609 (next_element_from_composition): Adjust for the change of struct it.
7610 Update it->cmp_it.
7611 (dump_glyph): Adjust for the change of struct glyph.
7612 (fill_composite_glyph_string): Adjust for the change of struct
7613 it and struct glyph. Don't handle automatic composition here.
7614 (fill_gstring_glyph_string): New function.
7615 (x_get_glyph_overhangs): Handle automatic composition.
7616 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
7617 (BUILD_GSTRING_GLYPH_STRING): New macro.
7618 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7619 automatic composition.
7620 (append_composite_glyph): Adjust for the change of struct it and
7621 struct glyph.
7622 (x_produce_glyphs): Adjust for the change of struct it.
7623
7624 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
7625 the change of struct glyph_string.
7626 (x_draw_glyph_string): Likewise.
7627
7628 2008-08-29 Glenn Morris <rgm@gnu.org>
7629
7630 * buffer.c (word-wrap): Doc fix.
7631 * xdisp.c (truncate-partial-width-windows): Doc fix.
7632 Increase default to 50.
7633
7634 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
7635
7636 * xdisp.c (update_tool_bar_unwind): New function.
7637 (update_tool_bar): Temporarily set selected frame before building
7638 tool-bar items.
7639
7640 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
7641
7642 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7643 snprintf, respectively.
7644 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7645
7646 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
7647
7648 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7649 LDFLAGS to GNUstep CC invocation.
7650
7651 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
7652
7653 * indent.c (Fvertical_motion): Revert last change. Handle the
7654 general case where we are moving forward, and PT spans multiple
7655 screen lines.
7656
7657 * eval.c (find_handler_clause): Temporarily increase
7658 max-lisp-eval-depth while printing the backtrace buffer, to
7659 guarantee that help-mode code can run.
7660
7661 2008-08-27 Eli Zaretskii <eliz@gnu.org>
7662
7663 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7664 colors under -rv.
7665 (IT_set_frame_parameters): Don't swap foreground and background
7666 colors if `(reverse . t)' is present in the frame properties.
7667 (internal_terminal_init): Call init_frame_faces only for the
7668 initial frame.
7669
7670 2008-08-27 Andreas Schwab <schwab@suse.de>
7671
7672 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7673
7674 2008-08-27 Andreas Schwab <schwab@suse.de>
7675
7676 * search.c (search_buffer): Set char_base to zero only at the end.
7677
7678 2008-08-27 Kenichi Handa <handa@m17n.org>
7679
7680 * fileio.c (report_file_error): Fix handling of multibyte error string.
7681
7682 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7683
7684 * xterm.c (x_term_init): Temporarily hide the partially
7685 initialized terminal while calling vendor-specific-keysyms.
7686
7687 2008-08-26 Eli Zaretskii <eliz@gnu.org>
7688
7689 * msdos.c (internal_terminal_init): Most initializations done only
7690 once, especially initial_screen_colors[] and termscript open.
7691
7692 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
7693
7694 * eval.c (Fcondition_case): Doc fix.
7695
7696 * widgetprv.h (EmacsFramePart): Change font member to the new font
7697 struct.
7698
7699 * widget.c: Include character.h and font.h for XSETFONT.
7700 (setup_frame_gcs): Compute X font id from font struct, just once.
7701
7702 2008-08-26 Eli Zaretskii <eliz@gnu.org>
7703
7704 * term.c (get_named_tty): Fix last change.
7705
7706 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
7707
7708 * indent.c (Fvertical_motion): If moving forward starting from a
7709 multi-line string, move the iterator to the last line of that string.
7710
7711 2008-08-25 Eli Zaretskii <eliz@gnu.org>
7712
7713 * frame.c (do_switch_frame): Mark previously displayed frame as
7714 obscured for FRAME_MSDOS_P frames as well.
7715
7716 2008-08-24 Eli Zaretskii <eliz@gnu.org>
7717
7718 * frame.c (make_terminal_frame): Initialize f->terminal,
7719 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7720 Set the top frame to newly created frame.
7721 (Fmake_terminal_frame): Reuse the_only_display_info.
7722
7723 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7724 estimating available memory.
7725
7726 2008-08-23 David Reitter <david.reitter@gmail.com>
7727
7728 * nsterm.m (ns_draw_window_cursor): Don't call
7729 NSDisableScreenUpdates and NSEnableScreenUpdates on
7730 non-NS_IMPL_COCOA systems.
7731
7732 2008-08-23 Andreas Schwab <schwab@suse.de>
7733
7734 * process.c (procfs_system_process_attributes): Fix use of
7735 uninitialized variables.
7736
7737 2008-08-23 Eli Zaretskii <eliz@gnu.org>
7738
7739 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7740
7741 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7742 calling tty-set-up-initial-frame-faces.
7743
7744 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7745 Allow MSDOS frames along with X frames.
7746
7747 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7748 addition to output_termcap.
7749
7750 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7751
7752 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7753 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7754 highlight.
7755
7756 * process.c [!subprocesses]: Define QCname.
7757 (syms_of_process): Intern and staticpro it.
7758
7759 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
7760 Adjust for changes in encoding/decoding routines.
7761 Use encode_coding_object and decode_coding_object instead of
7762 encode_coding and decode_coding.
7763
7764 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
7765
7766 * dosfns.c: Include frame.h before termhooks.h.
7767 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7768 variable termscript.
7769
7770 * s/msdos.h (USER_FULL_NAME): Define.
7771 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7772
7773 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7774 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7775 pw->pw_gecos.
7776
7777 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7778 SELECTED_FRAME as additional (1st) argument.
7779 (tty_read_avail_input): Handle output_msdos_raw in
7780 addition to output_termcap.
7781
7782 * msdos.c: Include frame.h before termhooks.h.
7783 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7784 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7785 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7786 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7787 (IT_set_terminal_modes, IT_reset_terminal_modes)
7788 (IT_set_frame_parameters): Use tty->termscript instead of a global
7789 variable termscript.
7790 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7791 global variable terminal_coding. Don't refer to
7792 Vnonascii_translation_table.
7793 (internal_terminal_init): Set Vwindow_system in current_kboard.
7794 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7795 Announce date and time of session start, if termscript is open.
7796 Don't zero out the_only_display_info (it is done in
7797 term.c:init_tty). Open termscript only of not already open.
7798 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
7799 here instead of dos_ttraw. Don't initialize display if this is an
7800 initial tty. Don't set FRAME_FONT.
7801 (Vwindow_system_version): Bump to 23.
7802 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7803 is available, set up mouse_position_hook.
7804 (dos_ttraw, IT_set_terminal_modes): If called with initial
7805 terminal, do nothing.
7806 (IT_set_frame_parameters): Handle the Qtty_type frame
7807 parameter by calling internal_terminal_init.
7808 (dos_set_window_size, show_mouse_face)
7809 (clear_mouse_face, IT_note_mode_line_highlight)
7810 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7811 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7812 (initialize_msdos_display): New function.
7813 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7814 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7815 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7816 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
7817 Accept additional argument: a pointer to a frame. Update all callers.
7818 (request_sigio, unrequest_sigio): Don't define, now defined on
7819 sysdep.c.
7820 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7821
7822 * term.c [MSDOS]: Include msdos.h.
7823 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7824 conditional to DOS_NT. Allow only one call to this function in a
7825 session. Don't allocate a new struct tty_display_info; instead,
7826 reuse the_only_display_info. Call get_tty_size to get screen
7827 dimensions. Call init_baud_rate to set bad_rate.
7828 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7829 (Fsuspend_tty) [MSDOS]: Don't close input and output.
7830 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
7831 (get_tty_terminal, get_named_tty, Ftty_type)
7832 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7833 output_termcap.
7834 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7835 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
7836 only when subprocesses are supported.
7837
7838 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7839 f->output_data.x.
7840 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7841 terminal devices.
7842
7843 * msdos.h: Remove definition of struct x_display_info and struct
7844 x_output.
7845 (FRAME_FONT): Use output_data.tty.
7846 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
7847 (struct x_display_info): Rename from display_info. Update all users in
7848 msdos.c.
7849 (struct x_output): Remove background_pixel and foreground_pixel.
7850 (the_only_display_info): Rename from the_only_x_display.
7851 (dos_ttraw): Update prototype.
7852
7853 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7854 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7855
7856 2008-08-23 Jason Rumney <jasonr@gnu.org>
7857
7858 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7859 (fn_TIFFSetDirectory): New library function used.
7860 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7861 (tiff_load): Use :index to select among multiple images. Set count
7862 property when multiple images exist.
7863 (gif_format): Use :index, not :image.
7864
7865 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
7866
7867 * xdisp.c (try_scrolling): Check INT_MAX instead of
7868 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7869 to obtain INT_MAX.
7870
7871 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7872
7873 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7874
7875 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7876
7877 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7878 GNUstep library location.
7879
7880 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
7881
7882 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7883 before using it.
7884
7885 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7886
7887 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7888
7889 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7890 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7891 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7892 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7893 (EmacsApp-cursor_blink_handler): Remove declaration.
7894 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7895 match 01 Feb 2008 changes in xterm.c.
7896 (ns_read_socket): Add cast to avoid warning.
7897 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7898 GNUstep.
7899
7900 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
7901
7902 * xselect.c (x_get_foreign_selection): Return nil if desired
7903 selection could not be obtained, instead of signalling an error.
7904
7905 2008-08-20 David Reitter <david.reitter@gmail.com>
7906
7907 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7908 * nsterm.m: Remove ns-specific code for cursor blinking.
7909 (ns_draw_window_cursor): Clear cursor properly rather than
7910 redrawing the area. Respect width of bar cursors.
7911 These changes enable the use of generic blink-cursor-mode and
7912 generic cursor types in NS and support smooth cursor movements (do
7913 not blink off after command).
7914 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7915 Nextstep, too.
7916
7917 2008-08-19 Kenichi Handa <handa@m17n.org>
7918
7919 * font.c (Vfont_log_deferred): New variable.
7920 (font_add_log): Check Vfont_log_deferred.
7921 (font_deferred_log): New function.
7922
7923 * font.h (font_deferred_log): Extern it.
7924
7925 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7926 for sorting.
7927 (face_for_char): Use deferred log.
7928
7929 2008-08-18 Kenichi Handa <handa@m17n.org>
7930
7931 * fontset.c (face_for_char): Add font log.
7932
7933 * font.c (font_add_log): Add the font properties :script, :lang,
7934 and :otf in the log.
7935
7936 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
7937
7938 * xdisp.c: Remove dead code.
7939 (handle_invisible_prop, next_overlay_string): Defer call to
7940 setup_for_ellipsis.
7941 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7942
7943 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
7944
7945 * xfaces.c (lookup_derived_face): Properly handle possible zero
7946 return value of get_lface_attributes.
7947 (merge_faces): Don't tell lookup_derived_face to signal an error
7948 if face is not found.
7949
7950 * dired.c (Fdirectory_files): Doc fix.
7951
7952 * process.c (make_process): Initialize kill_without_query struct
7953 member.
7954
7955 2008-08-15 Eli Zaretskii <eliz@gnu.org>
7956
7957 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7958 Alternative calculation of totphys for Visual Studio 6.
7959
7960 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7961
7962 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7963 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7964 All users changed.
7965 (stat): Only root directory passed to GetDriveType. Allow RAM
7966 disk as well as local fixed disk when w32-get-true-file-attributes
7967 is set to `local'.
7968 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7969 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7970 (w32_cached_id, w32_add_to_cache): New functions.
7971 (get_name_and_id): Look account names in the cache before calling
7972 lookup_account_sid.
7973 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7974 New initialization flags.
7975 (globals_of_w32): Initialize them to zero.
7976 (w32_system_process_attributes): Use w32_cached_id and
7977 w32_add_to_cache.
7978
7979 2008-08-14 Lawrence Mitchell <wence@gmx.li>
7980
7981 * lread.c (Fread_char, Fread_char_exclusive): If no character
7982 event is read before timeout is reached, return nil, rather than
7983 converting to a number.
7984
7985 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
7986
7987 * fns.c (use_dialog_box): Doc fix.
7988
7989 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7990 on OS X.
7991
7992 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
7993
7994 * frame.c (Qns_parse_geometry): New var.
7995 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7996
7997 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
7998
7999 * xdisp.c (x_produce_glyphs): Handle the case when font has no
8000 space character in calculating tabs.
8001
8002 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
8003
8004 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
8005
8006 2008-08-10 Glenn Morris <rgm@gnu.org>
8007
8008 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
8009 silence gcc "limited range of data type" warnings in some
8010 make_fixnum_or_float calls.
8011
8012 2008-08-09 Eli Zaretskii <eliz@gnu.org>
8013
8014 * w32.c (w32_system_process_attributes): If the process does not
8015 exist, return nil.
8016
8017 * w32.c: Include thelp32.h, psapi.h and coding.h.
8018 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
8019 declarations.
8020 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
8021 (Process32Next_Proc): New typedefs.
8022 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
8023 (g_b_init_process32_next, g_b_init_open_thread_token)
8024 (g_b_init_impersonate_self, g_b_init_revert_to_self)
8025 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
8026 (g_b_init_get_process_working_set_size)
8027 (g_b_init_global_memory_status_ex): New static variables.
8028 (globals_of_w32): Initialize them.
8029 (create_toolhelp32_snapshot, process32_first, process32_next)
8030 (open_thread_token, impersonate_self, revert_to_self)
8031 (get_process_memory_info, get_process_working_set_size)
8032 (global_memory_status, global_memory_status_ex): New wrapper
8033 functions.
8034 (w32_list_system_processes, w32_system_process_attributes)
8035 (enable_privilege, restore_privilege, ltime, process_times):
8036 New functions.
8037 (convert_time_raw): New function.
8038 (convert_time): Remove conversion of FILETIME into time in 100
8039 nsec units, call convert_time_raw instead.
8040
8041 * process.h (w32_list_system_processes, w32_system_process_attributes):
8042 Add prototypes.
8043 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
8044 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
8045 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
8046 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
8047
8048 * process.c (Fsystem_process_attributes): Doc fix.
8049
8050 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
8051
8052 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
8053 a continued multi-char glyph; if so, advance to the actual glyph.
8054
8055 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8056
8057 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
8058
8059 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
8060 (.m.o): Use it.
8061 * config.in: Regenerate.
8062
8063 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
8064
8065 * xdisp.c (redisplay_window): Revert last change.
8066 (try_window): Check bottom scroll margin too.
8067
8068 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8069
8070 * config.in: Regenerate.
8071
8072 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
8073 -list-load-path-shadows'.
8074 (nsgui.h): Reduce number of things depending on it.
8075
8076 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
8077
8078 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
8079 instead of window-end which does the wrong thing at eob.
8080 (try_cursor_movement): Minor optimization.
8081 (redisplay_window): If scroll margin is defined, don't assume
8082 window doesn't need scrolling.
8083
8084 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8085
8086 * config.in: Regenerate.
8087
8088 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
8089 (mostlyclean): Don't delete *.d under NS.
8090
8091 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
8092
8093 2008-08-06 Kenichi Handa <handa@m17n.org>
8094
8095 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
8096
8097 2008-08-06 Andreas Schwab <schwab@suse.de>
8098
8099 * config.in: Regenerate.
8100
8101 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
8102
8103 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
8104 forcing a window start.
8105
8106 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
8107 (auto_save_1): Update modtime when auto-save-list-file-name is on.
8108
8109 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8110
8111 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
8112 argument.
8113
8114 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
8115
8116 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
8117 <scroll-down-aggressively, before-change-functions>:
8118 <after-change-functions>: Reflow docstrings.
8119
8120 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8121 Ken Raeburn <raeburn@gnu.org>
8122
8123 Dock menu customization, based on a patch by Ken Raeburn, plus some
8124 other fixes.
8125 * nsmenu.m (dockMenu): New variable.
8126 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
8127
8128 * nsterm.h (dockMenu): Declare.
8129
8130 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
8131 (ns_term_init): Initialize dockMenu.
8132 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
8133 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
8134 left.
8135
8136 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
8137
8138 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
8139
8140 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
8141
8142 * config.in: Regenerate.
8143
8144 2008-08-04 Seiji Zenitani <zenitani@mac.com>
8145
8146 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
8147
8148 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
8149
8150 * nsterm.h (find_and_call_menu_selection): Fix prototype.
8151
8152 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8153
8154 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
8155
8156 * keyboard.h: Comment an #endif.
8157
8158 * lisp.h (have_menus_p): Adjust comment.
8159
8160 * menu.c (find_and_return_menu_selection): Fix comparison with
8161 client_data.
8162
8163 * nsmenu.m (popup_activated_flag): New variable.
8164 (popup_activated): New function.
8165 (menu-or-popup-active-p): New exported lisp definition.
8166 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
8167 when popup done.
8168 (ns_popup_dialog): Set popup_activated_flag.
8169
8170 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
8171 version for GNUstep (handled by conditional typedef in nsterm.m).
8172 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
8173 in rgb.txt).
8174
8175 * process.c (init_process): Use DARWIN_OS, not DARWIN.
8176
8177 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
8178
8179 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
8180
8181 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
8182 shortcircuit if popup_activated like GTK and X toolkit.
8183
8184 * m/inter386.h: Change DARWIN to DARWIN_OS.
8185
8186 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
8187 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
8188 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
8189 comment on NO_SOCK_SIGIO.
8190
8191 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
8192
8193 * nsterm.m (windowDidResize): Remove stopModal call.
8194
8195 2008-08-03 Andreas Schwab <schwab@suse.de>
8196
8197 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
8198 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
8199
8200 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
8201
8202 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
8203 Don't use uninitialized pointer variable when using getrlimit.
8204
8205 2008-08-02 Jason Rumney <jasonr@gnu.org>
8206
8207 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
8208
8209 2008-08-02 Eli Zaretskii <eliz@gnu.org>
8210
8211 * alloc.c (NSTATICS): Bump to 0x640.
8212
8213 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
8214
8215 * lisp.h: Add prototype for directory_files_internal.
8216
8217 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
8218 New functions.
8219 (syms_of_process): Defsubr them. Add initializations for various
8220 Q* symbols used in procfs_system_process_attributes.
8221 (procfs_list_system_processes, procfs_system_process_attributes)
8222 [HAVE_PROCFS]: New functions.
8223 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
8224 (procfs_get_total_memory): New functions.
8225
8226 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
8227
8228 * xfaces.c (Fx_load_color_file): Fix previous change;
8229 it is #ifdef WINDOWSNT, not WINDOWS_NT.
8230
8231 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
8232
8233 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
8234
8235 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8236
8237 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
8238
8239 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
8240
8241 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
8242
8243 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
8244 define NSApplicationDelegateReplySuccess.
8245 (EmacsView -converstationIdentifier): Use long instead of
8246 NSInteger for GNUstep, since it doesn't have NSInteger.
8247
8248 * xmenu.c: Revert last change.
8249
8250 * keyboard.h: Fix last change.
8251
8252 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
8253
8254 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
8255 on Windows.
8256
8257 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8258
8259 Warning clearing and clean-up in NS port.
8260 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
8261 Add prototypes.
8262 * nsgui.h (FACE_DEFAULT): Remove, unused.
8263 (XGCValues): Change colors to unsigned long.
8264 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
8265 nsterm.m.
8266 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
8267 (ns_list_fonts): Remove, unused.
8268 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
8269 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
8270 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
8271 (nsfont_draw): Compare face colors to 0, not nil.
8272 * nsmenu.m (struct widget_value): Drop unneeded declaration.
8273 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
8274 (-addSubmenuWithTitle:): Use NSMenuItem class.
8275 (ns_popup_menu): Use NO, not NULL, for enabled setting.
8276 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
8277 (ns_clip_to_row): Make gc arg a BOOL.
8278 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
8279 ns_clip_to_row() call.
8280 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
8281 used). Cast FRAME_FONT assignments.
8282 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
8283 (ns_string_to_lispmod): Change arg to const char.
8284 (ns_term_init): Use NSMenuItem class.
8285 (EmacsApp -openFile:): Move to different section of file.
8286 (EmacsApp -application:openFiles:): Don't return a value, call
8287 -replyToOpenOrPrint:.
8288 (EmacsView -keyDown:): Fix up cast.
8289 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
8290 (EmacsView -menuDown:): Cast tag in call to
8291 find_and_call_menu_selection().
8292 (ns_list_fonts): Remove, unused.
8293 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
8294 (ns_fontname_to_xlfd): Make static.
8295 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
8296 Remove prototypes (now in keyboard.h).
8297 (next_menubar_widget_id): Remove, unused.
8298 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
8299 Remove prototypes (now in keyboard.h).
8300 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
8301
8302 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
8303
8304 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
8305 (floatfns.o): Depend on syssignal.h.
8306 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
8307
8308 * systty.h: Fix previous change that removed BSD_TERMIOS.
8309 Add comments to #ifdefs.
8310
8311 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8312
8313 * w32fns.c (w32-load-color-file): Remove.
8314 (x-open-connection): Use renamed Fx_load_color_file.
8315 * xfaces.c (x-load-color-file): Add.
8316 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
8317 Emacs.clr.
8318 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
8319
8320 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
8321
8322 * dbusbind.c (Fdbus_call_method_asynchronously)
8323 (Fdbus_method_error_internal): New defuns.
8324 (xd_read_message): Handle also reply messages.
8325 (Vdbus_registered_functions_table): Extend docstring.
8326
8327 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
8328
8329 * keyboard.c (gobble_input): Fix previous change.
8330
8331 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8332
8333 * bitmaps/README:
8334 * xfns.c:
8335 * termcap.c:
8336 * term.c:
8337 * syswait.h:
8338 * systty.h:
8339 * systime.h:
8340 * syssignal.h:
8341 * sysdep.c:
8342 * process.h:
8343 * process.c:
8344 * print.c:
8345 * ndir.h:
8346 * lread.c:
8347 * keyboard.c:
8348 * getpagesize.h:
8349 * floatfns.c:
8350 * fileio.c:
8351 * emacs.c:
8352 * doc.c:
8353 * dispnew.c:
8354 * dired.c:
8355 * data.c:
8356 * callproc.c:
8357 * buffer.c:
8358 * README:
8359 * Makefile.in:
8360 * s/template.h:
8361 * s/msdos.h:
8362 * m/vax.h: Remove VMS support.
8363 * s/vms.h:
8364 * vlimit.h:
8365 * uaf.h:
8366 * temacs.opt:
8367 * param.h:
8368 * ioctl.h: Remove file.
8369
8370 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8371
8372 * s/ms-w32.h (MULTI_KBOARD): Remove.
8373 * xterm.c:
8374 * xselect.c:
8375 * xfns.c:
8376 * window.c:
8377 * w32term.c:
8378 * w32fns.c:
8379 * terminal.c:
8380 * termhooks.h:
8381 * term.c:
8382 * sysdep.c:
8383 * keyboard.h:
8384 * keyboard.c:
8385 * frame.h:
8386 * frame.c:
8387 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8388 * config.in: Regenerate.
8389
8390 2008-07-30 Jason Rumney <jasonr@gnu.org>
8391
8392 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8393
8394 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8395 (w32font_open_internal): Get unicode version of textmetrics.
8396 Don't enable or disable glyph indices here.
8397 (w32font_open): Disable use of glyph indices.
8398
8399 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8400
8401 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
8402
8403 * minibuf.c (Vread_buffer_function): Doc fix.
8404
8405 2008-07-30 John Paul Wallington <jpw@pobox.com>
8406
8407 * minibuf.c (read_buffer_completion_ignore_case): New var.
8408 (Fread_buffer): Use it.
8409
8410 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8411
8412 * systty.h (sensemode): Remove empty #if. Remove reference to
8413 BSD_TERMIOS, unused.
8414
8415 * sysdep.c: Remove reference to DGUX.
8416 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8417
8418 * config.in: Regenerate.
8419
8420 2008-07-30 Jason Rumney <jasonr@gnu.org>
8421
8422 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8423
8424 2008-07-29 Jason Rumney <jasonr@gnu.org>
8425
8426 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8427 is populated.
8428 (uniscribe_encode_char): Always use uniscribe.
8429 Avoid using context if cache is populated.
8430
8431 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8432
8433 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8434 open menu.
8435
8436 * gtkutil.c (menu_nav_ended): Remove.
8437 (create_menus): Remove signal connect for menu_nav_ended.
8438
8439 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
8440
8441 * xdisp.c (redisplay_window): Check return value of
8442 compute_window_start_on_continuation_line before forcing a window
8443 start.
8444
8445 2008-07-28 Jason Rumney <jasonr@gnu.org>
8446
8447 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8448
8449 * w32term.c (w32_enable_unicode_output, cleartype_active):
8450 Remove obsolete display options.
8451 (x_draw_glyph_string_background): Don't use old cleartype_active
8452 workaround.
8453 (w32_initialize): Remove cleartype_active initialization.
8454 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8455
8456 2008-07-28 Andreas Schwab <schwab@suse.de>
8457
8458 * lisp.h (init_weak_hash_tables, syms_of_font)
8459 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8460 (remove_hash_entry): Don't declare.
8461 * eval.c (maybe_call_debugger): Make static and move before use.
8462 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8463 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8464 * xterm.h (x_set_frame_alpha): Declare.
8465
8466 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8467
8468 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8469 (create_menus): Connect selection-done to menu_nav_ended.
8470
8471 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8472
8473 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8474 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8475 parameter with read of 'alpha' one.
8476 (Qns_frame_parameter): Remove.
8477 * nsselect.m (selection-coding-system)
8478 (next-selection-coding-system, Vselection_coding_system)
8479 (Vnext_selection_coding_system): Drop.
8480
8481 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8482
8483 * nsfns.m (do-applescript, do_applescript): Rename to
8484 ns-do-applescript, ns_do_applescript, and move within file.
8485
8486 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8487
8488 Remove support for Mac Carbon.
8489 * mactoolbox.c:
8490 * macterm.h:
8491 * macterm.c:
8492 * macselect.c:
8493 * macmenu.c:
8494 * macgui.h:
8495 * macfns.c:
8496 * mac.c: Remove file.
8497 * s/darwin.h:
8498 * m/intel386.h:
8499 * xfaces.c:
8500 * xdisp.c:
8501 * window.c:
8502 * tparam.c:
8503 * termhooks.h:
8504 * termcap.c:
8505 * term.c:
8506 * syssignal.h:
8507 * sysselect.h:
8508 * sysdep.c:
8509 * process.c:
8510 * lread.c:
8511 * lisp.h:
8512 * keyboard.c:
8513 * image.c:
8514 * fringe.c:
8515 * frame.h:
8516 * frame.c:
8517 * fontset.c:
8518 * font.h:
8519 * font.c:
8520 * fns.c:
8521 * fileio.c:
8522 * emacs.c:
8523 * dispnew.c:
8524 * dispextern.h:
8525 * config.in:
8526 * atimer.c:
8527 * Makefile.in: Remove code for Carbon.
8528
8529 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8530
8531 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8532
8533 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8534
8535 * macterm.h (kCGBitmapByteOrder32Host): New define for
8536 non-universal SDKs.
8537
8538 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8539 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8540
8541 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8542 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8543
8544 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8545
8546 * w32inevt.c: Include dispextern.h.
8547
8548 2008-07-26 Andreas Schwab <schwab@suse.de>
8549
8550 * print.c (print_object): Fix off-by-one in last change.
8551
8552 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
8553
8554 * term.c (syms_of_term): Don't initialize default_orig_pair,
8555 default_set_foreground and default_set_background on Windows.
8556
8557 2008-07-25 Jason Rumney <jasonr@gnu.org>
8558
8559 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8560 ScriptItemize. Clean up return value checking. Remove unused
8561 variables.
8562 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8563 shaping engine.
8564
8565 * w32font.c (w32font_has_char): Handle the case where we can't
8566 determine the script for a character.
8567
8568 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
8569
8570 * term.c (syms_of_term): Initialize default_orig_pair,
8571 default_set_foreground, and default_set_background.
8572
8573 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8574 clash (bug#86).
8575 (getloadavg): Callers changed.
8576
8577 * image.c (svg_load_image): Fix last change.
8578 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8579 image size is valid. Use g_object_unref instead of deprecated
8580 rsvg_handle_free to free rsvg handle.
8581 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8582
8583 2008-07-25 Jason Rumney <jasonr@gnu.org>
8584
8585 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8586 surrogates before looking up glyph index.
8587 (w32font_text_extents): Encode as surrogates if falling back to
8588 functions that need UTF-16 wide chars.
8589
8590 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8591 BMP as surrogates before looking up glyph index.
8592
8593 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
8594
8595 * image.c (svg_load_image): Check for failure in return value of
8596 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8597
8598 2008-07-25 Jason Rumney <jasonr@gnu.org>
8599
8600 * w32font.c (Fx_select_font): Reverse sense of second arg.
8601
8602 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8603
8604 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8605 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8606
8607 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8608 (PURESIZE): Use it.
8609
8610 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8611
8612 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8613 * m/alpha.h (TEXT_END):
8614 * m/ibmrs6000.h (TEXT_END):
8615 * m/macppc.h (TEXT_END):
8616 * s/darwin.h (TEXT_END):
8617 * s/msdos.h (TEXT_END): Remove, unused.
8618 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8619 * s/cygwin.h: Remove comment.
8620
8621 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8622 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8623 * m/intel386.h (DOT_GLOBAL_START):
8624 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8625 (USG): Remove, file not used on USG platforms.
8626
8627 * Makefile.in (HAVE_X11): Remove empty #else.
8628
8629 2008-07-24 Andreas Schwab <schwab@suse.de>
8630
8631 * fileio.c (Finsert_file_contents): Properly adjust undo list
8632 after format conversion.
8633
8634 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8635
8636 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8637 (menu_nav_ended): Remove.
8638 (create_menus): Remove signal connect for menu_nav_ended.
8639 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8640 create_menus.
8641 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8642
8643 2008-07-23 Jason Rumney <jasonr@gnu.org>
8644
8645 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8646 with opened font.
8647 (w32font_open): Set font type to gdi.
8648
8649 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8650
8651 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8652
8653 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8654 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8655 defines it.
8656 * unexec.c (ADDR_CORRECT): Define unconditionally.
8657
8658 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8659
8660 * unexec.c: Remove code depending on !COFF and USG, the file is
8661 not used for such systems.
8662
8663 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8664 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8665 (LD_SWITCH_SYSTEM_1): Remove, update users.
8666
8667 * s/darwin.h (DATA_END):
8668 * m/intel386.h (DATA_END):
8669 * m/ibmrs6000.h (DATA_END):
8670 * m/alpha.h (DATA_END): Remove, unused.
8671
8672 * config.in: Regenerate.
8673 * s/ms-w32.h (subprocesses): Define unconditionally.
8674 * s/template.h (subprocesses): Update comment.
8675 * s/vms.h (subprocesses):
8676 * s/usg5-4.h (subprocesses):
8677 * s/hpux10-20.h (subprocesses):
8678 * s/gnu-linux.h (subprocesses):
8679 * s/cygwin.h (subprocesses):
8680 * s/bsd-common.h (subprocesses):
8681 * s/aix4-2.h (subprocesses):
8682 * s/darwin.h (subprocesses): Do not define, defined by default now.
8683
8684 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8685 Remove all references.
8686 (temacs): Add GNUstep specific ld flags.
8687
8688 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8689 similarly to what X does.
8690
8691 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8692
8693 * nsfns.m (x-list-fonts): Remove.
8694 (syms_of_nsfns): Drop the x-list-fonts declaration.
8695 * nsterm.m: Get rid of remaining "//" comments.
8696
8697 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
8698
8699 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8700
8701 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8702 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8703 (Fns_own_selection_internal, Fx_disown_selection_internal)
8704 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8705
8706 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8707 ... */' style of docstrings. Doc fixes.
8708
8709 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8710
8711 * terminfo.c (UP, BC, PC): Undo previous change.
8712
8713 * nsfns.m: Rename ns prefixed functions/variables to the
8714 corresponding x versions. Update references.
8715
8716 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8717
8718 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8719
8720 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8721
8722 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8723 Remove forwarding functions.
8724 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8725 non-static.
8726 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8727 non-static.
8728 (ns_frame_parm_handlers): Use the new names.
8729 (syms_of_nsfns): Move to the end of file.
8730
8731 * nsterm.m (syms_of_nsterm): Move to the end of file.
8732
8733 * dispnew.c (init_display): Remove code for X10.
8734
8735 2008-07-22 Jason Rumney <jasonr@gnu.org>
8736
8737 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8738 bare drive.
8739
8740 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8741
8742 * nsterm.m (syms_of_nsterm): Remove debugging println.
8743
8744 2008-07-22 David Reitter <david.reitter@gmail.com>
8745
8746 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8747 Carbon implementation of the same functionality: execute arbitrary
8748 AppleScript code.
8749
8750 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8751
8752 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8753 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8754 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8755 (Fx_display_mm_height, Fx_display_mm_width)
8756 (Fx_display_backing_store, Fx_display_visual_class)
8757 (Fx_display_save_under, Fx_open_connection)
8758 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8759 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8760 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8761 (Fx_display_pixel_width, Fx_display_pixel_height)
8762 (Fx_display_usable_bounds, Fx_display_planes)
8763 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8764 ... */' style of docstrings.
8765
8766 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8767
8768 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8769 on this platform.
8770 (mips):
8771 * m/iris4d.h (mips): Do not define.
8772 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8773
8774 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8775
8776 * image.c:
8777 * nsfns.m:
8778 * nsselect.m:
8779 * nsterm.h:
8780 * nsterm.m: Rename ns prefixed functions/variables to the
8781 corresponding x versions. Update references.
8782
8783 * m/ibms390x.h (NO_REMAP): Do not undefine.
8784
8785 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8786
8787 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
8788
8789 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8790 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8791 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8792 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8793 (Fns_display_mm_height, Fns_display_mm_width)
8794 (Fns_display_backing_store, Fns_display_visual_class)
8795 (Fns_display_save_under, Fns_open_connection)
8796 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8797 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8798 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8799 (Fns_display_pixel_width, Fns_display_pixel_height)
8800 (Fns_display_usable_bounds, Fx_display_planes)
8801 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8802
8803 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8804
8805 * print.c (print_object): Check print_depth before searching for
8806 circularities.
8807
8808 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
8809
8810 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8811 only sprintf.
8812
8813 2008-07-21 Kenichi Handa <handa@m17n.org>
8814
8815 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8816
8817 2008-07-20 Andreas Schwab <schwab@suse.de>
8818
8819 * syntax.c (find_start_pos, find_start_value)
8820 (find_start_value_byte, find_start_begv, find_defun_start)
8821 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8822
8823 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8824
8825 * s/sol2-3.h: Insert contents of s/sol2.h.
8826 (LD_SWITCH_SYSTEM): Remove redundant definition.
8827 * s/sol2.h: Remove, unused.
8828
8829 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8830
8831 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8832
8833 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8834
8835 * Makefile.in (ns_appdir): Fix typo in find command.
8836
8837 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8838
8839 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8840
8841 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8842 added not supported anymore.
8843
8844 * s/usg5-4-2.h (LIBS_SYSTEM):
8845 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8846
8847 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8848 * s/lynxos.h (GETPGRP_NO_ARG):
8849 * s/hpux10-20.h (NO_SIOCTL_H):
8850 * s/gnu.h (GETPGRP_NO_ARG):
8851 * s/gnu-linux.h (NO_SIOCTL_H):
8852 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8853 * s/cygwin.h (GETPGRP_NO_ARG):
8854 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8855 (C_DEBUG_SWITCH): Remove duplicate definition.
8856
8857 * m/ibms390.h: Remove boilerplate comments.
8858
8859 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8860
8861 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8862 (wait_reading_process_output): Remove code for SunOS, platform not
8863 supported anymore. Use SOLARIS2 instead of sun.
8864
8865 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8866
8867 * font.c (font_open_by_name): Under NS, default lface height to zero.
8868 (font_open_for_lface): Under NS, set size based on frame fontsize.
8869 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8870 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8871
8872 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8873
8874 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8875 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8876 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8877 YES/NO.
8878 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8879 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8880 * Makefile.in (clean): Clear out build destination dir.
8881
8882 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8883
8884 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8885 xterm, xselect.
8886 * lisp.h: Remove declaration of hash_remove.
8887 * nsgui.h: Remove redefinitions of hash_remove.
8888 * fns.c (hash_remove): Rename to hash_remove_from_table.
8889
8890 2008-07-19 Seiji Zenitani <zenitani@mac.com>
8891
8892 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8893 strdup() the family UTF8String before modifying it.
8894
8895 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8896
8897 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8898 NS_FACE_BACKGROUND with 0 instead of nil.
8899 * nsfont.m (nsfont_draw): Same.
8900
8901 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
8902
8903 * nsfns.m (ns_set_background_color): Fix crash.
8904
8905 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
8906
8907 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8908
8909 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8910
8911 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8912
8913 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8914
8915 * gtkutil.c: Include <config.h> instead of "config.h".
8916
8917 * lisp.h (Foverlay_buffer): Add EXFUN.
8918
8919 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8920 child process to complete child_setup. Undo 2005-09-21 change.
8921
8922 * s/darwin.h: Mention setsid after vfork.
8923
8924 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8925
8926 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8927 Depend on macgui.h.
8928
8929 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8930 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8931
8932 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8933 and f19.
8934 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8935
8936 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8937 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8938 Remove enumerators.
8939
8940 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8941 Check if FACE_FROM_ID returns NULL.
8942
8943 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8944
8945 * w32inevt.c (change_frame_size): Remove extern declaration.
8946 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8947 change_frame_size.
8948
8949 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8950
8951 * getloadavg.c: Revert last change (2008-07-15).
8952
8953 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8954
8955 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
8956 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
8957 from configure.
8958
8959 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8960
8961 * s/sol2.h:
8962 * s/sol2-4.h: Reorganize conditionals.
8963
8964 * ecrt0.c: Remove code depending on m68000, not used anymore.
8965
8966 * fns.c (hash_remove): Make static.
8967 * lisp.h (hash_remove): Don't prototype.
8968
8969 * m/ibmrs6000.h:
8970 * m/ibms390x.h:
8971 * m/macppc.h: Remove boilerplate comments.
8972
8973 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8974 Solaris, which does not need them.
8975
8976 * m/vax.h: Remove comments about unsupported systems.
8977
8978 * s/darwin.h: Reorganize ifdefs.
8979
8980 2008-07-17 Andreas Schwab <schwab@suse.de>
8981
8982 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8983
8984 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8985
8986 Use SDATA. Follow coding convention of placing operators at
8987 beginning of next line rather than end of previous line, and placing
8988 spaces around infix operators.
8989
8990 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8991 in case it was defined already.
8992 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8993 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8994 ns_default.
8995 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8996 Lisp_Objects.
8997 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8998 (ns_defined_color, ns_color_to_lisp): Declare.
8999 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
9000 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
9001 it's accepted even with USE_LISP_UNION_TYPE.
9002 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
9003 (update_frame_tool_bar): Remove apparently obsolete tests for
9004 non-integerness of f->tool_bar_lines.
9005 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
9006 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
9007 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
9008 (nsfont_open): Don't confuse NULL for Qnil.
9009 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
9010 * menu.h (find_and_call_menu_selection):
9011 * menu.c (find_and_call_menu_selection): Use just int for vector size.
9012 (find_and_return_menu_selection): Always return something.
9013 * frame.h: Include dispextern.h for Display_Info.
9014 (display_x_get_resource): Declare.
9015
9016 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
9017
9018 * syntax.c: Remove stdio.h include accidentally introduced in
9019 Emacs.app commit.
9020 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
9021 NS_IMPL_COCOA.
9022 * keyboard.c (handle_async_input, input_available_signal): Remove
9023 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
9024
9025 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9026
9027 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
9028 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
9029 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
9030 Use SDATA.
9031
9032 * keymap.c: Remove all NS-specific code.
9033 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
9034 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
9035 where_is_preferred_modifier, return a different value depending on how
9036 preferred is the binding.
9037 (where_is_internal): Adjust accordingly.
9038 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
9039 Adjust to new preferred_sequence_p.
9040 (syms_of_keymap): Declare `where-is-preferred-modifier'.
9041 * keyboard.c (parse_solitary_modifier): Not static any more.
9042 * keyboard.h (parse_solitary_modifier): Declare.
9043
9044 2008-07-16 Andreas Schwab <schwab@suse.de>
9045
9046 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
9047 of easymenu.
9048
9049 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
9050
9051 * xdisp.c (move_it_in_display_line): Account for word wrap, so
9052 that we don't move off the line.
9053
9054 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9055
9056 * keyboard.c (Qsuper): Remove.
9057 (parse_menu_item): Don't call where_is_internal specially for NS.
9058
9059 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9060
9061 * s/gnu-linux.h: Remove boilerplate comments.
9062
9063 * m/alpha.h (__ELF__): Consolidate conditions.
9064
9065 * m/m68k.h (linux): Use GNU_LINUX instead.
9066 Remove boilerplate comments.
9067
9068 * m/intel386.h: Undo refactoring from previous change.
9069 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
9070 too, remove dead code.
9071 (linux): Use GNU_LINUX instead.
9072
9073 2008-07-16 Jason Rumney <jasonr@gnu.org>
9074
9075 * w32gui.h: Repeat 26 June changes lost by last change.
9076
9077 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9078
9079 * systty.h: Remove code for Aix on 386, unsupported platform.
9080
9081 * s/ms-w32.h: Remove boilerplate comments.
9082 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
9083
9084 * s/gnu-linux.h (TERM): Remove support.
9085 (HAVE_SYSVIPC): Remove, unused.
9086 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
9087 for this system.
9088
9089 * process.c: Remove support for IRIS, unused.
9090 Remove support for TERM, not relevant anymore.
9091
9092 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
9093 used with the definition.
9094
9095 * s/aix4-2.h (static): Do not undef.
9096
9097 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
9098 only used on Aix.
9099 (HAVE_SYSVIPC): Remove, unused.
9100
9101 * m/hp800.h (CANNOT_DUMP): Do not undef.
9102
9103 * m/alpha.h: Fix comment.
9104
9105 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
9106 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
9107 used by this configuration.
9108 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
9109 * unexec.c: Remove code depending on HPUX and
9110 USG_SHARED_LIBRARIES, not used with this file. Remove code
9111 depending on IRIS, unused. Remove if 0-ed code.
9112
9113 * s/template.h: Remove comments about static.
9114
9115 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
9116 Remove if 0-ed code.
9117 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
9118 were the same as the default.
9119 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
9120 Remove boilerplate comments.
9121 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
9122 (HAVE_SYSVIPC): Remove, unused.
9123 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
9124
9125 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9126 Remove boilerplate comments.
9127 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9128 Remove boilerplate comments.
9129 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9130 Remove boilerplate comments.
9131 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
9132
9133 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
9134 USG systems which do not use DATA_SEG_BITS.
9135 Refactor code. Remove boilerplate comments.
9136
9137 * m/ibms390.h:
9138 * m/m68k.h:
9139 * s/bsd-common.h:
9140 * s/cygwin.h:
9141 * s/darwin.h:
9142 * s/freebsd.h:
9143 * s/gnu.h:
9144 * s/msdos.h: Remove boilerplate comments.
9145
9146 * m/iris4d.h: Remove boilerplate comments and code for systems that
9147 do not use this file.
9148 (IRIS_4D): Remove, unused.
9149
9150 * m/mips.h: Remove boilerplate comments and code for systems that
9151 do not use this file.
9152 (SIGN_EXTEND_CHAR):
9153 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
9154 * unexmips.c: Remove file, unused.
9155
9156 * editfns.c (Fuser_full_name): Replace the only use of
9157 USER_FULL_NAME with its value.
9158 * config.in: Regenerate.
9159
9160 2008-07-16 David Reitter <david.reitter@gmail.com>
9161
9162 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
9163 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
9164
9165 2008-07-16 Glenn Morris <rgm@gnu.org>
9166
9167 * emacs.c (system-type): Doc fix.
9168
9169 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
9170
9171 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
9172 If the cache doesn't work, let's fix it, rather than work around it.
9173
9174 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9175
9176 * Makefile.in: Correct additions for nsfont.o in last commit.
9177 * nsfont.m: New file (forgot last commit).
9178
9179 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9180
9181 * callproc.c (set_initial_environment): Initialize
9182 Vprocess_environment under CANNOT_DUMP (fixes crash when
9183 batch-compiling for bootstrap).
9184
9185 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9186 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9187
9188 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
9189 fix crash due to different init order.
9190
9191 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9192
9193 Changes and additions for NeXTstep windowing system (Cocoa and
9194 GNUstep) support.
9195
9196 * Makefile.in:
9197 * config.in: Support defines and build commands for NS port.
9198 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
9199 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
9200 * dispextern.h: Include nsgui.h and add needed typedefs under NS
9201 windowing.
9202 (struct face): Add synth_ital field.
9203 * dispnew.c: Include nsterm.h when compiling under NS windowing.
9204 (init_display): Initialize Vinitial_window_system to "ns" when so
9205 compiled.
9206 * emacs.c: Include GSConfig.h when compiling under GNUstep.
9207 (display_arg): Use under NS.
9208 (main): Under NS, allocate autorelease pool and handle command line
9209 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
9210 (standard_args): Add NS-specific args.
9211 (shut_down_emacs): Shut down NS terminal if compiled under NS.
9212 * font.c (DEFAULT_ENCODING): New variable.
9213 (font_find_for_lface): Use it.
9214 (syms_of_font): Load syms_of_nsfont under NS.
9215 * font.h: Declare nsfont_driver when compiled under NS.
9216 * fontset.c: When compiling under NS, include nsterm.h.
9217 (fontset_from_font): Autoconstruct fontset under NS.
9218 * frame.c (various): Under NS, include nsterm.h, add Qns window system
9219 symbol, document and use it.
9220 (do_switch_frame): When for_deletion under Cocoa, add
9221 Fraise_frame(Qnil).
9222 (x_set_frame_parameters): Ensure font attribute changes are picked up.
9223 (x_get_arg): Allow "yes" and "no" as boolean values.
9224 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
9225 Qright under Cocoa.
9226 (focus-follows-mouse): Default to 0 under NS.
9227 * frame.h (enum output_method): Add output_ns.
9228 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
9229 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
9230 (FRAME_WINDOW_P): NS-specific definition.
9231 * fringe.c (max_used_fringe_bitmap): Make public.
9232 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
9233 (getloadavg): Use NeXT code under descendant OS's.
9234 * image.c (includes and header section, x_create_bitmap_from_data)
9235 (x_create_bitmap_from_file, free_bitmap_record, image_background)
9236 (image_background_transparent, x_clear_image_1)
9237 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
9238 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
9239 (x_to_xcolors, x_from_xcolors, x_disable_image)
9240 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
9241 other GUIs, including XPM support using code originally written for
9242 Carbon GUI.
9243 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
9244 using NS API.
9245 (image_ascent): Use font metrics macros instead of direct struct field
9246 access.
9247 * keyboard.c (includes): Add nsterm.h when compiling under NS.
9248 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
9249 Also, handle NS as GTK for menu bar purposes.
9250 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
9251 toolkit where they differ.
9252 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
9253 use cachelist, still needed under NS.
9254 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
9255 (struct widget_value): Define it here for menu.c.
9256 * keymap.c (includes): Include modifier internals.
9257 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
9258 NS.
9259 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
9260 support for preferring sequences using certain modifiers, specified by
9261 the FIRSTONLY argument.
9262 * lisp.h (hash_remove): Rename to avoid name clash when compiling
9263 under NS GNUstep implementation.
9264 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
9265 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
9266 * menu.c: Include nsterm.h under NS.
9267 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
9268 (free_menubar_widget_tree_value, update_submenu_strings)
9269 (find_and_call_menu_selection): Treat NS as X and NT.
9270 (find_and_return_menu_selection): New function, used for popup menus.
9271 * nsgui.h:
9272 * nsterm.h:
9273 * nsfns.m:
9274 * nsimage.m:
9275 * nsmenu.m:
9276 * nsselect.m:
9277 * nsterm.m: New files.
9278 * process.c (wait_reading_process_output): Under NS, call ns_select()
9279 instead of plain select().
9280 * syntax.c (char_quoted): Under NS, avoid a crash when called near
9281 beginning of buffer.
9282 * sysselect.h (init_process): Rename when compiling under Cocoa to
9283 avoid name conflict.
9284 * termhooks.h (display_info): Add ns_display_info to union.
9285 * terminal.c (Fterminal_live_p): Add ns to terminal types.
9286 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
9287 COCOA environment.
9288 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
9289 unexec() signature. (Note, this will dump, but the resulting file
9290 crashes; unexosx is used instead; keeping around for reference and
9291 possible aid in getting dump working under GNUstep.)
9292 * w32gui.h (button_type, widget_value): Remove definitions (now in
9293 keyboard.h).
9294 * window.c: Include nsterm.h when compiling under NS.
9295 * xdisp.c (includes): Include nsterm.h when compiling under NS.
9296 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
9297 other GUI windowing systems.
9298 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
9299 GTK.
9300 (x_consider_frame_title): Under NS, set icon type and frame
9301 modified-state indicator; use ns_set_name_as_filename() when using
9302 formatted title.
9303 (update_window_cursor): Make public when compiling under NS.
9304 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
9305 (hourglass_atimer, Vhourglass_delay
9306 * xfaces.c (header section, init_frame_faces, clear_font_table)
9307 (defined_color, unload_color, x_face_list_fonts)
9308 (prepare_face_for_display): Add NS support parallel to other GUIs.
9309 Emulate GCs like other non-X GUIs.
9310 (split_font_name): Don't lowercase font name under NS.
9311 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
9312 under NS.
9313 * s/darwin.h: Add support for compilation under NS.
9314
9315 2008-07-15 Jason Rumney <jasonr@gnu.org>
9316
9317 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
9318 (w32_show_hourglass): Rename from show_hourglass.
9319 (w32_hide_hourglass): Rename from hide_hourglass.
9320 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
9321 (Vhourglass_delay): Declare extern.
9322 (hourglass_started): Remove.
9323
9324 * xdisp.c (Vhourglass_delay): Remove static.
9325 (hourglass_started, start_hourglass, cancel_hourglass):
9326 Don't include these versions on WINDOWSNT.
9327
9328 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9329
9330 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
9331 variables (formerly in xfns.c).
9332 (show_hourglass, hide_hourglass): New prototypes (same).
9333 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9334 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9335 in xfns.c).
9336 (syms_of_xdisp): Declare/initialize display-hourglass,
9337 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
9338 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9339 formerly in xfns.c.
9340 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9341 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9342 (start_hourglass, cancel_hourglass): Remove.
9343 (show_hourglass, hide_hourglass): Remove prototypes and static
9344 modifiers.
9345 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9346 hourglass_atimer, hourglass_shown_p declaration/initialization.
9347 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9348 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9349 (start_hourglass, cancel_hourglass): Remove.
9350 (show_hourglass, hide_hourglass): Remove prototypes and static
9351 modifiers.
9352 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9353 hourglass_atimer, hourglass_shown_p declaration/initialization.
9354 * w32fns.c (display_hourglass_p, Vhourglass_delay)
9355 (DEFAULT_HOURGLASS_DELAY): Remove.
9356 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9357 hourglass_shown_p declaration/initialization.
9358
9359 2008-07-14 Jason Rumney <jasonr@gnu.org>
9360
9361 * w32fns.c (w32_get_arg): Remove wrapper function.
9362 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9363 directly.
9364 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9365
9366 2008-07-14 Kenichi Handa <handa@m17n.org>
9367
9368 * xfont.c (xfont_open): Add workaround for X's bug.
9369
9370 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9371
9372 * fontset.c: Include <stdio.h> unconditionally.
9373
9374 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
9375
9376 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9377 for filtering.
9378
9379 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
9380
9381 * s/vms.h: Use __GNUC__ instead of _GNUC_.
9382
9383 * m/macppc.h:
9384 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
9385
9386 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9387 (SPECIAL_EMACS_INT):
9388 * m/ia64.h (SPECIAL_EMACS_INT):
9389 * m/amdx86-64.h (SPECIAL_EMACS_INT):
9390 * s/gnu.h (NLIST_STRUCT):
9391 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9392 * s/gnu-linux.h (LINUX):
9393 * s/msdos.h (HAVE_FACES):
9394 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9395
9396 * systty.h:
9397 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9398 anymore.
9399
9400 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9401
9402 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9403 always defined as int.
9404
9405 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9406 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9407 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9408 * s/freebsd.h (HAVE_WAIT_HEADER):
9409 * s/bsd-common.h (HAVE_UNION_WAIT):
9410 * s/aix4-2.h (HAVE_WAIT_HEADER):
9411 * m/mips.h (HAVE_UNION_WAIT):
9412 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9413 (COFF, static): Do not define, they are undefined later in the file.
9414
9415 * process.c (update_status): Don't use a union.
9416 (status_convert):
9417 (sigchld_handler): Use int instead of WAITTYPE.
9418
9419 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
9420
9421 * indent.c (Fvertical_motion): Restore hscroll before moving to
9422 goal column.
9423
9424 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9425
9426 * lisp.h: Remove left over code.
9427
9428 2008-07-11 Andreas Schwab <schwab@suse.de>
9429
9430 * lisp.h: Fix logic in last change.
9431
9432 * menu.h: New file.
9433 * menu.c: Include it.
9434 * xmenu.c: Likewise.
9435 * Makefile.in: Update dependencies.
9436
9437 2008-07-11 Kenichi Handa <handa@m17n.org>
9438
9439 * fontset.c (fontset_from_font): Cancel the previous change.
9440
9441 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9442
9443 * lisp.h:
9444 * w32heap.c:
9445 * emacs.c:
9446 * alloc.c: Replace all references of NO_UNION_TYPE with
9447 USE_LISP_UNION_TYPE.
9448
9449 * m/xtensa.h (NO_UNION_TYPE):
9450 * m/vax.h (NO_UNION_TYPE):
9451 * m/template.h (NO_UNION_TYPE):
9452 * m/sparc.h (NO_UNION_TYPE):
9453 * m/mips.h (NO_UNION_TYPE):
9454 * m/macppc.h (NO_UNION_TYPE):
9455 * m/m68k.h (NO_UNION_TYPE):
9456 * m/iris4d.h (NO_UNION_TYPE):
9457 * m/intel386.h (NO_UNION_TYPE):
9458 * m/ibms390x.h (NO_UNION_TYPE):
9459 * m/ibms390.h (NO_UNION_TYPE):
9460 * m/ibmrs6000.h (NO_UNION_TYPE):
9461 * m/ia64.h (NO_UNION_TYPE):
9462 * m/hp800.h (NO_UNION_TYPE):
9463 * m/arm.h (NO_UNION_TYPE):
9464 * m/amdx86-64.h (NO_UNION_TYPE):
9465 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9466 defining it the same.
9467
9468 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
9469
9470 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9471
9472 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9473
9474 * fileio.c:
9475 * sysdep.c
9476 * systty.h:
9477 * m/ibmrs6000.h:
9478 * m/iris4d.h:
9479 * s/aix4-2.h:
9480 * s/freebsd.h:
9481 * s/gnu-linux.h:
9482 * s/hpux10-20.h:
9483 * s/hpux11.h:
9484 * s/netbsd.h:
9485 * s/sol2-3.h:
9486 * s/sol2-4.h:
9487 * s/sol2.h:
9488 * s/usg5-4.h:
9489 * s/vms.h: Remove references to unused variables.
9490
9491 2008-07-10 Andreas Schwab <schwab@suse.de>
9492
9493 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9494 pattern before matching the generic family.
9495
9496 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9497
9498 * unexec.c:
9499 * s/vms.h:
9500 * s/usg5-4-2.h:
9501 * s/sol2-5.h:
9502 * s/freebsd.h:
9503 * s/darwin.h: Remove dead code.
9504
9505 * m/template.h:
9506 * m/sparc.h:
9507 * m/mips.h:
9508 * m/m68k.h:
9509 * m/iris4d.h:
9510 * m/intel386.h:
9511 * m/ibms390x.h:
9512 * m/ibms390.h:
9513 * m/ia64.h:
9514 * m/hp800.h:
9515 * m/arm.h:
9516 * m/amdx86-64.h: Remove dead code and references to unused
9517 and compiler defined symbols.
9518
9519 * unexmips.c:
9520 * unexelf.c: Remove references to desupported systems.
9521
9522 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9523
9524 * m/powermac.h: Remove boilerplate comments.
9525 (NO_REMAP): Remove unused definition.
9526
9527 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9528 define them.
9529
9530 2008-07-10 Kenichi Handa <handa@m17n.org>
9531
9532 * xfont.c (xfont_open): Log the reason of failure.
9533
9534 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9535
9536 * fontset.c (fontset_get_font_group):
9537 * font.c (font_check_otf): Specify argument types.
9538
9539 2008-07-09 Kenichi Handa <handa@m17n.org>
9540
9541 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9542 non-ASCII char is found.
9543
9544 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9545 (reorder_font_vector): Change the arg preferred_family to font.
9546 Prefer the spec matching with font.
9547 (fontset_get_font_group): New function.
9548 (fontset_find_font): Change the format of an element of a realized
9549 fontset. Use fontset_get_font_group.
9550 (fontset_font): Try the current fontset, the default fontset, the
9551 fallbacks of the current fontset, and the fallbacks of the default
9552 fontset in this order.
9553 (face_for_char): Delete the shortcut to use the current font.
9554 (fontset_from_font): Don't set fonts for Latin in the fontset.
9555
9556 * font.h (font_make_object, font_match_p): Adjust prototypes.
9557
9558 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9559
9560 * font.c (font_make_object): New arg entity and pixelsize.
9561 (font_check_otf_features, font_check_otf): New functions.
9562 (font_match_p): Check :lang, :script, and :otf properties.
9563
9564 * xfont.c (xfont_open): Adjust it for the change of
9565 font_make_object.
9566 (xfont_text_extents): Fix initial setting of metrics.
9567
9568 * ftfont.c (struct ftfont_info): New member index, delete member
9569 fc_charset_idx. Make the member order compatible with struct
9570 xftfont_info.
9571 (fc_charset_table): Change charset names to registry names.
9572 (ftfont_pattern_entity): Delete the args registry and
9573 fc_charset_idx. Change the value of :font-entity property
9574 to (FONTNAME . INDEX). Always set :registry property to
9575 `iso10646-1'.
9576 (struct ftfont_cache_data): New struct.
9577 (ftfont_lookup_cache): New arg for_face.
9578 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9579 (ftfont_driver): Set the member otf_capability.
9580 (ftfont_get_charset): Adjust it for the change of
9581 fc_charset_table.
9582 (OTF_TAG_SYM): New macro.
9583 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9584 for the change of fc_charset_table.
9585 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9586 ftfont_pattern_entity. Add FC_INDEX to objset.
9587 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9588 and ftfont_pattern_entity.
9589 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9590 font_make_object, struct ftfont_info.
9591 (ftfont_has_char): Use ftfont_get_fc_charset.
9592 (ftfont_otf_features, ftfont_otf_capability): New functions.
9593 (ftfont_shape): Use ftfont_get_otf.
9594 (ftfont_text_extents): Fix initial setting of metrics.
9595
9596 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9597 member order compatible with struct ftfont_info.
9598 (xftfont_open): Add FC_CHARSET to the pattern. Set
9599 xftfont_info->ft_size. Don't unlock the face. Check BDF
9600 properties if appropriate.
9601 (xftfont_close): Unlock the face.
9602 (xftfont_anchor_point, xftfont_shape): Deleted.
9603 (syms_of_xftfont): Don't set members anchor_point and shape of
9604 xftfont_driver.
9605
9606 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9607 font_make_object.
9608
9609 * w32font.c (w32font_open): Adjust it for the change of
9610 font_make_object.
9611 (w32font_open_internal): Don't set properties of font_object here.
9612
9613 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
9614
9615 * macfns.c (x_create_tip_frame):
9616 * w32fns.c (x_create_tip_frame):
9617 * xfns.c (x_create_tip_frame): Pass parameter argument to
9618 face-set-after-frame-default.
9619
9620 * xfaces.c (Finternal_merge_in_global_face): Save merged
9621 attributes for the default face back into the face vector.
9622
9623 2008-07-08 Andreas Schwab <schwab@suse.de>
9624
9625 * fontset.h: Declare fontset_from_font. Don't declare
9626 new_fontset_from_font and fontset_from_font_name.
9627 * xterm.c: Include "fontset.h".
9628 * Makefile.in (xterm.o): Update dependencies.
9629
9630 2008-07-08 Glenn Morris <rgm@gnu.org>
9631
9632 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9633 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9634
9635 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
9636
9637 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9638 (x_set_frame_parameters): Don't bind it.
9639
9640 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
9641
9642 * w32fns.c (map_w32_filename): Declare extern.
9643
9644 2008-07-07 Jason Rumney <jasonr@gnu.org>
9645
9646 * w32term.c (WS_EX_LAYERED): Define if not already.
9647
9648 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
9649
9650 * xfaces.c (set_font_frame_param): Don't try to set the font
9651 parameter if it is still unspecified in the lface.
9652
9653 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
9654
9655 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9656 face if it didn't already exist.
9657
9658 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9659
9660 2008-07-05 Andreas Schwab <schwab@suse.de>
9661
9662 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9663
9664 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
9665
9666 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9667 word-wrapping.
9668 (IT_DISPLAYING_WHITESPACE): New macro.
9669 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9670 when word-wrapping. Simplify word-wrapping logic. Use correct
9671 pixel positions when saving copies of the iterator.
9672 (display_line): Use proper wrap point if the last character on a
9673 line was preceded by whitespace.
9674
9675 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9676
9677 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9678
9679 2008-07-04 Kenichi Handa <handa@m17n.org>
9680
9681 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9682
9683 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9684
9685 2008-07-02 Jason Rumney <jasonr@gnu.org>
9686
9687 * xfns.c (syms_of_xfns): Only define x-select-font when both
9688 HAVE_FREETYPE and USE_GTK.
9689
9690 * xdisp.c (next_element_from_display_vector): Move assignment out
9691 of if statement.
9692
9693 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9694
9695 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9696
9697 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9698 (syms_of_fileio): Initialize and export them.
9699 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9700
9701 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9702 (Fsystem_move_file_to_trash): New function.
9703 (syms_of_w32fns): Export it to lisp.
9704
9705 2008-07-01 Jason Rumney <jasonr@gnu.org>
9706
9707 * w32font.c (w32font_text_extents): Don't count overhang as part
9708 of width.
9709
9710 2008-06-30 Miles Bader <miles@gnu.org>
9711
9712 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9713 Add `avoid_cursor_p' field.
9714
9715 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9716 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9717 (append_glyph, append_composite_glyph, produce_image_glyph)
9718 (append_stretch_glyph): Initialize avoid_cursor_p.
9719 (get_it_property): Rename from `get_line_height_property'.
9720 (x_produce_glyphs): Use get_it_property.
9721 (handle_line_prefix, push_display_prop): New functions.
9722 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9723 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9724 New variables.
9725 (syms_of_xdisp): Initialize them.
9726
9727 2008-06-30 Kenichi Handa <handa@m17n.org>
9728
9729 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9730 XftDefaultSubstitute (they are called in XftFontMatch).
9731 (xftfont_open): Fix args to ftfont_font_format.
9732
9733 * ftfont.c (fc_charset_table): New member lang.
9734 (ftfont_resolve_generic_family): New arg pattern.
9735 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
9736 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9737 (ftfont_open): Fix args to ftfont_font_format.
9738 (ftfont_font_format): New arg filename.
9739
9740 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
9741
9742 * xfaces.c (Finternal_merge_in_global_face): If default face was
9743 modified, realize it again. Update the font face attribute.
9744
9745 2008-06-29 Jason Rumney <jasonr@gnu.org>
9746
9747 * w32term.c (x_set_frame_alpha): Fix logic.
9748
9749 2008-06-29 Kenichi Handa <handa@m17n.org>
9750
9751 * fontset.c (Finternal_char_font): Return font-object instead of
9752 font-name.
9753
9754 * composite.c (get_composition_id): Fix the width calculation for TAB.
9755
9756 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9757
9758 * indent.c (Fvertical_motion): Properly handle float column arg.
9759
9760 2008-06-28 Jason Rumney <jasonr@gnu.org>
9761
9762 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9763 (pfnSetLayeredWindowAttributes): New function pointer.
9764 (w32_initialize): Initialize it when supported.
9765 (x_set_frame_alpha): New function.
9766
9767 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9768 (w32_frame_parm_handlers): Set alpha handler.
9769
9770 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9771
9772 2008-06-27 Jason Rumney <jasonr@gnu.org>
9773
9774 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9775 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9776 (w32_to_x_charset, x_to_w32_charset)
9777 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9778 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9779 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9780 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9781 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9782 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9783 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9784 (Qw32_charset_unicode): Remove.
9785 (syms_of_w32fns): Update for above changes.
9786
9787 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9788 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9789 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9790 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9791 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9792 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9793 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9794 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9795 (syms_of_w32font): Update for above changes.
9796
9797 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9798
9799 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9800 removed #if.
9801 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9802
9803 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
9804 Eli Zaretskii <eliz@gnu.org>
9805
9806 * makefile.w32-in (LOCAL_FLAGS):
9807 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9808
9809 * sysdep.c (_spawnlp, _getpid):
9810 Declare with explicit _cdecl instead of _CRTAPI1.
9811
9812 * editfns.c (Fget_internal_run_time):
9813 Check for WINDOWSNT with #ifdef, not #if.
9814
9815 2008-06-26 Jason Rumney <jasonr@gnu.org>
9816
9817 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9818
9819 * w32term.c (x_draw_glyph_string_foreground)
9820 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9821 Use FONT_HANDLE macro.
9822 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9823
9824 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9825 (uniscribe_encode_char): Use FONT_HANDLE macro.
9826
9827 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9828 (w32font_text_extents): Use precast w32_font.
9829 (w32font_close): Free cached metrics.
9830 (w32font_open_internal): Allocate space for name on stack.
9831
9832 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
9833
9834 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9835
9836 2008-06-26 Jason Rumney <jasonr@gnu.org>
9837
9838 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9839 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9840
9841 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
9842
9843 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9844
9845 2008-06-26 Jason Rumney <jasonr@gnu.org>
9846
9847 * w32bdf.c, w32bdf.h: Remove obsolete files.
9848
9849 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9850
9851 * w32gui.h: Don't include w32bdf.h.
9852 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9853 Remove obsolete font support.
9854
9855 * w32font.h (struct w32font_info): Remove compat_w32_font.
9856 Add hfont member.
9857 (FONT_COMPAT): Remove obsolete macro.
9858
9859 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9860 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9861 (w32font_open_internal): Remove compat code. Set new hfont member.
9862 (Fx_select_font): Use new hfont member.
9863
9864 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9865 (uniscribe_encode_char): Use new hfont member.
9866
9867 * w32term.c (x_draw_glyph_string_foreground)
9868 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9869 (x_draw_glyph_string): Use metrics in w32font_info.
9870
9871 2008-06-26 Kenichi Handa <handa@m17n.org>
9872
9873 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9874
9875 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9876
9877 * unexnext.c:
9878 * m/ews4800.h:
9879 * m/hp9000s300.h:
9880 * m/ibm370aix.h:
9881 * m/mips-siemens.h:
9882 * m/ncr386.h:
9883 * m/next.h:
9884 * m/pmax.h:
9885 * m/powerpcle.h:
9886 * m/tandem-s2.h:
9887 * s/386bsd.h:
9888 * s/bsd386.h:
9889 * s/bsd4-1.h:
9890 * s/bsd4-2.h:
9891 * s/bsdos2-1.h:
9892 * s/bsdos2.h:
9893 * s/bsdos3.h:
9894 * s/bsdos4.h:
9895 * s/nextstep.h:
9896 * s/ultrix4-3.h:
9897 * s/usg5-0.h:
9898 * s/usg5-2-2.h:
9899 * s/usg5-2.h:
9900 * s/usg5-4-3.h:
9901 * s/ux4800.h:
9902 * s/uxpds.h:
9903 * s/uxpv.h: Remove support for obsolete systems.
9904 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
9905 Remove, insert contents in s/hpux10-20.h.
9906 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9907 Remove, insert contents in s/aix4-2.h.
9908 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9909 * s/bsd4-3.h: Rename to ...
9910 * s/bsd-common.h: ... this.
9911 * data.c:
9912 * doc.c:
9913 * ecrt0.c:
9914 * emacs.c:
9915 * fileio.c:
9916 * floatfns.c:
9917 * keyboard.c:
9918 * mem-limits.h:
9919 * print.c:
9920 * process.c:
9921 * sysdep.c:
9922 * syssignal.h:
9923 * systty.h:
9924 * syswait.h:
9925 * term.c:
9926 * unexec.c:
9927 * unexelf.c:
9928 * unexhp9k800.c:
9929 * m/hp800.h:
9930 * m/ibmrs6000.h:
9931 * m/mips.h:
9932 * m/vax.h:
9933 * s/darwin.h:
9934 * s/freebsd.h:
9935 * s/gnu.h:
9936 * s/ms-w32.h:
9937 * s/msdos.h:
9938 * s/netbsd.h:
9939 * s/template.h: Remove references to obsolete variables.
9940
9941 * Makefile.in: Add dependencies for all unexec files.
9942 (admindir): Remove unused variable.
9943 (UNEXEC_SRC): Remove references.
9944
9945 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
9946
9947 * xfns.c (x_default_font_parameter): If Xft is available, first
9948 try Monospace-12 for the default font.
9949
9950 2008-06-25 Jason Rumney <jasonr@gnu.org>
9951
9952 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9953
9954 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9955
9956 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9957
9958 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9959
9960 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
9961
9962 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9963 <scroll-conservatively>: Fix typo in docstring.
9964
9965 * xselect.c (Fx_send_client_event): Doc fix.
9966
9967 2008-06-25 Kenichi Handa <handa@m17n.org>
9968
9969 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9970
9971 * font.c (font_parse_fcname): Remove unused variables.
9972 (font_sort_entites): Delete the arg SPEC. Caller changed.
9973 Fix for the case of ! best_only.
9974 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9975
9976 * lisp.h (Fstring_to_unibyte): EXFUN it.
9977
9978 * character.h (str_to_unibyte): Extern it.
9979
9980 * character.c (str_to_unibyte): New function.
9981
9982 * fns.c (Fstring_to_unibyte): New function.
9983 (syms_of_fns): Defsubr it.
9984
9985 2008-06-24 Kenichi Handa <handa@m17n.org>
9986
9987 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9988 DPI too.
9989 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9990
9991 2008-06-24 Andreas Schwab <schwab@suse.de>
9992
9993 * Makefile.in (${lispsource}loaddefs.el): Rename from
9994 ../lisp/loaddefs.el.
9995 (bootstrap-clean): Do what distclean does but don't remove
9996 Makefile.
9997 (distclean): Depend on bootstrap-clean and remove Makefile.
9998
9999 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
10000
10001 * buffer.h (struct buffer): New member word_wrap.
10002
10003 * buffer.c (syms_of_buffer): New variables default-word-wrap and
10004 word-wrap.
10005 (init_buffer_once): Initialize them.
10006
10007 * dispextern.h (struct it): Replace bool truncate_lines_p with a
10008 line_wrap enum possessing three possible values.
10009
10010 * termopts.h: Replace truncate_partial_width_windows with
10011 Vtruncate_partial_width_windows.
10012
10013 * dispnew.c (direct_output_for_insert): Avoid direct output when
10014 inserting a space with word wrap on.
10015
10016 * indent.c (compute_motion): Obey integer values of
10017 truncate-partial-width-windows.
10018
10019 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
10020 replacing truncate_partial_width_windows.
10021 (init_iterator): If Vtruncate_partial_width_windows is an integer,
10022 truncate only if the window width is below that integer.
10023 (start_display, resize_mini_window, produce_stretch_glyph)
10024 (display_string, move_it_in_display_line_to): Use line_wrap.
10025 (back_to_previous_visible_line_start, reseat_1): Reset
10026 string_from_display_prop_p.
10027 (display_line): Extend default face to end of line when wrapping.
10028
10029 2008-06-24 Kim F. Storm <storm@cua.dk>
10030
10031 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
10032 to wrap continued lines at word boundaries.
10033
10034 2008-06-24 Jason Rumney <jasonr@gnu.org>
10035
10036 * font.c (Ffont_face_attributes): Multiply pixel size before point
10037 conversion to avoid multiplying rounding error.
10038
10039 2008-06-23 Jason Rumney <jasonr@gnu.org>
10040
10041 * w32term.c (x_draw_glyph_string_background)
10042 (x_draw_glyph_string): Remove old bdf font code.
10043
10044 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
10045
10046 2008-06-22 Kenichi Handa <handa@m17n.org>
10047
10048 * font.c (font_find_for_lface): Try the adstyle specified in
10049 the property of LFACE_FONT of LFACE (if any).
10050
10051 2008-06-21 Seiji Zenitani <zenitani@mac.com>
10052 Ryo Yoshitake <ryo@shiftmode.net>
10053
10054 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
10055
10056 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
10057
10058 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
10059 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
10060 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
10061 (witness-emacs): Remove.
10062 (lisp, shortlisp): Move loaddefs.el earlier.
10063 (mostlyclean): Forget about witness-emacs.
10064
10065 2008-06-22 Glenn Morris <rgm@gnu.org>
10066
10067 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
10068 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
10069
10070 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10071
10072 * Makefile.in (PRECOMP): Remove.
10073 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
10074 (witness-emacs): Run `compile-first'.
10075 (.el.elc): Use the new compile-onefile target.
10076
10077 2008-06-21 Kenichi Handa <handa@m17n.org>
10078
10079 * xftfont.c (xftfont_open): Handle QCembolden only when
10080 FC_EMBOLDEN is defined.
10081
10082 2008-06-21 Andreas Schwab <schwab@suse.de>
10083
10084 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
10085 (.el.elc): Likewise.
10086
10087 2008-06-21 Miles Bader <miles@gnu.org>
10088
10089 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
10090 build dir, not the lisp source dir.
10091
10092 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10093
10094 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
10095 (bootstrapclean): Remove.
10096 (.el.elc): New rule.
10097 (PRECOMP): New var.
10098 (../lisp/subdirs.el): Remove.
10099 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
10100 (witness-emacs): New target.
10101 (mostlyclean): Remove witness-emacs as well.
10102 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
10103 Add witness-emacs dependency.
10104
10105 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
10106
10107 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
10108 defined by the font.
10109
10110 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10111
10112 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
10113 (bootstrap-clean): New target that keeps TAGS around.
10114 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
10115 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
10116
10117 2008-06-20 Jason Rumney <jasonr@gnu.org>
10118
10119 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
10120 Remove obsolete font code.
10121
10122 * w32font.c (font_matches_spec): Use csb bitfield from font signature
10123 to determine language support.
10124
10125 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10126
10127 * sysdep.c (cfsetspeed): New fun extracted from the code.
10128 (cfmakeraw): Move before first use.
10129
10130 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
10131
10132 * sysdep.c (cfmakeraw): Provide fallback implementation.
10133 (serial_configure): Provide fallback implementation of cfsetspeed.
10134
10135 2008-06-20 Kenichi Handa <handa@m17n.org>
10136
10137 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
10138 the pattern.
10139
10140 * fontset.c (fontset_from_font): Copy font_spec before changing
10141 the elements.
10142
10143 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
10144
10145 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10146
10147 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
10148 for explicit `font' parameters.
10149
10150 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
10151
10152 2008-06-19 Kenichi Handa <handa@m17n.org>
10153
10154 * frame.c: Include <ctype.h>.
10155 (x_set_font_backend): Allow spacing characters in the X resource
10156 for FontBackend.
10157
10158 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
10159
10160 * w32fns.c, xfns.c (Qfont_param): New var.
10161 (syms_of_w32fns): Initialize it.
10162 (x_default_font_parameter): Record explicit `font' into
10163 `font-parameter'.
10164
10165 2008-06-18 Kenichi Handa <handa@m17n.org>
10166
10167 * font.c (font_parse_xlfd): Fix previous change.
10168 (font_parse_fcname): Don't use :fc-unknown-spec.
10169 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
10170 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
10171 (font_add_log): Prepend the driver name to the resulting fonts.
10172
10173 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
10174 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
10175 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
10176
10177 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
10178 (QCembolden): New variables.
10179 (syms_of_xftfont): DEFSYM them.
10180 (xftfont_open): Call XftFontMatch. Don't trust the result of
10181 XftTextExtents8 if the pixel_size is less than 5.
10182
10183 2008-06-18 Andreas Schwab <schwab@suse.de>
10184
10185 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
10186 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
10187
10188 2008-06-18 Jason Rumney <jasonr@gnu.org>
10189
10190 * w32font.c (w32font_list, w32font_match): Add logging.
10191
10192 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
10193
10194 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
10195
10196 * font.c (font_parse_fcname): Store divider characters for
10197 unknown-spec list. For known key symbols, intern using correct
10198 symbol name.
10199
10200 2008-06-17 Kenichi Handa <handa@m17n.org>
10201
10202 * xfaces.c (realize_default_face): If the frame is not on window
10203 system, set the fontset of face to nil.
10204
10205 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10206
10207 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
10208
10209 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
10210
10211 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
10212 (build_font_name_from_vector): Delete externs.
10213
10214 * xfaces.c (struct font_name): Don't declare.
10215
10216 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
10217
10218 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
10219
10220 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
10221
10222 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
10223
10224 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
10225
10226 * font.c (Ffont_spec): Fix usage in docstring.
10227 (Ffont_face_attributes): Doc fix.
10228
10229 2008-06-16 Andreas Schwab <schwab@suse.de>
10230
10231 * font.c (Ffont_face_attributes): Fix definition.
10232
10233 2008-06-16 Jason Rumney <jasonr@gnu.org>
10234
10235 * font.h (font_style_symbolic_from_value): Remove.
10236
10237 * font.c (font_style_symbolic_from_value): Remove.
10238 (font_style_symbolic): Revert to pre 2008-06-13 version.
10239
10240 * w32font.c (w32_to_fc_weight): New function.
10241 (w32font_full_name, logfont_to_fcname): Use it.
10242
10243 2008-06-16 Kenichi Handa <handa@m17n.org>
10244
10245 * font.c (font_check_object): Delete it.
10246 (font_clear_cache): Check if a font-object is alive.
10247 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
10248 font-object to nil.
10249 (font_close_object): Don't check FONT_CLOSE_OBJECT.
10250 (font_at): Don't call font_check_object.
10251 (Ffont_get): Return a symbol for :weight, :slant, and :width.
10252
10253 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
10254
10255 * puresize.h (BASE_PURESIZE): Increase to 1230000.
10256
10257 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
10258
10259 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
10260
10261 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
10262
10263 * font.c (font_parse_fcname): Only one decimal point.
10264 (font_unparse_fcname): Handle data in family and foundry indices
10265 as symbols, not strings.
10266 (font_unparse_gtkname, Ffont_face_attributes): New functions.
10267
10268 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
10269
10270 * font.h (font_unparse_gtkname): Add prototype.
10271
10272 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10273
10274 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
10275
10276 2008-06-15 Andreas Schwab <schwab@suse.de>
10277
10278 * font.c (font_update_drivers): Fix crash when no drivers match.
10279
10280 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
10281
10282 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
10283 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
10284
10285 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
10286
10287 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
10288
10289 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
10290
10291 * process.c (Fserial_process_configure, Fprocess_send_eof):
10292 Use EQ to compare Lisp_Objects.
10293
10294 2008-06-13 Jason Rumney <jasonr@gnu.org>
10295
10296 * w32fns.c (Fw32_select_font): Remove old font API function.
10297
10298 * w32font.c (logfont_to_fcname): New function.
10299 (Fx_select_font): New font dialog function compatible with
10300 GTK/fontconfig version.
10301
10302 * font.c (font_style_symbolic_from_value): New function.
10303 (font_style_symbolic): Use it.
10304
10305 * font.h (font_style_symbolic_from_value): Declare new function.
10306
10307 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
10308
10309 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
10310 <font-width-table>: Fix typos in docstrings.
10311
10312 2008-06-13 Daniel Engeler <engeler@gmail.com>
10313
10314 These changes add serial port access.
10315 * process.c: Add HAVE_SERIAL.
10316 (Fdelete_process, Fprocess_status, Fset_process_buffer)
10317 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
10318 (list_processes_1, select_wrapper, Fstop_process)
10319 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
10320 (status_notify): Modify to handle serial processes.
10321 [HAVE_SERIAL] (Fserial_process_configure)
10322 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
10323 New functions.
10324 * process.h (struct Lisp_Process): Add `type'.
10325 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
10326 New functions.
10327 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
10328 serial ports.
10329 (serial_open, serial_configure): New functions.
10330 * w32.h: Add FILE_SERIAL.
10331 (struct _child_process): Add ovl_read, ovl_write.
10332
10333 2008-06-13 Kenichi Handa <handa@m17n.org>
10334
10335 * dispextern.h (enum lface_attribute_index): New member
10336 LFACE_FOUNDRY_INDEX.
10337
10338 * font.c (font_score): Delete arg alternate_families. Check only
10339 weight, slant, width, and size. Ignore the difference of alias
10340 style symbols.
10341 (font_sort_entites): Adjust for the above change. Reflect the
10342 order of font-driver to scores.
10343 (font_list_entities): Don't check alternate_familes here.
10344 (font_clear_prop): Handle foundry.
10345 (font_update_lface): Don't parse "foundry-family" form here.
10346 Handle FONT_FOUNDRY_INDEX.
10347 (font_find_for_lface): Likewise. Handle alternate families here.
10348 If registry is nil, try iso8859-1 and ascii-0.
10349 (font_open_for_lface): Pay attention to size in ENTITY.
10350 (font_open_by_name): Simplify by calling font_load_for_lface.
10351 (free_font_driver_list): Delete it.
10352 (font_update_drivers): Preserve the order of backends.
10353 (syms_of_font): Setting of sort_shift_bits adjusted for the change
10354 of font_score and font_sort_entites.
10355 (font_update_sort_order): Likewise.
10356
10357 * xfaces.c (LFACE_FOUNDRY): New macro.
10358 (check_lface_attrs): Check foundry.
10359 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10360 (merge_face_vectors): Check foundry.
10361 (merge_face_ref): Likewise.
10362 (Finternal_set_lisp_face_attribute): Likewise.
10363 (x_update_menu_appearance): Likewise.
10364 (Finternal_get_lisp_face_attribute): Likewise.
10365 (lface_hash): Likewise.
10366 (lface_same_font_attributes_p): Likewise.
10367 (x_supports_face_attributes_p): Likewise.
10368 (tty_supports_face_attributes_p): Likewise.
10369 (Finternal_set_alternative_font_family_alist): Intern strings.
10370 (Finternal_set_alternative_font_registry_alist): Downcase strings.
10371 (realize_default_face): Set LFACE_FOUNDRY (lface).
10372
10373 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10374 font-driver at first.
10375
10376 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10377
10378 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10379
10380 * lread.c (Fload): Use xfree, not free on saved_doc_string.
10381
10382 2008-06-12 Jim Meyering <meyering@redhat.com>
10383
10384 Make unexec_free handle NULL the same way free does.
10385 * unexmacosx.c (unexec_free): Ignore a NULL argument.
10386
10387 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10388
10389 * character.h (CHAR_TO_BYTE_SAFE): New macro.
10390 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10391 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10392 (WEAK_ALIAS): Simplify.
10393 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10394 when searching a unibyte buffer.
10395
10396 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
10397
10398 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10399
10400 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
10401
10402 * w32font.c: Include ctype.h.
10403
10404 2008-06-11 Jason Rumney <jasonr@gnu.org>
10405
10406 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10407 misreported as space.
10408 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10409 as aliases for registry iso10646-1.
10410
10411 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10412
10413 * buffer.c (clone_per_buffer_values): Skip `name'.
10414
10415 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
10416
10417 * font.c (font_parse_fcname): Fix last change; accept decimal
10418 points in font size.
10419
10420 2008-06-10 Jason Rumney <jasonr@gnu.org>
10421
10422 * w32uniscribe.c (add_opentype_font_name_to_list):
10423 Skip non unicode fonts.
10424
10425 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
10426
10427 * xfns.c (Fx_font_dialog): New function.
10428
10429 * gtkutil.c (xg_dialog_response_cb): Rename from
10430 xg_file_response_callback.
10431 (pop_down_dialog): Rename from pop_down_file_dialog.
10432 (xg_get_file_name): Callers changed.
10433 (xg_get_font_name): New function.
10434
10435 * gtkutil.h (xg_get_font_name): Insert prototype.
10436
10437 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10438
10439 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10440 x_underline_minimum_display_offset.
10441 (syms_of_xdisp): Declare it here rather than in xterm.c.
10442 * dispextern.h (underline_minimum_offset): Declare it.
10443 * w32term.c (x_draw_glyph_string): Use it.
10444 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10445 (syms_of_xterm): Don't declare it any more.
10446 (x_draw_glyph_string): Adjust to the new name.
10447
10448 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
10449
10450 * xterm.c (x_underline_minimum_display_offset): New var.
10451 (x_draw_glyph_string): Use it.
10452 (syms_of_xterm): Declare it.
10453
10454 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
10455
10456 * font.c (font_parse_fcname): Accept GTK-style font names too.
10457
10458 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10459
10460 * dired.c (file_name_completion): Don't return t if the match is exact
10461 but with different capitalization.
10462 * minibuf.c (Ftry_completion): Simplify.
10463
10464 * window.c (Vwindow_point_insertion_type): New var.
10465 (set_window_buffer): Use it.
10466 (syms_of_window): Init and export it to Lisp.
10467
10468 2008-06-10 Kenichi Handa <handa@m17n.org>
10469
10470 * font.h (font_intern_prop): Prototype adjusted.
10471
10472 * font.c (font_intern_prop): New arg force_symbol.
10473 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10474 Adjust for the change of font_intern_prop.
10475
10476 * ftfont.c (ftfont_pattern_entity):
10477 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10478 (w32_registry):
10479 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10480 the change of font_intern_prop.
10481
10482 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
10483
10484 * w32menu.c (digest_single_submenu): Declare extern.
10485
10486 2008-06-09 Jason Rumney <jasonr@gnu.org>
10487
10488 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10489
10490 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10491 (parse_single_submenu): Remove.
10492 (digest_single_submenu): Remove.
10493 (syms_of_w32menu): Don't initialise variables that have moved
10494 to menu.c.
10495 (set_frame_menubar): Sync with version in xmenu.c.
10496 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10497
10498 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10499 Make static again.
10500
10501 2008-06-09 Jason Rumney <jasonr@gnu.org>
10502
10503 Changes to w32 files related to the move of common menu code
10504 to menu.c on 2008-06-08 by Chong Yidong.
10505
10506 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10507 defs to w32gui.h.
10508 (single_keymap_panes, push_menu_item, push_menu_pane):
10509 Make globally visible.
10510
10511 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10512 (local_free, malloc_widget_value, free_widget_value)
10513 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10514 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10515 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10516 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10517 (menu_items, menu_items_allocated, menu_items_used)
10518 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10519 (init_menu_items, finish_menu_items, discard_menu_items)
10520 (grow_menu_items, push_submenu_start, push_submenu_end)
10521 (push_left_right_boundary, push_menu_pane, push_menu_item)
10522 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10523 (free_menubar_widget_tree_value, parse_single_submenu)
10524 (update_submenu_strings): Remove functions.
10525 (xmalloc_widget_value): Remove and declare extern.
10526
10527 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10528 (OBJ1): Build it.
10529
10530 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10531 (local_heap, local_alloc, local_free, malloc_widget_value)
10532 (free_widget_value): Define here.
10533
10534 2008-06-09 Kenichi Handa <handa@m17n.org>
10535
10536 * font.h (Qascii_0): Extern it.
10537
10538 * font.c (Qascii_0): New variable.
10539 (syms_of_font): DEFSYM it.
10540 (font_open_by_name): If the registry "iso8859-1" fails, try also
10541 "ascii-0".
10542
10543 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10544
10545 2008-06-08 Kenichi Handa <handa@m17n.org>
10546
10547 * .gdbinit (xfont): New command.
10548
10549 2008-06-08 Andreas Schwab <schwab@suse.de>
10550
10551 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10552 * Makefile.in (menu.o): Update dependencies.
10553
10554 * Makefile.in (obj): Always add menu.o.
10555 * emacs.c (main): Always call syms_of_menu.
10556 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10557
10558 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
10559
10560 * Makefile.in: Compile menu.c.
10561
10562 * lisp.h: Declare syms_of_menu.
10563
10564 * emacs.c (main): Call syms_of_menu.
10565
10566 * keyboard.h: Relocate platform-independent menu definitions from
10567 xmenu.c.
10568
10569 * menu.c: New file. Relocate platform-independent menu
10570 definitions from xmenu.c. Suggested by Adrian Robert.
10571
10572 * xmenu.c: Remove platform-independent menu definitions.
10573 (menu_items menu_items_inuse, menu_items_allocated)
10574 (menu_items_used, menu_items_n_panes)
10575 (menu_items_submenu_depth): Move to keyboard.h.
10576 (init_menu_items, finish_menu_items, unuse_menu_items)
10577 (discard_menu_items, restore_menu_items, save_menu_items)
10578 (grow_menu_items, push_submenu_start, push_submenu_end)
10579 (push_left_right_boundary, push_menu_pane, push_menu_item)
10580 (keymap_panes, single_keymap_panes, single_menu_item)
10581 (list_of_panes, list_of_items, find_and_call_menu_selection)
10582 (xmalloc_widget_value, free_menubar_widget_value_tree)
10583 (parse_single_submenu, digest_single_submenu)
10584 (update_submenu_strings): Move to menu.c.
10585
10586 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10587
10588 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10589
10590 2008-06-06 Miles Bader <miles@gnu.org>
10591
10592 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10593 face, not frame default.
10594
10595 2008-06-05 Martin Rudalics <rudalics@gmx.at>
10596
10597 * window.c (pop_up_windows, pop_up_frames)
10598 (display_buffer_reuse_frames, Vpop_up_frame_function)
10599 (Vdisplay_buffer_function, Veven_window_heights)
10600 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10601 (Vspecial_display_function, Vsame_window_buffer_names)
10602 (Vsame_window_regexps, split_height_threshold)
10603 (Vsplit_window_preferred_function): Move those vars to window.el.
10604 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10605 (Fdisplay_buffer): Move those functions to window.el.
10606 (syms_of_window): Remove corresponding declarations.
10607 (display_buffer): New function.
10608 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10609 * dispnew.c (Flast_nonminibuf_frame): New function.
10610 * buffer.c (Fpop_to_buffer): Move to window.el.
10611
10612 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10613
10614 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10615
10616 2008-06-05 Kenichi Handa <handa@m17n.org>
10617
10618 * coding.c (detect_coding): Fix previous change.
10619 (detect_coding_system): Likewise.
10620
10621 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10622
10623 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10624
10625 * keymap.c (Vminibuffer_local_filename_must_match_map):
10626 Rename from Vminibuffer_local_must_match_filename_map.
10627 (syms_of_keymap):
10628 * minibuf.c (Fcompleting_read): Adjust accordingly.
10629 * commands.h: Rename declaration as well.
10630
10631 2008-06-05 Kenichi Handa <handa@m17n.org>
10632
10633 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10634 family name.
10635 (Ffont_put): Likewise.
10636
10637 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10638 current font-spec.
10639
10640 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10641 is unspecified.
10642
10643 * xfaces.c (realize_x_face): If the font-related face attributes
10644 are the same as those of default face, realize a new fontset from
10645 default->fontset.
10646 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10647
10648 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10649
10650 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10651 (move_it_in_display_line): New wrapper.
10652
10653 * window.c (window_scroll_pixel_based_preserve_x)
10654 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10655 (window_scroll_pixel_based, window_scroll_line_based):
10656 Use them to preserve column positions.
10657 (syms_of_window): Initialize them.
10658
10659 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10660 (HPOS . VPOS) pair.
10661
10662 * dispextern.h (move_it_in_display_line): Declare.
10663
10664 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
10665
10666 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10667 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10668 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10669
10670 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
10671
10672 * window.c (Fset_window_parameter): Doc fix.
10673 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10674
10675 2008-06-04 Joakim Verona <joakim@verona.se>
10676
10677 * window.h (struct window): Add new member window_parameters.
10678
10679 * window.c (Fwindow_parameters, Fwindow_parameter)
10680 (Fset_window_parameter): New defuns.
10681 (syms_of_window): Defsubr the new defuns.
10682 (make_window): Initialize window_parameters to nil.
10683
10684 2008-06-04 John Paul Wallington <jpw@pobox.com>
10685
10686 * eval.c (Fdefmacro): Doc fix.
10687
10688 2008-06-04 Kenichi Handa <handa@m17n.org>
10689
10690 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10691 Be sure to call setup_coding_system when we find a proper coding system.
10692 (detect_coding_system): Fix handling of coding->head_ascii.
10693
10694 2008-06-03 Andreas Schwab <schwab@suse.de>
10695
10696 * font.c (font_prop_validate_spacing): Fix last change.
10697
10698 2008-06-03 Kenichi Handa <handa@m17n.org>
10699
10700 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10701 (font_parse_fcname): Fix handling of unknown key.
10702
10703 * xfont.c (xfont_list): Try an alias.
10704
10705 * charset.c (char_charset): Return NULL if the arg charset_list is
10706 specified and C doesn't belong to any of them.
10707
10708 2008-06-02 Chip Coldwell <coldwell@redhat.com>
10709
10710 * font.c (font_pixel_size): Don't take cdr of an integer.
10711
10712 2008-06-02 Jim Meyering <meyering@redhat.com>
10713
10714 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10715 * alloc.c (xfree): Return right away for a NULL arg.
10716 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10717 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10718 * mac.c (create_apple_event_from_event_ref): Likewise.
10719 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10720 Likewise.
10721 * doprnt.c (doprnt1): Likewise.
10722 * frame.c (frame): Likewise.
10723 * keyboard.c (wipe_kboard): Likewise.
10724 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10725 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10726 * term.c (tty_default_color_capabilities, maybe_fatal)
10727 (delete_tty): Likewise.
10728 * w16select.c (string): Likewise.
10729 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10730 * w32bdf.c (w32_free_bdf_font): Likewise.
10731 * w32fns.c (w32_unload_font): Likewise.
10732 * w32font.c (w32font_close): Likewise.
10733 * window.c (size_window): Likewise.
10734 * xselect.c (receive_incremental_selection): Likewise.
10735 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10736 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10737 * w32.c (stat): Likewise.
10738
10739 Remove useless if-before-free tests.
10740 * editfns.c (Fset_time_zone_rule): Likewise.
10741 * lread.c (nosuffix): Likewise.
10742 * ralloc.c (get_bloc): Likewise.
10743 * regex.c (reg_free): Likewise.
10744 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10745 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10746 * xsmfns.c (smc_save_yourself_CB): Likewise.
10747
10748 2008-06-02 Kenichi Handa <handa@m17n.org>
10749
10750 * font.c (font_find_for_lface): Handle float font size.
10751 (font_open_for_lface): Likewise.
10752
10753 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10754 comparing the properties.
10755
10756 2008-06-01 Jason Rumney <jasonr@gnu.org>
10757
10758 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10759 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10760 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10761 Don't add empty script list.
10762 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10763
10764 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10765
10766 * Makefile.in (dot, dotdot): Remove, update users.
10767 ".." has been used elsewhere in the file for a long time.
10768 (LIBXT_STATIC): Remove conditional based on unused variable.
10769
10770 2008-06-01 Miles Bader <miles@gnu.org>
10771
10772 * xfaces.c (Vface_remapping_alist): New variable.
10773 (syms_of_xfaces): Initialize it.
10774 (enum named_merge_point_kind): New type.
10775 (struct named_merge_point): Add `named_merge_point_kind' field.
10776 (push_named_merge_point): Make cycle detection respect different
10777 named-merge-point kinds.
10778 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10779 Remove face-name alias resolution.
10780 (lface_from_face_name): New definition using
10781 `lface_from_face_name_no_resolve'.
10782 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10783 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10784 (get_lface_attributes): New definition that layers face-remapping on
10785 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10786 (lookup_basic_face): New function.
10787 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10788 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10789 `get_lface_attributes'.
10790 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10791 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10792 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10793
10794 * xdisp.c (init_iterator): Pass base_face_id through
10795 `lookup_basic_face' when we actually use it as a face-id.
10796 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10797 DEFAULT_FACE_ID.
10798
10799 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10800 lookup the initial face-id.
10801
10802 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10803
10804 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
10805
10806 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10807 (Fremove_text_properties): Fix typos in docstrings.
10808
10809 2008-05-31 Kenichi Handa <handa@m17n.org>
10810
10811 * font.c (font_list_entities): Fix the car part of data to be
10812 stored in the cache.
10813
10814 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10815
10816 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10817
10818 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10819 Add a `test' argument so another predicate than `equal' can be used.
10820 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10821 (map_char_table): Remove unused vars `c' and `i'.
10822 * lisp.h (Foptimize_char_table): Adjust declaration.
10823 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10824
10825 2008-05-30 Kenichi Handa <handa@m17n.org>
10826
10827 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10828 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10829 defined.
10830
10831 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10832
10833 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10834 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10835 frame-local settings for the same variable.
10836
10837 2008-05-30 Kenichi Handa <handa@m17n.org>
10838
10839 * fontset.c (Ffont_info): Move to font.c.
10840 (syms_of_fontset): Delete defsubr of Sfont_info.
10841
10842 * font.c (font_style_to_value, font_score): Delete casting of the
10843 args to xstcasecmp.
10844 (register_font_driver): Increment num_font_drivers only when
10845 registering the driver globally.
10846 (Ffont_info): Move from fontset.c. Handle a font object too.
10847 (syms_of_font): Defsubr Sfont_info.
10848
10849 2008-05-29 Kenichi Handa <handa@m17n.org>
10850
10851 * coding.h (enum define_coding_utf8_arg_index): New enum.
10852 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10853 coding_attr_utf_bom.
10854 (enum utf_bom_type): Rename from utf_16_bom_type.
10855 (struct utf_16_spec): Adjust for the above change.
10856 (struct coding_system): Add utf_8_bom in `spec' union.
10857
10858 * coding.c (CODING_UTF_8_BOM): New macro.
10859 (enum coding_category): Delete coding_category_utf_8, add
10860 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10861 coding_category_utf_8_sig.
10862 (CATEGORY_MASK_UTF_8): Delete it.
10863 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10864 (CATEGORY_MASK_UTF_8_SIG): New macros.
10865 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10866 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10867 CATEGORY_MASK_UTF_8_SIG.
10868 (CATEGORY_MASK_UTF_8): New macro.
10869 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10870 (detect_coding_utf_8): Check BOM.
10871 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10872 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10873 (encode_coding_utf_16): Likewise.
10874 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10875 (detect_coding, detect_coding_system): Handle utf-8-auto.
10876 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10877 (syms_of_coding): Fix setting up of Vcoding_category_table.
10878
10879 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10880
10881 * process.c (Faccept_process_output): If `millisec' is non-nil,
10882 `seconds' default to 0.
10883 (wait_reading_process_output): Also return non-nil if we read output
10884 from a non-running process.
10885
10886 2008-05-29 Jason Rumney <jasonr@gnu.org>
10887
10888 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10889 `raster' specified.
10890 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10891 in the uniscribe backend, but disallow any font that has no
10892 unicode subrange support.
10893
10894 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
10895
10896 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10897 Fix typos in docstrings.
10898
10899 2008-05-29 Kenichi Handa <handa@m17n.org>
10900
10901 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10902 (Fx_family_fonts): Set frame correctly.
10903
10904 2008-05-28 Jason Rumney <jasonr@gnu.org>
10905
10906 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10907
10908 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10909
10910 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10911 calling build_annotations.
10912
10913 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
10914
10915 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10916 (Fencode_coding_string):
10917 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10918 <latin-extra-code-table>: Fix typos in docstrings.
10919 (syms_of_coding) <coding-system-alist>: Doc fix.
10920 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10921
10922 2008-05-28 Kenichi Handa <handa@m17n.org>
10923
10924 * fontset.c (Ffont_info): Don't call font_close_object.
10925
10926 * font.c (font_parse_family_registry): Use Ffont_put to validate
10927 foundry and family.
10928 (font_delete_unmatched): Don't check spacing.
10929 (font_list_entities): Add spacing to the spec to list fonts.
10930
10931 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10932 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10933
10934 * coding.c (encode_coding_raw_text): Fix previous change.
10935 (encode_coding_object): When the dst_object is a buffer and is
10936 different from src_object, move gap to PT.
10937
10938 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
10939
10940 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10941
10942 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10943
10944 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10945 all branches. Compute it differently.
10946
10947 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10948
10949 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
10950
10951 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10952 into "else if () ... else ...".
10953
10954 2008-05-27 Jason Rumney <jasonr@gnu.org>
10955
10956 * w32font.c (w32font_open_internal): Determine if glyph indices
10957 are likely to work here.
10958
10959 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
10960
10961 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10962 draw overlap glyphs with appropriate highlighting.
10963
10964 2008-05-27 Kenichi Handa <handa@m17n.org>
10965
10966 * xfont.c (xfont_open): Fix calculation of font->average_width.
10967
10968 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10969
10970 * casefiddle.c (casify_object): Try to guess better whether the
10971 argument is a byte or a char.
10972
10973 2008-05-26 Andreas Schwab <schwab@suse.de>
10974
10975 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10976 Always send multiples of format size.
10977
10978 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10979
10980 2008-05-26 Jason Rumney <jasonr@gnu.org>
10981
10982 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10983 (compute_metrics): Don't set failure if we just cleared the cache.
10984 (w32_weight_table): Remove unused variable.
10985 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10986 backwards compatibility.
10987
10988 2008-05-25 Kenichi Handa <handa@m17n.org>
10989
10990 * w32term.c (x_draw_glyph_string):
10991 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10992
10993 * xfaces.c: Delete unused function prototypes.
10994 (xstrlwr, font_frame): Delete them.
10995 (clear_face_cache): Delete unused variable.
10996
10997 * xftfont.c (xftfont_open): Delete unused variable.
10998 If underline_thickness is not 1, adjust underline_position.
10999
11000 * ftxfont.c (ftxfont_open): Delete unused variable.
11001
11002 * fontset.c (face_for_char): Optimize for the case of no charset
11003 property.
11004
11005 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
11006 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
11007 (otf_open, font_otf_capability, generate_otf_features)
11008 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11009 Comment out by surrounding "#if 0" and "#endif" for the moment.
11010 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
11011 (syms_of_font): Codes for accessing above commented out.
11012
11013 2008-05-24 Eli Zaretskii <eliz@gnu.org>
11014
11015 * w32proc.c: Include dispextern.h.
11016
11017 * w32.c: Include dispextern.h.
11018
11019 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
11020
11021 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
11022 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
11023 Fix typos in docstrings.
11024
11025 2008-05-23 Jason Rumney <jasonr@gnu.org>
11026
11027 * xsmfns.c: Remove includes that are already included by config.h.
11028
11029 2008-05-23 Kenichi Handa <handa@m17n.org>
11030
11031 * charset.c (Qemacs, charset_emacs): New variables.
11032 (char_charset): Fix for non-Unicode characters.
11033 (syms_of_charset): Define charset_emacs.
11034
11035 * w32term.c (x_draw_glyph_string): Be sure to update
11036 s->underline_thickness and s->underline_position. Be sure to draw
11037 underline within the current line area.
11038
11039 * xterm.c (x_draw_glyph_string): Be sure to update
11040 s->underline_thickness and s->underline_position. Be sure to draw
11041 underline within the current line area.
11042
11043 * fontset.c: Delete unused variables and add casting for char *
11044 throughout the file.
11045 (fontset_font): Try the fallback fonts of the current fontset
11046 before consulting the default fontset.
11047
11048 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
11049
11050 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
11051
11052 2008-05-22 Jason Rumney <jasonr@gnu.org>
11053
11054 * font.c: Don't include strings.h.
11055
11056 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
11057
11058 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
11059 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
11060 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
11061 to call xstrcasecmp.
11062
11063 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
11064
11065 * fontset.c (fs_query_fontset): Use xstrcasecmp.
11066
11067 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
11068
11069 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
11070
11071 2008-05-22 Kenichi Handa <handa@m17n.org>
11072
11073 * puresize.h (BASE_PURESIZE): Increase to 1220000.
11074
11075 * font.c (font_prop_validate_style): Adjust for the format
11076 change of font_style_table.
11077
11078 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
11079 two args.
11080
11081 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
11082 two args.
11083
11084 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
11085
11086 * minibuf.c (keys_of_minibuf): Delete.
11087 * lisp.h (keys_of_minibuf): Delete.
11088 * emacs.c (main): Don't call keys_of_minibuf.
11089
11090 2008-05-22 Kenichi Handa <handa@m17n.org>
11091
11092 * ftfont.c (ftfont_resolve_generic_family): Rename from
11093 ftfont_list_generic_family. Return a single family for each
11094 generic family.
11095 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
11096 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
11097 Call font_add_log.
11098 (ftfont_match): Call font_add_log.
11099
11100 * font.h (Ffont_xlfd_name): EXFUN adjusted.
11101 (FONT_DEBUG): Define it.
11102 (font_add_log): Extern it.
11103 (font_assert): Rename from xassert.
11104
11105 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
11106 (xfont_list_family): Call font_add_log.
11107 (xfont_match): Likewise.
11108 (memq_no_quit): Delete.
11109
11110 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
11111 call of Ffont_xlfd_name.
11112
11113 * xfaces.c (struct table_entry, slant_table, weight_table)
11114 (swidth_table): Move to font.c.
11115
11116 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
11117 xassert are changed to font_assert. Delete many unused variables.
11118 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
11119 New variables.
11120 (struct table_entry): Move from xfaces.c and modified.
11121 (weight_table, slant_table, width_table): Move from xfaces.c and
11122 contents adjusted for the change of struct table_entry.
11123 (font_style_to_value, font_style_symbolic): Adjust for the
11124 format change of font_style_table.
11125 (font_parse_family_registry): Don't overwrite existing foundry and
11126 family of font_spec.
11127 (font_score): Fix calculation of diff for sizes.
11128 (font_sort_entites): Call font_add_log.
11129 (font_delete_unmatched): Return a newly created list.
11130 (font_list_entities): Fix previous change. Call font_add_log.
11131 (font_matching_entity, font_open_entity, font_close_entity):
11132 Call font_add_log.
11133 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
11134 (Finternal_set_font_style_table): Delete.
11135 (BUILD_STYLE_TABLE): New macro.
11136 (build_style_table): New function.
11137 (Vfont_log, font_log_env_checked): New variables.
11138 (font_add_log): New function.
11139 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
11140 Declare Lisp variables "font-weight-table", "font-slant-table",
11141 "font-width-table", and "font-log". Initialize font_style_table.
11142
11143 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
11144
11145 * xterm.c (x_set_frame_alpha): Move declarations before statements.
11146
11147 2008-05-21 Seiji Zenitani <zenitani@mac.com>
11148 Ryo Yoshitake <ryo@shiftmode.net>
11149
11150 * frame.c (Qalpha): Add a new frame parameter `alpha'.
11151 (Vframe_alpha_lower_limit): New variable.
11152 (x_set_alpha): New function.
11153
11154 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
11155
11156 * xfns.c (x-create-frame, Qalpha):
11157 Initialize the frame parameter `alpha'.
11158 * xterm.c (OPAQUE, OPACITY): New.
11159 (x_set_frame_alpha): New function.
11160 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
11161
11162 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
11163 * w32fns.c (w32_frame_parm_handlers): Likewise.
11164
11165 2008-05-20 Jason Rumney <jasonr@gnu.org>
11166
11167 * w32font.c (add_font_entity_to_list): Don't add non-opentype
11168 truetype fonts to opentype list.
11169
11170 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
11171
11172 * fontset.c (Ffontset_info): Doc fix.
11173 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
11174 <ignore-relative-composition>: Fix typos in docstrings.
11175
11176 * font.c (syms-of-font) <font-encoding-alist>:
11177 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
11178 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
11179 (Ffont_otf_alternates): Doc fixes.
11180
11181 2008-05-20 Kenichi Handa <handa@m17n.org>
11182
11183 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
11184 font.h through out the file.
11185 (FONT_DRIVERS): Rename from FONTOBJ.
11186 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
11187 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
11188
11189 * emacs.c (main): Call syms_of_font unconditionally.
11190
11191 * font.h (find_font_encoding): Extern it.
11192
11193 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
11194 fontset.c.
11195 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
11196 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
11197 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
11198 only when HAVE_WINDOW_SYSTEM is defined.
11199 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
11200 when HAVE_WINDOW_SYSTEM is defined.
11201
11202 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
11203 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
11204
11205 * xfaces.c: Include font.h unconditionally.
11206 (merge_face_ref, merge_face_vectors)
11207 (Finternal_set_lisp_face_attribute): Cancel the previous change.
11208
11209 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
11210
11211 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
11212 indirect_variable.
11213 * eval.c (lisp_indirect_variable): New fun.
11214 (Fuser_variable_p): Use it.
11215
11216 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11217
11218 * lisp.h (indirect_variable):
11219 * data.c (indirect_variable, let_shadows_buffer_binding_p):
11220 Use Lisp_Symbol pointers rather than Lisp_Object.
11221 Adjust callers.
11222 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
11223 To this end, change calling-convention.
11224
11225 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
11226 if some non-hidden buffers are selected by string&pred.
11227
11228 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
11229
11230 * process.c (wait_reading_process_output): Always check status
11231 when in batch mode.
11232
11233 2008-05-19 Kenichi Handa <handa@m17n.org>
11234
11235 * font.c (font_list_entities): Fix handling of cache.
11236 (font_matching_entity): Likewise.
11237
11238 * ftfont.c (cs_iso8859_1): Delete.
11239 (ft_face_cache): New variable.
11240 (struct ftfont_info): New member fc_charset_idx.
11241 (ftfont_build_basic_charsets): Delete.
11242 (fc_charset_table): New variable.
11243 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
11244 . FC_CHARSET_IDX) as :font-entity property in the font entity.
11245 Callers changed.
11246 (ftfont_lookup_cache, ftfont_get_charset): New functions.
11247 (ftfont_spec_pattern): New argument fc_charset_idx.
11248 Check registry more rigidly. Change callers.
11249 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
11250 change of :font-entity property of the font.
11251
11252 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
11253 property of the font.
11254
11255 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
11256
11257 * coding.c (Fcoding_system_p): Rename argument to match docstring.
11258 (Funencodable_char_position, Fcheck_coding_systems_region)
11259 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
11260 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
11261 (Ffind_operation_coding_system, Fset_coding_system_priority)
11262 (Fcoding_system_eol_type): Doc fixes.
11263
11264 2008-05-17 Glenn Morris <rgm@gnu.org>
11265
11266 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
11267
11268 2008-05-16 Eli Zaretskii <eliz@gnu.org>
11269
11270 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
11271 and st_gid.
11272
11273 * frame.c (Fdelete_frame): Don't call font_update_drivers if
11274 HAVE_WINDOW_SYSTEM is not defined.
11275
11276 * xfaces.c (merge_face_ref, merge_face_vectors)
11277 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
11278 HAVE_WINDOW_SYSTEM is defined.
11279 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
11280
11281 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
11282
11283 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
11284
11285 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11286
11287 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
11288
11289 2008-05-15 Kenichi Handa <handa@m17n.org>
11290
11291 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
11292 preference.
11293
11294 2008-05-15 Glenn Morris <rgm@gnu.org>
11295
11296 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
11297
11298 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
11299
11300 * fns.c (init_fns): Don't initialize weak_hash_tables here.
11301 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
11302
11303 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
11304
11305 2008-05-15 Kenichi Handa <handa@m17n.org>
11306
11307 * ftfont.c (ftfont_list): Downcase family name to check generic
11308 families.
11309
11310 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
11311 font-spec for QCfont value.
11312
11313 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
11314 buffer. Check the return value of it.
11315
11316 2008-05-14 Jason Rumney <jasonr@gnu.org>
11317
11318 * w32term.c (w32_get_glyph_overhangs): Remove.
11319 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
11320
11321 2008-05-14 Kenichi Handa <handa@m17n.org>
11322
11323 * font.c (font_prop_validate): Make nil a valid value.
11324 (font_clear_cache): Check if the cached vector of entities is nil
11325 or not.
11326
11327 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11328
11329 * emacs.c (main_thread): Conditionalize on
11330 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11331 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11332
11333 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11334 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11335 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11336
11337 2008-05-14 Kenichi Handa <handa@m17n.org>
11338
11339 * coding.c (detect_coding_iso_2022): Ignore a coding category that
11340 has no corresponding coding system.
11341
11342 2008-05-14 Jason Rumney <jasonr@gnu.org>
11343
11344 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11345
11346 * w32font.h (w32font_open_internal): Update declaration.
11347
11348 * w32font.c (w32font_open_internal): Change last argument from
11349 w32font_info struct to font object. Fill in font object from
11350 font_entity. Get Outline metrics if possible. Use them to
11351 calculate underline position and thickness. Use xlfd name as name
11352 property. Don't set codepage.
11353 (w32font_open): Pass font_object to w32font_open_internal. Don't
11354 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11355 (w32font_draw): Use s->font.
11356 (clear_cached_metrics): Don't clear non-existent blocks.
11357
11358 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11359 font was not found.
11360 (x_draw_glyph_string): Use underline position and thickness from font.
11361
11362 * w32uniscribe.c (uniscribe_open): Pass font_object to
11363 w32font_open_internal.
11364
11365 2008-05-14 Kenichi Handa <handa@m17n.org>
11366
11367 These changes are to delete all legacy font-handling codes, and
11368 make Emacs use only font-backends.
11369
11370 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11371 (frame.o, image.o, print.o): Depend on $(FONTSRC).
11372
11373 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11374
11375 * charset.h (Vcharset_non_preferred_head)
11376 (Vcurrent_iso639_language): Extern them.
11377
11378 * charset.c (Vcharset_non_preferred_head): New variable.
11379 (Vcurrent_iso639_language): New variable.
11380 (syms_of_charset): Declare it as a Lisp variable.
11381 (char_charset): Don't check non preferred charsets. As a last
11382 resort, return charset_unicode.
11383 (Fset_charset_priority): Update Vcharset_non_preferred_head.
11384
11385 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11386 conditionals. Don't check enable_font_backend. Delete all codes
11387 used only when USE_FONT_BACKEND is not defined.
11388
11389 * dispextern.h (struct glyph_string): Change type of `font' to
11390 `struct font *'.
11391 (struct glyph_string): New member underline_position and
11392 underline_thickness.
11393 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11394 (struct face): Change type of `font' to `struct font *'. Remove
11395 members `font_name', `font_info_id'.
11396 (per_char_metric, encode_char): Delete externs.
11397 (calc_pixel_width_or_height): Adjust the prototype.
11398
11399 * emacs.c (enable_font_backend): Delete extern.
11400 (main): Don't set enable_font_backend. Don't check the command
11401 line argument "-disable-font-backend".
11402
11403 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11404 (enum font_property_index): New members FONT_DPI_INDEX,
11405 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11406 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11407 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11408 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11409 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11410 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11411 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11412 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11413 (struct font_spec, struct font_entity): New structs.
11414 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11415 (struct font): Many members from old "struct font_info" moved to
11416 here. Members font and entity deleted.
11417 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11418 the new font-related objects.
11419 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11420 (CHECK_FONT_GET_OBJECT): Likewise.
11421 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11422 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11423 (struct font_driver): New members case_sensitive anc check. Type
11424 of the member list and open changed.
11425 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11426 (font_symbolic_width, font_find_object, font_get_spec)
11427 (font_set_lface_from_name): Delete extern.
11428 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11429
11430 * font.c: Include <strings.h>.
11431 (enable_font_backend): Delete it.
11432 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11433 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11434 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11435 (null_string): Delete it.
11436 (null_vector): Make it static.
11437 (font_family_alist): Delete it.
11438 (Qnormal): Extern it.
11439 (QCextra, QClanguage): Delete it.
11440 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11441 (font_make_spec, font_make_entity, font_make_object)
11442 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11443 the string. Callers changed.
11444 (font_pixel_size): Adjusted for the format change of font-related
11445 objects.
11446 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11447 (font_style_to_value, font_style_symbolic): New function.
11448 (build_font_family_alist): Delete it.
11449 (font_registry_charsets): Use Fassoc_string instead of
11450 assq_no_quit.
11451 (font_prop_validate_symbol): Don't return null_string.
11452 (font_prop_validate_style): Adjusted for the change of
11453 style-related values in a font vector.
11454 (font_property_table): Delete entries for QClanguage and
11455 QCantialias, add entries for QCavgwidth.
11456 (get_font_prop_index): Delete the 2nd argument FROM.
11457 (font_prop_validate): Arguments changed.
11458 (font_put_extra): Adjusted for the change of font-related objects.
11459 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11460 (font_parse_fcname, font_unparse_fcname)
11461 (font_prepare_composition): Likewise.
11462 (font_parse_family_registry): Renamed from font_merge_old_spec.
11463 (otf_open): Delete the 1st arg entity.
11464 (font_otf_capability): Adjusted for the above change.
11465 (font_score): New arg alternate_families. Adjusted for the change
11466 of font-related objects.
11467 (font_sort_entites): New arg best_only.
11468 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11469 Delete them.
11470 (font_match_p): Check alternate families.
11471 (font_find_object): Delete it.
11472 (font_check_object): New function.
11473 (font_clear_cache): Adjusted for the change of font-related objects.
11474 (font_delete_unmatched): New arg.
11475 (font_list_entities): Call font_driver->list with a spec that
11476 doesn't specify style-related properties.
11477 (font_matching_entity): Arguments changed. Caller changed.
11478 (font_open_entity): Adjusted for the change of font-related objects.
11479 (font_close_object, font_has_char, font_encode_char)
11480 (font_get_name, font_get_spec): Likewise.
11481 (font_spec_from_name, font_clear_prop, font_update_lface):
11482 New functions.
11483 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11484 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11485 (font_at): Adjusted for the change of font-related objects.
11486 (font_range): New function.
11487 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11488 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11489 (Fcopy_font_spec, Fmerge_font_spec): New function.
11490 (Ffont_family_list): Renamed from list-families.
11491 (Finternal_set_font_style_table): Arguments changed.
11492 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11493 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11494 change of font-related objects.
11495 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11496
11497 * fontset.h (struct font_info): Delete it. Most members go to
11498 struct font.
11499 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11500 (enum FONT_SPEC_INDEX): Delete it.
11501 (font_info, list_fonts_func, load_font_func, query_font_func)
11502 (set_frame_fontset_func, find_ccl_program_func)
11503 (get_font_repertory_func, new_fontset_from_font_name): Delete
11504 externs.
11505 (fontset_from_font_name): Extern it.
11506 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11507 (FONT_INFO_FROM_FACE): Deleted.
11508 (face_for_font): Adjust prototype.
11509
11510 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11511 conditionals. Don't check enable_font_backend. Delete all codes
11512 used only when USE_FONT_BACKEND is not defined.
11513 (get_font_info_func, list_font_func, load_font_func)
11514 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11515 (get_font_repertory_func): Delete them.
11516 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11517 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11518 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11519 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11520 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11521 (fontset_compare_rfontdef): New function.
11522 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11523 rfont-defs by qsort. Adjusted for the change of font-group vector.
11524 (load_font_get_repertory): Deleted.
11525 (fontset_find_font): Use new macros to ref/set elements of
11526 font-def and rfont-def.
11527 (fontset_font): Fix the timing of remembering that no font for C.
11528 (free_face_fontset): Do nothing if the face has no fontset.
11529 (face_suitable_for_char_p): Use new macros to ref/set elements of
11530 rfont-def.
11531 (face_for_char): Likewise. Call face_for_char with font_object.
11532 (fs_load_font): Delete. Delete #pragma surrounding it.
11533 (fs_query_fontset): Use strcasecmp instead of strcmp.
11534 (generate_ascii_font_name): Adjusted for the format change of
11535 font-spec.
11536 (Fset_fontset_font): Likewise. Use new macros to set elements of
11537 font-def.
11538 (Fnew_fontset): Use font_unparse_xlfd to generate
11539 FONTSET_ASCII (fontset).
11540 (new_fontset_from_font_name): Deleted.
11541 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11542 a fontset is already created for the font. FIx updating of
11543 Vfontset_alias_alist.
11544 (fontset_ascii_font): Deleted.
11545 (Ffont_info): Adjusted for the format change of font-spec.
11546 (Finternal_char_font): Likewise.
11547 (Ffontset_info): Likewise.
11548 (syms_of_fontset): Don't check load_font_func.
11549
11550 * fns.c (internal_equal): Handle PREV_FONT.
11551
11552 * frame.h: Delete USE_FONT_BACKEND conditional.
11553
11554 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11555 conditionals. Don't check enable_font_backend. Delete all codes
11556 used only when USE_FONT_BACKEND is not defined.
11557 (x_set_font): Call x_new_font, not x_new_fontset2.
11558 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11559 already set for the frame.
11560
11561 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11562 a font-entity by font_make_entity. Use font_intern_prop instead
11563 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11564 font property. If a font is scalable, set avgwidth property to 0.
11565 Set font-entity property by font_put_extra.
11566 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11567 (ffont_driver): Adjusted for the change of struct font_driver.
11568 (ftfont_spec_pattern): New function.
11569 (ftfont_list): Return a list, not vector.
11570 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11571 (ftfont_list_family): Don't downcase names.
11572 (ftfont_free_entity): Deleted.
11573 (ftfont_open): Return a font-object. Adjusted for the change of
11574 struct font. Get underline_thickness and underline_position from
11575 font property. Don't update dpyinfo->smallest_font_height and
11576 dpyinfo->smallest_char_width.
11577 (ftfont_close): Don't free `struct font'.
11578 (ftfont_has_char): Adjusted for the format change of font-entity.
11579 (ftfont_encode_char, ftfont_text_extents): Likewise.
11580
11581 * ftxfont.c (ftxfont_list): Return a list, not vector.
11582 (ftxfont_open): Return a font-object. Adjusted for the change of
11583 struct font. Get underline_thickness and underline_position from
11584 font property. Don't update dpyinfo->smallest_font_height and
11585 dpyinfo->smallest_char_width.
11586 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11587 (ftxfont_draw): Adjusted for the change of struct font.
11588
11589 * image.c (image_ascent): Don't include "charset.h". Include
11590 "character.h" and "font.h".
11591
11592 * lisp.h (enum pvec_type): New member PREV_FONT.
11593 (Fassoc_string): EXFUN it.
11594
11595 * print.c: Include font.h.
11596 (print_object): Handle font-related objects.
11597
11598 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11599 conditionals. Don't check enable_font_backend. Delete all codes
11600 used only when USE_FONT_BACKEND is not defined.
11601 (handle_auto_composed_prop): Do nothing if it->f is not on a
11602 window system. Check how many following characters can be
11603 displayed by the same font.
11604 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11605 'struct font *'.
11606 (get_char_face_and_encoding): Assign the whole encoding task to
11607 the `encode-char' method of a font driver.
11608 (fill_composite_glyph_string): Adjusted for the change of `struct
11609 face' and `struct glyph_string'.
11610 (fill_glyph_string): Likewise.
11611 (get_per_char_metric): Arguments changed.
11612 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11613 and `struct glyph_string'.
11614 (produce_stretch_glyph, calc_line_height_property)
11615 (x_produce_glyphs): Likewise.
11616
11617 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11618 conditionals. Don't check enable_font_backend. Delete all codes
11619 used only when USE_FONT_BACKEND is not defined. Use
11620 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11621 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11622 (Qp): Extern them.
11623 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11624 Deleted.
11625 (struct font_name): Deleted.
11626 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11627 (compare_fonts_by_sort_order): New function.
11628 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11629 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11630 Deleted.
11631 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11632 compare_fonts_by_sort_order.
11633 (Fx_font_family_list): Call Ffont_family_list.
11634 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11635 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11636 (face_symbolic_slant, face_symbolic_swidth)
11637 (split_font_name_into_vector, build_font_name_from_vector)
11638 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11639 (font_rescale_ratio, split_font_name, build_font_name)
11640 (free_font_names, sort_fonts, x_face_list_fonts)
11641 (face_font_available_p, sorted_font_list, cmp_font_names)
11642 (font_list_1, concat_font_list, font_list, remove_duplicates):
11643 Deleted.
11644 (Fx_list_fonts): Use Ffont_list.
11645 (LFACE_AVGWIDTH): Deleted.
11646 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11647 by FONTP.
11648 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11649 (set_lface_from_font_name): Delete it.
11650 (set_lface_from_font): Renamed from
11651 set_lface_from_font_and_fontset. Caller changed. Don't set
11652 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11653 for face.
11654 (merge_face_vectors): Copy font-spec if necessary.
11655 Clear properties of the font-spec if necessary.
11656 (merge_face_ref): Clear properties of the font-spec if necessary.
11657 (Finternal_set_lisp_face_attribute): Likewise.
11658 (set_font_frame_param): Use font_load_for_lface to load a
11659 font-object, and call Fmodify_frame_parameters with it.
11660 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11661 font name by Ffont_xlfd_name.
11662 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11663 QCslant, and QCwidth.
11664 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11665 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11666 Compare fonts by EQ.
11667 (lookup_non_ascii_face): Deleted.
11668 (face_for_font): The 2nd argument changed.
11669 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11670 Check atomic font properties by case insensitive.
11671 (realize_non_ascii_face): Set face->overstrike correctly.
11672 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11673 (dump_realized_face): Get font name from
11674 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11675
11676 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11677 conditionals. Don't check enable_font_backend. Delete all codes
11678 used only when USE_FONT_BACKEND is not defined.
11679 (xic_create_xfontset): Original code deleted and renamed from
11680 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11681 (x_make_gc): Don't set GCFont in GCs.
11682 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11683 opened by "fixed".
11684 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11685 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11686 get_font_repertory_func.
11687
11688 * xfont.c: Include <stdlib.h> and "ccl.h".
11689 (struct xfont_info): New structure.
11690 (xfont_query_font): Deleted.
11691 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11692 moved from xterm.c.
11693 (xfont_driver): Adjusted for the change of struct font_driver.
11694 (compare_font_names): New function.
11695 (xfont_list_pattern): Sort font names case insensitively. Make
11696 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11697 (xfont_list): Return a list, not vector.
11698 (xfont_match): If the font doesn't have QCname property, generate
11699 a name from the other font properties.
11700 (xfont_open): Return a font-object. Adjusted for the change of
11701 struct font. Get underline_thickness and underline_position from
11702 font property. Don't update dpyinfo->smallest_font_height and
11703 dpyinfo->smallest_char_width.
11704 (xfont_close): Don't free struct font.
11705 (xfont_prepare_face): Adjusted for the change of struct font.
11706 (xfont_done_face): Deleted.
11707 (xfont_has_char): Adjusted for the change of struct font.
11708 (xfont_encode_char, xfont_draw): Likewise.
11709 (xfont_check): New function.
11710
11711 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11712 callback function.
11713 (xftfont_match): Adjusted for the format change of font-entity.
11714 (xftfont_open): Adjusted for the format change of font-entity and
11715 font-object. Adjusted for the change of struct font. Return a
11716 font-object. Don't update dpyinfo->smallest_font_height and
11717 dpyinfo->smallest_char_width.
11718 (xftfont_close): Block input while calling XftFontClose.
11719 (xftfont_prepare_face): Don't block input while calling
11720 xftfont_get_colors. Adjusted for the change of struct font.
11721 (xftfont_shape): Return value of error case fixed.
11722
11723 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11724
11725 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11726 conditionals.
11727 (FONT_WIDTH): Return (f)->max_width.
11728 (struct x_display_info): Delete member `font'.
11729 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11730 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11731 (struct x_output): Change type of `font' to `struct font *'.
11732
11733 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11734 conditionals. Don't check enable_font_backend. Delete all codes
11735 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11736 (x_per_char_metric, x_encode_char): Deleted.
11737 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11738 (x_compute_glyph_string_overhangs): Adjusted for the change of
11739 `struct face'.
11740 (x_draw_glyph_string_foreground)
11741 (x_draw_composite_glyph_string_foreground): Likewise.
11742 (x_draw_glyph_string): Likewise. Use font->underline_position and
11743 font->underline_thickness.
11744 (x_new_font): Renamed from x_new_fontset2.
11745 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11746 (x_check_font): Call `check' method of a font driver.
11747 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11748 (x_query_font, x_get_font_repertory): Deleted.
11749 (x_find_ccl_program): Renamed and moved to xfont.c.
11750 (x_redisplay_interface): Adjusted for the change of `struct
11751 redisplay_interface'.
11752
11753 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11754 conditionals. Don't check enable_font_backend. Delete all codes
11755 used only when USE_FONT_BACKEND is not defined. Surround non-used
11756 code by "#ifdef OLD_FONT" and "endif".
11757 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11758
11759 * w32font.h (struct w32font_info): New member.
11760 (FONT_COMPAT): New macro.
11761 (w32font_open_internal): Prototype adjusted.
11762
11763 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11764 OLD_FONT" and "endif".
11765
11766 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11767 conditionals. Don't check enable_font_backend. Delete all codes
11768 used only when USE_FONT_BACKEND is not defined.
11769 (w32font_open): Return a font-object. Make a font-object by
11770 font_make_object. Adjusted for the change of struct w32font_info.
11771 (w32font_close): Don't free struct font. Adjusted for the change
11772 of struct w32font_info.
11773 (w32font_encode_char, w32font_text_extents, w32font_draw):
11774 Adjusted for the change of struct w32font_info.
11775 (w32font_draw): Likewise.
11776 (w32font_list_internal): Return a list, not vector.
11777 (w32font_open_internal): Change the 4th arg to font-object.
11778 Adjusted for the change of struct w32font_info and font-object format.
11779 (add_font_name_to_list): Don't downcase names.
11780 (w32_enumfont_pattern_entity): Make a font-entity by
11781 font_make_entity. Adjusted for the format change of font-entity.
11782 Use FONT_SET_STYLE to set a style-related font property. If a
11783 font is scalable, set avgwidth property to 0. Set font-entity
11784 property by font_put_extra.
11785 (font_matches_spec): Adjusted for the format change of font-entity.
11786 (w32_weight_table, w32_decode_weight): New variables.
11787 (w32_encode_weight): New function.
11788 (fill_in_logfont): Adjusted for the format change of font-spec.
11789 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11790 weight value.
11791 (w32font_driver): Adjusted for the change of struct font_driver.
11792
11793 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11794 conditionals. Don't check enable_font_backend. Surround non-used
11795 code by "#ifdef OLD_FONT" and "endif".
11796 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11797 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11798
11799 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11800 conditionals. Don't check enable_font_backend. Delete all codes
11801 used only when USE_FONT_BACKEND is not defined. Surround non-used
11802 code by "#ifdef OLD_FONT" and "endif".
11803
11804 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11805 (uniscribe_open): Return value changed to font-object.
11806 Adjusted for the format change of font-object.
11807 (uniscribe_otf_capability): Adjusted for the change of struct font.
11808 (add_opentype_font_name_to_list): Don't downcase names.
11809 (uniscribe_font_driver): Adjusted for the change of struct
11810 font_driver.
11811
11812 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
11813
11814 * dispnew.c (update_frame_1): Check if tty output is still valid
11815 before flushing it.
11816
11817 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11818
11819 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11820 to Gtk+ menus.
11821
11822 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11823
11824 * dired.c (file_name_completion): Tweak the code so as to always do it
11825 in a single pass. Tighten the scope of some variables.
11826
11827 * dired.c (Qdefault_directory): New var.
11828 (file_name_completion): Use it instead of Fexpand_file_name.
11829 (syms_of_dired): Initialize it.
11830
11831 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11832
11833 * fileio.c (double_dollars): Remove dead code.
11834
11835 2008-05-10 Eli Zaretskii <eliz@gnu.org>
11836
11837 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11838 Mention w32-get-true-file-attributes in doc string.
11839
11840 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11841
11842 2008-05-09 Glenn Morris <rgm@gnu.org>
11843
11844 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11845 2008-04-23.
11846
11847 2008-05-09 Eli Zaretskii <eliz@gnu.org>
11848
11849 Support for reporting owner and group of each file on MS-Windows:
11850 * dired.c (stat_uname, stat_gname): New functions, with special
11851 implementation for w32.
11852 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11853
11854 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11855 (dflt_group_name): New static variable.
11856 (dflt_group): Rename from the_group.
11857 (init_user_info): Init dflt_group fields. Get user's group name
11858 from LookupAccountSid.
11859 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11860 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11861 New initialization states.
11862 (globals_of_w32): Initialize them to zero. Initialize the default
11863 group name to "None".
11864 (GetFileSecurity_Name): New global var, the name of the function
11865 to call for GetFileSecurity.
11866 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11867 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11868 (get_file_security, get_security_descriptor_owner)
11869 (get_security_descriptor_group, is_valid_sid)
11870 (get_file_security_desc, get_rid, get_name_and_id)
11871 (get_file_owner_and_group): New functions.
11872 (stat): Use get_file_security_desc and get_file_owner_and_group to
11873 report the owner and primary group of each file. Don't ignore the
11874 high 32 bits of file's size, now that st_size is 64-bit wide.
11875 Fix test when to get true file attributes.
11876 (init_user_info): Use get_rid instead of equivalent inline code.
11877 (fstat): Don't ignore the high 32 bits of file's size.
11878
11879 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
11880
11881 * image.c (png_load): Use correct bit-depth for setting background
11882 color.
11883
11884 2008-05-08 Eli Zaretskii <eliz@gnu.org>
11885
11886 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11887 epa-hook.elc.
11888
11889 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
11890
11891 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11892
11893 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11894
11895 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11896 because the original parameters are in pure storage now.
11897 (mac_window): Remove unused params. Update callers.
11898
11899 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11900
11901 * lread.c (substitute_object_recurse): Use lower-level primitives.
11902 Don't signal errors when traversing sub-char-tables.
11903 Don't loop over all the possible characters when traversing char-tables.
11904
11905 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11906 just like we do in print.c.
11907
11908 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11909
11910 * minibuf.c (Ftry_completion): Remove code left over from when we used
11911 scmp instead of Fcompare_strings.
11912
11913 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
11914
11915 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11916
11917 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11918
11919 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11920 Create bitmap context in native byte order.
11921
11922 * macterm.c (XDrawLine)
11923 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11924 context in native byte order.
11925
11926 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11927
11928 * config.in: Regenerate.
11929
11930 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11931 New definitions for Image I/O support.
11932 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11933 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11934 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11935 (mac_data_provider_release_data, image_load_image_io)
11936 [USE_MAC_IMAGE_IO]: New functions.
11937 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11938 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11939 (init_image_func_pointer) [MAC_OSX]: Remove function.
11940 (image_load_quartz2d) [MAC_OSX]: Check availability of
11941 CGImageCreateWithPNGDataProvider at compile time.
11942 Use lowercase `false' for boolean constant.
11943 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11944 Use image_load_image_io.
11945 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11946 Don't check MyCGImageCreateWithPNGDataProvider.
11947 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11948 Don't call init_image_func_pointer.
11949
11950 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11951
11952 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11953 Make variable non-static.
11954 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11955 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11956
11957 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11958 (RED_FROM_ULONG): Mask off higher bits.
11959 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11960
11961 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11962 Include AvailabilityMacros.h.
11963 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11964 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11965
11966 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11967
11968 * chartab.c (Fset_char_table_range): If range is t, really set all
11969 chars to that value.
11970
11971 2008-05-03 Eli Zaretskii <eliz@gnu.org>
11972
11973 * dired.c (Ffile_attributes): Don't allow the device number become
11974 negative.
11975
11976 2008-05-02 Daiki Ueno <ueno@unixuser.org>
11977
11978 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11979
11980 2008-05-02 Juri Linkov <juri@jurta.org>
11981
11982 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11983 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11984 DEFAULT argument as a list of default values in docstrings.
11985
11986 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
11987
11988 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11989
11990 2008-05-01 Martin Rudalics <rudalics@gmx.at>
11991
11992 * dispnew.c (change_frame_size_1): Preserve small windows when
11993 shrinking frames by calling set_window_height|width with third
11994 arg 2.
11995
11996 * window.h (struct window): Replace field too_small_ok by field
11997 resize_proportionally.
11998
11999 * window.c (make_window): Initialize resize_proportionally.
12000 (enlarge_window): Temporarily set resize_proportionally to make
12001 sure that shrink_windows does scale the window proportionally.
12002 (shrink_windows): When window has resize_proportionally set try
12003 to shrink it proportionally by stealing from other windows.
12004 (struct saved_window, Fset_window_configuration)
12005 (compare_window_configurations): Handle resize_proportionally.
12006 (WINDOW_TOTAL_SIZE): New macro.
12007 (window_min_size, shrink_windows, size_window): Use it.
12008 (check_min_window_sizes): Remove. Invalid values of
12009 window-min-height|width are handled by window_min_size_2 now.
12010 (size_window, Fsplit_window, enlarge_window)
12011 (adjust_window_trailing_edge, grow_mini_window): Don't call
12012 check_min_window_sizes.
12013 (window_min_size_2, window_min_size_1, window_min_size):
12014 New argument safe_p for retrieving "safe" minimum sizes.
12015 (Fdisplay_buffer, Fsplit_window, enlarge_window)
12016 (adjust_window_trailing_edge, grow_mini_window):
12017 Adjust arguments of window_min_size... functions.
12018 (shrink_windows): Argument min_size removed. New argument
12019 safe_p allows shrinking windows to their safe minimum sizes.
12020 Calculate minimum size and decide whether a window shall be
12021 deleted for each window individually.
12022 (size_window): When nodelete_p equals 2, tell shrink_windows to
12023 delete windows only if their new minimum size is no more safe.
12024 (shrink_window_lowest_first): Call window_min_size_1 to make
12025 sure to preserve modeline of bottom-most window when resizing
12026 the minibuffer.
12027 (Fset_window_configuration, Fcurrent_window_configuration)
12028 (compare_window_configurations): Do not handle
12029 window-min-height|width any more.
12030 (syms_of_window): Clarify window-min-height|width doc-strings.
12031
12032 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
12033
12034 * dired.c (file_name_completion): Fix up the encoding/decoding issue
12035 some more. Copy some of the code from Ftry_completions.
12036 Remove special case code that dates back to initial revision when the
12037 slash was only added when necessary and that can't trigger nowadays.
12038
12039 2008-04-27 Kenichi Handa <handa@m17n.org>
12040
12041 * font.c (font_prop_validate): Signal `error' instead of `font'.
12042
12043 2008-04-29 Jason Rumney <jasonr@gnu.org>
12044
12045 * w32fns.c (Fw32_battery_status): New defun.
12046 (syms_of_w32fns): Defsubr it.
12047
12048 2008-04-28 Andreas Schwab <schwab@suse.de>
12049
12050 * dired.c (file_name_completion): Fix another mixing of encoded
12051 and decoded names.
12052
12053 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
12054
12055 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
12056
12057 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
12058
12059 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
12060
12061 2008-04-27 Andreas Schwab <schwab@suse.de>
12062
12063 * dired.c (file_name_completion): Fix inappropriate mixing of
12064 encoded and decoded names.
12065
12066 * xterm.c (XTread_socket): Fix use of uninitialized variable.
12067
12068 * puresize.h (BASE_PURESIZE): Increase to 1200000.
12069
12070 2008-04-26 Eli Zaretskii <eliz@gnu.org>
12071
12072 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
12073 2008-03-31, it's not needed anymore with `struct stat' definition
12074 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
12075 for the same reasons.
12076
12077 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
12078
12079 * m/sparc.h: Additional redefinitions for GNU/Linux.
12080
12081 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12082
12083 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
12084 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
12085 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
12086 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
12087 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12088 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
12089 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12090 Likewise.
12091
12092 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
12093 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
12094 (mac_ax_number_of_characters): Add externs.
12095 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12096 [USE_MAC_TSM]: Likewise.
12097 (mac_handle_text_input_event) [MAC_OSX]:
12098 Handle kEventTextInputOffsetToPos for no active input area case.
12099 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12100 (mac_handle_document_access_event)
12101 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
12102 (install_application_handler) [MAC_OSX]: Register handlers for
12103 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12104 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12105 Register mac_handle_document_access_event.
12106
12107 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
12108 Make functions non-static.
12109
12110 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
12111
12112 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
12113 (read_file_name_completion_ignore_case, insert_default_directory)
12114 (Qdefault_directory): Move to minibuffer.el.
12115 (Fread_file_name): Call the new `read-file-name' instead.
12116
12117 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12118
12119 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
12120 Make function non-static.
12121 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
12122 Remove function.
12123 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12124 Move to mactoolbox.c.
12125 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
12126
12127 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
12128 (mac_rect_make): New macro.
12129
12130 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
12131 instead of float.
12132 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12133 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
12134 (XSetBackground) [USE_CG_DRAWING]: Likewise.
12135 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
12136 CGRectMake.
12137 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12138 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
12139 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
12140 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12141 instead of WindowRef in argument type.
12142 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
12143 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
12144 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
12145 instead of DISPLAY. All uses changed.
12146 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
12147 (x_calc_absolute_position): Simplify so as not to use
12148 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
12149
12150 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12151 instead of WindowRef in argument type.
12152 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
12153 [TARGET_API_MAC_CARBON]: Remove externs.
12154 (create_apple_event, mac_event_parameters_to_lisp)
12155 [TARGET_API_MAC_CARBON]: Add externs.
12156
12157 * mactoolbox.c (Vmac_ts_script_language_on_focus)
12158 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
12159 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
12160 is clicked.
12161 (x_activate_menubar): Remove extern for saved_menu_event_location.
12162 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12163 Move from mac.c.
12164
12165 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12166
12167 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
12168 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
12169
12170 2008-04-23 Jason Rumney <jasonr@gnu.org>
12171
12172 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
12173 attributes only for local files.
12174
12175 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
12176 default to Qlocal.
12177
12178 2008-04-22 Juri Linkov <juri@jurta.org>
12179
12180 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
12181 read-buffer-to-switch instead of using the letter "B".
12182
12183 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
12184
12185 * fileio.c (Qdefault_directory): New variable.
12186 (Fread_file_name): Use it to pass `dir' to the completion functions.
12187
12188 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
12189
12190 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
12191
12192 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
12193
12194 * keyboard.c (Vpre_help_message): Remove.
12195 (show_help_echo): Remove default C code.
12196
12197 * dired.c (directory_files_internal, file_name_completion):
12198 Only call ENCODE_FILE if the string is indeed decoded.
12199
12200 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12201
12202 * Makefile.in (TOOLKIT_DEFINES): Remove.
12203 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
12204
12205 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12206
12207 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
12208 (mactoolbox.o): New target.
12209
12210 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
12211 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
12212
12213 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
12214 Use mac_set_frame_window_background instead of XSetWindowBackground.
12215 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
12216 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
12217 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
12218 instead of SetWindowTitleWithCFString.
12219 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
12220 Move function to mactoolbox.c.
12221 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
12222 Use mac_set_window_modified instead of SetWindowModified.
12223 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
12224 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
12225 (Fx_focus_frame): Use mac_front_non_floating_window instead of
12226 FrontNonFloatingWindow. Use mac_activate_window instead of
12227 ActivateWindow. Use mac_active_non_floating_window instead of
12228 ActiveNonFloatingWindow.
12229 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
12230 Use mac_show_hourglass and mac_hide_hourglass.
12231 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
12232 instead of GetGlobalMouse.
12233 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
12234 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
12235 Use mac_bring_window_to_front instead of BringToFront.
12236 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
12237 mactoolbox.c.
12238 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
12239 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
12240 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
12241 mactoolbox.c.
12242
12243 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
12244 (XtPointer): Move typedef from macmenu.c.
12245 (enum button_type): Move enum from macmenu.c.
12246 (widget_value): Move typedef from macmenu.c.
12247 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
12248 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12249 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12250 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12251 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12252 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12253 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12254 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
12255 (Selection): Move typedef from macselect.c.
12256 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
12257 macterm.c.
12258 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
12259 (mac_is_window_collapsed, mac_bring_window_to_front)
12260 (mac_send_window_behind, mac_hide_window, mac_show_window)
12261 (mac_collapse_window, mac_front_non_floating_window)
12262 (mac_active_non_floating_window, mac_activate_window)
12263 (mac_move_window_structure, mac_move_window, mac_size_window)
12264 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
12265
12266 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
12267 (enum mac_menu_kind): Move enum to mactoolbox.c.
12268 (min_menu_id): Move variable to mactoolbox.c.
12269 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
12270 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
12271 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12272 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12273 [TARGET_API_MAC_CARBON]: Likewise.
12274 (XtPointer): Move typedef to macgui.h.
12275 (enum button_type): Move enum to macgui.h.
12276 (widget_value): Move typedef to macgui.h.
12277 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12278 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12279 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12280 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12281 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12282 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12283 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
12284 (popup_activated_flag): Make variable non-static.
12285 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
12286 (add_menu_item, fill_menu, dispose_menus):
12287 Move functions to mactoolbox.c.
12288 (restore_show_help_function, menu_target_item_handler)
12289 (install_menu_target_item_handler, mac_handle_dialog_event)
12290 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
12291 [TARGET_API_MAC_CARBON]: Likewise.
12292 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
12293 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12294 (find_and_call_menu_selection, name_is_separator): Make function
12295 non-static.
12296 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
12297 to mactoolbox.c.
12298 (set_frame_menubar): Don't call install_menu_quit_handler.
12299 (menu_item_selection): New variable.
12300 (mac_menu_show): Use create_and_show_popup_menu.
12301 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
12302 selection but set variable menu_item_selection. All uses changed.
12303 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
12304 Call install_menu_quit_handler. Move to mactoolbox.c.
12305
12306 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
12307 (Selection): Move typedef to macgui.h.
12308 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
12309 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
12310 Make variables non-static.
12311 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12312 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
12313 Make functions non-static.
12314 (Vmac_service_selection) [MAC_OSX]: Likewise.
12315 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
12316 (mac_valid_selection_target_p, mac_clear_selection)
12317 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12318 (mac_put_selection_value, mac_selection_has_target_p)
12319 (mac_get_selection_value, mac_get_selection_target_list)
12320 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
12321 Move functions to mactoolbox.c.
12322 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
12323 Likewise.
12324 (copy_scrap_flavor_data, mac_handle_service_event)
12325 (install_service_handler) [MAC_OSX]: Likewise.
12326 (syms_of_macselect) <Vmac_dnd_known_types>:
12327 Use mac_dnd_default_known_types.
12328
12329 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
12330 Move to mactoolbox.c.
12331 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12332 (Fx_selection_owner_p): Add EXFUN.
12333 (install_window_handler, remove_window_handler, XSetWindowBackground):
12334 Remove externs.
12335 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12336 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12337 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12338 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12339 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12340 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12341 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12342 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12343 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12344 (create_and_show_popup_menu, mac_get_selection_from_symbol)
12345 (mac_valid_selection_target_p, mac_clear_selection)
12346 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12347 (mac_put_selection_value, mac_selection_has_target_p)
12348 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12349 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12350 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12351 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12352 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12353 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12354 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12355 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12356 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12357
12358 * mactoolbox.c: New file.
12359
12360 2008-04-18 Jason Rumney <jasonr@gnu.org>
12361
12362 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12363
12364 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12365
12366 * character.c (Fmultibyte_char_to_unibyte):
12367 Return latin1 chars unchanged.
12368
12369 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12370 relocated if it points to `name'.
12371
12372 2008-04-17 Kenichi Handa <handa@m17n.org>
12373
12374 * data.c (Faset): Allow setting a multibyte character in an
12375 ASCII-only unibyte string.
12376
12377 * lisp.h (STRING_SET_MULTIBYTE): New macro.
12378
12379 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
12380
12381 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12382 done in config.h.
12383
12384 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
12385
12386 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12387 (Fchar_direction): Add usage in the docstring.
12388
12389 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
12390
12391 * keyboard.c (read_key_sequence): Remove always-true checks.
12392
12393 2008-04-14 Jason Rumney <jasonr@gnu.org>
12394
12395 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12396 compatibility struct, for better underline positioning.
12397
12398 2008-04-13 David Hansen <david.hansen@gmx.net>
12399
12400 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12401 string.
12402
12403 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12404
12405 * m/hp800.h (XUINT, XSET): Remove.
12406
12407 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
12408
12409 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12410 previous change.
12411
12412 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12413
12414 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12415 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12416
12417 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12418
12419 * keymap.h (map_keymap_canonical): Declare.
12420 * xmenu.c (single_keymap_panes): Use it.
12421
12422 2008-04-11 Glenn Morris <rgm@gnu.org>
12423
12424 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12425 set the target's value to that of the alias.
12426
12427 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12428
12429 * term.c (set_tty_color_mode): Left over typo.
12430
12431 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
12432
12433 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12434 only after check for file name handler functions. Signal, when
12435 native functionality is not supported.
12436 (syms_of_fileio): Declare it unconditionally.
12437
12438 2008-04-10 Jason Rumney <jasonr@gnu.org>
12439
12440 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12441 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12442
12443 * w32.c (logon_network_drive): Also logon to remote drives that
12444 are mapped to drive letters.
12445
12446 2008-04-10 Glenn Morris <rgm@gnu.org>
12447
12448 * xdisp.c (truncate-partial-width-windows): Doc fix.
12449
12450 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12451
12452 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12453 Move functions to minibuffer.el.
12454 (syms_of_fileio): Don't declare them.
12455
12456 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12457
12458 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12459 (syms_of_minibuf): Remove its initialization.
12460
12461 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12462
12463 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
12464
12465 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12466
12467 2008-04-09 Jason Rumney <jasonr@gnu.org>
12468
12469 * makefile.w32-in (distclean): Delete makefile too.
12470 (maintainer-clean): New target.
12471
12472 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12473
12474 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12475 for new font backend and composite cases.
12476
12477 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12478
12479 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12480 Most of the code moved to run_timers.
12481 (do_pending_atimers): Call run_timers.
12482 (run_timers): New function.
12483
12484 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12485 run atimers.
12486
12487 * process.c (wait_reading_process_output): The same as above.
12488
12489 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12490
12491 * minibuf.c (last_exact_completion): Remove variable.
12492 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12493 (complete_and_exit_1, complete_and_exit_2)
12494 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12495 (Fdisplay_completion_list, display_completion_list_1)
12496 (Fminibuffer_completion_help, Fself_insert_and_exit)
12497 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12498 minibuffer.el.
12499 (syms_of_minibuf): Remove corresponding initializations.
12500
12501 * keyboard.c (Qdeactivate_mark): New var.
12502 (command_loop_1): Use it to call `deactivate-mark'.
12503 (syms_of_keyboard): Initialize it.
12504
12505 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12506 to another frame.
12507 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12508 Don't call set_tty_color_mode.
12509 (store_frame_param): Reset previous_frame rather than call
12510 set_tty_color_mode.
12511 * term.c (set_tty_color_mode): Rewrite.
12512 * dispextern.h (set_tty_color_mode): New type.
12513 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12514
12515 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12516
12517 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12518 for generic chars, which do not exist any more in emacs-unicode.
12519
12520 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
12521
12522 * coding.c (detect_coding_emacs_mule)
12523 (Ffind_operation_coding_system): Fix typo.
12524
12525 2008-04-08 Jason Rumney <jasonr@gnu.org>
12526
12527 * w32uniscribe.c (SNAME): Extract only symbol name.
12528
12529 * w32font.h (struct w32_metric_cache): New struct.
12530 (w32font_info): Use it.
12531 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12532 (CACHE_BLOCKSIZE): New constants.
12533
12534 * w32font.c (Qja, Qko, Qzh): New symbols.
12535 (syms_of_w32font): Initialise them.
12536 (font_matches_spec): Use them to filter by language.
12537 (recompute_cached_metrics): Remove function.
12538 (compute_metrics, clear_cached_metrics): New functions.
12539 (w32font_encode_char): Use them to manage metric cache.
12540 (w32font_text_extents): Cache metrics for all glyphs on demand.
12541 Delay converting glyph indices to WORD until needed.
12542 (w32font_open_internal): Initialize metric cache to empty.
12543 (registry_to_w32_charset): Charset should always be a symbol.
12544 (fill_in_logfont, list_all_matching_fonts): Family should
12545 always be a symbol.
12546
12547 2008-04-06 Jason Rumney <jasonr@gnu.org>
12548
12549 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12550 Give up if glyph indices not supported. Use uniscribe obtained
12551 ABC widths for individual metrics. Map glyph clusters back to
12552 characters using fClusterStart flag. Return number of glyphs
12553 produced, not chars processed.
12554 (uniscribe_shape): Map char at FROM to current glyph.
12555
12556 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12557
12558 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12559 Use SetMenuItemHierarchicalMenu.
12560
12561 2008-04-05 Jason Rumney <jasonr@gnu.org>
12562
12563 * image.c (pbm_load): Allow color values up to 65535.
12564 Throw an error if max_color_idx is outside the supported range.
12565 Report an error when image size is invalid.
12566 Read two bytes at a time when raw images have max_color_idx above 255.
12567
12568 2008-04-05 Eli Zaretskii <eliz@gnu.org>
12569
12570 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12571 cFileName a file name that includes `?' characters, use the 8+3
12572 alias in cAlternateFileName instead.
12573
12574 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12575
12576 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12577 append "CCL: Quitted" when the CCL program is quitted.
12578 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12579
12580 * ccl.h (struct ccl_program): New member quit_silently.
12581
12582 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
12583
12584 * search.c (compile_pattern_1): Treat non-nil and non-string of
12585 search-spaces-regexp as nil.
12586
12587 * minibuf.c (Fassoc_string): Tweak docstring.
12588
12589 2008-04-05 Eli Zaretskii <eliz@gnu.org>
12590
12591 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12592 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12593 2008-03-14 to force inode be positive.
12594
12595 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12596 _S_* ones, since we now use our own sys/stat.h.
12597 (stat, fstat): Don't mangle the inode number.
12598 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12599
12600 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12601
12602 * frame.h (struct frame): Give one more bit to `visible' since we use
12603 values larger than 1 to indicate obscured frames on ttys.
12604
12605 * keymap.c (Qkeymap_canonicalize): New var.
12606 (Fmap_keymap_internal): New fun.
12607 (describe_map): Use keymap-canonicalize.
12608
12609 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12610 (Fundo_boundary): Set them.
12611 (syms_of_undo): Initialize them.
12612 (record_point): Use them instead of last_point_position*.
12613 (last_undo_buffer): Change type.
12614
12615 2008-04-04 Jason Rumney <jasonr@gnu.org>
12616
12617 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12618 (recompute_cached_metrics): Don't set ascent and descent per char.
12619
12620 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12621 (uniscribe_check_otf): Add GC protection before consing.
12622 Rearrange loop for counting features.
12623
12624 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12625
12626 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12627 buffer with byte-size of source buffer.
12628
12629 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
12630
12631 * callint.c (Fcall_interactively): Handle temporary region even
12632 when shift-select-mode is off.
12633
12634 2008-04-03 Jason Rumney <jasonr@gnu.org>
12635
12636 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12637
12638 2008-04-03 Kenichi Handa <handa@m17n.org>
12639
12640 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12641 (CATEGORY_MASK_UTF_16): Likewise.
12642 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12643 binary file.
12644 (detect_coding): Add null-byte detection for a binary file.
12645 (detect_coding_system): Likewise.
12646
12647 2008-04-03 Jason Rumney <jasonr@gnu.org>
12648
12649 * w32uniscribe.c: New file.
12650
12651 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12652
12653 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12654
12655 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12656 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12657 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12658 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12659 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12660 (Qphonetic): New symbols.
12661 (syms_of_w32font): Initialize them.
12662 (font_supported_scripts): Use them.
12663 (w32font_list_family): List all charsets.
12664 (w32font_text_extents, recompute_cached_metrics): Fix metric
12665 calculations.
12666 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12667 Give opentype fonts their own format.
12668 (font_matches_spec): New arguments backend and logfont.
12669 Handle :otf spec for uniscribe backend.
12670 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12671 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12672
12673 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12674 font backend.
12675 (globals_of_w32fns): Initialize uniscribe font backend.
12676
12677 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12678 dependencies.
12679 (w32uniscribe.$(O)): New file to build.
12680 (FONT_OBJ): Include w32uniscribe.$(O).
12681 (LIBS): Add uniscribe libraries.
12682
12683 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12684
12685 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
12686
12687 * callint.c (Vshift_select_mode): New var.
12688 (Finteractive): Document new ^ spec.
12689 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12690 is present.
12691
12692 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12693 (command_loop_1): Avoid running the direct display versions of
12694 forward-char and backward-char if shift-selection may occur.
12695 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12696 shift-translation takes place.
12697
12698 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12699 avoid clobbering by define-minor-mode.
12700
12701 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12702 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12703
12704 * syntax.c (Fforward_word): Add ^ interactive spec.
12705
12706 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12707 (Fscroll_right): Add ^ interactive spec.
12708
12709 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12710
12711 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12712
12713 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12714
12715 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12716
12717 2008-03-31 Juri Linkov <juri@jurta.org>
12718
12719 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12720
12721 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12722
12723 * gtkutil.c (xg_set_geometry): Fix indentation.
12724 (xg_resize_outer_widget): Remove.
12725 (x_wm_size_hint_off): Fix indentation.
12726 (xg_frame_set_char_size): Call flush_and_sync after
12727 gtk_window_resize.
12728 (x_wm_set_size_hint): Pass NULL as geometry window to
12729 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12730 Add menu bar and tool bar height to base height.
12731 (xg_update_frame_menubar, free_frame_menubar)
12732 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12733 (update_frame_tool_bar, free_frame_tool_bar):
12734 Change xg_resize_outer_widget to xg_frame_set_char_size.
12735
12736 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
12737
12738 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12739 (Fdbus_call_method): New parameter TIMEOUT.
12740 (dbus-send-signal): Optimize UNGCPRO call.
12741
12742 2008-03-29 Juri Linkov <juri@jurta.org>
12743
12744 * window.c (Fdisplay_buffer): Move call to
12745 Vsplit_window_preferred_function out of conditions that check
12746 if window is eligible for vertical splitting.
12747 When Vsplit_window_preferred_function is non-nil, call it and use
12748 its non-nil return value as window. Otherwise, continue doing
12749 vertical splitting using Fsplit_window with arg horflag=nil.
12750 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12751 default value from `split-window' to nil.
12752
12753 2008-03-29 Juri Linkov <juri@jurta.org>
12754
12755 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12756 for interactive code letters 'b' and 'B'.
12757
12758 2008-03-29 Eli Zaretskii <eliz@gnu.org>
12759
12760 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12761 multibyte string.
12762
12763 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12764
12765 * keyboard.c (pending_funcalls): New var.
12766 (timer_check): Run it.
12767 (syms_of_keyboard): Initialize it.
12768 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12769 (Vdelete_terminal_functions): New vars.
12770 (syms_of_terminal): Initialize them.
12771 (Fdelete_terminal): Run delete-terminal-functions.
12772 * xdisp.c (safe_eval): Rewrite.
12773 (safe_call2): New fun.
12774 * frame.c (Qdelete_frame_functions): New var.
12775 (syms_of_frame): Initialize it.
12776 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12777 * lisp.h (safe_call2, pending_funcalls): Declare.
12778
12779 2008-03-28 Andreas Schwab <schwab@suse.de>
12780
12781 * indent.c (Fmove_to_column): Move declaration before statements.
12782
12783 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12784
12785 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12786 (struct frame): Use bit fields for boolean vars.
12787
12788 * process.c (server_accept_connection): Simplify naming.
12789 (emacs_get_tty_pgrp): Use SDATA.
12790
12791 * coding.c (decode_coding_object): Fix last change.
12792
12793 2008-03-27 Jason Rumney <jasonr@gnu.org>
12794
12795 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12796
12797 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12798
12799 * charset.c (Fdefine_charset_internal): Change the way of
12800 registering charsets in Vcharset_order_list.
12801 (syms_of_charset): Make the charset `eight-bit' supplementary.
12802
12803 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12804
12805 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12806 operations, to avoid having the difference between pointers
12807 overflow.
12808
12809 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12810
12811 * indent.c (check_display_width): New fun.
12812 (scan_for_column): Use it.
12813
12814 * data.c (syms_of_data): Mark most-positive-fixnum and
12815 most-negative-fixnum as constants.
12816
12817 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12818
12819 * indent.c (scan_for_column): Extract from current_column_1.
12820 Merge with the same code from Fmove_to_column.
12821 (current_column_1, Fmove_to_column): Use it.
12822
12823 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12824
12825 * keymap.c (map_keymap_internal): New fun.
12826 (map_keymap): Use it.
12827 (Fmap_keymap_internal): New fun.
12828 (Fmap_keymap): Remove left-out test from before make_save_value.
12829
12830 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12831
12832 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12833 Use XCAR/XCDR.
12834
12835 * process.h (struct Lisp_Process): Remove filter_multibyte.
12836 * process.c (QCfilter_multibyte): Remove.
12837 (setup_process_coding_systems): Don't use filter_multibyte.
12838 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12839 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12840 (Fset_process_filter_multibyte): Change the coding-system to
12841 approximate the previous behavior.
12842 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12843 coding-system.
12844
12845 * coding.c (decode_coding_object): When not decoding into a buffer,
12846 obey the coding system's preference of (uni|multi)byte.
12847
12848 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12849
12850 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12851 every char is changed and has a different byte-length.
12852 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12853 Fix int -> EMACS_INT.
12854
12855 2008-03-23 David Hansen <david.hansen@gmx.net>
12856
12857 * dbusbind.c (xd_read_message): Remove extra copying of message
12858 strings. Check for NULL `interface' or `member'.
12859
12860 2008-03-22 Eli Zaretskii <eliz@gnu.org>
12861
12862 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12863 cFileName a file name that includes `?' characters, use the 8+3
12864 alias in cAlternateFileName instead.
12865
12866 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12867
12868 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12869
12870 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12871
12872 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12873 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12874 work on current_buffer only instead (that was already the case
12875 for some of the code anyway).
12876 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12877 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12878 (SET_PT, SET_PT_BOTH): Adjust.
12879 * intervals.h (set_point, temp_set_point, set_point_both)
12880 (temp_set_point_both): Remove redundant declarations.
12881
12882 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12883
12884 * fileio.c (Finsert_file_contents):
12885 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12886 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12887 when buffer != current_buffer anyway.
12888
12889 2008-03-20 Andreas Schwab <schwab@suse.de>
12890
12891 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12892 as default.
12893
12894 2008-03-19 Jason Rumney <jasonr@gnu.org>
12895
12896 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12897 (syms_of_w32fns): Initialize them.
12898 (HOURGLASS_ID): New constant.
12899 (x_window_to_frame): Don't check hourglass_window.
12900 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12901 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12902 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12903 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12904 Only change the cursor if hourglass is not active.
12905 (Fx_create_frame): Initialize frame's current_cursor.
12906 (hourglass_atimer): Remove.
12907 (hourglass_started): New function.
12908 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12909 (show_hourglass): Adapt to w32, changing argument to frame.
12910
12911 * w32term.h (struct w32_output): Remove hourglass_window.
12912 Add current_cursor.
12913
12914 * eval.c (call_debugger, Fsignal):
12915 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12916 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12917 (Fexecute_extended_command, cancel_hourglass_unwind):
12918 * minibuf.c (read_minibuf):
12919 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12920
12921 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12922
12923 * window.c (run_funs): New fun.
12924 (run_window_configuration_change_hook): Use it to run the buffer-local
12925 and the global part of the hook.
12926
12927 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12928 (unwind_format_mode_line): Restore selected window.
12929 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12930
12931 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12932
12933 * editfns.c (Fchar_equal): Check they are valid characters.
12934
12935 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12936
12937 2008-03-17 Andreas Schwab <schwab@suse.de>
12938
12939 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12940 against a charset.
12941
12942 * lisp.h (Fbuffer_list): Declare.
12943
12944 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
12945
12946 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12947 handlebox_widget is != 0.
12948
12949 2008-03-16 Juri Linkov <juri@jurta.org>
12950
12951 * callint.c (Fcall_interactively): For interactive code letters
12952 'b' and 'B' put the buffer list into the list of default "future"
12953 values of the minibuffer.
12954
12955 2008-03-16 Andreas Schwab <schwab@suse.de>
12956
12957 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12958 modifiers.
12959
12960 * regex.c (re_match_2_internal): Correct matching of a charset
12961 against latin-1 characters.
12962
12963 2008-03-16 Kenichi Handa <handa@m17n.org>
12964
12965 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12966 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12967 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12968 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12969 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12970 CHAR_STRING_ADVANCE.
12971 (produce_chars): Fix for the case that the source and the
12972 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12973 instead of CHAR_STRING_ADVANCE.
12974 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12975 STRING_CHAR_ADVANCE.
12976
12977 2008-03-15 Andreas Schwab <schwab@suse.de>
12978
12979 * regex.c (re_match_2_internal): Correct matching of eight bit
12980 characters in unibyte strings.
12981
12982 2008-03-15 Martin Rudalics <rudalics@gmx.at>
12983
12984 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12985 at end of range when it coincides with the end of the buffer.
12986
12987 2008-03-14 Eli Zaretskii <eliz@gnu.org>
12988
12989 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12990
12991 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12992
12993 2008-03-14 Jason Rumney <jasonr@gnu.org>
12994
12995 * editfns.c (initial_tz): New variable.
12996 (syms_of_editfns): Initialize it.
12997 (Fset_time_zone_rule): Set it when first called.
12998 Use it when TZSTRING is nil.
12999
13000 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
13001 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
13002 (monitor_from_point_fn, get_monitor_info_fn): New globals.
13003 (globals_of_w32fns): Initialize them.
13004 (compute_tip_xy): Use them to position tooltips.
13005
13006 2008-03-14 Glenn Morris <rgm@gnu.org>
13007
13008 * emacs.c (main): Revert previous change.
13009 (standard_args): Revert -internal-script back to -scriptload,
13010 and remove the long-option form.
13011
13012 2008-03-13 Glenn Morris <rgm@gnu.org>
13013
13014 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
13015 Remove option -enable-font-backend.
13016
13017 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
13018
13019 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
13020
13021 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
13022
13023 * xterm.c (x_connection_closed): For GTK: If this is the last
13024 terminal just exit without closing the display.
13025
13026 2008-03-11 Jason Rumney <jasonr@gnu.org>
13027
13028 * w32font.c (w32font_full_name): Use floor to round.
13029
13030 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
13031
13032 * sound.c (alsa_configure): Declare vol at beginning of block.
13033
13034 * fontset.c (Ffontset_info): Remove extra semicolon.
13035
13036 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13037
13038 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
13039 size of resulting string.
13040
13041 2008-03-10 Jason Rumney <jasonr@gnu.org>
13042
13043 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
13044
13045 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13046
13047 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
13048 Don't pretend as if characters with display property haven't been
13049 consumed for string-replacing-string case.
13050
13051 2008-03-08 Kim F. Storm <storm@cua.dk>
13052
13053 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
13054 (get_next_display_element, next_element_from_string)
13055 (next_element_from_ellipsis, next_element_from_buffer): Use it.
13056
13057 2008-03-08 Andreas Schwab <schwab@suse.de>
13058
13059 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
13060
13061 2008-03-06 Jason Rumney <jasonr@gnu.org>
13062
13063 * w32font.c (w32_registry): Take font_type argument. Use ANSI
13064 when charset not specified. Only translate ANSI to unicode when
13065 font_type is truetype.
13066 (w32font_coverage_ok): New function.
13067 (add_font_entity_to_list): Use it to filter unsuitable fonts.
13068
13069 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
13070
13071 * lread.c (Fread_char): Resolve modifiers.
13072 (Fread_char_exclusive): Likewise.
13073
13074 * character.c (char_resolve_modifier_mask): New function.
13075 (char_string): Use char_resolve_modifier_mask.
13076 (Fchar_resolve_modifiers): New function.
13077 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
13078 function.
13079
13080 2008-03-04 Jason Rumney <jasonr@gnu.org>
13081
13082 * makefile.w32-in: Always include w32font.c in the build.
13083 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
13084
13085 2008-03-04 Andreas Schwab <schwab@suse.de>
13086
13087 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
13088 (versionclean): Likewise.
13089
13090 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
13091
13092 * .cvsignore: Add oo.
13093
13094 2008-03-03 Andreas Schwab <schwab@suse.de>
13095
13096 * coding.c (decode_coding_object): Inhibit gap shrinking while
13097 decoding in place.
13098
13099 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
13100
13101 * w32term.c: Remove unused include "gnu.h".
13102 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
13103
13104 * gnu.h: Rename to ...
13105 * emacs-icon.h: ... this.
13106 * xterm.c: Use emacs-icon.h instead of gnu.h.
13107 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
13108
13109 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
13110
13111 * w32font.c: Include math.h.
13112
13113 2008-03-03 Jason Rumney <jasonr@gnu.org>
13114
13115 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
13116 Compute options separately.
13117 (w32font_open_internal): Set glyph_idx before caching metrics.
13118
13119 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
13120 Define if system headers don't.
13121 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
13122 (w32font_encode_char): Don't declare here.
13123
13124 * w32font.c (Quniscribe, QCformat): New symbols.
13125 (syms_of_w32font): Define them.
13126 (w32font_has_char): Indicate uncertainty.
13127 (w32font_encode_char): Encode as glyph point. Make static.
13128 (recompute_cached_metrics): New function.
13129 (w32font_open_internal): Use it. Set font to use glyph points
13130 initially. Set format based on type of font.
13131 (w32font_text_extents, w32font_draw): Optionally use glyph points.
13132 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
13133 on it. Set format based on information available here.
13134 (add_font_entity_to_list): Identify backend based on opentype_only.
13135
13136 2008-03-02 Andreas Schwab <schwab@suse.de>
13137
13138 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
13139
13140 * coding.c (decode_coding_big5, produce_chars):
13141 Fix typos in last change.
13142
13143 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
13144
13145 * gnu.h: New icon.
13146
13147 2008-03-02 Kenichi Handa <handa@m17n.org>
13148
13149 * coding.c (decode_coding_utf_8): When eol-type of CODING is
13150 `dos', don't decode '\r' if that is the last in the source.
13151 (decode_coding_utf_16, decode_coding_emacs_mule)
13152 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13153 (decode_coding_raw_text, decode_coding_charset): Likewise.
13154 (produce_chars): Don't decode EOL here. Use EMACS_INT.
13155
13156 2008-03-01 Jason Rumney <jasonr@gnu.org>
13157
13158 * w32font.c (w32font_full_name): Report point size for scalable fonts.
13159
13160 2008-03-01 Kim F. Storm <storm@cua.dk>
13161
13162 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
13163
13164 2008-03-01 Jason Rumney <jasonr@gnu.org>
13165
13166 * w32font.c (w32font_full_name): New function.
13167 (w32font_open_internal): Use it.
13168
13169 2008-03-01 Kim F. Storm <storm@cua.dk>
13170
13171 * dispnew.c (line_draw_cost): Fix invalid glyph check.
13172
13173 2008-03-01 Jason Rumney <jasonr@gnu.org>
13174
13175 * font.c (font_unparse_fcname): Increase len when style is a symbol.
13176
13177 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
13178
13179 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
13180 xg_frame_resized when the event is for the edit widget.
13181
13182 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
13183
13184 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
13185 set_char_size.
13186 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
13187 operations on widgets here. Just set frame size if needed.
13188 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
13189 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
13190 (x_wm_set_size_hint): Set size hints on the edit widget only, not
13191 the whole frame.
13192 (xg_create_tool_bar): Move attachment of the tool bar to
13193 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
13194 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
13195
13196 2008-03-01 Jason Rumney <jasonr@gnu.org>
13197
13198 * w32fns.c (w32_msg_pump): Disable debug code.
13199
13200 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13201
13202 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
13203
13204 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
13205
13206 * xdisp.c (next_overlay_string): Don't set
13207 overlay_strings_at_end_processed_p if we're currently reading from
13208 a display string.
13209
13210 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
13211
13212 * xdisp.c (get_overlay_strings_1): Fix typo.
13213
13214 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
13215
13216 * xdisp.c (get_overlay_strings_1): Add missing argument type.
13217
13218 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
13219
13220 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
13221
13222 * xdisp.c (display_mode_element): Cancel the previous change.
13223 (decode_mode_spec): Likewise.
13224 (handle_auto_composed_prop): Don't make composition if it->string
13225 is a string.
13226
13227 2008-02-27 Kim F. Storm <storm@cua.dk>
13228
13229 * lisp.h (GLYPH): Change type from int to struct with separate char
13230 and face_id members.
13231 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
13232 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
13233 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
13234 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
13235 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
13236 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
13237 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
13238 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
13239 handle new Lisp glyph code encoding, either an integer or a cons.
13240
13241 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
13242 (GLYPH_ALIAS): Delete.
13243 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
13244 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
13245 (GLYPH_FROM_CHAR): Replace macro by ...
13246 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
13247
13248 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
13249 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
13250 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
13251 (GLYPH_INVALID_P): New macro.
13252 (spec_glyph_lookup_face): Update prototype.
13253
13254 * dispnew.c (line_draw_cost): Adapt to new glyph type.
13255 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
13256 new glyph code encoding.
13257 (spec_glyph_lookup_face): No return value; update passed glyph instead.
13258 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
13259
13260 * xdisp.c (get_next_display_element, next_element_from_display_vector):
13261 Adapt to new glyph type and new glyph code encoding.
13262
13263 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
13264
13265 * indent.c (current_column, current_column_1, Fmove_to_column)
13266 (compute_motion): Adapt to new glyph code encoding.
13267
13268 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
13269
13270 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
13271
13272 * process.c (wait_reading_process_output): Check for window
13273 changes caused by timers.
13274 Suggested by Johan Bockgård.
13275
13276 2008-02-27 Glenn Morris <rgm@gnu.org>
13277
13278 * emacs.c (USAGE1): Add `--disable-font-backend'.
13279
13280 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
13281
13282 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
13283 is made to the buffer.
13284
13285 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
13286
13287 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
13288 (face_at_string_position):
13289 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
13290 (face_at_string_position):
13291 * xdisp.c (display_string, next_overlay_change):
13292 * buffer.h (overlays_at):
13293 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
13294 Update callers.
13295
13296 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
13297
13298 * editfns.c (Fformat): Doc fix.
13299
13300 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
13301
13302 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
13303 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
13304 (Ffont_otf_alternates, Fquery_font): Doc fixes.
13305
13306 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13307
13308 * buffer.c (Fbuffer_swap_text): New function.
13309 (syms_of_buffer): Defsubr it.
13310
13311 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
13312
13313 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
13314
13315 2008-02-25 Jason Rumney <jasonr@gnu.org>
13316
13317 * w32font.c (w32font_draw): Draw one character at a time when padding.
13318
13319 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13320
13321 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
13322 Handle a nil arg. Use run_window_configuration_change_hook.
13323 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
13324 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
13325 Use run_window_configuration_change_hook.
13326
13327 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13328
13329 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
13330 1-pixel width.
13331
13332 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13333
13334 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13335 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13336 if the glyph in the font is zero pixel with.
13337
13338 * dispextern.h (struct glyph_string): New member padding_p.
13339
13340 * w32font.c (w32font_draw): Pay attention to s->padding_p.
13341
13342 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13343
13344 * xfont.c (xfont_draw): Pay attention to s->padding_p.
13345
13346 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13347
13348 * font.c: If the font driver doesn't have `shape' function, return Qnil.
13349
13350 2008-02-25 Jason Rumney <jasonr@gnu.org>
13351
13352 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13353
13354 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
13355
13356 Allow fine-grained image-cache flushing.
13357 * dispextern.h (struct image): Add `dependencies' field.
13358 (clear_image_caches): Change arg to Lisp_Object.
13359 * image.c (make_image): Initialize `dependencies' field.
13360 (clear_image_cache): Change arg to allow fine-grained flushing.
13361 Perform the flush even if image-cache-eviction-delay is nil.
13362 (clear_image_caches): Change arg to Lisp_Object.
13363 (Fclear_image_cache): Expand meaning of the argument.
13364 (mark_image): Mark `dependencies' field.
13365 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13366 (lface_hash): Use XHASH rather than XFASTINT.
13367 (face_at_buffer_position): Fix int -> EMACS_INT position.
13368 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13369 (select_frame_for_redisplay): Remove code duplication.
13370 (redisplay_internal): Adapt arg to call to clear_image_caches.
13371
13372 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
13373
13374 * s/vms4-0.h:
13375 * s/vms4-2.h:
13376 * s/vms4-4.h:
13377 * s/vms5-5.h: Remove, unused.
13378
13379 * s/irix5-2.h:
13380 * s/irix6-0.h:
13381 * s/riscos5.h:
13382 * s/mach-bsd4-3.h:
13383 * m/mips4.h: Remove files for obsolete systems.
13384
13385 * Makefile.in:
13386 * filelock.c:
13387 * unexmips.c:
13388 * m/hp9000s300.h:
13389 * m/iris4d.h:
13390 * s/aix3-1.h:
13391 * s/hpux.h:
13392 * s/msdos.h:
13393 * s/usg5-0.h:
13394 * s/usg5-2-2.h:
13395 * s/usg5-2.h:
13396 * s/usg5-3.h: Remove references to obsolete variables.
13397
13398 * s/irix5-0.h: Remove, move all the contents ...
13399 * s/irix6-5.h: ... here. Simplify.
13400 * config.in: Regenerate.
13401
13402 2008-02-24 Jason Rumney <jasonr@gnu.org>
13403
13404 * w32term.c (x_draw_glyph_string_background): Clear the background
13405 manually when cleartype is in use.
13406 (x_draw_glyph_string_foreground): Draw text transparently when
13407 cleartype is in use.
13408
13409 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13410 a font into it unless we have to.
13411
13412 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13413
13414 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13415 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
13416
13417 2008-02-18 Jason Rumney <jasonr@gnu.org>
13418
13419 * w32fns.c (Fw32_shell_execute): Encode parameters.
13420
13421 2008-02-09 Eli Zaretskii <eliz@gnu.org>
13422
13423 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13424
13425 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
13426
13427 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13428
13429 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13430
13431 * xterm.c (x_set_offset): Don't change the gravity if
13432 CHANGE_GRAVITY is -1.
13433
13434 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
13435
13436 * fileio.c (auto_save_error_occurred): New var.
13437 (auto_save_error): Set it.
13438 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13439 error occurred.
13440
13441 2008-02-23 Eli Zaretskii <eliz@gnu.org>
13442
13443 * w32.c (globals_of_w32): Add initializations for
13444 g_b_init_get_sid_sub_authority and
13445 g_b_init_get_sid_sub_authority_count.
13446
13447 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13448
13449 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13450 (font_parse_xlfd): Use them for sanity check.
13451 (Finternal_set_font_style_table): Make sure the table is bijective.
13452
13453 Consolidate the image_cache to the terminal struct.
13454 * termhooks.h (P_): Remove redundant def.
13455 (struct terminal): New field `image_cache'.
13456 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13457 of FRAME_X_IMAGE_CACHE.
13458 * xterm.h (struct x_display_info): Remove image_cache field.
13459 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13460 * w32term.h (struct w32_display_info): Remove image_cache field.
13461 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13462 * macterm.h (struct mac_display_info): Remove image_cache field.
13463 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13464 * xterm.c (x_term_init):
13465 * w32term.c (w32_term_init):
13466 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13467 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13468 Remove declarations.
13469 (clear_image_caches, mark_image_cache): New declarations.
13470 * xfaces.c (clear_face_cache):
13471 * xdisp.c (redisplay_internal): Use clear_image_caches.
13472 * image.c (clear_image_cache): Don't check that a frame is on
13473 a window-system before checking if it shares the same cache.
13474 (clear_image_caches): New function.
13475 (Fclear_image_cache): Use it.
13476 (mark_image): Move from allo.c.
13477 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13478 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13479 (mark_object): Don't call mark_image_cache for frames.
13480 (mark_terminals): Call mark_image_cache.
13481
13482 * lisp.h (Fdelete_terminal): Declare.
13483
13484 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13485 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13486 wrong_type_argument.
13487
13488 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13489
13490 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13491 malayalam.el, and tamil.el. Add sinhala.el.
13492
13493 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13494
13495 * xterm.c (x_connection_closed): Consolidate identical tests.
13496 (x_delete_terminal): Don't crash if called via x_connection_closed.
13497
13498 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13499
13500 * xdisp.c (decode_mode_spec): New arg string.
13501 (display_mode_element): Adjust for the above change.
13502
13503 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13504
13505 * callint.c (Fcall_interactively): Use AREF.
13506
13507 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13508
13509 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13510
13511 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13512
13513 * xfns.c (Fx_show_tip): Set string to " " if empty.
13514
13515 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13516
13517 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13518 with Qt.
13519
13520 2008-02-17 Kenichi Handa <handa@m17n.org>
13521
13522 * ftfont.c (ftfont_shape): Return Lispy number.
13523
13524 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13525 for GCs.
13526 (Finternal_set_font_selection_order): Call font_update_sort_order
13527 only when enable_font_backend is set.
13528 (realize_x_face): Set face->font_info to that of default face only
13529 when enable_font_backend is set.
13530
13531 * xdisp.c (handle_composition_prop): Set it->c to the fist
13532 character of the composed region.
13533 (fill_composite_glyph_string): Set base_face->font_info to
13534 s->font_info. Get a face for ascii from base_face->ascii_face.
13535 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13536 with a face already decided.
13537 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13538 non-negative.
13539 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13540 call font_prepare_composition unconditionally.
13541
13542 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13543
13544 * xterm.h (struct x_display_info): New member font.
13545
13546 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13547 (x_set_mouse_face_gc, x_new_font): Likewise.
13548 (x_term_init): Setup display_info->font.
13549 (x_delete_terminal): Free display_info->font.
13550
13551 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13552
13553 * ftxfont.c (ftxfont_default_fid): Delete it.
13554 (ftxfont_open): Set xfont->fid to 0.
13555 (ftxfont_end_for_frame): Clear data specific to the frame and the
13556 font-driver.
13557
13558 * xftfont.c (xftfont_default_fid): Delete it.
13559 (xftfont_open): Set xfont->fid to 0.
13560
13561 * fontset.c (FONTSET_OBJLIST): New macro.
13562 (fontset_find_font): Update font-object list of the fontset.
13563 (free_realized_fontset): New function.
13564 (free_face_fontset): Call free_realized_fontset.
13565 (Ffont_info): Call font_close_object only when enable_font_backend
13566 is set.
13567
13568 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13569 [HAVE_NTGUI]: Include w32term.h.
13570 [MAC_OS]: Include macterm.ch.
13571 (font_otf_ValueRecord): Use make_number.
13572 (font_finish_cache): Fix handling of reference count.
13573 (font_clear_cache): Update num_fonts.
13574 (font_open_entity): Update smallest_char_width and
13575 smallest_font_height of the frame.
13576 (font_close_object): Update num_fonts.
13577 (Fclear_font_cache): Fix finding the target cache data.
13578
13579 2008-02-16 Glenn Morris <rgm@gnu.org>
13580
13581 * fontset.c (Finternal_char_font): Fix compilation warning.
13582
13583 2008-02-16 Eli Zaretskii <eliz@gnu.org>
13584
13585 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13586 instead of char arrays. Enlarge the size of array passed to
13587 get_token_information.
13588
13589 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13590 warnings.
13591
13592 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13593
13594 * .gdbinit: Don't set `args', it breaks gdb --args.
13595
13596 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13597
13598 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13599 within a narrowed buffer.
13600
13601 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13602
13603 * coding.c (decode_coding_object, encode_coding_object):
13604 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13605
13606 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13607
13608 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13609 hardcoding 1.
13610 (detect_coding_system):
13611 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13612 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13613 * insdel.c (insert_from_gap):
13614 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13615 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13616 (string_to_multibyte):
13617 * character.c (chars_in_text, multibyte_chars_in_text):
13618 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13619
13620 * character.h (FETCH_STRING_CHAR_ADVANCE)
13621 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13622 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13623 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13624
13625 * casefiddle.c (casify_region): Only call after-change and composition
13626 functions on the part of the region that was changed.
13627
13628 * keyboard.c (read_avail_input):
13629 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13630
13631 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13632
13633 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13634 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13635
13636 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
13637
13638 * w32menu.c (push_submenu_start, push_submenu_end)
13639 (push_left_right_boundary, push_menu_pane, push_menu_item):
13640 * keyboard.c (read_key_sequence): Don't pass args with side effects
13641 to AREF, it fails when compiling with -DENABLE_CHECKING.
13642
13643 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13644
13645 * Makefile.in (${lispsource}international/charprop.el):
13646 Delete this target.
13647
13648 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13649 emacs-unicode-2.
13650
13651 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13652
13653 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13654
13655 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13656
13657 * frame.c (Qnoelisp): New symbol.
13658 (syms_of_frame): Initialize it.
13659 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13660 harmless Elisp code, from a strong `force' from x_connection_closed.
13661 * frame.h (Qnoelisp): Declare.
13662 * xterm.c (x_connection_closed): Pass `noelisp'.
13663
13664 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13665 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13666 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13667 rather than `int' for the type of `type'.
13668
13669 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13670
13671 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13672
13673 * Makefile.in (GNUC): Remove support for gcc-1.x.
13674
13675 2008-02-10 Richard Stallman <rms@gnu.org>
13676
13677 * lisp.h (ASET): Use AREF, not ASLOT.
13678
13679 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13680
13681 * lisp.h (ASET): Check bounds.
13682
13683 2008-02-10 Glenn Morris <rgm@gnu.org>
13684
13685 * buffer.c (mode-name): Doc fix.
13686
13687 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13688
13689 * Makefile.in:
13690 * emacs.c:
13691 * gmalloc.c:
13692 * keyboard.c:
13693 * lisp.h:
13694 * m/ibm370aix.h:
13695 * process.c:
13696 * regex.c:
13697 * s/hpux.h:
13698 * sysdep.c:
13699 * sysselect.h:
13700 * systty.h:
13701 * unexec.c:
13702 * w32term.c:
13703 * xsmfns.c:
13704 * xterm.c: Remove code that deals with obsolete variables.
13705
13706 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13707
13708 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13709 nothing else needs it anymore.
13710
13711 2008-02-09 Eli Zaretskii <eliz@gnu.org>
13712
13713 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13714 instead of unibyte_char_to_multibyte.
13715
13716 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13717
13718 * s/gnu-linux.h: Remove commented out code.
13719
13720 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13721
13722 * Makefile.in: Update what RMS says about using autoconf.
13723 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13724 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13725 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13726 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13727
13728 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13729
13730 * keymap.c (Fkey_description): Move side effect outside of macro call.
13731
13732 * xfaces.c (Finternal_make_lisp_face):
13733 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13734
13735 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13736 (syms_of_fontset): Use ASET.
13737
13738 * fns.c (concat): Move side effect outside of macro call.
13739 (hash_clear): Use ASET.
13740
13741 2008-02-08 Richard Stallman <rms@gnu.org>
13742
13743 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13744 If FORCE, and frame has a surrogate minibuffer for another frame,
13745 delete the other frame first.
13746
13747 2008-02-07 Timo Savola <timo.savola@iki.fi>
13748
13749 * xterm.c (x_detect_focus_change): Handle embed client message.
13750 (handle_one_xevent): Ditto.
13751 (handle_one_xevent): If embedded and we get a button press/release,
13752 request focus.
13753 (xembed_set_info, xembed_send_message): New functions.
13754 (x_make_frame_visible): Call xembed_set_info if embedded.
13755 (x_make_frame_invisible): Call xembed_set_info if embedded.
13756 (x_term_init): Initialize Xatom_XEMBED.
13757 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13758 (x_iconify_frame): Ditto.
13759
13760 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13761 (enum xembed_info, enum xembed_message, enum xembed_focus)
13762 (enum xembed_modifier, enum xembed_accelerator): New.
13763 (xembed_set_info, xembed_send_message): Declare.
13764 (FRAME_X_EMBEDDED_P): New.
13765
13766 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13767 gtk_plug_new.
13768
13769 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13770 window ID of a frame.
13771 (x_window): Reparent frame if embedded.
13772 (Fx_create_frame): Don't set border width if embedded.
13773
13774 * emacs.c (USAGE3): Add --parent-id.
13775 (standard_args): Ditto.
13776
13777 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13778
13779 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13780
13781 2008-02-07 Jim Meyering <meyering@redhat.com>
13782
13783 Use "do...while (0)", not "if (1)...else" in macro definitions.
13784 The latter provokes a warning from gcc about the empty else, when
13785 followed by ";". Also, without that trailing semicolon, it would
13786 silently swallow up any following statement.
13787 * syntax.h (SETUP_SYNTAX_TABLE)
13788 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13789 * buffer.h (DECODE_POSITION): Likewise.
13790 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13791 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13792 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13793 (FETCH_CHAR_ADVANCE): Likewise.
13794 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13795
13796 2008-02-07 Jim Meyering <meyering@redhat.com>
13797
13798 * lread.c [lint]: Don't include <sys/inode.h>.
13799
13800 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13801
13802 * xselect.c (x_handle_dnd_message):
13803 * xmenu.c (digest_single_submenu, xmenu_show):
13804 * xdisp.c (with_echo_area_buffer_unwind_data)
13805 (format_mode_line_unwind_data, unwind_format_mode_line)
13806 (display_menu_bar):
13807 * eval.c (Ffetch_bytecode):
13808 * doc.c (store_function_docstring):
13809 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13810 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13811 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13812
13813 2008-02-07 Kenichi Handa <handa@m17n.org>
13814
13815 * ftxfont.c (ftxfont_open): Don't set
13816 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13817
13818 * ftfont.c (ftfont_open): Fix previous change.
13819
13820 2008-02-06 Jason Rumney <jasonr@gnu.org>
13821
13822 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13823 Use cached metrics for ASCII characters.
13824 (w32font_open_internal): Don't set font's owning_frame.
13825 Cache metrics for ASCII characters.
13826
13827 * w32font.h (struct w32font_info): Add ascii_metrics.
13828 Remove owning_frame.
13829
13830 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13831
13832 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13833 to negative value.
13834
13835 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13836
13837 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13838
13839 * charset.c (syms_of_charset): Set QCtest and Qeq.
13840
13841 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13842
13843 * process.c (Fstart_process):
13844 * callproc.c (Fcall_process): Handle the case where
13845 Funhandled_file_name_directory returns nil.
13846
13847 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13848 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13849 * font.c (check_gstring): Use them and AREF to access the vector before
13850 we know it's really a gstring.
13851 (Ffont_shape_text): Fix typo.
13852 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
13853
13854 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13855 Declare.
13856
13857 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13858
13859 2008-02-05 Jason Rumney <jasonr@gnu.org>
13860
13861 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13862 Set smallest_font_height and smallest_char_width in display info.
13863
13864 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13865
13866 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13867
13868 2008-02-05 Miles Bader <miles@gnu.org>
13869
13870 * xfaces.c (get_lface_attributes, merge_named_face)
13871 (lookup_named_face, lookup_derived_face, realize_named_face):
13872 Revert 2008-02-01 change by cyd@stupidchicken.com.
13873
13874 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13875
13876 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13877 fallback fonts.
13878 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13879
13880 2008-02-04 Jason Rumney <jasonr@gnu.org>
13881
13882 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13883 set full_name.
13884 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13885
13886 2008-02-03 Jason Rumney <jasonr@gnu.org>
13887
13888 * makefile.w32-in (OBJ1): Include font.o here.
13889 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13890
13891 2008-02-02 Jason Rumney <jasonr@gnu.org>
13892
13893 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13894
13895 2008-02-01 Jason Rumney <jasonr@gnu.org>
13896
13897 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13898
13899 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13900
13901 2008-02-01 Andreas Schwab <schwab@suse.de>
13902
13903 * Makefile.in (shortlisp, lisp): Update for rename of
13904 ../lisp/language/myanmar.el.
13905
13906 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
13907
13908 * xfaces.c (get_lface_attributes): Delete function.
13909 (merge_named_face, lookup_named_face, lookup_derived_face)
13910 (realize_named_face): Call lface_from_face_name directly, and use
13911 the fact that merge_face_vectors does not alter its FROM argument.
13912
13913 2008-02-01 Jason Rumney <jasonr@gnu.org>
13914
13915 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13916 input in the default locale. Handle non-Unicode multibyte input.
13917
13918 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13919
13920 * fontset.c (reorder_font_vector): Exclude nil elements from the
13921 font group. Don't try multiple fonts.
13922 (fontset_font): Adjust for the above change.
13923 (Finternal_char_font): Return nil if the found font doesn't
13924 contain the character ch.
13925
13926 * Makefile.in (lisp, shortlisp): Add cham.el.
13927
13928 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13929
13930 * font.h (FONTP): Make it return 1 also for a font-object.
13931
13932 * .gdbinit (xfontset): New function.
13933
13934 * font.c (font_find_for_lface): Check if the character C is
13935 supported or not only for the first font.
13936
13937 * fontset.c (reorder_font_vector): Fix typo.
13938 (fontset_find_font): Don't add a font-spec specifying a script.
13939 Use 0 (not Qt) for the indication of empty font-group. Change the
13940 format of RFONT-DEF. Return Qt if no font in the font-group
13941 support the character.
13942 (fontset_font): Adjust for the above change. If no font was
13943 found the character, remember that.
13944 (face_for_char): Adjust for the change of RFONT-DEF.
13945 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13946 no font for the target.
13947 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13948
13949 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13950
13951 * font.c (font_load_for_face): Handle the case that the font in
13952 face->lface is a string.
13953
13954 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13955
13956 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13957
13958 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13959
13960 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13961 Fix previous change. If the frame is not on a window system,
13962 signal an error.
13963
13964 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13965
13966 * coding.c (decode_coding_object, encode_coding_object): Adjust
13967 marker positions after conversion.
13968
13969 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13970
13971 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13972
13973 * font.c (font_find_for_lface): Fix the handling of the return
13974 value of font_has_char.
13975 (Ffont_shape_text): Fix previous change.
13976
13977 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13978 (fontset_ref_and_range): Delete it.
13979 (fontset_find_font): Call char_table_ref_and_range instead of
13980 FONTSET_REF_AND_RANGE.
13981 (make_fontset): Don't setup font groups of Latin here.
13982 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13983 (new_fontset_from_font): Make the specified font the default for
13984 all Latin characters.
13985
13986 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13987
13988 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13989 is on a window system before accessing the fontset of the frame.
13990
13991 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13992
13993 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13994
13995 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13996 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13997
13998 * font.c (Ffont_shape_text): If the font driver doesn't have a
13999 shaper function, make zero-width glyphs to have at least one-pixel
14000 width. Fix setting of `to' field of glyphs.
14001
14002 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14003
14004 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
14005 glyphs.
14006
14007 * font.h (struct font_driver): Improve docstring of member `shape'.
14008
14009 2008-02-01 Kenichi Handa <handa@m17n.org>
14010
14011 * composite.c (syms_of_composite): Fix docstring of
14012 auto-composition-function.
14013
14014 * font.h (LGLYPH_SIZE): New macro.
14015
14016 * font.c (Ffont_fill_gstring): Stop filling when a character not
14017 supported by the font is found.
14018 (Ffont_shape_text): When a shape callback function returns nil,
14019 try at most two more times with larger gstring.
14020 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
14021
14022 * xdisp.c (handle_auto_composed_prop): Change the argument to
14023 auto-composition-function.
14024
14025 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
14026 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
14027 Lispy glyph and store it in the lgstring.
14028
14029 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
14030
14031 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
14032
14033 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14034
14035 * font.c (Ffont_shape_text): Avoid unnecessary composition.
14036
14037 * fontset.c (Vfont_encoding_charset_alist): New variable.
14038 (syms_of_fontset): DEFVAR it.
14039 (reorder_font_vector, fontset_find_font): Optimize for the case of
14040 no need of reordering.
14041 (face_for_char): Map the charset property by
14042 Vfont_encoding_charset_alist.
14043
14044 2008-02-01 Jason Rumney <jasonr@gnu.org>
14045
14046 * w32font.c (logfonts_match): Don't check adstyle here.
14047 (font_matches_spec): Check here against physical font instead.
14048 (add_font_entity_to_list): Avoid some substitutions.
14049
14050 * font.c (font_parse_fcname): Default weight and slant to normal.
14051 (font_score): Prefer normal fonts if weight or slant unspecified.
14052 (font_score) [WINDOWSNT]: Scale weight difference down to closer
14053 match freetype scores.
14054
14055 2008-02-01 Jason Rumney <jasonr@gnu.org>
14056
14057 * w32font.c (w32font_text_extents): Don't use the frame stored in the
14058 font, as it may have been deleted.
14059 (w32_enumfont_pattern_entity): Map generic family to adstyle using
14060 most common hyphenless variation.
14061 (logfonts_match): Check generic family.
14062 (font_matches_spec): Don't check generic family here.
14063 (fill_in_logfont): Set generic family based on adstyle.
14064
14065 * w32font.h (w32font_get_cache): Update declaration.
14066
14067 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14068
14069 * ftfont.c (ftfont_get_cache): Adjust the argument type.
14070
14071 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
14072 If none of the new drivers are available, call font_update_drivers
14073 with the old drivers.
14074
14075 * w32font.c (w32font_get_cache): Adjust the argument type.
14076
14077 * xfont.c (xfont_get_cache): Adjust the argument type.
14078
14079 * font.h (struct font_driver): Change argument type of get_cache.
14080
14081 * xftfont.c (xftfont_start_for_frame): Delete prototype.
14082
14083 * font.c (Ffont_get): Fix arguments to Fassoc.
14084 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
14085 (font_clear_cache): New function.
14086 (font_list_entities, font_matching_entity): Use font_get_cache.
14087 (font_update_drivers): Call font_clear_cache when finishing a driver.
14088
14089 * fontset.c (fontset_find_font): Fix previous change.
14090
14091 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14092
14093 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
14094 dpyinfo->font_table.
14095 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
14096 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
14097
14098 * font.c (font_at): Handle the case that the arg C is negative.
14099 Handle the unibyte case.
14100 (Ffont_at): Call font_at with the arg C -1.
14101
14102 * xdisp.c (handle_auto_composed_prop): Don't get a character at
14103 the position here, and call font_at with the arg C -1.
14104 Don't check the range of the existing composition at the point.
14105
14106 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14107
14108 * fontset.c (fontset_add): New args charset_id and family.
14109 Change caller.
14110 (load_font_get_repertory, fontset_find_font): Assume that
14111 font_spec is always a font-spec object.
14112 (Fset_fontset_font): Always store a font-spec object in a fontset.
14113
14114 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
14115 instead of get_property_and_range.
14116
14117 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14118
14119 * xftfont.c (struct xftfont_info): Delete the member ft_face.
14120 (xftfont_open): Don't keep locking face.
14121 (xftfont_close): Don't unlock face.
14122 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
14123
14124 * fontset.c (fontset_find_font): Don't prefer a font of
14125 supplementary charset.
14126
14127 2008-02-01 Kenichi Handa <handa@m17n.org>
14128
14129 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
14130 script, langsys_tag to langsys, new member script.
14131 (OTF_TAG_STR): Terminate by '\0'.
14132 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
14133 listing to the script specified in that property. Fix arg to
14134 OTF_check_features.
14135
14136 2008-02-01 Jason Rumney <jasonr@gnu.org>
14137
14138 * w32font.h: New file.
14139
14140 * w32font.c: Include it.
14141 (struct w32font_info): Add owning_frame field. Move to w32font.h.
14142 (w32font_open): Set owning_frame.
14143 (w32font_text_extents): Use owning_frame.
14144 (struct font_callback_data): Add opentype_only field.
14145 (add_font_entity_to_list): Use it to filter fonts.
14146 Don't check against full name.
14147 (w32font_list_internal): New function.
14148 (w32font_list): Use it.
14149 (w32font_match_internal): New function.
14150 (w32font_match): Use it.
14151 (w32font_open_internal): New function.
14152 (w32font_open): Use it.
14153 (w32font_get_cache, w32font_close, w32font_has_char)
14154 (w32font_encode_char, w32font_text_extents, w32font_draw):
14155 Make non-static.
14156
14157 * makefile.w32-in (w32font.o): Depend on w32font.h.
14158
14159 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14160
14161 * charset.c (Fdefine_charset_internal): Record a supplementary
14162 charset at the tail of Vcharset_order_list.
14163
14164 * font.c (Ffont_shape_text): Fix the return value.
14165
14166 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
14167
14168 * xdisp.c (handle_auto_composed_prop): Fix previous change.
14169
14170 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14171
14172 * ftfont.c (struct OpenTypeSpec): New struct.
14173 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
14174 (ftfont_get_open_type_spec): New function.
14175 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
14176
14177 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
14178
14179 2008-02-01 Jason Rumney <jasonr@gnu.org>
14180
14181 * w32font.c (add_font_entity_to_list): Compare only the beginning
14182 of full name.
14183
14184 2008-02-01 Kenichi Handa <handa@m17n.org>
14185
14186 * xdisp.c (handle_auto_composed_prop): Simplify the code.
14187 Never return HANDLED_RECOMPUTE_PROPS.
14188
14189 2008-02-01 Kenichi Handa <handa@m17n.org>
14190
14191 * font.c (font_gstring_produce): Delete it.
14192
14193 * composite.h (COMPOSITION_METHOD):
14194 Handle COMPOSITION_WITH_GLYPH_STRING.
14195
14196 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14197
14198 * xfont.c (Qx): Delete.
14199 (syms_of_xfont): Don't initialize Qx.
14200
14201 * composite.h (enum composition_method):
14202 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
14203
14204 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14205
14206 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
14207 (choose_face_font): Accept new form of font-spec.
14208
14209 * frame.h (font_driver_list): Declare it unconditionally.
14210 (struct frame): Define members font_driver_list and font_data_list
14211 unconditionally.
14212
14213 * fontset.c: Include "font.h" unconditionally.
14214 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
14215 (Fset_fontset_font): Accept a font-spec object.
14216
14217 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
14218 PIXEL_SIZE part a wild card.
14219
14220 * dispextern.h (struct glyph_string): Define members clip and
14221 num_clips unconditionally.
14222 (struct face): Define members font_info and extra unconditionally.
14223
14224 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
14225 ftfont_info only when HAVE_LIBOTF is defined.
14226
14227 2008-02-01 Andreas Schwab <schwab@suse.de>
14228
14229 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
14230 and end.
14231
14232 2008-02-01 Jason Rumney <jasonr@gnu.org>
14233
14234 * w32font.c (w32font_driver): Add new fields.
14235
14236 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14237
14238 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
14239 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
14240 (LIBES): Add @M17N_FLT_CFLAGS@.
14241
14242 * composite.c (compose_text): Don't treat the new style
14243 composition specially.
14244
14245 * emacs.c (main): Call syms_of_font unconditionally.
14246
14247 * font.h (FONT_ENTITY_NOT_LOADABLE)
14248 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
14249 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
14250 (struct font_driver): New member shape.
14251 (font_registry_charsets): Extern it.
14252 (font_find_for_lface, font_prepare_composition): Adjust prototype.
14253 (font_otf_capability, font_drive_otf): Delete their externs.
14254
14255 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
14256 (font_charset_alist, font_registry_charsets): Move from xfont.c
14257 and rename.
14258 (font_prop_validate_otf): New function.
14259 (font_property_table): Register it for QCotf.
14260 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
14261 (font_drive_otf): Delete.
14262 (font_prepare_composition): New arg F. Adjust for the change of
14263 lispy gstring.
14264 (font_find_for_lface): New arg C.
14265 (font_load_for_face): Adjust for the change of font_find_for_lface.
14266 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
14267 lispy gstring.
14268 (Ffont_shape_text): New function.
14269 (Fopen_font): If the font size is not given, use 12-pixel.
14270 (Ffont_at): New arg STRING.
14271 (syms_of_font): Initialize font_charset_alist.
14272 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
14273 conditionally.
14274
14275 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
14276 fonts of the same font-spec. Change the format of RFONT-DEF.
14277 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
14278 Adjust for the change of RFONT-DEF.
14279 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
14280
14281 * ftfont.h: New file.
14282
14283 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
14284 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14285 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14286 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
14287 font_otf_capability and font_drive_otf, set ftfont_shape.
14288 (ftfont_list): Adjust for the change of :otf property value.
14289 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
14290 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
14291 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
14292 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14293 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
14294 (otf_gstring, gstring, m17n_flt_initialized): New variables.
14295
14296 * w32term.c (x_draw_composite_glyph_string_foreground):
14297 Adjust for the change of lispy gstring.
14298
14299 * xdisp.c (handle_composition_prop): Adjust for the change of
14300 lispy gstring. Call a function for auto-composition with the
14301 third arg it->window.
14302 (fill_composite_glyph_string): Adjust for the change of lispy string.
14303 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
14304
14305 * xfaces.c (set_font_frame_param): Adjust for the change of
14306 font_find_for_lface.
14307
14308 * xfont.c (x_font_charset_alist): Move to font.c and rename.
14309 (xfont_registry_charsets): Likewise. Change caller.
14310 (syms_of_xfont): Don't handle x_font_charset_alist.
14311
14312 * xftfont.c: Include "ftfont.h".
14313 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14314 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14315 (xftfont_close) [HAVE_LIBOTF]: Close otf.
14316 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14317 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
14318 Set xftfont_driver.shape to xftfont_shape.
14319
14320 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14321 the change of lispy gstring.
14322
14323 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14324
14325 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
14326
14327 2008-02-01 Jason Rumney <jasonr@gnu.org>
14328
14329 * w32font.c (w32font_draw): Fill background manually.
14330
14331 2008-02-01 Jason Rumney <jasonr@gnu.org>
14332
14333 * font.c (Qfontp): Remove unused symbol.
14334 (QCantialias): New symbol.
14335 (syms_of_font): Define it.
14336 (font_property_table): Set a validator for QCantialias.
14337
14338 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14339 Define if not already.
14340 (QCfamily): Share with xfaces.c.
14341 (Qstandard, Qsubpixel, Qnatural): New symbols.
14342 (syms_of_w32font): Define them. Don't define QCfamily here.
14343 (w32_antialias_type, lispy_antialias_type): New functions.
14344 (w32_enumfont_pattern_entity): New arg requested_font.
14345 Set antialias parameter if non-default was requested.
14346 (fill_in_logfont): Fill in lfQuality if :antialias specified.
14347
14348 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14349
14350 * lread.c (read1): Undo the previous change.
14351
14352 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
14353
14354 * frame.c (Fdelete_frame): Call font_update_drivers only when
14355 USE_FONT_BACKEND is defined.
14356
14357 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14358
14359 * font.h (struct font_bitmap): New member bits_per_pixel.
14360 (struct font_driver): New members start_for_frame and end_for_frame.
14361 (struct font_data_list): New struct.
14362 (font_put_frame_data, font_get_frame_data): Extern them.
14363
14364 * frame.h (struct frame): New member font_data_list.
14365
14366 * font.c (font_update_drivers): Call driver->start_for_frame and
14367 driver->end_for_frame at proper timings.
14368 (font_put_frame_data, font_get_frame_data): New functions.
14369 (Ffont_spec): Add usage in the docstring.
14370
14371 * frame.c (make_frame): Initialize f->font_data_list to NULL.
14372 (Fdelete_frame): Call font_update_drivers.
14373
14374 * xftfont.c (struct xftface_info): Delete the member xft_draw.
14375 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14376 (xftfont_get_xft_draw): New function.
14377 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
14378 (xftfont_end_for_frame): New function.
14379 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14380
14381 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14382 Change argument. Cache GCs in the per-frame data.
14383 (struct ftxfont_frame_data): New struct.
14384 (ftxfont_draw_bitmap): New arg gc_fore and flush.
14385 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14386 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
14387 (ftxfont_end_for_frame): New function.
14388 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14389
14390 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14391
14392 2008-02-01 Kenichi Handa <handa@m17n.org>
14393
14394 * xselect.c (Vselection_coding_system)
14395 (Vnext_selection_coding_system): Delete them.
14396 (syms_of_xselect): Don't declare selection-coding-system and
14397 next-selection-coding-system. They are declared in select.el.
14398
14399 2008-02-01 Jason Rumney <jasonr@gnu.org>
14400
14401 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14402
14403 * w32fns.c: Include imm.h.
14404 (get_composition_string_fn, get_ime_context_fn): New optional
14405 system functions.
14406 (globals_of_w32fns): Load them from imm32.dll.
14407 (ignore_ime_char): New flag.
14408 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14409 WM_IME_ENDCOMPOSITION messages.
14410
14411 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14412 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14413
14414 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14415
14416 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14417 (READCHAR_REPORT_MULTIBYTE): New macro.
14418 (readchar): New 2nd arg MULTIBYTE.
14419 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14420 Make symbol's name multibyte according to the multibyteness of the
14421 source.
14422
14423 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14424
14425 * xfaces.c (face_for_overlay_string): Call lookup_face with
14426 correct arguments (fix of synching with the trunk).
14427
14428 2008-02-01 Kenichi Handa <handa@m17n.org>
14429
14430 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14431 (font_prop_validate_non_neg, font_prop_validate_spacing):
14432 Delete argument prop_index.
14433 (font_property_table): Change arguments to validater. Change Callers.
14434 (font_lispy_object): Delete.
14435 (font_at): Use font_find_object instead fo font_lispy_object.
14436
14437 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14438
14439 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14440 and file names.
14441
14442 2008-02-01 Jason Rumney <jasonr@gnu.org>
14443
14444 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14445 (font_matches_spec): Remove debug output.
14446 (add_font_entity_to_list): Avoid using substituted fonts.
14447
14448 2008-02-01 Jason Rumney <jasonr@gnu.org>
14449
14450 * doc.c (Fsnarf_documentation):
14451 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14452
14453 2008-02-01 Miles Bader <miles@gnu.org>
14454
14455 * dispextern.h (struct glyph_row): Only define "clip" field if
14456 HAVE_WINDOW_SYSTEM is defined.
14457
14458 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14459
14460 Fix up multi-tty merge.
14461
14462 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14463 and indentation.
14464
14465 * xfaces.c (free_realized_face, clear_face_gcs):
14466 Include font_done_for_face in the input_blocked section, just in case.
14467
14468 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14469 (get_char_face_and_encoding): Undo last change and remove the *other*
14470 duplicate definition (i.e. keep the one that's better scoped and that
14471 includes code for the font-backend).
14472
14473 * terminal.c (create_terminal): Default keyboard_coding to
14474 `no-conversion' and terminal_coding to `undecided'.
14475
14476 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14477
14478 * fontset.c (free_realized_fontsets): Check that the table entry does
14479 contain a fontset before trying to compare it to `base'.
14480
14481 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14482 syms_of_charset, and syms_of_coding earlier because init_window_once
14483 now needs Vcoding_system_hash_table to be setup.
14484
14485 * coding.h (default_buffer_file_coding): Remove.
14486
14487 * coding.c (default_buffer_file_coding): Remove.
14488 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14489 than ->symbol, and use the terminal-local coding system.
14490 (syms_of_coding): Don't setup the coding-systems that are not
14491 terminal-local.
14492 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14493
14494 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14495 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14496
14497 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14498 in chartab.c and were re-added here by mistake.
14499 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14500
14501 * doc.c (Fsnarf_documentation):
14502 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14503 src to etc.
14504
14505 * ChangeLog.10: Add mistakenly removed entry.
14506
14507 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14508
14509 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14510
14511 2008-02-01 Miles Bader <miles@gnu.org>
14512
14513 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14514 Add extra args to FACE_FOR_CHAR.
14515
14516 2008-02-01 Kenichi Handa <handa@m17n.org>
14517
14518 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14519 in sequence.
14520
14521 * chartab.c (map_sub_char_table, map_char_table): If the range
14522 contains just one character, call the function with that character
14523 even if the depth is not 3.
14524
14525 2008-02-01 Jason Rumney <jasonr@gnu.org>
14526
14527 * w32font.c (w32font_text_extents): Calculate metrics for the
14528 whole string.
14529
14530 2008-02-01 Jason Rumney <jasonr@gnu.org>
14531
14532 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14533
14534 2008-02-01 Jason Rumney <jasonr@gnu.org>
14535
14536 * w32term.c (x_set_glyph_string_clipping): Use
14537 get_glyph_string_clip_rects.
14538 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14539 Adjust for the change of struct glyph_string.
14540
14541 * w32font.c (w32font_draw): Do clipping here.
14542
14543 2008-02-01 Kenichi Handa <handa@m17n.org>
14544
14545 * xftfont.c (xftfont_draw): Adjust for the change of struct
14546 glyph_string.
14547
14548 * xterm.c (x_set_glyph_string_clipping): Use
14549 get_glyph_string_clip_rects.
14550 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14551 Adjust for the change of struct glyph_string.
14552
14553 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14554 the resulting clip(s}.
14555 (expose_overlaps): Add arg r. Change callers. Set it to
14556 row->clip temporarily.
14557 (expose_window): Redraw rows overlapping the exposed area.
14558
14559 * dispextern.h (struct glyph_row): New member clip.
14560 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14561 clip_height, new member clip, and num_clips.
14562
14563 2008-02-01 Kenichi Handa <handa@m17n.org>
14564
14565 * data.c (Fchar_or_string_p): Fix docstring.
14566
14567 2008-02-01 Kenichi Handa <handa@m17n.org>
14568
14569 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14570 create a temporary XftDraw object.
14571
14572 2008-02-01 Kenichi Handa <handa@m17n.org>
14573
14574 * font.c (Ffontp): Fix docstring.
14575
14576 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14577 strong evidence of ISO-2022.
14578
14579 2008-02-01 Kenichi Handa <handa@m17n.org>
14580
14581 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14582 SYNTAX_ENTRY_FOLLOW_PARENT.
14583
14584 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14585
14586 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14587 its type.
14588 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14589 Update to the new type of weak_hash_tables and next_weak.
14590
14591 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14592 a plain C pointer to Lisp_Hash_Table.
14593
14594 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14595 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14596 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14597 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14598 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14599 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14600 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14601 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14602 (GC_EQ): Remove since they've been identical to their non-GC_
14603 alter-egos ever since the markbit was eradicated.
14604
14605 * alloc.c:
14606 * buffer.c:
14607 * buffer.h:
14608 * data.c:
14609 * fileio.c:
14610 * filelock.c:
14611 * fns.c:
14612 * frame.h:
14613 * lisp.h:
14614 * macterm.c:
14615 * print.c:
14616 * process.c:
14617 * w32fns.c:
14618 * w32menu.c:
14619 * w32term.c:
14620 * xfns.c:
14621 * xmenu.c:
14622 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14623
14624 2008-02-01 Kenichi Handa <handa@m17n.org>
14625
14626 * chartab.c (map_sub_char_table): Make it work for the top-level
14627 char-table. Fix handling of parent char-table.
14628 (map_char_table): Adjust for the above change.
14629
14630 2008-02-01 Jason Rumney <jasonr@gnu.org>
14631
14632 * w32font.c (Qgdi): Rename from Qw32.
14633
14634 2008-02-01 Jason Rumney <jasonr@gnu.org>
14635
14636 * w32bdf.c (get_quoted_string): Make function static.
14637
14638 2008-02-01 Kenichi Handa <handa@m17n.org>
14639
14640 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14641 bigger ascent and descent than those of the font, use them as
14642 font's ascent and descent.
14643
14644 2008-02-01 Kenichi Handa <handa@m17n.org>
14645
14646 * Makefile.in (${lispsource}international/charprop.el): Move this
14647 target within "#ifdef HAVE_UNIDATA" and "#endif".
14648
14649 2008-02-01 Kenichi Handa <handa@m17n.org>
14650
14651 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14652 (shortlisp): Add ../lisp/language/tai-viet.el.
14653
14654 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
14655
14656 * Makefile.in (${lispsource}international/charprop.el): Depend on
14657 temacs${EXEEXT}.
14658
14659 2008-02-01 Jason Rumney <jasonr@gnu.org>
14660
14661 * w32font.c (w32font_close): Delete the GDI font object.
14662
14663 * w32menu.c: Include character.h.
14664
14665 * w32proc.c: Likewise.
14666
14667 * w32select.c: Likewise.
14668
14669 * makefile.w32-in (w32proc.o): Depend on character.h.
14670
14671 2008-02-01 Jason Rumney <jasonr@gnu.org>
14672
14673 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14674
14675 * w32menu.c (syms_of_w32menu): Likewise.
14676
14677 * w32proc.c (syms_of_ntproc): Likewise.
14678
14679 * w32select.c (syms_of_w32select): Likewise.
14680
14681 * w32term.c (syms_of_w32term): Likewise.
14682
14683 2008-02-01 Jason Rumney <jasonr@gnu.org>
14684
14685 * w32font.c (w32font_draw): Delete brush after using it.
14686
14687 2008-02-01 Jason Rumney <jasonr@gnu.org>
14688
14689 * w32font.c (w32font_open): Don't set font_idx.
14690 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14691 to font settings.
14692 (w32font_draw): Fill background explicitly.
14693
14694 2008-02-01 Jason Rumney <jasonr@gnu.org>
14695
14696 * w32term.c (w32_initialize): Don't call w32font_initialize.
14697
14698 * w32font.c (w32font_info): Remove subranges.
14699 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14700 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14701 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14702 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14703 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14704 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14705 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14706 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14707 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14708 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14709 New symbols.
14710 (font_callback_data): New struct.
14711 (w32font_list, w32font_match): Use it.
14712 (w32font_open): Don't populate subranges.
14713 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14714 (w32font_encode_char): Always return unicode code-point as-is.
14715 (w32font_text_extents): Supply a transformation matrix to
14716 GetGlyphOutline. Never look up by glyph index. Avoid looping
14717 twice. Use unicode version of GetTexExtentPoint32 instead of
14718 glyph index version.
14719 (set_fonts_frame): Remove.
14720 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14721 set frame parameter. Use backward compatible fake foundries.
14722 Save generic family in extra slot under QCfamily. Make width slot
14723 constant. Save QCspacing value. Save list of scripts instead of
14724 binary subranges.
14725 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14726 (add_font_entity_to_list): Use font_callback_data struct. Filter
14727 unwanted fonts.
14728 (add_one_font_entity_to_list): Use font_callback_data struct.
14729 (w32_registry): Default to iso10646_1.
14730 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14731 string font registries. Don't fill in font name if it is a generic
14732 family name, fill family instead. Use spacing, family and script
14733 extra info to fill pitch, family and charset fields.
14734 (list_all_matching_fonts): Use font_callback_data struct.
14735 (unicode_range_for_char): Remove.
14736 (font_supported_scripts): New function.
14737 (w32font_initialize): Remove.
14738 (syms_of_w32font): Update which symbols are defined.
14739
14740 2008-02-01 Jason Rumney <jasonr@gnu.org>
14741
14742 * font.c (font_pixel_size): Reverse assq_no_quit args.
14743
14744 * w32term.h (FONT_WIDTH): Report max width, not average.
14745 (FONT_MAX_WIDTH): Remove.
14746 (FONT_AVG_WIDTH): New macro.
14747
14748 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14749 redefinition of FONT_WIDTH.
14750
14751 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14752 (w32_cache_char_metrics): Use FONT_WIDTH.
14753
14754 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14755
14756 2008-02-01 Jason Rumney <jasonr@gnu.org>
14757
14758 * w32font.c (w32font_open): Make lfHeight negative.
14759
14760 * w32fns.c (x_default_font_parameter): Use new style font name.
14761 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14762
14763 2008-02-01 Jason Rumney <jasonr@gnu.org>
14764
14765 * w32font.c (QCsubranges): New symbol.
14766 (w32font_open, w32font_has_char): Get subranges from subproperty
14767 of extra.
14768 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14769 (syms_of_w32font): Define :subranges symbol.
14770
14771 * font.c (font_put_extra): Expose externally.
14772
14773 * font.h (font_put_extra): Move declaration from font.c.
14774
14775 * font.c (Ffont_get): Use font driver to determine otf capability.
14776 (adjust_anchor): Check if driver defines anchor_point before using.
14777
14778 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14779 (w32font_draw): Use options.
14780 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14781 Fix detection of truetype fonts.
14782 (registry_to_w32_charset): Handle charsets other than iso8859-1
14783 expressed as lisp symbols.
14784 (w32_registry): Express charset as lisp symbol.
14785 (fill_in_logfont): Reverse pixel and point height logic.
14786 Don't set width here. Set quality to default.
14787
14788 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14789 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14790
14791 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14792 Remove redundant loop and allocation.
14793
14794 * makefile.w32-in (font.o, w32font.o): New objects.
14795 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14796 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14797
14798 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14799 STORE_XCHARB a valid l-value.
14800
14801 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14802 calculations for non-Truetype fonts.
14803 (x_draw_glyph_string): Sync with xterm.c.
14804 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14805 Remove redundant code.
14806 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14807
14808 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14809 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14810
14811 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14812 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14813
14814 * w32font.c: New file for w32 font backend.
14815
14816 2008-02-01 Kenichi Handa <handa@m17n.org>
14817
14818 * term.c: Don't include "buffer.h" twice.
14819
14820 2008-02-01 Kenichi Handa <handa@m17n.org>
14821
14822 * character.c (Funibyte_string): New function.
14823 (syms_of_character): Defsubr it.
14824
14825 2008-02-01 Jason Rumney <jasonr@gnu.org>
14826
14827 * w32term.c [USE_FONT_BACKEND]:
14828 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14829 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14830 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14831 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14832 (x_free_frame_resources): Sync with xterm.c.
14833
14834 2008-02-01 Andreas Schwab <schwab@suse.de>
14835
14836 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14837 char-table size.
14838
14839 2008-02-01 Kenichi Handa <handa@m17n.org>
14840
14841 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14842
14843 2008-02-01 Kenichi Handa <handa@m17n.org>
14844
14845 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14846 font_otf_gpos, add font_drive_otf.
14847
14848 * fontset.c (fontset_find_font): Pay attention to font size
14849 specified for a font.
14850 (reorder_font_vector): Check contents of font_def.
14851
14852 * font.c (struct otf_list): Delete it.
14853 (otf_list): Make it a lisp variable.
14854 (otf_open): Use lispy otf_list.
14855 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14856 (check_otf_features): New function.
14857 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14858 New functions.
14859 (font_drive_otf): New function merging font_otf_gsub and
14860 font_otf_gpos.
14861 (font_open_for_lface): New arg spec. Change argument order.
14862 (font_load_for_face): Adjust for the change of font_open_for_lface.
14863 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14864 Ffont_otf_gpos.
14865 (syms_of_font): Staticpro otf_list. Delete defsubr of
14866 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14867
14868 * xfaces.c (set_font_frame_param): Adjust for the change of
14869 font_open_for_lface.
14870
14871 * font.h (font_open_for_lface): Adjust prototype.
14872 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14873 member otf_drive.
14874 (font_otf_gsub, font_otf_gpos): Delete externs.
14875 (font_drive_otf): Extern it.
14876
14877 2008-02-01 Kenichi Handa <handa@m17n.org>
14878
14879 * font.c (font_at): If the window W is not on a window system,
14880 return Qnil.
14881
14882 * coding.c (produce_chars, encode_coding): Don't call
14883 insert_from_gap if no characters to produce.
14884
14885 2008-02-01 Kenichi Handa <handa@m17n.org>
14886
14887 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14888 Fclear_face_cache.
14889
14890 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14891
14892 2008-02-01 Miles Bader <miles@gnu.org>
14893
14894 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14895 Parse "--disable-font-backend" option.
14896 (standard_args): Add "--disable-font-backend" option.
14897
14898 2008-02-01 Kenichi Handa <handa@m17n.org>
14899
14900 * fontset.c (fontset_find_font): New function.
14901 (fontset_font): Use fontset_find_font.
14902 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14903 Register the specified font for all Latin characters.
14904 (new_fontset_from_font): Register the specified font for all Latin
14905 characters.
14906 (dump_fontset): For a realized fontset, include the base fontset
14907 name in the returned vector.
14908
14909 2008-02-01 Kenichi Handa <handa@m17n.org>
14910
14911 * character.h (CHAR_STRING): Cast C to unsigned on calling
14912 char_string.
14913
14914 * character.c (char_string): Type of arg C changed to unsigned.
14915 Signal an error if C is an invalid character code.
14916
14917 * editfns.c (general_insert_function, Fchar_to_string):
14918 Use CHARACTERP, not INTEGERP.
14919
14920 2008-02-01 Kenichi Handa <handa@m17n.org>
14921
14922 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14923 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14924
14925 * regex.c (analyse_first): Fix for multibyte characters in "case
14926 charset:" and "case categoryspec:".
14927
14928 2008-02-01 Andreas Schwab <schwab@suse.de>
14929
14930 * Makefile.in (LIBES): Move standard libraries to the end.
14931
14932 2008-02-01 Kenichi Handa <handa@m17n.org>
14933
14934 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14935 nonzero, don't shrink the buffer nextb.
14936
14937 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14938
14939 * coding.c (coding_alloc_by_making_gap): New arg offset.
14940 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14941 offset.
14942 (decode_coding_iso_2022): Update coding->safe_charsets.
14943 (decode_coding_gap): Temporarily set
14944 current_buffer->text->inhibit_shrinking to 1.
14945
14946 2008-02-01 Kenichi Handa <handa@m17n.org>
14947
14948 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14949 indexing into elements of s->cmp and s->char2b.
14950
14951 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
14952
14953 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14954
14955 2008-02-01 Kenichi Handa <handa@m17n.org>
14956
14957 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14958 target_multibyte instead of multibyte.
14959 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14960 (bcmp_translate): Change the argument name from multibyte to
14961 target_multibyte.
14962
14963 2008-02-01 Kenichi Handa <handa@m17n.org>
14964
14965 These changes are to compile a regexp into a pattern that can be
14966 used both for multibyte and unibyte targets.
14967
14968 * Makefile.in (search.o): Depend on charset.h.
14969
14970 * character.c (multibyte_char_to_unibyte_safe): New function.
14971
14972 * search.c: Include "charset.h".
14973 (compile_pattern_1): Delete argument multibyte. Don't set
14974 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14975 (compile_pattern): Don't compare cp->buf.target_multibyte.
14976 Compare cp->buf.charset_unibyte.
14977 (compile_pattern): Set cp->buf.target_multibyte.
14978
14979 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14980
14981 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14982
14983 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14984 multibyte. Change callers.
14985 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14986 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14987 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14988 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14989 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14990 (regex_compile): Make the compiled pattern usable both for
14991 multibyte and unibyte targets.
14992 (analyse_first): Make the fastmap usable both for multibyte and
14993 unibyte targets.
14994 (TRANSLATE_VIA_MULTIBYTE): Delete.
14995 (re_match_2_internal): Pay attention to the case that the
14996 multibyteness of bufp and target may be different.
14997
14998 2008-02-01 Kenichi Handa <handa@m17n.org>
14999
15000 * xdisp.c (x_produce_glyphs): When a font is not found, make the
15001 empty box occupy at least one column width.
15002
15003 2008-02-01 Miles Bader <miles@gnu.org>
15004
15005 * Makefile.in: Remove redundant HAVE_XFT clause.
15006
15007 2008-02-01 Kenichi Handa <handa@m17n.org>
15008
15009 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
15010
15011 2008-02-01 Kenichi Handa <handa@m17n.org>
15012
15013 * fontset.c (Finternal_char_font): Fix for the case of POSITION
15014 being nil.
15015
15016 2008-02-01 Kenichi Handa <handa@m17n.org>
15017
15018 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
15019
15020 2008-02-01 Kenichi Handa <handa@m17n.org>
15021
15022 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
15023
15024 2008-02-01 Kenichi Handa <handa@m17n.org>
15025
15026 * search.c (simple_search): Fix previous change.
15027
15028 2008-02-01 Kenichi Handa <handa@m17n.org>
15029
15030 * xftfont.c (ftfont_font_format): Extern declaration.
15031
15032 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
15033
15034 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
15035 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
15036
15037 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
15038 (ftfont_font_format): Fix previous change.
15039
15040 * font.h (Ffont_xlfd_name): EXFUN it.
15041
15042 * font.c (font_parse_xlfd): Fix the array size of `f'.
15043 (register_font_driver): Use EQ to compare driver->type.
15044
15045 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
15046 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
15047 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
15048
15049 2008-02-01 Kenichi Handa <handa@m17n.org>
15050
15051 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
15052 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
15053
15054 2008-02-01 Kenichi Handa <handa@m17n.org>
15055
15056 * xfont.c (xfont_open): Set font->format.
15057
15058 * xftfont.c (xftfont_open): Set font->format.
15059
15060 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
15061 (ftfont_list): Include FC_FONTFORMAT in FcObject.
15062 (ftfont_open): Set font->format.
15063 (ftfont_font_format): New function.
15064
15065 * font.h (struct font): New member format.
15066
15067 * font.c (Qopentype): New variable.
15068 (syms_of_font): Defsym it.
15069 (Fquery_font): Change the format of the last element of the return
15070 value.
15071
15072 2008-02-01 Kenichi Handa <handa@m17n.org>
15073
15074 * xfns.c (xic_create_xfontset): Try the default fontset name as a
15075 last resort.
15076
15077 2008-02-01 Kenichi Handa <handa@m17n.org>
15078
15079 * coding.c (detect_coding_charset): Fix detection of multi-byte
15080 charset.
15081
15082 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
15083
15084 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
15085
15086 2008-02-01 Kenichi Handa <handa@m17n.org>
15087
15088 * xdisp.c (get_next_display_element): Set it->face_id for the
15089 first component of a composition.
15090 (x_produce_glyphs): Check if the font is changed or not for composition.
15091
15092 2008-02-01 Kenichi Handa <handa@m17n.org>
15093
15094 * fontset.c (Qlatin): New variable.
15095 (syms_of_fontset): Define it as a lisp symbol.
15096 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
15097
15098 2008-02-01 Kenichi Handa <handa@m17n.org>
15099
15100 * font.c (font_unparse_fcname): Pay attention to the case that
15101 some of font property is a null string.
15102
15103 2008-02-01 Kenichi Handa <handa@m17n.org>
15104
15105 * term.c: Include "composite.h".
15106 (encode_terminal_code): Output all components of composition.
15107 Check the size of encode_terminal_src.
15108 (produce_glyphs): For composition, call produce_composite_glyph.
15109 (append_composite_glyph, produce_composite_glyph): New functions.
15110
15111 * xdisp.c (x_produce_glyphs): In handling composition, if a font
15112 is not found, get font_info from the current ascii face.
15113
15114 2008-02-01 Kenichi Handa <handa@m17n.org>
15115
15116 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
15117 buffer-file-name to Qnil before calling insert_from_buffer.
15118
15119 * font.c (font_unparse_fcname): Pay attention to the case that
15120 foundry is a null string.
15121
15122 2008-02-01 Kenichi Handa <handa@m17n.org>
15123
15124 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
15125
15126 * font.c (Qunicode_sip): New variable.
15127 (syms_of_font): Declare it as a Lisp symbol.
15128
15129 * font.h (Qunicode_sip): Extern it.
15130
15131 2008-02-01 Kenichi Handa <handa@m17n.org>
15132
15133 * composite.c (get_composition_id): Pay attention to TAB component.
15134
15135 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
15136 TAB. Adjust for the change of s->char2b which always points to
15137 the first element of allocated memory.
15138
15139 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
15140
15141 * xdisp.c (handle_composition_prop): Set it->c to the first
15142 non-TAB component.
15143 (fill_composite_glyph_string): Change argument.
15144 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
15145 (x_produce_glyphs): Fix handling of left/right padding.
15146
15147 2008-02-01 Kenichi Handa <handa@m17n.org>
15148
15149 * coding.c (detect_coding_system): Fix for handling off
15150 inhibit_iso_escape_detection. Fix for the case that no coding
15151 system is defined for a specific coding category.
15152
15153 2008-02-01 Kenichi Handa <handa@m17n.org>
15154
15155 * font.c (font_matching_entity): Delete unused local var.
15156
15157 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
15158 opening a font.
15159
15160 * fileio.c (Finsert_file_contents): On recovering a file, assume
15161 Unix-like eol.
15162 (choose_write_coding_system): On auto-saving a file, force
15163 Unix-like eol.
15164
15165 * coding.c (setup_coding_system): Fix setting of
15166 coding->common_flags based on eol_type.
15167 (coding_inherit_eol_type): If PARENT is not nil, be sure to
15168 inherit from it.
15169
15170 2008-02-01 Kenichi Handa <handa@m17n.org>
15171
15172 * alloc.c (NSTATICS): Increas to 0x600.
15173
15174 2008-02-01 Kenichi Handa <handa@m17n.org>
15175
15176 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
15177 (ftfont_list): Don't check :name property.
15178 (ftfont_match): New function.
15179 (ftfont_pattern_entity): If the pattern doesn't contain
15180 FC_SPACING, don't assume FC_MONO.
15181
15182 * font.h (struct font_driver): New member `match'.
15183 (font_update_drivers): Adjust prototype.
15184
15185 * font.c (font_parse_fcname, font_parse_name): Don't change :name
15186 property of FONT.
15187 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
15188 them unconditionally.
15189 (font_matching_entity): New function.
15190 (font_open_by_name): Try font_matching_entity if exact match is
15191 not found.
15192 (font_update_drivers): Delete the arg FONT. Return a list of
15193 actually used backends. Don't free faces, font caches here.
15194 Don't store data in frame parameters. Don't call x_set_font.
15195 (Ffont_spec): Store :name property as is.
15196 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
15197 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
15198 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
15199 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
15200 Call font->driver->otf_gsub instead of font_otf_gsub.
15201
15202 * frame.c (x_set_font_backend): Do more works that were done in
15203 font_update_drivers before.
15204
15205 * xfont.c (xfont_match): New function.
15206 (xfont_driver): Set xfont_driver.match to xfont_match.
15207 (xfont_draw): Set font in GC if necessary.
15208
15209 * ftxfont.c (ftxfont_match): New function.
15210 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
15211
15212 * xftfont.c (xftfont_match): New function.
15213 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
15214
15215 2008-02-01 Kenichi Handa <handa@m17n.org>
15216
15217 * font.h (struct font): New member scalable.
15218 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
15219 (font_otf_gsub): Adjust prototype.
15220
15221 * font.c (font_otf_capability): Fix handling of the default langsys.
15222 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
15223 Check the contents of SPEC.
15224 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
15225 (check_gstring): New function.
15226 (REPLACEMENT_CHARACTER): New macro.
15227 (font_otf_gsub): New arg alternate_subst. Be sure to set all
15228 glyph codes of GSTRING.
15229 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
15230 (font_prepare_composition): Set cmp->glyph_len.
15231 (font_open_entity): Set font->scalable.
15232 (Ffont_get): Handle :otf property.
15233 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
15234 functions.
15235 (Fquery_font): Use font->font.full_name.
15236 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
15237 Sfont_otf_alternates.
15238
15239 * ftfont.c (ftfont_open): Set font->font.full_name and
15240 font->font.name properly. Fix calculation of font->font.height
15241 and font->min_width.
15242
15243 * ftxfont.c (ftxfont_create_gcs): New function.
15244 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
15245 (ftxfont_draw_backgrond): Fix filling region.
15246 (ftxfont_default_fid): New function.
15247 (ftxfont_open): Set xfont->fid to the return value of
15248 ftxfont_default_fid.
15249 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
15250 (ftxfont_done_face): Free only GCs that are created by
15251 ftxfont_create_gcs.
15252 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
15253
15254 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
15255 Clip to src->width, etc (not src->clip_XXX).
15256
15257 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
15258 FontBackend frame parameter.
15259
15260 2008-02-01 Kenichi Handa <handa@m17n.org>
15261
15262 * font.h (struct font_driver_list): New member `on'.
15263 (Fclear_font_cache): EXFUN it.
15264 (font_update_drivers): Extern it.
15265
15266 * font.c (font_unparse_fcname): Fix typo (swidth->width).
15267 (font_list_entities): Check driver_list->on.
15268 (register_font_driver): Initialize `on' member to 0.
15269 (font_update_drivers): New function.
15270 (Fclear_font_cache): Check driver_list->on.
15271
15272 * frame.h (Qfont_backend): Extern it.
15273 (x_set_font_backend): Extern it.
15274
15275 * frame.c (Qfont_backend): New variable.
15276 (frame_parms): New element for font-backend.
15277 (x_set_font_backend): New function.
15278
15279 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
15280 FontBackend frame parameter.
15281 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
15282 x_set_font_backend.
15283
15284 * xfont.c (xfont_list): Don't try listing by :name property if the
15285 name is not for XLFD.
15286
15287 2008-02-01 Kenichi Handa <handa@m17n.org>
15288
15289 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
15290 (LGLYPH_SET_TO): New macros.
15291 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
15292 element of G is vector or not.
15293 (font_at): Extern it.
15294
15295 * font.c: Include window.h.
15296 (font_lispy_object): New function.
15297 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
15298 end of valid glyph.
15299 (font_close_object): Fix getting (struct font *).
15300 (font_at): New function.
15301 (Ffont_get): If FONT is a font-object, get entity from it.
15302 (Ffont_make_gstring): Initialize elements of glyphs with nil.
15303 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
15304 range check.
15305 (Ffont_at): New function.
15306 (syms_of_font): Defsubr Sfont_at.
15307
15308 * xdisp.c (it_props): Move the entry for Qauto_composed to just
15309 before the entry for Qcomposition.
15310 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
15311 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
15312 the font in gstring.
15313 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
15314 LGLYPH_FORM (g) to detect the end of valid glyph.
15315 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
15316 we are composing with gstring.
15317
15318 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
15319 Check if adjustment is vector or not.
15320
15321 * Makefile.in (font.o): Make it depends on window.h.
15322
15323 2008-02-01 Kenichi Handa <handa@m17n.org>
15324
15325 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
15326 adjustment is vector or not.
15327
15328 2008-02-01 Miles Bader <miles@gnu.org>
15329
15330 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
15331
15332 2008-02-01 Kenichi Handa <handa@m17n.org>
15333
15334 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15335 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15336 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15337
15338 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15339 (DEVICE_DELTA): Fix typo.
15340 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15341 LGLYPH format.
15342
15343 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15344 the change of LGLYPH format.
15345
15346 2008-02-01 Kenichi Handa <handa@m17n.org>
15347
15348 * ftfont.c (ftfont_list): Fix typo.
15349 (ftfont_build_basic_charsets): Don't include letters with diacritics.
15350
15351 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15352
15353 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15354
15355 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15356 xftface_info is non-NULL.
15357
15358 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15359
15360 * ftfont.c (ftfont_list): Move misplaced #endif.
15361
15362 2008-02-01 Kenichi Handa <handa@m17n.org>
15363
15364 * ftfont.c (ftfont_list): Pay attention to the case that
15365 FC_CAPABILITY is not defined.
15366
15367 2008-02-01 Kenichi Handa <handa@m17n.org>
15368
15369 * xftfont.c (xftfont_open): Set charset related members to -1.
15370
15371 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
15372 QCname.
15373 (ftfont_open): Set charset related members to -1.
15374
15375 * fontset.c (Votf_script_alist): New variable.
15376 (syms_of_fontset): Initialize it.
15377 (fontset_font): Delete unused variable.
15378
15379 * fontset.h (Votf_script_alist): Extern it.
15380
15381 * font.c (font_find_for_lface): Optimize code.
15382
15383 * font.h (font_close_object, font_merge_old_spec): Extern them.
15384
15385 2008-02-01 Kenichi Handa <handa@m17n.org>
15386
15387 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15388 (syms_of_font): Initialize them.
15389 (font_pixel_size): Allow float value in dpi.
15390 (font_prop_validate_type): Delete.
15391 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15392 Change caller.
15393 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15394 (font_prop_validate_extra): Delete.
15395 (font_prop_validate_spacing): New function.
15396 (font_property_table): Add elements for all known properties.
15397 (get_font_prop_index): Rename from check_font_prop_name. New
15398 argument FROM. Change caller.
15399 (font_prop_validate): Validate all known properties.
15400 (font_put_extra): Delete argument force. Change caller.
15401 (font_expand_wildcards): Make it static. Fix the way of shrinking
15402 the possible range.
15403 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15404 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15405 Change caller.
15406 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15407 (font_parse_fcname): Delete argument merge. Fix parsing of point
15408 size. Don't validate properties values here. Change caller.
15409 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15410 (font_open_by_name): Delete unused variable.
15411 (Ffont_spec): Likewise. Validate property values.
15412 (Ffont_match_p): New function.
15413
15414 * font.h (QCscalable): Extern it.
15415 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15416
15417 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15418
15419 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15420 (xfont_list_pattern): New function.
15421 (xfont_list): Use xfont_list_pattern.
15422
15423 2008-02-01 Kenichi Handa <handa@m17n.org>
15424
15425 * font.h (Flist_fonts): EXFUN it.
15426
15427 2008-02-01 Jason Rumney <jasonr@gnu.org>
15428
15429 * w32term.c (w32_initialize): Add back smoothing_type and
15430 smoothing_enabled definitions.
15431
15432 2008-02-01 Kenichi Handa <handa@m17n.org>
15433
15434 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15435 s->face->font on determining underline position.
15436
15437 2008-02-01 Kenichi Handa <handa@m17n.org>
15438
15439 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15440 (font_has_char): Accept font-object too.
15441 (font_find_for_lface): Try at first with a size specified in face.
15442
15443 2008-02-01 Kenichi Handa <handa@m17n.org>
15444
15445 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15446 font_open_by_name.
15447
15448 2008-02-01 Kenichi Handa <handa@m17n.org>
15449
15450 * font.h (QCspacing, QCdpi): Extern them.
15451 (enum font_spacing): New enum.
15452 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15453
15454 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15455 (QCspacing, QCdpi): New variables.
15456 (syms_of_font): Initialize them.
15457 (font_pixel_size): New function.
15458 (font_put_extra): New function.
15459 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15460 in FONT_EXTRA.
15461 (font_parse_fcname): Handle enumerated values (e.g. bold).
15462 Fix handling font size. Add QCname property that contains only
15463 unknown properties.
15464 (font_score): Change argument. Change caller. Pay attention to
15465 FONT_PIXEL_SIZE_QUANTUM.
15466 (font_sort_entites, font_list_entities, font_find_for_lface)
15467 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15468 (Ffont_spec): Add QCname property that contains only unknown properties.
15469
15470 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15471 include weight in listing pattern, instead check weight of each
15472 listed font. Don't include scalable in pattern. Pay attention to
15473 FONT_PIXEL_SIZE_QUANTUM.
15474
15475 2008-02-01 Kenichi Handa <handa@m17n.org>
15476
15477 * font.c (font_parse_fcname): Fix parsing of point-size.
15478 (font_unparse_fcname): Produce symbolic names for style properties.
15479 (font_list_entities): Handle float size correctly.
15480 (font_open_by_name): Prefer `normal' property values if the name
15481 doesn't specify them.
15482
15483 * fontset.c (Finternal_char_font): Use font_get_name, not
15484 Ffont_xlfd_name.
15485
15486 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15487 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15488 pattern. Don't force scalable.
15489
15490 * xftfont.c (xftfont_open): For generating a name, start from
15491 96-byte buffer.
15492
15493 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15494
15495 * frame.h (x_new_fontset2): Fix prototype.
15496
15497 2008-02-01 Kenichi Handa <handa@m17n.org>
15498
15499 * font.h (struct font_driver): Delete member parse_name.
15500 (font_match_p, font_get_spec, font_parse_fcname)
15501 (font_unparse_fcname): Extern them.
15502 (font_get_name): Adjust prototype.
15503
15504 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15505 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15506 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15507 unnecessary checks for weight, slant, and swidth.
15508 (font_parse_fcname): New function.
15509 (font_unparse_fcname): New function.
15510 (font_parse_name): New function.
15511 (font_match_p): New function.
15512 (font_get_name): Change return value to Lisp string.
15513 (font_get_spec): New function.
15514 (Qunspecified, Qignore_defface): Don't extern them.
15515 (font_find_for_lface): Assume that LFACE is fully specified.
15516 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15517 object, use it for FACE.
15518 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15519 driver->parse_name.
15520 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15521
15522 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15523 prototype.
15524
15525 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15526 argument F. Don't call Fnew_fontset. Instead, directly call
15527 make_fontset.
15528
15529 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15530
15531 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15532 of x_new_fontset2.
15533
15534 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15535 (Qsans__serif): New variables.
15536 (ftfont_generic_family_list): New variable.
15537 (syms_of_ftfont): Initialize the above variables.
15538 (ftfont_pattern_entity): Delete argument NAME.
15539 (ftfont_list_generic_family): New function.
15540 (ftfont_parse_name): Delete this function.
15541 (ftfont_list): Try generic family only when FcFontList found no font.
15542 (ftfont_list_family): Fix args to FcObjectSetBuild.
15543
15544 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15545 object in attrs[LFACE_FONT_INDEX].
15546 (set_lface_from_font_name): Cancel all changes for font-backend.
15547 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15548 function.
15549 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15550 font object in QCfont attribute.
15551 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15552 (realize_default_face) [USE_FONT_BACKEND]: Call
15553 set_lface_from_font_and_fontset.
15554
15555 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15556 "fixed", and signal error here if no suitable font was found.
15557
15558 * xfont.c (xfont_parse_name): Delete this function.
15559
15560 * xftfont.c (xftfont_open): Change coding style of error
15561 handling. Generate fontconfig's fontname pattern.
15562
15563 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15564 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15565
15566 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15567 Both args FONTSET and FONT_OBJECT must be existing ones.
15568
15569 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15570
15571 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15572
15573 2008-02-01 Kenichi Handa <handa@m17n.org>
15574
15575 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15576
15577 * font.h (struct font): Fix typo.
15578
15579 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15580 XLFD_XXX_INDEX.
15581 (enum xlfd_field_mask): New enum.
15582 (intern_font_field): Changed argument. Change caller. If digits
15583 are followed by non-digits, return a symbol.
15584 (font_expand_wildcards): New function.
15585 (font_parse_xlfd): Fix wildcard handling.
15586 (Ffont_spec): If :name is specified, reflect the info in the other
15587 properties.
15588
15589 * ftfont.c (ftfont_pattern_entity): Fix typo.
15590 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15591 locale.
15592
15593 2008-02-01 Kenichi Handa <handa@m17n.org>
15594
15595 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15596
15597 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15598 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15599 registry doesn't specify encoding part.
15600 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15601 (font_open_by_name): At first try parsing the name.
15602 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15603 as Lisp symbols.
15604
15605 * fontset.c (reorder_font_vector): Pay attention to the case that
15606 the 3rd element of font_def is nil.
15607 (fontset_font): For the default fontset, append one more fontset
15608 elements for a script-based font specification. Don't add script
15609 attribute on finding a font.
15610 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15611 font name.
15612 (fontset_ascii_font): If a font can't be opened, return nil.
15613
15614 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15615 (ftfont_pattern_entity): New function.
15616 (ftfont_get_cache): Assume that freetype_font_cache is already
15617 initialized.
15618 (ftfont_list): Handle the case that a file is specified in font
15619 name. Use ftfont_pattern_entity to generate entities.
15620 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15621 (syms_of_ftfont): Initialize freetype_font_cache.
15622
15623 * xftfont.c (xftfont_open): Make the font name fontconfig's
15624 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15625 (xftfont_close): Free font->font.name if not NULL.
15626
15627 * xfont.c (xfont_list): If script is specified for a font, return
15628 null_vector.
15629 (xfont_list_family): Declare argument type.
15630
15631 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15632 name, set LFACE_FONT (lface) to nil.
15633
15634 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15635 return Qnil.
15636
15637 2008-02-01 Kenichi Handa <handa@m17n.org>
15638
15639 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15640 (standard_args): Add "-enable-font-backend".
15641
15642 2008-02-01 Kenichi Handa <handa@m17n.org>
15643
15644 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15645 (struct xftdraw_list, xftdraw_list): Delete them.
15646 (register_xftdraw, check_xftdraw): Delete them.
15647 (xftfont_prepare_face): Don't call register_xftdraw.
15648 (xftfont_done_face): Don't call check_xftdraw.
15649 (xftfont_draw): Get background color only when with_background is
15650 nonzero.
15651
15652 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15653
15654 2008-02-01 Kenichi Handa <handa@m17n.org>
15655
15656 These changes are for the new font handling codes.
15657
15658 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15659 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15660 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15661 (FONTSRC, FONTOBJ): New variables.
15662 (obj): Add $(FONTOBJ).
15663 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15664 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15665 @LIBOTF_LIBS@.
15666 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15667 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15668
15669 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15670
15671 * character.h (Vscript_representative_chars): Extern it.
15672
15673 * character.c (Vscript_representative_chars): New variable.
15674 (syms_of_character): Declare it as a Lisp variable.
15675
15676 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15677 enable_font_backend is nonzero, accept the composition method
15678 COMPOSITION_WITH_GLYPH_STRING.
15679
15680 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15681 enumeration COMPOSITION_WITH_GLYPH_STRING.
15682
15683 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15684 members clip_x, clip_y, clip_width, and clip_height.
15685 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15686
15687 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15688 --enable-font-backend. Call syms_of_font.
15689
15690 * fns.c (assoc_no_quit): New function.
15691
15692 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15693 (face_for_font, new_fontset_from_font)
15694 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15695
15696 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15697 (fontset_font, fontset_ascii, face_for_char)
15698 (make_fontset_for_ascii_face, Ffont_info)
15699 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15700 is nonzero, use font-backend mechanism.
15701 (find_font_encoding): Make it non-static.
15702 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15703 New functions.
15704
15705 * frame.h (struct frame): New members resx and resy.
15706 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15707 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15708
15709 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15710 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15711
15712 * lisp.h (assoc_no_quit): Extern it.
15713
15714 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15715 Through out the file, use FONT_INFO_FROM_FACE instead of
15716 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15717 rif->per_char_metric.
15718 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15719 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15720 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15721 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15722 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15723 nonzero, use font-backend mechanism.
15724 (get_per_char_metric): New function.
15725
15726 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15727 (set_lface_from_font_name)
15728 (set_font_frame_param, free_realized_face)
15729 (prepare_face_for_display, clear_face_gcs)
15730 (Finternal_set_font_selection_order, realize_x_face)
15731 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15732 font-backend mechanism.
15733 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15734 (load_face_font) [USE_FONT_BACKEND]: Abort.
15735 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15736 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15737
15738 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15739 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15740 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15741 nonzero, register all available font drivers. Call
15742 x_default_font_parameter for deciding a font.
15743 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15744
15745 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15746 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15747 (x_set_glyph_string_clipping_exactly)
15748 (x_compute_glyph_string_overhangs)
15749 (x_draw_glyph_string_foreground)
15750 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15751 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15752 enable_font_backend is nonzero, use font-backend mechanism.
15753 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15754
15755 2008-02-01 Kenichi Handa <handa@m17n.org>
15756
15757 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15758 system_eol_type.
15759 (syms_of_coding): Initialize system_eol_type.
15760
15761 * process.c (Fset_process_coding_system): Inherit system's eol
15762 format if necessary.
15763
15764 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15765
15766 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15767
15768 2008-02-01 Kenichi Handa <handa@m17n.org>
15769
15770 * coding.c (decode_eol): Pay attention to buffer relocation in
15771 del_range_2.
15772 (decode_coding): Call decode_eol before restoring undo_list.
15773
15774 2008-02-01 Kenichi Handa <handa@m17n.org>
15775
15776 * charset.c (Fdefine_charset_internal): Fix setting of
15777 emacs_mule_bytes.
15778
15779 2008-02-01 Kenichi Handa <handa@m17n.org>
15780
15781 * keyboard.c (read_char): Check if C is a character or not before
15782 looking up Vkeyboard_translate_table.
15783
15784 2008-02-01 Kenichi Handa <handa@m17n.org>
15785
15786 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15787 condition to terminate the loop.
15788
15789 2008-02-01 Kenichi Handa <handa@m17n.org>
15790
15791 * coding.c (produce_composition): Compare charbuf[i] instead of
15792 args[i] against 0.
15793 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15794
15795 2008-02-01 Kenichi Handa <handa@m17n.org>
15796
15797 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15798 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15799 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15800 detect_coding.
15801 (emacs_mule_char): Handle old style (Emacs 20) component character
15802 of a composition.
15803 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15804 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15805 composition rule.
15806 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15807
15808 2008-02-01 Kenichi Handa <handa@m17n.org>
15809
15810 * coding.c (encode_coding_ccl): Allocate destination dynamically
15811 when necessary.
15812
15813 2008-02-01 Kenichi Handa <handa@m17n.org>
15814
15815 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15816 the loop. When quitted, show a proper error message.
15817
15818 2008-02-01 Kenichi Handa <handa@m17n.org>
15819
15820 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15821 src->clip_head and src->clip_tail temporarily instead of src->hl.
15822
15823 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15824 character sequence.
15825 (Fccl_execute_on_string): Use ASET, not XSET.
15826
15827 2008-02-01 Kenichi Handa <handa@m17n.org>
15828
15829 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15830
15831 2008-02-01 Kenichi Handa <handa@m17n.org>
15832
15833 * coding.c (decode_coding): Fix the condition of terminating the
15834 decoding loop.
15835
15836 2008-02-01 Kenichi Handa <handa@m17n.org>
15837
15838 * data.c (Faset): On setting a character bigger than 255 in a
15839 unibyte string, signal an error instead of make the string multibyte.
15840
15841 2008-02-01 Kenichi Handa <handa@m17n.org>
15842
15843 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15844 made by a mapping table.
15845
15846 2008-02-01 Kenichi Handa <handa@m17n.org>
15847
15848 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15849 not.
15850 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15851 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15852
15853 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15854 s->face is NULL or not.
15855
15856 2008-02-01 Kenichi Handa <handa@m17n.org>
15857
15858 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15859 (x_draw_glyph_string): Fix drawing of right_overhang and
15860 left_overhang around/on cursor.
15861
15862 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15863
15864 2008-02-01 Kenichi Handa <handa@m17n.org>
15865
15866 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15867
15868 2008-02-01 Kenichi Handa <handa@m17n.org>
15869
15870 * coding.c (Fdefine_coding_system_internal)
15871 (Fdefine_coding_system_alias): Avoid a duplicated element in
15872 Vcoding_system_alist.
15873
15874 2008-02-01 Kenichi Handa <handa@m17n.org>
15875
15876 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15877
15878 * coding.c (Qcoding_system_define_form): New variable.
15879 (syms_of_coding): Intern and staticpro it.
15880 (Fcoding_system_p): Check Qcoding_system_define_form.
15881 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15882
15883 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15884 Fcoding_system_p.
15885 (CHECK_CODING_SYSTEM): If ID is not available, call
15886 Fcheck_coding_system.
15887 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15888 Try also Fcheck_coding_system.
15889
15890 2008-02-01 Kenichi Handa <handa@m17n.org>
15891
15892 * coding.c (code_conversion_restore): GCPRO arg.
15893
15894 2008-02-01 Kenichi Handa <handa@m17n.org>
15895
15896 * character.c (lisp_string_width): Check multibyteness of STRING.
15897
15898 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15899
15900 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15901 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15902 (decode_mac_font_name): Use decode_coding_c_string instead of
15903 decode_coding.
15904 (x_load_font): Initialize fontp->fontset to -1. Set
15905 fontp->encoding_type.
15906
15907 2008-02-01 Kenichi Handa <handa@m17n.org>
15908
15909 * search.c (search_buffer): Give up BM search on case-fold-search
15910 if one of a target character has a case-equivalence of different
15911 byte length even if that target charcter is an ASCII.
15912 (simple_search): Fix calculation of byte length of matched text.
15913 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15914
15915 2008-02-01 Kenichi Handa <handa@m17n.org>
15916
15917 * coding.c (decode_coding): Fix handling of invalid bytes.
15918
15919 2008-02-01 Kenichi Handa <handa@m17n.org>
15920
15921 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15922 Unicode characters.
15923
15924 2008-02-01 Kenichi Handa <handa@m17n.org>
15925
15926 * coding.c (encode_coding_object): If a pre-write-conversion
15927 function makes a new buffer, kill it.
15928
15929 2008-02-01 Kenichi Handa <handa@m17n.org>
15930
15931 * coding.c (QCascii_compatible_p): New variable.
15932 (syms_of_coding): Initialize it.
15933 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15934 calling string_char.
15935 (record_conversion_result): Add `default:' case.
15936 (coding_charset_list): Delete unused variable `coding_type'.
15937 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15938 property in the plist of the coding system.
15939 (Fcoding_system_put): Check QCascii_compatible_p.
15940
15941 2008-02-01 Miles Bader <miles@gnu.org>
15942
15943 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15944 removed calculation of frame `f', as it's now used.
15945
15946 2008-02-01 Kenichi Handa <handa@m17n.org>
15947
15948 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15949 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15950 (UNIDATA): New variable.
15951 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15952 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15953 $(RUN_TEMACS) unconditionally.
15954
15955 2008-02-01 Kenichi Handa <handa@m17n.org>
15956
15957 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15958 (admindir): New variable.
15959 ($(lispsource)international/charprop.el): New target.
15960
15961 2008-02-01 Miles Bader <miles@gnu.org>
15962
15963 * character.c (chars-in-region): Remove obsolete function.
15964 (syms_of_character): Remove its initialization.
15965
15966 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15967
15968 * w32select.c (validate_coding_system)
15969 (setup_windows_coding_system): New functions.
15970 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15971 setup_windows_coding_system.
15972 (setup_config, Fw32_get_clipboard_data): Use
15973 validate_coding_system.
15974 (Fx_selection_exists): Move call to setup_config to a place
15975 where signals are allowed.
15976
15977 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15978 (Fcheck_coding_system): Add declarations.
15979
15980 2008-02-01 Kenichi Handa <handa@m17n.org>
15981
15982 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15983
15984 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15985
15986 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15987 string as the second argument for x_new_fontset.
15988
15989 2008-02-01 Kenichi Handa <handa@m17n.org>
15990
15991 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15992 (encode_coding_object): Use safe_call instead of call2.
15993
15994 2008-02-01 Kenichi Handa <handa@m17n.org>
15995
15996 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15997
15998 * Makefile.in (lisp): Include charprop.el.
15999
16000 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16001
16002 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
16003 Not sure if it's unnecessary.
16004
16005 2008-02-01 Steven Tamm <steventamm@mac.com>
16006
16007 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
16008 some possibly unnecessary fontset checking code that crashed
16009 when creating a new frame.
16010
16011 2008-02-01 Kenichi Handa <handa@m17n.org>
16012
16013 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
16014 lookup_face.
16015
16016 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
16017
16018 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
16019
16020 2008-02-01 Kenichi Handa <handa@m17n.org>
16021
16022 * coding.c: Cancel the change done in HEAD on 2008-02-01.
16023 (coding_charset_list): New function.
16024
16025 * coding.h (coding_charset_list): Extern it.
16026
16027 2008-02-01 Kenichi Handa <handa@m17n.org>
16028
16029 * fontset.c (Fset_fontset_font): Call find_font_encoding with
16030 concatenation of family and registry.
16031
16032 2008-02-01 Kenichi Handa <handa@m17n.org>
16033
16034 * character.h (BYTE8_STRING): Fix typo.
16035
16036 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
16037 string to multibyte (sync to HEAD).
16038
16039 * casefiddle.c (casify_region): Handle changes in byte-length
16040 using replace_range_2 (sync to HEAD).
16041
16042 2008-02-01 Andreas Schwab <schwab@suse.de>
16043
16044 * chartab.c (map_char_table): GCPRO table and arg.
16045
16046 2008-02-01 Kenichi Handa <handa@m17n.org>
16047
16048 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
16049 already at limit.
16050
16051 2008-02-01 Kenichi Handa <handa@m17n.org>
16052
16053 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
16054 instead of fast_c_string_match_ignore_case.
16055 (find_font_encoding): Change argument to Lisp_Object. Use
16056 fast_string_match_ignore_case instead of
16057 fast_c_string_match_ignore_case. Change caller.
16058
16059 2008-02-01 Kenichi Handa <handa@m17n.org>
16060
16061 * xdisp.c (get_next_display_element): In unibyte case, decide to
16062 display in octal form by checking a character by
16063 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
16064
16065 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
16066
16067 * character.c (unibyte_has_multibyte_table): New variable.
16068
16069 * character.h (unibyte_has_multibyte_table): Extern it.
16070 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
16071
16072 2008-02-01 Kenichi Handa <handa@m17n.org>
16073
16074 * coding.c (encode_coding_iso_2022): Fix handling of charset
16075 annotation.
16076
16077 2008-02-01 Kenichi Handa <handa@m17n.org>
16078
16079 * coding.c (setup_coding_system): If coding_system is nil, use
16080 Qundecided.
16081 (Fterminal_coding_system): Return nil if terminal coding system is
16082 `undecided'.
16083 (syms_of_coding): Define coding-system `undecided' here. Setup
16084 terminal_coding as `undecided'.
16085
16086 2008-02-01 Kenichi Handa <handa@m17n.org>
16087
16088 * xdisp.c (message_dolog, set_message_1): Call
16089 unibyte_char_to_multibyte with arg type int.
16090
16091 * lread.c (read1): Fix reading of a char-table.
16092
16093 * print.c (print_object): Include sub char-table in circularities
16094 detection.
16095
16096 2008-02-01 Kenichi Handa <handa@m17n.org>
16097
16098 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
16099 Append the found sequences in car of ARGS instead of prepending.
16100
16101 2008-02-01 Kenichi Handa <handa@m17n.org>
16102
16103 * fileio.c (report_file_error): Make a unibyte string from
16104 strerror (errorno).
16105 (Fsubstitute_in_file_name): Fix the arg to
16106 unibyte_char_to_multibyte. It is evaluated twice.
16107
16108 2008-02-01 Kenichi Handa <handa@m17n.org>
16109
16110 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
16111
16112 2008-02-01 Kenichi Handa <handa@m17n.org>
16113
16114 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
16115 BOM is not found.
16116 (detect_coding, detect_coding_system): Optimization for ISO-2022
16117 when no 8-bit data is found.
16118
16119 2008-02-01 Jason Rumney <jasonr@gnu.org>
16120
16121 * w32fns.c (x_to_w32_font): Update to use new coding struct.
16122
16123 2008-02-01 Kenichi Handa <handa@m17n.org>
16124
16125 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
16126 CHARS.
16127
16128 2008-02-01 Steven Tamm <steventamm@mac.com>
16129
16130 * macterm.c (mac_encode_char): Add charset argument and update
16131 to use encoding_type.
16132 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
16133 switch to pure fontset.
16134 (decode_mac_font_name): Temporarily remove decoding.
16135 (x_font_name_to_mac_font_name): Temporarily remove encoding.
16136 (x_load_font): Temporarily remove encoding.
16137
16138 2008-02-01 Kenichi Handa <handa@m17n.org>
16139
16140 * xfaces.c (Fface_font): If frame is not on a window system,
16141 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
16142 refer to face->font.
16143 (split_font_name_into_vector, build_font_name_from_vector)
16144 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
16145 when HAVE_WINDOW_SYSTEM is defined.
16146
16147 2008-02-01 Kenichi Handa <handa@m17n.org>
16148
16149 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
16150 (x_produce_glyphs): Fix setting of members of cmp in case
16151 cmp->glyph_len is zero.
16152
16153 * fontset.c (Fset_fontset_font): Fix docstring.
16154 (Ffontset_info): Make it backward compatible. New arg ALL.
16155
16156 2008-02-01 Kim F. Storm <storm@cua.dk>
16157
16158 * process.c (read_process_output): Grow decoding_buf when needed;
16159 this could cause a crash in allocate_string and compact_small_strings.
16160
16161 2008-02-01 Kenichi Handa <handa@m17n.org>
16162
16163 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
16164
16165 2008-02-01 Kenichi Handa <handa@m17n.org>
16166
16167 * coding.c (setup_coding_system): Set coding->common_flags
16168 correctly for raw-text.
16169 (consume_chars): On encoding unibyte text by raw-text, don't check
16170 multibyte form.
16171 (encode_coding): On encoding by raw-text, never use translation tables.
16172
16173 * fileio.c (e_write): Short cut for the case of no encoding.
16174
16175 2008-02-01 Kenichi Handa <handa@m17n.org>
16176
16177 * coding.c (detect_coding, detect_coding_system): Delete unused
16178 variables.
16179
16180 2008-02-01 Kenichi Handa <handa@m17n.org>
16181
16182 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
16183 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
16184
16185 2008-02-01 Kenichi Handa <handa@m17n.org>
16186
16187 * coding.c (Ffind_coding_systems_region_internal): Include
16188 raw-text and no-conversion in the result.
16189
16190 2008-02-01 Kenichi Handa <handa@m17n.org>
16191
16192 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
16193 (load_font_get_repertory): Delete unnecessary check of ENCODING of
16194 FONT_DEF.
16195 (font_def_arg, add_arg, from_arg, to_arg): New args.
16196 (set_fontset_font): Change argument.
16197 (Fset_fontset_font): Fix for the case that TARGET is a script
16198 name and charset name.
16199 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
16200
16201 2008-02-01 Kenichi Handa <handa@m17n.org>
16202
16203 * fontset.c (fontset_font): Rename from fontset_face. Change return
16204 value.
16205 (face_suitable_for_char_p, face_for_char): Adjust for the change
16206 of fontset_font.
16207 (make_fontset_for_ascii_face): Fix setting of the fontset element
16208 for ASCII.
16209 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
16210 to get a font name.
16211 (Ffontset_info): Adjust for the change of fontset_font.
16212
16213 * coding.c (emacs_mule_char): Check invalid code more rigidly.
16214
16215 * character.h (LEADING_CODE_LATIN_1_MIN)
16216 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
16217
16218 2008-02-01 Kenichi Handa <handa@m17n.org>
16219
16220 * editfns.c (check_translation): New function.
16221 (Ftranslate_region_internal): Handle M:N mapping.
16222
16223 2008-02-01 Kenichi Handa <handa@m17n.org>
16224
16225 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
16226
16227 2008-02-01 Kenichi Handa <handa@m17n.org>
16228
16229 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
16230 goto invalid_code.
16231 (decode_coding_iso_2022): Fix handling of invalid designation.
16232
16233 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
16234 after calling code_conversion_save.
16235
16236 2008-02-01 Kenichi Handa <handa@m17n.org>
16237
16238 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
16239
16240 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
16241
16242 * fontset.c: Include "intervals.h".
16243 (fontset_face): Fix comparing of Lisp_Objects.
16244 (free_face_fontset, new_fontset_from_font_name): Fix
16245 Lisp_Object/int mixup.
16246
16247 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
16248
16249 * coding.c: Add many prototypes for static functions.
16250 (get_translation_table): Allow max_lookup to be NULL.
16251 (decode_coding, Ffind_coding_systems_region_internal)
16252 (Funencodable_char_position, Fcheck_coding_systems_region): Call
16253 get_translation_table with max_lookup NULL.
16254
16255 2008-02-01 Kenichi Handa <handa@m17n.org>
16256
16257 * coding.c (get_translation_table): Declare it as Lisp_Object.
16258 (LOOKUP_TRANSLATION_TABLE): New macro.
16259 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
16260 instead of CHAR_TABLE_REF.
16261
16262 2008-02-01 Kenichi Handa <handa@m17n.org>
16263
16264 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
16265 annotation data format.
16266 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
16267 Change arguments FROM and TO to single argument NCHARS. Change caller.
16268 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
16269 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16270 (decode_coding_ccl, decode_coding_charset): Pay attention to
16271 coding->charbuf_used.
16272 (get_translation): New function.
16273 (produce_chars): New arguments translation_table and last_block.
16274 Translate characters here. Return number of carryover chars.
16275 Change caller.
16276 (produce_composition): New argument pos. Change caller.
16277 Adjust for the change of annotation data format.
16278 (produce_charset, produce_annotation): Likewise.
16279 (decode_coding, encode_coding): Don't call translate_chars.
16280 (consume_chars): New arg translation_table. Change caller.
16281 (translate_chars): Delete.
16282 (syms_of_coding): Make translation-table's number of extra slots 2.
16283
16284 2008-02-01 Kenichi Handa <handa@m17n.org>
16285
16286 * search.c (simple_search): Fix setting this_pos_byte in backward
16287 search.
16288
16289 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
16290 byte sequence.
16291 (detect_coding_ccl): Fix setting of the variable valids.
16292
16293 2008-02-01 Kenichi Handa <handa@m17n.org>
16294
16295 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
16296
16297 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
16298
16299 * editfns.c (Ftranslate_region_internal): Rename from
16300 Ftranslate_region. Accept a char-table in TABLE.
16301 (syms_of_editfns): Defsubr Stranslate_region_internal.
16302
16303 * xfaces.c (set_lface_from_font_name): If a font is specified for
16304 a frame, generate a fontset from the font.
16305 (build_scalable_font_name): If the scalable font is requested for
16306 a specific size, don't change that size.
16307 (try_font_list): Try a scalable font also in the case that a
16308 pattern string is specified.
16309
16310 2008-02-01 Kenichi Handa <handa@m17n.org>
16311
16312 * xfaces.c (Fface_font): New optional arg CHARACTER.
16313
16314 2008-02-01 Kenichi Handa <handa@m17n.org>
16315
16316 * charset.h (CHARSET_OFFSET): New macro.
16317
16318 2008-02-01 Kenichi Handa <handa@m17n.org>
16319
16320 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
16321
16322 * fontset.c (fontset_face): Handle the case that repertory is a
16323 char-table.
16324 (find_font_encoding): Return nil for unknown encoding.
16325 (Fset_fontset_font): Ignore a font of unknown encoding.
16326
16327 2008-02-01 Kenichi Handa <handa@m17n.org>
16328
16329 * keymap.c (describe_vector): Handle default value of a char table.
16330
16331 * fontset.c (fontset_face): Handle fallback fonts correctly.
16332 (Ffontset_info): Return infomation about fallback fonts.
16333
16334 2008-02-01 Kenichi Handa <handa@m17n.org>
16335
16336 * fontset.c (FONTSET_DEFAULT): New macro.
16337 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16338 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16339 the case that it is nil.
16340 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16341 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16342
16343 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16344 subset or superset.
16345
16346 2008-02-01 Kenichi Handa <handa@m17n.org>
16347
16348 * emacs.c (main): Call init_charset after syms_of_XXX.
16349
16350 * charset.c (Vcharset_map_directory): Delete.
16351 (Vcharset_map_path): New variable.
16352 (load_charset_map_from_file): Use Vcharset_map_path instead.
16353 (init_charset): Initialize Vcharset_map_path.
16354 (syms_of_charset): Delete declaration of "charset-map-directory",
16355 add declaration of "charset-map-path".
16356
16357 2008-02-01 Kenichi Handa <handa@m17n.org>
16358
16359 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16360 ASCII only string.
16361
16362 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16363
16364 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16365 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16366
16367 2008-02-01 Kenichi Handa <handa@m17n.org>
16368
16369 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16370
16371 * coding.c (QCmnemonic, QCdefalut_char)
16372 (QCdecode_translation_table, QCencode_translation_table)
16373 (QCpost_read_conversion, QCpre_write_conversion): New variables.
16374 (get_translation_table): Return a list of translation tables if
16375 necessary.
16376 (decode_coding): Call get_translation_table with ENCODEP 0.
16377 (char_encodable_p): If translation_table is non-nil, always call
16378 translate_char.
16379 (Fdefine_coding_system_internal): Accept list of translation
16380 tables as :encode-translation-table and :decode-translation-table.
16381 (Fcoding_system_put): New function.
16382 (syms_of_coding): Declare new symbols. Defsubr
16383 Scoding_system_put.
16384 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16385 typically JISX0212.
16386
16387 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16388 when the charset is superset type.
16389
16390 * character.c (translate_char): Accept list of translation tables.
16391
16392 2008-02-01 Kenichi Handa <handa@m17n.org>
16393
16394 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16395 (CODING_ATTR_TRANS_TBL): New macro.
16396
16397 * coding.c (get_translation_table): New function.
16398 (translate_chars): Fix the bug of skipping annotation data.
16399 (decode_coding, encode_coding): Utilize get_translation_table.
16400 (char_encodable_p, Funencodable_char_position): Translate char if
16401 necessary.
16402 (Ffind_coding_systems_region_internal)
16403 (Fcheck_coding_systems_region): Setup translation table for encode
16404 in a coding system attribute vector in advance.
16405 (Fdefine_coding_system_internal): Allow a symbol as translation
16406 table. For shift-jis type coding system, allow 4th charset.
16407
16408 2008-02-01 Kenichi Handa <handa@m17n.org>
16409
16410 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16411
16412 * xdisp.c (get_next_display_element): Pass -1 as POS to
16413 FACE_FOR_CHAR if displaying a C-string.
16414
16415 2008-02-01 Kenichi Handa <handa@m17n.org>
16416
16417 * composite.c (get_composition_id): Handle xoff and yoff in a
16418 composition rule.
16419
16420 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16421 (struct composition): New member lbearing and rbearing.
16422
16423 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16424 (x_get_glyph_overhangs): Handle a composition glyph.
16425 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16426
16427 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16428 composition glyph.
16429
16430 2008-02-01 Kenichi Handa <handa@m17n.org>
16431
16432 * print.c: Include charset.h.
16433 (Vprint_charset_text_property): New variable.
16434 (Qdefault): Extern it.
16435 (PRINT_STRING_NON_CHARSET_FOUND)
16436 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16437 (print_check_string_result): New variable.
16438 (print_check_string_charset_prop): New function.
16439 (print_prune_charset_plist): New variable.
16440 (print_prune_string_charset): New function.
16441 (print_object): Call print_prune_string_charset if
16442 Vprint_charset_text_property is not t.
16443 (print_interval): Print nothing if interval->plist is nil.
16444 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16445 variable. Init and staticpro print_prune_charset_plist.
16446
16447 2008-02-01 Kenichi Handa <handa@m17n.org>
16448
16449 * fontset.c (new_fontset_from_font_name): Use the specified font
16450 for all characters in the new fontset.
16451
16452 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16453 OBJECT args.
16454
16455 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16456 OBJECT args for composition too.
16457
16458 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16459 OBJECT args.
16460
16461 2008-02-01 Kenichi Handa <handa@m17n.org>
16462
16463 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16464
16465 * fontset.c (reorder_font_vector): Adjust for the change of
16466 FONT_DEF format.
16467 (fontset_face): New arg id. Change caller.
16468 (face_for_char): New args pos and object.
16469 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16470 (fs_query_fontset): Check NAME by Fassoc too.
16471 (Fset_fontset_font): Allow non-XLFD font name.
16472 (Ffontset_info): Adjust for the change of FONT_DEF format.
16473
16474 * fontset.h (face_for_char): Adjust prototype.
16475
16476 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16477 (append_space, extend_face_to_end_of_line)
16478 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16479 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16480
16481 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16482 POS and OBJECT args.
16483
16484 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16485 POS and OBJECT args.
16486
16487 2008-02-01 Jason Rumney <jasonr@gnu.org>
16488
16489 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16490 of GlobalAlloc'ed memory.
16491
16492 2008-02-01 Kenichi Handa <handa@m17n.org>
16493
16494 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16495
16496 * charset.h (charset_table_used): Delete extern.
16497
16498 * charset.c (charset_table_used): Make it static.
16499 (map_charset_chars): Fix args to c_function with.
16500
16501 * chartab.c (map_sub_char_table_for_charset): Fix args to
16502 c_function with.
16503
16504 * coding.h (enum coding_result_code): Delete
16505 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16506
16507 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16508 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16509 (Vlast_code_conversion_error): New variables.
16510 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16511 (ONE_MORE_BYTE): Record error if any instead of signaling an
16512 error. If non-ASCII multibyte char is found, return the negative
16513 value of the code. All callers changed to check it.
16514 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16515 (record_conversion_result): New function. Change all codes setting
16516 coding->result to call this function.
16517 (detect_coding_utf_8, decode_coding_utf_8)
16518 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16519 Don't use the local variable incomplete.
16520 (emacs_mule_char): Change the second arg to `const'.
16521 (decode_coding): Fix of flushing out unprocessed data.
16522 (make_conversion_work_buffer): Fix making of a work buffer.
16523 (decode_coding_object): Return coding->dst_object.
16524
16525 * fontset.c (set_fontset_font): Fix args.
16526
16527 * lisp.h (CHARACTERBITS): Define as 22.
16528
16529 * process.c (send_process): Be sure to set coding->src_multibyte.
16530
16531 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16532
16533 2008-02-01 Kenichi Handa <handa@m17n.org>
16534
16535 * xdisp.c (handle_auto_composed_prop): Give limit to
16536 Fnext_single_char_property_change.
16537
16538 2008-02-01 Kenichi Handa <handa@m17n.org>
16539
16540 * composite.c (syms_of_composite): Don't make the composition hash
16541 table weak.
16542
16543 * fontset.c (Fset_fontset_font): Fix docstring.
16544
16545 * lisp.h (detect_coding_system): Adjust prototype.
16546
16547 * fileio.c (kill_workbuf_unwind): Delete this function.
16548 (Finsert_file_contents): Adjust the call of detect_coding_system.
16549 Get conversion_buffer by code_conversion_save. Use the macro
16550 CODING_MAY_REQUIRE_DECODING. After decoding, update
16551 coding_system.
16552
16553 * coding.h (make_conversion_work_buffer): Delete extern.
16554 (code_conversion_save): Extern it.
16555
16556 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16557 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16558 (decode_coding_utf_8): Don't do eol converion.
16559 (detect_coding_utf_16): Check coding->src_chars, not
16560 coding->src_bytes. Add heuristics for those that have no signature.
16561 (decode_coding_emacs_mule, decode_coding_iso_2022)
16562 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16563 Don't do eol converion.
16564 (adjust_coding_eol_type): Return a new coding system.
16565 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16566 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16567 each change.
16568 (decode_coding): Pay attention to undo_list. Do eol conversion for
16569 all types of coding-systems (if necessary).
16570 (Vcode_conversion_work_buf_list): Delete it.
16571 (Vcode_conversion_reused_workbuf): Rename from
16572 Vcode_conversion_reused_work_buf.
16573 (Vcode_conversion_workbuf_name): New variable.
16574 (reused_workbuf_in_use): New variable.
16575 (make_conversion_work_buffer): Delete the arg DEPTH.
16576 (code_conversion_restore): Change argument to cons.
16577 (code_conversion_save): Delete the argument BUFFER. Change callers.
16578 (detect_coding_system): New argument src_chars. Change callers.
16579 Fix for utf-16 detection.
16580 (init_coding_once): Don't use ISO_carriage_return.
16581 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16582 reused_workbuf_in_use.
16583
16584 2008-02-01 Kenichi Handa <handa@m17n.org>
16585
16586 * keymap.c (store_in_keymap): Pay attention to the case that idx
16587 is a cons specifying a character range.
16588
16589 2008-02-01 Kenichi Handa <handa@m17n.org>
16590
16591 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16592 HANDLED_RECOMPUTE_PROPS.
16593
16594 * coding.c (Fdefine_coding_system_internal): Fix checking of
16595 ascii compatibility.
16596
16597 2008-02-01 Kenichi Handa <handa@m17n.org>
16598
16599 * charset.c (find_charsets_in_text): Delete unused locale variable.
16600 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16601
16602 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16603 Resync charset_list to Vemacs_mule_charset_list.
16604
16605 * keymap.c (store_in_keymap): Pay attention to the case that idx
16606 is a cons specifying a character range.
16607
16608 2008-02-01 Kenichi Handa <handa@m17n.org>
16609
16610 * composite.c (update_compositions): Bind inhibit-read-only, etc
16611 to t before calling remove-list-of-text-properties.
16612
16613 * print.c (print_object): Always print ASCII chars as is.
16614
16615 2008-02-01 Kenichi Handa <handa@m17n.org>
16616
16617 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16618
16619 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16620 is a char table.
16621
16622 2008-02-01 Kenichi Handa <handa@m17n.org>
16623
16624 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16625
16626 2008-02-01 Kenichi Handa <handa@m17n.org>
16627
16628 * xfaces.c (set_lface_from_font_name): Fix for the case that
16629 FONTNAME is not fontset name.
16630
16631 2008-02-01 Kenichi Handa <handa@m17n.org>
16632
16633 * fns.c (base64_encode_1): Fix previous change.
16634
16635 2008-02-01 Kenichi Handa <handa@m17n.org>
16636
16637 * fontset.c (set_fontset_font): New function.
16638 (Fset_fontset_font): If a font is specified for a charset, use
16639 map_charset_chars to store the font spec in a fontset.
16640
16641 2008-02-01 Kenichi Handa <handa@m17n.org>
16642
16643 * fontset.c (fontset_face): Create a fallback fontset on demand.
16644 (make_fontset): Don't create a fallback fontset here.
16645 (free_face_fontset): Free a fallback fontset (if any) too.
16646 (n_auto_fontsets): Delete this variable.
16647 (auto_fontset_alist): New variable.
16648 (new_fontset_from_font_name): Check auto_fontset_alist.
16649 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16650 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16651 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16652 Defsubr Sfontset_list_all.
16653
16654 2008-02-01 Kenichi Handa <handa@m17n.org>
16655
16656 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16657
16658 2008-02-01 Kenichi Handa <handa@m17n.org>
16659
16660 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16661
16662 2008-02-01 Kenichi Handa <handa@m17n.org>
16663
16664 * editfns.c (Fgoto_char): Fix docstring.
16665
16666 2008-02-01 Kenichi Handa <handa@m17n.org>
16667
16668 * insdel.c (insert_from_gap): Adjust intervals correctly.
16669
16670 2008-02-01 Jason Rumney <jasonr@gnu.org>
16671
16672 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16673 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16674 (w32_initialize): Try to load it.
16675 (x_get_font_repertory): Use it if available.
16676 (w32_encode_char): Add shortcut for unicode output.
16677
16678 * w32fns.c (w32_load_system_font): Default charset to -1.
16679 (x_to_w32_charset): Match all fonts for unicode.
16680 (w32_to_x_charset): New parameter matching. Don't return partial
16681 or wildcard charsets.
16682 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16683 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16684 (w32_to_x_font): Match charset to real charset.
16685 (enum_font_cb2): Always list unicode versions.
16686
16687 * makefile.w32-in (temacs): Increase EMHEAP.
16688
16689 2008-02-01 Jason Rumney <jasonr@gnu.org>
16690
16691 * w32term.c (w32_encode_char): New charset parameter.
16692 font_info.encoding becomes encoding_type.
16693 (x_get_font_repertory): New function. Warning: stub only!
16694 (x_new_font): Return quickly if font already set.
16695 (x_new_fontset): fontsetname parameter is Lisp_Object.
16696 Use new fs_query_fontset. Try new_fontset_from_font_name.
16697 Use fontset_name for return value.
16698
16699 * w32term.h: Declare x_get_font_repertory.
16700
16701 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16702 place of find_charset_in_text. Use encode_coding_object in place
16703 of encode_coding.
16704 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16705 decode_coding.
16706
16707 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16708 of x_new_fontset.
16709 (w32_load_system_font): Initialize charset as unicode.
16710 font_info.encoding becomes encoding_type.
16711 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16712 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16713 (syms_of_w32fns): Set get_font_repertory_func.
16714
16715 * w32console.c: Include character.h. Use terminal_encode_buffer
16716 from term.c.
16717 (write_glyphs): Use new version of encode_terminal_code. Use
16718 encode_coding_object in place of encode_coding.
16719
16720 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16721 encoding becomes encoding_type.
16722
16723 * term.c (terminal_encode_buffer): Make externally visible.
16724
16725 * makefile.w32-in: Add character.h dependancies.
16726 (character.o, chartab.o): New targets.
16727
16728 2008-02-01 Kenichi Handa <handa@m17n.org>
16729
16730 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16731 CODING_ID_EOL_TYPE.
16732
16733 2008-02-01 Andreas Schwab <schwab@suse.de>
16734
16735 * coding.c (produce_chars): Revert last change.
16736
16737 2008-02-01 Kenichi Handa <handa@m17n.org>
16738
16739 * charset.h (charset_unicode): Extern it.
16740
16741 * charset.c (string_xstring_p): Check by (C >= 0x100).
16742 (find_charsets_in_text): Change format of the arc CHARSETS. New
16743 arg MULTIBYTE.
16744 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16745 change of find_charsets_in_text.
16746 (Fsplit_char): Fix doc. Never return unknown.
16747
16748 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16749
16750 * coding.c (Fdefine_coding_system_alias): Update
16751 Vcoding_system_list.
16752
16753 * fontset.c (load_font_get_repertory): Pay attention to the case
16754 that ENCODING of a font is specified by a char-table.
16755
16756 * xterm.c (x_get_font_repertory): Handle the case that the
16757 encoding of font is other than Unicode.
16758
16759 2008-02-01 Kenichi Handa <handa@m17n.org>
16760
16761 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16762 if a character is encodable by the terminal coding system. If
16763 not, produces proper number of `?'s. Update
16764 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16765 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16766
16767 2008-02-01 Kenichi Handa <handa@m17n.org>
16768
16769 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16770 variables.
16771 (encode_terminal_code): Change argument. Encode multiple
16772 characters at once. Store the result of encoding in
16773 terminal_encode_buffer.
16774 (write_glyphs, insert_glyphs): Adjust for the change of
16775 encode_terminal_code.
16776 (term_init): Initialize terminal_encode_buffer and
16777 terminal_encode_buf_size.
16778
16779 * coding.c (consume_chars): If coding->src_object is nil, don't
16780 check annotation.
16781
16782 2008-02-01 Kenichi Handa <handa@m17n.org>
16783
16784 * character.c (char_string): Use ASCII_CHAR_P instead of
16785 SINGLE_BYTE_CHAR_P.
16786
16787 2008-02-01 Kenichi Handa <handa@m17n.org>
16788
16789 * xdisp.c (handle_auto_composed_prop): Check if the last
16790 characters of auto-composed region is newly composed with the
16791 following characters.
16792 (handle_composition_prop): Fix checking of point being inside
16793 composition.
16794
16795 2008-02-01 Kenichi Handa <handa@m17n.org>
16796
16797 * fns.c (concat): Don't change multibyteness of the result by
16798 concatenating an 8-bit character.
16799
16800 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16801 multibyteness of the result when newelt is an 8-bit character.
16802
16803 2008-02-01 Dave Love <fx@gnu.org>
16804
16805 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16806 EMACS_INT.
16807
16808 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16809
16810 * xfaces.c (face_numeric_value): Declare dim size_t.
16811 (Finternal_lisp_face_equal_p): Remove unused f.
16812
16813 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16814 (MATRIX_ROW): Remove unused vars.
16815 (draw_glyphs, x_insert_glyphs, fast_find_position)
16816 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16817 byte/char counts.
16818
16819 * regex.c (regex_compile): Remove unused var.
16820
16821 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16822
16823 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16824 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16825
16826 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16827
16828 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16829
16830 * fileio.c (Fwrite_region): Remove unused var.
16831
16832 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16833 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16834
16835 * composite.c (Fremove_list_of_text_properties): Declare.
16836
16837 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16838 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16839 (coding_inherit_eol_type): Remove unused attrs.
16840 (detect_coding): Cast arg of detect_eol.
16841
16842 * charset.c (syms_of_charset): Remove unused var p.
16843 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16844 byte/char counts.
16845
16846 * casetab.c (set_case_table): Remove unused var.
16847
16848 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16849 unused vars.
16850
16851 2008-02-01 Dave Love <fx@gnu.org>
16852
16853 * xterm.c (x_bitmap_mask): Declare.
16854
16855 2008-02-01 Dave Love <fx@gnu.org>
16856
16857 * xterm.c (x_term_init): Fix type error.
16858
16859 * lisp.h: Add Funibyte_char_to_multibyte.
16860
16861 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16862 (Fset_coding_system_priority): Doc fix.
16863
16864 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16865
16866 * indent.c (check_composition): Make start and end EMACS_INT.
16867
16868 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16869
16870 * xdisp.c (handle_composition_prop, check_point_in_composition):
16871 Make buffer positions EMACS_INT.
16872
16873 * composite.c (find_composition, run_composition_function)
16874 (update_compositions, Ffind_composition_internal): Make buffer
16875 positions EMACS_INT.
16876
16877 * composite.h (find_composition, update_compositions): Make
16878 position args EMACS_INT.
16879
16880 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16881
16882 * intervals.c (get_property_and_range):
16883 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16884
16885 * unexalpha.c: Don't include varargs.h.
16886
16887 2008-02-01 Dave Love <fx@gnu.org>
16888
16889 * coding.h (ENCODE_UTF_8): New.
16890
16891 * Makefile.in (gtkutil.o): Depend on coding.h.
16892
16893 * coding.c (Fset_coding_system_priority): Doc fix.
16894
16895 2008-02-01 Kenichi Handa <handa@m17n.org>
16896
16897 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16898 the case of auto saving.
16899
16900 2008-02-01 Andreas Schwab <schwab@suse.de>
16901
16902 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16903 `range' from GC.
16904
16905 2008-02-01 Kenichi Handa <handa@m17n.org>
16906
16907 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16908
16909 2008-02-01 Kenichi Handa <handa@m17n.org>
16910
16911 * fileio.c (choose_write_coding_system): Return a decided coding system.
16912 (Fwrite_region): Set Vlast_coding_system_used to the return value
16913 of choose_write_coding_system.
16914
16915 2008-02-01 Kenichi Handa <handa@m17n.org>
16916
16917 * charset.c (Fset_charset_priority): Pay attention to duplicated
16918 arguments.
16919
16920 * coding.c (QCcategory): New variable.
16921 (syms_of_coding): Defsym it. Set all elements of
16922 Vcoding_category_table and their symbol values.
16923 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16924 coding-category-XXX, and coding-category-list.
16925 (Fdefine_coding_system_internal): Add category in the plist.
16926
16927 2008-02-01 Kenichi Handa <handa@m17n.org>
16928
16929 * callproc.c (Fcall_process): Handle carryover correctly.
16930
16931 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16932 (raw_text_coding_system): Check NILP (coding_system).
16933 (coding_inherit_eol_type): Check NILP (coding_system) and
16934 NILP (parent).
16935 (consume_chars): Fix for the case of raw-text.
16936
16937 * process.c (read_process_output): Handle carryover correctly.
16938
16939 2008-02-01 Dave Love <fx@gnu.org>
16940
16941 * regex.c (re_search_2): Fix last change.
16942
16943 2008-02-01 Kenichi Handa <handa@m17n.org>
16944
16945 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16946 target_multibyte. Even in a unibyte case, return a converted
16947 multibyte char.
16948 (GET_CHAR_AFTER): New macro.
16949 (PATFETCH): Translate via multibyte char.
16950 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16951 (SETUP_MULTIBYTE_RANGE): New macro.
16952 (regex_compile): Setup compiled code so that its multibyteness
16953 matches that of a target. Fix the handling of "[X-YZ]" using
16954 SETUP_MULTIBYTE_RANGE.
16955 (analyse_first) <charset>: For filling fastmap for all multibyte
16956 characters, don't check by BASE_LEADING_CODE_P.
16957 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16958 the same as RE_MULTIBYTE_P (bufp) now.
16959 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16960 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16961 (TRANSLATE_VIA_MULTIBYTE): New macro.
16962 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16963 It is the same as RE_MULTIBYTE_P (bufp) now.
16964 <exactn>: Translate via multibyte.
16965 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16966 translate it.
16967 <charset, charset_not>: Fetch a character by
16968 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16969 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16970 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16971 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16972 by GET_CHAR_AFTER.
16973 (bcmp_translate): Likewise.
16974
16975 * search.c (compile_pattern): Check the member target_multibyte,
16976 not the member multibyte of buf.
16977
16978 * lread.c (read1): While reading a string, set force_singlebyte
16979 and force_multibyte correctly.
16980
16981 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16982 up of unibyte_to_multibyte_table.
16983
16984 2008-02-01 Kenichi Handa <handa@m17n.org>
16985
16986 * coding.c (setup_coding_system): If coding has
16987 post-read-conversion or pre-write-conversion, set
16988 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16989 respectively.
16990 (decode_coding_gap): Run post-read-conversion if any.
16991
16992 * fileio.c (Finsert_file_contents): Even if we read into a
16993 unibyte buffer, check if we must decode the result or not.
16994
16995 2008-02-01 Kenichi Handa <handa@m17n.org>
16996
16997 * coding.c (make_conversion_work_buffer): Change the work buffer
16998 name to the same one as that of Emacs 21.
16999
17000 2008-02-01 Kenichi Handa <handa@m17n.org>
17001
17002 * coding.h (make_conversion_work_buffer): Adjust prototype.
17003 (code_conversion_restore): Don't extern it.
17004
17005 * coding.c (detected_mask): Delete unused variable.
17006 (decode_coding_iso_2022): Pay attention to the byte sequence of
17007 CTEXT extended segment, and retain those bytes as is.
17008 (decode_coding_ccl): Delete unused variable `valids'.
17009 (setup_coding_system): Delete unused variable `category'.
17010 (consume_chars): Delete unused variable `category'. Make it work
17011 for non-multibyte case.
17012 (make_conversion_work_buffer): Change argument.
17013 (saved_coding): Delete unused variable.
17014 (code_conversion_restore): Don't check saved_coding->destination.
17015 (code_conversion_save): New function.
17016 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
17017 instead of record_unwind_protect.
17018 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
17019 (detect_coding_system): Delete unused variable `mask'.
17020 (Fdefine_coding_system_internal): Delete unused variable id.
17021
17022 * fileio.c (kill_workbuf_unwind): New function.
17023 (Finsert_file_contents): On replacing, call
17024 make_conversion_work_buffer with correct args, and call
17025 record_unwind_protect with the first arg kill_workbuf_unwind.
17026
17027 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
17028
17029 2008-02-01 Kenichi Handa <handa@m17n.org>
17030
17031 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
17032 (fontset_add): Fix for the case that TO is less than TO1.
17033 (Ffontset_info): Don't use fallback fontset on checking the
17034 default fontset.
17035 (dump_fontset): New function for debugging.
17036
17037 * coding.c (Fdefine_coding_system_internal): Fix for the case that
17038 coding_type is Qcharset.
17039
17040 2008-02-01 Kenichi Handa <handa@m17n.org>
17041
17042 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
17043 (map_char_table): Don't inherit the value from the parent on
17044 initializing VAL. Adjust for the above change.
17045
17046 2008-02-01 Kenichi Handa <handa@m17n.org>
17047
17048 * coding.c (Qsignature, Qendian): Delete these variables.
17049 (syms_of_coding): Don't initialize them.
17050 (CATEGORY_MASK_UTF_16_AUTO): New macro.
17051 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
17052 detect_info->found.
17053 (decode_coding_utf_16): Don't detect BOM here.
17054 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
17055 is NOT utf_16_without_bom.
17056 (setup_coding_system): For a coding system of type utf-16, check
17057 if the attribute :endian is Qbig or not (not nil or not), and set
17058 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
17059 (detect_coding): If coding type is utf-16 and BOM detection is
17060 required, detect it.
17061 (Fdefine_coding_system_internal): For a coding system of type
17062 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
17063
17064 2008-02-01 Kenichi Handa <handa@m17n.org>
17065
17066 * coding.c (coding_set_source): Fix for the case that the current
17067 buffer is different from coding->src_object.
17068 (decode_coding_object): Don't use the conversion work buffer if
17069 DST_OBJECT is a buffer.
17070
17071 2008-02-01 Dave Love <fx@gnu.org>
17072
17073 * lread.c (read_emacs_mule_char) [len==2]: Index
17074 emacs_mule_charset correctly.
17075
17076 2008-02-01 Dave Love <fx@gnu.org>
17077
17078 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
17079 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
17080 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
17081 treated specially.)
17082 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
17083 (detected_mask): Remove Big5 bits.
17084
17085 2008-02-01 Kenichi Handa <handa@m17n.org>
17086
17087 The following changes are to make the font rescaling facility
17088 compatible with Emacs 21.
17089
17090 * xfaces.c (Vface_font_rescale_alist): Rename from
17091 Vface_resizing_fonts.
17092 (struct font_name): Rename member resizing_ratio to rescale_ratio.
17093 (font_rescale_ratio): Rename from font_resizing_ratio.
17094 (split_font_name): Set font->rescale_ratio.
17095 (better_font_p): Pay attention to font->rescale_ratio.
17096 (build_scalable_font_name): Likewise. Change RESX, and RESY
17097 fields.
17098 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
17099
17100 2008-02-01 Kenichi Handa <handa@m17n.org>
17101
17102 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
17103 (Qutf_16_le): Remove these variables.
17104 (syms_of_coding): Don't DEFSYM them.
17105 (decode_coding_utf_16): Fix handling of BOM.
17106 (encode_coding_utf_16): Fix handling of BOM.
17107
17108 2008-02-01 Kenichi Handa <handa@m17n.org>
17109
17110 * fileio.c (Finsert_file_contents): On replacing, before decoding
17111 the file into the work buffer, set point of the work buffer to the end.
17112
17113 2008-02-01 Dave Love <fx@gnu.org>
17114
17115 * coding.c (Fcheck_coding_systems_region): Fix type errors.
17116
17117 2008-02-01 Dave Love <fx@gnu.org>
17118
17119 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17120 and fix C types.
17121
17122 2008-02-01 Kenichi Handa <handa@m17n.org>
17123
17124 * xdisp.c (SKIP_GLYPHS): New macro.
17125 (set_cursor_from_row): Pay attention to string display properties.
17126
17127 * category.c (copy_category_entry): Fix for the case that RANGE
17128 is an integer.
17129
17130 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
17131
17132 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
17133
17134 2008-02-01 Kenichi Handa <handa@m17n.org>
17135
17136 * charset.c (Fcharset_id_internal): New function.
17137 (syms_of_charset): Defsubr it.
17138
17139 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
17140 with the last arg charset_list acquired from coding.
17141 (Fdefine_coding_system_internal): For ccl-based coding system, fix
17142 the attribute coding_attr_ccl_valids.
17143
17144 * coding.h (enum define_coding_ccl_arg_index): Set the first
17145 member coding_arg_ccl_decoder to coding_arg_max.
17146
17147 * ccl.h (ccl_driver): Adjust prototype.
17148
17149 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
17150 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
17151 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
17152 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
17153 last arg Qnil.
17154
17155 2008-02-01 Kenichi Handa <handa@m17n.org>
17156
17157 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
17158 call encode_char.
17159
17160 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
17161
17162 2008-02-01 Dave Love <fx@gnu.org>
17163
17164 * composite.c (syms_of_composite): Make composition_hash_table weak.
17165
17166 2008-02-01 Kenichi Handa <handa@m17n.org>
17167
17168 * dispextern.h (check_face_attributes, generate_ascii_font_name)
17169 (font_name_registry): Don't extern them.
17170 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
17171
17172 * fontset.h (Qfontset): Don't extern it.
17173 (new_fontset_from_font_name): Extern it.
17174
17175 * fontset.c: Give 8 extra slots to fontset objects.
17176 (Qfontset_info): New variable.
17177 (syms_of_fontset): Defsym it.
17178 (FONTSET_FALLBACK): New macro.
17179 (fontset_face): Try also the default fontset.
17180 (make_fontset): Realize a fallback fontset from the default fontset.
17181 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
17182 using split_font_name_into_vector and build_font_name_from_vector.
17183 (Fset_fontset_font): Access the elements of font_spec by enum
17184 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
17185 name by using split_font_name_into_vector.
17186 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
17187 generate a proper font name from the fontset name. Update
17188 Vfontset_alias_alist.
17189 (n_auto_fontsets): New variable.
17190 (new_fontset_from_font_name): New function.
17191 (Ffont_info): Store the information about fonts generated from the
17192 default fontset in the first extra slot of the returned char-table.
17193
17194 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
17195 (font_name_registry): Delete function.
17196 (split_font_name_into_vector): New function.
17197 (build_font_name_from_vector): New function.
17198 (font_list): The argument REGISTRY is now a list of registry names.
17199 (choose_face_font): If we are choosing an ASCII font, and ATTRS
17200 specifies an explicit font name, return the name as is. Make a
17201 list of registy names.
17202
17203 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
17204 of x_new_fontset.
17205 (Fx_create_frame): Don't call x_new_fontset here. Just use
17206 x_list_fonts to check the existence of fonts.
17207
17208 * xterm.h (x_new_fontset): Adjust prototype.
17209
17210 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
17211 string. Use new_fontset_from_font_name to create a fontset from a
17212 font name.
17213
17214 2008-02-01 Kenichi Handa <handa@m17n.org>
17215
17216 * syntax.c (Vfind_word_boundary_function_table): New name for
17217 Vnext_word_boundary_function_table.
17218 (find-word-boundary-function-table): New name for
17219 next-word-boundary-function-table.
17220
17221 2008-02-01 Dave Love <fx@gnu.org>
17222
17223 * Makefile.in: Fix some dependencies.
17224
17225 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
17226 set it to nil before returning.
17227
17228 * composite.c (update_compositions): Fix type error.
17229
17230 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
17231
17232 2008-02-01 Kenichi Handa <handa@m17n.org>
17233
17234 * xterm.c (x_new_font): Optimize for the case that the font is
17235 already set for the frame.
17236
17237 2008-02-01 Kenichi Handa <handa@m17n.org>
17238
17239 * chartab.c (char_table_ascii): Check if the char table contents
17240 is sub-char-table or not.
17241 (char_table_set, char_table_set_range): Fix argument to
17242 char_table_ascii.
17243
17244 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
17245 (detect_coding_utf_8, detect_coding_utf_16)
17246 (detect_coding_emacs_mule, detect_coding_iso_2022)
17247 (detect_coding_sjis, detect_coding_big5)
17248 (detect_coding_ccl, detect_coding_charset): Change argument MASK
17249 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
17250 sequence is valid in this coding system. Change callers.
17251 (MAX_ANNOTATION_LENGTH): New macro.
17252 (ADD_ANNOTATION_DATA): New macro.
17253 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
17254 ADD_ANNOTATION_DATA. Change the format of annotation data.
17255 (ADD_CHARSET_DATA): New macro.
17256 (emacs_mule_char): New argument ID. Change callers.
17257 (decode_coding_emacs_mule, decode_coding_iso_2022)
17258 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17259 Produce charset annotation data in coding->charbuf.
17260 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
17261 to charset annotation data in coding->charbuf.
17262 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
17263 coding->common_flags if the coding system is iso-2022 based and
17264 uses designation.
17265 (produce_composition): Adjust for the new annotation data format.
17266 (produce_charset): New function.
17267 (produce_annotation): Handle charset annotation.
17268 (handle_composition_annotation, handle_charset_annotation): New
17269 functions.
17270 (consume_chars): Handle charset annotation. Utilize the above two
17271 functions.
17272 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
17273 buffer, get the deleted text as a string and set
17274 coding->src_object to that string.
17275 (detect_coding, detect_coding_system): Use the new struct
17276 coding_detection_info.
17277
17278 * coding.h (struct coding_detection_info): New structure.
17279 (struct coding_system): Adjust prototype of the member `detector'.
17280 (CODING_ANNOTATE_CHARSET_MASK): New macro.
17281
17282 2008-02-01 Kenichi Handa <handa@m17n.org>
17283
17284 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
17285
17286 2008-02-01 Dave Love <fx@gnu.org>
17287
17288 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
17289 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
17290 to new local and nullify apropos_accumulate before returning.
17291 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
17292
17293 2008-02-01 Kenichi Handa <handa@m17n.org>
17294
17295 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
17296 correctly.
17297
17298 2008-02-01 Dave Love <fx@gnu.org>
17299
17300 * fns.c (Flanginfo): Call synchronize_system_time_locale.
17301
17302 2008-02-01 Kenichi Handa <handa@m17n.org>
17303
17304 The following changes are to make character composition happen
17305 automatically on displaying.
17306
17307 * Makefile.in (lisp, shortlisp): Add composite.elc.
17308
17309 * composite.h (Qauto_composed, Vauto_composition_function)
17310 (Qauto_composition_function): Extern them.
17311
17312 * composite.c (Vcomposition_function_table)
17313 (Qcomposition_function_table): Delete variables.
17314 (Qauto_composed, Vauto_composition_function)
17315 (Qauto_composition_function): New variables.
17316 (run_composition_function): Don't call
17317 compose-chars-after-function.
17318 (update_compositions): Clear `auto-composed' text property.
17319 (compose_chars_in_text): Delete this function.
17320 (syms_of_composite): Staticpro Qauto_composed and
17321 Qauto_composition_function. Declare Vauto_composition_function as
17322 a Lisp variable.
17323
17324 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
17325
17326 * xdisp.c (it_props): Add an entry for Qauto_composed.
17327 (handle_auto_composed_prop): New function.
17328
17329 * xselect.c (selection_data_to_lisp_data): Don't call
17330 compose_chars_in_text.
17331
17332 2008-02-01 Dave Love <fx@gnu.org>
17333
17334 * keyboard.c (read_char): Modify checking around use of
17335 Vkeyboard_translate_table.
17336
17337 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17338 and fix C types.
17339
17340 2008-02-01 Kenichi Handa <handa@m17n.org>
17341
17342 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17343 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17344 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17345 the case that the last byte is '\r' correctly.
17346 (decode_coding): Flush out the unprocessed data correctly.
17347 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17348
17349 2008-02-01 Dave Love <fx@gnu.org>
17350
17351 * xterm.c (XTread_socket): Fix changes for defined keysyms.
17352 Add XK_ISO... case.
17353 (xaw_scroll_callback): Revert last change.
17354
17355 2008-02-01 Kenichi Handa <handa@m17n.org>
17356
17357 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17358
17359 2008-02-01 Kenichi Handa <handa@m17n.org>
17360
17361 * xfaces.c (Vface_resizing_fonts): New variable.
17362 (struct font_name): New member `resizing_ratio'.
17363 (font_resizing_ratio): New function.
17364 (split_font_name): Set font->resizing_ratio.
17365 (better_font_p): Pay attention to font->resizing_ratio.
17366 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
17367 RESX, and RESY fields.
17368 (try_alternative_families): Try scalable fonts if
17369 Vscalable_fonts_allowed is not Qt.
17370 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17371
17372 2008-02-01 Dave Love <fx@gnu.org>
17373
17374 * xterm.c (xaw_scroll_callback): Cast correctly.
17375
17376 2008-02-01 Dave Love <fx@gnu.org>
17377
17378 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
17379 (lispy_kana_keys): Comment out.
17380 (make_lispy_event) [XK_kana_A]: Comment out.
17381
17382 * xterm.c (xaw_scroll_callback): Cast call_data.
17383 (XTread_socket): Deal with ASCII keysyms.
17384 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17385
17386 2008-02-01 Dave Love <fx@gnu.org>
17387
17388 * xterm.c (Vx_keysym_table): New.
17389 (syms_of_xterm): Initialize it.
17390 (XTread_socket): Use it.
17391 From head: Eliminate incorrect optimization that tried to avoid
17392 decoding the output of X*LookupString.
17393 (x_get_font_repertory): Delete charset declaration.
17394
17395 2008-02-01 Kenichi Handa <handa@m17n.org>
17396
17397 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17398 return 0.
17399 (Fdefine_coding_system_internal): Setup
17400 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17401
17402 2008-02-01 Dave Love <fx@gnu.org>
17403
17404 * coding.c (Fcheck_coding_system): Doc fix.
17405
17406 * editfns.c (Finsert_byte): Return a proper value.
17407
17408 2008-02-01 Kenichi Handa <handa@m17n.org>
17409
17410 * coding.c (decode_coding): Fix args to translate_chars. Pay
17411 attention to Vstandard_translation_table_for_decode.
17412 (encode_coding): Fix args to translate_chars. Pay attention to
17413 Vstandard_translation_table_for_encode.
17414
17415 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17416 SINGLE_BYTE_CHAR_P.
17417
17418 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17419 not by SINGLE_BYTE_CHAR_P.
17420
17421 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17422 SINGLE_BYTE_CHAR_P.
17423
17424 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17425 SINGLE_BYTE_CHAR_P.
17426
17427 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17428 by SINGLE_BYTE_CHAR_P.
17429
17430 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17431 SINGLE_BYTE_CHAR_P.
17432
17433 2008-02-01 Dave Love <fx@gnu.org>
17434
17435 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17436
17437 2008-02-01 Dave Love <fx@gnu.org>
17438
17439 * fns.c (Flanginfo): Fix typo.
17440
17441 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17442
17443 2008-02-01 Kenichi Handa <handa@m17n.org>
17444
17445 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17446 (detect_coding_emacs_mule, detect_coding_iso_2022)
17447 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17448 incomplete byte sequence. Don't update *mask when correctly detected.
17449 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17450 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17451 (detect_coding, detect_coding_system): Adjust for the changes above.
17452
17453 2008-02-01 Kenichi Handa <handa@m17n.org>
17454
17455 * character.c (char_string): Rename from
17456 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17457 (string_char): Rename from string_char.
17458
17459 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17460 if C is greater than MAX_3_BYTE_CHAR.
17461 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17462 string_char instead of string_char_with_unification.
17463
17464 2008-02-01 Dave Love <fx@gnu.org>
17465
17466 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17467
17468 2008-02-01 Kenichi Handa <handa@m17n.org>
17469
17470 * keymap.c (push_key_description): Pay attention to force_multibyte.
17471
17472 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17473
17474 2008-02-01 Dave Love <fx@gnu.org>
17475
17476 * charset.c (define_charset_internal): Rename `supprementary'.
17477
17478 * Makefile.in (lisp, shortlisp): Remove latin-N.
17479
17480 2008-02-01 Dave Love <fx@gnu.org>
17481
17482 * xfns.c (x_window, x_window): Use use_xim.
17483
17484 * xterm.c (use_xim): Initialize.
17485 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17486 (x_term_init): Maybe set use_xim.
17487
17488 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17489
17490 2008-02-01 Kenichi Handa <handa@m17n.org>
17491
17492 * search.c (search_buffer): Fix case-fold-search of multibyte
17493 characters.
17494 (boyer_moore): Rename the last argument to char_high_bits.
17495
17496 2008-02-01 Kenichi Handa <handa@m17n.org>
17497
17498 * xdisp.c (display_string): Fix for the case of zero width glyph.
17499
17500 * xfns.c (x_set_font): Change the error message of the case that
17501 x_new_fontset returns Qt.
17502
17503 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17504 (Finternal_set_lisp_face_attribute): Use signal_error for the
17505 error of invalid fontset.
17506
17507 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17508 fontset, return Qt.
17509
17510 2008-02-01 Dave Love <fx@gnu.org>
17511
17512 * unexelf.c (unexec): Make .got handling not SGI-specific.
17513
17514 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17515
17516 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17517
17518 * keyboard.c (read_key_sequence): Fix type error.
17519
17520 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17521 type error.
17522
17523 * fontset.c (fontset_add): Return Lisp_Object.
17524
17525 2008-02-01 Dave Love <fx@gnu.org>
17526
17527 * charset.h (charset_ordered_list_tick): Declare extern.
17528
17529 2008-02-01 Kenichi Handa <handa@m17n.org>
17530
17531 The following changes (and some of 2008-02-01 changes of mine) are
17532 for handling syntax, category, and case conversion for unibyte
17533 characters by converting them to multibyte on the fly. With these
17534 changes, we don't have to setup syntax and case tables for unibyte
17535 characters in each language environment.
17536
17537 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17538 multibyte if necessary.
17539
17540 * bytecode.c (Fbyte_code): Likewise.
17541
17542 * character.h (LEADING_CODE_LATIN_1_MIN)
17543 (LEADING_CODE_LATIN_1_MAX): New macros.
17544 (unibyte_to_multibyte_table): Extern it.
17545 (unibyte_char_to_multibyte): New macro.
17546 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17547 (CHAR_LEADING_CODE): New macro.
17548 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17549
17550 * character.c (unibyte_to_multibyte_table): New variable.
17551 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17552 (multibyte_char_to_unibyte): If C is an eight-bit character,
17553 convert it to the corresponding byte value.
17554
17555 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17556 not 1, signals an error. Update the elements of
17557 unibyte_to_multibyte_table.
17558 (init_charset_once): Initialize unibyte_to_multibyte_table.
17559 (syms_of_charset): Define the charset `iso-8859-1'.
17560
17561 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17562 as is without converting it to unibyte. In a unibyte buffer,
17563 convert C to multibyte before checking the syntax.
17564
17565 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17566
17567 * minibuf.c (Fminibuffer_complete_word): Use the macro
17568 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17569
17570 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17571
17572 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17573 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17574 that is zero, convert an eight-bit char to multibyte.
17575 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17576 non-emacs case.
17577 (PATFETCH): Convert an eight-bit char to multibyte.
17578 (HANDLE_UNIBYTE_RANGE): New macro.
17579 (regex_compile): Setup the compiled pattern for multibyte chars
17580 even if the given regex string is unibyte. Use PATFETCH_RAW
17581 instead of PATFETCH in many places. To handle `charset'
17582 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17583 only for ASCII chars.
17584 (analyse_first) <exactn>: Simplify because the compiled pattern
17585 is multibyte.
17586 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17587 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17588 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17589 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17590 multibyte always 1.
17591 (re_search_2): In emacs, set the locale variable multibyte to 1,
17592 otherwise to 0. New local variable target_multibyte. Check it
17593 to decide the multibyteness of STR1 and STR2. If
17594 target_multibyte is zero, convert unibyte chars to multibyte
17595 before translating and checking fastmap.
17596 (TARGET_CHAR_AND_LENGTH): New macro.
17597 (re_match_2_internal): In emacs, set the locale variable multibyte
17598 to 1, otherwise to 0. New local variable target_multibyte. Check
17599 it to decide the multibyteness of STR1 and STR2. Use
17600 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17601 <charset, charset_not>: If multibyte is nonzero, check fastmap
17602 only for ASCII chars. Call bcmp_translate with
17603 target_multibyte, not with multibyte.
17604 <begline>: Declare the local variable C as `unsigned'.
17605 (bcmp_translate): Change the last arg name to target_multibyte.
17606
17607 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17608 the regexp pattern and the matching target. Set cp->buf.multibyte
17609 to the multibyteness of the regexp pattern. Set
17610 cp->but.target_multibyte to the multibyteness of the matching target.
17611 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17612 FETCH_STRING_CHAR_ADVANCE.
17613 (Freplace_match): Convert unibyte chars to multibyte.
17614
17615 * syntax.c (char_quoted, back_comment, scan_words)
17616 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17617 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17618 unibyte chars to multibyte.
17619 (skip_chars): Delete the arg syntaxp, and move the code for
17620 handling syntaxes to skip_syntaxes. Change callers.
17621 Fix the case that the multibyteness of STRING and the current
17622 buffer doesn't match.
17623 (skip_syntaxes): New function.
17624 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17625 SINGLE_BYTE_CHAR_P.
17626
17627 2008-02-01 Kenichi Handa <handa@m17n.org>
17628
17629 * xfaces.c (QCfontset): New variable.
17630 (LFACE_FONTSET): New macro.
17631 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17632 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17633 (Finternal_set_lisp_face_attribute)
17634 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17635 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17636 check also LFACE_FONTSET_INDEX.
17637 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17638 attrs[LFACE_FONT_INDEX].
17639 (syms_of_xfaces): Intern and staticpro QCfontset.
17640
17641 * dispextern.h (enum lface_attribute_index): New member
17642 LFACE_FONTSET_INDEX.
17643
17644 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17645
17646 2008-02-01 Kenichi Handa <handa@m17n.org>
17647
17648 * coding.c (coding_set_destination): Fix coding->destination for
17649 the case converting a region.
17650 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17651 (encode_coding_object): Fix coding->dst_pos and
17652 coding->dst_pos_byte for the case converting a region.
17653
17654 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17655
17656 * character.h (BYTE8_STRING): New macro.
17657
17658 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17659
17660 2008-02-01 Kenichi Handa <handa@m17n.org>
17661
17662 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17663 characters by octal form.
17664
17665 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17666
17667 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17668 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17669 _fetch_multibyte_char_len.
17670 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17671
17672 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17673
17674 * casefiddle.c (casify_object): Simplify. Handle the case that
17675 the case conversion change the byte length.
17676 (casify_region): Likewise.
17677
17678 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17679
17680 * character.c (_fetch_multibyte_char_len): Delete this variable.
17681 (syms_of_character): Setup Vprintable_chars.
17682
17683 * editfns.c (Fchar_equal): Fix for the unibyte case.
17684 (Finsert_byte): New function.
17685 (syms_of_editfns): Defsubr it.
17686
17687 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17688 of direct code 0x3ffff.
17689
17690 * search.c (Freplace_match): Fix for the unibyte case.
17691
17692 2008-02-01 Kenichi Handa <handa@m17n.org>
17693
17694 * lread.c (safe_to_load_p): Fix the logic.
17695
17696 * syntax.c (scan_words): Don't treat characters belonging to
17697 different scripts as constituting a word.
17698
17699 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17700
17701 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17702
17703 * emacs.c (main): In the case of --unibyte, instead of aborting on
17704 finding non-empty buffer, make it unibyte.
17705
17706 2008-02-01 Kenichi Handa <handa@m17n.org>
17707
17708 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17709 to create a fontset.
17710
17711 2008-02-01 Dave Love <fx@gnu.org>
17712
17713 * character.c (Funibyte_char_to_multibyte): Doc fix.
17714
17715 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17716
17717 2008-02-01 Kenichi Handa <handa@m17n.org>
17718
17719 * fontset.c (fontset_add): Make the type `int'.
17720 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17721
17722 * character.c (unibyte_char_to_multibyte)
17723 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17724 charset_unibyte, not charset_primary.
17725
17726 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17727
17728 * charset.c (charset_unibyte): Rename from charset_primary.
17729 (Funibyte_charset): Rename from Fprimary_charset.
17730 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17731 (syms_of_charset): Adjust for the above changes.
17732
17733 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17734 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17735 it->multibyte_p is zero.
17736
17737 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17738 Delete extern.
17739
17740 2008-02-01 Kenichi Handa <handa@m17n.org>
17741
17742 * coding.c (Fdefine_coding_system_internal): Fix category setting
17743 for a coding system of type iso-2022.
17744
17745 2008-02-01 Kenichi Handa <handa@m17n.org>
17746
17747 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17748
17749 2008-02-01 Kenichi Handa <handa@m17n.org>
17750
17751 * syntax.c (Vnext_word_boundary_function_table): New variable.
17752 (next-word-boundary-function-table): Declare it as a Lisp variable
17753 in syms_of_syntax.
17754 (scan_words): Call functions in Vnext_word_boundary_function_table
17755 if any.
17756
17757 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17758
17759 * fontset.c (fs_load_font): If fontp->charset is not negative,
17760 return fontp without setting its members.
17761
17762 2008-02-01 Dave Love <fx@gnu.org>
17763
17764 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17765
17766 * m/sparc.h (HAVE_ALLOCA): Delete.
17767
17768 * s/irix6-5.h: Don't include strings.h.
17769 (bcopy, bzero, bcmp): Don't undef.
17770
17771 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17772
17773 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17774 (TIOCSIGSEND): Don't test IRIX6.
17775 (bcopy, bzero, bcmp): Define conditionally.
17776
17777 2008-02-01 Kenichi Handa <handa@m17n.org>
17778
17779 * buffer.c (Qas, Qmake, Qto): New variables.
17780 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17781 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17782
17783 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17784 we are inserting a process output into a multibyte buffer.
17785
17786 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17787 multibyte_char_to_unibyte.
17788
17789 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17790 by the primary charset, make it eight-bit char.
17791 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17792
17793 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17794 (charset_8_bit__control, charset_8_bit_graphic)
17795 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17796 (define_charset_internal): New function.
17797 (syms_of_charset): Call define_charset_internal for pre-defined
17798 charsets.
17799
17800 * charset.h (charset_8_bit): Extern it.
17801
17802 * coding.c (make_conversion_work_buffer): Adjust for the change
17803 of Fset_buffer_multibyte.
17804 (encode_coding_raw_text): Increment p0 in the loop.
17805
17806 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17807
17808 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17809 for the change of Fset_buffer_multibyte.
17810
17811 * fns.c (Fstring_to_multibyte): New function.
17812 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17813
17814 2008-02-01 Dave Love <fx@gnu.org>
17815
17816 * xfns.c (x_put_x_image): Declare args.
17817
17818 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17819 (try_font_list): Declare an arg.
17820
17821 * xdisp.c (message2_nolog, set_message): Declare an arg.
17822
17823 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17824
17825 * syntax.c (scan_sexps_forward): Declare an arg.
17826
17827 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17828 Declare an arg.
17829
17830 * lisp.h (Fnew_fontset): Declare.
17831
17832 * keymap.c (push_key_description): Call CHARACTERP correctly.
17833
17834 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17835 (face_for_char): Delete unused vars.
17836 (Fset_fontset_font): Doc fix. Delete unused vars.
17837
17838 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17839
17840 * composite.c (update_compositions): Declare arg.
17841
17842 * cm.c (calccost, cmgoto): Declare args.
17843
17844 * charset.c: Remove `emacs' conditional. Doc fixes.
17845 (map_char_table_for_charset): Declare.
17846
17847 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17848
17849 * ccl.c: Remove `emacs' conditional.
17850
17851 2008-02-01 Kenichi Handa <handa@m17n.org>
17852
17853 The following changes are to allow specifying multiple font
17854 patterns for a character range (specified by script or charset).
17855
17856 * Makefile.in (abbrev.o): Depend on syntax.h.
17857 (xfaces.o): Depend on charset.h.
17858
17859 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17860 SINGLE_BYTE_CHAR_P.
17861
17862 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17863
17864 * character.h (Vchar_script_table): Extern it.
17865
17866 * character.c (Vscript_alist): Delete.
17867 (Vchar_script_table, Qchar_script_table): New variable.
17868 (syms_of_character): Declare Vchar_script_table as a lisp variable
17869 and initialize it.
17870
17871 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17872 have property char-table-extra-slots, make no extra slot.
17873
17874 * dispextern.h (struct face): Delete member `charset'.
17875 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17876 SINGLE_BYTE_CHAR_P.
17877 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17878 Add prototypes.
17879 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17880 (generate_ascii_font_name): Rename from generate_ascii_font.
17881
17882 * fontset.h (get_font_repertory_func): New prototype.
17883 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17884 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17885
17886 * fontset.c (Qprepend, Qappend): New variables.
17887 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17888 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17889 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17890 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17891 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17892 (load_font_get_repertory): New functions.
17893 (fontset_set): Delete.
17894 (fontset_face): New arg FACE. Return face ID, not face.
17895 Complete re-write to handle new fontset structure. Change caller.
17896 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17897 (face_for_char): Don't call lookup_face.
17898 (make_fontset_for_ascii_face): New arg FACE.
17899 (fs_load_font): New arg CHARSET_ID. Don't check
17900 Vfont_encoding_alist here.
17901 (find_font_encoding): New function.
17902 (list_fontsets): Use STRINGP, not ! NILP.
17903 (accumulate_script_ranges): New function.
17904 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17905 re-written to handle new fontset structure.
17906 (Ffontset_font): Return a copy of element.
17907 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17908 docstring of font-encoding-alist.
17909
17910 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17911 (Fset_fotset_font): Fix arguments to 5.
17912
17913 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17914
17915 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17916 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17917 (highlight_trailing_whitespace): Adjust for the change of
17918 lookup_named_face.
17919
17920 * xfaces.c: Include charset.h.
17921 (load_face_font): Delete argument C. Change caller.
17922 (generate_ascii_font_name): Rename from generate_ascii_font.
17923 (font_name_registry): New function.
17924 (cache_face): Store ascii faces before non-ascii faces in buckets.
17925 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17926 Lookup only ascii faces.
17927 (lookup_non_ascii_face): New function.
17928 (lookup_named_face): Delete argument C. Change caller.
17929 (lookup_derived_face): Delete argument C. Change caller.
17930 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17931 a string, just call font_list with it.
17932 (choose_face_font): Delete arguments FACE and C. New arg
17933 FONT_SPEC. Change caller.
17934 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17935 Change caller.
17936 (realize_non_ascii_face): New function.
17937 (realize_x_face): Call load_face_font here.
17938 (realize_tty_face): Delete argument C. Change caller.
17939 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17940 get a face ID.
17941 (dump_realized_face): Don't print charset of FACE.
17942
17943 * xfns.c (x_set_font): Always call x_new_fontset and
17944 store_frame_parameter.
17945 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17946 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17947
17948 * xterm.h (x_get_font_repertory): Extern it.
17949
17950 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17951 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17952 it->multibyte_p is zero.
17953 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17954 (x_new_fontset): If FONTSETNAME doesn't match any existing
17955 fontsets, create a new one.
17956 (x_get_font_repertory): New function.
17957
17958 2008-02-01 Kenichi Handa <handa@m17n.org>
17959
17960 * coding.c (Ffind_coding_systems_region_internal): Detect an
17961 ASCII only string correctly.
17962
17963 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17964 version is 0.
17965
17966 2008-02-01 Kenichi Handa <handa@m17n.org>
17967
17968 * lread.c: Include "coding.h".
17969 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17970 (load_each_byte, unread_char): New variables.
17971 (readchar_backlog): Delete.
17972 (readchar): Return a character unless load_each_byte is nonzero.
17973 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17974 cons. If unread_char is not -1, simply return it.
17975 (unreadchar): Handle the case that readcharfun is
17976 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17977 (read_multibyte): Delete.
17978 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17979 (read_emacs_mule_char): New functions.
17980 (Fload): Even if the file doesn't have the extension ".elc", if
17981 safe_to_load_p returns a positive version number, assume that the
17982 file contains bytecompiled code. If the version is less than 22,
17983 load the file while decoding multibyte sequences by emacs-mule.
17984 (readevalloop): Don't use readchar_backlog.
17985 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17986 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17987 (read_escape): Delete the arg BYTEREP.
17988 (read1): Set load_each_byte to 1 temporarily while handling
17989 #@NUMBER. Don't call read_multibyte.
17990 (read_vector): Call Fread with a cons. If readcharfun is
17991 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17992 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17993 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17994 and Qload_force_doc_strings.
17995
17996 2008-02-01 Kenichi Handa <handa@m17n.org>
17997
17998 * xdisp.c (face_before_or_after_it_pos): Call
17999 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
18000
18001 2008-02-01 Kenichi Handa <handa@m17n.org>
18002
18003 * character.h (TRAILING_CODE_P): New macro.
18004 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
18005 (string_char_with_unification): Fix prototype.
18006 (Vscript_alist): Extern it.
18007
18008 * character.c (Vscript_alist): New variable.
18009 (string_char_with_unification, str_as_unibyte)
18010 (string_escape_byte8): Add `const' to local variables.
18011 (syms_of_character): Declare script-alist as a Lisp variable.
18012
18013 * charset.h (Vcharset_ordered_list): Extern it.
18014 (charset_ordered_list_tick): Extern it.
18015 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
18016 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
18017 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
18018 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
18019 (Funify_charset): Adjust for the change of Funify_charset.
18020
18021 * charset.c (charset_ordered_list_tick): New variable.
18022 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
18023 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
18024 deunify intead of unify a charset.
18025 (string_xstring_p): Add `const' to local variables.
18026 (find_charsets_in_text): Add `const' to arguments and local variables.
18027 (encode_char): Adjust for the change of Funify_charset. Fix
18028 detecting of invalid code.
18029 (Fset_charset_priority): Increment charset_ordered_list_tick.
18030 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
18031 and TO_CODE.
18032
18033 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
18034 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
18035 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
18036 (decode_coding_ccl, consume_chars)
18037 (Ffind_coding_systems_region_internal)
18038 (Fcheck_coding_systems_region): Add `const' to local variables.
18039
18040 * print.c (print_object): Use octal form for printing the
18041 contents of a bool vector.
18042
18043 2008-02-01 Dave Love <fx@gnu.org>
18044
18045 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
18046 <version == 20>: Refuse to load.
18047
18048 2008-02-01 Dave Love <fx@gnu.org>
18049
18050 * fns.c: Move coding.h.
18051 (Qcodeset, Qdays, Qmonths): New.
18052 (concat): Use CHARACTERP instead of INTEGERP.
18053 (Flocale_codeset): Delete.
18054 (Flanginfo): New function.
18055 (syms_of_fns): Change accordingly.
18056
18057 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
18058
18059 2008-02-01 Dave Love <fx@gnu.org>
18060
18061 * casetab.c (init_casetab_once, init_casetab_once): Fix
18062 CHAR_TABLE_SET call.
18063
18064 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
18065
18066 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
18067
18068 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
18069 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
18070 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
18071
18072 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
18073
18074 * coding.c (ENCODE_DESIGNATION, decode_eol)
18075 (make_conversion_work_buffer, code_conversion_restore)
18076 (Fdefine_coding_system_internal): Convert Lisp types.
18077 (code_conversion_restore): Use EQ, not ==.
18078 (Fencode_coding_string): Fix code_convert_string call.
18079
18080 * coding.h (code_convert_region): Fix prototype.
18081
18082 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
18083
18084 * fontset.c (fontset_ref, fontset_set, fs_load_font)
18085 (Ffontset_info): Convert Lisp types.
18086
18087 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
18088
18089 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
18090
18091 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
18092
18093 * chartab.c: Include "...h", not <...h> in some cases.
18094
18095 * callproc.c (Fcall_process): Remove unused variables.
18096
18097 2008-02-01 Dave Love <fx@gnu.org>
18098
18099 * coding.c (Fset_coding_system_priority): Allow null arg list.
18100
18101 2008-02-01 Dave Love <fx@gnu.org>
18102
18103 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18104 (Fself_insert_and_exit): Use CHARACTERP.
18105
18106 * callproc.c (Fcall_process): Remove unused vars.
18107
18108 * xterm.c (XTread_socket): Add extra dead keysyms.
18109
18110 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
18111
18112 * dispextern.h: Remove prototypes for redraw_frame,
18113 redraw_garbaged_frames.
18114
18115 * cmds.c (Fself_insert_command): Use CHARACTERP.
18116
18117 * chartab.c (make_sub_char_table): Remove unused var.
18118 (Fset_char_table_default, Fmap_char_table): Doc fix.
18119
18120 * keymap.c (access_keymap): Remove generic char code.
18121 (push_key_description): Use CHARACTERP.
18122
18123 2008-02-01 Dave Love <fx@gnu.org>
18124
18125 * charset.c: Doc fixes.
18126 (Funify_charset): Extra checking.
18127
18128 2008-02-01 Dave Love <fx@gnu.org>
18129
18130 * lread.c: Remove some unused variables.
18131 (safe_to_load_p): If safe, return the magic number version byte.
18132 (Fload): Maybe use load-with-code-conversion.
18133
18134 2008-02-01 Kenichi Handa <handa@m17n.org>
18135
18136 * category.c (Fmodify_category_entry): Don't modify the contents
18137 of category_set for characters out of the range. Avoid
18138 unnecessary modification.
18139
18140 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
18141 Vchar_unify_table. The default value of the table is now nil.
18142
18143 * character.c (syms_of_character): Setup Vchar_width_table for
18144 eight-bit-control and raw-byte chars.
18145
18146 * charset.h (enum define_charset_arg_index): Delete
18147 charset_arg_parents and add charset_arg_subset and
18148 charset_arg_superset.
18149 (enum charset_attr_index): Delete charset_parents and add
18150 charset_subset and charset_superset.
18151 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
18152 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
18153 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
18154 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
18155 (CHARSET_SUPERSET): New macros.
18156 (charset_work): Extern it.
18157 (ENCODE_CHAR): Use charset_work.
18158 (CHAR_CHARSET_P): Adjust for the change of encoder format.
18159 (map_charset_chars): Extern it.
18160
18161 * charset.c (load_charset_map): Set the default value of encoder
18162 and deunifier char-tables to nil.
18163 (map_charset_chars): Change argument. Change callers. Use
18164 map_char_table_for_charset instead of map_char_table.
18165 (Fmap_charset_chars): New optional args from_code and to_code.
18166 (Fdefine_charset_internal): Adjust for the change of
18167 `define-charset' (:parents -> :subset or :superset).
18168 (charset_work): New variable.
18169 (encode_char, syms_of_charset): Adjust for the change of
18170 Fdefine_charset_internal.
18171 (Ffind_charset_string): Setup the vector `charsets' correctly.
18172
18173 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
18174 the previous change.
18175 (char_table_ref_and_range): Adjust for the above change.
18176 (map_sub_char_table_for_charset): New function.
18177 (map_char_table_for_charset): New function.
18178
18179 * keymap.c (describe_vector): Handle a char-table directly here.
18180 (describe_char_table): Delete.
18181
18182 * lisp.h (map_charset_chars): Delete.
18183
18184 2008-02-01 Dave Love <fx@gnu.org>
18185
18186 * fns.c (count_combining): Comment out (unused).
18187 (Flocale_codeset): New.
18188 (syms_of_fns): Defsubr it.
18189
18190 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
18191 (size_t): Remove.
18192
18193 2008-02-01 Dave Love <fx@gnu.org>
18194
18195 * Makefile.in (chartab.o): Depend on charset.h.
18196
18197 2008-02-01 Kenichi Handa <handa@m17n.org>
18198
18199 * character.c (syms_of_character): Set the default value of
18200 Vprintable_chars to Qnil.
18201
18202 2008-02-01 Dave Love <fx@gnu.org>
18203
18204 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
18205
18206 2008-02-01 Kenichi Handa <handa@m17n.org>
18207
18208 * charset.c (load_charset_map): Handle the case that from < to
18209 correctly.
18210
18211 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
18212 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
18213 Pay attention to raw-8-bit chars.
18214
18215 2008-02-01 Kenichi Handa <handa@m17n.org>
18216
18217 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
18218 It is not bytecompiled now.
18219
18220 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
18221 (charset_jisx0208): New variables.
18222 (Fdefine_charset_internal): Setup them if appropriate.
18223 (init_charset_once): Initialize them to -1.
18224
18225 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
18226 (charset_jisx0208): Extern them.
18227
18228 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
18229 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
18230 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
18231 (setup_iso_safe_charsets): Fix arguments to Fassq.
18232 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
18233 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
18234 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
18235 (encode_coding_iso_2022): Change the 1st arg to
18236 ENCODE_ISO_CHARACTER to a variable.
18237
18238 2008-02-01 Kenichi Handa <handa@m17n.org>
18239
18240 * charset.h (enum define_charset_arg_index): New enums
18241 charset_arg_min_code and charset_arg_max_code.
18242 (struct charset): New member char_index_offset.
18243
18244 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
18245 Take charset->char_index_offset into account.
18246 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
18247 args[charset_arg_max_code]. Setup charset.char_index_offset.
18248 (syms_of_charset): Fix args to Fdefine_charset_internal.
18249
18250 2008-02-01 Dave Love <fx@gnu.org>
18251
18252 * coding.c (decode_coding_utf_8): Reject overlong sequences.
18253
18254 2008-02-01 Dave Love <fx@gnu.org>
18255
18256 * coding.c: Doc fixes.
18257 (Fcoding_system_aliases): Fix return value.
18258 (Qmac): Remove (duplicated) definition.
18259
18260 2008-02-01 Dave Love <fx@gnu.org>
18261
18262 * charset.c (Fcharset_priority_list, Fset_charset_priority):
18263 New functions.
18264
18265 * character.c (Fstring): Doc fix.
18266
18267 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
18268
18269 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
18270 (font-encoding-alist): Doc fix.
18271
18272 2008-02-01 Dave Love <fx@gnu.org>
18273
18274 * term.c (costs_set): Declare static, non-initialized for pcc.
18275 (encode_terminal_code): Remove unused var.
18276
18277 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18278 for K&R.
18279
18280 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
18281
18282 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
18283 (suffixes): Move out of make_subsidiaries for K&R.
18284
18285 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
18286
18287 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
18288
18289 2008-02-01 Dave Love <fx@gnu.org>
18290
18291 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
18292
18293 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
18294
18295 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
18296
18297 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
18298
18299 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
18300
18301 2008-02-01 Kenichi Handa <handa@m17n.org>
18302
18303 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
18304 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
18305
18306 2008-02-01 Kenichi Handa <handa@m17n.org>
18307
18308 * coding.c (decode_coding_charset): Adjust for the change of
18309 Fdefine_coding_system_internal.
18310 (Fdefine_coding_system_internal): For a coding system of
18311 `charset' type, store a list of charset IDs in
18312 `charset_attr_charset_valids' element of coding attributes.
18313
18314 2008-02-01 Kenichi Handa <handa@m17n.org>
18315
18316 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
18317 (emacs_mule_char): New arg src. Delete arg `composition'. Change
18318 caller. Handle 2-byte and 3-byte charsets correctly.
18319 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
18320 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
18321 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
18322 (DECODE_EMACS_MULE_21_COMPOSITION): Call
18323 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
18324 sequence.
18325 (decode_coding_emacs_mule): Handle composition correctly. Rewind
18326 `src' and `consumed_chars' correctly before calling emacs_mule_char.
18327 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
18328 and alt&rule composition.
18329 (decode_coding_iso_2022): Handle composition correctly.
18330 (init_coding_once): Setup emacs_mule_bytes for private charsets.
18331
18332 * charset.c (Fdefine_charset_internal): Fix bug for the case of
18333 re-defining a charset. If the charset has :emacs-mule-id, setup
18334 emacs_mule_bytes.
18335 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18336
18337 2008-02-01 Kenichi Handa <handa@m17n.org>
18338
18339 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18340 (encode_coding_big5, encode_coding_charset): If coding requires safe
18341 encoding, produce a character specified by
18342 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18343
18344 2008-02-01 Dave Love <fx@gnu.org>
18345
18346 * xterm.c (XSetIMValues): Declare.
18347
18348 * process.c: Conditionally include sys/wait.h, pty.h.
18349
18350 * print.c (print_object): Fix print format for 64-bit systems.
18351
18352 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18353
18354 * buffer.c (emacs_strerror): Declare.
18355
18356 * fontset.c (Fclear_face_cache): Declare.
18357 (accumulate_font_info): Comment-out (unused).
18358 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18359 variables.
18360
18361 * character.h (string_escape_byte8): Declare.
18362
18363 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18364 unused vars.
18365 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18366 (Fmap_charset_chars): Doc fix.
18367
18368 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18369 (Fset_coding_system_priority, Fset_coding_system_priority)
18370 (Fdefine_coding_system_internal): Doc fix.
18371
18372 2008-02-01 Dave Love <fx@gnu.org>
18373
18374 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18375
18376 2008-02-01 Kenichi Handa <handa@m17n.org>
18377
18378 * character.c (string_escape_byte8): Make multibyte string with
18379 correct size.
18380
18381 * charset.c (Fmake_char): Delete unnecessary code.
18382
18383 2008-02-01 Kenichi Handa <handa@m17n.org>
18384
18385 * xfns.c (x_encode_text): Allocate coding.destination here, and
18386 call encode_coding_object with dst_object Qnil.
18387
18388 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18389 multibyte form correctly.
18390
18391 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18392 against Vfont_encoding_alist.
18393
18394 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18395 handling of charset list.
18396 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18397 (decode_coding_object): Move point to coding->dst_pos before
18398 calling post-read-conversion function.
18399 (encode_coding_object): Give correct arguments to
18400 pre-write-conversion. Ignore the return value of
18401 pre-write-conversion function. Pay attention to the case that
18402 pre-write-conversion changes the current buffer. If dst_object is
18403 Qt, even if coding->src_bytes is zero, allocate at least one byte
18404 to coding->destination.
18405
18406 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18407
18408 * charset.c (Fmake_char): Make it more backward compatible.
18409 (Fmap_charset_chars): Fix docstring.
18410
18411 2008-02-01 Dave Love <fx@gnu.org>
18412
18413 * coding.c: Doc fixes.
18414 (Fdefine_coding_system_alias): Use names, not symbols, in
18415 coding-system-alist.
18416
18417 2008-02-01 Kenichi Handa <handa@m17n.org>
18418
18419 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18420 of calling free_realized_face.
18421
18422 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
18423
18424 * charset.c (read_hex): Don't treat SPC as a comment starter.
18425 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18426 (Fdecode_char): Fix typo.
18427
18428 2008-02-01 Kenichi Handa <handa@m17n.org>
18429
18430 * charset.h (struct charset): New member `code_space_mask'.
18431
18432 * coding.c (coding_set_source): Delete the local variable beg_byte.
18433 (encode_coding_charset, Fdefine_coding_system_internal):
18434 Delete the local variable charset.
18435 (Fdefine_coding_system_internal): Setup
18436 attrs[coding_attr_charset_valids] correctly.
18437
18438 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18439 member to check if CODE is valid or not.
18440 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18441 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18442 is within the range of charset->min_code and carset->max_code.
18443
18444 2008-02-01 Dave Love <fx@gnu.org>
18445
18446 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18447
18448 * dispextern.h (generate_ascii_font): Fix return type.
18449
18450 * xfaces.c (generate_ascii_font): Fix arg declaration.
18451
18452 * coding.c (coding_inherit_eol_type)
18453 (Fset_terminal_coding_system_internal)
18454 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18455
18456 2008-02-01 Kenichi Handa <handa@m17n.org>
18457
18458 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18459 multiple charsets correctly.
18460
18461 2008-02-01 Kenichi Handa <handa@m17n.org>
18462
18463 * search.c (boyer_moore): Fix handling of multibyte character
18464 translation.
18465
18466 * xdisp.c (display_mode_element): When the variable `elt' is
18467 changed, update `this' and `lisp_string'.
18468
18469 2008-02-01 Kenichi Handa <handa@m17n.org>
18470
18471 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18472
18473 * callproc.c (Fcall_process): Be sure to give the current buffer
18474 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18475
18476 * charset.c (struct charset_map_entries): New struct.
18477 (load_charset_map): Rename from parse_charset_map. New args
18478 entries and n_entries. Change caller.
18479 (load_charset_map_from_file): Rename from load_charset_map.
18480 Change caller. New arg control_flag. Call load_charset_map at
18481 the tail.
18482 (load_charset_map_from_vector): New function.
18483 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18484 (encode_char): If the charset is compact, change a character index
18485 to a code point.
18486
18487 * coding.c (coding_alloc_by_making_gap): Check the case that the
18488 source and destination are the same correctly.
18489 (decode_coding_raw_text): Set coding->consumed_char and
18490 coding->consumed to 0.
18491 (produce_chars): If coding->chars_at_source is nonzero, update
18492 coding->consumed_char and coding->consumed before calling
18493 alloc_destination.
18494 (Fdefine_coding_system_alias): Register ALIAS in
18495 Vcoding_system_alist.
18496 (syms_of_coding): Define `no-conversion' coding system at the tail.
18497
18498 * fileio.c (Finsert_file_contents): Set coding_system instead of
18499 val. If the current buffer is multibyte, always call
18500 decode_coding_gap.
18501
18502 * xfaces.c (try_font_list): Give higher priority to fontset's
18503 family than face's family.
18504
18505 2008-02-01 Kenichi Handa <handa@m17n.org>
18506
18507 * callproc.c (Fcall_process): Be sure to give the current buffer
18508 to decode_coding_c_string.
18509
18510 * xfaces.c (try_font_list): Give a family specified in a fontset
18511 higher priority than a family specified in a face.
18512
18513 2008-02-01 Kenichi Handa <handa@m17n.org>
18514
18515 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18516 Fix arguments to insert_from_buffer.
18517
18518 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18519
18520 2008-02-01 Kenichi Handa <handa@m17n.org>
18521
18522 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18523 (decode_coding_gap): Set coding->dst_multibyte correctly.
18524
18525 2008-02-01 Kenichi Handa <handa@m17n.org>
18526
18527 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18528 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18529 (encode_coding_utf_16): Substitute coding->default_char for
18530 non-Unicode characters.
18531 (decode_coding): Don't call record_insert here.
18532 (setup_coding_system): Initialize `surrogate' of
18533 coding->spec.utf_16 to 0.
18534 (EMIT_ONE_BYTE): Fix for multibyte case.
18535
18536 * insdel.c (insert_from_gap): Call record_insert.
18537
18538 2008-02-01 Kenichi Handa <handa@m17n.org>
18539
18540 * casefiddle.c (casify_region): Fix multibyte case.
18541
18542 * character.c (c_string_width): Add return type `int'.
18543 (char_string_with_unification): Delete arg ADVANCED.
18544
18545 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18546 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18547 (CHAR_STRING_ADVANCE): Make it do-while statement.
18548
18549 * chartab.c (sub_char_table_set_range): Optimize for the case
18550 DEPTH == 3. Add workaround code for a GCC optimization bug.
18551
18552 * charset.c (parse_charset_map): Remove an unused variable.
18553
18554 * coding.c: Delete unused variables.
18555
18556 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18557 earlier. If inserted is zero and the coding system doesn't
18558 require flushing, don't call decode_coding_gap.
18559
18560 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18561
18562 2008-02-01 Kenichi Handa <handa@m17n.org>
18563
18564 The following changes are for using Unicode as an internal
18565 character model, and use UTF-8 format for buffer/string
18566 representation.
18567
18568 * .gdbinit (xchartable): Adjust for the change of char table structure.
18569 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18570
18571 * Makefile.in (obj): Add character.o and chartab.o.
18572 (lisp, shortlisp): Remove utf-8.elc.
18573 (*.o): For many files, change dependency on charset.h to
18574 character.h, and add dependency on character.h.
18575 (character.o, chartab.o): New targets.
18576
18577 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18578 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18579 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18580 of "charset.h".
18581
18582 * dired.c, filelock.c: Include "character.h".
18583
18584 * alloc.c: Include "character.h" instead of "charset.h".
18585 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18586 (syms_of_alloc): Remove defsubr for Smake_char_table.
18587
18588 * buffer.c: Include "character.h" instead of "charset.h", don't
18589 include "coding.h".
18590 (Fset_buffer_multibyte): Adjust for UTF-8.
18591
18592 * buffer.h: EXFUN Fbuffer_live_p.
18593
18594 * callproc.c: Include "character.h" instead of "charset.h".
18595 (Fcall_process): Big change for the new code-conversion APIs.
18596
18597 * casetab.c: Include "character.h" instead of "charset.h".
18598 (set_canon, set_identity, shuffle): Adjust for the new
18599 map_char_table spec.
18600 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18601 accessing the char table structure.
18602
18603 * chartab.c: New file that implements char table.
18604
18605 * category.c: Include "character.h".
18606 (copy_category_entry): New function.
18607 (copy_category_table): Call map_char_table and copy_category_entry.
18608 (Fmake_category_table): Initialize all top-level slots.
18609 (char_category_set): New function.
18610 (modify_lower_category_set): Delete.
18611 (Fmodify_category_entry): Call char_table_ref_and_range.
18612
18613 * category.h (CATEGORY_SET): Just call char_category_set.
18614
18615 * ccl.c: Include "character.h".
18616 (Qccl, Qcclp): New variables.
18617 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18618 it's less than 256.
18619 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18620 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18621 and DST type.
18622 (ccl_driver): Change types of argument, adjust code accordingly.
18623 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18624 ccl_driver.
18625 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18626
18627 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18628 New members src_multibyte, dst_multibyte, consumed, and produced.
18629 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18630 (CODING_SPEC_CCL_PROGRAM): New macro.
18631 (ccl_driver): Update prototype.
18632 (Qccl, Qcclp, Fccl_program_p): Extern them.
18633 (CHECK_CCL_PROGRAM): New macro.
18634
18635 * character.c, character.h, chartab.c: New files.
18636
18637 * charset.c: Mostly re-written. Move character and multibyte sequence
18638 handling codes to character.c.
18639
18640 * charset.h: Mostly re-written. Move character and multibyte sequence
18641 handling codes to character.h.
18642
18643 * coding.c, coding.h: Mostly re-written.
18644
18645 * composite.c: Include "character.h" instead of "charset.h".
18646 (CHAR_WIDTH): Move to character.h.
18647 (HASH_KEY, HASH_VALUE): Delete.
18648
18649 * composite.h (enum composition_method): Change order of enumeration
18650 symbols.
18651
18652 * data.c: Include "character.h" instead of "charset.h".
18653 (Faref): Call CHAR_TABLE_REF for a char table.
18654 (Faset): Call CHAR_TABLE_SET for a char table.
18655
18656 * dispextern.h (free_realized_face, check_face_attribytes)
18657 (generate_ascii_font): Extern them.
18658 (free_realized_multibyte_face): Delete extern.
18659
18660 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18661 table structure.
18662
18663 * editfns.c: Include "character.h" instead of "charset.h".
18664 (Fchar_to_string): Always call CHAR_STRING.
18665
18666 * emacs.c (main): Call init_charset_once, init_charset,
18667 syms_of_chartab, and syms_of_character.
18668
18669 * fileio.c: Include "character.h" instead of "charset.h".
18670 (Finsert_file_contents): Big change for the new code-conversion API.
18671 (choose_write_coding_system, Fwrite_region): Likewise.
18672 (build_annotations_2): Delete.
18673 (e_write): Big change for the new code-conversion API.
18674
18675 * fns.c: Include "character.h" instead of "charset.h".
18676 (copy_sub_char_table): Move to chartab.c.
18677 (Fcopy_sequence): Call copy_char_table for a char table.
18678 (concat): Delete codes calling count_multibyte.
18679 (string_char_to_byte, string_byte_to_char): Adjust for the new
18680 multibyte form.
18681 (internal_equal): Adjust for the change of char table structure.
18682 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18683 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18684 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18685 (char_table_translate, optimize_sub_char_table)
18686 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18687 chartab.c.
18688 (char_table_ref_and_index): Delete.
18689 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18690 (Fmd5): Call preferred_coding_system instead of accessing
18691 Vcoding_category_list. Adjust for the new code-conversion API.
18692 (syms_of_fns): Move defsubr for char table related functions to
18693 chartab.c.
18694
18695 * fontset.c: Mostly re-written.
18696
18697 * fontset.h (struct font_info): Change type of the member encoding_type.
18698 (enum FONT_SPEC_INDEX): New enum.
18699 (fontset_font_pattern, fs_load_font): Update prototype.
18700 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18701
18702 * indent.c: Include "character.h" instead of "charset.h".
18703 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18704
18705 * insdel.c: Include "character.h" instead of "charset.h".
18706 (copy_text): Don't refer to Vnonascii_translation_table.
18707 (insert_from_gap): New function.
18708
18709 * keyboard.c: Include "character.h" instead of "charset.h".
18710 (command_loop_1): Never call direct_output_forward_char before
18711 a non-ASCII character.
18712 (read_char): If Vkeyboard_translate_table is a char table, always
18713 translate a character.
18714
18715 * keymap.c: Include "character.h".
18716 (store_in_keymap): Handle the case that IDX is a cons.
18717 (Fdefine_key): Handle the case that KEY is a cons and the car part
18718 is also a cons (range).
18719 (push_key_description): Adjust for the new character code.
18720 (describe_vector): Call describe_char_table for a char table.
18721 (describe_char_table): New function.
18722
18723 * keymap.h (describe_char_table): Extern it.
18724
18725 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18726 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18727 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18728 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18729 Delete.
18730 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18731 structure.
18732 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18733 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18734 (CHARTAB_SIZE_BITS_3): New macros.
18735 (chartab_size): Extern it.
18736 (struct Lisp_Char_Table): Re-design.
18737 (struct Lisp_Sub_Char_Table): New structure.
18738 (HASH_KEY, HASH_VALUE): Move from fns.c.
18739 (CHARACTERBITS): Define as 22.
18740 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18741 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18742 (GC_SUB_CHAR_TABLE_P): New macro.
18743 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18744 (code_convert_string_norecord): Deleted extern.
18745 (init_character_once, syms_of_character, init_charset)
18746 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18747
18748 * lread.c: Include "character.h".
18749 (read_multibyte): New arg NBYTES.
18750 (read_escape): Change the meaning of returned *BYTEREP.
18751 (to_multibyte): Delete.
18752 (read1): Adjust the handling of char table and string.
18753
18754 * print.c: Include "character.h" instead of "charset.h".
18755 (print_string): Convert 8-bit raw bytes to octal form by
18756 string_escape_byte8.
18757 (print_object): Adjust for the new multibyte form. Print 8-bit
18758 raw bytes always in octal form. Handle sub char table correctly.
18759
18760 * process.c: Include "character.h" instead of "charset.h".
18761 (read_process_output, send_process): Adjust for the new
18762 code-conversion API.
18763
18764 * puresize.h (BASE_PURESIZE): Increase.
18765
18766 * regex.c: Include "character.h" instead of "charset.h".
18767 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18768 (regex_compile): Accept a range whose starting and ending
18769 character have different leading bytes.
18770 (analyse_first): Adjust for the above change.
18771
18772 * search.c: Include "character.h" instead of "charset.h".
18773 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18774 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18775
18776 * syntax.c: Include "character.h" instead of "charset.h".
18777 (syntax_parent_lookup): Delete.
18778 (Fmodify_syntax_entry): Accept a cons as CHAR.
18779 (skip_chars): Adjust for the new multibyte form.
18780 (init_syntax_once): Call char_table_set_range instead of directly
18781 accessing the structure of a char table.
18782
18783 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18784 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18785 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18786 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18787
18788 * term.c: Include "buffer.h" and "character.h".
18789 (encode_terminal_code, write_glyphs): Adjust for the new
18790 code-conversion API.
18791 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18792
18793 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18794
18795 * xdisp.c: Include "character.h".
18796 (get_next_display_element): Adjust for the new multibyte form.
18797 (disp_char_vector): Adjust for the new char table structure.
18798 (decode_mode_spec_coding): Adjust for the new structure of
18799 coding system.
18800 (decode_mode_spec): Adjust for the new code-conversion API.
18801
18802 * xfaces.c: Include "character.h" instead of "charset.h".
18803 (load_face_font): Adjust for the change of choose_face_font and
18804 FS_LOAD_FONT.
18805 (generate_ascii_font): New function.
18806 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18807 (set_font_frame_param): Adjust for the change of choose_face_font.
18808 (free_realized_face): Make it public.
18809 (free_realized_faces_for_fontset): Rename from
18810 free_realized_multibyte_face. Free also faces realized for ASCII.
18811 (choose_face_font): Change arguments. Adjust for the change of
18812 fontset_font_pattern and FS_LOAD_FONT.
18813
18814 * xfns.c: Include "character.h".
18815 (x_encode_text): Adjust for the new code-conversion API.
18816
18817 * xselect.c: Don't include "charset.h".
18818 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18819
18820 * xterm.c: Include "character.h".
18821 (x_encode_char): New argument CHARSET. Change caller.
18822 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18823 Call ENCODE_CHAR instead of SPLIT_CHAR.
18824 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18825 CHAR_WIDTH instead of CHARSET_WIDTH.
18826 (XTread_socket): Adjust for the new code-conversion API.
18827 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18828 (x_load_font): Adjust for the change of struct font.
18829
18830 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18831
18832 * xfaces.c (face_at_buffer_position): Remove unused vars.
18833
18834 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18835
18836 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18837 Fix overflow checking.
18838
18839 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18840
18841 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18842 Cancel previous change.
18843
18844 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18845
18846 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18847 ccl->eight_bit_control. Fix check for buffer overflow.
18848 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18849 (ccl_driver): Initialize extra_bytes to 0.
18850
18851 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18852
18853 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18854 return it ORed with ctrl_modifier.
18855
18856 2008-01-29 Miles Bader <miles@gnu.org>
18857
18858 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18859
18860 2008-01-28 Jason Rumney <jasonr@gnu.org>
18861
18862 * w32.c (stat): Don't double check for networked drive.
18863
18864 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18865
18866 * window.c (run_window_configuration_change_hook): New function.
18867 Code extracted from set_window_buffer. Set the selected frame.
18868 (set_window_buffer): Use it.
18869 * window.h (run_window_configuration_change_hook): Declare.
18870 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18871
18872 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18873
18874 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18875
18876 * Makefile.in: Remove references to unused macros.
18877
18878 2008-01-26 Eli Zaretskii <eliz@gnu.org>
18879
18880 * w32.c (g_b_init_get_sid_sub_authority)
18881 (g_b_init_get_sid_sub_authority_count): New static variables.
18882 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18883 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18884 (init_user_info): Use them to retrieve uid and gid.
18885 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18886 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18887 st_uid and st_gid of the file.
18888
18889 2008-01-26 Jason Rumney <jasonr@gnu.org>
18890
18891 * w32.c (logon_network_drive): New function.
18892 (stat): Use it.
18893
18894 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
18895
18896 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18897 invisible text covered with an ellipsis.
18898
18899 2008-01-25 Richard Stallman <rms@gnu.org>
18900
18901 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18902 jump back to beginning. Move some other initializations after that.
18903 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18904 New variables.
18905 (syms_of_xdisp): Init them.
18906
18907 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18908
18909 * buffer.c (reset_buffer_local_variables):
18910 Implement `permanent-local-hook'.
18911 (Qpermanent_local_hook): New variable.
18912 (syms_of_buffer): Init and staticpro it.
18913
18914 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
18915
18916 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18917
18918 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18919
18920 * fns.c (Fclrhash): Return TABLE.
18921
18922 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18923
18924 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18925 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18926 is set even without positional changes.
18927 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18928
18929 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18930
18931 2008-01-23 Jason Rumney <jasonr@gnu.org>
18932
18933 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18934
18935 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18936 the unicode range available in MULE by locale-coding-system.
18937 Improve dbcs lead byte detection. Set event timestamp and modifiers
18938 earlier.
18939
18940 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18941
18942 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18943 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18944 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18945 when used on child processes.
18946
18947 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
18948
18949 * dbusbind.c (Fdbus_method_return_internal): Rename from
18950 Fdbus_method_return.
18951 (Fdbus_unregister_object): Move to dbus.el.
18952 (Fdbus_call_method, Fdbus_method_return_internal)
18953 (Fdbus_send_signal): Improve debug messages.
18954
18955 2008-01-20 Martin Rudalics <rudalics@gmx.at>
18956
18957 * undo.c (undo_inhibit_record_point): New variable.
18958 (syms_of_undo): Initialize it.
18959 (record_point): Don't record point when undo_inhibit_record_point
18960 is set.
18961
18962 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18963
18964 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18965
18966 * xdisp.c (Qauto_hscroll_mode): New var.
18967 (syms_of_xdisp): Initialize it.
18968 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18969 window's buffer.
18970 (hscroll_windows): Don't check automatic_hscrolling_p here.
18971
18972 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18973 vscroll if we're setting window-buffer to the value it already has.
18974
18975 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18976
18977 * m/intel386.h: Remove references to XENIX.
18978
18979 2008-01-17 Andreas Schwab <schwab@suse.de>
18980
18981 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18982 instead of HAVE_X86_64_LIB64_DIR.
18983 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18984
18985 2008-01-17 Glenn Morris <rgm@gnu.org>
18986
18987 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18988 to HAVE_X86_64_LIB64_DIR.
18989
18990 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18991
18992 * s/irix3-3.h:
18993 * s/irix4-0.h:
18994 * s/386-ix.h:
18995 * s/domain.h:
18996 * s/hpux9-x11r4.h:
18997 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18998
18999 * sysdep.c: Remove code containing references to symbols defined
19000 by unsupported systems.
19001
19002 2008-01-16 Glenn Morris <rgm@gnu.org>
19003
19004 * coding.c (select-safe-coding-system-function): Doc fix.
19005
19006 2008-01-15 Glenn Morris <rgm@gnu.org>
19007
19008 * config.in: Revert 2008-01-13 change: this is a generated file.
19009
19010 2008-01-13 Tom Tromey <tromey@redhat.com>
19011
19012 * lisp.h: Fix typo.
19013
19014 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19015
19016 * m/sequent-ptx.h:
19017 * m/sequent.h:
19018 * s/ptx.h:
19019 * s/ptx4-2.h:
19020 * s/ptx4.h: Remove files for systems no longer supported.
19021
19022 * callproc.c (Fcall_process): Fix previous change.
19023
19024 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19025
19026 * unexsunos4.c: Remove file, system not supported anymore.
19027
19028 * m/mips.h:
19029 * m/intel386.h:
19030 * callproc.c:
19031 * config.in:
19032 * ecrt0.c:
19033 * emacs.c:
19034 * fileio.c:
19035 * frame.c:
19036 * getpagesize.h:
19037 * keyboard.c:
19038 * lread.c:
19039 * process.c:
19040 * puresize.h:
19041 * sysdep.c:
19042 * systty.h:
19043 * syswait.h:
19044 * unexec.c:
19045 * xdisp.c:
19046 * alloc.c: Remove code containing references to symbols defined by
19047 unsupported systems.
19048
19049 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
19050
19051 * coding.c (detect_coding_mask): Fix previous change.
19052
19053 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
19054
19055 * coding.c (detect_coding_iso2022): New arg
19056 latin_extra_code_state. Allow Latin extra codes only
19057 when *latin_extra_code_state is nonzero.
19058 (detect_coding_mask): If there is a NULL byte, detect the encoding
19059 as UTF-16 or binary. If Latin extra codes exist, detect the
19060 encoding as ISO-2022 only when there's no other proper encoding is
19061 found.
19062
19063 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19064
19065 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
19066 #ifdef MAC_OS.
19067
19068 2008-01-08 Richard Stallman <rms@gnu.org>
19069
19070 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
19071
19072 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
19073
19074 * keyboard.c (parse_menu_item): Don't enclose key bindings on
19075 menu bar in parentheses.
19076
19077 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
19078
19079 * m/7300.h:
19080 * m/acorn.h:
19081 * m/alliant-2800.h:
19082 * m/alliant.h:
19083 * m/alliant1.h:
19084 * m/alliant4.h:
19085 * m/altos.h:
19086 * m/amdahl.h:
19087 * m/apollo.h:
19088 * m/att3b.h:
19089 * m/aviion-intel.h:
19090 * m/aviion.h:
19091 * m/celerity.h:
19092 * m/clipper.h:
19093 * m/cnvrgnt.h:
19094 * m/convex.h:
19095 * m/cydra5.h:
19096 * m/delta88k.h:
19097 * m/dpx2.h:
19098 * m/dual.h:
19099 * m/elxsi.h:
19100 * m/f301.h:
19101 * m/gould-np1.h:
19102 * m/gould.h:
19103 * m/i860.h:
19104 * m/ibmps2-aix.h:
19105 * m/ibmrt-aix.h:
19106 * m/ibmrt.h:
19107 * m/irist.h:
19108 * m/is386.h:
19109 * m/isi-ov.h:
19110 * m/mega68.h:
19111 * m/mg1.h:
19112 * m/news-r6.h:
19113 * m/news-risc.h:
19114 * m/news.h:
19115 * m/nh3000.h:
19116 * m/nh4000.h:
19117 * m/ns16000.h:
19118 * m/ns32000.h:
19119 * m/nu.h:
19120 * m/orion.h:
19121 * m/orion105.h:
19122 * m/paragon.h:
19123 * m/pfa50.h:
19124 * m/plexus.h:
19125 * m/pyramid.h:
19126 * m/pyrmips.h:
19127 * m/sh3el.h:
19128 * m/sps7.h:
19129 * m/sr2k.h:
19130 * m/stride.h:
19131 * m/sun1.h:
19132 * m/sun2.h:
19133 * m/sun3-68881.h:
19134 * m/sun3-fpa.h:
19135 * m/sun3-soft.h:
19136 * m/sun3.h:
19137 * m/sun386.h:
19138 * m/symmetry.h:
19139 * m/tad68k.h:
19140 * m/tahoe.h:
19141 * m/targon31.h:
19142 * m/tek4300.h:
19143 * m/tekxd88.h:
19144 * m/tower32.h:
19145 * m/tower32v3.h:
19146 * m/ustation.h:
19147 * m/wicat.h:
19148 * m/xps100.h:
19149 * s/cxux.h:
19150 * s/cxux7.h:
19151 * s/dgux.h:
19152 * s/dgux4.h:
19153 * s/dgux5-4-3.h:
19154 * s/dgux5-4r2.h:
19155 * s/esix.h:
19156 * s/esix5r4.h:
19157 * s/hiuxmpp.h:
19158 * s/hiuxwe2.h:
19159 * s/iris3-5.h:
19160 * s/iris3-6.h:
19161 * s/isc2-2.h:
19162 * s/isc3-0.h:
19163 * s/isc4-0.h:
19164 * s/isc4-1.h:
19165 * s/newsos5.h:
19166 * s/newsos6.h:
19167 * s/osf1.h:
19168 * s/osf5-0.h:
19169 * s/riscix1-1.h:
19170 * s/riscix12.h:
19171 * s/sco4.h:
19172 * s/sco5.h:
19173 * s/sunos4-0.h:
19174 * s/sunos4-1.h:
19175 * s/sunos413.h:
19176 * s/sunos4shr.h:
19177 * s/umax.h:
19178 * s/unipl5-2.h:
19179 * s/xenix.h:
19180 * cxux-crt0.s:
19181 * unexapollo.c:
19182 * unexconvex.c:
19183 * unexenix.c:
19184 * unexsni.c: Remove files for systems no longer supported.
19185
19186 * m/intel386.h: Remove references to unsupported systems.
19187
19188 * w32.c (get_emacs_configuration): Remove reference to i860.
19189
19190 * sysdep.c: Remove dead code.
19191
19192 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
19193
19194 * s/rtu.h:
19195 * m/masscomp.h: Remove files. Platform is obsolete.
19196
19197 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
19198
19199 * dbusbind.c (Fdbus_method_return): New function.
19200 (xd_read_message): Add the serial number to the event.
19201 (Fdbus_register_method): Activate the function.
19202
19203 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
19204
19205 * keyboard.c (read_key_sequence): Fix typo.
19206
19207 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
19208
19209 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
19210 (xd_signature, xd_append_arg): Handle element type detection for
19211 empty arrays.
19212 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
19213 SDATA () calls; this must be solved more general.
19214 (Fdbus_register_signal): Use SBYTES instead of strlen.
19215
19216 2008-01-03 Magnus Henoch <magnus@zemdatav>
19217
19218 * dbusbind.c (xd_append_arg): Use unsigned char instead of
19219 unsigned int for byte values (necessary for big-endian platform).
19220 (Fdbus_call_method): Handle the case of no returned arguments.
19221
19222 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
19223
19224 * dbusbind.c (xd_read_message): Use non-static input_event struct.
19225
19226 2007-12-31 Magnus Henoch <mange@freemail.hu>
19227
19228 * dbusbind.c (xd_signature): Signature of variant is just "v".
19229
19230 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
19231
19232 * dbusbind.c: Fix several errors and compiler warnings.
19233 Reported by Tom Tromey <tromey@redhat.com>.
19234 (XD_ERROR, XD_DEBUG_MESSAGE)
19235 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
19236 (xd_append_arg): Part for basic D-Bus types rewritten.
19237 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
19238 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
19239 appropriate.
19240 (xd_read_message): Return Qnil. Don't signal an error; it is not
19241 useful during event reading.
19242 (Fdbus_register_signal): Signal an error if the check for
19243 FUNCTIONP fails.
19244 (Fdbus_register_method): New function. The implementation is not
19245 complete, the call of the function signals an error therefore.
19246 (Fdbus_unregister_object): New function, renamed from
19247 Fdbus_unregister_signal. The initial check signals an error, if
19248 the object is not well formed.
19249
19250 2007-12-30 Richard Stallman <rms@gnu.org>
19251
19252 * textprop.c (get_char_property_and_overlay):
19253 Signal error if POSITION is out of range in a buffer.
19254
19255 2007-12-29 Martin Rudalics <rudalics@gmx.at>
19256
19257 * w32fns.c (Fx_create_frame): Make copy of frame parameters
19258 because the original parameters are in pure storage now.
19259
19260 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19261
19262 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
19263
19264 2007-12-22 Eli Zaretskii <eliz@gnu.org>
19265
19266 * callint.c (syms_of_callint) <command-history>: Add reference to
19267 history-length in the doc string.
19268
19269 2007-12-17 Jason Rumney <jasonr@gnu.org>
19270
19271 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
19272 before passing as wParam.
19273
19274 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
19275
19276 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
19277 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
19278 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
19279 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
19280 as number.
19281 (Fdbus_call_method): Fix docstring.
19282
19283 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
19284
19285 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
19286 New macros.
19287 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
19288 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
19289 Simplify.
19290 (xd_signature): New function.
19291 (xd_append_arg): Compute also signatures. Major rewrite.
19292 (xd_retrieve_arg): Make debug messages friendly.
19293 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
19294 Check for signatures of arguments.
19295
19296 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
19297
19298 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
19299 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
19300 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
19301 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
19302 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
19303 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
19304 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
19305 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
19306 (xd_retrieve_value): Remove. Functionality included in ...
19307 (xd_append_arg): New function.
19308 (Fdbus_call_method, Fdbus_send_signal): Apply it.
19309
19310 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
19311
19312 * dbusbind.c (top): Include <stdio.h>.
19313 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
19314 dbus_message_new_method_call and dbus_message_new_signal.
19315 (Fdbus_register_signal): Rename unique_name to uname.
19316 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
19317 non-existing unique name. Fix typos in matching rule. Return an
19318 object which is useful in Fdbus_unregister_signal.
19319 (Fdbus_unregister_signal): Reimplementation, in order to remove
19320 only the corresponding entry.
19321 (Vdbus_registered_functions_table): Change the order of entries.
19322 Apply these changes in xd_read_message and Fdbus_register_signal.
19323
19324 2007-12-16 Andreas Schwab <schwab@suse.de>
19325
19326 * fileio.c (Finsert_file_contents): Fix overflow check to not
19327 depend on undefined integer overflow.
19328
19329 2007-12-14 Jason Rumney <jasonr@gnu.org>
19330
19331 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19332 for characters above 127.
19333
19334 2007-12-13 Jason Rumney <jasonr@gnu.org>
19335
19336 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19337 before dereferencing array.
19338 (lookup_vk_code): Remove zero comparison.
19339
19340 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
19341
19342 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19343 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19344 Use `unsigned int' instead of `uint'.
19345 (xd_read_message, Fdbus_register_signal): Split expressions into
19346 multiple lines before operators "&&" and "||", according to the
19347 GNU Coding Standards.
19348
19349 2007-12-14 Eli Zaretskii <eliz@gnu.org>
19350
19351 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19352
19353 2007-12-12 Juri Linkov <juri@jurta.org>
19354
19355 * buffer.c (Frename_buffer): In interactive spec replace
19356 `read-buffer' with `read-string' that uses `buffer-name-history'
19357 as history, and the current buffer's name as default.
19358
19359 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19360
19361 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19362 manipulating the backtrace manually.
19363 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19364 (struct backtrace, backtrace_list): Remove.
19365 (command_loop_1): Remove dead var `no_direct'.
19366
19367 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19368 preserve non-built-in buffer-local variables.
19369 (Fkill_all_local_variables): Don't re-create&re-set permanent
19370 buffer-local variables.
19371
19372 2007-12-09 Juri Linkov <juri@jurta.org>
19373
19374 * buffer.c (Frename_buffer): Change interactive spec from "s" to
19375 Lisp code that uses `read-buffer' with current buffer as default.
19376
19377 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
19378
19379 * dbusbind.c (xd_read_message): Generate an event for every
19380 registered handler. There might be several handlers registered
19381 for the same signal.
19382 (Fdbus_register_signal): Don't overwrite a registration for the
19383 same signal. Add a new registration if handlers are different.
19384 (Vdbus_registered_functions_table): Rework doc string.
19385
19386 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
19387
19388 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19389 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19390 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19391 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19392 Unify argument lists.
19393 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19394 arguments and hash table keys. Use unique name for service.
19395 (Fdbus_unregister_signal): Remove checks.
19396 (Vdbus_registered_functions_table): Fix doc string.
19397
19398 2007-12-05 Magnus Henoch <mange@freemail.hu>
19399
19400 * process.c (make_process): Initialize pty_flag to 0.
19401
19402 2007-12-05 Jason Rumney <jasonr@gnu.org>
19403
19404 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19405 specified XBMs.
19406
19407 2007-12-05 Richard Stallman <rms@gnu.org>
19408
19409 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19410
19411 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19412
19413 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19414 New variable.
19415 (mac_try_close_socket) [MAC_OSX]: New function.
19416 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19417 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19418
19419 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19420 Use mac_try_close_socket.
19421
19422 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19423
19424 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19425 reloc_base.
19426 (copy_dysymtab): Compute relocation base here.
19427 (rebase_reloc_address) [__ppc64__]: New function.
19428 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19429 changed.
19430
19431 2007-12-05 Jason Rumney <jasonr@gnu.org>
19432
19433 * w32proc.c (sys_spawnve): Quote args with wildcards.
19434
19435 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19436
19437 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19438 __objc_* sections.
19439 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19440
19441 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
19442
19443 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19444 Move check for Vdbus_registered_functions_table to
19445 xd_read_queued_messages.
19446 (xd_read_queued_messages): Protect xd_read_message calls by
19447 internal_condition_case_1.
19448
19449 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
19450
19451 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19452 Qdbus_system_bus and Qdbus_session_bus, respectively.
19453 (Vdbus_intern_symbols): Remove.
19454 (Vdbus_registered_functions_table): New hash table.
19455 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19456 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19457 Rewrite in order to manage registered functions by hash table
19458 Vdbus_registered_functions_table.
19459
19460 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19461
19462 * xterm.c: Update URL to Window Manager Specification in comment.
19463
19464 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
19465
19466 * config.in (HAVE_DBUS): Add.
19467
19468 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19469 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19470 (obj): Add $(DBUS_OBJ).
19471 (LIBES): Add $(DBUS_LIBS).
19472 (dbusbind.o): New target.
19473
19474 * dbusbind.c: New file.
19475
19476 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19477
19478 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19479 (Qdbus_event): New Lisp symbol.
19480 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19481 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
19482 (keys_of_keyboard): Define dbus-event.
19483
19484 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19485
19486 2007-12-01 Richard Stallman <rms@gnu.org>
19487
19488 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19489
19490 2007-11-30 Jason Rumney <jasonr@gnu.org>
19491
19492 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19493 (w32con_reset_terminal_modes): Clear screen buffer.
19494 (w32_face_attributes): Don't use color indexes that are out of range.
19495 Only reverse the default colors.
19496
19497 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19498 WINDOWSNT.
19499
19500 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19501
19502 2007-11-29 Jason Rumney <jasonr@gnu.org>
19503
19504 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19505 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19506 if the terminal colors are initialized.
19507 (unspecified_fg, unspecified_bg): Remove unused declarations.
19508
19509 2007-11-29 Andreas Schwab <schwab@suse.de>
19510
19511 * keyboard.c (apply_modifiers): Fix typo.
19512
19513 2007-11-29 Richard Stallman <rms@gnu.org>
19514
19515 * keymap.c (Fcurrent_local_map): Doc fix.
19516
19517 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19518
19519 * s/gnu-kfreebsd.h: New file.
19520
19521 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19522
19523 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19524 Don't cast redundantly.
19525
19526 * keyboard.c (KEY_TO_CHAR): New macro.
19527 (parse_modifiers, apply_modifiers): Accept integer arguments.
19528 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19529 for chars and symbol keys.
19530 After doing such remapping, apply function-key-map again.
19531
19532 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19533
19534 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19535 compiled anymore.
19536
19537 2007-11-26 Andreas Schwab <schwab@suse.de>
19538
19539 * process.c (list_processes_1): Fix indentation level of the
19540 command column.
19541
19542 2007-11-23 Andreas Schwab <schwab@suse.de>
19543
19544 * editfns.c (Fformat): Handle %c specially since it requires the
19545 argument to be of type int.
19546
19547 2007-11-23 Markus Triska <markus.triska@gmx.at>
19548
19549 * emacs.c (main): Call init_editfns before init_process, since
19550 init_process sets Vprocess_connection_type depending on OS release.
19551
19552 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19553
19554 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19555 (find_symbol_value): Use do_symval_forwarding.
19556
19557 * data.c (set_internal): Set the value in the `cons-cell' (for
19558 Buffer_Local_values) not only for frame-local variables.
19559
19560 2007-11-22 Andreas Schwab <schwab@suse.de>
19561
19562 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19563 values to sprintf.
19564 * keymap.c (Fsingle_key_description): Likewise.
19565 * print.c (print_object): Likewise.
19566
19567 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19568
19569 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19570 file for image is nil.
19571
19572 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19573
19574 * term.c: Include stdarg.h.
19575 (fatal): Implement using varargs.
19576 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19577
19578 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19579
19580 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19581 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19582 Update call to buffer_slot_type_mismatch.
19583 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19584 (buffer_slot_type_mismatch): Update.
19585 * buffer.c (buffer_local_types): Remove.
19586 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19587 (defvar_per_buffer): Set the type in the buffer_objfwd.
19588
19589 2007-11-21 Jason Rumney <jasonr@gnu.org>
19590
19591 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19592 CreateFileMapping returns NULL on failure.
19593
19594 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19595
19596 * search.c (Fset_match_data): Remove the `evaporate' feature.
19597 (unwind_set_match_data): Don't use the `evaporate' feature.
19598
19599 2007-11-21 Jason Rumney <jasonr@gnu.org>
19600
19601 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19602
19603 * w32console.c (w32con_write_glyphs): Remove unused variables.
19604
19605 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19606
19607 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19608
19609 * s/darwin.h (MULTI_KBOARD): Remove.
19610
19611 * macfns.c (x_create_tip_frame, Fx_create_frame)
19612 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19613
19614 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19615
19616 * buffer.c (Fbuffer_local_value): Remove redundant test.
19617 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19618 than in `current-buffer' to match the comment.
19619 Do the swap using swap_in_global_binding.
19620
19621 * data.c (store_symval_forwarding, set_internal):
19622 * eval.c (specbind): Remove dead code.
19623
19624 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19625 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19626 Since we do not want to see internal Lisp_*fwd objects here.
19627
19628 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19629
19630 * sysdep.c (init_system_name): Use getaddrinfo if available.
19631
19632 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19633 (x_scroll_bar_note_movement): start, end, with, height in struct
19634 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19635
19636 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19637
19638 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19639
19640 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19641
19642 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19643 This undoes Richard's change of 14-Oct-2002.
19644
19645 * alloc.c (allocate_other_vector):
19646 * lisp.h (allocate_other_vector): Remove.
19647
19648 * window.c (struct save_window_data): Move non-lisp data to the end
19649 and make it `int' rather than Lisp_Object.
19650 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19651 Done wrap/unwrap integer values.
19652 (Fset_window_configuration, compare_window_configurations):
19653 Update use of fields to their new types.
19654
19655 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19656 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19657 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19658 (SET_SCROLL_BAR_X_WINDOW): Remove.
19659 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19660 Access the new x_window field directly.
19661 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19662 Don't wrap/unwrap integers into Lisp_Objects.
19663 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19664 (x_scroll_bar_report_motion):
19665 Don't wrap/unwrap integers into Lisp_Objects.
19666 (x_term_init): Use SDATA.
19667 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19668 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19669 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19670 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19671 * xfns.c (x_set_background_color):
19672 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19673 Access the new x_window field directly.
19674
19675 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19676 (allocate_pseudovector): Make non-static.
19677
19678 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19679 (allocate_pseudovector): Declare.
19680 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19681
19682 2007-11-15 Andreas Schwab <schwab@suse.de>
19683
19684 * editfns.c (Fformat): Correctly format EMACS_INT values.
19685 Also take precision into account when formatting an integer.
19686
19687 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19688
19689 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19690
19691 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19692 (syms_of_keyboard): Defsubr it.
19693
19694 * data.c (swap_in_global_binding): Fix longstanding bug where
19695 store_symval_forwarding was not called with the right second argument,
19696 thus causing objfwd-ing from being dropped.
19697
19698 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
19699
19700 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19701 (Fx_display_pixel_height, Fx_display_planes)
19702 (Fx_display_color_cells, Fx_server_max_request_size)
19703 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19704 (Fx_display_visual_class, Fx_display_save_under):
19705 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19706 (Fx_display_pixel_height, Fx_display_planes)
19707 (Fx_display_color_cells, Fx_server_max_request_size)
19708 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19709 (Fx_display_mm_height, Fx_display_mm_width)
19710 (Fx_display_backing_store, Fx_display_visual_class)
19711 (Fw32_select_font, Fx_display_save_under):
19712 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19713 (Fx_display_pixel_height, Fx_display_planes)
19714 (Fx_display_color_cells, Fx_server_max_request_size)
19715 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19716 (Fx_display_save_under): Fix typos in docstrings.
19717
19718 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
19719
19720 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19721 corresponding to deleted entries; they are an implementation detail.
19722 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19723 Remove variables.
19724 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19725 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19726 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19727 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19728 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19729 (Fw32_define_rgb_color, Fw32_load_color_file)
19730 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19731 Fix typos in docstrings.
19732 (Fx_server_version): Reflow docstring.
19733 (Fw32_shell_execute): Doc fixes.
19734
19735 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
19736
19737 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19738 if w32_parse_hot_key returned nil.
19739
19740 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19741
19742 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19743
19744 2007-11-09 Jason Rumney <jasonr@gnu.org>
19745
19746 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19747
19748 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19749
19750 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19751 Remove W32_SCROLL_BAR_CLICK_EVENT.
19752
19753 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19754 Add MULTIMEDIA_KEY_EVENT.
19755
19756 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19757 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19758 (make_lispy_event) [WINDOWSNT]: Use it to translate
19759 MULTIMEDIA_KEY_EVENT.
19760
19761 * w32term.h (WM_APPCOMMAND): Define if not already.
19762 (GET_APPCOMMAND_LPARAM): Likewise.
19763
19764 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19765 WM_APPCOMMAND.
19766
19767 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19768 (syms_of_w32fns): Export and initialize it.
19769 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19770
19771 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
19772
19773 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19774 twice.
19775
19776 * xdisp.c (handle_face_prop): Fix last change.
19777
19778 2007-11-09 Richard Stallman <rms@gnu.org>
19779
19780 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19781 not just for after-strings and before-strings.
19782 Call face_for_overlay_string and pass the overlay to it.
19783 (handle_display_prop): Determine whether property came from an overlay.
19784 Pass OVERLAY arg to handle_single_display_spec.
19785 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19786 (load_overlay_strings): Fill in it->string_overlays.
19787 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19788
19789 * xfaces.c (face_for_overlay_string): Function renamed from
19790 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19791
19792 * dispextern.h (struct it): New elt string_overlays.
19793 New elt from_overlay, also in stack.
19794 Rearrange a few elements.
19795 (face_for_overlay_string): Decl renamed from
19796 face_at_buffer_position_no_overlays, and add argument.
19797
19798 2007-11-09 Richard Stallman <rms@gnu.org>
19799
19800 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19801 to get the base face for an overlay string.
19802
19803 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19804
19805 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19806
19807 * xdisp.c (handle_stop): Move some code out of loop.
19808
19809 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19810
19811 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19812 Fix conversion from Lisp object to ATSUFontID.
19813
19814 2007-11-09 Jason Rumney <jasonr@gnu.org>
19815
19816 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19817
19818 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19819
19820 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19821 Don't assume regions are aligned to page boundary.
19822 (print_load_command_name): Add LC_UUID if defined.
19823
19824 2007-11-09 Richard Stallman <rms@gnu.org>
19825
19826 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19827
19828 2007-11-07 Jason Rumney <jasonr@gnu.org>
19829
19830 * s/windows95.h: Remove.
19831
19832 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19833
19834 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19835 abort with a message on unhandled store_type values.
19836
19837 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19838
19839 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19840 Remove HAVE_X11R5 and HAVE_X11R4.
19841
19842 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19843
19844 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19845
19846 2007-11-01 Johan Bockgård <bojohan@gnu.org>
19847
19848 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19849 Don't set s->stippled_p here, since it has already been set by
19850 x_set_glyph_string_gc from x_draw_glyph_string.
19851
19852 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19853
19854 * sunfns.c: Remove file.
19855
19856 * m/sun386.h:
19857 * m/sun2.h:
19858 * m/sparc.h: Remove Sun windows code.
19859
19860 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19861
19862 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19863 (init_keyboard): Set current_kboard's window-system to nil.
19864 (tty_read_avail_input): Typo.
19865 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19866
19867 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19868
19869 * s/usg5-4.h:
19870 * s/usg5-3.h:
19871 * s/ptx.h:
19872 * m/is386.h:
19873 * m/ibmps2-aix.h:
19874 * Makefile.in: Remove all mentions of X10.
19875
19876 * dispnew.c (syms_of_display): Don't mention version 10.
19877
19878 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
19879
19880 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19881 ($(BLD)/abbrev.$(O)): Remove.
19882
19883 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19884
19885 Rewrite abbrev.c in Elisp.
19886 * image.c (Qcount): Don't declare as extern.
19887 (syms_of_image): Initialize and staticpro `Qcount'.
19888 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19889 * emacs.c (main): Don't call syms_of_abbrev.
19890 * Makefile.in (obj): Remove abbrev.o.
19891 (abbrev.o): Remove.
19892 * abbrev.c: Remove.
19893
19894 2007-10-26 Martin Rudalics <rudalics@gmx.at>
19895
19896 * window.c (window_min_size_2): Don't count header-line.
19897
19898 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19899
19900 * frame.h (struct frame): Move all bit fields after the first bit
19901 field to take advantage of the available space. Group all the
19902 chars together to reduce wasted space due to padding.
19903
19904 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
19905
19906 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19907
19908 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19909 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19910 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19911 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19912 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19913 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19914 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19915 (last_marked, mark_object_loop_halt): Make static.
19916
19917 * frame.c (syms_of_frame) <delete-frame-functions>:
19918 Fix typo in docstring.
19919
19920 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
19921
19922 * w32.c (init_environment): Fix tiny memory leak.
19923 (w32_get_resource): Remove unused variable `ok'.
19924
19925 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19926
19927 Make `window-system' into a keyboard-local variable (rather than
19928 frame-local as done originally by multi-tty).
19929
19930 * keyboard.h (struct kboard): Add Vwindow_system.
19931 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19932 (mark_kboards): Mark Vwindow_system.
19933
19934 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19935 (init_display): Don't set the obsolete `window-system' frame-param.
19936
19937 * xterm.c (x_term_init):
19938 * w32term.c (w32_create_terminal):
19939 * term.c (init_tty): Set Vwindow_system.
19940 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19941 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19942
19943 * xfns.c (Fx_create_frame, x_create_tip_frame):
19944 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19945 * macfns.c (Fx_create_frame):
19946 Don't set the obsolete `window-system' frame-param.
19947
19948 * frame.h (Qwindow_system): Remove.
19949 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19950 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19951
19952 2007-10-24 Richard Stallman <rms@gnu.org>
19953
19954 * frame.c (x_figure_window_size): For fullscreen case,
19955 set USPosition | PPosition without clobbering rest of window_prompting.
19956
19957 * keyboard.c (Fcurrent_idle_time): Doc fix.
19958
19959 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19960
19961 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19962
19963 * process.c (unwind_request_sigio): Only define if __ultrix__.
19964
19965 * callproc.c (child_setup): Remove spurious *.
19966
19967 * lisp.h (Fget_text_property): Declare.
19968 (have_menus_p): Declare it here rather than in sys-dep header files.
19969 * macterm.h (have_menus_p):
19970 * msdos.h (have_menus_p):
19971 * xterm.h (have_menus_p): Remove.
19972
19973 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19974 (Fmake_variable_frame_local): Just check the variable's const-ness
19975 rather than checking nil or t.
19976
19977 2007-10-22 Jason Rumney <jasonr@gnu.org>
19978
19979 * w32fns.c: Include math.h.
19980 (w32_abort): Declaration moved to nt/config.nt.
19981
19982 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19983 (abort): Redefinition moved to nt/config.nt.
19984
19985 * m/windowsnt.h: Remove.
19986
19987 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
19988
19989 * emacs.c (Fdump_emacs): Fix typo in message.
19990 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19991 <installation-directory>: Reflow docstring.
19992
19993 2007-10-22 Juri Linkov <juri@jurta.org>
19994
19995 * minibuf.c: Allow minibuffer default to be a list of default values.
19996 With empty input use the first element of this list as returned default.
19997 (string_to_object)
19998 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19999 (read_minibuf): If defalt is cons, set histstring to its car.
20000 (Fread_string): If default_value is cons, set val to its car.
20001 (Fread_buffer): If def is cons, use its car.
20002 (Fcompleting_read): If defalt is cons, set val to its car.
20003
20004 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
20005
20006 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
20007
20008 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
20009
20010 * doc.c (Fdocumentation): Check for advice in all cases.
20011
20012 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
20013
20014 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
20015
20016 2007-10-19 Richard Stallman <rms@gnu.org>
20017
20018 * doc.c (Fdocumentation): Check for and handle an advised function.
20019
20020 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
20021
20022 * process.c (Fset_process_filter): Doc fix.
20023
20024 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
20025
20026 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
20027 which caused key-translation-map to applied repeatedly (thus breaking
20028 double-mode).
20029
20030 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20031
20032 * xselect.c (x_own_selection, x_handle_selection_clear)
20033 (x_clear_frame_selections):
20034 * w32menu.c (list_of_panes, list_of_items):
20035 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
20036 * textprop.c (validate_plist, interval_has_all_properties)
20037 (interval_has_some_properties, interval_has_some_properties_list)
20038 (add_properties, text_property_list):
20039 * process.c (Fget_buffer_process, list_processes_1, status_notify):
20040 * minibuf.c (Fassoc_string):
20041 * macselect.c (x_own_selection, x_clear_frame_selections)
20042 (Fx_disown_selection_internal):
20043 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
20044 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
20045
20046 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
20047
20048 * process.c: Link to libs for calling res_init() if available.
20049 (Fmake_network_process): Call res_init() before getaddrinfo or
20050 gethostbyname, if possible.
20051
20052 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20053
20054 * lread.c (read1): Set pvectype for char_tables.
20055
20056 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
20057 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
20058 Add type checks.
20059 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
20060
20061 * alloc.c (free_misc): Use XMISCTYPE.
20062 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
20063
20064 2007-10-17 Glenn Morris <rgm@gnu.org>
20065
20066 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
20067 (syms_of_minibuf): Add Qcompletion_ignore_case.
20068 * dired.c (Qcompletion_ignore_case): Change to external.
20069 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
20070 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
20071 (Fread_file_name): Use it rather than intern'ing.
20072
20073 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
20074 (Fread_coding_system): Ignore case of user input.
20075
20076 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20077
20078 * xdisp.c (handle_display_prop): Ignore display specs after
20079 replacing one when string text is being replaced.
20080 (handle_single_display_spec): Pretend as if characters with display
20081 property haven't been consumed only when buffer text is being replaced.
20082
20083 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
20084
20085 * xfns.c (Fx_create_frame, Fx_display_list):
20086 * window.c (window_fixed_size_p, enlarge_window)
20087 (shrink_window_lowest_first):
20088 * macterm.c (init_font_name_table):
20089 * macfns.c (Fx_create_frame, Fx_display_list):
20090 * lread.c (close_load_descs):
20091 * keyboard.c (read_char_x_menu_prompt):
20092 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
20093 * coding.c (code_convert_region_unwind): Test the type of an object
20094 rather than just !NILP before extracting data from it.
20095
20096 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
20097
20098 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
20099 (XMISCANY): New macro.
20100 (XMISCTYPE): Use it.
20101 (struct Lisp_Misc_Any): New type.
20102 (union Lisp_Misc): Use it.
20103 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
20104 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
20105 (find_symbol_value, set_internal, default_value, Fset_default)
20106 (Fmake_variable_buffer_local, Fmake_local_variable)
20107 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
20108 (Flocal_variable_if_set_p, Fvariable_binding_locus):
20109 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
20110 * alloc.c (allocate_buffer): Set the size and tag.
20111 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
20112 Use XMISCANY.
20113 (die): Follow the GNU convention for error messages.
20114 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
20115 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
20116 tag any more.
20117 (set_buffer_internal_1):
20118 * frame.c (store_frame_param):
20119 * eval.c (specbind):
20120 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
20121
20122 * doc.c (Fsnarf_documentation): Simplify.
20123
20124 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
20125
20126 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
20127 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
20128
20129 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
20130
20131 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
20132
20133 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
20134
20135 * eval.c (do_autoload): Don't save autoloads.
20136
20137 * data.c (Ffset): Save autoload of the function being set.
20138
20139 2007-10-07 John Paul Wallington <jpw@pobox.com>
20140
20141 * xfns.c (x_create_tip_frame): Set the `display-type' frame
20142 parameter before setting up faces.
20143
20144 2007-10-13 Eli Zaretskii <eliz@gnu.org>
20145
20146 * ccl.c (Fregister_code_conversion_map):
20147 * keyboard.c (append_tool_bar_item): Reformat last change.
20148
20149 * lisp.h (eabs): Rename from `abs'. All callers changed.
20150
20151 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
20152
20153 * buffer.c (add_overlay_mod_hooklist):
20154 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
20155 * fontset.c (make_fontset):
20156 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
20157 (append_tool_bar_item):
20158 * macmenu.c (grow_menu_items):
20159 * w32menu.c (grow_menu_items):
20160 * xmenu.c (grow_menu_items): Use larger_vector.
20161
20162 2007-10-13 Eli Zaretskii <eliz@gnu.org>
20163
20164 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
20165 selected frame'' on MSDOS).
20166
20167 2007-10-12 Martin Rudalics <rudalics@gmx.at>
20168
20169 * frame.c (Qexplicit_name): New variable.
20170 (x_report_frame_params): Report it in parameter alist.
20171 (syms_of_frame): Intern and staticpro it.
20172
20173 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
20174
20175 * macfns.c (x_create_tip_frame): Set terminal for frame.
20176
20177 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
20178
20179 * frame.c (Qenvironment): Remove.
20180 (syms_of_frame) <Qenvironment>: Don't initialize.
20181 (Fdelete_frame): Don't treat the `environment' param specially.
20182 * frame.h (Qenvironment): Don't declare.
20183 * callproc.c (set_initial_environment): Don't set unused frame param.
20184
20185 * frame.c (Fframe_with_environment): Remove.
20186 (syms_of_frame) <Sframe_with_environment>: Don't declare.
20187
20188 * lisp.h (Fframe_with_environment): Don't declare.
20189
20190 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
20191
20192 * indent.c (indent_tabs_mode, last_known_column)
20193 (last_known_column_modified): Make static.
20194 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
20195
20196 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
20197
20198 * puresize.h (BASE_PURESIZE): Increase to 1170000.
20199
20200 2007-10-09 Jason Rumney <jasonr@gnu.org>
20201
20202 * w32term.c (x_set_window_size): Disable code that attempts to tell
20203 Lisp code about a size change before it actually happens.
20204
20205 2007-10-09 Richard Stallman <rms@gnu.org>
20206
20207 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
20208 return HANDLED_RETURN.
20209
20210 2007-10-08 Martin Rudalics <rudalics@gmx.at>
20211
20212 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
20213 when there's an unread command event.
20214
20215 * frame.c (focus_follows_mouse): Move here from frame.el to allow
20216 window autoselection act appropriately when leaving selected frame.
20217 (syms_of_frame): Initialize focus_follows_mouse.
20218 * frame.h (focus_follows_mouse): Extern it.
20219 * macterm.c (XTread_socket): When focus_follows_mouse is nil
20220 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
20221 * msdos.c (dos_rawgetc): Likewise.
20222 * w32term.c (w32_read_socket): Likewise.
20223 * xterm.c (handle_one_xevent): Likewise.
20224 * xdisp.c (syms_of_xdisp): In doc-string of
20225 mouse-autoselect-window mention focus-follows-mouse.
20226
20227 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20228
20229 * macterm.c (mac_load_query_font): Fix missing return value.
20230 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
20231 Add BLOCK_INPUT.
20232
20233 2007-10-08 Richard Stallman <rms@gnu.org>
20234
20235 * xdisp.c (get_window_cursor_type): Implement documented behavior
20236 for cursor-in-non-selected-windows = t.
20237
20238 2007-10-08 Jason Rumney <jasonr@gnu.org>
20239
20240 * w32.c (w32_get_resource): Always close registry keys.
20241
20242 2007-10-08 Jason Rumney <jasonr@gnu.org>
20243
20244 * makefile.w32-in (LIBS): Add COMCTL32.
20245
20246 * w32fns.c (globals_of_w32fns): Init common controls.
20247
20248 2007-10-08 Richard Stallman <rms@gnu.org>
20249
20250 * image.c (our_memory_buffer): Rename from omfib_buffer.
20251
20252 2007-10-08 Richard Stallman <rms@gnu.org>
20253
20254 * buffer.c (Foverlays_at): Doc fix.
20255
20256 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
20257
20258 * fns.c (Fplist_put): Preserve uneven tail data.
20259
20260 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
20261
20262 * termhooks.h (enum event_kind): Remove trailing comma.
20263
20264 * frame.h (enum): Remove trailing comma.
20265
20266 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20267
20268 * w32proc.c (delete_child): Don't terminate threads of zombies.
20269
20270 2007-10-08 Martin Rudalics <rudalics@gmx.at>
20271
20272 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
20273
20274 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
20275 last-repeatable-command.
20276 (init_kboard): Initialize Vlast_repeatable_command.
20277 (command_loop_1): Set it to real_this_command unless that was
20278 bound to an input event.
20279 (mark_kboards): Mark it.
20280
20281 2007-10-08 Richard Stallman <rms@gnu.org>
20282
20283 * eval.c (condition-case): Doc fix.
20284
20285 2007-10-08 Masatake YAMATO <jet@gyve.org>
20286
20287 * xfaces.c (tty_supports_face_attributes_p): Fix code
20288 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
20289 was copied and not edited.
20290
20291 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
20292
20293 Add new `input-decode-map' keymap and use it for terminal
20294 escape sequences.
20295 * keyboard.h (struct kboard): Add Vinput_decode_map.
20296 Remove Vlocal_key_translation_map.
20297 * keyboard.c (read_key_sequence): Add support for input-decode-map.
20298 (init_kboard): Init input-decode-map.
20299 Replace local-key-translation-map back with key-translation-map.
20300 (syms_of_keyboard): Declare input-decode-map.
20301 Remove local-key-translation-map. Update docstrings.
20302 (mark_kboards): Mark Vinput_decode_map.
20303 Don't mark Vlocal_key_translation_map.
20304 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
20305 Replace local-key-translation-map back with key-translation-map.
20306 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
20307 Bind in input-decode-map rather than function-key-map.
20308
20309 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
20310 This was made redundant by the previous introduction of XSETPVECTYPE.
20311
20312 2007-10-09 Richard Stallman <rms@gnu.org>
20313
20314 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
20315
20316 2007-09-29 Richard Stallman <rms@gnu.org>
20317
20318 * eval.c (internal_condition_case_2, internal_condition_case_1)
20319 (internal_condition_case): Reenable abort if x_catching_errors ()
20320 to see if that really happens and why.
20321
20322 2007-10-06 Andreas Schwab <schwab@suse.de>
20323
20324 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
20325
20326 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
20327
20328 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
20329
20330 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
20331
20332 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20333
20334 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
20335
20336 * window.h (struct window):
20337 * window.c (struct save_window_data, struct saved_window):
20338 * termhooks.h (struct terminal):
20339 * process.h (struct Lisp_Process):
20340 * frame.h (struct frame):
20341 * buffer.h (struct buffer):
20342 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20343 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20344 The size field of (pseudo)vectors is now unsigned.
20345 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20346
20347 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20348 Turn `count' into an integer.
20349
20350 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20351 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20352 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20353 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20354 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20355
20356 * alloc.c (allocate_pseudovector): New fun.
20357 (ALLOCATE_PSEUDOVECTOR): New macro.
20358 (allocate_window, allocate_terminal, allocate_frame)
20359 (allocate_process): Use it.
20360 (mark_vectorlike): New function.
20361 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20362 (mark_terminals): Use it.
20363 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20364 (Fmake_byte_code): Use XSETPVECTYPE.
20365
20366 * frame.c (Fframe_parameters): Minor simplification.
20367
20368 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20369
20370 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20371
20372 * buffer.c (Fget_buffer_create, init_buffer_once):
20373 * lread.c (defsubr):
20374 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20375
20376 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20377 defined differently in the m/*.h files.
20378 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
20379 (XSETPVECTYPE): New macro.
20380 (XSETPSEUDOVECTOR): Use it.
20381
20382 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20383 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20384
20385 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20386 * lread.c (defvar_per_buffer):
20387 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20388
20389 * window.c (candidate_window_p): Only consider as visible frames that
20390 are on the same terminal.
20391
20392 * m/ibms390x.h (MARKBIT): Remove unused macro.
20393
20394 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
20395
20396 * lread.c (Fload): Fix typo in docstring.
20397
20398 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20399
20400 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20401 of a non-zero value can't yield zero.
20402
20403 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20404
20405 * term.c (term_clear_mouse_face, term_mouse_highlight)
20406 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20407
20408 * print.c (safe_debug_print): Use XHASH.
20409
20410 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20411 Lisp elements such as tags.
20412 (XHASH): New macro.
20413 (EQ): Use it.
20414 (SREF, SSET, STRING_COPYIN): Use SDATA.
20415 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20416
20417 * alloc.c (mark_terminal): Remove left-over declaration.
20418 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20419 (allocate_vectorlike): Remove type argument. Adjust callers.
20420 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20421 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20422
20423 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20424 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20425 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20426 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20427 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20428 Use them.
20429
20430 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20431 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20432 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20433
20434 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20435
20436 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20437 loaded by default.
20438
20439 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20440
20441 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20442 on this tty.
20443 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20444
20445 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20446 Update all users.
20447 (handle_one_term_event): Use Gpm_DrawPointer.
20448 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20449 Signal errors instead of returning nil. Always return nil.
20450 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20451 Make it a noop if gpm-mouse was not activated.
20452 (syms_of_term): Update names.
20453
20454 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20455
20456 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20457 (init_sys_modes): Check that gpm_tty is the current tty.
20458
20459 * alloc.c (allocate_terminal): Set the vector size to only count the
20460 lisp fields. Initialize those to nil.
20461 (mark_object): Don't treat terminals specially.
20462 (mark_terminal): Remove.
20463 (mark_terminals): Use mark_object instead.
20464
20465 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20466 the GC to the beginning.
20467
20468 * indent.h:
20469 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20470
20471 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20472
20473 2007-09-25 Jason Rumney <jasonr@gnu.org>
20474
20475 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20476
20477 * w32console.c (create_w32cons_output): Remove.
20478
20479 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20480
20481 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20482 (reset_sys_modes): Use reset_terminal_modes_hook.
20483
20484 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20485
20486 * eval.c (do_autoload): Don't output any message.
20487
20488 2007-09-24 Juri Linkov <juri@jurta.org>
20489
20490 * emacs.c (standard_args): Change priority of "--no-splash"
20491 from 40 to 3. Add "--no-desktop" with the same priority.
20492
20493 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20494
20495 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20496 and optimize the case where they are all 1.
20497
20498 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
20499
20500 * lisp.h (abs): Define if not defined.
20501 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20502 Don't define `abs', since it's defined in lisp.h.
20503
20504 2007-09-22 Eli Zaretskii <eliz@gnu.org>
20505
20506 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20507 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20508 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20509 (init_tty): Use DEV_TTY instead of "/dev/tty".
20510 [WINDOWSNT]: No need to protect from NAME arg being null.
20511
20512 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20513
20514 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20515 up the tty state.
20516
20517 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20518
20519 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20520 (gpm_tty): Change its type.
20521 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20522 (gpm_tty): Change its type and initialize it.
20523 (Fterm_open_connection): Check the frame is indeed a tty.
20524 Use the new gpm_tty.
20525 (Fterm_close_connection): Use the new gpm_tty.
20526 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20527 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20528
20529 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
20530
20531 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20532 underline_color, to draw strike-through.
20533
20534 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20535
20536 * lisp.h (allocate_terminal): Declare.
20537
20538 * window.c (candidate_window_p): Consider frames that are being placed
20539 by the user as somewhere between visible and iconified.
20540 (window_loop): Prefer windows on the current frame.
20541 (Fselect_window): Move the use of select-frame to the beginning so we
20542 can just delegate all the work (it'll call us back anyway).
20543
20544 * frame.c (Qdisplay_environment_variable):
20545 * frame.h (Qdisplay_environment_variable): Delete.
20546
20547 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20548 of the first arg, since that value may be a union.
20549
20550 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20551 parameter rather than Qdisplay_environment_variable. If all else
20552 fails, look for DISPLAY in initial-environment.
20553
20554 2007-09-21 Glenn Morris <rgm@gnu.org>
20555
20556 * Makefile.in (emacstool): Remove target.
20557 (lisp, shortlisp): Remove termdev.elc.
20558
20559 2007-09-21 Markus Triska <markus.triska@gmx.at>
20560
20561 * xterm.c (x_delete_display): Compile session management conditionally.
20562
20563 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20564
20565 * callproc.c (getenv_internal_1): New function.
20566 (getenv_internal): Use it.
20567 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20568
20569 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20570 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20571 (Fset_terminal_parameter): Work with dead terminals as well.
20572 (Fmodify_terminal_parameters): Remove.
20573
20574 * terminal.c (get_terminal): Handle terminals.
20575 Make sure the terminal returned is live.
20576 (create_terminal): Use allocate_terminal.
20577 (mark_terminals): Move to alloc.c.
20578 (delete_terminal): Use terminal->name as liveness status.
20579 NULL out fields after freeing their contents.
20580 Don't deallocate the object.
20581 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20582 rather than an int.
20583 (Fterminal_live_p): Accept non-integer arguments.
20584 (Fterminal_list): Return terminal objects rather than an ints.
20585
20586 * alloc.c (enum mem_type): New member for `terminal' objects.
20587 (allocate_terminal): New function.
20588 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20589 Handle terminals.
20590 (mark_terminal): New fun.
20591 (mark_terminals): Move from terminal.c.
20592
20593 * term.c (get_tty_terminal): Don't treat output_initial specially.
20594 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20595 (delete_tty): Use terminal->name as liveness status.
20596
20597 * termhooks.h (struct terminal): Make it into a pseudovector.
20598 Remove `deleted' replaced by checking `name's nullness.
20599
20600 * print.c (print_object): Handle terminals.
20601
20602 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20603 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20604
20605 * frame.c (make_terminal_frame):
20606 * keyboard.c (tty_read_avail_input):
20607 * w32term.c (x_delete_terminal):
20608 * xfns.c (Fx_create_frame, x_create_tip_frame):
20609 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20610
20611 2007-09-20 Glenn Morris <rgm@gnu.org>
20612
20613 * process.c (Fmake_network_process): Doc fix.
20614
20615 2007-09-19 Jason Rumney <jasonr@gnu.org>
20616
20617 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20618
20619 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20620
20621 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20622 Fix a C warning regarding variable constness.
20623
20624 * xterm.c (handle_one_xevent): Fix a C warning.
20625
20626 2007-09-18 Jason Rumney <jasonr@gnu.org>
20627
20628 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20629
20630 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20631
20632 * gtkutil.c (gdpy_def): New variable.
20633 (xg_initialize): Initialize gdpy_def.
20634 (xg_display_close): If no other display exists, set gdpy_def to a
20635 new connection.
20636
20637 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20638
20639 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20640 when we have no file name for the icon.
20641 (xg_tool_bar_expose_callback): Remove.
20642 (xg_create_tool_bar): Don't connect expose signal to
20643 xg_tool_bar_expose_callback.
20644 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20645
20646 2007-09-16 Andreas Schwab <schwab@suse.de>
20647
20648 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20649 values instead of zapping them.
20650
20651 2007-09-14 Glenn Morris <rgm@gnu.org>
20652
20653 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20654 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20655 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20656 scope and rename to omfib_buffer for clarity.
20657 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20658
20659 2007-09-14 Kenichi Handa <handa@m17n.org>
20660
20661 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20662
20663 2007-09-13 Jason Rumney <jasonr@gnu.org>
20664
20665 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20666
20667 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20668
20669 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20670 (mac_term_init): Call here instead, passing rif.
20671
20672 2007-09-13 Glenn Morris <rgm@gnu.org>
20673
20674 * s/hpux.h: No longer define `static' as nothing.
20675
20676 2007-09-13 Johan Bockgård <bojohan@gnu.org>
20677
20678 * callint.c (Fcall_interactively): Remove unused var `fun'.
20679
20680 2007-09-12 Romain Francoise <romain@orebokech.com>
20681
20682 * window.c (prefer_window_split_horizontally, display_buffer):
20683 Revert 2007-09-08 change.
20684
20685 2007-09-12 Glenn Morris <rgm@gnu.org>
20686
20687 * alloca.c: Remove file.
20688 * Makefile.in (alloca): Do not undef.
20689 (allocaobj, alloca.o): Remove.
20690 (otherobj): Remove allocaobj.
20691 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20692 * regex.c (C_ALLOCA): Remove all references and code that was only
20693 used when this was defined.
20694 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20695 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20696 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20697
20698 * Makefile.in (SOURCES, unlock, relock): Delete.
20699
20700 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20701 (menu_grab_callback): All uses changed.
20702
20703 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20704 (x_reply_selection_request): All uses changed.
20705
20706 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20707
20708 * lread.c (load_warn_old_style_backquotes): Change message to look
20709 better when it appears in the middle of byte-compiler messages.
20710
20711 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20712
20713 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20714
20715 * xterm.c (x_create_terminal): Add comment.
20716
20717 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20718
20719 2007-09-10 Richard Stallman <rms@gnu.org>
20720
20721 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20722
20723 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20724
20725 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20726 (DEFUN): Document `intspec', use it instead of `prompt'.
20727
20728 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20729
20730 * data.c (Finteractive_form): If the interactive specification starts
20731 with a `(', use it as a Lisp form.
20732
20733 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20734 name and file modes.
20735
20736 * callint.c (Fcall_interactively): Comment fixes.
20737
20738 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20739
20740 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20741 and compiled functions.
20742
20743 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20744
20745 * window.c (prefer_window_split_horizontally): New variable.
20746 (display_buffer): Consider splitting window horizontally depending
20747 on prefer_window_split_horizontally.
20748
20749 2007-09-08 Eli Zaretskii <eliz@gnu.org>
20750
20751 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20752
20753 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20754
20755 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20756
20757 * frame.c (x_set_frame_parameters): Check number is positive before
20758 using XFASTINT.
20759
20760 * window.c (freeze_window_start): Don't presume selected_window holds
20761 a window object.
20762 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20763
20764 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20765
20766 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20767
20768 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20769
20770 * window.c (Vsplit_window_preferred_function): New var.
20771 (Fdisplay_buffer): Use it.
20772 (syms_of_window): Export, and initialize it.
20773
20774 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20775
20776 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20777
20778 2007-09-06 Glenn Morris <rgm@gnu.org>
20779
20780 * gtkutil.c (menu_grab_callback) <cnt>:
20781 * xselect.c (x_reply_selection_request) <cnt>: Move static
20782 variable to file scope.
20783
20784 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20785
20786 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20787 consistent values of selected_frame and selected_window.
20788
20789 2007-09-04 Jason Rumney <jasonr@gnu.org>
20790
20791 * w32console.c (initialize_w32_display): Zero unused hooks.
20792
20793 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20794
20795 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20796 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20797
20798 2007-09-04 Jason Rumney <jasonr@gnu.org>
20799
20800 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20801 in w32console.c. Set up input. Remove XXX comments that have been
20802 confirmed as correct.
20803
20804 * s/ms-w32.h (MULTI_KBOARD): Define.
20805
20806 * w32console.c (one_and_only_w32cons): Remove.
20807 (initialize_w32_display): Take terminal argument.
20808
20809 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20810 initialize_w32_display.
20811 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20812
20813 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20814
20815 * keyboard.c (discard_mouse_events): Discard it.
20816 (make_lispy_event): Translate it to a lisp event.
20817 (lispy_wheel_names): Add wheel-left and right events.
20818 (syms_of_keyboard): Enlarge wheel_syms.
20819
20820 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20821 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20822
20823 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20824
20825 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20826 from WM_MOUSEHWHEEL.
20827 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20828
20829 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20830 terminal.
20831
20832 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20833 keyboard for the terminal.
20834
20835 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20836
20837 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20838 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20839 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20840 and resume-tty-function to resume-tty-hook.
20841 (Fsuspend_tty, Fresume_tty): Use new names.
20842
20843 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20844
20845 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20846 if it starts with "n:".
20847
20848 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20849
20850 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20851
20852 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20853
20854 * frame.h:
20855 * frame.c (Qterm_environment_variable): Remove.
20856 (syms_of_frame): Don't init and staticpro it.
20857
20858 * callproc.c (getenv_internal): Remove special case for $TERM.
20859
20860 * callproc.c (Vinitial_environment): New variable.
20861 (set_initial_environment): Initialize it.
20862 (syms_of_callproc): Declare it.
20863 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20864 TERM under which a process runs is never related to the TERM in which
20865 Emacs is running.
20866
20867 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20868
20869 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20870 * s/darwin.h: ... do it here.
20871
20872 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20873
20874 * lisp.h (set_initial_environment): Rename from set_global_environment.
20875
20876 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20877 removed by mistake on the multi-tty branch.
20878
20879 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20880 (Fmodify_frame_parameters): Return a value.
20881
20882 * image.c (png_load): Comment-out var only used in commented-out code.
20883
20884 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20885 before passing it to mark_object.
20886
20887 * xfaces.c (internal_resolve_face_name): Return a value.
20888 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20889
20890 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20891 (x_icon): Comment-out var only used in commented-out code.
20892
20893 2007-08-29 Romain Francoise <romain@orebokech.com>
20894
20895 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20896 QUIT hasn't been provided.
20897
20898 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20899
20900 * callproc.c (child_setup, getenv_internal): Use the
20901 display-environment-variable and term-environment-variable frame params.
20902 (set_initial_environment): Initialise Vprocess_environment.
20903
20904 * config.in: Disable multi-keyboard support on a mac.
20905
20906 * frame.c (Qterm_environment_variable)
20907 (Qdisplay_environment_variable): New variables.
20908 (syms_of_frame): Intern and staticpro them.
20909 (Fmake_terminal_frame): Disable output method test.
20910
20911 * frame.h: Declare them here.
20912
20913 * macfns.c (x_set_mouse_color): Get rif from the frame.
20914 (x_set_tool_bar_lines): Don't use updating_frame.
20915 (mac_window): Add 2 new parameters for consistency with other systems.
20916 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20917 frame parameters following what is done in X11 and w32. Don't use
20918 FRAME_MAC_DISPLAY_INFO.
20919 (Fx_open_connection, start_hourglass): Remove window-system check.
20920 (x_create_tip_frame): Get the keyboard from the terminal.
20921
20922 * macmenu.c: Reorder includes.
20923 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20924
20925 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20926 terminal parameter.
20927 (x_clear_frame): Add a frame parameter.
20928 (note_mouse_movement): Get rif from the frame.
20929 (mac_term_init): Initialize the terminal.
20930 (mac_initialize): Make static and move terminal initialization ...
20931 (mac_create_terminal): ... to this new function.
20932
20933 * macterm.h (struct mac_display_info): Add terminal.
20934 (mac_initialize): Delete declaration.
20935
20936 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20937
20938 * sysdep.c: Comment out text after #endif.
20939
20940 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20941 is defined. Better initialize ttys in windows. Use terminal
20942 specific mouse_position_hook.
20943
20944 * termhooks.h (union display_info): Add mac_display_info.
20945
20946 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20947 Set the default minibuffer frame, window_system and the rest of the
20948 frame parameters following what is done in X11.
20949
20950 * w32term.c (w32_initialize): Make static.
20951
20952 * xselect.c (x_handle_selection_clear): Only access
20953 terminal->kboard when MULTI_KBOARD is defined.
20954
20955 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20956 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20957
20958 2007-08-29 Jason Rumney <jasonr@gnu.org>
20959
20960 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20961 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20962
20963 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20964 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20965
20966 * keyboard.c (restore_kboard_configuration): Only define when
20967 MULTI_KBOARD defined.
20968
20969 * makefile.w32-in: Update dependancies from Makefile.in.
20970 (OBJ1): Add terminal.$(O)
20971
20972 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20973 Don't define function body.
20974 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20975
20976 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20977
20978 * w32.c (request_sigio, unrequest_sigio): Remove.
20979
20980 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20981 (w32con_clear_frame, w32con_clear_end_of_line)
20982 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20983 (w32con_delete_glyphs, w32con_set_terminal_window)
20984 (scroll_line, w32_sys_ring_bell): Add frame arg.
20985 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20986 Add terminal arg.
20987 (PICK_FRAME): Remove.
20988 (w32con_write_glyphs): Use frame specific terminal coding.
20989 (one_and_only_w32cons): New global variable.
20990 (initialize_w32_display): Use it for storing hooks.
20991 (create_w32cons_output): New function.
20992
20993 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20994 arg a frame.
20995
20996 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20997 Set window_system.
20998 (x_set_tool_bar_lines): Don't use updating_frame.
20999 (Fx_create_frame): Set terminal and ref count.
21000 (Fx_open_connection): Remove window-system check.
21001
21002 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
21003
21004 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
21005 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
21006 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
21007 Add frame arg.
21008 (x_delete_terminal, w32_create_terminal): New functions.
21009 (w32_term_init): Create a terminal.
21010 (w32_initialize): Move terminal specific initialization to
21011 w32_create_terminal.
21012
21013 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
21014 (w32_clear_rect, w32_clear_area): Use background from frame.
21015 (w32_display_info): Add terminal.
21016 (w32_sys_ring_bell, x_delete_display): Declare here.
21017
21018 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
21019
21020 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
21021
21022 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
21023
21024 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
21025 Fix get_named_tty calls for the controlling tty.
21026
21027 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
21028
21029 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
21030
21031 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
21032
21033 * term.c (tty_insert_glyphs): Add missing first parameter.
21034
21035 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
21036
21037 * buffer.c (Fbuffer_list, Fbury_buffer):
21038 Take frame->buried_buffer_list into account.
21039
21040 * cm.c (current_tty): New variable, for cmputc().
21041 (cmputc): Use it.
21042 (cmcheckmagic): Add tty parameter, look up terminal streams there.
21043 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
21044 (cmgoto): Add tty parameter. Pass it on to calccost().
21045 Use emacs_tputs() instead of tputs().
21046
21047 * cm.h (emacs_tputs): New macro to set current_tty, and then call
21048 tputs().
21049 (current_tty): New variable, for cmputc().
21050 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
21051
21052 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
21053 (internal_condition_case, internal_condition_case_1)
21054 (internal_condition_case_2): Don't abort when x_catching_errors.
21055
21056 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
21057 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
21058 prevent crashes caused by bogus longjmps in read_char.
21059
21060 * keymap.h (Fset_keymap_parent): Add EXFUN.
21061
21062 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
21063 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21064 Remove redundant definition.
21065
21066 * macfns.c (x_set_mouse_color, x_make_gc):
21067 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21068
21069 * w32term.c (x_free_frame_resources):
21070 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21071 (w32_initialize): Use the accessor macros for terminal characteristics.
21072
21073 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
21074 Use the accessor macros for terminal characteristics.
21075 * msdos.c (internal_terminal_init): Use the accessor macros for
21076 terminal characteristics.
21077 (ScreenVisualBell, internal_terminal_init):
21078 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21079
21080 * termopts.h (no_redraw_on_reenter): Declare.
21081
21082 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
21083 (mark_terminals, mark_ttys): Declare.
21084 (Fgarbage_collect): Call them.
21085 (mark_object): Mark buried_buffer_list.
21086
21087 * prefix-args.c: Include stdlib.h for exit.
21088
21089 * syssignal.h: Add comment.
21090
21091 * indent.c: Include stdio.h.
21092
21093 * window.h (Vinitial_window_system): Declare.
21094 (Vwindow_system): Delete declaration.
21095
21096 * fontset.c (Finternal_char_font): Use FRAME_RIF.
21097
21098 * image.c (lookup_image): Don't initialize `c' until the xasserts
21099 have been run.
21100
21101 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
21102 FRAME_FOREGROUND_PIXEL.
21103
21104 * print.c (print_preprocess): Don't lose print_depth levels while
21105 iterating.
21106
21107 * widget.c (update_from_various_frame_slots):
21108 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21109
21110 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
21111 frames.
21112 (window_internal_height): Remove bogus make_number call.
21113 (init_window_once): Call make_terminal_frame with two zero parameters.
21114
21115 * fileio.c (Fread_file_name): Update comment.
21116
21117 * callint.c (Fcall_interactively):
21118 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
21119 Make sure it is correctly unwound.
21120
21121 * xsmfns.c (x_session_close): New function.
21122
21123 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
21124 Delete declarations.
21125
21126 * xterm.h: Remove declaration for x_fully_uncatch_errors.
21127 (x_output): Remove background_pixel and foreground_pixel fields.
21128 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
21129 (x_delete_device, x_session_close): Declare.
21130
21131 * lread.c: Include setjmp.h. Update declaration of `read_char'.
21132 (read_filtered_event): Call `read_char' with a local
21133 `wrong_kboard_jmpbuf'.
21134
21135 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
21136 Don't call single_kboard_state. Use FRAME_RIF.
21137
21138 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
21139 systems.
21140
21141 * lisp.h (set_process_environment): Rename to `set_global_environment'.
21142 (Fframe_with_environment, Fset_input_meta_mode)
21143 (Fset_quit_char): EXFUN.
21144 (x_create_device, tty_output, terminal, tty_display_info): Declare.
21145 (init_sys_modes, reset_sys_modes): Update prototypes.
21146 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
21147
21148 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
21149 Vlocal_key_translation_map, and Vkeyboard_translate_table.
21150 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
21151 Delete declarations.
21152 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
21153 (temporarily_switch_to_single_kboard, tty_read_avail_input):
21154 New declarations.
21155
21156 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
21157 already does that during init_display(). Call syms_of_keymap
21158 before syms_of_keyboard. Call `syms_of_terminal'.
21159 Call set_initial_environment, not set_process_environment.
21160 (shut_down_emacs): Call reset_all_sys_modes() instead of
21161 reset_sys_modes().
21162
21163 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
21164 (internal_resolve_face_name, resolve_face_name_error): New functions.
21165 (resolve_face_name): Protect against loops and errors thrown by Fget.
21166 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
21167 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
21168
21169 * scroll.c: Replace CURTTY() with local variables throughout the
21170 file (where applicable).
21171 (calculate_scrolling, calculate_direct_scrolling)
21172 (scrolling_1, scroll_cost): Use the accessor macros for terminal
21173 characteristics.
21174
21175 * keymap.c (Vfunction_key_map): Remove.
21176 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
21177 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
21178 (Vkey_translation_map): Remove.
21179 (syms_of_keymap): Remove DEFVAR for key-translation-map.
21180 (Fdescribe_buffer_bindings)
21181 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
21182 Update for terminal-local key-translation-map.
21183
21184 * Makefile.in (callproc.o): Update dependencies.
21185 (lisp, shortlisp): Add termdev.elc.
21186 (obj): Add terminal.o.
21187 (terminal.o): Add dependencies.
21188 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
21189 (data.o, fns.o): Add termhooks.h dependency.
21190 (SOME_MACHINE_LISP): Add dnd.elc.
21191 (minibuf.o): Fix typo.
21192 Update dependencies.
21193
21194 * data.c (do_symval_forwarding, store_symval_forwarding)
21195 (find_symbol_value): Use the selected frame's keyboard, not
21196 current_kboard.
21197
21198 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
21199 Vwindow_system.
21200
21201 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
21202 Fmenu_bar_open.
21203 (syms_of_xmenu): Update defsubr.
21204 (mouse_position_for_popup, Fx_popup_menu)
21205 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
21206 (set_frame_menubar, free_frame_menubar)
21207 (create_and_show_popup_menu, xmenu_show)
21208 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
21209 an X frame.
21210
21211 * xselect.c (x_own_selection): Abort if not an X frame.
21212 (some_frame_on_display): Check if it is an X frame.
21213 (x_handle_selection_clear): Deal with MULTI_KBOARD.
21214
21215 * coding.c: Include frame.h and termhooks.h.
21216 (terminal_coding, keyboard_coding): Delete.
21217 (Fset_terminal_coding_system_internal)
21218 (Fset_keyboard_coding_system_internal)
21219 (Fkeyboard_coding_system)
21220 (Fterminal_coding_system): Add a terminal parameter.
21221 Get terminal_coding from the terminal.
21222 (init_coding_once): Don't call setup_coding_system here.
21223
21224 * dispextern.h (set_scroll_region, turn_off_insert)
21225 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
21226 (tty_clear_end_of_line, tty_setup_colors)
21227 (delete_tty, updating_frame)
21228 (produce_special_glyphs, produce_glyphs, write_glyphs)
21229 (insert_glyphs): Remove.
21230 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
21231 (tty_turn_off_highlight, get_tty_size): Add declaration.
21232 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
21233
21234 * frame.h (enum output_method): Add output_initial.
21235 (struct x_output): Delete.
21236 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21237 Access foreground_pixel and background_pixel directly from the frame.
21238 (tty_display): Delete.
21239 (struct frame): Add buried_buffer_list, foreground_pixel,
21240 background_pixel and terminal. Delete kboard.
21241 (union output_data): Add tty.
21242 (FRAME_KBOARD): Get the kboard from the terminal.
21243 (FRAME_INITIAL_P): New macro.
21244 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
21245 (Qterm_environment_variable, Qdisplay_environment_variable)
21246 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
21247 New declarations.
21248
21249 * termchar.h (tty_output, tty_display_info): New structures.
21250 (tty_list): Declare.
21251 (FRAME_TTY, CURTTY): New macros.
21252 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
21253 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
21254 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
21255 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
21256
21257 * callproc.c: Include frame.h and termhooks.h, for terminal
21258 parameters.
21259 (add_env): New function.
21260 (child_setup): Use it.
21261 (child_setup, getenv_internal): Handle the new Vprocess_environment.
21262 (getenv_internal): Fix get_terminal_param call.
21263 (Fgetenv_internal, egetenv): Update doc.
21264 (syms_of_callproc): Initialize Vprocess_environment to nil.
21265 Register and initialize them. Remove obsolete defvars. Update doc
21266 strings.
21267 (child_setup): Handle Vlocal_environment_variables.
21268 (getenv_internal): Add terminal parameter.
21269 Handle Vlocal_environment_variables.
21270 (Fgetenv_internal): Add terminal parameter.
21271 (child_setup, getenv_internal, Fgetenv_internal): Store the local
21272 environment in a frame (not terminal) parameter. Update doc strings.
21273 (set_initial_environment): Rename from set_global_environment.
21274 Store Emacs environment in initial frame parameter.
21275
21276 * xdisp.c (redisplay_internal): Update references to
21277 `previous_terminal_frame'.
21278 (display_mode_line, Fformat_mode_line): Replace calls to
21279 `push_frame_kboard' with `push_kboard'.
21280 (get_glyph_string_clip_rects): Add extra parentheses and
21281 braces to prevent compiler warnings.
21282 (calc_pixel_width_or_height): Add xassert to check that the
21283 frame is alive. Don't call `lookup_image' on a termcap frame.
21284 (message2_nolog, message3_nolog, redisplay_internal)
21285 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
21286 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
21287 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
21288 (Fx_display_pixel_width, Fx_display_pixel_height)
21289 (Fx_display_planes, Fx_display_color_cells)
21290 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
21291 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
21292 (Fx_display_backing_store, Fx_display_visual_class)
21293 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
21294 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
21295
21296 * xfns.c (x_set_foreground_color x_set_background_color)
21297 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
21298 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21299 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
21300 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
21301 terminal that is being deleted.
21302 (Fx_create_frame): Use `store_frame_param' to set `window-system'
21303 frame parameter, and make sure it overrides any user-supplied setting.
21304 (Fx_close_connection, Fx_synchronize): Unify argument names with
21305 the rest of the DEFUNs.
21306
21307 * dispnew.c (Fsend_string_to_terminal): Update call to
21308 `get_tty_terminal'.
21309 (Fredraw_frame, Fsend_string_to_terminal)
21310 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
21311 FRAME_TERMCAP_P and FRAME_TTY.
21312 (window_change_signal): Don't believe width/height values that are
21313 impossibly small.
21314 (Vinitial_window_system): Rename from Vwindow_system.
21315 (termscript, Wcm, rif): Delete.
21316
21317 * termhooks.h (struct terminal): New struct containing the
21318 previously global text display hooks and new members NAME,
21319 DELETED and PARAM_ALIST.
21320 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
21321 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
21322 (FRAME_RIF): New macros.
21323 (get_terminal_param, get_device): New declarations.
21324 (termscript): Delete declaration.
21325
21326 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
21327 (XTflash, x_free_frame_resources, x_scroll_bar_create)
21328 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
21329 FRAME_FOREGROUND_PIXEL.
21330 (x_fully_uncatch_errors): Disable definition.
21331 (x_scroll_bar_expose): Fix reference to foreground pixel.
21332 (XTread_socket): Disable loop on all X displays.
21333 (x_delete_terminal): Don't set terminal->deleted and let
21334 delete_terminal delete the frames on the terminal.
21335 (x_delete_display): Doc update to reflect changes in
21336 delete_terminal.
21337 (x_display_info) <terminal>: Move member earlier in the struct.
21338 (deleting_tty): Remove old variable.
21339 (Fsuspend_tty): Call clear_tty_hooks.
21340 (Fresume_tty, init_tty): Call set_tty_hooks.
21341 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21342 errors on X frames.
21343 (x_catch_errors_unwind): Abort if x_error_message is NULL.
21344 (handle_one_xevent): Initialize `f' to NULL.
21345 (x_delete_terminal, x_create_terminal): New functions.
21346 (XTset_terminal_modes, XTreset_terminal_modes)
21347 (XTread_socket, x_connection_closed, x_term_init)
21348 (x_term_init, x_delete_display): Add terminal parameter.
21349 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21350 X connections.
21351
21352 * frame.c: Include termchar.h.
21353 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21354 (Qwindow_system, Qenvironment, Qterm_environment_variable)
21355 (Qdisplay_environment_variable): New vars.
21356 (Fframep): Deal with output_initial.
21357 (Fframe-live-p): Doc fix.
21358 (Fwindow-system): New function.
21359 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21360 (make_terminal_frame): Don't create frames on a terminal that is
21361 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21362 (store_frame_param): Check for found_for_frame before calling XFRAME.
21363 (Fmake_terminal_frame): Handle NULL tty names correctly.
21364 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21365 (Fdelete_frame): Remove unused variable `count'. Don't allow other
21366 frames to refer to a deleted frame in their 'environment parameter.
21367 (Fframe_with_environment): New function.
21368 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
21369 (get_future_frame_param): New function.
21370 (Fmake_terminal_frame): Use it.
21371 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21372
21373 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21374 * sysdep.c (reset_sys_modes): Update for renames.
21375
21376 * keyboard.c (tty_read_avail_input): New function.
21377 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
21378 (syms_of_keyboard): Defsubr them.
21379 (Fset_input_meta_mode, Fset_quit_char): New functions.
21380 (Fset_input_mode): Split to above functions.
21381 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21382 parameter. Use it in call to `read_char'.
21383 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
21384 Set wrong_kboard_jmpbuf correctly in recursive calls.
21385 Use current_kboard to access Vkeyboard_translate_table.
21386 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21387 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21388 Update longjmp invocations. Remember the original current_kboard,
21389 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21390 changes it. Comment out unnecessary calls to
21391 `record_single_kboard_state' and `any_kboard_state'.
21392 Update recursive calls.
21393 (wrong_kboard_jmpbuf): Remove global variable.
21394 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21395 Handle deleted interrupted_kboards correctly; that is a legal
21396 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21397 and read_char calls. Abort if interrupted_kboard died in read_char.
21398 (any_kboard_state, single_kboard_state)
21399 (push_frame_kboard): Remove function.
21400 (pop_kboard): Switch out of single_kboard mode if the kboard has
21401 been deleted. Remove unused variable. Help debugging by not
21402 changing current_kboard unnecessarily. Set current_kboard to the
21403 kboard of the selected frame when the stored kboard object has
21404 been deleted before pop_kboard.
21405 (temporarily_switch_to_single_kboard): Change first parameter to a
21406 frame pointer. Throw an error when caller wants to change kboards
21407 while in single_kboard mode. Don't push_kboard if we weren't in
21408 single kboard state. Don't pop_kboard if we popped into any
21409 kboard state.
21410 (restore_kboard_configuration): Abort if pop_kboard changed the
21411 kboard in single_kboard mode. Call pop_kboard only after setting
21412 up single_kboard mode.
21413 (Frecursive_edit): Switch to single_kboard mode only in nested
21414 command loops.
21415 (cmd_error, command_loop, command_loop_1, timer_check):
21416 Comment out unnecessary call to `any_kboard_state' and
21417 `record_single_kboard_state'.
21418 (delete_kboard): Exit single_kboard mode if we have just deleted
21419 that kboard. Use FRAME_KBOARD.
21420 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21421 `fatal_error_signal'.
21422 (record_single_kboard_state): Don't push_kboard if we weren't in
21423 single kboard state. Don't pop_kboard if we popped into any
21424 kboard state.
21425 (push_frame_kboard): Rename to push_kboard.
21426 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21427 (read_avail_input): Read input from all terminals.
21428 (mark_kboards): Also mark Vkeyboard_translate_table.
21429 (kbd_buffer_store_event_hold): Simplify condition.
21430 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21431 (Vkeyboard_translate_table): Move to struct kboard.
21432 (init_kboard): Initialize Vkeyboard_translate_table.
21433 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21434 Vkeyboard_translate_table. Update doc strings. Update docs of
21435 local-function-key-map and function-key-map.
21436
21437 * terminal.c: New file.
21438
21439 * term.c: Include errno.h.
21440 (Vring_bell_function, device_list, initial_device)
21441 (next_device_id, ring_bell, update_begin, update_end)
21442 (set_terminal_window, cursor_to, raw_cursor_to)
21443 (clear_to_end, clear_frame, clear_end_of_line)
21444 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21445 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21446 (syms_of_term): Move their initialization to terminal.c.
21447 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21448 (Ftty_display_color_cells)
21449 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21450 (clear_tty_hooks, set_tty_hooks)
21451 (init_tty, maybe_fatal): New functions.
21452 (Ftty_type): Return nil if terminal is not on a tty instead of
21453 throwing an error. Doc update.
21454 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21455 Doc update. Initialize new subrs and variables.
21456 (delete_tty): Use terminal->deleted.
21457 (tty_set_terminal_modes): Rename from set_terminal_modes.
21458 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21459 (set_scroll_region): Rename to `tty_set_scroll_region'.
21460 (turn_on_insert): Rename to `tty_turn_on_insert'.
21461 (turn_off_insert): Rename to `tty_turn_off_insert'.
21462 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21463 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21464 (toggle_highligh): Rename to `tty_toggle_highlight'.
21465 (background_highlight): Rename to `tty_background_highlight'.
21466 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21467 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21468 (tty_set_scroll_region, tty_background_highlight)
21469 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21470 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21471 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21472 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21473 Add static modifier.
21474 (tty_reset_terminal_modes, tty_set_terminal_window)
21475 (tty_set_scroll_region, tty_background_highlight)
21476 (tty_highlight_if_desired, tty_cursor_to)
21477 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21478 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21479 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21480 renames.
21481
21482 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21483
21484 * keyboard.c: Qrtl is new.
21485 (parse_tool_bar_item): Handle :rtl keyword.
21486 (syms_of_keyboard): Intern :rtl keyword.
21487
21488 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21489
21490 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21491 so no Lisp code is executed.
21492 (file_for_image, find_rtl_image): New functions.
21493 (xg_get_image_for_pixmap): Use file_for_image.
21494 (update_frame_tool_bar): If direction is RTL, use RTL image if
21495 defined. Use Gtk stock images if defined.
21496
21497 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21498
21499 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21500 for nonexistent or zero-width glyph in composition glyph.
21501
21502 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21503
21504 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21505
21506 * xdisp.c (Finvisible_p): New function.
21507 (syms_of_xdisp): defsubr it.
21508
21509 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
21510
21511 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21512 Doc fixes.
21513
21514 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21515
21516 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21517
21518 2007-08-24 Martin Rudalics <rudalics@gmx.at>
21519
21520 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21521 whether decoding has modified buffer contents.
21522
21523 2007-08-24 Jason Rumney <jasonr@gnu.org>
21524
21525 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21526 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21527 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21528 (init_svg_functions) [HAVE_NTGUI]: New function.
21529 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21530 (svg_load_image): Use them.
21531 (svg_load_image) [HAVE_NTGUI]: Implement background.
21532
21533 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21534
21535 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21536 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21537 (LIBX): Remove @RSVG_LIBS@.
21538 (LIBES): Add $(RSVG_LIBS).
21539
21540 * image.c (svg_load_image): Blend with specified background if exists.
21541 Use IMAGE_BACKGROUND. Add Mac OS Support.
21542
21543 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21544 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21545 Remove macros.
21546 [MAC_OSX] (socket_callback): Do nothing.
21547 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21548 ReceiveNextEvent.
21549 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21550 socket_callback.
21551 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21552
21553 2007-08-22 Glenn Morris <rgm@gnu.org>
21554
21555 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21556
21557 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21558
21559 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21560
21561 * image.c: Add support for SVG images. Some additional comments
21562 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21563 (svg_image_p): New function to test for SVG image.
21564 (svg_load): New function to load SVG image.
21565 (svg_load_image): New function, helper for svg_load.
21566 (Qsvg): New Lisp_object.
21567 (svg_keyword_index): New enum.
21568 (svg_format): New static `image_keyword' struct.
21569 (svg_type): New static `image_type' struct.
21570 (librsvg/rsvg.h): Include it.
21571
21572 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21573
21574 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21575
21576 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21577
21578 * lread.c (Qold_style_backquotes): New var.
21579 (syms_of_lread): Init and staticpro it.
21580 (load_warn_old_style_backquotes): New fun.
21581 (Fload): Use them to warn about old style backquotes.
21582 (end_of_file_error, Fload): Remove unused vars.
21583
21584 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21585
21586 * lread.c (Vold_style_backquotes): New var.
21587 (syms_of_lread): Init and export it to Elisp.
21588 (read1): Set it when we find an old-style (back)quote.
21589
21590 2007-08-22 Jason Rumney <jasonr@gnu.org>
21591
21592 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21593
21594 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21595
21596 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21597
21598 2007-08-19 Richard Stallman <rms@gnu.org>
21599
21600 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21601
21602 2007-08-19 Andreas Schwab <schwab@suse.de>
21603
21604 * alloc.c (pure): Round PURESIZE up.
21605
21606 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21607
21608 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21609 active frame.
21610
21611 2007-08-16 Richard Stallman <rms@gnu.org>
21612
21613 * eval.c (Fcommandp): Add parens to clarify.
21614
21615 * minibuf.c (Fall_completions): Use enum for type of table.
21616
21617 * emacs.c (USAGE2): Improve text.
21618
21619 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21620
21621 * term.c (tty_default_color_capabilities): Declare static
21622 variables in file scope, to avoid HPUX compiler problem.
21623
21624 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21625
21626 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21627 to gtk_toolbar_insert.
21628
21629 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21630
21631 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21632
21633 * insdel.c (reset_var_on_error): New fun.
21634 (signal_before_change, signal_after_change):
21635 Use it to reset (after|before)-change-functions to nil in case of error.
21636 Bind inhibit-modification-hooks to t.
21637 Don't bind (after|before)-change-functions to nil while they run.
21638
21639 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21640
21641 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21642 filling pixmap with stippled background.
21643
21644 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21645
21646 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21647 Don't use invisible frame as parent window for repositioning.
21648
21649 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21650
21651 * print.c (new_backquote_output): Rename from old_backquote_output.
21652 (print): Inverse its logic (according to its name) so as to match the
21653 behavior of new_backquote_flag in lread.c.
21654
21655 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21656
21657 * gmalloc.c (posix_memalign): New function.
21658
21659 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21660 ActivateControl/DeactivateControl here.
21661 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21662 frame-notice-user-settings is non-nil.
21663 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21664 for kEventParamFMFontStyle.
21665 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21666 mac_pass_command_to_system and mac_pass_control_to_system here.
21667 (XTread_socket): Call ActivateControl/DeactivateControl here.
21668 (XTread_socket) [TARGET_API_MAC_CARBON]:
21669 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21670 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21671 for window repositioning.
21672
21673 2007-08-08 Glenn Morris <rgm@gnu.org>
21674
21675 * Replace `iff' in doc-strings and comments.
21676
21677 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
21678
21679 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21680
21681 2007-08-07 Martin Rudalics <rudalics@gmx.at>
21682
21683 * fileio.c (Finsert_file_contents): Run format-decode and
21684 after_insert_file_functions on entire buffer when REPLACE is
21685 non-nil and inhibit modification_hooks and point_motion_hooks.
21686 For consistency, run after_insert_file_functions iff something
21687 got inserted. Move signal_after_change and update_compositions
21688 after code running after_insert_file_functions. Make sure that
21689 undo_list doesn't record intermediate steps of the decoding process.
21690
21691 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21692
21693 * emacs.c (main)
21694 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21695 Call malloc_enable_thread on interactive startup.
21696
21697 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21698 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21699 [USE_PTHREAD]: Conditionalize with it.
21700 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21701 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21702 New functions.
21703
21704 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
21705
21706 * xdisp.c (redisplay_window): When restoring original buffer
21707 position, make sure it is still valid.
21708
21709 * image.c (png_load): Ignore png-supplied background color.
21710
21711 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21712
21713 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21714 Use kCFAbsoluteTimeIntervalSince1970.
21715
21716 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21717 New variable.
21718 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21719 event loop should be quit.
21720 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21721 Quit dialog event loop if quit_dialog_event_loop is set.
21722
21723 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21724 (Selection): New typedef. Use instead of ScrapRef.
21725 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21726 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21727 (mac_clear_selection): Rename from clear_scrap.
21728 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21729 scrap_has_target_type. All uses changed.
21730 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21731 (mac_selection_has_target_p): New functions.
21732 (mac_put_selection_value): Rename from put_scrap_string.
21733 (mac_get_selection_value): Rename from get_scrap_string.
21734 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21735 (put_scrap_private_timestamp, scrap_has_target_type)
21736 (get_scrap_private_timestamp): Remove functions.
21737 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21738 (x_own_selection, x_get_local_selection):
21739 Use mac_valid_selection_value_p.
21740 (x_own_selection): Don't use put_scrap_private_timestamp.
21741 Record OWNERSHIP-INFO into Vselection_alist instead.
21742 (x_get_local_selection): Don't check type if request is local.
21743 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21744 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21745
21746 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21747
21748 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21749 add comment explaining why.
21750
21751 2007-08-03 Richard Stallman <rms@gnu.org>
21752
21753 * fileio.c (Fvisited_file_modtime): Use make_time.
21754
21755 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21756
21757 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21758 build.
21759
21760 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21761
21762 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21763
21764 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21765
21766 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21767
21768 2007-07-30 Richard Stallman <rms@gnu.org>
21769
21770 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21771
21772 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21773
21774 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21775
21776 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
21777
21778 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21779 remote default-directory.
21780
21781 * buffer.c (mode-line-format): Update doc string.
21782
21783 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21784
21785 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21786 scroll bar gap.
21787 (x_scroll_bar_create): Set bar->fringe_extended_p.
21788 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21789 on frame edge. Check fringe background extension. Don't clear
21790 extended fringe background area.
21791
21792 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21793 (w32_fill_area): Enclose multiple statements with do ... while (0).
21794
21795 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21796 Extend fringe background to scroll bar gap.
21797 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21798 Set bar->fringe_extended_p.
21799 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21800 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21801 background extension. Don't clear extended fringe background area.
21802
21803 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21804 New member fringe_extended_p.
21805
21806 2007-07-25 Glenn Morris <rgm@gnu.org>
21807
21808 * Relicense all FSF files to GPLv3 or later.
21809
21810 * COPYING: Switch to GPLv3.
21811
21812 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21813
21814 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21815
21816 * data.c (Finteractive_form): Check for the presence of an
21817 `interactive-form' symbol property more thoroughly.
21818
21819 * data.c (Finteractive_form): Use an `interactive-form' property if
21820 present, analogous to the function-documentation property.
21821
21822 2007-07-24 Jason Rumney <jasonr@gnu.org>
21823
21824 * w32fns.c (x_real_positions): Get real position from OS instead of
21825 calculating it.
21826
21827 2007-07-23 Jason Rumney <jasonr@gnu.org>
21828
21829 * filelock.c (current_lock_owner): Allow for @ sign in username.
21830
21831 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
21832
21833 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21834 remote default-directory.
21835
21836 * buffer.c (mode-line-format): Describe above case in doc string.
21837
21838 2007-07-20 Eli Zaretskii <eliz@gnu.org>
21839
21840 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21841 Define if not defined.
21842
21843 2007-07-18 Jason Rumney <jasonr@gnu.org>
21844
21845 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21846
21847 2007-07-18 Richard Stallman <rms@gnu.org>
21848
21849 * data.c (Fsetq_default): Doc fix.
21850
21851 * eval.c (Fsetq): Doc fix.
21852
21853 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
21854
21855 * coding.c (Ffind_operation_coding_system):
21856 * eval.c (For, Fand): Doc fixes.
21857 Reported by Johan Bockgård.
21858
21859 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21860
21861 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21862
21863 * xterm.h: Declare x_ewmh_activate_frame.
21864
21865 * xterm.c (x_ewmh_activate_frame): New function.
21866 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21867
21868 2007-07-17 Martin Rudalics <rudalics@gmx.at>
21869
21870 * window.c (Fdisplay_buffer): If largest or LRU window is the
21871 only window, split it even if it is not eligible for splitting.
21872 This restores the original behavior broken by the 2007-07-15
21873 change.
21874
21875 2007-07-17 Glenn Morris <rgm@gnu.org>
21876
21877 * abbrev.c (abbrev_check_chars): New function.
21878 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21879 Call abbrev_check_chars to check abbrev characters are word
21880 constituents. Doc fix.
21881
21882 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21883
21884 * process.c (Fstart_process, Fmake_network_process)
21885 (read_process_output): Fix up last changes.
21886
21887 2007-07-16 Eli Zaretskii <eliz@gnu.org>
21888
21889 * makefile.w32-in (clean): Don't delete *~.
21890
21891 2007-07-16 Andreas Schwab <schwab@suse.de>
21892
21893 * window.c (Fdisplay_buffer): Use NILP.
21894 (Fset_window_scroll_bars): Likewise.
21895
21896 2007-07-15 Martin Rudalics <rudalics@gmx.at>
21897
21898 * window.c (window_min_size_2): New function.
21899 (window_min_size_1, size_window, Fdisplay_buffer)
21900 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21901 windows without mode- or header-lines when window-min-height is
21902 too small.
21903 (size_window): Reset nodelete_p after testing it, following an
21904 earlier note by Kim F. Storm.
21905 (display_buffer): Do not set split_height_threshold to twice the
21906 value of window_min_height to avoid changing the value of a
21907 customizable variable. Rather explicitly check whether the
21908 height of the window that shall be splitted is at least as large
21909 as split_height_threshold.
21910 (Fwindow_full_width_p): New defun.
21911 (syms_of_window): Defsubr it.
21912
21913 * window.h: Add EXFUN for Fwindow_full_width_p.
21914
21915 2007-07-14 Jason Rumney <jasonr@gnu.org>
21916
21917 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21918
21919 2007-07-14 Richard Stallman <rms@gnu.org>
21920
21921 * eval.c (maybe_call_debugger): New function.
21922 (find_handler_clause): Use maybe_call_debugger.
21923 Call it when the handler says `debug'.
21924 Eliminate DEBUGGER_VALUE_PTR.
21925 (Fsignal): Eliminate debugger_value.
21926 (Qdebug): New variable.
21927 (syms_of_eval): Initialize it.
21928
21929 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
21930
21931 * eval.c (Fprogn):
21932 * keyboard.c (Ftrack_mouse):
21933 * print.c (Fwith_output_to_temp_buffer):
21934 * window.c (Fsave_window_excursion): Doc fix.
21935
21936 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21937
21938 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21939
21940 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21941
21942 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21943 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21944 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21945 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21946 Remove unused encoding_carryover.
21947 * process.c: Adjust all functions accordingly.
21948
21949 2007-07-12 Richard Stallman <rms@gnu.org>
21950
21951 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21952
21953 2007-07-11 Jason Rumney <jasonr@gnu.org>
21954
21955 * makefile.w32-in (LIBS): Include OLE32.
21956
21957 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21958 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21959
21960 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21961
21962 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21963 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21964 from a Lisp_Object into a bare pointer.
21965 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21966 Adjust the code correspondingly.
21967
21968 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21969
21970 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21971 (term_show_mouse_face): Remove unused var `j'.
21972 (handle_one_term_event): Remove unused vars `i' and `j'.
21973 Don't cast return value of ttyname since it's not necessary.
21974
21975 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21976
21977 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21978 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21979
21980 * fns.c (map_char_table): Use an array of int for `indices' rather than
21981 an array of Lisp_Objects (which are only ever integers anyway).
21982 (Fmap_char_table): Update caller.
21983 * lisp.h: Update prototype.
21984 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21985 * fontset.c (Ffontset_info):
21986 * casetab.c (set_case_table): Update callers.
21987
21988 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21989
21990 * keymap.c (struct accessible_keymaps_data)
21991 (struct where_is_internal_data): New structures.
21992 (accessible_keymaps_1, where_is_internal_1): Use them to change
21993 interface to adhere to the one used by map_keymap.
21994 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21995 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21996
21997 * keymap.h (map_keymap_function_t): More informative prototype.
21998
21999 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
22000
22001 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
22002 (looking_at_1): Don't change search_regs and last_thing_searched
22003 if `inhibit-changing-match-data' is non-nil.
22004 (string_match_1, search_buffer, set_search_regs): Likewise.
22005 (syms_of_search): Add Lisp level definition for
22006 `inhibit-changing-match-data' and set it to nil.
22007 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
22008 start and end of the match, instead of using values in search_regs.
22009
22010 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
22011
22012 * minibuf.c (Fcompleting_read): New value `confirm-only'
22013 for `require-match'.
22014
22015 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
22016
22017 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
22018 part of the 2007-06-27 change to syms_of_fileio.
22019
22020 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22021
22022 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
22023 Check WINDOWP before using XWINDOW. Consolidate return statements.
22024
22025 2007-06-27 Richard Stallman <rms@gnu.org>
22026
22027 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
22028
22029 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
22030
22031 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
22032
22033 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22034
22035 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
22036 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
22037 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
22038 (_free_internal, memalign): Use them.
22039 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
22040 Initialize to PTHREAD_MUTEX_INITIALIZER.
22041 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
22042 (morecore_nolock): Rename from morecore. All uses changed.
22043 Use only nolock versions of internal allocation functions.
22044 (_malloc_internal_nolock, _realloc_internal_nolock)
22045 (_free_internal_nolock): New functions created from
22046 _malloc_internal, _realloc_internal, and _free_internal.
22047 (_malloc_internal, _realloc_internal, _free_internal): Use them.
22048 Copy hook value to automatic variable before its use.
22049 (memalign): Copy hook value to automatic variable before its use.
22050
22051 2007-06-26 Kenichi Handa <handa@m17n.org>
22052
22053 * coding.c (Ffind_operation_coding_system): Docstring improved.
22054 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
22055
22056 2007-06-25 David Kastrup <dak@gnu.org>
22057
22058 * keymap.c (Fcurrent_active_maps): Add `position' argument.
22059 (Fwhere_is_internal): Adjust call to `current-active-maps' to
22060 cater for additional parameter.
22061
22062 * keymap.h: Adjust number of parameters to `current-active-maps'.
22063
22064 * doc.c (Fsubstitute_command_keys): Adjust call of
22065 `current-active-maps'.
22066
22067 2007-06-25 David Kastrup <dak@gnu.org>
22068
22069 * callint.c (Fcall_interactively): Make the parsing of interactive
22070 specs somewhat more readable.
22071
22072 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22073
22074 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
22075 to scroll bar gap also when bitmap fills fringe. Draw only foreground
22076 if extended background has already been filled.
22077
22078 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22079
22080 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
22081 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
22082
22083 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
22084 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
22085 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
22086 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
22087 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
22088 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
22089 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
22090 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
22091 Run timers during dialog popup.
22092 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
22093
22094 2007-06-21 Jason Rumney <jasonr@gnu.org>
22095
22096 * image.c (convert_mono_to_color_image): Swap fore and background.
22097
22098 2007-06-20 Jason Rumney <jasonr@gnu.org>
22099
22100 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
22101 (w32_free_bdf_font): Unmap memory not handle.
22102
22103 2007-06-20 Sam Steingold <sds@gnu.org>
22104
22105 * gmalloc.c (__morecore): Fix the declaration to comply with the
22106 definition.
22107
22108 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
22109
22110 * w32term.c (w32_delete_display): Remove leftover declaration.
22111 (w32_define_cursor, w32_initialize): Make static.
22112
22113 * w32.c (_wsa_errlist): Fix typo in error message.
22114 (init_environment): Ignore any environment variable from the
22115 registry having a null value.
22116
22117 2007-06-20 Glenn Morris <rgm@gnu.org>
22118
22119 * Makefile.in (LIBGIF): Default to -lgif.
22120
22121 2007-06-17 Jason Rumney <jasonr@gnu.org>
22122
22123 * w32menu.c (add_menu_item): Don't use multibyte string functions on
22124 unicode strings.
22125
22126 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
22127
22128 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
22129 Fix typo in docstring.
22130
22131 2007-06-16 Eli Zaretskii <eliz@gnu.org>
22132
22133 * w32menu.c (add_menu_item): Escape `&' characters in menu items
22134 and their keybindings.
22135
22136 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
22137
22138 * composite.c (update_compositions): Fix last fix.
22139
22140 2007-06-14 Jason Rumney <jasonr@gnu.org>
22141
22142 * w32.c (get_process_times_fn): New function pointer.
22143 (globals_of_w32): Intialize it if present in kernel32.dll.
22144 (w32_get_internal_run_time): New function.
22145
22146 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
22147
22148 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
22149
22150 * composite.c (update_compositions): Check the validness of
22151 compositions.
22152
22153 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22154
22155 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
22156 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
22157
22158 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
22159 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
22160
22161 * macgui.h (USE_MAC_TOOLBAR): New define.
22162
22163 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22164 Return immediately unless popup is activated.
22165
22166 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
22167 background to scroll bar gap.
22168 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
22169 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
22170 scroll bars on frame edge. Check fringe background extension.
22171 Don't clear extended fringe background area.
22172 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
22173 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
22174 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
22175 [USE_MAC_TOOLBAR]: New macros.
22176 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
22177 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
22178 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
22179 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
22180 [USE_MAC_TOOLBAR]: New functions.
22181 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
22182 manually if previous repositioning has failed.
22183 (mac_handle_keyboard_event): Use precomputed event kind.
22184 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
22185 as tool bar item click. Handle mouse movement over tool bar items.
22186
22187 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
22188 toolbar_win_gravity.
22189 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
22190 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
22191 Add externs.
22192
22193 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
22194 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
22195
22196 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
22197
22198 * image.c (search_image_cache): Remove unused variable.
22199
22200 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
22201
22202 * xfns.c, xmenu.c: Link to xaw3d if available.
22203
22204 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22205
22206 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
22207 frame_foreground and frame_background.
22208
22209 * image.c (lookup_image): Save frame foreground and background colors.
22210 (search_image_cache): Check if saved and current frame colors match.
22211
22212 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
22213
22214 * regex.c (regex_compile): Remove the `regnum' counter.
22215 Use bufp->re_nsub instead. Add support for \(?N:RE\).
22216
22217 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
22218
22219 * term.c: Include intervals.h to declare Fget_text_property.
22220
22221 2007-06-10 Jason Rumney <jasonr@gnu.org>
22222
22223 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
22224
22225 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
22226
22227 * callint.c (Fcall_interactively):
22228 * editfns.c (Fdelete_and_extract_region):
22229 * fileio.c (Fread_file_name):
22230 * fns.c (Fmapconcat):
22231 * keyboard.c (cmd_error_internal):
22232 * keymap.c (Fkey_description):
22233 * lread.c (openp):
22234 * minibuf.c (read_minibuf):
22235 * search.c (wordify):
22236 * sunfns.c (sel_read):
22237 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
22238 * xfns.c (x_default_scroll_bar_color_parameter):
22239 * xmenu.c (menu_help_callback):
22240 * xselect.c (Fx_get_atom_name):
22241 * xterm.c (x_term_init): Use empty_unibyte_string.
22242
22243 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
22244
22245 * alloc.c (init_strings): Initialize canonical empty strings.
22246 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
22247 canonical empty string when the requested size is 0.
22248
22249 * emacs.c (empty_unibyte_string): Rename from empty_string.
22250 (empty_multibyte_string): New canonical empty string.
22251 (syms_of_emacs): Don't initialize empty_string.
22252
22253 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
22254 string, if appropriate.
22255 (empty_unibyte_string, empty_multibyte_string): New externs.
22256 (empty_string): Remove extern.
22257
22258 * lread.c (syms_of_lread): Use empty_unibyte_string.
22259
22260 2007-06-07 Jason Rumney <jasonr@gnu.org>
22261
22262 * s/ms-w32.h: Don't define HAVE_TZNAME.
22263
22264 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
22265
22266 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22267
22268 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
22269
22270 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
22271 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
22272
22273 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22274 Don't call next handler.
22275 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
22276 Remove argument. Install handler to application.
22277 (set_frame_menubar): Don't change deep_p.
22278 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
22279 FRAME_OUTER_TO_INNER_DIFF_Y.
22280 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22281 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22282 [HAVE_DIALOGS]: New macros.
22283 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
22284 Use them.
22285 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
22286
22287 * macselect.c [MAC_OSX] (install_service_handler): Rename from
22288 init_service_handler. All callers changed. Return OSStatus value.
22289
22290 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
22291 All callers changed so as not to call SetPortWindowPort.
22292 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
22293 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
22294 mac_draw_string_common.
22295 (mac_draw_image_string_qd): Likewise.
22296 (mac_draw_string_common): Use them. Add INLINE.
22297 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
22298 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
22299 GetGlobalMouse.
22300 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
22301 and FRAME_OUTER_TO_INNER_DIFF_Y.
22302 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
22303 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
22304 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
22305 repositioning window to mac_handle_window_event.
22306 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
22307 saving window location to mac_handle_window_event
22308 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
22309 (install_menu_target_item_handler): Remove argument in extern.
22310 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
22311 Also accept command events.
22312 (do_keystroke): New function created from XTread_socket.
22313 (init_command_handler): Remove functions.
22314 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
22315 and save window location by kEventWindowShowing and kEventWindowHiding
22316 handlers here. Don't call next handler for window state change and
22317 focus events.
22318 (mac_handle_application_event, mac_handle_keyboard_event)
22319 [TARGET_API_MAC_CARBON]: New functions.
22320 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
22321 kEventWindowShowing and kEventWindowHiding events. Move installation
22322 of mouse, font, text input and menu target item handlers to
22323 install_application_handler.
22324 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
22325 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22326 New function.
22327 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22328 Register it.
22329 (XTread_socket) [TARGET_API_MAC_CARBON]:
22330 Consolidate SendEventToEventTarget calls.
22331 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22332 Move application activation handler to mac_handle_application_event.
22333 Move keyboard handler to mac_handle_keyboard_event.
22334 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22335 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22336 init_command_handler. Call install_application_handler.
22337
22338 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22339 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22340
22341 2007-06-07 Glenn Morris <rgm@gnu.org>
22342
22343 * emacs.c (main): Use `emacs-copyright' in --version output.
22344
22345 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
22346
22347 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22348
22349 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22350
22351 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22352
22353 * macgui.h: Replace WindowPtr with WindowRef.
22354
22355 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22356 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22357 Replace ControlHandle with ControlRef.
22358 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22359
22360 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22361 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22362 Replace ControlHandle with ControlRef.
22363 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22364 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22365
22366 * macterm.h (struct scroll_bar): Rename member control_handle_low
22367 and control_handle_high to control_ref_low and control_ref_high.
22368 All uses changed.
22369 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22370 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22371 respectively. All uses changed.
22372 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22373 (install_window_handler, remove_window_handler): Replace WindowPtr
22374 with WindowRef in externs.
22375
22376 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
22377
22378 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
22379
22380 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
22381
22382 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22383
22384 * frame.c (Fmouse_position, Fmouse_pixel_position):
22385 Condition on HAVE_GPM too.
22386
22387 * term.c (term_mouse_highlight): Remove unused variables.
22388 (Fterm_open_connection): Set gpm_zerobased to 1.
22389 (term_mouse_movement, term_mouse_click, handle_one_term_event):
22390 Use zero based co-ordinates.
22391 (handle_one_term_event): Report a drag as mouse movement too.
22392
22393 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22394
22395 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
22396
22397 * image.c (search_image_cache): New function. Require background
22398 color match if background color is unspecified in the image spec.
22399 (uncache_image, lookup_image): Use it.
22400
22401 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
22402
22403 * window.c (Fshrink_window): Reflow docstring.
22404
22405 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
22406
22407 * Version 22.1 released.
22408
22409 2007-06-01 Richard Stallman <rms@gnu.org>
22410
22411 * xfns.c (x_encode_text): Add GCPRO.
22412
22413 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22414
22415 * xfns.c (x_set_name_internal): Save encoded name before
22416 x_encode_text in case string data is relocated.
22417
22418 2007-05-31 Richard Stallman <rms@gnu.org>
22419
22420 * buffer.c (syms_of_buffer): Doc fix.
22421
22422 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
22423
22424 * sysdep.c (init_sys_modes): Add rather than replace with
22425 O_NONBLOCK.
22426
22427 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22428 term_mouse_moveto.
22429
22430 * termhooks.h (term_mouse_moveto): New extern.
22431
22432 * term.c (mouse_face_window): Rename...
22433 (Qmouse_face_window): ...to this.
22434 (term_show_mouse_face, term_clear_mouse_face)
22435 (term_mouse_highlight): Use Qmouse_face_window.
22436 (term_mouse_moveto): New function.
22437 (term_mouse_position): Make it work.
22438 (syms_of_term): Uncomment assignment to mouse_position_hook.
22439 Staticpro Qmouse_face_window.
22440
22441 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22442
22443 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22444 around current_column call.
22445
22446 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22447
22448 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22449 * xdisp.c (next_element_from_buffer):
22450 * window.c (delete_window):
22451 * term.c (term_mouse_highlight):
22452 * msdos.c (getdefdir):
22453 * macterm.c (mac_create_bitmap_from_bitmap_data)
22454 (init_font_name_table):
22455 * fns.c (Fsxhash):
22456 * data.c (Fmake_local_variable):
22457 * ccl.c (ccl_driver): Likewise.
22458
22459 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22460
22461 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22462 Call mac_wakeup_from_rne on window size change.
22463
22464 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
22465
22466 * image.c (uncache_image): Fix typo.
22467
22468 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22469
22470 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22471
22472 2007-05-22 Richard Stallman <rms@gnu.org>
22473
22474 * xterm.c (x_connection_closed): Remove NO_RETURN.
22475
22476 2007-05-22 Martin Rudalics <rudalics@gmx.at>
22477
22478 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22479
22480 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
22481
22482 * image.c (uncache_image): New function.
22483 (Fimage_refresh): New function.
22484
22485 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22486
22487 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22488
22489 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
22490
22491 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22492 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22493
22494 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
22495
22496 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22497 conditional on [HAVE_GPM_H].
22498
22499 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22500
22501 * syntax.c (skip_chars): Update syntax-table only after we checked that
22502 the new location is valid.
22503
22504 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22505
22506 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22507 mac_get_window_bounds.
22508
22509 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
22510
22511 * Makefile.in (LIBGPM): Allow it to be set from configure.
22512 If set then link Emacs with it.
22513
22514 * config.in: Regenerate.
22515
22516 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22517 New externs.
22518
22519 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22520 Include gpm.h.
22521 (handle_one_term_event, term_gpm): New externs.
22522
22523 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22524 and allow it to be interrupted by SIGIO.
22525
22526 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22527 (wait_reading_process_output): Wait on gpm_fd too.
22528 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22529 (add_gpm_wait_descriptor_called_flag): New variable.
22530 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22531
22532 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22533 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22534 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22535 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22536 (make_lispy_event): Add case GPM_CLICK_EVENT.
22537 (read_avail_input): Handle mouse input.
22538
22539 * term.c (write_glyphs_with_face): New function.
22540 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22541 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22542 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22543 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22544 (last_mouse_x, last_mouse_y): New variables.
22545 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22546 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22547 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22548 (Fterm_close_connection): New functions.
22549 (term_init): Initialise mouse_face_window.
22550
22551 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
22552
22553 * xdisp.c (redisplay_window): If first window line is a
22554 continuation line, recompute the new window start instead of
22555 recentering.
22556
22557 2007-05-18 Glenn Morris <rgm@gnu.org>
22558
22559 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22560 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22561
22562 2007-05-17 Glenn Morris <rgm@gnu.org>
22563
22564 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22565
22566 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22567
22568 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22569 dead key repeat and up events.
22570
22571 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
22572
22573 * image.c (pbm_load): Check image size for monochrome pbm.
22574
22575 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
22576
22577 * xterm.c (XTread_socket): Revert last change.
22578
22579 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
22580
22581 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22582
22583 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22584
22585 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22586
22587 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22588 mixup (YAILOM).
22589
22590 2007-05-07 Andreas Schwab <schwab@suse.de>
22591
22592 * keymap.c (Flookup_key): Fix typo in last change.
22593
22594 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22595
22596 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22597 mapping for unibyte strings.
22598
22599 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22600
22601 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22602 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22603
22604 2007-04-29 Richard Stallman <rms@gnu.org>
22605
22606 * insdel.c (replace_range): For undo, record insertion first.
22607
22608 2007-04-29 Andreas Schwab <schwab@suse.de>
22609
22610 * lisp.h (VECSIZE): Use OFFSETOF.
22611
22612 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22613
22614 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22615 disabled lines.
22616
22617 2007-04-28 Richard Stallman <rms@gnu.org>
22618
22619 * lread.c (read_escape): In a string, \s is always space.
22620
22621 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22622
22623 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22624
22625 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22626 submenu for menu bar items.
22627
22628 See ChangeLog.10 for earlier changes.
22629
22630 ;; Local Variables:
22631 ;; coding: utf-8
22632 ;; add-log-time-zone-rule: t
22633 ;; End:
22634
22635 Copyright (C) 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
22636
22637 This file is part of GNU Emacs.
22638
22639 GNU Emacs is free software: you can redistribute it and/or modify
22640 it under the terms of the GNU General Public License as published by
22641 the Free Software Foundation, either version 3 of the License, or
22642 (at your option) any later version.
22643
22644 GNU Emacs is distributed in the hope that it will be useful,
22645 but WITHOUT ANY WARRANTY; without even the implied warranty of
22646 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22647 GNU General Public License for more details.
22648
22649 You should have received a copy of the GNU General Public License
22650 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22651
22652 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40