Fix GTK font name parsing to allow numbers in names (Bug#7853).
[bpt/emacs.git] / src / ChangeLog
1 2011-01-27 Chong Yidong <cyd@stupidchicken.com>
2
3 * font.c (font_parse_fcname): Require GTK-style font sizes to
4 occur at the end of the font string (Bug#7853).
5
6 2011-01-26 Chong Yidong <cyd@stupidchicken.com>
7
8 * font.c (font_parse_fcname): Fix typo in string length.
9
10 2011-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
11
12 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
13 the buffer's point-max (bug#7876).
14
15 2011-01-23 Chong Yidong <cyd@stupidchicken.com>
16
17 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
18 Remove unused HAVE_SHM branch (Bug#6811).
19
20 2011-01-23 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
21
22 * s/hpux11.h: Set CANNOT_DUMP on IA64 (Bug#6811).
23
24 2011-01-22 Martin Rudalics <rudalics@gmx.at>
25
26 * window.c (select_window): New function.
27 (Fselect_window): Call it.
28 (inhibit_point_swap): Variable deleted.
29 (Fset_window_configuration): Call select_window directly.
30
31 2011-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
32
33 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
34
35 2011-01-16 Eli Zaretskii <eliz@gnu.org>
36
37 * image.c (syms_of_image): Don't use SET_SYMBOL_VALUE. (Bug#7848)
38
39 2011-01-15 Martin Rudalics <rudalics@gmx.at>
40
41 * window.c (inhibit_point_swap): New variable.
42 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
43 point this time.
44 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
45 of setting selected_window to nil (Bug#7728).
46
47 2011-01-12 Chong Yidong <cyd@stupidchicken.com>
48
49 * config.in (TERMINFO): New definition.
50
51 * s/netbsd.h: Use it to choose between terminfo and termcap
52 (Bug#7642).
53
54 2011-01-03 Jan Djärv <jan.h.d@swipnet.se>
55
56 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
57
58 * nsfns.m (ns_set_name_iconic): Remove.
59 (ns_get_screen): Don't assign integer to f.
60 (ns_set_name_internal): New function (Bug#7517).
61 (Vicon_title_format): Extern declare.
62 (ns_set_name): Call ns_set_name_internal.
63 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
64 (x_implicitly_set_name): Ditto.
65 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
66 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8.
67 Always use buffer name for title and buffer filename only for
68 RepresentedFilename. Handle bad UTF-8 in buffer name (Bug#7517).
69
70 2011-01-03 Eli Zaretskii <eliz@gnu.org>
71
72 * image.c (png_jmpbuf): Remove definition.
73 (my_png_error, png_load): Don't use png_jmpbuf.
74
75 2010-12-31 Eli Zaretskii <eliz@gnu.org>
76
77 * image.c <Qlibpng_version>: New variable.
78 (syms_of_image): Intern and staticpro it. Set its value to the
79 version of PNG library we were compiled with.
80 (my_png_error, png_load): Avoid GCC warnings about direct access
81 to png_ptr->jmpbuf. (Bug#7716)
82 (png_jmpbuf): New macro.
83 (my_png_error, png_load): Use it instead of #ifdef'ing according
84 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
85
86 2010-12-27 Stefan Monnier <monnier@iro.umontreal.ca>
87
88 * .gdbinit (xgetptr): Fix the union+lsb case.
89 (xbacktrace): Fix the union case.
90
91 2010-12-26 Stefan Monnier <monnier@iro.umontreal.ca>
92
93 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
94 different from selected-window's.
95
96 2010-12-25 Eli Zaretskii <eliz@gnu.org>
97
98 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
99 equivalent of a menu item when the key sequence is given by the
100 `:keys' attribute. (Bug#7662)
101
102 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
103 the basic faces are supported.
104
105 2010-12-24 Jan Djärv <jan.h.d@swipnet.se>
106
107 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
108
109 2010-12-17 Eli Zaretskii <eliz@gnu.org>
110
111 * xdisp.c (Fformat_mode_line): Fix last change.
112
113 2010-12-16 Chong Yidong <cyd@stupidchicken.com>
114
115 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
116 faces (Bug#7587).
117
118 2010-12-13 Eli Zaretskii <eliz@gnu.org>
119
120 * fileio.c (Fexpand_file_name): One more doc fix.
121
122 2010-12-12 Eli Zaretskii <eliz@gnu.org>
123
124 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
125
126 2010-12-11 Eli Zaretskii <eliz@gnu.org>
127
128 * w32fns.c (Fx_show_tip): Call try_window with last argument
129 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
130 solved. Round up the tip height to an integral multiple of the
131 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
132 (Bug#7398)
133
134 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
135 (face_before_or_after_it_pos, next_element_from_string)
136 (next_element_from_c_string, produce_stretch_glyph): Remove unused
137 calculations of maximum string length before calling
138 string_char_and_length and STRING_CHAR_AND_LENGTH.
139 (string_char_and_length): Update commentary: MAXLEN is no longer
140 needed.
141
142 2010-12-10 Jan Djärv <jan.h.d@swipnet.se>
143
144 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
145 as (Qsave_session arg).
146
147 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
148 (smc_die_CB): Make an event with arg Qt.
149 (Fhandle_save_session): If event has Qt as argument,
150 call Fkill_emacs (Bug#7552).
151
152 2010-12-07 Jan Djärv <jan.h.d@swipnet.se>
153
154 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
155
156 2010-12-06 Chong Yidong <cyd@stupidchicken.com>
157
158 * dispextern.h (struct it): New member overlay_strings_charpos.
159
160 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
161 charpos where we computed n_overlay_strings.
162 (next_overlay_string): Load overlay strings at recorded position,
163 which may not be the same as the iterator's charpos (Bug#7016).
164
165 2010-12-05 Jan Djärv <jan.h.d@swipnet.se>
166
167 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
168 with cursor color and draw a rectangle around the image (Bug#7412).
169
170 2010-12-05 Chong Yidong <cyd@stupidchicken.com>
171
172 * xdisp.c (try_scrolling): Avoid infloop if the first line is
173 obscured due to a vscroll (Bug#7537).
174
175 2010-12-02 Jan Djärv <jhd@zeplinf.localdomain>
176
177 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
178
179 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
180 Use FRAME_TOOLBAR_HEIGHT.
181 (x_set_offset): Handle XNegative and YNegative in
182 f->size_hint_flags (Bug#7510).
183
184 2010-11-25 Kenichi Handa <handa@m17n.org>
185
186 * charset.c (emacs_mule_charset): Make it an array of charset ID;
187 i.e. integer.
188 (Fdefine_charset_internal): Adjusted for the above change.
189 (init_charset_once): Likewise.
190
191 * charset.h (emacs_mule_charset): Adjust the prototype. Delete
192 duplicated extern.
193
194 * coding.c (emacs_mule_char): Adjust for the change of
195 emacs_mule_charset.
196
197 * lread.c (read_emacs_mule_char): Adjust for the change of
198 emacs_mule_charset.
199
200 2010-11-22 Eli Zaretskii <eliz@gnu.org>
201
202 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
203 of w32api >= 3.15. (Bug#6989) (Bug#7452)
204
205 2010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
206
207 * alloc.c (mark_terminals): Ensure that the image cache is marked
208 even if the terminal object was marked earlier (Bug#6301).
209
210 2010-11-21 Chong Yidong <cyd@stupidchicken.com>
211
212 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
213
214 2010-11-20 Jan Djärv <jan.h.d@swipnet.se>
215
216 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
217 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
218 Use 23 as menubar height if 0. (Bug#7425).
219
220 2010-11-14 Jan Djärv <jan.h.d@swipnet.se>
221
222 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
223
224 * config.in (HAVE_G_TYPE_INIT): New symbol.
225
226 2010-11-12 Eli Zaretskii <eliz@gnu.org>
227
228 * lread.c (Fload): Mention `load-in-progress' and
229 `load-file-name'. (Bug#7346)
230
231 2010-11-09 Eli Zaretskii <eliz@gnu.org>
232
233 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
234 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
235 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
236 subprocesses. Use buffer_free only ifdef subprocesses.
237
238 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
239 the subprocesses version, not in the non-subprocesses one.
240
241 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
242
243 * xfns.c (x_real_positions): Fix declaration-after-statement
244 problem.
245
246 2010-11-05 Chong Yidong <cyd@stupidchicken.com>
247
248 * image.c (free_image): Don't garbage the frame here, since this
249 function can be called while redisplaying (Bug#7210).
250 (uncache_image): Garbage the frame here (Bug#6426).
251
252 2010-11-04 Chong Yidong <cyd@stupidchicken.com>
253
254 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
255 Windows.
256
257 2010-11-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
258
259 * process.c (Fmake_network_process): Don't call turn_on_atimers around
260 `connect' (Bug#5723).
261
262 2010-11-04 Helmut Eller <eller.helmut@gmail.com>
263
264 * process.c (Fmake_network_process): Call `select' for interrupted
265 `connect' rather than creating new socket (Bug#5173).
266
267 2010-11-04 Kenichi Handa <handa@m17n.org>
268
269 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
270 Don't sheck SPEC if it is nil.
271 (font_list_entities): Call font_delete_unmatched if
272 Vface_ignored_fonts is non-nil.
273
274 2010-11-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
275
276 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
277 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
278
279 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
280 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
281 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
282 TRY_WINDOW_CHECK_MARGINS.
283
284 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
285 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423).
286
287 2010-11-04 Jan Djärv <jan.h.d@swipnet.se>
288
289 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
290 parent is the root window. Check this after traversing window tree.
291
292 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
293
294 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
295
296 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
297 before traversing window tree (Bug#5721).
298
299 2010-11-03 Glenn Morris <rgm@gnu.org>
300
301 * Makefile.in (CRT_DIR): New variable, set by configure.
302 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
303 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
304
305 2010-11-01 Jan Djärv <jan.h.d@swipnet.se>
306
307 * process.c (kbd_is_on_hold): New variable.
308 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
309 New functions.
310 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
311 select on empty input mask.
312 (init_process): Initialize kbd_is_on_hold to 0.
313
314 * process.h (hold_keyboard_input, unhold_keyboard_input)
315 (kbd_on_hold_p): Declare.
316
317 * keyboard.c (input_available_signal): Declare.
318 (kbd_buffer_nr_stored): New function.
319 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
320 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
321 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
322 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
323 (tty_read_avail_input): If input is on hold, return.
324 Don't read more that free slots in kbd_buffer (Bug#6571).
325
326 2010-10-31 Chong Yidong <cyd@stupidchicken.com>
327
328 * xterm.c (x_connection_closed): Print informative error message
329 when aborting on GTK. This requires using shut_down_emacs
330 directly instead of Fkill_emacs.
331
332 2010-10-25 Michael Albinus <michael.albinus@gmx.de>
333
334 * dbusbind.c (Fdbus_call_method_asynchronously)
335 (Fdbus_register_signal, Fdbus_register_method): Check, whether
336 `dbus-registered-objects-table' is initialized.
337
338 2010-10-24 Chong Yidong <cyd@stupidchicken.com>
339
340 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
341
342 2010-10-22 Eli Zaretskii <eliz@gnu.org>
343
344 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
345
346 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
347 Deprecate use as a boolean flag.
348
349 2010-10-18 Ken Brown <kbrown@cornell.edu>
350
351 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
352
353 2010-10-15 Kenichi Handa <handa@m17n.org>
354
355 Fix incorrect font metrics when the same font is opened with
356 different pixelsizes.
357
358 * xftfont.c: Include composite.h.
359 (xftfont_shape): New function.
360 (syms_of_xftfont): Set xftfont_driver.shape.
361
362 2010-10-13 Damyan Pepper <damyanp@gmail.com>
363
364 Fix handling of font properties on Windows (bug#6303).
365 * font.c (font_filter_properties): New function, refactored from
366 ftfont_filter_properties.
367 * font.h (font_filter_properties): Declare.
368 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
369 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
370 (w32font_filter_properties): New function.
371 (w32font_driver): Add w32font_filter_properties.
372
373 2010-10-12 Juanma Barranquero <lekktu@gmail.com>
374
375 * font.c (Ffont_variation_glyphs):
376 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
377
378 2010-10-10 Jan Djärv <jan.h.d@swipnet.se>
379
380 * nsterm.m (Qleft): Declare.
381 (ns_right_alternate_modifier): New variable
382 (NSRightAlternateKeyMask): New define.
383 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
384 ns_right_alternate_modifier isn't Qleft.
385 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
386 as emacs modifier for NSRightAlternateKeyMask.
387 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
388
389 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
390
391 * dbusbind.c (xd_get_dispatch_status): Return a Lisp_Object.
392 (xd_pending_messages): Catch xd_get_dispatch_status calls.
393
394 2010-10-08 Kenichi Handa <handa@m17n.org>
395
396 * coding.c (complement_process_encoding_system): Fix previous change.
397
398 2010-10-03 Michael Albinus <michael.albinus@gmx.de>
399
400 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
401 (Fdbus_init_bus): ... here. (Bug#7113)
402
403 2010-10-03 Glenn Morris <rgm@gnu.org>
404
405 * buffer.c (before-change-functions, after-change-functions):
406 Three-year overdue doc fix following 2007-08-13 change.
407
408 2010-10-02 Kenichi Handa <handa@m17n.org>
409
410 * coding.c (coding_inherit_eol_type): If parent doesn't specify
411 eol-format, inherit from the system's default.
412 (complement_process_encoding_system): Make a new coding system
413 inherit the original eol-format.
414
415 2010-09-30 Kenichi Handa <handa@m17n.org>
416
417 * coding.c (complement_process_encoding_system): New function.
418
419 * coding.h (complement_process_encoding_system): Extern it.
420
421 * callproc.c (Fcall_process): Complement the coding system for
422 encoding arguments.
423 (Fcall_process_region): Complement the coding system for encoding
424 the input to the process.
425
426 * process.c (Fstart_process): Complement the coding system for
427 encoding arguments.
428 (send_process): Complement the coding system for encoding what
429 sent to the process.
430
431 2010-09-29 Kenichi Handa <handa@m17n.org>
432
433 * xfont.c (xfont_open): Fix setting of font->average_width from
434 :avgwidth property (Bug#7123).
435
436 2010-09-28 Michael Albinus <michael.albinus@gmx.de>
437
438 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
439 is more portable.
440
441 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
442 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
443 has not defined SIGIO.
444
445 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
446
447 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
448 (Bug#7113)
449
450 2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
451
452 * xgselect.c (xg_select): Clear file descriptors not set from
453 rfds and wfds.
454
455 2010-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
456
457 * syntax.c (back_comment): Detect the case where a 1-char comment
458 starter is also the 2nd char of a 2-char comment ender.
459
460 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
461
462 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
463
464 2010-09-12 Jan Djärv <jan.h.d@swipnet.se>
465
466 * xterm.c (get_current_vm_state): New function.
467 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
468 want_fullscreen so set_wm_state calls are few (Bug#7013).
469 (x_handle_net_wm_state): Move code to get_current_vm_state and
470 call that function.
471
472 2010-09-11 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
473
474 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
475
476 2010-09-08 Kenichi Handa <handa@m17n.org>
477
478 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
479 we may use designation or locking-shift.
480
481 2010-09-07 Kenichi Handa <handa@m17n.org>
482
483 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
484 sequence when the source is multibyte.
485
486 2010-08-31 Kenichi Handa <handa@m17n.org>
487
488 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
489 characters.
490
491 * term.c (encode_terminal_code): Fix the previous change.
492 (produce_glyphs): Don't set it->char_to_display here.
493 Don't handle unibyte-display-via-language-environment here.
494 (produce_special_glyphs): Set temp_it.char_to_display before
495 calling produce_glyphs.
496
497 * xdisp.c (get_next_display_element): Set it->char_to_display
498 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
499 characters.
500 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
501 calling PRODUCE_GLYPHS.
502 (append_space_for_newline): Save and store it->char_to_display.
503 Set it->char_to_display before calling PRODUCE_GLYPHS.
504 (extend_face_to_end_of_line): Set it->char_to_display before
505 calling PRODUCE_GLYPHS.
506 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
507 character to its byte value.
508 (get_char_glyph_code): New function.
509 (produce_stretch_glyph): Set it2.char_to_display too before
510 calling x_produce_glyphs.
511 (x_produce_glyphs): Simplify by using the same code for ASCII and
512 non-ASCII characters. Don't set it->char_to_display here.
513 Don't handle unibyte-display-via-language-environment here. For a
514 character of no glyph, use font->space_width instead of FONT_WIDTH.
515
516 2010-08-29 Kenichi Handa <handa@m17n.org>
517
518 * term.c (encode_terminal_code): Encode byte chars to the
519 correspnding bytes.
520
521 2010-08-17 Andreas Schwab <schwab@linux-m68k.org>
522
523 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
524 instead of SAFE_ALLOCA.
525
526 2010-08-17 Chong Yidong <cyd@stupidchicken.com>
527
528 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
529 (Bug#6214).
530
531 2010-08-14 Jan Djärv <jan.h.d@swipnet.se>
532
533 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
534
535 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
536
537 * doc.c (Fsnarf_documentation): Initialize skip_file before
538 build-files test.
539
540 2010-08-09 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
541
542 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
543 New definitions.
544 (HAVE_TERMIO): Remove.
545
546 2010-08-06 Kenichi Handa <handa@m17n.org>
547
548 * charset.c: Include <stdlib.h>
549 (struct charset_sort_data): New struct.
550 (charset_compare): New function.
551 (Fsort_charsets): New function.
552 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
553
554 * coding.c (decode_coding_iso_2022): Fix checking of dimension
555 number in CTEXT extended segment.
556
557 2010-08-01 Juanma Barranquero <lekktu@gmail.com>
558
559 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
560 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
561
562 2010-07-30 Juanma Barranquero <lekktu@gmail.com>
563
564 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
565 (Fhash_table_size): Fix typos in docstrings.
566 (Fmake_hash_table): Doc fix.
567
568 2010-07-28 Juanma Barranquero <lekktu@gmail.com>
569
570 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
571 Doc fix (bug#5625).
572
573 2010-07-27 Ken Brown <kbrown@cornell.edu>
574
575 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
576 the MSDOS definition.
577
578 2010-07-25 Christoph Scholtes <cschol2112@gmail.com>
579
580 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
581
582 2010-07-22 Christoph Scholtes <cschol2112@gmail.com>
583
584 * window.c (Fwindow_height): Doc fix (bug#6518).
585
586 2010-07-21 Juanma Barranquero <lekktu@gmail.com>
587
588 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
589
590 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
591
592 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
593 is related to the menu bar (Bug#6499).
594
595 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
596
597 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
598
599 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
600
601 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
602 i.e. don't put back ButtonRelease (Bug#6608).
603
604 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
605 instead of Window. Call xg_event_is_for_menubar when
606 USE_GTK (Bug#6499).
607
608 * gtkutil.h (xg_event_is_for_menubar): Declare.
609
610 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
611
612 2010-07-14 Eli Zaretskii <eliz@gnu.org>
613
614 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
615 when it's the same as the old foreground. (Bug#6609)
616
617 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
618
619 * xfaces.c (realize_face): Garbage the frame if a face is removed
620 (Bug#6593).
621
622 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
623
624 * keyboard.c: Remove duplicate <setjmp.h>.
625 (read_key_sequence): Remove volatile qualifiers.
626
627 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
628
629 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
630 (struct glyph_row): New members left_fringe_offset and
631 right_fringe_offset.
632
633 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
634 specially.
635 * w32term.c (w32_draw_fringe_bitmap): Likewise.
636 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
637
638 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
639 Take account of bitmap offset.
640 (draw_window_fringes): Take account of window vscroll.
641 (update_window_fringes): Likewise. Extend top-aligned top indicator
642 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
643 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
644 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
645
646 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
647
648 * w32fns.c (Qtooltip): Declare.
649 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
650
651 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
652
653 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
654 grab on just Press (Bug#6499).
655
656 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
657
658 * frame.c (Qtooltip): New var.
659 (delete_frame): Use it. Fix faulty if statement. Don't update
660 mode line for tooltip frames. Suggested by Martin Rudalics.
661
662 * xfns.c (x_create_tip_frame):
663 * w32fns.c (x_create_tip_frame): Use it.
664
665 2010-06-30 Naohiro Aota <naota@elisp.net> (tiny change)
666
667 * xftfont.c (xftfont_open): Check font width one by one also when
668 spacing is dual.
669
670 * ftfont.c (ftfont_open): Ditto.
671
672 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
673
674 * alloc.c (Fmake_byte_code): Don't access undefined argument
675 (Bug#6517).
676
677 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
678
679 * xdisp.c (next_element_from_image): Ensure that after-strings are
680 read the next time we hit handle_stop (Bug#1336).
681
682 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
683
684 * lread.c (read1): Signal error if #s is not followed by paren.
685
686 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
687
688 * image.c (free_image): Mark frame as garbaged (Bug#6426).
689
690 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
691
692 2010-06-15 Glenn Morris <rgm@gnu.org>
693
694 * editfns.c (Fbyte_to_string): Pacify compiler.
695
696 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
697
698 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
699 Check `object's type before accessing its guts.
700
701 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
702
703 * minibuf.c (Fall_completions): Add more checks.
704
705 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
706
707 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
708
709 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
710
711 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
712 address. (Bug#6346)
713
714 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
715
716 * ccl.c (Fccl_program_p): Fix typo in docstring.
717
718 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
719
720 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
721 of bug#6305).
722
723 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
724
725 * xdisp.c (redisplay_window): After redisplay, check if point is
726 still valid before setting it (Bug#6177).
727
728 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
729
730 * s/netbsd.h: If terminfo is found, use it in preference to
731 termcap. (Bug#6190) [Backport from trunk]
732
733 2010-05-20 Kevin Ryde <user42@zip.com.au>
734
735 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
736 (Voverriding_terminal_local_map, Vsystem_key_alist)
737 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
738
739 2010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
740
741 * editfns.c (Fbyte_to_string): New function.
742
743 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
744
745 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
746 prevent stack overflow if number of arguments is too large
747 (Bug#6214).
748
749 2010-05-11 Eli Zaretskii <eliz@gnu.org>
750
751 * makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(SRC)/w32.h.
752
753 * w32fns.c: Include w32.h.
754 (Fw32_shell_execute): Decode the error message before passing it
755 to `error'. (Bug#6126)
756
757 2010-05-11 Karel Klic <kklic@redhat.com>
758
759 * ftfont.c: Fix incorrect parentheses of #if condition for
760 definining M17N_FLT_USE_NEW_FEATURE.
761
762 2010-05-07 Chong Yidong <cyd@stupidchicken.com>
763
764 * Version 23.2 released.
765
766 2010-04-30 Andreas Schwab <schwab@linux-m68k.org>
767
768 * composite.c (autocmp_chars): Save point as marker before calling
769 auto-composition-function (Bug#5984).
770
771 * lisp.h (restore_point_unwind): Add prototype.
772
773 * fileio.c (restore_point_unwind): Remove static attribute.
774
775 2010-04-23 Kenichi Handa <handa@m17n.org>
776
777 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
778 new feature of libotf and m17n-flt.
779 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
780 Call OTF_check_features even if no specific feature is given.
781 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
782 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
783 that OUT is NULL. Use OTF_drive_gsub_with_log and
784 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
785 OTF_drive_gpos.
786 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
787 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
788 Setup mflt_enable_new_feature and mflt_try_otf.
789
790 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
791
792 * dired.c (Ffile_attributes): Fix typo in docstring.
793
794 2010-04-13 Adrian Robert <Adrian.B.Robert@gmail.com>
795
796 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
797 NSInteger (Bug#5811).
798
799 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
800
801 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
802 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
803
804 2010-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
805
806 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
807
808 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
809
810 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
811 FRAME_LINE_TO_PIXEL_Y.
812
813 * xterm.c (x_set_window_size_1): Don't add border_width/height to
814 pixelwidth/height.
815
816 2010-04-05 Chong Yidong <cyd@stupidchicken.com>
817
818 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
819 terminal frames (Bug#5837).
820
821 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
822
823 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
824 * nsterm.h: Fix prototype.
825
826 2010-03-31 Eli Zaretskii <eliz@gnu.org>
827
828 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
829 in this function. (Bug#5703)
830
831 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
832
833 * nsterm.h: Fix last change.
834
835 2010-03-30 Bernhard Herzog <bh@intevation.de> (tiny change)
836
837 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
838
839 2010-03-30 Jan Djärv <jan.h.d@swipnet.se>
840
841 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
842 invisible (Bug#5766).
843
844 2010-03-29 Adrian Robert <adrian.b.robert@gmail.com>
845
846 * xdisp.c (x_consider_frame_title, update_window_cursor): Remove
847 HAVE_NS conditionals.
848 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
849
850 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
851 filename for the title.
852 (ns_set_doc_edited): Do nothing if the selected window is a
853 minibuffer window.
854
855 * nsterm.h: Add prototypes for ns_set_name_as_filename and
856 ns_set_doc_edited.
857
858 * nsterm.m: Remove unneeded prototype.
859
860 2010-03-28 Glenn Morris <rgm@gnu.org>
861
862 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
863 in the DOC file. (Bug#5336)
864
865 2010-03-24 Chong Yidong <cyd@stupidchicken.com>
866
867 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
868
869 2010-03-20 Jan Djärv <jan.h.d@swipnet.se>
870
871 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
872
873 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
874
875 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
876
877 2010-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
878
879 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
880 XLoadQueryFont.
881
882 2010-03-16 Kenichi Handa <handa@m17n.org>
883
884 * coding.c (decode_coding_ccl): Fix previous change for the
885 multibyte case.
886 (encode_coding_ccl): Don't setup ccl program here. Fix for the
887 case that the output buffer is fullfilled.
888 (encode_coding): Setup ccl program here.
889
890 2010-03-15 Andreas Politz <politza@fh-trier.de> (tiny change)
891
892 * editfns.c (Fformat): Account for string precision when computing
893 field width (Bug#5710).
894
895 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
896
897 Make it possible to C-g in a tight bytecode loop again (bug#5680).
898 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
899 (QUIT): Use it to consolidate code and remove redundancy.
900 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
901
902 * regex.c (regex_compile): Setup gl_state as well.
903
904 * syntax.c (skip_chars): Setup gl_state (bug#3823).
905 (in_classes): Use CONSP before XCAR/XCDR.
906
907 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
908
909 * keymap.c (Fwhere_is_internal): Use Fequal to compare
910 definitions, so that keyboard macros are correctly handled
911 (Bug#5481).
912
913 2010-03-02 Eli Zaretskii <eliz@gnu.org>
914
915 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
916 text that could be relocated inside the call to emacs_mule_char.
917 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
918 (CODING_DECODE_CHAR): Add a comment describing its purpose.
919
920 2010-03-02 Kenichi Handa <handa@m17n.org>
921
922 * character.c (parse_str_as_multibyte): Fix handling of the
923 multibyte form of raw-bytes.
924 (str_as_multibyte): Likewise.
925
926 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
927 form of raw-bytes.
928
929 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
930
931 * charset.c (load_charset_map_from_file)
932 (load_charset_map_from_vector): Zero out allocated
933 charset_map_entries before using them.
934
935 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
936
937 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
938
939 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
940
941 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
942 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
943
944 2010-02-26 Kenichi Handa <handa@m17n.org>
945
946 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
947
948 * xdisp.c (reseat_to_string): Fix previous change.
949
950 2010-02-26 David Reitter <david.reitter@gmail.com>
951
952 * nsfont.m (nsfont_draw): ns_antialias_text should be a
953 Lisp_Object (Bug#4736).
954
955 2010-02-25 Kenichi Handa <handa@m17n.org>
956
957 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
958
959 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
960
961 * xterm.c (XTflash): Move declarations before statements.
962
963 * gtkutil.c (xg_get_gdk_display): Remove (unused).
964 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
965 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
966 (xg_create_tool_bar): Remove unused variables.
967 (x_wm_set_size_hint): Move declarations before statements.
968 (xg_create_frame_widgets): Remove variable grav.
969
970 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
971
972 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
973
974 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
975
976 * term.c (fatal): Add a final \n if needed (bug#5596).
977
978 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
979
980 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
981
982 2010-02-18 Glenn Morris <rgm@gnu.org>
983
984 * callint.c (Finteractive): Doc fix.
985
986 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
987
988 * coding.c (record_conversion_result):
989 Handle CODING_RESULT_INSUFFICIENT_DST.
990 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
991 memory allocation error.
992
993 2010-02-17 Kenichi Handa <handa@m17n.org>
994
995 * coding.c (decode_coding_ccl): Don't setup ccl program here.
996 Fix for the case that the output buffer is fullfilled.
997 (decode_coding): Setup ccl program here. Keep looping when the
998 decoder stopped because the output buffer is
999 fullfilled (bug#5534).
1000
1001 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
1002
1003 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
1004
1005 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
1006 bug #5571.
1007 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
1008 overdrawn.
1009
1010 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
1011
1012 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
1013 doing_interact here.
1014 (ice_connection_closed): New function.
1015 (x_session_check_input, smc_die_CB, ice_io_error_handler)
1016 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
1017 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
1018 returns I/O error.
1019 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
1020 bug #5512.
1021
1022 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
1023
1024 * nsfont.m (nsfont_open): The system's value for the font descent
1025 is negative, so round it down to avoid clipping.
1026
1027 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
1028
1029 * charset.c (load_charset_map_from_file)
1030 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
1031 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
1032
1033 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
1034
1035 * charset.c (load_charset_map_from_file): Allocate large
1036 charset_map_entries structure on the heap rather than the stack.
1037 (Bug#5526).
1038
1039 2010-01-31 Kenichi Handa <handa@m17n.org>
1040
1041 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
1042 size in NAME is invalid, return -1 (Bug#5396).
1043
1044 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
1045
1046 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
1047 <deactivated@gmail.com> (Bug#3605).
1048
1049 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
1050
1051 * fileio.c (Frename_file): Correctly rename symlinks to
1052 directories (Bug#5496).
1053
1054 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
1055
1056 * nsterm.m (ns_ring_bell): Handle visible bell like X.
1057
1058 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
1059
1060 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
1061
1062 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
1063
1064 * frame.c (DEFAULT_ROWS): Change default to 35.
1065
1066 * xfns.c (x_default_font_parameter): Change default XFT font to
1067 monospace-10 (Bug#3643).
1068
1069 2010-01-29 Eli Zaretskii <eliz@gnu.org>
1070
1071 * w32inevt.c (key_event): Remove unnecessary comparison of
1072 event->uChar.AsciiChar with 128.
1073
1074 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
1075
1076 * fileio.c (Frename_file): Fix last change (Bug#5487).
1077
1078 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
1079
1080 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
1081
1082 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
1083
1084 * xfns.c (Fx_create_frame): Remove window size matching code from
1085 2010-01-15.
1086 (x_get_current_desktop, x_get_desktop_workarea): Remove.
1087
1088 2010-01-27 Jason Rumney <jasonr@gnu.org>
1089
1090 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
1091 (key_event): Use unicode for characters 128 and higher (Bug#4567).
1092
1093 2010-01-27 Kenichi Handa <handa@m17n.org>
1094
1095 * regex.c (analyse_first): Fix setting of fastmap for unibyte
1096 pattern string (Bug#4209).
1097
1098 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
1099
1100 * fileio.c (Frename_file): Call copy-directory and
1101 delete-directory for directories, in order to handle cross-device
1102 renaming (Bug#3353).
1103
1104 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
1105
1106 * xfns.c (Fx_create_frame): If frame height is too big, try
1107 sizes 24 and 10. Bug #3643.
1108
1109 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
1110
1111 Try and fix bug#788, hopefully for real this time.
1112 * keymap.c (shadow_lookup): Add `remap' arg.
1113 (describe_map, describe_vector): Update calls to shadow_lookup.
1114 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
1115 `remapped' so this flag is applicable to `sequence'. Be careful to
1116 perform remapping during shadow_lookup check of remapped_sequences.
1117
1118 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
1119
1120 * image.c (png_load): Use png_sig_cmp instead of the obsolete
1121 png_check_sig, which has been removed in libpng 1.4.
1122
1123 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1124
1125 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
1126 lacks this header file).
1127
1128 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1129
1130 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
1131 as in Emacs 22.
1132
1133 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1134
1135 * lisp.h (make_pure_string): String pointer arg now points to const.
1136
1137 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
1138 args now point to const.
1139
1140 2010-01-22 Eli Zaretskii <eliz@gnu.org>
1141
1142 * lread.c (Fload): Don't treat files without .elc extension as
1143 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
1144 them. (bug#5303)
1145
1146 2010-01-20 Kenichi Handa <handa@m17n.org>
1147
1148 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
1149 treat the source as actual byte sequence.
1150
1151 2010-01-19 Alan Mackenzie <acm@muc.de>
1152
1153 Fix spurious before-change-functions invocation from (insert ?\n).
1154 * textprop.c (set_text_properties): Rename parameter
1155 `signal_after_change_p' to `coherent_change_p', and make the
1156 invocation of `modify_region' conditional on it.
1157
1158 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
1159
1160 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
1161 for debug purpose.
1162 (syms_of_xsettings): Declare xft-settings.
1163
1164 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
1165
1166 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
1167
1168 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1169
1170 * xterm.c (event_handler_gdk): Block input (Bug#5037).
1171
1172 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
1173
1174 * emacs.c (standard_args): Adjust arg priorities to reflect how
1175 they are processed in startup.el.
1176
1177 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
1178
1179 * Makefile.in (lisp, shortlisp): Update.
1180
1181 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1182
1183 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
1184 code, link the new kboard into all_kboard before running Lisp code,
1185 and protect the new terminal with GCPRO (Bug#5365).
1186 (x_term_init): Remove unused var `atom'.
1187 (x_delete_display, x_delete_terminal): Remove unused var `i'.
1188
1189 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
1190
1191 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
1192 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
1193 to find out usable size of the desktop. Don't make frames larger than
1194 this. Bug #3643.
1195
1196 2010-01-15 Kenichi Handa <handa@m17n.org>
1197
1198 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
1199
1200 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
1201
1202 * nsterm.m (Qnone): Define.
1203
1204 * nsfns.m (Qnone): Move definition to nsterm.m.
1205
1206 2010-01-14 Kenichi Handa <handa@m17n.org>
1207
1208 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
1209 systems.
1210
1211 2010-01-14 Kenichi Handa <handa@m17n.org>
1212
1213 Make auto-composition work on all buffers even if they are
1214 fundamental mode.
1215
1216 * composite.c (Vauto_composition_mode): New variable.
1217 (composition_compute_stop_pos): Check Vauto_composition_mode
1218 instead of Vauto_composition_function.
1219 (composition_adjust_point, Ffind_composition_internal): Likewise.
1220 (syms_of_composite): Declare Lisp variable
1221 "auto-composition-mode" here.
1222
1223 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
1224
1225 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
1226 during call to vendor-specific-keysyms (Bug#5365).
1227
1228 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1229
1230 * keyboard.c (input_available_signal) [SYNC_INPUT]:
1231 Call SIGNAL_THREAD_CHECK (Bug#5333).
1232
1233 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
1234 Call SIGNAL_THREAD_CHECK.
1235
1236 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
1237
1238 Try to fix bug#5314. This is probably not the final word, tho.
1239 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
1240 recent-auto-save-p as a side-effect.
1241 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
1242 * buffer.c (Fkill_buffer, reset_buffer):
1243 * editfns.c (Fsubst_char_in_region):
1244 * fileio.c (Finsert_file_contents, Fdo_auto_save)
1245 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
1246
1247 2010-01-13 Kenichi Handa <handa@m17n.org>
1248
1249 Display buffer name, etc. in mode line by composing correctly.
1250
1251 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
1252 STRING is not nil.
1253 (display_mode_element): Adjust for the change of
1254 decode_mode_spec and display_line.
1255 (decode_mode_spec): Change arg MULTIBYTE to STRING.
1256 (display_string): Handle the case that STRING is non-null and
1257 LISP_STRING is not nil.
1258
1259 * xterm.c (x_draw_composite_glyph_string_foreground):
1260 Pay attention to s->face->overstrike.
1261
1262 * composite.c (composition_reseat_it): Don't check PT if STRING is
1263 non nil.
1264
1265 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1266
1267 * keyboard.c (read_char): Don't apply previous change when current
1268 buffer is unchanged by command execution.
1269
1270 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
1271
1272 * keyboard.c (read_char): Return after executing from special map.
1273
1274 2010-01-12 Glenn Morris <rgm@gnu.org>
1275
1276 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
1277 bug-gnu-emacs rather than emacs-pretest-bug.
1278
1279 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
1280
1281 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
1282 initializing the Lisp variables that depend on them.
1283
1284 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1285
1286 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
1287 Clear areas that will not be updated after change of menu bar lines.
1288 Clear the menu bar window's current matrix when the window gets empty.
1289
1290 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
1291
1292 * intervals.h, textprop.c (extend_property_ranges): Return value
1293 and args changed. Discard properties that begin at or after the
1294 new end (Bug#5306).
1295
1296 * editfns.c (Fformat): Caller changed.
1297
1298 * nsterm.m (ns_set_default_prefs): Delete function.
1299 (syms_of_nsterm): Initialize ns_command_modifier,
1300 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
1301 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
1302
1303 * xdisp.c (pos_visible_p): Check for invisible text at the correct
1304 position (Bug#4040).
1305
1306 2010-01-09 Eli Zaretskii <eliz@gnu.org>
1307
1308 * editfns.c (Ffloat_time): Doc fix.
1309
1310 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
1311
1312 * xfns.c (Fx_create_frame): Don't create frame larger than display
1313 by default bug#3643.
1314
1315 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1316
1317 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1318 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1319 windows above internal border.
1320
1321 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1322 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1323 windows above internal border.
1324
1325 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1326 tool bar windows specially.
1327
1328 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1329
1330 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1331 specially.
1332 (XTflash): Take account of menu bar height.
1333
1334 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1335 specially.
1336
1337 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
1338
1339 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
1340 also be true before we can return early (bug #5339).
1341
1342 2010-01-06 David Reitter <david.reitter@gmail.com>
1343
1344 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1345 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1346 (Bug#3233).
1347
1348 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
1349
1350 * font.c (font_open_entity): Enable chache and call cached_font_ok
1351 for the driver if defined.
1352 (QCuser_spec): New symbol.
1353 (font_spec_from_name): Save name as user-spec.
1354 (font_load_for_lface): Keep user-spec instead of name.
1355 (font_open_by_name): Save name as user-spec.
1356 (syms_of_font): Initialize QCuser_spec.
1357 (font_clear_prop): Clear name if it exists in font (bug#5157).
1358
1359 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
1360 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1361 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1362
1363 * font.h (struct font_driver): Add cached_font_ok.
1364
1365 * xterm.c (x_clear_frame): Queue draw for scroll bars.
1366
1367 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
1368
1369 * xterm.c (x_new_font): Move code for setting rows/cols before
1370 resizing ...
1371 (x_set_window_size): ... to here. Bug #2568.
1372
1373 * gtkutil.c (xg_clear_under_internal_border): New function.
1374 (xg_frame_resized, xg_frame_set_char_size):
1375 Call xg_clear_under_internal_border.
1376 (xg_update_scrollbar_pos): Clear under old scroll bar position.
1377
1378 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
1379
1380 * keyboard.c (read_key_sequence): Catch keyboard switch after
1381 making a new tty frame (Bug#5095).
1382
1383 2010-01-05 Kenichi Handa <handa@m17n.org>
1384
1385 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1386
1387 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1388
1389 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1390 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1391 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1392
1393 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
1394
1395 * dbusbind.c (xd_add_watch): Improve debug message.
1396 (xd_remove_watch): Improve debug message. If DATA is the session
1397 bus, unset D-Bus session environment.
1398 (Fdbus_init_bus): Pass the bus as argument to
1399 dbus_connection_set_watch_functions. (Bug#5283)
1400
1401 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
1402
1403 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1404
1405 * lread.c (syms_of_lread): Make it clearer that these are the
1406 names of loaded files (Bug#5068).
1407
1408 * eval.c (run_hook_with_args): Handle the case where the global
1409 value has the obsolete single-function form (Bug#5026).
1410
1411 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
1412
1413 * minibuf.c (Fall_completions): Minor optimization.
1414
1415 2009-12-26 Eli Zaretskii <eliz@gnu.org>
1416
1417 * .gdbinit (pgx): Fix display of composite glyphs.
1418 Display cmp.from and cmp.to as well.
1419 (pitx): Fix last change.
1420
1421 2009-12-25 Kenichi Handa <handa@m17n.org>
1422
1423 * composite.h (composition_adjust_point): Update prototype.
1424
1425 * composite.c (composition_reseat_it): Don't make a composition
1426 spanning over point.
1427 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1428 composable characters.
1429 (composition_adjust_point): New arg NEW_PT. Callers changed.
1430
1431 * keyboard.c (command_loop_1): Force redisplay if the last point
1432 was within a composition.
1433 (adjust_point_for_property): Don't adjust point for automatic
1434 composition when called after buffer modification.
1435
1436 2009-12-19 Eli Zaretskii <eliz@gnu.org>
1437
1438 * .gdbinit (pitx): Don't use enum names, use their values.
1439 Remove reference to non-existing value GET_FROM_COMPOSITION.
1440 (pgx): Don't use enum names, use their values.
1441 (pitmethod): New helper command.
1442 (pitx): Use it to display iteration method.
1443 (pgrowit): New command.
1444
1445 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1446
1447 Update dependencies in Makefile.in.
1448
1449 * Makefile.in (alloc.o): Depend on termhooks.h.
1450 (atimer.o): Depend on blockinput.h.
1451 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1452 and frame.h.
1453 (callint.o): Depend on systime.h, coding.h, and composite.h.
1454 (callproc.o): Depend on buffer.h.
1455 (casefiddle.o): Don't depend on charset.h.
1456 (casetab.o): Depend on character.h.
1457 (ccl.o): Depend on composite.h.
1458 (chartab.o): Depend on ccl.h.
1459 (cm.o): Depend on dispextern.h.
1460 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1461 (coding.o): Don't depend on $(INTERVALS_H).
1462 (composite.o): Don't depend on dispextern.h explicitly (it's in
1463 $(INTERVALS_H)). Depend on ccl.h.
1464 (data.o): Depend on systime.h, coding.h, composite.h,
1465 dispextern.h, font.h, and ccl.h.
1466 (dired.o): Depend on composite.h.
1467 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1468 composite.h (it's in $(INTERVALS_H)).
1469 (doc.o): Depend on systime.h, coding.h, and composite.h.
1470 (editfns.o): Don't depend explicitly on dispextern.h.
1471 (emacs.o): Depend on frame.h and coding.h.
1472 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1473 (fileio.o): Depend on frame.h and commands.h. Don't depend
1474 explicitly on dispextern.h.
1475 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1476 composite.h.
1477 (fns.o): Don't depend on termhooks.h.
1478 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1479 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1480 coding.h, $(INTERVALS_H), window.h, xterm.h.
1481 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1482 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1483 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1484 fontset.h, ccl.h, and ftfont.h.
1485 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1486 (gtkutil.o): Depend on dispextern.h and composite.h.
1487 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1488 termhooks.h, and ccl.h.
1489 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1490 (intervals.o): Depend on systime.h and coding.h.
1491 (keyboard.o): Depend on composite.h and coding.h.
1492 (keymap.o): Depend on coding.h and frame.h.
1493 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1494 (macros.o): Depend on systime.h, coding.h, and composite.h.
1495 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1496 and atimer.h.
1497 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1498 dispextern.h explicitly.
1499 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1500 Don't depend explicitly on dispextern.h and composite.h.
1501 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1502 (regex.o): Don't depend on charset.h.
1503 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1504 (search.o): Don't depend explicitly on composite.h.
1505 (sound.o): Depend on atimer.h and systime.h.
1506 (syntax.o): Don't depend explicitly on composite.h.
1507 (sysdep.o): Depend on coding.h and composite.h.
1508 (term.o): Depend on xterm.h and buffer.h.
1509 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1510 (textprop.o): Don't depend on dispextern.h explicitly.
1511 (undo.o): Depend on dispextern.h.
1512 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1513 dispextern.h and composite.h explicitly.
1514 (xdisp.o): Depend on ccl.h.
1515 (xfaces.o): Depend on coding.h and ccl.h.
1516 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1517 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1518 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1519 ftfont.h.
1520 (xgselect.o): New dependency.
1521 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1522 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1523 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1524 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1525 (xsmfns.o): Depend on frame.h and dispextern.h.
1526 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1527 sysselect.h.
1528
1529 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1530
1531 * font.c (Fclear_font_cache): Pass correct cache argument to
1532 font_clear_cache.
1533
1534 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1535
1536 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1537 twice.
1538
1539 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
1540
1541 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1542 calling file-remote-p. Reported by Jim Meyering.
1543
1544 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
1545
1546 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
1547 avoid compiler warnings. (Bug #5217)
1548
1549 2009-12-14 Kenichi Handa <handa@m17n.org>
1550
1551 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1552 in 8-bit encoding.
1553
1554 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
1555
1556 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1557 tooltip windows.
1558
1559 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1560
1561 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1562 Xatom_net_window_type.
1563
1564 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1565 Xatom_net_window_type.
1566
1567 * xterm.c (my_log_handler): New function.
1568 (x_term_init): Set my_log_handler as log handler during gtk_init
1569 so we can filter out buggy messages. (Bug #5120).
1570
1571 * xterm.c (xg_scroll_callback): Parameter list changed,
1572 use parameter GtkScrollType to determine scroll/line/page.
1573 Only allow dragging if a button < 4 is grabbed (bug #5177).
1574 (xg_end_scroll_callback): New function.
1575 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1576 xg_create_scroll_bar.
1577
1578 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1579 (scroll_end_callback): Remove.
1580 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1581 button-release-event. Replace value-changed event with change-value,
1582 bug #5177,
1583 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1584 bug #5177.
1585
1586 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1587 (xg_create_scroll_bar): Add GCallback end_callback.
1588
1589 * xftfont.c (QClcdfilter): New variable.
1590 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1591 (syms_of_xftfont): Initialize QClcdfilter.
1592
1593 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1594
1595 * xsettings.c (struct xsettings): Add member seen.
1596 (parse_xft_settings): Update member seen with what we have read.
1597 Return non-zero if Xft-settings have been parsed, 0 otherwise.
1598 (apply_xft_settings): Only update Xft settings with what member seen
1599 indicates as new.
1600
1601 2009-12-12 Eli Zaretskii <eliz@gnu.org>
1602
1603 * dispextern.h (struct text_pos): Use EMACS_INT;
1604 (struct glyph): Use EMACS_INT for charpos.
1605 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1606 region_beg_charpos, region_end_charpos,
1607 redisplay_end_trigger_charpos, and also for
1608 iterator_stack_entry.end_charpos and
1609 iterator_stack_entry.stop_charpos.
1610
1611 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1612
1613 * gtkutil.c (scroll_end_callback): New function (bug #5177).
1614 (xg_create_scroll_bar): Call scroll_end_callback on button release
1615 event (bug #5177).
1616 (xg_event_is_for_scrollbar): != replaced with ==.
1617
1618 2009-12-12 Kenichi Handa <handa@m17n.org>
1619
1620 * ftfont.c (struct ftfont_info): New member matrix.
1621 (ftfont_open): Setup xftfont_info->matrix.
1622 (MFLTFontFT): New member matrix.
1623 (FLOOR, CEIL, ROUND): New macros.
1624 (ftfont_get_metrics): Handle matrix transformation.
1625 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1626
1627 * xftfont.c (struct xftfont_info): New member matrix.
1628 (xftfont_open): Setup xftfont_info->matrix.
1629
1630 2009-12-10 Kenichi Handa <handa@m17n.org>
1631
1632 * xdisp.c (append_space_for_newline): Consider face-remapping.
1633
1634 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1635
1636 * xsettings.c: Include "keyboard.h".
1637
1638 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1639
1640 Fix implicit function declarations.
1641 * cmds.c: Include "frame.h".
1642 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1643 * frame.h: Move declaration of delete_frame outside of
1644 HAVE_WINDOW_SYSTEM.
1645
1646 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1647
1648 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1649
1650 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1651 GTK builds.
1652
1653 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1654
1655 * unexelf.c (unexec): Don't search for .data twice.
1656
1657 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
1658
1659 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1660 if push failed.
1661 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1662 of push_display_prop (Bug#5000).
1663
1664 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1665 value of font_list_entities (Bug#5085).
1666
1667 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
1668
1669 Fix `string-to-number' to deal consistently with integers and floats.
1670 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1671 trailing characters, not just whitespace.
1672 (read1): Pass new arg 0 to keep old behavior.
1673 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1674 trailing chars, as it is already done for integers. Doc fixes.
1675 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1676
1677 2009-12-04 Eli Zaretskii <eliz@gnu.org>
1678
1679 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1680 Delete unused enumeration value.
1681
1682 2009-12-03 Eli Zaretskii <eliz@gnu.org>
1683
1684 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1685
1686 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1687
1688 * process.c (Fmake_network_process): Fix up the tests for
1689 "connectionless socket", so they DTRT for seqpacket sockets as well.
1690
1691 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1692
1693 * process.c (Qseqpacket): New symbol.
1694 (HAVE_SEQPACKET): New macro.
1695 (Fmake_network_process): Accept new :type `seqpacket'.
1696 (init_process): Add `seqpacket' feature when applicable.
1697 (syms_of_process): Initialize Qseqpacket.
1698
1699 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1700
1701 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1702 if entity is Qnil.
1703
1704 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1705
1706 * print.c (print_preprocess): Preprocess the key_and_value table of
1707 hashtables, even tho they're "hidden" (bug#5082).
1708
1709 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1710
1711 * frame.c (frame_make_pointer_invisible)
1712 (frame_make_pointer_visible): Declare f before statements.
1713
1714 2009-11-28 Eli Zaretskii <eliz@gnu.org>
1715
1716 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1717 omitted dependencies on lisp.h.
1718
1719 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1720
1721 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1722 is NULL.
1723
1724 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1725
1726 * frame.c (frame_make_pointer_invisible)
1727 (frame_make_pointer_visible): Just return if there isn't any selected
1728 frame.
1729
1730 * search.c (simple_search): Remove warning by making *p const.
1731
1732 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1733
1734 * xdisp.c (power_letter): Remove duplicate const.
1735
1736 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1737
1738 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1739
1740 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
1741 defaults (bug #5025).
1742
1743 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1744
1745 * insdel.c (adjust_markers_for_delete): Move it in the
1746 right direction! (bug#4803)
1747
1748 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1749
1750 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1751
1752 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1753
1754 2009-11-24 Glenn Morris <rgm@gnu.org>
1755
1756 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1757
1758 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1759
1760 * Makefile.in: Must create deps for ecrt0.o in its rule.
1761
1762 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1763 because that is what Gtk+ font dialog understands.
1764
1765 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1766 of Fcopy_sequence.
1767 (font_open_by_name): Put name given into QCname for font-object returned.
1768
1769 * frame.c (x_set_font): Save original font name as frame parameter
1770 font-parameter.
1771
1772 * xsettings.c (set_default_xft_settings): New function.
1773 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1774 is found.
1775
1776 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1777
1778 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1779 searching backwards through multibyte buffer.
1780
1781 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1782
1783 * xterm.c: #include xgselect.h.
1784 (x_initialize): Call xgselect_initialize.
1785
1786 * xsettings.c (something_changedCB): C++ comments => C comments.
1787 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1788 does that now.
1789
1790 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1791 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1792 (scroll_bar_button_cb): Remove.
1793 (create_menus): C++ comments => C comments. Don't bind grab-notify
1794 event.
1795 (xg_create_scroll_bar): Don't bind button-press-event and
1796 button-release-event.
1797
1798 * process.c: Include xgselect.h if defined (USE_GTK) ||
1799 defined (HAVE_GCONF).
1800 (wait_reading_process_output): Call xg_select for the same condition.
1801
1802 * xgselect.c (xg_select): New function to better integrate with
1803 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1804
1805 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1806
1807 * Makefile.in (XOBJ): Add xgselect.o.
1808
1809 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1810
1811 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1812 Remove ignored second argument. All callers changed.
1813 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1814 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1815 * xdisp.c (string_char_and_length): Likewise.
1816
1817 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1818
1819 * xterm.c (x_new_font):
1820 * print.c (print_object):
1821 * cmds.c (Fself_insert_command): Move declarations before statements.
1822
1823 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1824
1825 * s/cygwin.h: Remove unneeded linker flags.
1826
1827 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1828
1829 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1830
1831 * xsettings.h: Declare xsettings_get_system_font.
1832
1833 * xsettings.c (xsettings_get_system_font): New function.
1834 (init_gconf): No use initiating gconf unless we have Xft also.
1835 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1836 HAVE_GCONF.
1837
1838 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1839 add a blank entry so it doesn't collapse into nothing.
1840
1841 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1842
1843 * lread.c (Funintern): Comment out last change.
1844
1845 2009-11-19 Richard Stallman <rms@gnu.org>
1846
1847 * lread.c (Funintern): Error if symbol is t or nil.
1848
1849 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1850
1851 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1852 representation of Lisp integers.
1853 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1854
1855 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1856
1857 * lisp.h: Remove declaration of Ffont_get_system_font.
1858 * xfns.c: Move include of "xsettings.h".
1859 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1860
1861 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1862
1863 * xsettings.c (something_changedCB, Ffont_get_system_font):
1864 Check use_system_font.
1865 (syms_of_xsettings): DEFVAR font-use-system-font.
1866
1867 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1868
1869 * xfns.c (x_default_font_parameter): Remove dead assignment.
1870
1871 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1872
1873 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1874
1875 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
1876 not have FC_LCD_*. #define them if not there.
1877
1878 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
1879
1880 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1881
1882 * xterm.c (handle_one_xevent): Call xft_settings_event for
1883 ClientMessage, PropertyNotify and DestroyNotify.
1884 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1885 Call xsettings_initialize.
1886
1887 * xftfont.c (xftfont_fix_match): New function.
1888 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1889 Call xftfont_fix_match after XftFontMatch.
1890
1891 * xfont.c (xfont_driver): Initialize all members.
1892
1893 * xfns.c (x_default_font_parameter):
1894 Try font from Ffont_get_system_font.
1895 Do not get font from x_default_parameter if we got one from
1896 Ffont_get_system_font.
1897 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
1898
1899 * w32font.c (w32font_driver): Initialize all members.
1900
1901 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1902
1903 * lisp.h: Declare syms_of_xsettings.
1904
1905 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1906 Handle CONFIG_CHANGED_EVENT.
1907
1908 * ftfont.c (ftfont_filter_properties): New function.
1909
1910 * frame.c (x_set_font): Remove unused variable lval.
1911
1912 * font.h (struct font_driver): Add filter_properties.
1913
1914 * font.c (font_put_extra): Don't return if val is nil, it means
1915 boolean option is off.
1916 (font_parse_fcname): Collect all extra properties in extra_props
1917 and call filter_properties for all drivers with extra_props and
1918 font as parameter.
1919 (font_open_entity): Do not use cache, it does not pick up new
1920 fontconfig settings like hinting.
1921 (font_load_for_lface): If spec had a name in it, store it in entity.
1922
1923 * emacs.c (main): Call syms_of_xsettings.
1924
1925 * config.in: HAVE_GCONF is new.
1926
1927 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1928 xsettings.o is new.
1929
1930 2009-11-17 Kenichi Handa <handa@m17n.org>
1931
1932 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1933 back to the default font in case that no suitable font is found.
1934
1935 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1936
1937 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1938 Suggested by Chad Brown <yandros@mit.edu>.
1939 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1940
1941 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1942
1943 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1944
1945 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1946
1947 * Makefile.in: Ignore errors from mkdir when creating deps directory.
1948
1949 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1950
1951 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1952 has a parent.
1953
1954 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
1955 dependency files in deps/. Include those files into Makefile.
1956
1957 * config.in: Generated (AUTO_DEPEND).
1958
1959 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
1960
1961 * dbusbind.c (Vdbus_registered_objects_table): Rename from
1962 Vdbus_registered_functions_table, because it contains also
1963 properties. Fix docstring.
1964 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
1965
1966 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1967
1968 * alloc.c (mark_object): Don't reprocess marked strings.
1969 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1970 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1971
1972 2009-11-13 Kenichi Handa <handa@m17n.org>
1973
1974 * category.c (word_boundary_p): Adjust for the change of the
1975 semantics of Vword_combining_categories.
1976 (Vword_combining_categories): Describe the slight change of the
1977 semantics.
1978
1979 2009-11-13 Eli Zaretskii <eliz@gnu.org>
1980
1981 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1982
1983 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1984
1985 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1986
1987 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1988
1989 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
1990
1991 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1992
1993 2009-11-11 David Reitter <david.reitter@gmail.com>
1994
1995 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1996 variables to fix 2009-11-09 change.
1997
1998 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1999
2000 * process.c (ifflag_def): Make flag_sym constant.
2001 (Fnetwork_interface_info): Use a constant pointer.
2002 (ifflag_table):
2003 * xfns.c (cursor_bits):
2004 * xdisp.c (power_letter):
2005 * termcap.c (speeds, esctab):
2006 * sysdep.c (baud_convert):
2007 * keyboard.c (lispy_accent_codes, modifier_names):
2008 * image.c (xbm_format, xpm_format, pbm_format, png_format)
2009 (jpeg_format, tiff_format, gif_format, svg_format)
2010 (interlace_start, interlace_increment, gs_format):
2011 * gtkutil.c (separator_names):
2012 * fringe.c (swap_nibble):
2013 * fns.c (base64_value_to_char, base64_char_to_value):
2014 * fileio.c (make_temp_name_tbl):
2015 * coding.c (suffixes): Make constant.
2016
2017 * frame.c (make_initial_frame):
2018 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
2019 build_string.
2020 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
2021
2022 * s/freebsd.h:
2023 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
2024
2025 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
2026 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
2027
2028 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
2029 * xterm.c (syms_of_xterm):
2030 * xfaces.c (syms_of_xfaces):
2031 * xdisp.c (syms_of_xdisp):
2032 * lread.c (syms_of_lread):
2033 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
2034 build_string.
2035
2036 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
2037
2038 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2039
2040 * fns.c (Fplist_get): Merge the active and the commented out code.
2041
2042 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2043
2044 * keyboard.h: Declare timer_check.
2045
2046 * keyboard.c (timer_check_2): New function that does what the old
2047 timer_check did.
2048 (timer_check): Call timer_check_2 until -1 or a non-zero time is
2049 returned, i.e. don't return -1 with timers pending.
2050
2051 * process.c: Remove extern declaration of timer_check.
2052
2053 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
2054 even if timer_check returned -1.
2055
2056 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
2057 xg_dialog_data.
2058 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
2059 the event loop.
2060 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
2061 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
2062 Destroy the dialog after xg_dialog_run.
2063
2064 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2065
2066 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
2067
2068 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2069
2070 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
2071
2072 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
2073
2074 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
2075
2076 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
2077
2078 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
2079 w32menu.c, and nsmenu.m.
2080 Simplify the obsolete case where position is nil.
2081 (cleanup_popup_menu): New function, moved from nsmenu.m.
2082 (struct skp): Remove slot `notreal'.
2083 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
2084 adjust callers.
2085 (single_menu_item): Adjust call to parse_menu_item.
2086 (syms_of_menu): Defsubr x-popup-menu.
2087 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
2088 (keymap_panes): Don't export any more.
2089 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
2090 (xmenu_show): Declare.
2091 * keyboard.c (parse_menu_item): Remove arg `notreal'.
2092 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
2093 * keyboard.h (parse_menu_item): Update declaration.
2094 * xmenu.c (Fx_popup_menu): Remove.
2095 (syms_of_xmenu): Don't defsubr x-popup-menu.
2096 * w32menu.c (Fx_popup_menu): Remove.
2097 (syms_of_w32menu): Don't defsubr x-popup-menu.
2098 * nsmenu.m (cleanup_popup_menu): Remove.
2099 (ns_menu_show): Rename from ns_popup_menu and remove all the code
2100 moved to menu.c's Fx_popup_menu.
2101 (Fx_popup_menu): Remove.
2102 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
2103 menu_items (it's done in menu.c already).
2104
2105 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
2106
2107 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
2108 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
2109
2110 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
2111
2112 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
2113 xmenu_show. Hide any tooltip before opening a menu.
2114 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
2115 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
2116
2117 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2118
2119 Let integers use up 2 tags to give them one extra bit and thus double
2120 their range.
2121 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
2122 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
2123 New macros.
2124 (enum Lisp_Type): Use them. Give explicit values.
2125 (Lisp_Type_Limit): Remove.
2126 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
2127 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
2128 Pay attention to USE_2_TAGS_FOR_INTS.
2129 (INTEGERP): Use LISP_INT_TAG_P.
2130 * fns.c (internal_equal): Simplify the default case.
2131 (sxhash): Use case_Lisp_Int.
2132 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
2133 any more.
2134 (Ftype_of): Use case_Lisp_Int.
2135 (store_symval_forwarding): Take into account the fact that Ints can
2136 now have more than one tag.
2137 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
2138 buffer_slot_type_mismatch):
2139 * xfaces.c (face_attr_equal_p):
2140 * print.c (print_object):
2141 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
2142 Use case_Lisp_Int.
2143
2144 2009-11-06 Eli Zaretskii <eliz@gnu.org>
2145
2146 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
2147
2148 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
2149 warning.
2150
2151 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
2152
2153 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
2154
2155 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
2156
2157 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
2158 ButtonPressRelease and MotionNotify (bug#4870).
2159
2160 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
2161
2162 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
2163
2164 * xterm.c (syms_of_xterm):
2165 * xselect.c (syms_of_xselect):
2166 * xmenu.c (syms_of_xmenu):
2167 * xfns.c (syms_of_xfns):
2168 * xfaces.c (syms_of_xfaces):
2169 * xdisp.c (syms_of_xdisp):
2170 * window.c (syms_of_window):
2171 * w32fns.c (syms_of_w32fns):
2172 * undo.c (syms_of_undo):
2173 * textprop.c (syms_of_textprop):
2174 * terminal.c (syms_of_terminal):
2175 * syntax.c (syms_of_syntax):
2176 * sound.c (syms_of_sound):
2177 * search.c (syms_of_search):
2178 * print.c (syms_of_print):
2179 * minibuf.c (syms_of_minibuf):
2180 * macros.c (syms_of_macros):
2181 * keymap.c (syms_of_keymap, initial_define_key)
2182 (initial_define_lispy_key):
2183 * keyboard.c (syms_of_keyboard):
2184 * insdel.c (syms_of_insdel):
2185 * image.c (syms_of_image):
2186 * fringe.c (syms_of_fringe):
2187 * frame.c (syms_of_frame):
2188 * fontset.c (syms_of_fontset):
2189 * fns.c (syms_of_fns):
2190 * fns.c (syms_of_fns):
2191 * fileio.c (syms_of_fileio):
2192 * fileio.c (syms_of_fileio):
2193 * eval.c (syms_of_eval):
2194 * doc.c (syms_of_doc):
2195 * dispnew.c (syms_of_display):
2196 * dired.c (syms_of_dired):
2197 * dbusbind.c (syms_of_dbusbind):
2198 * data.c (syms_of_data):
2199 * composite.c (syms_of_composite):
2200 * coding.c (syms_of_coding):
2201 * cmds.c (syms_of_cmds):
2202 * charset.c (define_charset_internal, syms_of_character):
2203 * ccl.c (syms_of_ccl):
2204 * category.c (syms_of_category, init_category_once):
2205 * casetab.c (syms_of_casetab):
2206 * casefiddle.c (syms_of_casefiddle):
2207 * callint.c (syms_of_callint):
2208 * bytecode.c (syms_of_bytecode):
2209 * buffer.c (keys_of_buffer, syms_of_buffer):
2210 * alloc.c (syms_of_alloc):
2211 * process.c (syms_of_process, init_process):
2212 * lread.c (syms_of_lread, init_obarray):
2213 * font.c (build_style_table):
2214 * emacs.c (syms_of_emacs, main): Replace calls to intern with
2215 intern_c_string, calls to make_pure_string with
2216 make_pure_c_string. Use pure_cons instead of Fcons.
2217
2218 * process.c (socket_options): Make it const.
2219 (set_socket_option, init_process): Use a const pointer.
2220
2221 * lread.c (intern_c_string): New function.
2222 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2223 (defvar_int): Uset it. Make the name const char*.
2224
2225 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2226 (defvar_int): Update prototypes.
2227 (DEFUN, EXFUN): Support for prototypes is now required.
2228 (intern_c_string): New prototype.
2229 (struct Lisp_Subr): Make symbol_name constant.
2230
2231 * font.c (struct table_entry): Remove unused member. Make NAMES
2232 constant.
2233 (weight_table, slant_table, width_table): Make constant.
2234
2235 * emacs.c (struct standard_args): Make name and longname constant.
2236
2237 * character.h (DEFSYM): Use intern_c_string.
2238
2239 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2240
2241 * alloc.c (make_pure_c_string): New function.
2242
2243 * eval.c (Fautoload): Purecopy all arguments.
2244
2245 2009-11-05 Kenichi Handa <handa@m17n.org>
2246
2247 * fileio.c (Finsert_file_contents): Be sure set coding-system of
2248 the buffer in case of replace.
2249
2250 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
2251
2252 * puresize.h (BASE_PURESIZE): Increase to 1620000.
2253
2254 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2255
2256 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
2257 when applicable (bug#4851).
2258
2259 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
2260 (P_): Support for prototypes is now required.
2261
2262 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
2263
2264 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
2265 (Bug#4827).
2266
2267 2009-10-30 Eli Zaretskii <eliz@gnu.org>
2268
2269 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
2270
2271 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
2272
2273 * puresize.h (BASE_PURESIZE): Increase to 1470000.
2274
2275 * lread.c (Fload): Purecopy the file name when building
2276 Vpreloaded_file_list.
2277
2278 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
2279
2280 * w32fns.c (syms_of_w32fns): Change default value of
2281 w32-scroll-lock-modifier to nil. (Bug#2827)
2282
2283 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
2284
2285 * minibuf.c (Fall_completions): Fix typos in docstring.
2286
2287 2009-10-26 Andreas Schwab <schwab@redhat.com>
2288
2289 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
2290
2291 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
2292
2293 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
2294 For delta < 0, skip check that only makes sense when the mini-window
2295 is going to be enlarged. (Bug#4534)
2296
2297 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
2298
2299 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
2300 string in menu maps (Bug#4471).
2301
2302 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
2303
2304 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
2305 FRAME_NS_VIEW on terminal frames (Bug#4765).
2306
2307 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
2308
2309 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
2310 DBUS_TYPE_UINTnn separately to get proper sign extension.
2311
2312 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2313 can properly handle unsigned types.
2314 (make_uid, make_gid): Remove.
2315
2316 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2317 types again.
2318
2319 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
2320 (system_process_attributes): Likewise.
2321
2322 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2323
2324 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2325
2326 * eval.c (Fautoload): Purecopy the filename. Simplify.
2327
2328 * category.c (Fdefine_category): Purecopy docstring.
2329
2330 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
2331
2332 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2333
2334 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2335
2336 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
2337
2338 * window.c (Fwindow_edges, Fwindow_pixel_edges)
2339 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2340 (Bug#4775).
2341
2342 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2343
2344 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2345 (init_fileio_once):
2346 * lisp.h (init_fileio_once): Remove.
2347 * emacs.c (main): Don't call init_fileio_once.
2348
2349 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
2350
2351 * puresize.h (BASE_PURESIZE): Increase to 1430000.
2352
2353 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
2354
2355 * doprnt.c (doprnt): Fix overflow check.
2356
2357 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
2358
2359 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
2360
2361 * xterm.h (x_wait_for_event): Declare it.
2362
2363 * xterm.c (pending_event_wait): New variable.
2364 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2365 see pending_event_wait.eventtype.
2366 (handle_one_xevent): Don't change gravity when parent changes.
2367 (x_new_font): Call change_frame_size with new rows/columns before we
2368 try to resize the frame.
2369 (x_wait_for_event): New function.
2370 (x_set_window_size_1): Don't change gravity unless change_gravity
2371 is set.
2372 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2373 don't change frame size, instead wait for the ConfigureNotify.
2374 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2375 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2376 (x_initialize): Initialize pending_event_wait.
2377
2378 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2379 size.
2380
2381 * widget.c (EmacsFrameSetValues): Add comment.
2382 (EmacsFrameSetCharSize): Just call x_set_window_size.
2383
2384 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2385 x_wait_for_event.
2386 (flush_and_sync): Remove again.
2387 (xg_get_font_name): Suggest monospace if no previous font is known.
2388
2389 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2390
2391 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
2392 8th bit, since that only made sense in the ASCII world (bug#4751).
2393
2394 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2395
2396 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2397 processing pending events when event is filtered for input method.
2398 (Bug#3681)
2399
2400 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
2401
2402 * fns.c: Add #endif accidentally removed in previous change.
2403
2404 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2405
2406 * fns.c: Remove code for unsupported system: MAC_OS.
2407 * image.c: Likewise. Include setjmp.h.
2408
2409 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2410
2411 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2412 pixel -1 (bug #4742).
2413
2414 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2415
2416 * process.c (create_pty): Remove conditionals for no longer
2417 supported systems: UNIPLUS and RTU.
2418
2419 * xterm.c:
2420 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2421
2422 * alloc.c: Do not define struct catchtag.
2423 * eval.c: Move struct catchtag definition ...
2424 * lisp.h: ... here.
2425
2426 * image.c: Move png.h #include earlier to avoid warnings.
2427
2428 * xterm.c:
2429 * xsmfns.c:
2430 * xselect.c:
2431 * xrdb.c:
2432 * xmenu.c:
2433 * xftfont.c:
2434 * xfont.c:
2435 * xfns.c:
2436 * xfaces.c:
2437 * xdisp.c:
2438 * window.c:
2439 * widget.c:
2440 * w32xfns.c:
2441 * w32uniscribe.c:
2442 * w32term.c:
2443 * w32select.c:
2444 * w32reg.c:
2445 * w32proc.c:
2446 * w32menu.c:
2447 * w32inevt.c:
2448 * w32heap.c:
2449 * w32font.c:
2450 * w32fns.c:
2451 * w32console.c:
2452 * w32.c:
2453 * w16select.c:
2454 * vm-limit.c:
2455 * unexsol.c:
2456 * unexec.c:
2457 * unexcw.c:
2458 * unexaix.c:
2459 * undo.c:
2460 * tparam.c:
2461 * textprop.c:
2462 * terminfo.c:
2463 * terminal.c:
2464 * termcap.c:
2465 * term.c:
2466 * syntax.c:
2467 * sound.c:
2468 * sheap.c:
2469 * search.c:
2470 * scroll.c:
2471 * region-cache.c:
2472 * regex.c:
2473 * ralloc.c:
2474 * process.c:
2475 * print.c:
2476 * nsterm.m:
2477 * nsselect.m:
2478 * nsmenu.m:
2479 * nsimage.m:
2480 * nsfont.m:
2481 * nsfns.m:
2482 * msdos.c:
2483 * minibuf.c:
2484 * menu.c:
2485 * marker.c:
2486 * macros.c:
2487 * keymap.c:
2488 * keyboard.c:
2489 * intervals.c:
2490 * insdel.c:
2491 * indent.c:
2492 * gtkutil.c:
2493 * ftxfont.c:
2494 * ftfont.c:
2495 * fringe.c:
2496 * frame.c:
2497 * fontset.c:
2498 * font.c:
2499 * fns.c:
2500 * floatfns.c:
2501 * filelock.c:
2502 * fileio.c:
2503 * emacs.c:
2504 * editfns.c:
2505 * dosfns.c:
2506 * doprnt.c:
2507 * doc.c:
2508 * dispnew.c:
2509 * dired.c:
2510 * dbusbind.c:
2511 * data.c:
2512 * composite.c:
2513 * coding.c:
2514 * cmds.c:
2515 * cm.c:
2516 * chartab.c:
2517 * charset.c:
2518 * character.c:
2519 * ccl.c:
2520 * category.c:
2521 * casetab.c:
2522 * casefiddle.c:
2523 * callproc.c:
2524 * callint.c:
2525 * bytecode.c:
2526 * buffer.c:
2527 * atimer.c: Include setjmp.h. (Bug#4643)
2528
2529 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2530
2531 Remove leftover table unibyte_to_multibyte_table.
2532 * character.c (unibyte_to_multibyte_table): Remove.
2533 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2534 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2535 * character.h (UNIBYTE_TO_CHAR): New macro.
2536 (MAKE_CHAR_MULTIBYTE): Use it.
2537 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2538 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2539 (message_dolog, set_message_1):
2540 * search.c (Freplace_match):
2541 * editfns.c (Fcompare_buffer_substrings):
2542 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2543 (concat):
2544 * insdel.c (copy_text, count_size_as_multibyte):
2545 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2546 * term.c (produce_glyphs):
2547 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2548 * regex.c (RE_CHAR_TO_MULTIBYTE):
2549 * cmds.c (internal_self_insert):
2550 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2551
2552 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2553
2554 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2555
2556 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2557
2558 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
2559
2560 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2561
2562 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2563
2564 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2565 still needed under Tiger.
2566
2567 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2568
2569 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2570 __Apple__.
2571
2572 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2573
2574 2009-10-15 Kenichi Handa <handa@m17n.org>
2575
2576 * print.c (print_object): Escape a symbol like "2E10" too.
2577
2578 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
2579
2580 Cleanups and changes for 64-bit compile under Snow Leopard.
2581 Based on suggestions by Erik Charlebois.
2582
2583 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2584
2585 * nsfont.m (ns_char_width): Replace deprecated call.
2586 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2587 cast argument.
2588 (nsfont_open): Use ns_char_width() everywhere.
2589 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
2590
2591 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2592
2593 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2594 where appropriate.
2595
2596 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2597 where appropriate.
2598 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2599 Use stringWithUTF8String.
2600 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2601
2602 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2603 Add formal protocol mention to inheritance.
2604 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2605
2606 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2607 Fix printf format.
2608 (ns_query_color): Use CGFloat where appropriate.
2609 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
2610 (EmacsScroller-mouseDown:): Use long format in printf, and cast
2611 argument.
2612
2613 * config.in (NS_HAVE_NSINTEGER): Drop.
2614
2615 * dbusbind.c (dbus-method-return-internal)
2616 (dbus-method-error-internal): Use long format in printf, and cast
2617 argument.
2618
2619 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2620 in printf, and cast argument.
2621
2622 * process.c (list_processes_1): Use long format in printf, and
2623 cast argument.
2624
2625 2009-10-11 Glenn Morris <rgm@gnu.org>
2626
2627 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2628
2629 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2630
2631 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2632 menu bar with a small width so it doesn't enlarge the frame.
2633
2634 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
2635
2636 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2637
2638 2009-10-06 Glenn Morris <rgm@gnu.org>
2639
2640 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2641 SOME_MACHINE_LISP (this enters indirectly via DOC).
2642
2643 2009-10-05 Eli Zaretskii <eliz@gnu.org>
2644
2645 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2646
2647 2009-10-04 Eli Zaretskii <eliz@gnu.org>
2648
2649 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2650 Doc fix.
2651
2652 2009-10-03 Martin Rudalics <rudalics@gmx.at>
2653
2654 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2655
2656 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
2657
2658 * lisp.h (Qdelete_directory_internal): Remove, because it is not
2659 used anymore outside fileio.c.
2660
2661 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2662
2663 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
2664
2665 * lisp.h (Qdelete_directory_internal):
2666 Declare, instead of Qdelete_directory.
2667
2668 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2669
2670 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2671
2672 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2673
2674 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
2675
2676 * fileio.c (Fdelete_directory_internal): Rename from
2677 Fdelete_directory. It is not a command anymore. It has no file
2678 name handler.
2679
2680 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2681
2682 * xdisp.c (get_next_display_element): Use an enum in last change.
2683
2684 2009-09-28 Kenichi Handa <handa@m17n.org>
2685
2686 * xdisp.c (get_next_display_element): Pay attention to
2687 unibyte_display_via_language_environment in handling
2688 Vnobreak_char_display.
2689
2690 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2691
2692 * nsterm.h (ns_app_name): New extern variable.
2693
2694 * nsterm.m (ns_app_name): New variable.
2695 (ns_term_init): Set and use it.
2696 (ns_term_shutdown): Use it.
2697
2698 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2699 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2700
2701 * nsfns.m (ns_set_name_iconic, ns_set_name)
2702 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2703 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2704
2705 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2706 Remove double-casting in client_data comparison.
2707
2708 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2709
2710 * keyboard.c (make_lispy_event): Remember last wheel direction.
2711 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2712
2713 2009-09-26 Glenn Morris <rgm@gnu.org>
2714
2715 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2716 internal.elc. Add term/pc-win.elc.
2717 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2718 term/x-win.elc.
2719 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2720 term/w32-win.elc.
2721 (NS_SUPPORT): New.
2722 (lisp): Add NS_SUPPORT.
2723 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2724
2725 2009-09-25 David Reitter <david.reitter@gmail.com>
2726
2727 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2728 on Mac OS X 10.6+ (bug#4513).
2729
2730 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
2731
2732 * frame.c (xrdb_get_resource): Return nil for empty string resources;
2733 some parts of Emacs code (like font selection) don't grok them.
2734 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
2735
2736 2009-09-24 Andreas Schwab <schwab@redhat.com>
2737
2738 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2739
2740 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
2741
2742 * dired.c (Fdirectory_files): Fix typo in docstring.
2743
2744 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2745
2746 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2747 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2748 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2749 under GNUstep.
2750 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2751
2752 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2753 glyph advancement.
2754
2755 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2756
2757 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
2758 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
2759
2760 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2761 deleted (bug #4492).
2762
2763 * nsfont.m (Vns_reg_to_script): New lisp variable.
2764 (syms_of_nsfont): Declare it.
2765 (ns_registry_to_script): New function.
2766 (ns_get_req_script): Call it.
2767 (ns_findfonts): Don't give up on non-unicode registry.
2768
2769 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2770
2771 2009-09-20 Tom Tromey <tromey@redhat.com>
2772
2773 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2774 batch mode (bug#4228).
2775
2776 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
2777
2778 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
2779 carefully. (Bug #4339)
2780
2781 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
2782
2783 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
2784
2785 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2786
2787 * emacs.c (inhibit_x_resources): Update doc string for NS.
2788 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
2789 legacy code for -NXHost. Fix error printf in daemon case.
2790
2791 * nsterm.h (ns_no_defaults): Remove.
2792
2793 * nsterm.m (ns_no_defaults): Remove.
2794 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2795 (ns_use_qd_smoothing): Remove legacy variable.
2796 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2797 don't update the NSWindow itself.
2798 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
2799 state detection and store user rect ourselves. (Bug #3581)
2800
2801 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2802 ns_use_qd_smoothing.
2803
2804 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2805 platform versions. Drop support for emacs-20-style face specs.
2806 (x-close-connection): Drop PSFlush() under OS X.
2807 (x-focus-frame): Activate the app first. (Bug #4180)
2808
2809 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
2810
2811 * emacs.c (inhibit_x_resources): New variable.
2812 (main) [HAVE_NS]: Don't process --quick command line option.
2813 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2814
2815 * lisp.h (inhibit_x_resources): Declare it extern.
2816
2817 * w32reg.c (x_get_string_resource):
2818 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2819
2820 2009-09-17 Eli Zaretskii <eliz@gnu.org>
2821
2822 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2823 Add lisp/term/internal.elc.
2824
2825 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2826
2827 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2828 (bug#4461).
2829
2830 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2831
2832 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2833
2834 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2835 (OBJECTS_MACHINE): Remove, unused.
2836
2837 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2838
2839 * frame.c (x_get_resource_string): Remove unused.
2840
2841 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2842
2843 * xterm.c (x_new_font): Call change_frame_size before calling
2844 x_set_window_size, in case frame size won't change.
2845
2846 * frame.c (x_set_font): Remove dead code.
2847
2848 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2849
2850 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2851
2852 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2853
2854 * lread.c (Fload): Don't output a message after loading an obsolete
2855 package any more (done in Lisp now).
2856
2857 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
2858
2859 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2860
2861 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2862
2863 * keymap.c (Fwhere_is_internal): Use nconc2.
2864
2865 2009-09-11 Alan Mackenzie <acm@muc.de>
2866
2867 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2868 batch mode.
2869
2870 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2871
2872 * xdisp.c (display_mode_element): Detect cycles.
2873
2874 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2875
2876 * keymap.c (where_is_internal): Don't erroneously return nil right after
2877 filling the cache.
2878 (where_is_internal_1): Fix up typo.
2879
2880 2009-09-11 Glenn Morris <rgm@gnu.org>
2881
2882 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2883 share a common doc-string.
2884
2885 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2886
2887 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2888 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2889
2890 * keymap.c (QCadvertised_binding): New constant.
2891 (syms_of_keymap): Initialize it.
2892 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2893 if applicable.
2894
2895 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2896
2897 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2898 (parse_menu_item): Streamline since bindings are recomputed all the
2899 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2900 more and don't support lmenu's menu-alias any more either.
2901
2902 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2903 (where_is_internal): Strip it down to only traverse the keymaps.
2904 Move the cache handling from Fwhere_is_internal to here.
2905 (Fwhere_is_internal): Move the handling of remapping and the choice of
2906 the best binding from where_is_internal to here.
2907 Unify the cached/noncached paths, so remapping is also handled
2908 correctly when the cache is used, and so the cache can be used to
2909 speed up remap-handling when applicable.
2910 Give preference to non-remapped bindings.
2911 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2912 non-remapped bindings.
2913 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2914 command remapping.
2915
2916 * xdisp.c (display_mode_element): Move list length limit from 50 to
2917 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2918
2919 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
2920
2921 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2922
2923 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2924
2925 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2926 (Bug#4334)
2927
2928 * keymap.c (where_is_internal): Filter out shadowed remappings.
2929 Assume that where_is_internal returns unshadowed bindings to simplify
2930 the code and get rid of the gotos. Use ASIZE.
2931
2932 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2933
2934 * xterm.c (x_focus_changed): If we get a focusout and pointer
2935 is invisible, make it visible.
2936
2937 * xterm.h: Remove condition for declaration of
2938 x_*_window_to_frame.
2939
2940 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2941
2942 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2943 initial terminal as well.
2944
2945 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2946
2947 * xterm.h: Rename x_non_menubar_window_to_frame to
2948 x_menubar_window_to_frame.
2949
2950 * xterm.c: Remove declarations also in xterm.h
2951 (XTmouse_position): Do not return valid positions
2952 for clicks in the menubar and the toolbar for Gtk+.
2953
2954 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2955 if the widget for the event has the same top level as a frame,
2956 return the frame.
2957 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2958 internal windows, bug #4122.
2959 (x_non_menubar_window_to_frame): Remove.
2960
2961 2009-09-02 Glenn Morris <rgm@gnu.org>
2962
2963 * buffer.c (default-major-mode): Move most of the doc from here...
2964 (major-mode): ... to here.
2965
2966 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
2967
2968 * process.c (wait_reading_process_output): Keep the descriptor
2969 when pty is used by a non-child process, e.g., in I/O buffer of
2970 GDB this allows inferior to be restarted.
2971
2972 2009-08-29 Eli Zaretskii <eliz@gnu.org>
2973
2974 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2975 both branches into one.
2976
2977 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2978
2979 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2980 (main): Use enable-multibyte-characters rather than
2981 default-enable-multibyte-characters. Output a warning message when
2982 running a unibyte session.
2983
2984 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2985
2986 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2987 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2988 (copy_data_segment): Also copy __program_vars section.
2989 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2990 (dump_it) [LC_DYLD_INFO]: Use it.
2991
2992 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2993
2994 2009-08-28 Eli Zaretskii <eliz@gnu.org>
2995
2996 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2997 $(SRC)/buildobj.h.
2998 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2999 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
3000 $(SRC)/buildobj.h.
3001 (clean): Add buildobj.h.
3002
3003 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
3004
3005 * print.c (print_object): Set escapeflag to 1 when printing
3006 hashtable keys and values.
3007
3008 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
3009
3010 * lread.c (read_integer): Use doubles (and potentially return a float
3011 number) as we do in string-to-number.
3012 (read1): Use strtol to read integers, signal errors on strtol's
3013 overflow and use floats if strtol's output is too large for
3014 Elisp integers.
3015
3016 2009-08-27 Eli Zaretskii <eliz@gnu.org>
3017
3018 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
3019 (make-buildobj-SH): Fix last change.
3020 (SRC): Move to before where it's first used.
3021
3022 2009-08-27 Kenichi Handa <handa@m17n.org>
3023
3024 * process.c (send_process): Use encode_coding_object instead of
3025 encode_coding_string to perform eol-conversion even if the string
3026 is unibyte.
3027
3028 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
3029 character.
3030
3031 * cmds.c (Fself_insert_command): Avoid unnecessay
3032 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
3033
3034 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
3035
3036 * callproc.c (Fcall_process): Remove always true #if.
3037
3038 * lisp.h: Replace #if 0 code for checking with text pointing to
3039 the --enable-checking configure flag.
3040
3041 * emacs.c (main): Mention the --enable-profiling configure flag
3042 instead of using CFLAGS.
3043
3044 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
3045
3046 * Makefile.in (buildobj.h): New target.
3047 (doc.o): Depend on it.
3048 (temacs${EXEEXT}): Don't generate buildobj.lst.
3049 (mostlyclean): Delete buildobj.h, not buildobj.lst.
3050 * makefile.w32-in ($(SRC)/buildobj.h): New target.
3051 ($(BLD)/doc.$(O)): Depend on it.
3052 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
3053 provided by Eli Zaretskii.)
3054 ($(TEMACS)): Don't generate buildobj.lst.
3055 * doc.c: Include buildobj.h.
3056 (buildobj): New static variable.
3057 (Fsnarf_documentation): Use it, instead of opening and reading
3058 buildobj.lst.
3059
3060 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
3061
3062 * dbusbind.c (Fdbus_call_method)
3063 (Fdbus_call_method_asynchronously): Use English numeric format for
3064 timeout values in doc string.
3065
3066 2009-08-25 Kenichi Handa <handa@m17n.org>
3067
3068 * alloc.c (mark_char_table): New function.
3069 (mark_object): Use mark_char_table for a char-table.
3070
3071 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
3072 (CHAR_TABLE_REF): Use it.
3073
3074 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
3075
3076 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
3077 before invoking the newly build emacs to check for load-path
3078 shadowing.
3079
3080 2009-08-22 Glenn Morris <rgm@gnu.org>
3081
3082 * Makefile.in (bootstrap_exe): New variable.
3083 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
3084 Use ${bootstrap_exe}.
3085
3086 2009-08-22 Eli Zaretskii <eliz@gnu.org>
3087
3088 * coding.h (encode_coding_string): Don't encode unibyte strings.
3089 (Bug#4047)
3090
3091 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
3092
3093 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
3094
3095 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
3096 intended as hotfix only.
3097 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
3098
3099 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3100
3101 * nsterm.m (ns_get_color): Update documentation properly for last
3102 change, and clean up loose ends in the code left by it. Fix
3103 longstanding bug with 16-bit hex parsing, and add support for
3104 yet another X11 format (rgb:r/g/b) for compatibility.
3105 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
3106 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
3107
3108 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
3109
3110 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
3111
3112 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
3113
3114 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
3115 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
3116 (xd_initialize, xd_pending_messages): Check, whether
3117 $DBUS_SESSION_BUS_ADDRESS is set.
3118
3119 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3120
3121 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
3122
3123 * nsterm.m (ns_get_color): Remove incompatible color formats again.
3124
3125 2009-08-20 Glenn Morris <rgm@gnu.org>
3126
3127 * emacs.c (system-type): Doc fix.
3128
3129 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3130
3131 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
3132 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
3133
3134 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
3135
3136 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
3137 New functions.
3138 (xd_initialize): Revert change from 2009-08-16.
3139
3140 2009-08-18 Kenichi Handa <handa@m17n.org>
3141
3142 * fontset.c (Ffontset_font): If a nil element is found in a
3143 font-group vector, return nil.
3144
3145 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
3146
3147 * process.c (status_notify): Don't perform redisplay.
3148 (Fdelete_process, list_processes_1, process_send_signal):
3149 Expliticly perform redisplay.
3150 (wait_reading_process_output): Always check process status, but
3151 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
3152
3153 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
3154
3155 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
3156 (XFLOAT_INIT): New macro for storing a float value.
3157 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
3158 * fns.c (sxhash): Copy out the value of a float in order to
3159 examine its bytes.
3160 * dbusbind.c (xd_append_arg): Likewise.
3161
3162 * emacs.c (main): Don't call syms_of_data twice.
3163
3164 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
3165
3166 * dbusbind.c (xd_initialize): Add connection file descriptor to
3167 input_wait_mask, in order to let select() detect, whether a new
3168 message has been arrived.
3169 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
3170
3171 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
3172
3173 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
3174 New functions.
3175
3176 * lisp.h (xd_pending_messages): Declare.
3177
3178 * keyboard.c (readable_events): Call xd_pending_messages.
3179
3180 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
3181
3182 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
3183
3184 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
3185
3186 * buffer.c (set_buffer_internal_1)
3187 (swap_out_buffer_local_variables): Check for unbound local
3188 variables (Bug#4138).
3189
3190 2009-08-14 Eli Zaretskii <eliz@gnu.org>
3191
3192 * process.c (create_pty): Fix last change.
3193
3194 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
3195
3196 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
3197 (xbm_load_image): Caller changed.
3198 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
3199
3200 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
3201
3202 * process.c (create_pty): New function.
3203 (Fstart_process): Use it to allow Emacs to just associate a pty
3204 with the buffer. See associated change in gdb-mi.el.
3205 (list_processes_1): Deal with no program name.
3206 (start_process_unwind): Use pid == -2 to mean no process.
3207
3208 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3209
3210 * cmds.c (nonundocount): New global variable.
3211 (keys_of_cmds): Initialize it.
3212 (Fself_insert_command): Use it to combine upto 20 sequential chars
3213 into a single undo entry, just like the Qself_insert_command code in
3214 keyboard.c does.
3215 Call frame_make_pointer_invisible, also like the Qself_insert_command
3216 code in keyboard.c does.
3217 * keyboard.c (command_loop_1): Use the new global nonundocount rather
3218 than its own local replacement for it.
3219
3220 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
3221
3222 * fns.c (concat): Don't re-set string length to its current value.
3223
3224 * coding.h (decode_coding_string, encode_coding_string):
3225 Use SBYTES macro.
3226
3227 * doprnt.c (doprnt_lisp): Delete unused function.
3228 (doprnt): Merge with doprnt1, discarding lispstrings code.
3229 * lisp.h (doprnt_lisp): Don't declare.
3230
3231 2009-08-07 Juri Linkov <juri@jurta.org>
3232
3233 * puresize.h (BASE_PURESIZE): Increase to 1270000.
3234
3235 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3236
3237 * print.c (syms_of_print): Undo previous change.
3238
3239 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
3240
3241 * lread.c (read1, syms_of_lread): Read hashtables back from the
3242 readable format.
3243
3244 * print.c (print_preprocess, print_object): Print hashtables fully
3245 and readably.
3246 (syms_of_print): Provide 'hashtable-print-readable.
3247
3248 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3249
3250 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
3251 no family set.
3252 (nsfont_open): Handle case when entity has no family.
3253
3254 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3255
3256 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
3257 element, not a list, for match case.
3258
3259 2009-07-28 Kenichi Handa <handa@m17n.org>
3260
3261 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
3262 rigidly.
3263
3264 * xfont.c (xfont_list_pattern): Don't ignore the return value of
3265 font_parse_xlfd. Check font properties more rigidly.
3266
3267 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3268
3269 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
3270 bsd-common.h.
3271
3272 2009-07-27 Kenichi Handa <handa@m17n.org>
3273
3274 * xfaces.c (face_with_height): Call font_clear_prop.
3275
3276 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
3277
3278 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
3279
3280 * xterm.c (x_term_init): Use Qx.
3281
3282 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
3283
3284 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
3285 (ns_get_color): Revert 2009-07-16 change.
3286
3287 2009-07-25 Eli Zaretskii <eliz@gnu.org>
3288
3289 * lread.c (syms_of_lread) <force_load_messages>: New variable.
3290 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
3291
3292 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
3293
3294 * coding.h (decode_coding_string, encode_coding_string):
3295 Use SCHARS macro.
3296
3297 * lread.c: Rewrite 2009-07-21 changes.
3298 (load_depth): Delete.
3299 (Qload_in_progress): New variable.
3300 (load_unwind): Don't reference load_depth or load_in_progress.
3301 (Fload): Likewise; specbind Qload_in_progress instead.
3302 (init_lread): Don't initialize load_depth.
3303 (syms_of_lread): Initialize and protect Qload_in_progress.
3304
3305 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3306
3307 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
3308
3309 2009-07-23 Yavor Doganov <yavor@gnu.org>
3310
3311 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
3312
3313 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3314
3315 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
3316 Bugs 3792, 3720, 2402.
3317 (ns_lookup_indexed_color): Check for bad index.
3318 (ns_index_color): Init unused slot to 0.
3319 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3320 Bug 3714, possibly 3082.
3321
3322 2009-07-22 Jason Rumney <jasonr@gnu.org>
3323
3324 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3325 Position IME window at cursor (Bug#2570).
3326 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3327 (globals_of_w32fns): Dynamically load functions required above.
3328
3329 * w32term.c (w32_draw_window_cursor): Send message to reposition
3330 any IME window.
3331
3332 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
3333
3334 * fileio.c: Revert 2009-07-16 changes.
3335 (Vauto_save_include_big_deletions): New variable.
3336 (Fdo_auto_save): Disable auto-save only if
3337 auto-save-include-big-deletions is nil.
3338
3339 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
3340
3341 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3342 the overflowed pixels into account (Bug#3879).
3343
3344 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
3345
3346 * lread.c (load_depth): New variable.
3347 (Fload, load_unwind, init_lread): Set it to the load recursion
3348 depth; set load_in_progress as a simple boolean based on the
3349 current load_depth. (Bug#3892)
3350
3351 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3352
3353 * nsfont.m (ns_has_attribute): Remove.
3354 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3355
3356 2009-07-18 Juri Linkov <juri@jurta.org>
3357
3358 * process.c (Fset_process_query_on_exit_flag): Mention killing
3359 a buffer in docstring.
3360
3361 2009-07-17 Kenichi Handa <handa@m17n.org>
3362
3363 * casetab.c (shuffle): Fix the logic of setting up the cycle.
3364
3365 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3366
3367 * nsfns.m (Fns_set_alpha): Remove function.
3368 (syms_of_nsfns): Don't defsubr it.
3369
3370 * nsterm.m (ns_get_color): Remove incompatible color formats.
3371 (ns_color_to_lisp): Generate #rrggbb color format string.
3372
3373 2009-07-16 Richard Stallman <rms@gnu.org>
3374
3375 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3376 (Fset_buffer_auto_saved): Handle save_length = -2.
3377
3378 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
3379
3380 * xterm.c (Qx_gtk_map_stock): New var.
3381
3382 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3383 of calling intern each time.
3384
3385 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3386
3387 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3388 does tiling.
3389
3390 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3391
3392 2009-07-14 Kenichi Handa <handa@m17n.org>
3393
3394 * font.c (font_vconcat_entity_vectors): New function.
3395 (struct font_sort_data): New member font_driver_preference.
3396 (font_compare): Check font_driver_preference.
3397 (font_sort_entities): The format of the first argument changed.
3398 (font_delete_unmatched): Likewise.
3399 (font_list_entities): The return type changed.
3400 (font_select_entity): The format of the second argument changed.
3401 (font_find_for_lface): Adjuste for the above changes.
3402 Don't suppress the checking of C even if the repertory supports it.
3403 (Flist_fonts): Adjust for the above changes.
3404
3405 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3406 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
3407 Reject a font who has adstyle property that is different from a
3408 langname derived from registry property.
3409 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
3410
3411 2009-07-13 Eli Zaretskii <eliz@gnu.org>
3412
3413 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3414 local copy of dirfilename.
3415
3416 2009-07-13 Kenichi Handa <handa@m17n.org>
3417
3418 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3419 against max_char.
3420
3421 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3422 calling XSYMBOL (sym).
3423
3424 2009-07-11 Eli Zaretskii <eliz@gnu.org>
3425
3426 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3427 New function.
3428 (directory_files_internal) [WINDOWSNT]:
3429 Bind w32-get-true-file-attributes to either t or nil, depending whether
3430 the filesystem of the directory is fast or slow.
3431
3432 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3433 file name.
3434 (is_slow_fs): New function.
3435 (stat): Use it to determine whether to issue more system calls to
3436 get accurate file attributes, when w32-get-true-file-attributes is
3437 `local'.
3438
3439 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3440
3441 * xfns.c (Fx_select_font): Remember last font selected in
3442 x_last_font_name and use that the next time. Also try the frame
3443 parameter font-parameter as default to the font dialog.
3444
3445 2009-07-10 Kenichi Handa <handa@m17n.org>
3446
3447 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3448
3449 2009-07-09 Eli Zaretskii <eliz@gnu.org>
3450
3451 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
3452
3453 * w32.c (stat): Treat UNC file names as residing on remote
3454 drives. (Bug#3542)
3455
3456 2009-07-09 Kenichi Handa <handa@m17n.org>
3457
3458 * fontset.c (fontset_find_font): Fix previous change.
3459
3460 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
3461
3462 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3463 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3464 error flag.
3465
3466 2009-07-08 Kenichi Handa <handa@m17n.org>
3467
3468 * fontset.c (fontset_find_font): Fix the logic of handling
3469 charset_matched.
3470 (font_for_char): Delete unused var.
3471 (generate_ascii_font_name): Delete it.
3472
3473 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3474
3475 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3476 (encode_coding_sjis): Fix the code range check.
3477
3478 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
3479
3480 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3481 (Fexpand_file_name): Copy string data properly (Bug#3772).
3482
3483 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3484
3485 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3486 first MapNotify.
3487
3488 2009-07-07 Kenichi Handa <handa@m17n.org>
3489
3490 * character.h (unibyte_has_multibyte_table): Delete extern.
3491 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3492
3493 * charset.c (Fset_charset_priority): Update charset_unibyte.
3494 (syms_of_charset): Initialize charset_unibyte.
3495
3496 * character.c (unibyte_has_multibyte_table): Delete it.
3497 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3498 charset_unibyte.
3499 (multibyte_char_to_unibyte_safe): Likewise.
3500 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3501
3502 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
3503 (x_produce_glyphs): Likewise.
3504
3505 * .gdbinit (xcharset): Fix the treating $arg0.
3506
3507 2009-07-04 Eli Zaretskii <eliz@gnu.org>
3508
3509 Emulation of `getloadavg' on MS-Windows.
3510 * w32.c: Include float.h
3511 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3512 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3513 (get_native_system_info, get_system_times): New functions.
3514 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3515 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3516 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3517 g_b_init_get_system_times, and num_of_processors.
3518
3519 2009-07-03 Jason Rumney <jasonr@gnu.org>
3520
3521 * w32term.c (w32_initialize): Use standard types.
3522
3523 2009-07-03 Eli Zaretskii <eliz@gnu.org>
3524
3525 * dired.c (Ffile_attributes): Decode user and group names by the
3526 locale's encoding. (Bug#3443)
3527
3528 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3529
3530 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3531 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3532
3533 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3534
3535 * term.c (init_tty): Remove spurious #ifdef.
3536
3537 * m/mips.h: Mention this file is also used for netbsd.
3538 * m/pmax.h: Remove file.
3539
3540 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3541
3542 * xterm.h (struct x_display_info): Add invisible_cursor.
3543 (struct x_output): Add current_cursor.
3544
3545 * xterm.c (XTtoggle_invisible_pointer): New function.
3546 (x_define_frame_cursor): Don't define cursor if invisible or the
3547 same as before. Set current_cursor.
3548 (x_create_terminal): Set toggle_invisible_pointer_hook.
3549
3550 * xfns.c (make_invisible_cursor): New function.
3551 (x_set_mouse_color): Call make_invisible_cursor.
3552 Set current_cursor.
3553 (x_window): Set current_cursor.
3554
3555 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3556
3557 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3558 inserting a character.
3559 (read_avail_input): Call frame_make_pointer_visible.
3560
3561 * frame.c (Vmake_pointer_invisible): New variable.
3562 (frame_make_pointer_invisible, frame_make_pointer_visible):
3563 New functions.
3564 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3565
3566 * frame.h: Declare frame_make_pointer_invisible and
3567 frame_make_pointer_visible.
3568 (struct frame): Add pointer_invisible.
3569
3570 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3571
3572 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3573 frame isn't visible.
3574 (xg_frame_resized): If width/height is -1, get size of window
3575 from X server.
3576
3577 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3578 for MapNotify.
3579
3580 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
3581 here or call change_frame_size. Just call flush_and_sync.
3582 (flush_and_sync): Reintroduce.
3583
3584 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
3585
3586 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
3587
3588 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3589 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3590
3591 * frame.h: Declare Qsticky.
3592
3593 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3594
3595 * nsfns.m (ns_frame_parm_handlers): Ditto.
3596
3597 * frame.c: Declare Qsticky.
3598 (frame_parms): Add sticky.
3599
3600 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3601
3602 * xterm.h: Declare x_set_sticky.
3603
3604 * xterm.c (x_set_sticky): New function.
3605
3606 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3607 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3608 xg_tool_bar_proxy_help_callback.
3609
3610 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3611
3612 * frame.c: Qmaximized is new.
3613 (x_set_frame_parameters): Do not handle fullscreen specially.
3614 Only set width and height if explicitly set.
3615 (x_set_fullscreen): Handle Qmaximized.
3616 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3617 (syms_of_frame): Initialize Qmaximized.
3618
3619 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3620 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3621
3622 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
3623 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3624 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3625 set gravity to NorthWestGravity when USE_GTK.
3626 (set_wm_state): New function.
3627 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3628 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3629 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
3630 or the case when no window manager is running. That means remove calls
3631 to x_real_positions and x_fullscreen_adjust.
3632
3633 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3634 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3635 flush_and_sync.
3636 (xg_height_changed): New function.
3637 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
3638 and gtk_window_set_policy. Set frame gravity after parsing the
3639 geometry string.
3640 (xg_update_frame_menubar, free_frame_menubar)
3641 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3642 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3643 Remove calls to xg_frame_set_char_size.
3644
3645 2009-07-01 Kenichi Handa <handa@m17n.org>
3646
3647 * keyboard.c (decode_keyboard_code): New function.
3648 (tty_read_avail_input): Decode the input bytes if necessary.
3649
3650 * coding.c (setup_coding_system):
3651 Initialize coding->carryover_bytes to 0.
3652 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3653 use Qno_conversion.
3654
3655 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3656
3657 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3658
3659 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
3660
3661 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
3662
3663 2009-06-30 Jason Rumney <jasonr@gnu.org>
3664
3665 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3666 is already loaded.
3667 Set user model ID if supported (bug#1849).
3668
3669 2009-06-29 Jim Meyering <meyering@redhat.com>
3670
3671 Remove useless if-before-xfree test.
3672 * nsfont.m (nsfont_close): Remove useless test.
3673 * term.c (delete_tty): Likewise.
3674 * w32.c (system_process_attributes): Likewise.
3675 * w32font.c (w32font_close): Likewise.
3676 * xfaces.c (x_free_gc): Likewise.
3677 * xselect.c (buffer): Likewise.
3678
3679 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3680
3681 * process.c (send_process): Keep decoded string in a local
3682 variable and protect it from GC. (Bug#3521)
3683
3684 2009-06-28 Eli Zaretskii <eliz@gnu.org>
3685
3686 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3687 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3688
3689 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
3690
3691 * xdisp.c (start_display, handle_face_prop)
3692 (move_it_vertically_backward, cursor_row_fully_visible_p)
3693 (redisplay_window, try_window_id, produce_image_glyph):
3694 Delete some #ifdef-ed out code chunks that are now obsolete.
3695
3696 * xterm.c (x_update_window_begin, x_new_focus_frame)
3697 (x_scroll_bar_handle_click, handle_one_xevent)
3698 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3699 (x_make_frame_visible, x_make_frame_invisible)
3700 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3701 code chunks that are now obsolete.
3702
3703 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
3704
3705 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3706 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3707 for hours, when optimzation is enabled.
3708 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3709 (xd_read_message): Make them static.
3710
3711 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3712
3713 * term.c (turn_on_face): Allow simultaneously bold and dim
3714 terminal faces (Bug#3530).
3715
3716 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
3717
3718 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3719
3720 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3721 truncation glyphs (Bug#3686).
3722
3723 2009-06-27 Glenn Morris <rgm@gnu.org>
3724
3725 * m/pmax.h: Restore file, with only netbsd portions.
3726
3727 2009-06-26 David Reitter <david.reitter@gmail.com>
3728
3729 * nsterm.m (keydown): Avoid infinite loop.
3730
3731 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3732
3733 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3734 the arg FORCE_SYMBOL.
3735
3736 2009-06-25 Kenichi Handa <handa@m17n.org>
3737
3738 * fontset.c (fontset_find_font): When a usable rfont_def is found
3739 in a fallback font-group, make it the first element of the group.
3740
3741 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
3742
3743 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3744
3745 2009-06-24 Kenichi Handa <handa@m17n.org>
3746
3747 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3748 set for C.
3749 (fontset_font): Record the availability of a font for C both in
3750 the realized fontsets of the current one and the default one.
3751
3752 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3753
3754 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3755 conditional, it is always defined on AIX.
3756
3757 2009-06-23 Miles Bader <miles@gnu.org>
3758
3759 * window.c (Vrecenter_redisplay): New variable.
3760 (syms_of_window): Initialize it.
3761 (Qtty): New extern declaration.
3762 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3763
3764 2009-06-23 Jim Meyering <meyering@redhat.com>
3765
3766 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3767 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
3768 pointer dereferences are guaranteed to be valid.
3769
3770 2009-06-23 Kenichi Handa <handa@m17n.org>
3771
3772 * emacs.c (main): Call init_font ().
3773
3774 * font.h (Vfont_log): Extern it.
3775 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3776
3777 * font.c (font_sort_entities, font_list_entities)
3778 (font_matching_entity, font_open_entity)
3779 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3780 (Vfont_log): Delete static.
3781 (font_log_env_checked): Delete this variable.
3782 (font_add_log): Don't check font_log_env_checked.
3783 (font_deferred_log): Check Vfont_log.
3784 (init_font): New function.
3785
3786 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3787
3788 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3789
3790 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3791
3792 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3793
3794 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3795 (face_for_char): Don't call font_deferred_log here.
3796 (font_for_char): Likewise.
3797
3798 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
3799
3800 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3801 rather than its background_width for drawing the overline and
3802 underline (Bug#489).
3803
3804 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3805 rather than its background_width for drawing the overline and
3806 underline (Bug#489).
3807 (xg_default_icon_file): New variable.
3808 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3809 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
3810
3811 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3812 (load_overlay_strings): Remove externs.
3813 (fast_find_position): Function deleted.
3814 (mouse_face_from_buffer_pos): New function, based on
3815 fast_find_position. Correctly handle before-strings,
3816 display-strings, and after-strings (Bug#1220).
3817 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3818
3819 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
3820
3821 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
3822 (move_it_in_display_line_to, move_it_in_display_line_to)
3823 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3824
3825 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
3826
3827 * Branch for 23.1.
3828
3829 2009-06-21 Jason Rumney <jasonr@gnu.org>
3830
3831 * w32term.c (keyboard_codepage): New static variable.
3832 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3833 (w32_read_socket) [WM_CHAR]: Use it to decode character
3834 input (bug#3237).
3835 (w32_initialize): Initialize it.
3836 (codepage_for_locale): New function.
3837
3838 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
3839
3840 * process.c (status_message): Pass Faset index argument as a lisp
3841 object, so as to work with USE_LISP_UNION_TYPE.
3842
3843 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3844
3845 * coding.c (Ffind_coding_systems_region_internal):
3846 Cache checked characters.
3847
3848 2009-06-18 Kenichi Handa <handa@m17n.org>
3849
3850 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
3851
3852 2009-06-18 Andreas Schwab <aschwab@redhat.com>
3853
3854 * xdisp.c (redisplay_internal): Check that the frame is still
3855 live after redisplay of its windows.
3856 (redisplay_windows): Check that the window is still live.
3857
3858 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3859
3860 * coding.c (detect_coding_utf_16): Fix previous change.
3861
3862 2009-06-16 Kenichi Handa <handa@m17n.org>
3863
3864 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3865 UTF-16 by checking the dispersion of Eth and Oth bytes.
3866
3867 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3868
3869 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3870
3871 2009-06-15 Kenichi Handa <handa@m17n.org>
3872
3873 * process.c (status_message): Fix previous change. Be sure to
3874 decode a localized string.
3875
3876 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3877
3878 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3879 add comment explaining why.
3880
3881 2009-06-14 Sidney Markowitz <sidney@sidney.com>
3882
3883 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
3884
3885 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3886
3887 * nsfont.m (ns_attribute_value): Remove.
3888 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3889 (ns_has_attribute): Shrink the normal range.
3890 (ns_findfonts): Don't worry about requested spec in determining
3891 need for synthItal.
3892 (ns_get_covering_families): Retain scriptToFamilies.
3893
3894 2009-06-14 Seiji Zenitani <zenitani@mac.com>
3895
3896 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3897
3898 2009-06-11 Kenichi Handa <handa@m17n.org>
3899
3900 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3901 overhang for the static composition case.
3902
3903 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3904
3905 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3906 overhang for the automatic composition case.
3907
3908 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3909 composition case.
3910
3911 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
3912
3913 * xdisp.c (get_next_display_element): When handling wrap-prefix
3914 and line-prefix, treat \n as a control character (bug#3502).
3915
3916 2009-06-10 Kenichi Handa <handa@m17n.org>
3917
3918 * font.c (font_parse_family_registry): Fix for one-char foundry.
3919 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3920
3921 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3922
3923 * process.c (status_message): Fix handling of multibyte signal
3924 string (Bug#3499).
3925
3926 2009-06-09 Jim Meyering <meyering@redhat.com>
3927
3928 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3929 color name is missing.
3930
3931 2009-06-09 Kenichi Handa <handa@m17n.org>
3932
3933 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3934 FROM-CODE and TO-CODE are codepoints of CHARSET.
3935
3936 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3937
3938 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3939
3940 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3941
3942 Changes to support :script/:lang/:otf in NS font driver.
3943 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3944 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3945 indicate not part of font driver interface, and change callers.
3946 (ns_get_family): Remove pointless null check.
3947 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3948 ns_spec_to_descriptor, ns_descriptor_to_entity.
3949 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3950 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3951 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3952 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3953 (ns_get_req_script, ns_accumulate_script_ranges)
3954 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3955 New functions.
3956 (nsfont_list, nsfont_match): Use ns_findfonts.
3957 (nsfont_open): Use font descriptor instead of traits.
3958 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3959 (dump_glyphstring): Rename to ns_dump_glyphstring.
3960
3961 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3962
3963 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3964
3965 * fontset.c (fontset_from_font): Remove NS-specific code.
3966
3967 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
3968
3969 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3970 nonactive windows.
3971
3972 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
3973
3974 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
3975
3976 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3977
3978 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3979
3980 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
3981
3982 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3983 account for the overflowing of newlines into the last glyph on the
3984 display line (Bug#3482).
3985
3986 2009-06-05 David Reitter <david.reitter@gmail.com>
3987
3988 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3989 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
3990 Fns_selection_exists_p, Fns_selection_owner_p.
3991
3992 2009-06-03 Jason Rumney <jasonr@gnu.org>
3993
3994 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3995 available. (Bug#3379)
3996
3997 2009-05-29 Kenichi Handa <handa@m17n.org>
3998
3999 * coding.c (get_translation_table):
4000 Check Venable_character_translation.
4001
4002 2009-05-26 David Reitter <david.reitter@gmail.com>
4003
4004 * nsterm.m (ns_raise_frame): Only raise frame if visible.
4005 (x_make_frame_visible): Move frame to front rather than calling
4006 ns_raise_frame().
4007 (keyDown:): Do not swallow events that aren't re-sent if frame
4008 isn't key window.
4009 (drawRect:): Do not set visibility/iconified flags because
4010 drawRect may be called by NSView even if the frame is hidden.
4011
4012 * nsfns.m (Fx_create_frame): Follow other ports in
4013 determining visibility; default to t. Ensure async_visible is set.
4014
4015 2009-05-23 Eli Zaretskii <eliz@gnu.org>
4016
4017 * dired.c (Ffile_attributes): Doc fix.
4018
4019 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
4020
4021 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
4022
4023 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
4024
4025 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
4026 and xfont_scratch_props.
4027 (syms_of_xfont): Do it here instead.
4028 (xfont_find_ccl_program): Delete, unused.
4029 (xfont_open): Delete unused var `i'.
4030
4031 2009-05-21 Kenichi Handa <handa@m17n.org>
4032
4033 * fontset.c (Qlatin): Don't make it static.
4034
4035 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
4036 New functions.
4037 (xfont_scripts_cache, xfont_scratch_props): New variables.
4038 (Qlatin, Vscalable_fonts_allowed): Extern it.
4039 (xfont_list_pattern): Argument changed. Callers changed.
4040 Check Vscalable_fonts_allowed. Check the support of a script.
4041 (xfont_list): Don't reject a font spec with :script property.
4042 (xfont_has_char): Fix setting of encoding.
4043 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
4044 xfont_scratch_props.
4045
4046 2009-05-19 Kenichi Handa <handa@m17n.org>
4047
4048 * font.c (font_sort_entities): Rename from font_sort_entites.
4049 Callers changed.
4050
4051 2009-05-18 Kenichi Handa <handa@m17n.org>
4052
4053 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
4054
4055 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
4056
4057 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
4058 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
4059
4060 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4061
4062 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
4063 (x_delete_terminal): Dissociate resource database from display and
4064 then call XrmDestroyDatabase before closing display.
4065
4066 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4067
4068 * nsterm.m (ns_read_socket): Remove unused variable.
4069 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
4070 whether selected frame is viable before raising it (based on patch
4071 by David Reitter), and improve commentary.
4072 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
4073
4074 2009-05-15 Kenichi Handa <handa@m17n.org>
4075
4076 * font.c (Ffont_spec): Check arguments.
4077
4078 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
4079
4080 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
4081 weight when testing attributes (Bug#3282).
4082
4083 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4084
4085 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
4086 what we expect to get in the next ConfigureNotify event.
4087
4088 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
4089 before Xft one (Bug#1696).
4090
4091 2009-05-07 David Reitter <david.reitter@gmail.com>
4092
4093 * nsfns.m (Fx_display_planes): Compute bitplanes using
4094 NSBitsPerPixelFromDepth (Bug#3207).
4095
4096 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
4097
4098 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
4099
4100 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
4101
4102 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
4103
4104 2009-05-07 David Reitter <david.reitter@gmail.com>
4105
4106 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
4107 Respect mouse face background.
4108
4109 2009-05-07 David Reitter <david.reitter@gmail.com>
4110
4111 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
4112 Mouse movement/highlight: bracket drawing operations
4113 in ns_update_begin and ns_update_end.
4114
4115 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4116
4117 * nsfns.m (ns_get_screen): Rewrite.
4118 Don't presume selected-frame is of type `ns'.
4119
4120 * font.c (font_update_drivers): Sanity fallback to avoid disabling
4121 all drivers.
4122
4123 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
4124
4125 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4126
4127 * keyboard.h (add_user_signal): Fix typo in extern.
4128
4129 * lisp.h (add_user_signal): Remove extern.
4130
4131 * unexelf.c (unexec): Consider a section to precede the .bss section
4132 if its addresses overlap that of .bss.
4133 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
4134 instead of dumping process.
4135
4136 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4137
4138 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
4139
4140 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4141
4142 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
4143
4144 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4145
4146 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
4147 any statements.
4148
4149 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
4150
4151 * process.c (read_process_output): Make sure the current buffer is
4152 always restored.
4153
4154 * coding.c (record_conversion_result): Don't modify
4155 Vlast_code_conversion_error for successful result.
4156 (alloc_destination): Don't clobber conversion result. (Bug#1650)
4157
4158 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4159
4160 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
4161 (load_charset_map): Remove unnecessary code.
4162
4163 2009-04-30 David Reitter <david.reitter@gmail.com>
4164
4165 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4166 through f24.
4167
4168 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
4169
4170 * xfaces.c (face_at_buffer_position): New arg base_face_id.
4171
4172 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
4173 face_at_buffer_position.
4174 (face_before_or_after_it_pos, get_next_display_element)
4175 (note_mouse_highlight): Update face_at_buffer_position call.
4176
4177 * term.c (term_mouse_highlight):
4178 * msdos.c (IT_note_mouse_highlight):
4179 * fontset.c (Finternal_char_font):
4180 * font.c (font_at, font_range): Update face_at_buffer_position call.
4181
4182 * dispextern.h (face_at_buffer_position): Update prototype.
4183
4184 2009-04-30 Kenichi Handa <handa@m17n.org>
4185
4186 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
4187
4188 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
4189
4190 * callproc.c (Fcall_process): Fix GC protection. Make sure
4191 current buffer is always restored.
4192
4193 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4194
4195 * atimer.c (init_atimer): Also clear stopped_atimers.
4196
4197 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
4198
4199 * process.c (create_process): Clean up merger residues of
4200 2008-07-17 change.
4201
4202 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
4203
4204 * lread.c (Vread_circle): New variable.
4205 (read1): Disable recursive read if Vread_circle is nil.
4206
4207 2009-04-29 Kenichi Handa <handa@m17n.org>
4208
4209 * fontset.h (set_default_ascii_font): Delete extern.
4210
4211 * fontset.c (set_default_ascii_font): Delete this unused function.
4212
4213 * frame.c (x_set_font): When ARG is a font-object, check if the
4214 font-object matches with the ASCII font-spec of the frame's
4215 fontset. If not, create a new fontset for the frame. (Bug #3075)
4216
4217 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
4218
4219 * fns.c (Flocale_info): Protect vector from GC during decoding.
4220
4221 * process.c (Fstart_process): Protect argv strings from GC during
4222 encoding.
4223
4224 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
4225
4226 * sysdep.c: Include <ctype.h>.
4227
4228 2009-04-27 David Reitter <david.reitter@gmail.com>
4229
4230 * nsfont.m (nsfont_open): Remove unused variable shrink.
4231 Remove commented-out code.
4232
4233 2009-04-26 Johan Bockgård <bojohan@gnu.org>
4234
4235 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4236
4237 2009-04-25 Jason Rumney <jasonr@gnu.org>
4238
4239 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
4240
4241 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4242
4243 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
4244 Swap bytes in short integer if fringe bitmap width > 8.
4245
4246 2009-04-23 Kenichi Handa <handa@m17n.org>
4247
4248 * xfaces.c (Fx_list_fonts): If a font size is specified in
4249 PATTERN, set it in returned scalable fonts.
4250
4251 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
4252
4253 * keyboard.c (Fset_input_meta_mode): Doc fix.
4254
4255 * dispnew.c (Fsend_string_to_terminal): Doc fix.
4256
4257 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
4258
4259 * coding.c (Fterminal_coding_system): Doc fix.
4260
4261 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
4262 (Fx_display_pixel_height, Fx_display_planes)
4263 (Fx_display_color_cells, Fx_server_max_request_size)
4264 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4265 (Fx_display_mm_height, Fx_display_mm_width)
4266 (Fx_display_backing_store, Fx_display_visual_class)
4267 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
4268 Doc fixes, replacing "terminal id" with "terminal object".
4269 (check_x_display_info): Handle terminal objects instead of
4270 terminal ids.
4271
4272 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
4273 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
4274 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
4275 Doc fixes, replacing "terminal id" with "terminal object".
4276
4277 2009-04-21 Kenichi Handa <handa@m17n.org>
4278
4279 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
4280 (font_score): Check AVGWIDTH too.
4281
4282 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
4283 worst case.
4284 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
4285 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
4286
4287 2009-04-19 Jason Rumney <jasonr@gnu.org>
4288
4289 The following changes fix Bug#3005 for wide glyphs on each platform,
4290 without reintroducing Bug#1258 for stretch glyphs.
4291
4292 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
4293 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
4294 get_phys_cursor_geometry.
4295
4296 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
4297 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
4298 using get_phys_cursor_geometry.
4299
4300 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
4301 correctly calculated.
4302
4303 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
4304
4305 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
4306 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
4307 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
4308 is deprecated.
4309
4310 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
4311
4312 * font.c (font_put_frame_data): Use xfree instead of free.
4313
4314 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
4315
4316 * w32font.c (Qja, Qko): Remove declarations.
4317 (syms_of_w32font): Don't DEFSYM them.
4318
4319 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
4320
4321 * font.c (Qja, Qko): Move definitions here from ftfont.c.
4322
4323 * font.h (Qja, Qko): Extern them.
4324
4325 * ftfont.c (Qja, Qko): Remove declarations.
4326
4327 * xfont.c (Qja, Qko): Remove declarations.
4328
4329 2009-04-17 Kenichi Handa <handa@m17n.org>
4330
4331 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4332 string from a vector to handle Latin-1 characters correctly.
4333
4334 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4335 entity even if the cache hits.
4336
4337 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
4338
4339 * search.c (boyer_moore): Use zero as marker value for a possible
4340 match instead of depending on overflow behavior. (Bug#2844)
4341
4342 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4343 * lisp.h: Adjust prototypes.
4344
4345 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
4346
4347 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4348 change (Bug#3003).
4349
4350 2009-04-16 Kenichi Handa <handa@m17n.org>
4351
4352 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
4353
4354 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4355 adstyle.
4356
4357 * ftfont.c (Qja, Qko): Don't make them static.
4358 (enum ftfont_cache_for): New enum.
4359 (fc_charset_table): Undo the previous change.
4360 (ftfont_get_latin1_charset): Delete it.
4361 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4362 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
4363 non-scarable font, try to get AVERAGE_WIDTH.
4364 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4365 Change ft_face_cache from a list of a hash-table. Don't check
4366 `ja' and `ko' adstyle here.
4367 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4368 FTFONT_CACHE_FOR_CHARET.
4369 (ftfont_get_charset): Undo the previous change.
4370 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
4371 (ftfont_close): Likewise.
4372 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4373
4374 * font.c (font_sort_entites): Change the meaning of the arg
4375 BEST-ONLY. Don't optimize for VEC of lenght 1.
4376 (font_select_entity): Just return the value of font_sort_entites.
4377
4378 * xfaces.c (merge_face_vectors): Reflect font properties in
4379 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4380 font_clear_prop if a face attribute doesn't change.
4381
4382 * charset.h (charset_ksc5601): Extern it.
4383
4384 * charset.c (charset_ksc5601): New variable.
4385 (Fdefine_charset_internal): Set charset_ksc5601.
4386 (init_charset_once): Initialize charset_ksc5601 to -1.
4387
4388 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4389
4390 * fileio.c (history_delete_duplicates): Remove unused declaration.
4391
4392 * callint.c (history_delete_duplicates): New declaration.
4393 (Fcall_interactively): Remove command history duplicates when
4394 history_delete_duplicates is true.
4395
4396 2009-04-14 Eli Zaretskii <eliz@gnu.org>
4397
4398 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4399
4400 2009-04-14 Kenichi Handa <handa@m17n.org>
4401
4402 * font.c (Ffont_info): Fix docstring. Fix the second element of
4403 the returned value (bug#2949).
4404
4405 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
4406
4407 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4408
4409 2009-04-14 Kenichi Handa <handa@m17n.org>
4410
4411 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4412 encoding charset is ascii_compatible.
4413
4414 * charset.c (Fdefine_charset_internal): Make charset
4415 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4416 code_offset is 0, and covers all ASCII characters.
4417
4418 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4419
4420 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4421 (ns_string_to_pasteboard_internal):
4422 * nsmenu.m (process_dialog):
4423 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4424 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4425 * lisp.h (Fx_load_color_file): Declare.
4426
4427 2009-04-13 Kenichi Handa <handa@m17n.org>
4428
4429 * font.c (font_delete_unmatched): Preserve the order of list elements.
4430 (font_select_entity): Suppress the code to optimize for the same
4431 kind of fonts.
4432 (font_load_for_lface): Get a font that supports at least ASCII
4433 characters.
4434
4435 * ftfont.c (Qja, Qko): New variables.
4436 (fc_charset_table): Delete uniquifier data for iso8859-1.
4437 (ftfont_get_latin1_charset): New function.
4438 (get_adstyle_property): New function.
4439 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4440 bitmap fonts.
4441 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4442 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4443 `ko' or `ja'.
4444 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
4445 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
4446 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4447 property.
4448 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4449 (syms_of_ftfont): DEFSYM Qja and Qko.
4450
4451 2009-04-09 Kenichi Handa <handa@m17n.org>
4452
4453 * charset.c (map_charset_chars): For a charset of `superset'
4454 method, fix calculation of code range.
4455
4456 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4457 from the list of extra properties.
4458 (font_clear_prop): Be sure to delete `:name' font property.
4459
4460 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4461
4462 * dispnew.c (redraw_overlapping_rows): Fix detection of
4463 overlapping for topmost and bottommost rows.
4464
4465 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
4466
4467 2009-04-06 Jason Rumney <jasonr@gnu.org>
4468
4469 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4470
4471 2009-04-06 Kenichi Handa <handa@m17n.org>
4472
4473 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4474
4475 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4476
4477 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4478
4479 * ftfont.c (ftfont_open): Fix checking of the return value of
4480 FT_Load_Char. Fix setting font->underline_thickness.
4481
4482 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
4483
4484 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4485 (Fterminal_parameters, Fterminal_parameter)
4486 (Fset_terminal_parameter): In doc string, refer to terminal
4487 objects rather than terminal ids.
4488
4489 2009-04-04 Eli Zaretskii <eliz@gnu.org>
4490
4491 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4492 ret_lim_data. (Bug#2867)
4493
4494 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
4495
4496 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4497 so they don't get wider than the window, matching 2006-01-23
4498 change to the partner function in xdisp.c (Bug#2800).
4499
4500 2009-04-03 Kenichi Handa <handa@m17n.org>
4501
4502 * print.c (print_object): Make each lowest sub_char_table start a
4503 new line (Bug#2866).
4504
4505 2009-04-02 Kenichi Handa <handa@m17n.org>
4506
4507 * fontset.c (fontset_font): Record no-font when a fontset
4508 explicitly tells not to try another font-specs.
4509
4510 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4511
4512 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4513
4514 2009-03-30 Kenichi Handa <handa@m17n.org>
4515
4516 * fontset.c (fontset_from_font): Specify only registry in a
4517 font-spec for all characters supported by that registry.
4518
4519 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4520 even if HAVE_M17N_FLT is not defined.
4521
4522 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4523
4524 * ftfont.c: Conditionalize prototyping and use of
4525 ftfont_variation_glyphs.
4526
4527 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4528
4529 * frame.c (delete_frame): Work around compiler bug.
4530
4531 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4532 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4533 Some more EMACS_INT.
4534 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4535
4536 * xdisp.c (dump_glyph): Fix typo.
4537
4538 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4539 (adjust_markers_gap_motion, adjust_markers_for_delete)
4540 (adjust_markers_for_insert, adjust_point)
4541 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4542 (make_gap, copy_text, count_size_as_multibyte, insert)
4543 (insert_and_inherit, insert_before_markers)
4544 (insert_before_markers_and_inherit, insert_1)
4545 (count_combining_before, count_combining_after, insert_1_both)
4546 (insert_from_string, insert_from_string_before_markers)
4547 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4548 (insert_from_buffer_1, adjust_after_replace)
4549 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4550 (replace_range_2, del_range, del_range_1, del_range_byte)
4551 (del_range_both, del_range_2, modify_region)
4552 (prepare_to_modify_buffer, signal_before_change)
4553 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4554 for buffer positions and sizes.
4555 * lisp.h: Adjust prototypes accordingly.
4556
4557 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4558 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4559 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4560
4561 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4562
4563 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4564
4565 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4566 lines and columns so we keep the same pixel height and width.
4567
4568 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4569 the property _NET_WM_STATE has changed.
4570 (x_handle_net_wm_state): New function to update frame parameter
4571 fullscreen.
4572 (x_term_init): Initialize atoms for _NET_WM_STATE.
4573
4574 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4575
4576 2009-03-27 Kevin Ryde <user42@zip.com.au>
4577
4578 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4579 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4580 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4581 (Fgpm_mouse_stop): Pass that new parameter.
4582 * termhooks.h (close_gpm): Adjust prototype.
4583
4584 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4585
4586 * lisp.h (Fx_focus_frame): Declare.
4587
4588 * callint.c (Fcall_interactively): For '^' just delegate the work to
4589 handle-shift-selection.
4590 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4591
4592 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
4593
4594 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4595
4596 * data.c (Qinteractive_form): New variable.
4597 (Finteractive_form): Use it.
4598
4599 * eval.c (Fcommandp): Use Qinteractive_form.
4600
4601 2009-03-24 Jason Rumney <jasonr@gnu.org>
4602
4603 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4604 Calculate total size precisely. Decode environment variables
4605 before substituting. (Bug#38)
4606
4607 2009-03-24 Kenichi Handa <handa@m17n.org>
4608
4609 * font.c (find_font_encoding): Return Qnil for unsupported
4610 encoding (Bug#2722).
4611
4612 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4613
4614 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4615 that gdpy is set.
4616
4617 2009-03-22 Alan Mackenzie <acm@muc.de>
4618
4619 * callint.c (Finteractive): Clarify the doc string - even
4620 promptless elements need \n separators.
4621
4622 2009-03-22 Jason Rumney <jasonr@gnu.org>
4623
4624 * w32term.c (syms_of_w32term): Doc fix for
4625 x-use-underline-position-properties.
4626
4627 2009-03-21 Eli Zaretskii <eliz@gnu.org>
4628
4629 * w32.c (getpwuid): Change argument type to unsigned.
4630 (struct w32_id): Change type of `rid' member to unsigned.
4631 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4632 argument ID to unsigned. All callers changed.
4633 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4634
4635 2009-03-20 Eli Zaretskii <eliz@gnu.org>
4636
4637 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4638 negative, produce a float value.
4639
4640 * dired.c (make_uid, make_gid): New functions.
4641 (Ffile_attributes): Use them to avoid negative UID and GID.
4642
4643 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
4644
4645 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4646 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4647 Fix typos in docstrings.
4648
4649 2009-03-19 Kenichi Handa <handa@m17n.org>
4650
4651 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
4652 changed, use font_load_for_lface to get a new font object.
4653 Call free_realized_fontset after handling ASCII font change.
4654
4655 * frame.c (x_set_font): Handle the case that ARG is a cons.
4656
4657 2009-03-19 Glenn Morris <rgm@gnu.org>
4658
4659 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4660
4661 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
4662
4663 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4664
4665 2009-03-19 Kenichi Handa <handa@m17n.org>
4666
4667 * charset.c (load_charset_map_from_file): When a mapfile can't be
4668 loaded, signal an error.
4669
4670 2009-03-18 Eli Zaretskii <eliz@gnu.org>
4671
4672 * dired.c (Ffile_attributes): Make sure UID and GID are always
4673 positive, even if the value is too large for a positive EMACS_INT.
4674 Doc fix.
4675
4676 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4677
4678 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4679
4680 * xmenu.c (xdialog_show): Move Fredisplay call ...
4681 (Fx_popup_dialog): ... here.
4682
4683 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4684
4685 * dired.c (file_name_completion): Disable the first optimization just
4686 installed, since it is not implemented correctly.
4687
4688 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4689
4690 * dired.c (file_name_completion): Check completion-ignored-extensions
4691 only if the entry can affect bestmatch.
4692 Stop the search early, as Ftry_completion already does.
4693
4694 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
4695
4696 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
4697
4698 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
4699
4700 * keyboard.c (parse_menu_item): Don't display remappings as menu
4701 equivalent bindings (Bug#788).
4702
4703 2009-03-15 Jason Rumney <jasonr@gnu.org>
4704
4705 * w32term.h (WM_EMACS_PAINT): New message.
4706 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4707 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4708 before passing to lisp thread. (Bug#950)
4709
4710 2009-03-14 David Reitter <david.reitter@gmail.com>
4711
4712 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4713 variable as it was never reset.
4714 (ns_term_init): Remove initialization of Lisp-settable defaults
4715 and ns_expand_space.
4716 (-setPanelFromDefaultValues): Remove ns_expand_space.
4717 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4718 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
4719 i.e. no additional spacing, similar to Carbon port.
4720
4721 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4722 * nsfns.m (ns-popup-prefs-panel): Remove.
4723
4724 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4725
4726 * sound.c (alsa_configure): Remove call to deprecated
4727 snd_pcm_sw_params_set_xfer_align.
4728
4729 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
4730
4731 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4732 after clicking in a detached tool bar.
4733 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4734
4735 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4736
4737 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4738 int/Lisp_Object mixup).
4739
4740 2009-03-13 Kenichi Handa <handa@m17n.org>
4741
4742 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
4743 Handle NAME nil and t correctly. Callers changed.
4744 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4745 (set_fontset_font): Change ARG to a vector. Handle range_list in
4746 ARG correctly.
4747 (Fset_fontset_font): Fix the case that TARGET is both a script
4748 name and charset name. Adjust the arg to set_fontset_font for
4749 the above change.
4750 (fontset_from_font): Fix previous change.
4751 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
4752 entry. If FONTSET is the default fontset, don't set the extra
4753 slot of the returning char-table.
4754
4755 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
4756
4757 * nsfns.m (Fx_close_connection): Doc fix.
4758 (Fns_do_applescript): Reflow docstring.
4759 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4760 (Fx_display_pixel_width, Fx_display_pixel_height)
4761 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4762 Fix typos in docstrings.
4763 (Fns_set_alpha): Fix typos in error messages.
4764
4765 2009-03-12 David Reitter <david.reitter@gmail.com>
4766
4767 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
4768 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4769 were used for such events.
4770
4771 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4772 (toggleToolbar, performDragOperation, runHelp): Use it.
4773
4774 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
4775 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4776
4777 2009-03-11 Kenichi Handa <handa@m17n.org>
4778
4779 * font.h (font_open_by_spec): Extern it.
4780
4781 * font.c (font_open_by_spec): New function.
4782 (font_open_by_name): Use font_open_by_spec.
4783
4784 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4785 fontset of the frame.
4786
4787 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4788 modify the default font of frames that use this fontset.
4789 (num_auto_fontsets): New variable.
4790 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4791 name. Be sure to set FONTSET_ASCII to the correct font name.
4792 (update_auto_fontset_alist): New function.
4793
4794 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
4795
4796 * makefile.w32-in: Update dependencies.
4797
4798 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4799
4800 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4801
4802 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4803
4804 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4805
4806 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
4807
4808 * lread.c (Feval_buffer): Doc fix.
4809
4810 2009-03-09 Kenichi Handa <handa@m17n.org>
4811
4812 * charset.c (Qfile_name_handler_alist): Extern it.
4813 (load_charset_map_from_file): Temporarily bind
4814 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4815
4816 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
4817
4818 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4819 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
4820
4821 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4822
4823 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4824 (x_set_window_size): Change back to calculated method of setting
4825 toolbar height under Cocoa. (Bug#2546)
4826 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4827 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4828
4829 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4830
4831 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4832 accelerator in parens under GNUstep.
4833
4834 2009-03-06 Kenichi Handa <handa@m17n.org>
4835
4836 These changes are to detect incorrect composition sequence without
4837 looking ahead the source. (Bug#2370)
4838
4839 * coding.h: Include "composite.h".
4840 (enum compisition_state): New enum.
4841 (struct compisition_status): New struct.
4842 (struct iso_2022_spec): New member cmp_status.
4843 (struct emacs_mule_spec): New struct.
4844 (struct coding_system): New members ctext_extended_segment_len and
4845 embedded_utf_8. Change the union member
4846 spec.emacs_mule_full_support to spec.emacs_mule.
4847
4848 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4849 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
4850 (MAX_ANNOTATION_LENGTH): Define to 5.
4851 (ADD_COMPOSITION_DATA): New arg nbytes.
4852 (emacs_mule_char): New arg cmp_status.
4853 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4854 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4855 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4856 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4857 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4858 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4859 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4860 (EMACS_MULE_COMPOSITION_END): New macro.
4861 (emacs_mule_finish_composition): New function.
4862 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4863 (decode_coding_emacs_mule): Avoid long looking ahead while
4864 handling composition.
4865 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4866 (ENCODE_COMPOSITION_RULE): New macro.
4867 (finish_composition): New function.
4868 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4869 (DECODE_COMPOSITION_START): New implementation.
4870 (DECODE_COMPOSITION_END): Likewise.
4871 (STORE_COMPOSITION_RULE): New macro.
4872 (decode_coding_iso_2022): Avoid long looking ahead while handling
4873 composition, CTEXT extended segment, and embedded UTF-8.
4874 (setup_coding_system): For a coding of type iso-2022, reset
4875 CODING_ISO_EXTSEGMENT_LEN (coding) and
4876 CODING_ISO_EMBEDDED_UTF_8 (coding).
4877 (get_translation): Delete arguments last_block, from_nchars,
4878 to_nchars. Callers changed.
4879 (produce_chars): Don't modify charbuf. Adjusted for the change of
4880 get_translation.
4881 (produce_composition): Adjust for the new annotation sequence.
4882 (handle_composition_annotation): Likewise.
4883 (consume_chars): Adjust for the change of get_translation.
4884
4885 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4886
4887 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
4888
4889 2009-03-05 Kenichi Handa <handa@m17n.org>
4890
4891 * font.c (font_select_entity): New function.
4892 (font_find_for_lface): Use font_select_entity to select a font.
4893
4894 * fontset.c (fontset_find_font): If a font found without
4895 restricting to the characters C doesn't support C, try to find a
4896 font with C restriction.
4897
4898 2009-03-04 Nikolaj Schumacher <me@nschum.de>
4899
4900 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
4901
4902 2009-03-04 Jason Rumney <jasonr@gnu.org>
4903
4904 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4905 characters that have already been read. (Bug#2569)
4906
4907 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4908 Log an error message if check_image_size failed.
4909 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4910 (gs_load): Mention max-image-size in size error message. (Bug#2560)
4911
4912 2009-03-02 Eli Zaretskii <eliz@gnu.org>
4913
4914 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4915 when decoding process output.
4916
4917 2009-03-01 Richard M Stallman <rms@gnu.org>
4918
4919 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4920
4921 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4922
4923 2009-02-28 Eli Zaretskii <eliz@gnu.org>
4924
4925 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4926 (decode_coding_emacs_mule, decode_coding_iso_2022)
4927 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4928 (decode_coding_raw_text, decode_coding_charset)
4929 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4930 Honor inhibit-eol-conversion. (Bug #2186)
4931
4932 2009-02-28 Jason Rumney <jasonr@gnu.org>
4933
4934 * coding.c (detect_coding_charset): If not checking latin extra,
4935 fail on characters between 0x80 and 0xA0. (Bug#2354)
4936
4937 2009-02-28 Eli Zaretskii <eliz@gnu.org>
4938
4939 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
4940 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
4941
4942 2009-02-27 Glenn Morris <rgm@gnu.org>
4943
4944 * callint.c (Finteractive): Doc fix.
4945
4946 2009-02-27 Kenichi Handa <handa@m17n.org>
4947
4948 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4949
4950 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
4951
4952 * font.c (font_style_to_value): Set value for unknown symbols to
4953 100 instead of 255.
4954 (weight_table, slant_table, width_table): Treat "unspecified" as
4955 the default value.
4956
4957 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
4958
4959 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4960
4961 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
4962
4963 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4964 error as soon as a recursive load is detected.
4965
4966 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4967
4968 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4969 before caching.
4970
4971 2009-02-24 Kenichi Handa <handa@m17n.org>
4972
4973 * fontset.c (fontset_find_font): Fix the condition for checking
4974 unavailable font.
4975
4976 2009-02-24 Glenn Morris <rgm@gnu.org>
4977
4978 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4979 whitespace that confuses documentation.
4980
4981 2009-02-23 Miles Bader <miles@gnu.org>
4982
4983 * process.c (Flist_system_processes, Fprocess_attributes)
4984 (syms_of_process): Rename `system-process-attributes' to
4985 `process-attributes'.
4986
4987 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4988
4989 * coding.h (struct coding_system): Make safe_charsets a pointer to
4990 unsigned char.
4991 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4992 being 255.
4993 (SAFE_CHARSET_P): Likewise.
4994 (setup_iso_safe_charsets): Properly setup safe_charsets.
4995 (Fdefine_coding_system_internal): Likewise.
4996 (setup_coding_system): Likewise. Remove unneeded casts.
4997 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4998 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4999 unneeded casts.
5000
5001 * insdel.c (del_range_2): Don't modify gap contents when called
5002 from decode_coding_object. (Bug#1809)
5003
5004 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
5005
5006 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
5007 Qfont_object.
5008 (Ftype_of): Recognize font objects.
5009
5010 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
5011
5012 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
5013 moved to data.c.
5014
5015 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5016
5017 * nsterm.m (x_make_frame_invisible): Unset async_visible,
5018 async_iconified. Based on a patch by Christian Lynbech
5019 <christian.lynbech@tieto.com>.
5020 (EmacsView-windowDidMiniaturize:): Unset async_visible.
5021
5022 2009-02-20 Glenn Morris <rgm@gnu.org>
5023
5024 * syntax.c (Fskip_chars_forward): Fix doc typo.
5025
5026 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
5027
5028 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
5029
5030 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
5031
5032 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
5033
5034 2009-02-19 Kenichi Handa <handa@m17n.org>
5035
5036 * coding.c (detect_coding): Preserve coding->mode.
5037 Don't overflow coding->carryover. (Bug#2370)
5038
5039 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
5040
5041 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
5042
5043 2009-02-18 Kenichi Handa <handa@m17n.org>
5044
5045 * font.c (font_check_otf_features): Fix handling of `nil' element.
5046 (Ffont_spec): Describe :lang and :otf in the docstring.
5047
5048 2009-02-16 Andreas Schwab <schwab@suse.de>
5049
5050 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
5051 string.
5052
5053 2009-02-16 Kenichi Handa <handa@m17n.org>
5054
5055 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
5056 (Bug#1723)
5057
5058 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
5059
5060 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
5061
5062 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
5063 (handle_line_prefix): Suppress wrapping of wrap prefixes.
5064
5065 2009-02-14 Eli Zaretskii <eliz@gnu.org>
5066
5067 * msdos.c (MAX_SCREEN_BUF): New macro.
5068 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
5069 Encode the entire run of glyphs sharing the same face, instead of
5070 doing that one glyph at a time (fixes a bug with displaying
5071 double-size characters).
5072
5073 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
5074
5075 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
5076
5077 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
5078 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
5079 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
5080
5081 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
5082 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
5083
5084 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
5085
5086 * keyboard.c (adjust_point_for_property): Allow stopping between two
5087 invisible areas.
5088
5089 2009-02-12 Jason Rumney <jasonr@gnu.org>
5090
5091 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
5092 (add_font_entity_to_list): Call check_face_name even when family
5093 is unspecified.
5094
5095 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5096 Release DC when finished. Use NULL window to refer to desktop.
5097 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
5098
5099 * w32font.c (add_font_entity_to_list): Fix check for substituted
5100 raster fonts. (Bug#2219)
5101
5102 2009-02-12 Kenichi Handa <handa@m17n.org>
5103
5104 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
5105 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
5106 (autocmp_chars): Use fast_looking_at. Don't compose more
5107 characters than MAX_COMPOSITION_COMPONENTS.
5108 (find_automatic_composition): While looking forward and backward,
5109 check static composition. Fix where to stop looking forward.
5110 (composition_adjust_point): Fix checking of static composition.
5111 (Fcomposition_get_gstring): Pay attention to
5112 MAX_COMPOSITION_COMPONENTS.
5113
5114 * lisp.h (fast_looking_at): Extern it.
5115
5116 * search.c (fast_looking_at): New function.
5117
5118 * term.c (encode_terminal_code): Adjust for the change of
5119 <struct glyph>.u.cmp.to.
5120 (append_composite_glyph): Likewise.
5121
5122 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
5123 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
5124 composition.
5125 (append_composite_glyph): Adjust for the change of
5126 <strcut glyph>.u.cmp.to.
5127
5128 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
5129
5130 * casetab.c (init_casetab_once):
5131 * coding.c (ALLOC_CONVERSION_WORK_AREA):
5132 * font.c (font_update_lface):
5133 * fontset.c (Fnew_fontset):
5134 * ftfont.c (ftfont_drive_otf):
5135 * xfont.c (xfont_open):
5136 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
5137
5138 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5139
5140 * fileio.c (Fwrite_region): !NILP -> CONSP.
5141
5142 2009-02-10 Andreas Schwab <schwab@suse.de>
5143
5144 * process.c (send_process): Properly relocate pointer into data
5145 when using encoded data. (Bug#2272)
5146
5147 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
5148
5149 * coding.c (detect_coding_charset): Fix previous change.
5150
5151 2009-02-08 Jason Rumney <jasonr@gnu.org>
5152
5153 * w32fns.c (w32_hide_hourglass): Handle case where frame
5154 disappeared while hourglass was displayed. (Bug #2193)
5155
5156 2009-02-07 Andreas Schwab <schwab@suse.de>
5157
5158 * unexelf.c (unexec): Fix error message.
5159
5160 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
5161
5162 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
5163 when modal window is active. (Bug #2152)
5164 (applicationShouldTerminate:): Remove now-unneeded while loop
5165 around NSRunAlertPanel.
5166
5167 * nsmenu.m (popupSession): New file-global variable.
5168 (pop_down_menu): End the popupSession before closing dialog.
5169 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
5170 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
5171 don't query NSApp for events (just sleep instead).
5172
5173 2009-02-07 Eli Zaretskii <eliz@gnu.org>
5174
5175 * coding.c (syms_of_coding) <translation-table-for-input>:
5176 Modify doc string to discourage use for character code unification.
5177
5178 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5179
5180 * atimer.c (run_timers): Update pending_atimers.
5181
5182 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
5183
5184 * image.c (svg_load_image): Fix last change.
5185
5186 * xfns.c (Fx_create_frame): Signal an error if no font is
5187 found (Bug#2147).
5188
5189 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
5190
5191 * character.c (syms_of_character) <script-representative-chars>:
5192 Fix typo in docstring.
5193
5194 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5195
5196 * nsmenu.m (pop_down_menu): New function.
5197 (ns_popup_dialog): Call it on unwind.
5198 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
5199 call timer_check() (Bug#2154).
5200 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
5201 handling_signal is set.
5202 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
5203
5204 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
5205
5206 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
5207
5208 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
5209
5210 * keyboard.c (poll_for_input_1, handle_async_input):
5211 Set handling_signal under HAVE_NS.
5212
5213 2009-02-04 Glenn Morris <rgm@gnu.org>
5214
5215 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
5216
5217 2009-02-04 Kenichi Handa <handa@m17n.org>
5218
5219 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
5220
5221 * charset.c (Fchar_charset): New optional arg restriction.
5222
5223 * coding.h (coding_system_charset_list): Extern it.
5224
5225 * coding.c (coding_system_charset_list): New function.
5226
5227 * composite.c: Include coding.h and termhooks.h.
5228 (composition_gstring_p): Fix for the terminal case.
5229 (composition_gstring_width): Likewise.
5230 (fill_gstring_body): Likewise.
5231 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
5232 the frame.
5233 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
5234 is within a composition.
5235 (Fcomposition_get_gstring): Fix the terminal case.
5236
5237 * term.c (encode_terminal_code): Fix handling of composition.
5238 (produce_composite_glyph): For static composition, get pixel_width
5239 from struct composition.
5240
5241 2009-02-02 Andreas Schwab <schwab@suse.de>
5242
5243 * unexelf.c (unexec): Handle unaligned bss offset.
5244
5245 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5246
5247 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
5248 XT,w32read_socket changes to ns_read_socket.
5249
5250 * keyboard.c (handle_interrupt): Don't call
5251 quit_throw_to_read_char() under NS.
5252
5253 * blockinput.h: Remove NS-specific code.
5254
5255 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
5256
5257 * dispnew.c (window_change_signal): Don't try to get the size of a
5258 suspended tty frame.
5259 * term.c (Fresume_tty): Resize if the size has changed while the
5260 tty was suspended.
5261
5262 * alloc.c (mark_stack): Properly conditionalize previous change.
5263
5264 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
5265
5266 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
5267 * w32term.c (w32_read_socket) [SYNC_INPUT]:
5268 Remove; this code is not used on Windows.
5269
5270 2009-01-30 Eli Zaretskii <eliz@gnu.org>
5271
5272 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
5273 EOLs that also has stray ^M characters.
5274
5275 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
5276
5277 * atimer.c (run_timers, alarm_signal_handler):
5278 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
5279 * w32inevt.c (w32_console_read_socket):
5280 * w32term.c (w32_read_socket):
5281 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
5282
5283 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
5284
5285 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
5286 Initialize it as a relative filename pattern.
5287 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
5288 (Fcall_process_region): Simplify temp file creation using
5289 temporary-file-directory.
5290
5291 2009-01-29 Eli Zaretskii <eliz@gnu.org>
5292
5293 * msdos.c: Rename pending_signals to msdos_pending_signals.
5294 (sig_suspender, sigprocmask): Adjust.
5295
5296 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
5297
5298 * keyboard.c (pending_signals): New var.
5299 (poll_for_input, input_available_signal, init_keyboard): Set it.
5300 (process_pending_signals): New function.
5301
5302 * lisp.h (QUIT): Check pending_signals instead of
5303 interrupt_input_pending. Use process_pending_signals.
5304
5305 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
5306
5307 * process.c (wait_reading_process_output): Use process_pending_signals.
5308
5309 * sysdep.c (emacs_write): Use process_pending_signals.
5310
5311 * xterm.c (XTread_socket): Update pending_signals.
5312
5313 * w32term.c (w32_read_socket): Update pending_signals.
5314
5315 * w32inevt.c (w32_console_read_socket): Update pending_signals.
5316
5317 2009-01-29 Kenichi Handa <handa@m17n.org>
5318
5319 * xftfont.c (xftfont_has_char): New function.
5320 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5321
5322 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5323
5324 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5325 under GNUstep.
5326 (ns_query_color): New declaration.
5327
5328 * nsterm.m (ns_confirm_quit): New variable.
5329 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5330 (EmacsApp-applicationShouldTerminate:): Use it.
5331 (EmacsPrefsController): Let user set it.
5332 (ns_query_color): New function.
5333 (ns_defined_color): Use it.
5334 (ns_initialize): Drop.
5335 (ns_term_init): Add two lines from ns_initialize(), and set
5336 input_interrupt_mode to nil.
5337
5338 * image.c (svg_load_image): Don't right-shift background RGB when
5339 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
5340
5341 2009-01-28 Kenichi Handa <handa@m17n.org>
5342
5343 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
5344 (fontset_get_font_group): Remember that no font-group is specified
5345 for C.
5346
5347 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
5348
5349 * fns.c (concat): Check for string overflow (bug#1787).
5350
5351 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5352 Quadruple undo limits (bug#1501).
5353
5354 2009-01-27 Kenichi Handa <handa@m17n.org>
5355
5356 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5357 directly use GT_Get_Char_index.
5358
5359 * xftfont.c (struct xftfont_info): New member `index'.
5360
5361 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
5362 (Ffontset_font): Adjust for the change of fontset entry.
5363
5364 2009-01-26 Kenichi Handa <handa@m17n.org>
5365
5366 * fontset.c (fontset_find_font): Fix handling of non-cons return
5367 value of fontset_get_font_group.
5368 (fontset_font): Revert last change.
5369
5370 2009-01-26 Jason Rumney <jasonr@gnu.org>
5371
5372 * w32font.c (w32font_list_internal): Return quickly if registry is
5373 unknown. Simplify final return.
5374 (add_font_entity_to_list): Break complex logic down into more
5375 manageable chunks. Move unknown registry check to
5376 w32font_list_internal.
5377
5378 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5379
5380 Changes to remove Feval calls from GUI under NS.
5381
5382 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5383 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
5384 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5385
5386 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5387 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5388 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5389 instead of NON_ASCII_KEYSTROKE_EVENT.
5390 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5391 (EmacsApp-applicationShouldTerminate:): Query user.
5392 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5393 instead of Feval.
5394
5395 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5396
5397 * keyboard.c (kbd_buffer_get_event): Check for it.
5398 (keys_of_keyboard): Define lispy keys for
5399 ns-put/unput-working-text.
5400
5401 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5402 versions.
5403 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5404
5405 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
5406
5407 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
5408 setting current_buffer directly. (Bug#2044)
5409
5410 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
5411
5412 * fontset.c (fontset_font): If we know there is no font, don't do
5413 any work. (Bug#1952, bug#1990).
5414
5415 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
5416
5417 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5418
5419 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
5420 (ns_no_defaults): New declaration.
5421 (main): Use it.
5422
5423 * nsterm.h (ns_no_defaults): New declaration.
5424
5425 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
5426
5427 * nsterm.m (ns_no_defaults): New variable.
5428 (ns_initialize): Don't read defaults when ns_no_defaults.
5429 (EmacsView-readSelectionFromPasteboard:)
5430 (writeSelectionToPasteboard:types:): New stubbed-out methods for
5431 NSServicesRequests protocol. (Bug#1435)
5432 (ns_dumpglyphs_stretch): New function.
5433 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
5434 of 2008-11-15 to other terms. (Bug#615)
5435
5436 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5437
5438 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5439
5440 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5441 call for Sparc64.
5442
5443 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5444
5445 * nsfns.m:
5446 * nsgui.h:
5447 * nsmenu.m:
5448 * nsselect.m:
5449 * nsterm.h:
5450 * nsterm.m: Remove '23' comments that indicated code added during
5451 update from emacs-20 -> emacs-23.
5452
5453 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5454
5455 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
5456 ns_alternate_modifier. (Bug#1217)
5457
5458 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5459 Display all shortcuts, including those w/o super modifier.
5460
5461 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5462
5463 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
5464
5465 * fileio.c (Vwrite_region_post_annotation_function)
5466 (Vwrite_region_annotation_buffers): New vars.
5467 (build_annotations_unwind): Just reset
5468 Vwrite_region_annotation_buffers.
5469 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5470 Call write-region-post-annotation-function.
5471 (build_annotations): Add to Vwrite_region_annotation_buffers if
5472 buffer changes.
5473
5474 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5475
5476 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5477 Tiger.
5478 * nsfns.m (ns_do_applescript):
5479 Conditionalize typeUTF16ExternalRepresentation on Tiger.
5480
5481 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5482
5483 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5484
5485 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5486
5487 * nsmenu.m (NSMENUPROFILE): Change #if style.
5488
5489 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5490
5491 * nsterm.m (x_set_frame_alpha): Add prototype.
5492 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5493 handle Ctrl-tab. (Bug#1841)
5494 (ns_get_color): Use unsigned long long for scanned hex string value.
5495 (ns_term_shutdown): Abort on non SIGTERM signals.
5496 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
5497 (EmacsPrefsController-setPanelFromDefaultValues): New function.
5498 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
5499 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
5500 (ns_defined_color): Fix settings of the XColor variable fields:
5501 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
5502
5503 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
5504 DPI. (Bug#1316)
5505 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5506 values in onTiger section.
5507
5508 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
5509
5510 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5511 Check return value of font_spec_from_name.
5512 (Fx_list_fonts): Doc fix. (Bug#1951)
5513
5514 * font.c (font_spec_from_name): Return Qnil if font name could not
5515 be parsed.
5516 (font_parse_name): Treat a `?' character as part of an XLFD.
5517
5518 * fns.c (Fsubstring): Doc fix.
5519
5520 2009-01-19 Kenichi Handa <handa@m17n.org>
5521
5522 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
5523 (ftfont_list): Likewise.
5524
5525 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
5526
5527 * dbusbind.c (Fdbus_register_signal):
5528 * process.c (conv_sockaddr_to_lisp):
5529 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5530
5531 * callproc.c (Fgetenv_internal): Doc fix.
5532
5533 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
5534
5535 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5536 it is not even used.
5537
5538 2009-01-16 Glenn Morris <rgm@gnu.org>
5539
5540 * font.c (Ffont_variation_glyphs): Silence compiler.
5541
5542 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
5543
5544 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5545 Reported by David Robinow <drobinow@gmail.com>.
5546
5547 2009-01-15 Kenichi Handa <handa@m17n.org>
5548
5549 * coding.c (detect_coding_system): Fix handling of null_byte_found.
5550
5551 2009-01-14 Jason Rumney <jasonr@gnu.org>
5552
5553 * frame.c (x_set_font): Always store a font to the font parameter,
5554 never a fontset. (Bug#1562)
5555
5556 2009-01-14 Kenichi Handa <handa@m17n.org>
5557
5558 * coding.c (TWO_MORE_BYTES): New macro.
5559 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
5560
5561 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
5562
5563 * font.c (font_clear_prop): If clearing the family, clear the font
5564 width index too.
5565
5566 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
5567
5568 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
5569
5570 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5571 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5572 functions, use sizeof.
5573
5574 2009-01-12 Martin Rudalics <rudalics@gmx.at>
5575
5576 * keyboard.c (read_char): Fix case where last_nonmenu_event
5577 returned a bad value with submenus. (Bug#447)
5578
5579 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
5580
5581 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5582 family, clear the font width index too.
5583
5584 2009-01-11 Jason Rumney <jasonr@gnu.org>
5585
5586 * keyboard.c (cmd_error_internal): Exit when errors occur before
5587 frame creation and not in daemon mode. (Bug#1836)
5588
5589 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
5590
5591 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5592 of a display vector, backtrack.
5593 (try_window_reusing_current_matrix): Check glyph type before
5594 referencing charpos member.
5595
5596 2009-01-10 Eli Zaretskii <eliz@gnu.org>
5597
5598 Fix Bug #876:
5599
5600 * coding.c (inhibit_null_byte_detection): New variable.
5601 (detect_coding, detect_coding_system): Don't pay attention to null
5602 bytes if inhibit_null_byte_detection is non-zero.
5603 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
5604 <inhibit-iso-escape-detection>: Doc fix.
5605
5606 2009-01-09 Jason Rumney <jasonr@gnu.org>
5607
5608 * w32font.c (add_font_entity_to_list): Don't report unknown
5609 Windows charset as any unrecognized registry. (Bug#1548)
5610 Only report Unicode Plane 2 fonts as unicode-sip.
5611
5612 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
5613
5614 * xfaces.c (Fx_font_family_list): Delete function.
5615 Move compatibility version to faces.el.
5616
5617 * font.c (Ffont_family_list): Return a list of strings, not symbols.
5618
5619 2009-01-09 Martin Rudalics <rudalics@gmx.at>
5620
5621 * frame.c (x_set_frame_parameters): Remember requested value for
5622 fullscreen before it's reset by the parameter handler.
5623
5624 2009-01-09 Glenn Morris <rgm@gnu.org>
5625
5626 * keyboard.c (last_command_char): For clarity, rename to...
5627 (last_command_event): ... and update all users.
5628 (last_input_char): For clarity, rename to...
5629 (last_input_event): ... and update all users.
5630 (last-command-char, last-input-char): Move to subr.el as aliases.
5631 * cmds.c, commands.h: Update for last_command_char rename.
5632
5633 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
5634
5635 * font.c (font_open_for_lface): Handle unspecified height attribute.
5636
5637 2009-01-08 Jason Rumney <jasonr@gnu.org>
5638
5639 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5640 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5641 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5642 Don't declare.
5643 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5644 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5645
5646 2009-01-07 Kenichi Handa <handa@m17n.org>
5647
5648 * fileio.c (Finsert_file_contents): In the case of replace,
5649 remember the coding system used for decoding in
5650 coding_system (Bug#1039).
5651
5652 * coding.c (decode_coding_utf_8): Check byte_after_cr before
5653 breaking the loop. (Bug#870)
5654 (decode_coding_utf_16, decode_coding_emacs_mule)
5655 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5656 (decode_coding_charset): Likewise.
5657
5658 2009-01-05 Martin Rudalics <rudalics@gmx.at>
5659
5660 * frame.c (x_set_frame_parameters): Make sure height (width) get
5661 applied when fullwidth (fullheight) is set. (Bug#1522)
5662
5663 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
5664
5665 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5666 (utc_base): Declare as ULONGLONG, not long double.
5667 (convert_time_raw): Delete.
5668 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5669 (initialize_utc_base): New function.
5670 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5671 (convert_from_time_t): Use initialize_utc_base; compute result with
5672 64-bit arithmetic.
5673 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5674
5675 2009-01-03 Eli Zaretskii <eliz@gnu.org>
5676
5677 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
5678 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5679 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5680 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5681 [!subprocesses]: Define.
5682 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5683 (Flist_system_processes, Fsystem_process_attributes)
5684 [!subprocesses]: Call list_system_processes and
5685 system_process_attributes instead of returning Qnil.
5686
5687 * dosfns.c (system_process_attributes, list_system_processes):
5688 New functions.
5689
5690 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5691
5692 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5693 Don't use the default (no-op) implementation.
5694
5695 2009-01-03 Jason Rumney <jasonr@gnu.org>
5696
5697 * keyboard.c (parse_modifiers_uncached): Wheel events are
5698 clicks (bug#687).
5699
5700 * w32term.c (x_query_colors, x_query_color): New functions.
5701
5702 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5703 (svg_load_image): Cast returned pointers from dynamically loaded
5704 functions. Eliminate W32 specific code.
5705
5706 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5707
5708 * nsfns.m (x_set_foreground_color, x_set_background_color)
5709 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5710 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5711 x_ prefix instead of ns_. Update references.
5712 (syms_of_nsfns): Add a FIXME comment.
5713
5714 * nsterm.m (x_set_cursor_type): New prototype.
5715 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5716
5717 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5718 for Solaris instead of incorrectly providing Qutime and Qcutime.
5719
5720 2009-01-02 Eli Zaretskii <eliz@gnu.org>
5721
5722 * w32.c (process_times): Compute sum of utime and stime.
5723 (system_process_attributes): Add Qtime to the alist.
5724
5725 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5726 and add them to the alist.
5727
5728 * process.c (top level) <Qtime, Qctime>: New variables.
5729 (syms_of_process): staticpro them.
5730 (Fsystem_process_attributes): Add their documentation to the doc
5731 string.
5732
5733 * process.h: Declare Qtime and Qctime.
5734
5735 2009-01-02 Jason Rumney <jasonr@gnu.org>
5736
5737 * image.c (Qgobject): New symbol.
5738 (syms_of_image): Initialize it.
5739 (init_svg_functions): Load some functions from gobject library.
5740
5741 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5742
5743 * frame.c (make_terminal_frame): Remove redundant code and useless
5744 block.
5745
5746 2009-01-01 Andreas Schwab <schwab@suse.de>
5747
5748 * process.c (conv_sockaddr_to_lisp): Add workaround for
5749 getsockname bug on BSD.
5750
5751 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
5752
5753 * xfns.c (x_create_tip_frame): Set border width of the X window.
5754
5755 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
5756
5757 2009-01-01 Jason Rumney <jasonr@gnu.org>
5758
5759 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
5760 Don't block input, as per earlier xterm.c changes.
5761
5762 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5763
5764 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5765 (ns_appkit_version_int): New function.
5766 (x-server-version): Use ns_appkit_version_int and follow 21+
5767 convention of returning 3 integers.
5768
5769 2008-12-30 Kenichi Handa <handa@m17n.org>
5770
5771 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5772 (CHAR_SURROGATE_PAIR_P): New macro.
5773
5774 * font.h (struct font_driver): New member get_variation_glyphs.
5775
5776 * font.c (font_range): Don't require a font for a variation selector.
5777 (Ffont_variation_glyphs): New function.
5778 (syms_of_font): Defsubr it.
5779
5780 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5781 ftfont_variation_glyphs.
5782 (setup_otf_gstring): New function.
5783 (ftfont_drive_otf): Use it.
5784 (ftfont_shape_by_flt): Handle variation selector.
5785 (ftfont_variation_glyphs): New function.
5786
5787 2008-12-30 Martin Rudalics <rudalics@gmx.at>
5788
5789 * frame.c (Vemacs_iconified): Remove.
5790
5791 2008-12-30 Jason Rumney <jasonr@gnu.org>
5792
5793 * frame.c (store_frame_param, x_get_arg): Enable newer code on
5794 WINDOWSNT too, as related changes have already been synced. (Bug#117)
5795
5796 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
5797
5798 * indent.c (Fvertical_motion): Don't advance iterator if we have
5799 reseated to the desired position.
5800
5801 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5802 checking for pos match.
5803
5804 2008-12-30 Kenichi Handa <handa@m17n.org>
5805
5806 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5807 just get the low 8-bit of the code.
5808
5809 * font.c (font_intern_prop): Validate str as multibyte.
5810
5811 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5812
5813 * dispextern.h (struct face): Move lface and hash from the middle
5814 of bitfields.
5815
5816 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5817
5818 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5819
5820 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5821 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5822 instead of intervals.h.
5823
5824 2008-12-26 Andreas Schwab <schwab@suse.de>
5825
5826 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5827 cons.
5828
5829 2008-12-26 Martin Rudalics <rudalics@gmx.at>
5830
5831 * textprop.c (Qminibuffer_prompt): New variable.
5832 (syms_of_textprop): Initialize it.
5833 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5834 in minibuffer-prompt face. (Bug#1662)
5835
5836 2008-12-25 Jason Rumney <jasonr@gnu.org>
5837
5838 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5839
5840 2008-12-24 Jason Rumney <jasonr@gnu.org>
5841
5842 * ralloc.c (r_alloc_reset_variable): New function.
5843
5844 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
5845 record of what points where. (Bug#716)
5846
5847 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5848
5849 * minibuf.c (read_minibuf): Follow the non-interactive case when
5850 running as a daemon, before detaching.
5851
5852 2008-12-22 Andreas Schwab <schwab@suse.de>
5853
5854 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5855 * gtkutil.c (free_widget_value): Use xfree instead of free.
5856
5857 2008-12-22 Martin Rudalics <rudalics@gmx.at>
5858
5859 * frame.c (delete_frame): New function derived from
5860 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5861 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5862 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5863 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5864 * frame.h: Extern delete_frame.
5865 * window.c (window_loop):
5866 * terminal.c (delete_terminal):
5867 * xterm.c (x_connection_closed):
5868 * xfns.c (Fx_hide_tip):
5869 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
5870
5871 2008-12-21 Jason Rumney <jasonr@gnu.org>
5872
5873 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5874 when character maps to .notdef character.
5875
5876 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5877
5878 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5879
5880 2008-12-20 Jason Rumney <jasonr@gnu.org>
5881
5882 * frame.c (Fmake_terminal_frame): Raise an error when called from
5883 a graphical frame on Windows. (Bug#1325)
5884
5885 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5886
5887 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5888
5889 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
5890
5891 * minibuf.c (Fread_buffer): Doc fix.
5892
5893 2008-12-20 Jason Rumney <jasonr@gnu.org>
5894
5895 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
5896 server name in UNC paths. (Bug#719)
5897
5898 * coding.c (decode_coding): Clear chars_at_source flag when using
5899 charbuf. (Bug#1035)
5900
5901 2008-12-19 Daniel Engeler <engeler@gmail.com>
5902
5903 * sysdep.c (serial_configure): Fix typo.
5904
5905 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5906
5907 * sysdep.c: Include alloca.h.
5908 (system_process_attributes): Add implementation for Solaris.
5909
5910 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
5911
5912 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5913
5914 Reorganize implementation of Flist_system_processes and
5915 Fsystem_process_attributes. No functional changes.
5916 * process.c: Don't #include pwd.h, grp.h and limits.h.
5917 (Flist_system_processes): Just call list_system_processes.
5918 (Fsystem_process_attributes): Just call system_process_attributes.
5919 (procfs_list_system_processes, time_from_jiffies)
5920 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5921 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5922
5923 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5924 (list_system_processes): Rename from
5925 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5926 Provide a do nothing implementation.
5927 (system_process_attributes): Rename from
5928 procfs_list_system_processes.
5929 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5930 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
5931
5932 * w32.c (list_system_processes): Rename from
5933 w32_list_system_processes.
5934 (system_process_attributes): Rename from
5935 w32_system_process_attributes.
5936
5937 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5938
5939 * process.h (w32_list_system_processes)
5940 (w32_system_process_attributes): Remove.
5941 (list_system_processes, system_process_attributes):
5942 New prototypes.
5943
5944 2008-12-19 Kenichi Handa <handa@m17n.org>
5945
5946 * xfont.c (xfont_decode_coding_xlfd): New function.
5947 (xfont_encode_coding_xlfd): New function.
5948 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5949 (xfont_list): Decode and encode XLFD by iso-8859-1.
5950 (xfont_match): Likewise.
5951 (xfont_list_family): Likewise.
5952 (xfont_open): Likewise.
5953
5954 * ftfont.c (ftfont_open): Generate a multibyte string if given
5955 names are utf-8.
5956
5957 * xftfont.c (xftfont_open): Generate a multibyte string if given
5958 names are utf-8.
5959
5960 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5961
5962 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5963 changed.
5964 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5965 clicked on a detached tool bar button.
5966
5967 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5968
5969 * emacs.c (main): Print and error and exit when no data is read
5970 from the pipe.
5971
5972 2008-12-17 Jason Rumney <jasonr@gnu.org>
5973
5974 * w32font.c (w32font_has_char): Always return -1.
5975
5976 2008-12-16 Kenichi Handa <handa@m17n.org>
5977
5978 * font.c (font_open_entity): Fix previous change.
5979
5980 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5981
5982 * process.c: Include <limits.h>.
5983
5984 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
5985
5986 * font.c (font_update_drivers): Fix mistake in reconstructing the
5987 driver list.
5988
5989 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
5990
5991 * font.c (font_clear_cache): Fix format of font cache data.
5992
5993 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
5994
5995 * xftfont.c (xftfont_open): Free Xft font pattern if
5996 XftFontOpenPattern fails.
5997
5998 * xterm.c (x_free_frame_resources): Remove extraneous call to
5999 free_frame_faces.
6000
6001 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
6002
6003 * xterm.c (x_delete_display): Move xim_close_dpy call to
6004 x_delete_terminal.
6005 (x_delete_terminal): Call xim_close_dpy.
6006
6007 2008-12-13 Jason Rumney <jasonr@gnu.org>
6008
6009 * w32font.c (intern_font_name): New function.
6010 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
6011 (w32font_open_internal, Fx_select_font): Decode font name.
6012 (fill_in_logfont, list_all_matching_fonts): Encode font name.
6013
6014 * w32font.h (intern_font_name): Declare new function.
6015
6016 * w32uniscribe.c (add_opentype_font_name_to_list):
6017 Use intern_font_name.
6018
6019 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
6020
6021 * frame.c (Fdelete_frame): Call free_font_driver_list.
6022
6023 * font.c (free_font_driver_list): Implement missing function.
6024
6025 * w32term.c (w32_term_init): Don't initialize the image cache
6026 here; it will be done in init_frame_faces.
6027
6028 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
6029 (struct x_display_info): Remove unused member null_pixel. New
6030 member xim_callback_data.
6031
6032 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
6033 (xim_initialize): Save pointer to callback function data.
6034 (xim_close_dpy): Free callback function data. Call XCloseIM,
6035 reverting 2008-11-04 change by David Smith.
6036 (x_term_init): Don't initialize the image cache here; it will be
6037 done in init_frame_faces. Remove ancient "null_pixel" cruft.
6038 (x_delete_display): Free x_dnd_atoms member.
6039
6040 2008-12-13 Kenichi Handa <handa@m17n.org>
6041
6042 * font.c (font_rescale_ratio): Moved from xfaces.c.
6043 Argument type changed. Handle a font-spec too.
6044 (font_score): Check Vface_font_rescale_alist.
6045 (font_open_entity): Likewise. (Bug#1547)
6046
6047 * xfaces.c (font_rescale_ratio): Moved to font.c.
6048
6049 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
6050
6051 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
6052
6053 2008-12-12 Jason Rumney <jasonr@gnu.org>
6054
6055 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
6056 Vwindow_system_version to the real w32 major version.
6057
6058 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
6059
6060 * term.c (init_tty): Move setting the terminal name before the
6061 potential user: maybe_fatal.
6062
6063 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
6064
6065 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
6066 all callers changed. Call free_frame_faces to free the face cache.
6067
6068 2008-12-11 Jason Rumney <jasonr@gnu.org>
6069
6070 * w32font.c (fill_in_logfont): Don't assume symbol script means
6071 SYMBOL_CHARSET. (Bug#547)
6072
6073 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
6074 size for surrogates. (Bug#1096, bug#872)
6075
6076 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
6077
6078 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
6079
6080 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
6081
6082 * process.c (Fsystem_process_attributes, syms_of_process):
6083 Fix typo in name of Ssystem_process_attributes.
6084 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
6085
6086 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
6087
6088 * syntax.c (Fmodify_syntax_entry): Doc fix.
6089
6090 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
6091
6092 * font.c (Ffont_spec): Move usage to end of docstring.
6093
6094 2008-12-10 Jason Rumney <jasonr@gnu.org>
6095
6096 * w32font.c (Qcham): New symbol.
6097 (font_supported_scripts): Add cham, and comments for other new
6098 scripts in bitfield from OpenType spec.
6099 (add_font_entity_to_list): Limit unicode-sip fonts to those that
6100 contain characters beyond the bmp.
6101
6102 2008-12-10 Kenichi Handa <handa@m17n.org>
6103
6104 * ftfont.c (fc_charset_table): Add "unicode-sip".
6105 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
6106 Qunicode_sip.
6107
6108 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
6109
6110 * coding.c (QCdefault_char): Rename from QCdefalut_char.
6111 (Fcoding_system_put): Use QCdefault_char.
6112 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
6113
6114 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
6115
6116 * xftfont.c (syms_of_xftfont): Fix typo.
6117
6118 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
6119
6120 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
6121
6122 * emacs.c (main): Close daemon_pipe on exec.
6123
6124 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
6125
6126 * termchar.h (struct tty): New members termcap_term_buffer and
6127 termcap_strings_buffer.
6128
6129 * term.c (encode_terminal_code): Free any previous memory blocks
6130 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
6131 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
6132 All callers changed.
6133 (init_tty): Store termcap data and string buffers in new struct
6134 tty members termcap_term_buffer and termcap_strings_buffer.
6135 (delete_tty): Free them.
6136 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
6137
6138 2008-12-07 Seiji Zenitani <zenitani@mac.com>
6139
6140 * nsfns.m (ns_set_background_color): Remove code duplication.
6141 It was a substitute for face-transparency on OS X 10.3.
6142
6143 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
6144
6145 * coding.c (make_conversion_work_buffer): Disable buffer
6146 modification hooks in the work buffer.
6147
6148 2008-12-05 Eli Zaretskii <eliz@gnu.org>
6149
6150 * process.c (procfs_system_process_attributes): If `nread' has a
6151 negative value, assign zero to it.
6152
6153 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
6154
6155 * eval.c (Vdebug_on_error): Doc fix.
6156
6157 2008-12-05 Kenichi Handa <handa@m17n.org>
6158
6159 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
6160 second character is a combining character.
6161
6162 2008-12-05 Eli Zaretskii <eliz@gnu.org>
6163
6164 * process.c (procfs_system_process_attributes): Don't use cmd,
6165 cmdsize, and q without initializing them first.
6166
6167 2008-12-04 Jason Rumney <jasonr@gnu.org>
6168
6169 * w32font.c (w32font_draw): Initialize orig_clip before getting
6170 it, and delete it when finished.
6171
6172 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
6173
6174 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
6175 case when running as a daemon before detaching.
6176
6177 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
6178
6179 * w32.c (init_environment): Don't unload library shell32.dll.
6180
6181 2008-12-03 Kenichi Handa <handa@m17n.org>
6182
6183 * font.c (font_at): Set `multibyte' at first.
6184
6185 * coding.c (decode_coding_charset): Check type of an element of
6186 vector VALIDS.
6187 (encode_coding_emacs_mule): Be sure to set `code'.
6188
6189 * fontset.c (face_for_char): Handle invalid charset property correctly.
6190 (font_for_char): Likewise.
6191
6192 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
6193
6194 * font.c (Fopen_font): Compute pixel size correctly.
6195 (font_update_lface): Handle fonts with corrupted size specs,
6196 i.e. non-int and non-float.
6197
6198 * ftfont.c (ftfont_match): Initialize entity variable.
6199 (ftfont_resolve_generic_family): Avoid using uninitialized var.
6200 (ftfont_list_family): Initialize list var earlier.
6201
6202 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
6203
6204 * xterm.c (x_draw_glyph_string): Fall back on
6205 underline_minimum_offset for underline position.
6206
6207 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
6208
6209 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
6210
6211 * character.c (c_string_width): Specify the type for LEN.
6212
6213 2008-12-03 Kenichi Handa <handa@m17n.org>
6214
6215 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
6216 (decode_coding_utf_8): Likewise.
6217 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
6218 (produce_chars): Initialize consumed_chars to 0.
6219
6220 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
6221
6222 * keyboard.c (make_lispy_position): Only use PT if the selected
6223 window is current.
6224
6225 2008-12-02 Andreas Schwab <schwab@suse.de>
6226
6227 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
6228
6229 * doprnt.c (doprnt1): Fix size of charbuf.
6230
6231 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
6232
6233 * keyboard.c (timer_check): Revert last change.
6234
6235 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
6236
6237 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
6238
6239 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
6240
6241 * makefile.w32-in: Update dependencies.
6242 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
6243
6244 2008-12-01 Andreas Schwab <schwab@suse.de>
6245
6246 * font.c (register_font_driver): Use xmalloc.
6247 (font_put_frame_data): Likewise.
6248
6249 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
6250
6251 * xfaces.c (realize_x_face): Make abort condition clearer.
6252
6253 * gtkutil.c (update_frame_tool_bar): Initialize variable.
6254
6255 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
6256
6257 * keyboard.c (timer_check): After a timer runs, ensure that the
6258 selected window's buffer is current.
6259
6260 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
6261
6262 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
6263 It was accidentally restored by the Unicode merge.
6264
6265 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
6266
6267 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
6268
6269 * w32proc.c: Include "coding.h".
6270 (Fw32_short_file_name): Encode filename passed to Windows API.
6271 (Fw32_long_file_name): Encode filename passed to Windows API and
6272 decode back the result. (Bug#1433)
6273
6274 2008-11-29 Kenichi Handa <handa@m17n.org>
6275
6276 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
6277 not before accessing it.
6278
6279 * charset.c (Fdefine_charset_internal): After calculating
6280 min_char, max_char, and fastmap, copy the charset structure again.
6281 (encode_char): Fix the previous change.
6282
6283 2008-11-28 Seiji Zenitani <zenitani@mac.com>
6284
6285 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
6286
6287 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
6288
6289 * nsterm.m (x_set_frame_alpha): New function.
6290
6291 2008-11-27 Eli Zaretskii <eliz@gnu.org>
6292
6293 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
6294
6295 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
6296
6297 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
6298 pointer to check_face_name.
6299
6300 2008-11-27 Kenichi Handa <handa@m17n.org>
6301
6302 * category.h (SET_CATEGORY_SET): Call set_category_set.
6303 (set_category_set): Extern it.
6304
6305 * category.c (hash_get_category_set): New function.
6306 (Fmodify_category_entry): Adjusted for the change of
6307 char_table_ref_and_range. Call hash_get_category_set to get a
6308 category set to store in the table.
6309
6310 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
6311 Funify_charset.
6312
6313 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
6314 (DECODE_CHAR): Check if the decoder vector is ready.
6315 (ENCODE_CHAR): Check if the encoder char-table is ready.
6316 (maybe_unify_char): Extern it.
6317
6318 * charset.c (Vchar_unified_charset_table): Delete it.
6319 (inhibit_load_charset_map): New variable.
6320 (temp_charset_work): New variable.
6321 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6322 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6323 New macros.
6324 (load_charset_map): Meaning of control_flag changed. If
6325 inhibit_load_charset_map is nonzero, setup a table in
6326 temp_charset_work.
6327 (load_charset): New argument control_flag.
6328 (map_charset_for_dump): New function.
6329 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6330 map_charset_for_dump.
6331 (Fdefine_charset_internal): If the charset method is MAP, load
6332 mapping tables by calling load_charset.
6333 (Funify_charset): Don't load a mapping table but directly set
6334 Vchar_unify_table.
6335 (maybe_unify_char): New function.
6336 (decode_char): Don't handle the deleted method MAP_DEFERRED.
6337 Handle the case of inhibit_load_charset_map being nonzero.
6338 (encode_char): Don't handle the deleted method MAP_DEFERRED.
6339 Handle the case of inhibit_load_charset_map being nonzero.
6340 (Fclear_charset_maps): Just free temp_charset_work.
6341 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6342 variable.
6343
6344 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6345 change of char_table_ref_and_range.
6346 (char_table_ref_and_range): Change the meaning of argument FROM
6347 and TO. Now the caller must provide initial values for *FROM
6348 and *TO.
6349
6350 * fontset.c (fontset_add): Adjusted for the change of
6351 char_table_ref_and_range.
6352 (fontset_get_font_group): Likewise.
6353 (Ffontset_info): Likewise.
6354
6355 * keymap.c (describe_vector): Adjusted for the change of
6356 char_table_ref_and_range. For char-table, put boundary between
6357 non-ASCII and 8-bit characters.
6358
6359 * print.c (print_object): For bool-vector, delete unnecessary
6360 check of ASCII_BYTE_P.
6361
6362 2008-11-26 Jason Rumney <jasonr@gnu.org>
6363
6364 * w32font.c (w32font_open_internal): Don't include external
6365 leading in font height. (Bug#879)
6366
6367 2008-11-26 Glenn Morris <rgm@gnu.org>
6368
6369 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6370 redefinition with ifdef. (Bug#1383)
6371
6372 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6373
6374 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6375
6376 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6377
6378 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6379 New EmacsView methods.
6380 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6381 Fixes bug #1048,1357,1414.
6382
6383 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6384
6385 Fix bug #1362.
6386 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6387 is not an indexed color.
6388 * nsterm.m (free_indexed_color): Add argument checking.
6389 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6390
6391 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
6392
6393 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6394 Document confirm-after-completion value for
6395 minibuffer-completion-confirm.
6396
6397 2008-11-24 Jason Rumney <jasonr@gnu.org>
6398
6399 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6400 warning.
6401
6402 2008-11-23 Jason Rumney <jasonr@gnu.org>
6403
6404 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6405 restored before returning.
6406
6407 * w32font.c (check_face_name): New function.
6408 (add_font_entity_to_list): Use it to filter out common substituted
6409 fonts. (Bug#642)
6410
6411 2008-11-22 Martin Rudalics <rudalics@gmx.at>
6412
6413 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6414 confirm-nonexistent-file-or-buffer in doc-string.
6415
6416 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6417
6418 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6419 Fix copy/paste typo. Add checks.
6420
6421 2008-11-21 Kenichi Handa <handa@m17n.org>
6422
6423 * coding.c (detect_coding_iso_2022): Reject invalid composition
6424 sequence.
6425 (DECODE_COMPOSITION_START): If the current source is the last
6426 block, and the current composition doesn't end, regard this
6427 sequence as invalid.
6428 (decode_coding_iso_2022): Handle invalid composition sequence.
6429
6430 2008-11-20 Martin Rudalics <rudalics@gmx.at>
6431
6432 * window.c (coordinates_in_window): Don't return
6433 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6434 line when the window is not the rightmost one. (Bug#1372)
6435
6436 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6437
6438 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6439
6440 2008-11-15 Eli Zaretskii <eliz@gnu.org>
6441
6442 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6443 and bright_bg if noninteractive is non-zero.
6444
6445 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6446
6447 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6448 x_draw_glyph_string_background.
6449
6450 * w32term.c (x_draw_glyph_string): Likewise.
6451
6452 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
6453
6454 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6455 the next glyph string once past the overhang width.
6456
6457 * nsterm.m (ns_draw_glyph_string): Likewise.
6458
6459 * w32term.c (x_draw_glyph_string): Likewise.
6460
6461 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6462
6463 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6464 double file close.
6465
6466 2008-11-14 Martin Rudalics <rudalics@gmx.at>
6467
6468 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6469 dedicated status of window before attempting to display another
6470 buffer in it.
6471
6472 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
6473
6474 * msdos.c (Fmsdos_long_file_names):
6475 (syms_of_msdos) <dos-unsupported-char-glyph>:
6476 * dosfns.c (Fint86): Fix typos in docstrings.
6477
6478 2008-11-14 Eli Zaretskii <eliz@gnu.org>
6479
6480 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6481
6482 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6483
6484 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6485
6486 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6487
6488 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6489
6490 * frame.h: Negative alpha means "don't touch".
6491
6492 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6493
6494 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6495
6496 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6497
6498 * hftctl.c:
6499 * chpdef.h:
6500 * acldef.h: Remove files used only for systems no longer supported.
6501
6502 * Makefile.in: Fix .o alphabetical ordering.
6503 (hftctl.o): Remove dependency, file removed.
6504 (keymap.o, print.o): Depend on charset.h.
6505
6506 2008-11-10 Kenichi Handa <handa@m17n.org>
6507
6508 * character.c (Fget_byte): Fix and make it faster for unibyte target.
6509
6510 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
6511
6512 * dired.c (file_name_completion): If completion_ignore_case is
6513 enabled, ignore case when checking completion-regexp-list.
6514
6515 2008-11-08 Eli Zaretskii <eliz@gnu.org>
6516
6517 * vm-limit.c (get_lim_data): Fix last change.
6518
6519 2008-11-08 Kenichi Handa <handa@m17n.org>
6520
6521 * character.c (Fget_byte): New function.
6522 (syms_of_character): Defsubr Fget_byte.
6523
6524 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
6525
6526 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6527 cursor position is valid after scrolling.
6528
6529 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
6530
6531 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6532
6533 2008-11-06 Glenn Morris <rgm@gnu.org>
6534
6535 * xterm.c (handle_one_xevent): Don't let popup menus cause
6536 mouse-autoselect-window related window switching. (Bug#1261)
6537
6538 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6539
6540 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6541
6542 2008-11-04 Andreas Schwab <schwab@suse.de>
6543
6544 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6545
6546 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
6547
6548 * xfns.c (Fx_wm_set_size_hint): New function.
6549
6550 2008-11-03 Martin Rudalics <rudalics@gmx.at>
6551
6552 * textprop.c (Fprevious_single_char_property_change): Return 0
6553 when there's no change in a string. (Bug#1301)
6554
6555 2008-11-02 Martin Rudalics <rudalics@gmx.at>
6556
6557 * frame.c (do_switch_frame): New argument NORECORD passed to
6558 Fselect_window.
6559 (Fselect_frame): New argument NORECORD passed to
6560 do_switch_frame.
6561 (Fset_frame_selected_window): New argument NORECORD passed to
6562 Fselect_frame.
6563 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6564 in call of do_switch_frame.
6565 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6566 Handle NORECORD argument in call of Fselect_frame.
6567 * lisp.h (do_switch_frame, Fselect_frame)
6568 (Fset_frame_selected_window): Adjust declarations.
6569 * window.c (select_frame_norecord): New function.
6570 (run_window_configuration_change_hook): Use it and call
6571 Fselect_frame with NORECORD set.
6572 (Fselect_window): Pass NORECORD to Fselect_frame.
6573 (Fset_window_configuration): Handle NORECORD argument in call of
6574 do_switch_frame.
6575 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6576 Fset_frame_selected_window.
6577 * keyboard.c (command_loop_1): Handle NORECORD in call of
6578 Fselect_frame (currently ifdefd).
6579
6580 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6581
6582 * emacs.c (USAGE2): Untabify.
6583
6584 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6585
6586 * composite.c (fill_gstring_header): Fix copy/paste typo.
6587
6588 2008-10-31 Martin Rudalics <rudalics@gmx.at>
6589
6590 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6591 (Fother_window): Rename argument and rewrite doc-string.
6592 (select_window_norecord): Fix return value. (Bug#1276)
6593
6594 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
6595
6596 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6597 new frames overriding foreground for tooltips. Based on similar patch
6598 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6599
6600 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
6601
6602 * emacs.c (Fdaemon_initialized): Initialize nfd.
6603
6604 2008-10-29 Martin Rudalics <rudalics@gmx.at>
6605
6606 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6607 (Fwindow_text_height): Clarify doc-strings.
6608 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6609 doc-string of window-scroll-functions.
6610
6611 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6612
6613 * category.c (syms_of_category): Fix typo in docstring.
6614
6615 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
6616
6617 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6618 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6619 Fix typos in docstrings.
6620
6621 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6622
6623 * emacs.c (daemon_pipe): Make non-static.
6624 (IS_DAEMON): Move definition ...
6625 * lisp.h (IS_DAEMON): ... here.
6626 (daemon_pipe): Declare.
6627 (is_daemon): Remove.
6628 * dispnew.c (init_display): Use IS_DAEMON.
6629
6630 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6631
6632 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6633 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6634
6635 * emacs.c (is_daemon): Remove.
6636 (main): Don't set is_daemon.
6637 (IS_DAEMON): New macro.
6638 (Fdaemonp, Fdaemon_initialized): Use it.
6639 (Fdaemon_initialized): Write a char into the pipe to make sure the
6640 parent exits.
6641 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6642
6643 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
6644
6645 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6646 over-sized glyph, draw it with the default glyph width.
6647
6648 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6649 glyph, draw it with the default glyph width.
6650
6651 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6652 glyph, draw it with the default glyph width.
6653
6654 * xdisp.c (try_scrolling): When computing the distance from the
6655 scroll margin to PT, try moving some distance past the window
6656 bottom before giving up.
6657
6658 2008-10-27 Martin Rudalics <rudalics@gmx.at>
6659
6660 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6661 (Fset_window_buffer): Explain in doc-string that a window can be
6662 "strongly" dedicated to its buffer.
6663
6664 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6665
6666 * emacs.c (daemon_name): New variable.
6667 (main): Deal with --daemon=SERVER_NAME.
6668 (Fdaemonp): Return a name if one was passed to --daemon.
6669
6670 2008-10-26 Romain Francoise <romain@orebokech.com>
6671
6672 * emacs.c (daemon_pipe): New variable.
6673 (main): Create a pipe before forking, make the parent exit only after
6674 the child has closed its end of the pipe. Move closing the
6675 descriptors ...
6676 (Fdaemon_initialized): ... here. New function.
6677
6678 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6679
6680 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6681 the previous unoptimized table.
6682
6683 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6684 the distinction between non-nil and non-t value of `dedicated'.
6685
6686 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
6687
6688 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
6689 read_char_minibuf_menu_text is large enough to hold the menu string.
6690
6691 2008-10-25 Martin Rudalics <rudalics@gmx.at>
6692
6693 * window.c (Fget_buffer_window, Fdelete_windows_on)
6694 (Freplace_buffer_in_windows): Make buffer argument optional and
6695 rename to buffer_or_name.
6696
6697 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
6698
6699 * xdisp.c (handle_single_display_spec, handle_display_prop):
6700 Undo 2005-05-16 change.
6701 (handle_stop): Pop iterator if it's loaded with an empty string.
6702 (get_overlay_strings_1): Don't save iterator if it's loaded with
6703 an empty string (bug#1201).
6704
6705 2008-10-24 Kenichi Handa <handa@m17n.org>
6706
6707 * ftfont.c (ftfont_otf_features): Fix previous change.
6708 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6709 calling ftfont_otf_features.
6710
6711 2008-10-24 Kenichi Handa <handa@m17n.org>
6712
6713 * font.c (font_match_p): Fix for the case that a vector of
6714 characters is in script-representative-chars.
6715
6716 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
6717
6718 * dbusbind.c (xd_in_read_queued_messages): New variable.
6719 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
6720 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6721 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
6722 macro. (Bug#1186)
6723
6724 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
6725
6726 * s/sol2-10.h: New file.
6727
6728 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
6729
6730 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6731 poor beast has survived 9+ years and the jump from xterm.c!).
6732
6733 2008-10-23 Martin Rudalics <rudalics@gmx.at>
6734
6735 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6736 Reword doc-string.
6737 (Fbury_buffer): In doc-string say what happens to the buffer's window.
6738
6739 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
6740
6741 * character.c (syms_of_character) <script-representative-chars>:
6742 <unicode-category-table>: Doc fixes.
6743
6744 2008-10-23 Noah Friedman <friedman@splode.com>
6745
6746 * coding.c (make_conversion_work_buffer): Check that
6747 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6748 Fget_buffer_create.
6749
6750 2008-10-23 Kenichi Handa <handa@m17n.org>
6751
6752 * font.c (font_add_log): Check the values of extra properties.
6753
6754 2008-10-22 Martin Rudalics <rudalics@gmx.at>
6755
6756 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6757 Reword doc-string.
6758 (Fset_window_parameter): Use NILP.
6759 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
6760 (Frecenter): Use "selected" instead of "current" window in doc-strings.
6761
6762 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
6763
6764 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6765
6766 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6767
6768 * nsfns.m (ns_appkit_version): New function.
6769 (x-server-version): Use it.
6770 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6771 (x-server-vendor): Don't check_ns().
6772
6773 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6774
6775 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
6776
6777 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6778 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6779
6780 2008-10-22 Kenichi Handa <handa@m17n.org>
6781
6782 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6783 scripts.
6784
6785 * category.c (word_boundary_p): Check scripts instead of charset.
6786 Handle nil value in word-separating-categories and
6787 word-combining-categories.
6788 (syms_of_category): Fix docstrings of word-separating-categories
6789 and word-combining-categories.
6790
6791 2008-10-21 Eli Zaretskii <eliz@gnu.org>
6792
6793 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6794 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6795
6796 2008-10-21 Martin Rudalics <rudalics@gmx.at>
6797
6798 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6799 Rename arg "buffer" to "buffer_or_name".
6800 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6801 it optional.
6802 (no_switch_window): Remove since the return value is not used.
6803 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
6804 Consider window as dedicated when Fwindow_dedicated_p returns a
6805 non-nil value.
6806 * lisp.h: Remove prototype for no_switch_window.
6807
6808 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6809
6810 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
6811 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
6812
6813 2008-10-21 Kenichi Handa <handa@m17n.org>
6814
6815 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6816 check Vlatin_extra_code_table.
6817
6818 2008-10-20 Eli Zaretskii <eliz@gnu.org>
6819
6820 * fileio.c (Fset_file_modes): Doc fix.
6821
6822 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
6823
6824 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6825 in arrays.
6826
6827 2008-10-19 Martin Rudalics <rudalics@gmx.at>
6828
6829 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6830 Mention kill-buffer in doc-string.
6831 (Fset_window_buffer): Reinsert tem check removed in last commit.
6832 (Fenlarge_window, Fshrink_window): Have argument names and
6833 doc-string follow Elisp manual more closely.
6834
6835 2008-10-18 Eli Zaretskii <eliz@gnu.org>
6836
6837 * fileio.c (Fset_file_modes): Doc fix.
6838
6839 2008-10-18 Martin Rudalics <rudalics@gmx.at>
6840
6841 * window.c (Fwindow_width, Fset_window_start)
6842 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
6843 (Fdelete_windows_on, Freplace_buffer_in_windows):
6844 Make doc-strings follow code and Elisp manual more closely.
6845 (Fwindow_dedicated_p): Make window argument optional.
6846 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6847 (Fset_window_buffer): Respect any non-nil dedicated value for
6848 window. Rename "buffer" argument to "buffer_or_name".
6849
6850 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
6851
6852 * m/sh3.h: New file, machine description for SuperH.
6853
6854 2008-10-17 Martin Rudalics <rudalics@gmx.at>
6855
6856 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6857
6858 2008-10-17 Kenichi Handa <handa@m17n.org>
6859
6860 * ftfont.c (ftfont_otf_features): Fix indexing
6861 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6862
6863 2008-10-16 Magnus Henoch <mange@freemail.hu>
6864
6865 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6866 (Fdbus_call_method_asynchronously): Ditto.
6867 This change makes C-h f display the argument list.
6868
6869 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
6870
6871 * fileio.c (Fexpand_file_name): Doc fix.
6872
6873 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6874 of :foreground and :background equivalent to unspecified (20.x
6875 compatibility).
6876
6877 2008-10-15 Eli Zaretskii <eliz@gnu.org>
6878
6879 * buffer.c (syms_of_buffer): Doc fix.
6880
6881 2008-10-14 Kenichi Handa <handa@m17n.org>
6882
6883 * font.c (font_clear_prop): When clearing font width, clear the
6884 average width field too.
6885
6886 2008-10-12 Andreas Schwab <schwab@suse.de>
6887
6888 * ftfont.c (ftfont_shape_by_flt): Make static.
6889 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6890
6891 * font.c: Don't include <m17n-flt.h>.
6892
6893 2008-10-10 Eli Zaretskii <eliz@gnu.org>
6894
6895 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6896
6897 2008-10-09 Eli Zaretskii <eliz@gnu.org>
6898
6899 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6900 away code.
6901
6902 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
6903
6904 * dispnew.c (update_text_area): Avoid looping due to large glyph
6905 overhangs (bug#1070).
6906
6907 2008-10-09 Kenichi Handa <handa@m17n.org>
6908
6909 * fontset.c (face_for_char): If face->fontset is negative, just
6910 return ascii_face.
6911
6912 * font.c (font_delete_unmatched): Fix previous change.
6913 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
6914
6915 2008-10-09 Martin Rudalics <rudalics@gmx.at>
6916
6917 * frame.c (Fraise_frame): On text-only terminals select frame in
6918 order to make it visible. (Bug#1061)
6919
6920 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
6921
6922 * fontset.c (fontset_find_font): Check frame validity.
6923
6924 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
6925
6926 * gtkutil.c (xg_display_open): Reset default display if none exists.
6927 (xg_display_close): Allow Emacs to close all displays (bug#985).
6928
6929 2008-10-06 Andreas Schwab <schwab@suse.de>
6930
6931 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
6932
6933 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
6934
6935 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
6936
6937 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
6938
6939 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6940 during initialization.
6941
6942 2008-10-04 Eli Zaretskii <eliz@gnu.org>
6943
6944 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6945 whole thing on MSDOS frames as well as on a TTY.
6946
6947 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6948 well as for TTY.
6949 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6950 well as on a TTY.
6951
6952 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6953 as well as for TTY.
6954
6955 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6956
6957 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6958 MSDOS frames as well.
6959
6960 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6961
6962 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6963 correct arguments.
6964 * menu.c (find_and_return_menu_selection): Add cast.
6965
6966 2008-10-03 Glenn Morris <rgm@gnu.org>
6967
6968 * emacs.c (USAGE1): Add --daemon.
6969
6970 2008-10-02 Eli Zaretskii <eliz@gnu.org>
6971
6972 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6973 100, so it's in percents as advertised.
6974
6975 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6976
6977 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6978 (ns_output.current_cursor, ns_output.desired_cursor)
6979 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6980 (FRAME_NEW_CURSOR_COLOR): Remove.
6981
6982 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
6983 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
6984 enumeration (HOLLOW_BOX_CURSOR, etc.).
6985
6986 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6987 (draw_window_cursor): Simplify code.
6988 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6989 Don't change cursor type. In latter, call rehighlight instead of doing
6990 updates manually.
6991 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6992 Use core Emacs cursor types.
6993
6994 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
6995
6996 2008-10-02 Martin Rudalics <rudalics@gmx.at>
6997
6998 * process.c (Faccept_process_output): Fix doc-string.
6999
7000 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
7001
7002 * gmalloc.c (__sbrk): Also define for uClibc.
7003
7004 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
7005 for uClibc.
7006
7007 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7008
7009 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
7010 styles.
7011 (nsfont_open): Reenable the cache.
7012
7013 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7014
7015 * font.c (font_matching_entity): Reflect ATTRS in font selection.
7016 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
7017
7018 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
7019
7020 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
7021 a suspended terminal.
7022
7023 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
7024
7025 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
7026
7027 2008-09-30 Eli Zaretskii <eliz@gnu.org>
7028
7029 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
7030
7031 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
7032
7033 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
7034 in a continued line coincides with a line beginning.
7035
7036 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7037
7038 * nsfont.m (nsfont_trait_distance): Fix bug.
7039 (nsfont_list): Return a list rather than a vector (syncs with Handa
7040 changes of 2008-05-14).
7041 (nsfont_open): Improve logging.
7042
7043 2008-09-29 Andreas Schwab <schwab@suse.de>
7044
7045 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7046
7047 2008-09-28 Martin Rudalics <rudalics@gmx.at>
7048
7049 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
7050 name as char-resolve-modifiers.
7051 Reported by: Markus Triska <markus.triska@gmx.at>
7052
7053 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
7054
7055 * dispnew.c (init_display): Return earlier when running as a daemon.
7056
7057 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7058
7059 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
7060
7061 2008-09-27 Eli Zaretskii <eliz@gnu.org>
7062
7063 * composite.c (Fcomposition_get_gstring)
7064 (Fcompose_region_internal, Fcompose_string_internal)
7065 (Ffind_composition_internal): Doc fix.
7066 (syms_of_composite) <compose-chars-after-function>: Doc fix.
7067 (syms_of_composite) <auto-composition-function>: Doc fix.
7068 (syms_of_composite) <composition-function-table>: Doc fix.
7069
7070 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
7071
7072 * search.c (wordify): New argument for lax word-ends.
7073 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
7074
7075 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
7076
7077 * lisp.h (is_daemon): Declare.
7078 * dispnew.c (init_display): Do not try to initialize the terminal
7079 when running as a daemon.
7080
7081 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
7082
7083 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
7084 x_display_pixel_height.
7085
7086 2008-09-22 Martin Rudalics <rudalics@gmx.at>
7087
7088 * undo.c (record_point): Don't call Fundo_boundary for first
7089 change. (Bug#731)
7090
7091 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
7092
7093 * emacs.c (Fdaemonp): Doc fix.
7094
7095 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
7096
7097 * emacs.c (main): Place #ifdef in the proper place.
7098
7099 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
7100
7101 * emacs.c (standard_args): Add --daemon.
7102 (main): Disconnect from the terminal when --daemon is passed.
7103 (is_daemon): New variable.
7104 (Fdaemonp): New function.
7105 (syms_of_emacs): Defsubr it.
7106
7107 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
7108
7109 * xdisp.c (get_next_display_element): Handle string display
7110 correctly when checking for the end of a box run.
7111
7112 2008-09-20 Glenn Morris <rgm@gnu.org>
7113
7114 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
7115 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
7116 (Frename_file): Avoid copying to trash if a rename involves
7117 a delete. (Bug#964).
7118
7119 2008-09-20 Eli Zaretskii <eliz@gnu.org>
7120
7121 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
7122 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
7123 frames as well as termcap frames.
7124 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
7125 get_named_tty.
7126
7127 2008-09-19 Eli Zaretskii <eliz@gnu.org>
7128
7129 * process.c (procfs_system_process_attributes): Fix cmdline in
7130 case /proc/PID/cmdline is empty.
7131
7132 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
7133 x_display_pixel_height.
7134
7135 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
7136
7137 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
7138
7139 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7140 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
7141
7142 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
7143
7144 * dispextern.h (struct it): Move line_wrap away from the middle of
7145 bitfields. Move voffset in struct iterator_stack_entry after the
7146 bitfields. Move tab_width near after another short.
7147
7148 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
7149
7150 * frame.h (struct frame): Move alpha from the middle of bitfields.
7151
7152 * window.h (struct window): Move frozen_window_start_p after the
7153 rest of the bitfields to reduce padding.
7154
7155 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
7156
7157 * xterm.h (x_display_info): Remove `height' and `width' members.
7158
7159 * nsterm.h (ns_display_info): Remove `height' and `width' members.
7160
7161 * w32term.h (w32_display_info): Remove `height', `width',
7162 `height_in', and `width_in' members.
7163
7164 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7165 New functions.
7166 (x_calc_absolute_position): Use them.
7167 (x_term_init): Omit removed `height' and `width' members.
7168
7169 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7170 New functions.
7171 (w32_read_socket, x_calc_absolute_position): Use them.
7172 (w32_initialize_display_info, w32_term_init): Omit removed members
7173 of w32_display_info.
7174
7175 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
7176 New functions.
7177 (ns_initialize_display_info): Omit removed members of ns_display_info.
7178
7179 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7180 New functions.
7181 (x_calc_absolute_position): Use them.
7182 (x_term_init): Omit removed `height' and `width' members.
7183
7184 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7185 (compute_tip_xy):
7186 * frame.c (x_fullscreen_adjust):
7187 * xmenu.c (menu_position_func): Use x_display_pixel_height and
7188 x_display_pixel_width.
7189
7190 2008-09-18 Kenichi Handa <handa@m17n.org>
7191
7192 * composite.c (fill_gstring_header): Don't check FROM and TO here.
7193 (composition_compute_stop_pos): Fix handling of static composition.
7194 (Fcomposition_get_gstring): Check FROM and TO at first.
7195
7196 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7197
7198 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
7199 mixup (YAILOM).
7200
7201 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
7202
7203 * indent.c (Fvertical_motion): Use position reported by iterator
7204 instead of PT for determining screen motion (bug#943).
7205
7206 2008-09-17 Romain Francoise <romain@orebokech.com>
7207
7208 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
7209
7210 2008-09-17 Kenichi Handa <handa@m17n.org>
7211
7212 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
7213
7214 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
7215 if necessary.
7216
7217 2008-09-16 Kenichi Handa <handa@m17n.org>
7218
7219 * coding.c (make_conversion_work_buffer): Avoid calling
7220 Fget_buffer_create if it is not necessary.
7221
7222 2008-09-15 Martin Rudalics <rudalics@gmx.at>
7223
7224 * window.c (Fselect_window): Don't update window_select_count and
7225 use_time when norecord is not nil.
7226
7227 2008-09-14 Kenichi Handa <handa@m17n.org>
7228
7229 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
7230 specpdl_ptr.
7231
7232 2008-09-12 Kenichi Handa <handa@m17n.org>
7233
7234 * indent.c (scan_for_column): Don't handle automatic composition
7235 if the current buffer is not associated with a window.
7236
7237 * composite.c (composition_reseat_it): If the current buffer is
7238 not associated with a window, ignore the automatic composition.
7239 (find_automatic_composition): Likewise.
7240
7241 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7242
7243 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
7244 (Fgpm_mouse_stop): Use it.
7245 * termhooks.h (close_gpm): Declare.
7246 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
7247 connection if Gpm_GetEvent fails.
7248
7249 * window.c (set_window_buffer): Always preserve current-buffer.
7250
7251 2008-09-12 Glenn Morris <rgm@gnu.org>
7252
7253 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
7254
7255 2008-09-11 Glenn Morris <rgm@gnu.org>
7256
7257 * charset.c (charset-map-path): Doc fix.
7258
7259 2008-09-10 Kenichi Handa <handa@m17n.org>
7260
7261 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
7262
7263 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
7264 compose a grapheme cluster with the preceding base glyph.
7265
7266 * composite.c (composition_compute_stop_pos): Fix previous change.
7267 Reset cmp_it->id to -1 at first.
7268
7269 2008-09-10 Glenn Morris <rgm@gnu.org>
7270
7271 * Makefile.in (character.o, chartab.o): Fix config.h typo.
7272
7273 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
7274
7275 * keyboard.c (read_key_sequence): Reapply translation maps when
7276 switching keyboards.
7277
7278 2008-09-09 Kenichi Handa <handa@m17n.org>
7279
7280 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
7281 characters.
7282
7283 * composite.c (FORWARD_CHAR): Fix calculation
7284 of (POSITION).pos_byte.
7285 (composition_compute_stop_pos): Limit the search of composition to
7286 at most 500 characters ahead. If we reach the limit or find a
7287 newline, set cmp_it->ch to -2 and return 0.
7288 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
7289
7290 2008-09-08 Kenichi Handa <handa@m17n.org>
7291
7292 * indent.c (Fvertical_motion): Be sure to set
7293 it_overshoot_expected if it.cmp_it.id is non-negative.
7294
7295 2008-09-07 Andreas Schwab <schwab@suse.de>
7296
7297 * callproc.c (Fcall_process): Don't hold references to string data
7298 across garbage collection. Move initialisation of new_argv down
7299 to avoid compiler bug.
7300
7301 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7302
7303 * process.c (Fsystem_process_attributes): Doc fix.
7304
7305 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
7306
7307 * callproc.c (Fcall_process): Canonicalize current directory name.
7308
7309 * xdisp.c (move_it_to): When moving by vpos, ensure that the
7310 iterator advances to the next line if the current line ends in a
7311 continued tab.
7312
7313 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
7314
7315 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7316 member to point to cmp_from.
7317
7318 * xdisp.c: Doc fix for references to gidx data member.
7319
7320 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7321
7322 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7323
7324 2008-09-07 Kenichi Handa <handa@m17n.org>
7325
7326 * composite.c (FORWARD_CHAR): Check STOP after
7327 incrementing (POSITION).pos.
7328
7329 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7330
7331 * process.c (Fsystem_process_attributes): Doc fix.
7332
7333 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
7334
7335 * keyboard.c (Ftop_level): Doc fix.
7336
7337 2008-09-06 Eli Zaretskii <eliz@gnu.org>
7338
7339 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7340 minibuffer, don't let lower part of menu invade the echo area.
7341
7342 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7343 "char *q" to access menu text and advance through it. Revert the
7344 change that displayed ">" instead of ASCII character 0x10.
7345
7346 2008-09-05 Eli Zaretskii <eliz@gnu.org>
7347
7348 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7349 toggle boxes and radio buttons on MS-DOS as well.
7350
7351 2008-09-05 Kenichi Handa <handa@m17n.org>
7352
7353 * composite.c (autocmp_chars): Check lookback count.
7354 (composition_compute_stop_pos): Set cmp_it->lookback.
7355 (composition_reseat_it): Check lookback count.
7356 (struct position_record): New struct.
7357 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7358 (find_automatic_composition): New function.
7359 (composition_adjust_point): Use find_automatic_composition.
7360
7361 * dispextern.h (struct composition_it): New member lookback.
7362
7363 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
7364
7365 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7366 if moving by a single line.
7367
7368 2008-09-02 Andreas Schwab <schwab@suse.de>
7369
7370 * xterm.c (x_delete_display): Fix merge error.
7371
7372 * fileio.c (Fexpand_file_name): Remove unused variables.
7373
7374 2008-09-02 Eli Zaretskii <eliz@gnu.org>
7375
7376 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7377 storage on all platforms, not just on DOS_NT.
7378
7379 2008-09-02 Jason Rumney <jasonr@gnu.org>
7380
7381 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7382 Ensure mouse is not grabbed after menu is finished.
7383
7384 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
7385
7386 * xfaces.c (Finternal_set_alternative_font_family_alist)
7387 (Finternal_set_alternative_font_registry_alist): Properly copy
7388 entire alist structure.
7389
7390 2008-09-01 Kenichi Handa <handa@m17n.org>
7391
7392 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
7393 representative chars of the script is a vector.
7394 (ftfont_list): Handle the case where the representative chars of
7395 the script is a vector.
7396
7397 * character.c (syms_of_character): Docstring of
7398 script-representative-chars fixed.
7399
7400 2008-08-31 Eli Zaretskii <eliz@gnu.org>
7401
7402 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7403 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7404 the menu. Allocate larger buffer for `text', to account for
7405 possible ^C characters.
7406
7407 2008-08-31 Martin Rudalics <rudalics@gmx.at>
7408
7409 * xdisp.c (prepare_menu_bars): Don't call
7410 Vwindow_size_change_functions with arg Qt.
7411
7412 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7413
7414 * font.h (font_range):
7415 * fileio.c (report_file_error):
7416 * composite.c (composition_update_it): Yet another int/Lisp_Object
7417 mixup (YAILOM).
7418
7419 2008-08-30 Glenn Morris <rgm@gnu.org>
7420
7421 * data.c (Fmake_variable_frame_local): Doc fix.
7422
7423 * frame.c (Fmodify_frame_parameters): Doc fix.
7424
7425 2008-08-30 Eli Zaretskii <eliz@gnu.org>
7426
7427 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7428 needed by GetTokenInformation.
7429 (w32_system_process_attributes): Check return values of all system
7430 APIs.
7431
7432 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7433 only when the state changes.
7434 (IT_update_begin, IT_update_end): Add termscript trace.
7435
7436 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7437 clipboard is unavailable. Set dst to NULL if it doesn't point to
7438 malloc'ed data.
7439 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7440 passing random values to xfree.
7441
7442 * dispnew.c (init_display): Set `tty's association in frame's
7443 parameters alist to the name of the terminal device, if that is known.
7444
7445 2008-08-29 Jason Rumney <jasonr@gnu.org>
7446
7447 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7448
7449 2008-08-29 Eli Zaretskii <eliz@gnu.org>
7450
7451 * composite.c (fill_gstring_body): Avoid compiler warnings.
7452
7453 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7454 LGLYPH_SET_CODE to avoid compiler warnings.
7455
7456 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
7457
7458 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7459
7460 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7461 LGLYPH_SET_CODE.
7462
7463 2008-08-29 Kenichi Handa <handa@m17n.org>
7464
7465 * fileio.c (report_file_error): Don't downcase the first character
7466 of errstring if it is still unibyte.
7467
7468 2008-08-29 Kenichi Handa <handa@m17n.org>
7469
7470 These changes are to re-implement the automatic composition so
7471 that it doesn't use text properties.
7472
7473 * Makefile.in (ftfont.o): Depend on composite.h.
7474 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7475
7476 * character.h (Vunicode_category_table): Extern it.
7477
7478 * character.c (Vunicode_category_table): New variable.
7479 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7480
7481 * chartab.c (optimize_sub_char_table): Perform more greedy
7482 optimization.
7483
7484 * composite.h (enum composition_method):
7485 Delete COMPOSITION_WITH_GLYPH_STRING.
7486 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7487 (Vcomposition_function_table): Extern it.
7488 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7489 (composition_gstring_put_cache, composition_gstring_from_id)
7490 (composition_gstring_p, composition_gstring_width)
7491 (composition_compute_stop_pos, composition_reseat_it)
7492 (composition_update_it, composition_adjust_point): Extern them.
7493 (Fcomposition_get_gstring): EXFUN it.
7494
7495 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
7496 (Vcomposition_function_table)
7497 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
7498 (gstring_hash_table, gstring_work, gstring_work_headers):
7499 New variables.
7500 (gstring_lookup_cache, composition_gstring_put_cache)
7501 (composition_gstring_from_id, composition_gstring_p)
7502 (composition_gstring_width, fill_gstring_header)
7503 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7504 (composition_reseat_it, composition_update_it)
7505 (composition_adjust_point, Fcomposition_get_gstring): New functions.
7506 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7507 and gstring_work_headers. DEFVAR_LISP composition-function-table.
7508 Defsubr composition_get_gstring.
7509
7510 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7511 cmp_id.
7512 (struct glyph_string): Delete the member gidx. New members
7513 cmp_id, cmp_from, and cmp_to.
7514 (enum it_method): Delete GET_FROM_COMPOSITION.
7515 (struct composition_it): New struct.
7516 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7517 Delete c, len, cmp_id, cmp_len in u.comp.
7518
7519 * font.h (enum lgstring_indices): Delete it.
7520 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
7521 (enum lglyph_indices): Likewise.
7522 (font_range): Adjust extern.
7523 (font_fill_lglyph_metrics): Extern it.
7524
7525 * font.c (QCf): New variable.
7526 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7527 (font_prepare_composition): Delete this function.
7528 (font_range): Type and arguments changed.
7529 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7530 (font_fill_lglyph_metrics): New function.
7531 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
7532 (syms_of_font): DEFSYM QCf. Delete defsubr for
7533 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7534 Defsubr Sfont_shape_gstring.
7535
7536 * fontset.h (font_for_char): Extern it.
7537
7538 * fontset.c (font_for_char): New function.
7539
7540 * ftfont.c: Include composite.h.
7541 (ftfont_resolve_generic_family): Add langset "en" to pattern.
7542 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7543
7544 * indent.c: Include composite.h and dispextern.h.
7545 (check_composition): Delete this function.
7546 (scan_for_column): Handle composition by
7547 composition_compute_stop_pos, composition_reseat_it, and
7548 composition_update_it.
7549 (compute_motion): Likewise.
7550 (Fvertical_motion): Fix checking of composition.
7551
7552 * keyboard.c (adjust_point_for_property): Check composition by
7553 composition_adjust_point.
7554
7555 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
7556 struct glyph_string.
7557
7558 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7559 (append_composite_glyph): Adjust for the change of struct it and
7560 struct glyph.
7561 (produce_composite_glyph): Likewise.
7562
7563 * w32term.c (x_draw_composite_glyph_string_foreground):
7564 Adjust for the change of struct glyph_string.
7565 (x_draw_glyph_string): Likewise.
7566
7567 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7568 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7569
7570 * xdisp.c: Include font.h.
7571 (it_props): Delete the entry for Qauto_composed.
7572 (init_iterator): Initialize it->cmp_it.id to -1.
7573 (compute_stop_pos): Call composition_compute_stop_pos.
7574 (face_before_or_after_it_pos): Adjust for the change of struct it.
7575 (handle_auto_composed_prop): Delete it.
7576 (handle_composition_prop): Handle only static composition.
7577 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7578 from xassert. Initialize it->cmp_it.stop_pos.
7579 (push_it): Adjust for the change of struct it.
7580 (pop_it): Likewise.
7581 (get_next_element): Delete next_element_from_composition.
7582 (CHAR_COMPOSED_P): New macro.
7583 (get_next_display_element): For automatic composition, get a face
7584 from the font in the glyph-string.
7585 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
7586 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
7587 (next_element_from_string): Check if the character at the current
7588 position is composed by CHAR_COMPOSED_P.
7589 (next_element_from_buffer): Likewise.
7590 (next_element_from_composition): Adjust for the change of struct it.
7591 Update it->cmp_it.
7592 (dump_glyph): Adjust for the change of struct glyph.
7593 (fill_composite_glyph_string): Adjust for the change of struct
7594 it and struct glyph. Don't handle automatic composition here.
7595 (fill_gstring_glyph_string): New function.
7596 (x_get_glyph_overhangs): Handle automatic composition.
7597 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
7598 (BUILD_GSTRING_GLYPH_STRING): New macro.
7599 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7600 automatic composition.
7601 (append_composite_glyph): Adjust for the change of struct it and
7602 struct glyph.
7603 (x_produce_glyphs): Adjust for the change of struct it.
7604
7605 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
7606 the change of struct glyph_string.
7607 (x_draw_glyph_string): Likewise.
7608
7609 2008-08-29 Glenn Morris <rgm@gnu.org>
7610
7611 * buffer.c (word-wrap): Doc fix.
7612 * xdisp.c (truncate-partial-width-windows): Doc fix.
7613 Increase default to 50.
7614
7615 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
7616
7617 * xdisp.c (update_tool_bar_unwind): New function.
7618 (update_tool_bar): Temporarily set selected frame before building
7619 tool-bar items.
7620
7621 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
7622
7623 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7624 snprintf, respectively.
7625 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7626
7627 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
7628
7629 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7630 LDFLAGS to GNUstep CC invocation.
7631
7632 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
7633
7634 * indent.c (Fvertical_motion): Revert last change. Handle the
7635 general case where we are moving forward, and PT spans multiple
7636 screen lines.
7637
7638 * eval.c (find_handler_clause): Temporarily increase
7639 max-lisp-eval-depth while printing the backtrace buffer, to
7640 guarantee that help-mode code can run.
7641
7642 2008-08-27 Eli Zaretskii <eliz@gnu.org>
7643
7644 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7645 colors under -rv.
7646 (IT_set_frame_parameters): Don't swap foreground and background
7647 colors if `(reverse . t)' is present in the frame properties.
7648 (internal_terminal_init): Call init_frame_faces only for the
7649 initial frame.
7650
7651 2008-08-27 Andreas Schwab <schwab@suse.de>
7652
7653 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7654
7655 2008-08-27 Andreas Schwab <schwab@suse.de>
7656
7657 * search.c (search_buffer): Set char_base to zero only at the end.
7658
7659 2008-08-27 Kenichi Handa <handa@m17n.org>
7660
7661 * fileio.c (report_file_error): Fix handling of multibyte error string.
7662
7663 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7664
7665 * xterm.c (x_term_init): Temporarily hide the partially
7666 initialized terminal while calling vendor-specific-keysyms.
7667
7668 2008-08-26 Eli Zaretskii <eliz@gnu.org>
7669
7670 * msdos.c (internal_terminal_init): Most initializations done only
7671 once, especially initial_screen_colors[] and termscript open.
7672
7673 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
7674
7675 * eval.c (Fcondition_case): Doc fix.
7676
7677 * widgetprv.h (EmacsFramePart): Change font member to the new font
7678 struct.
7679
7680 * widget.c: Include character.h and font.h for XSETFONT.
7681 (setup_frame_gcs): Compute X font id from font struct, just once.
7682
7683 2008-08-26 Eli Zaretskii <eliz@gnu.org>
7684
7685 * term.c (get_named_tty): Fix last change.
7686
7687 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
7688
7689 * indent.c (Fvertical_motion): If moving forward starting from a
7690 multi-line string, move the iterator to the last line of that string.
7691
7692 2008-08-25 Eli Zaretskii <eliz@gnu.org>
7693
7694 * frame.c (do_switch_frame): Mark previously displayed frame as
7695 obscured for FRAME_MSDOS_P frames as well.
7696
7697 2008-08-24 Eli Zaretskii <eliz@gnu.org>
7698
7699 * frame.c (make_terminal_frame): Initialize f->terminal,
7700 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7701 Set the top frame to newly created frame.
7702 (Fmake_terminal_frame): Reuse the_only_display_info.
7703
7704 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7705 estimating available memory.
7706
7707 2008-08-23 David Reitter <david.reitter@gmail.com>
7708
7709 * nsterm.m (ns_draw_window_cursor): Don't call
7710 NSDisableScreenUpdates and NSEnableScreenUpdates on
7711 non-NS_IMPL_COCOA systems.
7712
7713 2008-08-23 Andreas Schwab <schwab@suse.de>
7714
7715 * process.c (procfs_system_process_attributes): Fix use of
7716 uninitialized variables.
7717
7718 2008-08-23 Eli Zaretskii <eliz@gnu.org>
7719
7720 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7721
7722 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7723 calling tty-set-up-initial-frame-faces.
7724
7725 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7726 Allow MSDOS frames along with X frames.
7727
7728 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7729 addition to output_termcap.
7730
7731 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7732
7733 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7734 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7735 highlight.
7736
7737 * process.c [!subprocesses]: Define QCname.
7738 (syms_of_process): Intern and staticpro it.
7739
7740 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
7741 Adjust for changes in encoding/decoding routines.
7742 Use encode_coding_object and decode_coding_object instead of
7743 encode_coding and decode_coding.
7744
7745 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
7746
7747 * dosfns.c: Include frame.h before termhooks.h.
7748 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7749 variable termscript.
7750
7751 * s/msdos.h (USER_FULL_NAME): Define.
7752 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7753
7754 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7755 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7756 pw->pw_gecos.
7757
7758 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7759 SELECTED_FRAME as additional (1st) argument.
7760 (tty_read_avail_input): Handle output_msdos_raw in
7761 addition to output_termcap.
7762
7763 * msdos.c: Include frame.h before termhooks.h.
7764 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7765 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7766 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7767 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7768 (IT_set_terminal_modes, IT_reset_terminal_modes)
7769 (IT_set_frame_parameters): Use tty->termscript instead of a global
7770 variable termscript.
7771 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7772 global variable terminal_coding. Don't refer to
7773 Vnonascii_translation_table.
7774 (internal_terminal_init): Set Vwindow_system in current_kboard.
7775 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7776 Announce date and time of session start, if termscript is open.
7777 Don't zero out the_only_display_info (it is done in
7778 term.c:init_tty). Open termscript only of not already open.
7779 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
7780 here instead of dos_ttraw. Don't initialize display if this is an
7781 initial tty. Don't set FRAME_FONT.
7782 (Vwindow_system_version): Bump to 23.
7783 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7784 is available, set up mouse_position_hook.
7785 (dos_ttraw, IT_set_terminal_modes): If called with initial
7786 terminal, do nothing.
7787 (IT_set_frame_parameters): Handle the Qtty_type frame
7788 parameter by calling internal_terminal_init.
7789 (dos_set_window_size, show_mouse_face)
7790 (clear_mouse_face, IT_note_mode_line_highlight)
7791 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7792 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7793 (initialize_msdos_display): New function.
7794 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7795 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7796 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7797 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
7798 Accept additional argument: a pointer to a frame. Update all callers.
7799 (request_sigio, unrequest_sigio): Don't define, now defined on
7800 sysdep.c.
7801 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7802
7803 * term.c [MSDOS]: Include msdos.h.
7804 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7805 conditional to DOS_NT. Allow only one call to this function in a
7806 session. Don't allocate a new struct tty_display_info; instead,
7807 reuse the_only_display_info. Call get_tty_size to get screen
7808 dimensions. Call init_baud_rate to set bad_rate.
7809 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7810 (Fsuspend_tty) [MSDOS]: Don't close input and output.
7811 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
7812 (get_tty_terminal, get_named_tty, Ftty_type)
7813 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7814 output_termcap.
7815 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7816 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
7817 only when subprocesses are supported.
7818
7819 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7820 f->output_data.x.
7821 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7822 terminal devices.
7823
7824 * msdos.h: Remove definition of struct x_display_info and struct
7825 x_output.
7826 (FRAME_FONT): Use output_data.tty.
7827 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
7828 (struct x_display_info): Rename from display_info. Update all users in
7829 msdos.c.
7830 (struct x_output): Remove background_pixel and foreground_pixel.
7831 (the_only_display_info): Rename from the_only_x_display.
7832 (dos_ttraw): Update prototype.
7833
7834 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7835 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7836
7837 2008-08-23 Jason Rumney <jasonr@gnu.org>
7838
7839 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7840 (fn_TIFFSetDirectory): New library function used.
7841 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7842 (tiff_load): Use :index to select among multiple images. Set count
7843 property when multiple images exist.
7844 (gif_format): Use :index, not :image.
7845
7846 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
7847
7848 * xdisp.c (try_scrolling): Check INT_MAX instead of
7849 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7850 to obtain INT_MAX.
7851
7852 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7853
7854 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7855
7856 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7857
7858 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7859 GNUstep library location.
7860
7861 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
7862
7863 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7864 before using it.
7865
7866 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7867
7868 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7869
7870 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7871 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7872 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7873 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7874 (EmacsApp-cursor_blink_handler): Remove declaration.
7875 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7876 match 01 Feb 2008 changes in xterm.c.
7877 (ns_read_socket): Add cast to avoid warning.
7878 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7879 GNUstep.
7880
7881 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
7882
7883 * xselect.c (x_get_foreign_selection): Return nil if desired
7884 selection could not be obtained, instead of signalling an error.
7885
7886 2008-08-20 David Reitter <david.reitter@gmail.com>
7887
7888 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7889 * nsterm.m: Remove ns-specific code for cursor blinking.
7890 (ns_draw_window_cursor): Clear cursor properly rather than
7891 redrawing the area. Respect width of bar cursors.
7892 These changes enable the use of generic blink-cursor-mode and
7893 generic cursor types in NS and support smooth cursor movements (do
7894 not blink off after command).
7895 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7896 Nextstep, too.
7897
7898 2008-08-19 Kenichi Handa <handa@m17n.org>
7899
7900 * font.c (Vfont_log_deferred): New variable.
7901 (font_add_log): Check Vfont_log_deferred.
7902 (font_deferred_log): New function.
7903
7904 * font.h (font_deferred_log): Extern it.
7905
7906 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7907 for sorting.
7908 (face_for_char): Use deferred log.
7909
7910 2008-08-18 Kenichi Handa <handa@m17n.org>
7911
7912 * fontset.c (face_for_char): Add font log.
7913
7914 * font.c (font_add_log): Add the font properties :script, :lang,
7915 and :otf in the log.
7916
7917 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
7918
7919 * xdisp.c: Remove dead code.
7920 (handle_invisible_prop, next_overlay_string): Defer call to
7921 setup_for_ellipsis.
7922 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7923
7924 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
7925
7926 * xfaces.c (lookup_derived_face): Properly handle possible zero
7927 return value of get_lface_attributes.
7928 (merge_faces): Don't tell lookup_derived_face to signal an error
7929 if face is not found.
7930
7931 * dired.c (Fdirectory_files): Doc fix.
7932
7933 * process.c (make_process): Initialize kill_without_query struct
7934 member.
7935
7936 2008-08-15 Eli Zaretskii <eliz@gnu.org>
7937
7938 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7939 Alternative calculation of totphys for Visual Studio 6.
7940
7941 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7942
7943 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7944 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7945 All users changed.
7946 (stat): Only root directory passed to GetDriveType. Allow RAM
7947 disk as well as local fixed disk when w32-get-true-file-attributes
7948 is set to `local'.
7949 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7950 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7951 (w32_cached_id, w32_add_to_cache): New functions.
7952 (get_name_and_id): Look account names in the cache before calling
7953 lookup_account_sid.
7954 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7955 New initialization flags.
7956 (globals_of_w32): Initialize them to zero.
7957 (w32_system_process_attributes): Use w32_cached_id and
7958 w32_add_to_cache.
7959
7960 2008-08-14 Lawrence Mitchell <wence@gmx.li>
7961
7962 * lread.c (Fread_char, Fread_char_exclusive): If no character
7963 event is read before timeout is reached, return nil, rather than
7964 converting to a number.
7965
7966 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
7967
7968 * fns.c (use_dialog_box): Doc fix.
7969
7970 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7971 on OS X.
7972
7973 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
7974
7975 * frame.c (Qns_parse_geometry): New var.
7976 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7977
7978 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
7979
7980 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7981 space character in calculating tabs.
7982
7983 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7984
7985 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7986
7987 2008-08-10 Glenn Morris <rgm@gnu.org>
7988
7989 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7990 silence gcc "limited range of data type" warnings in some
7991 make_fixnum_or_float calls.
7992
7993 2008-08-09 Eli Zaretskii <eliz@gnu.org>
7994
7995 * w32.c (w32_system_process_attributes): If the process does not
7996 exist, return nil.
7997
7998 * w32.c: Include thelp32.h, psapi.h and coding.h.
7999 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
8000 declarations.
8001 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
8002 (Process32Next_Proc): New typedefs.
8003 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
8004 (g_b_init_process32_next, g_b_init_open_thread_token)
8005 (g_b_init_impersonate_self, g_b_init_revert_to_self)
8006 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
8007 (g_b_init_get_process_working_set_size)
8008 (g_b_init_global_memory_status_ex): New static variables.
8009 (globals_of_w32): Initialize them.
8010 (create_toolhelp32_snapshot, process32_first, process32_next)
8011 (open_thread_token, impersonate_self, revert_to_self)
8012 (get_process_memory_info, get_process_working_set_size)
8013 (global_memory_status, global_memory_status_ex): New wrapper
8014 functions.
8015 (w32_list_system_processes, w32_system_process_attributes)
8016 (enable_privilege, restore_privilege, ltime, process_times):
8017 New functions.
8018 (convert_time_raw): New function.
8019 (convert_time): Remove conversion of FILETIME into time in 100
8020 nsec units, call convert_time_raw instead.
8021
8022 * process.h (w32_list_system_processes, w32_system_process_attributes):
8023 Add prototypes.
8024 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
8025 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
8026 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
8027 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
8028
8029 * process.c (Fsystem_process_attributes): Doc fix.
8030
8031 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
8032
8033 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
8034 a continued multi-char glyph; if so, advance to the actual glyph.
8035
8036 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8037
8038 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
8039
8040 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
8041 (.m.o): Use it.
8042 * config.in: Regenerate.
8043
8044 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
8045
8046 * xdisp.c (redisplay_window): Revert last change.
8047 (try_window): Check bottom scroll margin too.
8048
8049 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8050
8051 * config.in: Regenerate.
8052
8053 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
8054 -list-load-path-shadows'.
8055 (nsgui.h): Reduce number of things depending on it.
8056
8057 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
8058
8059 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
8060 instead of window-end which does the wrong thing at eob.
8061 (try_cursor_movement): Minor optimization.
8062 (redisplay_window): If scroll margin is defined, don't assume
8063 window doesn't need scrolling.
8064
8065 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8066
8067 * config.in: Regenerate.
8068
8069 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
8070 (mostlyclean): Don't delete *.d under NS.
8071
8072 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
8073
8074 2008-08-06 Kenichi Handa <handa@m17n.org>
8075
8076 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
8077
8078 2008-08-06 Andreas Schwab <schwab@suse.de>
8079
8080 * config.in: Regenerate.
8081
8082 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
8083
8084 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
8085 forcing a window start.
8086
8087 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
8088 (auto_save_1): Update modtime when auto-save-list-file-name is on.
8089
8090 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8091
8092 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
8093 argument.
8094
8095 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
8096
8097 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
8098 <scroll-down-aggressively, before-change-functions>:
8099 <after-change-functions>: Reflow docstrings.
8100
8101 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8102 Ken Raeburn <raeburn@gnu.org>
8103
8104 Dock menu customization, based on a patch by Ken Raeburn, plus some
8105 other fixes.
8106 * nsmenu.m (dockMenu): New variable.
8107 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
8108
8109 * nsterm.h (dockMenu): Declare.
8110
8111 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
8112 (ns_term_init): Initialize dockMenu.
8113 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
8114 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
8115 left.
8116
8117 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
8118
8119 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
8120
8121 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
8122
8123 * config.in: Regenerate.
8124
8125 2008-08-04 Seiji Zenitani <zenitani@mac.com>
8126
8127 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
8128
8129 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
8130
8131 * nsterm.h (find_and_call_menu_selection): Fix prototype.
8132
8133 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8134
8135 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
8136
8137 * keyboard.h: Comment an #endif.
8138
8139 * lisp.h (have_menus_p): Adjust comment.
8140
8141 * menu.c (find_and_return_menu_selection): Fix comparison with
8142 client_data.
8143
8144 * nsmenu.m (popup_activated_flag): New variable.
8145 (popup_activated): New function.
8146 (menu-or-popup-active-p): New exported lisp definition.
8147 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
8148 when popup done.
8149 (ns_popup_dialog): Set popup_activated_flag.
8150
8151 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
8152 version for GNUstep (handled by conditional typedef in nsterm.m).
8153 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
8154 in rgb.txt).
8155
8156 * process.c (init_process): Use DARWIN_OS, not DARWIN.
8157
8158 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
8159
8160 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
8161
8162 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
8163 shortcircuit if popup_activated like GTK and X toolkit.
8164
8165 * m/inter386.h: Change DARWIN to DARWIN_OS.
8166
8167 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
8168 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
8169 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
8170 comment on NO_SOCK_SIGIO.
8171
8172 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
8173
8174 * nsterm.m (windowDidResize): Remove stopModal call.
8175
8176 2008-08-03 Andreas Schwab <schwab@suse.de>
8177
8178 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
8179 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
8180
8181 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
8182
8183 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
8184 Don't use uninitialized pointer variable when using getrlimit.
8185
8186 2008-08-02 Jason Rumney <jasonr@gnu.org>
8187
8188 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
8189
8190 2008-08-02 Eli Zaretskii <eliz@gnu.org>
8191
8192 * alloc.c (NSTATICS): Bump to 0x640.
8193
8194 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
8195
8196 * lisp.h: Add prototype for directory_files_internal.
8197
8198 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
8199 New functions.
8200 (syms_of_process): Defsubr them. Add initializations for various
8201 Q* symbols used in procfs_system_process_attributes.
8202 (procfs_list_system_processes, procfs_system_process_attributes)
8203 [HAVE_PROCFS]: New functions.
8204 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
8205 (procfs_get_total_memory): New functions.
8206
8207 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
8208
8209 * xfaces.c (Fx_load_color_file): Fix previous change;
8210 it is #ifdef WINDOWSNT, not WINDOWS_NT.
8211
8212 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
8213
8214 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
8215
8216 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8217
8218 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
8219
8220 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
8221
8222 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
8223
8224 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
8225 define NSApplicationDelegateReplySuccess.
8226 (EmacsView -converstationIdentifier): Use long instead of
8227 NSInteger for GNUstep, since it doesn't have NSInteger.
8228
8229 * xmenu.c: Revert last change.
8230
8231 * keyboard.h: Fix last change.
8232
8233 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
8234
8235 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
8236 on Windows.
8237
8238 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8239
8240 Warning clearing and clean-up in NS port.
8241 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
8242 Add prototypes.
8243 * nsgui.h (FACE_DEFAULT): Remove, unused.
8244 (XGCValues): Change colors to unsigned long.
8245 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
8246 nsterm.m.
8247 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
8248 (ns_list_fonts): Remove, unused.
8249 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
8250 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
8251 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
8252 (nsfont_draw): Compare face colors to 0, not nil.
8253 * nsmenu.m (struct widget_value): Drop unneeded declaration.
8254 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
8255 (-addSubmenuWithTitle:): Use NSMenuItem class.
8256 (ns_popup_menu): Use NO, not NULL, for enabled setting.
8257 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
8258 (ns_clip_to_row): Make gc arg a BOOL.
8259 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
8260 ns_clip_to_row() call.
8261 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
8262 used). Cast FRAME_FONT assignments.
8263 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
8264 (ns_string_to_lispmod): Change arg to const char.
8265 (ns_term_init): Use NSMenuItem class.
8266 (EmacsApp -openFile:): Move to different section of file.
8267 (EmacsApp -application:openFiles:): Don't return a value, call
8268 -replyToOpenOrPrint:.
8269 (EmacsView -keyDown:): Fix up cast.
8270 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
8271 (EmacsView -menuDown:): Cast tag in call to
8272 find_and_call_menu_selection().
8273 (ns_list_fonts): Remove, unused.
8274 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
8275 (ns_fontname_to_xlfd): Make static.
8276 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
8277 Remove prototypes (now in keyboard.h).
8278 (next_menubar_widget_id): Remove, unused.
8279 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
8280 Remove prototypes (now in keyboard.h).
8281 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
8282
8283 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
8284
8285 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
8286 (floatfns.o): Depend on syssignal.h.
8287 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
8288
8289 * systty.h: Fix previous change that removed BSD_TERMIOS.
8290 Add comments to #ifdefs.
8291
8292 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8293
8294 * w32fns.c (w32-load-color-file): Remove.
8295 (x-open-connection): Use renamed Fx_load_color_file.
8296 * xfaces.c (x-load-color-file): Add.
8297 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
8298 Emacs.clr.
8299 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
8300
8301 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
8302
8303 * dbusbind.c (Fdbus_call_method_asynchronously)
8304 (Fdbus_method_error_internal): New defuns.
8305 (xd_read_message): Handle also reply messages.
8306 (Vdbus_registered_functions_table): Extend docstring.
8307
8308 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
8309
8310 * keyboard.c (gobble_input): Fix previous change.
8311
8312 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8313
8314 * bitmaps/README:
8315 * xfns.c:
8316 * termcap.c:
8317 * term.c:
8318 * syswait.h:
8319 * systty.h:
8320 * systime.h:
8321 * syssignal.h:
8322 * sysdep.c:
8323 * process.h:
8324 * process.c:
8325 * print.c:
8326 * ndir.h:
8327 * lread.c:
8328 * keyboard.c:
8329 * getpagesize.h:
8330 * floatfns.c:
8331 * fileio.c:
8332 * emacs.c:
8333 * doc.c:
8334 * dispnew.c:
8335 * dired.c:
8336 * data.c:
8337 * callproc.c:
8338 * buffer.c:
8339 * README:
8340 * Makefile.in:
8341 * s/template.h:
8342 * s/msdos.h:
8343 * m/vax.h: Remove VMS support.
8344 * s/vms.h:
8345 * vlimit.h:
8346 * uaf.h:
8347 * temacs.opt:
8348 * param.h:
8349 * ioctl.h: Remove file.
8350
8351 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8352
8353 * s/ms-w32.h (MULTI_KBOARD): Remove.
8354 * xterm.c:
8355 * xselect.c:
8356 * xfns.c:
8357 * window.c:
8358 * w32term.c:
8359 * w32fns.c:
8360 * terminal.c:
8361 * termhooks.h:
8362 * term.c:
8363 * sysdep.c:
8364 * keyboard.h:
8365 * keyboard.c:
8366 * frame.h:
8367 * frame.c:
8368 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8369 * config.in: Regenerate.
8370
8371 2008-07-30 Jason Rumney <jasonr@gnu.org>
8372
8373 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8374
8375 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8376 (w32font_open_internal): Get unicode version of textmetrics.
8377 Don't enable or disable glyph indices here.
8378 (w32font_open): Disable use of glyph indices.
8379
8380 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8381
8382 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
8383
8384 * minibuf.c (Vread_buffer_function): Doc fix.
8385
8386 2008-07-30 John Paul Wallington <jpw@pobox.com>
8387
8388 * minibuf.c (read_buffer_completion_ignore_case): New var.
8389 (Fread_buffer): Use it.
8390
8391 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8392
8393 * systty.h (sensemode): Remove empty #if. Remove reference to
8394 BSD_TERMIOS, unused.
8395
8396 * sysdep.c: Remove reference to DGUX.
8397 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8398
8399 * config.in: Regenerate.
8400
8401 2008-07-30 Jason Rumney <jasonr@gnu.org>
8402
8403 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8404
8405 2008-07-29 Jason Rumney <jasonr@gnu.org>
8406
8407 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8408 is populated.
8409 (uniscribe_encode_char): Always use uniscribe.
8410 Avoid using context if cache is populated.
8411
8412 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8413
8414 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8415 open menu.
8416
8417 * gtkutil.c (menu_nav_ended): Remove.
8418 (create_menus): Remove signal connect for menu_nav_ended.
8419
8420 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
8421
8422 * xdisp.c (redisplay_window): Check return value of
8423 compute_window_start_on_continuation_line before forcing a window
8424 start.
8425
8426 2008-07-28 Jason Rumney <jasonr@gnu.org>
8427
8428 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8429
8430 * w32term.c (w32_enable_unicode_output, cleartype_active):
8431 Remove obsolete display options.
8432 (x_draw_glyph_string_background): Don't use old cleartype_active
8433 workaround.
8434 (w32_initialize): Remove cleartype_active initialization.
8435 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8436
8437 2008-07-28 Andreas Schwab <schwab@suse.de>
8438
8439 * lisp.h (init_weak_hash_tables, syms_of_font)
8440 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8441 (remove_hash_entry): Don't declare.
8442 * eval.c (maybe_call_debugger): Make static and move before use.
8443 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8444 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8445 * xterm.h (x_set_frame_alpha): Declare.
8446
8447 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8448
8449 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8450 (create_menus): Connect selection-done to menu_nav_ended.
8451
8452 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8453
8454 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8455 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8456 parameter with read of 'alpha' one.
8457 (Qns_frame_parameter): Remove.
8458 * nsselect.m (selection-coding-system)
8459 (next-selection-coding-system, Vselection_coding_system)
8460 (Vnext_selection_coding_system): Drop.
8461
8462 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8463
8464 * nsfns.m (do-applescript, do_applescript): Rename to
8465 ns-do-applescript, ns_do_applescript, and move within file.
8466
8467 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8468
8469 Remove support for Mac Carbon.
8470 * mactoolbox.c:
8471 * macterm.h:
8472 * macterm.c:
8473 * macselect.c:
8474 * macmenu.c:
8475 * macgui.h:
8476 * macfns.c:
8477 * mac.c: Remove file.
8478 * s/darwin.h:
8479 * m/intel386.h:
8480 * xfaces.c:
8481 * xdisp.c:
8482 * window.c:
8483 * tparam.c:
8484 * termhooks.h:
8485 * termcap.c:
8486 * term.c:
8487 * syssignal.h:
8488 * sysselect.h:
8489 * sysdep.c:
8490 * process.c:
8491 * lread.c:
8492 * lisp.h:
8493 * keyboard.c:
8494 * image.c:
8495 * fringe.c:
8496 * frame.h:
8497 * frame.c:
8498 * fontset.c:
8499 * font.h:
8500 * font.c:
8501 * fns.c:
8502 * fileio.c:
8503 * emacs.c:
8504 * dispnew.c:
8505 * dispextern.h:
8506 * config.in:
8507 * atimer.c:
8508 * Makefile.in: Remove code for Carbon.
8509
8510 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8511
8512 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8513
8514 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8515
8516 * macterm.h (kCGBitmapByteOrder32Host): New define for
8517 non-universal SDKs.
8518
8519 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8520 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8521
8522 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8523 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8524
8525 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8526
8527 * w32inevt.c: Include dispextern.h.
8528
8529 2008-07-26 Andreas Schwab <schwab@suse.de>
8530
8531 * print.c (print_object): Fix off-by-one in last change.
8532
8533 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
8534
8535 * term.c (syms_of_term): Don't initialize default_orig_pair,
8536 default_set_foreground and default_set_background on Windows.
8537
8538 2008-07-25 Jason Rumney <jasonr@gnu.org>
8539
8540 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8541 ScriptItemize. Clean up return value checking. Remove unused
8542 variables.
8543 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8544 shaping engine.
8545
8546 * w32font.c (w32font_has_char): Handle the case where we can't
8547 determine the script for a character.
8548
8549 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
8550
8551 * term.c (syms_of_term): Initialize default_orig_pair,
8552 default_set_foreground, and default_set_background.
8553
8554 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8555 clash (bug#86).
8556 (getloadavg): Callers changed.
8557
8558 * image.c (svg_load_image): Fix last change.
8559 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8560 image size is valid. Use g_object_unref instead of deprecated
8561 rsvg_handle_free to free rsvg handle.
8562 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8563
8564 2008-07-25 Jason Rumney <jasonr@gnu.org>
8565
8566 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8567 surrogates before looking up glyph index.
8568 (w32font_text_extents): Encode as surrogates if falling back to
8569 functions that need UTF-16 wide chars.
8570
8571 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8572 BMP as surrogates before looking up glyph index.
8573
8574 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
8575
8576 * image.c (svg_load_image): Check for failure in return value of
8577 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8578
8579 2008-07-25 Jason Rumney <jasonr@gnu.org>
8580
8581 * w32font.c (Fx_select_font): Reverse sense of second arg.
8582
8583 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8584
8585 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8586 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8587
8588 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8589 (PURESIZE): Use it.
8590
8591 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8592
8593 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8594 * m/alpha.h (TEXT_END):
8595 * m/ibmrs6000.h (TEXT_END):
8596 * m/macppc.h (TEXT_END):
8597 * s/darwin.h (TEXT_END):
8598 * s/msdos.h (TEXT_END): Remove, unused.
8599 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8600 * s/cygwin.h: Remove comment.
8601
8602 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8603 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8604 * m/intel386.h (DOT_GLOBAL_START):
8605 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8606 (USG): Remove, file not used on USG platforms.
8607
8608 * Makefile.in (HAVE_X11): Remove empty #else.
8609
8610 2008-07-24 Andreas Schwab <schwab@suse.de>
8611
8612 * fileio.c (Finsert_file_contents): Properly adjust undo list
8613 after format conversion.
8614
8615 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8616
8617 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8618 (menu_nav_ended): Remove.
8619 (create_menus): Remove signal connect for menu_nav_ended.
8620 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8621 create_menus.
8622 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8623
8624 2008-07-23 Jason Rumney <jasonr@gnu.org>
8625
8626 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8627 with opened font.
8628 (w32font_open): Set font type to gdi.
8629
8630 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8631
8632 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8633
8634 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8635 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8636 defines it.
8637 * unexec.c (ADDR_CORRECT): Define unconditionally.
8638
8639 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8640
8641 * unexec.c: Remove code depending on !COFF and USG, the file is
8642 not used for such systems.
8643
8644 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8645 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8646 (LD_SWITCH_SYSTEM_1): Remove, update users.
8647
8648 * s/darwin.h (DATA_END):
8649 * m/intel386.h (DATA_END):
8650 * m/ibmrs6000.h (DATA_END):
8651 * m/alpha.h (DATA_END): Remove, unused.
8652
8653 * config.in: Regenerate.
8654 * s/ms-w32.h (subprocesses): Define unconditionally.
8655 * s/template.h (subprocesses): Update comment.
8656 * s/vms.h (subprocesses):
8657 * s/usg5-4.h (subprocesses):
8658 * s/hpux10-20.h (subprocesses):
8659 * s/gnu-linux.h (subprocesses):
8660 * s/cygwin.h (subprocesses):
8661 * s/bsd-common.h (subprocesses):
8662 * s/aix4-2.h (subprocesses):
8663 * s/darwin.h (subprocesses): Do not define, defined by default now.
8664
8665 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8666 Remove all references.
8667 (temacs): Add GNUstep specific ld flags.
8668
8669 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8670 similarly to what X does.
8671
8672 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8673
8674 * nsfns.m (x-list-fonts): Remove.
8675 (syms_of_nsfns): Drop the x-list-fonts declaration.
8676 * nsterm.m: Get rid of remaining "//" comments.
8677
8678 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
8679
8680 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8681
8682 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8683 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8684 (Fns_own_selection_internal, Fx_disown_selection_internal)
8685 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8686
8687 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8688 ... */' style of docstrings. Doc fixes.
8689
8690 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8691
8692 * terminfo.c (UP, BC, PC): Undo previous change.
8693
8694 * nsfns.m: Rename ns prefixed functions/variables to the
8695 corresponding x versions. Update references.
8696
8697 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8698
8699 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8700
8701 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8702
8703 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8704 Remove forwarding functions.
8705 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8706 non-static.
8707 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8708 non-static.
8709 (ns_frame_parm_handlers): Use the new names.
8710 (syms_of_nsfns): Move to the end of file.
8711
8712 * nsterm.m (syms_of_nsterm): Move to the end of file.
8713
8714 * dispnew.c (init_display): Remove code for X10.
8715
8716 2008-07-22 Jason Rumney <jasonr@gnu.org>
8717
8718 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8719 bare drive.
8720
8721 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8722
8723 * nsterm.m (syms_of_nsterm): Remove debugging println.
8724
8725 2008-07-22 David Reitter <david.reitter@gmail.com>
8726
8727 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8728 Carbon implementation of the same functionality: execute arbitrary
8729 AppleScript code.
8730
8731 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8732
8733 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8734 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8735 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8736 (Fx_display_mm_height, Fx_display_mm_width)
8737 (Fx_display_backing_store, Fx_display_visual_class)
8738 (Fx_display_save_under, Fx_open_connection)
8739 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8740 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8741 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8742 (Fx_display_pixel_width, Fx_display_pixel_height)
8743 (Fx_display_usable_bounds, Fx_display_planes)
8744 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8745 ... */' style of docstrings.
8746
8747 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8748
8749 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8750 on this platform.
8751 (mips):
8752 * m/iris4d.h (mips): Do not define.
8753 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8754
8755 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8756
8757 * image.c:
8758 * nsfns.m:
8759 * nsselect.m:
8760 * nsterm.h:
8761 * nsterm.m: Rename ns prefixed functions/variables to the
8762 corresponding x versions. Update references.
8763
8764 * m/ibms390x.h (NO_REMAP): Do not undefine.
8765
8766 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8767
8768 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
8769
8770 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8771 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8772 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8773 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8774 (Fns_display_mm_height, Fns_display_mm_width)
8775 (Fns_display_backing_store, Fns_display_visual_class)
8776 (Fns_display_save_under, Fns_open_connection)
8777 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8778 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8779 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8780 (Fns_display_pixel_width, Fns_display_pixel_height)
8781 (Fns_display_usable_bounds, Fx_display_planes)
8782 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8783
8784 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8785
8786 * print.c (print_object): Check print_depth before searching for
8787 circularities.
8788
8789 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
8790
8791 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8792 only sprintf.
8793
8794 2008-07-21 Kenichi Handa <handa@m17n.org>
8795
8796 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8797
8798 2008-07-20 Andreas Schwab <schwab@suse.de>
8799
8800 * syntax.c (find_start_pos, find_start_value)
8801 (find_start_value_byte, find_start_begv, find_defun_start)
8802 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8803
8804 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8805
8806 * s/sol2-3.h: Insert contents of s/sol2.h.
8807 (LD_SWITCH_SYSTEM): Remove redundant definition.
8808 * s/sol2.h: Remove, unused.
8809
8810 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8811
8812 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8813
8814 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8815
8816 * Makefile.in (ns_appdir): Fix typo in find command.
8817
8818 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8819
8820 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8821
8822 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8823 added not supported anymore.
8824
8825 * s/usg5-4-2.h (LIBS_SYSTEM):
8826 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8827
8828 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8829 * s/lynxos.h (GETPGRP_NO_ARG):
8830 * s/hpux10-20.h (NO_SIOCTL_H):
8831 * s/gnu.h (GETPGRP_NO_ARG):
8832 * s/gnu-linux.h (NO_SIOCTL_H):
8833 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8834 * s/cygwin.h (GETPGRP_NO_ARG):
8835 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8836 (C_DEBUG_SWITCH): Remove duplicate definition.
8837
8838 * m/ibms390.h: Remove boilerplate comments.
8839
8840 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8841
8842 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8843 (wait_reading_process_output): Remove code for SunOS, platform not
8844 supported anymore. Use SOLARIS2 instead of sun.
8845
8846 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8847
8848 * font.c (font_open_by_name): Under NS, default lface height to zero.
8849 (font_open_for_lface): Under NS, set size based on frame fontsize.
8850 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8851 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8852
8853 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8854
8855 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8856 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8857 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8858 YES/NO.
8859 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8860 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8861 * Makefile.in (clean): Clear out build destination dir.
8862
8863 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8864
8865 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8866 xterm, xselect.
8867 * lisp.h: Remove declaration of hash_remove.
8868 * nsgui.h: Remove redefinitions of hash_remove.
8869 * fns.c (hash_remove): Rename to hash_remove_from_table.
8870
8871 2008-07-19 Seiji Zenitani <zenitani@mac.com>
8872
8873 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8874 strdup() the family UTF8String before modifying it.
8875
8876 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8877
8878 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8879 NS_FACE_BACKGROUND with 0 instead of nil.
8880 * nsfont.m (nsfont_draw): Same.
8881
8882 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
8883
8884 * nsfns.m (ns_set_background_color): Fix crash.
8885
8886 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
8887
8888 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8889
8890 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8891
8892 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8893
8894 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8895
8896 * gtkutil.c: Include <config.h> instead of "config.h".
8897
8898 * lisp.h (Foverlay_buffer): Add EXFUN.
8899
8900 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8901 child process to complete child_setup. Undo 2005-09-21 change.
8902
8903 * s/darwin.h: Mention setsid after vfork.
8904
8905 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8906
8907 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8908 Depend on macgui.h.
8909
8910 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8911 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8912
8913 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8914 and f19.
8915 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8916
8917 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8918 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8919 Remove enumerators.
8920
8921 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8922 Check if FACE_FROM_ID returns NULL.
8923
8924 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8925
8926 * w32inevt.c (change_frame_size): Remove extern declaration.
8927 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8928 change_frame_size.
8929
8930 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8931
8932 * getloadavg.c: Revert last change (2008-07-15).
8933
8934 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8935
8936 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
8937 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
8938 from configure.
8939
8940 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8941
8942 * s/sol2.h:
8943 * s/sol2-4.h: Reorganize conditionals.
8944
8945 * ecrt0.c: Remove code depending on m68000, not used anymore.
8946
8947 * fns.c (hash_remove): Make static.
8948 * lisp.h (hash_remove): Don't prototype.
8949
8950 * m/ibmrs6000.h:
8951 * m/ibms390x.h:
8952 * m/macppc.h: Remove boilerplate comments.
8953
8954 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8955 Solaris, which does not need them.
8956
8957 * m/vax.h: Remove comments about unsupported systems.
8958
8959 * s/darwin.h: Reorganize ifdefs.
8960
8961 2008-07-17 Andreas Schwab <schwab@suse.de>
8962
8963 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8964
8965 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8966
8967 Use SDATA. Follow coding convention of placing operators at
8968 beginning of next line rather than end of previous line, and placing
8969 spaces around infix operators.
8970
8971 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8972 in case it was defined already.
8973 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8974 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8975 ns_default.
8976 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8977 Lisp_Objects.
8978 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8979 (ns_defined_color, ns_color_to_lisp): Declare.
8980 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8981 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8982 it's accepted even with USE_LISP_UNION_TYPE.
8983 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8984 (update_frame_tool_bar): Remove apparently obsolete tests for
8985 non-integerness of f->tool_bar_lines.
8986 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8987 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8988 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8989 (nsfont_open): Don't confuse NULL for Qnil.
8990 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8991 * menu.h (find_and_call_menu_selection):
8992 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8993 (find_and_return_menu_selection): Always return something.
8994 * frame.h: Include dispextern.h for Display_Info.
8995 (display_x_get_resource): Declare.
8996
8997 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8998
8999 * syntax.c: Remove stdio.h include accidentally introduced in
9000 Emacs.app commit.
9001 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
9002 NS_IMPL_COCOA.
9003 * keyboard.c (handle_async_input, input_available_signal): Remove
9004 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
9005
9006 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9007
9008 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
9009 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
9010 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
9011 Use SDATA.
9012
9013 * keymap.c: Remove all NS-specific code.
9014 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
9015 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
9016 where_is_preferred_modifier, return a different value depending on how
9017 preferred is the binding.
9018 (where_is_internal): Adjust accordingly.
9019 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
9020 Adjust to new preferred_sequence_p.
9021 (syms_of_keymap): Declare `where-is-preferred-modifier'.
9022 * keyboard.c (parse_solitary_modifier): Not static any more.
9023 * keyboard.h (parse_solitary_modifier): Declare.
9024
9025 2008-07-16 Andreas Schwab <schwab@suse.de>
9026
9027 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
9028 of easymenu.
9029
9030 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
9031
9032 * xdisp.c (move_it_in_display_line): Account for word wrap, so
9033 that we don't move off the line.
9034
9035 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9036
9037 * keyboard.c (Qsuper): Remove.
9038 (parse_menu_item): Don't call where_is_internal specially for NS.
9039
9040 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9041
9042 * s/gnu-linux.h: Remove boilerplate comments.
9043
9044 * m/alpha.h (__ELF__): Consolidate conditions.
9045
9046 * m/m68k.h (linux): Use GNU_LINUX instead.
9047 Remove boilerplate comments.
9048
9049 * m/intel386.h: Undo refactoring from previous change.
9050 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
9051 too, remove dead code.
9052 (linux): Use GNU_LINUX instead.
9053
9054 2008-07-16 Jason Rumney <jasonr@gnu.org>
9055
9056 * w32gui.h: Repeat 26 June changes lost by last change.
9057
9058 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9059
9060 * systty.h: Remove code for Aix on 386, unsupported platform.
9061
9062 * s/ms-w32.h: Remove boilerplate comments.
9063 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
9064
9065 * s/gnu-linux.h (TERM): Remove support.
9066 (HAVE_SYSVIPC): Remove, unused.
9067 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
9068 for this system.
9069
9070 * process.c: Remove support for IRIS, unused.
9071 Remove support for TERM, not relevant anymore.
9072
9073 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
9074 used with the definition.
9075
9076 * s/aix4-2.h (static): Do not undef.
9077
9078 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
9079 only used on Aix.
9080 (HAVE_SYSVIPC): Remove, unused.
9081
9082 * m/hp800.h (CANNOT_DUMP): Do not undef.
9083
9084 * m/alpha.h: Fix comment.
9085
9086 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
9087 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
9088 used by this configuration.
9089 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
9090 * unexec.c: Remove code depending on HPUX and
9091 USG_SHARED_LIBRARIES, not used with this file. Remove code
9092 depending on IRIS, unused. Remove if 0-ed code.
9093
9094 * s/template.h: Remove comments about static.
9095
9096 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
9097 Remove if 0-ed code.
9098 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
9099 were the same as the default.
9100 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
9101 Remove boilerplate comments.
9102 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
9103 (HAVE_SYSVIPC): Remove, unused.
9104 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
9105
9106 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9107 Remove boilerplate comments.
9108 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9109 Remove boilerplate comments.
9110 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9111 Remove boilerplate comments.
9112 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
9113
9114 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
9115 USG systems which do not use DATA_SEG_BITS.
9116 Refactor code. Remove boilerplate comments.
9117
9118 * m/ibms390.h:
9119 * m/m68k.h:
9120 * s/bsd-common.h:
9121 * s/cygwin.h:
9122 * s/darwin.h:
9123 * s/freebsd.h:
9124 * s/gnu.h:
9125 * s/msdos.h: Remove boilerplate comments.
9126
9127 * m/iris4d.h: Remove boilerplate comments and code for systems that
9128 do not use this file.
9129 (IRIS_4D): Remove, unused.
9130
9131 * m/mips.h: Remove boilerplate comments and code for systems that
9132 do not use this file.
9133 (SIGN_EXTEND_CHAR):
9134 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
9135 * unexmips.c: Remove file, unused.
9136
9137 * editfns.c (Fuser_full_name): Replace the only use of
9138 USER_FULL_NAME with its value.
9139 * config.in: Regenerate.
9140
9141 2008-07-16 David Reitter <david.reitter@gmail.com>
9142
9143 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
9144 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
9145
9146 2008-07-16 Glenn Morris <rgm@gnu.org>
9147
9148 * emacs.c (system-type): Doc fix.
9149
9150 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
9151
9152 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
9153 If the cache doesn't work, let's fix it, rather than work around it.
9154
9155 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9156
9157 * Makefile.in: Correct additions for nsfont.o in last commit.
9158 * nsfont.m: New file (forgot last commit).
9159
9160 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9161
9162 * callproc.c (set_initial_environment): Initialize
9163 Vprocess_environment under CANNOT_DUMP (fixes crash when
9164 batch-compiling for bootstrap).
9165
9166 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9167 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9168
9169 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
9170 fix crash due to different init order.
9171
9172 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9173
9174 Changes and additions for NeXTstep windowing system (Cocoa and
9175 GNUstep) support.
9176
9177 * Makefile.in:
9178 * config.in: Support defines and build commands for NS port.
9179 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
9180 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
9181 * dispextern.h: Include nsgui.h and add needed typedefs under NS
9182 windowing.
9183 (struct face): Add synth_ital field.
9184 * dispnew.c: Include nsterm.h when compiling under NS windowing.
9185 (init_display): Initialize Vinitial_window_system to "ns" when so
9186 compiled.
9187 * emacs.c: Include GSConfig.h when compiling under GNUstep.
9188 (display_arg): Use under NS.
9189 (main): Under NS, allocate autorelease pool and handle command line
9190 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
9191 (standard_args): Add NS-specific args.
9192 (shut_down_emacs): Shut down NS terminal if compiled under NS.
9193 * font.c (DEFAULT_ENCODING): New variable.
9194 (font_find_for_lface): Use it.
9195 (syms_of_font): Load syms_of_nsfont under NS.
9196 * font.h: Declare nsfont_driver when compiled under NS.
9197 * fontset.c: When compiling under NS, include nsterm.h.
9198 (fontset_from_font): Autoconstruct fontset under NS.
9199 * frame.c (various): Under NS, include nsterm.h, add Qns window system
9200 symbol, document and use it.
9201 (do_switch_frame): When for_deletion under Cocoa, add
9202 Fraise_frame(Qnil).
9203 (x_set_frame_parameters): Ensure font attribute changes are picked up.
9204 (x_get_arg): Allow "yes" and "no" as boolean values.
9205 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
9206 Qright under Cocoa.
9207 (focus-follows-mouse): Default to 0 under NS.
9208 * frame.h (enum output_method): Add output_ns.
9209 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
9210 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
9211 (FRAME_WINDOW_P): NS-specific definition.
9212 * fringe.c (max_used_fringe_bitmap): Make public.
9213 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
9214 (getloadavg): Use NeXT code under descendant OS's.
9215 * image.c (includes and header section, x_create_bitmap_from_data)
9216 (x_create_bitmap_from_file, free_bitmap_record, image_background)
9217 (image_background_transparent, x_clear_image_1)
9218 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
9219 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
9220 (x_to_xcolors, x_from_xcolors, x_disable_image)
9221 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
9222 other GUIs, including XPM support using code originally written for
9223 Carbon GUI.
9224 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
9225 using NS API.
9226 (image_ascent): Use font metrics macros instead of direct struct field
9227 access.
9228 * keyboard.c (includes): Add nsterm.h when compiling under NS.
9229 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
9230 Also, handle NS as GTK for menu bar purposes.
9231 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
9232 toolkit where they differ.
9233 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
9234 use cachelist, still needed under NS.
9235 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
9236 (struct widget_value): Define it here for menu.c.
9237 * keymap.c (includes): Include modifier internals.
9238 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
9239 NS.
9240 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
9241 support for preferring sequences using certain modifiers, specified by
9242 the FIRSTONLY argument.
9243 * lisp.h (hash_remove): Rename to avoid name clash when compiling
9244 under NS GNUstep implementation.
9245 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
9246 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
9247 * menu.c: Include nsterm.h under NS.
9248 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
9249 (free_menubar_widget_tree_value, update_submenu_strings)
9250 (find_and_call_menu_selection): Treat NS as X and NT.
9251 (find_and_return_menu_selection): New function, used for popup menus.
9252 * nsgui.h:
9253 * nsterm.h:
9254 * nsfns.m:
9255 * nsimage.m:
9256 * nsmenu.m:
9257 * nsselect.m:
9258 * nsterm.m: New files.
9259 * process.c (wait_reading_process_output): Under NS, call ns_select()
9260 instead of plain select().
9261 * syntax.c (char_quoted): Under NS, avoid a crash when called near
9262 beginning of buffer.
9263 * sysselect.h (init_process): Rename when compiling under Cocoa to
9264 avoid name conflict.
9265 * termhooks.h (display_info): Add ns_display_info to union.
9266 * terminal.c (Fterminal_live_p): Add ns to terminal types.
9267 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
9268 COCOA environment.
9269 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
9270 unexec() signature. (Note, this will dump, but the resulting file
9271 crashes; unexosx is used instead; keeping around for reference and
9272 possible aid in getting dump working under GNUstep.)
9273 * w32gui.h (button_type, widget_value): Remove definitions (now in
9274 keyboard.h).
9275 * window.c: Include nsterm.h when compiling under NS.
9276 * xdisp.c (includes): Include nsterm.h when compiling under NS.
9277 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
9278 other GUI windowing systems.
9279 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
9280 GTK.
9281 (x_consider_frame_title): Under NS, set icon type and frame
9282 modified-state indicator; use ns_set_name_as_filename() when using
9283 formatted title.
9284 (update_window_cursor): Make public when compiling under NS.
9285 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
9286 (hourglass_atimer, Vhourglass_delay
9287 * xfaces.c (header section, init_frame_faces, clear_font_table)
9288 (defined_color, unload_color, x_face_list_fonts)
9289 (prepare_face_for_display): Add NS support parallel to other GUIs.
9290 Emulate GCs like other non-X GUIs.
9291 (split_font_name): Don't lowercase font name under NS.
9292 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
9293 under NS.
9294 * s/darwin.h: Add support for compilation under NS.
9295
9296 2008-07-15 Jason Rumney <jasonr@gnu.org>
9297
9298 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
9299 (w32_show_hourglass): Rename from show_hourglass.
9300 (w32_hide_hourglass): Rename from hide_hourglass.
9301 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
9302 (Vhourglass_delay): Declare extern.
9303 (hourglass_started): Remove.
9304
9305 * xdisp.c (Vhourglass_delay): Remove static.
9306 (hourglass_started, start_hourglass, cancel_hourglass):
9307 Don't include these versions on WINDOWSNT.
9308
9309 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9310
9311 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
9312 variables (formerly in xfns.c).
9313 (show_hourglass, hide_hourglass): New prototypes (same).
9314 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9315 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9316 in xfns.c).
9317 (syms_of_xdisp): Declare/initialize display-hourglass,
9318 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
9319 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9320 formerly in xfns.c.
9321 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9322 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9323 (start_hourglass, cancel_hourglass): Remove.
9324 (show_hourglass, hide_hourglass): Remove prototypes and static
9325 modifiers.
9326 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9327 hourglass_atimer, hourglass_shown_p declaration/initialization.
9328 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9329 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9330 (start_hourglass, cancel_hourglass): Remove.
9331 (show_hourglass, hide_hourglass): Remove prototypes and static
9332 modifiers.
9333 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9334 hourglass_atimer, hourglass_shown_p declaration/initialization.
9335 * w32fns.c (display_hourglass_p, Vhourglass_delay)
9336 (DEFAULT_HOURGLASS_DELAY): Remove.
9337 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9338 hourglass_shown_p declaration/initialization.
9339
9340 2008-07-14 Jason Rumney <jasonr@gnu.org>
9341
9342 * w32fns.c (w32_get_arg): Remove wrapper function.
9343 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9344 directly.
9345 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9346
9347 2008-07-14 Kenichi Handa <handa@m17n.org>
9348
9349 * xfont.c (xfont_open): Add workaround for X's bug.
9350
9351 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9352
9353 * fontset.c: Include <stdio.h> unconditionally.
9354
9355 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
9356
9357 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9358 for filtering.
9359
9360 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
9361
9362 * s/vms.h: Use __GNUC__ instead of _GNUC_.
9363
9364 * m/macppc.h:
9365 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
9366
9367 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9368 (SPECIAL_EMACS_INT):
9369 * m/ia64.h (SPECIAL_EMACS_INT):
9370 * m/amdx86-64.h (SPECIAL_EMACS_INT):
9371 * s/gnu.h (NLIST_STRUCT):
9372 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9373 * s/gnu-linux.h (LINUX):
9374 * s/msdos.h (HAVE_FACES):
9375 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9376
9377 * systty.h:
9378 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9379 anymore.
9380
9381 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9382
9383 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9384 always defined as int.
9385
9386 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9387 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9388 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9389 * s/freebsd.h (HAVE_WAIT_HEADER):
9390 * s/bsd-common.h (HAVE_UNION_WAIT):
9391 * s/aix4-2.h (HAVE_WAIT_HEADER):
9392 * m/mips.h (HAVE_UNION_WAIT):
9393 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9394 (COFF, static): Do not define, they are undefined later in the file.
9395
9396 * process.c (update_status): Don't use a union.
9397 (status_convert):
9398 (sigchld_handler): Use int instead of WAITTYPE.
9399
9400 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
9401
9402 * indent.c (Fvertical_motion): Restore hscroll before moving to
9403 goal column.
9404
9405 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9406
9407 * lisp.h: Remove left over code.
9408
9409 2008-07-11 Andreas Schwab <schwab@suse.de>
9410
9411 * lisp.h: Fix logic in last change.
9412
9413 * menu.h: New file.
9414 * menu.c: Include it.
9415 * xmenu.c: Likewise.
9416 * Makefile.in: Update dependencies.
9417
9418 2008-07-11 Kenichi Handa <handa@m17n.org>
9419
9420 * fontset.c (fontset_from_font): Cancel the previous change.
9421
9422 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9423
9424 * lisp.h:
9425 * w32heap.c:
9426 * emacs.c:
9427 * alloc.c: Replace all references of NO_UNION_TYPE with
9428 USE_LISP_UNION_TYPE.
9429
9430 * m/xtensa.h (NO_UNION_TYPE):
9431 * m/vax.h (NO_UNION_TYPE):
9432 * m/template.h (NO_UNION_TYPE):
9433 * m/sparc.h (NO_UNION_TYPE):
9434 * m/mips.h (NO_UNION_TYPE):
9435 * m/macppc.h (NO_UNION_TYPE):
9436 * m/m68k.h (NO_UNION_TYPE):
9437 * m/iris4d.h (NO_UNION_TYPE):
9438 * m/intel386.h (NO_UNION_TYPE):
9439 * m/ibms390x.h (NO_UNION_TYPE):
9440 * m/ibms390.h (NO_UNION_TYPE):
9441 * m/ibmrs6000.h (NO_UNION_TYPE):
9442 * m/ia64.h (NO_UNION_TYPE):
9443 * m/hp800.h (NO_UNION_TYPE):
9444 * m/arm.h (NO_UNION_TYPE):
9445 * m/amdx86-64.h (NO_UNION_TYPE):
9446 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9447 defining it the same.
9448
9449 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
9450
9451 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9452
9453 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9454
9455 * fileio.c:
9456 * sysdep.c
9457 * systty.h:
9458 * m/ibmrs6000.h:
9459 * m/iris4d.h:
9460 * s/aix4-2.h:
9461 * s/freebsd.h:
9462 * s/gnu-linux.h:
9463 * s/hpux10-20.h:
9464 * s/hpux11.h:
9465 * s/netbsd.h:
9466 * s/sol2-3.h:
9467 * s/sol2-4.h:
9468 * s/sol2.h:
9469 * s/usg5-4.h:
9470 * s/vms.h: Remove references to unused variables.
9471
9472 2008-07-10 Andreas Schwab <schwab@suse.de>
9473
9474 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9475 pattern before matching the generic family.
9476
9477 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9478
9479 * unexec.c:
9480 * s/vms.h:
9481 * s/usg5-4-2.h:
9482 * s/sol2-5.h:
9483 * s/freebsd.h:
9484 * s/darwin.h: Remove dead code.
9485
9486 * m/template.h:
9487 * m/sparc.h:
9488 * m/mips.h:
9489 * m/m68k.h:
9490 * m/iris4d.h:
9491 * m/intel386.h:
9492 * m/ibms390x.h:
9493 * m/ibms390.h:
9494 * m/ia64.h:
9495 * m/hp800.h:
9496 * m/arm.h:
9497 * m/amdx86-64.h: Remove dead code and references to unused
9498 and compiler defined symbols.
9499
9500 * unexmips.c:
9501 * unexelf.c: Remove references to desupported systems.
9502
9503 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9504
9505 * m/powermac.h: Remove boilerplate comments.
9506 (NO_REMAP): Remove unused definition.
9507
9508 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9509 define them.
9510
9511 2008-07-10 Kenichi Handa <handa@m17n.org>
9512
9513 * xfont.c (xfont_open): Log the reason of failure.
9514
9515 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9516
9517 * fontset.c (fontset_get_font_group):
9518 * font.c (font_check_otf): Specify argument types.
9519
9520 2008-07-09 Kenichi Handa <handa@m17n.org>
9521
9522 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9523 non-ASCII char is found.
9524
9525 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9526 (reorder_font_vector): Change the arg preferred_family to font.
9527 Prefer the spec matching with font.
9528 (fontset_get_font_group): New function.
9529 (fontset_find_font): Change the format of an element of a realized
9530 fontset. Use fontset_get_font_group.
9531 (fontset_font): Try the current fontset, the default fontset, the
9532 fallbacks of the current fontset, and the fallbacks of the default
9533 fontset in this order.
9534 (face_for_char): Delete the shortcut to use the current font.
9535 (fontset_from_font): Don't set fonts for Latin in the fontset.
9536
9537 * font.h (font_make_object, font_match_p): Adjust prototypes.
9538
9539 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9540
9541 * font.c (font_make_object): New arg entity and pixelsize.
9542 (font_check_otf_features, font_check_otf): New functions.
9543 (font_match_p): Check :lang, :script, and :otf properties.
9544
9545 * xfont.c (xfont_open): Adjust it for the change of
9546 font_make_object.
9547 (xfont_text_extents): Fix initial setting of metrics.
9548
9549 * ftfont.c (struct ftfont_info): New member index, delete member
9550 fc_charset_idx. Make the member order compatible with struct
9551 xftfont_info.
9552 (fc_charset_table): Change charset names to registry names.
9553 (ftfont_pattern_entity): Delete the args registry and
9554 fc_charset_idx. Change the value of :font-entity property
9555 to (FONTNAME . INDEX). Always set :registry property to
9556 `iso10646-1'.
9557 (struct ftfont_cache_data): New struct.
9558 (ftfont_lookup_cache): New arg for_face.
9559 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9560 (ftfont_driver): Set the member otf_capability.
9561 (ftfont_get_charset): Adjust it for the change of
9562 fc_charset_table.
9563 (OTF_TAG_SYM): New macro.
9564 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9565 for the change of fc_charset_table.
9566 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9567 ftfont_pattern_entity. Add FC_INDEX to objset.
9568 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9569 and ftfont_pattern_entity.
9570 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9571 font_make_object, struct ftfont_info.
9572 (ftfont_has_char): Use ftfont_get_fc_charset.
9573 (ftfont_otf_features, ftfont_otf_capability): New functions.
9574 (ftfont_shape): Use ftfont_get_otf.
9575 (ftfont_text_extents): Fix initial setting of metrics.
9576
9577 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9578 member order compatible with struct ftfont_info.
9579 (xftfont_open): Add FC_CHARSET to the pattern. Set
9580 xftfont_info->ft_size. Don't unlock the face. Check BDF
9581 properties if appropriate.
9582 (xftfont_close): Unlock the face.
9583 (xftfont_anchor_point, xftfont_shape): Deleted.
9584 (syms_of_xftfont): Don't set members anchor_point and shape of
9585 xftfont_driver.
9586
9587 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9588 font_make_object.
9589
9590 * w32font.c (w32font_open): Adjust it for the change of
9591 font_make_object.
9592 (w32font_open_internal): Don't set properties of font_object here.
9593
9594 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
9595
9596 * macfns.c (x_create_tip_frame):
9597 * w32fns.c (x_create_tip_frame):
9598 * xfns.c (x_create_tip_frame): Pass parameter argument to
9599 face-set-after-frame-default.
9600
9601 * xfaces.c (Finternal_merge_in_global_face): Save merged
9602 attributes for the default face back into the face vector.
9603
9604 2008-07-08 Andreas Schwab <schwab@suse.de>
9605
9606 * fontset.h: Declare fontset_from_font. Don't declare
9607 new_fontset_from_font and fontset_from_font_name.
9608 * xterm.c: Include "fontset.h".
9609 * Makefile.in (xterm.o): Update dependencies.
9610
9611 2008-07-08 Glenn Morris <rgm@gnu.org>
9612
9613 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9614 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9615
9616 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
9617
9618 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9619 (x_set_frame_parameters): Don't bind it.
9620
9621 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
9622
9623 * w32fns.c (map_w32_filename): Declare extern.
9624
9625 2008-07-07 Jason Rumney <jasonr@gnu.org>
9626
9627 * w32term.c (WS_EX_LAYERED): Define if not already.
9628
9629 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
9630
9631 * xfaces.c (set_font_frame_param): Don't try to set the font
9632 parameter if it is still unspecified in the lface.
9633
9634 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
9635
9636 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9637 face if it didn't already exist.
9638
9639 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9640
9641 2008-07-05 Andreas Schwab <schwab@suse.de>
9642
9643 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9644
9645 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
9646
9647 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9648 word-wrapping.
9649 (IT_DISPLAYING_WHITESPACE): New macro.
9650 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9651 when word-wrapping. Simplify word-wrapping logic. Use correct
9652 pixel positions when saving copies of the iterator.
9653 (display_line): Use proper wrap point if the last character on a
9654 line was preceded by whitespace.
9655
9656 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9657
9658 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9659
9660 2008-07-04 Kenichi Handa <handa@m17n.org>
9661
9662 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9663
9664 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9665
9666 2008-07-02 Jason Rumney <jasonr@gnu.org>
9667
9668 * xfns.c (syms_of_xfns): Only define x-select-font when both
9669 HAVE_FREETYPE and USE_GTK.
9670
9671 * xdisp.c (next_element_from_display_vector): Move assignment out
9672 of if statement.
9673
9674 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9675
9676 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9677
9678 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9679 (syms_of_fileio): Initialize and export them.
9680 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9681
9682 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9683 (Fsystem_move_file_to_trash): New function.
9684 (syms_of_w32fns): Export it to lisp.
9685
9686 2008-07-01 Jason Rumney <jasonr@gnu.org>
9687
9688 * w32font.c (w32font_text_extents): Don't count overhang as part
9689 of width.
9690
9691 2008-06-30 Miles Bader <miles@gnu.org>
9692
9693 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9694 Add `avoid_cursor_p' field.
9695
9696 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9697 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9698 (append_glyph, append_composite_glyph, produce_image_glyph)
9699 (append_stretch_glyph): Initialize avoid_cursor_p.
9700 (get_it_property): Rename from `get_line_height_property'.
9701 (x_produce_glyphs): Use get_it_property.
9702 (handle_line_prefix, push_display_prop): New functions.
9703 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9704 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9705 New variables.
9706 (syms_of_xdisp): Initialize them.
9707
9708 2008-06-30 Kenichi Handa <handa@m17n.org>
9709
9710 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9711 XftDefaultSubstitute (they are called in XftFontMatch).
9712 (xftfont_open): Fix args to ftfont_font_format.
9713
9714 * ftfont.c (fc_charset_table): New member lang.
9715 (ftfont_resolve_generic_family): New arg pattern.
9716 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
9717 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9718 (ftfont_open): Fix args to ftfont_font_format.
9719 (ftfont_font_format): New arg filename.
9720
9721 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
9722
9723 * xfaces.c (Finternal_merge_in_global_face): If default face was
9724 modified, realize it again. Update the font face attribute.
9725
9726 2008-06-29 Jason Rumney <jasonr@gnu.org>
9727
9728 * w32term.c (x_set_frame_alpha): Fix logic.
9729
9730 2008-06-29 Kenichi Handa <handa@m17n.org>
9731
9732 * fontset.c (Finternal_char_font): Return font-object instead of
9733 font-name.
9734
9735 * composite.c (get_composition_id): Fix the width calculation for TAB.
9736
9737 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9738
9739 * indent.c (Fvertical_motion): Properly handle float column arg.
9740
9741 2008-06-28 Jason Rumney <jasonr@gnu.org>
9742
9743 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9744 (pfnSetLayeredWindowAttributes): New function pointer.
9745 (w32_initialize): Initialize it when supported.
9746 (x_set_frame_alpha): New function.
9747
9748 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9749 (w32_frame_parm_handlers): Set alpha handler.
9750
9751 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9752
9753 2008-06-27 Jason Rumney <jasonr@gnu.org>
9754
9755 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9756 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9757 (w32_to_x_charset, x_to_w32_charset)
9758 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9759 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9760 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9761 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9762 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9763 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9764 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9765 (Qw32_charset_unicode): Remove.
9766 (syms_of_w32fns): Update for above changes.
9767
9768 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9769 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9770 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9771 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9772 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9773 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9774 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9775 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9776 (syms_of_w32font): Update for above changes.
9777
9778 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9779
9780 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9781 removed #if.
9782 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9783
9784 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
9785 Eli Zaretskii <eliz@gnu.org>
9786
9787 * makefile.w32-in (LOCAL_FLAGS):
9788 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9789
9790 * sysdep.c (_spawnlp, _getpid):
9791 Declare with explicit _cdecl instead of _CRTAPI1.
9792
9793 * editfns.c (Fget_internal_run_time):
9794 Check for WINDOWSNT with #ifdef, not #if.
9795
9796 2008-06-26 Jason Rumney <jasonr@gnu.org>
9797
9798 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9799
9800 * w32term.c (x_draw_glyph_string_foreground)
9801 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9802 Use FONT_HANDLE macro.
9803 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9804
9805 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9806 (uniscribe_encode_char): Use FONT_HANDLE macro.
9807
9808 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9809 (w32font_text_extents): Use precast w32_font.
9810 (w32font_close): Free cached metrics.
9811 (w32font_open_internal): Allocate space for name on stack.
9812
9813 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
9814
9815 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9816
9817 2008-06-26 Jason Rumney <jasonr@gnu.org>
9818
9819 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9820 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9821
9822 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
9823
9824 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9825
9826 2008-06-26 Jason Rumney <jasonr@gnu.org>
9827
9828 * w32bdf.c, w32bdf.h: Remove obsolete files.
9829
9830 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9831
9832 * w32gui.h: Don't include w32bdf.h.
9833 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9834 Remove obsolete font support.
9835
9836 * w32font.h (struct w32font_info): Remove compat_w32_font.
9837 Add hfont member.
9838 (FONT_COMPAT): Remove obsolete macro.
9839
9840 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9841 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9842 (w32font_open_internal): Remove compat code. Set new hfont member.
9843 (Fx_select_font): Use new hfont member.
9844
9845 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9846 (uniscribe_encode_char): Use new hfont member.
9847
9848 * w32term.c (x_draw_glyph_string_foreground)
9849 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9850 (x_draw_glyph_string): Use metrics in w32font_info.
9851
9852 2008-06-26 Kenichi Handa <handa@m17n.org>
9853
9854 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9855
9856 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9857
9858 * unexnext.c:
9859 * m/ews4800.h:
9860 * m/hp9000s300.h:
9861 * m/ibm370aix.h:
9862 * m/mips-siemens.h:
9863 * m/ncr386.h:
9864 * m/next.h:
9865 * m/pmax.h:
9866 * m/powerpcle.h:
9867 * m/tandem-s2.h:
9868 * s/386bsd.h:
9869 * s/bsd386.h:
9870 * s/bsd4-1.h:
9871 * s/bsd4-2.h:
9872 * s/bsdos2-1.h:
9873 * s/bsdos2.h:
9874 * s/bsdos3.h:
9875 * s/bsdos4.h:
9876 * s/nextstep.h:
9877 * s/ultrix4-3.h:
9878 * s/usg5-0.h:
9879 * s/usg5-2-2.h:
9880 * s/usg5-2.h:
9881 * s/usg5-4-3.h:
9882 * s/ux4800.h:
9883 * s/uxpds.h:
9884 * s/uxpv.h: Remove support for obsolete systems.
9885 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
9886 Remove, insert contents in s/hpux10-20.h.
9887 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9888 Remove, insert contents in s/aix4-2.h.
9889 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9890 * s/bsd4-3.h: Rename to ...
9891 * s/bsd-common.h: ... this.
9892 * data.c:
9893 * doc.c:
9894 * ecrt0.c:
9895 * emacs.c:
9896 * fileio.c:
9897 * floatfns.c:
9898 * keyboard.c:
9899 * mem-limits.h:
9900 * print.c:
9901 * process.c:
9902 * sysdep.c:
9903 * syssignal.h:
9904 * systty.h:
9905 * syswait.h:
9906 * term.c:
9907 * unexec.c:
9908 * unexelf.c:
9909 * unexhp9k800.c:
9910 * m/hp800.h:
9911 * m/ibmrs6000.h:
9912 * m/mips.h:
9913 * m/vax.h:
9914 * s/darwin.h:
9915 * s/freebsd.h:
9916 * s/gnu.h:
9917 * s/ms-w32.h:
9918 * s/msdos.h:
9919 * s/netbsd.h:
9920 * s/template.h: Remove references to obsolete variables.
9921
9922 * Makefile.in: Add dependencies for all unexec files.
9923 (admindir): Remove unused variable.
9924 (UNEXEC_SRC): Remove references.
9925
9926 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
9927
9928 * xfns.c (x_default_font_parameter): If Xft is available, first
9929 try Monospace-12 for the default font.
9930
9931 2008-06-25 Jason Rumney <jasonr@gnu.org>
9932
9933 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9934
9935 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9936
9937 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9938
9939 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9940
9941 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
9942
9943 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9944 <scroll-conservatively>: Fix typo in docstring.
9945
9946 * xselect.c (Fx_send_client_event): Doc fix.
9947
9948 2008-06-25 Kenichi Handa <handa@m17n.org>
9949
9950 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9951
9952 * font.c (font_parse_fcname): Remove unused variables.
9953 (font_sort_entites): Delete the arg SPEC. Caller changed.
9954 Fix for the case of ! best_only.
9955 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9956
9957 * lisp.h (Fstring_to_unibyte): EXFUN it.
9958
9959 * character.h (str_to_unibyte): Extern it.
9960
9961 * character.c (str_to_unibyte): New function.
9962
9963 * fns.c (Fstring_to_unibyte): New function.
9964 (syms_of_fns): Defsubr it.
9965
9966 2008-06-24 Kenichi Handa <handa@m17n.org>
9967
9968 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9969 DPI too.
9970 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9971
9972 2008-06-24 Andreas Schwab <schwab@suse.de>
9973
9974 * Makefile.in (${lispsource}loaddefs.el): Rename from
9975 ../lisp/loaddefs.el.
9976 (bootstrap-clean): Do what distclean does but don't remove
9977 Makefile.
9978 (distclean): Depend on bootstrap-clean and remove Makefile.
9979
9980 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
9981
9982 * buffer.h (struct buffer): New member word_wrap.
9983
9984 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9985 word-wrap.
9986 (init_buffer_once): Initialize them.
9987
9988 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9989 line_wrap enum possessing three possible values.
9990
9991 * termopts.h: Replace truncate_partial_width_windows with
9992 Vtruncate_partial_width_windows.
9993
9994 * dispnew.c (direct_output_for_insert): Avoid direct output when
9995 inserting a space with word wrap on.
9996
9997 * indent.c (compute_motion): Obey integer values of
9998 truncate-partial-width-windows.
9999
10000 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
10001 replacing truncate_partial_width_windows.
10002 (init_iterator): If Vtruncate_partial_width_windows is an integer,
10003 truncate only if the window width is below that integer.
10004 (start_display, resize_mini_window, produce_stretch_glyph)
10005 (display_string, move_it_in_display_line_to): Use line_wrap.
10006 (back_to_previous_visible_line_start, reseat_1): Reset
10007 string_from_display_prop_p.
10008 (display_line): Extend default face to end of line when wrapping.
10009
10010 2008-06-24 Kim F. Storm <storm@cua.dk>
10011
10012 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
10013 to wrap continued lines at word boundaries.
10014
10015 2008-06-24 Jason Rumney <jasonr@gnu.org>
10016
10017 * font.c (Ffont_face_attributes): Multiply pixel size before point
10018 conversion to avoid multiplying rounding error.
10019
10020 2008-06-23 Jason Rumney <jasonr@gnu.org>
10021
10022 * w32term.c (x_draw_glyph_string_background)
10023 (x_draw_glyph_string): Remove old bdf font code.
10024
10025 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
10026
10027 2008-06-22 Kenichi Handa <handa@m17n.org>
10028
10029 * font.c (font_find_for_lface): Try the adstyle specified in
10030 the property of LFACE_FONT of LFACE (if any).
10031
10032 2008-06-21 Seiji Zenitani <zenitani@mac.com>
10033 Ryo Yoshitake <ryo@shiftmode.net>
10034
10035 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
10036
10037 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
10038
10039 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
10040 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
10041 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
10042 (witness-emacs): Remove.
10043 (lisp, shortlisp): Move loaddefs.el earlier.
10044 (mostlyclean): Forget about witness-emacs.
10045
10046 2008-06-22 Glenn Morris <rgm@gnu.org>
10047
10048 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
10049 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
10050
10051 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10052
10053 * Makefile.in (PRECOMP): Remove.
10054 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
10055 (witness-emacs): Run `compile-first'.
10056 (.el.elc): Use the new compile-onefile target.
10057
10058 2008-06-21 Kenichi Handa <handa@m17n.org>
10059
10060 * xftfont.c (xftfont_open): Handle QCembolden only when
10061 FC_EMBOLDEN is defined.
10062
10063 2008-06-21 Andreas Schwab <schwab@suse.de>
10064
10065 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
10066 (.el.elc): Likewise.
10067
10068 2008-06-21 Miles Bader <miles@gnu.org>
10069
10070 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
10071 build dir, not the lisp source dir.
10072
10073 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10074
10075 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
10076 (bootstrapclean): Remove.
10077 (.el.elc): New rule.
10078 (PRECOMP): New var.
10079 (../lisp/subdirs.el): Remove.
10080 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
10081 (witness-emacs): New target.
10082 (mostlyclean): Remove witness-emacs as well.
10083 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
10084 Add witness-emacs dependency.
10085
10086 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
10087
10088 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
10089 defined by the font.
10090
10091 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10092
10093 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
10094 (bootstrap-clean): New target that keeps TAGS around.
10095 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
10096 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
10097
10098 2008-06-20 Jason Rumney <jasonr@gnu.org>
10099
10100 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
10101 Remove obsolete font code.
10102
10103 * w32font.c (font_matches_spec): Use csb bitfield from font signature
10104 to determine language support.
10105
10106 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10107
10108 * sysdep.c (cfsetspeed): New fun extracted from the code.
10109 (cfmakeraw): Move before first use.
10110
10111 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
10112
10113 * sysdep.c (cfmakeraw): Provide fallback implementation.
10114 (serial_configure): Provide fallback implementation of cfsetspeed.
10115
10116 2008-06-20 Kenichi Handa <handa@m17n.org>
10117
10118 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
10119 the pattern.
10120
10121 * fontset.c (fontset_from_font): Copy font_spec before changing
10122 the elements.
10123
10124 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
10125
10126 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10127
10128 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
10129 for explicit `font' parameters.
10130
10131 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
10132
10133 2008-06-19 Kenichi Handa <handa@m17n.org>
10134
10135 * frame.c: Include <ctype.h>.
10136 (x_set_font_backend): Allow spacing characters in the X resource
10137 for FontBackend.
10138
10139 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
10140
10141 * w32fns.c, xfns.c (Qfont_param): New var.
10142 (syms_of_w32fns): Initialize it.
10143 (x_default_font_parameter): Record explicit `font' into
10144 `font-parameter'.
10145
10146 2008-06-18 Kenichi Handa <handa@m17n.org>
10147
10148 * font.c (font_parse_xlfd): Fix previous change.
10149 (font_parse_fcname): Don't use :fc-unknown-spec.
10150 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
10151 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
10152 (font_add_log): Prepend the driver name to the resulting fonts.
10153
10154 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
10155 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
10156 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
10157
10158 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
10159 (QCembolden): New variables.
10160 (syms_of_xftfont): DEFSYM them.
10161 (xftfont_open): Call XftFontMatch. Don't trust the result of
10162 XftTextExtents8 if the pixel_size is less than 5.
10163
10164 2008-06-18 Andreas Schwab <schwab@suse.de>
10165
10166 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
10167 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
10168
10169 2008-06-18 Jason Rumney <jasonr@gnu.org>
10170
10171 * w32font.c (w32font_list, w32font_match): Add logging.
10172
10173 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
10174
10175 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
10176
10177 * font.c (font_parse_fcname): Store divider characters for
10178 unknown-spec list. For known key symbols, intern using correct
10179 symbol name.
10180
10181 2008-06-17 Kenichi Handa <handa@m17n.org>
10182
10183 * xfaces.c (realize_default_face): If the frame is not on window
10184 system, set the fontset of face to nil.
10185
10186 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10187
10188 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
10189
10190 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
10191
10192 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
10193 (build_font_name_from_vector): Delete externs.
10194
10195 * xfaces.c (struct font_name): Don't declare.
10196
10197 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
10198
10199 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
10200
10201 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
10202
10203 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
10204
10205 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
10206
10207 * font.c (Ffont_spec): Fix usage in docstring.
10208 (Ffont_face_attributes): Doc fix.
10209
10210 2008-06-16 Andreas Schwab <schwab@suse.de>
10211
10212 * font.c (Ffont_face_attributes): Fix definition.
10213
10214 2008-06-16 Jason Rumney <jasonr@gnu.org>
10215
10216 * font.h (font_style_symbolic_from_value): Remove.
10217
10218 * font.c (font_style_symbolic_from_value): Remove.
10219 (font_style_symbolic): Revert to pre 2008-06-13 version.
10220
10221 * w32font.c (w32_to_fc_weight): New function.
10222 (w32font_full_name, logfont_to_fcname): Use it.
10223
10224 2008-06-16 Kenichi Handa <handa@m17n.org>
10225
10226 * font.c (font_check_object): Delete it.
10227 (font_clear_cache): Check if a font-object is alive.
10228 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
10229 font-object to nil.
10230 (font_close_object): Don't check FONT_CLOSE_OBJECT.
10231 (font_at): Don't call font_check_object.
10232 (Ffont_get): Return a symbol for :weight, :slant, and :width.
10233
10234 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
10235
10236 * puresize.h (BASE_PURESIZE): Increase to 1230000.
10237
10238 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
10239
10240 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
10241
10242 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
10243
10244 * font.c (font_parse_fcname): Only one decimal point.
10245 (font_unparse_fcname): Handle data in family and foundry indices
10246 as symbols, not strings.
10247 (font_unparse_gtkname, Ffont_face_attributes): New functions.
10248
10249 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
10250
10251 * font.h (font_unparse_gtkname): Add prototype.
10252
10253 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10254
10255 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
10256
10257 2008-06-15 Andreas Schwab <schwab@suse.de>
10258
10259 * font.c (font_update_drivers): Fix crash when no drivers match.
10260
10261 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
10262
10263 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
10264 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
10265
10266 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
10267
10268 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
10269
10270 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
10271
10272 * process.c (Fserial_process_configure, Fprocess_send_eof):
10273 Use EQ to compare Lisp_Objects.
10274
10275 2008-06-13 Jason Rumney <jasonr@gnu.org>
10276
10277 * w32fns.c (Fw32_select_font): Remove old font API function.
10278
10279 * w32font.c (logfont_to_fcname): New function.
10280 (Fx_select_font): New font dialog function compatible with
10281 GTK/fontconfig version.
10282
10283 * font.c (font_style_symbolic_from_value): New function.
10284 (font_style_symbolic): Use it.
10285
10286 * font.h (font_style_symbolic_from_value): Declare new function.
10287
10288 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
10289
10290 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
10291 <font-width-table>: Fix typos in docstrings.
10292
10293 2008-06-13 Daniel Engeler <engeler@gmail.com>
10294
10295 These changes add serial port access.
10296 * process.c: Add HAVE_SERIAL.
10297 (Fdelete_process, Fprocess_status, Fset_process_buffer)
10298 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
10299 (list_processes_1, select_wrapper, Fstop_process)
10300 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
10301 (status_notify): Modify to handle serial processes.
10302 [HAVE_SERIAL] (Fserial_process_configure)
10303 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
10304 New functions.
10305 * process.h (struct Lisp_Process): Add `type'.
10306 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
10307 New functions.
10308 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
10309 serial ports.
10310 (serial_open, serial_configure): New functions.
10311 * w32.h: Add FILE_SERIAL.
10312 (struct _child_process): Add ovl_read, ovl_write.
10313
10314 2008-06-13 Kenichi Handa <handa@m17n.org>
10315
10316 * dispextern.h (enum lface_attribute_index): New member
10317 LFACE_FOUNDRY_INDEX.
10318
10319 * font.c (font_score): Delete arg alternate_families. Check only
10320 weight, slant, width, and size. Ignore the difference of alias
10321 style symbols.
10322 (font_sort_entites): Adjust for the above change. Reflect the
10323 order of font-driver to scores.
10324 (font_list_entities): Don't check alternate_familes here.
10325 (font_clear_prop): Handle foundry.
10326 (font_update_lface): Don't parse "foundry-family" form here.
10327 Handle FONT_FOUNDRY_INDEX.
10328 (font_find_for_lface): Likewise. Handle alternate families here.
10329 If registry is nil, try iso8859-1 and ascii-0.
10330 (font_open_for_lface): Pay attention to size in ENTITY.
10331 (font_open_by_name): Simplify by calling font_load_for_lface.
10332 (free_font_driver_list): Delete it.
10333 (font_update_drivers): Preserve the order of backends.
10334 (syms_of_font): Setting of sort_shift_bits adjusted for the change
10335 of font_score and font_sort_entites.
10336 (font_update_sort_order): Likewise.
10337
10338 * xfaces.c (LFACE_FOUNDRY): New macro.
10339 (check_lface_attrs): Check foundry.
10340 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10341 (merge_face_vectors): Check foundry.
10342 (merge_face_ref): Likewise.
10343 (Finternal_set_lisp_face_attribute): Likewise.
10344 (x_update_menu_appearance): Likewise.
10345 (Finternal_get_lisp_face_attribute): Likewise.
10346 (lface_hash): Likewise.
10347 (lface_same_font_attributes_p): Likewise.
10348 (x_supports_face_attributes_p): Likewise.
10349 (tty_supports_face_attributes_p): Likewise.
10350 (Finternal_set_alternative_font_family_alist): Intern strings.
10351 (Finternal_set_alternative_font_registry_alist): Downcase strings.
10352 (realize_default_face): Set LFACE_FOUNDRY (lface).
10353
10354 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10355 font-driver at first.
10356
10357 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10358
10359 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10360
10361 * lread.c (Fload): Use xfree, not free on saved_doc_string.
10362
10363 2008-06-12 Jim Meyering <meyering@redhat.com>
10364
10365 Make unexec_free handle NULL the same way free does.
10366 * unexmacosx.c (unexec_free): Ignore a NULL argument.
10367
10368 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10369
10370 * character.h (CHAR_TO_BYTE_SAFE): New macro.
10371 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10372 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10373 (WEAK_ALIAS): Simplify.
10374 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10375 when searching a unibyte buffer.
10376
10377 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
10378
10379 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10380
10381 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
10382
10383 * w32font.c: Include ctype.h.
10384
10385 2008-06-11 Jason Rumney <jasonr@gnu.org>
10386
10387 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10388 misreported as space.
10389 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10390 as aliases for registry iso10646-1.
10391
10392 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10393
10394 * buffer.c (clone_per_buffer_values): Skip `name'.
10395
10396 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
10397
10398 * font.c (font_parse_fcname): Fix last change; accept decimal
10399 points in font size.
10400
10401 2008-06-10 Jason Rumney <jasonr@gnu.org>
10402
10403 * w32uniscribe.c (add_opentype_font_name_to_list):
10404 Skip non unicode fonts.
10405
10406 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
10407
10408 * xfns.c (Fx_font_dialog): New function.
10409
10410 * gtkutil.c (xg_dialog_response_cb): Rename from
10411 xg_file_response_callback.
10412 (pop_down_dialog): Rename from pop_down_file_dialog.
10413 (xg_get_file_name): Callers changed.
10414 (xg_get_font_name): New function.
10415
10416 * gtkutil.h (xg_get_font_name): Insert prototype.
10417
10418 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10419
10420 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10421 x_underline_minimum_display_offset.
10422 (syms_of_xdisp): Declare it here rather than in xterm.c.
10423 * dispextern.h (underline_minimum_offset): Declare it.
10424 * w32term.c (x_draw_glyph_string): Use it.
10425 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10426 (syms_of_xterm): Don't declare it any more.
10427 (x_draw_glyph_string): Adjust to the new name.
10428
10429 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
10430
10431 * xterm.c (x_underline_minimum_display_offset): New var.
10432 (x_draw_glyph_string): Use it.
10433 (syms_of_xterm): Declare it.
10434
10435 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
10436
10437 * font.c (font_parse_fcname): Accept GTK-style font names too.
10438
10439 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10440
10441 * dired.c (file_name_completion): Don't return t if the match is exact
10442 but with different capitalization.
10443 * minibuf.c (Ftry_completion): Simplify.
10444
10445 * window.c (Vwindow_point_insertion_type): New var.
10446 (set_window_buffer): Use it.
10447 (syms_of_window): Init and export it to Lisp.
10448
10449 2008-06-10 Kenichi Handa <handa@m17n.org>
10450
10451 * font.h (font_intern_prop): Prototype adjusted.
10452
10453 * font.c (font_intern_prop): New arg force_symbol.
10454 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10455 Adjust for the change of font_intern_prop.
10456
10457 * ftfont.c (ftfont_pattern_entity):
10458 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10459 (w32_registry):
10460 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10461 the change of font_intern_prop.
10462
10463 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
10464
10465 * w32menu.c (digest_single_submenu): Declare extern.
10466
10467 2008-06-09 Jason Rumney <jasonr@gnu.org>
10468
10469 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10470
10471 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10472 (parse_single_submenu): Remove.
10473 (digest_single_submenu): Remove.
10474 (syms_of_w32menu): Don't initialise variables that have moved
10475 to menu.c.
10476 (set_frame_menubar): Sync with version in xmenu.c.
10477 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10478
10479 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10480 Make static again.
10481
10482 2008-06-09 Jason Rumney <jasonr@gnu.org>
10483
10484 Changes to w32 files related to the move of common menu code
10485 to menu.c on 2008-06-08 by Chong Yidong.
10486
10487 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10488 defs to w32gui.h.
10489 (single_keymap_panes, push_menu_item, push_menu_pane):
10490 Make globally visible.
10491
10492 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10493 (local_free, malloc_widget_value, free_widget_value)
10494 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10495 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10496 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10497 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10498 (menu_items, menu_items_allocated, menu_items_used)
10499 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10500 (init_menu_items, finish_menu_items, discard_menu_items)
10501 (grow_menu_items, push_submenu_start, push_submenu_end)
10502 (push_left_right_boundary, push_menu_pane, push_menu_item)
10503 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10504 (free_menubar_widget_tree_value, parse_single_submenu)
10505 (update_submenu_strings): Remove functions.
10506 (xmalloc_widget_value): Remove and declare extern.
10507
10508 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10509 (OBJ1): Build it.
10510
10511 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10512 (local_heap, local_alloc, local_free, malloc_widget_value)
10513 (free_widget_value): Define here.
10514
10515 2008-06-09 Kenichi Handa <handa@m17n.org>
10516
10517 * font.h (Qascii_0): Extern it.
10518
10519 * font.c (Qascii_0): New variable.
10520 (syms_of_font): DEFSYM it.
10521 (font_open_by_name): If the registry "iso8859-1" fails, try also
10522 "ascii-0".
10523
10524 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10525
10526 2008-06-08 Kenichi Handa <handa@m17n.org>
10527
10528 * .gdbinit (xfont): New command.
10529
10530 2008-06-08 Andreas Schwab <schwab@suse.de>
10531
10532 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10533 * Makefile.in (menu.o): Update dependencies.
10534
10535 * Makefile.in (obj): Always add menu.o.
10536 * emacs.c (main): Always call syms_of_menu.
10537 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10538
10539 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
10540
10541 * Makefile.in: Compile menu.c.
10542
10543 * lisp.h: Declare syms_of_menu.
10544
10545 * emacs.c (main): Call syms_of_menu.
10546
10547 * keyboard.h: Relocate platform-independent menu definitions from
10548 xmenu.c.
10549
10550 * menu.c: New file. Relocate platform-independent menu
10551 definitions from xmenu.c. Suggested by Adrian Robert.
10552
10553 * xmenu.c: Remove platform-independent menu definitions.
10554 (menu_items menu_items_inuse, menu_items_allocated)
10555 (menu_items_used, menu_items_n_panes)
10556 (menu_items_submenu_depth): Move to keyboard.h.
10557 (init_menu_items, finish_menu_items, unuse_menu_items)
10558 (discard_menu_items, restore_menu_items, save_menu_items)
10559 (grow_menu_items, push_submenu_start, push_submenu_end)
10560 (push_left_right_boundary, push_menu_pane, push_menu_item)
10561 (keymap_panes, single_keymap_panes, single_menu_item)
10562 (list_of_panes, list_of_items, find_and_call_menu_selection)
10563 (xmalloc_widget_value, free_menubar_widget_value_tree)
10564 (parse_single_submenu, digest_single_submenu)
10565 (update_submenu_strings): Move to menu.c.
10566
10567 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10568
10569 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10570
10571 2008-06-06 Miles Bader <miles@gnu.org>
10572
10573 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10574 face, not frame default.
10575
10576 2008-06-05 Martin Rudalics <rudalics@gmx.at>
10577
10578 * window.c (pop_up_windows, pop_up_frames)
10579 (display_buffer_reuse_frames, Vpop_up_frame_function)
10580 (Vdisplay_buffer_function, Veven_window_heights)
10581 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10582 (Vspecial_display_function, Vsame_window_buffer_names)
10583 (Vsame_window_regexps, split_height_threshold)
10584 (Vsplit_window_preferred_function): Move those vars to window.el.
10585 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10586 (Fdisplay_buffer): Move those functions to window.el.
10587 (syms_of_window): Remove corresponding declarations.
10588 (display_buffer): New function.
10589 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10590 * dispnew.c (Flast_nonminibuf_frame): New function.
10591 * buffer.c (Fpop_to_buffer): Move to window.el.
10592
10593 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10594
10595 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10596
10597 2008-06-05 Kenichi Handa <handa@m17n.org>
10598
10599 * coding.c (detect_coding): Fix previous change.
10600 (detect_coding_system): Likewise.
10601
10602 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10603
10604 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10605
10606 * keymap.c (Vminibuffer_local_filename_must_match_map):
10607 Rename from Vminibuffer_local_must_match_filename_map.
10608 (syms_of_keymap):
10609 * minibuf.c (Fcompleting_read): Adjust accordingly.
10610 * commands.h: Rename declaration as well.
10611
10612 2008-06-05 Kenichi Handa <handa@m17n.org>
10613
10614 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10615 family name.
10616 (Ffont_put): Likewise.
10617
10618 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10619 current font-spec.
10620
10621 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10622 is unspecified.
10623
10624 * xfaces.c (realize_x_face): If the font-related face attributes
10625 are the same as those of default face, realize a new fontset from
10626 default->fontset.
10627 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10628
10629 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10630
10631 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10632 (move_it_in_display_line): New wrapper.
10633
10634 * window.c (window_scroll_pixel_based_preserve_x)
10635 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10636 (window_scroll_pixel_based, window_scroll_line_based):
10637 Use them to preserve column positions.
10638 (syms_of_window): Initialize them.
10639
10640 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10641 (HPOS . VPOS) pair.
10642
10643 * dispextern.h (move_it_in_display_line): Declare.
10644
10645 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
10646
10647 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10648 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10649 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10650
10651 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
10652
10653 * window.c (Fset_window_parameter): Doc fix.
10654 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10655
10656 2008-06-04 Joakim Verona <joakim@verona.se>
10657
10658 * window.h (struct window): Add new member window_parameters.
10659
10660 * window.c (Fwindow_parameters, Fwindow_parameter)
10661 (Fset_window_parameter): New defuns.
10662 (syms_of_window): Defsubr the new defuns.
10663 (make_window): Initialize window_parameters to nil.
10664
10665 2008-06-04 John Paul Wallington <jpw@pobox.com>
10666
10667 * eval.c (Fdefmacro): Doc fix.
10668
10669 2008-06-04 Kenichi Handa <handa@m17n.org>
10670
10671 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10672 Be sure to call setup_coding_system when we find a proper coding system.
10673 (detect_coding_system): Fix handling of coding->head_ascii.
10674
10675 2008-06-03 Andreas Schwab <schwab@suse.de>
10676
10677 * font.c (font_prop_validate_spacing): Fix last change.
10678
10679 2008-06-03 Kenichi Handa <handa@m17n.org>
10680
10681 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10682 (font_parse_fcname): Fix handling of unknown key.
10683
10684 * xfont.c (xfont_list): Try an alias.
10685
10686 * charset.c (char_charset): Return NULL if the arg charset_list is
10687 specified and C doesn't belong to any of them.
10688
10689 2008-06-02 Chip Coldwell <coldwell@redhat.com>
10690
10691 * font.c (font_pixel_size): Don't take cdr of an integer.
10692
10693 2008-06-02 Jim Meyering <meyering@redhat.com>
10694
10695 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10696 * alloc.c (xfree): Return right away for a NULL arg.
10697 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10698 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10699 * mac.c (create_apple_event_from_event_ref): Likewise.
10700 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10701 Likewise.
10702 * doprnt.c (doprnt1): Likewise.
10703 * frame.c (frame): Likewise.
10704 * keyboard.c (wipe_kboard): Likewise.
10705 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10706 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10707 * term.c (tty_default_color_capabilities, maybe_fatal)
10708 (delete_tty): Likewise.
10709 * w16select.c (string): Likewise.
10710 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10711 * w32bdf.c (w32_free_bdf_font): Likewise.
10712 * w32fns.c (w32_unload_font): Likewise.
10713 * w32font.c (w32font_close): Likewise.
10714 * window.c (size_window): Likewise.
10715 * xselect.c (receive_incremental_selection): Likewise.
10716 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10717 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10718 * w32.c (stat): Likewise.
10719
10720 Remove useless if-before-free tests.
10721 * editfns.c (Fset_time_zone_rule): Likewise.
10722 * lread.c (nosuffix): Likewise.
10723 * ralloc.c (get_bloc): Likewise.
10724 * regex.c (reg_free): Likewise.
10725 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10726 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10727 * xsmfns.c (smc_save_yourself_CB): Likewise.
10728
10729 2008-06-02 Kenichi Handa <handa@m17n.org>
10730
10731 * font.c (font_find_for_lface): Handle float font size.
10732 (font_open_for_lface): Likewise.
10733
10734 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10735 comparing the properties.
10736
10737 2008-06-01 Jason Rumney <jasonr@gnu.org>
10738
10739 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10740 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10741 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10742 Don't add empty script list.
10743 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10744
10745 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10746
10747 * Makefile.in (dot, dotdot): Remove, update users.
10748 ".." has been used elsewhere in the file for a long time.
10749 (LIBXT_STATIC): Remove conditional based on unused variable.
10750
10751 2008-06-01 Miles Bader <miles@gnu.org>
10752
10753 * xfaces.c (Vface_remapping_alist): New variable.
10754 (syms_of_xfaces): Initialize it.
10755 (enum named_merge_point_kind): New type.
10756 (struct named_merge_point): Add `named_merge_point_kind' field.
10757 (push_named_merge_point): Make cycle detection respect different
10758 named-merge-point kinds.
10759 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10760 Remove face-name alias resolution.
10761 (lface_from_face_name): New definition using
10762 `lface_from_face_name_no_resolve'.
10763 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10764 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10765 (get_lface_attributes): New definition that layers face-remapping on
10766 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10767 (lookup_basic_face): New function.
10768 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10769 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10770 `get_lface_attributes'.
10771 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10772 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10773 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10774
10775 * xdisp.c (init_iterator): Pass base_face_id through
10776 `lookup_basic_face' when we actually use it as a face-id.
10777 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10778 DEFAULT_FACE_ID.
10779
10780 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10781 lookup the initial face-id.
10782
10783 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10784
10785 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
10786
10787 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10788 (Fremove_text_properties): Fix typos in docstrings.
10789
10790 2008-05-31 Kenichi Handa <handa@m17n.org>
10791
10792 * font.c (font_list_entities): Fix the car part of data to be
10793 stored in the cache.
10794
10795 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10796
10797 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10798
10799 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10800 Add a `test' argument so another predicate than `equal' can be used.
10801 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10802 (map_char_table): Remove unused vars `c' and `i'.
10803 * lisp.h (Foptimize_char_table): Adjust declaration.
10804 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10805
10806 2008-05-30 Kenichi Handa <handa@m17n.org>
10807
10808 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10809 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10810 defined.
10811
10812 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10813
10814 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10815 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10816 frame-local settings for the same variable.
10817
10818 2008-05-30 Kenichi Handa <handa@m17n.org>
10819
10820 * fontset.c (Ffont_info): Move to font.c.
10821 (syms_of_fontset): Delete defsubr of Sfont_info.
10822
10823 * font.c (font_style_to_value, font_score): Delete casting of the
10824 args to xstcasecmp.
10825 (register_font_driver): Increment num_font_drivers only when
10826 registering the driver globally.
10827 (Ffont_info): Move from fontset.c. Handle a font object too.
10828 (syms_of_font): Defsubr Sfont_info.
10829
10830 2008-05-29 Kenichi Handa <handa@m17n.org>
10831
10832 * coding.h (enum define_coding_utf8_arg_index): New enum.
10833 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10834 coding_attr_utf_bom.
10835 (enum utf_bom_type): Rename from utf_16_bom_type.
10836 (struct utf_16_spec): Adjust for the above change.
10837 (struct coding_system): Add utf_8_bom in `spec' union.
10838
10839 * coding.c (CODING_UTF_8_BOM): New macro.
10840 (enum coding_category): Delete coding_category_utf_8, add
10841 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10842 coding_category_utf_8_sig.
10843 (CATEGORY_MASK_UTF_8): Delete it.
10844 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10845 (CATEGORY_MASK_UTF_8_SIG): New macros.
10846 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10847 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10848 CATEGORY_MASK_UTF_8_SIG.
10849 (CATEGORY_MASK_UTF_8): New macro.
10850 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10851 (detect_coding_utf_8): Check BOM.
10852 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10853 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10854 (encode_coding_utf_16): Likewise.
10855 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10856 (detect_coding, detect_coding_system): Handle utf-8-auto.
10857 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10858 (syms_of_coding): Fix setting up of Vcoding_category_table.
10859
10860 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10861
10862 * process.c (Faccept_process_output): If `millisec' is non-nil,
10863 `seconds' default to 0.
10864 (wait_reading_process_output): Also return non-nil if we read output
10865 from a non-running process.
10866
10867 2008-05-29 Jason Rumney <jasonr@gnu.org>
10868
10869 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10870 `raster' specified.
10871 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10872 in the uniscribe backend, but disallow any font that has no
10873 unicode subrange support.
10874
10875 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
10876
10877 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10878 Fix typos in docstrings.
10879
10880 2008-05-29 Kenichi Handa <handa@m17n.org>
10881
10882 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10883 (Fx_family_fonts): Set frame correctly.
10884
10885 2008-05-28 Jason Rumney <jasonr@gnu.org>
10886
10887 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10888
10889 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10890
10891 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10892 calling build_annotations.
10893
10894 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
10895
10896 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10897 (Fencode_coding_string):
10898 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10899 <latin-extra-code-table>: Fix typos in docstrings.
10900 (syms_of_coding) <coding-system-alist>: Doc fix.
10901 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10902
10903 2008-05-28 Kenichi Handa <handa@m17n.org>
10904
10905 * fontset.c (Ffont_info): Don't call font_close_object.
10906
10907 * font.c (font_parse_family_registry): Use Ffont_put to validate
10908 foundry and family.
10909 (font_delete_unmatched): Don't check spacing.
10910 (font_list_entities): Add spacing to the spec to list fonts.
10911
10912 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10913 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10914
10915 * coding.c (encode_coding_raw_text): Fix previous change.
10916 (encode_coding_object): When the dst_object is a buffer and is
10917 different from src_object, move gap to PT.
10918
10919 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
10920
10921 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10922
10923 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10924
10925 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10926 all branches. Compute it differently.
10927
10928 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10929
10930 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
10931
10932 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10933 into "else if () ... else ...".
10934
10935 2008-05-27 Jason Rumney <jasonr@gnu.org>
10936
10937 * w32font.c (w32font_open_internal): Determine if glyph indices
10938 are likely to work here.
10939
10940 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
10941
10942 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10943 draw overlap glyphs with appropriate highlighting.
10944
10945 2008-05-27 Kenichi Handa <handa@m17n.org>
10946
10947 * xfont.c (xfont_open): Fix calculation of font->average_width.
10948
10949 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10950
10951 * casefiddle.c (casify_object): Try to guess better whether the
10952 argument is a byte or a char.
10953
10954 2008-05-26 Andreas Schwab <schwab@suse.de>
10955
10956 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10957 Always send multiples of format size.
10958
10959 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10960
10961 2008-05-26 Jason Rumney <jasonr@gnu.org>
10962
10963 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10964 (compute_metrics): Don't set failure if we just cleared the cache.
10965 (w32_weight_table): Remove unused variable.
10966 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10967 backwards compatibility.
10968
10969 2008-05-25 Kenichi Handa <handa@m17n.org>
10970
10971 * w32term.c (x_draw_glyph_string):
10972 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10973
10974 * xfaces.c: Delete unused function prototypes.
10975 (xstrlwr, font_frame): Delete them.
10976 (clear_face_cache): Delete unused variable.
10977
10978 * xftfont.c (xftfont_open): Delete unused variable.
10979 If underline_thickness is not 1, adjust underline_position.
10980
10981 * ftxfont.c (ftxfont_open): Delete unused variable.
10982
10983 * fontset.c (face_for_char): Optimize for the case of no charset
10984 property.
10985
10986 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10987 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10988 (otf_open, font_otf_capability, generate_otf_features)
10989 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10990 Comment out by surrounding "#if 0" and "#endif" for the moment.
10991 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10992 (syms_of_font): Codes for accessing above commented out.
10993
10994 2008-05-24 Eli Zaretskii <eliz@gnu.org>
10995
10996 * w32proc.c: Include dispextern.h.
10997
10998 * w32.c: Include dispextern.h.
10999
11000 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
11001
11002 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
11003 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
11004 Fix typos in docstrings.
11005
11006 2008-05-23 Jason Rumney <jasonr@gnu.org>
11007
11008 * xsmfns.c: Remove includes that are already included by config.h.
11009
11010 2008-05-23 Kenichi Handa <handa@m17n.org>
11011
11012 * charset.c (Qemacs, charset_emacs): New variables.
11013 (char_charset): Fix for non-Unicode characters.
11014 (syms_of_charset): Define charset_emacs.
11015
11016 * w32term.c (x_draw_glyph_string): Be sure to update
11017 s->underline_thickness and s->underline_position. Be sure to draw
11018 underline within the current line area.
11019
11020 * xterm.c (x_draw_glyph_string): Be sure to update
11021 s->underline_thickness and s->underline_position. Be sure to draw
11022 underline within the current line area.
11023
11024 * fontset.c: Delete unused variables and add casting for char *
11025 throughout the file.
11026 (fontset_font): Try the fallback fonts of the current fontset
11027 before consulting the default fontset.
11028
11029 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
11030
11031 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
11032
11033 2008-05-22 Jason Rumney <jasonr@gnu.org>
11034
11035 * font.c: Don't include strings.h.
11036
11037 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
11038
11039 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
11040 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
11041 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
11042 to call xstrcasecmp.
11043
11044 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
11045
11046 * fontset.c (fs_query_fontset): Use xstrcasecmp.
11047
11048 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
11049
11050 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
11051
11052 2008-05-22 Kenichi Handa <handa@m17n.org>
11053
11054 * puresize.h (BASE_PURESIZE): Increase to 1220000.
11055
11056 * font.c (font_prop_validate_style): Adjust for the format
11057 change of font_style_table.
11058
11059 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
11060 two args.
11061
11062 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
11063 two args.
11064
11065 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
11066
11067 * minibuf.c (keys_of_minibuf): Delete.
11068 * lisp.h (keys_of_minibuf): Delete.
11069 * emacs.c (main): Don't call keys_of_minibuf.
11070
11071 2008-05-22 Kenichi Handa <handa@m17n.org>
11072
11073 * ftfont.c (ftfont_resolve_generic_family): Rename from
11074 ftfont_list_generic_family. Return a single family for each
11075 generic family.
11076 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
11077 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
11078 Call font_add_log.
11079 (ftfont_match): Call font_add_log.
11080
11081 * font.h (Ffont_xlfd_name): EXFUN adjusted.
11082 (FONT_DEBUG): Define it.
11083 (font_add_log): Extern it.
11084 (font_assert): Rename from xassert.
11085
11086 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
11087 (xfont_list_family): Call font_add_log.
11088 (xfont_match): Likewise.
11089 (memq_no_quit): Delete.
11090
11091 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
11092 call of Ffont_xlfd_name.
11093
11094 * xfaces.c (struct table_entry, slant_table, weight_table)
11095 (swidth_table): Move to font.c.
11096
11097 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
11098 xassert are changed to font_assert. Delete many unused variables.
11099 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
11100 New variables.
11101 (struct table_entry): Move from xfaces.c and modified.
11102 (weight_table, slant_table, width_table): Move from xfaces.c and
11103 contents adjusted for the change of struct table_entry.
11104 (font_style_to_value, font_style_symbolic): Adjust for the
11105 format change of font_style_table.
11106 (font_parse_family_registry): Don't overwrite existing foundry and
11107 family of font_spec.
11108 (font_score): Fix calculation of diff for sizes.
11109 (font_sort_entites): Call font_add_log.
11110 (font_delete_unmatched): Return a newly created list.
11111 (font_list_entities): Fix previous change. Call font_add_log.
11112 (font_matching_entity, font_open_entity, font_close_entity):
11113 Call font_add_log.
11114 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
11115 (Finternal_set_font_style_table): Delete.
11116 (BUILD_STYLE_TABLE): New macro.
11117 (build_style_table): New function.
11118 (Vfont_log, font_log_env_checked): New variables.
11119 (font_add_log): New function.
11120 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
11121 Declare Lisp variables "font-weight-table", "font-slant-table",
11122 "font-width-table", and "font-log". Initialize font_style_table.
11123
11124 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
11125
11126 * xterm.c (x_set_frame_alpha): Move declarations before statements.
11127
11128 2008-05-21 Seiji Zenitani <zenitani@mac.com>
11129 Ryo Yoshitake <ryo@shiftmode.net>
11130
11131 * frame.c (Qalpha): Add a new frame parameter `alpha'.
11132 (Vframe_alpha_lower_limit): New variable.
11133 (x_set_alpha): New function.
11134
11135 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
11136
11137 * xfns.c (x-create-frame, Qalpha):
11138 Initialize the frame parameter `alpha'.
11139 * xterm.c (OPAQUE, OPACITY): New.
11140 (x_set_frame_alpha): New function.
11141 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
11142
11143 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
11144 * w32fns.c (w32_frame_parm_handlers): Likewise.
11145
11146 2008-05-20 Jason Rumney <jasonr@gnu.org>
11147
11148 * w32font.c (add_font_entity_to_list): Don't add non-opentype
11149 truetype fonts to opentype list.
11150
11151 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
11152
11153 * fontset.c (Ffontset_info): Doc fix.
11154 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
11155 <ignore-relative-composition>: Fix typos in docstrings.
11156
11157 * font.c (syms-of-font) <font-encoding-alist>:
11158 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
11159 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
11160 (Ffont_otf_alternates): Doc fixes.
11161
11162 2008-05-20 Kenichi Handa <handa@m17n.org>
11163
11164 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
11165 font.h through out the file.
11166 (FONT_DRIVERS): Rename from FONTOBJ.
11167 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
11168 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
11169
11170 * emacs.c (main): Call syms_of_font unconditionally.
11171
11172 * font.h (find_font_encoding): Extern it.
11173
11174 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
11175 fontset.c.
11176 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
11177 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
11178 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
11179 only when HAVE_WINDOW_SYSTEM is defined.
11180 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
11181 when HAVE_WINDOW_SYSTEM is defined.
11182
11183 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
11184 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
11185
11186 * xfaces.c: Include font.h unconditionally.
11187 (merge_face_ref, merge_face_vectors)
11188 (Finternal_set_lisp_face_attribute): Cancel the previous change.
11189
11190 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
11191
11192 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
11193 indirect_variable.
11194 * eval.c (lisp_indirect_variable): New fun.
11195 (Fuser_variable_p): Use it.
11196
11197 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11198
11199 * lisp.h (indirect_variable):
11200 * data.c (indirect_variable, let_shadows_buffer_binding_p):
11201 Use Lisp_Symbol pointers rather than Lisp_Object.
11202 Adjust callers.
11203 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
11204 To this end, change calling-convention.
11205
11206 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
11207 if some non-hidden buffers are selected by string&pred.
11208
11209 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
11210
11211 * process.c (wait_reading_process_output): Always check status
11212 when in batch mode.
11213
11214 2008-05-19 Kenichi Handa <handa@m17n.org>
11215
11216 * font.c (font_list_entities): Fix handling of cache.
11217 (font_matching_entity): Likewise.
11218
11219 * ftfont.c (cs_iso8859_1): Delete.
11220 (ft_face_cache): New variable.
11221 (struct ftfont_info): New member fc_charset_idx.
11222 (ftfont_build_basic_charsets): Delete.
11223 (fc_charset_table): New variable.
11224 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
11225 . FC_CHARSET_IDX) as :font-entity property in the font entity.
11226 Callers changed.
11227 (ftfont_lookup_cache, ftfont_get_charset): New functions.
11228 (ftfont_spec_pattern): New argument fc_charset_idx.
11229 Check registry more rigidly. Change callers.
11230 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
11231 change of :font-entity property of the font.
11232
11233 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
11234 property of the font.
11235
11236 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
11237
11238 * coding.c (Fcoding_system_p): Rename argument to match docstring.
11239 (Funencodable_char_position, Fcheck_coding_systems_region)
11240 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
11241 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
11242 (Ffind_operation_coding_system, Fset_coding_system_priority)
11243 (Fcoding_system_eol_type): Doc fixes.
11244
11245 2008-05-17 Glenn Morris <rgm@gnu.org>
11246
11247 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
11248
11249 2008-05-16 Eli Zaretskii <eliz@gnu.org>
11250
11251 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
11252 and st_gid.
11253
11254 * frame.c (Fdelete_frame): Don't call font_update_drivers if
11255 HAVE_WINDOW_SYSTEM is not defined.
11256
11257 * xfaces.c (merge_face_ref, merge_face_vectors)
11258 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
11259 HAVE_WINDOW_SYSTEM is defined.
11260 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
11261
11262 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
11263
11264 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
11265
11266 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11267
11268 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
11269
11270 2008-05-15 Kenichi Handa <handa@m17n.org>
11271
11272 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
11273 preference.
11274
11275 2008-05-15 Glenn Morris <rgm@gnu.org>
11276
11277 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
11278
11279 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
11280
11281 * fns.c (init_fns): Don't initialize weak_hash_tables here.
11282 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
11283
11284 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
11285
11286 2008-05-15 Kenichi Handa <handa@m17n.org>
11287
11288 * ftfont.c (ftfont_list): Downcase family name to check generic
11289 families.
11290
11291 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
11292 font-spec for QCfont value.
11293
11294 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
11295 buffer. Check the return value of it.
11296
11297 2008-05-14 Jason Rumney <jasonr@gnu.org>
11298
11299 * w32term.c (w32_get_glyph_overhangs): Remove.
11300 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
11301
11302 2008-05-14 Kenichi Handa <handa@m17n.org>
11303
11304 * font.c (font_prop_validate): Make nil a valid value.
11305 (font_clear_cache): Check if the cached vector of entities is nil
11306 or not.
11307
11308 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11309
11310 * emacs.c (main_thread): Conditionalize on
11311 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11312 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11313
11314 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11315 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11316 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11317
11318 2008-05-14 Kenichi Handa <handa@m17n.org>
11319
11320 * coding.c (detect_coding_iso_2022): Ignore a coding category that
11321 has no corresponding coding system.
11322
11323 2008-05-14 Jason Rumney <jasonr@gnu.org>
11324
11325 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11326
11327 * w32font.h (w32font_open_internal): Update declaration.
11328
11329 * w32font.c (w32font_open_internal): Change last argument from
11330 w32font_info struct to font object. Fill in font object from
11331 font_entity. Get Outline metrics if possible. Use them to
11332 calculate underline position and thickness. Use xlfd name as name
11333 property. Don't set codepage.
11334 (w32font_open): Pass font_object to w32font_open_internal. Don't
11335 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11336 (w32font_draw): Use s->font.
11337 (clear_cached_metrics): Don't clear non-existent blocks.
11338
11339 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11340 font was not found.
11341 (x_draw_glyph_string): Use underline position and thickness from font.
11342
11343 * w32uniscribe.c (uniscribe_open): Pass font_object to
11344 w32font_open_internal.
11345
11346 2008-05-14 Kenichi Handa <handa@m17n.org>
11347
11348 These changes are to delete all legacy font-handling codes, and
11349 make Emacs use only font-backends.
11350
11351 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11352 (frame.o, image.o, print.o): Depend on $(FONTSRC).
11353
11354 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11355
11356 * charset.h (Vcharset_non_preferred_head)
11357 (Vcurrent_iso639_language): Extern them.
11358
11359 * charset.c (Vcharset_non_preferred_head): New variable.
11360 (Vcurrent_iso639_language): New variable.
11361 (syms_of_charset): Declare it as a Lisp variable.
11362 (char_charset): Don't check non preferred charsets. As a last
11363 resort, return charset_unicode.
11364 (Fset_charset_priority): Update Vcharset_non_preferred_head.
11365
11366 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11367 conditionals. Don't check enable_font_backend. Delete all codes
11368 used only when USE_FONT_BACKEND is not defined.
11369
11370 * dispextern.h (struct glyph_string): Change type of `font' to
11371 `struct font *'.
11372 (struct glyph_string): New member underline_position and
11373 underline_thickness.
11374 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11375 (struct face): Change type of `font' to `struct font *'. Remove
11376 members `font_name', `font_info_id'.
11377 (per_char_metric, encode_char): Delete externs.
11378 (calc_pixel_width_or_height): Adjust the prototype.
11379
11380 * emacs.c (enable_font_backend): Delete extern.
11381 (main): Don't set enable_font_backend. Don't check the command
11382 line argument "-disable-font-backend".
11383
11384 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11385 (enum font_property_index): New members FONT_DPI_INDEX,
11386 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11387 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11388 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11389 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11390 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11391 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11392 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11393 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11394 (struct font_spec, struct font_entity): New structs.
11395 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11396 (struct font): Many members from old "struct font_info" moved to
11397 here. Members font and entity deleted.
11398 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11399 the new font-related objects.
11400 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11401 (CHECK_FONT_GET_OBJECT): Likewise.
11402 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11403 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11404 (struct font_driver): New members case_sensitive anc check. Type
11405 of the member list and open changed.
11406 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11407 (font_symbolic_width, font_find_object, font_get_spec)
11408 (font_set_lface_from_name): Delete extern.
11409 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11410
11411 * font.c: Include <strings.h>.
11412 (enable_font_backend): Delete it.
11413 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11414 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11415 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11416 (null_string): Delete it.
11417 (null_vector): Make it static.
11418 (font_family_alist): Delete it.
11419 (Qnormal): Extern it.
11420 (QCextra, QClanguage): Delete it.
11421 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11422 (font_make_spec, font_make_entity, font_make_object)
11423 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11424 the string. Callers changed.
11425 (font_pixel_size): Adjusted for the format change of font-related
11426 objects.
11427 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11428 (font_style_to_value, font_style_symbolic): New function.
11429 (build_font_family_alist): Delete it.
11430 (font_registry_charsets): Use Fassoc_string instead of
11431 assq_no_quit.
11432 (font_prop_validate_symbol): Don't return null_string.
11433 (font_prop_validate_style): Adjusted for the change of
11434 style-related values in a font vector.
11435 (font_property_table): Delete entries for QClanguage and
11436 QCantialias, add entries for QCavgwidth.
11437 (get_font_prop_index): Delete the 2nd argument FROM.
11438 (font_prop_validate): Arguments changed.
11439 (font_put_extra): Adjusted for the change of font-related objects.
11440 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11441 (font_parse_fcname, font_unparse_fcname)
11442 (font_prepare_composition): Likewise.
11443 (font_parse_family_registry): Renamed from font_merge_old_spec.
11444 (otf_open): Delete the 1st arg entity.
11445 (font_otf_capability): Adjusted for the above change.
11446 (font_score): New arg alternate_families. Adjusted for the change
11447 of font-related objects.
11448 (font_sort_entites): New arg best_only.
11449 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11450 Delete them.
11451 (font_match_p): Check alternate families.
11452 (font_find_object): Delete it.
11453 (font_check_object): New function.
11454 (font_clear_cache): Adjusted for the change of font-related objects.
11455 (font_delete_unmatched): New arg.
11456 (font_list_entities): Call font_driver->list with a spec that
11457 doesn't specify style-related properties.
11458 (font_matching_entity): Arguments changed. Caller changed.
11459 (font_open_entity): Adjusted for the change of font-related objects.
11460 (font_close_object, font_has_char, font_encode_char)
11461 (font_get_name, font_get_spec): Likewise.
11462 (font_spec_from_name, font_clear_prop, font_update_lface):
11463 New functions.
11464 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11465 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11466 (font_at): Adjusted for the change of font-related objects.
11467 (font_range): New function.
11468 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11469 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11470 (Fcopy_font_spec, Fmerge_font_spec): New function.
11471 (Ffont_family_list): Renamed from list-families.
11472 (Finternal_set_font_style_table): Arguments changed.
11473 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11474 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11475 change of font-related objects.
11476 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11477
11478 * fontset.h (struct font_info): Delete it. Most members go to
11479 struct font.
11480 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11481 (enum FONT_SPEC_INDEX): Delete it.
11482 (font_info, list_fonts_func, load_font_func, query_font_func)
11483 (set_frame_fontset_func, find_ccl_program_func)
11484 (get_font_repertory_func, new_fontset_from_font_name): Delete
11485 externs.
11486 (fontset_from_font_name): Extern it.
11487 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11488 (FONT_INFO_FROM_FACE): Deleted.
11489 (face_for_font): Adjust prototype.
11490
11491 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11492 conditionals. Don't check enable_font_backend. Delete all codes
11493 used only when USE_FONT_BACKEND is not defined.
11494 (get_font_info_func, list_font_func, load_font_func)
11495 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11496 (get_font_repertory_func): Delete them.
11497 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11498 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11499 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11500 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11501 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11502 (fontset_compare_rfontdef): New function.
11503 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11504 rfont-defs by qsort. Adjusted for the change of font-group vector.
11505 (load_font_get_repertory): Deleted.
11506 (fontset_find_font): Use new macros to ref/set elements of
11507 font-def and rfont-def.
11508 (fontset_font): Fix the timing of remembering that no font for C.
11509 (free_face_fontset): Do nothing if the face has no fontset.
11510 (face_suitable_for_char_p): Use new macros to ref/set elements of
11511 rfont-def.
11512 (face_for_char): Likewise. Call face_for_char with font_object.
11513 (fs_load_font): Delete. Delete #pragma surrounding it.
11514 (fs_query_fontset): Use strcasecmp instead of strcmp.
11515 (generate_ascii_font_name): Adjusted for the format change of
11516 font-spec.
11517 (Fset_fontset_font): Likewise. Use new macros to set elements of
11518 font-def.
11519 (Fnew_fontset): Use font_unparse_xlfd to generate
11520 FONTSET_ASCII (fontset).
11521 (new_fontset_from_font_name): Deleted.
11522 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11523 a fontset is already created for the font. FIx updating of
11524 Vfontset_alias_alist.
11525 (fontset_ascii_font): Deleted.
11526 (Ffont_info): Adjusted for the format change of font-spec.
11527 (Finternal_char_font): Likewise.
11528 (Ffontset_info): Likewise.
11529 (syms_of_fontset): Don't check load_font_func.
11530
11531 * fns.c (internal_equal): Handle PREV_FONT.
11532
11533 * frame.h: Delete USE_FONT_BACKEND conditional.
11534
11535 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11536 conditionals. Don't check enable_font_backend. Delete all codes
11537 used only when USE_FONT_BACKEND is not defined.
11538 (x_set_font): Call x_new_font, not x_new_fontset2.
11539 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11540 already set for the frame.
11541
11542 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11543 a font-entity by font_make_entity. Use font_intern_prop instead
11544 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11545 font property. If a font is scalable, set avgwidth property to 0.
11546 Set font-entity property by font_put_extra.
11547 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11548 (ffont_driver): Adjusted for the change of struct font_driver.
11549 (ftfont_spec_pattern): New function.
11550 (ftfont_list): Return a list, not vector.
11551 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11552 (ftfont_list_family): Don't downcase names.
11553 (ftfont_free_entity): Deleted.
11554 (ftfont_open): Return a font-object. Adjusted for the change of
11555 struct font. Get underline_thickness and underline_position from
11556 font property. Don't update dpyinfo->smallest_font_height and
11557 dpyinfo->smallest_char_width.
11558 (ftfont_close): Don't free `struct font'.
11559 (ftfont_has_char): Adjusted for the format change of font-entity.
11560 (ftfont_encode_char, ftfont_text_extents): Likewise.
11561
11562 * ftxfont.c (ftxfont_list): Return a list, not vector.
11563 (ftxfont_open): Return a font-object. Adjusted for the change of
11564 struct font. Get underline_thickness and underline_position from
11565 font property. Don't update dpyinfo->smallest_font_height and
11566 dpyinfo->smallest_char_width.
11567 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11568 (ftxfont_draw): Adjusted for the change of struct font.
11569
11570 * image.c (image_ascent): Don't include "charset.h". Include
11571 "character.h" and "font.h".
11572
11573 * lisp.h (enum pvec_type): New member PREV_FONT.
11574 (Fassoc_string): EXFUN it.
11575
11576 * print.c: Include font.h.
11577 (print_object): Handle font-related objects.
11578
11579 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11580 conditionals. Don't check enable_font_backend. Delete all codes
11581 used only when USE_FONT_BACKEND is not defined.
11582 (handle_auto_composed_prop): Do nothing if it->f is not on a
11583 window system. Check how many following characters can be
11584 displayed by the same font.
11585 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11586 'struct font *'.
11587 (get_char_face_and_encoding): Assign the whole encoding task to
11588 the `encode-char' method of a font driver.
11589 (fill_composite_glyph_string): Adjusted for the change of `struct
11590 face' and `struct glyph_string'.
11591 (fill_glyph_string): Likewise.
11592 (get_per_char_metric): Arguments changed.
11593 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11594 and `struct glyph_string'.
11595 (produce_stretch_glyph, calc_line_height_property)
11596 (x_produce_glyphs): Likewise.
11597
11598 * xfaces.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. Use
11601 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11602 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11603 (Qp): Extern them.
11604 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11605 Deleted.
11606 (struct font_name): Deleted.
11607 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11608 (compare_fonts_by_sort_order): New function.
11609 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11610 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11611 Deleted.
11612 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11613 compare_fonts_by_sort_order.
11614 (Fx_font_family_list): Call Ffont_family_list.
11615 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11616 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11617 (face_symbolic_slant, face_symbolic_swidth)
11618 (split_font_name_into_vector, build_font_name_from_vector)
11619 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11620 (font_rescale_ratio, split_font_name, build_font_name)
11621 (free_font_names, sort_fonts, x_face_list_fonts)
11622 (face_font_available_p, sorted_font_list, cmp_font_names)
11623 (font_list_1, concat_font_list, font_list, remove_duplicates):
11624 Deleted.
11625 (Fx_list_fonts): Use Ffont_list.
11626 (LFACE_AVGWIDTH): Deleted.
11627 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11628 by FONTP.
11629 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11630 (set_lface_from_font_name): Delete it.
11631 (set_lface_from_font): Renamed from
11632 set_lface_from_font_and_fontset. Caller changed. Don't set
11633 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11634 for face.
11635 (merge_face_vectors): Copy font-spec if necessary.
11636 Clear properties of the font-spec if necessary.
11637 (merge_face_ref): Clear properties of the font-spec if necessary.
11638 (Finternal_set_lisp_face_attribute): Likewise.
11639 (set_font_frame_param): Use font_load_for_lface to load a
11640 font-object, and call Fmodify_frame_parameters with it.
11641 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11642 font name by Ffont_xlfd_name.
11643 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11644 QCslant, and QCwidth.
11645 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11646 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11647 Compare fonts by EQ.
11648 (lookup_non_ascii_face): Deleted.
11649 (face_for_font): The 2nd argument changed.
11650 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11651 Check atomic font properties by case insensitive.
11652 (realize_non_ascii_face): Set face->overstrike correctly.
11653 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11654 (dump_realized_face): Get font name from
11655 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11656
11657 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11658 conditionals. Don't check enable_font_backend. Delete all codes
11659 used only when USE_FONT_BACKEND is not defined.
11660 (xic_create_xfontset): Original code deleted and renamed from
11661 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11662 (x_make_gc): Don't set GCFont in GCs.
11663 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11664 opened by "fixed".
11665 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11666 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11667 get_font_repertory_func.
11668
11669 * xfont.c: Include <stdlib.h> and "ccl.h".
11670 (struct xfont_info): New structure.
11671 (xfont_query_font): Deleted.
11672 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11673 moved from xterm.c.
11674 (xfont_driver): Adjusted for the change of struct font_driver.
11675 (compare_font_names): New function.
11676 (xfont_list_pattern): Sort font names case insensitively. Make
11677 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11678 (xfont_list): Return a list, not vector.
11679 (xfont_match): If the font doesn't have QCname property, generate
11680 a name from the other font properties.
11681 (xfont_open): Return a font-object. Adjusted for the change of
11682 struct font. Get underline_thickness and underline_position from
11683 font property. Don't update dpyinfo->smallest_font_height and
11684 dpyinfo->smallest_char_width.
11685 (xfont_close): Don't free struct font.
11686 (xfont_prepare_face): Adjusted for the change of struct font.
11687 (xfont_done_face): Deleted.
11688 (xfont_has_char): Adjusted for the change of struct font.
11689 (xfont_encode_char, xfont_draw): Likewise.
11690 (xfont_check): New function.
11691
11692 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11693 callback function.
11694 (xftfont_match): Adjusted for the format change of font-entity.
11695 (xftfont_open): Adjusted for the format change of font-entity and
11696 font-object. Adjusted for the change of struct font. Return a
11697 font-object. Don't update dpyinfo->smallest_font_height and
11698 dpyinfo->smallest_char_width.
11699 (xftfont_close): Block input while calling XftFontClose.
11700 (xftfont_prepare_face): Don't block input while calling
11701 xftfont_get_colors. Adjusted for the change of struct font.
11702 (xftfont_shape): Return value of error case fixed.
11703
11704 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11705
11706 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11707 conditionals.
11708 (FONT_WIDTH): Return (f)->max_width.
11709 (struct x_display_info): Delete member `font'.
11710 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11711 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11712 (struct x_output): Change type of `font' to `struct font *'.
11713
11714 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11715 conditionals. Don't check enable_font_backend. Delete all codes
11716 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11717 (x_per_char_metric, x_encode_char): Deleted.
11718 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11719 (x_compute_glyph_string_overhangs): Adjusted for the change of
11720 `struct face'.
11721 (x_draw_glyph_string_foreground)
11722 (x_draw_composite_glyph_string_foreground): Likewise.
11723 (x_draw_glyph_string): Likewise. Use font->underline_position and
11724 font->underline_thickness.
11725 (x_new_font): Renamed from x_new_fontset2.
11726 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11727 (x_check_font): Call `check' method of a font driver.
11728 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11729 (x_query_font, x_get_font_repertory): Deleted.
11730 (x_find_ccl_program): Renamed and moved to xfont.c.
11731 (x_redisplay_interface): Adjusted for the change of `struct
11732 redisplay_interface'.
11733
11734 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11735 conditionals. Don't check enable_font_backend. Delete all codes
11736 used only when USE_FONT_BACKEND is not defined. Surround non-used
11737 code by "#ifdef OLD_FONT" and "endif".
11738 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11739
11740 * w32font.h (struct w32font_info): New member.
11741 (FONT_COMPAT): New macro.
11742 (w32font_open_internal): Prototype adjusted.
11743
11744 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11745 OLD_FONT" and "endif".
11746
11747 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11748 conditionals. Don't check enable_font_backend. Delete all codes
11749 used only when USE_FONT_BACKEND is not defined.
11750 (w32font_open): Return a font-object. Make a font-object by
11751 font_make_object. Adjusted for the change of struct w32font_info.
11752 (w32font_close): Don't free struct font. Adjusted for the change
11753 of struct w32font_info.
11754 (w32font_encode_char, w32font_text_extents, w32font_draw):
11755 Adjusted for the change of struct w32font_info.
11756 (w32font_draw): Likewise.
11757 (w32font_list_internal): Return a list, not vector.
11758 (w32font_open_internal): Change the 4th arg to font-object.
11759 Adjusted for the change of struct w32font_info and font-object format.
11760 (add_font_name_to_list): Don't downcase names.
11761 (w32_enumfont_pattern_entity): Make a font-entity by
11762 font_make_entity. Adjusted for the format change of font-entity.
11763 Use FONT_SET_STYLE to set a style-related font property. If a
11764 font is scalable, set avgwidth property to 0. Set font-entity
11765 property by font_put_extra.
11766 (font_matches_spec): Adjusted for the format change of font-entity.
11767 (w32_weight_table, w32_decode_weight): New variables.
11768 (w32_encode_weight): New function.
11769 (fill_in_logfont): Adjusted for the format change of font-spec.
11770 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11771 weight value.
11772 (w32font_driver): Adjusted for the change of struct font_driver.
11773
11774 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11775 conditionals. Don't check enable_font_backend. Surround non-used
11776 code by "#ifdef OLD_FONT" and "endif".
11777 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11778 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11779
11780 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11781 conditionals. Don't check enable_font_backend. Delete all codes
11782 used only when USE_FONT_BACKEND is not defined. Surround non-used
11783 code by "#ifdef OLD_FONT" and "endif".
11784
11785 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11786 (uniscribe_open): Return value changed to font-object.
11787 Adjusted for the format change of font-object.
11788 (uniscribe_otf_capability): Adjusted for the change of struct font.
11789 (add_opentype_font_name_to_list): Don't downcase names.
11790 (uniscribe_font_driver): Adjusted for the change of struct
11791 font_driver.
11792
11793 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
11794
11795 * dispnew.c (update_frame_1): Check if tty output is still valid
11796 before flushing it.
11797
11798 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11799
11800 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11801 to Gtk+ menus.
11802
11803 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11804
11805 * dired.c (file_name_completion): Tweak the code so as to always do it
11806 in a single pass. Tighten the scope of some variables.
11807
11808 * dired.c (Qdefault_directory): New var.
11809 (file_name_completion): Use it instead of Fexpand_file_name.
11810 (syms_of_dired): Initialize it.
11811
11812 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11813
11814 * fileio.c (double_dollars): Remove dead code.
11815
11816 2008-05-10 Eli Zaretskii <eliz@gnu.org>
11817
11818 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11819 Mention w32-get-true-file-attributes in doc string.
11820
11821 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11822
11823 2008-05-09 Glenn Morris <rgm@gnu.org>
11824
11825 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11826 2008-04-23.
11827
11828 2008-05-09 Eli Zaretskii <eliz@gnu.org>
11829
11830 Support for reporting owner and group of each file on MS-Windows:
11831 * dired.c (stat_uname, stat_gname): New functions, with special
11832 implementation for w32.
11833 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11834
11835 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11836 (dflt_group_name): New static variable.
11837 (dflt_group): Rename from the_group.
11838 (init_user_info): Init dflt_group fields. Get user's group name
11839 from LookupAccountSid.
11840 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11841 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11842 New initialization states.
11843 (globals_of_w32): Initialize them to zero. Initialize the default
11844 group name to "None".
11845 (GetFileSecurity_Name): New global var, the name of the function
11846 to call for GetFileSecurity.
11847 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11848 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11849 (get_file_security, get_security_descriptor_owner)
11850 (get_security_descriptor_group, is_valid_sid)
11851 (get_file_security_desc, get_rid, get_name_and_id)
11852 (get_file_owner_and_group): New functions.
11853 (stat): Use get_file_security_desc and get_file_owner_and_group to
11854 report the owner and primary group of each file. Don't ignore the
11855 high 32 bits of file's size, now that st_size is 64-bit wide.
11856 Fix test when to get true file attributes.
11857 (init_user_info): Use get_rid instead of equivalent inline code.
11858 (fstat): Don't ignore the high 32 bits of file's size.
11859
11860 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
11861
11862 * image.c (png_load): Use correct bit-depth for setting background
11863 color.
11864
11865 2008-05-08 Eli Zaretskii <eliz@gnu.org>
11866
11867 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11868 epa-hook.elc.
11869
11870 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
11871
11872 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11873
11874 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11875
11876 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11877 because the original parameters are in pure storage now.
11878 (mac_window): Remove unused params. Update callers.
11879
11880 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11881
11882 * lread.c (substitute_object_recurse): Use lower-level primitives.
11883 Don't signal errors when traversing sub-char-tables.
11884 Don't loop over all the possible characters when traversing char-tables.
11885
11886 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11887 just like we do in print.c.
11888
11889 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11890
11891 * minibuf.c (Ftry_completion): Remove code left over from when we used
11892 scmp instead of Fcompare_strings.
11893
11894 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
11895
11896 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11897
11898 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11899
11900 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11901 Create bitmap context in native byte order.
11902
11903 * macterm.c (XDrawLine)
11904 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11905 context in native byte order.
11906
11907 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11908
11909 * config.in: Regenerate.
11910
11911 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11912 New definitions for Image I/O support.
11913 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11914 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11915 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11916 (mac_data_provider_release_data, image_load_image_io)
11917 [USE_MAC_IMAGE_IO]: New functions.
11918 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11919 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11920 (init_image_func_pointer) [MAC_OSX]: Remove function.
11921 (image_load_quartz2d) [MAC_OSX]: Check availability of
11922 CGImageCreateWithPNGDataProvider at compile time.
11923 Use lowercase `false' for boolean constant.
11924 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11925 Use image_load_image_io.
11926 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11927 Don't check MyCGImageCreateWithPNGDataProvider.
11928 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11929 Don't call init_image_func_pointer.
11930
11931 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11932
11933 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11934 Make variable non-static.
11935 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11936 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11937
11938 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11939 (RED_FROM_ULONG): Mask off higher bits.
11940 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11941
11942 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11943 Include AvailabilityMacros.h.
11944 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11945 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11946
11947 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11948
11949 * chartab.c (Fset_char_table_range): If range is t, really set all
11950 chars to that value.
11951
11952 2008-05-03 Eli Zaretskii <eliz@gnu.org>
11953
11954 * dired.c (Ffile_attributes): Don't allow the device number become
11955 negative.
11956
11957 2008-05-02 Daiki Ueno <ueno@unixuser.org>
11958
11959 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11960
11961 2008-05-02 Juri Linkov <juri@jurta.org>
11962
11963 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11964 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11965 DEFAULT argument as a list of default values in docstrings.
11966
11967 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
11968
11969 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11970
11971 2008-05-01 Martin Rudalics <rudalics@gmx.at>
11972
11973 * dispnew.c (change_frame_size_1): Preserve small windows when
11974 shrinking frames by calling set_window_height|width with third
11975 arg 2.
11976
11977 * window.h (struct window): Replace field too_small_ok by field
11978 resize_proportionally.
11979
11980 * window.c (make_window): Initialize resize_proportionally.
11981 (enlarge_window): Temporarily set resize_proportionally to make
11982 sure that shrink_windows does scale the window proportionally.
11983 (shrink_windows): When window has resize_proportionally set try
11984 to shrink it proportionally by stealing from other windows.
11985 (struct saved_window, Fset_window_configuration)
11986 (compare_window_configurations): Handle resize_proportionally.
11987 (WINDOW_TOTAL_SIZE): New macro.
11988 (window_min_size, shrink_windows, size_window): Use it.
11989 (check_min_window_sizes): Remove. Invalid values of
11990 window-min-height|width are handled by window_min_size_2 now.
11991 (size_window, Fsplit_window, enlarge_window)
11992 (adjust_window_trailing_edge, grow_mini_window): Don't call
11993 check_min_window_sizes.
11994 (window_min_size_2, window_min_size_1, window_min_size):
11995 New argument safe_p for retrieving "safe" minimum sizes.
11996 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11997 (adjust_window_trailing_edge, grow_mini_window):
11998 Adjust arguments of window_min_size... functions.
11999 (shrink_windows): Argument min_size removed. New argument
12000 safe_p allows shrinking windows to their safe minimum sizes.
12001 Calculate minimum size and decide whether a window shall be
12002 deleted for each window individually.
12003 (size_window): When nodelete_p equals 2, tell shrink_windows to
12004 delete windows only if their new minimum size is no more safe.
12005 (shrink_window_lowest_first): Call window_min_size_1 to make
12006 sure to preserve modeline of bottom-most window when resizing
12007 the minibuffer.
12008 (Fset_window_configuration, Fcurrent_window_configuration)
12009 (compare_window_configurations): Do not handle
12010 window-min-height|width any more.
12011 (syms_of_window): Clarify window-min-height|width doc-strings.
12012
12013 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
12014
12015 * dired.c (file_name_completion): Fix up the encoding/decoding issue
12016 some more. Copy some of the code from Ftry_completions.
12017 Remove special case code that dates back to initial revision when the
12018 slash was only added when necessary and that can't trigger nowadays.
12019
12020 2008-04-27 Kenichi Handa <handa@m17n.org>
12021
12022 * font.c (font_prop_validate): Signal `error' instead of `font'.
12023
12024 2008-04-29 Jason Rumney <jasonr@gnu.org>
12025
12026 * w32fns.c (Fw32_battery_status): New defun.
12027 (syms_of_w32fns): Defsubr it.
12028
12029 2008-04-28 Andreas Schwab <schwab@suse.de>
12030
12031 * dired.c (file_name_completion): Fix another mixing of encoded
12032 and decoded names.
12033
12034 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
12035
12036 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
12037
12038 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
12039
12040 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
12041
12042 2008-04-27 Andreas Schwab <schwab@suse.de>
12043
12044 * dired.c (file_name_completion): Fix inappropriate mixing of
12045 encoded and decoded names.
12046
12047 * xterm.c (XTread_socket): Fix use of uninitialized variable.
12048
12049 * puresize.h (BASE_PURESIZE): Increase to 1200000.
12050
12051 2008-04-26 Eli Zaretskii <eliz@gnu.org>
12052
12053 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
12054 2008-03-31, it's not needed anymore with `struct stat' definition
12055 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
12056 for the same reasons.
12057
12058 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
12059
12060 * m/sparc.h: Additional redefinitions for GNU/Linux.
12061
12062 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12063
12064 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
12065 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
12066 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
12067 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
12068 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12069 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
12070 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12071 Likewise.
12072
12073 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
12074 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
12075 (mac_ax_number_of_characters): Add externs.
12076 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12077 [USE_MAC_TSM]: Likewise.
12078 (mac_handle_text_input_event) [MAC_OSX]:
12079 Handle kEventTextInputOffsetToPos for no active input area case.
12080 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12081 (mac_handle_document_access_event)
12082 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
12083 (install_application_handler) [MAC_OSX]: Register handlers for
12084 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12085 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12086 Register mac_handle_document_access_event.
12087
12088 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
12089 Make functions non-static.
12090
12091 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
12092
12093 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
12094 (read_file_name_completion_ignore_case, insert_default_directory)
12095 (Qdefault_directory): Move to minibuffer.el.
12096 (Fread_file_name): Call the new `read-file-name' instead.
12097
12098 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12099
12100 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
12101 Make function non-static.
12102 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
12103 Remove function.
12104 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12105 Move to mactoolbox.c.
12106 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
12107
12108 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
12109 (mac_rect_make): New macro.
12110
12111 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
12112 instead of float.
12113 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12114 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
12115 (XSetBackground) [USE_CG_DRAWING]: Likewise.
12116 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
12117 CGRectMake.
12118 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12119 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
12120 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
12121 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12122 instead of WindowRef in argument type.
12123 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
12124 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
12125 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
12126 instead of DISPLAY. All uses changed.
12127 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
12128 (x_calc_absolute_position): Simplify so as not to use
12129 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
12130
12131 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12132 instead of WindowRef in argument type.
12133 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
12134 [TARGET_API_MAC_CARBON]: Remove externs.
12135 (create_apple_event, mac_event_parameters_to_lisp)
12136 [TARGET_API_MAC_CARBON]: Add externs.
12137
12138 * mactoolbox.c (Vmac_ts_script_language_on_focus)
12139 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
12140 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
12141 is clicked.
12142 (x_activate_menubar): Remove extern for saved_menu_event_location.
12143 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12144 Move from mac.c.
12145
12146 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12147
12148 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
12149 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
12150
12151 2008-04-23 Jason Rumney <jasonr@gnu.org>
12152
12153 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
12154 attributes only for local files.
12155
12156 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
12157 default to Qlocal.
12158
12159 2008-04-22 Juri Linkov <juri@jurta.org>
12160
12161 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
12162 read-buffer-to-switch instead of using the letter "B".
12163
12164 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
12165
12166 * fileio.c (Qdefault_directory): New variable.
12167 (Fread_file_name): Use it to pass `dir' to the completion functions.
12168
12169 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
12170
12171 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
12172
12173 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
12174
12175 * keyboard.c (Vpre_help_message): Remove.
12176 (show_help_echo): Remove default C code.
12177
12178 * dired.c (directory_files_internal, file_name_completion):
12179 Only call ENCODE_FILE if the string is indeed decoded.
12180
12181 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12182
12183 * Makefile.in (TOOLKIT_DEFINES): Remove.
12184 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
12185
12186 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12187
12188 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
12189 (mactoolbox.o): New target.
12190
12191 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
12192 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
12193
12194 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
12195 Use mac_set_frame_window_background instead of XSetWindowBackground.
12196 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
12197 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
12198 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
12199 instead of SetWindowTitleWithCFString.
12200 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
12201 Move function to mactoolbox.c.
12202 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
12203 Use mac_set_window_modified instead of SetWindowModified.
12204 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
12205 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
12206 (Fx_focus_frame): Use mac_front_non_floating_window instead of
12207 FrontNonFloatingWindow. Use mac_activate_window instead of
12208 ActivateWindow. Use mac_active_non_floating_window instead of
12209 ActiveNonFloatingWindow.
12210 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
12211 Use mac_show_hourglass and mac_hide_hourglass.
12212 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
12213 instead of GetGlobalMouse.
12214 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
12215 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
12216 Use mac_bring_window_to_front instead of BringToFront.
12217 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
12218 mactoolbox.c.
12219 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
12220 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
12221 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
12222 mactoolbox.c.
12223
12224 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
12225 (XtPointer): Move typedef from macmenu.c.
12226 (enum button_type): Move enum from macmenu.c.
12227 (widget_value): Move typedef from macmenu.c.
12228 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
12229 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12230 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12231 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12232 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12233 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12234 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12235 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
12236 (Selection): Move typedef from macselect.c.
12237 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
12238 macterm.c.
12239 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
12240 (mac_is_window_collapsed, mac_bring_window_to_front)
12241 (mac_send_window_behind, mac_hide_window, mac_show_window)
12242 (mac_collapse_window, mac_front_non_floating_window)
12243 (mac_active_non_floating_window, mac_activate_window)
12244 (mac_move_window_structure, mac_move_window, mac_size_window)
12245 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
12246
12247 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
12248 (enum mac_menu_kind): Move enum to mactoolbox.c.
12249 (min_menu_id): Move variable to mactoolbox.c.
12250 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
12251 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
12252 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12253 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12254 [TARGET_API_MAC_CARBON]: Likewise.
12255 (XtPointer): Move typedef to macgui.h.
12256 (enum button_type): Move enum to macgui.h.
12257 (widget_value): Move typedef to macgui.h.
12258 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12259 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12260 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12261 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12262 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12263 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12264 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
12265 (popup_activated_flag): Make variable non-static.
12266 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
12267 (add_menu_item, fill_menu, dispose_menus):
12268 Move functions to mactoolbox.c.
12269 (restore_show_help_function, menu_target_item_handler)
12270 (install_menu_target_item_handler, mac_handle_dialog_event)
12271 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
12272 [TARGET_API_MAC_CARBON]: Likewise.
12273 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
12274 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12275 (find_and_call_menu_selection, name_is_separator): Make function
12276 non-static.
12277 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
12278 to mactoolbox.c.
12279 (set_frame_menubar): Don't call install_menu_quit_handler.
12280 (menu_item_selection): New variable.
12281 (mac_menu_show): Use create_and_show_popup_menu.
12282 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
12283 selection but set variable menu_item_selection. All uses changed.
12284 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
12285 Call install_menu_quit_handler. Move to mactoolbox.c.
12286
12287 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
12288 (Selection): Move typedef to macgui.h.
12289 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
12290 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
12291 Make variables non-static.
12292 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12293 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
12294 Make functions non-static.
12295 (Vmac_service_selection) [MAC_OSX]: Likewise.
12296 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
12297 (mac_valid_selection_target_p, mac_clear_selection)
12298 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12299 (mac_put_selection_value, mac_selection_has_target_p)
12300 (mac_get_selection_value, mac_get_selection_target_list)
12301 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
12302 Move functions to mactoolbox.c.
12303 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
12304 Likewise.
12305 (copy_scrap_flavor_data, mac_handle_service_event)
12306 (install_service_handler) [MAC_OSX]: Likewise.
12307 (syms_of_macselect) <Vmac_dnd_known_types>:
12308 Use mac_dnd_default_known_types.
12309
12310 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
12311 Move to mactoolbox.c.
12312 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12313 (Fx_selection_owner_p): Add EXFUN.
12314 (install_window_handler, remove_window_handler, XSetWindowBackground):
12315 Remove externs.
12316 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12317 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12318 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12319 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12320 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12321 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12322 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12323 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12324 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12325 (create_and_show_popup_menu, mac_get_selection_from_symbol)
12326 (mac_valid_selection_target_p, mac_clear_selection)
12327 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12328 (mac_put_selection_value, mac_selection_has_target_p)
12329 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12330 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12331 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12332 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12333 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12334 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12335 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12336 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12337 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12338
12339 * mactoolbox.c: New file.
12340
12341 2008-04-18 Jason Rumney <jasonr@gnu.org>
12342
12343 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12344
12345 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12346
12347 * character.c (Fmultibyte_char_to_unibyte):
12348 Return latin1 chars unchanged.
12349
12350 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12351 relocated if it points to `name'.
12352
12353 2008-04-17 Kenichi Handa <handa@m17n.org>
12354
12355 * data.c (Faset): Allow setting a multibyte character in an
12356 ASCII-only unibyte string.
12357
12358 * lisp.h (STRING_SET_MULTIBYTE): New macro.
12359
12360 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
12361
12362 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12363 done in config.h.
12364
12365 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
12366
12367 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12368 (Fchar_direction): Add usage in the docstring.
12369
12370 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
12371
12372 * keyboard.c (read_key_sequence): Remove always-true checks.
12373
12374 2008-04-14 Jason Rumney <jasonr@gnu.org>
12375
12376 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12377 compatibility struct, for better underline positioning.
12378
12379 2008-04-13 David Hansen <david.hansen@gmx.net>
12380
12381 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12382 string.
12383
12384 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12385
12386 * m/hp800.h (XUINT, XSET): Remove.
12387
12388 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
12389
12390 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12391 previous change.
12392
12393 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12394
12395 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12396 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12397
12398 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12399
12400 * keymap.h (map_keymap_canonical): Declare.
12401 * xmenu.c (single_keymap_panes): Use it.
12402
12403 2008-04-11 Glenn Morris <rgm@gnu.org>
12404
12405 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12406 set the target's value to that of the alias.
12407
12408 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12409
12410 * term.c (set_tty_color_mode): Left over typo.
12411
12412 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
12413
12414 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12415 only after check for file name handler functions. Signal, when
12416 native functionality is not supported.
12417 (syms_of_fileio): Declare it unconditionally.
12418
12419 2008-04-10 Jason Rumney <jasonr@gnu.org>
12420
12421 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12422 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12423
12424 * w32.c (logon_network_drive): Also logon to remote drives that
12425 are mapped to drive letters.
12426
12427 2008-04-10 Glenn Morris <rgm@gnu.org>
12428
12429 * xdisp.c (truncate-partial-width-windows): Doc fix.
12430
12431 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12432
12433 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12434 Move functions to minibuffer.el.
12435 (syms_of_fileio): Don't declare them.
12436
12437 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12438
12439 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12440 (syms_of_minibuf): Remove its initialization.
12441
12442 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12443
12444 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
12445
12446 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12447
12448 2008-04-09 Jason Rumney <jasonr@gnu.org>
12449
12450 * makefile.w32-in (distclean): Delete makefile too.
12451 (maintainer-clean): New target.
12452
12453 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12454
12455 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12456 for new font backend and composite cases.
12457
12458 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12459
12460 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12461 Most of the code moved to run_timers.
12462 (do_pending_atimers): Call run_timers.
12463 (run_timers): New function.
12464
12465 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12466 run atimers.
12467
12468 * process.c (wait_reading_process_output): The same as above.
12469
12470 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12471
12472 * minibuf.c (last_exact_completion): Remove variable.
12473 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12474 (complete_and_exit_1, complete_and_exit_2)
12475 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12476 (Fdisplay_completion_list, display_completion_list_1)
12477 (Fminibuffer_completion_help, Fself_insert_and_exit)
12478 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12479 minibuffer.el.
12480 (syms_of_minibuf): Remove corresponding initializations.
12481
12482 * keyboard.c (Qdeactivate_mark): New var.
12483 (command_loop_1): Use it to call `deactivate-mark'.
12484 (syms_of_keyboard): Initialize it.
12485
12486 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12487 to another frame.
12488 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12489 Don't call set_tty_color_mode.
12490 (store_frame_param): Reset previous_frame rather than call
12491 set_tty_color_mode.
12492 * term.c (set_tty_color_mode): Rewrite.
12493 * dispextern.h (set_tty_color_mode): New type.
12494 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12495
12496 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12497
12498 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12499 for generic chars, which do not exist any more in emacs-unicode.
12500
12501 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
12502
12503 * coding.c (detect_coding_emacs_mule)
12504 (Ffind_operation_coding_system): Fix typo.
12505
12506 2008-04-08 Jason Rumney <jasonr@gnu.org>
12507
12508 * w32uniscribe.c (SNAME): Extract only symbol name.
12509
12510 * w32font.h (struct w32_metric_cache): New struct.
12511 (w32font_info): Use it.
12512 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12513 (CACHE_BLOCKSIZE): New constants.
12514
12515 * w32font.c (Qja, Qko, Qzh): New symbols.
12516 (syms_of_w32font): Initialise them.
12517 (font_matches_spec): Use them to filter by language.
12518 (recompute_cached_metrics): Remove function.
12519 (compute_metrics, clear_cached_metrics): New functions.
12520 (w32font_encode_char): Use them to manage metric cache.
12521 (w32font_text_extents): Cache metrics for all glyphs on demand.
12522 Delay converting glyph indices to WORD until needed.
12523 (w32font_open_internal): Initialize metric cache to empty.
12524 (registry_to_w32_charset): Charset should always be a symbol.
12525 (fill_in_logfont, list_all_matching_fonts): Family should
12526 always be a symbol.
12527
12528 2008-04-06 Jason Rumney <jasonr@gnu.org>
12529
12530 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12531 Give up if glyph indices not supported. Use uniscribe obtained
12532 ABC widths for individual metrics. Map glyph clusters back to
12533 characters using fClusterStart flag. Return number of glyphs
12534 produced, not chars processed.
12535 (uniscribe_shape): Map char at FROM to current glyph.
12536
12537 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12538
12539 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12540 Use SetMenuItemHierarchicalMenu.
12541
12542 2008-04-05 Jason Rumney <jasonr@gnu.org>
12543
12544 * image.c (pbm_load): Allow color values up to 65535.
12545 Throw an error if max_color_idx is outside the supported range.
12546 Report an error when image size is invalid.
12547 Read two bytes at a time when raw images have max_color_idx above 255.
12548
12549 2008-04-05 Eli Zaretskii <eliz@gnu.org>
12550
12551 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12552 cFileName a file name that includes `?' characters, use the 8+3
12553 alias in cAlternateFileName instead.
12554
12555 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12556
12557 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12558 append "CCL: Quitted" when the CCL program is quitted.
12559 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12560
12561 * ccl.h (struct ccl_program): New member quit_silently.
12562
12563 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
12564
12565 * search.c (compile_pattern_1): Treat non-nil and non-string of
12566 search-spaces-regexp as nil.
12567
12568 * minibuf.c (Fassoc_string): Tweak docstring.
12569
12570 2008-04-05 Eli Zaretskii <eliz@gnu.org>
12571
12572 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12573 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12574 2008-03-14 to force inode be positive.
12575
12576 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12577 _S_* ones, since we now use our own sys/stat.h.
12578 (stat, fstat): Don't mangle the inode number.
12579 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12580
12581 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12582
12583 * frame.h (struct frame): Give one more bit to `visible' since we use
12584 values larger than 1 to indicate obscured frames on ttys.
12585
12586 * keymap.c (Qkeymap_canonicalize): New var.
12587 (Fmap_keymap_internal): New fun.
12588 (describe_map): Use keymap-canonicalize.
12589
12590 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12591 (Fundo_boundary): Set them.
12592 (syms_of_undo): Initialize them.
12593 (record_point): Use them instead of last_point_position*.
12594 (last_undo_buffer): Change type.
12595
12596 2008-04-04 Jason Rumney <jasonr@gnu.org>
12597
12598 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12599 (recompute_cached_metrics): Don't set ascent and descent per char.
12600
12601 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12602 (uniscribe_check_otf): Add GC protection before consing.
12603 Rearrange loop for counting features.
12604
12605 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12606
12607 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12608 buffer with byte-size of source buffer.
12609
12610 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
12611
12612 * callint.c (Fcall_interactively): Handle temporary region even
12613 when shift-select-mode is off.
12614
12615 2008-04-03 Jason Rumney <jasonr@gnu.org>
12616
12617 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12618
12619 2008-04-03 Kenichi Handa <handa@m17n.org>
12620
12621 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12622 (CATEGORY_MASK_UTF_16): Likewise.
12623 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12624 binary file.
12625 (detect_coding): Add null-byte detection for a binary file.
12626 (detect_coding_system): Likewise.
12627
12628 2008-04-03 Jason Rumney <jasonr@gnu.org>
12629
12630 * w32uniscribe.c: New file.
12631
12632 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12633
12634 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12635
12636 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12637 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12638 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12639 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12640 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12641 (Qphonetic): New symbols.
12642 (syms_of_w32font): Initialize them.
12643 (font_supported_scripts): Use them.
12644 (w32font_list_family): List all charsets.
12645 (w32font_text_extents, recompute_cached_metrics): Fix metric
12646 calculations.
12647 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12648 Give opentype fonts their own format.
12649 (font_matches_spec): New arguments backend and logfont.
12650 Handle :otf spec for uniscribe backend.
12651 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12652 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12653
12654 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12655 font backend.
12656 (globals_of_w32fns): Initialize uniscribe font backend.
12657
12658 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12659 dependencies.
12660 (w32uniscribe.$(O)): New file to build.
12661 (FONT_OBJ): Include w32uniscribe.$(O).
12662 (LIBS): Add uniscribe libraries.
12663
12664 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12665
12666 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
12667
12668 * callint.c (Vshift_select_mode): New var.
12669 (Finteractive): Document new ^ spec.
12670 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12671 is present.
12672
12673 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12674 (command_loop_1): Avoid running the direct display versions of
12675 forward-char and backward-char if shift-selection may occur.
12676 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12677 shift-translation takes place.
12678
12679 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12680 avoid clobbering by define-minor-mode.
12681
12682 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12683 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12684
12685 * syntax.c (Fforward_word): Add ^ interactive spec.
12686
12687 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12688 (Fscroll_right): Add ^ interactive spec.
12689
12690 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12691
12692 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12693
12694 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12695
12696 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12697
12698 2008-03-31 Juri Linkov <juri@jurta.org>
12699
12700 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12701
12702 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12703
12704 * gtkutil.c (xg_set_geometry): Fix indentation.
12705 (xg_resize_outer_widget): Remove.
12706 (x_wm_size_hint_off): Fix indentation.
12707 (xg_frame_set_char_size): Call flush_and_sync after
12708 gtk_window_resize.
12709 (x_wm_set_size_hint): Pass NULL as geometry window to
12710 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12711 Add menu bar and tool bar height to base height.
12712 (xg_update_frame_menubar, free_frame_menubar)
12713 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12714 (update_frame_tool_bar, free_frame_tool_bar):
12715 Change xg_resize_outer_widget to xg_frame_set_char_size.
12716
12717 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
12718
12719 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12720 (Fdbus_call_method): New parameter TIMEOUT.
12721 (dbus-send-signal): Optimize UNGCPRO call.
12722
12723 2008-03-29 Juri Linkov <juri@jurta.org>
12724
12725 * window.c (Fdisplay_buffer): Move call to
12726 Vsplit_window_preferred_function out of conditions that check
12727 if window is eligible for vertical splitting.
12728 When Vsplit_window_preferred_function is non-nil, call it and use
12729 its non-nil return value as window. Otherwise, continue doing
12730 vertical splitting using Fsplit_window with arg horflag=nil.
12731 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12732 default value from `split-window' to nil.
12733
12734 2008-03-29 Juri Linkov <juri@jurta.org>
12735
12736 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12737 for interactive code letters 'b' and 'B'.
12738
12739 2008-03-29 Eli Zaretskii <eliz@gnu.org>
12740
12741 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12742 multibyte string.
12743
12744 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12745
12746 * keyboard.c (pending_funcalls): New var.
12747 (timer_check): Run it.
12748 (syms_of_keyboard): Initialize it.
12749 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12750 (Vdelete_terminal_functions): New vars.
12751 (syms_of_terminal): Initialize them.
12752 (Fdelete_terminal): Run delete-terminal-functions.
12753 * xdisp.c (safe_eval): Rewrite.
12754 (safe_call2): New fun.
12755 * frame.c (Qdelete_frame_functions): New var.
12756 (syms_of_frame): Initialize it.
12757 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12758 * lisp.h (safe_call2, pending_funcalls): Declare.
12759
12760 2008-03-28 Andreas Schwab <schwab@suse.de>
12761
12762 * indent.c (Fmove_to_column): Move declaration before statements.
12763
12764 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12765
12766 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12767 (struct frame): Use bit fields for boolean vars.
12768
12769 * process.c (server_accept_connection): Simplify naming.
12770 (emacs_get_tty_pgrp): Use SDATA.
12771
12772 * coding.c (decode_coding_object): Fix last change.
12773
12774 2008-03-27 Jason Rumney <jasonr@gnu.org>
12775
12776 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12777
12778 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12779
12780 * charset.c (Fdefine_charset_internal): Change the way of
12781 registering charsets in Vcharset_order_list.
12782 (syms_of_charset): Make the charset `eight-bit' supplementary.
12783
12784 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12785
12786 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12787 operations, to avoid having the difference between pointers
12788 overflow.
12789
12790 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12791
12792 * indent.c (check_display_width): New fun.
12793 (scan_for_column): Use it.
12794
12795 * data.c (syms_of_data): Mark most-positive-fixnum and
12796 most-negative-fixnum as constants.
12797
12798 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12799
12800 * indent.c (scan_for_column): Extract from current_column_1.
12801 Merge with the same code from Fmove_to_column.
12802 (current_column_1, Fmove_to_column): Use it.
12803
12804 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12805
12806 * keymap.c (map_keymap_internal): New fun.
12807 (map_keymap): Use it.
12808 (Fmap_keymap_internal): New fun.
12809 (Fmap_keymap): Remove left-out test from before make_save_value.
12810
12811 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12812
12813 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12814 Use XCAR/XCDR.
12815
12816 * process.h (struct Lisp_Process): Remove filter_multibyte.
12817 * process.c (QCfilter_multibyte): Remove.
12818 (setup_process_coding_systems): Don't use filter_multibyte.
12819 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12820 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12821 (Fset_process_filter_multibyte): Change the coding-system to
12822 approximate the previous behavior.
12823 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12824 coding-system.
12825
12826 * coding.c (decode_coding_object): When not decoding into a buffer,
12827 obey the coding system's preference of (uni|multi)byte.
12828
12829 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12830
12831 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12832 every char is changed and has a different byte-length.
12833 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12834 Fix int -> EMACS_INT.
12835
12836 2008-03-23 David Hansen <david.hansen@gmx.net>
12837
12838 * dbusbind.c (xd_read_message): Remove extra copying of message
12839 strings. Check for NULL `interface' or `member'.
12840
12841 2008-03-22 Eli Zaretskii <eliz@gnu.org>
12842
12843 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12844 cFileName a file name that includes `?' characters, use the 8+3
12845 alias in cAlternateFileName instead.
12846
12847 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12848
12849 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12850
12851 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12852
12853 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12854 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12855 work on current_buffer only instead (that was already the case
12856 for some of the code anyway).
12857 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12858 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12859 (SET_PT, SET_PT_BOTH): Adjust.
12860 * intervals.h (set_point, temp_set_point, set_point_both)
12861 (temp_set_point_both): Remove redundant declarations.
12862
12863 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12864
12865 * fileio.c (Finsert_file_contents):
12866 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12867 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12868 when buffer != current_buffer anyway.
12869
12870 2008-03-20 Andreas Schwab <schwab@suse.de>
12871
12872 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12873 as default.
12874
12875 2008-03-19 Jason Rumney <jasonr@gnu.org>
12876
12877 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12878 (syms_of_w32fns): Initialize them.
12879 (HOURGLASS_ID): New constant.
12880 (x_window_to_frame): Don't check hourglass_window.
12881 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12882 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12883 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12884 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12885 Only change the cursor if hourglass is not active.
12886 (Fx_create_frame): Initialize frame's current_cursor.
12887 (hourglass_atimer): Remove.
12888 (hourglass_started): New function.
12889 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12890 (show_hourglass): Adapt to w32, changing argument to frame.
12891
12892 * w32term.h (struct w32_output): Remove hourglass_window.
12893 Add current_cursor.
12894
12895 * eval.c (call_debugger, Fsignal):
12896 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12897 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12898 (Fexecute_extended_command, cancel_hourglass_unwind):
12899 * minibuf.c (read_minibuf):
12900 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12901
12902 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12903
12904 * window.c (run_funs): New fun.
12905 (run_window_configuration_change_hook): Use it to run the buffer-local
12906 and the global part of the hook.
12907
12908 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12909 (unwind_format_mode_line): Restore selected window.
12910 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12911
12912 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12913
12914 * editfns.c (Fchar_equal): Check they are valid characters.
12915
12916 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12917
12918 2008-03-17 Andreas Schwab <schwab@suse.de>
12919
12920 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12921 against a charset.
12922
12923 * lisp.h (Fbuffer_list): Declare.
12924
12925 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
12926
12927 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12928 handlebox_widget is != 0.
12929
12930 2008-03-16 Juri Linkov <juri@jurta.org>
12931
12932 * callint.c (Fcall_interactively): For interactive code letters
12933 'b' and 'B' put the buffer list into the list of default "future"
12934 values of the minibuffer.
12935
12936 2008-03-16 Andreas Schwab <schwab@suse.de>
12937
12938 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12939 modifiers.
12940
12941 * regex.c (re_match_2_internal): Correct matching of a charset
12942 against latin-1 characters.
12943
12944 2008-03-16 Kenichi Handa <handa@m17n.org>
12945
12946 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12947 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12948 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12949 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12950 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12951 CHAR_STRING_ADVANCE.
12952 (produce_chars): Fix for the case that the source and the
12953 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12954 instead of CHAR_STRING_ADVANCE.
12955 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12956 STRING_CHAR_ADVANCE.
12957
12958 2008-03-15 Andreas Schwab <schwab@suse.de>
12959
12960 * regex.c (re_match_2_internal): Correct matching of eight bit
12961 characters in unibyte strings.
12962
12963 2008-03-15 Martin Rudalics <rudalics@gmx.at>
12964
12965 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12966 at end of range when it coincides with the end of the buffer.
12967
12968 2008-03-14 Eli Zaretskii <eliz@gnu.org>
12969
12970 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12971
12972 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12973
12974 2008-03-14 Jason Rumney <jasonr@gnu.org>
12975
12976 * editfns.c (initial_tz): New variable.
12977 (syms_of_editfns): Initialize it.
12978 (Fset_time_zone_rule): Set it when first called.
12979 Use it when TZSTRING is nil.
12980
12981 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12982 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12983 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12984 (globals_of_w32fns): Initialize them.
12985 (compute_tip_xy): Use them to position tooltips.
12986
12987 2008-03-14 Glenn Morris <rgm@gnu.org>
12988
12989 * emacs.c (main): Revert previous change.
12990 (standard_args): Revert -internal-script back to -scriptload,
12991 and remove the long-option form.
12992
12993 2008-03-13 Glenn Morris <rgm@gnu.org>
12994
12995 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12996 Remove option -enable-font-backend.
12997
12998 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12999
13000 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
13001
13002 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
13003
13004 * xterm.c (x_connection_closed): For GTK: If this is the last
13005 terminal just exit without closing the display.
13006
13007 2008-03-11 Jason Rumney <jasonr@gnu.org>
13008
13009 * w32font.c (w32font_full_name): Use floor to round.
13010
13011 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
13012
13013 * sound.c (alsa_configure): Declare vol at beginning of block.
13014
13015 * fontset.c (Ffontset_info): Remove extra semicolon.
13016
13017 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13018
13019 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
13020 size of resulting string.
13021
13022 2008-03-10 Jason Rumney <jasonr@gnu.org>
13023
13024 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
13025
13026 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13027
13028 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
13029 Don't pretend as if characters with display property haven't been
13030 consumed for string-replacing-string case.
13031
13032 2008-03-08 Kim F. Storm <storm@cua.dk>
13033
13034 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
13035 (get_next_display_element, next_element_from_string)
13036 (next_element_from_ellipsis, next_element_from_buffer): Use it.
13037
13038 2008-03-08 Andreas Schwab <schwab@suse.de>
13039
13040 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
13041
13042 2008-03-06 Jason Rumney <jasonr@gnu.org>
13043
13044 * w32font.c (w32_registry): Take font_type argument. Use ANSI
13045 when charset not specified. Only translate ANSI to unicode when
13046 font_type is truetype.
13047 (w32font_coverage_ok): New function.
13048 (add_font_entity_to_list): Use it to filter unsuitable fonts.
13049
13050 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
13051
13052 * lread.c (Fread_char): Resolve modifiers.
13053 (Fread_char_exclusive): Likewise.
13054
13055 * character.c (char_resolve_modifier_mask): New function.
13056 (char_string): Use char_resolve_modifier_mask.
13057 (Fchar_resolve_modifiers): New function.
13058 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
13059 function.
13060
13061 2008-03-04 Jason Rumney <jasonr@gnu.org>
13062
13063 * makefile.w32-in: Always include w32font.c in the build.
13064 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
13065
13066 2008-03-04 Andreas Schwab <schwab@suse.de>
13067
13068 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
13069 (versionclean): Likewise.
13070
13071 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
13072
13073 * .cvsignore: Add oo.
13074
13075 2008-03-03 Andreas Schwab <schwab@suse.de>
13076
13077 * coding.c (decode_coding_object): Inhibit gap shrinking while
13078 decoding in place.
13079
13080 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
13081
13082 * w32term.c: Remove unused include "gnu.h".
13083 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
13084
13085 * gnu.h: Rename to ...
13086 * emacs-icon.h: ... this.
13087 * xterm.c: Use emacs-icon.h instead of gnu.h.
13088 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
13089
13090 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
13091
13092 * w32font.c: Include math.h.
13093
13094 2008-03-03 Jason Rumney <jasonr@gnu.org>
13095
13096 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
13097 Compute options separately.
13098 (w32font_open_internal): Set glyph_idx before caching metrics.
13099
13100 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
13101 Define if system headers don't.
13102 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
13103 (w32font_encode_char): Don't declare here.
13104
13105 * w32font.c (Quniscribe, QCformat): New symbols.
13106 (syms_of_w32font): Define them.
13107 (w32font_has_char): Indicate uncertainty.
13108 (w32font_encode_char): Encode as glyph point. Make static.
13109 (recompute_cached_metrics): New function.
13110 (w32font_open_internal): Use it. Set font to use glyph points
13111 initially. Set format based on type of font.
13112 (w32font_text_extents, w32font_draw): Optionally use glyph points.
13113 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
13114 on it. Set format based on information available here.
13115 (add_font_entity_to_list): Identify backend based on opentype_only.
13116
13117 2008-03-02 Andreas Schwab <schwab@suse.de>
13118
13119 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
13120
13121 * coding.c (decode_coding_big5, produce_chars):
13122 Fix typos in last change.
13123
13124 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
13125
13126 * gnu.h: New icon.
13127
13128 2008-03-02 Kenichi Handa <handa@m17n.org>
13129
13130 * coding.c (decode_coding_utf_8): When eol-type of CODING is
13131 `dos', don't decode '\r' if that is the last in the source.
13132 (decode_coding_utf_16, decode_coding_emacs_mule)
13133 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13134 (decode_coding_raw_text, decode_coding_charset): Likewise.
13135 (produce_chars): Don't decode EOL here. Use EMACS_INT.
13136
13137 2008-03-01 Jason Rumney <jasonr@gnu.org>
13138
13139 * w32font.c (w32font_full_name): Report point size for scalable fonts.
13140
13141 2008-03-01 Kim F. Storm <storm@cua.dk>
13142
13143 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
13144
13145 2008-03-01 Jason Rumney <jasonr@gnu.org>
13146
13147 * w32font.c (w32font_full_name): New function.
13148 (w32font_open_internal): Use it.
13149
13150 2008-03-01 Kim F. Storm <storm@cua.dk>
13151
13152 * dispnew.c (line_draw_cost): Fix invalid glyph check.
13153
13154 2008-03-01 Jason Rumney <jasonr@gnu.org>
13155
13156 * font.c (font_unparse_fcname): Increase len when style is a symbol.
13157
13158 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
13159
13160 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
13161 xg_frame_resized when the event is for the edit widget.
13162
13163 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
13164
13165 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
13166 set_char_size.
13167 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
13168 operations on widgets here. Just set frame size if needed.
13169 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
13170 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
13171 (x_wm_set_size_hint): Set size hints on the edit widget only, not
13172 the whole frame.
13173 (xg_create_tool_bar): Move attachment of the tool bar to
13174 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
13175 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
13176
13177 2008-03-01 Jason Rumney <jasonr@gnu.org>
13178
13179 * w32fns.c (w32_msg_pump): Disable debug code.
13180
13181 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13182
13183 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
13184
13185 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
13186
13187 * xdisp.c (next_overlay_string): Don't set
13188 overlay_strings_at_end_processed_p if we're currently reading from
13189 a display string.
13190
13191 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
13192
13193 * xdisp.c (get_overlay_strings_1): Fix typo.
13194
13195 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
13196
13197 * xdisp.c (get_overlay_strings_1): Add missing argument type.
13198
13199 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
13200
13201 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
13202
13203 * xdisp.c (display_mode_element): Cancel the previous change.
13204 (decode_mode_spec): Likewise.
13205 (handle_auto_composed_prop): Don't make composition if it->string
13206 is a string.
13207
13208 2008-02-27 Kim F. Storm <storm@cua.dk>
13209
13210 * lisp.h (GLYPH): Change type from int to struct with separate char
13211 and face_id members.
13212 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
13213 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
13214 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
13215 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
13216 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
13217 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
13218 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
13219 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
13220 handle new Lisp glyph code encoding, either an integer or a cons.
13221
13222 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
13223 (GLYPH_ALIAS): Delete.
13224 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
13225 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
13226 (GLYPH_FROM_CHAR): Replace macro by ...
13227 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
13228
13229 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
13230 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
13231 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
13232 (GLYPH_INVALID_P): New macro.
13233 (spec_glyph_lookup_face): Update prototype.
13234
13235 * dispnew.c (line_draw_cost): Adapt to new glyph type.
13236 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
13237 new glyph code encoding.
13238 (spec_glyph_lookup_face): No return value; update passed glyph instead.
13239 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
13240
13241 * xdisp.c (get_next_display_element, next_element_from_display_vector):
13242 Adapt to new glyph type and new glyph code encoding.
13243
13244 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
13245
13246 * indent.c (current_column, current_column_1, Fmove_to_column)
13247 (compute_motion): Adapt to new glyph code encoding.
13248
13249 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
13250
13251 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
13252
13253 * process.c (wait_reading_process_output): Check for window
13254 changes caused by timers.
13255 Suggested by Johan Bockgård.
13256
13257 2008-02-27 Glenn Morris <rgm@gnu.org>
13258
13259 * emacs.c (USAGE1): Add `--disable-font-backend'.
13260
13261 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
13262
13263 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
13264 is made to the buffer.
13265
13266 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
13267
13268 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
13269 (face_at_string_position):
13270 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
13271 (face_at_string_position):
13272 * xdisp.c (display_string, next_overlay_change):
13273 * buffer.h (overlays_at):
13274 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
13275 Update callers.
13276
13277 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
13278
13279 * editfns.c (Fformat): Doc fix.
13280
13281 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
13282
13283 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
13284 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
13285 (Ffont_otf_alternates, Fquery_font): Doc fixes.
13286
13287 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13288
13289 * buffer.c (Fbuffer_swap_text): New function.
13290 (syms_of_buffer): Defsubr it.
13291
13292 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
13293
13294 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
13295
13296 2008-02-25 Jason Rumney <jasonr@gnu.org>
13297
13298 * w32font.c (w32font_draw): Draw one character at a time when padding.
13299
13300 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13301
13302 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
13303 Handle a nil arg. Use run_window_configuration_change_hook.
13304 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
13305 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
13306 Use run_window_configuration_change_hook.
13307
13308 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13309
13310 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
13311 1-pixel width.
13312
13313 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13314
13315 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13316 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13317 if the glyph in the font is zero pixel with.
13318
13319 * dispextern.h (struct glyph_string): New member padding_p.
13320
13321 * w32font.c (w32font_draw): Pay attention to s->padding_p.
13322
13323 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13324
13325 * xfont.c (xfont_draw): Pay attention to s->padding_p.
13326
13327 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13328
13329 * font.c: If the font driver doesn't have `shape' function, return Qnil.
13330
13331 2008-02-25 Jason Rumney <jasonr@gnu.org>
13332
13333 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13334
13335 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
13336
13337 Allow fine-grained image-cache flushing.
13338 * dispextern.h (struct image): Add `dependencies' field.
13339 (clear_image_caches): Change arg to Lisp_Object.
13340 * image.c (make_image): Initialize `dependencies' field.
13341 (clear_image_cache): Change arg to allow fine-grained flushing.
13342 Perform the flush even if image-cache-eviction-delay is nil.
13343 (clear_image_caches): Change arg to Lisp_Object.
13344 (Fclear_image_cache): Expand meaning of the argument.
13345 (mark_image): Mark `dependencies' field.
13346 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13347 (lface_hash): Use XHASH rather than XFASTINT.
13348 (face_at_buffer_position): Fix int -> EMACS_INT position.
13349 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13350 (select_frame_for_redisplay): Remove code duplication.
13351 (redisplay_internal): Adapt arg to call to clear_image_caches.
13352
13353 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
13354
13355 * s/vms4-0.h:
13356 * s/vms4-2.h:
13357 * s/vms4-4.h:
13358 * s/vms5-5.h: Remove, unused.
13359
13360 * s/irix5-2.h:
13361 * s/irix6-0.h:
13362 * s/riscos5.h:
13363 * s/mach-bsd4-3.h:
13364 * m/mips4.h: Remove files for obsolete systems.
13365
13366 * Makefile.in:
13367 * filelock.c:
13368 * unexmips.c:
13369 * m/hp9000s300.h:
13370 * m/iris4d.h:
13371 * s/aix3-1.h:
13372 * s/hpux.h:
13373 * s/msdos.h:
13374 * s/usg5-0.h:
13375 * s/usg5-2-2.h:
13376 * s/usg5-2.h:
13377 * s/usg5-3.h: Remove references to obsolete variables.
13378
13379 * s/irix5-0.h: Remove, move all the contents ...
13380 * s/irix6-5.h: ... here. Simplify.
13381 * config.in: Regenerate.
13382
13383 2008-02-24 Jason Rumney <jasonr@gnu.org>
13384
13385 * w32term.c (x_draw_glyph_string_background): Clear the background
13386 manually when cleartype is in use.
13387 (x_draw_glyph_string_foreground): Draw text transparently when
13388 cleartype is in use.
13389
13390 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13391 a font into it unless we have to.
13392
13393 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13394
13395 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13396 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
13397
13398 2008-02-18 Jason Rumney <jasonr@gnu.org>
13399
13400 * w32fns.c (Fw32_shell_execute): Encode parameters.
13401
13402 2008-02-09 Eli Zaretskii <eliz@gnu.org>
13403
13404 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13405
13406 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
13407
13408 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13409
13410 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13411
13412 * xterm.c (x_set_offset): Don't change the gravity if
13413 CHANGE_GRAVITY is -1.
13414
13415 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
13416
13417 * fileio.c (auto_save_error_occurred): New var.
13418 (auto_save_error): Set it.
13419 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13420 error occurred.
13421
13422 2008-02-23 Eli Zaretskii <eliz@gnu.org>
13423
13424 * w32.c (globals_of_w32): Add initializations for
13425 g_b_init_get_sid_sub_authority and
13426 g_b_init_get_sid_sub_authority_count.
13427
13428 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13429
13430 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13431 (font_parse_xlfd): Use them for sanity check.
13432 (Finternal_set_font_style_table): Make sure the table is bijective.
13433
13434 Consolidate the image_cache to the terminal struct.
13435 * termhooks.h (P_): Remove redundant def.
13436 (struct terminal): New field `image_cache'.
13437 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13438 of FRAME_X_IMAGE_CACHE.
13439 * xterm.h (struct x_display_info): Remove image_cache field.
13440 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13441 * w32term.h (struct w32_display_info): Remove image_cache field.
13442 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13443 * macterm.h (struct mac_display_info): Remove image_cache field.
13444 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13445 * xterm.c (x_term_init):
13446 * w32term.c (w32_term_init):
13447 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13448 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13449 Remove declarations.
13450 (clear_image_caches, mark_image_cache): New declarations.
13451 * xfaces.c (clear_face_cache):
13452 * xdisp.c (redisplay_internal): Use clear_image_caches.
13453 * image.c (clear_image_cache): Don't check that a frame is on
13454 a window-system before checking if it shares the same cache.
13455 (clear_image_caches): New function.
13456 (Fclear_image_cache): Use it.
13457 (mark_image): Move from allo.c.
13458 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13459 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13460 (mark_object): Don't call mark_image_cache for frames.
13461 (mark_terminals): Call mark_image_cache.
13462
13463 * lisp.h (Fdelete_terminal): Declare.
13464
13465 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13466 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13467 wrong_type_argument.
13468
13469 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13470
13471 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13472 malayalam.el, and tamil.el. Add sinhala.el.
13473
13474 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13475
13476 * xterm.c (x_connection_closed): Consolidate identical tests.
13477 (x_delete_terminal): Don't crash if called via x_connection_closed.
13478
13479 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13480
13481 * xdisp.c (decode_mode_spec): New arg string.
13482 (display_mode_element): Adjust for the above change.
13483
13484 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13485
13486 * callint.c (Fcall_interactively): Use AREF.
13487
13488 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13489
13490 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13491
13492 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13493
13494 * xfns.c (Fx_show_tip): Set string to " " if empty.
13495
13496 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13497
13498 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13499 with Qt.
13500
13501 2008-02-17 Kenichi Handa <handa@m17n.org>
13502
13503 * ftfont.c (ftfont_shape): Return Lispy number.
13504
13505 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13506 for GCs.
13507 (Finternal_set_font_selection_order): Call font_update_sort_order
13508 only when enable_font_backend is set.
13509 (realize_x_face): Set face->font_info to that of default face only
13510 when enable_font_backend is set.
13511
13512 * xdisp.c (handle_composition_prop): Set it->c to the fist
13513 character of the composed region.
13514 (fill_composite_glyph_string): Set base_face->font_info to
13515 s->font_info. Get a face for ascii from base_face->ascii_face.
13516 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13517 with a face already decided.
13518 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13519 non-negative.
13520 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13521 call font_prepare_composition unconditionally.
13522
13523 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13524
13525 * xterm.h (struct x_display_info): New member font.
13526
13527 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13528 (x_set_mouse_face_gc, x_new_font): Likewise.
13529 (x_term_init): Setup display_info->font.
13530 (x_delete_terminal): Free display_info->font.
13531
13532 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13533
13534 * ftxfont.c (ftxfont_default_fid): Delete it.
13535 (ftxfont_open): Set xfont->fid to 0.
13536 (ftxfont_end_for_frame): Clear data specific to the frame and the
13537 font-driver.
13538
13539 * xftfont.c (xftfont_default_fid): Delete it.
13540 (xftfont_open): Set xfont->fid to 0.
13541
13542 * fontset.c (FONTSET_OBJLIST): New macro.
13543 (fontset_find_font): Update font-object list of the fontset.
13544 (free_realized_fontset): New function.
13545 (free_face_fontset): Call free_realized_fontset.
13546 (Ffont_info): Call font_close_object only when enable_font_backend
13547 is set.
13548
13549 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13550 [HAVE_NTGUI]: Include w32term.h.
13551 [MAC_OS]: Include macterm.ch.
13552 (font_otf_ValueRecord): Use make_number.
13553 (font_finish_cache): Fix handling of reference count.
13554 (font_clear_cache): Update num_fonts.
13555 (font_open_entity): Update smallest_char_width and
13556 smallest_font_height of the frame.
13557 (font_close_object): Update num_fonts.
13558 (Fclear_font_cache): Fix finding the target cache data.
13559
13560 2008-02-16 Glenn Morris <rgm@gnu.org>
13561
13562 * fontset.c (Finternal_char_font): Fix compilation warning.
13563
13564 2008-02-16 Eli Zaretskii <eliz@gnu.org>
13565
13566 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13567 instead of char arrays. Enlarge the size of array passed to
13568 get_token_information.
13569
13570 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13571 warnings.
13572
13573 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13574
13575 * .gdbinit: Don't set `args', it breaks gdb --args.
13576
13577 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13578
13579 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13580 within a narrowed buffer.
13581
13582 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13583
13584 * coding.c (decode_coding_object, encode_coding_object):
13585 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13586
13587 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13588
13589 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13590 hardcoding 1.
13591 (detect_coding_system):
13592 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13593 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13594 * insdel.c (insert_from_gap):
13595 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13596 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13597 (string_to_multibyte):
13598 * character.c (chars_in_text, multibyte_chars_in_text):
13599 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13600
13601 * character.h (FETCH_STRING_CHAR_ADVANCE)
13602 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13603 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13604 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13605
13606 * casefiddle.c (casify_region): Only call after-change and composition
13607 functions on the part of the region that was changed.
13608
13609 * keyboard.c (read_avail_input):
13610 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13611
13612 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13613
13614 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13615 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13616
13617 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
13618
13619 * w32menu.c (push_submenu_start, push_submenu_end)
13620 (push_left_right_boundary, push_menu_pane, push_menu_item):
13621 * keyboard.c (read_key_sequence): Don't pass args with side effects
13622 to AREF, it fails when compiling with -DENABLE_CHECKING.
13623
13624 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13625
13626 * Makefile.in (${lispsource}international/charprop.el):
13627 Delete this target.
13628
13629 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13630 emacs-unicode-2.
13631
13632 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13633
13634 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13635
13636 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13637
13638 * frame.c (Qnoelisp): New symbol.
13639 (syms_of_frame): Initialize it.
13640 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13641 harmless Elisp code, from a strong `force' from x_connection_closed.
13642 * frame.h (Qnoelisp): Declare.
13643 * xterm.c (x_connection_closed): Pass `noelisp'.
13644
13645 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13646 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13647 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13648 rather than `int' for the type of `type'.
13649
13650 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13651
13652 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13653
13654 * Makefile.in (GNUC): Remove support for gcc-1.x.
13655
13656 2008-02-10 Richard Stallman <rms@gnu.org>
13657
13658 * lisp.h (ASET): Use AREF, not ASLOT.
13659
13660 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13661
13662 * lisp.h (ASET): Check bounds.
13663
13664 2008-02-10 Glenn Morris <rgm@gnu.org>
13665
13666 * buffer.c (mode-name): Doc fix.
13667
13668 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13669
13670 * Makefile.in:
13671 * emacs.c:
13672 * gmalloc.c:
13673 * keyboard.c:
13674 * lisp.h:
13675 * m/ibm370aix.h:
13676 * process.c:
13677 * regex.c:
13678 * s/hpux.h:
13679 * sysdep.c:
13680 * sysselect.h:
13681 * systty.h:
13682 * unexec.c:
13683 * w32term.c:
13684 * xsmfns.c:
13685 * xterm.c: Remove code that deals with obsolete variables.
13686
13687 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13688
13689 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13690 nothing else needs it anymore.
13691
13692 2008-02-09 Eli Zaretskii <eliz@gnu.org>
13693
13694 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13695 instead of unibyte_char_to_multibyte.
13696
13697 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13698
13699 * s/gnu-linux.h: Remove commented out code.
13700
13701 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13702
13703 * Makefile.in: Update what RMS says about using autoconf.
13704 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13705 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13706 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13707 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13708
13709 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13710
13711 * keymap.c (Fkey_description): Move side effect outside of macro call.
13712
13713 * xfaces.c (Finternal_make_lisp_face):
13714 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13715
13716 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13717 (syms_of_fontset): Use ASET.
13718
13719 * fns.c (concat): Move side effect outside of macro call.
13720 (hash_clear): Use ASET.
13721
13722 2008-02-08 Richard Stallman <rms@gnu.org>
13723
13724 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13725 If FORCE, and frame has a surrogate minibuffer for another frame,
13726 delete the other frame first.
13727
13728 2008-02-07 Timo Savola <timo.savola@iki.fi>
13729
13730 * xterm.c (x_detect_focus_change): Handle embed client message.
13731 (handle_one_xevent): Ditto.
13732 (handle_one_xevent): If embedded and we get a button press/release,
13733 request focus.
13734 (xembed_set_info, xembed_send_message): New functions.
13735 (x_make_frame_visible): Call xembed_set_info if embedded.
13736 (x_make_frame_invisible): Call xembed_set_info if embedded.
13737 (x_term_init): Initialize Xatom_XEMBED.
13738 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13739 (x_iconify_frame): Ditto.
13740
13741 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13742 (enum xembed_info, enum xembed_message, enum xembed_focus)
13743 (enum xembed_modifier, enum xembed_accelerator): New.
13744 (xembed_set_info, xembed_send_message): Declare.
13745 (FRAME_X_EMBEDDED_P): New.
13746
13747 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13748 gtk_plug_new.
13749
13750 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13751 window ID of a frame.
13752 (x_window): Reparent frame if embedded.
13753 (Fx_create_frame): Don't set border width if embedded.
13754
13755 * emacs.c (USAGE3): Add --parent-id.
13756 (standard_args): Ditto.
13757
13758 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13759
13760 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13761
13762 2008-02-07 Jim Meyering <meyering@redhat.com>
13763
13764 Use "do...while (0)", not "if (1)...else" in macro definitions.
13765 The latter provokes a warning from gcc about the empty else, when
13766 followed by ";". Also, without that trailing semicolon, it would
13767 silently swallow up any following statement.
13768 * syntax.h (SETUP_SYNTAX_TABLE)
13769 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13770 * buffer.h (DECODE_POSITION): Likewise.
13771 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13772 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13773 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13774 (FETCH_CHAR_ADVANCE): Likewise.
13775 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13776
13777 2008-02-07 Jim Meyering <meyering@redhat.com>
13778
13779 * lread.c [lint]: Don't include <sys/inode.h>.
13780
13781 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13782
13783 * xselect.c (x_handle_dnd_message):
13784 * xmenu.c (digest_single_submenu, xmenu_show):
13785 * xdisp.c (with_echo_area_buffer_unwind_data)
13786 (format_mode_line_unwind_data, unwind_format_mode_line)
13787 (display_menu_bar):
13788 * eval.c (Ffetch_bytecode):
13789 * doc.c (store_function_docstring):
13790 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13791 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13792 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13793
13794 2008-02-07 Kenichi Handa <handa@m17n.org>
13795
13796 * ftxfont.c (ftxfont_open): Don't set
13797 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13798
13799 * ftfont.c (ftfont_open): Fix previous change.
13800
13801 2008-02-06 Jason Rumney <jasonr@gnu.org>
13802
13803 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13804 Use cached metrics for ASCII characters.
13805 (w32font_open_internal): Don't set font's owning_frame.
13806 Cache metrics for ASCII characters.
13807
13808 * w32font.h (struct w32font_info): Add ascii_metrics.
13809 Remove owning_frame.
13810
13811 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13812
13813 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13814 to negative value.
13815
13816 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13817
13818 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13819
13820 * charset.c (syms_of_charset): Set QCtest and Qeq.
13821
13822 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13823
13824 * process.c (Fstart_process):
13825 * callproc.c (Fcall_process): Handle the case where
13826 Funhandled_file_name_directory returns nil.
13827
13828 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13829 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13830 * font.c (check_gstring): Use them and AREF to access the vector before
13831 we know it's really a gstring.
13832 (Ffont_shape_text): Fix typo.
13833 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
13834
13835 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13836 Declare.
13837
13838 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13839
13840 2008-02-05 Jason Rumney <jasonr@gnu.org>
13841
13842 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13843 Set smallest_font_height and smallest_char_width in display info.
13844
13845 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13846
13847 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13848
13849 2008-02-05 Miles Bader <miles@gnu.org>
13850
13851 * xfaces.c (get_lface_attributes, merge_named_face)
13852 (lookup_named_face, lookup_derived_face, realize_named_face):
13853 Revert 2008-02-01 change by cyd@stupidchicken.com.
13854
13855 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13856
13857 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13858 fallback fonts.
13859 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13860
13861 2008-02-04 Jason Rumney <jasonr@gnu.org>
13862
13863 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13864 set full_name.
13865 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13866
13867 2008-02-03 Jason Rumney <jasonr@gnu.org>
13868
13869 * makefile.w32-in (OBJ1): Include font.o here.
13870 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13871
13872 2008-02-02 Jason Rumney <jasonr@gnu.org>
13873
13874 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13875
13876 2008-02-01 Jason Rumney <jasonr@gnu.org>
13877
13878 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13879
13880 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13881
13882 2008-02-01 Andreas Schwab <schwab@suse.de>
13883
13884 * Makefile.in (shortlisp, lisp): Update for rename of
13885 ../lisp/language/myanmar.el.
13886
13887 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
13888
13889 * xfaces.c (get_lface_attributes): Delete function.
13890 (merge_named_face, lookup_named_face, lookup_derived_face)
13891 (realize_named_face): Call lface_from_face_name directly, and use
13892 the fact that merge_face_vectors does not alter its FROM argument.
13893
13894 2008-02-01 Jason Rumney <jasonr@gnu.org>
13895
13896 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13897 input in the default locale. Handle non-Unicode multibyte input.
13898
13899 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13900
13901 * fontset.c (reorder_font_vector): Exclude nil elements from the
13902 font group. Don't try multiple fonts.
13903 (fontset_font): Adjust for the above change.
13904 (Finternal_char_font): Return nil if the found font doesn't
13905 contain the character ch.
13906
13907 * Makefile.in (lisp, shortlisp): Add cham.el.
13908
13909 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13910
13911 * font.h (FONTP): Make it return 1 also for a font-object.
13912
13913 * .gdbinit (xfontset): New function.
13914
13915 * font.c (font_find_for_lface): Check if the character C is
13916 supported or not only for the first font.
13917
13918 * fontset.c (reorder_font_vector): Fix typo.
13919 (fontset_find_font): Don't add a font-spec specifying a script.
13920 Use 0 (not Qt) for the indication of empty font-group. Change the
13921 format of RFONT-DEF. Return Qt if no font in the font-group
13922 support the character.
13923 (fontset_font): Adjust for the above change. If no font was
13924 found the character, remember that.
13925 (face_for_char): Adjust for the change of RFONT-DEF.
13926 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13927 no font for the target.
13928 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13929
13930 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13931
13932 * font.c (font_load_for_face): Handle the case that the font in
13933 face->lface is a string.
13934
13935 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13936
13937 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13938
13939 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13940
13941 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13942 Fix previous change. If the frame is not on a window system,
13943 signal an error.
13944
13945 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13946
13947 * coding.c (decode_coding_object, encode_coding_object): Adjust
13948 marker positions after conversion.
13949
13950 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13951
13952 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13953
13954 * font.c (font_find_for_lface): Fix the handling of the return
13955 value of font_has_char.
13956 (Ffont_shape_text): Fix previous change.
13957
13958 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13959 (fontset_ref_and_range): Delete it.
13960 (fontset_find_font): Call char_table_ref_and_range instead of
13961 FONTSET_REF_AND_RANGE.
13962 (make_fontset): Don't setup font groups of Latin here.
13963 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13964 (new_fontset_from_font): Make the specified font the default for
13965 all Latin characters.
13966
13967 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13968
13969 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13970 is on a window system before accessing the fontset of the frame.
13971
13972 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13973
13974 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13975
13976 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13977 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13978
13979 * font.c (Ffont_shape_text): If the font driver doesn't have a
13980 shaper function, make zero-width glyphs to have at least one-pixel
13981 width. Fix setting of `to' field of glyphs.
13982
13983 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13984
13985 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13986 glyphs.
13987
13988 * font.h (struct font_driver): Improve docstring of member `shape'.
13989
13990 2008-02-01 Kenichi Handa <handa@m17n.org>
13991
13992 * composite.c (syms_of_composite): Fix docstring of
13993 auto-composition-function.
13994
13995 * font.h (LGLYPH_SIZE): New macro.
13996
13997 * font.c (Ffont_fill_gstring): Stop filling when a character not
13998 supported by the font is found.
13999 (Ffont_shape_text): When a shape callback function returns nil,
14000 try at most two more times with larger gstring.
14001 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
14002
14003 * xdisp.c (handle_auto_composed_prop): Change the argument to
14004 auto-composition-function.
14005
14006 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
14007 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
14008 Lispy glyph and store it in the lgstring.
14009
14010 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
14011
14012 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
14013
14014 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14015
14016 * font.c (Ffont_shape_text): Avoid unnecessary composition.
14017
14018 * fontset.c (Vfont_encoding_charset_alist): New variable.
14019 (syms_of_fontset): DEFVAR it.
14020 (reorder_font_vector, fontset_find_font): Optimize for the case of
14021 no need of reordering.
14022 (face_for_char): Map the charset property by
14023 Vfont_encoding_charset_alist.
14024
14025 2008-02-01 Jason Rumney <jasonr@gnu.org>
14026
14027 * w32font.c (logfonts_match): Don't check adstyle here.
14028 (font_matches_spec): Check here against physical font instead.
14029 (add_font_entity_to_list): Avoid some substitutions.
14030
14031 * font.c (font_parse_fcname): Default weight and slant to normal.
14032 (font_score): Prefer normal fonts if weight or slant unspecified.
14033 (font_score) [WINDOWSNT]: Scale weight difference down to closer
14034 match freetype scores.
14035
14036 2008-02-01 Jason Rumney <jasonr@gnu.org>
14037
14038 * w32font.c (w32font_text_extents): Don't use the frame stored in the
14039 font, as it may have been deleted.
14040 (w32_enumfont_pattern_entity): Map generic family to adstyle using
14041 most common hyphenless variation.
14042 (logfonts_match): Check generic family.
14043 (font_matches_spec): Don't check generic family here.
14044 (fill_in_logfont): Set generic family based on adstyle.
14045
14046 * w32font.h (w32font_get_cache): Update declaration.
14047
14048 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14049
14050 * ftfont.c (ftfont_get_cache): Adjust the argument type.
14051
14052 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
14053 If none of the new drivers are available, call font_update_drivers
14054 with the old drivers.
14055
14056 * w32font.c (w32font_get_cache): Adjust the argument type.
14057
14058 * xfont.c (xfont_get_cache): Adjust the argument type.
14059
14060 * font.h (struct font_driver): Change argument type of get_cache.
14061
14062 * xftfont.c (xftfont_start_for_frame): Delete prototype.
14063
14064 * font.c (Ffont_get): Fix arguments to Fassoc.
14065 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
14066 (font_clear_cache): New function.
14067 (font_list_entities, font_matching_entity): Use font_get_cache.
14068 (font_update_drivers): Call font_clear_cache when finishing a driver.
14069
14070 * fontset.c (fontset_find_font): Fix previous change.
14071
14072 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14073
14074 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
14075 dpyinfo->font_table.
14076 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
14077 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
14078
14079 * font.c (font_at): Handle the case that the arg C is negative.
14080 Handle the unibyte case.
14081 (Ffont_at): Call font_at with the arg C -1.
14082
14083 * xdisp.c (handle_auto_composed_prop): Don't get a character at
14084 the position here, and call font_at with the arg C -1.
14085 Don't check the range of the existing composition at the point.
14086
14087 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14088
14089 * fontset.c (fontset_add): New args charset_id and family.
14090 Change caller.
14091 (load_font_get_repertory, fontset_find_font): Assume that
14092 font_spec is always a font-spec object.
14093 (Fset_fontset_font): Always store a font-spec object in a fontset.
14094
14095 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
14096 instead of get_property_and_range.
14097
14098 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14099
14100 * xftfont.c (struct xftfont_info): Delete the member ft_face.
14101 (xftfont_open): Don't keep locking face.
14102 (xftfont_close): Don't unlock face.
14103 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
14104
14105 * fontset.c (fontset_find_font): Don't prefer a font of
14106 supplementary charset.
14107
14108 2008-02-01 Kenichi Handa <handa@m17n.org>
14109
14110 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
14111 script, langsys_tag to langsys, new member script.
14112 (OTF_TAG_STR): Terminate by '\0'.
14113 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
14114 listing to the script specified in that property. Fix arg to
14115 OTF_check_features.
14116
14117 2008-02-01 Jason Rumney <jasonr@gnu.org>
14118
14119 * w32font.h: New file.
14120
14121 * w32font.c: Include it.
14122 (struct w32font_info): Add owning_frame field. Move to w32font.h.
14123 (w32font_open): Set owning_frame.
14124 (w32font_text_extents): Use owning_frame.
14125 (struct font_callback_data): Add opentype_only field.
14126 (add_font_entity_to_list): Use it to filter fonts.
14127 Don't check against full name.
14128 (w32font_list_internal): New function.
14129 (w32font_list): Use it.
14130 (w32font_match_internal): New function.
14131 (w32font_match): Use it.
14132 (w32font_open_internal): New function.
14133 (w32font_open): Use it.
14134 (w32font_get_cache, w32font_close, w32font_has_char)
14135 (w32font_encode_char, w32font_text_extents, w32font_draw):
14136 Make non-static.
14137
14138 * makefile.w32-in (w32font.o): Depend on w32font.h.
14139
14140 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14141
14142 * charset.c (Fdefine_charset_internal): Record a supplementary
14143 charset at the tail of Vcharset_order_list.
14144
14145 * font.c (Ffont_shape_text): Fix the return value.
14146
14147 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
14148
14149 * xdisp.c (handle_auto_composed_prop): Fix previous change.
14150
14151 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14152
14153 * ftfont.c (struct OpenTypeSpec): New struct.
14154 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
14155 (ftfont_get_open_type_spec): New function.
14156 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
14157
14158 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
14159
14160 2008-02-01 Jason Rumney <jasonr@gnu.org>
14161
14162 * w32font.c (add_font_entity_to_list): Compare only the beginning
14163 of full name.
14164
14165 2008-02-01 Kenichi Handa <handa@m17n.org>
14166
14167 * xdisp.c (handle_auto_composed_prop): Simplify the code.
14168 Never return HANDLED_RECOMPUTE_PROPS.
14169
14170 2008-02-01 Kenichi Handa <handa@m17n.org>
14171
14172 * font.c (font_gstring_produce): Delete it.
14173
14174 * composite.h (COMPOSITION_METHOD):
14175 Handle COMPOSITION_WITH_GLYPH_STRING.
14176
14177 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14178
14179 * xfont.c (Qx): Delete.
14180 (syms_of_xfont): Don't initialize Qx.
14181
14182 * composite.h (enum composition_method):
14183 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
14184
14185 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14186
14187 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
14188 (choose_face_font): Accept new form of font-spec.
14189
14190 * frame.h (font_driver_list): Declare it unconditionally.
14191 (struct frame): Define members font_driver_list and font_data_list
14192 unconditionally.
14193
14194 * fontset.c: Include "font.h" unconditionally.
14195 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
14196 (Fset_fontset_font): Accept a font-spec object.
14197
14198 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
14199 PIXEL_SIZE part a wild card.
14200
14201 * dispextern.h (struct glyph_string): Define members clip and
14202 num_clips unconditionally.
14203 (struct face): Define members font_info and extra unconditionally.
14204
14205 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
14206 ftfont_info only when HAVE_LIBOTF is defined.
14207
14208 2008-02-01 Andreas Schwab <schwab@suse.de>
14209
14210 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
14211 and end.
14212
14213 2008-02-01 Jason Rumney <jasonr@gnu.org>
14214
14215 * w32font.c (w32font_driver): Add new fields.
14216
14217 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14218
14219 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
14220 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
14221 (LIBES): Add @M17N_FLT_CFLAGS@.
14222
14223 * composite.c (compose_text): Don't treat the new style
14224 composition specially.
14225
14226 * emacs.c (main): Call syms_of_font unconditionally.
14227
14228 * font.h (FONT_ENTITY_NOT_LOADABLE)
14229 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
14230 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
14231 (struct font_driver): New member shape.
14232 (font_registry_charsets): Extern it.
14233 (font_find_for_lface, font_prepare_composition): Adjust prototype.
14234 (font_otf_capability, font_drive_otf): Delete their externs.
14235
14236 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
14237 (font_charset_alist, font_registry_charsets): Move from xfont.c
14238 and rename.
14239 (font_prop_validate_otf): New function.
14240 (font_property_table): Register it for QCotf.
14241 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
14242 (font_drive_otf): Delete.
14243 (font_prepare_composition): New arg F. Adjust for the change of
14244 lispy gstring.
14245 (font_find_for_lface): New arg C.
14246 (font_load_for_face): Adjust for the change of font_find_for_lface.
14247 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
14248 lispy gstring.
14249 (Ffont_shape_text): New function.
14250 (Fopen_font): If the font size is not given, use 12-pixel.
14251 (Ffont_at): New arg STRING.
14252 (syms_of_font): Initialize font_charset_alist.
14253 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
14254 conditionally.
14255
14256 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
14257 fonts of the same font-spec. Change the format of RFONT-DEF.
14258 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
14259 Adjust for the change of RFONT-DEF.
14260 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
14261
14262 * ftfont.h: New file.
14263
14264 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
14265 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14266 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14267 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
14268 font_otf_capability and font_drive_otf, set ftfont_shape.
14269 (ftfont_list): Adjust for the change of :otf property value.
14270 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
14271 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
14272 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
14273 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14274 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
14275 (otf_gstring, gstring, m17n_flt_initialized): New variables.
14276
14277 * w32term.c (x_draw_composite_glyph_string_foreground):
14278 Adjust for the change of lispy gstring.
14279
14280 * xdisp.c (handle_composition_prop): Adjust for the change of
14281 lispy gstring. Call a function for auto-composition with the
14282 third arg it->window.
14283 (fill_composite_glyph_string): Adjust for the change of lispy string.
14284 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
14285
14286 * xfaces.c (set_font_frame_param): Adjust for the change of
14287 font_find_for_lface.
14288
14289 * xfont.c (x_font_charset_alist): Move to font.c and rename.
14290 (xfont_registry_charsets): Likewise. Change caller.
14291 (syms_of_xfont): Don't handle x_font_charset_alist.
14292
14293 * xftfont.c: Include "ftfont.h".
14294 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14295 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14296 (xftfont_close) [HAVE_LIBOTF]: Close otf.
14297 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14298 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
14299 Set xftfont_driver.shape to xftfont_shape.
14300
14301 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14302 the change of lispy gstring.
14303
14304 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14305
14306 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
14307
14308 2008-02-01 Jason Rumney <jasonr@gnu.org>
14309
14310 * w32font.c (w32font_draw): Fill background manually.
14311
14312 2008-02-01 Jason Rumney <jasonr@gnu.org>
14313
14314 * font.c (Qfontp): Remove unused symbol.
14315 (QCantialias): New symbol.
14316 (syms_of_font): Define it.
14317 (font_property_table): Set a validator for QCantialias.
14318
14319 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14320 Define if not already.
14321 (QCfamily): Share with xfaces.c.
14322 (Qstandard, Qsubpixel, Qnatural): New symbols.
14323 (syms_of_w32font): Define them. Don't define QCfamily here.
14324 (w32_antialias_type, lispy_antialias_type): New functions.
14325 (w32_enumfont_pattern_entity): New arg requested_font.
14326 Set antialias parameter if non-default was requested.
14327 (fill_in_logfont): Fill in lfQuality if :antialias specified.
14328
14329 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14330
14331 * lread.c (read1): Undo the previous change.
14332
14333 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
14334
14335 * frame.c (Fdelete_frame): Call font_update_drivers only when
14336 USE_FONT_BACKEND is defined.
14337
14338 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14339
14340 * font.h (struct font_bitmap): New member bits_per_pixel.
14341 (struct font_driver): New members start_for_frame and end_for_frame.
14342 (struct font_data_list): New struct.
14343 (font_put_frame_data, font_get_frame_data): Extern them.
14344
14345 * frame.h (struct frame): New member font_data_list.
14346
14347 * font.c (font_update_drivers): Call driver->start_for_frame and
14348 driver->end_for_frame at proper timings.
14349 (font_put_frame_data, font_get_frame_data): New functions.
14350 (Ffont_spec): Add usage in the docstring.
14351
14352 * frame.c (make_frame): Initialize f->font_data_list to NULL.
14353 (Fdelete_frame): Call font_update_drivers.
14354
14355 * xftfont.c (struct xftface_info): Delete the member xft_draw.
14356 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14357 (xftfont_get_xft_draw): New function.
14358 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
14359 (xftfont_end_for_frame): New function.
14360 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14361
14362 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14363 Change argument. Cache GCs in the per-frame data.
14364 (struct ftxfont_frame_data): New struct.
14365 (ftxfont_draw_bitmap): New arg gc_fore and flush.
14366 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14367 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
14368 (ftxfont_end_for_frame): New function.
14369 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14370
14371 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14372
14373 2008-02-01 Kenichi Handa <handa@m17n.org>
14374
14375 * xselect.c (Vselection_coding_system)
14376 (Vnext_selection_coding_system): Delete them.
14377 (syms_of_xselect): Don't declare selection-coding-system and
14378 next-selection-coding-system. They are declared in select.el.
14379
14380 2008-02-01 Jason Rumney <jasonr@gnu.org>
14381
14382 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14383
14384 * w32fns.c: Include imm.h.
14385 (get_composition_string_fn, get_ime_context_fn): New optional
14386 system functions.
14387 (globals_of_w32fns): Load them from imm32.dll.
14388 (ignore_ime_char): New flag.
14389 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14390 WM_IME_ENDCOMPOSITION messages.
14391
14392 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14393 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14394
14395 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14396
14397 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14398 (READCHAR_REPORT_MULTIBYTE): New macro.
14399 (readchar): New 2nd arg MULTIBYTE.
14400 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14401 Make symbol's name multibyte according to the multibyteness of the
14402 source.
14403
14404 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14405
14406 * xfaces.c (face_for_overlay_string): Call lookup_face with
14407 correct arguments (fix of synching with the trunk).
14408
14409 2008-02-01 Kenichi Handa <handa@m17n.org>
14410
14411 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14412 (font_prop_validate_non_neg, font_prop_validate_spacing):
14413 Delete argument prop_index.
14414 (font_property_table): Change arguments to validater. Change Callers.
14415 (font_lispy_object): Delete.
14416 (font_at): Use font_find_object instead fo font_lispy_object.
14417
14418 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14419
14420 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14421 and file names.
14422
14423 2008-02-01 Jason Rumney <jasonr@gnu.org>
14424
14425 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14426 (font_matches_spec): Remove debug output.
14427 (add_font_entity_to_list): Avoid using substituted fonts.
14428
14429 2008-02-01 Jason Rumney <jasonr@gnu.org>
14430
14431 * doc.c (Fsnarf_documentation):
14432 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14433
14434 2008-02-01 Miles Bader <miles@gnu.org>
14435
14436 * dispextern.h (struct glyph_row): Only define "clip" field if
14437 HAVE_WINDOW_SYSTEM is defined.
14438
14439 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14440
14441 Fix up multi-tty merge.
14442
14443 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14444 and indentation.
14445
14446 * xfaces.c (free_realized_face, clear_face_gcs):
14447 Include font_done_for_face in the input_blocked section, just in case.
14448
14449 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14450 (get_char_face_and_encoding): Undo last change and remove the *other*
14451 duplicate definition (i.e. keep the one that's better scoped and that
14452 includes code for the font-backend).
14453
14454 * terminal.c (create_terminal): Default keyboard_coding to
14455 `no-conversion' and terminal_coding to `undecided'.
14456
14457 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14458
14459 * fontset.c (free_realized_fontsets): Check that the table entry does
14460 contain a fontset before trying to compare it to `base'.
14461
14462 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14463 syms_of_charset, and syms_of_coding earlier because init_window_once
14464 now needs Vcoding_system_hash_table to be setup.
14465
14466 * coding.h (default_buffer_file_coding): Remove.
14467
14468 * coding.c (default_buffer_file_coding): Remove.
14469 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14470 than ->symbol, and use the terminal-local coding system.
14471 (syms_of_coding): Don't setup the coding-systems that are not
14472 terminal-local.
14473 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14474
14475 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14476 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14477
14478 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14479 in chartab.c and were re-added here by mistake.
14480 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14481
14482 * doc.c (Fsnarf_documentation):
14483 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14484 src to etc.
14485
14486 * ChangeLog.10: Add mistakenly removed entry.
14487
14488 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14489
14490 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14491
14492 2008-02-01 Miles Bader <miles@gnu.org>
14493
14494 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14495 Add extra args to FACE_FOR_CHAR.
14496
14497 2008-02-01 Kenichi Handa <handa@m17n.org>
14498
14499 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14500 in sequence.
14501
14502 * chartab.c (map_sub_char_table, map_char_table): If the range
14503 contains just one character, call the function with that character
14504 even if the depth is not 3.
14505
14506 2008-02-01 Jason Rumney <jasonr@gnu.org>
14507
14508 * w32font.c (w32font_text_extents): Calculate metrics for the
14509 whole string.
14510
14511 2008-02-01 Jason Rumney <jasonr@gnu.org>
14512
14513 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14514
14515 2008-02-01 Jason Rumney <jasonr@gnu.org>
14516
14517 * w32term.c (x_set_glyph_string_clipping): Use
14518 get_glyph_string_clip_rects.
14519 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14520 Adjust for the change of struct glyph_string.
14521
14522 * w32font.c (w32font_draw): Do clipping here.
14523
14524 2008-02-01 Kenichi Handa <handa@m17n.org>
14525
14526 * xftfont.c (xftfont_draw): Adjust for the change of struct
14527 glyph_string.
14528
14529 * xterm.c (x_set_glyph_string_clipping): Use
14530 get_glyph_string_clip_rects.
14531 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14532 Adjust for the change of struct glyph_string.
14533
14534 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14535 the resulting clip(s}.
14536 (expose_overlaps): Add arg r. Change callers. Set it to
14537 row->clip temporarily.
14538 (expose_window): Redraw rows overlapping the exposed area.
14539
14540 * dispextern.h (struct glyph_row): New member clip.
14541 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14542 clip_height, new member clip, and num_clips.
14543
14544 2008-02-01 Kenichi Handa <handa@m17n.org>
14545
14546 * data.c (Fchar_or_string_p): Fix docstring.
14547
14548 2008-02-01 Kenichi Handa <handa@m17n.org>
14549
14550 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14551 create a temporary XftDraw object.
14552
14553 2008-02-01 Kenichi Handa <handa@m17n.org>
14554
14555 * font.c (Ffontp): Fix docstring.
14556
14557 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14558 strong evidence of ISO-2022.
14559
14560 2008-02-01 Kenichi Handa <handa@m17n.org>
14561
14562 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14563 SYNTAX_ENTRY_FOLLOW_PARENT.
14564
14565 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14566
14567 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14568 its type.
14569 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14570 Update to the new type of weak_hash_tables and next_weak.
14571
14572 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14573 a plain C pointer to Lisp_Hash_Table.
14574
14575 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14576 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14577 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14578 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14579 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14580 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14581 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14582 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14583 (GC_EQ): Remove since they've been identical to their non-GC_
14584 alter-egos ever since the markbit was eradicated.
14585
14586 * alloc.c:
14587 * buffer.c:
14588 * buffer.h:
14589 * data.c:
14590 * fileio.c:
14591 * filelock.c:
14592 * fns.c:
14593 * frame.h:
14594 * lisp.h:
14595 * macterm.c:
14596 * print.c:
14597 * process.c:
14598 * w32fns.c:
14599 * w32menu.c:
14600 * w32term.c:
14601 * xfns.c:
14602 * xmenu.c:
14603 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14604
14605 2008-02-01 Kenichi Handa <handa@m17n.org>
14606
14607 * chartab.c (map_sub_char_table): Make it work for the top-level
14608 char-table. Fix handling of parent char-table.
14609 (map_char_table): Adjust for the above change.
14610
14611 2008-02-01 Jason Rumney <jasonr@gnu.org>
14612
14613 * w32font.c (Qgdi): Rename from Qw32.
14614
14615 2008-02-01 Jason Rumney <jasonr@gnu.org>
14616
14617 * w32bdf.c (get_quoted_string): Make function static.
14618
14619 2008-02-01 Kenichi Handa <handa@m17n.org>
14620
14621 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14622 bigger ascent and descent than those of the font, use them as
14623 font's ascent and descent.
14624
14625 2008-02-01 Kenichi Handa <handa@m17n.org>
14626
14627 * Makefile.in (${lispsource}international/charprop.el): Move this
14628 target within "#ifdef HAVE_UNIDATA" and "#endif".
14629
14630 2008-02-01 Kenichi Handa <handa@m17n.org>
14631
14632 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14633 (shortlisp): Add ../lisp/language/tai-viet.el.
14634
14635 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
14636
14637 * Makefile.in (${lispsource}international/charprop.el): Depend on
14638 temacs${EXEEXT}.
14639
14640 2008-02-01 Jason Rumney <jasonr@gnu.org>
14641
14642 * w32font.c (w32font_close): Delete the GDI font object.
14643
14644 * w32menu.c: Include character.h.
14645
14646 * w32proc.c: Likewise.
14647
14648 * w32select.c: Likewise.
14649
14650 * makefile.w32-in (w32proc.o): Depend on character.h.
14651
14652 2008-02-01 Jason Rumney <jasonr@gnu.org>
14653
14654 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14655
14656 * w32menu.c (syms_of_w32menu): Likewise.
14657
14658 * w32proc.c (syms_of_ntproc): Likewise.
14659
14660 * w32select.c (syms_of_w32select): Likewise.
14661
14662 * w32term.c (syms_of_w32term): Likewise.
14663
14664 2008-02-01 Jason Rumney <jasonr@gnu.org>
14665
14666 * w32font.c (w32font_draw): Delete brush after using it.
14667
14668 2008-02-01 Jason Rumney <jasonr@gnu.org>
14669
14670 * w32font.c (w32font_open): Don't set font_idx.
14671 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14672 to font settings.
14673 (w32font_draw): Fill background explicitly.
14674
14675 2008-02-01 Jason Rumney <jasonr@gnu.org>
14676
14677 * w32term.c (w32_initialize): Don't call w32font_initialize.
14678
14679 * w32font.c (w32font_info): Remove subranges.
14680 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14681 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14682 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14683 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14684 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14685 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14686 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14687 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14688 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14689 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14690 New symbols.
14691 (font_callback_data): New struct.
14692 (w32font_list, w32font_match): Use it.
14693 (w32font_open): Don't populate subranges.
14694 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14695 (w32font_encode_char): Always return unicode code-point as-is.
14696 (w32font_text_extents): Supply a transformation matrix to
14697 GetGlyphOutline. Never look up by glyph index. Avoid looping
14698 twice. Use unicode version of GetTexExtentPoint32 instead of
14699 glyph index version.
14700 (set_fonts_frame): Remove.
14701 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14702 set frame parameter. Use backward compatible fake foundries.
14703 Save generic family in extra slot under QCfamily. Make width slot
14704 constant. Save QCspacing value. Save list of scripts instead of
14705 binary subranges.
14706 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14707 (add_font_entity_to_list): Use font_callback_data struct. Filter
14708 unwanted fonts.
14709 (add_one_font_entity_to_list): Use font_callback_data struct.
14710 (w32_registry): Default to iso10646_1.
14711 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14712 string font registries. Don't fill in font name if it is a generic
14713 family name, fill family instead. Use spacing, family and script
14714 extra info to fill pitch, family and charset fields.
14715 (list_all_matching_fonts): Use font_callback_data struct.
14716 (unicode_range_for_char): Remove.
14717 (font_supported_scripts): New function.
14718 (w32font_initialize): Remove.
14719 (syms_of_w32font): Update which symbols are defined.
14720
14721 2008-02-01 Jason Rumney <jasonr@gnu.org>
14722
14723 * font.c (font_pixel_size): Reverse assq_no_quit args.
14724
14725 * w32term.h (FONT_WIDTH): Report max width, not average.
14726 (FONT_MAX_WIDTH): Remove.
14727 (FONT_AVG_WIDTH): New macro.
14728
14729 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14730 redefinition of FONT_WIDTH.
14731
14732 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14733 (w32_cache_char_metrics): Use FONT_WIDTH.
14734
14735 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14736
14737 2008-02-01 Jason Rumney <jasonr@gnu.org>
14738
14739 * w32font.c (w32font_open): Make lfHeight negative.
14740
14741 * w32fns.c (x_default_font_parameter): Use new style font name.
14742 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14743
14744 2008-02-01 Jason Rumney <jasonr@gnu.org>
14745
14746 * w32font.c (QCsubranges): New symbol.
14747 (w32font_open, w32font_has_char): Get subranges from subproperty
14748 of extra.
14749 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14750 (syms_of_w32font): Define :subranges symbol.
14751
14752 * font.c (font_put_extra): Expose externally.
14753
14754 * font.h (font_put_extra): Move declaration from font.c.
14755
14756 * font.c (Ffont_get): Use font driver to determine otf capability.
14757 (adjust_anchor): Check if driver defines anchor_point before using.
14758
14759 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14760 (w32font_draw): Use options.
14761 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14762 Fix detection of truetype fonts.
14763 (registry_to_w32_charset): Handle charsets other than iso8859-1
14764 expressed as lisp symbols.
14765 (w32_registry): Express charset as lisp symbol.
14766 (fill_in_logfont): Reverse pixel and point height logic.
14767 Don't set width here. Set quality to default.
14768
14769 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14770 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14771
14772 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14773 Remove redundant loop and allocation.
14774
14775 * makefile.w32-in (font.o, w32font.o): New objects.
14776 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14777 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14778
14779 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14780 STORE_XCHARB a valid l-value.
14781
14782 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14783 calculations for non-Truetype fonts.
14784 (x_draw_glyph_string): Sync with xterm.c.
14785 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14786 Remove redundant code.
14787 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14788
14789 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14790 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14791
14792 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14793 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14794
14795 * w32font.c: New file for w32 font backend.
14796
14797 2008-02-01 Kenichi Handa <handa@m17n.org>
14798
14799 * term.c: Don't include "buffer.h" twice.
14800
14801 2008-02-01 Kenichi Handa <handa@m17n.org>
14802
14803 * character.c (Funibyte_string): New function.
14804 (syms_of_character): Defsubr it.
14805
14806 2008-02-01 Jason Rumney <jasonr@gnu.org>
14807
14808 * w32term.c [USE_FONT_BACKEND]:
14809 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14810 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14811 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14812 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14813 (x_free_frame_resources): Sync with xterm.c.
14814
14815 2008-02-01 Andreas Schwab <schwab@suse.de>
14816
14817 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14818 char-table size.
14819
14820 2008-02-01 Kenichi Handa <handa@m17n.org>
14821
14822 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14823
14824 2008-02-01 Kenichi Handa <handa@m17n.org>
14825
14826 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14827 font_otf_gpos, add font_drive_otf.
14828
14829 * fontset.c (fontset_find_font): Pay attention to font size
14830 specified for a font.
14831 (reorder_font_vector): Check contents of font_def.
14832
14833 * font.c (struct otf_list): Delete it.
14834 (otf_list): Make it a lisp variable.
14835 (otf_open): Use lispy otf_list.
14836 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14837 (check_otf_features): New function.
14838 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14839 New functions.
14840 (font_drive_otf): New function merging font_otf_gsub and
14841 font_otf_gpos.
14842 (font_open_for_lface): New arg spec. Change argument order.
14843 (font_load_for_face): Adjust for the change of font_open_for_lface.
14844 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14845 Ffont_otf_gpos.
14846 (syms_of_font): Staticpro otf_list. Delete defsubr of
14847 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14848
14849 * xfaces.c (set_font_frame_param): Adjust for the change of
14850 font_open_for_lface.
14851
14852 * font.h (font_open_for_lface): Adjust prototype.
14853 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14854 member otf_drive.
14855 (font_otf_gsub, font_otf_gpos): Delete externs.
14856 (font_drive_otf): Extern it.
14857
14858 2008-02-01 Kenichi Handa <handa@m17n.org>
14859
14860 * font.c (font_at): If the window W is not on a window system,
14861 return Qnil.
14862
14863 * coding.c (produce_chars, encode_coding): Don't call
14864 insert_from_gap if no characters to produce.
14865
14866 2008-02-01 Kenichi Handa <handa@m17n.org>
14867
14868 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14869 Fclear_face_cache.
14870
14871 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14872
14873 2008-02-01 Miles Bader <miles@gnu.org>
14874
14875 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14876 Parse "--disable-font-backend" option.
14877 (standard_args): Add "--disable-font-backend" option.
14878
14879 2008-02-01 Kenichi Handa <handa@m17n.org>
14880
14881 * fontset.c (fontset_find_font): New function.
14882 (fontset_font): Use fontset_find_font.
14883 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14884 Register the specified font for all Latin characters.
14885 (new_fontset_from_font): Register the specified font for all Latin
14886 characters.
14887 (dump_fontset): For a realized fontset, include the base fontset
14888 name in the returned vector.
14889
14890 2008-02-01 Kenichi Handa <handa@m17n.org>
14891
14892 * character.h (CHAR_STRING): Cast C to unsigned on calling
14893 char_string.
14894
14895 * character.c (char_string): Type of arg C changed to unsigned.
14896 Signal an error if C is an invalid character code.
14897
14898 * editfns.c (general_insert_function, Fchar_to_string):
14899 Use CHARACTERP, not INTEGERP.
14900
14901 2008-02-01 Kenichi Handa <handa@m17n.org>
14902
14903 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14904 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14905
14906 * regex.c (analyse_first): Fix for multibyte characters in "case
14907 charset:" and "case categoryspec:".
14908
14909 2008-02-01 Andreas Schwab <schwab@suse.de>
14910
14911 * Makefile.in (LIBES): Move standard libraries to the end.
14912
14913 2008-02-01 Kenichi Handa <handa@m17n.org>
14914
14915 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14916 nonzero, don't shrink the buffer nextb.
14917
14918 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14919
14920 * coding.c (coding_alloc_by_making_gap): New arg offset.
14921 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14922 offset.
14923 (decode_coding_iso_2022): Update coding->safe_charsets.
14924 (decode_coding_gap): Temporarily set
14925 current_buffer->text->inhibit_shrinking to 1.
14926
14927 2008-02-01 Kenichi Handa <handa@m17n.org>
14928
14929 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14930 indexing into elements of s->cmp and s->char2b.
14931
14932 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
14933
14934 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14935
14936 2008-02-01 Kenichi Handa <handa@m17n.org>
14937
14938 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14939 target_multibyte instead of multibyte.
14940 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14941 (bcmp_translate): Change the argument name from multibyte to
14942 target_multibyte.
14943
14944 2008-02-01 Kenichi Handa <handa@m17n.org>
14945
14946 These changes are to compile a regexp into a pattern that can be
14947 used both for multibyte and unibyte targets.
14948
14949 * Makefile.in (search.o): Depend on charset.h.
14950
14951 * character.c (multibyte_char_to_unibyte_safe): New function.
14952
14953 * search.c: Include "charset.h".
14954 (compile_pattern_1): Delete argument multibyte. Don't set
14955 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14956 (compile_pattern): Don't compare cp->buf.target_multibyte.
14957 Compare cp->buf.charset_unibyte.
14958 (compile_pattern): Set cp->buf.target_multibyte.
14959
14960 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14961
14962 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14963
14964 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14965 multibyte. Change callers.
14966 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14967 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14968 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14969 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14970 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14971 (regex_compile): Make the compiled pattern usable both for
14972 multibyte and unibyte targets.
14973 (analyse_first): Make the fastmap usable both for multibyte and
14974 unibyte targets.
14975 (TRANSLATE_VIA_MULTIBYTE): Delete.
14976 (re_match_2_internal): Pay attention to the case that the
14977 multibyteness of bufp and target may be different.
14978
14979 2008-02-01 Kenichi Handa <handa@m17n.org>
14980
14981 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14982 empty box occupy at least one column width.
14983
14984 2008-02-01 Miles Bader <miles@gnu.org>
14985
14986 * Makefile.in: Remove redundant HAVE_XFT clause.
14987
14988 2008-02-01 Kenichi Handa <handa@m17n.org>
14989
14990 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14991
14992 2008-02-01 Kenichi Handa <handa@m17n.org>
14993
14994 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14995 being nil.
14996
14997 2008-02-01 Kenichi Handa <handa@m17n.org>
14998
14999 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
15000
15001 2008-02-01 Kenichi Handa <handa@m17n.org>
15002
15003 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
15004
15005 2008-02-01 Kenichi Handa <handa@m17n.org>
15006
15007 * search.c (simple_search): Fix previous change.
15008
15009 2008-02-01 Kenichi Handa <handa@m17n.org>
15010
15011 * xftfont.c (ftfont_font_format): Extern declaration.
15012
15013 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
15014
15015 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
15016 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
15017
15018 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
15019 (ftfont_font_format): Fix previous change.
15020
15021 * font.h (Ffont_xlfd_name): EXFUN it.
15022
15023 * font.c (font_parse_xlfd): Fix the array size of `f'.
15024 (register_font_driver): Use EQ to compare driver->type.
15025
15026 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
15027 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
15028 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
15029
15030 2008-02-01 Kenichi Handa <handa@m17n.org>
15031
15032 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
15033 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
15034
15035 2008-02-01 Kenichi Handa <handa@m17n.org>
15036
15037 * xfont.c (xfont_open): Set font->format.
15038
15039 * xftfont.c (xftfont_open): Set font->format.
15040
15041 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
15042 (ftfont_list): Include FC_FONTFORMAT in FcObject.
15043 (ftfont_open): Set font->format.
15044 (ftfont_font_format): New function.
15045
15046 * font.h (struct font): New member format.
15047
15048 * font.c (Qopentype): New variable.
15049 (syms_of_font): Defsym it.
15050 (Fquery_font): Change the format of the last element of the return
15051 value.
15052
15053 2008-02-01 Kenichi Handa <handa@m17n.org>
15054
15055 * xfns.c (xic_create_xfontset): Try the default fontset name as a
15056 last resort.
15057
15058 2008-02-01 Kenichi Handa <handa@m17n.org>
15059
15060 * coding.c (detect_coding_charset): Fix detection of multi-byte
15061 charset.
15062
15063 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
15064
15065 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
15066
15067 2008-02-01 Kenichi Handa <handa@m17n.org>
15068
15069 * xdisp.c (get_next_display_element): Set it->face_id for the
15070 first component of a composition.
15071 (x_produce_glyphs): Check if the font is changed or not for composition.
15072
15073 2008-02-01 Kenichi Handa <handa@m17n.org>
15074
15075 * fontset.c (Qlatin): New variable.
15076 (syms_of_fontset): Define it as a lisp symbol.
15077 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
15078
15079 2008-02-01 Kenichi Handa <handa@m17n.org>
15080
15081 * font.c (font_unparse_fcname): Pay attention to the case that
15082 some of font property is a null string.
15083
15084 2008-02-01 Kenichi Handa <handa@m17n.org>
15085
15086 * term.c: Include "composite.h".
15087 (encode_terminal_code): Output all components of composition.
15088 Check the size of encode_terminal_src.
15089 (produce_glyphs): For composition, call produce_composite_glyph.
15090 (append_composite_glyph, produce_composite_glyph): New functions.
15091
15092 * xdisp.c (x_produce_glyphs): In handling composition, if a font
15093 is not found, get font_info from the current ascii face.
15094
15095 2008-02-01 Kenichi Handa <handa@m17n.org>
15096
15097 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
15098 buffer-file-name to Qnil before calling insert_from_buffer.
15099
15100 * font.c (font_unparse_fcname): Pay attention to the case that
15101 foundry is a null string.
15102
15103 2008-02-01 Kenichi Handa <handa@m17n.org>
15104
15105 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
15106
15107 * font.c (Qunicode_sip): New variable.
15108 (syms_of_font): Declare it as a Lisp symbol.
15109
15110 * font.h (Qunicode_sip): Extern it.
15111
15112 2008-02-01 Kenichi Handa <handa@m17n.org>
15113
15114 * composite.c (get_composition_id): Pay attention to TAB component.
15115
15116 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
15117 TAB. Adjust for the change of s->char2b which always points to
15118 the first element of allocated memory.
15119
15120 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
15121
15122 * xdisp.c (handle_composition_prop): Set it->c to the first
15123 non-TAB component.
15124 (fill_composite_glyph_string): Change argument.
15125 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
15126 (x_produce_glyphs): Fix handling of left/right padding.
15127
15128 2008-02-01 Kenichi Handa <handa@m17n.org>
15129
15130 * coding.c (detect_coding_system): Fix for handling off
15131 inhibit_iso_escape_detection. Fix for the case that no coding
15132 system is defined for a specific coding category.
15133
15134 2008-02-01 Kenichi Handa <handa@m17n.org>
15135
15136 * font.c (font_matching_entity): Delete unused local var.
15137
15138 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
15139 opening a font.
15140
15141 * fileio.c (Finsert_file_contents): On recovering a file, assume
15142 Unix-like eol.
15143 (choose_write_coding_system): On auto-saving a file, force
15144 Unix-like eol.
15145
15146 * coding.c (setup_coding_system): Fix setting of
15147 coding->common_flags based on eol_type.
15148 (coding_inherit_eol_type): If PARENT is not nil, be sure to
15149 inherit from it.
15150
15151 2008-02-01 Kenichi Handa <handa@m17n.org>
15152
15153 * alloc.c (NSTATICS): Increas to 0x600.
15154
15155 2008-02-01 Kenichi Handa <handa@m17n.org>
15156
15157 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
15158 (ftfont_list): Don't check :name property.
15159 (ftfont_match): New function.
15160 (ftfont_pattern_entity): If the pattern doesn't contain
15161 FC_SPACING, don't assume FC_MONO.
15162
15163 * font.h (struct font_driver): New member `match'.
15164 (font_update_drivers): Adjust prototype.
15165
15166 * font.c (font_parse_fcname, font_parse_name): Don't change :name
15167 property of FONT.
15168 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
15169 them unconditionally.
15170 (font_matching_entity): New function.
15171 (font_open_by_name): Try font_matching_entity if exact match is
15172 not found.
15173 (font_update_drivers): Delete the arg FONT. Return a list of
15174 actually used backends. Don't free faces, font caches here.
15175 Don't store data in frame parameters. Don't call x_set_font.
15176 (Ffont_spec): Store :name property as is.
15177 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
15178 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
15179 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
15180 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
15181 Call font->driver->otf_gsub instead of font_otf_gsub.
15182
15183 * frame.c (x_set_font_backend): Do more works that were done in
15184 font_update_drivers before.
15185
15186 * xfont.c (xfont_match): New function.
15187 (xfont_driver): Set xfont_driver.match to xfont_match.
15188 (xfont_draw): Set font in GC if necessary.
15189
15190 * ftxfont.c (ftxfont_match): New function.
15191 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
15192
15193 * xftfont.c (xftfont_match): New function.
15194 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
15195
15196 2008-02-01 Kenichi Handa <handa@m17n.org>
15197
15198 * font.h (struct font): New member scalable.
15199 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
15200 (font_otf_gsub): Adjust prototype.
15201
15202 * font.c (font_otf_capability): Fix handling of the default langsys.
15203 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
15204 Check the contents of SPEC.
15205 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
15206 (check_gstring): New function.
15207 (REPLACEMENT_CHARACTER): New macro.
15208 (font_otf_gsub): New arg alternate_subst. Be sure to set all
15209 glyph codes of GSTRING.
15210 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
15211 (font_prepare_composition): Set cmp->glyph_len.
15212 (font_open_entity): Set font->scalable.
15213 (Ffont_get): Handle :otf property.
15214 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
15215 functions.
15216 (Fquery_font): Use font->font.full_name.
15217 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
15218 Sfont_otf_alternates.
15219
15220 * ftfont.c (ftfont_open): Set font->font.full_name and
15221 font->font.name properly. Fix calculation of font->font.height
15222 and font->min_width.
15223
15224 * ftxfont.c (ftxfont_create_gcs): New function.
15225 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
15226 (ftxfont_draw_backgrond): Fix filling region.
15227 (ftxfont_default_fid): New function.
15228 (ftxfont_open): Set xfont->fid to the return value of
15229 ftxfont_default_fid.
15230 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
15231 (ftxfont_done_face): Free only GCs that are created by
15232 ftxfont_create_gcs.
15233 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
15234
15235 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
15236 Clip to src->width, etc (not src->clip_XXX).
15237
15238 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
15239 FontBackend frame parameter.
15240
15241 2008-02-01 Kenichi Handa <handa@m17n.org>
15242
15243 * font.h (struct font_driver_list): New member `on'.
15244 (Fclear_font_cache): EXFUN it.
15245 (font_update_drivers): Extern it.
15246
15247 * font.c (font_unparse_fcname): Fix typo (swidth->width).
15248 (font_list_entities): Check driver_list->on.
15249 (register_font_driver): Initialize `on' member to 0.
15250 (font_update_drivers): New function.
15251 (Fclear_font_cache): Check driver_list->on.
15252
15253 * frame.h (Qfont_backend): Extern it.
15254 (x_set_font_backend): Extern it.
15255
15256 * frame.c (Qfont_backend): New variable.
15257 (frame_parms): New element for font-backend.
15258 (x_set_font_backend): New function.
15259
15260 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
15261 FontBackend frame parameter.
15262 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
15263 x_set_font_backend.
15264
15265 * xfont.c (xfont_list): Don't try listing by :name property if the
15266 name is not for XLFD.
15267
15268 2008-02-01 Kenichi Handa <handa@m17n.org>
15269
15270 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
15271 (LGLYPH_SET_TO): New macros.
15272 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
15273 element of G is vector or not.
15274 (font_at): Extern it.
15275
15276 * font.c: Include window.h.
15277 (font_lispy_object): New function.
15278 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
15279 end of valid glyph.
15280 (font_close_object): Fix getting (struct font *).
15281 (font_at): New function.
15282 (Ffont_get): If FONT is a font-object, get entity from it.
15283 (Ffont_make_gstring): Initialize elements of glyphs with nil.
15284 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
15285 range check.
15286 (Ffont_at): New function.
15287 (syms_of_font): Defsubr Sfont_at.
15288
15289 * xdisp.c (it_props): Move the entry for Qauto_composed to just
15290 before the entry for Qcomposition.
15291 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
15292 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
15293 the font in gstring.
15294 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
15295 LGLYPH_FORM (g) to detect the end of valid glyph.
15296 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
15297 we are composing with gstring.
15298
15299 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
15300 Check if adjustment is vector or not.
15301
15302 * Makefile.in (font.o): Make it depends on window.h.
15303
15304 2008-02-01 Kenichi Handa <handa@m17n.org>
15305
15306 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
15307 adjustment is vector or not.
15308
15309 2008-02-01 Miles Bader <miles@gnu.org>
15310
15311 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
15312
15313 2008-02-01 Kenichi Handa <handa@m17n.org>
15314
15315 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15316 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15317 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15318
15319 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15320 (DEVICE_DELTA): Fix typo.
15321 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15322 LGLYPH format.
15323
15324 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15325 the change of LGLYPH format.
15326
15327 2008-02-01 Kenichi Handa <handa@m17n.org>
15328
15329 * ftfont.c (ftfont_list): Fix typo.
15330 (ftfont_build_basic_charsets): Don't include letters with diacritics.
15331
15332 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15333
15334 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15335
15336 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15337 xftface_info is non-NULL.
15338
15339 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15340
15341 * ftfont.c (ftfont_list): Move misplaced #endif.
15342
15343 2008-02-01 Kenichi Handa <handa@m17n.org>
15344
15345 * ftfont.c (ftfont_list): Pay attention to the case that
15346 FC_CAPABILITY is not defined.
15347
15348 2008-02-01 Kenichi Handa <handa@m17n.org>
15349
15350 * xftfont.c (xftfont_open): Set charset related members to -1.
15351
15352 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
15353 QCname.
15354 (ftfont_open): Set charset related members to -1.
15355
15356 * fontset.c (Votf_script_alist): New variable.
15357 (syms_of_fontset): Initialize it.
15358 (fontset_font): Delete unused variable.
15359
15360 * fontset.h (Votf_script_alist): Extern it.
15361
15362 * font.c (font_find_for_lface): Optimize code.
15363
15364 * font.h (font_close_object, font_merge_old_spec): Extern them.
15365
15366 2008-02-01 Kenichi Handa <handa@m17n.org>
15367
15368 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15369 (syms_of_font): Initialize them.
15370 (font_pixel_size): Allow float value in dpi.
15371 (font_prop_validate_type): Delete.
15372 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15373 Change caller.
15374 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15375 (font_prop_validate_extra): Delete.
15376 (font_prop_validate_spacing): New function.
15377 (font_property_table): Add elements for all known properties.
15378 (get_font_prop_index): Rename from check_font_prop_name. New
15379 argument FROM. Change caller.
15380 (font_prop_validate): Validate all known properties.
15381 (font_put_extra): Delete argument force. Change caller.
15382 (font_expand_wildcards): Make it static. Fix the way of shrinking
15383 the possible range.
15384 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15385 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15386 Change caller.
15387 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15388 (font_parse_fcname): Delete argument merge. Fix parsing of point
15389 size. Don't validate properties values here. Change caller.
15390 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15391 (font_open_by_name): Delete unused variable.
15392 (Ffont_spec): Likewise. Validate property values.
15393 (Ffont_match_p): New function.
15394
15395 * font.h (QCscalable): Extern it.
15396 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15397
15398 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15399
15400 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15401 (xfont_list_pattern): New function.
15402 (xfont_list): Use xfont_list_pattern.
15403
15404 2008-02-01 Kenichi Handa <handa@m17n.org>
15405
15406 * font.h (Flist_fonts): EXFUN it.
15407
15408 2008-02-01 Jason Rumney <jasonr@gnu.org>
15409
15410 * w32term.c (w32_initialize): Add back smoothing_type and
15411 smoothing_enabled definitions.
15412
15413 2008-02-01 Kenichi Handa <handa@m17n.org>
15414
15415 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15416 s->face->font on determining underline position.
15417
15418 2008-02-01 Kenichi Handa <handa@m17n.org>
15419
15420 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15421 (font_has_char): Accept font-object too.
15422 (font_find_for_lface): Try at first with a size specified in face.
15423
15424 2008-02-01 Kenichi Handa <handa@m17n.org>
15425
15426 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15427 font_open_by_name.
15428
15429 2008-02-01 Kenichi Handa <handa@m17n.org>
15430
15431 * font.h (QCspacing, QCdpi): Extern them.
15432 (enum font_spacing): New enum.
15433 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15434
15435 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15436 (QCspacing, QCdpi): New variables.
15437 (syms_of_font): Initialize them.
15438 (font_pixel_size): New function.
15439 (font_put_extra): New function.
15440 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15441 in FONT_EXTRA.
15442 (font_parse_fcname): Handle enumerated values (e.g. bold).
15443 Fix handling font size. Add QCname property that contains only
15444 unknown properties.
15445 (font_score): Change argument. Change caller. Pay attention to
15446 FONT_PIXEL_SIZE_QUANTUM.
15447 (font_sort_entites, font_list_entities, font_find_for_lface)
15448 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15449 (Ffont_spec): Add QCname property that contains only unknown properties.
15450
15451 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15452 include weight in listing pattern, instead check weight of each
15453 listed font. Don't include scalable in pattern. Pay attention to
15454 FONT_PIXEL_SIZE_QUANTUM.
15455
15456 2008-02-01 Kenichi Handa <handa@m17n.org>
15457
15458 * font.c (font_parse_fcname): Fix parsing of point-size.
15459 (font_unparse_fcname): Produce symbolic names for style properties.
15460 (font_list_entities): Handle float size correctly.
15461 (font_open_by_name): Prefer `normal' property values if the name
15462 doesn't specify them.
15463
15464 * fontset.c (Finternal_char_font): Use font_get_name, not
15465 Ffont_xlfd_name.
15466
15467 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15468 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15469 pattern. Don't force scalable.
15470
15471 * xftfont.c (xftfont_open): For generating a name, start from
15472 96-byte buffer.
15473
15474 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15475
15476 * frame.h (x_new_fontset2): Fix prototype.
15477
15478 2008-02-01 Kenichi Handa <handa@m17n.org>
15479
15480 * font.h (struct font_driver): Delete member parse_name.
15481 (font_match_p, font_get_spec, font_parse_fcname)
15482 (font_unparse_fcname): Extern them.
15483 (font_get_name): Adjust prototype.
15484
15485 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15486 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15487 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15488 unnecessary checks for weight, slant, and swidth.
15489 (font_parse_fcname): New function.
15490 (font_unparse_fcname): New function.
15491 (font_parse_name): New function.
15492 (font_match_p): New function.
15493 (font_get_name): Change return value to Lisp string.
15494 (font_get_spec): New function.
15495 (Qunspecified, Qignore_defface): Don't extern them.
15496 (font_find_for_lface): Assume that LFACE is fully specified.
15497 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15498 object, use it for FACE.
15499 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15500 driver->parse_name.
15501 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15502
15503 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15504 prototype.
15505
15506 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15507 argument F. Don't call Fnew_fontset. Instead, directly call
15508 make_fontset.
15509
15510 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15511
15512 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15513 of x_new_fontset2.
15514
15515 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15516 (Qsans__serif): New variables.
15517 (ftfont_generic_family_list): New variable.
15518 (syms_of_ftfont): Initialize the above variables.
15519 (ftfont_pattern_entity): Delete argument NAME.
15520 (ftfont_list_generic_family): New function.
15521 (ftfont_parse_name): Delete this function.
15522 (ftfont_list): Try generic family only when FcFontList found no font.
15523 (ftfont_list_family): Fix args to FcObjectSetBuild.
15524
15525 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15526 object in attrs[LFACE_FONT_INDEX].
15527 (set_lface_from_font_name): Cancel all changes for font-backend.
15528 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15529 function.
15530 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15531 font object in QCfont attribute.
15532 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15533 (realize_default_face) [USE_FONT_BACKEND]: Call
15534 set_lface_from_font_and_fontset.
15535
15536 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15537 "fixed", and signal error here if no suitable font was found.
15538
15539 * xfont.c (xfont_parse_name): Delete this function.
15540
15541 * xftfont.c (xftfont_open): Change coding style of error
15542 handling. Generate fontconfig's fontname pattern.
15543
15544 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15545 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15546
15547 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15548 Both args FONTSET and FONT_OBJECT must be existing ones.
15549
15550 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15551
15552 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15553
15554 2008-02-01 Kenichi Handa <handa@m17n.org>
15555
15556 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15557
15558 * font.h (struct font): Fix typo.
15559
15560 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15561 XLFD_XXX_INDEX.
15562 (enum xlfd_field_mask): New enum.
15563 (intern_font_field): Changed argument. Change caller. If digits
15564 are followed by non-digits, return a symbol.
15565 (font_expand_wildcards): New function.
15566 (font_parse_xlfd): Fix wildcard handling.
15567 (Ffont_spec): If :name is specified, reflect the info in the other
15568 properties.
15569
15570 * ftfont.c (ftfont_pattern_entity): Fix typo.
15571 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15572 locale.
15573
15574 2008-02-01 Kenichi Handa <handa@m17n.org>
15575
15576 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15577
15578 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15579 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15580 registry doesn't specify encoding part.
15581 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15582 (font_open_by_name): At first try parsing the name.
15583 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15584 as Lisp symbols.
15585
15586 * fontset.c (reorder_font_vector): Pay attention to the case that
15587 the 3rd element of font_def is nil.
15588 (fontset_font): For the default fontset, append one more fontset
15589 elements for a script-based font specification. Don't add script
15590 attribute on finding a font.
15591 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15592 font name.
15593 (fontset_ascii_font): If a font can't be opened, return nil.
15594
15595 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15596 (ftfont_pattern_entity): New function.
15597 (ftfont_get_cache): Assume that freetype_font_cache is already
15598 initialized.
15599 (ftfont_list): Handle the case that a file is specified in font
15600 name. Use ftfont_pattern_entity to generate entities.
15601 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15602 (syms_of_ftfont): Initialize freetype_font_cache.
15603
15604 * xftfont.c (xftfont_open): Make the font name fontconfig's
15605 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15606 (xftfont_close): Free font->font.name if not NULL.
15607
15608 * xfont.c (xfont_list): If script is specified for a font, return
15609 null_vector.
15610 (xfont_list_family): Declare argument type.
15611
15612 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15613 name, set LFACE_FONT (lface) to nil.
15614
15615 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15616 return Qnil.
15617
15618 2008-02-01 Kenichi Handa <handa@m17n.org>
15619
15620 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15621 (standard_args): Add "-enable-font-backend".
15622
15623 2008-02-01 Kenichi Handa <handa@m17n.org>
15624
15625 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15626 (struct xftdraw_list, xftdraw_list): Delete them.
15627 (register_xftdraw, check_xftdraw): Delete them.
15628 (xftfont_prepare_face): Don't call register_xftdraw.
15629 (xftfont_done_face): Don't call check_xftdraw.
15630 (xftfont_draw): Get background color only when with_background is
15631 nonzero.
15632
15633 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15634
15635 2008-02-01 Kenichi Handa <handa@m17n.org>
15636
15637 These changes are for the new font handling codes.
15638
15639 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15640 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15641 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15642 (FONTSRC, FONTOBJ): New variables.
15643 (obj): Add $(FONTOBJ).
15644 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15645 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15646 @LIBOTF_LIBS@.
15647 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15648 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15649
15650 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15651
15652 * character.h (Vscript_representative_chars): Extern it.
15653
15654 * character.c (Vscript_representative_chars): New variable.
15655 (syms_of_character): Declare it as a Lisp variable.
15656
15657 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15658 enable_font_backend is nonzero, accept the composition method
15659 COMPOSITION_WITH_GLYPH_STRING.
15660
15661 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15662 enumeration COMPOSITION_WITH_GLYPH_STRING.
15663
15664 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15665 members clip_x, clip_y, clip_width, and clip_height.
15666 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15667
15668 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15669 --enable-font-backend. Call syms_of_font.
15670
15671 * fns.c (assoc_no_quit): New function.
15672
15673 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15674 (face_for_font, new_fontset_from_font)
15675 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15676
15677 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15678 (fontset_font, fontset_ascii, face_for_char)
15679 (make_fontset_for_ascii_face, Ffont_info)
15680 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15681 is nonzero, use font-backend mechanism.
15682 (find_font_encoding): Make it non-static.
15683 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15684 New functions.
15685
15686 * frame.h (struct frame): New members resx and resy.
15687 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15688 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15689
15690 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15691 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15692
15693 * lisp.h (assoc_no_quit): Extern it.
15694
15695 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15696 Through out the file, use FONT_INFO_FROM_FACE instead of
15697 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15698 rif->per_char_metric.
15699 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15700 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15701 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15702 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15703 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15704 nonzero, use font-backend mechanism.
15705 (get_per_char_metric): New function.
15706
15707 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15708 (set_lface_from_font_name)
15709 (set_font_frame_param, free_realized_face)
15710 (prepare_face_for_display, clear_face_gcs)
15711 (Finternal_set_font_selection_order, realize_x_face)
15712 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15713 font-backend mechanism.
15714 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15715 (load_face_font) [USE_FONT_BACKEND]: Abort.
15716 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15717 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15718
15719 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15720 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15721 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15722 nonzero, register all available font drivers. Call
15723 x_default_font_parameter for deciding a font.
15724 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15725
15726 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15727 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15728 (x_set_glyph_string_clipping_exactly)
15729 (x_compute_glyph_string_overhangs)
15730 (x_draw_glyph_string_foreground)
15731 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15732 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15733 enable_font_backend is nonzero, use font-backend mechanism.
15734 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15735
15736 2008-02-01 Kenichi Handa <handa@m17n.org>
15737
15738 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15739 system_eol_type.
15740 (syms_of_coding): Initialize system_eol_type.
15741
15742 * process.c (Fset_process_coding_system): Inherit system's eol
15743 format if necessary.
15744
15745 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15746
15747 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15748
15749 2008-02-01 Kenichi Handa <handa@m17n.org>
15750
15751 * coding.c (decode_eol): Pay attention to buffer relocation in
15752 del_range_2.
15753 (decode_coding): Call decode_eol before restoring undo_list.
15754
15755 2008-02-01 Kenichi Handa <handa@m17n.org>
15756
15757 * charset.c (Fdefine_charset_internal): Fix setting of
15758 emacs_mule_bytes.
15759
15760 2008-02-01 Kenichi Handa <handa@m17n.org>
15761
15762 * keyboard.c (read_char): Check if C is a character or not before
15763 looking up Vkeyboard_translate_table.
15764
15765 2008-02-01 Kenichi Handa <handa@m17n.org>
15766
15767 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15768 condition to terminate the loop.
15769
15770 2008-02-01 Kenichi Handa <handa@m17n.org>
15771
15772 * coding.c (produce_composition): Compare charbuf[i] instead of
15773 args[i] against 0.
15774 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15775
15776 2008-02-01 Kenichi Handa <handa@m17n.org>
15777
15778 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15779 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15780 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15781 detect_coding.
15782 (emacs_mule_char): Handle old style (Emacs 20) component character
15783 of a composition.
15784 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15785 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15786 composition rule.
15787 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15788
15789 2008-02-01 Kenichi Handa <handa@m17n.org>
15790
15791 * coding.c (encode_coding_ccl): Allocate destination dynamically
15792 when necessary.
15793
15794 2008-02-01 Kenichi Handa <handa@m17n.org>
15795
15796 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15797 the loop. When quitted, show a proper error message.
15798
15799 2008-02-01 Kenichi Handa <handa@m17n.org>
15800
15801 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15802 src->clip_head and src->clip_tail temporarily instead of src->hl.
15803
15804 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15805 character sequence.
15806 (Fccl_execute_on_string): Use ASET, not XSET.
15807
15808 2008-02-01 Kenichi Handa <handa@m17n.org>
15809
15810 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15811
15812 2008-02-01 Kenichi Handa <handa@m17n.org>
15813
15814 * coding.c (decode_coding): Fix the condition of terminating the
15815 decoding loop.
15816
15817 2008-02-01 Kenichi Handa <handa@m17n.org>
15818
15819 * data.c (Faset): On setting a character bigger than 255 in a
15820 unibyte string, signal an error instead of make the string multibyte.
15821
15822 2008-02-01 Kenichi Handa <handa@m17n.org>
15823
15824 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15825 made by a mapping table.
15826
15827 2008-02-01 Kenichi Handa <handa@m17n.org>
15828
15829 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15830 not.
15831 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15832 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15833
15834 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15835 s->face is NULL or not.
15836
15837 2008-02-01 Kenichi Handa <handa@m17n.org>
15838
15839 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15840 (x_draw_glyph_string): Fix drawing of right_overhang and
15841 left_overhang around/on cursor.
15842
15843 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15844
15845 2008-02-01 Kenichi Handa <handa@m17n.org>
15846
15847 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15848
15849 2008-02-01 Kenichi Handa <handa@m17n.org>
15850
15851 * coding.c (Fdefine_coding_system_internal)
15852 (Fdefine_coding_system_alias): Avoid a duplicated element in
15853 Vcoding_system_alist.
15854
15855 2008-02-01 Kenichi Handa <handa@m17n.org>
15856
15857 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15858
15859 * coding.c (Qcoding_system_define_form): New variable.
15860 (syms_of_coding): Intern and staticpro it.
15861 (Fcoding_system_p): Check Qcoding_system_define_form.
15862 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15863
15864 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15865 Fcoding_system_p.
15866 (CHECK_CODING_SYSTEM): If ID is not available, call
15867 Fcheck_coding_system.
15868 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15869 Try also Fcheck_coding_system.
15870
15871 2008-02-01 Kenichi Handa <handa@m17n.org>
15872
15873 * coding.c (code_conversion_restore): GCPRO arg.
15874
15875 2008-02-01 Kenichi Handa <handa@m17n.org>
15876
15877 * character.c (lisp_string_width): Check multibyteness of STRING.
15878
15879 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15880
15881 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15882 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15883 (decode_mac_font_name): Use decode_coding_c_string instead of
15884 decode_coding.
15885 (x_load_font): Initialize fontp->fontset to -1. Set
15886 fontp->encoding_type.
15887
15888 2008-02-01 Kenichi Handa <handa@m17n.org>
15889
15890 * search.c (search_buffer): Give up BM search on case-fold-search
15891 if one of a target character has a case-equivalence of different
15892 byte length even if that target charcter is an ASCII.
15893 (simple_search): Fix calculation of byte length of matched text.
15894 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15895
15896 2008-02-01 Kenichi Handa <handa@m17n.org>
15897
15898 * coding.c (decode_coding): Fix handling of invalid bytes.
15899
15900 2008-02-01 Kenichi Handa <handa@m17n.org>
15901
15902 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15903 Unicode characters.
15904
15905 2008-02-01 Kenichi Handa <handa@m17n.org>
15906
15907 * coding.c (encode_coding_object): If a pre-write-conversion
15908 function makes a new buffer, kill it.
15909
15910 2008-02-01 Kenichi Handa <handa@m17n.org>
15911
15912 * coding.c (QCascii_compatible_p): New variable.
15913 (syms_of_coding): Initialize it.
15914 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15915 calling string_char.
15916 (record_conversion_result): Add `default:' case.
15917 (coding_charset_list): Delete unused variable `coding_type'.
15918 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15919 property in the plist of the coding system.
15920 (Fcoding_system_put): Check QCascii_compatible_p.
15921
15922 2008-02-01 Miles Bader <miles@gnu.org>
15923
15924 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15925 removed calculation of frame `f', as it's now used.
15926
15927 2008-02-01 Kenichi Handa <handa@m17n.org>
15928
15929 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15930 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15931 (UNIDATA): New variable.
15932 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15933 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15934 $(RUN_TEMACS) unconditionally.
15935
15936 2008-02-01 Kenichi Handa <handa@m17n.org>
15937
15938 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15939 (admindir): New variable.
15940 ($(lispsource)international/charprop.el): New target.
15941
15942 2008-02-01 Miles Bader <miles@gnu.org>
15943
15944 * character.c (chars-in-region): Remove obsolete function.
15945 (syms_of_character): Remove its initialization.
15946
15947 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15948
15949 * w32select.c (validate_coding_system)
15950 (setup_windows_coding_system): New functions.
15951 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15952 setup_windows_coding_system.
15953 (setup_config, Fw32_get_clipboard_data): Use
15954 validate_coding_system.
15955 (Fx_selection_exists): Move call to setup_config to a place
15956 where signals are allowed.
15957
15958 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15959 (Fcheck_coding_system): Add declarations.
15960
15961 2008-02-01 Kenichi Handa <handa@m17n.org>
15962
15963 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15964
15965 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15966
15967 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15968 string as the second argument for x_new_fontset.
15969
15970 2008-02-01 Kenichi Handa <handa@m17n.org>
15971
15972 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15973 (encode_coding_object): Use safe_call instead of call2.
15974
15975 2008-02-01 Kenichi Handa <handa@m17n.org>
15976
15977 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15978
15979 * Makefile.in (lisp): Include charprop.el.
15980
15981 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15982
15983 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15984 Not sure if it's unnecessary.
15985
15986 2008-02-01 Steven Tamm <steventamm@mac.com>
15987
15988 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15989 some possibly unnecessary fontset checking code that crashed
15990 when creating a new frame.
15991
15992 2008-02-01 Kenichi Handa <handa@m17n.org>
15993
15994 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15995 lookup_face.
15996
15997 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15998
15999 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
16000
16001 2008-02-01 Kenichi Handa <handa@m17n.org>
16002
16003 * coding.c: Cancel the change done in HEAD on 2008-02-01.
16004 (coding_charset_list): New function.
16005
16006 * coding.h (coding_charset_list): Extern it.
16007
16008 2008-02-01 Kenichi Handa <handa@m17n.org>
16009
16010 * fontset.c (Fset_fontset_font): Call find_font_encoding with
16011 concatenation of family and registry.
16012
16013 2008-02-01 Kenichi Handa <handa@m17n.org>
16014
16015 * character.h (BYTE8_STRING): Fix typo.
16016
16017 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
16018 string to multibyte (sync to HEAD).
16019
16020 * casefiddle.c (casify_region): Handle changes in byte-length
16021 using replace_range_2 (sync to HEAD).
16022
16023 2008-02-01 Andreas Schwab <schwab@suse.de>
16024
16025 * chartab.c (map_char_table): GCPRO table and arg.
16026
16027 2008-02-01 Kenichi Handa <handa@m17n.org>
16028
16029 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
16030 already at limit.
16031
16032 2008-02-01 Kenichi Handa <handa@m17n.org>
16033
16034 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
16035 instead of fast_c_string_match_ignore_case.
16036 (find_font_encoding): Change argument to Lisp_Object. Use
16037 fast_string_match_ignore_case instead of
16038 fast_c_string_match_ignore_case. Change caller.
16039
16040 2008-02-01 Kenichi Handa <handa@m17n.org>
16041
16042 * xdisp.c (get_next_display_element): In unibyte case, decide to
16043 display in octal form by checking a character by
16044 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
16045
16046 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
16047
16048 * character.c (unibyte_has_multibyte_table): New variable.
16049
16050 * character.h (unibyte_has_multibyte_table): Extern it.
16051 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
16052
16053 2008-02-01 Kenichi Handa <handa@m17n.org>
16054
16055 * coding.c (encode_coding_iso_2022): Fix handling of charset
16056 annotation.
16057
16058 2008-02-01 Kenichi Handa <handa@m17n.org>
16059
16060 * coding.c (setup_coding_system): If coding_system is nil, use
16061 Qundecided.
16062 (Fterminal_coding_system): Return nil if terminal coding system is
16063 `undecided'.
16064 (syms_of_coding): Define coding-system `undecided' here. Setup
16065 terminal_coding as `undecided'.
16066
16067 2008-02-01 Kenichi Handa <handa@m17n.org>
16068
16069 * xdisp.c (message_dolog, set_message_1): Call
16070 unibyte_char_to_multibyte with arg type int.
16071
16072 * lread.c (read1): Fix reading of a char-table.
16073
16074 * print.c (print_object): Include sub char-table in circularities
16075 detection.
16076
16077 2008-02-01 Kenichi Handa <handa@m17n.org>
16078
16079 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
16080 Append the found sequences in car of ARGS instead of prepending.
16081
16082 2008-02-01 Kenichi Handa <handa@m17n.org>
16083
16084 * fileio.c (report_file_error): Make a unibyte string from
16085 strerror (errorno).
16086 (Fsubstitute_in_file_name): Fix the arg to
16087 unibyte_char_to_multibyte. It is evaluated twice.
16088
16089 2008-02-01 Kenichi Handa <handa@m17n.org>
16090
16091 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
16092
16093 2008-02-01 Kenichi Handa <handa@m17n.org>
16094
16095 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
16096 BOM is not found.
16097 (detect_coding, detect_coding_system): Optimization for ISO-2022
16098 when no 8-bit data is found.
16099
16100 2008-02-01 Jason Rumney <jasonr@gnu.org>
16101
16102 * w32fns.c (x_to_w32_font): Update to use new coding struct.
16103
16104 2008-02-01 Kenichi Handa <handa@m17n.org>
16105
16106 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
16107 CHARS.
16108
16109 2008-02-01 Steven Tamm <steventamm@mac.com>
16110
16111 * macterm.c (mac_encode_char): Add charset argument and update
16112 to use encoding_type.
16113 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
16114 switch to pure fontset.
16115 (decode_mac_font_name): Temporarily remove decoding.
16116 (x_font_name_to_mac_font_name): Temporarily remove encoding.
16117 (x_load_font): Temporarily remove encoding.
16118
16119 2008-02-01 Kenichi Handa <handa@m17n.org>
16120
16121 * xfaces.c (Fface_font): If frame is not on a window system,
16122 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
16123 refer to face->font.
16124 (split_font_name_into_vector, build_font_name_from_vector)
16125 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
16126 when HAVE_WINDOW_SYSTEM is defined.
16127
16128 2008-02-01 Kenichi Handa <handa@m17n.org>
16129
16130 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
16131 (x_produce_glyphs): Fix setting of members of cmp in case
16132 cmp->glyph_len is zero.
16133
16134 * fontset.c (Fset_fontset_font): Fix docstring.
16135 (Ffontset_info): Make it backward compatible. New arg ALL.
16136
16137 2008-02-01 Kim F. Storm <storm@cua.dk>
16138
16139 * process.c (read_process_output): Grow decoding_buf when needed;
16140 this could cause a crash in allocate_string and compact_small_strings.
16141
16142 2008-02-01 Kenichi Handa <handa@m17n.org>
16143
16144 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
16145
16146 2008-02-01 Kenichi Handa <handa@m17n.org>
16147
16148 * coding.c (setup_coding_system): Set coding->common_flags
16149 correctly for raw-text.
16150 (consume_chars): On encoding unibyte text by raw-text, don't check
16151 multibyte form.
16152 (encode_coding): On encoding by raw-text, never use translation tables.
16153
16154 * fileio.c (e_write): Short cut for the case of no encoding.
16155
16156 2008-02-01 Kenichi Handa <handa@m17n.org>
16157
16158 * coding.c (detect_coding, detect_coding_system): Delete unused
16159 variables.
16160
16161 2008-02-01 Kenichi Handa <handa@m17n.org>
16162
16163 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
16164 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
16165
16166 2008-02-01 Kenichi Handa <handa@m17n.org>
16167
16168 * coding.c (Ffind_coding_systems_region_internal): Include
16169 raw-text and no-conversion in the result.
16170
16171 2008-02-01 Kenichi Handa <handa@m17n.org>
16172
16173 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
16174 (load_font_get_repertory): Delete unnecessary check of ENCODING of
16175 FONT_DEF.
16176 (font_def_arg, add_arg, from_arg, to_arg): New args.
16177 (set_fontset_font): Change argument.
16178 (Fset_fontset_font): Fix for the case that TARGET is a script
16179 name and charset name.
16180 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
16181
16182 2008-02-01 Kenichi Handa <handa@m17n.org>
16183
16184 * fontset.c (fontset_font): Rename from fontset_face. Change return
16185 value.
16186 (face_suitable_for_char_p, face_for_char): Adjust for the change
16187 of fontset_font.
16188 (make_fontset_for_ascii_face): Fix setting of the fontset element
16189 for ASCII.
16190 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
16191 to get a font name.
16192 (Ffontset_info): Adjust for the change of fontset_font.
16193
16194 * coding.c (emacs_mule_char): Check invalid code more rigidly.
16195
16196 * character.h (LEADING_CODE_LATIN_1_MIN)
16197 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
16198
16199 2008-02-01 Kenichi Handa <handa@m17n.org>
16200
16201 * editfns.c (check_translation): New function.
16202 (Ftranslate_region_internal): Handle M:N mapping.
16203
16204 2008-02-01 Kenichi Handa <handa@m17n.org>
16205
16206 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
16207
16208 2008-02-01 Kenichi Handa <handa@m17n.org>
16209
16210 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
16211 goto invalid_code.
16212 (decode_coding_iso_2022): Fix handling of invalid designation.
16213
16214 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
16215 after calling code_conversion_save.
16216
16217 2008-02-01 Kenichi Handa <handa@m17n.org>
16218
16219 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
16220
16221 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
16222
16223 * fontset.c: Include "intervals.h".
16224 (fontset_face): Fix comparing of Lisp_Objects.
16225 (free_face_fontset, new_fontset_from_font_name): Fix
16226 Lisp_Object/int mixup.
16227
16228 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
16229
16230 * coding.c: Add many prototypes for static functions.
16231 (get_translation_table): Allow max_lookup to be NULL.
16232 (decode_coding, Ffind_coding_systems_region_internal)
16233 (Funencodable_char_position, Fcheck_coding_systems_region): Call
16234 get_translation_table with max_lookup NULL.
16235
16236 2008-02-01 Kenichi Handa <handa@m17n.org>
16237
16238 * coding.c (get_translation_table): Declare it as Lisp_Object.
16239 (LOOKUP_TRANSLATION_TABLE): New macro.
16240 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
16241 instead of CHAR_TABLE_REF.
16242
16243 2008-02-01 Kenichi Handa <handa@m17n.org>
16244
16245 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
16246 annotation data format.
16247 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
16248 Change arguments FROM and TO to single argument NCHARS. Change caller.
16249 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
16250 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16251 (decode_coding_ccl, decode_coding_charset): Pay attention to
16252 coding->charbuf_used.
16253 (get_translation): New function.
16254 (produce_chars): New arguments translation_table and last_block.
16255 Translate characters here. Return number of carryover chars.
16256 Change caller.
16257 (produce_composition): New argument pos. Change caller.
16258 Adjust for the change of annotation data format.
16259 (produce_charset, produce_annotation): Likewise.
16260 (decode_coding, encode_coding): Don't call translate_chars.
16261 (consume_chars): New arg translation_table. Change caller.
16262 (translate_chars): Delete.
16263 (syms_of_coding): Make translation-table's number of extra slots 2.
16264
16265 2008-02-01 Kenichi Handa <handa@m17n.org>
16266
16267 * search.c (simple_search): Fix setting this_pos_byte in backward
16268 search.
16269
16270 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
16271 byte sequence.
16272 (detect_coding_ccl): Fix setting of the variable valids.
16273
16274 2008-02-01 Kenichi Handa <handa@m17n.org>
16275
16276 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
16277
16278 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
16279
16280 * editfns.c (Ftranslate_region_internal): Rename from
16281 Ftranslate_region. Accept a char-table in TABLE.
16282 (syms_of_editfns): Defsubr Stranslate_region_internal.
16283
16284 * xfaces.c (set_lface_from_font_name): If a font is specified for
16285 a frame, generate a fontset from the font.
16286 (build_scalable_font_name): If the scalable font is requested for
16287 a specific size, don't change that size.
16288 (try_font_list): Try a scalable font also in the case that a
16289 pattern string is specified.
16290
16291 2008-02-01 Kenichi Handa <handa@m17n.org>
16292
16293 * xfaces.c (Fface_font): New optional arg CHARACTER.
16294
16295 2008-02-01 Kenichi Handa <handa@m17n.org>
16296
16297 * charset.h (CHARSET_OFFSET): New macro.
16298
16299 2008-02-01 Kenichi Handa <handa@m17n.org>
16300
16301 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
16302
16303 * fontset.c (fontset_face): Handle the case that repertory is a
16304 char-table.
16305 (find_font_encoding): Return nil for unknown encoding.
16306 (Fset_fontset_font): Ignore a font of unknown encoding.
16307
16308 2008-02-01 Kenichi Handa <handa@m17n.org>
16309
16310 * keymap.c (describe_vector): Handle default value of a char table.
16311
16312 * fontset.c (fontset_face): Handle fallback fonts correctly.
16313 (Ffontset_info): Return infomation about fallback fonts.
16314
16315 2008-02-01 Kenichi Handa <handa@m17n.org>
16316
16317 * fontset.c (FONTSET_DEFAULT): New macro.
16318 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16319 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16320 the case that it is nil.
16321 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16322 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16323
16324 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16325 subset or superset.
16326
16327 2008-02-01 Kenichi Handa <handa@m17n.org>
16328
16329 * emacs.c (main): Call init_charset after syms_of_XXX.
16330
16331 * charset.c (Vcharset_map_directory): Delete.
16332 (Vcharset_map_path): New variable.
16333 (load_charset_map_from_file): Use Vcharset_map_path instead.
16334 (init_charset): Initialize Vcharset_map_path.
16335 (syms_of_charset): Delete declaration of "charset-map-directory",
16336 add declaration of "charset-map-path".
16337
16338 2008-02-01 Kenichi Handa <handa@m17n.org>
16339
16340 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16341 ASCII only string.
16342
16343 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16344
16345 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16346 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16347
16348 2008-02-01 Kenichi Handa <handa@m17n.org>
16349
16350 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16351
16352 * coding.c (QCmnemonic, QCdefalut_char)
16353 (QCdecode_translation_table, QCencode_translation_table)
16354 (QCpost_read_conversion, QCpre_write_conversion): New variables.
16355 (get_translation_table): Return a list of translation tables if
16356 necessary.
16357 (decode_coding): Call get_translation_table with ENCODEP 0.
16358 (char_encodable_p): If translation_table is non-nil, always call
16359 translate_char.
16360 (Fdefine_coding_system_internal): Accept list of translation
16361 tables as :encode-translation-table and :decode-translation-table.
16362 (Fcoding_system_put): New function.
16363 (syms_of_coding): Declare new symbols. Defsubr
16364 Scoding_system_put.
16365 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16366 typically JISX0212.
16367
16368 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16369 when the charset is superset type.
16370
16371 * character.c (translate_char): Accept list of translation tables.
16372
16373 2008-02-01 Kenichi Handa <handa@m17n.org>
16374
16375 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16376 (CODING_ATTR_TRANS_TBL): New macro.
16377
16378 * coding.c (get_translation_table): New function.
16379 (translate_chars): Fix the bug of skipping annotation data.
16380 (decode_coding, encode_coding): Utilize get_translation_table.
16381 (char_encodable_p, Funencodable_char_position): Translate char if
16382 necessary.
16383 (Ffind_coding_systems_region_internal)
16384 (Fcheck_coding_systems_region): Setup translation table for encode
16385 in a coding system attribute vector in advance.
16386 (Fdefine_coding_system_internal): Allow a symbol as translation
16387 table. For shift-jis type coding system, allow 4th charset.
16388
16389 2008-02-01 Kenichi Handa <handa@m17n.org>
16390
16391 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16392
16393 * xdisp.c (get_next_display_element): Pass -1 as POS to
16394 FACE_FOR_CHAR if displaying a C-string.
16395
16396 2008-02-01 Kenichi Handa <handa@m17n.org>
16397
16398 * composite.c (get_composition_id): Handle xoff and yoff in a
16399 composition rule.
16400
16401 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16402 (struct composition): New member lbearing and rbearing.
16403
16404 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16405 (x_get_glyph_overhangs): Handle a composition glyph.
16406 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16407
16408 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16409 composition glyph.
16410
16411 2008-02-01 Kenichi Handa <handa@m17n.org>
16412
16413 * print.c: Include charset.h.
16414 (Vprint_charset_text_property): New variable.
16415 (Qdefault): Extern it.
16416 (PRINT_STRING_NON_CHARSET_FOUND)
16417 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16418 (print_check_string_result): New variable.
16419 (print_check_string_charset_prop): New function.
16420 (print_prune_charset_plist): New variable.
16421 (print_prune_string_charset): New function.
16422 (print_object): Call print_prune_string_charset if
16423 Vprint_charset_text_property is not t.
16424 (print_interval): Print nothing if interval->plist is nil.
16425 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16426 variable. Init and staticpro print_prune_charset_plist.
16427
16428 2008-02-01 Kenichi Handa <handa@m17n.org>
16429
16430 * fontset.c (new_fontset_from_font_name): Use the specified font
16431 for all characters in the new fontset.
16432
16433 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16434 OBJECT args.
16435
16436 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16437 OBJECT args for composition too.
16438
16439 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16440 OBJECT args.
16441
16442 2008-02-01 Kenichi Handa <handa@m17n.org>
16443
16444 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16445
16446 * fontset.c (reorder_font_vector): Adjust for the change of
16447 FONT_DEF format.
16448 (fontset_face): New arg id. Change caller.
16449 (face_for_char): New args pos and object.
16450 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16451 (fs_query_fontset): Check NAME by Fassoc too.
16452 (Fset_fontset_font): Allow non-XLFD font name.
16453 (Ffontset_info): Adjust for the change of FONT_DEF format.
16454
16455 * fontset.h (face_for_char): Adjust prototype.
16456
16457 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16458 (append_space, extend_face_to_end_of_line)
16459 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16460 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16461
16462 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16463 POS and OBJECT args.
16464
16465 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16466 POS and OBJECT args.
16467
16468 2008-02-01 Jason Rumney <jasonr@gnu.org>
16469
16470 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16471 of GlobalAlloc'ed memory.
16472
16473 2008-02-01 Kenichi Handa <handa@m17n.org>
16474
16475 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16476
16477 * charset.h (charset_table_used): Delete extern.
16478
16479 * charset.c (charset_table_used): Make it static.
16480 (map_charset_chars): Fix args to c_function with.
16481
16482 * chartab.c (map_sub_char_table_for_charset): Fix args to
16483 c_function with.
16484
16485 * coding.h (enum coding_result_code): Delete
16486 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16487
16488 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16489 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16490 (Vlast_code_conversion_error): New variables.
16491 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16492 (ONE_MORE_BYTE): Record error if any instead of signaling an
16493 error. If non-ASCII multibyte char is found, return the negative
16494 value of the code. All callers changed to check it.
16495 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16496 (record_conversion_result): New function. Change all codes setting
16497 coding->result to call this function.
16498 (detect_coding_utf_8, decode_coding_utf_8)
16499 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16500 Don't use the local variable incomplete.
16501 (emacs_mule_char): Change the second arg to `const'.
16502 (decode_coding): Fix of flushing out unprocessed data.
16503 (make_conversion_work_buffer): Fix making of a work buffer.
16504 (decode_coding_object): Return coding->dst_object.
16505
16506 * fontset.c (set_fontset_font): Fix args.
16507
16508 * lisp.h (CHARACTERBITS): Define as 22.
16509
16510 * process.c (send_process): Be sure to set coding->src_multibyte.
16511
16512 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16513
16514 2008-02-01 Kenichi Handa <handa@m17n.org>
16515
16516 * xdisp.c (handle_auto_composed_prop): Give limit to
16517 Fnext_single_char_property_change.
16518
16519 2008-02-01 Kenichi Handa <handa@m17n.org>
16520
16521 * composite.c (syms_of_composite): Don't make the composition hash
16522 table weak.
16523
16524 * fontset.c (Fset_fontset_font): Fix docstring.
16525
16526 * lisp.h (detect_coding_system): Adjust prototype.
16527
16528 * fileio.c (kill_workbuf_unwind): Delete this function.
16529 (Finsert_file_contents): Adjust the call of detect_coding_system.
16530 Get conversion_buffer by code_conversion_save. Use the macro
16531 CODING_MAY_REQUIRE_DECODING. After decoding, update
16532 coding_system.
16533
16534 * coding.h (make_conversion_work_buffer): Delete extern.
16535 (code_conversion_save): Extern it.
16536
16537 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16538 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16539 (decode_coding_utf_8): Don't do eol converion.
16540 (detect_coding_utf_16): Check coding->src_chars, not
16541 coding->src_bytes. Add heuristics for those that have no signature.
16542 (decode_coding_emacs_mule, decode_coding_iso_2022)
16543 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16544 Don't do eol converion.
16545 (adjust_coding_eol_type): Return a new coding system.
16546 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16547 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16548 each change.
16549 (decode_coding): Pay attention to undo_list. Do eol conversion for
16550 all types of coding-systems (if necessary).
16551 (Vcode_conversion_work_buf_list): Delete it.
16552 (Vcode_conversion_reused_workbuf): Rename from
16553 Vcode_conversion_reused_work_buf.
16554 (Vcode_conversion_workbuf_name): New variable.
16555 (reused_workbuf_in_use): New variable.
16556 (make_conversion_work_buffer): Delete the arg DEPTH.
16557 (code_conversion_restore): Change argument to cons.
16558 (code_conversion_save): Delete the argument BUFFER. Change callers.
16559 (detect_coding_system): New argument src_chars. Change callers.
16560 Fix for utf-16 detection.
16561 (init_coding_once): Don't use ISO_carriage_return.
16562 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16563 reused_workbuf_in_use.
16564
16565 2008-02-01 Kenichi Handa <handa@m17n.org>
16566
16567 * keymap.c (store_in_keymap): Pay attention to the case that idx
16568 is a cons specifying a character range.
16569
16570 2008-02-01 Kenichi Handa <handa@m17n.org>
16571
16572 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16573 HANDLED_RECOMPUTE_PROPS.
16574
16575 * coding.c (Fdefine_coding_system_internal): Fix checking of
16576 ascii compatibility.
16577
16578 2008-02-01 Kenichi Handa <handa@m17n.org>
16579
16580 * charset.c (find_charsets_in_text): Delete unused locale variable.
16581 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16582
16583 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16584 Resync charset_list to Vemacs_mule_charset_list.
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 * composite.c (update_compositions): Bind inhibit-read-only, etc
16592 to t before calling remove-list-of-text-properties.
16593
16594 * print.c (print_object): Always print ASCII chars as is.
16595
16596 2008-02-01 Kenichi Handa <handa@m17n.org>
16597
16598 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16599
16600 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16601 is a char table.
16602
16603 2008-02-01 Kenichi Handa <handa@m17n.org>
16604
16605 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16606
16607 2008-02-01 Kenichi Handa <handa@m17n.org>
16608
16609 * xfaces.c (set_lface_from_font_name): Fix for the case that
16610 FONTNAME is not fontset name.
16611
16612 2008-02-01 Kenichi Handa <handa@m17n.org>
16613
16614 * fns.c (base64_encode_1): Fix previous change.
16615
16616 2008-02-01 Kenichi Handa <handa@m17n.org>
16617
16618 * fontset.c (set_fontset_font): New function.
16619 (Fset_fontset_font): If a font is specified for a charset, use
16620 map_charset_chars to store the font spec in a fontset.
16621
16622 2008-02-01 Kenichi Handa <handa@m17n.org>
16623
16624 * fontset.c (fontset_face): Create a fallback fontset on demand.
16625 (make_fontset): Don't create a fallback fontset here.
16626 (free_face_fontset): Free a fallback fontset (if any) too.
16627 (n_auto_fontsets): Delete this variable.
16628 (auto_fontset_alist): New variable.
16629 (new_fontset_from_font_name): Check auto_fontset_alist.
16630 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16631 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16632 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16633 Defsubr Sfontset_list_all.
16634
16635 2008-02-01 Kenichi Handa <handa@m17n.org>
16636
16637 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16638
16639 2008-02-01 Kenichi Handa <handa@m17n.org>
16640
16641 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16642
16643 2008-02-01 Kenichi Handa <handa@m17n.org>
16644
16645 * editfns.c (Fgoto_char): Fix docstring.
16646
16647 2008-02-01 Kenichi Handa <handa@m17n.org>
16648
16649 * insdel.c (insert_from_gap): Adjust intervals correctly.
16650
16651 2008-02-01 Jason Rumney <jasonr@gnu.org>
16652
16653 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16654 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16655 (w32_initialize): Try to load it.
16656 (x_get_font_repertory): Use it if available.
16657 (w32_encode_char): Add shortcut for unicode output.
16658
16659 * w32fns.c (w32_load_system_font): Default charset to -1.
16660 (x_to_w32_charset): Match all fonts for unicode.
16661 (w32_to_x_charset): New parameter matching. Don't return partial
16662 or wildcard charsets.
16663 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16664 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16665 (w32_to_x_font): Match charset to real charset.
16666 (enum_font_cb2): Always list unicode versions.
16667
16668 * makefile.w32-in (temacs): Increase EMHEAP.
16669
16670 2008-02-01 Jason Rumney <jasonr@gnu.org>
16671
16672 * w32term.c (w32_encode_char): New charset parameter.
16673 font_info.encoding becomes encoding_type.
16674 (x_get_font_repertory): New function. Warning: stub only!
16675 (x_new_font): Return quickly if font already set.
16676 (x_new_fontset): fontsetname parameter is Lisp_Object.
16677 Use new fs_query_fontset. Try new_fontset_from_font_name.
16678 Use fontset_name for return value.
16679
16680 * w32term.h: Declare x_get_font_repertory.
16681
16682 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16683 place of find_charset_in_text. Use encode_coding_object in place
16684 of encode_coding.
16685 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16686 decode_coding.
16687
16688 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16689 of x_new_fontset.
16690 (w32_load_system_font): Initialize charset as unicode.
16691 font_info.encoding becomes encoding_type.
16692 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16693 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16694 (syms_of_w32fns): Set get_font_repertory_func.
16695
16696 * w32console.c: Include character.h. Use terminal_encode_buffer
16697 from term.c.
16698 (write_glyphs): Use new version of encode_terminal_code. Use
16699 encode_coding_object in place of encode_coding.
16700
16701 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16702 encoding becomes encoding_type.
16703
16704 * term.c (terminal_encode_buffer): Make externally visible.
16705
16706 * makefile.w32-in: Add character.h dependancies.
16707 (character.o, chartab.o): New targets.
16708
16709 2008-02-01 Kenichi Handa <handa@m17n.org>
16710
16711 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16712 CODING_ID_EOL_TYPE.
16713
16714 2008-02-01 Andreas Schwab <schwab@suse.de>
16715
16716 * coding.c (produce_chars): Revert last change.
16717
16718 2008-02-01 Kenichi Handa <handa@m17n.org>
16719
16720 * charset.h (charset_unicode): Extern it.
16721
16722 * charset.c (string_xstring_p): Check by (C >= 0x100).
16723 (find_charsets_in_text): Change format of the arc CHARSETS. New
16724 arg MULTIBYTE.
16725 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16726 change of find_charsets_in_text.
16727 (Fsplit_char): Fix doc. Never return unknown.
16728
16729 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16730
16731 * coding.c (Fdefine_coding_system_alias): Update
16732 Vcoding_system_list.
16733
16734 * fontset.c (load_font_get_repertory): Pay attention to the case
16735 that ENCODING of a font is specified by a char-table.
16736
16737 * xterm.c (x_get_font_repertory): Handle the case that the
16738 encoding of font is other than Unicode.
16739
16740 2008-02-01 Kenichi Handa <handa@m17n.org>
16741
16742 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16743 if a character is encodable by the terminal coding system. If
16744 not, produces proper number of `?'s. Update
16745 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16746 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16747
16748 2008-02-01 Kenichi Handa <handa@m17n.org>
16749
16750 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16751 variables.
16752 (encode_terminal_code): Change argument. Encode multiple
16753 characters at once. Store the result of encoding in
16754 terminal_encode_buffer.
16755 (write_glyphs, insert_glyphs): Adjust for the change of
16756 encode_terminal_code.
16757 (term_init): Initialize terminal_encode_buffer and
16758 terminal_encode_buf_size.
16759
16760 * coding.c (consume_chars): If coding->src_object is nil, don't
16761 check annotation.
16762
16763 2008-02-01 Kenichi Handa <handa@m17n.org>
16764
16765 * character.c (char_string): Use ASCII_CHAR_P instead of
16766 SINGLE_BYTE_CHAR_P.
16767
16768 2008-02-01 Kenichi Handa <handa@m17n.org>
16769
16770 * xdisp.c (handle_auto_composed_prop): Check if the last
16771 characters of auto-composed region is newly composed with the
16772 following characters.
16773 (handle_composition_prop): Fix checking of point being inside
16774 composition.
16775
16776 2008-02-01 Kenichi Handa <handa@m17n.org>
16777
16778 * fns.c (concat): Don't change multibyteness of the result by
16779 concatenating an 8-bit character.
16780
16781 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16782 multibyteness of the result when newelt is an 8-bit character.
16783
16784 2008-02-01 Dave Love <fx@gnu.org>
16785
16786 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16787 EMACS_INT.
16788
16789 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16790
16791 * xfaces.c (face_numeric_value): Declare dim size_t.
16792 (Finternal_lisp_face_equal_p): Remove unused f.
16793
16794 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16795 (MATRIX_ROW): Remove unused vars.
16796 (draw_glyphs, x_insert_glyphs, fast_find_position)
16797 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16798 byte/char counts.
16799
16800 * regex.c (regex_compile): Remove unused var.
16801
16802 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16803
16804 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16805 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16806
16807 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16808
16809 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16810
16811 * fileio.c (Fwrite_region): Remove unused var.
16812
16813 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16814 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16815
16816 * composite.c (Fremove_list_of_text_properties): Declare.
16817
16818 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16819 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16820 (coding_inherit_eol_type): Remove unused attrs.
16821 (detect_coding): Cast arg of detect_eol.
16822
16823 * charset.c (syms_of_charset): Remove unused var p.
16824 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16825 byte/char counts.
16826
16827 * casetab.c (set_case_table): Remove unused var.
16828
16829 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16830 unused vars.
16831
16832 2008-02-01 Dave Love <fx@gnu.org>
16833
16834 * xterm.c (x_bitmap_mask): Declare.
16835
16836 2008-02-01 Dave Love <fx@gnu.org>
16837
16838 * xterm.c (x_term_init): Fix type error.
16839
16840 * lisp.h: Add Funibyte_char_to_multibyte.
16841
16842 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16843 (Fset_coding_system_priority): Doc fix.
16844
16845 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16846
16847 * indent.c (check_composition): Make start and end EMACS_INT.
16848
16849 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16850
16851 * xdisp.c (handle_composition_prop, check_point_in_composition):
16852 Make buffer positions EMACS_INT.
16853
16854 * composite.c (find_composition, run_composition_function)
16855 (update_compositions, Ffind_composition_internal): Make buffer
16856 positions EMACS_INT.
16857
16858 * composite.h (find_composition, update_compositions): Make
16859 position args EMACS_INT.
16860
16861 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16862
16863 * intervals.c (get_property_and_range):
16864 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16865
16866 * unexalpha.c: Don't include varargs.h.
16867
16868 2008-02-01 Dave Love <fx@gnu.org>
16869
16870 * coding.h (ENCODE_UTF_8): New.
16871
16872 * Makefile.in (gtkutil.o): Depend on coding.h.
16873
16874 * coding.c (Fset_coding_system_priority): Doc fix.
16875
16876 2008-02-01 Kenichi Handa <handa@m17n.org>
16877
16878 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16879 the case of auto saving.
16880
16881 2008-02-01 Andreas Schwab <schwab@suse.de>
16882
16883 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16884 `range' from GC.
16885
16886 2008-02-01 Kenichi Handa <handa@m17n.org>
16887
16888 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16889
16890 2008-02-01 Kenichi Handa <handa@m17n.org>
16891
16892 * fileio.c (choose_write_coding_system): Return a decided coding system.
16893 (Fwrite_region): Set Vlast_coding_system_used to the return value
16894 of choose_write_coding_system.
16895
16896 2008-02-01 Kenichi Handa <handa@m17n.org>
16897
16898 * charset.c (Fset_charset_priority): Pay attention to duplicated
16899 arguments.
16900
16901 * coding.c (QCcategory): New variable.
16902 (syms_of_coding): Defsym it. Set all elements of
16903 Vcoding_category_table and their symbol values.
16904 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16905 coding-category-XXX, and coding-category-list.
16906 (Fdefine_coding_system_internal): Add category in the plist.
16907
16908 2008-02-01 Kenichi Handa <handa@m17n.org>
16909
16910 * callproc.c (Fcall_process): Handle carryover correctly.
16911
16912 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16913 (raw_text_coding_system): Check NILP (coding_system).
16914 (coding_inherit_eol_type): Check NILP (coding_system) and
16915 NILP (parent).
16916 (consume_chars): Fix for the case of raw-text.
16917
16918 * process.c (read_process_output): Handle carryover correctly.
16919
16920 2008-02-01 Dave Love <fx@gnu.org>
16921
16922 * regex.c (re_search_2): Fix last change.
16923
16924 2008-02-01 Kenichi Handa <handa@m17n.org>
16925
16926 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16927 target_multibyte. Even in a unibyte case, return a converted
16928 multibyte char.
16929 (GET_CHAR_AFTER): New macro.
16930 (PATFETCH): Translate via multibyte char.
16931 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16932 (SETUP_MULTIBYTE_RANGE): New macro.
16933 (regex_compile): Setup compiled code so that its multibyteness
16934 matches that of a target. Fix the handling of "[X-YZ]" using
16935 SETUP_MULTIBYTE_RANGE.
16936 (analyse_first) <charset>: For filling fastmap for all multibyte
16937 characters, don't check by BASE_LEADING_CODE_P.
16938 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16939 the same as RE_MULTIBYTE_P (bufp) now.
16940 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16941 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16942 (TRANSLATE_VIA_MULTIBYTE): New macro.
16943 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16944 It is the same as RE_MULTIBYTE_P (bufp) now.
16945 <exactn>: Translate via multibyte.
16946 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16947 translate it.
16948 <charset, charset_not>: Fetch a character by
16949 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16950 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16951 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16952 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16953 by GET_CHAR_AFTER.
16954 (bcmp_translate): Likewise.
16955
16956 * search.c (compile_pattern): Check the member target_multibyte,
16957 not the member multibyte of buf.
16958
16959 * lread.c (read1): While reading a string, set force_singlebyte
16960 and force_multibyte correctly.
16961
16962 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16963 up of unibyte_to_multibyte_table.
16964
16965 2008-02-01 Kenichi Handa <handa@m17n.org>
16966
16967 * coding.c (setup_coding_system): If coding has
16968 post-read-conversion or pre-write-conversion, set
16969 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16970 respectively.
16971 (decode_coding_gap): Run post-read-conversion if any.
16972
16973 * fileio.c (Finsert_file_contents): Even if we read into a
16974 unibyte buffer, check if we must decode the result or not.
16975
16976 2008-02-01 Kenichi Handa <handa@m17n.org>
16977
16978 * coding.c (make_conversion_work_buffer): Change the work buffer
16979 name to the same one as that of Emacs 21.
16980
16981 2008-02-01 Kenichi Handa <handa@m17n.org>
16982
16983 * coding.h (make_conversion_work_buffer): Adjust prototype.
16984 (code_conversion_restore): Don't extern it.
16985
16986 * coding.c (detected_mask): Delete unused variable.
16987 (decode_coding_iso_2022): Pay attention to the byte sequence of
16988 CTEXT extended segment, and retain those bytes as is.
16989 (decode_coding_ccl): Delete unused variable `valids'.
16990 (setup_coding_system): Delete unused variable `category'.
16991 (consume_chars): Delete unused variable `category'. Make it work
16992 for non-multibyte case.
16993 (make_conversion_work_buffer): Change argument.
16994 (saved_coding): Delete unused variable.
16995 (code_conversion_restore): Don't check saved_coding->destination.
16996 (code_conversion_save): New function.
16997 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16998 instead of record_unwind_protect.
16999 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
17000 (detect_coding_system): Delete unused variable `mask'.
17001 (Fdefine_coding_system_internal): Delete unused variable id.
17002
17003 * fileio.c (kill_workbuf_unwind): New function.
17004 (Finsert_file_contents): On replacing, call
17005 make_conversion_work_buffer with correct args, and call
17006 record_unwind_protect with the first arg kill_workbuf_unwind.
17007
17008 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
17009
17010 2008-02-01 Kenichi Handa <handa@m17n.org>
17011
17012 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
17013 (fontset_add): Fix for the case that TO is less than TO1.
17014 (Ffontset_info): Don't use fallback fontset on checking the
17015 default fontset.
17016 (dump_fontset): New function for debugging.
17017
17018 * coding.c (Fdefine_coding_system_internal): Fix for the case that
17019 coding_type is Qcharset.
17020
17021 2008-02-01 Kenichi Handa <handa@m17n.org>
17022
17023 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
17024 (map_char_table): Don't inherit the value from the parent on
17025 initializing VAL. Adjust for the above change.
17026
17027 2008-02-01 Kenichi Handa <handa@m17n.org>
17028
17029 * coding.c (Qsignature, Qendian): Delete these variables.
17030 (syms_of_coding): Don't initialize them.
17031 (CATEGORY_MASK_UTF_16_AUTO): New macro.
17032 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
17033 detect_info->found.
17034 (decode_coding_utf_16): Don't detect BOM here.
17035 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
17036 is NOT utf_16_without_bom.
17037 (setup_coding_system): For a coding system of type utf-16, check
17038 if the attribute :endian is Qbig or not (not nil or not), and set
17039 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
17040 (detect_coding): If coding type is utf-16 and BOM detection is
17041 required, detect it.
17042 (Fdefine_coding_system_internal): For a coding system of type
17043 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
17044
17045 2008-02-01 Kenichi Handa <handa@m17n.org>
17046
17047 * coding.c (coding_set_source): Fix for the case that the current
17048 buffer is different from coding->src_object.
17049 (decode_coding_object): Don't use the conversion work buffer if
17050 DST_OBJECT is a buffer.
17051
17052 2008-02-01 Dave Love <fx@gnu.org>
17053
17054 * lread.c (read_emacs_mule_char) [len==2]: Index
17055 emacs_mule_charset correctly.
17056
17057 2008-02-01 Dave Love <fx@gnu.org>
17058
17059 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
17060 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
17061 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
17062 treated specially.)
17063 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
17064 (detected_mask): Remove Big5 bits.
17065
17066 2008-02-01 Kenichi Handa <handa@m17n.org>
17067
17068 The following changes are to make the font rescaling facility
17069 compatible with Emacs 21.
17070
17071 * xfaces.c (Vface_font_rescale_alist): Rename from
17072 Vface_resizing_fonts.
17073 (struct font_name): Rename member resizing_ratio to rescale_ratio.
17074 (font_rescale_ratio): Rename from font_resizing_ratio.
17075 (split_font_name): Set font->rescale_ratio.
17076 (better_font_p): Pay attention to font->rescale_ratio.
17077 (build_scalable_font_name): Likewise. Change RESX, and RESY
17078 fields.
17079 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
17080
17081 2008-02-01 Kenichi Handa <handa@m17n.org>
17082
17083 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
17084 (Qutf_16_le): Remove these variables.
17085 (syms_of_coding): Don't DEFSYM them.
17086 (decode_coding_utf_16): Fix handling of BOM.
17087 (encode_coding_utf_16): Fix handling of BOM.
17088
17089 2008-02-01 Kenichi Handa <handa@m17n.org>
17090
17091 * fileio.c (Finsert_file_contents): On replacing, before decoding
17092 the file into the work buffer, set point of the work buffer to the end.
17093
17094 2008-02-01 Dave Love <fx@gnu.org>
17095
17096 * coding.c (Fcheck_coding_systems_region): Fix type errors.
17097
17098 2008-02-01 Dave Love <fx@gnu.org>
17099
17100 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17101 and fix C types.
17102
17103 2008-02-01 Kenichi Handa <handa@m17n.org>
17104
17105 * xdisp.c (SKIP_GLYPHS): New macro.
17106 (set_cursor_from_row): Pay attention to string display properties.
17107
17108 * category.c (copy_category_entry): Fix for the case that RANGE
17109 is an integer.
17110
17111 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
17112
17113 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
17114
17115 2008-02-01 Kenichi Handa <handa@m17n.org>
17116
17117 * charset.c (Fcharset_id_internal): New function.
17118 (syms_of_charset): Defsubr it.
17119
17120 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
17121 with the last arg charset_list acquired from coding.
17122 (Fdefine_coding_system_internal): For ccl-based coding system, fix
17123 the attribute coding_attr_ccl_valids.
17124
17125 * coding.h (enum define_coding_ccl_arg_index): Set the first
17126 member coding_arg_ccl_decoder to coding_arg_max.
17127
17128 * ccl.h (ccl_driver): Adjust prototype.
17129
17130 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
17131 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
17132 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
17133 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
17134 last arg Qnil.
17135
17136 2008-02-01 Kenichi Handa <handa@m17n.org>
17137
17138 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
17139 call encode_char.
17140
17141 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
17142
17143 2008-02-01 Dave Love <fx@gnu.org>
17144
17145 * composite.c (syms_of_composite): Make composition_hash_table weak.
17146
17147 2008-02-01 Kenichi Handa <handa@m17n.org>
17148
17149 * dispextern.h (check_face_attributes, generate_ascii_font_name)
17150 (font_name_registry): Don't extern them.
17151 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
17152
17153 * fontset.h (Qfontset): Don't extern it.
17154 (new_fontset_from_font_name): Extern it.
17155
17156 * fontset.c: Give 8 extra slots to fontset objects.
17157 (Qfontset_info): New variable.
17158 (syms_of_fontset): Defsym it.
17159 (FONTSET_FALLBACK): New macro.
17160 (fontset_face): Try also the default fontset.
17161 (make_fontset): Realize a fallback fontset from the default fontset.
17162 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
17163 using split_font_name_into_vector and build_font_name_from_vector.
17164 (Fset_fontset_font): Access the elements of font_spec by enum
17165 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
17166 name by using split_font_name_into_vector.
17167 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
17168 generate a proper font name from the fontset name. Update
17169 Vfontset_alias_alist.
17170 (n_auto_fontsets): New variable.
17171 (new_fontset_from_font_name): New function.
17172 (Ffont_info): Store the information about fonts generated from the
17173 default fontset in the first extra slot of the returned char-table.
17174
17175 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
17176 (font_name_registry): Delete function.
17177 (split_font_name_into_vector): New function.
17178 (build_font_name_from_vector): New function.
17179 (font_list): The argument REGISTRY is now a list of registry names.
17180 (choose_face_font): If we are choosing an ASCII font, and ATTRS
17181 specifies an explicit font name, return the name as is. Make a
17182 list of registy names.
17183
17184 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
17185 of x_new_fontset.
17186 (Fx_create_frame): Don't call x_new_fontset here. Just use
17187 x_list_fonts to check the existence of fonts.
17188
17189 * xterm.h (x_new_fontset): Adjust prototype.
17190
17191 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
17192 string. Use new_fontset_from_font_name to create a fontset from a
17193 font name.
17194
17195 2008-02-01 Kenichi Handa <handa@m17n.org>
17196
17197 * syntax.c (Vfind_word_boundary_function_table): New name for
17198 Vnext_word_boundary_function_table.
17199 (find-word-boundary-function-table): New name for
17200 next-word-boundary-function-table.
17201
17202 2008-02-01 Dave Love <fx@gnu.org>
17203
17204 * Makefile.in: Fix some dependencies.
17205
17206 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
17207 set it to nil before returning.
17208
17209 * composite.c (update_compositions): Fix type error.
17210
17211 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
17212
17213 2008-02-01 Kenichi Handa <handa@m17n.org>
17214
17215 * xterm.c (x_new_font): Optimize for the case that the font is
17216 already set for the frame.
17217
17218 2008-02-01 Kenichi Handa <handa@m17n.org>
17219
17220 * chartab.c (char_table_ascii): Check if the char table contents
17221 is sub-char-table or not.
17222 (char_table_set, char_table_set_range): Fix argument to
17223 char_table_ascii.
17224
17225 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
17226 (detect_coding_utf_8, detect_coding_utf_16)
17227 (detect_coding_emacs_mule, detect_coding_iso_2022)
17228 (detect_coding_sjis, detect_coding_big5)
17229 (detect_coding_ccl, detect_coding_charset): Change argument MASK
17230 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
17231 sequence is valid in this coding system. Change callers.
17232 (MAX_ANNOTATION_LENGTH): New macro.
17233 (ADD_ANNOTATION_DATA): New macro.
17234 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
17235 ADD_ANNOTATION_DATA. Change the format of annotation data.
17236 (ADD_CHARSET_DATA): New macro.
17237 (emacs_mule_char): New argument ID. Change callers.
17238 (decode_coding_emacs_mule, decode_coding_iso_2022)
17239 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17240 Produce charset annotation data in coding->charbuf.
17241 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
17242 to charset annotation data in coding->charbuf.
17243 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
17244 coding->common_flags if the coding system is iso-2022 based and
17245 uses designation.
17246 (produce_composition): Adjust for the new annotation data format.
17247 (produce_charset): New function.
17248 (produce_annotation): Handle charset annotation.
17249 (handle_composition_annotation, handle_charset_annotation): New
17250 functions.
17251 (consume_chars): Handle charset annotation. Utilize the above two
17252 functions.
17253 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
17254 buffer, get the deleted text as a string and set
17255 coding->src_object to that string.
17256 (detect_coding, detect_coding_system): Use the new struct
17257 coding_detection_info.
17258
17259 * coding.h (struct coding_detection_info): New structure.
17260 (struct coding_system): Adjust prototype of the member `detector'.
17261 (CODING_ANNOTATE_CHARSET_MASK): New macro.
17262
17263 2008-02-01 Kenichi Handa <handa@m17n.org>
17264
17265 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
17266
17267 2008-02-01 Dave Love <fx@gnu.org>
17268
17269 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
17270 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
17271 to new local and nullify apropos_accumulate before returning.
17272 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
17273
17274 2008-02-01 Kenichi Handa <handa@m17n.org>
17275
17276 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
17277 correctly.
17278
17279 2008-02-01 Dave Love <fx@gnu.org>
17280
17281 * fns.c (Flanginfo): Call synchronize_system_time_locale.
17282
17283 2008-02-01 Kenichi Handa <handa@m17n.org>
17284
17285 The following changes are to make character composition happen
17286 automatically on displaying.
17287
17288 * Makefile.in (lisp, shortlisp): Add composite.elc.
17289
17290 * composite.h (Qauto_composed, Vauto_composition_function)
17291 (Qauto_composition_function): Extern them.
17292
17293 * composite.c (Vcomposition_function_table)
17294 (Qcomposition_function_table): Delete variables.
17295 (Qauto_composed, Vauto_composition_function)
17296 (Qauto_composition_function): New variables.
17297 (run_composition_function): Don't call
17298 compose-chars-after-function.
17299 (update_compositions): Clear `auto-composed' text property.
17300 (compose_chars_in_text): Delete this function.
17301 (syms_of_composite): Staticpro Qauto_composed and
17302 Qauto_composition_function. Declare Vauto_composition_function as
17303 a Lisp variable.
17304
17305 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
17306
17307 * xdisp.c (it_props): Add an entry for Qauto_composed.
17308 (handle_auto_composed_prop): New function.
17309
17310 * xselect.c (selection_data_to_lisp_data): Don't call
17311 compose_chars_in_text.
17312
17313 2008-02-01 Dave Love <fx@gnu.org>
17314
17315 * keyboard.c (read_char): Modify checking around use of
17316 Vkeyboard_translate_table.
17317
17318 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17319 and fix C types.
17320
17321 2008-02-01 Kenichi Handa <handa@m17n.org>
17322
17323 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17324 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17325 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17326 the case that the last byte is '\r' correctly.
17327 (decode_coding): Flush out the unprocessed data correctly.
17328 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17329
17330 2008-02-01 Dave Love <fx@gnu.org>
17331
17332 * xterm.c (XTread_socket): Fix changes for defined keysyms.
17333 Add XK_ISO... case.
17334 (xaw_scroll_callback): Revert last change.
17335
17336 2008-02-01 Kenichi Handa <handa@m17n.org>
17337
17338 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17339
17340 2008-02-01 Kenichi Handa <handa@m17n.org>
17341
17342 * xfaces.c (Vface_resizing_fonts): New variable.
17343 (struct font_name): New member `resizing_ratio'.
17344 (font_resizing_ratio): New function.
17345 (split_font_name): Set font->resizing_ratio.
17346 (better_font_p): Pay attention to font->resizing_ratio.
17347 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
17348 RESX, and RESY fields.
17349 (try_alternative_families): Try scalable fonts if
17350 Vscalable_fonts_allowed is not Qt.
17351 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17352
17353 2008-02-01 Dave Love <fx@gnu.org>
17354
17355 * xterm.c (xaw_scroll_callback): Cast correctly.
17356
17357 2008-02-01 Dave Love <fx@gnu.org>
17358
17359 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
17360 (lispy_kana_keys): Comment out.
17361 (make_lispy_event) [XK_kana_A]: Comment out.
17362
17363 * xterm.c (xaw_scroll_callback): Cast call_data.
17364 (XTread_socket): Deal with ASCII keysyms.
17365 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17366
17367 2008-02-01 Dave Love <fx@gnu.org>
17368
17369 * xterm.c (Vx_keysym_table): New.
17370 (syms_of_xterm): Initialize it.
17371 (XTread_socket): Use it.
17372 From head: Eliminate incorrect optimization that tried to avoid
17373 decoding the output of X*LookupString.
17374 (x_get_font_repertory): Delete charset declaration.
17375
17376 2008-02-01 Kenichi Handa <handa@m17n.org>
17377
17378 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17379 return 0.
17380 (Fdefine_coding_system_internal): Setup
17381 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17382
17383 2008-02-01 Dave Love <fx@gnu.org>
17384
17385 * coding.c (Fcheck_coding_system): Doc fix.
17386
17387 * editfns.c (Finsert_byte): Return a proper value.
17388
17389 2008-02-01 Kenichi Handa <handa@m17n.org>
17390
17391 * coding.c (decode_coding): Fix args to translate_chars. Pay
17392 attention to Vstandard_translation_table_for_decode.
17393 (encode_coding): Fix args to translate_chars. Pay attention to
17394 Vstandard_translation_table_for_encode.
17395
17396 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17397 SINGLE_BYTE_CHAR_P.
17398
17399 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17400 not by SINGLE_BYTE_CHAR_P.
17401
17402 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17403 SINGLE_BYTE_CHAR_P.
17404
17405 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17406 SINGLE_BYTE_CHAR_P.
17407
17408 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17409 by SINGLE_BYTE_CHAR_P.
17410
17411 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17412 SINGLE_BYTE_CHAR_P.
17413
17414 2008-02-01 Dave Love <fx@gnu.org>
17415
17416 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17417
17418 2008-02-01 Dave Love <fx@gnu.org>
17419
17420 * fns.c (Flanginfo): Fix typo.
17421
17422 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17423
17424 2008-02-01 Kenichi Handa <handa@m17n.org>
17425
17426 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17427 (detect_coding_emacs_mule, detect_coding_iso_2022)
17428 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17429 incomplete byte sequence. Don't update *mask when correctly detected.
17430 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17431 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17432 (detect_coding, detect_coding_system): Adjust for the changes above.
17433
17434 2008-02-01 Kenichi Handa <handa@m17n.org>
17435
17436 * character.c (char_string): Rename from
17437 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17438 (string_char): Rename from string_char.
17439
17440 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17441 if C is greater than MAX_3_BYTE_CHAR.
17442 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17443 string_char instead of string_char_with_unification.
17444
17445 2008-02-01 Dave Love <fx@gnu.org>
17446
17447 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17448
17449 2008-02-01 Kenichi Handa <handa@m17n.org>
17450
17451 * keymap.c (push_key_description): Pay attention to force_multibyte.
17452
17453 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17454
17455 2008-02-01 Dave Love <fx@gnu.org>
17456
17457 * charset.c (define_charset_internal): Rename `supprementary'.
17458
17459 * Makefile.in (lisp, shortlisp): Remove latin-N.
17460
17461 2008-02-01 Dave Love <fx@gnu.org>
17462
17463 * xfns.c (x_window, x_window): Use use_xim.
17464
17465 * xterm.c (use_xim): Initialize.
17466 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17467 (x_term_init): Maybe set use_xim.
17468
17469 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17470
17471 2008-02-01 Kenichi Handa <handa@m17n.org>
17472
17473 * search.c (search_buffer): Fix case-fold-search of multibyte
17474 characters.
17475 (boyer_moore): Rename the last argument to char_high_bits.
17476
17477 2008-02-01 Kenichi Handa <handa@m17n.org>
17478
17479 * xdisp.c (display_string): Fix for the case of zero width glyph.
17480
17481 * xfns.c (x_set_font): Change the error message of the case that
17482 x_new_fontset returns Qt.
17483
17484 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17485 (Finternal_set_lisp_face_attribute): Use signal_error for the
17486 error of invalid fontset.
17487
17488 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17489 fontset, return Qt.
17490
17491 2008-02-01 Dave Love <fx@gnu.org>
17492
17493 * unexelf.c (unexec): Make .got handling not SGI-specific.
17494
17495 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17496
17497 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17498
17499 * keyboard.c (read_key_sequence): Fix type error.
17500
17501 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17502 type error.
17503
17504 * fontset.c (fontset_add): Return Lisp_Object.
17505
17506 2008-02-01 Dave Love <fx@gnu.org>
17507
17508 * charset.h (charset_ordered_list_tick): Declare extern.
17509
17510 2008-02-01 Kenichi Handa <handa@m17n.org>
17511
17512 The following changes (and some of 2008-02-01 changes of mine) are
17513 for handling syntax, category, and case conversion for unibyte
17514 characters by converting them to multibyte on the fly. With these
17515 changes, we don't have to setup syntax and case tables for unibyte
17516 characters in each language environment.
17517
17518 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17519 multibyte if necessary.
17520
17521 * bytecode.c (Fbyte_code): Likewise.
17522
17523 * character.h (LEADING_CODE_LATIN_1_MIN)
17524 (LEADING_CODE_LATIN_1_MAX): New macros.
17525 (unibyte_to_multibyte_table): Extern it.
17526 (unibyte_char_to_multibyte): New macro.
17527 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17528 (CHAR_LEADING_CODE): New macro.
17529 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17530
17531 * character.c (unibyte_to_multibyte_table): New variable.
17532 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17533 (multibyte_char_to_unibyte): If C is an eight-bit character,
17534 convert it to the corresponding byte value.
17535
17536 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17537 not 1, signals an error. Update the elements of
17538 unibyte_to_multibyte_table.
17539 (init_charset_once): Initialize unibyte_to_multibyte_table.
17540 (syms_of_charset): Define the charset `iso-8859-1'.
17541
17542 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17543 as is without converting it to unibyte. In a unibyte buffer,
17544 convert C to multibyte before checking the syntax.
17545
17546 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17547
17548 * minibuf.c (Fminibuffer_complete_word): Use the macro
17549 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17550
17551 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17552
17553 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17554 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17555 that is zero, convert an eight-bit char to multibyte.
17556 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17557 non-emacs case.
17558 (PATFETCH): Convert an eight-bit char to multibyte.
17559 (HANDLE_UNIBYTE_RANGE): New macro.
17560 (regex_compile): Setup the compiled pattern for multibyte chars
17561 even if the given regex string is unibyte. Use PATFETCH_RAW
17562 instead of PATFETCH in many places. To handle `charset'
17563 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17564 only for ASCII chars.
17565 (analyse_first) <exactn>: Simplify because the compiled pattern
17566 is multibyte.
17567 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17568 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17569 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17570 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17571 multibyte always 1.
17572 (re_search_2): In emacs, set the locale variable multibyte to 1,
17573 otherwise to 0. New local variable target_multibyte. Check it
17574 to decide the multibyteness of STR1 and STR2. If
17575 target_multibyte is zero, convert unibyte chars to multibyte
17576 before translating and checking fastmap.
17577 (TARGET_CHAR_AND_LENGTH): New macro.
17578 (re_match_2_internal): In emacs, set the locale variable multibyte
17579 to 1, otherwise to 0. New local variable target_multibyte. Check
17580 it to decide the multibyteness of STR1 and STR2. Use
17581 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17582 <charset, charset_not>: If multibyte is nonzero, check fastmap
17583 only for ASCII chars. Call bcmp_translate with
17584 target_multibyte, not with multibyte.
17585 <begline>: Declare the local variable C as `unsigned'.
17586 (bcmp_translate): Change the last arg name to target_multibyte.
17587
17588 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17589 the regexp pattern and the matching target. Set cp->buf.multibyte
17590 to the multibyteness of the regexp pattern. Set
17591 cp->but.target_multibyte to the multibyteness of the matching target.
17592 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17593 FETCH_STRING_CHAR_ADVANCE.
17594 (Freplace_match): Convert unibyte chars to multibyte.
17595
17596 * syntax.c (char_quoted, back_comment, scan_words)
17597 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17598 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17599 unibyte chars to multibyte.
17600 (skip_chars): Delete the arg syntaxp, and move the code for
17601 handling syntaxes to skip_syntaxes. Change callers.
17602 Fix the case that the multibyteness of STRING and the current
17603 buffer doesn't match.
17604 (skip_syntaxes): New function.
17605 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17606 SINGLE_BYTE_CHAR_P.
17607
17608 2008-02-01 Kenichi Handa <handa@m17n.org>
17609
17610 * xfaces.c (QCfontset): New variable.
17611 (LFACE_FONTSET): New macro.
17612 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17613 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17614 (Finternal_set_lisp_face_attribute)
17615 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17616 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17617 check also LFACE_FONTSET_INDEX.
17618 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17619 attrs[LFACE_FONT_INDEX].
17620 (syms_of_xfaces): Intern and staticpro QCfontset.
17621
17622 * dispextern.h (enum lface_attribute_index): New member
17623 LFACE_FONTSET_INDEX.
17624
17625 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17626
17627 2008-02-01 Kenichi Handa <handa@m17n.org>
17628
17629 * coding.c (coding_set_destination): Fix coding->destination for
17630 the case converting a region.
17631 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17632 (encode_coding_object): Fix coding->dst_pos and
17633 coding->dst_pos_byte for the case converting a region.
17634
17635 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17636
17637 * character.h (BYTE8_STRING): New macro.
17638
17639 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17640
17641 2008-02-01 Kenichi Handa <handa@m17n.org>
17642
17643 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17644 characters by octal form.
17645
17646 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17647
17648 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17649 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17650 _fetch_multibyte_char_len.
17651 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17652
17653 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17654
17655 * casefiddle.c (casify_object): Simplify. Handle the case that
17656 the case conversion change the byte length.
17657 (casify_region): Likewise.
17658
17659 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17660
17661 * character.c (_fetch_multibyte_char_len): Delete this variable.
17662 (syms_of_character): Setup Vprintable_chars.
17663
17664 * editfns.c (Fchar_equal): Fix for the unibyte case.
17665 (Finsert_byte): New function.
17666 (syms_of_editfns): Defsubr it.
17667
17668 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17669 of direct code 0x3ffff.
17670
17671 * search.c (Freplace_match): Fix for the unibyte case.
17672
17673 2008-02-01 Kenichi Handa <handa@m17n.org>
17674
17675 * lread.c (safe_to_load_p): Fix the logic.
17676
17677 * syntax.c (scan_words): Don't treat characters belonging to
17678 different scripts as constituting a word.
17679
17680 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17681
17682 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17683
17684 * emacs.c (main): In the case of --unibyte, instead of aborting on
17685 finding non-empty buffer, make it unibyte.
17686
17687 2008-02-01 Kenichi Handa <handa@m17n.org>
17688
17689 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17690 to create a fontset.
17691
17692 2008-02-01 Dave Love <fx@gnu.org>
17693
17694 * character.c (Funibyte_char_to_multibyte): Doc fix.
17695
17696 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17697
17698 2008-02-01 Kenichi Handa <handa@m17n.org>
17699
17700 * fontset.c (fontset_add): Make the type `int'.
17701 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17702
17703 * character.c (unibyte_char_to_multibyte)
17704 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17705 charset_unibyte, not charset_primary.
17706
17707 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17708
17709 * charset.c (charset_unibyte): Rename from charset_primary.
17710 (Funibyte_charset): Rename from Fprimary_charset.
17711 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17712 (syms_of_charset): Adjust for the above changes.
17713
17714 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17715 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17716 it->multibyte_p is zero.
17717
17718 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17719 Delete extern.
17720
17721 2008-02-01 Kenichi Handa <handa@m17n.org>
17722
17723 * coding.c (Fdefine_coding_system_internal): Fix category setting
17724 for a coding system of type iso-2022.
17725
17726 2008-02-01 Kenichi Handa <handa@m17n.org>
17727
17728 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17729
17730 2008-02-01 Kenichi Handa <handa@m17n.org>
17731
17732 * syntax.c (Vnext_word_boundary_function_table): New variable.
17733 (next-word-boundary-function-table): Declare it as a Lisp variable
17734 in syms_of_syntax.
17735 (scan_words): Call functions in Vnext_word_boundary_function_table
17736 if any.
17737
17738 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17739
17740 * fontset.c (fs_load_font): If fontp->charset is not negative,
17741 return fontp without setting its members.
17742
17743 2008-02-01 Dave Love <fx@gnu.org>
17744
17745 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17746
17747 * m/sparc.h (HAVE_ALLOCA): Delete.
17748
17749 * s/irix6-5.h: Don't include strings.h.
17750 (bcopy, bzero, bcmp): Don't undef.
17751
17752 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17753
17754 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17755 (TIOCSIGSEND): Don't test IRIX6.
17756 (bcopy, bzero, bcmp): Define conditionally.
17757
17758 2008-02-01 Kenichi Handa <handa@m17n.org>
17759
17760 * buffer.c (Qas, Qmake, Qto): New variables.
17761 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17762 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17763
17764 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17765 we are inserting a process output into a multibyte buffer.
17766
17767 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17768 multibyte_char_to_unibyte.
17769
17770 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17771 by the primary charset, make it eight-bit char.
17772 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17773
17774 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17775 (charset_8_bit__control, charset_8_bit_graphic)
17776 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17777 (define_charset_internal): New function.
17778 (syms_of_charset): Call define_charset_internal for pre-defined
17779 charsets.
17780
17781 * charset.h (charset_8_bit): Extern it.
17782
17783 * coding.c (make_conversion_work_buffer): Adjust for the change
17784 of Fset_buffer_multibyte.
17785 (encode_coding_raw_text): Increment p0 in the loop.
17786
17787 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17788
17789 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17790 for the change of Fset_buffer_multibyte.
17791
17792 * fns.c (Fstring_to_multibyte): New function.
17793 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17794
17795 2008-02-01 Dave Love <fx@gnu.org>
17796
17797 * xfns.c (x_put_x_image): Declare args.
17798
17799 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17800 (try_font_list): Declare an arg.
17801
17802 * xdisp.c (message2_nolog, set_message): Declare an arg.
17803
17804 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17805
17806 * syntax.c (scan_sexps_forward): Declare an arg.
17807
17808 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17809 Declare an arg.
17810
17811 * lisp.h (Fnew_fontset): Declare.
17812
17813 * keymap.c (push_key_description): Call CHARACTERP correctly.
17814
17815 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17816 (face_for_char): Delete unused vars.
17817 (Fset_fontset_font): Doc fix. Delete unused vars.
17818
17819 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17820
17821 * composite.c (update_compositions): Declare arg.
17822
17823 * cm.c (calccost, cmgoto): Declare args.
17824
17825 * charset.c: Remove `emacs' conditional. Doc fixes.
17826 (map_char_table_for_charset): Declare.
17827
17828 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17829
17830 * ccl.c: Remove `emacs' conditional.
17831
17832 2008-02-01 Kenichi Handa <handa@m17n.org>
17833
17834 The following changes are to allow specifying multiple font
17835 patterns for a character range (specified by script or charset).
17836
17837 * Makefile.in (abbrev.o): Depend on syntax.h.
17838 (xfaces.o): Depend on charset.h.
17839
17840 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17841 SINGLE_BYTE_CHAR_P.
17842
17843 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17844
17845 * character.h (Vchar_script_table): Extern it.
17846
17847 * character.c (Vscript_alist): Delete.
17848 (Vchar_script_table, Qchar_script_table): New variable.
17849 (syms_of_character): Declare Vchar_script_table as a lisp variable
17850 and initialize it.
17851
17852 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17853 have property char-table-extra-slots, make no extra slot.
17854
17855 * dispextern.h (struct face): Delete member `charset'.
17856 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17857 SINGLE_BYTE_CHAR_P.
17858 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17859 Add prototypes.
17860 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17861 (generate_ascii_font_name): Rename from generate_ascii_font.
17862
17863 * fontset.h (get_font_repertory_func): New prototype.
17864 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17865 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17866
17867 * fontset.c (Qprepend, Qappend): New variables.
17868 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17869 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17870 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17871 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17872 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17873 (load_font_get_repertory): New functions.
17874 (fontset_set): Delete.
17875 (fontset_face): New arg FACE. Return face ID, not face.
17876 Complete re-write to handle new fontset structure. Change caller.
17877 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17878 (face_for_char): Don't call lookup_face.
17879 (make_fontset_for_ascii_face): New arg FACE.
17880 (fs_load_font): New arg CHARSET_ID. Don't check
17881 Vfont_encoding_alist here.
17882 (find_font_encoding): New function.
17883 (list_fontsets): Use STRINGP, not ! NILP.
17884 (accumulate_script_ranges): New function.
17885 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17886 re-written to handle new fontset structure.
17887 (Ffontset_font): Return a copy of element.
17888 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17889 docstring of font-encoding-alist.
17890
17891 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17892 (Fset_fotset_font): Fix arguments to 5.
17893
17894 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17895
17896 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17897 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17898 (highlight_trailing_whitespace): Adjust for the change of
17899 lookup_named_face.
17900
17901 * xfaces.c: Include charset.h.
17902 (load_face_font): Delete argument C. Change caller.
17903 (generate_ascii_font_name): Rename from generate_ascii_font.
17904 (font_name_registry): New function.
17905 (cache_face): Store ascii faces before non-ascii faces in buckets.
17906 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17907 Lookup only ascii faces.
17908 (lookup_non_ascii_face): New function.
17909 (lookup_named_face): Delete argument C. Change caller.
17910 (lookup_derived_face): Delete argument C. Change caller.
17911 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17912 a string, just call font_list with it.
17913 (choose_face_font): Delete arguments FACE and C. New arg
17914 FONT_SPEC. Change caller.
17915 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17916 Change caller.
17917 (realize_non_ascii_face): New function.
17918 (realize_x_face): Call load_face_font here.
17919 (realize_tty_face): Delete argument C. Change caller.
17920 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17921 get a face ID.
17922 (dump_realized_face): Don't print charset of FACE.
17923
17924 * xfns.c (x_set_font): Always call x_new_fontset and
17925 store_frame_parameter.
17926 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17927 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17928
17929 * xterm.h (x_get_font_repertory): Extern it.
17930
17931 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17932 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17933 it->multibyte_p is zero.
17934 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17935 (x_new_fontset): If FONTSETNAME doesn't match any existing
17936 fontsets, create a new one.
17937 (x_get_font_repertory): New function.
17938
17939 2008-02-01 Kenichi Handa <handa@m17n.org>
17940
17941 * coding.c (Ffind_coding_systems_region_internal): Detect an
17942 ASCII only string correctly.
17943
17944 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17945 version is 0.
17946
17947 2008-02-01 Kenichi Handa <handa@m17n.org>
17948
17949 * lread.c: Include "coding.h".
17950 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17951 (load_each_byte, unread_char): New variables.
17952 (readchar_backlog): Delete.
17953 (readchar): Return a character unless load_each_byte is nonzero.
17954 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17955 cons. If unread_char is not -1, simply return it.
17956 (unreadchar): Handle the case that readcharfun is
17957 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17958 (read_multibyte): Delete.
17959 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17960 (read_emacs_mule_char): New functions.
17961 (Fload): Even if the file doesn't have the extension ".elc", if
17962 safe_to_load_p returns a positive version number, assume that the
17963 file contains bytecompiled code. If the version is less than 22,
17964 load the file while decoding multibyte sequences by emacs-mule.
17965 (readevalloop): Don't use readchar_backlog.
17966 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17967 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17968 (read_escape): Delete the arg BYTEREP.
17969 (read1): Set load_each_byte to 1 temporarily while handling
17970 #@NUMBER. Don't call read_multibyte.
17971 (read_vector): Call Fread with a cons. If readcharfun is
17972 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17973 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17974 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17975 and Qload_force_doc_strings.
17976
17977 2008-02-01 Kenichi Handa <handa@m17n.org>
17978
17979 * xdisp.c (face_before_or_after_it_pos): Call
17980 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17981
17982 2008-02-01 Kenichi Handa <handa@m17n.org>
17983
17984 * character.h (TRAILING_CODE_P): New macro.
17985 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17986 (string_char_with_unification): Fix prototype.
17987 (Vscript_alist): Extern it.
17988
17989 * character.c (Vscript_alist): New variable.
17990 (string_char_with_unification, str_as_unibyte)
17991 (string_escape_byte8): Add `const' to local variables.
17992 (syms_of_character): Declare script-alist as a Lisp variable.
17993
17994 * charset.h (Vcharset_ordered_list): Extern it.
17995 (charset_ordered_list_tick): Extern it.
17996 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17997 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17998 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17999 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
18000 (Funify_charset): Adjust for the change of Funify_charset.
18001
18002 * charset.c (charset_ordered_list_tick): New variable.
18003 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
18004 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
18005 deunify intead of unify a charset.
18006 (string_xstring_p): Add `const' to local variables.
18007 (find_charsets_in_text): Add `const' to arguments and local variables.
18008 (encode_char): Adjust for the change of Funify_charset. Fix
18009 detecting of invalid code.
18010 (Fset_charset_priority): Increment charset_ordered_list_tick.
18011 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
18012 and TO_CODE.
18013
18014 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
18015 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
18016 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
18017 (decode_coding_ccl, consume_chars)
18018 (Ffind_coding_systems_region_internal)
18019 (Fcheck_coding_systems_region): Add `const' to local variables.
18020
18021 * print.c (print_object): Use octal form for printing the
18022 contents of a bool vector.
18023
18024 2008-02-01 Dave Love <fx@gnu.org>
18025
18026 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
18027 <version == 20>: Refuse to load.
18028
18029 2008-02-01 Dave Love <fx@gnu.org>
18030
18031 * fns.c: Move coding.h.
18032 (Qcodeset, Qdays, Qmonths): New.
18033 (concat): Use CHARACTERP instead of INTEGERP.
18034 (Flocale_codeset): Delete.
18035 (Flanginfo): New function.
18036 (syms_of_fns): Change accordingly.
18037
18038 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
18039
18040 2008-02-01 Dave Love <fx@gnu.org>
18041
18042 * casetab.c (init_casetab_once, init_casetab_once): Fix
18043 CHAR_TABLE_SET call.
18044
18045 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
18046
18047 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
18048
18049 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
18050 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
18051 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
18052
18053 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
18054
18055 * coding.c (ENCODE_DESIGNATION, decode_eol)
18056 (make_conversion_work_buffer, code_conversion_restore)
18057 (Fdefine_coding_system_internal): Convert Lisp types.
18058 (code_conversion_restore): Use EQ, not ==.
18059 (Fencode_coding_string): Fix code_convert_string call.
18060
18061 * coding.h (code_convert_region): Fix prototype.
18062
18063 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
18064
18065 * fontset.c (fontset_ref, fontset_set, fs_load_font)
18066 (Ffontset_info): Convert Lisp types.
18067
18068 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
18069
18070 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
18071
18072 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
18073
18074 * chartab.c: Include "...h", not <...h> in some cases.
18075
18076 * callproc.c (Fcall_process): Remove unused variables.
18077
18078 2008-02-01 Dave Love <fx@gnu.org>
18079
18080 * coding.c (Fset_coding_system_priority): Allow null arg list.
18081
18082 2008-02-01 Dave Love <fx@gnu.org>
18083
18084 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18085 (Fself_insert_and_exit): Use CHARACTERP.
18086
18087 * callproc.c (Fcall_process): Remove unused vars.
18088
18089 * xterm.c (XTread_socket): Add extra dead keysyms.
18090
18091 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
18092
18093 * dispextern.h: Remove prototypes for redraw_frame,
18094 redraw_garbaged_frames.
18095
18096 * cmds.c (Fself_insert_command): Use CHARACTERP.
18097
18098 * chartab.c (make_sub_char_table): Remove unused var.
18099 (Fset_char_table_default, Fmap_char_table): Doc fix.
18100
18101 * keymap.c (access_keymap): Remove generic char code.
18102 (push_key_description): Use CHARACTERP.
18103
18104 2008-02-01 Dave Love <fx@gnu.org>
18105
18106 * charset.c: Doc fixes.
18107 (Funify_charset): Extra checking.
18108
18109 2008-02-01 Dave Love <fx@gnu.org>
18110
18111 * lread.c: Remove some unused variables.
18112 (safe_to_load_p): If safe, return the magic number version byte.
18113 (Fload): Maybe use load-with-code-conversion.
18114
18115 2008-02-01 Kenichi Handa <handa@m17n.org>
18116
18117 * category.c (Fmodify_category_entry): Don't modify the contents
18118 of category_set for characters out of the range. Avoid
18119 unnecessary modification.
18120
18121 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
18122 Vchar_unify_table. The default value of the table is now nil.
18123
18124 * character.c (syms_of_character): Setup Vchar_width_table for
18125 eight-bit-control and raw-byte chars.
18126
18127 * charset.h (enum define_charset_arg_index): Delete
18128 charset_arg_parents and add charset_arg_subset and
18129 charset_arg_superset.
18130 (enum charset_attr_index): Delete charset_parents and add
18131 charset_subset and charset_superset.
18132 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
18133 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
18134 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
18135 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
18136 (CHARSET_SUPERSET): New macros.
18137 (charset_work): Extern it.
18138 (ENCODE_CHAR): Use charset_work.
18139 (CHAR_CHARSET_P): Adjust for the change of encoder format.
18140 (map_charset_chars): Extern it.
18141
18142 * charset.c (load_charset_map): Set the default value of encoder
18143 and deunifier char-tables to nil.
18144 (map_charset_chars): Change argument. Change callers. Use
18145 map_char_table_for_charset instead of map_char_table.
18146 (Fmap_charset_chars): New optional args from_code and to_code.
18147 (Fdefine_charset_internal): Adjust for the change of
18148 `define-charset' (:parents -> :subset or :superset).
18149 (charset_work): New variable.
18150 (encode_char, syms_of_charset): Adjust for the change of
18151 Fdefine_charset_internal.
18152 (Ffind_charset_string): Setup the vector `charsets' correctly.
18153
18154 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
18155 the previous change.
18156 (char_table_ref_and_range): Adjust for the above change.
18157 (map_sub_char_table_for_charset): New function.
18158 (map_char_table_for_charset): New function.
18159
18160 * keymap.c (describe_vector): Handle a char-table directly here.
18161 (describe_char_table): Delete.
18162
18163 * lisp.h (map_charset_chars): Delete.
18164
18165 2008-02-01 Dave Love <fx@gnu.org>
18166
18167 * fns.c (count_combining): Comment out (unused).
18168 (Flocale_codeset): New.
18169 (syms_of_fns): Defsubr it.
18170
18171 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
18172 (size_t): Remove.
18173
18174 2008-02-01 Dave Love <fx@gnu.org>
18175
18176 * Makefile.in (chartab.o): Depend on charset.h.
18177
18178 2008-02-01 Kenichi Handa <handa@m17n.org>
18179
18180 * character.c (syms_of_character): Set the default value of
18181 Vprintable_chars to Qnil.
18182
18183 2008-02-01 Dave Love <fx@gnu.org>
18184
18185 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
18186
18187 2008-02-01 Kenichi Handa <handa@m17n.org>
18188
18189 * charset.c (load_charset_map): Handle the case that from < to
18190 correctly.
18191
18192 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
18193 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
18194 Pay attention to raw-8-bit chars.
18195
18196 2008-02-01 Kenichi Handa <handa@m17n.org>
18197
18198 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
18199 It is not bytecompiled now.
18200
18201 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
18202 (charset_jisx0208): New variables.
18203 (Fdefine_charset_internal): Setup them if appropriate.
18204 (init_charset_once): Initialize them to -1.
18205
18206 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
18207 (charset_jisx0208): Extern them.
18208
18209 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
18210 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
18211 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
18212 (setup_iso_safe_charsets): Fix arguments to Fassq.
18213 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
18214 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
18215 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
18216 (encode_coding_iso_2022): Change the 1st arg to
18217 ENCODE_ISO_CHARACTER to a variable.
18218
18219 2008-02-01 Kenichi Handa <handa@m17n.org>
18220
18221 * charset.h (enum define_charset_arg_index): New enums
18222 charset_arg_min_code and charset_arg_max_code.
18223 (struct charset): New member char_index_offset.
18224
18225 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
18226 Take charset->char_index_offset into account.
18227 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
18228 args[charset_arg_max_code]. Setup charset.char_index_offset.
18229 (syms_of_charset): Fix args to Fdefine_charset_internal.
18230
18231 2008-02-01 Dave Love <fx@gnu.org>
18232
18233 * coding.c (decode_coding_utf_8): Reject overlong sequences.
18234
18235 2008-02-01 Dave Love <fx@gnu.org>
18236
18237 * coding.c: Doc fixes.
18238 (Fcoding_system_aliases): Fix return value.
18239 (Qmac): Remove (duplicated) definition.
18240
18241 2008-02-01 Dave Love <fx@gnu.org>
18242
18243 * charset.c (Fcharset_priority_list, Fset_charset_priority):
18244 New functions.
18245
18246 * character.c (Fstring): Doc fix.
18247
18248 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
18249
18250 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
18251 (font-encoding-alist): Doc fix.
18252
18253 2008-02-01 Dave Love <fx@gnu.org>
18254
18255 * term.c (costs_set): Declare static, non-initialized for pcc.
18256 (encode_terminal_code): Remove unused var.
18257
18258 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18259 for K&R.
18260
18261 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
18262
18263 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
18264 (suffixes): Move out of make_subsidiaries for K&R.
18265
18266 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
18267
18268 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
18269
18270 2008-02-01 Dave Love <fx@gnu.org>
18271
18272 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
18273
18274 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
18275
18276 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
18277
18278 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
18279
18280 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
18281
18282 2008-02-01 Kenichi Handa <handa@m17n.org>
18283
18284 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
18285 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
18286
18287 2008-02-01 Kenichi Handa <handa@m17n.org>
18288
18289 * coding.c (decode_coding_charset): Adjust for the change of
18290 Fdefine_coding_system_internal.
18291 (Fdefine_coding_system_internal): For a coding system of
18292 `charset' type, store a list of charset IDs in
18293 `charset_attr_charset_valids' element of coding attributes.
18294
18295 2008-02-01 Kenichi Handa <handa@m17n.org>
18296
18297 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
18298 (emacs_mule_char): New arg src. Delete arg `composition'. Change
18299 caller. Handle 2-byte and 3-byte charsets correctly.
18300 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
18301 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
18302 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
18303 (DECODE_EMACS_MULE_21_COMPOSITION): Call
18304 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
18305 sequence.
18306 (decode_coding_emacs_mule): Handle composition correctly. Rewind
18307 `src' and `consumed_chars' correctly before calling emacs_mule_char.
18308 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
18309 and alt&rule composition.
18310 (decode_coding_iso_2022): Handle composition correctly.
18311 (init_coding_once): Setup emacs_mule_bytes for private charsets.
18312
18313 * charset.c (Fdefine_charset_internal): Fix bug for the case of
18314 re-defining a charset. If the charset has :emacs-mule-id, setup
18315 emacs_mule_bytes.
18316 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18317
18318 2008-02-01 Kenichi Handa <handa@m17n.org>
18319
18320 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18321 (encode_coding_big5, encode_coding_charset): If coding requires safe
18322 encoding, produce a character specified by
18323 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18324
18325 2008-02-01 Dave Love <fx@gnu.org>
18326
18327 * xterm.c (XSetIMValues): Declare.
18328
18329 * process.c: Conditionally include sys/wait.h, pty.h.
18330
18331 * print.c (print_object): Fix print format for 64-bit systems.
18332
18333 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18334
18335 * buffer.c (emacs_strerror): Declare.
18336
18337 * fontset.c (Fclear_face_cache): Declare.
18338 (accumulate_font_info): Comment-out (unused).
18339 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18340 variables.
18341
18342 * character.h (string_escape_byte8): Declare.
18343
18344 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18345 unused vars.
18346 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18347 (Fmap_charset_chars): Doc fix.
18348
18349 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18350 (Fset_coding_system_priority, Fset_coding_system_priority)
18351 (Fdefine_coding_system_internal): Doc fix.
18352
18353 2008-02-01 Dave Love <fx@gnu.org>
18354
18355 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18356
18357 2008-02-01 Kenichi Handa <handa@m17n.org>
18358
18359 * character.c (string_escape_byte8): Make multibyte string with
18360 correct size.
18361
18362 * charset.c (Fmake_char): Delete unnecessary code.
18363
18364 2008-02-01 Kenichi Handa <handa@m17n.org>
18365
18366 * xfns.c (x_encode_text): Allocate coding.destination here, and
18367 call encode_coding_object with dst_object Qnil.
18368
18369 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18370 multibyte form correctly.
18371
18372 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18373 against Vfont_encoding_alist.
18374
18375 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18376 handling of charset list.
18377 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18378 (decode_coding_object): Move point to coding->dst_pos before
18379 calling post-read-conversion function.
18380 (encode_coding_object): Give correct arguments to
18381 pre-write-conversion. Ignore the return value of
18382 pre-write-conversion function. Pay attention to the case that
18383 pre-write-conversion changes the current buffer. If dst_object is
18384 Qt, even if coding->src_bytes is zero, allocate at least one byte
18385 to coding->destination.
18386
18387 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18388
18389 * charset.c (Fmake_char): Make it more backward compatible.
18390 (Fmap_charset_chars): Fix docstring.
18391
18392 2008-02-01 Dave Love <fx@gnu.org>
18393
18394 * coding.c: Doc fixes.
18395 (Fdefine_coding_system_alias): Use names, not symbols, in
18396 coding-system-alist.
18397
18398 2008-02-01 Kenichi Handa <handa@m17n.org>
18399
18400 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18401 of calling free_realized_face.
18402
18403 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
18404
18405 * charset.c (read_hex): Don't treat SPC as a comment starter.
18406 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18407 (Fdecode_char): Fix typo.
18408
18409 2008-02-01 Kenichi Handa <handa@m17n.org>
18410
18411 * charset.h (struct charset): New member `code_space_mask'.
18412
18413 * coding.c (coding_set_source): Delete the local variable beg_byte.
18414 (encode_coding_charset, Fdefine_coding_system_internal):
18415 Delete the local variable charset.
18416 (Fdefine_coding_system_internal): Setup
18417 attrs[coding_attr_charset_valids] correctly.
18418
18419 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18420 member to check if CODE is valid or not.
18421 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18422 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18423 is within the range of charset->min_code and carset->max_code.
18424
18425 2008-02-01 Dave Love <fx@gnu.org>
18426
18427 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18428
18429 * dispextern.h (generate_ascii_font): Fix return type.
18430
18431 * xfaces.c (generate_ascii_font): Fix arg declaration.
18432
18433 * coding.c (coding_inherit_eol_type)
18434 (Fset_terminal_coding_system_internal)
18435 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18436
18437 2008-02-01 Kenichi Handa <handa@m17n.org>
18438
18439 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18440 multiple charsets correctly.
18441
18442 2008-02-01 Kenichi Handa <handa@m17n.org>
18443
18444 * search.c (boyer_moore): Fix handling of multibyte character
18445 translation.
18446
18447 * xdisp.c (display_mode_element): When the variable `elt' is
18448 changed, update `this' and `lisp_string'.
18449
18450 2008-02-01 Kenichi Handa <handa@m17n.org>
18451
18452 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18453
18454 * callproc.c (Fcall_process): Be sure to give the current buffer
18455 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18456
18457 * charset.c (struct charset_map_entries): New struct.
18458 (load_charset_map): Rename from parse_charset_map. New args
18459 entries and n_entries. Change caller.
18460 (load_charset_map_from_file): Rename from load_charset_map.
18461 Change caller. New arg control_flag. Call load_charset_map at
18462 the tail.
18463 (load_charset_map_from_vector): New function.
18464 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18465 (encode_char): If the charset is compact, change a character index
18466 to a code point.
18467
18468 * coding.c (coding_alloc_by_making_gap): Check the case that the
18469 source and destination are the same correctly.
18470 (decode_coding_raw_text): Set coding->consumed_char and
18471 coding->consumed to 0.
18472 (produce_chars): If coding->chars_at_source is nonzero, update
18473 coding->consumed_char and coding->consumed before calling
18474 alloc_destination.
18475 (Fdefine_coding_system_alias): Register ALIAS in
18476 Vcoding_system_alist.
18477 (syms_of_coding): Define `no-conversion' coding system at the tail.
18478
18479 * fileio.c (Finsert_file_contents): Set coding_system instead of
18480 val. If the current buffer is multibyte, always call
18481 decode_coding_gap.
18482
18483 * xfaces.c (try_font_list): Give higher priority to fontset's
18484 family than face's family.
18485
18486 2008-02-01 Kenichi Handa <handa@m17n.org>
18487
18488 * callproc.c (Fcall_process): Be sure to give the current buffer
18489 to decode_coding_c_string.
18490
18491 * xfaces.c (try_font_list): Give a family specified in a fontset
18492 higher priority than a family specified in a face.
18493
18494 2008-02-01 Kenichi Handa <handa@m17n.org>
18495
18496 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18497 Fix arguments to insert_from_buffer.
18498
18499 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18500
18501 2008-02-01 Kenichi Handa <handa@m17n.org>
18502
18503 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18504 (decode_coding_gap): Set coding->dst_multibyte correctly.
18505
18506 2008-02-01 Kenichi Handa <handa@m17n.org>
18507
18508 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18509 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18510 (encode_coding_utf_16): Substitute coding->default_char for
18511 non-Unicode characters.
18512 (decode_coding): Don't call record_insert here.
18513 (setup_coding_system): Initialize `surrogate' of
18514 coding->spec.utf_16 to 0.
18515 (EMIT_ONE_BYTE): Fix for multibyte case.
18516
18517 * insdel.c (insert_from_gap): Call record_insert.
18518
18519 2008-02-01 Kenichi Handa <handa@m17n.org>
18520
18521 * casefiddle.c (casify_region): Fix multibyte case.
18522
18523 * character.c (c_string_width): Add return type `int'.
18524 (char_string_with_unification): Delete arg ADVANCED.
18525
18526 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18527 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18528 (CHAR_STRING_ADVANCE): Make it do-while statement.
18529
18530 * chartab.c (sub_char_table_set_range): Optimize for the case
18531 DEPTH == 3. Add workaround code for a GCC optimization bug.
18532
18533 * charset.c (parse_charset_map): Remove an unused variable.
18534
18535 * coding.c: Delete unused variables.
18536
18537 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18538 earlier. If inserted is zero and the coding system doesn't
18539 require flushing, don't call decode_coding_gap.
18540
18541 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18542
18543 2008-02-01 Kenichi Handa <handa@m17n.org>
18544
18545 The following changes are for using Unicode as an internal
18546 character model, and use UTF-8 format for buffer/string
18547 representation.
18548
18549 * .gdbinit (xchartable): Adjust for the change of char table structure.
18550 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18551
18552 * Makefile.in (obj): Add character.o and chartab.o.
18553 (lisp, shortlisp): Remove utf-8.elc.
18554 (*.o): For many files, change dependency on charset.h to
18555 character.h, and add dependency on character.h.
18556 (character.o, chartab.o): New targets.
18557
18558 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18559 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18560 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18561 of "charset.h".
18562
18563 * dired.c, filelock.c: Include "character.h".
18564
18565 * alloc.c: Include "character.h" instead of "charset.h".
18566 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18567 (syms_of_alloc): Remove defsubr for Smake_char_table.
18568
18569 * buffer.c: Include "character.h" instead of "charset.h", don't
18570 include "coding.h".
18571 (Fset_buffer_multibyte): Adjust for UTF-8.
18572
18573 * buffer.h: EXFUN Fbuffer_live_p.
18574
18575 * callproc.c: Include "character.h" instead of "charset.h".
18576 (Fcall_process): Big change for the new code-conversion APIs.
18577
18578 * casetab.c: Include "character.h" instead of "charset.h".
18579 (set_canon, set_identity, shuffle): Adjust for the new
18580 map_char_table spec.
18581 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18582 accessing the char table structure.
18583
18584 * chartab.c: New file that implements char table.
18585
18586 * category.c: Include "character.h".
18587 (copy_category_entry): New function.
18588 (copy_category_table): Call map_char_table and copy_category_entry.
18589 (Fmake_category_table): Initialize all top-level slots.
18590 (char_category_set): New function.
18591 (modify_lower_category_set): Delete.
18592 (Fmodify_category_entry): Call char_table_ref_and_range.
18593
18594 * category.h (CATEGORY_SET): Just call char_category_set.
18595
18596 * ccl.c: Include "character.h".
18597 (Qccl, Qcclp): New variables.
18598 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18599 it's less than 256.
18600 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18601 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18602 and DST type.
18603 (ccl_driver): Change types of argument, adjust code accordingly.
18604 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18605 ccl_driver.
18606 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18607
18608 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18609 New members src_multibyte, dst_multibyte, consumed, and produced.
18610 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18611 (CODING_SPEC_CCL_PROGRAM): New macro.
18612 (ccl_driver): Update prototype.
18613 (Qccl, Qcclp, Fccl_program_p): Extern them.
18614 (CHECK_CCL_PROGRAM): New macro.
18615
18616 * character.c, character.h, chartab.c: New files.
18617
18618 * charset.c: Mostly re-written. Move character and multibyte sequence
18619 handling codes to character.c.
18620
18621 * charset.h: Mostly re-written. Move character and multibyte sequence
18622 handling codes to character.h.
18623
18624 * coding.c, coding.h: Mostly re-written.
18625
18626 * composite.c: Include "character.h" instead of "charset.h".
18627 (CHAR_WIDTH): Move to character.h.
18628 (HASH_KEY, HASH_VALUE): Delete.
18629
18630 * composite.h (enum composition_method): Change order of enumeration
18631 symbols.
18632
18633 * data.c: Include "character.h" instead of "charset.h".
18634 (Faref): Call CHAR_TABLE_REF for a char table.
18635 (Faset): Call CHAR_TABLE_SET for a char table.
18636
18637 * dispextern.h (free_realized_face, check_face_attribytes)
18638 (generate_ascii_font): Extern them.
18639 (free_realized_multibyte_face): Delete extern.
18640
18641 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18642 table structure.
18643
18644 * editfns.c: Include "character.h" instead of "charset.h".
18645 (Fchar_to_string): Always call CHAR_STRING.
18646
18647 * emacs.c (main): Call init_charset_once, init_charset,
18648 syms_of_chartab, and syms_of_character.
18649
18650 * fileio.c: Include "character.h" instead of "charset.h".
18651 (Finsert_file_contents): Big change for the new code-conversion API.
18652 (choose_write_coding_system, Fwrite_region): Likewise.
18653 (build_annotations_2): Delete.
18654 (e_write): Big change for the new code-conversion API.
18655
18656 * fns.c: Include "character.h" instead of "charset.h".
18657 (copy_sub_char_table): Move to chartab.c.
18658 (Fcopy_sequence): Call copy_char_table for a char table.
18659 (concat): Delete codes calling count_multibyte.
18660 (string_char_to_byte, string_byte_to_char): Adjust for the new
18661 multibyte form.
18662 (internal_equal): Adjust for the change of char table structure.
18663 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18664 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18665 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18666 (char_table_translate, optimize_sub_char_table)
18667 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18668 chartab.c.
18669 (char_table_ref_and_index): Delete.
18670 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18671 (Fmd5): Call preferred_coding_system instead of accessing
18672 Vcoding_category_list. Adjust for the new code-conversion API.
18673 (syms_of_fns): Move defsubr for char table related functions to
18674 chartab.c.
18675
18676 * fontset.c: Mostly re-written.
18677
18678 * fontset.h (struct font_info): Change type of the member encoding_type.
18679 (enum FONT_SPEC_INDEX): New enum.
18680 (fontset_font_pattern, fs_load_font): Update prototype.
18681 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18682
18683 * indent.c: Include "character.h" instead of "charset.h".
18684 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18685
18686 * insdel.c: Include "character.h" instead of "charset.h".
18687 (copy_text): Don't refer to Vnonascii_translation_table.
18688 (insert_from_gap): New function.
18689
18690 * keyboard.c: Include "character.h" instead of "charset.h".
18691 (command_loop_1): Never call direct_output_forward_char before
18692 a non-ASCII character.
18693 (read_char): If Vkeyboard_translate_table is a char table, always
18694 translate a character.
18695
18696 * keymap.c: Include "character.h".
18697 (store_in_keymap): Handle the case that IDX is a cons.
18698 (Fdefine_key): Handle the case that KEY is a cons and the car part
18699 is also a cons (range).
18700 (push_key_description): Adjust for the new character code.
18701 (describe_vector): Call describe_char_table for a char table.
18702 (describe_char_table): New function.
18703
18704 * keymap.h (describe_char_table): Extern it.
18705
18706 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18707 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18708 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18709 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18710 Delete.
18711 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18712 structure.
18713 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18714 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18715 (CHARTAB_SIZE_BITS_3): New macros.
18716 (chartab_size): Extern it.
18717 (struct Lisp_Char_Table): Re-design.
18718 (struct Lisp_Sub_Char_Table): New structure.
18719 (HASH_KEY, HASH_VALUE): Move from fns.c.
18720 (CHARACTERBITS): Define as 22.
18721 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18722 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18723 (GC_SUB_CHAR_TABLE_P): New macro.
18724 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18725 (code_convert_string_norecord): Deleted extern.
18726 (init_character_once, syms_of_character, init_charset)
18727 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18728
18729 * lread.c: Include "character.h".
18730 (read_multibyte): New arg NBYTES.
18731 (read_escape): Change the meaning of returned *BYTEREP.
18732 (to_multibyte): Delete.
18733 (read1): Adjust the handling of char table and string.
18734
18735 * print.c: Include "character.h" instead of "charset.h".
18736 (print_string): Convert 8-bit raw bytes to octal form by
18737 string_escape_byte8.
18738 (print_object): Adjust for the new multibyte form. Print 8-bit
18739 raw bytes always in octal form. Handle sub char table correctly.
18740
18741 * process.c: Include "character.h" instead of "charset.h".
18742 (read_process_output, send_process): Adjust for the new
18743 code-conversion API.
18744
18745 * puresize.h (BASE_PURESIZE): Increase.
18746
18747 * regex.c: Include "character.h" instead of "charset.h".
18748 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18749 (regex_compile): Accept a range whose starting and ending
18750 character have different leading bytes.
18751 (analyse_first): Adjust for the above change.
18752
18753 * search.c: Include "character.h" instead of "charset.h".
18754 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18755 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18756
18757 * syntax.c: Include "character.h" instead of "charset.h".
18758 (syntax_parent_lookup): Delete.
18759 (Fmodify_syntax_entry): Accept a cons as CHAR.
18760 (skip_chars): Adjust for the new multibyte form.
18761 (init_syntax_once): Call char_table_set_range instead of directly
18762 accessing the structure of a char table.
18763
18764 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18765 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18766 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18767 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18768
18769 * term.c: Include "buffer.h" and "character.h".
18770 (encode_terminal_code, write_glyphs): Adjust for the new
18771 code-conversion API.
18772 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18773
18774 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18775
18776 * xdisp.c: Include "character.h".
18777 (get_next_display_element): Adjust for the new multibyte form.
18778 (disp_char_vector): Adjust for the new char table structure.
18779 (decode_mode_spec_coding): Adjust for the new structure of
18780 coding system.
18781 (decode_mode_spec): Adjust for the new code-conversion API.
18782
18783 * xfaces.c: Include "character.h" instead of "charset.h".
18784 (load_face_font): Adjust for the change of choose_face_font and
18785 FS_LOAD_FONT.
18786 (generate_ascii_font): New function.
18787 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18788 (set_font_frame_param): Adjust for the change of choose_face_font.
18789 (free_realized_face): Make it public.
18790 (free_realized_faces_for_fontset): Rename from
18791 free_realized_multibyte_face. Free also faces realized for ASCII.
18792 (choose_face_font): Change arguments. Adjust for the change of
18793 fontset_font_pattern and FS_LOAD_FONT.
18794
18795 * xfns.c: Include "character.h".
18796 (x_encode_text): Adjust for the new code-conversion API.
18797
18798 * xselect.c: Don't include "charset.h".
18799 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18800
18801 * xterm.c: Include "character.h".
18802 (x_encode_char): New argument CHARSET. Change caller.
18803 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18804 Call ENCODE_CHAR instead of SPLIT_CHAR.
18805 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18806 CHAR_WIDTH instead of CHARSET_WIDTH.
18807 (XTread_socket): Adjust for the new code-conversion API.
18808 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18809 (x_load_font): Adjust for the change of struct font.
18810
18811 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18812
18813 * xfaces.c (face_at_buffer_position): Remove unused vars.
18814
18815 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18816
18817 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18818 Fix overflow checking.
18819
18820 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18821
18822 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18823 Cancel previous change.
18824
18825 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18826
18827 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18828 ccl->eight_bit_control. Fix check for buffer overflow.
18829 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18830 (ccl_driver): Initialize extra_bytes to 0.
18831
18832 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18833
18834 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18835 return it ORed with ctrl_modifier.
18836
18837 2008-01-29 Miles Bader <miles@gnu.org>
18838
18839 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18840
18841 2008-01-28 Jason Rumney <jasonr@gnu.org>
18842
18843 * w32.c (stat): Don't double check for networked drive.
18844
18845 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18846
18847 * window.c (run_window_configuration_change_hook): New function.
18848 Code extracted from set_window_buffer. Set the selected frame.
18849 (set_window_buffer): Use it.
18850 * window.h (run_window_configuration_change_hook): Declare.
18851 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18852
18853 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18854
18855 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18856
18857 * Makefile.in: Remove references to unused macros.
18858
18859 2008-01-26 Eli Zaretskii <eliz@gnu.org>
18860
18861 * w32.c (g_b_init_get_sid_sub_authority)
18862 (g_b_init_get_sid_sub_authority_count): New static variables.
18863 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18864 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18865 (init_user_info): Use them to retrieve uid and gid.
18866 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18867 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18868 st_uid and st_gid of the file.
18869
18870 2008-01-26 Jason Rumney <jasonr@gnu.org>
18871
18872 * w32.c (logon_network_drive): New function.
18873 (stat): Use it.
18874
18875 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
18876
18877 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18878 invisible text covered with an ellipsis.
18879
18880 2008-01-25 Richard Stallman <rms@gnu.org>
18881
18882 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18883 jump back to beginning. Move some other initializations after that.
18884 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18885 New variables.
18886 (syms_of_xdisp): Init them.
18887
18888 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18889
18890 * buffer.c (reset_buffer_local_variables):
18891 Implement `permanent-local-hook'.
18892 (Qpermanent_local_hook): New variable.
18893 (syms_of_buffer): Init and staticpro it.
18894
18895 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
18896
18897 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18898
18899 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18900
18901 * fns.c (Fclrhash): Return TABLE.
18902
18903 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18904
18905 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18906 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18907 is set even without positional changes.
18908 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18909
18910 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18911
18912 2008-01-23 Jason Rumney <jasonr@gnu.org>
18913
18914 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18915
18916 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18917 the unicode range available in MULE by locale-coding-system.
18918 Improve dbcs lead byte detection. Set event timestamp and modifiers
18919 earlier.
18920
18921 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18922
18923 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18924 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18925 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18926 when used on child processes.
18927
18928 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
18929
18930 * dbusbind.c (Fdbus_method_return_internal): Rename from
18931 Fdbus_method_return.
18932 (Fdbus_unregister_object): Move to dbus.el.
18933 (Fdbus_call_method, Fdbus_method_return_internal)
18934 (Fdbus_send_signal): Improve debug messages.
18935
18936 2008-01-20 Martin Rudalics <rudalics@gmx.at>
18937
18938 * undo.c (undo_inhibit_record_point): New variable.
18939 (syms_of_undo): Initialize it.
18940 (record_point): Don't record point when undo_inhibit_record_point
18941 is set.
18942
18943 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18944
18945 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18946
18947 * xdisp.c (Qauto_hscroll_mode): New var.
18948 (syms_of_xdisp): Initialize it.
18949 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18950 window's buffer.
18951 (hscroll_windows): Don't check automatic_hscrolling_p here.
18952
18953 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18954 vscroll if we're setting window-buffer to the value it already has.
18955
18956 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18957
18958 * m/intel386.h: Remove references to XENIX.
18959
18960 2008-01-17 Andreas Schwab <schwab@suse.de>
18961
18962 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18963 instead of HAVE_X86_64_LIB64_DIR.
18964 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18965
18966 2008-01-17 Glenn Morris <rgm@gnu.org>
18967
18968 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18969 to HAVE_X86_64_LIB64_DIR.
18970
18971 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18972
18973 * s/irix3-3.h:
18974 * s/irix4-0.h:
18975 * s/386-ix.h:
18976 * s/domain.h:
18977 * s/hpux9-x11r4.h:
18978 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18979
18980 * sysdep.c: Remove code containing references to symbols defined
18981 by unsupported systems.
18982
18983 2008-01-16 Glenn Morris <rgm@gnu.org>
18984
18985 * coding.c (select-safe-coding-system-function): Doc fix.
18986
18987 2008-01-15 Glenn Morris <rgm@gnu.org>
18988
18989 * config.in: Revert 2008-01-13 change: this is a generated file.
18990
18991 2008-01-13 Tom Tromey <tromey@redhat.com>
18992
18993 * lisp.h: Fix typo.
18994
18995 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18996
18997 * m/sequent-ptx.h:
18998 * m/sequent.h:
18999 * s/ptx.h:
19000 * s/ptx4-2.h:
19001 * s/ptx4.h: Remove files for systems no longer supported.
19002
19003 * callproc.c (Fcall_process): Fix previous change.
19004
19005 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19006
19007 * unexsunos4.c: Remove file, system not supported anymore.
19008
19009 * m/mips.h:
19010 * m/intel386.h:
19011 * callproc.c:
19012 * config.in:
19013 * ecrt0.c:
19014 * emacs.c:
19015 * fileio.c:
19016 * frame.c:
19017 * getpagesize.h:
19018 * keyboard.c:
19019 * lread.c:
19020 * process.c:
19021 * puresize.h:
19022 * sysdep.c:
19023 * systty.h:
19024 * syswait.h:
19025 * unexec.c:
19026 * xdisp.c:
19027 * alloc.c: Remove code containing references to symbols defined by
19028 unsupported systems.
19029
19030 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
19031
19032 * coding.c (detect_coding_mask): Fix previous change.
19033
19034 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
19035
19036 * coding.c (detect_coding_iso2022): New arg
19037 latin_extra_code_state. Allow Latin extra codes only
19038 when *latin_extra_code_state is nonzero.
19039 (detect_coding_mask): If there is a NULL byte, detect the encoding
19040 as UTF-16 or binary. If Latin extra codes exist, detect the
19041 encoding as ISO-2022 only when there's no other proper encoding is
19042 found.
19043
19044 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19045
19046 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
19047 #ifdef MAC_OS.
19048
19049 2008-01-08 Richard Stallman <rms@gnu.org>
19050
19051 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
19052
19053 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
19054
19055 * keyboard.c (parse_menu_item): Don't enclose key bindings on
19056 menu bar in parentheses.
19057
19058 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
19059
19060 * m/7300.h:
19061 * m/acorn.h:
19062 * m/alliant-2800.h:
19063 * m/alliant.h:
19064 * m/alliant1.h:
19065 * m/alliant4.h:
19066 * m/altos.h:
19067 * m/amdahl.h:
19068 * m/apollo.h:
19069 * m/att3b.h:
19070 * m/aviion-intel.h:
19071 * m/aviion.h:
19072 * m/celerity.h:
19073 * m/clipper.h:
19074 * m/cnvrgnt.h:
19075 * m/convex.h:
19076 * m/cydra5.h:
19077 * m/delta88k.h:
19078 * m/dpx2.h:
19079 * m/dual.h:
19080 * m/elxsi.h:
19081 * m/f301.h:
19082 * m/gould-np1.h:
19083 * m/gould.h:
19084 * m/i860.h:
19085 * m/ibmps2-aix.h:
19086 * m/ibmrt-aix.h:
19087 * m/ibmrt.h:
19088 * m/irist.h:
19089 * m/is386.h:
19090 * m/isi-ov.h:
19091 * m/mega68.h:
19092 * m/mg1.h:
19093 * m/news-r6.h:
19094 * m/news-risc.h:
19095 * m/news.h:
19096 * m/nh3000.h:
19097 * m/nh4000.h:
19098 * m/ns16000.h:
19099 * m/ns32000.h:
19100 * m/nu.h:
19101 * m/orion.h:
19102 * m/orion105.h:
19103 * m/paragon.h:
19104 * m/pfa50.h:
19105 * m/plexus.h:
19106 * m/pyramid.h:
19107 * m/pyrmips.h:
19108 * m/sh3el.h:
19109 * m/sps7.h:
19110 * m/sr2k.h:
19111 * m/stride.h:
19112 * m/sun1.h:
19113 * m/sun2.h:
19114 * m/sun3-68881.h:
19115 * m/sun3-fpa.h:
19116 * m/sun3-soft.h:
19117 * m/sun3.h:
19118 * m/sun386.h:
19119 * m/symmetry.h:
19120 * m/tad68k.h:
19121 * m/tahoe.h:
19122 * m/targon31.h:
19123 * m/tek4300.h:
19124 * m/tekxd88.h:
19125 * m/tower32.h:
19126 * m/tower32v3.h:
19127 * m/ustation.h:
19128 * m/wicat.h:
19129 * m/xps100.h:
19130 * s/cxux.h:
19131 * s/cxux7.h:
19132 * s/dgux.h:
19133 * s/dgux4.h:
19134 * s/dgux5-4-3.h:
19135 * s/dgux5-4r2.h:
19136 * s/esix.h:
19137 * s/esix5r4.h:
19138 * s/hiuxmpp.h:
19139 * s/hiuxwe2.h:
19140 * s/iris3-5.h:
19141 * s/iris3-6.h:
19142 * s/isc2-2.h:
19143 * s/isc3-0.h:
19144 * s/isc4-0.h:
19145 * s/isc4-1.h:
19146 * s/newsos5.h:
19147 * s/newsos6.h:
19148 * s/osf1.h:
19149 * s/osf5-0.h:
19150 * s/riscix1-1.h:
19151 * s/riscix12.h:
19152 * s/sco4.h:
19153 * s/sco5.h:
19154 * s/sunos4-0.h:
19155 * s/sunos4-1.h:
19156 * s/sunos413.h:
19157 * s/sunos4shr.h:
19158 * s/umax.h:
19159 * s/unipl5-2.h:
19160 * s/xenix.h:
19161 * cxux-crt0.s:
19162 * unexapollo.c:
19163 * unexconvex.c:
19164 * unexenix.c:
19165 * unexsni.c: Remove files for systems no longer supported.
19166
19167 * m/intel386.h: Remove references to unsupported systems.
19168
19169 * w32.c (get_emacs_configuration): Remove reference to i860.
19170
19171 * sysdep.c: Remove dead code.
19172
19173 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
19174
19175 * s/rtu.h:
19176 * m/masscomp.h: Remove files. Platform is obsolete.
19177
19178 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
19179
19180 * dbusbind.c (Fdbus_method_return): New function.
19181 (xd_read_message): Add the serial number to the event.
19182 (Fdbus_register_method): Activate the function.
19183
19184 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
19185
19186 * keyboard.c (read_key_sequence): Fix typo.
19187
19188 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
19189
19190 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
19191 (xd_signature, xd_append_arg): Handle element type detection for
19192 empty arrays.
19193 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
19194 SDATA () calls; this must be solved more general.
19195 (Fdbus_register_signal): Use SBYTES instead of strlen.
19196
19197 2008-01-03 Magnus Henoch <magnus@zemdatav>
19198
19199 * dbusbind.c (xd_append_arg): Use unsigned char instead of
19200 unsigned int for byte values (necessary for big-endian platform).
19201 (Fdbus_call_method): Handle the case of no returned arguments.
19202
19203 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
19204
19205 * dbusbind.c (xd_read_message): Use non-static input_event struct.
19206
19207 2007-12-31 Magnus Henoch <mange@freemail.hu>
19208
19209 * dbusbind.c (xd_signature): Signature of variant is just "v".
19210
19211 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
19212
19213 * dbusbind.c: Fix several errors and compiler warnings.
19214 Reported by Tom Tromey <tromey@redhat.com>.
19215 (XD_ERROR, XD_DEBUG_MESSAGE)
19216 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
19217 (xd_append_arg): Part for basic D-Bus types rewritten.
19218 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
19219 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
19220 appropriate.
19221 (xd_read_message): Return Qnil. Don't signal an error; it is not
19222 useful during event reading.
19223 (Fdbus_register_signal): Signal an error if the check for
19224 FUNCTIONP fails.
19225 (Fdbus_register_method): New function. The implementation is not
19226 complete, the call of the function signals an error therefore.
19227 (Fdbus_unregister_object): New function, renamed from
19228 Fdbus_unregister_signal. The initial check signals an error, if
19229 the object is not well formed.
19230
19231 2007-12-30 Richard Stallman <rms@gnu.org>
19232
19233 * textprop.c (get_char_property_and_overlay):
19234 Signal error if POSITION is out of range in a buffer.
19235
19236 2007-12-29 Martin Rudalics <rudalics@gmx.at>
19237
19238 * w32fns.c (Fx_create_frame): Make copy of frame parameters
19239 because the original parameters are in pure storage now.
19240
19241 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19242
19243 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
19244
19245 2007-12-22 Eli Zaretskii <eliz@gnu.org>
19246
19247 * callint.c (syms_of_callint) <command-history>: Add reference to
19248 history-length in the doc string.
19249
19250 2007-12-17 Jason Rumney <jasonr@gnu.org>
19251
19252 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
19253 before passing as wParam.
19254
19255 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
19256
19257 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
19258 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
19259 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
19260 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
19261 as number.
19262 (Fdbus_call_method): Fix docstring.
19263
19264 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
19265
19266 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
19267 New macros.
19268 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
19269 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
19270 Simplify.
19271 (xd_signature): New function.
19272 (xd_append_arg): Compute also signatures. Major rewrite.
19273 (xd_retrieve_arg): Make debug messages friendly.
19274 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
19275 Check for signatures of arguments.
19276
19277 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
19278
19279 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
19280 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
19281 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
19282 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
19283 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
19284 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
19285 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
19286 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
19287 (xd_retrieve_value): Remove. Functionality included in ...
19288 (xd_append_arg): New function.
19289 (Fdbus_call_method, Fdbus_send_signal): Apply it.
19290
19291 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
19292
19293 * dbusbind.c (top): Include <stdio.h>.
19294 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
19295 dbus_message_new_method_call and dbus_message_new_signal.
19296 (Fdbus_register_signal): Rename unique_name to uname.
19297 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
19298 non-existing unique name. Fix typos in matching rule. Return an
19299 object which is useful in Fdbus_unregister_signal.
19300 (Fdbus_unregister_signal): Reimplementation, in order to remove
19301 only the corresponding entry.
19302 (Vdbus_registered_functions_table): Change the order of entries.
19303 Apply these changes in xd_read_message and Fdbus_register_signal.
19304
19305 2007-12-16 Andreas Schwab <schwab@suse.de>
19306
19307 * fileio.c (Finsert_file_contents): Fix overflow check to not
19308 depend on undefined integer overflow.
19309
19310 2007-12-14 Jason Rumney <jasonr@gnu.org>
19311
19312 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19313 for characters above 127.
19314
19315 2007-12-13 Jason Rumney <jasonr@gnu.org>
19316
19317 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19318 before dereferencing array.
19319 (lookup_vk_code): Remove zero comparison.
19320
19321 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
19322
19323 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19324 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19325 Use `unsigned int' instead of `uint'.
19326 (xd_read_message, Fdbus_register_signal): Split expressions into
19327 multiple lines before operators "&&" and "||", according to the
19328 GNU Coding Standards.
19329
19330 2007-12-14 Eli Zaretskii <eliz@gnu.org>
19331
19332 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19333
19334 2007-12-12 Juri Linkov <juri@jurta.org>
19335
19336 * buffer.c (Frename_buffer): In interactive spec replace
19337 `read-buffer' with `read-string' that uses `buffer-name-history'
19338 as history, and the current buffer's name as default.
19339
19340 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19341
19342 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19343 manipulating the backtrace manually.
19344 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19345 (struct backtrace, backtrace_list): Remove.
19346 (command_loop_1): Remove dead var `no_direct'.
19347
19348 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19349 preserve non-built-in buffer-local variables.
19350 (Fkill_all_local_variables): Don't re-create&re-set permanent
19351 buffer-local variables.
19352
19353 2007-12-09 Juri Linkov <juri@jurta.org>
19354
19355 * buffer.c (Frename_buffer): Change interactive spec from "s" to
19356 Lisp code that uses `read-buffer' with current buffer as default.
19357
19358 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
19359
19360 * dbusbind.c (xd_read_message): Generate an event for every
19361 registered handler. There might be several handlers registered
19362 for the same signal.
19363 (Fdbus_register_signal): Don't overwrite a registration for the
19364 same signal. Add a new registration if handlers are different.
19365 (Vdbus_registered_functions_table): Rework doc string.
19366
19367 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
19368
19369 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19370 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19371 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19372 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19373 Unify argument lists.
19374 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19375 arguments and hash table keys. Use unique name for service.
19376 (Fdbus_unregister_signal): Remove checks.
19377 (Vdbus_registered_functions_table): Fix doc string.
19378
19379 2007-12-05 Magnus Henoch <mange@freemail.hu>
19380
19381 * process.c (make_process): Initialize pty_flag to 0.
19382
19383 2007-12-05 Jason Rumney <jasonr@gnu.org>
19384
19385 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19386 specified XBMs.
19387
19388 2007-12-05 Richard Stallman <rms@gnu.org>
19389
19390 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19391
19392 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19393
19394 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19395 New variable.
19396 (mac_try_close_socket) [MAC_OSX]: New function.
19397 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19398 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19399
19400 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19401 Use mac_try_close_socket.
19402
19403 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19404
19405 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19406 reloc_base.
19407 (copy_dysymtab): Compute relocation base here.
19408 (rebase_reloc_address) [__ppc64__]: New function.
19409 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19410 changed.
19411
19412 2007-12-05 Jason Rumney <jasonr@gnu.org>
19413
19414 * w32proc.c (sys_spawnve): Quote args with wildcards.
19415
19416 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19417
19418 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19419 __objc_* sections.
19420 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19421
19422 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
19423
19424 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19425 Move check for Vdbus_registered_functions_table to
19426 xd_read_queued_messages.
19427 (xd_read_queued_messages): Protect xd_read_message calls by
19428 internal_condition_case_1.
19429
19430 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
19431
19432 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19433 Qdbus_system_bus and Qdbus_session_bus, respectively.
19434 (Vdbus_intern_symbols): Remove.
19435 (Vdbus_registered_functions_table): New hash table.
19436 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19437 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19438 Rewrite in order to manage registered functions by hash table
19439 Vdbus_registered_functions_table.
19440
19441 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19442
19443 * xterm.c: Update URL to Window Manager Specification in comment.
19444
19445 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
19446
19447 * config.in (HAVE_DBUS): Add.
19448
19449 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19450 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19451 (obj): Add $(DBUS_OBJ).
19452 (LIBES): Add $(DBUS_LIBS).
19453 (dbusbind.o): New target.
19454
19455 * dbusbind.c: New file.
19456
19457 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19458
19459 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19460 (Qdbus_event): New Lisp symbol.
19461 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19462 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
19463 (keys_of_keyboard): Define dbus-event.
19464
19465 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19466
19467 2007-12-01 Richard Stallman <rms@gnu.org>
19468
19469 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19470
19471 2007-11-30 Jason Rumney <jasonr@gnu.org>
19472
19473 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19474 (w32con_reset_terminal_modes): Clear screen buffer.
19475 (w32_face_attributes): Don't use color indexes that are out of range.
19476 Only reverse the default colors.
19477
19478 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19479 WINDOWSNT.
19480
19481 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19482
19483 2007-11-29 Jason Rumney <jasonr@gnu.org>
19484
19485 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19486 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19487 if the terminal colors are initialized.
19488 (unspecified_fg, unspecified_bg): Remove unused declarations.
19489
19490 2007-11-29 Andreas Schwab <schwab@suse.de>
19491
19492 * keyboard.c (apply_modifiers): Fix typo.
19493
19494 2007-11-29 Richard Stallman <rms@gnu.org>
19495
19496 * keymap.c (Fcurrent_local_map): Doc fix.
19497
19498 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19499
19500 * s/gnu-kfreebsd.h: New file.
19501
19502 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19503
19504 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19505 Don't cast redundantly.
19506
19507 * keyboard.c (KEY_TO_CHAR): New macro.
19508 (parse_modifiers, apply_modifiers): Accept integer arguments.
19509 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19510 for chars and symbol keys.
19511 After doing such remapping, apply function-key-map again.
19512
19513 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19514
19515 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19516 compiled anymore.
19517
19518 2007-11-26 Andreas Schwab <schwab@suse.de>
19519
19520 * process.c (list_processes_1): Fix indentation level of the
19521 command column.
19522
19523 2007-11-23 Andreas Schwab <schwab@suse.de>
19524
19525 * editfns.c (Fformat): Handle %c specially since it requires the
19526 argument to be of type int.
19527
19528 2007-11-23 Markus Triska <markus.triska@gmx.at>
19529
19530 * emacs.c (main): Call init_editfns before init_process, since
19531 init_process sets Vprocess_connection_type depending on OS release.
19532
19533 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19534
19535 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19536 (find_symbol_value): Use do_symval_forwarding.
19537
19538 * data.c (set_internal): Set the value in the `cons-cell' (for
19539 Buffer_Local_values) not only for frame-local variables.
19540
19541 2007-11-22 Andreas Schwab <schwab@suse.de>
19542
19543 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19544 values to sprintf.
19545 * keymap.c (Fsingle_key_description): Likewise.
19546 * print.c (print_object): Likewise.
19547
19548 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19549
19550 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19551 file for image is nil.
19552
19553 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19554
19555 * term.c: Include stdarg.h.
19556 (fatal): Implement using varargs.
19557 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19558
19559 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19560
19561 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19562 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19563 Update call to buffer_slot_type_mismatch.
19564 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19565 (buffer_slot_type_mismatch): Update.
19566 * buffer.c (buffer_local_types): Remove.
19567 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19568 (defvar_per_buffer): Set the type in the buffer_objfwd.
19569
19570 2007-11-21 Jason Rumney <jasonr@gnu.org>
19571
19572 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19573 CreateFileMapping returns NULL on failure.
19574
19575 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19576
19577 * search.c (Fset_match_data): Remove the `evaporate' feature.
19578 (unwind_set_match_data): Don't use the `evaporate' feature.
19579
19580 2007-11-21 Jason Rumney <jasonr@gnu.org>
19581
19582 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19583
19584 * w32console.c (w32con_write_glyphs): Remove unused variables.
19585
19586 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19587
19588 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19589
19590 * s/darwin.h (MULTI_KBOARD): Remove.
19591
19592 * macfns.c (x_create_tip_frame, Fx_create_frame)
19593 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19594
19595 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19596
19597 * buffer.c (Fbuffer_local_value): Remove redundant test.
19598 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19599 than in `current-buffer' to match the comment.
19600 Do the swap using swap_in_global_binding.
19601
19602 * data.c (store_symval_forwarding, set_internal):
19603 * eval.c (specbind): Remove dead code.
19604
19605 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19606 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19607 Since we do not want to see internal Lisp_*fwd objects here.
19608
19609 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19610
19611 * sysdep.c (init_system_name): Use getaddrinfo if available.
19612
19613 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19614 (x_scroll_bar_note_movement): start, end, with, height in struct
19615 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19616
19617 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19618
19619 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19620
19621 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19622
19623 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19624 This undoes Richard's change of 14-Oct-2002.
19625
19626 * alloc.c (allocate_other_vector):
19627 * lisp.h (allocate_other_vector): Remove.
19628
19629 * window.c (struct save_window_data): Move non-lisp data to the end
19630 and make it `int' rather than Lisp_Object.
19631 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19632 Done wrap/unwrap integer values.
19633 (Fset_window_configuration, compare_window_configurations):
19634 Update use of fields to their new types.
19635
19636 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19637 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19638 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19639 (SET_SCROLL_BAR_X_WINDOW): Remove.
19640 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19641 Access the new x_window field directly.
19642 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19643 Don't wrap/unwrap integers into Lisp_Objects.
19644 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19645 (x_scroll_bar_report_motion):
19646 Don't wrap/unwrap integers into Lisp_Objects.
19647 (x_term_init): Use SDATA.
19648 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19649 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19650 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19651 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19652 * xfns.c (x_set_background_color):
19653 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19654 Access the new x_window field directly.
19655
19656 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19657 (allocate_pseudovector): Make non-static.
19658
19659 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19660 (allocate_pseudovector): Declare.
19661 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19662
19663 2007-11-15 Andreas Schwab <schwab@suse.de>
19664
19665 * editfns.c (Fformat): Correctly format EMACS_INT values.
19666 Also take precision into account when formatting an integer.
19667
19668 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19669
19670 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19671
19672 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19673 (syms_of_keyboard): Defsubr it.
19674
19675 * data.c (swap_in_global_binding): Fix longstanding bug where
19676 store_symval_forwarding was not called with the right second argument,
19677 thus causing objfwd-ing from being dropped.
19678
19679 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
19680
19681 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19682 (Fx_display_pixel_height, Fx_display_planes)
19683 (Fx_display_color_cells, Fx_server_max_request_size)
19684 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19685 (Fx_display_visual_class, Fx_display_save_under):
19686 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19687 (Fx_display_pixel_height, Fx_display_planes)
19688 (Fx_display_color_cells, Fx_server_max_request_size)
19689 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19690 (Fx_display_mm_height, Fx_display_mm_width)
19691 (Fx_display_backing_store, Fx_display_visual_class)
19692 (Fw32_select_font, Fx_display_save_under):
19693 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19694 (Fx_display_pixel_height, Fx_display_planes)
19695 (Fx_display_color_cells, Fx_server_max_request_size)
19696 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19697 (Fx_display_save_under): Fix typos in docstrings.
19698
19699 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
19700
19701 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19702 corresponding to deleted entries; they are an implementation detail.
19703 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19704 Remove variables.
19705 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19706 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19707 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19708 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19709 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19710 (Fw32_define_rgb_color, Fw32_load_color_file)
19711 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19712 Fix typos in docstrings.
19713 (Fx_server_version): Reflow docstring.
19714 (Fw32_shell_execute): Doc fixes.
19715
19716 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
19717
19718 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19719 if w32_parse_hot_key returned nil.
19720
19721 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19722
19723 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19724
19725 2007-11-09 Jason Rumney <jasonr@gnu.org>
19726
19727 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19728
19729 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19730
19731 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19732 Remove W32_SCROLL_BAR_CLICK_EVENT.
19733
19734 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19735 Add MULTIMEDIA_KEY_EVENT.
19736
19737 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19738 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19739 (make_lispy_event) [WINDOWSNT]: Use it to translate
19740 MULTIMEDIA_KEY_EVENT.
19741
19742 * w32term.h (WM_APPCOMMAND): Define if not already.
19743 (GET_APPCOMMAND_LPARAM): Likewise.
19744
19745 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19746 WM_APPCOMMAND.
19747
19748 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19749 (syms_of_w32fns): Export and initialize it.
19750 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19751
19752 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
19753
19754 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19755 twice.
19756
19757 * xdisp.c (handle_face_prop): Fix last change.
19758
19759 2007-11-09 Richard Stallman <rms@gnu.org>
19760
19761 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19762 not just for after-strings and before-strings.
19763 Call face_for_overlay_string and pass the overlay to it.
19764 (handle_display_prop): Determine whether property came from an overlay.
19765 Pass OVERLAY arg to handle_single_display_spec.
19766 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19767 (load_overlay_strings): Fill in it->string_overlays.
19768 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19769
19770 * xfaces.c (face_for_overlay_string): Function renamed from
19771 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19772
19773 * dispextern.h (struct it): New elt string_overlays.
19774 New elt from_overlay, also in stack.
19775 Rearrange a few elements.
19776 (face_for_overlay_string): Decl renamed from
19777 face_at_buffer_position_no_overlays, and add argument.
19778
19779 2007-11-09 Richard Stallman <rms@gnu.org>
19780
19781 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19782 to get the base face for an overlay string.
19783
19784 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19785
19786 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19787
19788 * xdisp.c (handle_stop): Move some code out of loop.
19789
19790 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19791
19792 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19793 Fix conversion from Lisp object to ATSUFontID.
19794
19795 2007-11-09 Jason Rumney <jasonr@gnu.org>
19796
19797 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19798
19799 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19800
19801 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19802 Don't assume regions are aligned to page boundary.
19803 (print_load_command_name): Add LC_UUID if defined.
19804
19805 2007-11-09 Richard Stallman <rms@gnu.org>
19806
19807 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19808
19809 2007-11-07 Jason Rumney <jasonr@gnu.org>
19810
19811 * s/windows95.h: Remove.
19812
19813 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19814
19815 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19816 abort with a message on unhandled store_type values.
19817
19818 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19819
19820 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19821 Remove HAVE_X11R5 and HAVE_X11R4.
19822
19823 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19824
19825 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19826
19827 2007-11-01 Johan Bockgård <bojohan@gnu.org>
19828
19829 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19830 Don't set s->stippled_p here, since it has already been set by
19831 x_set_glyph_string_gc from x_draw_glyph_string.
19832
19833 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19834
19835 * sunfns.c: Remove file.
19836
19837 * m/sun386.h:
19838 * m/sun2.h:
19839 * m/sparc.h: Remove Sun windows code.
19840
19841 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19842
19843 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19844 (init_keyboard): Set current_kboard's window-system to nil.
19845 (tty_read_avail_input): Typo.
19846 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19847
19848 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19849
19850 * s/usg5-4.h:
19851 * s/usg5-3.h:
19852 * s/ptx.h:
19853 * m/is386.h:
19854 * m/ibmps2-aix.h:
19855 * Makefile.in: Remove all mentions of X10.
19856
19857 * dispnew.c (syms_of_display): Don't mention version 10.
19858
19859 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
19860
19861 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19862 ($(BLD)/abbrev.$(O)): Remove.
19863
19864 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19865
19866 Rewrite abbrev.c in Elisp.
19867 * image.c (Qcount): Don't declare as extern.
19868 (syms_of_image): Initialize and staticpro `Qcount'.
19869 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19870 * emacs.c (main): Don't call syms_of_abbrev.
19871 * Makefile.in (obj): Remove abbrev.o.
19872 (abbrev.o): Remove.
19873 * abbrev.c: Remove.
19874
19875 2007-10-26 Martin Rudalics <rudalics@gmx.at>
19876
19877 * window.c (window_min_size_2): Don't count header-line.
19878
19879 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19880
19881 * frame.h (struct frame): Move all bit fields after the first bit
19882 field to take advantage of the available space. Group all the
19883 chars together to reduce wasted space due to padding.
19884
19885 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
19886
19887 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19888
19889 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19890 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19891 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19892 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19893 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19894 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19895 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19896 (last_marked, mark_object_loop_halt): Make static.
19897
19898 * frame.c (syms_of_frame) <delete-frame-functions>:
19899 Fix typo in docstring.
19900
19901 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
19902
19903 * w32.c (init_environment): Fix tiny memory leak.
19904 (w32_get_resource): Remove unused variable `ok'.
19905
19906 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19907
19908 Make `window-system' into a keyboard-local variable (rather than
19909 frame-local as done originally by multi-tty).
19910
19911 * keyboard.h (struct kboard): Add Vwindow_system.
19912 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19913 (mark_kboards): Mark Vwindow_system.
19914
19915 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19916 (init_display): Don't set the obsolete `window-system' frame-param.
19917
19918 * xterm.c (x_term_init):
19919 * w32term.c (w32_create_terminal):
19920 * term.c (init_tty): Set Vwindow_system.
19921 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19922 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19923
19924 * xfns.c (Fx_create_frame, x_create_tip_frame):
19925 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19926 * macfns.c (Fx_create_frame):
19927 Don't set the obsolete `window-system' frame-param.
19928
19929 * frame.h (Qwindow_system): Remove.
19930 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19931 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19932
19933 2007-10-24 Richard Stallman <rms@gnu.org>
19934
19935 * frame.c (x_figure_window_size): For fullscreen case,
19936 set USPosition | PPosition without clobbering rest of window_prompting.
19937
19938 * keyboard.c (Fcurrent_idle_time): Doc fix.
19939
19940 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19941
19942 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19943
19944 * process.c (unwind_request_sigio): Only define if __ultrix__.
19945
19946 * callproc.c (child_setup): Remove spurious *.
19947
19948 * lisp.h (Fget_text_property): Declare.
19949 (have_menus_p): Declare it here rather than in sys-dep header files.
19950 * macterm.h (have_menus_p):
19951 * msdos.h (have_menus_p):
19952 * xterm.h (have_menus_p): Remove.
19953
19954 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19955 (Fmake_variable_frame_local): Just check the variable's const-ness
19956 rather than checking nil or t.
19957
19958 2007-10-22 Jason Rumney <jasonr@gnu.org>
19959
19960 * w32fns.c: Include math.h.
19961 (w32_abort): Declaration moved to nt/config.nt.
19962
19963 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19964 (abort): Redefinition moved to nt/config.nt.
19965
19966 * m/windowsnt.h: Remove.
19967
19968 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
19969
19970 * emacs.c (Fdump_emacs): Fix typo in message.
19971 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19972 <installation-directory>: Reflow docstring.
19973
19974 2007-10-22 Juri Linkov <juri@jurta.org>
19975
19976 * minibuf.c: Allow minibuffer default to be a list of default values.
19977 With empty input use the first element of this list as returned default.
19978 (string_to_object)
19979 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19980 (read_minibuf): If defalt is cons, set histstring to its car.
19981 (Fread_string): If default_value is cons, set val to its car.
19982 (Fread_buffer): If def is cons, use its car.
19983 (Fcompleting_read): If defalt is cons, set val to its car.
19984
19985 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
19986
19987 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19988
19989 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
19990
19991 * doc.c (Fdocumentation): Check for advice in all cases.
19992
19993 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
19994
19995 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19996
19997 2007-10-19 Richard Stallman <rms@gnu.org>
19998
19999 * doc.c (Fdocumentation): Check for and handle an advised function.
20000
20001 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
20002
20003 * process.c (Fset_process_filter): Doc fix.
20004
20005 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
20006
20007 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
20008 which caused key-translation-map to applied repeatedly (thus breaking
20009 double-mode).
20010
20011 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20012
20013 * xselect.c (x_own_selection, x_handle_selection_clear)
20014 (x_clear_frame_selections):
20015 * w32menu.c (list_of_panes, list_of_items):
20016 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
20017 * textprop.c (validate_plist, interval_has_all_properties)
20018 (interval_has_some_properties, interval_has_some_properties_list)
20019 (add_properties, text_property_list):
20020 * process.c (Fget_buffer_process, list_processes_1, status_notify):
20021 * minibuf.c (Fassoc_string):
20022 * macselect.c (x_own_selection, x_clear_frame_selections)
20023 (Fx_disown_selection_internal):
20024 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
20025 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
20026
20027 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
20028
20029 * process.c: Link to libs for calling res_init() if available.
20030 (Fmake_network_process): Call res_init() before getaddrinfo or
20031 gethostbyname, if possible.
20032
20033 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20034
20035 * lread.c (read1): Set pvectype for char_tables.
20036
20037 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
20038 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
20039 Add type checks.
20040 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
20041
20042 * alloc.c (free_misc): Use XMISCTYPE.
20043 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
20044
20045 2007-10-17 Glenn Morris <rgm@gnu.org>
20046
20047 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
20048 (syms_of_minibuf): Add Qcompletion_ignore_case.
20049 * dired.c (Qcompletion_ignore_case): Change to external.
20050 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
20051 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
20052 (Fread_file_name): Use it rather than intern'ing.
20053
20054 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
20055 (Fread_coding_system): Ignore case of user input.
20056
20057 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20058
20059 * xdisp.c (handle_display_prop): Ignore display specs after
20060 replacing one when string text is being replaced.
20061 (handle_single_display_spec): Pretend as if characters with display
20062 property haven't been consumed only when buffer text is being replaced.
20063
20064 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
20065
20066 * xfns.c (Fx_create_frame, Fx_display_list):
20067 * window.c (window_fixed_size_p, enlarge_window)
20068 (shrink_window_lowest_first):
20069 * macterm.c (init_font_name_table):
20070 * macfns.c (Fx_create_frame, Fx_display_list):
20071 * lread.c (close_load_descs):
20072 * keyboard.c (read_char_x_menu_prompt):
20073 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
20074 * coding.c (code_convert_region_unwind): Test the type of an object
20075 rather than just !NILP before extracting data from it.
20076
20077 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
20078
20079 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
20080 (XMISCANY): New macro.
20081 (XMISCTYPE): Use it.
20082 (struct Lisp_Misc_Any): New type.
20083 (union Lisp_Misc): Use it.
20084 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
20085 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
20086 (find_symbol_value, set_internal, default_value, Fset_default)
20087 (Fmake_variable_buffer_local, Fmake_local_variable)
20088 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
20089 (Flocal_variable_if_set_p, Fvariable_binding_locus):
20090 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
20091 * alloc.c (allocate_buffer): Set the size and tag.
20092 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
20093 Use XMISCANY.
20094 (die): Follow the GNU convention for error messages.
20095 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
20096 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
20097 tag any more.
20098 (set_buffer_internal_1):
20099 * frame.c (store_frame_param):
20100 * eval.c (specbind):
20101 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
20102
20103 * doc.c (Fsnarf_documentation): Simplify.
20104
20105 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
20106
20107 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
20108 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
20109
20110 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
20111
20112 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
20113
20114 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
20115
20116 * eval.c (do_autoload): Don't save autoloads.
20117
20118 * data.c (Ffset): Save autoload of the function being set.
20119
20120 2007-10-07 John Paul Wallington <jpw@pobox.com>
20121
20122 * xfns.c (x_create_tip_frame): Set the `display-type' frame
20123 parameter before setting up faces.
20124
20125 2007-10-13 Eli Zaretskii <eliz@gnu.org>
20126
20127 * ccl.c (Fregister_code_conversion_map):
20128 * keyboard.c (append_tool_bar_item): Reformat last change.
20129
20130 * lisp.h (eabs): Rename from `abs'. All callers changed.
20131
20132 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
20133
20134 * buffer.c (add_overlay_mod_hooklist):
20135 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
20136 * fontset.c (make_fontset):
20137 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
20138 (append_tool_bar_item):
20139 * macmenu.c (grow_menu_items):
20140 * w32menu.c (grow_menu_items):
20141 * xmenu.c (grow_menu_items): Use larger_vector.
20142
20143 2007-10-13 Eli Zaretskii <eliz@gnu.org>
20144
20145 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
20146 selected frame'' on MSDOS).
20147
20148 2007-10-12 Martin Rudalics <rudalics@gmx.at>
20149
20150 * frame.c (Qexplicit_name): New variable.
20151 (x_report_frame_params): Report it in parameter alist.
20152 (syms_of_frame): Intern and staticpro it.
20153
20154 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
20155
20156 * macfns.c (x_create_tip_frame): Set terminal for frame.
20157
20158 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
20159
20160 * frame.c (Qenvironment): Remove.
20161 (syms_of_frame) <Qenvironment>: Don't initialize.
20162 (Fdelete_frame): Don't treat the `environment' param specially.
20163 * frame.h (Qenvironment): Don't declare.
20164 * callproc.c (set_initial_environment): Don't set unused frame param.
20165
20166 * frame.c (Fframe_with_environment): Remove.
20167 (syms_of_frame) <Sframe_with_environment>: Don't declare.
20168
20169 * lisp.h (Fframe_with_environment): Don't declare.
20170
20171 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
20172
20173 * indent.c (indent_tabs_mode, last_known_column)
20174 (last_known_column_modified): Make static.
20175 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
20176
20177 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
20178
20179 * puresize.h (BASE_PURESIZE): Increase to 1170000.
20180
20181 2007-10-09 Jason Rumney <jasonr@gnu.org>
20182
20183 * w32term.c (x_set_window_size): Disable code that attempts to tell
20184 Lisp code about a size change before it actually happens.
20185
20186 2007-10-09 Richard Stallman <rms@gnu.org>
20187
20188 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
20189 return HANDLED_RETURN.
20190
20191 2007-10-08 Martin Rudalics <rudalics@gmx.at>
20192
20193 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
20194 when there's an unread command event.
20195
20196 * frame.c (focus_follows_mouse): Move here from frame.el to allow
20197 window autoselection act appropriately when leaving selected frame.
20198 (syms_of_frame): Initialize focus_follows_mouse.
20199 * frame.h (focus_follows_mouse): Extern it.
20200 * macterm.c (XTread_socket): When focus_follows_mouse is nil
20201 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
20202 * msdos.c (dos_rawgetc): Likewise.
20203 * w32term.c (w32_read_socket): Likewise.
20204 * xterm.c (handle_one_xevent): Likewise.
20205 * xdisp.c (syms_of_xdisp): In doc-string of
20206 mouse-autoselect-window mention focus-follows-mouse.
20207
20208 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20209
20210 * macterm.c (mac_load_query_font): Fix missing return value.
20211 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
20212 Add BLOCK_INPUT.
20213
20214 2007-10-08 Richard Stallman <rms@gnu.org>
20215
20216 * xdisp.c (get_window_cursor_type): Implement documented behavior
20217 for cursor-in-non-selected-windows = t.
20218
20219 2007-10-08 Jason Rumney <jasonr@gnu.org>
20220
20221 * w32.c (w32_get_resource): Always close registry keys.
20222
20223 2007-10-08 Jason Rumney <jasonr@gnu.org>
20224
20225 * makefile.w32-in (LIBS): Add COMCTL32.
20226
20227 * w32fns.c (globals_of_w32fns): Init common controls.
20228
20229 2007-10-08 Richard Stallman <rms@gnu.org>
20230
20231 * image.c (our_memory_buffer): Rename from omfib_buffer.
20232
20233 2007-10-08 Richard Stallman <rms@gnu.org>
20234
20235 * buffer.c (Foverlays_at): Doc fix.
20236
20237 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
20238
20239 * fns.c (Fplist_put): Preserve uneven tail data.
20240
20241 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
20242
20243 * termhooks.h (enum event_kind): Remove trailing comma.
20244
20245 * frame.h (enum): Remove trailing comma.
20246
20247 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20248
20249 * w32proc.c (delete_child): Don't terminate threads of zombies.
20250
20251 2007-10-08 Martin Rudalics <rudalics@gmx.at>
20252
20253 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
20254
20255 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
20256 last-repeatable-command.
20257 (init_kboard): Initialize Vlast_repeatable_command.
20258 (command_loop_1): Set it to real_this_command unless that was
20259 bound to an input event.
20260 (mark_kboards): Mark it.
20261
20262 2007-10-08 Richard Stallman <rms@gnu.org>
20263
20264 * eval.c (condition-case): Doc fix.
20265
20266 2007-10-08 Masatake YAMATO <jet@gyve.org>
20267
20268 * xfaces.c (tty_supports_face_attributes_p): Fix code
20269 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
20270 was copied and not edited.
20271
20272 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
20273
20274 Add new `input-decode-map' keymap and use it for terminal
20275 escape sequences.
20276 * keyboard.h (struct kboard): Add Vinput_decode_map.
20277 Remove Vlocal_key_translation_map.
20278 * keyboard.c (read_key_sequence): Add support for input-decode-map.
20279 (init_kboard): Init input-decode-map.
20280 Replace local-key-translation-map back with key-translation-map.
20281 (syms_of_keyboard): Declare input-decode-map.
20282 Remove local-key-translation-map. Update docstrings.
20283 (mark_kboards): Mark Vinput_decode_map.
20284 Don't mark Vlocal_key_translation_map.
20285 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
20286 Replace local-key-translation-map back with key-translation-map.
20287 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
20288 Bind in input-decode-map rather than function-key-map.
20289
20290 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
20291 This was made redundant by the previous introduction of XSETPVECTYPE.
20292
20293 2007-10-09 Richard Stallman <rms@gnu.org>
20294
20295 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
20296
20297 2007-09-29 Richard Stallman <rms@gnu.org>
20298
20299 * eval.c (internal_condition_case_2, internal_condition_case_1)
20300 (internal_condition_case): Reenable abort if x_catching_errors ()
20301 to see if that really happens and why.
20302
20303 2007-10-06 Andreas Schwab <schwab@suse.de>
20304
20305 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
20306
20307 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
20308
20309 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
20310
20311 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
20312
20313 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20314
20315 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
20316
20317 * window.h (struct window):
20318 * window.c (struct save_window_data, struct saved_window):
20319 * termhooks.h (struct terminal):
20320 * process.h (struct Lisp_Process):
20321 * frame.h (struct frame):
20322 * buffer.h (struct buffer):
20323 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20324 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20325 The size field of (pseudo)vectors is now unsigned.
20326 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20327
20328 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20329 Turn `count' into an integer.
20330
20331 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20332 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20333 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20334 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20335 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20336
20337 * alloc.c (allocate_pseudovector): New fun.
20338 (ALLOCATE_PSEUDOVECTOR): New macro.
20339 (allocate_window, allocate_terminal, allocate_frame)
20340 (allocate_process): Use it.
20341 (mark_vectorlike): New function.
20342 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20343 (mark_terminals): Use it.
20344 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20345 (Fmake_byte_code): Use XSETPVECTYPE.
20346
20347 * frame.c (Fframe_parameters): Minor simplification.
20348
20349 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20350
20351 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20352
20353 * buffer.c (Fget_buffer_create, init_buffer_once):
20354 * lread.c (defsubr):
20355 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20356
20357 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20358 defined differently in the m/*.h files.
20359 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
20360 (XSETPVECTYPE): New macro.
20361 (XSETPSEUDOVECTOR): Use it.
20362
20363 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20364 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20365
20366 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20367 * lread.c (defvar_per_buffer):
20368 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20369
20370 * window.c (candidate_window_p): Only consider as visible frames that
20371 are on the same terminal.
20372
20373 * m/ibms390x.h (MARKBIT): Remove unused macro.
20374
20375 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
20376
20377 * lread.c (Fload): Fix typo in docstring.
20378
20379 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20380
20381 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20382 of a non-zero value can't yield zero.
20383
20384 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20385
20386 * term.c (term_clear_mouse_face, term_mouse_highlight)
20387 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20388
20389 * print.c (safe_debug_print): Use XHASH.
20390
20391 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20392 Lisp elements such as tags.
20393 (XHASH): New macro.
20394 (EQ): Use it.
20395 (SREF, SSET, STRING_COPYIN): Use SDATA.
20396 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20397
20398 * alloc.c (mark_terminal): Remove left-over declaration.
20399 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20400 (allocate_vectorlike): Remove type argument. Adjust callers.
20401 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20402 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20403
20404 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20405 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20406 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20407 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20408 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20409 Use them.
20410
20411 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20412 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20413 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20414
20415 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20416
20417 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20418 loaded by default.
20419
20420 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20421
20422 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20423 on this tty.
20424 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20425
20426 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20427 Update all users.
20428 (handle_one_term_event): Use Gpm_DrawPointer.
20429 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20430 Signal errors instead of returning nil. Always return nil.
20431 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20432 Make it a noop if gpm-mouse was not activated.
20433 (syms_of_term): Update names.
20434
20435 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20436
20437 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20438 (init_sys_modes): Check that gpm_tty is the current tty.
20439
20440 * alloc.c (allocate_terminal): Set the vector size to only count the
20441 lisp fields. Initialize those to nil.
20442 (mark_object): Don't treat terminals specially.
20443 (mark_terminal): Remove.
20444 (mark_terminals): Use mark_object instead.
20445
20446 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20447 the GC to the beginning.
20448
20449 * indent.h:
20450 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20451
20452 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20453
20454 2007-09-25 Jason Rumney <jasonr@gnu.org>
20455
20456 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20457
20458 * w32console.c (create_w32cons_output): Remove.
20459
20460 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20461
20462 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20463 (reset_sys_modes): Use reset_terminal_modes_hook.
20464
20465 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20466
20467 * eval.c (do_autoload): Don't output any message.
20468
20469 2007-09-24 Juri Linkov <juri@jurta.org>
20470
20471 * emacs.c (standard_args): Change priority of "--no-splash"
20472 from 40 to 3. Add "--no-desktop" with the same priority.
20473
20474 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20475
20476 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20477 and optimize the case where they are all 1.
20478
20479 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
20480
20481 * lisp.h (abs): Define if not defined.
20482 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20483 Don't define `abs', since it's defined in lisp.h.
20484
20485 2007-09-22 Eli Zaretskii <eliz@gnu.org>
20486
20487 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20488 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20489 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20490 (init_tty): Use DEV_TTY instead of "/dev/tty".
20491 [WINDOWSNT]: No need to protect from NAME arg being null.
20492
20493 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20494
20495 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20496 up the tty state.
20497
20498 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20499
20500 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20501 (gpm_tty): Change its type.
20502 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20503 (gpm_tty): Change its type and initialize it.
20504 (Fterm_open_connection): Check the frame is indeed a tty.
20505 Use the new gpm_tty.
20506 (Fterm_close_connection): Use the new gpm_tty.
20507 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20508 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20509
20510 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
20511
20512 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20513 underline_color, to draw strike-through.
20514
20515 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20516
20517 * lisp.h (allocate_terminal): Declare.
20518
20519 * window.c (candidate_window_p): Consider frames that are being placed
20520 by the user as somewhere between visible and iconified.
20521 (window_loop): Prefer windows on the current frame.
20522 (Fselect_window): Move the use of select-frame to the beginning so we
20523 can just delegate all the work (it'll call us back anyway).
20524
20525 * frame.c (Qdisplay_environment_variable):
20526 * frame.h (Qdisplay_environment_variable): Delete.
20527
20528 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20529 of the first arg, since that value may be a union.
20530
20531 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20532 parameter rather than Qdisplay_environment_variable. If all else
20533 fails, look for DISPLAY in initial-environment.
20534
20535 2007-09-21 Glenn Morris <rgm@gnu.org>
20536
20537 * Makefile.in (emacstool): Remove target.
20538 (lisp, shortlisp): Remove termdev.elc.
20539
20540 2007-09-21 Markus Triska <markus.triska@gmx.at>
20541
20542 * xterm.c (x_delete_display): Compile session management conditionally.
20543
20544 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20545
20546 * callproc.c (getenv_internal_1): New function.
20547 (getenv_internal): Use it.
20548 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20549
20550 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20551 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20552 (Fset_terminal_parameter): Work with dead terminals as well.
20553 (Fmodify_terminal_parameters): Remove.
20554
20555 * terminal.c (get_terminal): Handle terminals.
20556 Make sure the terminal returned is live.
20557 (create_terminal): Use allocate_terminal.
20558 (mark_terminals): Move to alloc.c.
20559 (delete_terminal): Use terminal->name as liveness status.
20560 NULL out fields after freeing their contents.
20561 Don't deallocate the object.
20562 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20563 rather than an int.
20564 (Fterminal_live_p): Accept non-integer arguments.
20565 (Fterminal_list): Return terminal objects rather than an ints.
20566
20567 * alloc.c (enum mem_type): New member for `terminal' objects.
20568 (allocate_terminal): New function.
20569 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20570 Handle terminals.
20571 (mark_terminal): New fun.
20572 (mark_terminals): Move from terminal.c.
20573
20574 * term.c (get_tty_terminal): Don't treat output_initial specially.
20575 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20576 (delete_tty): Use terminal->name as liveness status.
20577
20578 * termhooks.h (struct terminal): Make it into a pseudovector.
20579 Remove `deleted' replaced by checking `name's nullness.
20580
20581 * print.c (print_object): Handle terminals.
20582
20583 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20584 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20585
20586 * frame.c (make_terminal_frame):
20587 * keyboard.c (tty_read_avail_input):
20588 * w32term.c (x_delete_terminal):
20589 * xfns.c (Fx_create_frame, x_create_tip_frame):
20590 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20591
20592 2007-09-20 Glenn Morris <rgm@gnu.org>
20593
20594 * process.c (Fmake_network_process): Doc fix.
20595
20596 2007-09-19 Jason Rumney <jasonr@gnu.org>
20597
20598 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20599
20600 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20601
20602 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20603 Fix a C warning regarding variable constness.
20604
20605 * xterm.c (handle_one_xevent): Fix a C warning.
20606
20607 2007-09-18 Jason Rumney <jasonr@gnu.org>
20608
20609 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20610
20611 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20612
20613 * gtkutil.c (gdpy_def): New variable.
20614 (xg_initialize): Initialize gdpy_def.
20615 (xg_display_close): If no other display exists, set gdpy_def to a
20616 new connection.
20617
20618 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20619
20620 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20621 when we have no file name for the icon.
20622 (xg_tool_bar_expose_callback): Remove.
20623 (xg_create_tool_bar): Don't connect expose signal to
20624 xg_tool_bar_expose_callback.
20625 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20626
20627 2007-09-16 Andreas Schwab <schwab@suse.de>
20628
20629 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20630 values instead of zapping them.
20631
20632 2007-09-14 Glenn Morris <rgm@gnu.org>
20633
20634 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20635 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20636 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20637 scope and rename to omfib_buffer for clarity.
20638 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20639
20640 2007-09-14 Kenichi Handa <handa@m17n.org>
20641
20642 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20643
20644 2007-09-13 Jason Rumney <jasonr@gnu.org>
20645
20646 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20647
20648 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20649
20650 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20651 (mac_term_init): Call here instead, passing rif.
20652
20653 2007-09-13 Glenn Morris <rgm@gnu.org>
20654
20655 * s/hpux.h: No longer define `static' as nothing.
20656
20657 2007-09-13 Johan Bockgård <bojohan@gnu.org>
20658
20659 * callint.c (Fcall_interactively): Remove unused var `fun'.
20660
20661 2007-09-12 Romain Francoise <romain@orebokech.com>
20662
20663 * window.c (prefer_window_split_horizontally, display_buffer):
20664 Revert 2007-09-08 change.
20665
20666 2007-09-12 Glenn Morris <rgm@gnu.org>
20667
20668 * alloca.c: Remove file.
20669 * Makefile.in (alloca): Do not undef.
20670 (allocaobj, alloca.o): Remove.
20671 (otherobj): Remove allocaobj.
20672 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20673 * regex.c (C_ALLOCA): Remove all references and code that was only
20674 used when this was defined.
20675 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20676 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20677 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20678
20679 * Makefile.in (SOURCES, unlock, relock): Delete.
20680
20681 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20682 (menu_grab_callback): All uses changed.
20683
20684 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20685 (x_reply_selection_request): All uses changed.
20686
20687 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20688
20689 * lread.c (load_warn_old_style_backquotes): Change message to look
20690 better when it appears in the middle of byte-compiler messages.
20691
20692 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20693
20694 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20695
20696 * xterm.c (x_create_terminal): Add comment.
20697
20698 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20699
20700 2007-09-10 Richard Stallman <rms@gnu.org>
20701
20702 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20703
20704 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20705
20706 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20707 (DEFUN): Document `intspec', use it instead of `prompt'.
20708
20709 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20710
20711 * data.c (Finteractive_form): If the interactive specification starts
20712 with a `(', use it as a Lisp form.
20713
20714 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20715 name and file modes.
20716
20717 * callint.c (Fcall_interactively): Comment fixes.
20718
20719 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20720
20721 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20722 and compiled functions.
20723
20724 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20725
20726 * window.c (prefer_window_split_horizontally): New variable.
20727 (display_buffer): Consider splitting window horizontally depending
20728 on prefer_window_split_horizontally.
20729
20730 2007-09-08 Eli Zaretskii <eliz@gnu.org>
20731
20732 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20733
20734 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20735
20736 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20737
20738 * frame.c (x_set_frame_parameters): Check number is positive before
20739 using XFASTINT.
20740
20741 * window.c (freeze_window_start): Don't presume selected_window holds
20742 a window object.
20743 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20744
20745 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20746
20747 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20748
20749 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20750
20751 * window.c (Vsplit_window_preferred_function): New var.
20752 (Fdisplay_buffer): Use it.
20753 (syms_of_window): Export, and initialize it.
20754
20755 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20756
20757 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20758
20759 2007-09-06 Glenn Morris <rgm@gnu.org>
20760
20761 * gtkutil.c (menu_grab_callback) <cnt>:
20762 * xselect.c (x_reply_selection_request) <cnt>: Move static
20763 variable to file scope.
20764
20765 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20766
20767 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20768 consistent values of selected_frame and selected_window.
20769
20770 2007-09-04 Jason Rumney <jasonr@gnu.org>
20771
20772 * w32console.c (initialize_w32_display): Zero unused hooks.
20773
20774 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20775
20776 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20777 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20778
20779 2007-09-04 Jason Rumney <jasonr@gnu.org>
20780
20781 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20782 in w32console.c. Set up input. Remove XXX comments that have been
20783 confirmed as correct.
20784
20785 * s/ms-w32.h (MULTI_KBOARD): Define.
20786
20787 * w32console.c (one_and_only_w32cons): Remove.
20788 (initialize_w32_display): Take terminal argument.
20789
20790 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20791 initialize_w32_display.
20792 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20793
20794 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20795
20796 * keyboard.c (discard_mouse_events): Discard it.
20797 (make_lispy_event): Translate it to a lisp event.
20798 (lispy_wheel_names): Add wheel-left and right events.
20799 (syms_of_keyboard): Enlarge wheel_syms.
20800
20801 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20802 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20803
20804 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20805
20806 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20807 from WM_MOUSEHWHEEL.
20808 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20809
20810 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20811 terminal.
20812
20813 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20814 keyboard for the terminal.
20815
20816 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20817
20818 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20819 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20820 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20821 and resume-tty-function to resume-tty-hook.
20822 (Fsuspend_tty, Fresume_tty): Use new names.
20823
20824 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20825
20826 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20827 if it starts with "n:".
20828
20829 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20830
20831 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20832
20833 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20834
20835 * frame.h:
20836 * frame.c (Qterm_environment_variable): Remove.
20837 (syms_of_frame): Don't init and staticpro it.
20838
20839 * callproc.c (getenv_internal): Remove special case for $TERM.
20840
20841 * callproc.c (Vinitial_environment): New variable.
20842 (set_initial_environment): Initialize it.
20843 (syms_of_callproc): Declare it.
20844 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20845 TERM under which a process runs is never related to the TERM in which
20846 Emacs is running.
20847
20848 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20849
20850 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20851 * s/darwin.h: ... do it here.
20852
20853 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20854
20855 * lisp.h (set_initial_environment): Rename from set_global_environment.
20856
20857 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20858 removed by mistake on the multi-tty branch.
20859
20860 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20861 (Fmodify_frame_parameters): Return a value.
20862
20863 * image.c (png_load): Comment-out var only used in commented-out code.
20864
20865 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20866 before passing it to mark_object.
20867
20868 * xfaces.c (internal_resolve_face_name): Return a value.
20869 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20870
20871 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20872 (x_icon): Comment-out var only used in commented-out code.
20873
20874 2007-08-29 Romain Francoise <romain@orebokech.com>
20875
20876 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20877 QUIT hasn't been provided.
20878
20879 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20880
20881 * callproc.c (child_setup, getenv_internal): Use the
20882 display-environment-variable and term-environment-variable frame params.
20883 (set_initial_environment): Initialise Vprocess_environment.
20884
20885 * config.in: Disable multi-keyboard support on a mac.
20886
20887 * frame.c (Qterm_environment_variable)
20888 (Qdisplay_environment_variable): New variables.
20889 (syms_of_frame): Intern and staticpro them.
20890 (Fmake_terminal_frame): Disable output method test.
20891
20892 * frame.h: Declare them here.
20893
20894 * macfns.c (x_set_mouse_color): Get rif from the frame.
20895 (x_set_tool_bar_lines): Don't use updating_frame.
20896 (mac_window): Add 2 new parameters for consistency with other systems.
20897 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20898 frame parameters following what is done in X11 and w32. Don't use
20899 FRAME_MAC_DISPLAY_INFO.
20900 (Fx_open_connection, start_hourglass): Remove window-system check.
20901 (x_create_tip_frame): Get the keyboard from the terminal.
20902
20903 * macmenu.c: Reorder includes.
20904 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20905
20906 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20907 terminal parameter.
20908 (x_clear_frame): Add a frame parameter.
20909 (note_mouse_movement): Get rif from the frame.
20910 (mac_term_init): Initialize the terminal.
20911 (mac_initialize): Make static and move terminal initialization ...
20912 (mac_create_terminal): ... to this new function.
20913
20914 * macterm.h (struct mac_display_info): Add terminal.
20915 (mac_initialize): Delete declaration.
20916
20917 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20918
20919 * sysdep.c: Comment out text after #endif.
20920
20921 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20922 is defined. Better initialize ttys in windows. Use terminal
20923 specific mouse_position_hook.
20924
20925 * termhooks.h (union display_info): Add mac_display_info.
20926
20927 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20928 Set the default minibuffer frame, window_system and the rest of the
20929 frame parameters following what is done in X11.
20930
20931 * w32term.c (w32_initialize): Make static.
20932
20933 * xselect.c (x_handle_selection_clear): Only access
20934 terminal->kboard when MULTI_KBOARD is defined.
20935
20936 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20937 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20938
20939 2007-08-29 Jason Rumney <jasonr@gnu.org>
20940
20941 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20942 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20943
20944 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20945 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20946
20947 * keyboard.c (restore_kboard_configuration): Only define when
20948 MULTI_KBOARD defined.
20949
20950 * makefile.w32-in: Update dependancies from Makefile.in.
20951 (OBJ1): Add terminal.$(O)
20952
20953 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20954 Don't define function body.
20955 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20956
20957 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20958
20959 * w32.c (request_sigio, unrequest_sigio): Remove.
20960
20961 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20962 (w32con_clear_frame, w32con_clear_end_of_line)
20963 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20964 (w32con_delete_glyphs, w32con_set_terminal_window)
20965 (scroll_line, w32_sys_ring_bell): Add frame arg.
20966 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20967 Add terminal arg.
20968 (PICK_FRAME): Remove.
20969 (w32con_write_glyphs): Use frame specific terminal coding.
20970 (one_and_only_w32cons): New global variable.
20971 (initialize_w32_display): Use it for storing hooks.
20972 (create_w32cons_output): New function.
20973
20974 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20975 arg a frame.
20976
20977 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20978 Set window_system.
20979 (x_set_tool_bar_lines): Don't use updating_frame.
20980 (Fx_create_frame): Set terminal and ref count.
20981 (Fx_open_connection): Remove window-system check.
20982
20983 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20984
20985 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20986 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20987 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20988 Add frame arg.
20989 (x_delete_terminal, w32_create_terminal): New functions.
20990 (w32_term_init): Create a terminal.
20991 (w32_initialize): Move terminal specific initialization to
20992 w32_create_terminal.
20993
20994 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20995 (w32_clear_rect, w32_clear_area): Use background from frame.
20996 (w32_display_info): Add terminal.
20997 (w32_sys_ring_bell, x_delete_display): Declare here.
20998
20999 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
21000
21001 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
21002
21003 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
21004
21005 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
21006 Fix get_named_tty calls for the controlling tty.
21007
21008 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
21009
21010 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
21011
21012 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
21013
21014 * term.c (tty_insert_glyphs): Add missing first parameter.
21015
21016 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
21017
21018 * buffer.c (Fbuffer_list, Fbury_buffer):
21019 Take frame->buried_buffer_list into account.
21020
21021 * cm.c (current_tty): New variable, for cmputc().
21022 (cmputc): Use it.
21023 (cmcheckmagic): Add tty parameter, look up terminal streams there.
21024 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
21025 (cmgoto): Add tty parameter. Pass it on to calccost().
21026 Use emacs_tputs() instead of tputs().
21027
21028 * cm.h (emacs_tputs): New macro to set current_tty, and then call
21029 tputs().
21030 (current_tty): New variable, for cmputc().
21031 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
21032
21033 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
21034 (internal_condition_case, internal_condition_case_1)
21035 (internal_condition_case_2): Don't abort when x_catching_errors.
21036
21037 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
21038 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
21039 prevent crashes caused by bogus longjmps in read_char.
21040
21041 * keymap.h (Fset_keymap_parent): Add EXFUN.
21042
21043 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
21044 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21045 Remove redundant definition.
21046
21047 * macfns.c (x_set_mouse_color, x_make_gc):
21048 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21049
21050 * w32term.c (x_free_frame_resources):
21051 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21052 (w32_initialize): Use the accessor macros for terminal characteristics.
21053
21054 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
21055 Use the accessor macros for terminal characteristics.
21056 * msdos.c (internal_terminal_init): Use the accessor macros for
21057 terminal characteristics.
21058 (ScreenVisualBell, internal_terminal_init):
21059 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21060
21061 * termopts.h (no_redraw_on_reenter): Declare.
21062
21063 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
21064 (mark_terminals, mark_ttys): Declare.
21065 (Fgarbage_collect): Call them.
21066 (mark_object): Mark buried_buffer_list.
21067
21068 * prefix-args.c: Include stdlib.h for exit.
21069
21070 * syssignal.h: Add comment.
21071
21072 * indent.c: Include stdio.h.
21073
21074 * window.h (Vinitial_window_system): Declare.
21075 (Vwindow_system): Delete declaration.
21076
21077 * fontset.c (Finternal_char_font): Use FRAME_RIF.
21078
21079 * image.c (lookup_image): Don't initialize `c' until the xasserts
21080 have been run.
21081
21082 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
21083 FRAME_FOREGROUND_PIXEL.
21084
21085 * print.c (print_preprocess): Don't lose print_depth levels while
21086 iterating.
21087
21088 * widget.c (update_from_various_frame_slots):
21089 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21090
21091 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
21092 frames.
21093 (window_internal_height): Remove bogus make_number call.
21094 (init_window_once): Call make_terminal_frame with two zero parameters.
21095
21096 * fileio.c (Fread_file_name): Update comment.
21097
21098 * callint.c (Fcall_interactively):
21099 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
21100 Make sure it is correctly unwound.
21101
21102 * xsmfns.c (x_session_close): New function.
21103
21104 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
21105 Delete declarations.
21106
21107 * xterm.h: Remove declaration for x_fully_uncatch_errors.
21108 (x_output): Remove background_pixel and foreground_pixel fields.
21109 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
21110 (x_delete_device, x_session_close): Declare.
21111
21112 * lread.c: Include setjmp.h. Update declaration of `read_char'.
21113 (read_filtered_event): Call `read_char' with a local
21114 `wrong_kboard_jmpbuf'.
21115
21116 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
21117 Don't call single_kboard_state. Use FRAME_RIF.
21118
21119 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
21120 systems.
21121
21122 * lisp.h (set_process_environment): Rename to `set_global_environment'.
21123 (Fframe_with_environment, Fset_input_meta_mode)
21124 (Fset_quit_char): EXFUN.
21125 (x_create_device, tty_output, terminal, tty_display_info): Declare.
21126 (init_sys_modes, reset_sys_modes): Update prototypes.
21127 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
21128
21129 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
21130 Vlocal_key_translation_map, and Vkeyboard_translate_table.
21131 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
21132 Delete declarations.
21133 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
21134 (temporarily_switch_to_single_kboard, tty_read_avail_input):
21135 New declarations.
21136
21137 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
21138 already does that during init_display(). Call syms_of_keymap
21139 before syms_of_keyboard. Call `syms_of_terminal'.
21140 Call set_initial_environment, not set_process_environment.
21141 (shut_down_emacs): Call reset_all_sys_modes() instead of
21142 reset_sys_modes().
21143
21144 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
21145 (internal_resolve_face_name, resolve_face_name_error): New functions.
21146 (resolve_face_name): Protect against loops and errors thrown by Fget.
21147 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
21148 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
21149
21150 * scroll.c: Replace CURTTY() with local variables throughout the
21151 file (where applicable).
21152 (calculate_scrolling, calculate_direct_scrolling)
21153 (scrolling_1, scroll_cost): Use the accessor macros for terminal
21154 characteristics.
21155
21156 * keymap.c (Vfunction_key_map): Remove.
21157 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
21158 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
21159 (Vkey_translation_map): Remove.
21160 (syms_of_keymap): Remove DEFVAR for key-translation-map.
21161 (Fdescribe_buffer_bindings)
21162 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
21163 Update for terminal-local key-translation-map.
21164
21165 * Makefile.in (callproc.o): Update dependencies.
21166 (lisp, shortlisp): Add termdev.elc.
21167 (obj): Add terminal.o.
21168 (terminal.o): Add dependencies.
21169 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
21170 (data.o, fns.o): Add termhooks.h dependency.
21171 (SOME_MACHINE_LISP): Add dnd.elc.
21172 (minibuf.o): Fix typo.
21173 Update dependencies.
21174
21175 * data.c (do_symval_forwarding, store_symval_forwarding)
21176 (find_symbol_value): Use the selected frame's keyboard, not
21177 current_kboard.
21178
21179 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
21180 Vwindow_system.
21181
21182 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
21183 Fmenu_bar_open.
21184 (syms_of_xmenu): Update defsubr.
21185 (mouse_position_for_popup, Fx_popup_menu)
21186 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
21187 (set_frame_menubar, free_frame_menubar)
21188 (create_and_show_popup_menu, xmenu_show)
21189 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
21190 an X frame.
21191
21192 * xselect.c (x_own_selection): Abort if not an X frame.
21193 (some_frame_on_display): Check if it is an X frame.
21194 (x_handle_selection_clear): Deal with MULTI_KBOARD.
21195
21196 * coding.c: Include frame.h and termhooks.h.
21197 (terminal_coding, keyboard_coding): Delete.
21198 (Fset_terminal_coding_system_internal)
21199 (Fset_keyboard_coding_system_internal)
21200 (Fkeyboard_coding_system)
21201 (Fterminal_coding_system): Add a terminal parameter.
21202 Get terminal_coding from the terminal.
21203 (init_coding_once): Don't call setup_coding_system here.
21204
21205 * dispextern.h (set_scroll_region, turn_off_insert)
21206 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
21207 (tty_clear_end_of_line, tty_setup_colors)
21208 (delete_tty, updating_frame)
21209 (produce_special_glyphs, produce_glyphs, write_glyphs)
21210 (insert_glyphs): Remove.
21211 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
21212 (tty_turn_off_highlight, get_tty_size): Add declaration.
21213 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
21214
21215 * frame.h (enum output_method): Add output_initial.
21216 (struct x_output): Delete.
21217 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21218 Access foreground_pixel and background_pixel directly from the frame.
21219 (tty_display): Delete.
21220 (struct frame): Add buried_buffer_list, foreground_pixel,
21221 background_pixel and terminal. Delete kboard.
21222 (union output_data): Add tty.
21223 (FRAME_KBOARD): Get the kboard from the terminal.
21224 (FRAME_INITIAL_P): New macro.
21225 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
21226 (Qterm_environment_variable, Qdisplay_environment_variable)
21227 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
21228 New declarations.
21229
21230 * termchar.h (tty_output, tty_display_info): New structures.
21231 (tty_list): Declare.
21232 (FRAME_TTY, CURTTY): New macros.
21233 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
21234 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
21235 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
21236 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
21237
21238 * callproc.c: Include frame.h and termhooks.h, for terminal
21239 parameters.
21240 (add_env): New function.
21241 (child_setup): Use it.
21242 (child_setup, getenv_internal): Handle the new Vprocess_environment.
21243 (getenv_internal): Fix get_terminal_param call.
21244 (Fgetenv_internal, egetenv): Update doc.
21245 (syms_of_callproc): Initialize Vprocess_environment to nil.
21246 Register and initialize them. Remove obsolete defvars. Update doc
21247 strings.
21248 (child_setup): Handle Vlocal_environment_variables.
21249 (getenv_internal): Add terminal parameter.
21250 Handle Vlocal_environment_variables.
21251 (Fgetenv_internal): Add terminal parameter.
21252 (child_setup, getenv_internal, Fgetenv_internal): Store the local
21253 environment in a frame (not terminal) parameter. Update doc strings.
21254 (set_initial_environment): Rename from set_global_environment.
21255 Store Emacs environment in initial frame parameter.
21256
21257 * xdisp.c (redisplay_internal): Update references to
21258 `previous_terminal_frame'.
21259 (display_mode_line, Fformat_mode_line): Replace calls to
21260 `push_frame_kboard' with `push_kboard'.
21261 (get_glyph_string_clip_rects): Add extra parentheses and
21262 braces to prevent compiler warnings.
21263 (calc_pixel_width_or_height): Add xassert to check that the
21264 frame is alive. Don't call `lookup_image' on a termcap frame.
21265 (message2_nolog, message3_nolog, redisplay_internal)
21266 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
21267 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
21268 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
21269 (Fx_display_pixel_width, Fx_display_pixel_height)
21270 (Fx_display_planes, Fx_display_color_cells)
21271 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
21272 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
21273 (Fx_display_backing_store, Fx_display_visual_class)
21274 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
21275 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
21276
21277 * xfns.c (x_set_foreground_color x_set_background_color)
21278 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
21279 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21280 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
21281 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
21282 terminal that is being deleted.
21283 (Fx_create_frame): Use `store_frame_param' to set `window-system'
21284 frame parameter, and make sure it overrides any user-supplied setting.
21285 (Fx_close_connection, Fx_synchronize): Unify argument names with
21286 the rest of the DEFUNs.
21287
21288 * dispnew.c (Fsend_string_to_terminal): Update call to
21289 `get_tty_terminal'.
21290 (Fredraw_frame, Fsend_string_to_terminal)
21291 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
21292 FRAME_TERMCAP_P and FRAME_TTY.
21293 (window_change_signal): Don't believe width/height values that are
21294 impossibly small.
21295 (Vinitial_window_system): Rename from Vwindow_system.
21296 (termscript, Wcm, rif): Delete.
21297
21298 * termhooks.h (struct terminal): New struct containing the
21299 previously global text display hooks and new members NAME,
21300 DELETED and PARAM_ALIST.
21301 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
21302 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
21303 (FRAME_RIF): New macros.
21304 (get_terminal_param, get_device): New declarations.
21305 (termscript): Delete declaration.
21306
21307 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
21308 (XTflash, x_free_frame_resources, x_scroll_bar_create)
21309 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
21310 FRAME_FOREGROUND_PIXEL.
21311 (x_fully_uncatch_errors): Disable definition.
21312 (x_scroll_bar_expose): Fix reference to foreground pixel.
21313 (XTread_socket): Disable loop on all X displays.
21314 (x_delete_terminal): Don't set terminal->deleted and let
21315 delete_terminal delete the frames on the terminal.
21316 (x_delete_display): Doc update to reflect changes in
21317 delete_terminal.
21318 (x_display_info) <terminal>: Move member earlier in the struct.
21319 (deleting_tty): Remove old variable.
21320 (Fsuspend_tty): Call clear_tty_hooks.
21321 (Fresume_tty, init_tty): Call set_tty_hooks.
21322 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21323 errors on X frames.
21324 (x_catch_errors_unwind): Abort if x_error_message is NULL.
21325 (handle_one_xevent): Initialize `f' to NULL.
21326 (x_delete_terminal, x_create_terminal): New functions.
21327 (XTset_terminal_modes, XTreset_terminal_modes)
21328 (XTread_socket, x_connection_closed, x_term_init)
21329 (x_term_init, x_delete_display): Add terminal parameter.
21330 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21331 X connections.
21332
21333 * frame.c: Include termchar.h.
21334 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21335 (Qwindow_system, Qenvironment, Qterm_environment_variable)
21336 (Qdisplay_environment_variable): New vars.
21337 (Fframep): Deal with output_initial.
21338 (Fframe-live-p): Doc fix.
21339 (Fwindow-system): New function.
21340 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21341 (make_terminal_frame): Don't create frames on a terminal that is
21342 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21343 (store_frame_param): Check for found_for_frame before calling XFRAME.
21344 (Fmake_terminal_frame): Handle NULL tty names correctly.
21345 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21346 (Fdelete_frame): Remove unused variable `count'. Don't allow other
21347 frames to refer to a deleted frame in their 'environment parameter.
21348 (Fframe_with_environment): New function.
21349 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
21350 (get_future_frame_param): New function.
21351 (Fmake_terminal_frame): Use it.
21352 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21353
21354 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21355 * sysdep.c (reset_sys_modes): Update for renames.
21356
21357 * keyboard.c (tty_read_avail_input): New function.
21358 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
21359 (syms_of_keyboard): Defsubr them.
21360 (Fset_input_meta_mode, Fset_quit_char): New functions.
21361 (Fset_input_mode): Split to above functions.
21362 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21363 parameter. Use it in call to `read_char'.
21364 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
21365 Set wrong_kboard_jmpbuf correctly in recursive calls.
21366 Use current_kboard to access Vkeyboard_translate_table.
21367 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21368 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21369 Update longjmp invocations. Remember the original current_kboard,
21370 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21371 changes it. Comment out unnecessary calls to
21372 `record_single_kboard_state' and `any_kboard_state'.
21373 Update recursive calls.
21374 (wrong_kboard_jmpbuf): Remove global variable.
21375 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21376 Handle deleted interrupted_kboards correctly; that is a legal
21377 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21378 and read_char calls. Abort if interrupted_kboard died in read_char.
21379 (any_kboard_state, single_kboard_state)
21380 (push_frame_kboard): Remove function.
21381 (pop_kboard): Switch out of single_kboard mode if the kboard has
21382 been deleted. Remove unused variable. Help debugging by not
21383 changing current_kboard unnecessarily. Set current_kboard to the
21384 kboard of the selected frame when the stored kboard object has
21385 been deleted before pop_kboard.
21386 (temporarily_switch_to_single_kboard): Change first parameter to a
21387 frame pointer. Throw an error when caller wants to change kboards
21388 while in single_kboard mode. Don't push_kboard if we weren't in
21389 single kboard state. Don't pop_kboard if we popped into any
21390 kboard state.
21391 (restore_kboard_configuration): Abort if pop_kboard changed the
21392 kboard in single_kboard mode. Call pop_kboard only after setting
21393 up single_kboard mode.
21394 (Frecursive_edit): Switch to single_kboard mode only in nested
21395 command loops.
21396 (cmd_error, command_loop, command_loop_1, timer_check):
21397 Comment out unnecessary call to `any_kboard_state' and
21398 `record_single_kboard_state'.
21399 (delete_kboard): Exit single_kboard mode if we have just deleted
21400 that kboard. Use FRAME_KBOARD.
21401 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21402 `fatal_error_signal'.
21403 (record_single_kboard_state): Don't push_kboard if we weren't in
21404 single kboard state. Don't pop_kboard if we popped into any
21405 kboard state.
21406 (push_frame_kboard): Rename to push_kboard.
21407 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21408 (read_avail_input): Read input from all terminals.
21409 (mark_kboards): Also mark Vkeyboard_translate_table.
21410 (kbd_buffer_store_event_hold): Simplify condition.
21411 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21412 (Vkeyboard_translate_table): Move to struct kboard.
21413 (init_kboard): Initialize Vkeyboard_translate_table.
21414 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21415 Vkeyboard_translate_table. Update doc strings. Update docs of
21416 local-function-key-map and function-key-map.
21417
21418 * terminal.c: New file.
21419
21420 * term.c: Include errno.h.
21421 (Vring_bell_function, device_list, initial_device)
21422 (next_device_id, ring_bell, update_begin, update_end)
21423 (set_terminal_window, cursor_to, raw_cursor_to)
21424 (clear_to_end, clear_frame, clear_end_of_line)
21425 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21426 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21427 (syms_of_term): Move their initialization to terminal.c.
21428 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21429 (Ftty_display_color_cells)
21430 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21431 (clear_tty_hooks, set_tty_hooks)
21432 (init_tty, maybe_fatal): New functions.
21433 (Ftty_type): Return nil if terminal is not on a tty instead of
21434 throwing an error. Doc update.
21435 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21436 Doc update. Initialize new subrs and variables.
21437 (delete_tty): Use terminal->deleted.
21438 (tty_set_terminal_modes): Rename from set_terminal_modes.
21439 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21440 (set_scroll_region): Rename to `tty_set_scroll_region'.
21441 (turn_on_insert): Rename to `tty_turn_on_insert'.
21442 (turn_off_insert): Rename to `tty_turn_off_insert'.
21443 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21444 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21445 (toggle_highligh): Rename to `tty_toggle_highlight'.
21446 (background_highlight): Rename to `tty_background_highlight'.
21447 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21448 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21449 (tty_set_scroll_region, tty_background_highlight)
21450 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21451 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21452 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21453 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21454 Add static modifier.
21455 (tty_reset_terminal_modes, tty_set_terminal_window)
21456 (tty_set_scroll_region, tty_background_highlight)
21457 (tty_highlight_if_desired, tty_cursor_to)
21458 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21459 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21460 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21461 renames.
21462
21463 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21464
21465 * keyboard.c: Qrtl is new.
21466 (parse_tool_bar_item): Handle :rtl keyword.
21467 (syms_of_keyboard): Intern :rtl keyword.
21468
21469 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21470
21471 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21472 so no Lisp code is executed.
21473 (file_for_image, find_rtl_image): New functions.
21474 (xg_get_image_for_pixmap): Use file_for_image.
21475 (update_frame_tool_bar): If direction is RTL, use RTL image if
21476 defined. Use Gtk stock images if defined.
21477
21478 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21479
21480 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21481 for nonexistent or zero-width glyph in composition glyph.
21482
21483 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21484
21485 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21486
21487 * xdisp.c (Finvisible_p): New function.
21488 (syms_of_xdisp): defsubr it.
21489
21490 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
21491
21492 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21493 Doc fixes.
21494
21495 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21496
21497 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21498
21499 2007-08-24 Martin Rudalics <rudalics@gmx.at>
21500
21501 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21502 whether decoding has modified buffer contents.
21503
21504 2007-08-24 Jason Rumney <jasonr@gnu.org>
21505
21506 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21507 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21508 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21509 (init_svg_functions) [HAVE_NTGUI]: New function.
21510 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21511 (svg_load_image): Use them.
21512 (svg_load_image) [HAVE_NTGUI]: Implement background.
21513
21514 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21515
21516 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21517 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21518 (LIBX): Remove @RSVG_LIBS@.
21519 (LIBES): Add $(RSVG_LIBS).
21520
21521 * image.c (svg_load_image): Blend with specified background if exists.
21522 Use IMAGE_BACKGROUND. Add Mac OS Support.
21523
21524 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21525 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21526 Remove macros.
21527 [MAC_OSX] (socket_callback): Do nothing.
21528 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21529 ReceiveNextEvent.
21530 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21531 socket_callback.
21532 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21533
21534 2007-08-22 Glenn Morris <rgm@gnu.org>
21535
21536 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21537
21538 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21539
21540 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21541
21542 * image.c: Add support for SVG images. Some additional comments
21543 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21544 (svg_image_p): New function to test for SVG image.
21545 (svg_load): New function to load SVG image.
21546 (svg_load_image): New function, helper for svg_load.
21547 (Qsvg): New Lisp_object.
21548 (svg_keyword_index): New enum.
21549 (svg_format): New static `image_keyword' struct.
21550 (svg_type): New static `image_type' struct.
21551 (librsvg/rsvg.h): Include it.
21552
21553 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21554
21555 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21556
21557 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21558
21559 * lread.c (Qold_style_backquotes): New var.
21560 (syms_of_lread): Init and staticpro it.
21561 (load_warn_old_style_backquotes): New fun.
21562 (Fload): Use them to warn about old style backquotes.
21563 (end_of_file_error, Fload): Remove unused vars.
21564
21565 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21566
21567 * lread.c (Vold_style_backquotes): New var.
21568 (syms_of_lread): Init and export it to Elisp.
21569 (read1): Set it when we find an old-style (back)quote.
21570
21571 2007-08-22 Jason Rumney <jasonr@gnu.org>
21572
21573 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21574
21575 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21576
21577 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21578
21579 2007-08-19 Richard Stallman <rms@gnu.org>
21580
21581 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21582
21583 2007-08-19 Andreas Schwab <schwab@suse.de>
21584
21585 * alloc.c (pure): Round PURESIZE up.
21586
21587 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21588
21589 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21590 active frame.
21591
21592 2007-08-16 Richard Stallman <rms@gnu.org>
21593
21594 * eval.c (Fcommandp): Add parens to clarify.
21595
21596 * minibuf.c (Fall_completions): Use enum for type of table.
21597
21598 * emacs.c (USAGE2): Improve text.
21599
21600 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21601
21602 * term.c (tty_default_color_capabilities): Declare static
21603 variables in file scope, to avoid HPUX compiler problem.
21604
21605 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21606
21607 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21608 to gtk_toolbar_insert.
21609
21610 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21611
21612 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21613
21614 * insdel.c (reset_var_on_error): New fun.
21615 (signal_before_change, signal_after_change):
21616 Use it to reset (after|before)-change-functions to nil in case of error.
21617 Bind inhibit-modification-hooks to t.
21618 Don't bind (after|before)-change-functions to nil while they run.
21619
21620 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21621
21622 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21623 filling pixmap with stippled background.
21624
21625 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21626
21627 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21628 Don't use invisible frame as parent window for repositioning.
21629
21630 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21631
21632 * print.c (new_backquote_output): Rename from old_backquote_output.
21633 (print): Inverse its logic (according to its name) so as to match the
21634 behavior of new_backquote_flag in lread.c.
21635
21636 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21637
21638 * gmalloc.c (posix_memalign): New function.
21639
21640 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21641 ActivateControl/DeactivateControl here.
21642 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21643 frame-notice-user-settings is non-nil.
21644 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21645 for kEventParamFMFontStyle.
21646 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21647 mac_pass_command_to_system and mac_pass_control_to_system here.
21648 (XTread_socket): Call ActivateControl/DeactivateControl here.
21649 (XTread_socket) [TARGET_API_MAC_CARBON]:
21650 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21651 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21652 for window repositioning.
21653
21654 2007-08-08 Glenn Morris <rgm@gnu.org>
21655
21656 * Replace `iff' in doc-strings and comments.
21657
21658 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
21659
21660 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21661
21662 2007-08-07 Martin Rudalics <rudalics@gmx.at>
21663
21664 * fileio.c (Finsert_file_contents): Run format-decode and
21665 after_insert_file_functions on entire buffer when REPLACE is
21666 non-nil and inhibit modification_hooks and point_motion_hooks.
21667 For consistency, run after_insert_file_functions iff something
21668 got inserted. Move signal_after_change and update_compositions
21669 after code running after_insert_file_functions. Make sure that
21670 undo_list doesn't record intermediate steps of the decoding process.
21671
21672 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21673
21674 * emacs.c (main)
21675 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21676 Call malloc_enable_thread on interactive startup.
21677
21678 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21679 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21680 [USE_PTHREAD]: Conditionalize with it.
21681 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21682 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21683 New functions.
21684
21685 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
21686
21687 * xdisp.c (redisplay_window): When restoring original buffer
21688 position, make sure it is still valid.
21689
21690 * image.c (png_load): Ignore png-supplied background color.
21691
21692 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21693
21694 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21695 Use kCFAbsoluteTimeIntervalSince1970.
21696
21697 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21698 New variable.
21699 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21700 event loop should be quit.
21701 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21702 Quit dialog event loop if quit_dialog_event_loop is set.
21703
21704 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21705 (Selection): New typedef. Use instead of ScrapRef.
21706 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21707 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21708 (mac_clear_selection): Rename from clear_scrap.
21709 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21710 scrap_has_target_type. All uses changed.
21711 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21712 (mac_selection_has_target_p): New functions.
21713 (mac_put_selection_value): Rename from put_scrap_string.
21714 (mac_get_selection_value): Rename from get_scrap_string.
21715 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21716 (put_scrap_private_timestamp, scrap_has_target_type)
21717 (get_scrap_private_timestamp): Remove functions.
21718 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21719 (x_own_selection, x_get_local_selection):
21720 Use mac_valid_selection_value_p.
21721 (x_own_selection): Don't use put_scrap_private_timestamp.
21722 Record OWNERSHIP-INFO into Vselection_alist instead.
21723 (x_get_local_selection): Don't check type if request is local.
21724 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21725 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21726
21727 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21728
21729 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21730 add comment explaining why.
21731
21732 2007-08-03 Richard Stallman <rms@gnu.org>
21733
21734 * fileio.c (Fvisited_file_modtime): Use make_time.
21735
21736 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21737
21738 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21739 build.
21740
21741 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21742
21743 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21744
21745 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21746
21747 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21748
21749 2007-07-30 Richard Stallman <rms@gnu.org>
21750
21751 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21752
21753 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21754
21755 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21756
21757 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
21758
21759 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21760 remote default-directory.
21761
21762 * buffer.c (mode-line-format): Update doc string.
21763
21764 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21765
21766 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21767 scroll bar gap.
21768 (x_scroll_bar_create): Set bar->fringe_extended_p.
21769 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21770 on frame edge. Check fringe background extension. Don't clear
21771 extended fringe background area.
21772
21773 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21774 (w32_fill_area): Enclose multiple statements with do ... while (0).
21775
21776 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21777 Extend fringe background to scroll bar gap.
21778 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21779 Set bar->fringe_extended_p.
21780 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21781 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21782 background extension. Don't clear extended fringe background area.
21783
21784 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21785 New member fringe_extended_p.
21786
21787 2007-07-25 Glenn Morris <rgm@gnu.org>
21788
21789 * Relicense all FSF files to GPLv3 or later.
21790
21791 * COPYING: Switch to GPLv3.
21792
21793 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21794
21795 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21796
21797 * data.c (Finteractive_form): Check for the presence of an
21798 `interactive-form' symbol property more thoroughly.
21799
21800 * data.c (Finteractive_form): Use an `interactive-form' property if
21801 present, analogous to the function-documentation property.
21802
21803 2007-07-24 Jason Rumney <jasonr@gnu.org>
21804
21805 * w32fns.c (x_real_positions): Get real position from OS instead of
21806 calculating it.
21807
21808 2007-07-23 Jason Rumney <jasonr@gnu.org>
21809
21810 * filelock.c (current_lock_owner): Allow for @ sign in username.
21811
21812 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
21813
21814 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21815 remote default-directory.
21816
21817 * buffer.c (mode-line-format): Describe above case in doc string.
21818
21819 2007-07-20 Eli Zaretskii <eliz@gnu.org>
21820
21821 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21822 Define if not defined.
21823
21824 2007-07-18 Jason Rumney <jasonr@gnu.org>
21825
21826 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21827
21828 2007-07-18 Richard Stallman <rms@gnu.org>
21829
21830 * data.c (Fsetq_default): Doc fix.
21831
21832 * eval.c (Fsetq): Doc fix.
21833
21834 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
21835
21836 * coding.c (Ffind_operation_coding_system):
21837 * eval.c (For, Fand): Doc fixes.
21838 Reported by Johan Bockgård.
21839
21840 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21841
21842 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21843
21844 * xterm.h: Declare x_ewmh_activate_frame.
21845
21846 * xterm.c (x_ewmh_activate_frame): New function.
21847 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21848
21849 2007-07-17 Martin Rudalics <rudalics@gmx.at>
21850
21851 * window.c (Fdisplay_buffer): If largest or LRU window is the
21852 only window, split it even if it is not eligible for splitting.
21853 This restores the original behavior broken by the 2007-07-15
21854 change.
21855
21856 2007-07-17 Glenn Morris <rgm@gnu.org>
21857
21858 * abbrev.c (abbrev_check_chars): New function.
21859 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21860 Call abbrev_check_chars to check abbrev characters are word
21861 constituents. Doc fix.
21862
21863 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21864
21865 * process.c (Fstart_process, Fmake_network_process)
21866 (read_process_output): Fix up last changes.
21867
21868 2007-07-16 Eli Zaretskii <eliz@gnu.org>
21869
21870 * makefile.w32-in (clean): Don't delete *~.
21871
21872 2007-07-16 Andreas Schwab <schwab@suse.de>
21873
21874 * window.c (Fdisplay_buffer): Use NILP.
21875 (Fset_window_scroll_bars): Likewise.
21876
21877 2007-07-15 Martin Rudalics <rudalics@gmx.at>
21878
21879 * window.c (window_min_size_2): New function.
21880 (window_min_size_1, size_window, Fdisplay_buffer)
21881 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21882 windows without mode- or header-lines when window-min-height is
21883 too small.
21884 (size_window): Reset nodelete_p after testing it, following an
21885 earlier note by Kim F. Storm.
21886 (display_buffer): Do not set split_height_threshold to twice the
21887 value of window_min_height to avoid changing the value of a
21888 customizable variable. Rather explicitly check whether the
21889 height of the window that shall be splitted is at least as large
21890 as split_height_threshold.
21891 (Fwindow_full_width_p): New defun.
21892 (syms_of_window): Defsubr it.
21893
21894 * window.h: Add EXFUN for Fwindow_full_width_p.
21895
21896 2007-07-14 Jason Rumney <jasonr@gnu.org>
21897
21898 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21899
21900 2007-07-14 Richard Stallman <rms@gnu.org>
21901
21902 * eval.c (maybe_call_debugger): New function.
21903 (find_handler_clause): Use maybe_call_debugger.
21904 Call it when the handler says `debug'.
21905 Eliminate DEBUGGER_VALUE_PTR.
21906 (Fsignal): Eliminate debugger_value.
21907 (Qdebug): New variable.
21908 (syms_of_eval): Initialize it.
21909
21910 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
21911
21912 * eval.c (Fprogn):
21913 * keyboard.c (Ftrack_mouse):
21914 * print.c (Fwith_output_to_temp_buffer):
21915 * window.c (Fsave_window_excursion): Doc fix.
21916
21917 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21918
21919 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21920
21921 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21922
21923 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21924 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21925 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21926 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21927 Remove unused encoding_carryover.
21928 * process.c: Adjust all functions accordingly.
21929
21930 2007-07-12 Richard Stallman <rms@gnu.org>
21931
21932 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21933
21934 2007-07-11 Jason Rumney <jasonr@gnu.org>
21935
21936 * makefile.w32-in (LIBS): Include OLE32.
21937
21938 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21939 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21940
21941 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21942
21943 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21944 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21945 from a Lisp_Object into a bare pointer.
21946 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21947 Adjust the code correspondingly.
21948
21949 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21950
21951 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21952 (term_show_mouse_face): Remove unused var `j'.
21953 (handle_one_term_event): Remove unused vars `i' and `j'.
21954 Don't cast return value of ttyname since it's not necessary.
21955
21956 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21957
21958 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21959 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21960
21961 * fns.c (map_char_table): Use an array of int for `indices' rather than
21962 an array of Lisp_Objects (which are only ever integers anyway).
21963 (Fmap_char_table): Update caller.
21964 * lisp.h: Update prototype.
21965 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21966 * fontset.c (Ffontset_info):
21967 * casetab.c (set_case_table): Update callers.
21968
21969 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21970
21971 * keymap.c (struct accessible_keymaps_data)
21972 (struct where_is_internal_data): New structures.
21973 (accessible_keymaps_1, where_is_internal_1): Use them to change
21974 interface to adhere to the one used by map_keymap.
21975 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21976 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21977
21978 * keymap.h (map_keymap_function_t): More informative prototype.
21979
21980 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21981
21982 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21983 (looking_at_1): Don't change search_regs and last_thing_searched
21984 if `inhibit-changing-match-data' is non-nil.
21985 (string_match_1, search_buffer, set_search_regs): Likewise.
21986 (syms_of_search): Add Lisp level definition for
21987 `inhibit-changing-match-data' and set it to nil.
21988 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21989 start and end of the match, instead of using values in search_regs.
21990
21991 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21992
21993 * minibuf.c (Fcompleting_read): New value `confirm-only'
21994 for `require-match'.
21995
21996 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21997
21998 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21999 part of the 2007-06-27 change to syms_of_fileio.
22000
22001 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22002
22003 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
22004 Check WINDOWP before using XWINDOW. Consolidate return statements.
22005
22006 2007-06-27 Richard Stallman <rms@gnu.org>
22007
22008 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
22009
22010 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
22011
22012 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
22013
22014 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22015
22016 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
22017 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
22018 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
22019 (_free_internal, memalign): Use them.
22020 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
22021 Initialize to PTHREAD_MUTEX_INITIALIZER.
22022 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
22023 (morecore_nolock): Rename from morecore. All uses changed.
22024 Use only nolock versions of internal allocation functions.
22025 (_malloc_internal_nolock, _realloc_internal_nolock)
22026 (_free_internal_nolock): New functions created from
22027 _malloc_internal, _realloc_internal, and _free_internal.
22028 (_malloc_internal, _realloc_internal, _free_internal): Use them.
22029 Copy hook value to automatic variable before its use.
22030 (memalign): Copy hook value to automatic variable before its use.
22031
22032 2007-06-26 Kenichi Handa <handa@m17n.org>
22033
22034 * coding.c (Ffind_operation_coding_system): Docstring improved.
22035 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
22036
22037 2007-06-25 David Kastrup <dak@gnu.org>
22038
22039 * keymap.c (Fcurrent_active_maps): Add `position' argument.
22040 (Fwhere_is_internal): Adjust call to `current-active-maps' to
22041 cater for additional parameter.
22042
22043 * keymap.h: Adjust number of parameters to `current-active-maps'.
22044
22045 * doc.c (Fsubstitute_command_keys): Adjust call of
22046 `current-active-maps'.
22047
22048 2007-06-25 David Kastrup <dak@gnu.org>
22049
22050 * callint.c (Fcall_interactively): Make the parsing of interactive
22051 specs somewhat more readable.
22052
22053 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22054
22055 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
22056 to scroll bar gap also when bitmap fills fringe. Draw only foreground
22057 if extended background has already been filled.
22058
22059 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22060
22061 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
22062 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
22063
22064 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
22065 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
22066 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
22067 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
22068 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
22069 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
22070 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
22071 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
22072 Run timers during dialog popup.
22073 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
22074
22075 2007-06-21 Jason Rumney <jasonr@gnu.org>
22076
22077 * image.c (convert_mono_to_color_image): Swap fore and background.
22078
22079 2007-06-20 Jason Rumney <jasonr@gnu.org>
22080
22081 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
22082 (w32_free_bdf_font): Unmap memory not handle.
22083
22084 2007-06-20 Sam Steingold <sds@gnu.org>
22085
22086 * gmalloc.c (__morecore): Fix the declaration to comply with the
22087 definition.
22088
22089 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
22090
22091 * w32term.c (w32_delete_display): Remove leftover declaration.
22092 (w32_define_cursor, w32_initialize): Make static.
22093
22094 * w32.c (_wsa_errlist): Fix typo in error message.
22095 (init_environment): Ignore any environment variable from the
22096 registry having a null value.
22097
22098 2007-06-20 Glenn Morris <rgm@gnu.org>
22099
22100 * Makefile.in (LIBGIF): Default to -lgif.
22101
22102 2007-06-17 Jason Rumney <jasonr@gnu.org>
22103
22104 * w32menu.c (add_menu_item): Don't use multibyte string functions on
22105 unicode strings.
22106
22107 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
22108
22109 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
22110 Fix typo in docstring.
22111
22112 2007-06-16 Eli Zaretskii <eliz@gnu.org>
22113
22114 * w32menu.c (add_menu_item): Escape `&' characters in menu items
22115 and their keybindings.
22116
22117 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
22118
22119 * composite.c (update_compositions): Fix last fix.
22120
22121 2007-06-14 Jason Rumney <jasonr@gnu.org>
22122
22123 * w32.c (get_process_times_fn): New function pointer.
22124 (globals_of_w32): Intialize it if present in kernel32.dll.
22125 (w32_get_internal_run_time): New function.
22126
22127 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
22128
22129 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
22130
22131 * composite.c (update_compositions): Check the validness of
22132 compositions.
22133
22134 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22135
22136 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
22137 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
22138
22139 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
22140 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
22141
22142 * macgui.h (USE_MAC_TOOLBAR): New define.
22143
22144 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22145 Return immediately unless popup is activated.
22146
22147 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
22148 background to scroll bar gap.
22149 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
22150 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
22151 scroll bars on frame edge. Check fringe background extension.
22152 Don't clear extended fringe background area.
22153 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
22154 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
22155 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
22156 [USE_MAC_TOOLBAR]: New macros.
22157 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
22158 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
22159 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
22160 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
22161 [USE_MAC_TOOLBAR]: New functions.
22162 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
22163 manually if previous repositioning has failed.
22164 (mac_handle_keyboard_event): Use precomputed event kind.
22165 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
22166 as tool bar item click. Handle mouse movement over tool bar items.
22167
22168 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
22169 toolbar_win_gravity.
22170 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
22171 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
22172 Add externs.
22173
22174 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
22175 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
22176
22177 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
22178
22179 * image.c (search_image_cache): Remove unused variable.
22180
22181 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
22182
22183 * xfns.c, xmenu.c: Link to xaw3d if available.
22184
22185 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22186
22187 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
22188 frame_foreground and frame_background.
22189
22190 * image.c (lookup_image): Save frame foreground and background colors.
22191 (search_image_cache): Check if saved and current frame colors match.
22192
22193 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
22194
22195 * regex.c (regex_compile): Remove the `regnum' counter.
22196 Use bufp->re_nsub instead. Add support for \(?N:RE\).
22197
22198 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
22199
22200 * term.c: Include intervals.h to declare Fget_text_property.
22201
22202 2007-06-10 Jason Rumney <jasonr@gnu.org>
22203
22204 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
22205
22206 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
22207
22208 * callint.c (Fcall_interactively):
22209 * editfns.c (Fdelete_and_extract_region):
22210 * fileio.c (Fread_file_name):
22211 * fns.c (Fmapconcat):
22212 * keyboard.c (cmd_error_internal):
22213 * keymap.c (Fkey_description):
22214 * lread.c (openp):
22215 * minibuf.c (read_minibuf):
22216 * search.c (wordify):
22217 * sunfns.c (sel_read):
22218 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
22219 * xfns.c (x_default_scroll_bar_color_parameter):
22220 * xmenu.c (menu_help_callback):
22221 * xselect.c (Fx_get_atom_name):
22222 * xterm.c (x_term_init): Use empty_unibyte_string.
22223
22224 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
22225
22226 * alloc.c (init_strings): Initialize canonical empty strings.
22227 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
22228 canonical empty string when the requested size is 0.
22229
22230 * emacs.c (empty_unibyte_string): Rename from empty_string.
22231 (empty_multibyte_string): New canonical empty string.
22232 (syms_of_emacs): Don't initialize empty_string.
22233
22234 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
22235 string, if appropriate.
22236 (empty_unibyte_string, empty_multibyte_string): New externs.
22237 (empty_string): Remove extern.
22238
22239 * lread.c (syms_of_lread): Use empty_unibyte_string.
22240
22241 2007-06-07 Jason Rumney <jasonr@gnu.org>
22242
22243 * s/ms-w32.h: Don't define HAVE_TZNAME.
22244
22245 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
22246
22247 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22248
22249 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
22250
22251 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
22252 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
22253
22254 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22255 Don't call next handler.
22256 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
22257 Remove argument. Install handler to application.
22258 (set_frame_menubar): Don't change deep_p.
22259 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
22260 FRAME_OUTER_TO_INNER_DIFF_Y.
22261 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22262 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22263 [HAVE_DIALOGS]: New macros.
22264 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
22265 Use them.
22266 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
22267
22268 * macselect.c [MAC_OSX] (install_service_handler): Rename from
22269 init_service_handler. All callers changed. Return OSStatus value.
22270
22271 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
22272 All callers changed so as not to call SetPortWindowPort.
22273 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
22274 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
22275 mac_draw_string_common.
22276 (mac_draw_image_string_qd): Likewise.
22277 (mac_draw_string_common): Use them. Add INLINE.
22278 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
22279 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
22280 GetGlobalMouse.
22281 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
22282 and FRAME_OUTER_TO_INNER_DIFF_Y.
22283 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
22284 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
22285 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
22286 repositioning window to mac_handle_window_event.
22287 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
22288 saving window location to mac_handle_window_event
22289 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
22290 (install_menu_target_item_handler): Remove argument in extern.
22291 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
22292 Also accept command events.
22293 (do_keystroke): New function created from XTread_socket.
22294 (init_command_handler): Remove functions.
22295 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
22296 and save window location by kEventWindowShowing and kEventWindowHiding
22297 handlers here. Don't call next handler for window state change and
22298 focus events.
22299 (mac_handle_application_event, mac_handle_keyboard_event)
22300 [TARGET_API_MAC_CARBON]: New functions.
22301 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
22302 kEventWindowShowing and kEventWindowHiding events. Move installation
22303 of mouse, font, text input and menu target item handlers to
22304 install_application_handler.
22305 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
22306 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22307 New function.
22308 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22309 Register it.
22310 (XTread_socket) [TARGET_API_MAC_CARBON]:
22311 Consolidate SendEventToEventTarget calls.
22312 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22313 Move application activation handler to mac_handle_application_event.
22314 Move keyboard handler to mac_handle_keyboard_event.
22315 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22316 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22317 init_command_handler. Call install_application_handler.
22318
22319 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22320 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22321
22322 2007-06-07 Glenn Morris <rgm@gnu.org>
22323
22324 * emacs.c (main): Use `emacs-copyright' in --version output.
22325
22326 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
22327
22328 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22329
22330 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22331
22332 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22333
22334 * macgui.h: Replace WindowPtr with WindowRef.
22335
22336 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22337 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22338 Replace ControlHandle with ControlRef.
22339 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22340
22341 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22342 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22343 Replace ControlHandle with ControlRef.
22344 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22345 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22346
22347 * macterm.h (struct scroll_bar): Rename member control_handle_low
22348 and control_handle_high to control_ref_low and control_ref_high.
22349 All uses changed.
22350 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22351 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22352 respectively. All uses changed.
22353 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22354 (install_window_handler, remove_window_handler): Replace WindowPtr
22355 with WindowRef in externs.
22356
22357 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
22358
22359 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
22360
22361 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
22362
22363 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22364
22365 * frame.c (Fmouse_position, Fmouse_pixel_position):
22366 Condition on HAVE_GPM too.
22367
22368 * term.c (term_mouse_highlight): Remove unused variables.
22369 (Fterm_open_connection): Set gpm_zerobased to 1.
22370 (term_mouse_movement, term_mouse_click, handle_one_term_event):
22371 Use zero based co-ordinates.
22372 (handle_one_term_event): Report a drag as mouse movement too.
22373
22374 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22375
22376 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
22377
22378 * image.c (search_image_cache): New function. Require background
22379 color match if background color is unspecified in the image spec.
22380 (uncache_image, lookup_image): Use it.
22381
22382 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
22383
22384 * window.c (Fshrink_window): Reflow docstring.
22385
22386 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
22387
22388 * Version 22.1 released.
22389
22390 2007-06-01 Richard Stallman <rms@gnu.org>
22391
22392 * xfns.c (x_encode_text): Add GCPRO.
22393
22394 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22395
22396 * xfns.c (x_set_name_internal): Save encoded name before
22397 x_encode_text in case string data is relocated.
22398
22399 2007-05-31 Richard Stallman <rms@gnu.org>
22400
22401 * buffer.c (syms_of_buffer): Doc fix.
22402
22403 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
22404
22405 * sysdep.c (init_sys_modes): Add rather than replace with
22406 O_NONBLOCK.
22407
22408 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22409 term_mouse_moveto.
22410
22411 * termhooks.h (term_mouse_moveto): New extern.
22412
22413 * term.c (mouse_face_window): Rename...
22414 (Qmouse_face_window): ...to this.
22415 (term_show_mouse_face, term_clear_mouse_face)
22416 (term_mouse_highlight): Use Qmouse_face_window.
22417 (term_mouse_moveto): New function.
22418 (term_mouse_position): Make it work.
22419 (syms_of_term): Uncomment assignment to mouse_position_hook.
22420 Staticpro Qmouse_face_window.
22421
22422 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22423
22424 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22425 around current_column call.
22426
22427 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22428
22429 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22430 * xdisp.c (next_element_from_buffer):
22431 * window.c (delete_window):
22432 * term.c (term_mouse_highlight):
22433 * msdos.c (getdefdir):
22434 * macterm.c (mac_create_bitmap_from_bitmap_data)
22435 (init_font_name_table):
22436 * fns.c (Fsxhash):
22437 * data.c (Fmake_local_variable):
22438 * ccl.c (ccl_driver): Likewise.
22439
22440 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22441
22442 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22443 Call mac_wakeup_from_rne on window size change.
22444
22445 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
22446
22447 * image.c (uncache_image): Fix typo.
22448
22449 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22450
22451 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22452
22453 2007-05-22 Richard Stallman <rms@gnu.org>
22454
22455 * xterm.c (x_connection_closed): Remove NO_RETURN.
22456
22457 2007-05-22 Martin Rudalics <rudalics@gmx.at>
22458
22459 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22460
22461 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
22462
22463 * image.c (uncache_image): New function.
22464 (Fimage_refresh): New function.
22465
22466 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22467
22468 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22469
22470 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
22471
22472 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22473 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22474
22475 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
22476
22477 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22478 conditional on [HAVE_GPM_H].
22479
22480 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22481
22482 * syntax.c (skip_chars): Update syntax-table only after we checked that
22483 the new location is valid.
22484
22485 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22486
22487 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22488 mac_get_window_bounds.
22489
22490 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
22491
22492 * Makefile.in (LIBGPM): Allow it to be set from configure.
22493 If set then link Emacs with it.
22494
22495 * config.in: Regenerate.
22496
22497 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22498 New externs.
22499
22500 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22501 Include gpm.h.
22502 (handle_one_term_event, term_gpm): New externs.
22503
22504 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22505 and allow it to be interrupted by SIGIO.
22506
22507 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22508 (wait_reading_process_output): Wait on gpm_fd too.
22509 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22510 (add_gpm_wait_descriptor_called_flag): New variable.
22511 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22512
22513 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22514 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22515 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22516 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22517 (make_lispy_event): Add case GPM_CLICK_EVENT.
22518 (read_avail_input): Handle mouse input.
22519
22520 * term.c (write_glyphs_with_face): New function.
22521 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22522 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22523 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22524 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22525 (last_mouse_x, last_mouse_y): New variables.
22526 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22527 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22528 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22529 (Fterm_close_connection): New functions.
22530 (term_init): Initialise mouse_face_window.
22531
22532 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
22533
22534 * xdisp.c (redisplay_window): If first window line is a
22535 continuation line, recompute the new window start instead of
22536 recentering.
22537
22538 2007-05-18 Glenn Morris <rgm@gnu.org>
22539
22540 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22541 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22542
22543 2007-05-17 Glenn Morris <rgm@gnu.org>
22544
22545 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22546
22547 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22548
22549 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22550 dead key repeat and up events.
22551
22552 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
22553
22554 * image.c (pbm_load): Check image size for monochrome pbm.
22555
22556 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
22557
22558 * xterm.c (XTread_socket): Revert last change.
22559
22560 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
22561
22562 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22563
22564 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22565
22566 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22567
22568 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22569 mixup (YAILOM).
22570
22571 2007-05-07 Andreas Schwab <schwab@suse.de>
22572
22573 * keymap.c (Flookup_key): Fix typo in last change.
22574
22575 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22576
22577 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22578 mapping for unibyte strings.
22579
22580 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22581
22582 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22583 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22584
22585 2007-04-29 Richard Stallman <rms@gnu.org>
22586
22587 * insdel.c (replace_range): For undo, record insertion first.
22588
22589 2007-04-29 Andreas Schwab <schwab@suse.de>
22590
22591 * lisp.h (VECSIZE): Use OFFSETOF.
22592
22593 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22594
22595 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22596 disabled lines.
22597
22598 2007-04-28 Richard Stallman <rms@gnu.org>
22599
22600 * lread.c (read_escape): In a string, \s is always space.
22601
22602 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22603
22604 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22605
22606 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22607 submenu for menu bar items.
22608
22609 See ChangeLog.10 for earlier changes.
22610
22611 ;; Local Variables:
22612 ;; coding: utf-8
22613 ;; add-log-time-zone-rule: t
22614 ;; End:
22615
22616 Copyright (C) 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
22617
22618 This file is part of GNU Emacs.
22619
22620 GNU Emacs is free software: you can redistribute it and/or modify
22621 it under the terms of the GNU General Public License as published by
22622 the Free Software Foundation, either version 3 of the License, or
22623 (at your option) any later version.
22624
22625 GNU Emacs is distributed in the hope that it will be useful,
22626 but WITHOUT ANY WARRANTY; without even the implied warranty of
22627 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22628 GNU General Public License for more details.
22629
22630 You should have received a copy of the GNU General Public License
22631 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22632
22633 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40