]> code.delx.au - gnu-emacs/blob - src/ChangeLog
* comint.el (comint-kill-region): Fix last change.
[gnu-emacs] / src / ChangeLog
1 2010-11-14 Jan Djärv <jan.h.d@swipnet.se>
2
3 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
4
5 * config.in (HAVE_G_TYPE_INIT): New symbol.
6
7 2010-11-12 Eli Zaretskii <eliz@gnu.org>
8
9 * lread.c (Fload): Mention `load-in-progress' and
10 `load-file-name'. (Bug#7346)
11
12 2010-11-09 Eli Zaretskii <eliz@gnu.org>
13
14 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
15 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
16 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
17 subprocesses. Use buffer_free only ifdef subprocesses.
18
19 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
20 the subprocesses version, not in the non-subprocesses one.
21
22 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
23
24 * xfns.c (x_real_positions): Fix declaration-after-statement
25 problem.
26
27 2010-11-05 Chong Yidong <cyd@stupidchicken.com>
28
29 * image.c (free_image): Don't garbage the frame here, since this
30 function can be called while redisplaying (Bug#7210).
31 (uncache_image): Garbage the frame here (Bug#6426).
32
33 2010-11-04 Chong Yidong <cyd@stupidchicken.com>
34
35 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
36 Windows.
37
38 2010-11-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
39
40 * process.c (Fmake_network_process): Don't call turn_on_atimers around
41 `connect' (Bug#5723).
42
43 2010-11-04 Helmut Eller <eller.helmut@gmail.com>
44
45 * process.c (Fmake_network_process): Call `select' for interrupted
46 `connect' rather than creating new socket (Bug#5173).
47
48 2010-11-04 Kenichi Handa <handa@m17n.org>
49
50 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
51 Don't sheck SPEC if it is nil.
52 (font_list_entities): Call font_delete_unmatched if
53 Vface_ignored_fonts is non-nil.
54
55 2010-11-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
56
57 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
58 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
59
60 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
61 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
62 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
63 TRY_WINDOW_CHECK_MARGINS.
64
65 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
66 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423).
67
68 2010-11-04 Jan Djärv <jan.h.d@swipnet.se>
69
70 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
71 parent is the root window. Check this after traversing window tree.
72
73 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
74
75 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
76
77 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
78 before traversing window tree (Bug#5721).
79
80 2010-11-03 Glenn Morris <rgm@gnu.org>
81
82 * Makefile.in (CRT_DIR): New variable, set by configure.
83 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
84 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
85
86 2010-11-01 Jan Djärv <jan.h.d@swipnet.se>
87
88 * process.c (kbd_is_on_hold): New variable.
89 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
90 New functions.
91 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
92 select on empty input mask.
93 (init_process): Initialize kbd_is_on_hold to 0.
94
95 * process.h (hold_keyboard_input, unhold_keyboard_input)
96 (kbd_on_hold_p): Declare.
97
98 * keyboard.c (input_available_signal): Declare.
99 (kbd_buffer_nr_stored): New function.
100 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
101 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
102 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
103 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
104 (tty_read_avail_input): If input is on hold, return.
105 Don't read more that free slots in kbd_buffer (Bug#6571).
106
107 2010-10-31 Chong Yidong <cyd@stupidchicken.com>
108
109 * xterm.c (x_connection_closed): Print informative error message
110 when aborting on GTK. This requires using shut_down_emacs
111 directly instead of Fkill_emacs.
112
113 2010-10-25 Michael Albinus <michael.albinus@gmx.de>
114
115 * dbusbind.c (Fdbus_call_method_asynchronously)
116 (Fdbus_register_signal, Fdbus_register_method): Check, whether
117 `dbus-registered-objects-table' is initialized.
118
119 2010-10-24 Chong Yidong <cyd@stupidchicken.com>
120
121 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
122
123 2010-10-22 Eli Zaretskii <eliz@gnu.org>
124
125 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
126
127 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
128 Deprecate use as a boolean flag.
129
130 2010-10-18 Ken Brown <kbrown@cornell.edu>
131
132 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
133
134 2010-10-15 Kenichi Handa <handa@m17n.org>
135
136 Fix incorrect font metrics when the same font is opened with
137 different pixelsizes.
138
139 * xftfont.c: Include composite.h.
140 (xftfont_shape): New function.
141 (syms_of_xftfont): Set xftfont_driver.shape.
142
143 2010-10-13 Damyan Pepper <damyanp@gmail.com>
144
145 Fix handling of font properties on Windows (bug#6303).
146 * font.c (font_filter_properties): New function, refactored from
147 ftfont_filter_properties.
148 * font.h (font_filter_properties): Declare.
149 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
150 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
151 (w32font_filter_properties): New function.
152 (w32font_driver): Add w32font_filter_properties.
153
154 2010-10-12 Juanma Barranquero <lekktu@gmail.com>
155
156 * font.c (Ffont_variation_glyphs):
157 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
158
159 2010-10-10 Jan Djärv <jan.h.d@swipnet.se>
160
161 * nsterm.m (Qleft): Declare.
162 (ns_right_alternate_modifier): New variable
163 (NSRightAlternateKeyMask): New define.
164 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
165 ns_right_alternate_modifier isn't Qleft.
166 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
167 as emacs modifier for NSRightAlternateKeyMask.
168 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
169
170 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
171
172 * dbusbind.c (xd_get_dispatch_status): Return a Lisp_Object.
173 (xd_pending_messages): Catch xd_get_dispatch_status calls.
174
175 2010-10-08 Kenichi Handa <handa@m17n.org>
176
177 * coding.c (complement_process_encoding_system): Fix previous change.
178
179 2010-10-03 Michael Albinus <michael.albinus@gmx.de>
180
181 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
182 (Fdbus_init_bus): ... here. (Bug#7113)
183
184 2010-10-03 Glenn Morris <rgm@gnu.org>
185
186 * buffer.c (before-change-functions, after-change-functions):
187 Three-year overdue doc fix following 2007-08-13 change.
188
189 2010-10-02 Kenichi Handa <handa@m17n.org>
190
191 * coding.c (coding_inherit_eol_type): If parent doesn't specify
192 eol-format, inherit from the system's default.
193 (complement_process_encoding_system): Make a new coding system
194 inherit the original eol-format.
195
196 2010-09-30 Kenichi Handa <handa@m17n.org>
197
198 * coding.c (complement_process_encoding_system): New function.
199
200 * coding.h (complement_process_encoding_system): Extern it.
201
202 * callproc.c (Fcall_process): Complement the coding system for
203 encoding arguments.
204 (Fcall_process_region): Complement the coding system for encoding
205 the input to the process.
206
207 * process.c (Fstart_process): Complement the coding system for
208 encoding arguments.
209 (send_process): Complement the coding system for encoding what
210 sent to the process.
211
212 2010-09-29 Kenichi Handa <handa@m17n.org>
213
214 * xfont.c (xfont_open): Fix setting of font->average_width from
215 :avgwidth property (Bug#7123).
216
217 2010-09-28 Michael Albinus <michael.albinus@gmx.de>
218
219 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
220 is more portable.
221
222 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
223 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
224 has not defined SIGIO.
225
226 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
227
228 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
229 (Bug#7113)
230
231 2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
232
233 * xgselect.c (xg_select): Clear file descriptors not set from
234 rfds and wfds.
235
236 2010-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
237
238 * syntax.c (back_comment): Detect the case where a 1-char comment
239 starter is also the 2nd char of a 2-char comment ender.
240
241 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
242
243 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
244
245 2010-09-12 Jan Djärv <jan.h.d@swipnet.se>
246
247 * xterm.c (get_current_vm_state): New function.
248 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
249 want_fullscreen so set_wm_state calls are few (Bug#7013).
250 (x_handle_net_wm_state): Move code to get_current_vm_state and
251 call that function.
252
253 2010-09-11 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
254
255 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
256
257 2010-09-08 Kenichi Handa <handa@m17n.org>
258
259 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
260 we may use designation or locking-shift.
261
262 2010-09-07 Kenichi Handa <handa@m17n.org>
263
264 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
265 sequence when the source is multibyte.
266
267 2010-08-31 Kenichi Handa <handa@m17n.org>
268
269 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
270 characters.
271
272 * term.c (encode_terminal_code): Fix the previous change.
273 (produce_glyphs): Don't set it->char_to_display here.
274 Don't handle unibyte-display-via-language-environment here.
275 (produce_special_glyphs): Set temp_it.char_to_display before
276 calling produce_glyphs.
277
278 * xdisp.c (get_next_display_element): Set it->char_to_display
279 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
280 characters.
281 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
282 calling PRODUCE_GLYPHS.
283 (append_space_for_newline): Save and store it->char_to_display.
284 Set it->char_to_display before calling PRODUCE_GLYPHS.
285 (extend_face_to_end_of_line): Set it->char_to_display before
286 calling PRODUCE_GLYPHS.
287 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
288 character to its byte value.
289 (get_char_glyph_code): New function.
290 (produce_stretch_glyph): Set it2.char_to_display too before
291 calling x_produce_glyphs.
292 (x_produce_glyphs): Simplify by using the same code for ASCII and
293 non-ASCII characters. Don't set it->char_to_display here.
294 Don't handle unibyte-display-via-language-environment here. For a
295 character of no glyph, use font->space_width instead of FONT_WIDTH.
296
297 2010-08-29 Kenichi Handa <handa@m17n.org>
298
299 * term.c (encode_terminal_code): Encode byte chars to the
300 correspnding bytes.
301
302 2010-08-17 Andreas Schwab <schwab@linux-m68k.org>
303
304 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
305 instead of SAFE_ALLOCA.
306
307 2010-08-17 Chong Yidong <cyd@stupidchicken.com>
308
309 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
310 (Bug#6214).
311
312 2010-08-14 Jan Djärv <jan.h.d@swipnet.se>
313
314 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
315
316 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
317
318 * doc.c (Fsnarf_documentation): Initialize skip_file before
319 build-files test.
320
321 2010-08-09 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
322
323 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
324 New definitions.
325 (HAVE_TERMIO): Remove.
326
327 2010-08-06 Kenichi Handa <handa@m17n.org>
328
329 * charset.c: Include <stdlib.h>
330 (struct charset_sort_data): New struct.
331 (charset_compare): New function.
332 (Fsort_charsets): New function.
333 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
334
335 * coding.c (decode_coding_iso_2022): Fix checking of dimension
336 number in CTEXT extended segment.
337
338 2010-08-01 Juanma Barranquero <lekktu@gmail.com>
339
340 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
341 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
342
343 2010-07-30 Juanma Barranquero <lekktu@gmail.com>
344
345 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
346 (Fhash_table_size): Fix typos in docstrings.
347 (Fmake_hash_table): Doc fix.
348
349 2010-07-28 Juanma Barranquero <lekktu@gmail.com>
350
351 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
352 Doc fix (bug#5625).
353
354 2010-07-27 Ken Brown <kbrown@cornell.edu>
355
356 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
357 the MSDOS definition.
358
359 2010-07-25 Christoph Scholtes <cschol2112@gmail.com>
360
361 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
362
363 2010-07-22 Christoph Scholtes <cschol2112@gmail.com>
364
365 * window.c (Fwindow_height): Doc fix (bug#6518).
366
367 2010-07-21 Juanma Barranquero <lekktu@gmail.com>
368
369 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
370
371 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
372
373 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
374 is related to the menu bar (Bug#6499).
375
376 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
377
378 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
379
380 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
381
382 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
383 i.e. don't put back ButtonRelease (Bug#6608).
384
385 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
386 instead of Window. Call xg_event_is_for_menubar when
387 USE_GTK (Bug#6499).
388
389 * gtkutil.h (xg_event_is_for_menubar): Declare.
390
391 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
392
393 2010-07-14 Eli Zaretskii <eliz@gnu.org>
394
395 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
396 when it's the same as the old foreground. (Bug#6609)
397
398 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
399
400 * xfaces.c (realize_face): Garbage the frame if a face is removed
401 (Bug#6593).
402
403 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
404
405 * keyboard.c: Remove duplicate <setjmp.h>.
406 (read_key_sequence): Remove volatile qualifiers.
407
408 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
409
410 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
411 (struct glyph_row): New members left_fringe_offset and
412 right_fringe_offset.
413
414 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
415 specially.
416 * w32term.c (w32_draw_fringe_bitmap): Likewise.
417 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
418
419 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
420 Take account of bitmap offset.
421 (draw_window_fringes): Take account of window vscroll.
422 (update_window_fringes): Likewise. Extend top-aligned top indicator
423 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
424 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
425 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
426
427 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
428
429 * w32fns.c (Qtooltip): Declare.
430 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
431
432 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
433
434 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
435 grab on just Press (Bug#6499).
436
437 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
438
439 * frame.c (Qtooltip): New var.
440 (delete_frame): Use it. Fix faulty if statement. Don't update
441 mode line for tooltip frames. Suggested by Martin Rudalics.
442
443 * xfns.c (x_create_tip_frame):
444 * w32fns.c (x_create_tip_frame): Use it.
445
446 2010-06-30 Naohiro Aota <naota@elisp.net> (tiny change)
447
448 * xftfont.c (xftfont_open): Check font width one by one also when
449 spacing is dual.
450
451 * ftfont.c (ftfont_open): Ditto.
452
453 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
454
455 * alloc.c (Fmake_byte_code): Don't access undefined argument
456 (Bug#6517).
457
458 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
459
460 * xdisp.c (next_element_from_image): Ensure that after-strings are
461 read the next time we hit handle_stop (Bug#1336).
462
463 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
464
465 * lread.c (read1): Signal error if #s is not followed by paren.
466
467 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
468
469 * image.c (free_image): Mark frame as garbaged (Bug#6426).
470
471 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
472
473 2010-06-15 Glenn Morris <rgm@gnu.org>
474
475 * editfns.c (Fbyte_to_string): Pacify compiler.
476
477 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
478
479 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
480 Check `object's type before accessing its guts.
481
482 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
483
484 * minibuf.c (Fall_completions): Add more checks.
485
486 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
487
488 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
489
490 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
491
492 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
493 address. (Bug#6346)
494
495 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
496
497 * ccl.c (Fccl_program_p): Fix typo in docstring.
498
499 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
500
501 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
502 of bug#6305).
503
504 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
505
506 * xdisp.c (redisplay_window): After redisplay, check if point is
507 still valid before setting it (Bug#6177).
508
509 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
510
511 * s/netbsd.h: If terminfo is found, use it in preference to
512 termcap. (Bug#6190) [Backport from trunk]
513
514 2010-05-20 Kevin Ryde <user42@zip.com.au>
515
516 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
517 (Voverriding_terminal_local_map, Vsystem_key_alist)
518 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
519
520 2010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
521
522 * editfns.c (Fbyte_to_string): New function.
523
524 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
525
526 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
527 prevent stack overflow if number of arguments is too large
528 (Bug#6214).
529
530 2010-05-11 Eli Zaretskii <eliz@gnu.org>
531
532 * makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(SRC)/w32.h.
533
534 * w32fns.c: Include w32.h.
535 (Fw32_shell_execute): Decode the error message before passing it
536 to `error'. (Bug#6126)
537
538 2010-05-11 Karel Klic <kklic@redhat.com>
539
540 * ftfont.c: Fix incorrect parentheses of #if condition for
541 definining M17N_FLT_USE_NEW_FEATURE.
542
543 2010-05-07 Chong Yidong <cyd@stupidchicken.com>
544
545 * Version 23.2 released.
546
547 2010-04-30 Andreas Schwab <schwab@linux-m68k.org>
548
549 * composite.c (autocmp_chars): Save point as marker before calling
550 auto-composition-function (Bug#5984).
551
552 * lisp.h (restore_point_unwind): Add prototype.
553
554 * fileio.c (restore_point_unwind): Remove static attribute.
555
556 2010-04-23 Kenichi Handa <handa@m17n.org>
557
558 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
559 new feature of libotf and m17n-flt.
560 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
561 Call OTF_check_features even if no specific feature is given.
562 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
563 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
564 that OUT is NULL. Use OTF_drive_gsub_with_log and
565 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
566 OTF_drive_gpos.
567 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
568 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
569 Setup mflt_enable_new_feature and mflt_try_otf.
570
571 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
572
573 * dired.c (Ffile_attributes): Fix typo in docstring.
574
575 2010-04-13 Adrian Robert <Adrian.B.Robert@gmail.com>
576
577 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
578 NSInteger (Bug#5811).
579
580 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
581
582 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
583 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
584
585 2010-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
586
587 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
588
589 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
590
591 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
592 FRAME_LINE_TO_PIXEL_Y.
593
594 * xterm.c (x_set_window_size_1): Don't add border_width/height to
595 pixelwidth/height.
596
597 2010-04-05 Chong Yidong <cyd@stupidchicken.com>
598
599 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
600 terminal frames (Bug#5837).
601
602 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
603
604 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
605 * nsterm.h: Fix prototype.
606
607 2010-03-31 Eli Zaretskii <eliz@gnu.org>
608
609 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
610 in this function. (Bug#5703)
611
612 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
613
614 * nsterm.h: Fix last change.
615
616 2010-03-30 Bernhard Herzog <bh@intevation.de> (tiny change)
617
618 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
619
620 2010-03-30 Jan Djärv <jan.h.d@swipnet.se>
621
622 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
623 invisible (Bug#5766).
624
625 2010-03-29 Adrian Robert <adrian.b.robert@gmail.com>
626
627 * xdisp.c (x_consider_frame_title, update_window_cursor): Remove
628 HAVE_NS conditionals.
629 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
630
631 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
632 filename for the title.
633 (ns_set_doc_edited): Do nothing if the selected window is a
634 minibuffer window.
635
636 * nsterm.h: Add prototypes for ns_set_name_as_filename and
637 ns_set_doc_edited.
638
639 * nsterm.m: Remove unneeded prototype.
640
641 2010-03-28 Glenn Morris <rgm@gnu.org>
642
643 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
644 in the DOC file. (Bug#5336)
645
646 2010-03-24 Chong Yidong <cyd@stupidchicken.com>
647
648 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
649
650 2010-03-20 Jan Djärv <jan.h.d@swipnet.se>
651
652 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
653
654 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
655
656 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
657
658 2010-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
659
660 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
661 XLoadQueryFont.
662
663 2010-03-16 Kenichi Handa <handa@m17n.org>
664
665 * coding.c (decode_coding_ccl): Fix previous change for the
666 multibyte case.
667 (encode_coding_ccl): Don't setup ccl program here. Fix for the
668 case that the output buffer is fullfilled.
669 (encode_coding): Setup ccl program here.
670
671 2010-03-15 Andreas Politz <politza@fh-trier.de> (tiny change)
672
673 * editfns.c (Fformat): Account for string precision when computing
674 field width (Bug#5710).
675
676 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
677
678 Make it possible to C-g in a tight bytecode loop again (bug#5680).
679 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
680 (QUIT): Use it to consolidate code and remove redundancy.
681 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
682
683 * regex.c (regex_compile): Setup gl_state as well.
684
685 * syntax.c (skip_chars): Setup gl_state (bug#3823).
686 (in_classes): Use CONSP before XCAR/XCDR.
687
688 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
689
690 * keymap.c (Fwhere_is_internal): Use Fequal to compare
691 definitions, so that keyboard macros are correctly handled
692 (Bug#5481).
693
694 2010-03-02 Eli Zaretskii <eliz@gnu.org>
695
696 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
697 text that could be relocated inside the call to emacs_mule_char.
698 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
699 (CODING_DECODE_CHAR): Add a comment describing its purpose.
700
701 2010-03-02 Kenichi Handa <handa@m17n.org>
702
703 * character.c (parse_str_as_multibyte): Fix handling of the
704 multibyte form of raw-bytes.
705 (str_as_multibyte): Likewise.
706
707 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
708 form of raw-bytes.
709
710 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
711
712 * charset.c (load_charset_map_from_file)
713 (load_charset_map_from_vector): Zero out allocated
714 charset_map_entries before using them.
715
716 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
717
718 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
719
720 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
721
722 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
723 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
724
725 2010-02-26 Kenichi Handa <handa@m17n.org>
726
727 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
728
729 * xdisp.c (reseat_to_string): Fix previous change.
730
731 2010-02-26 David Reitter <david.reitter@gmail.com>
732
733 * nsfont.m (nsfont_draw): ns_antialias_text should be a
734 Lisp_Object (Bug#4736).
735
736 2010-02-25 Kenichi Handa <handa@m17n.org>
737
738 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
739
740 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
741
742 * xterm.c (XTflash): Move declarations before statements.
743
744 * gtkutil.c (xg_get_gdk_display): Remove (unused).
745 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
746 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
747 (xg_create_tool_bar): Remove unused variables.
748 (x_wm_set_size_hint): Move declarations before statements.
749 (xg_create_frame_widgets): Remove variable grav.
750
751 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
752
753 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
754
755 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
756
757 * term.c (fatal): Add a final \n if needed (bug#5596).
758
759 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
760
761 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
762
763 2010-02-18 Glenn Morris <rgm@gnu.org>
764
765 * callint.c (Finteractive): Doc fix.
766
767 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
768
769 * coding.c (record_conversion_result):
770 Handle CODING_RESULT_INSUFFICIENT_DST.
771 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
772 memory allocation error.
773
774 2010-02-17 Kenichi Handa <handa@m17n.org>
775
776 * coding.c (decode_coding_ccl): Don't setup ccl program here.
777 Fix for the case that the output buffer is fullfilled.
778 (decode_coding): Setup ccl program here. Keep looping when the
779 decoder stopped because the output buffer is
780 fullfilled (bug#5534).
781
782 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
783
784 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
785
786 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
787 bug #5571.
788 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
789 overdrawn.
790
791 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
792
793 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
794 doing_interact here.
795 (ice_connection_closed): New function.
796 (x_session_check_input, smc_die_CB, ice_io_error_handler)
797 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
798 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
799 returns I/O error.
800 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
801 bug #5512.
802
803 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
804
805 * nsfont.m (nsfont_open): The system's value for the font descent
806 is negative, so round it down to avoid clipping.
807
808 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
809
810 * charset.c (load_charset_map_from_file)
811 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
812 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
813
814 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
815
816 * charset.c (load_charset_map_from_file): Allocate large
817 charset_map_entries structure on the heap rather than the stack.
818 (Bug#5526).
819
820 2010-01-31 Kenichi Handa <handa@m17n.org>
821
822 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
823 size in NAME is invalid, return -1 (Bug#5396).
824
825 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
826
827 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
828 <deactivated@gmail.com> (Bug#3605).
829
830 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
831
832 * fileio.c (Frename_file): Correctly rename symlinks to
833 directories (Bug#5496).
834
835 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
836
837 * nsterm.m (ns_ring_bell): Handle visible bell like X.
838
839 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
840
841 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
842
843 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
844
845 * frame.c (DEFAULT_ROWS): Change default to 35.
846
847 * xfns.c (x_default_font_parameter): Change default XFT font to
848 monospace-10 (Bug#3643).
849
850 2010-01-29 Eli Zaretskii <eliz@gnu.org>
851
852 * w32inevt.c (key_event): Remove unnecessary comparison of
853 event->uChar.AsciiChar with 128.
854
855 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
856
857 * fileio.c (Frename_file): Fix last change (Bug#5487).
858
859 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
860
861 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
862
863 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
864
865 * xfns.c (Fx_create_frame): Remove window size matching code from
866 2010-01-15.
867 (x_get_current_desktop, x_get_desktop_workarea): Remove.
868
869 2010-01-27 Jason Rumney <jasonr@gnu.org>
870
871 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
872 (key_event): Use unicode for characters 128 and higher (Bug#4567).
873
874 2010-01-27 Kenichi Handa <handa@m17n.org>
875
876 * regex.c (analyse_first): Fix setting of fastmap for unibyte
877 pattern string (Bug#4209).
878
879 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
880
881 * fileio.c (Frename_file): Call copy-directory and
882 delete-directory for directories, in order to handle cross-device
883 renaming (Bug#3353).
884
885 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
886
887 * xfns.c (Fx_create_frame): If frame height is too big, try
888 sizes 24 and 10. Bug #3643.
889
890 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
891
892 Try and fix bug#788, hopefully for real this time.
893 * keymap.c (shadow_lookup): Add `remap' arg.
894 (describe_map, describe_vector): Update calls to shadow_lookup.
895 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
896 `remapped' so this flag is applicable to `sequence'. Be careful to
897 perform remapping during shadow_lookup check of remapped_sequences.
898
899 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
900
901 * image.c (png_load): Use png_sig_cmp instead of the obsolete
902 png_check_sig, which has been removed in libpng 1.4.
903
904 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
905
906 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
907 lacks this header file).
908
909 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
910
911 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
912 as in Emacs 22.
913
914 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
915
916 * lisp.h (make_pure_string): String pointer arg now points to const.
917
918 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
919 args now point to const.
920
921 2010-01-22 Eli Zaretskii <eliz@gnu.org>
922
923 * lread.c (Fload): Don't treat files without .elc extension as
924 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
925 them. (bug#5303)
926
927 2010-01-20 Kenichi Handa <handa@m17n.org>
928
929 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
930 treat the source as actual byte sequence.
931
932 2010-01-19 Alan Mackenzie <acm@muc.de>
933
934 Fix spurious before-change-functions invocation from (insert ?\n).
935 * textprop.c (set_text_properties): Rename parameter
936 `signal_after_change_p' to `coherent_change_p', and make the
937 invocation of `modify_region' conditional on it.
938
939 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
940
941 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
942 for debug purpose.
943 (syms_of_xsettings): Declare xft-settings.
944
945 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
946
947 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
948
949 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
950
951 * xterm.c (event_handler_gdk): Block input (Bug#5037).
952
953 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
954
955 * emacs.c (standard_args): Adjust arg priorities to reflect how
956 they are processed in startup.el.
957
958 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
959
960 * Makefile.in (lisp, shortlisp): Update.
961
962 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
963
964 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
965 code, link the new kboard into all_kboard before running Lisp code,
966 and protect the new terminal with GCPRO (Bug#5365).
967 (x_term_init): Remove unused var `atom'.
968 (x_delete_display, x_delete_terminal): Remove unused var `i'.
969
970 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
971
972 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
973 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
974 to find out usable size of the desktop. Don't make frames larger than
975 this. Bug #3643.
976
977 2010-01-15 Kenichi Handa <handa@m17n.org>
978
979 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
980
981 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
982
983 * nsterm.m (Qnone): Define.
984
985 * nsfns.m (Qnone): Move definition to nsterm.m.
986
987 2010-01-14 Kenichi Handa <handa@m17n.org>
988
989 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
990 systems.
991
992 2010-01-14 Kenichi Handa <handa@m17n.org>
993
994 Make auto-composition work on all buffers even if they are
995 fundamental mode.
996
997 * composite.c (Vauto_composition_mode): New variable.
998 (composition_compute_stop_pos): Check Vauto_composition_mode
999 instead of Vauto_composition_function.
1000 (composition_adjust_point, Ffind_composition_internal): Likewise.
1001 (syms_of_composite): Declare Lisp variable
1002 "auto-composition-mode" here.
1003
1004 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
1005
1006 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
1007 during call to vendor-specific-keysyms (Bug#5365).
1008
1009 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1010
1011 * keyboard.c (input_available_signal) [SYNC_INPUT]:
1012 Call SIGNAL_THREAD_CHECK (Bug#5333).
1013
1014 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
1015 Call SIGNAL_THREAD_CHECK.
1016
1017 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
1018
1019 Try to fix bug#5314. This is probably not the final word, tho.
1020 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
1021 recent-auto-save-p as a side-effect.
1022 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
1023 * buffer.c (Fkill_buffer, reset_buffer):
1024 * editfns.c (Fsubst_char_in_region):
1025 * fileio.c (Finsert_file_contents, Fdo_auto_save)
1026 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
1027
1028 2010-01-13 Kenichi Handa <handa@m17n.org>
1029
1030 Display buffer name, etc. in mode line by composing correctly.
1031
1032 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
1033 STRING is not nil.
1034 (display_mode_element): Adjust for the change of
1035 decode_mode_spec and display_line.
1036 (decode_mode_spec): Change arg MULTIBYTE to STRING.
1037 (display_string): Handle the case that STRING is non-null and
1038 LISP_STRING is not nil.
1039
1040 * xterm.c (x_draw_composite_glyph_string_foreground):
1041 Pay attention to s->face->overstrike.
1042
1043 * composite.c (composition_reseat_it): Don't check PT if STRING is
1044 non nil.
1045
1046 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1047
1048 * keyboard.c (read_char): Don't apply previous change when current
1049 buffer is unchanged by command execution.
1050
1051 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
1052
1053 * keyboard.c (read_char): Return after executing from special map.
1054
1055 2010-01-12 Glenn Morris <rgm@gnu.org>
1056
1057 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
1058 bug-gnu-emacs rather than emacs-pretest-bug.
1059
1060 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
1061
1062 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
1063 initializing the Lisp variables that depend on them.
1064
1065 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1066
1067 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
1068 Clear areas that will not be updated after change of menu bar lines.
1069 Clear the menu bar window's current matrix when the window gets empty.
1070
1071 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
1072
1073 * intervals.h, textprop.c (extend_property_ranges): Return value
1074 and args changed. Discard properties that begin at or after the
1075 new end (Bug#5306).
1076
1077 * editfns.c (Fformat): Caller changed.
1078
1079 * nsterm.m (ns_set_default_prefs): Delete function.
1080 (syms_of_nsterm): Initialize ns_command_modifier,
1081 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
1082 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
1083
1084 * xdisp.c (pos_visible_p): Check for invisible text at the correct
1085 position (Bug#4040).
1086
1087 2010-01-09 Eli Zaretskii <eliz@gnu.org>
1088
1089 * editfns.c (Ffloat_time): Doc fix.
1090
1091 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
1092
1093 * xfns.c (Fx_create_frame): Don't create frame larger than display
1094 by default bug#3643.
1095
1096 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1097
1098 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1099 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1100 windows above internal border.
1101
1102 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1103 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1104 windows above internal border.
1105
1106 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1107 tool bar windows specially.
1108
1109 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1110
1111 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1112 specially.
1113 (XTflash): Take account of menu bar height.
1114
1115 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1116 specially.
1117
1118 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
1119
1120 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
1121 also be true before we can return early (bug #5339).
1122
1123 2010-01-06 David Reitter <david.reitter@gmail.com>
1124
1125 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1126 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1127 (Bug#3233).
1128
1129 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
1130
1131 * font.c (font_open_entity): Enable chache and call cached_font_ok
1132 for the driver if defined.
1133 (QCuser_spec): New symbol.
1134 (font_spec_from_name): Save name as user-spec.
1135 (font_load_for_lface): Keep user-spec instead of name.
1136 (font_open_by_name): Save name as user-spec.
1137 (syms_of_font): Initialize QCuser_spec.
1138 (font_clear_prop): Clear name if it exists in font (bug#5157).
1139
1140 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
1141 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1142 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1143
1144 * font.h (struct font_driver): Add cached_font_ok.
1145
1146 * xterm.c (x_clear_frame): Queue draw for scroll bars.
1147
1148 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
1149
1150 * xterm.c (x_new_font): Move code for setting rows/cols before
1151 resizing ...
1152 (x_set_window_size): ... to here. Bug #2568.
1153
1154 * gtkutil.c (xg_clear_under_internal_border): New function.
1155 (xg_frame_resized, xg_frame_set_char_size):
1156 Call xg_clear_under_internal_border.
1157 (xg_update_scrollbar_pos): Clear under old scroll bar position.
1158
1159 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
1160
1161 * keyboard.c (read_key_sequence): Catch keyboard switch after
1162 making a new tty frame (Bug#5095).
1163
1164 2010-01-05 Kenichi Handa <handa@m17n.org>
1165
1166 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1167
1168 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1169
1170 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1171 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1172 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1173
1174 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
1175
1176 * dbusbind.c (xd_add_watch): Improve debug message.
1177 (xd_remove_watch): Improve debug message. If DATA is the session
1178 bus, unset D-Bus session environment.
1179 (Fdbus_init_bus): Pass the bus as argument to
1180 dbus_connection_set_watch_functions. (Bug#5283)
1181
1182 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
1183
1184 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1185
1186 * lread.c (syms_of_lread): Make it clearer that these are the
1187 names of loaded files (Bug#5068).
1188
1189 * eval.c (run_hook_with_args): Handle the case where the global
1190 value has the obsolete single-function form (Bug#5026).
1191
1192 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
1193
1194 * minibuf.c (Fall_completions): Minor optimization.
1195
1196 2009-12-26 Eli Zaretskii <eliz@gnu.org>
1197
1198 * .gdbinit (pgx): Fix display of composite glyphs.
1199 Display cmp.from and cmp.to as well.
1200 (pitx): Fix last change.
1201
1202 2009-12-25 Kenichi Handa <handa@m17n.org>
1203
1204 * composite.h (composition_adjust_point): Update prototype.
1205
1206 * composite.c (composition_reseat_it): Don't make a composition
1207 spanning over point.
1208 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1209 composable characters.
1210 (composition_adjust_point): New arg NEW_PT. Callers changed.
1211
1212 * keyboard.c (command_loop_1): Force redisplay if the last point
1213 was within a composition.
1214 (adjust_point_for_property): Don't adjust point for automatic
1215 composition when called after buffer modification.
1216
1217 2009-12-19 Eli Zaretskii <eliz@gnu.org>
1218
1219 * .gdbinit (pitx): Don't use enum names, use their values.
1220 Remove reference to non-existing value GET_FROM_COMPOSITION.
1221 (pgx): Don't use enum names, use their values.
1222 (pitmethod): New helper command.
1223 (pitx): Use it to display iteration method.
1224 (pgrowit): New command.
1225
1226 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1227
1228 Update dependencies in Makefile.in.
1229
1230 * Makefile.in (alloc.o): Depend on termhooks.h.
1231 (atimer.o): Depend on blockinput.h.
1232 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1233 and frame.h.
1234 (callint.o): Depend on systime.h, coding.h, and composite.h.
1235 (callproc.o): Depend on buffer.h.
1236 (casefiddle.o): Don't depend on charset.h.
1237 (casetab.o): Depend on character.h.
1238 (ccl.o): Depend on composite.h.
1239 (chartab.o): Depend on ccl.h.
1240 (cm.o): Depend on dispextern.h.
1241 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1242 (coding.o): Don't depend on $(INTERVALS_H).
1243 (composite.o): Don't depend on dispextern.h explicitly (it's in
1244 $(INTERVALS_H)). Depend on ccl.h.
1245 (data.o): Depend on systime.h, coding.h, composite.h,
1246 dispextern.h, font.h, and ccl.h.
1247 (dired.o): Depend on composite.h.
1248 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1249 composite.h (it's in $(INTERVALS_H)).
1250 (doc.o): Depend on systime.h, coding.h, and composite.h.
1251 (editfns.o): Don't depend explicitly on dispextern.h.
1252 (emacs.o): Depend on frame.h and coding.h.
1253 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1254 (fileio.o): Depend on frame.h and commands.h. Don't depend
1255 explicitly on dispextern.h.
1256 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1257 composite.h.
1258 (fns.o): Don't depend on termhooks.h.
1259 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1260 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1261 coding.h, $(INTERVALS_H), window.h, xterm.h.
1262 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1263 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1264 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1265 fontset.h, ccl.h, and ftfont.h.
1266 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1267 (gtkutil.o): Depend on dispextern.h and composite.h.
1268 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1269 termhooks.h, and ccl.h.
1270 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1271 (intervals.o): Depend on systime.h and coding.h.
1272 (keyboard.o): Depend on composite.h and coding.h.
1273 (keymap.o): Depend on coding.h and frame.h.
1274 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1275 (macros.o): Depend on systime.h, coding.h, and composite.h.
1276 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1277 and atimer.h.
1278 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1279 dispextern.h explicitly.
1280 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1281 Don't depend explicitly on dispextern.h and composite.h.
1282 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1283 (regex.o): Don't depend on charset.h.
1284 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1285 (search.o): Don't depend explicitly on composite.h.
1286 (sound.o): Depend on atimer.h and systime.h.
1287 (syntax.o): Don't depend explicitly on composite.h.
1288 (sysdep.o): Depend on coding.h and composite.h.
1289 (term.o): Depend on xterm.h and buffer.h.
1290 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1291 (textprop.o): Don't depend on dispextern.h explicitly.
1292 (undo.o): Depend on dispextern.h.
1293 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1294 dispextern.h and composite.h explicitly.
1295 (xdisp.o): Depend on ccl.h.
1296 (xfaces.o): Depend on coding.h and ccl.h.
1297 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1298 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1299 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1300 ftfont.h.
1301 (xgselect.o): New dependency.
1302 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1303 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1304 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1305 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1306 (xsmfns.o): Depend on frame.h and dispextern.h.
1307 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1308 sysselect.h.
1309
1310 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1311
1312 * font.c (Fclear_font_cache): Pass correct cache argument to
1313 font_clear_cache.
1314
1315 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1316
1317 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1318 twice.
1319
1320 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
1321
1322 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1323 calling file-remote-p. Reported by Jim Meyering.
1324
1325 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
1326
1327 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
1328 avoid compiler warnings. (Bug #5217)
1329
1330 2009-12-14 Kenichi Handa <handa@m17n.org>
1331
1332 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1333 in 8-bit encoding.
1334
1335 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
1336
1337 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1338 tooltip windows.
1339
1340 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1341
1342 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1343 Xatom_net_window_type.
1344
1345 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1346 Xatom_net_window_type.
1347
1348 * xterm.c (my_log_handler): New function.
1349 (x_term_init): Set my_log_handler as log handler during gtk_init
1350 so we can filter out buggy messages. (Bug #5120).
1351
1352 * xterm.c (xg_scroll_callback): Parameter list changed,
1353 use parameter GtkScrollType to determine scroll/line/page.
1354 Only allow dragging if a button < 4 is grabbed (bug #5177).
1355 (xg_end_scroll_callback): New function.
1356 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1357 xg_create_scroll_bar.
1358
1359 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1360 (scroll_end_callback): Remove.
1361 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1362 button-release-event. Replace value-changed event with change-value,
1363 bug #5177,
1364 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1365 bug #5177.
1366
1367 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1368 (xg_create_scroll_bar): Add GCallback end_callback.
1369
1370 * xftfont.c (QClcdfilter): New variable.
1371 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1372 (syms_of_xftfont): Initialize QClcdfilter.
1373
1374 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1375
1376 * xsettings.c (struct xsettings): Add member seen.
1377 (parse_xft_settings): Update member seen with what we have read.
1378 Return non-zero if Xft-settings have been parsed, 0 otherwise.
1379 (apply_xft_settings): Only update Xft settings with what member seen
1380 indicates as new.
1381
1382 2009-12-12 Eli Zaretskii <eliz@gnu.org>
1383
1384 * dispextern.h (struct text_pos): Use EMACS_INT;
1385 (struct glyph): Use EMACS_INT for charpos.
1386 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1387 region_beg_charpos, region_end_charpos,
1388 redisplay_end_trigger_charpos, and also for
1389 iterator_stack_entry.end_charpos and
1390 iterator_stack_entry.stop_charpos.
1391
1392 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1393
1394 * gtkutil.c (scroll_end_callback): New function (bug #5177).
1395 (xg_create_scroll_bar): Call scroll_end_callback on button release
1396 event (bug #5177).
1397 (xg_event_is_for_scrollbar): != replaced with ==.
1398
1399 2009-12-12 Kenichi Handa <handa@m17n.org>
1400
1401 * ftfont.c (struct ftfont_info): New member matrix.
1402 (ftfont_open): Setup xftfont_info->matrix.
1403 (MFLTFontFT): New member matrix.
1404 (FLOOR, CEIL, ROUND): New macros.
1405 (ftfont_get_metrics): Handle matrix transformation.
1406 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1407
1408 * xftfont.c (struct xftfont_info): New member matrix.
1409 (xftfont_open): Setup xftfont_info->matrix.
1410
1411 2009-12-10 Kenichi Handa <handa@m17n.org>
1412
1413 * xdisp.c (append_space_for_newline): Consider face-remapping.
1414
1415 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1416
1417 * xsettings.c: Include "keyboard.h".
1418
1419 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1420
1421 Fix implicit function declarations.
1422 * cmds.c: Include "frame.h".
1423 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1424 * frame.h: Move declaration of delete_frame outside of
1425 HAVE_WINDOW_SYSTEM.
1426
1427 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1428
1429 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1430
1431 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1432 GTK builds.
1433
1434 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1435
1436 * unexelf.c (unexec): Don't search for .data twice.
1437
1438 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
1439
1440 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1441 if push failed.
1442 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1443 of push_display_prop (Bug#5000).
1444
1445 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1446 value of font_list_entities (Bug#5085).
1447
1448 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
1449
1450 Fix `string-to-number' to deal consistently with integers and floats.
1451 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1452 trailing characters, not just whitespace.
1453 (read1): Pass new arg 0 to keep old behavior.
1454 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1455 trailing chars, as it is already done for integers. Doc fixes.
1456 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1457
1458 2009-12-04 Eli Zaretskii <eliz@gnu.org>
1459
1460 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1461 Delete unused enumeration value.
1462
1463 2009-12-03 Eli Zaretskii <eliz@gnu.org>
1464
1465 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1466
1467 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1468
1469 * process.c (Fmake_network_process): Fix up the tests for
1470 "connectionless socket", so they DTRT for seqpacket sockets as well.
1471
1472 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1473
1474 * process.c (Qseqpacket): New symbol.
1475 (HAVE_SEQPACKET): New macro.
1476 (Fmake_network_process): Accept new :type `seqpacket'.
1477 (init_process): Add `seqpacket' feature when applicable.
1478 (syms_of_process): Initialize Qseqpacket.
1479
1480 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1481
1482 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1483 if entity is Qnil.
1484
1485 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1486
1487 * print.c (print_preprocess): Preprocess the key_and_value table of
1488 hashtables, even tho they're "hidden" (bug#5082).
1489
1490 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1491
1492 * frame.c (frame_make_pointer_invisible)
1493 (frame_make_pointer_visible): Declare f before statements.
1494
1495 2009-11-28 Eli Zaretskii <eliz@gnu.org>
1496
1497 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1498 omitted dependencies on lisp.h.
1499
1500 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1501
1502 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1503 is NULL.
1504
1505 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1506
1507 * frame.c (frame_make_pointer_invisible)
1508 (frame_make_pointer_visible): Just return if there isn't any selected
1509 frame.
1510
1511 * search.c (simple_search): Remove warning by making *p const.
1512
1513 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1514
1515 * xdisp.c (power_letter): Remove duplicate const.
1516
1517 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1518
1519 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1520
1521 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
1522 defaults (bug #5025).
1523
1524 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1525
1526 * insdel.c (adjust_markers_for_delete): Move it in the
1527 right direction! (bug#4803)
1528
1529 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1530
1531 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1532
1533 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1534
1535 2009-11-24 Glenn Morris <rgm@gnu.org>
1536
1537 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1538
1539 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1540
1541 * Makefile.in: Must create deps for ecrt0.o in its rule.
1542
1543 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1544 because that is what Gtk+ font dialog understands.
1545
1546 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1547 of Fcopy_sequence.
1548 (font_open_by_name): Put name given into QCname for font-object returned.
1549
1550 * frame.c (x_set_font): Save original font name as frame parameter
1551 font-parameter.
1552
1553 * xsettings.c (set_default_xft_settings): New function.
1554 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1555 is found.
1556
1557 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1558
1559 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1560 searching backwards through multibyte buffer.
1561
1562 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1563
1564 * xterm.c: #include xgselect.h.
1565 (x_initialize): Call xgselect_initialize.
1566
1567 * xsettings.c (something_changedCB): C++ comments => C comments.
1568 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1569 does that now.
1570
1571 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1572 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1573 (scroll_bar_button_cb): Remove.
1574 (create_menus): C++ comments => C comments. Don't bind grab-notify
1575 event.
1576 (xg_create_scroll_bar): Don't bind button-press-event and
1577 button-release-event.
1578
1579 * process.c: Include xgselect.h if defined (USE_GTK) ||
1580 defined (HAVE_GCONF).
1581 (wait_reading_process_output): Call xg_select for the same condition.
1582
1583 * xgselect.c (xg_select): New function to better integrate with
1584 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1585
1586 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1587
1588 * Makefile.in (XOBJ): Add xgselect.o.
1589
1590 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1591
1592 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1593 Remove ignored second argument. All callers changed.
1594 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1595 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1596 * xdisp.c (string_char_and_length): Likewise.
1597
1598 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1599
1600 * xterm.c (x_new_font):
1601 * print.c (print_object):
1602 * cmds.c (Fself_insert_command): Move declarations before statements.
1603
1604 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1605
1606 * s/cygwin.h: Remove unneeded linker flags.
1607
1608 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1609
1610 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1611
1612 * xsettings.h: Declare xsettings_get_system_font.
1613
1614 * xsettings.c (xsettings_get_system_font): New function.
1615 (init_gconf): No use initiating gconf unless we have Xft also.
1616 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1617 HAVE_GCONF.
1618
1619 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1620 add a blank entry so it doesn't collapse into nothing.
1621
1622 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1623
1624 * lread.c (Funintern): Comment out last change.
1625
1626 2009-11-19 Richard Stallman <rms@gnu.org>
1627
1628 * lread.c (Funintern): Error if symbol is t or nil.
1629
1630 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1631
1632 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1633 representation of Lisp integers.
1634 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1635
1636 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1637
1638 * lisp.h: Remove declaration of Ffont_get_system_font.
1639 * xfns.c: Move include of "xsettings.h".
1640 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1641
1642 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1643
1644 * xsettings.c (something_changedCB, Ffont_get_system_font):
1645 Check use_system_font.
1646 (syms_of_xsettings): DEFVAR font-use-system-font.
1647
1648 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1649
1650 * xfns.c (x_default_font_parameter): Remove dead assignment.
1651
1652 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1653
1654 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1655
1656 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
1657 not have FC_LCD_*. #define them if not there.
1658
1659 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
1660
1661 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1662
1663 * xterm.c (handle_one_xevent): Call xft_settings_event for
1664 ClientMessage, PropertyNotify and DestroyNotify.
1665 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1666 Call xsettings_initialize.
1667
1668 * xftfont.c (xftfont_fix_match): New function.
1669 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1670 Call xftfont_fix_match after XftFontMatch.
1671
1672 * xfont.c (xfont_driver): Initialize all members.
1673
1674 * xfns.c (x_default_font_parameter):
1675 Try font from Ffont_get_system_font.
1676 Do not get font from x_default_parameter if we got one from
1677 Ffont_get_system_font.
1678 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
1679
1680 * w32font.c (w32font_driver): Initialize all members.
1681
1682 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1683
1684 * lisp.h: Declare syms_of_xsettings.
1685
1686 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1687 Handle CONFIG_CHANGED_EVENT.
1688
1689 * ftfont.c (ftfont_filter_properties): New function.
1690
1691 * frame.c (x_set_font): Remove unused variable lval.
1692
1693 * font.h (struct font_driver): Add filter_properties.
1694
1695 * font.c (font_put_extra): Don't return if val is nil, it means
1696 boolean option is off.
1697 (font_parse_fcname): Collect all extra properties in extra_props
1698 and call filter_properties for all drivers with extra_props and
1699 font as parameter.
1700 (font_open_entity): Do not use cache, it does not pick up new
1701 fontconfig settings like hinting.
1702 (font_load_for_lface): If spec had a name in it, store it in entity.
1703
1704 * emacs.c (main): Call syms_of_xsettings.
1705
1706 * config.in: HAVE_GCONF is new.
1707
1708 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1709 xsettings.o is new.
1710
1711 2009-11-17 Kenichi Handa <handa@m17n.org>
1712
1713 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1714 back to the default font in case that no suitable font is found.
1715
1716 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1717
1718 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1719 Suggested by Chad Brown <yandros@mit.edu>.
1720 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1721
1722 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1723
1724 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1725
1726 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1727
1728 * Makefile.in: Ignore errors from mkdir when creating deps directory.
1729
1730 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1731
1732 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1733 has a parent.
1734
1735 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
1736 dependency files in deps/. Include those files into Makefile.
1737
1738 * config.in: Generated (AUTO_DEPEND).
1739
1740 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
1741
1742 * dbusbind.c (Vdbus_registered_objects_table): Rename from
1743 Vdbus_registered_functions_table, because it contains also
1744 properties. Fix docstring.
1745 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
1746
1747 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1748
1749 * alloc.c (mark_object): Don't reprocess marked strings.
1750 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1751 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1752
1753 2009-11-13 Kenichi Handa <handa@m17n.org>
1754
1755 * category.c (word_boundary_p): Adjust for the change of the
1756 semantics of Vword_combining_categories.
1757 (Vword_combining_categories): Describe the slight change of the
1758 semantics.
1759
1760 2009-11-13 Eli Zaretskii <eliz@gnu.org>
1761
1762 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1763
1764 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1765
1766 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1767
1768 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1769
1770 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
1771
1772 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1773
1774 2009-11-11 David Reitter <david.reitter@gmail.com>
1775
1776 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1777 variables to fix 2009-11-09 change.
1778
1779 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1780
1781 * process.c (ifflag_def): Make flag_sym constant.
1782 (Fnetwork_interface_info): Use a constant pointer.
1783 (ifflag_table):
1784 * xfns.c (cursor_bits):
1785 * xdisp.c (power_letter):
1786 * termcap.c (speeds, esctab):
1787 * sysdep.c (baud_convert):
1788 * keyboard.c (lispy_accent_codes, modifier_names):
1789 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1790 (jpeg_format, tiff_format, gif_format, svg_format)
1791 (interlace_start, interlace_increment, gs_format):
1792 * gtkutil.c (separator_names):
1793 * fringe.c (swap_nibble):
1794 * fns.c (base64_value_to_char, base64_char_to_value):
1795 * fileio.c (make_temp_name_tbl):
1796 * coding.c (suffixes): Make constant.
1797
1798 * frame.c (make_initial_frame):
1799 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1800 build_string.
1801 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1802
1803 * s/freebsd.h:
1804 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1805
1806 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1807 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1808
1809 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1810 * xterm.c (syms_of_xterm):
1811 * xfaces.c (syms_of_xfaces):
1812 * xdisp.c (syms_of_xdisp):
1813 * lread.c (syms_of_lread):
1814 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1815 build_string.
1816
1817 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1818
1819 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1820
1821 * fns.c (Fplist_get): Merge the active and the commented out code.
1822
1823 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1824
1825 * keyboard.h: Declare timer_check.
1826
1827 * keyboard.c (timer_check_2): New function that does what the old
1828 timer_check did.
1829 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1830 returned, i.e. don't return -1 with timers pending.
1831
1832 * process.c: Remove extern declaration of timer_check.
1833
1834 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1835 even if timer_check returned -1.
1836
1837 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1838 xg_dialog_data.
1839 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1840 the event loop.
1841 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1842 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1843 Destroy the dialog after xg_dialog_run.
1844
1845 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1846
1847 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1848
1849 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1850
1851 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1852
1853 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
1854
1855 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1856
1857 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1858
1859 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1860 w32menu.c, and nsmenu.m.
1861 Simplify the obsolete case where position is nil.
1862 (cleanup_popup_menu): New function, moved from nsmenu.m.
1863 (struct skp): Remove slot `notreal'.
1864 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1865 adjust callers.
1866 (single_menu_item): Adjust call to parse_menu_item.
1867 (syms_of_menu): Defsubr x-popup-menu.
1868 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1869 (keymap_panes): Don't export any more.
1870 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1871 (xmenu_show): Declare.
1872 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1873 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1874 * keyboard.h (parse_menu_item): Update declaration.
1875 * xmenu.c (Fx_popup_menu): Remove.
1876 (syms_of_xmenu): Don't defsubr x-popup-menu.
1877 * w32menu.c (Fx_popup_menu): Remove.
1878 (syms_of_w32menu): Don't defsubr x-popup-menu.
1879 * nsmenu.m (cleanup_popup_menu): Remove.
1880 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1881 moved to menu.c's Fx_popup_menu.
1882 (Fx_popup_menu): Remove.
1883 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1884 menu_items (it's done in menu.c already).
1885
1886 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1887
1888 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1889 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1890
1891 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
1892
1893 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
1894 xmenu_show. Hide any tooltip before opening a menu.
1895 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1896 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1897
1898 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1899
1900 Let integers use up 2 tags to give them one extra bit and thus double
1901 their range.
1902 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1903 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1904 New macros.
1905 (enum Lisp_Type): Use them. Give explicit values.
1906 (Lisp_Type_Limit): Remove.
1907 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1908 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1909 Pay attention to USE_2_TAGS_FOR_INTS.
1910 (INTEGERP): Use LISP_INT_TAG_P.
1911 * fns.c (internal_equal): Simplify the default case.
1912 (sxhash): Use case_Lisp_Int.
1913 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1914 any more.
1915 (Ftype_of): Use case_Lisp_Int.
1916 (store_symval_forwarding): Take into account the fact that Ints can
1917 now have more than one tag.
1918 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1919 buffer_slot_type_mismatch):
1920 * xfaces.c (face_attr_equal_p):
1921 * print.c (print_object):
1922 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1923 Use case_Lisp_Int.
1924
1925 2009-11-06 Eli Zaretskii <eliz@gnu.org>
1926
1927 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1928
1929 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1930 warning.
1931
1932 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1933
1934 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1935
1936 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1937
1938 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1939 ButtonPressRelease and MotionNotify (bug#4870).
1940
1941 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1942
1943 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1944
1945 * xterm.c (syms_of_xterm):
1946 * xselect.c (syms_of_xselect):
1947 * xmenu.c (syms_of_xmenu):
1948 * xfns.c (syms_of_xfns):
1949 * xfaces.c (syms_of_xfaces):
1950 * xdisp.c (syms_of_xdisp):
1951 * window.c (syms_of_window):
1952 * w32fns.c (syms_of_w32fns):
1953 * undo.c (syms_of_undo):
1954 * textprop.c (syms_of_textprop):
1955 * terminal.c (syms_of_terminal):
1956 * syntax.c (syms_of_syntax):
1957 * sound.c (syms_of_sound):
1958 * search.c (syms_of_search):
1959 * print.c (syms_of_print):
1960 * minibuf.c (syms_of_minibuf):
1961 * macros.c (syms_of_macros):
1962 * keymap.c (syms_of_keymap, initial_define_key)
1963 (initial_define_lispy_key):
1964 * keyboard.c (syms_of_keyboard):
1965 * insdel.c (syms_of_insdel):
1966 * image.c (syms_of_image):
1967 * fringe.c (syms_of_fringe):
1968 * frame.c (syms_of_frame):
1969 * fontset.c (syms_of_fontset):
1970 * fns.c (syms_of_fns):
1971 * fns.c (syms_of_fns):
1972 * fileio.c (syms_of_fileio):
1973 * fileio.c (syms_of_fileio):
1974 * eval.c (syms_of_eval):
1975 * doc.c (syms_of_doc):
1976 * dispnew.c (syms_of_display):
1977 * dired.c (syms_of_dired):
1978 * dbusbind.c (syms_of_dbusbind):
1979 * data.c (syms_of_data):
1980 * composite.c (syms_of_composite):
1981 * coding.c (syms_of_coding):
1982 * cmds.c (syms_of_cmds):
1983 * charset.c (define_charset_internal, syms_of_character):
1984 * ccl.c (syms_of_ccl):
1985 * category.c (syms_of_category, init_category_once):
1986 * casetab.c (syms_of_casetab):
1987 * casefiddle.c (syms_of_casefiddle):
1988 * callint.c (syms_of_callint):
1989 * bytecode.c (syms_of_bytecode):
1990 * buffer.c (keys_of_buffer, syms_of_buffer):
1991 * alloc.c (syms_of_alloc):
1992 * process.c (syms_of_process, init_process):
1993 * lread.c (syms_of_lread, init_obarray):
1994 * font.c (build_style_table):
1995 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1996 intern_c_string, calls to make_pure_string with
1997 make_pure_c_string. Use pure_cons instead of Fcons.
1998
1999 * process.c (socket_options): Make it const.
2000 (set_socket_option, init_process): Use a const pointer.
2001
2002 * lread.c (intern_c_string): New function.
2003 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2004 (defvar_int): Uset it. Make the name const char*.
2005
2006 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2007 (defvar_int): Update prototypes.
2008 (DEFUN, EXFUN): Support for prototypes is now required.
2009 (intern_c_string): New prototype.
2010 (struct Lisp_Subr): Make symbol_name constant.
2011
2012 * font.c (struct table_entry): Remove unused member. Make NAMES
2013 constant.
2014 (weight_table, slant_table, width_table): Make constant.
2015
2016 * emacs.c (struct standard_args): Make name and longname constant.
2017
2018 * character.h (DEFSYM): Use intern_c_string.
2019
2020 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2021
2022 * alloc.c (make_pure_c_string): New function.
2023
2024 * eval.c (Fautoload): Purecopy all arguments.
2025
2026 2009-11-05 Kenichi Handa <handa@m17n.org>
2027
2028 * fileio.c (Finsert_file_contents): Be sure set coding-system of
2029 the buffer in case of replace.
2030
2031 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
2032
2033 * puresize.h (BASE_PURESIZE): Increase to 1620000.
2034
2035 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2036
2037 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
2038 when applicable (bug#4851).
2039
2040 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
2041 (P_): Support for prototypes is now required.
2042
2043 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
2044
2045 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
2046 (Bug#4827).
2047
2048 2009-10-30 Eli Zaretskii <eliz@gnu.org>
2049
2050 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
2051
2052 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
2053
2054 * puresize.h (BASE_PURESIZE): Increase to 1470000.
2055
2056 * lread.c (Fload): Purecopy the file name when building
2057 Vpreloaded_file_list.
2058
2059 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
2060
2061 * w32fns.c (syms_of_w32fns): Change default value of
2062 w32-scroll-lock-modifier to nil. (Bug#2827)
2063
2064 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
2065
2066 * minibuf.c (Fall_completions): Fix typos in docstring.
2067
2068 2009-10-26 Andreas Schwab <schwab@redhat.com>
2069
2070 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
2071
2072 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
2073
2074 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
2075 For delta < 0, skip check that only makes sense when the mini-window
2076 is going to be enlarged. (Bug#4534)
2077
2078 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
2079
2080 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
2081 string in menu maps (Bug#4471).
2082
2083 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
2084
2085 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
2086 FRAME_NS_VIEW on terminal frames (Bug#4765).
2087
2088 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
2089
2090 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
2091 DBUS_TYPE_UINTnn separately to get proper sign extension.
2092
2093 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2094 can properly handle unsigned types.
2095 (make_uid, make_gid): Remove.
2096
2097 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2098 types again.
2099
2100 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
2101 (system_process_attributes): Likewise.
2102
2103 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2104
2105 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2106
2107 * eval.c (Fautoload): Purecopy the filename. Simplify.
2108
2109 * category.c (Fdefine_category): Purecopy docstring.
2110
2111 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
2112
2113 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2114
2115 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2116
2117 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
2118
2119 * window.c (Fwindow_edges, Fwindow_pixel_edges)
2120 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2121 (Bug#4775).
2122
2123 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2124
2125 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2126 (init_fileio_once):
2127 * lisp.h (init_fileio_once): Remove.
2128 * emacs.c (main): Don't call init_fileio_once.
2129
2130 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
2131
2132 * puresize.h (BASE_PURESIZE): Increase to 1430000.
2133
2134 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
2135
2136 * doprnt.c (doprnt): Fix overflow check.
2137
2138 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
2139
2140 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
2141
2142 * xterm.h (x_wait_for_event): Declare it.
2143
2144 * xterm.c (pending_event_wait): New variable.
2145 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2146 see pending_event_wait.eventtype.
2147 (handle_one_xevent): Don't change gravity when parent changes.
2148 (x_new_font): Call change_frame_size with new rows/columns before we
2149 try to resize the frame.
2150 (x_wait_for_event): New function.
2151 (x_set_window_size_1): Don't change gravity unless change_gravity
2152 is set.
2153 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2154 don't change frame size, instead wait for the ConfigureNotify.
2155 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2156 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2157 (x_initialize): Initialize pending_event_wait.
2158
2159 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2160 size.
2161
2162 * widget.c (EmacsFrameSetValues): Add comment.
2163 (EmacsFrameSetCharSize): Just call x_set_window_size.
2164
2165 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2166 x_wait_for_event.
2167 (flush_and_sync): Remove again.
2168 (xg_get_font_name): Suggest monospace if no previous font is known.
2169
2170 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2171
2172 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
2173 8th bit, since that only made sense in the ASCII world (bug#4751).
2174
2175 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2176
2177 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2178 processing pending events when event is filtered for input method.
2179 (Bug#3681)
2180
2181 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
2182
2183 * fns.c: Add #endif accidentally removed in previous change.
2184
2185 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2186
2187 * fns.c: Remove code for unsupported system: MAC_OS.
2188 * image.c: Likewise. Include setjmp.h.
2189
2190 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2191
2192 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2193 pixel -1 (bug #4742).
2194
2195 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2196
2197 * process.c (create_pty): Remove conditionals for no longer
2198 supported systems: UNIPLUS and RTU.
2199
2200 * xterm.c:
2201 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2202
2203 * alloc.c: Do not define struct catchtag.
2204 * eval.c: Move struct catchtag definition ...
2205 * lisp.h: ... here.
2206
2207 * image.c: Move png.h #include earlier to avoid warnings.
2208
2209 * xterm.c:
2210 * xsmfns.c:
2211 * xselect.c:
2212 * xrdb.c:
2213 * xmenu.c:
2214 * xftfont.c:
2215 * xfont.c:
2216 * xfns.c:
2217 * xfaces.c:
2218 * xdisp.c:
2219 * window.c:
2220 * widget.c:
2221 * w32xfns.c:
2222 * w32uniscribe.c:
2223 * w32term.c:
2224 * w32select.c:
2225 * w32reg.c:
2226 * w32proc.c:
2227 * w32menu.c:
2228 * w32inevt.c:
2229 * w32heap.c:
2230 * w32font.c:
2231 * w32fns.c:
2232 * w32console.c:
2233 * w32.c:
2234 * w16select.c:
2235 * vm-limit.c:
2236 * unexsol.c:
2237 * unexec.c:
2238 * unexcw.c:
2239 * unexaix.c:
2240 * undo.c:
2241 * tparam.c:
2242 * textprop.c:
2243 * terminfo.c:
2244 * terminal.c:
2245 * termcap.c:
2246 * term.c:
2247 * syntax.c:
2248 * sound.c:
2249 * sheap.c:
2250 * search.c:
2251 * scroll.c:
2252 * region-cache.c:
2253 * regex.c:
2254 * ralloc.c:
2255 * process.c:
2256 * print.c:
2257 * nsterm.m:
2258 * nsselect.m:
2259 * nsmenu.m:
2260 * nsimage.m:
2261 * nsfont.m:
2262 * nsfns.m:
2263 * msdos.c:
2264 * minibuf.c:
2265 * menu.c:
2266 * marker.c:
2267 * macros.c:
2268 * keymap.c:
2269 * keyboard.c:
2270 * intervals.c:
2271 * insdel.c:
2272 * indent.c:
2273 * gtkutil.c:
2274 * ftxfont.c:
2275 * ftfont.c:
2276 * fringe.c:
2277 * frame.c:
2278 * fontset.c:
2279 * font.c:
2280 * fns.c:
2281 * floatfns.c:
2282 * filelock.c:
2283 * fileio.c:
2284 * emacs.c:
2285 * editfns.c:
2286 * dosfns.c:
2287 * doprnt.c:
2288 * doc.c:
2289 * dispnew.c:
2290 * dired.c:
2291 * dbusbind.c:
2292 * data.c:
2293 * composite.c:
2294 * coding.c:
2295 * cmds.c:
2296 * cm.c:
2297 * chartab.c:
2298 * charset.c:
2299 * character.c:
2300 * ccl.c:
2301 * category.c:
2302 * casetab.c:
2303 * casefiddle.c:
2304 * callproc.c:
2305 * callint.c:
2306 * bytecode.c:
2307 * buffer.c:
2308 * atimer.c: Include setjmp.h. (Bug#4643)
2309
2310 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2311
2312 Remove leftover table unibyte_to_multibyte_table.
2313 * character.c (unibyte_to_multibyte_table): Remove.
2314 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2315 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2316 * character.h (UNIBYTE_TO_CHAR): New macro.
2317 (MAKE_CHAR_MULTIBYTE): Use it.
2318 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2319 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2320 (message_dolog, set_message_1):
2321 * search.c (Freplace_match):
2322 * editfns.c (Fcompare_buffer_substrings):
2323 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2324 (concat):
2325 * insdel.c (copy_text, count_size_as_multibyte):
2326 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2327 * term.c (produce_glyphs):
2328 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2329 * regex.c (RE_CHAR_TO_MULTIBYTE):
2330 * cmds.c (internal_self_insert):
2331 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2332
2333 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2334
2335 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2336
2337 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2338
2339 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
2340
2341 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2342
2343 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2344
2345 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2346 still needed under Tiger.
2347
2348 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2349
2350 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2351 __Apple__.
2352
2353 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2354
2355 2009-10-15 Kenichi Handa <handa@m17n.org>
2356
2357 * print.c (print_object): Escape a symbol like "2E10" too.
2358
2359 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
2360
2361 Cleanups and changes for 64-bit compile under Snow Leopard.
2362 Based on suggestions by Erik Charlebois.
2363
2364 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2365
2366 * nsfont.m (ns_char_width): Replace deprecated call.
2367 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2368 cast argument.
2369 (nsfont_open): Use ns_char_width() everywhere.
2370 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
2371
2372 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2373
2374 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2375 where appropriate.
2376
2377 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2378 where appropriate.
2379 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2380 Use stringWithUTF8String.
2381 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2382
2383 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2384 Add formal protocol mention to inheritance.
2385 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2386
2387 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2388 Fix printf format.
2389 (ns_query_color): Use CGFloat where appropriate.
2390 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
2391 (EmacsScroller-mouseDown:): Use long format in printf, and cast
2392 argument.
2393
2394 * config.in (NS_HAVE_NSINTEGER): Drop.
2395
2396 * dbusbind.c (dbus-method-return-internal)
2397 (dbus-method-error-internal): Use long format in printf, and cast
2398 argument.
2399
2400 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2401 in printf, and cast argument.
2402
2403 * process.c (list_processes_1): Use long format in printf, and
2404 cast argument.
2405
2406 2009-10-11 Glenn Morris <rgm@gnu.org>
2407
2408 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2409
2410 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2411
2412 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2413 menu bar with a small width so it doesn't enlarge the frame.
2414
2415 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
2416
2417 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2418
2419 2009-10-06 Glenn Morris <rgm@gnu.org>
2420
2421 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2422 SOME_MACHINE_LISP (this enters indirectly via DOC).
2423
2424 2009-10-05 Eli Zaretskii <eliz@gnu.org>
2425
2426 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2427
2428 2009-10-04 Eli Zaretskii <eliz@gnu.org>
2429
2430 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2431 Doc fix.
2432
2433 2009-10-03 Martin Rudalics <rudalics@gmx.at>
2434
2435 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2436
2437 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
2438
2439 * lisp.h (Qdelete_directory_internal): Remove, because it is not
2440 used anymore outside fileio.c.
2441
2442 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2443
2444 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
2445
2446 * lisp.h (Qdelete_directory_internal):
2447 Declare, instead of Qdelete_directory.
2448
2449 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2450
2451 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2452
2453 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2454
2455 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
2456
2457 * fileio.c (Fdelete_directory_internal): Rename from
2458 Fdelete_directory. It is not a command anymore. It has no file
2459 name handler.
2460
2461 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2462
2463 * xdisp.c (get_next_display_element): Use an enum in last change.
2464
2465 2009-09-28 Kenichi Handa <handa@m17n.org>
2466
2467 * xdisp.c (get_next_display_element): Pay attention to
2468 unibyte_display_via_language_environment in handling
2469 Vnobreak_char_display.
2470
2471 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2472
2473 * nsterm.h (ns_app_name): New extern variable.
2474
2475 * nsterm.m (ns_app_name): New variable.
2476 (ns_term_init): Set and use it.
2477 (ns_term_shutdown): Use it.
2478
2479 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2480 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2481
2482 * nsfns.m (ns_set_name_iconic, ns_set_name)
2483 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2484 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2485
2486 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2487 Remove double-casting in client_data comparison.
2488
2489 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2490
2491 * keyboard.c (make_lispy_event): Remember last wheel direction.
2492 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2493
2494 2009-09-26 Glenn Morris <rgm@gnu.org>
2495
2496 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2497 internal.elc. Add term/pc-win.elc.
2498 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2499 term/x-win.elc.
2500 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2501 term/w32-win.elc.
2502 (NS_SUPPORT): New.
2503 (lisp): Add NS_SUPPORT.
2504 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2505
2506 2009-09-25 David Reitter <david.reitter@gmail.com>
2507
2508 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2509 on Mac OS X 10.6+ (bug#4513).
2510
2511 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
2512
2513 * frame.c (xrdb_get_resource): Return nil for empty string resources;
2514 some parts of Emacs code (like font selection) don't grok them.
2515 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
2516
2517 2009-09-24 Andreas Schwab <schwab@redhat.com>
2518
2519 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2520
2521 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
2522
2523 * dired.c (Fdirectory_files): Fix typo in docstring.
2524
2525 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2526
2527 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2528 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2529 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2530 under GNUstep.
2531 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2532
2533 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2534 glyph advancement.
2535
2536 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2537
2538 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
2539 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
2540
2541 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2542 deleted (bug #4492).
2543
2544 * nsfont.m (Vns_reg_to_script): New lisp variable.
2545 (syms_of_nsfont): Declare it.
2546 (ns_registry_to_script): New function.
2547 (ns_get_req_script): Call it.
2548 (ns_findfonts): Don't give up on non-unicode registry.
2549
2550 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2551
2552 2009-09-20 Tom Tromey <tromey@redhat.com>
2553
2554 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2555 batch mode (bug#4228).
2556
2557 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
2558
2559 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
2560 carefully. (Bug #4339)
2561
2562 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
2563
2564 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
2565
2566 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2567
2568 * emacs.c (inhibit_x_resources): Update doc string for NS.
2569 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
2570 legacy code for -NXHost. Fix error printf in daemon case.
2571
2572 * nsterm.h (ns_no_defaults): Remove.
2573
2574 * nsterm.m (ns_no_defaults): Remove.
2575 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2576 (ns_use_qd_smoothing): Remove legacy variable.
2577 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2578 don't update the NSWindow itself.
2579 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
2580 state detection and store user rect ourselves. (Bug #3581)
2581
2582 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2583 ns_use_qd_smoothing.
2584
2585 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2586 platform versions. Drop support for emacs-20-style face specs.
2587 (x-close-connection): Drop PSFlush() under OS X.
2588 (x-focus-frame): Activate the app first. (Bug #4180)
2589
2590 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
2591
2592 * emacs.c (inhibit_x_resources): New variable.
2593 (main) [HAVE_NS]: Don't process --quick command line option.
2594 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2595
2596 * lisp.h (inhibit_x_resources): Declare it extern.
2597
2598 * w32reg.c (x_get_string_resource):
2599 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2600
2601 2009-09-17 Eli Zaretskii <eliz@gnu.org>
2602
2603 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2604 Add lisp/term/internal.elc.
2605
2606 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2607
2608 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2609 (bug#4461).
2610
2611 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2612
2613 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2614
2615 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2616 (OBJECTS_MACHINE): Remove, unused.
2617
2618 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2619
2620 * frame.c (x_get_resource_string): Remove unused.
2621
2622 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2623
2624 * xterm.c (x_new_font): Call change_frame_size before calling
2625 x_set_window_size, in case frame size won't change.
2626
2627 * frame.c (x_set_font): Remove dead code.
2628
2629 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2630
2631 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2632
2633 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2634
2635 * lread.c (Fload): Don't output a message after loading an obsolete
2636 package any more (done in Lisp now).
2637
2638 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
2639
2640 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2641
2642 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2643
2644 * keymap.c (Fwhere_is_internal): Use nconc2.
2645
2646 2009-09-11 Alan Mackenzie <acm@muc.de>
2647
2648 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2649 batch mode.
2650
2651 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2652
2653 * xdisp.c (display_mode_element): Detect cycles.
2654
2655 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2656
2657 * keymap.c (where_is_internal): Don't erroneously return nil right after
2658 filling the cache.
2659 (where_is_internal_1): Fix up typo.
2660
2661 2009-09-11 Glenn Morris <rgm@gnu.org>
2662
2663 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2664 share a common doc-string.
2665
2666 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2667
2668 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2669 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2670
2671 * keymap.c (QCadvertised_binding): New constant.
2672 (syms_of_keymap): Initialize it.
2673 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2674 if applicable.
2675
2676 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2677
2678 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2679 (parse_menu_item): Streamline since bindings are recomputed all the
2680 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2681 more and don't support lmenu's menu-alias any more either.
2682
2683 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2684 (where_is_internal): Strip it down to only traverse the keymaps.
2685 Move the cache handling from Fwhere_is_internal to here.
2686 (Fwhere_is_internal): Move the handling of remapping and the choice of
2687 the best binding from where_is_internal to here.
2688 Unify the cached/noncached paths, so remapping is also handled
2689 correctly when the cache is used, and so the cache can be used to
2690 speed up remap-handling when applicable.
2691 Give preference to non-remapped bindings.
2692 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2693 non-remapped bindings.
2694 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2695 command remapping.
2696
2697 * xdisp.c (display_mode_element): Move list length limit from 50 to
2698 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2699
2700 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
2701
2702 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2703
2704 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2705
2706 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2707 (Bug#4334)
2708
2709 * keymap.c (where_is_internal): Filter out shadowed remappings.
2710 Assume that where_is_internal returns unshadowed bindings to simplify
2711 the code and get rid of the gotos. Use ASIZE.
2712
2713 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2714
2715 * xterm.c (x_focus_changed): If we get a focusout and pointer
2716 is invisible, make it visible.
2717
2718 * xterm.h: Remove condition for declaration of
2719 x_*_window_to_frame.
2720
2721 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2722
2723 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2724 initial terminal as well.
2725
2726 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2727
2728 * xterm.h: Rename x_non_menubar_window_to_frame to
2729 x_menubar_window_to_frame.
2730
2731 * xterm.c: Remove declarations also in xterm.h
2732 (XTmouse_position): Do not return valid positions
2733 for clicks in the menubar and the toolbar for Gtk+.
2734
2735 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2736 if the widget for the event has the same top level as a frame,
2737 return the frame.
2738 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2739 internal windows, bug #4122.
2740 (x_non_menubar_window_to_frame): Remove.
2741
2742 2009-09-02 Glenn Morris <rgm@gnu.org>
2743
2744 * buffer.c (default-major-mode): Move most of the doc from here...
2745 (major-mode): ... to here.
2746
2747 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
2748
2749 * process.c (wait_reading_process_output): Keep the descriptor
2750 when pty is used by a non-child process, e.g., in I/O buffer of
2751 GDB this allows inferior to be restarted.
2752
2753 2009-08-29 Eli Zaretskii <eliz@gnu.org>
2754
2755 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2756 both branches into one.
2757
2758 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2759
2760 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2761 (main): Use enable-multibyte-characters rather than
2762 default-enable-multibyte-characters. Output a warning message when
2763 running a unibyte session.
2764
2765 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2766
2767 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2768 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2769 (copy_data_segment): Also copy __program_vars section.
2770 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2771 (dump_it) [LC_DYLD_INFO]: Use it.
2772
2773 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2774
2775 2009-08-28 Eli Zaretskii <eliz@gnu.org>
2776
2777 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2778 $(SRC)/buildobj.h.
2779 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2780 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2781 $(SRC)/buildobj.h.
2782 (clean): Add buildobj.h.
2783
2784 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2785
2786 * print.c (print_object): Set escapeflag to 1 when printing
2787 hashtable keys and values.
2788
2789 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2790
2791 * lread.c (read_integer): Use doubles (and potentially return a float
2792 number) as we do in string-to-number.
2793 (read1): Use strtol to read integers, signal errors on strtol's
2794 overflow and use floats if strtol's output is too large for
2795 Elisp integers.
2796
2797 2009-08-27 Eli Zaretskii <eliz@gnu.org>
2798
2799 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2800 (make-buildobj-SH): Fix last change.
2801 (SRC): Move to before where it's first used.
2802
2803 2009-08-27 Kenichi Handa <handa@m17n.org>
2804
2805 * process.c (send_process): Use encode_coding_object instead of
2806 encode_coding_string to perform eol-conversion even if the string
2807 is unibyte.
2808
2809 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2810 character.
2811
2812 * cmds.c (Fself_insert_command): Avoid unnecessay
2813 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
2814
2815 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2816
2817 * callproc.c (Fcall_process): Remove always true #if.
2818
2819 * lisp.h: Replace #if 0 code for checking with text pointing to
2820 the --enable-checking configure flag.
2821
2822 * emacs.c (main): Mention the --enable-profiling configure flag
2823 instead of using CFLAGS.
2824
2825 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
2826
2827 * Makefile.in (buildobj.h): New target.
2828 (doc.o): Depend on it.
2829 (temacs${EXEEXT}): Don't generate buildobj.lst.
2830 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2831 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2832 ($(BLD)/doc.$(O)): Depend on it.
2833 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2834 provided by Eli Zaretskii.)
2835 ($(TEMACS)): Don't generate buildobj.lst.
2836 * doc.c: Include buildobj.h.
2837 (buildobj): New static variable.
2838 (Fsnarf_documentation): Use it, instead of opening and reading
2839 buildobj.lst.
2840
2841 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
2842
2843 * dbusbind.c (Fdbus_call_method)
2844 (Fdbus_call_method_asynchronously): Use English numeric format for
2845 timeout values in doc string.
2846
2847 2009-08-25 Kenichi Handa <handa@m17n.org>
2848
2849 * alloc.c (mark_char_table): New function.
2850 (mark_object): Use mark_char_table for a char-table.
2851
2852 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2853 (CHAR_TABLE_REF): Use it.
2854
2855 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
2856
2857 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2858 before invoking the newly build emacs to check for load-path
2859 shadowing.
2860
2861 2009-08-22 Glenn Morris <rgm@gnu.org>
2862
2863 * Makefile.in (bootstrap_exe): New variable.
2864 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2865 Use ${bootstrap_exe}.
2866
2867 2009-08-22 Eli Zaretskii <eliz@gnu.org>
2868
2869 * coding.h (encode_coding_string): Don't encode unibyte strings.
2870 (Bug#4047)
2871
2872 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
2873
2874 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2875
2876 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2877 intended as hotfix only.
2878 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2879
2880 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2881
2882 * nsterm.m (ns_get_color): Update documentation properly for last
2883 change, and clean up loose ends in the code left by it. Fix
2884 longstanding bug with 16-bit hex parsing, and add support for
2885 yet another X11 format (rgb:r/g/b) for compatibility.
2886 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2887 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2888
2889 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2890
2891 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2892
2893 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
2894
2895 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2896 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2897 (xd_initialize, xd_pending_messages): Check, whether
2898 $DBUS_SESSION_BUS_ADDRESS is set.
2899
2900 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2901
2902 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2903
2904 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2905
2906 2009-08-20 Glenn Morris <rgm@gnu.org>
2907
2908 * emacs.c (system-type): Doc fix.
2909
2910 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2911
2912 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2913 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2914
2915 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
2916
2917 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2918 New functions.
2919 (xd_initialize): Revert change from 2009-08-16.
2920
2921 2009-08-18 Kenichi Handa <handa@m17n.org>
2922
2923 * fontset.c (Ffontset_font): If a nil element is found in a
2924 font-group vector, return nil.
2925
2926 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
2927
2928 * process.c (status_notify): Don't perform redisplay.
2929 (Fdelete_process, list_processes_1, process_send_signal):
2930 Expliticly perform redisplay.
2931 (wait_reading_process_output): Always check process status, but
2932 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2933
2934 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
2935
2936 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
2937 (XFLOAT_INIT): New macro for storing a float value.
2938 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2939 * fns.c (sxhash): Copy out the value of a float in order to
2940 examine its bytes.
2941 * dbusbind.c (xd_append_arg): Likewise.
2942
2943 * emacs.c (main): Don't call syms_of_data twice.
2944
2945 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
2946
2947 * dbusbind.c (xd_initialize): Add connection file descriptor to
2948 input_wait_mask, in order to let select() detect, whether a new
2949 message has been arrived.
2950 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
2951
2952 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
2953
2954 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2955 New functions.
2956
2957 * lisp.h (xd_pending_messages): Declare.
2958
2959 * keyboard.c (readable_events): Call xd_pending_messages.
2960
2961 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
2962
2963 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
2964
2965 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2966
2967 * buffer.c (set_buffer_internal_1)
2968 (swap_out_buffer_local_variables): Check for unbound local
2969 variables (Bug#4138).
2970
2971 2009-08-14 Eli Zaretskii <eliz@gnu.org>
2972
2973 * process.c (create_pty): Fix last change.
2974
2975 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
2976
2977 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2978 (xbm_load_image): Caller changed.
2979 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
2980
2981 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
2982
2983 * process.c (create_pty): New function.
2984 (Fstart_process): Use it to allow Emacs to just associate a pty
2985 with the buffer. See associated change in gdb-mi.el.
2986 (list_processes_1): Deal with no program name.
2987 (start_process_unwind): Use pid == -2 to mean no process.
2988
2989 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2990
2991 * cmds.c (nonundocount): New global variable.
2992 (keys_of_cmds): Initialize it.
2993 (Fself_insert_command): Use it to combine upto 20 sequential chars
2994 into a single undo entry, just like the Qself_insert_command code in
2995 keyboard.c does.
2996 Call frame_make_pointer_invisible, also like the Qself_insert_command
2997 code in keyboard.c does.
2998 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2999 than its own local replacement for it.
3000
3001 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
3002
3003 * fns.c (concat): Don't re-set string length to its current value.
3004
3005 * coding.h (decode_coding_string, encode_coding_string):
3006 Use SBYTES macro.
3007
3008 * doprnt.c (doprnt_lisp): Delete unused function.
3009 (doprnt): Merge with doprnt1, discarding lispstrings code.
3010 * lisp.h (doprnt_lisp): Don't declare.
3011
3012 2009-08-07 Juri Linkov <juri@jurta.org>
3013
3014 * puresize.h (BASE_PURESIZE): Increase to 1270000.
3015
3016 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3017
3018 * print.c (syms_of_print): Undo previous change.
3019
3020 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
3021
3022 * lread.c (read1, syms_of_lread): Read hashtables back from the
3023 readable format.
3024
3025 * print.c (print_preprocess, print_object): Print hashtables fully
3026 and readably.
3027 (syms_of_print): Provide 'hashtable-print-readable.
3028
3029 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3030
3031 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
3032 no family set.
3033 (nsfont_open): Handle case when entity has no family.
3034
3035 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3036
3037 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
3038 element, not a list, for match case.
3039
3040 2009-07-28 Kenichi Handa <handa@m17n.org>
3041
3042 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
3043 rigidly.
3044
3045 * xfont.c (xfont_list_pattern): Don't ignore the return value of
3046 font_parse_xlfd. Check font properties more rigidly.
3047
3048 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3049
3050 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
3051 bsd-common.h.
3052
3053 2009-07-27 Kenichi Handa <handa@m17n.org>
3054
3055 * xfaces.c (face_with_height): Call font_clear_prop.
3056
3057 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
3058
3059 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
3060
3061 * xterm.c (x_term_init): Use Qx.
3062
3063 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
3064
3065 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
3066 (ns_get_color): Revert 2009-07-16 change.
3067
3068 2009-07-25 Eli Zaretskii <eliz@gnu.org>
3069
3070 * lread.c (syms_of_lread) <force_load_messages>: New variable.
3071 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
3072
3073 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
3074
3075 * coding.h (decode_coding_string, encode_coding_string):
3076 Use SCHARS macro.
3077
3078 * lread.c: Rewrite 2009-07-21 changes.
3079 (load_depth): Delete.
3080 (Qload_in_progress): New variable.
3081 (load_unwind): Don't reference load_depth or load_in_progress.
3082 (Fload): Likewise; specbind Qload_in_progress instead.
3083 (init_lread): Don't initialize load_depth.
3084 (syms_of_lread): Initialize and protect Qload_in_progress.
3085
3086 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3087
3088 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
3089
3090 2009-07-23 Yavor Doganov <yavor@gnu.org>
3091
3092 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
3093
3094 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3095
3096 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
3097 Bugs 3792, 3720, 2402.
3098 (ns_lookup_indexed_color): Check for bad index.
3099 (ns_index_color): Init unused slot to 0.
3100 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3101 Bug 3714, possibly 3082.
3102
3103 2009-07-22 Jason Rumney <jasonr@gnu.org>
3104
3105 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3106 Position IME window at cursor (Bug#2570).
3107 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3108 (globals_of_w32fns): Dynamically load functions required above.
3109
3110 * w32term.c (w32_draw_window_cursor): Send message to reposition
3111 any IME window.
3112
3113 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
3114
3115 * fileio.c: Revert 2009-07-16 changes.
3116 (Vauto_save_include_big_deletions): New variable.
3117 (Fdo_auto_save): Disable auto-save only if
3118 auto-save-include-big-deletions is nil.
3119
3120 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
3121
3122 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3123 the overflowed pixels into account (Bug#3879).
3124
3125 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
3126
3127 * lread.c (load_depth): New variable.
3128 (Fload, load_unwind, init_lread): Set it to the load recursion
3129 depth; set load_in_progress as a simple boolean based on the
3130 current load_depth. (Bug#3892)
3131
3132 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3133
3134 * nsfont.m (ns_has_attribute): Remove.
3135 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3136
3137 2009-07-18 Juri Linkov <juri@jurta.org>
3138
3139 * process.c (Fset_process_query_on_exit_flag): Mention killing
3140 a buffer in docstring.
3141
3142 2009-07-17 Kenichi Handa <handa@m17n.org>
3143
3144 * casetab.c (shuffle): Fix the logic of setting up the cycle.
3145
3146 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3147
3148 * nsfns.m (Fns_set_alpha): Remove function.
3149 (syms_of_nsfns): Don't defsubr it.
3150
3151 * nsterm.m (ns_get_color): Remove incompatible color formats.
3152 (ns_color_to_lisp): Generate #rrggbb color format string.
3153
3154 2009-07-16 Richard Stallman <rms@gnu.org>
3155
3156 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3157 (Fset_buffer_auto_saved): Handle save_length = -2.
3158
3159 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
3160
3161 * xterm.c (Qx_gtk_map_stock): New var.
3162
3163 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3164 of calling intern each time.
3165
3166 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3167
3168 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3169 does tiling.
3170
3171 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3172
3173 2009-07-14 Kenichi Handa <handa@m17n.org>
3174
3175 * font.c (font_vconcat_entity_vectors): New function.
3176 (struct font_sort_data): New member font_driver_preference.
3177 (font_compare): Check font_driver_preference.
3178 (font_sort_entities): The format of the first argument changed.
3179 (font_delete_unmatched): Likewise.
3180 (font_list_entities): The return type changed.
3181 (font_select_entity): The format of the second argument changed.
3182 (font_find_for_lface): Adjuste for the above changes.
3183 Don't suppress the checking of C even if the repertory supports it.
3184 (Flist_fonts): Adjust for the above changes.
3185
3186 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3187 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
3188 Reject a font who has adstyle property that is different from a
3189 langname derived from registry property.
3190 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
3191
3192 2009-07-13 Eli Zaretskii <eliz@gnu.org>
3193
3194 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3195 local copy of dirfilename.
3196
3197 2009-07-13 Kenichi Handa <handa@m17n.org>
3198
3199 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3200 against max_char.
3201
3202 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3203 calling XSYMBOL (sym).
3204
3205 2009-07-11 Eli Zaretskii <eliz@gnu.org>
3206
3207 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3208 New function.
3209 (directory_files_internal) [WINDOWSNT]:
3210 Bind w32-get-true-file-attributes to either t or nil, depending whether
3211 the filesystem of the directory is fast or slow.
3212
3213 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3214 file name.
3215 (is_slow_fs): New function.
3216 (stat): Use it to determine whether to issue more system calls to
3217 get accurate file attributes, when w32-get-true-file-attributes is
3218 `local'.
3219
3220 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3221
3222 * xfns.c (Fx_select_font): Remember last font selected in
3223 x_last_font_name and use that the next time. Also try the frame
3224 parameter font-parameter as default to the font dialog.
3225
3226 2009-07-10 Kenichi Handa <handa@m17n.org>
3227
3228 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3229
3230 2009-07-09 Eli Zaretskii <eliz@gnu.org>
3231
3232 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
3233
3234 * w32.c (stat): Treat UNC file names as residing on remote
3235 drives. (Bug#3542)
3236
3237 2009-07-09 Kenichi Handa <handa@m17n.org>
3238
3239 * fontset.c (fontset_find_font): Fix previous change.
3240
3241 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
3242
3243 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3244 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3245 error flag.
3246
3247 2009-07-08 Kenichi Handa <handa@m17n.org>
3248
3249 * fontset.c (fontset_find_font): Fix the logic of handling
3250 charset_matched.
3251 (font_for_char): Delete unused var.
3252 (generate_ascii_font_name): Delete it.
3253
3254 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3255
3256 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3257 (encode_coding_sjis): Fix the code range check.
3258
3259 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
3260
3261 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3262 (Fexpand_file_name): Copy string data properly (Bug#3772).
3263
3264 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3265
3266 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3267 first MapNotify.
3268
3269 2009-07-07 Kenichi Handa <handa@m17n.org>
3270
3271 * character.h (unibyte_has_multibyte_table): Delete extern.
3272 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3273
3274 * charset.c (Fset_charset_priority): Update charset_unibyte.
3275 (syms_of_charset): Initialize charset_unibyte.
3276
3277 * character.c (unibyte_has_multibyte_table): Delete it.
3278 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3279 charset_unibyte.
3280 (multibyte_char_to_unibyte_safe): Likewise.
3281 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3282
3283 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
3284 (x_produce_glyphs): Likewise.
3285
3286 * .gdbinit (xcharset): Fix the treating $arg0.
3287
3288 2009-07-04 Eli Zaretskii <eliz@gnu.org>
3289
3290 Emulation of `getloadavg' on MS-Windows.
3291 * w32.c: Include float.h
3292 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3293 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3294 (get_native_system_info, get_system_times): New functions.
3295 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3296 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3297 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3298 g_b_init_get_system_times, and num_of_processors.
3299
3300 2009-07-03 Jason Rumney <jasonr@gnu.org>
3301
3302 * w32term.c (w32_initialize): Use standard types.
3303
3304 2009-07-03 Eli Zaretskii <eliz@gnu.org>
3305
3306 * dired.c (Ffile_attributes): Decode user and group names by the
3307 locale's encoding. (Bug#3443)
3308
3309 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3310
3311 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3312 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3313
3314 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3315
3316 * term.c (init_tty): Remove spurious #ifdef.
3317
3318 * m/mips.h: Mention this file is also used for netbsd.
3319 * m/pmax.h: Remove file.
3320
3321 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3322
3323 * xterm.h (struct x_display_info): Add invisible_cursor.
3324 (struct x_output): Add current_cursor.
3325
3326 * xterm.c (XTtoggle_invisible_pointer): New function.
3327 (x_define_frame_cursor): Don't define cursor if invisible or the
3328 same as before. Set current_cursor.
3329 (x_create_terminal): Set toggle_invisible_pointer_hook.
3330
3331 * xfns.c (make_invisible_cursor): New function.
3332 (x_set_mouse_color): Call make_invisible_cursor.
3333 Set current_cursor.
3334 (x_window): Set current_cursor.
3335
3336 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3337
3338 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3339 inserting a character.
3340 (read_avail_input): Call frame_make_pointer_visible.
3341
3342 * frame.c (Vmake_pointer_invisible): New variable.
3343 (frame_make_pointer_invisible, frame_make_pointer_visible):
3344 New functions.
3345 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3346
3347 * frame.h: Declare frame_make_pointer_invisible and
3348 frame_make_pointer_visible.
3349 (struct frame): Add pointer_invisible.
3350
3351 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3352
3353 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3354 frame isn't visible.
3355 (xg_frame_resized): If width/height is -1, get size of window
3356 from X server.
3357
3358 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3359 for MapNotify.
3360
3361 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
3362 here or call change_frame_size. Just call flush_and_sync.
3363 (flush_and_sync): Reintroduce.
3364
3365 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
3366
3367 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
3368
3369 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3370 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3371
3372 * frame.h: Declare Qsticky.
3373
3374 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3375
3376 * nsfns.m (ns_frame_parm_handlers): Ditto.
3377
3378 * frame.c: Declare Qsticky.
3379 (frame_parms): Add sticky.
3380
3381 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3382
3383 * xterm.h: Declare x_set_sticky.
3384
3385 * xterm.c (x_set_sticky): New function.
3386
3387 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3388 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3389 xg_tool_bar_proxy_help_callback.
3390
3391 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3392
3393 * frame.c: Qmaximized is new.
3394 (x_set_frame_parameters): Do not handle fullscreen specially.
3395 Only set width and height if explicitly set.
3396 (x_set_fullscreen): Handle Qmaximized.
3397 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3398 (syms_of_frame): Initialize Qmaximized.
3399
3400 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3401 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3402
3403 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
3404 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3405 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3406 set gravity to NorthWestGravity when USE_GTK.
3407 (set_wm_state): New function.
3408 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3409 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3410 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
3411 or the case when no window manager is running. That means remove calls
3412 to x_real_positions and x_fullscreen_adjust.
3413
3414 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3415 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3416 flush_and_sync.
3417 (xg_height_changed): New function.
3418 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
3419 and gtk_window_set_policy. Set frame gravity after parsing the
3420 geometry string.
3421 (xg_update_frame_menubar, free_frame_menubar)
3422 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3423 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3424 Remove calls to xg_frame_set_char_size.
3425
3426 2009-07-01 Kenichi Handa <handa@m17n.org>
3427
3428 * keyboard.c (decode_keyboard_code): New function.
3429 (tty_read_avail_input): Decode the input bytes if necessary.
3430
3431 * coding.c (setup_coding_system):
3432 Initialize coding->carryover_bytes to 0.
3433 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3434 use Qno_conversion.
3435
3436 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3437
3438 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3439
3440 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
3441
3442 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
3443
3444 2009-06-30 Jason Rumney <jasonr@gnu.org>
3445
3446 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3447 is already loaded.
3448 Set user model ID if supported (bug#1849).
3449
3450 2009-06-29 Jim Meyering <meyering@redhat.com>
3451
3452 Remove useless if-before-xfree test.
3453 * nsfont.m (nsfont_close): Remove useless test.
3454 * term.c (delete_tty): Likewise.
3455 * w32.c (system_process_attributes): Likewise.
3456 * w32font.c (w32font_close): Likewise.
3457 * xfaces.c (x_free_gc): Likewise.
3458 * xselect.c (buffer): Likewise.
3459
3460 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3461
3462 * process.c (send_process): Keep decoded string in a local
3463 variable and protect it from GC. (Bug#3521)
3464
3465 2009-06-28 Eli Zaretskii <eliz@gnu.org>
3466
3467 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3468 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3469
3470 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
3471
3472 * xdisp.c (start_display, handle_face_prop)
3473 (move_it_vertically_backward, cursor_row_fully_visible_p)
3474 (redisplay_window, try_window_id, produce_image_glyph):
3475 Delete some #ifdef-ed out code chunks that are now obsolete.
3476
3477 * xterm.c (x_update_window_begin, x_new_focus_frame)
3478 (x_scroll_bar_handle_click, handle_one_xevent)
3479 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3480 (x_make_frame_visible, x_make_frame_invisible)
3481 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3482 code chunks that are now obsolete.
3483
3484 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
3485
3486 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3487 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3488 for hours, when optimzation is enabled.
3489 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3490 (xd_read_message): Make them static.
3491
3492 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3493
3494 * term.c (turn_on_face): Allow simultaneously bold and dim
3495 terminal faces (Bug#3530).
3496
3497 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
3498
3499 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3500
3501 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3502 truncation glyphs (Bug#3686).
3503
3504 2009-06-27 Glenn Morris <rgm@gnu.org>
3505
3506 * m/pmax.h: Restore file, with only netbsd portions.
3507
3508 2009-06-26 David Reitter <david.reitter@gmail.com>
3509
3510 * nsterm.m (keydown): Avoid infinite loop.
3511
3512 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3513
3514 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3515 the arg FORCE_SYMBOL.
3516
3517 2009-06-25 Kenichi Handa <handa@m17n.org>
3518
3519 * fontset.c (fontset_find_font): When a usable rfont_def is found
3520 in a fallback font-group, make it the first element of the group.
3521
3522 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
3523
3524 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3525
3526 2009-06-24 Kenichi Handa <handa@m17n.org>
3527
3528 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3529 set for C.
3530 (fontset_font): Record the availability of a font for C both in
3531 the realized fontsets of the current one and the default one.
3532
3533 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3534
3535 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3536 conditional, it is always defined on AIX.
3537
3538 2009-06-23 Miles Bader <miles@gnu.org>
3539
3540 * window.c (Vrecenter_redisplay): New variable.
3541 (syms_of_window): Initialize it.
3542 (Qtty): New extern declaration.
3543 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3544
3545 2009-06-23 Jim Meyering <meyering@redhat.com>
3546
3547 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3548 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
3549 pointer dereferences are guaranteed to be valid.
3550
3551 2009-06-23 Kenichi Handa <handa@m17n.org>
3552
3553 * emacs.c (main): Call init_font ().
3554
3555 * font.h (Vfont_log): Extern it.
3556 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3557
3558 * font.c (font_sort_entities, font_list_entities)
3559 (font_matching_entity, font_open_entity)
3560 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3561 (Vfont_log): Delete static.
3562 (font_log_env_checked): Delete this variable.
3563 (font_add_log): Don't check font_log_env_checked.
3564 (font_deferred_log): Check Vfont_log.
3565 (init_font): New function.
3566
3567 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3568
3569 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3570
3571 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3572
3573 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3574
3575 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3576 (face_for_char): Don't call font_deferred_log here.
3577 (font_for_char): Likewise.
3578
3579 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
3580
3581 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3582 rather than its background_width for drawing the overline and
3583 underline (Bug#489).
3584
3585 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3586 rather than its background_width for drawing the overline and
3587 underline (Bug#489).
3588 (xg_default_icon_file): New variable.
3589 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3590 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
3591
3592 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3593 (load_overlay_strings): Remove externs.
3594 (fast_find_position): Function deleted.
3595 (mouse_face_from_buffer_pos): New function, based on
3596 fast_find_position. Correctly handle before-strings,
3597 display-strings, and after-strings (Bug#1220).
3598 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3599
3600 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
3601
3602 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
3603 (move_it_in_display_line_to, move_it_in_display_line_to)
3604 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3605
3606 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
3607
3608 * Branch for 23.1.
3609
3610 2009-06-21 Jason Rumney <jasonr@gnu.org>
3611
3612 * w32term.c (keyboard_codepage): New static variable.
3613 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3614 (w32_read_socket) [WM_CHAR]: Use it to decode character
3615 input (bug#3237).
3616 (w32_initialize): Initialize it.
3617 (codepage_for_locale): New function.
3618
3619 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
3620
3621 * process.c (status_message): Pass Faset index argument as a lisp
3622 object, so as to work with USE_LISP_UNION_TYPE.
3623
3624 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3625
3626 * coding.c (Ffind_coding_systems_region_internal):
3627 Cache checked characters.
3628
3629 2009-06-18 Kenichi Handa <handa@m17n.org>
3630
3631 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
3632
3633 2009-06-18 Andreas Schwab <aschwab@redhat.com>
3634
3635 * xdisp.c (redisplay_internal): Check that the frame is still
3636 live after redisplay of its windows.
3637 (redisplay_windows): Check that the window is still live.
3638
3639 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3640
3641 * coding.c (detect_coding_utf_16): Fix previous change.
3642
3643 2009-06-16 Kenichi Handa <handa@m17n.org>
3644
3645 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3646 UTF-16 by checking the dispersion of Eth and Oth bytes.
3647
3648 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3649
3650 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3651
3652 2009-06-15 Kenichi Handa <handa@m17n.org>
3653
3654 * process.c (status_message): Fix previous change. Be sure to
3655 decode a localized string.
3656
3657 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3658
3659 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3660 add comment explaining why.
3661
3662 2009-06-14 Sidney Markowitz <sidney@sidney.com>
3663
3664 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
3665
3666 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3667
3668 * nsfont.m (ns_attribute_value): Remove.
3669 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3670 (ns_has_attribute): Shrink the normal range.
3671 (ns_findfonts): Don't worry about requested spec in determining
3672 need for synthItal.
3673 (ns_get_covering_families): Retain scriptToFamilies.
3674
3675 2009-06-14 Seiji Zenitani <zenitani@mac.com>
3676
3677 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3678
3679 2009-06-11 Kenichi Handa <handa@m17n.org>
3680
3681 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3682 overhang for the static composition case.
3683
3684 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3685
3686 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3687 overhang for the automatic composition case.
3688
3689 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3690 composition case.
3691
3692 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
3693
3694 * xdisp.c (get_next_display_element): When handling wrap-prefix
3695 and line-prefix, treat \n as a control character (bug#3502).
3696
3697 2009-06-10 Kenichi Handa <handa@m17n.org>
3698
3699 * font.c (font_parse_family_registry): Fix for one-char foundry.
3700 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3701
3702 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3703
3704 * process.c (status_message): Fix handling of multibyte signal
3705 string (Bug#3499).
3706
3707 2009-06-09 Jim Meyering <meyering@redhat.com>
3708
3709 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3710 color name is missing.
3711
3712 2009-06-09 Kenichi Handa <handa@m17n.org>
3713
3714 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3715 FROM-CODE and TO-CODE are codepoints of CHARSET.
3716
3717 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3718
3719 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3720
3721 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3722
3723 Changes to support :script/:lang/:otf in NS font driver.
3724 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3725 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3726 indicate not part of font driver interface, and change callers.
3727 (ns_get_family): Remove pointless null check.
3728 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3729 ns_spec_to_descriptor, ns_descriptor_to_entity.
3730 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3731 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3732 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3733 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3734 (ns_get_req_script, ns_accumulate_script_ranges)
3735 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3736 New functions.
3737 (nsfont_list, nsfont_match): Use ns_findfonts.
3738 (nsfont_open): Use font descriptor instead of traits.
3739 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3740 (dump_glyphstring): Rename to ns_dump_glyphstring.
3741
3742 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3743
3744 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3745
3746 * fontset.c (fontset_from_font): Remove NS-specific code.
3747
3748 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
3749
3750 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3751 nonactive windows.
3752
3753 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
3754
3755 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
3756
3757 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3758
3759 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3760
3761 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
3762
3763 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3764 account for the overflowing of newlines into the last glyph on the
3765 display line (Bug#3482).
3766
3767 2009-06-05 David Reitter <david.reitter@gmail.com>
3768
3769 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3770 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
3771 Fns_selection_exists_p, Fns_selection_owner_p.
3772
3773 2009-06-03 Jason Rumney <jasonr@gnu.org>
3774
3775 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3776 available. (Bug#3379)
3777
3778 2009-05-29 Kenichi Handa <handa@m17n.org>
3779
3780 * coding.c (get_translation_table):
3781 Check Venable_character_translation.
3782
3783 2009-05-26 David Reitter <david.reitter@gmail.com>
3784
3785 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3786 (x_make_frame_visible): Move frame to front rather than calling
3787 ns_raise_frame().
3788 (keyDown:): Do not swallow events that aren't re-sent if frame
3789 isn't key window.
3790 (drawRect:): Do not set visibility/iconified flags because
3791 drawRect may be called by NSView even if the frame is hidden.
3792
3793 * nsfns.m (Fx_create_frame): Follow other ports in
3794 determining visibility; default to t. Ensure async_visible is set.
3795
3796 2009-05-23 Eli Zaretskii <eliz@gnu.org>
3797
3798 * dired.c (Ffile_attributes): Doc fix.
3799
3800 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
3801
3802 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3803
3804 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3805
3806 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3807 and xfont_scratch_props.
3808 (syms_of_xfont): Do it here instead.
3809 (xfont_find_ccl_program): Delete, unused.
3810 (xfont_open): Delete unused var `i'.
3811
3812 2009-05-21 Kenichi Handa <handa@m17n.org>
3813
3814 * fontset.c (Qlatin): Don't make it static.
3815
3816 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3817 New functions.
3818 (xfont_scripts_cache, xfont_scratch_props): New variables.
3819 (Qlatin, Vscalable_fonts_allowed): Extern it.
3820 (xfont_list_pattern): Argument changed. Callers changed.
3821 Check Vscalable_fonts_allowed. Check the support of a script.
3822 (xfont_list): Don't reject a font spec with :script property.
3823 (xfont_has_char): Fix setting of encoding.
3824 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3825 xfont_scratch_props.
3826
3827 2009-05-19 Kenichi Handa <handa@m17n.org>
3828
3829 * font.c (font_sort_entities): Rename from font_sort_entites.
3830 Callers changed.
3831
3832 2009-05-18 Kenichi Handa <handa@m17n.org>
3833
3834 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3835
3836 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3837
3838 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3839 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3840
3841 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3842
3843 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3844 (x_delete_terminal): Dissociate resource database from display and
3845 then call XrmDestroyDatabase before closing display.
3846
3847 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3848
3849 * nsterm.m (ns_read_socket): Remove unused variable.
3850 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3851 whether selected frame is viable before raising it (based on patch
3852 by David Reitter), and improve commentary.
3853 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
3854
3855 2009-05-15 Kenichi Handa <handa@m17n.org>
3856
3857 * font.c (Ffont_spec): Check arguments.
3858
3859 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
3860
3861 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3862 weight when testing attributes (Bug#3282).
3863
3864 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3865
3866 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3867 what we expect to get in the next ConfigureNotify event.
3868
3869 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3870 before Xft one (Bug#1696).
3871
3872 2009-05-07 David Reitter <david.reitter@gmail.com>
3873
3874 * nsfns.m (Fx_display_planes): Compute bitplanes using
3875 NSBitsPerPixelFromDepth (Bug#3207).
3876
3877 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
3878
3879 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3880
3881 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
3882
3883 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3884
3885 2009-05-07 David Reitter <david.reitter@gmail.com>
3886
3887 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3888 Respect mouse face background.
3889
3890 2009-05-07 David Reitter <david.reitter@gmail.com>
3891
3892 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3893 Mouse movement/highlight: bracket drawing operations
3894 in ns_update_begin and ns_update_end.
3895
3896 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3897
3898 * nsfns.m (ns_get_screen): Rewrite.
3899 Don't presume selected-frame is of type `ns'.
3900
3901 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3902 all drivers.
3903
3904 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3905
3906 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3907
3908 * keyboard.h (add_user_signal): Fix typo in extern.
3909
3910 * lisp.h (add_user_signal): Remove extern.
3911
3912 * unexelf.c (unexec): Consider a section to precede the .bss section
3913 if its addresses overlap that of .bss.
3914 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3915 instead of dumping process.
3916
3917 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3918
3919 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3920
3921 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3922
3923 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3924
3925 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3926
3927 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3928 any statements.
3929
3930 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3931
3932 * process.c (read_process_output): Make sure the current buffer is
3933 always restored.
3934
3935 * coding.c (record_conversion_result): Don't modify
3936 Vlast_code_conversion_error for successful result.
3937 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3938
3939 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3940
3941 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
3942 (load_charset_map): Remove unnecessary code.
3943
3944 2009-04-30 David Reitter <david.reitter@gmail.com>
3945
3946 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
3947 through f24.
3948
3949 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
3950
3951 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3952
3953 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3954 face_at_buffer_position.
3955 (face_before_or_after_it_pos, get_next_display_element)
3956 (note_mouse_highlight): Update face_at_buffer_position call.
3957
3958 * term.c (term_mouse_highlight):
3959 * msdos.c (IT_note_mouse_highlight):
3960 * fontset.c (Finternal_char_font):
3961 * font.c (font_at, font_range): Update face_at_buffer_position call.
3962
3963 * dispextern.h (face_at_buffer_position): Update prototype.
3964
3965 2009-04-30 Kenichi Handa <handa@m17n.org>
3966
3967 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
3968
3969 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3970
3971 * callproc.c (Fcall_process): Fix GC protection. Make sure
3972 current buffer is always restored.
3973
3974 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3975
3976 * atimer.c (init_atimer): Also clear stopped_atimers.
3977
3978 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3979
3980 * process.c (create_process): Clean up merger residues of
3981 2008-07-17 change.
3982
3983 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
3984
3985 * lread.c (Vread_circle): New variable.
3986 (read1): Disable recursive read if Vread_circle is nil.
3987
3988 2009-04-29 Kenichi Handa <handa@m17n.org>
3989
3990 * fontset.h (set_default_ascii_font): Delete extern.
3991
3992 * fontset.c (set_default_ascii_font): Delete this unused function.
3993
3994 * frame.c (x_set_font): When ARG is a font-object, check if the
3995 font-object matches with the ASCII font-spec of the frame's
3996 fontset. If not, create a new fontset for the frame. (Bug #3075)
3997
3998 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3999
4000 * fns.c (Flocale_info): Protect vector from GC during decoding.
4001
4002 * process.c (Fstart_process): Protect argv strings from GC during
4003 encoding.
4004
4005 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
4006
4007 * sysdep.c: Include <ctype.h>.
4008
4009 2009-04-27 David Reitter <david.reitter@gmail.com>
4010
4011 * nsfont.m (nsfont_open): Remove unused variable shrink.
4012 Remove commented-out code.
4013
4014 2009-04-26 Johan Bockgård <bojohan@gnu.org>
4015
4016 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4017
4018 2009-04-25 Jason Rumney <jasonr@gnu.org>
4019
4020 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
4021
4022 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4023
4024 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
4025 Swap bytes in short integer if fringe bitmap width > 8.
4026
4027 2009-04-23 Kenichi Handa <handa@m17n.org>
4028
4029 * xfaces.c (Fx_list_fonts): If a font size is specified in
4030 PATTERN, set it in returned scalable fonts.
4031
4032 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
4033
4034 * keyboard.c (Fset_input_meta_mode): Doc fix.
4035
4036 * dispnew.c (Fsend_string_to_terminal): Doc fix.
4037
4038 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
4039
4040 * coding.c (Fterminal_coding_system): Doc fix.
4041
4042 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
4043 (Fx_display_pixel_height, Fx_display_planes)
4044 (Fx_display_color_cells, Fx_server_max_request_size)
4045 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4046 (Fx_display_mm_height, Fx_display_mm_width)
4047 (Fx_display_backing_store, Fx_display_visual_class)
4048 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
4049 Doc fixes, replacing "terminal id" with "terminal object".
4050 (check_x_display_info): Handle terminal objects instead of
4051 terminal ids.
4052
4053 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
4054 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
4055 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
4056 Doc fixes, replacing "terminal id" with "terminal object".
4057
4058 2009-04-21 Kenichi Handa <handa@m17n.org>
4059
4060 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
4061 (font_score): Check AVGWIDTH too.
4062
4063 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
4064 worst case.
4065 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
4066 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
4067
4068 2009-04-19 Jason Rumney <jasonr@gnu.org>
4069
4070 The following changes fix Bug#3005 for wide glyphs on each platform,
4071 without reintroducing Bug#1258 for stretch glyphs.
4072
4073 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
4074 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
4075 get_phys_cursor_geometry.
4076
4077 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
4078 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
4079 using get_phys_cursor_geometry.
4080
4081 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
4082 correctly calculated.
4083
4084 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
4085
4086 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
4087 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
4088 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
4089 is deprecated.
4090
4091 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
4092
4093 * font.c (font_put_frame_data): Use xfree instead of free.
4094
4095 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
4096
4097 * w32font.c (Qja, Qko): Remove declarations.
4098 (syms_of_w32font): Don't DEFSYM them.
4099
4100 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
4101
4102 * font.c (Qja, Qko): Move definitions here from ftfont.c.
4103
4104 * font.h (Qja, Qko): Extern them.
4105
4106 * ftfont.c (Qja, Qko): Remove declarations.
4107
4108 * xfont.c (Qja, Qko): Remove declarations.
4109
4110 2009-04-17 Kenichi Handa <handa@m17n.org>
4111
4112 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4113 string from a vector to handle Latin-1 characters correctly.
4114
4115 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4116 entity even if the cache hits.
4117
4118 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
4119
4120 * search.c (boyer_moore): Use zero as marker value for a possible
4121 match instead of depending on overflow behavior. (Bug#2844)
4122
4123 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4124 * lisp.h: Adjust prototypes.
4125
4126 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
4127
4128 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4129 change (Bug#3003).
4130
4131 2009-04-16 Kenichi Handa <handa@m17n.org>
4132
4133 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
4134
4135 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4136 adstyle.
4137
4138 * ftfont.c (Qja, Qko): Don't make them static.
4139 (enum ftfont_cache_for): New enum.
4140 (fc_charset_table): Undo the previous change.
4141 (ftfont_get_latin1_charset): Delete it.
4142 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4143 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
4144 non-scarable font, try to get AVERAGE_WIDTH.
4145 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4146 Change ft_face_cache from a list of a hash-table. Don't check
4147 `ja' and `ko' adstyle here.
4148 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4149 FTFONT_CACHE_FOR_CHARET.
4150 (ftfont_get_charset): Undo the previous change.
4151 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
4152 (ftfont_close): Likewise.
4153 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4154
4155 * font.c (font_sort_entites): Change the meaning of the arg
4156 BEST-ONLY. Don't optimize for VEC of lenght 1.
4157 (font_select_entity): Just return the value of font_sort_entites.
4158
4159 * xfaces.c (merge_face_vectors): Reflect font properties in
4160 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4161 font_clear_prop if a face attribute doesn't change.
4162
4163 * charset.h (charset_ksc5601): Extern it.
4164
4165 * charset.c (charset_ksc5601): New variable.
4166 (Fdefine_charset_internal): Set charset_ksc5601.
4167 (init_charset_once): Initialize charset_ksc5601 to -1.
4168
4169 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4170
4171 * fileio.c (history_delete_duplicates): Remove unused declaration.
4172
4173 * callint.c (history_delete_duplicates): New declaration.
4174 (Fcall_interactively): Remove command history duplicates when
4175 history_delete_duplicates is true.
4176
4177 2009-04-14 Eli Zaretskii <eliz@gnu.org>
4178
4179 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4180
4181 2009-04-14 Kenichi Handa <handa@m17n.org>
4182
4183 * font.c (Ffont_info): Fix docstring. Fix the second element of
4184 the returned value (bug#2949).
4185
4186 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
4187
4188 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4189
4190 2009-04-14 Kenichi Handa <handa@m17n.org>
4191
4192 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4193 encoding charset is ascii_compatible.
4194
4195 * charset.c (Fdefine_charset_internal): Make charset
4196 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4197 code_offset is 0, and covers all ASCII characters.
4198
4199 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4200
4201 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4202 (ns_string_to_pasteboard_internal):
4203 * nsmenu.m (process_dialog):
4204 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4205 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4206 * lisp.h (Fx_load_color_file): Declare.
4207
4208 2009-04-13 Kenichi Handa <handa@m17n.org>
4209
4210 * font.c (font_delete_unmatched): Preserve the order of list elements.
4211 (font_select_entity): Suppress the code to optimize for the same
4212 kind of fonts.
4213 (font_load_for_lface): Get a font that supports at least ASCII
4214 characters.
4215
4216 * ftfont.c (Qja, Qko): New variables.
4217 (fc_charset_table): Delete uniquifier data for iso8859-1.
4218 (ftfont_get_latin1_charset): New function.
4219 (get_adstyle_property): New function.
4220 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4221 bitmap fonts.
4222 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4223 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4224 `ko' or `ja'.
4225 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
4226 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
4227 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4228 property.
4229 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4230 (syms_of_ftfont): DEFSYM Qja and Qko.
4231
4232 2009-04-09 Kenichi Handa <handa@m17n.org>
4233
4234 * charset.c (map_charset_chars): For a charset of `superset'
4235 method, fix calculation of code range.
4236
4237 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4238 from the list of extra properties.
4239 (font_clear_prop): Be sure to delete `:name' font property.
4240
4241 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4242
4243 * dispnew.c (redraw_overlapping_rows): Fix detection of
4244 overlapping for topmost and bottommost rows.
4245
4246 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
4247
4248 2009-04-06 Jason Rumney <jasonr@gnu.org>
4249
4250 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4251
4252 2009-04-06 Kenichi Handa <handa@m17n.org>
4253
4254 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4255
4256 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4257
4258 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4259
4260 * ftfont.c (ftfont_open): Fix checking of the return value of
4261 FT_Load_Char. Fix setting font->underline_thickness.
4262
4263 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
4264
4265 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4266 (Fterminal_parameters, Fterminal_parameter)
4267 (Fset_terminal_parameter): In doc string, refer to terminal
4268 objects rather than terminal ids.
4269
4270 2009-04-04 Eli Zaretskii <eliz@gnu.org>
4271
4272 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4273 ret_lim_data. (Bug#2867)
4274
4275 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
4276
4277 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4278 so they don't get wider than the window, matching 2006-01-23
4279 change to the partner function in xdisp.c (Bug#2800).
4280
4281 2009-04-03 Kenichi Handa <handa@m17n.org>
4282
4283 * print.c (print_object): Make each lowest sub_char_table start a
4284 new line (Bug#2866).
4285
4286 2009-04-02 Kenichi Handa <handa@m17n.org>
4287
4288 * fontset.c (fontset_font): Record no-font when a fontset
4289 explicitly tells not to try another font-specs.
4290
4291 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4292
4293 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4294
4295 2009-03-30 Kenichi Handa <handa@m17n.org>
4296
4297 * fontset.c (fontset_from_font): Specify only registry in a
4298 font-spec for all characters supported by that registry.
4299
4300 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4301 even if HAVE_M17N_FLT is not defined.
4302
4303 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4304
4305 * ftfont.c: Conditionalize prototyping and use of
4306 ftfont_variation_glyphs.
4307
4308 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4309
4310 * frame.c (delete_frame): Work around compiler bug.
4311
4312 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4313 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4314 Some more EMACS_INT.
4315 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4316
4317 * xdisp.c (dump_glyph): Fix typo.
4318
4319 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4320 (adjust_markers_gap_motion, adjust_markers_for_delete)
4321 (adjust_markers_for_insert, adjust_point)
4322 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4323 (make_gap, copy_text, count_size_as_multibyte, insert)
4324 (insert_and_inherit, insert_before_markers)
4325 (insert_before_markers_and_inherit, insert_1)
4326 (count_combining_before, count_combining_after, insert_1_both)
4327 (insert_from_string, insert_from_string_before_markers)
4328 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4329 (insert_from_buffer_1, adjust_after_replace)
4330 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4331 (replace_range_2, del_range, del_range_1, del_range_byte)
4332 (del_range_both, del_range_2, modify_region)
4333 (prepare_to_modify_buffer, signal_before_change)
4334 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4335 for buffer positions and sizes.
4336 * lisp.h: Adjust prototypes accordingly.
4337
4338 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4339 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4340 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4341
4342 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4343
4344 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4345
4346 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4347 lines and columns so we keep the same pixel height and width.
4348
4349 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4350 the property _NET_WM_STATE has changed.
4351 (x_handle_net_wm_state): New function to update frame parameter
4352 fullscreen.
4353 (x_term_init): Initialize atoms for _NET_WM_STATE.
4354
4355 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4356
4357 2009-03-27 Kevin Ryde <user42@zip.com.au>
4358
4359 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4360 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4361 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4362 (Fgpm_mouse_stop): Pass that new parameter.
4363 * termhooks.h (close_gpm): Adjust prototype.
4364
4365 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4366
4367 * lisp.h (Fx_focus_frame): Declare.
4368
4369 * callint.c (Fcall_interactively): For '^' just delegate the work to
4370 handle-shift-selection.
4371 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4372
4373 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
4374
4375 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4376
4377 * data.c (Qinteractive_form): New variable.
4378 (Finteractive_form): Use it.
4379
4380 * eval.c (Fcommandp): Use Qinteractive_form.
4381
4382 2009-03-24 Jason Rumney <jasonr@gnu.org>
4383
4384 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4385 Calculate total size precisely. Decode environment variables
4386 before substituting. (Bug#38)
4387
4388 2009-03-24 Kenichi Handa <handa@m17n.org>
4389
4390 * font.c (find_font_encoding): Return Qnil for unsupported
4391 encoding (Bug#2722).
4392
4393 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4394
4395 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4396 that gdpy is set.
4397
4398 2009-03-22 Alan Mackenzie <acm@muc.de>
4399
4400 * callint.c (Finteractive): Clarify the doc string - even
4401 promptless elements need \n separators.
4402
4403 2009-03-22 Jason Rumney <jasonr@gnu.org>
4404
4405 * w32term.c (syms_of_w32term): Doc fix for
4406 x-use-underline-position-properties.
4407
4408 2009-03-21 Eli Zaretskii <eliz@gnu.org>
4409
4410 * w32.c (getpwuid): Change argument type to unsigned.
4411 (struct w32_id): Change type of `rid' member to unsigned.
4412 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4413 argument ID to unsigned. All callers changed.
4414 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4415
4416 2009-03-20 Eli Zaretskii <eliz@gnu.org>
4417
4418 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4419 negative, produce a float value.
4420
4421 * dired.c (make_uid, make_gid): New functions.
4422 (Ffile_attributes): Use them to avoid negative UID and GID.
4423
4424 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
4425
4426 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4427 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4428 Fix typos in docstrings.
4429
4430 2009-03-19 Kenichi Handa <handa@m17n.org>
4431
4432 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
4433 changed, use font_load_for_lface to get a new font object.
4434 Call free_realized_fontset after handling ASCII font change.
4435
4436 * frame.c (x_set_font): Handle the case that ARG is a cons.
4437
4438 2009-03-19 Glenn Morris <rgm@gnu.org>
4439
4440 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4441
4442 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
4443
4444 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4445
4446 2009-03-19 Kenichi Handa <handa@m17n.org>
4447
4448 * charset.c (load_charset_map_from_file): When a mapfile can't be
4449 loaded, signal an error.
4450
4451 2009-03-18 Eli Zaretskii <eliz@gnu.org>
4452
4453 * dired.c (Ffile_attributes): Make sure UID and GID are always
4454 positive, even if the value is too large for a positive EMACS_INT.
4455 Doc fix.
4456
4457 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4458
4459 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4460
4461 * xmenu.c (xdialog_show): Move Fredisplay call ...
4462 (Fx_popup_dialog): ... here.
4463
4464 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4465
4466 * dired.c (file_name_completion): Disable the first optimization just
4467 installed, since it is not implemented correctly.
4468
4469 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4470
4471 * dired.c (file_name_completion): Check completion-ignored-extensions
4472 only if the entry can affect bestmatch.
4473 Stop the search early, as Ftry_completion already does.
4474
4475 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
4476
4477 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
4478
4479 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
4480
4481 * keyboard.c (parse_menu_item): Don't display remappings as menu
4482 equivalent bindings (Bug#788).
4483
4484 2009-03-15 Jason Rumney <jasonr@gnu.org>
4485
4486 * w32term.h (WM_EMACS_PAINT): New message.
4487 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4488 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4489 before passing to lisp thread. (Bug#950)
4490
4491 2009-03-14 David Reitter <david.reitter@gmail.com>
4492
4493 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4494 variable as it was never reset.
4495 (ns_term_init): Remove initialization of Lisp-settable defaults
4496 and ns_expand_space.
4497 (-setPanelFromDefaultValues): Remove ns_expand_space.
4498 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4499 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
4500 i.e. no additional spacing, similar to Carbon port.
4501
4502 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4503 * nsfns.m (ns-popup-prefs-panel): Remove.
4504
4505 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4506
4507 * sound.c (alsa_configure): Remove call to deprecated
4508 snd_pcm_sw_params_set_xfer_align.
4509
4510 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
4511
4512 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4513 after clicking in a detached tool bar.
4514 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4515
4516 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4517
4518 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4519 int/Lisp_Object mixup).
4520
4521 2009-03-13 Kenichi Handa <handa@m17n.org>
4522
4523 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
4524 Handle NAME nil and t correctly. Callers changed.
4525 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4526 (set_fontset_font): Change ARG to a vector. Handle range_list in
4527 ARG correctly.
4528 (Fset_fontset_font): Fix the case that TARGET is both a script
4529 name and charset name. Adjust the arg to set_fontset_font for
4530 the above change.
4531 (fontset_from_font): Fix previous change.
4532 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
4533 entry. If FONTSET is the default fontset, don't set the extra
4534 slot of the returning char-table.
4535
4536 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
4537
4538 * nsfns.m (Fx_close_connection): Doc fix.
4539 (Fns_do_applescript): Reflow docstring.
4540 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4541 (Fx_display_pixel_width, Fx_display_pixel_height)
4542 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4543 Fix typos in docstrings.
4544 (Fns_set_alpha): Fix typos in error messages.
4545
4546 2009-03-12 David Reitter <david.reitter@gmail.com>
4547
4548 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
4549 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4550 were used for such events.
4551
4552 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4553 (toggleToolbar, performDragOperation, runHelp): Use it.
4554
4555 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
4556 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4557
4558 2009-03-11 Kenichi Handa <handa@m17n.org>
4559
4560 * font.h (font_open_by_spec): Extern it.
4561
4562 * font.c (font_open_by_spec): New function.
4563 (font_open_by_name): Use font_open_by_spec.
4564
4565 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4566 fontset of the frame.
4567
4568 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4569 modify the default font of frames that use this fontset.
4570 (num_auto_fontsets): New variable.
4571 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4572 name. Be sure to set FONTSET_ASCII to the correct font name.
4573 (update_auto_fontset_alist): New function.
4574
4575 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
4576
4577 * makefile.w32-in: Update dependencies.
4578
4579 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4580
4581 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4582
4583 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4584
4585 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4586
4587 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
4588
4589 * lread.c (Feval_buffer): Doc fix.
4590
4591 2009-03-09 Kenichi Handa <handa@m17n.org>
4592
4593 * charset.c (Qfile_name_handler_alist): Extern it.
4594 (load_charset_map_from_file): Temporarily bind
4595 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4596
4597 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
4598
4599 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4600 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
4601
4602 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4603
4604 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4605 (x_set_window_size): Change back to calculated method of setting
4606 toolbar height under Cocoa. (Bug#2546)
4607 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4608 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4609
4610 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4611
4612 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4613 accelerator in parens under GNUstep.
4614
4615 2009-03-06 Kenichi Handa <handa@m17n.org>
4616
4617 These changes are to detect incorrect composition sequence without
4618 looking ahead the source. (Bug#2370)
4619
4620 * coding.h: Include "composite.h".
4621 (enum compisition_state): New enum.
4622 (struct compisition_status): New struct.
4623 (struct iso_2022_spec): New member cmp_status.
4624 (struct emacs_mule_spec): New struct.
4625 (struct coding_system): New members ctext_extended_segment_len and
4626 embedded_utf_8. Change the union member
4627 spec.emacs_mule_full_support to spec.emacs_mule.
4628
4629 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4630 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
4631 (MAX_ANNOTATION_LENGTH): Define to 5.
4632 (ADD_COMPOSITION_DATA): New arg nbytes.
4633 (emacs_mule_char): New arg cmp_status.
4634 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4635 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4636 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4637 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4638 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4639 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4640 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4641 (EMACS_MULE_COMPOSITION_END): New macro.
4642 (emacs_mule_finish_composition): New function.
4643 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4644 (decode_coding_emacs_mule): Avoid long looking ahead while
4645 handling composition.
4646 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4647 (ENCODE_COMPOSITION_RULE): New macro.
4648 (finish_composition): New function.
4649 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4650 (DECODE_COMPOSITION_START): New implementation.
4651 (DECODE_COMPOSITION_END): Likewise.
4652 (STORE_COMPOSITION_RULE): New macro.
4653 (decode_coding_iso_2022): Avoid long looking ahead while handling
4654 composition, CTEXT extended segment, and embedded UTF-8.
4655 (setup_coding_system): For a coding of type iso-2022, reset
4656 CODING_ISO_EXTSEGMENT_LEN (coding) and
4657 CODING_ISO_EMBEDDED_UTF_8 (coding).
4658 (get_translation): Delete arguments last_block, from_nchars,
4659 to_nchars. Callers changed.
4660 (produce_chars): Don't modify charbuf. Adjusted for the change of
4661 get_translation.
4662 (produce_composition): Adjust for the new annotation sequence.
4663 (handle_composition_annotation): Likewise.
4664 (consume_chars): Adjust for the change of get_translation.
4665
4666 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4667
4668 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
4669
4670 2009-03-05 Kenichi Handa <handa@m17n.org>
4671
4672 * font.c (font_select_entity): New function.
4673 (font_find_for_lface): Use font_select_entity to select a font.
4674
4675 * fontset.c (fontset_find_font): If a font found without
4676 restricting to the characters C doesn't support C, try to find a
4677 font with C restriction.
4678
4679 2009-03-04 Nikolaj Schumacher <me@nschum.de>
4680
4681 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
4682
4683 2009-03-04 Jason Rumney <jasonr@gnu.org>
4684
4685 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4686 characters that have already been read. (Bug#2569)
4687
4688 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4689 Log an error message if check_image_size failed.
4690 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4691 (gs_load): Mention max-image-size in size error message. (Bug#2560)
4692
4693 2009-03-02 Eli Zaretskii <eliz@gnu.org>
4694
4695 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4696 when decoding process output.
4697
4698 2009-03-01 Richard M Stallman <rms@gnu.org>
4699
4700 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4701
4702 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4703
4704 2009-02-28 Eli Zaretskii <eliz@gnu.org>
4705
4706 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4707 (decode_coding_emacs_mule, decode_coding_iso_2022)
4708 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4709 (decode_coding_raw_text, decode_coding_charset)
4710 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4711 Honor inhibit-eol-conversion. (Bug #2186)
4712
4713 2009-02-28 Jason Rumney <jasonr@gnu.org>
4714
4715 * coding.c (detect_coding_charset): If not checking latin extra,
4716 fail on characters between 0x80 and 0xA0. (Bug#2354)
4717
4718 2009-02-28 Eli Zaretskii <eliz@gnu.org>
4719
4720 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
4721 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
4722
4723 2009-02-27 Glenn Morris <rgm@gnu.org>
4724
4725 * callint.c (Finteractive): Doc fix.
4726
4727 2009-02-27 Kenichi Handa <handa@m17n.org>
4728
4729 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4730
4731 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
4732
4733 * font.c (font_style_to_value): Set value for unknown symbols to
4734 100 instead of 255.
4735 (weight_table, slant_table, width_table): Treat "unspecified" as
4736 the default value.
4737
4738 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
4739
4740 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4741
4742 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
4743
4744 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4745 error as soon as a recursive load is detected.
4746
4747 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4748
4749 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4750 before caching.
4751
4752 2009-02-24 Kenichi Handa <handa@m17n.org>
4753
4754 * fontset.c (fontset_find_font): Fix the condition for checking
4755 unavailable font.
4756
4757 2009-02-24 Glenn Morris <rgm@gnu.org>
4758
4759 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4760 whitespace that confuses documentation.
4761
4762 2009-02-23 Miles Bader <miles@gnu.org>
4763
4764 * process.c (Flist_system_processes, Fprocess_attributes)
4765 (syms_of_process): Rename `system-process-attributes' to
4766 `process-attributes'.
4767
4768 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4769
4770 * coding.h (struct coding_system): Make safe_charsets a pointer to
4771 unsigned char.
4772 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4773 being 255.
4774 (SAFE_CHARSET_P): Likewise.
4775 (setup_iso_safe_charsets): Properly setup safe_charsets.
4776 (Fdefine_coding_system_internal): Likewise.
4777 (setup_coding_system): Likewise. Remove unneeded casts.
4778 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4779 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4780 unneeded casts.
4781
4782 * insdel.c (del_range_2): Don't modify gap contents when called
4783 from decode_coding_object. (Bug#1809)
4784
4785 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
4786
4787 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4788 Qfont_object.
4789 (Ftype_of): Recognize font objects.
4790
4791 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4792
4793 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4794 moved to data.c.
4795
4796 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4797
4798 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4799 async_iconified. Based on a patch by Christian Lynbech
4800 <christian.lynbech@tieto.com>.
4801 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4802
4803 2009-02-20 Glenn Morris <rgm@gnu.org>
4804
4805 * syntax.c (Fskip_chars_forward): Fix doc typo.
4806
4807 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
4808
4809 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4810
4811 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
4812
4813 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4814
4815 2009-02-19 Kenichi Handa <handa@m17n.org>
4816
4817 * coding.c (detect_coding): Preserve coding->mode.
4818 Don't overflow coding->carryover. (Bug#2370)
4819
4820 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4821
4822 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4823
4824 2009-02-18 Kenichi Handa <handa@m17n.org>
4825
4826 * font.c (font_check_otf_features): Fix handling of `nil' element.
4827 (Ffont_spec): Describe :lang and :otf in the docstring.
4828
4829 2009-02-16 Andreas Schwab <schwab@suse.de>
4830
4831 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4832 string.
4833
4834 2009-02-16 Kenichi Handa <handa@m17n.org>
4835
4836 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
4837 (Bug#1723)
4838
4839 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
4840
4841 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
4842
4843 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4844 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4845
4846 2009-02-14 Eli Zaretskii <eliz@gnu.org>
4847
4848 * msdos.c (MAX_SCREEN_BUF): New macro.
4849 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4850 Encode the entire run of glyphs sharing the same face, instead of
4851 doing that one glyph at a time (fixes a bug with displaying
4852 double-size characters).
4853
4854 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4855
4856 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4857
4858 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4859 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
4860 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
4861
4862 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
4863 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
4864
4865 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4866
4867 * keyboard.c (adjust_point_for_property): Allow stopping between two
4868 invisible areas.
4869
4870 2009-02-12 Jason Rumney <jasonr@gnu.org>
4871
4872 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4873 (add_font_entity_to_list): Call check_face_name even when family
4874 is unspecified.
4875
4876 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4877 Release DC when finished. Use NULL window to refer to desktop.
4878 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
4879
4880 * w32font.c (add_font_entity_to_list): Fix check for substituted
4881 raster fonts. (Bug#2219)
4882
4883 2009-02-12 Kenichi Handa <handa@m17n.org>
4884
4885 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4886 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4887 (autocmp_chars): Use fast_looking_at. Don't compose more
4888 characters than MAX_COMPOSITION_COMPONENTS.
4889 (find_automatic_composition): While looking forward and backward,
4890 check static composition. Fix where to stop looking forward.
4891 (composition_adjust_point): Fix checking of static composition.
4892 (Fcomposition_get_gstring): Pay attention to
4893 MAX_COMPOSITION_COMPONENTS.
4894
4895 * lisp.h (fast_looking_at): Extern it.
4896
4897 * search.c (fast_looking_at): New function.
4898
4899 * term.c (encode_terminal_code): Adjust for the change of
4900 <struct glyph>.u.cmp.to.
4901 (append_composite_glyph): Likewise.
4902
4903 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
4904 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4905 composition.
4906 (append_composite_glyph): Adjust for the change of
4907 <strcut glyph>.u.cmp.to.
4908
4909 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
4910
4911 * casetab.c (init_casetab_once):
4912 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4913 * font.c (font_update_lface):
4914 * fontset.c (Fnew_fontset):
4915 * ftfont.c (ftfont_drive_otf):
4916 * xfont.c (xfont_open):
4917 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4918
4919 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4920
4921 * fileio.c (Fwrite_region): !NILP -> CONSP.
4922
4923 2009-02-10 Andreas Schwab <schwab@suse.de>
4924
4925 * process.c (send_process): Properly relocate pointer into data
4926 when using encoded data. (Bug#2272)
4927
4928 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4929
4930 * coding.c (detect_coding_charset): Fix previous change.
4931
4932 2009-02-08 Jason Rumney <jasonr@gnu.org>
4933
4934 * w32fns.c (w32_hide_hourglass): Handle case where frame
4935 disappeared while hourglass was displayed. (Bug #2193)
4936
4937 2009-02-07 Andreas Schwab <schwab@suse.de>
4938
4939 * unexelf.c (unexec): Fix error message.
4940
4941 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4942
4943 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
4944 when modal window is active. (Bug #2152)
4945 (applicationShouldTerminate:): Remove now-unneeded while loop
4946 around NSRunAlertPanel.
4947
4948 * nsmenu.m (popupSession): New file-global variable.
4949 (pop_down_menu): End the popupSession before closing dialog.
4950 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4951 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4952 don't query NSApp for events (just sleep instead).
4953
4954 2009-02-07 Eli Zaretskii <eliz@gnu.org>
4955
4956 * coding.c (syms_of_coding) <translation-table-for-input>:
4957 Modify doc string to discourage use for character code unification.
4958
4959 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4960
4961 * atimer.c (run_timers): Update pending_atimers.
4962
4963 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
4964
4965 * image.c (svg_load_image): Fix last change.
4966
4967 * xfns.c (Fx_create_frame): Signal an error if no font is
4968 found (Bug#2147).
4969
4970 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
4971
4972 * character.c (syms_of_character) <script-representative-chars>:
4973 Fix typo in docstring.
4974
4975 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4976
4977 * nsmenu.m (pop_down_menu): New function.
4978 (ns_popup_dialog): Call it on unwind.
4979 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4980 call timer_check() (Bug#2154).
4981 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4982 handling_signal is set.
4983 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4984
4985 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
4986
4987 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4988
4989 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4990
4991 * keyboard.c (poll_for_input_1, handle_async_input):
4992 Set handling_signal under HAVE_NS.
4993
4994 2009-02-04 Glenn Morris <rgm@gnu.org>
4995
4996 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4997
4998 2009-02-04 Kenichi Handa <handa@m17n.org>
4999
5000 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
5001
5002 * charset.c (Fchar_charset): New optional arg restriction.
5003
5004 * coding.h (coding_system_charset_list): Extern it.
5005
5006 * coding.c (coding_system_charset_list): New function.
5007
5008 * composite.c: Include coding.h and termhooks.h.
5009 (composition_gstring_p): Fix for the terminal case.
5010 (composition_gstring_width): Likewise.
5011 (fill_gstring_body): Likewise.
5012 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
5013 the frame.
5014 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
5015 is within a composition.
5016 (Fcomposition_get_gstring): Fix the terminal case.
5017
5018 * term.c (encode_terminal_code): Fix handling of composition.
5019 (produce_composite_glyph): For static composition, get pixel_width
5020 from struct composition.
5021
5022 2009-02-02 Andreas Schwab <schwab@suse.de>
5023
5024 * unexelf.c (unexec): Handle unaligned bss offset.
5025
5026 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5027
5028 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
5029 XT,w32read_socket changes to ns_read_socket.
5030
5031 * keyboard.c (handle_interrupt): Don't call
5032 quit_throw_to_read_char() under NS.
5033
5034 * blockinput.h: Remove NS-specific code.
5035
5036 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
5037
5038 * dispnew.c (window_change_signal): Don't try to get the size of a
5039 suspended tty frame.
5040 * term.c (Fresume_tty): Resize if the size has changed while the
5041 tty was suspended.
5042
5043 * alloc.c (mark_stack): Properly conditionalize previous change.
5044
5045 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
5046
5047 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
5048 * w32term.c (w32_read_socket) [SYNC_INPUT]:
5049 Remove; this code is not used on Windows.
5050
5051 2009-01-30 Eli Zaretskii <eliz@gnu.org>
5052
5053 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
5054 EOLs that also has stray ^M characters.
5055
5056 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
5057
5058 * atimer.c (run_timers, alarm_signal_handler):
5059 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
5060 * w32inevt.c (w32_console_read_socket):
5061 * w32term.c (w32_read_socket):
5062 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
5063
5064 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
5065
5066 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
5067 Initialize it as a relative filename pattern.
5068 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
5069 (Fcall_process_region): Simplify temp file creation using
5070 temporary-file-directory.
5071
5072 2009-01-29 Eli Zaretskii <eliz@gnu.org>
5073
5074 * msdos.c: Rename pending_signals to msdos_pending_signals.
5075 (sig_suspender, sigprocmask): Adjust.
5076
5077 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
5078
5079 * keyboard.c (pending_signals): New var.
5080 (poll_for_input, input_available_signal, init_keyboard): Set it.
5081 (process_pending_signals): New function.
5082
5083 * lisp.h (QUIT): Check pending_signals instead of
5084 interrupt_input_pending. Use process_pending_signals.
5085
5086 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
5087
5088 * process.c (wait_reading_process_output): Use process_pending_signals.
5089
5090 * sysdep.c (emacs_write): Use process_pending_signals.
5091
5092 * xterm.c (XTread_socket): Update pending_signals.
5093
5094 * w32term.c (w32_read_socket): Update pending_signals.
5095
5096 * w32inevt.c (w32_console_read_socket): Update pending_signals.
5097
5098 2009-01-29 Kenichi Handa <handa@m17n.org>
5099
5100 * xftfont.c (xftfont_has_char): New function.
5101 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5102
5103 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5104
5105 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5106 under GNUstep.
5107 (ns_query_color): New declaration.
5108
5109 * nsterm.m (ns_confirm_quit): New variable.
5110 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5111 (EmacsApp-applicationShouldTerminate:): Use it.
5112 (EmacsPrefsController): Let user set it.
5113 (ns_query_color): New function.
5114 (ns_defined_color): Use it.
5115 (ns_initialize): Drop.
5116 (ns_term_init): Add two lines from ns_initialize(), and set
5117 input_interrupt_mode to nil.
5118
5119 * image.c (svg_load_image): Don't right-shift background RGB when
5120 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
5121
5122 2009-01-28 Kenichi Handa <handa@m17n.org>
5123
5124 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
5125 (fontset_get_font_group): Remember that no font-group is specified
5126 for C.
5127
5128 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
5129
5130 * fns.c (concat): Check for string overflow (bug#1787).
5131
5132 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5133 Quadruple undo limits (bug#1501).
5134
5135 2009-01-27 Kenichi Handa <handa@m17n.org>
5136
5137 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5138 directly use GT_Get_Char_index.
5139
5140 * xftfont.c (struct xftfont_info): New member `index'.
5141
5142 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
5143 (Ffontset_font): Adjust for the change of fontset entry.
5144
5145 2009-01-26 Kenichi Handa <handa@m17n.org>
5146
5147 * fontset.c (fontset_find_font): Fix handling of non-cons return
5148 value of fontset_get_font_group.
5149 (fontset_font): Revert last change.
5150
5151 2009-01-26 Jason Rumney <jasonr@gnu.org>
5152
5153 * w32font.c (w32font_list_internal): Return quickly if registry is
5154 unknown. Simplify final return.
5155 (add_font_entity_to_list): Break complex logic down into more
5156 manageable chunks. Move unknown registry check to
5157 w32font_list_internal.
5158
5159 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5160
5161 Changes to remove Feval calls from GUI under NS.
5162
5163 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5164 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
5165 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5166
5167 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5168 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5169 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5170 instead of NON_ASCII_KEYSTROKE_EVENT.
5171 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5172 (EmacsApp-applicationShouldTerminate:): Query user.
5173 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5174 instead of Feval.
5175
5176 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5177
5178 * keyboard.c (kbd_buffer_get_event): Check for it.
5179 (keys_of_keyboard): Define lispy keys for
5180 ns-put/unput-working-text.
5181
5182 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5183 versions.
5184 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5185
5186 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
5187
5188 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
5189 setting current_buffer directly. (Bug#2044)
5190
5191 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
5192
5193 * fontset.c (fontset_font): If we know there is no font, don't do
5194 any work. (Bug#1952, bug#1990).
5195
5196 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
5197
5198 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5199
5200 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
5201 (ns_no_defaults): New declaration.
5202 (main): Use it.
5203
5204 * nsterm.h (ns_no_defaults): New declaration.
5205
5206 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
5207
5208 * nsterm.m (ns_no_defaults): New variable.
5209 (ns_initialize): Don't read defaults when ns_no_defaults.
5210 (EmacsView-readSelectionFromPasteboard:)
5211 (writeSelectionToPasteboard:types:): New stubbed-out methods for
5212 NSServicesRequests protocol. (Bug#1435)
5213 (ns_dumpglyphs_stretch): New function.
5214 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
5215 of 2008-11-15 to other terms. (Bug#615)
5216
5217 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5218
5219 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5220
5221 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5222 call for Sparc64.
5223
5224 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5225
5226 * nsfns.m:
5227 * nsgui.h:
5228 * nsmenu.m:
5229 * nsselect.m:
5230 * nsterm.h:
5231 * nsterm.m: Remove '23' comments that indicated code added during
5232 update from emacs-20 -> emacs-23.
5233
5234 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5235
5236 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
5237 ns_alternate_modifier. (Bug#1217)
5238
5239 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5240 Display all shortcuts, including those w/o super modifier.
5241
5242 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5243
5244 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
5245
5246 * fileio.c (Vwrite_region_post_annotation_function)
5247 (Vwrite_region_annotation_buffers): New vars.
5248 (build_annotations_unwind): Just reset
5249 Vwrite_region_annotation_buffers.
5250 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5251 Call write-region-post-annotation-function.
5252 (build_annotations): Add to Vwrite_region_annotation_buffers if
5253 buffer changes.
5254
5255 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5256
5257 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5258 Tiger.
5259 * nsfns.m (ns_do_applescript):
5260 Conditionalize typeUTF16ExternalRepresentation on Tiger.
5261
5262 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5263
5264 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5265
5266 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5267
5268 * nsmenu.m (NSMENUPROFILE): Change #if style.
5269
5270 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5271
5272 * nsterm.m (x_set_frame_alpha): Add prototype.
5273 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5274 handle Ctrl-tab. (Bug#1841)
5275 (ns_get_color): Use unsigned long long for scanned hex string value.
5276 (ns_term_shutdown): Abort on non SIGTERM signals.
5277 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
5278 (EmacsPrefsController-setPanelFromDefaultValues): New function.
5279 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
5280 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
5281 (ns_defined_color): Fix settings of the XColor variable fields:
5282 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
5283
5284 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
5285 DPI. (Bug#1316)
5286 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5287 values in onTiger section.
5288
5289 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
5290
5291 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5292 Check return value of font_spec_from_name.
5293 (Fx_list_fonts): Doc fix. (Bug#1951)
5294
5295 * font.c (font_spec_from_name): Return Qnil if font name could not
5296 be parsed.
5297 (font_parse_name): Treat a `?' character as part of an XLFD.
5298
5299 * fns.c (Fsubstring): Doc fix.
5300
5301 2009-01-19 Kenichi Handa <handa@m17n.org>
5302
5303 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
5304 (ftfont_list): Likewise.
5305
5306 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
5307
5308 * dbusbind.c (Fdbus_register_signal):
5309 * process.c (conv_sockaddr_to_lisp):
5310 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5311
5312 * callproc.c (Fgetenv_internal): Doc fix.
5313
5314 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
5315
5316 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5317 it is not even used.
5318
5319 2009-01-16 Glenn Morris <rgm@gnu.org>
5320
5321 * font.c (Ffont_variation_glyphs): Silence compiler.
5322
5323 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
5324
5325 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5326 Reported by David Robinow <drobinow@gmail.com>.
5327
5328 2009-01-15 Kenichi Handa <handa@m17n.org>
5329
5330 * coding.c (detect_coding_system): Fix handling of null_byte_found.
5331
5332 2009-01-14 Jason Rumney <jasonr@gnu.org>
5333
5334 * frame.c (x_set_font): Always store a font to the font parameter,
5335 never a fontset. (Bug#1562)
5336
5337 2009-01-14 Kenichi Handa <handa@m17n.org>
5338
5339 * coding.c (TWO_MORE_BYTES): New macro.
5340 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
5341
5342 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
5343
5344 * font.c (font_clear_prop): If clearing the family, clear the font
5345 width index too.
5346
5347 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
5348
5349 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
5350
5351 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5352 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5353 functions, use sizeof.
5354
5355 2009-01-12 Martin Rudalics <rudalics@gmx.at>
5356
5357 * keyboard.c (read_char): Fix case where last_nonmenu_event
5358 returned a bad value with submenus. (Bug#447)
5359
5360 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
5361
5362 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5363 family, clear the font width index too.
5364
5365 2009-01-11 Jason Rumney <jasonr@gnu.org>
5366
5367 * keyboard.c (cmd_error_internal): Exit when errors occur before
5368 frame creation and not in daemon mode. (Bug#1836)
5369
5370 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
5371
5372 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5373 of a display vector, backtrack.
5374 (try_window_reusing_current_matrix): Check glyph type before
5375 referencing charpos member.
5376
5377 2009-01-10 Eli Zaretskii <eliz@gnu.org>
5378
5379 Fix Bug #876:
5380
5381 * coding.c (inhibit_null_byte_detection): New variable.
5382 (detect_coding, detect_coding_system): Don't pay attention to null
5383 bytes if inhibit_null_byte_detection is non-zero.
5384 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
5385 <inhibit-iso-escape-detection>: Doc fix.
5386
5387 2009-01-09 Jason Rumney <jasonr@gnu.org>
5388
5389 * w32font.c (add_font_entity_to_list): Don't report unknown
5390 Windows charset as any unrecognized registry. (Bug#1548)
5391 Only report Unicode Plane 2 fonts as unicode-sip.
5392
5393 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
5394
5395 * xfaces.c (Fx_font_family_list): Delete function.
5396 Move compatibility version to faces.el.
5397
5398 * font.c (Ffont_family_list): Return a list of strings, not symbols.
5399
5400 2009-01-09 Martin Rudalics <rudalics@gmx.at>
5401
5402 * frame.c (x_set_frame_parameters): Remember requested value for
5403 fullscreen before it's reset by the parameter handler.
5404
5405 2009-01-09 Glenn Morris <rgm@gnu.org>
5406
5407 * keyboard.c (last_command_char): For clarity, rename to...
5408 (last_command_event): ... and update all users.
5409 (last_input_char): For clarity, rename to...
5410 (last_input_event): ... and update all users.
5411 (last-command-char, last-input-char): Move to subr.el as aliases.
5412 * cmds.c, commands.h: Update for last_command_char rename.
5413
5414 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
5415
5416 * font.c (font_open_for_lface): Handle unspecified height attribute.
5417
5418 2009-01-08 Jason Rumney <jasonr@gnu.org>
5419
5420 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5421 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5422 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5423 Don't declare.
5424 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5425 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5426
5427 2009-01-07 Kenichi Handa <handa@m17n.org>
5428
5429 * fileio.c (Finsert_file_contents): In the case of replace,
5430 remember the coding system used for decoding in
5431 coding_system (Bug#1039).
5432
5433 * coding.c (decode_coding_utf_8): Check byte_after_cr before
5434 breaking the loop. (Bug#870)
5435 (decode_coding_utf_16, decode_coding_emacs_mule)
5436 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5437 (decode_coding_charset): Likewise.
5438
5439 2009-01-05 Martin Rudalics <rudalics@gmx.at>
5440
5441 * frame.c (x_set_frame_parameters): Make sure height (width) get
5442 applied when fullwidth (fullheight) is set. (Bug#1522)
5443
5444 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
5445
5446 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5447 (utc_base): Declare as ULONGLONG, not long double.
5448 (convert_time_raw): Delete.
5449 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5450 (initialize_utc_base): New function.
5451 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5452 (convert_from_time_t): Use initialize_utc_base; compute result with
5453 64-bit arithmetic.
5454 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5455
5456 2009-01-03 Eli Zaretskii <eliz@gnu.org>
5457
5458 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
5459 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5460 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5461 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5462 [!subprocesses]: Define.
5463 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5464 (Flist_system_processes, Fsystem_process_attributes)
5465 [!subprocesses]: Call list_system_processes and
5466 system_process_attributes instead of returning Qnil.
5467
5468 * dosfns.c (system_process_attributes, list_system_processes):
5469 New functions.
5470
5471 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5472
5473 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5474 Don't use the default (no-op) implementation.
5475
5476 2009-01-03 Jason Rumney <jasonr@gnu.org>
5477
5478 * keyboard.c (parse_modifiers_uncached): Wheel events are
5479 clicks (bug#687).
5480
5481 * w32term.c (x_query_colors, x_query_color): New functions.
5482
5483 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5484 (svg_load_image): Cast returned pointers from dynamically loaded
5485 functions. Eliminate W32 specific code.
5486
5487 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5488
5489 * nsfns.m (x_set_foreground_color, x_set_background_color)
5490 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5491 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5492 x_ prefix instead of ns_. Update references.
5493 (syms_of_nsfns): Add a FIXME comment.
5494
5495 * nsterm.m (x_set_cursor_type): New prototype.
5496 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5497
5498 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5499 for Solaris instead of incorrectly providing Qutime and Qcutime.
5500
5501 2009-01-02 Eli Zaretskii <eliz@gnu.org>
5502
5503 * w32.c (process_times): Compute sum of utime and stime.
5504 (system_process_attributes): Add Qtime to the alist.
5505
5506 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5507 and add them to the alist.
5508
5509 * process.c (top level) <Qtime, Qctime>: New variables.
5510 (syms_of_process): staticpro them.
5511 (Fsystem_process_attributes): Add their documentation to the doc
5512 string.
5513
5514 * process.h: Declare Qtime and Qctime.
5515
5516 2009-01-02 Jason Rumney <jasonr@gnu.org>
5517
5518 * image.c (Qgobject): New symbol.
5519 (syms_of_image): Initialize it.
5520 (init_svg_functions): Load some functions from gobject library.
5521
5522 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5523
5524 * frame.c (make_terminal_frame): Remove redundant code and useless
5525 block.
5526
5527 2009-01-01 Andreas Schwab <schwab@suse.de>
5528
5529 * process.c (conv_sockaddr_to_lisp): Add workaround for
5530 getsockname bug on BSD.
5531
5532 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
5533
5534 * xfns.c (x_create_tip_frame): Set border width of the X window.
5535
5536 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
5537
5538 2009-01-01 Jason Rumney <jasonr@gnu.org>
5539
5540 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
5541 Don't block input, as per earlier xterm.c changes.
5542
5543 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5544
5545 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5546 (ns_appkit_version_int): New function.
5547 (x-server-version): Use ns_appkit_version_int and follow 21+
5548 convention of returning 3 integers.
5549
5550 2008-12-30 Kenichi Handa <handa@m17n.org>
5551
5552 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5553 (CHAR_SURROGATE_PAIR_P): New macro.
5554
5555 * font.h (struct font_driver): New member get_variation_glyphs.
5556
5557 * font.c (font_range): Don't require a font for a variation selector.
5558 (Ffont_variation_glyphs): New function.
5559 (syms_of_font): Defsubr it.
5560
5561 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5562 ftfont_variation_glyphs.
5563 (setup_otf_gstring): New function.
5564 (ftfont_drive_otf): Use it.
5565 (ftfont_shape_by_flt): Handle variation selector.
5566 (ftfont_variation_glyphs): New function.
5567
5568 2008-12-30 Martin Rudalics <rudalics@gmx.at>
5569
5570 * frame.c (Vemacs_iconified): Remove.
5571
5572 2008-12-30 Jason Rumney <jasonr@gnu.org>
5573
5574 * frame.c (store_frame_param, x_get_arg): Enable newer code on
5575 WINDOWSNT too, as related changes have already been synced. (Bug#117)
5576
5577 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
5578
5579 * indent.c (Fvertical_motion): Don't advance iterator if we have
5580 reseated to the desired position.
5581
5582 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5583 checking for pos match.
5584
5585 2008-12-30 Kenichi Handa <handa@m17n.org>
5586
5587 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5588 just get the low 8-bit of the code.
5589
5590 * font.c (font_intern_prop): Validate str as multibyte.
5591
5592 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5593
5594 * dispextern.h (struct face): Move lface and hash from the middle
5595 of bitfields.
5596
5597 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5598
5599 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5600
5601 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5602 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5603 instead of intervals.h.
5604
5605 2008-12-26 Andreas Schwab <schwab@suse.de>
5606
5607 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5608 cons.
5609
5610 2008-12-26 Martin Rudalics <rudalics@gmx.at>
5611
5612 * textprop.c (Qminibuffer_prompt): New variable.
5613 (syms_of_textprop): Initialize it.
5614 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5615 in minibuffer-prompt face. (Bug#1662)
5616
5617 2008-12-25 Jason Rumney <jasonr@gnu.org>
5618
5619 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5620
5621 2008-12-24 Jason Rumney <jasonr@gnu.org>
5622
5623 * ralloc.c (r_alloc_reset_variable): New function.
5624
5625 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
5626 record of what points where. (Bug#716)
5627
5628 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5629
5630 * minibuf.c (read_minibuf): Follow the non-interactive case when
5631 running as a daemon, before detaching.
5632
5633 2008-12-22 Andreas Schwab <schwab@suse.de>
5634
5635 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5636 * gtkutil.c (free_widget_value): Use xfree instead of free.
5637
5638 2008-12-22 Martin Rudalics <rudalics@gmx.at>
5639
5640 * frame.c (delete_frame): New function derived from
5641 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5642 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5643 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5644 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5645 * frame.h: Extern delete_frame.
5646 * window.c (window_loop):
5647 * terminal.c (delete_terminal):
5648 * xterm.c (x_connection_closed):
5649 * xfns.c (Fx_hide_tip):
5650 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
5651
5652 2008-12-21 Jason Rumney <jasonr@gnu.org>
5653
5654 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5655 when character maps to .notdef character.
5656
5657 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5658
5659 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5660
5661 2008-12-20 Jason Rumney <jasonr@gnu.org>
5662
5663 * frame.c (Fmake_terminal_frame): Raise an error when called from
5664 a graphical frame on Windows. (Bug#1325)
5665
5666 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5667
5668 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5669
5670 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
5671
5672 * minibuf.c (Fread_buffer): Doc fix.
5673
5674 2008-12-20 Jason Rumney <jasonr@gnu.org>
5675
5676 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
5677 server name in UNC paths. (Bug#719)
5678
5679 * coding.c (decode_coding): Clear chars_at_source flag when using
5680 charbuf. (Bug#1035)
5681
5682 2008-12-19 Daniel Engeler <engeler@gmail.com>
5683
5684 * sysdep.c (serial_configure): Fix typo.
5685
5686 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5687
5688 * sysdep.c: Include alloca.h.
5689 (system_process_attributes): Add implementation for Solaris.
5690
5691 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
5692
5693 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5694
5695 Reorganize implementation of Flist_system_processes and
5696 Fsystem_process_attributes. No functional changes.
5697 * process.c: Don't #include pwd.h, grp.h and limits.h.
5698 (Flist_system_processes): Just call list_system_processes.
5699 (Fsystem_process_attributes): Just call system_process_attributes.
5700 (procfs_list_system_processes, time_from_jiffies)
5701 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5702 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5703
5704 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5705 (list_system_processes): Rename from
5706 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5707 Provide a do nothing implementation.
5708 (system_process_attributes): Rename from
5709 procfs_list_system_processes.
5710 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5711 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
5712
5713 * w32.c (list_system_processes): Rename from
5714 w32_list_system_processes.
5715 (system_process_attributes): Rename from
5716 w32_system_process_attributes.
5717
5718 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5719
5720 * process.h (w32_list_system_processes)
5721 (w32_system_process_attributes): Remove.
5722 (list_system_processes, system_process_attributes):
5723 New prototypes.
5724
5725 2008-12-19 Kenichi Handa <handa@m17n.org>
5726
5727 * xfont.c (xfont_decode_coding_xlfd): New function.
5728 (xfont_encode_coding_xlfd): New function.
5729 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5730 (xfont_list): Decode and encode XLFD by iso-8859-1.
5731 (xfont_match): Likewise.
5732 (xfont_list_family): Likewise.
5733 (xfont_open): Likewise.
5734
5735 * ftfont.c (ftfont_open): Generate a multibyte string if given
5736 names are utf-8.
5737
5738 * xftfont.c (xftfont_open): Generate a multibyte string if given
5739 names are utf-8.
5740
5741 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5742
5743 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5744 changed.
5745 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5746 clicked on a detached tool bar button.
5747
5748 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5749
5750 * emacs.c (main): Print and error and exit when no data is read
5751 from the pipe.
5752
5753 2008-12-17 Jason Rumney <jasonr@gnu.org>
5754
5755 * w32font.c (w32font_has_char): Always return -1.
5756
5757 2008-12-16 Kenichi Handa <handa@m17n.org>
5758
5759 * font.c (font_open_entity): Fix previous change.
5760
5761 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5762
5763 * process.c: Include <limits.h>.
5764
5765 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
5766
5767 * font.c (font_update_drivers): Fix mistake in reconstructing the
5768 driver list.
5769
5770 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
5771
5772 * font.c (font_clear_cache): Fix format of font cache data.
5773
5774 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
5775
5776 * xftfont.c (xftfont_open): Free Xft font pattern if
5777 XftFontOpenPattern fails.
5778
5779 * xterm.c (x_free_frame_resources): Remove extraneous call to
5780 free_frame_faces.
5781
5782 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
5783
5784 * xterm.c (x_delete_display): Move xim_close_dpy call to
5785 x_delete_terminal.
5786 (x_delete_terminal): Call xim_close_dpy.
5787
5788 2008-12-13 Jason Rumney <jasonr@gnu.org>
5789
5790 * w32font.c (intern_font_name): New function.
5791 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5792 (w32font_open_internal, Fx_select_font): Decode font name.
5793 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5794
5795 * w32font.h (intern_font_name): Declare new function.
5796
5797 * w32uniscribe.c (add_opentype_font_name_to_list):
5798 Use intern_font_name.
5799
5800 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
5801
5802 * frame.c (Fdelete_frame): Call free_font_driver_list.
5803
5804 * font.c (free_font_driver_list): Implement missing function.
5805
5806 * w32term.c (w32_term_init): Don't initialize the image cache
5807 here; it will be done in init_frame_faces.
5808
5809 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5810 (struct x_display_info): Remove unused member null_pixel. New
5811 member xim_callback_data.
5812
5813 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5814 (xim_initialize): Save pointer to callback function data.
5815 (xim_close_dpy): Free callback function data. Call XCloseIM,
5816 reverting 2008-11-04 change by David Smith.
5817 (x_term_init): Don't initialize the image cache here; it will be
5818 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5819 (x_delete_display): Free x_dnd_atoms member.
5820
5821 2008-12-13 Kenichi Handa <handa@m17n.org>
5822
5823 * font.c (font_rescale_ratio): Moved from xfaces.c.
5824 Argument type changed. Handle a font-spec too.
5825 (font_score): Check Vface_font_rescale_alist.
5826 (font_open_entity): Likewise. (Bug#1547)
5827
5828 * xfaces.c (font_rescale_ratio): Moved to font.c.
5829
5830 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
5831
5832 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5833
5834 2008-12-12 Jason Rumney <jasonr@gnu.org>
5835
5836 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5837 Vwindow_system_version to the real w32 major version.
5838
5839 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5840
5841 * term.c (init_tty): Move setting the terminal name before the
5842 potential user: maybe_fatal.
5843
5844 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
5845
5846 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5847 all callers changed. Call free_frame_faces to free the face cache.
5848
5849 2008-12-11 Jason Rumney <jasonr@gnu.org>
5850
5851 * w32font.c (fill_in_logfont): Don't assume symbol script means
5852 SYMBOL_CHARSET. (Bug#547)
5853
5854 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
5855 size for surrogates. (Bug#1096, bug#872)
5856
5857 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
5858
5859 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5860
5861 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
5862
5863 * process.c (Fsystem_process_attributes, syms_of_process):
5864 Fix typo in name of Ssystem_process_attributes.
5865 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5866
5867 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
5868
5869 * syntax.c (Fmodify_syntax_entry): Doc fix.
5870
5871 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
5872
5873 * font.c (Ffont_spec): Move usage to end of docstring.
5874
5875 2008-12-10 Jason Rumney <jasonr@gnu.org>
5876
5877 * w32font.c (Qcham): New symbol.
5878 (font_supported_scripts): Add cham, and comments for other new
5879 scripts in bitfield from OpenType spec.
5880 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5881 contain characters beyond the bmp.
5882
5883 2008-12-10 Kenichi Handa <handa@m17n.org>
5884
5885 * ftfont.c (fc_charset_table): Add "unicode-sip".
5886 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
5887 Qunicode_sip.
5888
5889 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
5890
5891 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5892 (Fcoding_system_put): Use QCdefault_char.
5893 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5894
5895 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
5896
5897 * xftfont.c (syms_of_xftfont): Fix typo.
5898
5899 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
5900
5901 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5902
5903 * emacs.c (main): Close daemon_pipe on exec.
5904
5905 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
5906
5907 * termchar.h (struct tty): New members termcap_term_buffer and
5908 termcap_strings_buffer.
5909
5910 * term.c (encode_terminal_code): Free any previous memory blocks
5911 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
5912 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5913 All callers changed.
5914 (init_tty): Store termcap data and string buffers in new struct
5915 tty members termcap_term_buffer and termcap_strings_buffer.
5916 (delete_tty): Free them.
5917 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
5918
5919 2008-12-07 Seiji Zenitani <zenitani@mac.com>
5920
5921 * nsfns.m (ns_set_background_color): Remove code duplication.
5922 It was a substitute for face-transparency on OS X 10.3.
5923
5924 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
5925
5926 * coding.c (make_conversion_work_buffer): Disable buffer
5927 modification hooks in the work buffer.
5928
5929 2008-12-05 Eli Zaretskii <eliz@gnu.org>
5930
5931 * process.c (procfs_system_process_attributes): If `nread' has a
5932 negative value, assign zero to it.
5933
5934 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
5935
5936 * eval.c (Vdebug_on_error): Doc fix.
5937
5938 2008-12-05 Kenichi Handa <handa@m17n.org>
5939
5940 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5941 second character is a combining character.
5942
5943 2008-12-05 Eli Zaretskii <eliz@gnu.org>
5944
5945 * process.c (procfs_system_process_attributes): Don't use cmd,
5946 cmdsize, and q without initializing them first.
5947
5948 2008-12-04 Jason Rumney <jasonr@gnu.org>
5949
5950 * w32font.c (w32font_draw): Initialize orig_clip before getting
5951 it, and delete it when finished.
5952
5953 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5954
5955 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5956 case when running as a daemon before detaching.
5957
5958 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
5959
5960 * w32.c (init_environment): Don't unload library shell32.dll.
5961
5962 2008-12-03 Kenichi Handa <handa@m17n.org>
5963
5964 * font.c (font_at): Set `multibyte' at first.
5965
5966 * coding.c (decode_coding_charset): Check type of an element of
5967 vector VALIDS.
5968 (encode_coding_emacs_mule): Be sure to set `code'.
5969
5970 * fontset.c (face_for_char): Handle invalid charset property correctly.
5971 (font_for_char): Likewise.
5972
5973 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
5974
5975 * font.c (Fopen_font): Compute pixel size correctly.
5976 (font_update_lface): Handle fonts with corrupted size specs,
5977 i.e. non-int and non-float.
5978
5979 * ftfont.c (ftfont_match): Initialize entity variable.
5980 (ftfont_resolve_generic_family): Avoid using uninitialized var.
5981 (ftfont_list_family): Initialize list var earlier.
5982
5983 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5984
5985 * xterm.c (x_draw_glyph_string): Fall back on
5986 underline_minimum_offset for underline position.
5987
5988 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5989
5990 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5991
5992 * character.c (c_string_width): Specify the type for LEN.
5993
5994 2008-12-03 Kenichi Handa <handa@m17n.org>
5995
5996 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
5997 (decode_coding_utf_8): Likewise.
5998 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
5999 (produce_chars): Initialize consumed_chars to 0.
6000
6001 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
6002
6003 * keyboard.c (make_lispy_position): Only use PT if the selected
6004 window is current.
6005
6006 2008-12-02 Andreas Schwab <schwab@suse.de>
6007
6008 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
6009
6010 * doprnt.c (doprnt1): Fix size of charbuf.
6011
6012 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
6013
6014 * keyboard.c (timer_check): Revert last change.
6015
6016 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
6017
6018 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
6019
6020 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
6021
6022 * makefile.w32-in: Update dependencies.
6023 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
6024
6025 2008-12-01 Andreas Schwab <schwab@suse.de>
6026
6027 * font.c (register_font_driver): Use xmalloc.
6028 (font_put_frame_data): Likewise.
6029
6030 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
6031
6032 * xfaces.c (realize_x_face): Make abort condition clearer.
6033
6034 * gtkutil.c (update_frame_tool_bar): Initialize variable.
6035
6036 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
6037
6038 * keyboard.c (timer_check): After a timer runs, ensure that the
6039 selected window's buffer is current.
6040
6041 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
6042
6043 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
6044 It was accidentally restored by the Unicode merge.
6045
6046 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
6047
6048 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
6049
6050 * w32proc.c: Include "coding.h".
6051 (Fw32_short_file_name): Encode filename passed to Windows API.
6052 (Fw32_long_file_name): Encode filename passed to Windows API and
6053 decode back the result. (Bug#1433)
6054
6055 2008-11-29 Kenichi Handa <handa@m17n.org>
6056
6057 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
6058 not before accessing it.
6059
6060 * charset.c (Fdefine_charset_internal): After calculating
6061 min_char, max_char, and fastmap, copy the charset structure again.
6062 (encode_char): Fix the previous change.
6063
6064 2008-11-28 Seiji Zenitani <zenitani@mac.com>
6065
6066 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
6067
6068 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
6069
6070 * nsterm.m (x_set_frame_alpha): New function.
6071
6072 2008-11-27 Eli Zaretskii <eliz@gnu.org>
6073
6074 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
6075
6076 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
6077
6078 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
6079 pointer to check_face_name.
6080
6081 2008-11-27 Kenichi Handa <handa@m17n.org>
6082
6083 * category.h (SET_CATEGORY_SET): Call set_category_set.
6084 (set_category_set): Extern it.
6085
6086 * category.c (hash_get_category_set): New function.
6087 (Fmodify_category_entry): Adjusted for the change of
6088 char_table_ref_and_range. Call hash_get_category_set to get a
6089 category set to store in the table.
6090
6091 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
6092 Funify_charset.
6093
6094 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
6095 (DECODE_CHAR): Check if the decoder vector is ready.
6096 (ENCODE_CHAR): Check if the encoder char-table is ready.
6097 (maybe_unify_char): Extern it.
6098
6099 * charset.c (Vchar_unified_charset_table): Delete it.
6100 (inhibit_load_charset_map): New variable.
6101 (temp_charset_work): New variable.
6102 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6103 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6104 New macros.
6105 (load_charset_map): Meaning of control_flag changed. If
6106 inhibit_load_charset_map is nonzero, setup a table in
6107 temp_charset_work.
6108 (load_charset): New argument control_flag.
6109 (map_charset_for_dump): New function.
6110 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6111 map_charset_for_dump.
6112 (Fdefine_charset_internal): If the charset method is MAP, load
6113 mapping tables by calling load_charset.
6114 (Funify_charset): Don't load a mapping table but directly set
6115 Vchar_unify_table.
6116 (maybe_unify_char): New function.
6117 (decode_char): Don't handle the deleted method MAP_DEFERRED.
6118 Handle the case of inhibit_load_charset_map being nonzero.
6119 (encode_char): Don't handle the deleted method MAP_DEFERRED.
6120 Handle the case of inhibit_load_charset_map being nonzero.
6121 (Fclear_charset_maps): Just free temp_charset_work.
6122 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6123 variable.
6124
6125 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6126 change of char_table_ref_and_range.
6127 (char_table_ref_and_range): Change the meaning of argument FROM
6128 and TO. Now the caller must provide initial values for *FROM
6129 and *TO.
6130
6131 * fontset.c (fontset_add): Adjusted for the change of
6132 char_table_ref_and_range.
6133 (fontset_get_font_group): Likewise.
6134 (Ffontset_info): Likewise.
6135
6136 * keymap.c (describe_vector): Adjusted for the change of
6137 char_table_ref_and_range. For char-table, put boundary between
6138 non-ASCII and 8-bit characters.
6139
6140 * print.c (print_object): For bool-vector, delete unnecessary
6141 check of ASCII_BYTE_P.
6142
6143 2008-11-26 Jason Rumney <jasonr@gnu.org>
6144
6145 * w32font.c (w32font_open_internal): Don't include external
6146 leading in font height. (Bug#879)
6147
6148 2008-11-26 Glenn Morris <rgm@gnu.org>
6149
6150 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6151 redefinition with ifdef. (Bug#1383)
6152
6153 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6154
6155 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6156
6157 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6158
6159 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6160 New EmacsView methods.
6161 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6162 Fixes bug #1048,1357,1414.
6163
6164 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6165
6166 Fix bug #1362.
6167 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6168 is not an indexed color.
6169 * nsterm.m (free_indexed_color): Add argument checking.
6170 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6171
6172 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
6173
6174 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6175 Document confirm-after-completion value for
6176 minibuffer-completion-confirm.
6177
6178 2008-11-24 Jason Rumney <jasonr@gnu.org>
6179
6180 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6181 warning.
6182
6183 2008-11-23 Jason Rumney <jasonr@gnu.org>
6184
6185 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6186 restored before returning.
6187
6188 * w32font.c (check_face_name): New function.
6189 (add_font_entity_to_list): Use it to filter out common substituted
6190 fonts. (Bug#642)
6191
6192 2008-11-22 Martin Rudalics <rudalics@gmx.at>
6193
6194 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6195 confirm-nonexistent-file-or-buffer in doc-string.
6196
6197 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6198
6199 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6200 Fix copy/paste typo. Add checks.
6201
6202 2008-11-21 Kenichi Handa <handa@m17n.org>
6203
6204 * coding.c (detect_coding_iso_2022): Reject invalid composition
6205 sequence.
6206 (DECODE_COMPOSITION_START): If the current source is the last
6207 block, and the current composition doesn't end, regard this
6208 sequence as invalid.
6209 (decode_coding_iso_2022): Handle invalid composition sequence.
6210
6211 2008-11-20 Martin Rudalics <rudalics@gmx.at>
6212
6213 * window.c (coordinates_in_window): Don't return
6214 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6215 line when the window is not the rightmost one. (Bug#1372)
6216
6217 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6218
6219 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6220
6221 2008-11-15 Eli Zaretskii <eliz@gnu.org>
6222
6223 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6224 and bright_bg if noninteractive is non-zero.
6225
6226 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6227
6228 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6229 x_draw_glyph_string_background.
6230
6231 * w32term.c (x_draw_glyph_string): Likewise.
6232
6233 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
6234
6235 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6236 the next glyph string once past the overhang width.
6237
6238 * nsterm.m (ns_draw_glyph_string): Likewise.
6239
6240 * w32term.c (x_draw_glyph_string): Likewise.
6241
6242 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6243
6244 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6245 double file close.
6246
6247 2008-11-14 Martin Rudalics <rudalics@gmx.at>
6248
6249 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6250 dedicated status of window before attempting to display another
6251 buffer in it.
6252
6253 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
6254
6255 * msdos.c (Fmsdos_long_file_names):
6256 (syms_of_msdos) <dos-unsupported-char-glyph>:
6257 * dosfns.c (Fint86): Fix typos in docstrings.
6258
6259 2008-11-14 Eli Zaretskii <eliz@gnu.org>
6260
6261 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6262
6263 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6264
6265 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6266
6267 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6268
6269 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6270
6271 * frame.h: Negative alpha means "don't touch".
6272
6273 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6274
6275 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6276
6277 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6278
6279 * hftctl.c:
6280 * chpdef.h:
6281 * acldef.h: Remove files used only for systems no longer supported.
6282
6283 * Makefile.in: Fix .o alphabetical ordering.
6284 (hftctl.o): Remove dependency, file removed.
6285 (keymap.o, print.o): Depend on charset.h.
6286
6287 2008-11-10 Kenichi Handa <handa@m17n.org>
6288
6289 * character.c (Fget_byte): Fix and make it faster for unibyte target.
6290
6291 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
6292
6293 * dired.c (file_name_completion): If completion_ignore_case is
6294 enabled, ignore case when checking completion-regexp-list.
6295
6296 2008-11-08 Eli Zaretskii <eliz@gnu.org>
6297
6298 * vm-limit.c (get_lim_data): Fix last change.
6299
6300 2008-11-08 Kenichi Handa <handa@m17n.org>
6301
6302 * character.c (Fget_byte): New function.
6303 (syms_of_character): Defsubr Fget_byte.
6304
6305 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
6306
6307 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6308 cursor position is valid after scrolling.
6309
6310 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
6311
6312 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6313
6314 2008-11-06 Glenn Morris <rgm@gnu.org>
6315
6316 * xterm.c (handle_one_xevent): Don't let popup menus cause
6317 mouse-autoselect-window related window switching. (Bug#1261)
6318
6319 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6320
6321 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6322
6323 2008-11-04 Andreas Schwab <schwab@suse.de>
6324
6325 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6326
6327 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
6328
6329 * xfns.c (Fx_wm_set_size_hint): New function.
6330
6331 2008-11-03 Martin Rudalics <rudalics@gmx.at>
6332
6333 * textprop.c (Fprevious_single_char_property_change): Return 0
6334 when there's no change in a string. (Bug#1301)
6335
6336 2008-11-02 Martin Rudalics <rudalics@gmx.at>
6337
6338 * frame.c (do_switch_frame): New argument NORECORD passed to
6339 Fselect_window.
6340 (Fselect_frame): New argument NORECORD passed to
6341 do_switch_frame.
6342 (Fset_frame_selected_window): New argument NORECORD passed to
6343 Fselect_frame.
6344 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6345 in call of do_switch_frame.
6346 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6347 Handle NORECORD argument in call of Fselect_frame.
6348 * lisp.h (do_switch_frame, Fselect_frame)
6349 (Fset_frame_selected_window): Adjust declarations.
6350 * window.c (select_frame_norecord): New function.
6351 (run_window_configuration_change_hook): Use it and call
6352 Fselect_frame with NORECORD set.
6353 (Fselect_window): Pass NORECORD to Fselect_frame.
6354 (Fset_window_configuration): Handle NORECORD argument in call of
6355 do_switch_frame.
6356 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6357 Fset_frame_selected_window.
6358 * keyboard.c (command_loop_1): Handle NORECORD in call of
6359 Fselect_frame (currently ifdefd).
6360
6361 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6362
6363 * emacs.c (USAGE2): Untabify.
6364
6365 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6366
6367 * composite.c (fill_gstring_header): Fix copy/paste typo.
6368
6369 2008-10-31 Martin Rudalics <rudalics@gmx.at>
6370
6371 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6372 (Fother_window): Rename argument and rewrite doc-string.
6373 (select_window_norecord): Fix return value. (Bug#1276)
6374
6375 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
6376
6377 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6378 new frames overriding foreground for tooltips. Based on similar patch
6379 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6380
6381 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
6382
6383 * emacs.c (Fdaemon_initialized): Initialize nfd.
6384
6385 2008-10-29 Martin Rudalics <rudalics@gmx.at>
6386
6387 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6388 (Fwindow_text_height): Clarify doc-strings.
6389 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6390 doc-string of window-scroll-functions.
6391
6392 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6393
6394 * category.c (syms_of_category): Fix typo in docstring.
6395
6396 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
6397
6398 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6399 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6400 Fix typos in docstrings.
6401
6402 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6403
6404 * emacs.c (daemon_pipe): Make non-static.
6405 (IS_DAEMON): Move definition ...
6406 * lisp.h (IS_DAEMON): ... here.
6407 (daemon_pipe): Declare.
6408 (is_daemon): Remove.
6409 * dispnew.c (init_display): Use IS_DAEMON.
6410
6411 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6412
6413 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6414 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6415
6416 * emacs.c (is_daemon): Remove.
6417 (main): Don't set is_daemon.
6418 (IS_DAEMON): New macro.
6419 (Fdaemonp, Fdaemon_initialized): Use it.
6420 (Fdaemon_initialized): Write a char into the pipe to make sure the
6421 parent exits.
6422 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6423
6424 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
6425
6426 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6427 over-sized glyph, draw it with the default glyph width.
6428
6429 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6430 glyph, draw it with the default glyph width.
6431
6432 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6433 glyph, draw it with the default glyph width.
6434
6435 * xdisp.c (try_scrolling): When computing the distance from the
6436 scroll margin to PT, try moving some distance past the window
6437 bottom before giving up.
6438
6439 2008-10-27 Martin Rudalics <rudalics@gmx.at>
6440
6441 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6442 (Fset_window_buffer): Explain in doc-string that a window can be
6443 "strongly" dedicated to its buffer.
6444
6445 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6446
6447 * emacs.c (daemon_name): New variable.
6448 (main): Deal with --daemon=SERVER_NAME.
6449 (Fdaemonp): Return a name if one was passed to --daemon.
6450
6451 2008-10-26 Romain Francoise <romain@orebokech.com>
6452
6453 * emacs.c (daemon_pipe): New variable.
6454 (main): Create a pipe before forking, make the parent exit only after
6455 the child has closed its end of the pipe. Move closing the
6456 descriptors ...
6457 (Fdaemon_initialized): ... here. New function.
6458
6459 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6460
6461 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6462 the previous unoptimized table.
6463
6464 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6465 the distinction between non-nil and non-t value of `dedicated'.
6466
6467 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
6468
6469 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
6470 read_char_minibuf_menu_text is large enough to hold the menu string.
6471
6472 2008-10-25 Martin Rudalics <rudalics@gmx.at>
6473
6474 * window.c (Fget_buffer_window, Fdelete_windows_on)
6475 (Freplace_buffer_in_windows): Make buffer argument optional and
6476 rename to buffer_or_name.
6477
6478 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
6479
6480 * xdisp.c (handle_single_display_spec, handle_display_prop):
6481 Undo 2005-05-16 change.
6482 (handle_stop): Pop iterator if it's loaded with an empty string.
6483 (get_overlay_strings_1): Don't save iterator if it's loaded with
6484 an empty string (bug#1201).
6485
6486 2008-10-24 Kenichi Handa <handa@m17n.org>
6487
6488 * ftfont.c (ftfont_otf_features): Fix previous change.
6489 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6490 calling ftfont_otf_features.
6491
6492 2008-10-24 Kenichi Handa <handa@m17n.org>
6493
6494 * font.c (font_match_p): Fix for the case that a vector of
6495 characters is in script-representative-chars.
6496
6497 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
6498
6499 * dbusbind.c (xd_in_read_queued_messages): New variable.
6500 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
6501 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6502 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
6503 macro. (Bug#1186)
6504
6505 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
6506
6507 * s/sol2-10.h: New file.
6508
6509 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
6510
6511 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6512 poor beast has survived 9+ years and the jump from xterm.c!).
6513
6514 2008-10-23 Martin Rudalics <rudalics@gmx.at>
6515
6516 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6517 Reword doc-string.
6518 (Fbury_buffer): In doc-string say what happens to the buffer's window.
6519
6520 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
6521
6522 * character.c (syms_of_character) <script-representative-chars>:
6523 <unicode-category-table>: Doc fixes.
6524
6525 2008-10-23 Noah Friedman <friedman@splode.com>
6526
6527 * coding.c (make_conversion_work_buffer): Check that
6528 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6529 Fget_buffer_create.
6530
6531 2008-10-23 Kenichi Handa <handa@m17n.org>
6532
6533 * font.c (font_add_log): Check the values of extra properties.
6534
6535 2008-10-22 Martin Rudalics <rudalics@gmx.at>
6536
6537 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6538 Reword doc-string.
6539 (Fset_window_parameter): Use NILP.
6540 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
6541 (Frecenter): Use "selected" instead of "current" window in doc-strings.
6542
6543 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
6544
6545 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6546
6547 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6548
6549 * nsfns.m (ns_appkit_version): New function.
6550 (x-server-version): Use it.
6551 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6552 (x-server-vendor): Don't check_ns().
6553
6554 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6555
6556 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
6557
6558 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6559 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6560
6561 2008-10-22 Kenichi Handa <handa@m17n.org>
6562
6563 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6564 scripts.
6565
6566 * category.c (word_boundary_p): Check scripts instead of charset.
6567 Handle nil value in word-separating-categories and
6568 word-combining-categories.
6569 (syms_of_category): Fix docstrings of word-separating-categories
6570 and word-combining-categories.
6571
6572 2008-10-21 Eli Zaretskii <eliz@gnu.org>
6573
6574 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6575 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6576
6577 2008-10-21 Martin Rudalics <rudalics@gmx.at>
6578
6579 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6580 Rename arg "buffer" to "buffer_or_name".
6581 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6582 it optional.
6583 (no_switch_window): Remove since the return value is not used.
6584 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
6585 Consider window as dedicated when Fwindow_dedicated_p returns a
6586 non-nil value.
6587 * lisp.h: Remove prototype for no_switch_window.
6588
6589 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6590
6591 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
6592 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
6593
6594 2008-10-21 Kenichi Handa <handa@m17n.org>
6595
6596 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6597 check Vlatin_extra_code_table.
6598
6599 2008-10-20 Eli Zaretskii <eliz@gnu.org>
6600
6601 * fileio.c (Fset_file_modes): Doc fix.
6602
6603 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
6604
6605 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6606 in arrays.
6607
6608 2008-10-19 Martin Rudalics <rudalics@gmx.at>
6609
6610 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6611 Mention kill-buffer in doc-string.
6612 (Fset_window_buffer): Reinsert tem check removed in last commit.
6613 (Fenlarge_window, Fshrink_window): Have argument names and
6614 doc-string follow Elisp manual more closely.
6615
6616 2008-10-18 Eli Zaretskii <eliz@gnu.org>
6617
6618 * fileio.c (Fset_file_modes): Doc fix.
6619
6620 2008-10-18 Martin Rudalics <rudalics@gmx.at>
6621
6622 * window.c (Fwindow_width, Fset_window_start)
6623 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
6624 (Fdelete_windows_on, Freplace_buffer_in_windows):
6625 Make doc-strings follow code and Elisp manual more closely.
6626 (Fwindow_dedicated_p): Make window argument optional.
6627 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6628 (Fset_window_buffer): Respect any non-nil dedicated value for
6629 window. Rename "buffer" argument to "buffer_or_name".
6630
6631 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
6632
6633 * m/sh3.h: New file, machine description for SuperH.
6634
6635 2008-10-17 Martin Rudalics <rudalics@gmx.at>
6636
6637 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6638
6639 2008-10-17 Kenichi Handa <handa@m17n.org>
6640
6641 * ftfont.c (ftfont_otf_features): Fix indexing
6642 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6643
6644 2008-10-16 Magnus Henoch <mange@freemail.hu>
6645
6646 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6647 (Fdbus_call_method_asynchronously): Ditto.
6648 This change makes C-h f display the argument list.
6649
6650 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
6651
6652 * fileio.c (Fexpand_file_name): Doc fix.
6653
6654 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6655 of :foreground and :background equivalent to unspecified (20.x
6656 compatibility).
6657
6658 2008-10-15 Eli Zaretskii <eliz@gnu.org>
6659
6660 * buffer.c (syms_of_buffer): Doc fix.
6661
6662 2008-10-14 Kenichi Handa <handa@m17n.org>
6663
6664 * font.c (font_clear_prop): When clearing font width, clear the
6665 average width field too.
6666
6667 2008-10-12 Andreas Schwab <schwab@suse.de>
6668
6669 * ftfont.c (ftfont_shape_by_flt): Make static.
6670 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6671
6672 * font.c: Don't include <m17n-flt.h>.
6673
6674 2008-10-10 Eli Zaretskii <eliz@gnu.org>
6675
6676 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6677
6678 2008-10-09 Eli Zaretskii <eliz@gnu.org>
6679
6680 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6681 away code.
6682
6683 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
6684
6685 * dispnew.c (update_text_area): Avoid looping due to large glyph
6686 overhangs (bug#1070).
6687
6688 2008-10-09 Kenichi Handa <handa@m17n.org>
6689
6690 * fontset.c (face_for_char): If face->fontset is negative, just
6691 return ascii_face.
6692
6693 * font.c (font_delete_unmatched): Fix previous change.
6694 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
6695
6696 2008-10-09 Martin Rudalics <rudalics@gmx.at>
6697
6698 * frame.c (Fraise_frame): On text-only terminals select frame in
6699 order to make it visible. (Bug#1061)
6700
6701 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
6702
6703 * fontset.c (fontset_find_font): Check frame validity.
6704
6705 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
6706
6707 * gtkutil.c (xg_display_open): Reset default display if none exists.
6708 (xg_display_close): Allow Emacs to close all displays (bug#985).
6709
6710 2008-10-06 Andreas Schwab <schwab@suse.de>
6711
6712 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
6713
6714 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
6715
6716 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
6717
6718 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
6719
6720 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6721 during initialization.
6722
6723 2008-10-04 Eli Zaretskii <eliz@gnu.org>
6724
6725 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6726 whole thing on MSDOS frames as well as on a TTY.
6727
6728 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6729 well as for TTY.
6730 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6731 well as on a TTY.
6732
6733 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6734 as well as for TTY.
6735
6736 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6737
6738 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6739 MSDOS frames as well.
6740
6741 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6742
6743 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6744 correct arguments.
6745 * menu.c (find_and_return_menu_selection): Add cast.
6746
6747 2008-10-03 Glenn Morris <rgm@gnu.org>
6748
6749 * emacs.c (USAGE1): Add --daemon.
6750
6751 2008-10-02 Eli Zaretskii <eliz@gnu.org>
6752
6753 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6754 100, so it's in percents as advertised.
6755
6756 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6757
6758 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6759 (ns_output.current_cursor, ns_output.desired_cursor)
6760 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6761 (FRAME_NEW_CURSOR_COLOR): Remove.
6762
6763 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
6764 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
6765 enumeration (HOLLOW_BOX_CURSOR, etc.).
6766
6767 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6768 (draw_window_cursor): Simplify code.
6769 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6770 Don't change cursor type. In latter, call rehighlight instead of doing
6771 updates manually.
6772 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6773 Use core Emacs cursor types.
6774
6775 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
6776
6777 2008-10-02 Martin Rudalics <rudalics@gmx.at>
6778
6779 * process.c (Faccept_process_output): Fix doc-string.
6780
6781 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6782
6783 * gmalloc.c (__sbrk): Also define for uClibc.
6784
6785 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6786 for uClibc.
6787
6788 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6789
6790 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6791 styles.
6792 (nsfont_open): Reenable the cache.
6793
6794 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6795
6796 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6797 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6798
6799 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6800
6801 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6802 a suspended terminal.
6803
6804 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
6805
6806 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6807
6808 2008-09-30 Eli Zaretskii <eliz@gnu.org>
6809
6810 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6811
6812 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
6813
6814 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6815 in a continued line coincides with a line beginning.
6816
6817 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6818
6819 * nsfont.m (nsfont_trait_distance): Fix bug.
6820 (nsfont_list): Return a list rather than a vector (syncs with Handa
6821 changes of 2008-05-14).
6822 (nsfont_open): Improve logging.
6823
6824 2008-09-29 Andreas Schwab <schwab@suse.de>
6825
6826 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6827
6828 2008-09-28 Martin Rudalics <rudalics@gmx.at>
6829
6830 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6831 name as char-resolve-modifiers.
6832 Reported by: Markus Triska <markus.triska@gmx.at>
6833
6834 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6835
6836 * dispnew.c (init_display): Return earlier when running as a daemon.
6837
6838 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6839
6840 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6841
6842 2008-09-27 Eli Zaretskii <eliz@gnu.org>
6843
6844 * composite.c (Fcomposition_get_gstring)
6845 (Fcompose_region_internal, Fcompose_string_internal)
6846 (Ffind_composition_internal): Doc fix.
6847 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6848 (syms_of_composite) <auto-composition-function>: Doc fix.
6849 (syms_of_composite) <composition-function-table>: Doc fix.
6850
6851 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
6852
6853 * search.c (wordify): New argument for lax word-ends.
6854 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6855
6856 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6857
6858 * lisp.h (is_daemon): Declare.
6859 * dispnew.c (init_display): Do not try to initialize the terminal
6860 when running as a daemon.
6861
6862 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
6863
6864 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6865 x_display_pixel_height.
6866
6867 2008-09-22 Martin Rudalics <rudalics@gmx.at>
6868
6869 * undo.c (record_point): Don't call Fundo_boundary for first
6870 change. (Bug#731)
6871
6872 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
6873
6874 * emacs.c (Fdaemonp): Doc fix.
6875
6876 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6877
6878 * emacs.c (main): Place #ifdef in the proper place.
6879
6880 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6881
6882 * emacs.c (standard_args): Add --daemon.
6883 (main): Disconnect from the terminal when --daemon is passed.
6884 (is_daemon): New variable.
6885 (Fdaemonp): New function.
6886 (syms_of_emacs): Defsubr it.
6887
6888 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
6889
6890 * xdisp.c (get_next_display_element): Handle string display
6891 correctly when checking for the end of a box run.
6892
6893 2008-09-20 Glenn Morris <rgm@gnu.org>
6894
6895 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6896 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6897 (Frename_file): Avoid copying to trash if a rename involves
6898 a delete. (Bug#964).
6899
6900 2008-09-20 Eli Zaretskii <eliz@gnu.org>
6901
6902 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6903 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6904 frames as well as termcap frames.
6905 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6906 get_named_tty.
6907
6908 2008-09-19 Eli Zaretskii <eliz@gnu.org>
6909
6910 * process.c (procfs_system_process_attributes): Fix cmdline in
6911 case /proc/PID/cmdline is empty.
6912
6913 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6914 x_display_pixel_height.
6915
6916 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
6917
6918 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6919
6920 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6921 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6922
6923 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6924
6925 * dispextern.h (struct it): Move line_wrap away from the middle of
6926 bitfields. Move voffset in struct iterator_stack_entry after the
6927 bitfields. Move tab_width near after another short.
6928
6929 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6930
6931 * frame.h (struct frame): Move alpha from the middle of bitfields.
6932
6933 * window.h (struct window): Move frozen_window_start_p after the
6934 rest of the bitfields to reduce padding.
6935
6936 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
6937
6938 * xterm.h (x_display_info): Remove `height' and `width' members.
6939
6940 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6941
6942 * w32term.h (w32_display_info): Remove `height', `width',
6943 `height_in', and `width_in' members.
6944
6945 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6946 New functions.
6947 (x_calc_absolute_position): Use them.
6948 (x_term_init): Omit removed `height' and `width' members.
6949
6950 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6951 New functions.
6952 (w32_read_socket, x_calc_absolute_position): Use them.
6953 (w32_initialize_display_info, w32_term_init): Omit removed members
6954 of w32_display_info.
6955
6956 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6957 New functions.
6958 (ns_initialize_display_info): Omit removed members of ns_display_info.
6959
6960 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6961 New functions.
6962 (x_calc_absolute_position): Use them.
6963 (x_term_init): Omit removed `height' and `width' members.
6964
6965 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6966 (compute_tip_xy):
6967 * frame.c (x_fullscreen_adjust):
6968 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6969 x_display_pixel_width.
6970
6971 2008-09-18 Kenichi Handa <handa@m17n.org>
6972
6973 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6974 (composition_compute_stop_pos): Fix handling of static composition.
6975 (Fcomposition_get_gstring): Check FROM and TO at first.
6976
6977 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6978
6979 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
6980 mixup (YAILOM).
6981
6982 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
6983
6984 * indent.c (Fvertical_motion): Use position reported by iterator
6985 instead of PT for determining screen motion (bug#943).
6986
6987 2008-09-17 Romain Francoise <romain@orebokech.com>
6988
6989 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6990
6991 2008-09-17 Kenichi Handa <handa@m17n.org>
6992
6993 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6994
6995 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6996 if necessary.
6997
6998 2008-09-16 Kenichi Handa <handa@m17n.org>
6999
7000 * coding.c (make_conversion_work_buffer): Avoid calling
7001 Fget_buffer_create if it is not necessary.
7002
7003 2008-09-15 Martin Rudalics <rudalics@gmx.at>
7004
7005 * window.c (Fselect_window): Don't update window_select_count and
7006 use_time when norecord is not nil.
7007
7008 2008-09-14 Kenichi Handa <handa@m17n.org>
7009
7010 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
7011 specpdl_ptr.
7012
7013 2008-09-12 Kenichi Handa <handa@m17n.org>
7014
7015 * indent.c (scan_for_column): Don't handle automatic composition
7016 if the current buffer is not associated with a window.
7017
7018 * composite.c (composition_reseat_it): If the current buffer is
7019 not associated with a window, ignore the automatic composition.
7020 (find_automatic_composition): Likewise.
7021
7022 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7023
7024 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
7025 (Fgpm_mouse_stop): Use it.
7026 * termhooks.h (close_gpm): Declare.
7027 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
7028 connection if Gpm_GetEvent fails.
7029
7030 * window.c (set_window_buffer): Always preserve current-buffer.
7031
7032 2008-09-12 Glenn Morris <rgm@gnu.org>
7033
7034 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
7035
7036 2008-09-11 Glenn Morris <rgm@gnu.org>
7037
7038 * charset.c (charset-map-path): Doc fix.
7039
7040 2008-09-10 Kenichi Handa <handa@m17n.org>
7041
7042 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
7043
7044 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
7045 compose a grapheme cluster with the preceding base glyph.
7046
7047 * composite.c (composition_compute_stop_pos): Fix previous change.
7048 Reset cmp_it->id to -1 at first.
7049
7050 2008-09-10 Glenn Morris <rgm@gnu.org>
7051
7052 * Makefile.in (character.o, chartab.o): Fix config.h typo.
7053
7054 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
7055
7056 * keyboard.c (read_key_sequence): Reapply translation maps when
7057 switching keyboards.
7058
7059 2008-09-09 Kenichi Handa <handa@m17n.org>
7060
7061 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
7062 characters.
7063
7064 * composite.c (FORWARD_CHAR): Fix calculation
7065 of (POSITION).pos_byte.
7066 (composition_compute_stop_pos): Limit the search of composition to
7067 at most 500 characters ahead. If we reach the limit or find a
7068 newline, set cmp_it->ch to -2 and return 0.
7069 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
7070
7071 2008-09-08 Kenichi Handa <handa@m17n.org>
7072
7073 * indent.c (Fvertical_motion): Be sure to set
7074 it_overshoot_expected if it.cmp_it.id is non-negative.
7075
7076 2008-09-07 Andreas Schwab <schwab@suse.de>
7077
7078 * callproc.c (Fcall_process): Don't hold references to string data
7079 across garbage collection. Move initialisation of new_argv down
7080 to avoid compiler bug.
7081
7082 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7083
7084 * process.c (Fsystem_process_attributes): Doc fix.
7085
7086 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
7087
7088 * callproc.c (Fcall_process): Canonicalize current directory name.
7089
7090 * xdisp.c (move_it_to): When moving by vpos, ensure that the
7091 iterator advances to the next line if the current line ends in a
7092 continued tab.
7093
7094 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
7095
7096 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7097 member to point to cmp_from.
7098
7099 * xdisp.c: Doc fix for references to gidx data member.
7100
7101 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7102
7103 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7104
7105 2008-09-07 Kenichi Handa <handa@m17n.org>
7106
7107 * composite.c (FORWARD_CHAR): Check STOP after
7108 incrementing (POSITION).pos.
7109
7110 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7111
7112 * process.c (Fsystem_process_attributes): Doc fix.
7113
7114 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
7115
7116 * keyboard.c (Ftop_level): Doc fix.
7117
7118 2008-09-06 Eli Zaretskii <eliz@gnu.org>
7119
7120 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7121 minibuffer, don't let lower part of menu invade the echo area.
7122
7123 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7124 "char *q" to access menu text and advance through it. Revert the
7125 change that displayed ">" instead of ASCII character 0x10.
7126
7127 2008-09-05 Eli Zaretskii <eliz@gnu.org>
7128
7129 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7130 toggle boxes and radio buttons on MS-DOS as well.
7131
7132 2008-09-05 Kenichi Handa <handa@m17n.org>
7133
7134 * composite.c (autocmp_chars): Check lookback count.
7135 (composition_compute_stop_pos): Set cmp_it->lookback.
7136 (composition_reseat_it): Check lookback count.
7137 (struct position_record): New struct.
7138 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7139 (find_automatic_composition): New function.
7140 (composition_adjust_point): Use find_automatic_composition.
7141
7142 * dispextern.h (struct composition_it): New member lookback.
7143
7144 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
7145
7146 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7147 if moving by a single line.
7148
7149 2008-09-02 Andreas Schwab <schwab@suse.de>
7150
7151 * xterm.c (x_delete_display): Fix merge error.
7152
7153 * fileio.c (Fexpand_file_name): Remove unused variables.
7154
7155 2008-09-02 Eli Zaretskii <eliz@gnu.org>
7156
7157 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7158 storage on all platforms, not just on DOS_NT.
7159
7160 2008-09-02 Jason Rumney <jasonr@gnu.org>
7161
7162 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7163 Ensure mouse is not grabbed after menu is finished.
7164
7165 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
7166
7167 * xfaces.c (Finternal_set_alternative_font_family_alist)
7168 (Finternal_set_alternative_font_registry_alist): Properly copy
7169 entire alist structure.
7170
7171 2008-09-01 Kenichi Handa <handa@m17n.org>
7172
7173 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
7174 representative chars of the script is a vector.
7175 (ftfont_list): Handle the case where the representative chars of
7176 the script is a vector.
7177
7178 * character.c (syms_of_character): Docstring of
7179 script-representative-chars fixed.
7180
7181 2008-08-31 Eli Zaretskii <eliz@gnu.org>
7182
7183 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7184 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7185 the menu. Allocate larger buffer for `text', to account for
7186 possible ^C characters.
7187
7188 2008-08-31 Martin Rudalics <rudalics@gmx.at>
7189
7190 * xdisp.c (prepare_menu_bars): Don't call
7191 Vwindow_size_change_functions with arg Qt.
7192
7193 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7194
7195 * font.h (font_range):
7196 * fileio.c (report_file_error):
7197 * composite.c (composition_update_it): Yet another int/Lisp_Object
7198 mixup (YAILOM).
7199
7200 2008-08-30 Glenn Morris <rgm@gnu.org>
7201
7202 * data.c (Fmake_variable_frame_local): Doc fix.
7203
7204 * frame.c (Fmodify_frame_parameters): Doc fix.
7205
7206 2008-08-30 Eli Zaretskii <eliz@gnu.org>
7207
7208 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7209 needed by GetTokenInformation.
7210 (w32_system_process_attributes): Check return values of all system
7211 APIs.
7212
7213 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7214 only when the state changes.
7215 (IT_update_begin, IT_update_end): Add termscript trace.
7216
7217 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7218 clipboard is unavailable. Set dst to NULL if it doesn't point to
7219 malloc'ed data.
7220 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7221 passing random values to xfree.
7222
7223 * dispnew.c (init_display): Set `tty's association in frame's
7224 parameters alist to the name of the terminal device, if that is known.
7225
7226 2008-08-29 Jason Rumney <jasonr@gnu.org>
7227
7228 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7229
7230 2008-08-29 Eli Zaretskii <eliz@gnu.org>
7231
7232 * composite.c (fill_gstring_body): Avoid compiler warnings.
7233
7234 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7235 LGLYPH_SET_CODE to avoid compiler warnings.
7236
7237 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
7238
7239 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7240
7241 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7242 LGLYPH_SET_CODE.
7243
7244 2008-08-29 Kenichi Handa <handa@m17n.org>
7245
7246 * fileio.c (report_file_error): Don't downcase the first character
7247 of errstring if it is still unibyte.
7248
7249 2008-08-29 Kenichi Handa <handa@m17n.org>
7250
7251 These changes are to re-implement the automatic composition so
7252 that it doesn't use text properties.
7253
7254 * Makefile.in (ftfont.o): Depend on composite.h.
7255 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7256
7257 * character.h (Vunicode_category_table): Extern it.
7258
7259 * character.c (Vunicode_category_table): New variable.
7260 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7261
7262 * chartab.c (optimize_sub_char_table): Perform more greedy
7263 optimization.
7264
7265 * composite.h (enum composition_method):
7266 Delete COMPOSITION_WITH_GLYPH_STRING.
7267 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7268 (Vcomposition_function_table): Extern it.
7269 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7270 (composition_gstring_put_cache, composition_gstring_from_id)
7271 (composition_gstring_p, composition_gstring_width)
7272 (composition_compute_stop_pos, composition_reseat_it)
7273 (composition_update_it, composition_adjust_point): Extern them.
7274 (Fcomposition_get_gstring): EXFUN it.
7275
7276 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
7277 (Vcomposition_function_table)
7278 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
7279 (gstring_hash_table, gstring_work, gstring_work_headers):
7280 New variables.
7281 (gstring_lookup_cache, composition_gstring_put_cache)
7282 (composition_gstring_from_id, composition_gstring_p)
7283 (composition_gstring_width, fill_gstring_header)
7284 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7285 (composition_reseat_it, composition_update_it)
7286 (composition_adjust_point, Fcomposition_get_gstring): New functions.
7287 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7288 and gstring_work_headers. DEFVAR_LISP composition-function-table.
7289 Defsubr composition_get_gstring.
7290
7291 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7292 cmp_id.
7293 (struct glyph_string): Delete the member gidx. New members
7294 cmp_id, cmp_from, and cmp_to.
7295 (enum it_method): Delete GET_FROM_COMPOSITION.
7296 (struct composition_it): New struct.
7297 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7298 Delete c, len, cmp_id, cmp_len in u.comp.
7299
7300 * font.h (enum lgstring_indices): Delete it.
7301 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
7302 (enum lglyph_indices): Likewise.
7303 (font_range): Adjust extern.
7304 (font_fill_lglyph_metrics): Extern it.
7305
7306 * font.c (QCf): New variable.
7307 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7308 (font_prepare_composition): Delete this function.
7309 (font_range): Type and arguments changed.
7310 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7311 (font_fill_lglyph_metrics): New function.
7312 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
7313 (syms_of_font): DEFSYM QCf. Delete defsubr for
7314 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7315 Defsubr Sfont_shape_gstring.
7316
7317 * fontset.h (font_for_char): Extern it.
7318
7319 * fontset.c (font_for_char): New function.
7320
7321 * ftfont.c: Include composite.h.
7322 (ftfont_resolve_generic_family): Add langset "en" to pattern.
7323 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7324
7325 * indent.c: Include composite.h and dispextern.h.
7326 (check_composition): Delete this function.
7327 (scan_for_column): Handle composition by
7328 composition_compute_stop_pos, composition_reseat_it, and
7329 composition_update_it.
7330 (compute_motion): Likewise.
7331 (Fvertical_motion): Fix checking of composition.
7332
7333 * keyboard.c (adjust_point_for_property): Check composition by
7334 composition_adjust_point.
7335
7336 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
7337 struct glyph_string.
7338
7339 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7340 (append_composite_glyph): Adjust for the change of struct it and
7341 struct glyph.
7342 (produce_composite_glyph): Likewise.
7343
7344 * w32term.c (x_draw_composite_glyph_string_foreground):
7345 Adjust for the change of struct glyph_string.
7346 (x_draw_glyph_string): Likewise.
7347
7348 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7349 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7350
7351 * xdisp.c: Include font.h.
7352 (it_props): Delete the entry for Qauto_composed.
7353 (init_iterator): Initialize it->cmp_it.id to -1.
7354 (compute_stop_pos): Call composition_compute_stop_pos.
7355 (face_before_or_after_it_pos): Adjust for the change of struct it.
7356 (handle_auto_composed_prop): Delete it.
7357 (handle_composition_prop): Handle only static composition.
7358 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7359 from xassert. Initialize it->cmp_it.stop_pos.
7360 (push_it): Adjust for the change of struct it.
7361 (pop_it): Likewise.
7362 (get_next_element): Delete next_element_from_composition.
7363 (CHAR_COMPOSED_P): New macro.
7364 (get_next_display_element): For automatic composition, get a face
7365 from the font in the glyph-string.
7366 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
7367 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
7368 (next_element_from_string): Check if the character at the current
7369 position is composed by CHAR_COMPOSED_P.
7370 (next_element_from_buffer): Likewise.
7371 (next_element_from_composition): Adjust for the change of struct it.
7372 Update it->cmp_it.
7373 (dump_glyph): Adjust for the change of struct glyph.
7374 (fill_composite_glyph_string): Adjust for the change of struct
7375 it and struct glyph. Don't handle automatic composition here.
7376 (fill_gstring_glyph_string): New function.
7377 (x_get_glyph_overhangs): Handle automatic composition.
7378 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
7379 (BUILD_GSTRING_GLYPH_STRING): New macro.
7380 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7381 automatic composition.
7382 (append_composite_glyph): Adjust for the change of struct it and
7383 struct glyph.
7384 (x_produce_glyphs): Adjust for the change of struct it.
7385
7386 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
7387 the change of struct glyph_string.
7388 (x_draw_glyph_string): Likewise.
7389
7390 2008-08-29 Glenn Morris <rgm@gnu.org>
7391
7392 * buffer.c (word-wrap): Doc fix.
7393 * xdisp.c (truncate-partial-width-windows): Doc fix.
7394 Increase default to 50.
7395
7396 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
7397
7398 * xdisp.c (update_tool_bar_unwind): New function.
7399 (update_tool_bar): Temporarily set selected frame before building
7400 tool-bar items.
7401
7402 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
7403
7404 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7405 snprintf, respectively.
7406 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7407
7408 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
7409
7410 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7411 LDFLAGS to GNUstep CC invocation.
7412
7413 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
7414
7415 * indent.c (Fvertical_motion): Revert last change. Handle the
7416 general case where we are moving forward, and PT spans multiple
7417 screen lines.
7418
7419 * eval.c (find_handler_clause): Temporarily increase
7420 max-lisp-eval-depth while printing the backtrace buffer, to
7421 guarantee that help-mode code can run.
7422
7423 2008-08-27 Eli Zaretskii <eliz@gnu.org>
7424
7425 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7426 colors under -rv.
7427 (IT_set_frame_parameters): Don't swap foreground and background
7428 colors if `(reverse . t)' is present in the frame properties.
7429 (internal_terminal_init): Call init_frame_faces only for the
7430 initial frame.
7431
7432 2008-08-27 Andreas Schwab <schwab@suse.de>
7433
7434 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7435
7436 2008-08-27 Andreas Schwab <schwab@suse.de>
7437
7438 * search.c (search_buffer): Set char_base to zero only at the end.
7439
7440 2008-08-27 Kenichi Handa <handa@m17n.org>
7441
7442 * fileio.c (report_file_error): Fix handling of multibyte error string.
7443
7444 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7445
7446 * xterm.c (x_term_init): Temporarily hide the partially
7447 initialized terminal while calling vendor-specific-keysyms.
7448
7449 2008-08-26 Eli Zaretskii <eliz@gnu.org>
7450
7451 * msdos.c (internal_terminal_init): Most initializations done only
7452 once, especially initial_screen_colors[] and termscript open.
7453
7454 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
7455
7456 * eval.c (Fcondition_case): Doc fix.
7457
7458 * widgetprv.h (EmacsFramePart): Change font member to the new font
7459 struct.
7460
7461 * widget.c: Include character.h and font.h for XSETFONT.
7462 (setup_frame_gcs): Compute X font id from font struct, just once.
7463
7464 2008-08-26 Eli Zaretskii <eliz@gnu.org>
7465
7466 * term.c (get_named_tty): Fix last change.
7467
7468 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
7469
7470 * indent.c (Fvertical_motion): If moving forward starting from a
7471 multi-line string, move the iterator to the last line of that string.
7472
7473 2008-08-25 Eli Zaretskii <eliz@gnu.org>
7474
7475 * frame.c (do_switch_frame): Mark previously displayed frame as
7476 obscured for FRAME_MSDOS_P frames as well.
7477
7478 2008-08-24 Eli Zaretskii <eliz@gnu.org>
7479
7480 * frame.c (make_terminal_frame): Initialize f->terminal,
7481 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7482 Set the top frame to newly created frame.
7483 (Fmake_terminal_frame): Reuse the_only_display_info.
7484
7485 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7486 estimating available memory.
7487
7488 2008-08-23 David Reitter <david.reitter@gmail.com>
7489
7490 * nsterm.m (ns_draw_window_cursor): Don't call
7491 NSDisableScreenUpdates and NSEnableScreenUpdates on
7492 non-NS_IMPL_COCOA systems.
7493
7494 2008-08-23 Andreas Schwab <schwab@suse.de>
7495
7496 * process.c (procfs_system_process_attributes): Fix use of
7497 uninitialized variables.
7498
7499 2008-08-23 Eli Zaretskii <eliz@gnu.org>
7500
7501 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7502
7503 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7504 calling tty-set-up-initial-frame-faces.
7505
7506 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7507 Allow MSDOS frames along with X frames.
7508
7509 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7510 addition to output_termcap.
7511
7512 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7513
7514 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7515 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7516 highlight.
7517
7518 * process.c [!subprocesses]: Define QCname.
7519 (syms_of_process): Intern and staticpro it.
7520
7521 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
7522 Adjust for changes in encoding/decoding routines.
7523 Use encode_coding_object and decode_coding_object instead of
7524 encode_coding and decode_coding.
7525
7526 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
7527
7528 * dosfns.c: Include frame.h before termhooks.h.
7529 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7530 variable termscript.
7531
7532 * s/msdos.h (USER_FULL_NAME): Define.
7533 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7534
7535 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7536 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7537 pw->pw_gecos.
7538
7539 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7540 SELECTED_FRAME as additional (1st) argument.
7541 (tty_read_avail_input): Handle output_msdos_raw in
7542 addition to output_termcap.
7543
7544 * msdos.c: Include frame.h before termhooks.h.
7545 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7546 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7547 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7548 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7549 (IT_set_terminal_modes, IT_reset_terminal_modes)
7550 (IT_set_frame_parameters): Use tty->termscript instead of a global
7551 variable termscript.
7552 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7553 global variable terminal_coding. Don't refer to
7554 Vnonascii_translation_table.
7555 (internal_terminal_init): Set Vwindow_system in current_kboard.
7556 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7557 Announce date and time of session start, if termscript is open.
7558 Don't zero out the_only_display_info (it is done in
7559 term.c:init_tty). Open termscript only of not already open.
7560 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
7561 here instead of dos_ttraw. Don't initialize display if this is an
7562 initial tty. Don't set FRAME_FONT.
7563 (Vwindow_system_version): Bump to 23.
7564 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7565 is available, set up mouse_position_hook.
7566 (dos_ttraw, IT_set_terminal_modes): If called with initial
7567 terminal, do nothing.
7568 (IT_set_frame_parameters): Handle the Qtty_type frame
7569 parameter by calling internal_terminal_init.
7570 (dos_set_window_size, show_mouse_face)
7571 (clear_mouse_face, IT_note_mode_line_highlight)
7572 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7573 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7574 (initialize_msdos_display): New function.
7575 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7576 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7577 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7578 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
7579 Accept additional argument: a pointer to a frame. Update all callers.
7580 (request_sigio, unrequest_sigio): Don't define, now defined on
7581 sysdep.c.
7582 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7583
7584 * term.c [MSDOS]: Include msdos.h.
7585 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7586 conditional to DOS_NT. Allow only one call to this function in a
7587 session. Don't allocate a new struct tty_display_info; instead,
7588 reuse the_only_display_info. Call get_tty_size to get screen
7589 dimensions. Call init_baud_rate to set bad_rate.
7590 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7591 (Fsuspend_tty) [MSDOS]: Don't close input and output.
7592 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
7593 (get_tty_terminal, get_named_tty, Ftty_type)
7594 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7595 output_termcap.
7596 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7597 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
7598 only when subprocesses are supported.
7599
7600 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7601 f->output_data.x.
7602 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7603 terminal devices.
7604
7605 * msdos.h: Remove definition of struct x_display_info and struct
7606 x_output.
7607 (FRAME_FONT): Use output_data.tty.
7608 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
7609 (struct x_display_info): Rename from display_info. Update all users in
7610 msdos.c.
7611 (struct x_output): Remove background_pixel and foreground_pixel.
7612 (the_only_display_info): Rename from the_only_x_display.
7613 (dos_ttraw): Update prototype.
7614
7615 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7616 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7617
7618 2008-08-23 Jason Rumney <jasonr@gnu.org>
7619
7620 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7621 (fn_TIFFSetDirectory): New library function used.
7622 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7623 (tiff_load): Use :index to select among multiple images. Set count
7624 property when multiple images exist.
7625 (gif_format): Use :index, not :image.
7626
7627 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
7628
7629 * xdisp.c (try_scrolling): Check INT_MAX instead of
7630 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7631 to obtain INT_MAX.
7632
7633 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7634
7635 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7636
7637 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7638
7639 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7640 GNUstep library location.
7641
7642 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
7643
7644 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7645 before using it.
7646
7647 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7648
7649 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7650
7651 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7652 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7653 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7654 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7655 (EmacsApp-cursor_blink_handler): Remove declaration.
7656 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7657 match 01 Feb 2008 changes in xterm.c.
7658 (ns_read_socket): Add cast to avoid warning.
7659 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7660 GNUstep.
7661
7662 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
7663
7664 * xselect.c (x_get_foreign_selection): Return nil if desired
7665 selection could not be obtained, instead of signalling an error.
7666
7667 2008-08-20 David Reitter <david.reitter@gmail.com>
7668
7669 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7670 * nsterm.m: Remove ns-specific code for cursor blinking.
7671 (ns_draw_window_cursor): Clear cursor properly rather than
7672 redrawing the area. Respect width of bar cursors.
7673 These changes enable the use of generic blink-cursor-mode and
7674 generic cursor types in NS and support smooth cursor movements (do
7675 not blink off after command).
7676 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7677 Nextstep, too.
7678
7679 2008-08-19 Kenichi Handa <handa@m17n.org>
7680
7681 * font.c (Vfont_log_deferred): New variable.
7682 (font_add_log): Check Vfont_log_deferred.
7683 (font_deferred_log): New function.
7684
7685 * font.h (font_deferred_log): Extern it.
7686
7687 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7688 for sorting.
7689 (face_for_char): Use deferred log.
7690
7691 2008-08-18 Kenichi Handa <handa@m17n.org>
7692
7693 * fontset.c (face_for_char): Add font log.
7694
7695 * font.c (font_add_log): Add the font properties :script, :lang,
7696 and :otf in the log.
7697
7698 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
7699
7700 * xdisp.c: Remove dead code.
7701 (handle_invisible_prop, next_overlay_string): Defer call to
7702 setup_for_ellipsis.
7703 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7704
7705 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
7706
7707 * xfaces.c (lookup_derived_face): Properly handle possible zero
7708 return value of get_lface_attributes.
7709 (merge_faces): Don't tell lookup_derived_face to signal an error
7710 if face is not found.
7711
7712 * dired.c (Fdirectory_files): Doc fix.
7713
7714 * process.c (make_process): Initialize kill_without_query struct
7715 member.
7716
7717 2008-08-15 Eli Zaretskii <eliz@gnu.org>
7718
7719 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7720 Alternative calculation of totphys for Visual Studio 6.
7721
7722 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7723
7724 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7725 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7726 All users changed.
7727 (stat): Only root directory passed to GetDriveType. Allow RAM
7728 disk as well as local fixed disk when w32-get-true-file-attributes
7729 is set to `local'.
7730 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7731 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7732 (w32_cached_id, w32_add_to_cache): New functions.
7733 (get_name_and_id): Look account names in the cache before calling
7734 lookup_account_sid.
7735 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7736 New initialization flags.
7737 (globals_of_w32): Initialize them to zero.
7738 (w32_system_process_attributes): Use w32_cached_id and
7739 w32_add_to_cache.
7740
7741 2008-08-14 Lawrence Mitchell <wence@gmx.li>
7742
7743 * lread.c (Fread_char, Fread_char_exclusive): If no character
7744 event is read before timeout is reached, return nil, rather than
7745 converting to a number.
7746
7747 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
7748
7749 * fns.c (use_dialog_box): Doc fix.
7750
7751 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7752 on OS X.
7753
7754 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
7755
7756 * frame.c (Qns_parse_geometry): New var.
7757 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7758
7759 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
7760
7761 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7762 space character in calculating tabs.
7763
7764 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7765
7766 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7767
7768 2008-08-10 Glenn Morris <rgm@gnu.org>
7769
7770 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7771 silence gcc "limited range of data type" warnings in some
7772 make_fixnum_or_float calls.
7773
7774 2008-08-09 Eli Zaretskii <eliz@gnu.org>
7775
7776 * w32.c (w32_system_process_attributes): If the process does not
7777 exist, return nil.
7778
7779 * w32.c: Include thelp32.h, psapi.h and coding.h.
7780 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7781 declarations.
7782 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7783 (Process32Next_Proc): New typedefs.
7784 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7785 (g_b_init_process32_next, g_b_init_open_thread_token)
7786 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7787 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7788 (g_b_init_get_process_working_set_size)
7789 (g_b_init_global_memory_status_ex): New static variables.
7790 (globals_of_w32): Initialize them.
7791 (create_toolhelp32_snapshot, process32_first, process32_next)
7792 (open_thread_token, impersonate_self, revert_to_self)
7793 (get_process_memory_info, get_process_working_set_size)
7794 (global_memory_status, global_memory_status_ex): New wrapper
7795 functions.
7796 (w32_list_system_processes, w32_system_process_attributes)
7797 (enable_privilege, restore_privilege, ltime, process_times):
7798 New functions.
7799 (convert_time_raw): New function.
7800 (convert_time): Remove conversion of FILETIME into time in 100
7801 nsec units, call convert_time_raw instead.
7802
7803 * process.h (w32_list_system_processes, w32_system_process_attributes):
7804 Add prototypes.
7805 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7806 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7807 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7808 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7809
7810 * process.c (Fsystem_process_attributes): Doc fix.
7811
7812 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
7813
7814 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7815 a continued multi-char glyph; if so, advance to the actual glyph.
7816
7817 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7818
7819 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7820
7821 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7822 (.m.o): Use it.
7823 * config.in: Regenerate.
7824
7825 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
7826
7827 * xdisp.c (redisplay_window): Revert last change.
7828 (try_window): Check bottom scroll margin too.
7829
7830 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7831
7832 * config.in: Regenerate.
7833
7834 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7835 -list-load-path-shadows'.
7836 (nsgui.h): Reduce number of things depending on it.
7837
7838 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
7839
7840 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7841 instead of window-end which does the wrong thing at eob.
7842 (try_cursor_movement): Minor optimization.
7843 (redisplay_window): If scroll margin is defined, don't assume
7844 window doesn't need scrolling.
7845
7846 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7847
7848 * config.in: Regenerate.
7849
7850 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7851 (mostlyclean): Don't delete *.d under NS.
7852
7853 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7854
7855 2008-08-06 Kenichi Handa <handa@m17n.org>
7856
7857 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7858
7859 2008-08-06 Andreas Schwab <schwab@suse.de>
7860
7861 * config.in: Regenerate.
7862
7863 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
7864
7865 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7866 forcing a window start.
7867
7868 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7869 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7870
7871 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7872
7873 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7874 argument.
7875
7876 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
7877
7878 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7879 <scroll-down-aggressively, before-change-functions>:
7880 <after-change-functions>: Reflow docstrings.
7881
7882 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7883 Ken Raeburn <raeburn@gnu.org>
7884
7885 Dock menu customization, based on a patch by Ken Raeburn, plus some
7886 other fixes.
7887 * nsmenu.m (dockMenu): New variable.
7888 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7889
7890 * nsterm.h (dockMenu): Declare.
7891
7892 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7893 (ns_term_init): Initialize dockMenu.
7894 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7895 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7896 left.
7897
7898 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7899
7900 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
7901
7902 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7903
7904 * config.in: Regenerate.
7905
7906 2008-08-04 Seiji Zenitani <zenitani@mac.com>
7907
7908 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7909
7910 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
7911
7912 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7913
7914 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7915
7916 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7917
7918 * keyboard.h: Comment an #endif.
7919
7920 * lisp.h (have_menus_p): Adjust comment.
7921
7922 * menu.c (find_and_return_menu_selection): Fix comparison with
7923 client_data.
7924
7925 * nsmenu.m (popup_activated_flag): New variable.
7926 (popup_activated): New function.
7927 (menu-or-popup-active-p): New exported lisp definition.
7928 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7929 when popup done.
7930 (ns_popup_dialog): Set popup_activated_flag.
7931
7932 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7933 version for GNUstep (handled by conditional typedef in nsterm.m).
7934 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7935 in rgb.txt).
7936
7937 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7938
7939 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7940
7941 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7942
7943 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7944 shortcircuit if popup_activated like GTK and X toolkit.
7945
7946 * m/inter386.h: Change DARWIN to DARWIN_OS.
7947
7948 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7949 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7950 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7951 comment on NO_SOCK_SIGIO.
7952
7953 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
7954
7955 * nsterm.m (windowDidResize): Remove stopModal call.
7956
7957 2008-08-03 Andreas Schwab <schwab@suse.de>
7958
7959 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7960 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7961
7962 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
7963
7964 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7965 Don't use uninitialized pointer variable when using getrlimit.
7966
7967 2008-08-02 Jason Rumney <jasonr@gnu.org>
7968
7969 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7970
7971 2008-08-02 Eli Zaretskii <eliz@gnu.org>
7972
7973 * alloc.c (NSTATICS): Bump to 0x640.
7974
7975 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7976
7977 * lisp.h: Add prototype for directory_files_internal.
7978
7979 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7980 New functions.
7981 (syms_of_process): Defsubr them. Add initializations for various
7982 Q* symbols used in procfs_system_process_attributes.
7983 (procfs_list_system_processes, procfs_system_process_attributes)
7984 [HAVE_PROCFS]: New functions.
7985 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7986 (procfs_get_total_memory): New functions.
7987
7988 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
7989
7990 * xfaces.c (Fx_load_color_file): Fix previous change;
7991 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7992
7993 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
7994
7995 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7996
7997 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7998
7999 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
8000
8001 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
8002
8003 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
8004
8005 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
8006 define NSApplicationDelegateReplySuccess.
8007 (EmacsView -converstationIdentifier): Use long instead of
8008 NSInteger for GNUstep, since it doesn't have NSInteger.
8009
8010 * xmenu.c: Revert last change.
8011
8012 * keyboard.h: Fix last change.
8013
8014 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
8015
8016 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
8017 on Windows.
8018
8019 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8020
8021 Warning clearing and clean-up in NS port.
8022 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
8023 Add prototypes.
8024 * nsgui.h (FACE_DEFAULT): Remove, unused.
8025 (XGCValues): Change colors to unsigned long.
8026 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
8027 nsterm.m.
8028 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
8029 (ns_list_fonts): Remove, unused.
8030 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
8031 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
8032 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
8033 (nsfont_draw): Compare face colors to 0, not nil.
8034 * nsmenu.m (struct widget_value): Drop unneeded declaration.
8035 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
8036 (-addSubmenuWithTitle:): Use NSMenuItem class.
8037 (ns_popup_menu): Use NO, not NULL, for enabled setting.
8038 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
8039 (ns_clip_to_row): Make gc arg a BOOL.
8040 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
8041 ns_clip_to_row() call.
8042 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
8043 used). Cast FRAME_FONT assignments.
8044 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
8045 (ns_string_to_lispmod): Change arg to const char.
8046 (ns_term_init): Use NSMenuItem class.
8047 (EmacsApp -openFile:): Move to different section of file.
8048 (EmacsApp -application:openFiles:): Don't return a value, call
8049 -replyToOpenOrPrint:.
8050 (EmacsView -keyDown:): Fix up cast.
8051 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
8052 (EmacsView -menuDown:): Cast tag in call to
8053 find_and_call_menu_selection().
8054 (ns_list_fonts): Remove, unused.
8055 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
8056 (ns_fontname_to_xlfd): Make static.
8057 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
8058 Remove prototypes (now in keyboard.h).
8059 (next_menubar_widget_id): Remove, unused.
8060 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
8061 Remove prototypes (now in keyboard.h).
8062 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
8063
8064 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
8065
8066 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
8067 (floatfns.o): Depend on syssignal.h.
8068 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
8069
8070 * systty.h: Fix previous change that removed BSD_TERMIOS.
8071 Add comments to #ifdefs.
8072
8073 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8074
8075 * w32fns.c (w32-load-color-file): Remove.
8076 (x-open-connection): Use renamed Fx_load_color_file.
8077 * xfaces.c (x-load-color-file): Add.
8078 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
8079 Emacs.clr.
8080 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
8081
8082 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
8083
8084 * dbusbind.c (Fdbus_call_method_asynchronously)
8085 (Fdbus_method_error_internal): New defuns.
8086 (xd_read_message): Handle also reply messages.
8087 (Vdbus_registered_functions_table): Extend docstring.
8088
8089 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
8090
8091 * keyboard.c (gobble_input): Fix previous change.
8092
8093 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8094
8095 * bitmaps/README:
8096 * xfns.c:
8097 * termcap.c:
8098 * term.c:
8099 * syswait.h:
8100 * systty.h:
8101 * systime.h:
8102 * syssignal.h:
8103 * sysdep.c:
8104 * process.h:
8105 * process.c:
8106 * print.c:
8107 * ndir.h:
8108 * lread.c:
8109 * keyboard.c:
8110 * getpagesize.h:
8111 * floatfns.c:
8112 * fileio.c:
8113 * emacs.c:
8114 * doc.c:
8115 * dispnew.c:
8116 * dired.c:
8117 * data.c:
8118 * callproc.c:
8119 * buffer.c:
8120 * README:
8121 * Makefile.in:
8122 * s/template.h:
8123 * s/msdos.h:
8124 * m/vax.h: Remove VMS support.
8125 * s/vms.h:
8126 * vlimit.h:
8127 * uaf.h:
8128 * temacs.opt:
8129 * param.h:
8130 * ioctl.h: Remove file.
8131
8132 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8133
8134 * s/ms-w32.h (MULTI_KBOARD): Remove.
8135 * xterm.c:
8136 * xselect.c:
8137 * xfns.c:
8138 * window.c:
8139 * w32term.c:
8140 * w32fns.c:
8141 * terminal.c:
8142 * termhooks.h:
8143 * term.c:
8144 * sysdep.c:
8145 * keyboard.h:
8146 * keyboard.c:
8147 * frame.h:
8148 * frame.c:
8149 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8150 * config.in: Regenerate.
8151
8152 2008-07-30 Jason Rumney <jasonr@gnu.org>
8153
8154 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8155
8156 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8157 (w32font_open_internal): Get unicode version of textmetrics.
8158 Don't enable or disable glyph indices here.
8159 (w32font_open): Disable use of glyph indices.
8160
8161 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8162
8163 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
8164
8165 * minibuf.c (Vread_buffer_function): Doc fix.
8166
8167 2008-07-30 John Paul Wallington <jpw@pobox.com>
8168
8169 * minibuf.c (read_buffer_completion_ignore_case): New var.
8170 (Fread_buffer): Use it.
8171
8172 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8173
8174 * systty.h (sensemode): Remove empty #if. Remove reference to
8175 BSD_TERMIOS, unused.
8176
8177 * sysdep.c: Remove reference to DGUX.
8178 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8179
8180 * config.in: Regenerate.
8181
8182 2008-07-30 Jason Rumney <jasonr@gnu.org>
8183
8184 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8185
8186 2008-07-29 Jason Rumney <jasonr@gnu.org>
8187
8188 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8189 is populated.
8190 (uniscribe_encode_char): Always use uniscribe.
8191 Avoid using context if cache is populated.
8192
8193 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8194
8195 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8196 open menu.
8197
8198 * gtkutil.c (menu_nav_ended): Remove.
8199 (create_menus): Remove signal connect for menu_nav_ended.
8200
8201 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
8202
8203 * xdisp.c (redisplay_window): Check return value of
8204 compute_window_start_on_continuation_line before forcing a window
8205 start.
8206
8207 2008-07-28 Jason Rumney <jasonr@gnu.org>
8208
8209 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8210
8211 * w32term.c (w32_enable_unicode_output, cleartype_active):
8212 Remove obsolete display options.
8213 (x_draw_glyph_string_background): Don't use old cleartype_active
8214 workaround.
8215 (w32_initialize): Remove cleartype_active initialization.
8216 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8217
8218 2008-07-28 Andreas Schwab <schwab@suse.de>
8219
8220 * lisp.h (init_weak_hash_tables, syms_of_font)
8221 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8222 (remove_hash_entry): Don't declare.
8223 * eval.c (maybe_call_debugger): Make static and move before use.
8224 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8225 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8226 * xterm.h (x_set_frame_alpha): Declare.
8227
8228 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8229
8230 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8231 (create_menus): Connect selection-done to menu_nav_ended.
8232
8233 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8234
8235 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8236 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8237 parameter with read of 'alpha' one.
8238 (Qns_frame_parameter): Remove.
8239 * nsselect.m (selection-coding-system)
8240 (next-selection-coding-system, Vselection_coding_system)
8241 (Vnext_selection_coding_system): Drop.
8242
8243 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8244
8245 * nsfns.m (do-applescript, do_applescript): Rename to
8246 ns-do-applescript, ns_do_applescript, and move within file.
8247
8248 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8249
8250 Remove support for Mac Carbon.
8251 * mactoolbox.c:
8252 * macterm.h:
8253 * macterm.c:
8254 * macselect.c:
8255 * macmenu.c:
8256 * macgui.h:
8257 * macfns.c:
8258 * mac.c: Remove file.
8259 * s/darwin.h:
8260 * m/intel386.h:
8261 * xfaces.c:
8262 * xdisp.c:
8263 * window.c:
8264 * tparam.c:
8265 * termhooks.h:
8266 * termcap.c:
8267 * term.c:
8268 * syssignal.h:
8269 * sysselect.h:
8270 * sysdep.c:
8271 * process.c:
8272 * lread.c:
8273 * lisp.h:
8274 * keyboard.c:
8275 * image.c:
8276 * fringe.c:
8277 * frame.h:
8278 * frame.c:
8279 * fontset.c:
8280 * font.h:
8281 * font.c:
8282 * fns.c:
8283 * fileio.c:
8284 * emacs.c:
8285 * dispnew.c:
8286 * dispextern.h:
8287 * config.in:
8288 * atimer.c:
8289 * Makefile.in: Remove code for Carbon.
8290
8291 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8292
8293 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8294
8295 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8296
8297 * macterm.h (kCGBitmapByteOrder32Host): New define for
8298 non-universal SDKs.
8299
8300 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8301 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8302
8303 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8304 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8305
8306 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8307
8308 * w32inevt.c: Include dispextern.h.
8309
8310 2008-07-26 Andreas Schwab <schwab@suse.de>
8311
8312 * print.c (print_object): Fix off-by-one in last change.
8313
8314 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
8315
8316 * term.c (syms_of_term): Don't initialize default_orig_pair,
8317 default_set_foreground and default_set_background on Windows.
8318
8319 2008-07-25 Jason Rumney <jasonr@gnu.org>
8320
8321 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8322 ScriptItemize. Clean up return value checking. Remove unused
8323 variables.
8324 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8325 shaping engine.
8326
8327 * w32font.c (w32font_has_char): Handle the case where we can't
8328 determine the script for a character.
8329
8330 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
8331
8332 * term.c (syms_of_term): Initialize default_orig_pair,
8333 default_set_foreground, and default_set_background.
8334
8335 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8336 clash (bug#86).
8337 (getloadavg): Callers changed.
8338
8339 * image.c (svg_load_image): Fix last change.
8340 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8341 image size is valid. Use g_object_unref instead of deprecated
8342 rsvg_handle_free to free rsvg handle.
8343 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8344
8345 2008-07-25 Jason Rumney <jasonr@gnu.org>
8346
8347 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8348 surrogates before looking up glyph index.
8349 (w32font_text_extents): Encode as surrogates if falling back to
8350 functions that need UTF-16 wide chars.
8351
8352 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8353 BMP as surrogates before looking up glyph index.
8354
8355 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
8356
8357 * image.c (svg_load_image): Check for failure in return value of
8358 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8359
8360 2008-07-25 Jason Rumney <jasonr@gnu.org>
8361
8362 * w32font.c (Fx_select_font): Reverse sense of second arg.
8363
8364 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8365
8366 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8367 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8368
8369 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8370 (PURESIZE): Use it.
8371
8372 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8373
8374 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8375 * m/alpha.h (TEXT_END):
8376 * m/ibmrs6000.h (TEXT_END):
8377 * m/macppc.h (TEXT_END):
8378 * s/darwin.h (TEXT_END):
8379 * s/msdos.h (TEXT_END): Remove, unused.
8380 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8381 * s/cygwin.h: Remove comment.
8382
8383 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8384 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8385 * m/intel386.h (DOT_GLOBAL_START):
8386 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8387 (USG): Remove, file not used on USG platforms.
8388
8389 * Makefile.in (HAVE_X11): Remove empty #else.
8390
8391 2008-07-24 Andreas Schwab <schwab@suse.de>
8392
8393 * fileio.c (Finsert_file_contents): Properly adjust undo list
8394 after format conversion.
8395
8396 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8397
8398 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8399 (menu_nav_ended): Remove.
8400 (create_menus): Remove signal connect for menu_nav_ended.
8401 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8402 create_menus.
8403 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8404
8405 2008-07-23 Jason Rumney <jasonr@gnu.org>
8406
8407 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8408 with opened font.
8409 (w32font_open): Set font type to gdi.
8410
8411 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8412
8413 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8414
8415 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8416 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8417 defines it.
8418 * unexec.c (ADDR_CORRECT): Define unconditionally.
8419
8420 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8421
8422 * unexec.c: Remove code depending on !COFF and USG, the file is
8423 not used for such systems.
8424
8425 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8426 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8427 (LD_SWITCH_SYSTEM_1): Remove, update users.
8428
8429 * s/darwin.h (DATA_END):
8430 * m/intel386.h (DATA_END):
8431 * m/ibmrs6000.h (DATA_END):
8432 * m/alpha.h (DATA_END): Remove, unused.
8433
8434 * config.in: Regenerate.
8435 * s/ms-w32.h (subprocesses): Define unconditionally.
8436 * s/template.h (subprocesses): Update comment.
8437 * s/vms.h (subprocesses):
8438 * s/usg5-4.h (subprocesses):
8439 * s/hpux10-20.h (subprocesses):
8440 * s/gnu-linux.h (subprocesses):
8441 * s/cygwin.h (subprocesses):
8442 * s/bsd-common.h (subprocesses):
8443 * s/aix4-2.h (subprocesses):
8444 * s/darwin.h (subprocesses): Do not define, defined by default now.
8445
8446 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8447 Remove all references.
8448 (temacs): Add GNUstep specific ld flags.
8449
8450 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8451 similarly to what X does.
8452
8453 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8454
8455 * nsfns.m (x-list-fonts): Remove.
8456 (syms_of_nsfns): Drop the x-list-fonts declaration.
8457 * nsterm.m: Get rid of remaining "//" comments.
8458
8459 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
8460
8461 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8462
8463 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8464 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8465 (Fns_own_selection_internal, Fx_disown_selection_internal)
8466 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8467
8468 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8469 ... */' style of docstrings. Doc fixes.
8470
8471 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8472
8473 * terminfo.c (UP, BC, PC): Undo previous change.
8474
8475 * nsfns.m: Rename ns prefixed functions/variables to the
8476 corresponding x versions. Update references.
8477
8478 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8479
8480 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8481
8482 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8483
8484 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8485 Remove forwarding functions.
8486 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8487 non-static.
8488 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8489 non-static.
8490 (ns_frame_parm_handlers): Use the new names.
8491 (syms_of_nsfns): Move to the end of file.
8492
8493 * nsterm.m (syms_of_nsterm): Move to the end of file.
8494
8495 * dispnew.c (init_display): Remove code for X10.
8496
8497 2008-07-22 Jason Rumney <jasonr@gnu.org>
8498
8499 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8500 bare drive.
8501
8502 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8503
8504 * nsterm.m (syms_of_nsterm): Remove debugging println.
8505
8506 2008-07-22 David Reitter <david.reitter@gmail.com>
8507
8508 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8509 Carbon implementation of the same functionality: execute arbitrary
8510 AppleScript code.
8511
8512 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8513
8514 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8515 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8516 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8517 (Fx_display_mm_height, Fx_display_mm_width)
8518 (Fx_display_backing_store, Fx_display_visual_class)
8519 (Fx_display_save_under, Fx_open_connection)
8520 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8521 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8522 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8523 (Fx_display_pixel_width, Fx_display_pixel_height)
8524 (Fx_display_usable_bounds, Fx_display_planes)
8525 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8526 ... */' style of docstrings.
8527
8528 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8529
8530 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8531 on this platform.
8532 (mips):
8533 * m/iris4d.h (mips): Do not define.
8534 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8535
8536 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8537
8538 * image.c:
8539 * nsfns.m:
8540 * nsselect.m:
8541 * nsterm.h:
8542 * nsterm.m: Rename ns prefixed functions/variables to the
8543 corresponding x versions. Update references.
8544
8545 * m/ibms390x.h (NO_REMAP): Do not undefine.
8546
8547 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8548
8549 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
8550
8551 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8552 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8553 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8554 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8555 (Fns_display_mm_height, Fns_display_mm_width)
8556 (Fns_display_backing_store, Fns_display_visual_class)
8557 (Fns_display_save_under, Fns_open_connection)
8558 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8559 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8560 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8561 (Fns_display_pixel_width, Fns_display_pixel_height)
8562 (Fns_display_usable_bounds, Fx_display_planes)
8563 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8564
8565 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8566
8567 * print.c (print_object): Check print_depth before searching for
8568 circularities.
8569
8570 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
8571
8572 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8573 only sprintf.
8574
8575 2008-07-21 Kenichi Handa <handa@m17n.org>
8576
8577 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8578
8579 2008-07-20 Andreas Schwab <schwab@suse.de>
8580
8581 * syntax.c (find_start_pos, find_start_value)
8582 (find_start_value_byte, find_start_begv, find_defun_start)
8583 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8584
8585 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8586
8587 * s/sol2-3.h: Insert contents of s/sol2.h.
8588 (LD_SWITCH_SYSTEM): Remove redundant definition.
8589 * s/sol2.h: Remove, unused.
8590
8591 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8592
8593 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8594
8595 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8596
8597 * Makefile.in (ns_appdir): Fix typo in find command.
8598
8599 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8600
8601 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8602
8603 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8604 added not supported anymore.
8605
8606 * s/usg5-4-2.h (LIBS_SYSTEM):
8607 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8608
8609 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8610 * s/lynxos.h (GETPGRP_NO_ARG):
8611 * s/hpux10-20.h (NO_SIOCTL_H):
8612 * s/gnu.h (GETPGRP_NO_ARG):
8613 * s/gnu-linux.h (NO_SIOCTL_H):
8614 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8615 * s/cygwin.h (GETPGRP_NO_ARG):
8616 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8617 (C_DEBUG_SWITCH): Remove duplicate definition.
8618
8619 * m/ibms390.h: Remove boilerplate comments.
8620
8621 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8622
8623 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8624 (wait_reading_process_output): Remove code for SunOS, platform not
8625 supported anymore. Use SOLARIS2 instead of sun.
8626
8627 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8628
8629 * font.c (font_open_by_name): Under NS, default lface height to zero.
8630 (font_open_for_lface): Under NS, set size based on frame fontsize.
8631 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8632 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8633
8634 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8635
8636 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8637 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8638 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8639 YES/NO.
8640 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8641 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8642 * Makefile.in (clean): Clear out build destination dir.
8643
8644 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8645
8646 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8647 xterm, xselect.
8648 * lisp.h: Remove declaration of hash_remove.
8649 * nsgui.h: Remove redefinitions of hash_remove.
8650 * fns.c (hash_remove): Rename to hash_remove_from_table.
8651
8652 2008-07-19 Seiji Zenitani <zenitani@mac.com>
8653
8654 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8655 strdup() the family UTF8String before modifying it.
8656
8657 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8658
8659 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8660 NS_FACE_BACKGROUND with 0 instead of nil.
8661 * nsfont.m (nsfont_draw): Same.
8662
8663 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
8664
8665 * nsfns.m (ns_set_background_color): Fix crash.
8666
8667 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
8668
8669 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8670
8671 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8672
8673 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8674
8675 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8676
8677 * gtkutil.c: Include <config.h> instead of "config.h".
8678
8679 * lisp.h (Foverlay_buffer): Add EXFUN.
8680
8681 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8682 child process to complete child_setup. Undo 2005-09-21 change.
8683
8684 * s/darwin.h: Mention setsid after vfork.
8685
8686 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8687
8688 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8689 Depend on macgui.h.
8690
8691 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8692 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8693
8694 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8695 and f19.
8696 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8697
8698 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8699 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8700 Remove enumerators.
8701
8702 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8703 Check if FACE_FROM_ID returns NULL.
8704
8705 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8706
8707 * w32inevt.c (change_frame_size): Remove extern declaration.
8708 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8709 change_frame_size.
8710
8711 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8712
8713 * getloadavg.c: Revert last change (2008-07-15).
8714
8715 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8716
8717 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
8718 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
8719 from configure.
8720
8721 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8722
8723 * s/sol2.h:
8724 * s/sol2-4.h: Reorganize conditionals.
8725
8726 * ecrt0.c: Remove code depending on m68000, not used anymore.
8727
8728 * fns.c (hash_remove): Make static.
8729 * lisp.h (hash_remove): Don't prototype.
8730
8731 * m/ibmrs6000.h:
8732 * m/ibms390x.h:
8733 * m/macppc.h: Remove boilerplate comments.
8734
8735 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8736 Solaris, which does not need them.
8737
8738 * m/vax.h: Remove comments about unsupported systems.
8739
8740 * s/darwin.h: Reorganize ifdefs.
8741
8742 2008-07-17 Andreas Schwab <schwab@suse.de>
8743
8744 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8745
8746 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8747
8748 Use SDATA. Follow coding convention of placing operators at
8749 beginning of next line rather than end of previous line, and placing
8750 spaces around infix operators.
8751
8752 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8753 in case it was defined already.
8754 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8755 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8756 ns_default.
8757 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8758 Lisp_Objects.
8759 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8760 (ns_defined_color, ns_color_to_lisp): Declare.
8761 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8762 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8763 it's accepted even with USE_LISP_UNION_TYPE.
8764 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8765 (update_frame_tool_bar): Remove apparently obsolete tests for
8766 non-integerness of f->tool_bar_lines.
8767 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8768 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8769 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8770 (nsfont_open): Don't confuse NULL for Qnil.
8771 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8772 * menu.h (find_and_call_menu_selection):
8773 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8774 (find_and_return_menu_selection): Always return something.
8775 * frame.h: Include dispextern.h for Display_Info.
8776 (display_x_get_resource): Declare.
8777
8778 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8779
8780 * syntax.c: Remove stdio.h include accidentally introduced in
8781 Emacs.app commit.
8782 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8783 NS_IMPL_COCOA.
8784 * keyboard.c (handle_async_input, input_available_signal): Remove
8785 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8786
8787 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8788
8789 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8790 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8791 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8792 Use SDATA.
8793
8794 * keymap.c: Remove all NS-specific code.
8795 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8796 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8797 where_is_preferred_modifier, return a different value depending on how
8798 preferred is the binding.
8799 (where_is_internal): Adjust accordingly.
8800 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8801 Adjust to new preferred_sequence_p.
8802 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8803 * keyboard.c (parse_solitary_modifier): Not static any more.
8804 * keyboard.h (parse_solitary_modifier): Declare.
8805
8806 2008-07-16 Andreas Schwab <schwab@suse.de>
8807
8808 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8809 of easymenu.
8810
8811 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
8812
8813 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8814 that we don't move off the line.
8815
8816 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8817
8818 * keyboard.c (Qsuper): Remove.
8819 (parse_menu_item): Don't call where_is_internal specially for NS.
8820
8821 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8822
8823 * s/gnu-linux.h: Remove boilerplate comments.
8824
8825 * m/alpha.h (__ELF__): Consolidate conditions.
8826
8827 * m/m68k.h (linux): Use GNU_LINUX instead.
8828 Remove boilerplate comments.
8829
8830 * m/intel386.h: Undo refactoring from previous change.
8831 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8832 too, remove dead code.
8833 (linux): Use GNU_LINUX instead.
8834
8835 2008-07-16 Jason Rumney <jasonr@gnu.org>
8836
8837 * w32gui.h: Repeat 26 June changes lost by last change.
8838
8839 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8840
8841 * systty.h: Remove code for Aix on 386, unsupported platform.
8842
8843 * s/ms-w32.h: Remove boilerplate comments.
8844 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8845
8846 * s/gnu-linux.h (TERM): Remove support.
8847 (HAVE_SYSVIPC): Remove, unused.
8848 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8849 for this system.
8850
8851 * process.c: Remove support for IRIS, unused.
8852 Remove support for TERM, not relevant anymore.
8853
8854 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8855 used with the definition.
8856
8857 * s/aix4-2.h (static): Do not undef.
8858
8859 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8860 only used on Aix.
8861 (HAVE_SYSVIPC): Remove, unused.
8862
8863 * m/hp800.h (CANNOT_DUMP): Do not undef.
8864
8865 * m/alpha.h: Fix comment.
8866
8867 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8868 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8869 used by this configuration.
8870 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8871 * unexec.c: Remove code depending on HPUX and
8872 USG_SHARED_LIBRARIES, not used with this file. Remove code
8873 depending on IRIS, unused. Remove if 0-ed code.
8874
8875 * s/template.h: Remove comments about static.
8876
8877 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8878 Remove if 0-ed code.
8879 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8880 were the same as the default.
8881 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8882 Remove boilerplate comments.
8883 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8884 (HAVE_SYSVIPC): Remove, unused.
8885 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8886
8887 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8888 Remove boilerplate comments.
8889 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8890 Remove boilerplate comments.
8891 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8892 Remove boilerplate comments.
8893 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8894
8895 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8896 USG systems which do not use DATA_SEG_BITS.
8897 Refactor code. Remove boilerplate comments.
8898
8899 * m/ibms390.h:
8900 * m/m68k.h:
8901 * s/bsd-common.h:
8902 * s/cygwin.h:
8903 * s/darwin.h:
8904 * s/freebsd.h:
8905 * s/gnu.h:
8906 * s/msdos.h: Remove boilerplate comments.
8907
8908 * m/iris4d.h: Remove boilerplate comments and code for systems that
8909 do not use this file.
8910 (IRIS_4D): Remove, unused.
8911
8912 * m/mips.h: Remove boilerplate comments and code for systems that
8913 do not use this file.
8914 (SIGN_EXTEND_CHAR):
8915 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8916 * unexmips.c: Remove file, unused.
8917
8918 * editfns.c (Fuser_full_name): Replace the only use of
8919 USER_FULL_NAME with its value.
8920 * config.in: Regenerate.
8921
8922 2008-07-16 David Reitter <david.reitter@gmail.com>
8923
8924 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8925 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8926
8927 2008-07-16 Glenn Morris <rgm@gnu.org>
8928
8929 * emacs.c (system-type): Doc fix.
8930
8931 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8932
8933 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8934 If the cache doesn't work, let's fix it, rather than work around it.
8935
8936 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8937
8938 * Makefile.in: Correct additions for nsfont.o in last commit.
8939 * nsfont.m: New file (forgot last commit).
8940
8941 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8942
8943 * callproc.c (set_initial_environment): Initialize
8944 Vprocess_environment under CANNOT_DUMP (fixes crash when
8945 batch-compiling for bootstrap).
8946
8947 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8948 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8949
8950 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8951 fix crash due to different init order.
8952
8953 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8954
8955 Changes and additions for NeXTstep windowing system (Cocoa and
8956 GNUstep) support.
8957
8958 * Makefile.in:
8959 * config.in: Support defines and build commands for NS port.
8960 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8961 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8962 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8963 windowing.
8964 (struct face): Add synth_ital field.
8965 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8966 (init_display): Initialize Vinitial_window_system to "ns" when so
8967 compiled.
8968 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8969 (display_arg): Use under NS.
8970 (main): Under NS, allocate autorelease pool and handle command line
8971 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8972 (standard_args): Add NS-specific args.
8973 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8974 * font.c (DEFAULT_ENCODING): New variable.
8975 (font_find_for_lface): Use it.
8976 (syms_of_font): Load syms_of_nsfont under NS.
8977 * font.h: Declare nsfont_driver when compiled under NS.
8978 * fontset.c: When compiling under NS, include nsterm.h.
8979 (fontset_from_font): Autoconstruct fontset under NS.
8980 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8981 symbol, document and use it.
8982 (do_switch_frame): When for_deletion under Cocoa, add
8983 Fraise_frame(Qnil).
8984 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8985 (x_get_arg): Allow "yes" and "no" as boolean values.
8986 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8987 Qright under Cocoa.
8988 (focus-follows-mouse): Default to 0 under NS.
8989 * frame.h (enum output_method): Add output_ns.
8990 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8991 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8992 (FRAME_WINDOW_P): NS-specific definition.
8993 * fringe.c (max_used_fringe_bitmap): Make public.
8994 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8995 (getloadavg): Use NeXT code under descendant OS's.
8996 * image.c (includes and header section, x_create_bitmap_from_data)
8997 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8998 (image_background_transparent, x_clear_image_1)
8999 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
9000 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
9001 (x_to_xcolors, x_from_xcolors, x_disable_image)
9002 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
9003 other GUIs, including XPM support using code originally written for
9004 Carbon GUI.
9005 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
9006 using NS API.
9007 (image_ascent): Use font metrics macros instead of direct struct field
9008 access.
9009 * keyboard.c (includes): Add nsterm.h when compiling under NS.
9010 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
9011 Also, handle NS as GTK for menu bar purposes.
9012 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
9013 toolkit where they differ.
9014 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
9015 use cachelist, still needed under NS.
9016 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
9017 (struct widget_value): Define it here for menu.c.
9018 * keymap.c (includes): Include modifier internals.
9019 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
9020 NS.
9021 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
9022 support for preferring sequences using certain modifiers, specified by
9023 the FIRSTONLY argument.
9024 * lisp.h (hash_remove): Rename to avoid name clash when compiling
9025 under NS GNUstep implementation.
9026 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
9027 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
9028 * menu.c: Include nsterm.h under NS.
9029 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
9030 (free_menubar_widget_tree_value, update_submenu_strings)
9031 (find_and_call_menu_selection): Treat NS as X and NT.
9032 (find_and_return_menu_selection): New function, used for popup menus.
9033 * nsgui.h:
9034 * nsterm.h:
9035 * nsfns.m:
9036 * nsimage.m:
9037 * nsmenu.m:
9038 * nsselect.m:
9039 * nsterm.m: New files.
9040 * process.c (wait_reading_process_output): Under NS, call ns_select()
9041 instead of plain select().
9042 * syntax.c (char_quoted): Under NS, avoid a crash when called near
9043 beginning of buffer.
9044 * sysselect.h (init_process): Rename when compiling under Cocoa to
9045 avoid name conflict.
9046 * termhooks.h (display_info): Add ns_display_info to union.
9047 * terminal.c (Fterminal_live_p): Add ns to terminal types.
9048 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
9049 COCOA environment.
9050 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
9051 unexec() signature. (Note, this will dump, but the resulting file
9052 crashes; unexosx is used instead; keeping around for reference and
9053 possible aid in getting dump working under GNUstep.)
9054 * w32gui.h (button_type, widget_value): Remove definitions (now in
9055 keyboard.h).
9056 * window.c: Include nsterm.h when compiling under NS.
9057 * xdisp.c (includes): Include nsterm.h when compiling under NS.
9058 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
9059 other GUI windowing systems.
9060 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
9061 GTK.
9062 (x_consider_frame_title): Under NS, set icon type and frame
9063 modified-state indicator; use ns_set_name_as_filename() when using
9064 formatted title.
9065 (update_window_cursor): Make public when compiling under NS.
9066 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
9067 (hourglass_atimer, Vhourglass_delay
9068 * xfaces.c (header section, init_frame_faces, clear_font_table)
9069 (defined_color, unload_color, x_face_list_fonts)
9070 (prepare_face_for_display): Add NS support parallel to other GUIs.
9071 Emulate GCs like other non-X GUIs.
9072 (split_font_name): Don't lowercase font name under NS.
9073 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
9074 under NS.
9075 * s/darwin.h: Add support for compilation under NS.
9076
9077 2008-07-15 Jason Rumney <jasonr@gnu.org>
9078
9079 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
9080 (w32_show_hourglass): Rename from show_hourglass.
9081 (w32_hide_hourglass): Rename from hide_hourglass.
9082 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
9083 (Vhourglass_delay): Declare extern.
9084 (hourglass_started): Remove.
9085
9086 * xdisp.c (Vhourglass_delay): Remove static.
9087 (hourglass_started, start_hourglass, cancel_hourglass):
9088 Don't include these versions on WINDOWSNT.
9089
9090 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9091
9092 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
9093 variables (formerly in xfns.c).
9094 (show_hourglass, hide_hourglass): New prototypes (same).
9095 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9096 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9097 in xfns.c).
9098 (syms_of_xdisp): Declare/initialize display-hourglass,
9099 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
9100 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9101 formerly in xfns.c.
9102 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9103 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9104 (start_hourglass, cancel_hourglass): Remove.
9105 (show_hourglass, hide_hourglass): Remove prototypes and static
9106 modifiers.
9107 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9108 hourglass_atimer, hourglass_shown_p declaration/initialization.
9109 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9110 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9111 (start_hourglass, cancel_hourglass): Remove.
9112 (show_hourglass, hide_hourglass): Remove prototypes and static
9113 modifiers.
9114 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9115 hourglass_atimer, hourglass_shown_p declaration/initialization.
9116 * w32fns.c (display_hourglass_p, Vhourglass_delay)
9117 (DEFAULT_HOURGLASS_DELAY): Remove.
9118 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9119 hourglass_shown_p declaration/initialization.
9120
9121 2008-07-14 Jason Rumney <jasonr@gnu.org>
9122
9123 * w32fns.c (w32_get_arg): Remove wrapper function.
9124 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9125 directly.
9126 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9127
9128 2008-07-14 Kenichi Handa <handa@m17n.org>
9129
9130 * xfont.c (xfont_open): Add workaround for X's bug.
9131
9132 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9133
9134 * fontset.c: Include <stdio.h> unconditionally.
9135
9136 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
9137
9138 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9139 for filtering.
9140
9141 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
9142
9143 * s/vms.h: Use __GNUC__ instead of _GNUC_.
9144
9145 * m/macppc.h:
9146 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
9147
9148 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9149 (SPECIAL_EMACS_INT):
9150 * m/ia64.h (SPECIAL_EMACS_INT):
9151 * m/amdx86-64.h (SPECIAL_EMACS_INT):
9152 * s/gnu.h (NLIST_STRUCT):
9153 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9154 * s/gnu-linux.h (LINUX):
9155 * s/msdos.h (HAVE_FACES):
9156 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9157
9158 * systty.h:
9159 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9160 anymore.
9161
9162 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9163
9164 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9165 always defined as int.
9166
9167 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9168 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9169 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9170 * s/freebsd.h (HAVE_WAIT_HEADER):
9171 * s/bsd-common.h (HAVE_UNION_WAIT):
9172 * s/aix4-2.h (HAVE_WAIT_HEADER):
9173 * m/mips.h (HAVE_UNION_WAIT):
9174 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9175 (COFF, static): Do not define, they are undefined later in the file.
9176
9177 * process.c (update_status): Don't use a union.
9178 (status_convert):
9179 (sigchld_handler): Use int instead of WAITTYPE.
9180
9181 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
9182
9183 * indent.c (Fvertical_motion): Restore hscroll before moving to
9184 goal column.
9185
9186 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9187
9188 * lisp.h: Remove left over code.
9189
9190 2008-07-11 Andreas Schwab <schwab@suse.de>
9191
9192 * lisp.h: Fix logic in last change.
9193
9194 * menu.h: New file.
9195 * menu.c: Include it.
9196 * xmenu.c: Likewise.
9197 * Makefile.in: Update dependencies.
9198
9199 2008-07-11 Kenichi Handa <handa@m17n.org>
9200
9201 * fontset.c (fontset_from_font): Cancel the previous change.
9202
9203 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9204
9205 * lisp.h:
9206 * w32heap.c:
9207 * emacs.c:
9208 * alloc.c: Replace all references of NO_UNION_TYPE with
9209 USE_LISP_UNION_TYPE.
9210
9211 * m/xtensa.h (NO_UNION_TYPE):
9212 * m/vax.h (NO_UNION_TYPE):
9213 * m/template.h (NO_UNION_TYPE):
9214 * m/sparc.h (NO_UNION_TYPE):
9215 * m/mips.h (NO_UNION_TYPE):
9216 * m/macppc.h (NO_UNION_TYPE):
9217 * m/m68k.h (NO_UNION_TYPE):
9218 * m/iris4d.h (NO_UNION_TYPE):
9219 * m/intel386.h (NO_UNION_TYPE):
9220 * m/ibms390x.h (NO_UNION_TYPE):
9221 * m/ibms390.h (NO_UNION_TYPE):
9222 * m/ibmrs6000.h (NO_UNION_TYPE):
9223 * m/ia64.h (NO_UNION_TYPE):
9224 * m/hp800.h (NO_UNION_TYPE):
9225 * m/arm.h (NO_UNION_TYPE):
9226 * m/amdx86-64.h (NO_UNION_TYPE):
9227 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9228 defining it the same.
9229
9230 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
9231
9232 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9233
9234 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9235
9236 * fileio.c:
9237 * sysdep.c
9238 * systty.h:
9239 * m/ibmrs6000.h:
9240 * m/iris4d.h:
9241 * s/aix4-2.h:
9242 * s/freebsd.h:
9243 * s/gnu-linux.h:
9244 * s/hpux10-20.h:
9245 * s/hpux11.h:
9246 * s/netbsd.h:
9247 * s/sol2-3.h:
9248 * s/sol2-4.h:
9249 * s/sol2.h:
9250 * s/usg5-4.h:
9251 * s/vms.h: Remove references to unused variables.
9252
9253 2008-07-10 Andreas Schwab <schwab@suse.de>
9254
9255 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9256 pattern before matching the generic family.
9257
9258 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9259
9260 * unexec.c:
9261 * s/vms.h:
9262 * s/usg5-4-2.h:
9263 * s/sol2-5.h:
9264 * s/freebsd.h:
9265 * s/darwin.h: Remove dead code.
9266
9267 * m/template.h:
9268 * m/sparc.h:
9269 * m/mips.h:
9270 * m/m68k.h:
9271 * m/iris4d.h:
9272 * m/intel386.h:
9273 * m/ibms390x.h:
9274 * m/ibms390.h:
9275 * m/ia64.h:
9276 * m/hp800.h:
9277 * m/arm.h:
9278 * m/amdx86-64.h: Remove dead code and references to unused
9279 and compiler defined symbols.
9280
9281 * unexmips.c:
9282 * unexelf.c: Remove references to desupported systems.
9283
9284 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9285
9286 * m/powermac.h: Remove boilerplate comments.
9287 (NO_REMAP): Remove unused definition.
9288
9289 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9290 define them.
9291
9292 2008-07-10 Kenichi Handa <handa@m17n.org>
9293
9294 * xfont.c (xfont_open): Log the reason of failure.
9295
9296 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9297
9298 * fontset.c (fontset_get_font_group):
9299 * font.c (font_check_otf): Specify argument types.
9300
9301 2008-07-09 Kenichi Handa <handa@m17n.org>
9302
9303 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9304 non-ASCII char is found.
9305
9306 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9307 (reorder_font_vector): Change the arg preferred_family to font.
9308 Prefer the spec matching with font.
9309 (fontset_get_font_group): New function.
9310 (fontset_find_font): Change the format of an element of a realized
9311 fontset. Use fontset_get_font_group.
9312 (fontset_font): Try the current fontset, the default fontset, the
9313 fallbacks of the current fontset, and the fallbacks of the default
9314 fontset in this order.
9315 (face_for_char): Delete the shortcut to use the current font.
9316 (fontset_from_font): Don't set fonts for Latin in the fontset.
9317
9318 * font.h (font_make_object, font_match_p): Adjust prototypes.
9319
9320 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9321
9322 * font.c (font_make_object): New arg entity and pixelsize.
9323 (font_check_otf_features, font_check_otf): New functions.
9324 (font_match_p): Check :lang, :script, and :otf properties.
9325
9326 * xfont.c (xfont_open): Adjust it for the change of
9327 font_make_object.
9328 (xfont_text_extents): Fix initial setting of metrics.
9329
9330 * ftfont.c (struct ftfont_info): New member index, delete member
9331 fc_charset_idx. Make the member order compatible with struct
9332 xftfont_info.
9333 (fc_charset_table): Change charset names to registry names.
9334 (ftfont_pattern_entity): Delete the args registry and
9335 fc_charset_idx. Change the value of :font-entity property
9336 to (FONTNAME . INDEX). Always set :registry property to
9337 `iso10646-1'.
9338 (struct ftfont_cache_data): New struct.
9339 (ftfont_lookup_cache): New arg for_face.
9340 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9341 (ftfont_driver): Set the member otf_capability.
9342 (ftfont_get_charset): Adjust it for the change of
9343 fc_charset_table.
9344 (OTF_TAG_SYM): New macro.
9345 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9346 for the change of fc_charset_table.
9347 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9348 ftfont_pattern_entity. Add FC_INDEX to objset.
9349 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9350 and ftfont_pattern_entity.
9351 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9352 font_make_object, struct ftfont_info.
9353 (ftfont_has_char): Use ftfont_get_fc_charset.
9354 (ftfont_otf_features, ftfont_otf_capability): New functions.
9355 (ftfont_shape): Use ftfont_get_otf.
9356 (ftfont_text_extents): Fix initial setting of metrics.
9357
9358 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9359 member order compatible with struct ftfont_info.
9360 (xftfont_open): Add FC_CHARSET to the pattern. Set
9361 xftfont_info->ft_size. Don't unlock the face. Check BDF
9362 properties if appropriate.
9363 (xftfont_close): Unlock the face.
9364 (xftfont_anchor_point, xftfont_shape): Deleted.
9365 (syms_of_xftfont): Don't set members anchor_point and shape of
9366 xftfont_driver.
9367
9368 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9369 font_make_object.
9370
9371 * w32font.c (w32font_open): Adjust it for the change of
9372 font_make_object.
9373 (w32font_open_internal): Don't set properties of font_object here.
9374
9375 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
9376
9377 * macfns.c (x_create_tip_frame):
9378 * w32fns.c (x_create_tip_frame):
9379 * xfns.c (x_create_tip_frame): Pass parameter argument to
9380 face-set-after-frame-default.
9381
9382 * xfaces.c (Finternal_merge_in_global_face): Save merged
9383 attributes for the default face back into the face vector.
9384
9385 2008-07-08 Andreas Schwab <schwab@suse.de>
9386
9387 * fontset.h: Declare fontset_from_font. Don't declare
9388 new_fontset_from_font and fontset_from_font_name.
9389 * xterm.c: Include "fontset.h".
9390 * Makefile.in (xterm.o): Update dependencies.
9391
9392 2008-07-08 Glenn Morris <rgm@gnu.org>
9393
9394 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9395 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9396
9397 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
9398
9399 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9400 (x_set_frame_parameters): Don't bind it.
9401
9402 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
9403
9404 * w32fns.c (map_w32_filename): Declare extern.
9405
9406 2008-07-07 Jason Rumney <jasonr@gnu.org>
9407
9408 * w32term.c (WS_EX_LAYERED): Define if not already.
9409
9410 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
9411
9412 * xfaces.c (set_font_frame_param): Don't try to set the font
9413 parameter if it is still unspecified in the lface.
9414
9415 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
9416
9417 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9418 face if it didn't already exist.
9419
9420 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9421
9422 2008-07-05 Andreas Schwab <schwab@suse.de>
9423
9424 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9425
9426 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
9427
9428 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9429 word-wrapping.
9430 (IT_DISPLAYING_WHITESPACE): New macro.
9431 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9432 when word-wrapping. Simplify word-wrapping logic. Use correct
9433 pixel positions when saving copies of the iterator.
9434 (display_line): Use proper wrap point if the last character on a
9435 line was preceded by whitespace.
9436
9437 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9438
9439 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9440
9441 2008-07-04 Kenichi Handa <handa@m17n.org>
9442
9443 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9444
9445 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9446
9447 2008-07-02 Jason Rumney <jasonr@gnu.org>
9448
9449 * xfns.c (syms_of_xfns): Only define x-select-font when both
9450 HAVE_FREETYPE and USE_GTK.
9451
9452 * xdisp.c (next_element_from_display_vector): Move assignment out
9453 of if statement.
9454
9455 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9456
9457 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9458
9459 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9460 (syms_of_fileio): Initialize and export them.
9461 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9462
9463 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9464 (Fsystem_move_file_to_trash): New function.
9465 (syms_of_w32fns): Export it to lisp.
9466
9467 2008-07-01 Jason Rumney <jasonr@gnu.org>
9468
9469 * w32font.c (w32font_text_extents): Don't count overhang as part
9470 of width.
9471
9472 2008-06-30 Miles Bader <miles@gnu.org>
9473
9474 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9475 Add `avoid_cursor_p' field.
9476
9477 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9478 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9479 (append_glyph, append_composite_glyph, produce_image_glyph)
9480 (append_stretch_glyph): Initialize avoid_cursor_p.
9481 (get_it_property): Rename from `get_line_height_property'.
9482 (x_produce_glyphs): Use get_it_property.
9483 (handle_line_prefix, push_display_prop): New functions.
9484 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9485 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9486 New variables.
9487 (syms_of_xdisp): Initialize them.
9488
9489 2008-06-30 Kenichi Handa <handa@m17n.org>
9490
9491 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9492 XftDefaultSubstitute (they are called in XftFontMatch).
9493 (xftfont_open): Fix args to ftfont_font_format.
9494
9495 * ftfont.c (fc_charset_table): New member lang.
9496 (ftfont_resolve_generic_family): New arg pattern.
9497 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
9498 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9499 (ftfont_open): Fix args to ftfont_font_format.
9500 (ftfont_font_format): New arg filename.
9501
9502 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
9503
9504 * xfaces.c (Finternal_merge_in_global_face): If default face was
9505 modified, realize it again. Update the font face attribute.
9506
9507 2008-06-29 Jason Rumney <jasonr@gnu.org>
9508
9509 * w32term.c (x_set_frame_alpha): Fix logic.
9510
9511 2008-06-29 Kenichi Handa <handa@m17n.org>
9512
9513 * fontset.c (Finternal_char_font): Return font-object instead of
9514 font-name.
9515
9516 * composite.c (get_composition_id): Fix the width calculation for TAB.
9517
9518 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9519
9520 * indent.c (Fvertical_motion): Properly handle float column arg.
9521
9522 2008-06-28 Jason Rumney <jasonr@gnu.org>
9523
9524 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9525 (pfnSetLayeredWindowAttributes): New function pointer.
9526 (w32_initialize): Initialize it when supported.
9527 (x_set_frame_alpha): New function.
9528
9529 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9530 (w32_frame_parm_handlers): Set alpha handler.
9531
9532 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9533
9534 2008-06-27 Jason Rumney <jasonr@gnu.org>
9535
9536 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9537 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9538 (w32_to_x_charset, x_to_w32_charset)
9539 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9540 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9541 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9542 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9543 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9544 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9545 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9546 (Qw32_charset_unicode): Remove.
9547 (syms_of_w32fns): Update for above changes.
9548
9549 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9550 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9551 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9552 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9553 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9554 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9555 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9556 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9557 (syms_of_w32font): Update for above changes.
9558
9559 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9560
9561 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9562 removed #if.
9563 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9564
9565 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
9566 Eli Zaretskii <eliz@gnu.org>
9567
9568 * makefile.w32-in (LOCAL_FLAGS):
9569 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9570
9571 * sysdep.c (_spawnlp, _getpid):
9572 Declare with explicit _cdecl instead of _CRTAPI1.
9573
9574 * editfns.c (Fget_internal_run_time):
9575 Check for WINDOWSNT with #ifdef, not #if.
9576
9577 2008-06-26 Jason Rumney <jasonr@gnu.org>
9578
9579 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9580
9581 * w32term.c (x_draw_glyph_string_foreground)
9582 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9583 Use FONT_HANDLE macro.
9584 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9585
9586 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9587 (uniscribe_encode_char): Use FONT_HANDLE macro.
9588
9589 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9590 (w32font_text_extents): Use precast w32_font.
9591 (w32font_close): Free cached metrics.
9592 (w32font_open_internal): Allocate space for name on stack.
9593
9594 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
9595
9596 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9597
9598 2008-06-26 Jason Rumney <jasonr@gnu.org>
9599
9600 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9601 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9602
9603 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
9604
9605 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9606
9607 2008-06-26 Jason Rumney <jasonr@gnu.org>
9608
9609 * w32bdf.c, w32bdf.h: Remove obsolete files.
9610
9611 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9612
9613 * w32gui.h: Don't include w32bdf.h.
9614 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9615 Remove obsolete font support.
9616
9617 * w32font.h (struct w32font_info): Remove compat_w32_font.
9618 Add hfont member.
9619 (FONT_COMPAT): Remove obsolete macro.
9620
9621 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9622 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9623 (w32font_open_internal): Remove compat code. Set new hfont member.
9624 (Fx_select_font): Use new hfont member.
9625
9626 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9627 (uniscribe_encode_char): Use new hfont member.
9628
9629 * w32term.c (x_draw_glyph_string_foreground)
9630 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9631 (x_draw_glyph_string): Use metrics in w32font_info.
9632
9633 2008-06-26 Kenichi Handa <handa@m17n.org>
9634
9635 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9636
9637 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9638
9639 * unexnext.c:
9640 * m/ews4800.h:
9641 * m/hp9000s300.h:
9642 * m/ibm370aix.h:
9643 * m/mips-siemens.h:
9644 * m/ncr386.h:
9645 * m/next.h:
9646 * m/pmax.h:
9647 * m/powerpcle.h:
9648 * m/tandem-s2.h:
9649 * s/386bsd.h:
9650 * s/bsd386.h:
9651 * s/bsd4-1.h:
9652 * s/bsd4-2.h:
9653 * s/bsdos2-1.h:
9654 * s/bsdos2.h:
9655 * s/bsdos3.h:
9656 * s/bsdos4.h:
9657 * s/nextstep.h:
9658 * s/ultrix4-3.h:
9659 * s/usg5-0.h:
9660 * s/usg5-2-2.h:
9661 * s/usg5-2.h:
9662 * s/usg5-4-3.h:
9663 * s/ux4800.h:
9664 * s/uxpds.h:
9665 * s/uxpv.h: Remove support for obsolete systems.
9666 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
9667 Remove, insert contents in s/hpux10-20.h.
9668 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9669 Remove, insert contents in s/aix4-2.h.
9670 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9671 * s/bsd4-3.h: Rename to ...
9672 * s/bsd-common.h: ... this.
9673 * data.c:
9674 * doc.c:
9675 * ecrt0.c:
9676 * emacs.c:
9677 * fileio.c:
9678 * floatfns.c:
9679 * keyboard.c:
9680 * mem-limits.h:
9681 * print.c:
9682 * process.c:
9683 * sysdep.c:
9684 * syssignal.h:
9685 * systty.h:
9686 * syswait.h:
9687 * term.c:
9688 * unexec.c:
9689 * unexelf.c:
9690 * unexhp9k800.c:
9691 * m/hp800.h:
9692 * m/ibmrs6000.h:
9693 * m/mips.h:
9694 * m/vax.h:
9695 * s/darwin.h:
9696 * s/freebsd.h:
9697 * s/gnu.h:
9698 * s/ms-w32.h:
9699 * s/msdos.h:
9700 * s/netbsd.h:
9701 * s/template.h: Remove references to obsolete variables.
9702
9703 * Makefile.in: Add dependencies for all unexec files.
9704 (admindir): Remove unused variable.
9705 (UNEXEC_SRC): Remove references.
9706
9707 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
9708
9709 * xfns.c (x_default_font_parameter): If Xft is available, first
9710 try Monospace-12 for the default font.
9711
9712 2008-06-25 Jason Rumney <jasonr@gnu.org>
9713
9714 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9715
9716 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9717
9718 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9719
9720 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9721
9722 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
9723
9724 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9725 <scroll-conservatively>: Fix typo in docstring.
9726
9727 * xselect.c (Fx_send_client_event): Doc fix.
9728
9729 2008-06-25 Kenichi Handa <handa@m17n.org>
9730
9731 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9732
9733 * font.c (font_parse_fcname): Remove unused variables.
9734 (font_sort_entites): Delete the arg SPEC. Caller changed.
9735 Fix for the case of ! best_only.
9736 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9737
9738 * lisp.h (Fstring_to_unibyte): EXFUN it.
9739
9740 * character.h (str_to_unibyte): Extern it.
9741
9742 * character.c (str_to_unibyte): New function.
9743
9744 * fns.c (Fstring_to_unibyte): New function.
9745 (syms_of_fns): Defsubr it.
9746
9747 2008-06-24 Kenichi Handa <handa@m17n.org>
9748
9749 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9750 DPI too.
9751 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9752
9753 2008-06-24 Andreas Schwab <schwab@suse.de>
9754
9755 * Makefile.in (${lispsource}loaddefs.el): Rename from
9756 ../lisp/loaddefs.el.
9757 (bootstrap-clean): Do what distclean does but don't remove
9758 Makefile.
9759 (distclean): Depend on bootstrap-clean and remove Makefile.
9760
9761 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
9762
9763 * buffer.h (struct buffer): New member word_wrap.
9764
9765 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9766 word-wrap.
9767 (init_buffer_once): Initialize them.
9768
9769 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9770 line_wrap enum possessing three possible values.
9771
9772 * termopts.h: Replace truncate_partial_width_windows with
9773 Vtruncate_partial_width_windows.
9774
9775 * dispnew.c (direct_output_for_insert): Avoid direct output when
9776 inserting a space with word wrap on.
9777
9778 * indent.c (compute_motion): Obey integer values of
9779 truncate-partial-width-windows.
9780
9781 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9782 replacing truncate_partial_width_windows.
9783 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9784 truncate only if the window width is below that integer.
9785 (start_display, resize_mini_window, produce_stretch_glyph)
9786 (display_string, move_it_in_display_line_to): Use line_wrap.
9787 (back_to_previous_visible_line_start, reseat_1): Reset
9788 string_from_display_prop_p.
9789 (display_line): Extend default face to end of line when wrapping.
9790
9791 2008-06-24 Kim F. Storm <storm@cua.dk>
9792
9793 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9794 to wrap continued lines at word boundaries.
9795
9796 2008-06-24 Jason Rumney <jasonr@gnu.org>
9797
9798 * font.c (Ffont_face_attributes): Multiply pixel size before point
9799 conversion to avoid multiplying rounding error.
9800
9801 2008-06-23 Jason Rumney <jasonr@gnu.org>
9802
9803 * w32term.c (x_draw_glyph_string_background)
9804 (x_draw_glyph_string): Remove old bdf font code.
9805
9806 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9807
9808 2008-06-22 Kenichi Handa <handa@m17n.org>
9809
9810 * font.c (font_find_for_lface): Try the adstyle specified in
9811 the property of LFACE_FONT of LFACE (if any).
9812
9813 2008-06-21 Seiji Zenitani <zenitani@mac.com>
9814 Ryo Yoshitake <ryo@shiftmode.net>
9815
9816 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9817
9818 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9819
9820 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9821 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9822 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9823 (witness-emacs): Remove.
9824 (lisp, shortlisp): Move loaddefs.el earlier.
9825 (mostlyclean): Forget about witness-emacs.
9826
9827 2008-06-22 Glenn Morris <rgm@gnu.org>
9828
9829 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9830 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9831
9832 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9833
9834 * Makefile.in (PRECOMP): Remove.
9835 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9836 (witness-emacs): Run `compile-first'.
9837 (.el.elc): Use the new compile-onefile target.
9838
9839 2008-06-21 Kenichi Handa <handa@m17n.org>
9840
9841 * xftfont.c (xftfont_open): Handle QCembolden only when
9842 FC_EMBOLDEN is defined.
9843
9844 2008-06-21 Andreas Schwab <schwab@suse.de>
9845
9846 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9847 (.el.elc): Likewise.
9848
9849 2008-06-21 Miles Bader <miles@gnu.org>
9850
9851 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9852 build dir, not the lisp source dir.
9853
9854 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9855
9856 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9857 (bootstrapclean): Remove.
9858 (.el.elc): New rule.
9859 (PRECOMP): New var.
9860 (../lisp/subdirs.el): Remove.
9861 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9862 (witness-emacs): New target.
9863 (mostlyclean): Remove witness-emacs as well.
9864 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9865 Add witness-emacs dependency.
9866
9867 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
9868
9869 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9870 defined by the font.
9871
9872 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9873
9874 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9875 (bootstrap-clean): New target that keeps TAGS around.
9876 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9877 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9878
9879 2008-06-20 Jason Rumney <jasonr@gnu.org>
9880
9881 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9882 Remove obsolete font code.
9883
9884 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9885 to determine language support.
9886
9887 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9888
9889 * sysdep.c (cfsetspeed): New fun extracted from the code.
9890 (cfmakeraw): Move before first use.
9891
9892 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9893
9894 * sysdep.c (cfmakeraw): Provide fallback implementation.
9895 (serial_configure): Provide fallback implementation of cfsetspeed.
9896
9897 2008-06-20 Kenichi Handa <handa@m17n.org>
9898
9899 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9900 the pattern.
9901
9902 * fontset.c (fontset_from_font): Copy font_spec before changing
9903 the elements.
9904
9905 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9906
9907 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9908
9909 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9910 for explicit `font' parameters.
9911
9912 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9913
9914 2008-06-19 Kenichi Handa <handa@m17n.org>
9915
9916 * frame.c: Include <ctype.h>.
9917 (x_set_font_backend): Allow spacing characters in the X resource
9918 for FontBackend.
9919
9920 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9921
9922 * w32fns.c, xfns.c (Qfont_param): New var.
9923 (syms_of_w32fns): Initialize it.
9924 (x_default_font_parameter): Record explicit `font' into
9925 `font-parameter'.
9926
9927 2008-06-18 Kenichi Handa <handa@m17n.org>
9928
9929 * font.c (font_parse_xlfd): Fix previous change.
9930 (font_parse_fcname): Don't use :fc-unknown-spec.
9931 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9932 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9933 (font_add_log): Prepend the driver name to the resulting fonts.
9934
9935 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9936 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9937 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9938
9939 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9940 (QCembolden): New variables.
9941 (syms_of_xftfont): DEFSYM them.
9942 (xftfont_open): Call XftFontMatch. Don't trust the result of
9943 XftTextExtents8 if the pixel_size is less than 5.
9944
9945 2008-06-18 Andreas Schwab <schwab@suse.de>
9946
9947 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9948 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9949
9950 2008-06-18 Jason Rumney <jasonr@gnu.org>
9951
9952 * w32font.c (w32font_list, w32font_match): Add logging.
9953
9954 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9955
9956 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
9957
9958 * font.c (font_parse_fcname): Store divider characters for
9959 unknown-spec list. For known key symbols, intern using correct
9960 symbol name.
9961
9962 2008-06-17 Kenichi Handa <handa@m17n.org>
9963
9964 * xfaces.c (realize_default_face): If the frame is not on window
9965 system, set the fontset of face to nil.
9966
9967 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9968
9969 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9970
9971 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
9972
9973 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9974 (build_font_name_from_vector): Delete externs.
9975
9976 * xfaces.c (struct font_name): Don't declare.
9977
9978 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9979
9980 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9981
9982 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
9983
9984 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9985
9986 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
9987
9988 * font.c (Ffont_spec): Fix usage in docstring.
9989 (Ffont_face_attributes): Doc fix.
9990
9991 2008-06-16 Andreas Schwab <schwab@suse.de>
9992
9993 * font.c (Ffont_face_attributes): Fix definition.
9994
9995 2008-06-16 Jason Rumney <jasonr@gnu.org>
9996
9997 * font.h (font_style_symbolic_from_value): Remove.
9998
9999 * font.c (font_style_symbolic_from_value): Remove.
10000 (font_style_symbolic): Revert to pre 2008-06-13 version.
10001
10002 * w32font.c (w32_to_fc_weight): New function.
10003 (w32font_full_name, logfont_to_fcname): Use it.
10004
10005 2008-06-16 Kenichi Handa <handa@m17n.org>
10006
10007 * font.c (font_check_object): Delete it.
10008 (font_clear_cache): Check if a font-object is alive.
10009 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
10010 font-object to nil.
10011 (font_close_object): Don't check FONT_CLOSE_OBJECT.
10012 (font_at): Don't call font_check_object.
10013 (Ffont_get): Return a symbol for :weight, :slant, and :width.
10014
10015 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
10016
10017 * puresize.h (BASE_PURESIZE): Increase to 1230000.
10018
10019 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
10020
10021 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
10022
10023 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
10024
10025 * font.c (font_parse_fcname): Only one decimal point.
10026 (font_unparse_fcname): Handle data in family and foundry indices
10027 as symbols, not strings.
10028 (font_unparse_gtkname, Ffont_face_attributes): New functions.
10029
10030 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
10031
10032 * font.h (font_unparse_gtkname): Add prototype.
10033
10034 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10035
10036 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
10037
10038 2008-06-15 Andreas Schwab <schwab@suse.de>
10039
10040 * font.c (font_update_drivers): Fix crash when no drivers match.
10041
10042 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
10043
10044 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
10045 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
10046
10047 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
10048
10049 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
10050
10051 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
10052
10053 * process.c (Fserial_process_configure, Fprocess_send_eof):
10054 Use EQ to compare Lisp_Objects.
10055
10056 2008-06-13 Jason Rumney <jasonr@gnu.org>
10057
10058 * w32fns.c (Fw32_select_font): Remove old font API function.
10059
10060 * w32font.c (logfont_to_fcname): New function.
10061 (Fx_select_font): New font dialog function compatible with
10062 GTK/fontconfig version.
10063
10064 * font.c (font_style_symbolic_from_value): New function.
10065 (font_style_symbolic): Use it.
10066
10067 * font.h (font_style_symbolic_from_value): Declare new function.
10068
10069 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
10070
10071 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
10072 <font-width-table>: Fix typos in docstrings.
10073
10074 2008-06-13 Daniel Engeler <engeler@gmail.com>
10075
10076 These changes add serial port access.
10077 * process.c: Add HAVE_SERIAL.
10078 (Fdelete_process, Fprocess_status, Fset_process_buffer)
10079 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
10080 (list_processes_1, select_wrapper, Fstop_process)
10081 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
10082 (status_notify): Modify to handle serial processes.
10083 [HAVE_SERIAL] (Fserial_process_configure)
10084 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
10085 New functions.
10086 * process.h (struct Lisp_Process): Add `type'.
10087 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
10088 New functions.
10089 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
10090 serial ports.
10091 (serial_open, serial_configure): New functions.
10092 * w32.h: Add FILE_SERIAL.
10093 (struct _child_process): Add ovl_read, ovl_write.
10094
10095 2008-06-13 Kenichi Handa <handa@m17n.org>
10096
10097 * dispextern.h (enum lface_attribute_index): New member
10098 LFACE_FOUNDRY_INDEX.
10099
10100 * font.c (font_score): Delete arg alternate_families. Check only
10101 weight, slant, width, and size. Ignore the difference of alias
10102 style symbols.
10103 (font_sort_entites): Adjust for the above change. Reflect the
10104 order of font-driver to scores.
10105 (font_list_entities): Don't check alternate_familes here.
10106 (font_clear_prop): Handle foundry.
10107 (font_update_lface): Don't parse "foundry-family" form here.
10108 Handle FONT_FOUNDRY_INDEX.
10109 (font_find_for_lface): Likewise. Handle alternate families here.
10110 If registry is nil, try iso8859-1 and ascii-0.
10111 (font_open_for_lface): Pay attention to size in ENTITY.
10112 (font_open_by_name): Simplify by calling font_load_for_lface.
10113 (free_font_driver_list): Delete it.
10114 (font_update_drivers): Preserve the order of backends.
10115 (syms_of_font): Setting of sort_shift_bits adjusted for the change
10116 of font_score and font_sort_entites.
10117 (font_update_sort_order): Likewise.
10118
10119 * xfaces.c (LFACE_FOUNDRY): New macro.
10120 (check_lface_attrs): Check foundry.
10121 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10122 (merge_face_vectors): Check foundry.
10123 (merge_face_ref): Likewise.
10124 (Finternal_set_lisp_face_attribute): Likewise.
10125 (x_update_menu_appearance): Likewise.
10126 (Finternal_get_lisp_face_attribute): Likewise.
10127 (lface_hash): Likewise.
10128 (lface_same_font_attributes_p): Likewise.
10129 (x_supports_face_attributes_p): Likewise.
10130 (tty_supports_face_attributes_p): Likewise.
10131 (Finternal_set_alternative_font_family_alist): Intern strings.
10132 (Finternal_set_alternative_font_registry_alist): Downcase strings.
10133 (realize_default_face): Set LFACE_FOUNDRY (lface).
10134
10135 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10136 font-driver at first.
10137
10138 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10139
10140 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10141
10142 * lread.c (Fload): Use xfree, not free on saved_doc_string.
10143
10144 2008-06-12 Jim Meyering <meyering@redhat.com>
10145
10146 Make unexec_free handle NULL the same way free does.
10147 * unexmacosx.c (unexec_free): Ignore a NULL argument.
10148
10149 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10150
10151 * character.h (CHAR_TO_BYTE_SAFE): New macro.
10152 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10153 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10154 (WEAK_ALIAS): Simplify.
10155 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10156 when searching a unibyte buffer.
10157
10158 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
10159
10160 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10161
10162 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
10163
10164 * w32font.c: Include ctype.h.
10165
10166 2008-06-11 Jason Rumney <jasonr@gnu.org>
10167
10168 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10169 misreported as space.
10170 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10171 as aliases for registry iso10646-1.
10172
10173 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10174
10175 * buffer.c (clone_per_buffer_values): Skip `name'.
10176
10177 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
10178
10179 * font.c (font_parse_fcname): Fix last change; accept decimal
10180 points in font size.
10181
10182 2008-06-10 Jason Rumney <jasonr@gnu.org>
10183
10184 * w32uniscribe.c (add_opentype_font_name_to_list):
10185 Skip non unicode fonts.
10186
10187 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
10188
10189 * xfns.c (Fx_font_dialog): New function.
10190
10191 * gtkutil.c (xg_dialog_response_cb): Rename from
10192 xg_file_response_callback.
10193 (pop_down_dialog): Rename from pop_down_file_dialog.
10194 (xg_get_file_name): Callers changed.
10195 (xg_get_font_name): New function.
10196
10197 * gtkutil.h (xg_get_font_name): Insert prototype.
10198
10199 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10200
10201 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10202 x_underline_minimum_display_offset.
10203 (syms_of_xdisp): Declare it here rather than in xterm.c.
10204 * dispextern.h (underline_minimum_offset): Declare it.
10205 * w32term.c (x_draw_glyph_string): Use it.
10206 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10207 (syms_of_xterm): Don't declare it any more.
10208 (x_draw_glyph_string): Adjust to the new name.
10209
10210 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
10211
10212 * xterm.c (x_underline_minimum_display_offset): New var.
10213 (x_draw_glyph_string): Use it.
10214 (syms_of_xterm): Declare it.
10215
10216 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
10217
10218 * font.c (font_parse_fcname): Accept GTK-style font names too.
10219
10220 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10221
10222 * dired.c (file_name_completion): Don't return t if the match is exact
10223 but with different capitalization.
10224 * minibuf.c (Ftry_completion): Simplify.
10225
10226 * window.c (Vwindow_point_insertion_type): New var.
10227 (set_window_buffer): Use it.
10228 (syms_of_window): Init and export it to Lisp.
10229
10230 2008-06-10 Kenichi Handa <handa@m17n.org>
10231
10232 * font.h (font_intern_prop): Prototype adjusted.
10233
10234 * font.c (font_intern_prop): New arg force_symbol.
10235 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10236 Adjust for the change of font_intern_prop.
10237
10238 * ftfont.c (ftfont_pattern_entity):
10239 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10240 (w32_registry):
10241 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10242 the change of font_intern_prop.
10243
10244 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
10245
10246 * w32menu.c (digest_single_submenu): Declare extern.
10247
10248 2008-06-09 Jason Rumney <jasonr@gnu.org>
10249
10250 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10251
10252 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10253 (parse_single_submenu): Remove.
10254 (digest_single_submenu): Remove.
10255 (syms_of_w32menu): Don't initialise variables that have moved
10256 to menu.c.
10257 (set_frame_menubar): Sync with version in xmenu.c.
10258 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10259
10260 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10261 Make static again.
10262
10263 2008-06-09 Jason Rumney <jasonr@gnu.org>
10264
10265 Changes to w32 files related to the move of common menu code
10266 to menu.c on 2008-06-08 by Chong Yidong.
10267
10268 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10269 defs to w32gui.h.
10270 (single_keymap_panes, push_menu_item, push_menu_pane):
10271 Make globally visible.
10272
10273 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10274 (local_free, malloc_widget_value, free_widget_value)
10275 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10276 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10277 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10278 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10279 (menu_items, menu_items_allocated, menu_items_used)
10280 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10281 (init_menu_items, finish_menu_items, discard_menu_items)
10282 (grow_menu_items, push_submenu_start, push_submenu_end)
10283 (push_left_right_boundary, push_menu_pane, push_menu_item)
10284 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10285 (free_menubar_widget_tree_value, parse_single_submenu)
10286 (update_submenu_strings): Remove functions.
10287 (xmalloc_widget_value): Remove and declare extern.
10288
10289 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10290 (OBJ1): Build it.
10291
10292 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10293 (local_heap, local_alloc, local_free, malloc_widget_value)
10294 (free_widget_value): Define here.
10295
10296 2008-06-09 Kenichi Handa <handa@m17n.org>
10297
10298 * font.h (Qascii_0): Extern it.
10299
10300 * font.c (Qascii_0): New variable.
10301 (syms_of_font): DEFSYM it.
10302 (font_open_by_name): If the registry "iso8859-1" fails, try also
10303 "ascii-0".
10304
10305 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10306
10307 2008-06-08 Kenichi Handa <handa@m17n.org>
10308
10309 * .gdbinit (xfont): New command.
10310
10311 2008-06-08 Andreas Schwab <schwab@suse.de>
10312
10313 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10314 * Makefile.in (menu.o): Update dependencies.
10315
10316 * Makefile.in (obj): Always add menu.o.
10317 * emacs.c (main): Always call syms_of_menu.
10318 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10319
10320 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
10321
10322 * Makefile.in: Compile menu.c.
10323
10324 * lisp.h: Declare syms_of_menu.
10325
10326 * emacs.c (main): Call syms_of_menu.
10327
10328 * keyboard.h: Relocate platform-independent menu definitions from
10329 xmenu.c.
10330
10331 * menu.c: New file. Relocate platform-independent menu
10332 definitions from xmenu.c. Suggested by Adrian Robert.
10333
10334 * xmenu.c: Remove platform-independent menu definitions.
10335 (menu_items menu_items_inuse, menu_items_allocated)
10336 (menu_items_used, menu_items_n_panes)
10337 (menu_items_submenu_depth): Move to keyboard.h.
10338 (init_menu_items, finish_menu_items, unuse_menu_items)
10339 (discard_menu_items, restore_menu_items, save_menu_items)
10340 (grow_menu_items, push_submenu_start, push_submenu_end)
10341 (push_left_right_boundary, push_menu_pane, push_menu_item)
10342 (keymap_panes, single_keymap_panes, single_menu_item)
10343 (list_of_panes, list_of_items, find_and_call_menu_selection)
10344 (xmalloc_widget_value, free_menubar_widget_value_tree)
10345 (parse_single_submenu, digest_single_submenu)
10346 (update_submenu_strings): Move to menu.c.
10347
10348 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10349
10350 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10351
10352 2008-06-06 Miles Bader <miles@gnu.org>
10353
10354 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10355 face, not frame default.
10356
10357 2008-06-05 Martin Rudalics <rudalics@gmx.at>
10358
10359 * window.c (pop_up_windows, pop_up_frames)
10360 (display_buffer_reuse_frames, Vpop_up_frame_function)
10361 (Vdisplay_buffer_function, Veven_window_heights)
10362 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10363 (Vspecial_display_function, Vsame_window_buffer_names)
10364 (Vsame_window_regexps, split_height_threshold)
10365 (Vsplit_window_preferred_function): Move those vars to window.el.
10366 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10367 (Fdisplay_buffer): Move those functions to window.el.
10368 (syms_of_window): Remove corresponding declarations.
10369 (display_buffer): New function.
10370 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10371 * dispnew.c (Flast_nonminibuf_frame): New function.
10372 * buffer.c (Fpop_to_buffer): Move to window.el.
10373
10374 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10375
10376 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10377
10378 2008-06-05 Kenichi Handa <handa@m17n.org>
10379
10380 * coding.c (detect_coding): Fix previous change.
10381 (detect_coding_system): Likewise.
10382
10383 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10384
10385 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10386
10387 * keymap.c (Vminibuffer_local_filename_must_match_map):
10388 Rename from Vminibuffer_local_must_match_filename_map.
10389 (syms_of_keymap):
10390 * minibuf.c (Fcompleting_read): Adjust accordingly.
10391 * commands.h: Rename declaration as well.
10392
10393 2008-06-05 Kenichi Handa <handa@m17n.org>
10394
10395 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10396 family name.
10397 (Ffont_put): Likewise.
10398
10399 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10400 current font-spec.
10401
10402 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10403 is unspecified.
10404
10405 * xfaces.c (realize_x_face): If the font-related face attributes
10406 are the same as those of default face, realize a new fontset from
10407 default->fontset.
10408 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10409
10410 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10411
10412 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10413 (move_it_in_display_line): New wrapper.
10414
10415 * window.c (window_scroll_pixel_based_preserve_x)
10416 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10417 (window_scroll_pixel_based, window_scroll_line_based):
10418 Use them to preserve column positions.
10419 (syms_of_window): Initialize them.
10420
10421 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10422 (HPOS . VPOS) pair.
10423
10424 * dispextern.h (move_it_in_display_line): Declare.
10425
10426 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
10427
10428 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10429 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10430 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10431
10432 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
10433
10434 * window.c (Fset_window_parameter): Doc fix.
10435 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10436
10437 2008-06-04 Joakim Verona <joakim@verona.se>
10438
10439 * window.h (struct window): Add new member window_parameters.
10440
10441 * window.c (Fwindow_parameters, Fwindow_parameter)
10442 (Fset_window_parameter): New defuns.
10443 (syms_of_window): Defsubr the new defuns.
10444 (make_window): Initialize window_parameters to nil.
10445
10446 2008-06-04 John Paul Wallington <jpw@pobox.com>
10447
10448 * eval.c (Fdefmacro): Doc fix.
10449
10450 2008-06-04 Kenichi Handa <handa@m17n.org>
10451
10452 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10453 Be sure to call setup_coding_system when we find a proper coding system.
10454 (detect_coding_system): Fix handling of coding->head_ascii.
10455
10456 2008-06-03 Andreas Schwab <schwab@suse.de>
10457
10458 * font.c (font_prop_validate_spacing): Fix last change.
10459
10460 2008-06-03 Kenichi Handa <handa@m17n.org>
10461
10462 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10463 (font_parse_fcname): Fix handling of unknown key.
10464
10465 * xfont.c (xfont_list): Try an alias.
10466
10467 * charset.c (char_charset): Return NULL if the arg charset_list is
10468 specified and C doesn't belong to any of them.
10469
10470 2008-06-02 Chip Coldwell <coldwell@redhat.com>
10471
10472 * font.c (font_pixel_size): Don't take cdr of an integer.
10473
10474 2008-06-02 Jim Meyering <meyering@redhat.com>
10475
10476 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10477 * alloc.c (xfree): Return right away for a NULL arg.
10478 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10479 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10480 * mac.c (create_apple_event_from_event_ref): Likewise.
10481 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10482 Likewise.
10483 * doprnt.c (doprnt1): Likewise.
10484 * frame.c (frame): Likewise.
10485 * keyboard.c (wipe_kboard): Likewise.
10486 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10487 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10488 * term.c (tty_default_color_capabilities, maybe_fatal)
10489 (delete_tty): Likewise.
10490 * w16select.c (string): Likewise.
10491 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10492 * w32bdf.c (w32_free_bdf_font): Likewise.
10493 * w32fns.c (w32_unload_font): Likewise.
10494 * w32font.c (w32font_close): Likewise.
10495 * window.c (size_window): Likewise.
10496 * xselect.c (receive_incremental_selection): Likewise.
10497 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10498 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10499 * w32.c (stat): Likewise.
10500
10501 Remove useless if-before-free tests.
10502 * editfns.c (Fset_time_zone_rule): Likewise.
10503 * lread.c (nosuffix): Likewise.
10504 * ralloc.c (get_bloc): Likewise.
10505 * regex.c (reg_free): Likewise.
10506 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10507 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10508 * xsmfns.c (smc_save_yourself_CB): Likewise.
10509
10510 2008-06-02 Kenichi Handa <handa@m17n.org>
10511
10512 * font.c (font_find_for_lface): Handle float font size.
10513 (font_open_for_lface): Likewise.
10514
10515 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10516 comparing the properties.
10517
10518 2008-06-01 Jason Rumney <jasonr@gnu.org>
10519
10520 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10521 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10522 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10523 Don't add empty script list.
10524 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10525
10526 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10527
10528 * Makefile.in (dot, dotdot): Remove, update users.
10529 ".." has been used elsewhere in the file for a long time.
10530 (LIBXT_STATIC): Remove conditional based on unused variable.
10531
10532 2008-06-01 Miles Bader <miles@gnu.org>
10533
10534 * xfaces.c (Vface_remapping_alist): New variable.
10535 (syms_of_xfaces): Initialize it.
10536 (enum named_merge_point_kind): New type.
10537 (struct named_merge_point): Add `named_merge_point_kind' field.
10538 (push_named_merge_point): Make cycle detection respect different
10539 named-merge-point kinds.
10540 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10541 Remove face-name alias resolution.
10542 (lface_from_face_name): New definition using
10543 `lface_from_face_name_no_resolve'.
10544 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10545 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10546 (get_lface_attributes): New definition that layers face-remapping on
10547 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10548 (lookup_basic_face): New function.
10549 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10550 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10551 `get_lface_attributes'.
10552 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10553 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10554 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10555
10556 * xdisp.c (init_iterator): Pass base_face_id through
10557 `lookup_basic_face' when we actually use it as a face-id.
10558 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10559 DEFAULT_FACE_ID.
10560
10561 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10562 lookup the initial face-id.
10563
10564 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10565
10566 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
10567
10568 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10569 (Fremove_text_properties): Fix typos in docstrings.
10570
10571 2008-05-31 Kenichi Handa <handa@m17n.org>
10572
10573 * font.c (font_list_entities): Fix the car part of data to be
10574 stored in the cache.
10575
10576 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10577
10578 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10579
10580 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10581 Add a `test' argument so another predicate than `equal' can be used.
10582 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10583 (map_char_table): Remove unused vars `c' and `i'.
10584 * lisp.h (Foptimize_char_table): Adjust declaration.
10585 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10586
10587 2008-05-30 Kenichi Handa <handa@m17n.org>
10588
10589 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10590 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10591 defined.
10592
10593 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10594
10595 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10596 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10597 frame-local settings for the same variable.
10598
10599 2008-05-30 Kenichi Handa <handa@m17n.org>
10600
10601 * fontset.c (Ffont_info): Move to font.c.
10602 (syms_of_fontset): Delete defsubr of Sfont_info.
10603
10604 * font.c (font_style_to_value, font_score): Delete casting of the
10605 args to xstcasecmp.
10606 (register_font_driver): Increment num_font_drivers only when
10607 registering the driver globally.
10608 (Ffont_info): Move from fontset.c. Handle a font object too.
10609 (syms_of_font): Defsubr Sfont_info.
10610
10611 2008-05-29 Kenichi Handa <handa@m17n.org>
10612
10613 * coding.h (enum define_coding_utf8_arg_index): New enum.
10614 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10615 coding_attr_utf_bom.
10616 (enum utf_bom_type): Rename from utf_16_bom_type.
10617 (struct utf_16_spec): Adjust for the above change.
10618 (struct coding_system): Add utf_8_bom in `spec' union.
10619
10620 * coding.c (CODING_UTF_8_BOM): New macro.
10621 (enum coding_category): Delete coding_category_utf_8, add
10622 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10623 coding_category_utf_8_sig.
10624 (CATEGORY_MASK_UTF_8): Delete it.
10625 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10626 (CATEGORY_MASK_UTF_8_SIG): New macros.
10627 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10628 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10629 CATEGORY_MASK_UTF_8_SIG.
10630 (CATEGORY_MASK_UTF_8): New macro.
10631 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10632 (detect_coding_utf_8): Check BOM.
10633 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10634 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10635 (encode_coding_utf_16): Likewise.
10636 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10637 (detect_coding, detect_coding_system): Handle utf-8-auto.
10638 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10639 (syms_of_coding): Fix setting up of Vcoding_category_table.
10640
10641 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10642
10643 * process.c (Faccept_process_output): If `millisec' is non-nil,
10644 `seconds' default to 0.
10645 (wait_reading_process_output): Also return non-nil if we read output
10646 from a non-running process.
10647
10648 2008-05-29 Jason Rumney <jasonr@gnu.org>
10649
10650 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10651 `raster' specified.
10652 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10653 in the uniscribe backend, but disallow any font that has no
10654 unicode subrange support.
10655
10656 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
10657
10658 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10659 Fix typos in docstrings.
10660
10661 2008-05-29 Kenichi Handa <handa@m17n.org>
10662
10663 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10664 (Fx_family_fonts): Set frame correctly.
10665
10666 2008-05-28 Jason Rumney <jasonr@gnu.org>
10667
10668 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10669
10670 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10671
10672 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10673 calling build_annotations.
10674
10675 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
10676
10677 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10678 (Fencode_coding_string):
10679 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10680 <latin-extra-code-table>: Fix typos in docstrings.
10681 (syms_of_coding) <coding-system-alist>: Doc fix.
10682 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10683
10684 2008-05-28 Kenichi Handa <handa@m17n.org>
10685
10686 * fontset.c (Ffont_info): Don't call font_close_object.
10687
10688 * font.c (font_parse_family_registry): Use Ffont_put to validate
10689 foundry and family.
10690 (font_delete_unmatched): Don't check spacing.
10691 (font_list_entities): Add spacing to the spec to list fonts.
10692
10693 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10694 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10695
10696 * coding.c (encode_coding_raw_text): Fix previous change.
10697 (encode_coding_object): When the dst_object is a buffer and is
10698 different from src_object, move gap to PT.
10699
10700 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
10701
10702 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10703
10704 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10705
10706 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10707 all branches. Compute it differently.
10708
10709 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10710
10711 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
10712
10713 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10714 into "else if () ... else ...".
10715
10716 2008-05-27 Jason Rumney <jasonr@gnu.org>
10717
10718 * w32font.c (w32font_open_internal): Determine if glyph indices
10719 are likely to work here.
10720
10721 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
10722
10723 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10724 draw overlap glyphs with appropriate highlighting.
10725
10726 2008-05-27 Kenichi Handa <handa@m17n.org>
10727
10728 * xfont.c (xfont_open): Fix calculation of font->average_width.
10729
10730 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10731
10732 * casefiddle.c (casify_object): Try to guess better whether the
10733 argument is a byte or a char.
10734
10735 2008-05-26 Andreas Schwab <schwab@suse.de>
10736
10737 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10738 Always send multiples of format size.
10739
10740 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10741
10742 2008-05-26 Jason Rumney <jasonr@gnu.org>
10743
10744 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10745 (compute_metrics): Don't set failure if we just cleared the cache.
10746 (w32_weight_table): Remove unused variable.
10747 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10748 backwards compatibility.
10749
10750 2008-05-25 Kenichi Handa <handa@m17n.org>
10751
10752 * w32term.c (x_draw_glyph_string):
10753 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10754
10755 * xfaces.c: Delete unused function prototypes.
10756 (xstrlwr, font_frame): Delete them.
10757 (clear_face_cache): Delete unused variable.
10758
10759 * xftfont.c (xftfont_open): Delete unused variable.
10760 If underline_thickness is not 1, adjust underline_position.
10761
10762 * ftxfont.c (ftxfont_open): Delete unused variable.
10763
10764 * fontset.c (face_for_char): Optimize for the case of no charset
10765 property.
10766
10767 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10768 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10769 (otf_open, font_otf_capability, generate_otf_features)
10770 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10771 Comment out by surrounding "#if 0" and "#endif" for the moment.
10772 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10773 (syms_of_font): Codes for accessing above commented out.
10774
10775 2008-05-24 Eli Zaretskii <eliz@gnu.org>
10776
10777 * w32proc.c: Include dispextern.h.
10778
10779 * w32.c: Include dispextern.h.
10780
10781 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
10782
10783 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10784 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10785 Fix typos in docstrings.
10786
10787 2008-05-23 Jason Rumney <jasonr@gnu.org>
10788
10789 * xsmfns.c: Remove includes that are already included by config.h.
10790
10791 2008-05-23 Kenichi Handa <handa@m17n.org>
10792
10793 * charset.c (Qemacs, charset_emacs): New variables.
10794 (char_charset): Fix for non-Unicode characters.
10795 (syms_of_charset): Define charset_emacs.
10796
10797 * w32term.c (x_draw_glyph_string): Be sure to update
10798 s->underline_thickness and s->underline_position. Be sure to draw
10799 underline within the current line area.
10800
10801 * xterm.c (x_draw_glyph_string): Be sure to update
10802 s->underline_thickness and s->underline_position. Be sure to draw
10803 underline within the current line area.
10804
10805 * fontset.c: Delete unused variables and add casting for char *
10806 throughout the file.
10807 (fontset_font): Try the fallback fonts of the current fontset
10808 before consulting the default fontset.
10809
10810 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10811
10812 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10813
10814 2008-05-22 Jason Rumney <jasonr@gnu.org>
10815
10816 * font.c: Don't include strings.h.
10817
10818 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10819
10820 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10821 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10822 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10823 to call xstrcasecmp.
10824
10825 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10826
10827 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10828
10829 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10830
10831 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10832
10833 2008-05-22 Kenichi Handa <handa@m17n.org>
10834
10835 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10836
10837 * font.c (font_prop_validate_style): Adjust for the format
10838 change of font_style_table.
10839
10840 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10841 two args.
10842
10843 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10844 two args.
10845
10846 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10847
10848 * minibuf.c (keys_of_minibuf): Delete.
10849 * lisp.h (keys_of_minibuf): Delete.
10850 * emacs.c (main): Don't call keys_of_minibuf.
10851
10852 2008-05-22 Kenichi Handa <handa@m17n.org>
10853
10854 * ftfont.c (ftfont_resolve_generic_family): Rename from
10855 ftfont_list_generic_family. Return a single family for each
10856 generic family.
10857 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10858 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10859 Call font_add_log.
10860 (ftfont_match): Call font_add_log.
10861
10862 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10863 (FONT_DEBUG): Define it.
10864 (font_add_log): Extern it.
10865 (font_assert): Rename from xassert.
10866
10867 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10868 (xfont_list_family): Call font_add_log.
10869 (xfont_match): Likewise.
10870 (memq_no_quit): Delete.
10871
10872 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10873 call of Ffont_xlfd_name.
10874
10875 * xfaces.c (struct table_entry, slant_table, weight_table)
10876 (swidth_table): Move to font.c.
10877
10878 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10879 xassert are changed to font_assert. Delete many unused variables.
10880 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10881 New variables.
10882 (struct table_entry): Move from xfaces.c and modified.
10883 (weight_table, slant_table, width_table): Move from xfaces.c and
10884 contents adjusted for the change of struct table_entry.
10885 (font_style_to_value, font_style_symbolic): Adjust for the
10886 format change of font_style_table.
10887 (font_parse_family_registry): Don't overwrite existing foundry and
10888 family of font_spec.
10889 (font_score): Fix calculation of diff for sizes.
10890 (font_sort_entites): Call font_add_log.
10891 (font_delete_unmatched): Return a newly created list.
10892 (font_list_entities): Fix previous change. Call font_add_log.
10893 (font_matching_entity, font_open_entity, font_close_entity):
10894 Call font_add_log.
10895 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10896 (Finternal_set_font_style_table): Delete.
10897 (BUILD_STYLE_TABLE): New macro.
10898 (build_style_table): New function.
10899 (Vfont_log, font_log_env_checked): New variables.
10900 (font_add_log): New function.
10901 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10902 Declare Lisp variables "font-weight-table", "font-slant-table",
10903 "font-width-table", and "font-log". Initialize font_style_table.
10904
10905 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10906
10907 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10908
10909 2008-05-21 Seiji Zenitani <zenitani@mac.com>
10910 Ryo Yoshitake <ryo@shiftmode.net>
10911
10912 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10913 (Vframe_alpha_lower_limit): New variable.
10914 (x_set_alpha): New function.
10915
10916 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10917
10918 * xfns.c (x-create-frame, Qalpha):
10919 Initialize the frame parameter `alpha'.
10920 * xterm.c (OPAQUE, OPACITY): New.
10921 (x_set_frame_alpha): New function.
10922 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10923
10924 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10925 * w32fns.c (w32_frame_parm_handlers): Likewise.
10926
10927 2008-05-20 Jason Rumney <jasonr@gnu.org>
10928
10929 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10930 truetype fonts to opentype list.
10931
10932 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
10933
10934 * fontset.c (Ffontset_info): Doc fix.
10935 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10936 <ignore-relative-composition>: Fix typos in docstrings.
10937
10938 * font.c (syms-of-font) <font-encoding-alist>:
10939 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10940 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10941 (Ffont_otf_alternates): Doc fixes.
10942
10943 2008-05-20 Kenichi Handa <handa@m17n.org>
10944
10945 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10946 font.h through out the file.
10947 (FONT_DRIVERS): Rename from FONTOBJ.
10948 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10949 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10950
10951 * emacs.c (main): Call syms_of_font unconditionally.
10952
10953 * font.h (find_font_encoding): Extern it.
10954
10955 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10956 fontset.c.
10957 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
10958 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10959 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10960 only when HAVE_WINDOW_SYSTEM is defined.
10961 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10962 when HAVE_WINDOW_SYSTEM is defined.
10963
10964 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10965 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10966
10967 * xfaces.c: Include font.h unconditionally.
10968 (merge_face_ref, merge_face_vectors)
10969 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10970
10971 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10972
10973 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10974 indirect_variable.
10975 * eval.c (lisp_indirect_variable): New fun.
10976 (Fuser_variable_p): Use it.
10977
10978 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10979
10980 * lisp.h (indirect_variable):
10981 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10982 Use Lisp_Symbol pointers rather than Lisp_Object.
10983 Adjust callers.
10984 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10985 To this end, change calling-convention.
10986
10987 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10988 if some non-hidden buffers are selected by string&pred.
10989
10990 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
10991
10992 * process.c (wait_reading_process_output): Always check status
10993 when in batch mode.
10994
10995 2008-05-19 Kenichi Handa <handa@m17n.org>
10996
10997 * font.c (font_list_entities): Fix handling of cache.
10998 (font_matching_entity): Likewise.
10999
11000 * ftfont.c (cs_iso8859_1): Delete.
11001 (ft_face_cache): New variable.
11002 (struct ftfont_info): New member fc_charset_idx.
11003 (ftfont_build_basic_charsets): Delete.
11004 (fc_charset_table): New variable.
11005 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
11006 . FC_CHARSET_IDX) as :font-entity property in the font entity.
11007 Callers changed.
11008 (ftfont_lookup_cache, ftfont_get_charset): New functions.
11009 (ftfont_spec_pattern): New argument fc_charset_idx.
11010 Check registry more rigidly. Change callers.
11011 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
11012 change of :font-entity property of the font.
11013
11014 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
11015 property of the font.
11016
11017 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
11018
11019 * coding.c (Fcoding_system_p): Rename argument to match docstring.
11020 (Funencodable_char_position, Fcheck_coding_systems_region)
11021 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
11022 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
11023 (Ffind_operation_coding_system, Fset_coding_system_priority)
11024 (Fcoding_system_eol_type): Doc fixes.
11025
11026 2008-05-17 Glenn Morris <rgm@gnu.org>
11027
11028 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
11029
11030 2008-05-16 Eli Zaretskii <eliz@gnu.org>
11031
11032 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
11033 and st_gid.
11034
11035 * frame.c (Fdelete_frame): Don't call font_update_drivers if
11036 HAVE_WINDOW_SYSTEM is not defined.
11037
11038 * xfaces.c (merge_face_ref, merge_face_vectors)
11039 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
11040 HAVE_WINDOW_SYSTEM is defined.
11041 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
11042
11043 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
11044
11045 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
11046
11047 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11048
11049 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
11050
11051 2008-05-15 Kenichi Handa <handa@m17n.org>
11052
11053 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
11054 preference.
11055
11056 2008-05-15 Glenn Morris <rgm@gnu.org>
11057
11058 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
11059
11060 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
11061
11062 * fns.c (init_fns): Don't initialize weak_hash_tables here.
11063 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
11064
11065 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
11066
11067 2008-05-15 Kenichi Handa <handa@m17n.org>
11068
11069 * ftfont.c (ftfont_list): Downcase family name to check generic
11070 families.
11071
11072 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
11073 font-spec for QCfont value.
11074
11075 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
11076 buffer. Check the return value of it.
11077
11078 2008-05-14 Jason Rumney <jasonr@gnu.org>
11079
11080 * w32term.c (w32_get_glyph_overhangs): Remove.
11081 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
11082
11083 2008-05-14 Kenichi Handa <handa@m17n.org>
11084
11085 * font.c (font_prop_validate): Make nil a valid value.
11086 (font_clear_cache): Check if the cached vector of entities is nil
11087 or not.
11088
11089 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11090
11091 * emacs.c (main_thread): Conditionalize on
11092 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11093 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11094
11095 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11096 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11097 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11098
11099 2008-05-14 Kenichi Handa <handa@m17n.org>
11100
11101 * coding.c (detect_coding_iso_2022): Ignore a coding category that
11102 has no corresponding coding system.
11103
11104 2008-05-14 Jason Rumney <jasonr@gnu.org>
11105
11106 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11107
11108 * w32font.h (w32font_open_internal): Update declaration.
11109
11110 * w32font.c (w32font_open_internal): Change last argument from
11111 w32font_info struct to font object. Fill in font object from
11112 font_entity. Get Outline metrics if possible. Use them to
11113 calculate underline position and thickness. Use xlfd name as name
11114 property. Don't set codepage.
11115 (w32font_open): Pass font_object to w32font_open_internal. Don't
11116 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11117 (w32font_draw): Use s->font.
11118 (clear_cached_metrics): Don't clear non-existent blocks.
11119
11120 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11121 font was not found.
11122 (x_draw_glyph_string): Use underline position and thickness from font.
11123
11124 * w32uniscribe.c (uniscribe_open): Pass font_object to
11125 w32font_open_internal.
11126
11127 2008-05-14 Kenichi Handa <handa@m17n.org>
11128
11129 These changes are to delete all legacy font-handling codes, and
11130 make Emacs use only font-backends.
11131
11132 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11133 (frame.o, image.o, print.o): Depend on $(FONTSRC).
11134
11135 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11136
11137 * charset.h (Vcharset_non_preferred_head)
11138 (Vcurrent_iso639_language): Extern them.
11139
11140 * charset.c (Vcharset_non_preferred_head): New variable.
11141 (Vcurrent_iso639_language): New variable.
11142 (syms_of_charset): Declare it as a Lisp variable.
11143 (char_charset): Don't check non preferred charsets. As a last
11144 resort, return charset_unicode.
11145 (Fset_charset_priority): Update Vcharset_non_preferred_head.
11146
11147 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11148 conditionals. Don't check enable_font_backend. Delete all codes
11149 used only when USE_FONT_BACKEND is not defined.
11150
11151 * dispextern.h (struct glyph_string): Change type of `font' to
11152 `struct font *'.
11153 (struct glyph_string): New member underline_position and
11154 underline_thickness.
11155 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11156 (struct face): Change type of `font' to `struct font *'. Remove
11157 members `font_name', `font_info_id'.
11158 (per_char_metric, encode_char): Delete externs.
11159 (calc_pixel_width_or_height): Adjust the prototype.
11160
11161 * emacs.c (enable_font_backend): Delete extern.
11162 (main): Don't set enable_font_backend. Don't check the command
11163 line argument "-disable-font-backend".
11164
11165 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11166 (enum font_property_index): New members FONT_DPI_INDEX,
11167 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11168 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11169 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11170 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11171 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11172 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11173 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11174 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11175 (struct font_spec, struct font_entity): New structs.
11176 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11177 (struct font): Many members from old "struct font_info" moved to
11178 here. Members font and entity deleted.
11179 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11180 the new font-related objects.
11181 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11182 (CHECK_FONT_GET_OBJECT): Likewise.
11183 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11184 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11185 (struct font_driver): New members case_sensitive anc check. Type
11186 of the member list and open changed.
11187 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11188 (font_symbolic_width, font_find_object, font_get_spec)
11189 (font_set_lface_from_name): Delete extern.
11190 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11191
11192 * font.c: Include <strings.h>.
11193 (enable_font_backend): Delete it.
11194 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11195 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11196 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11197 (null_string): Delete it.
11198 (null_vector): Make it static.
11199 (font_family_alist): Delete it.
11200 (Qnormal): Extern it.
11201 (QCextra, QClanguage): Delete it.
11202 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11203 (font_make_spec, font_make_entity, font_make_object)
11204 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11205 the string. Callers changed.
11206 (font_pixel_size): Adjusted for the format change of font-related
11207 objects.
11208 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11209 (font_style_to_value, font_style_symbolic): New function.
11210 (build_font_family_alist): Delete it.
11211 (font_registry_charsets): Use Fassoc_string instead of
11212 assq_no_quit.
11213 (font_prop_validate_symbol): Don't return null_string.
11214 (font_prop_validate_style): Adjusted for the change of
11215 style-related values in a font vector.
11216 (font_property_table): Delete entries for QClanguage and
11217 QCantialias, add entries for QCavgwidth.
11218 (get_font_prop_index): Delete the 2nd argument FROM.
11219 (font_prop_validate): Arguments changed.
11220 (font_put_extra): Adjusted for the change of font-related objects.
11221 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11222 (font_parse_fcname, font_unparse_fcname)
11223 (font_prepare_composition): Likewise.
11224 (font_parse_family_registry): Renamed from font_merge_old_spec.
11225 (otf_open): Delete the 1st arg entity.
11226 (font_otf_capability): Adjusted for the above change.
11227 (font_score): New arg alternate_families. Adjusted for the change
11228 of font-related objects.
11229 (font_sort_entites): New arg best_only.
11230 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11231 Delete them.
11232 (font_match_p): Check alternate families.
11233 (font_find_object): Delete it.
11234 (font_check_object): New function.
11235 (font_clear_cache): Adjusted for the change of font-related objects.
11236 (font_delete_unmatched): New arg.
11237 (font_list_entities): Call font_driver->list with a spec that
11238 doesn't specify style-related properties.
11239 (font_matching_entity): Arguments changed. Caller changed.
11240 (font_open_entity): Adjusted for the change of font-related objects.
11241 (font_close_object, font_has_char, font_encode_char)
11242 (font_get_name, font_get_spec): Likewise.
11243 (font_spec_from_name, font_clear_prop, font_update_lface):
11244 New functions.
11245 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11246 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11247 (font_at): Adjusted for the change of font-related objects.
11248 (font_range): New function.
11249 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11250 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11251 (Fcopy_font_spec, Fmerge_font_spec): New function.
11252 (Ffont_family_list): Renamed from list-families.
11253 (Finternal_set_font_style_table): Arguments changed.
11254 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11255 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11256 change of font-related objects.
11257 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11258
11259 * fontset.h (struct font_info): Delete it. Most members go to
11260 struct font.
11261 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11262 (enum FONT_SPEC_INDEX): Delete it.
11263 (font_info, list_fonts_func, load_font_func, query_font_func)
11264 (set_frame_fontset_func, find_ccl_program_func)
11265 (get_font_repertory_func, new_fontset_from_font_name): Delete
11266 externs.
11267 (fontset_from_font_name): Extern it.
11268 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11269 (FONT_INFO_FROM_FACE): Deleted.
11270 (face_for_font): Adjust prototype.
11271
11272 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11273 conditionals. Don't check enable_font_backend. Delete all codes
11274 used only when USE_FONT_BACKEND is not defined.
11275 (get_font_info_func, list_font_func, load_font_func)
11276 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11277 (get_font_repertory_func): Delete them.
11278 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11279 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11280 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11281 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11282 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11283 (fontset_compare_rfontdef): New function.
11284 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11285 rfont-defs by qsort. Adjusted for the change of font-group vector.
11286 (load_font_get_repertory): Deleted.
11287 (fontset_find_font): Use new macros to ref/set elements of
11288 font-def and rfont-def.
11289 (fontset_font): Fix the timing of remembering that no font for C.
11290 (free_face_fontset): Do nothing if the face has no fontset.
11291 (face_suitable_for_char_p): Use new macros to ref/set elements of
11292 rfont-def.
11293 (face_for_char): Likewise. Call face_for_char with font_object.
11294 (fs_load_font): Delete. Delete #pragma surrounding it.
11295 (fs_query_fontset): Use strcasecmp instead of strcmp.
11296 (generate_ascii_font_name): Adjusted for the format change of
11297 font-spec.
11298 (Fset_fontset_font): Likewise. Use new macros to set elements of
11299 font-def.
11300 (Fnew_fontset): Use font_unparse_xlfd to generate
11301 FONTSET_ASCII (fontset).
11302 (new_fontset_from_font_name): Deleted.
11303 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11304 a fontset is already created for the font. FIx updating of
11305 Vfontset_alias_alist.
11306 (fontset_ascii_font): Deleted.
11307 (Ffont_info): Adjusted for the format change of font-spec.
11308 (Finternal_char_font): Likewise.
11309 (Ffontset_info): Likewise.
11310 (syms_of_fontset): Don't check load_font_func.
11311
11312 * fns.c (internal_equal): Handle PREV_FONT.
11313
11314 * frame.h: Delete USE_FONT_BACKEND conditional.
11315
11316 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11317 conditionals. Don't check enable_font_backend. Delete all codes
11318 used only when USE_FONT_BACKEND is not defined.
11319 (x_set_font): Call x_new_font, not x_new_fontset2.
11320 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11321 already set for the frame.
11322
11323 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11324 a font-entity by font_make_entity. Use font_intern_prop instead
11325 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11326 font property. If a font is scalable, set avgwidth property to 0.
11327 Set font-entity property by font_put_extra.
11328 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11329 (ffont_driver): Adjusted for the change of struct font_driver.
11330 (ftfont_spec_pattern): New function.
11331 (ftfont_list): Return a list, not vector.
11332 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11333 (ftfont_list_family): Don't downcase names.
11334 (ftfont_free_entity): Deleted.
11335 (ftfont_open): Return a font-object. Adjusted for the change of
11336 struct font. Get underline_thickness and underline_position from
11337 font property. Don't update dpyinfo->smallest_font_height and
11338 dpyinfo->smallest_char_width.
11339 (ftfont_close): Don't free `struct font'.
11340 (ftfont_has_char): Adjusted for the format change of font-entity.
11341 (ftfont_encode_char, ftfont_text_extents): Likewise.
11342
11343 * ftxfont.c (ftxfont_list): Return a list, not vector.
11344 (ftxfont_open): Return a font-object. Adjusted for the change of
11345 struct font. Get underline_thickness and underline_position from
11346 font property. Don't update dpyinfo->smallest_font_height and
11347 dpyinfo->smallest_char_width.
11348 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11349 (ftxfont_draw): Adjusted for the change of struct font.
11350
11351 * image.c (image_ascent): Don't include "charset.h". Include
11352 "character.h" and "font.h".
11353
11354 * lisp.h (enum pvec_type): New member PREV_FONT.
11355 (Fassoc_string): EXFUN it.
11356
11357 * print.c: Include font.h.
11358 (print_object): Handle font-related objects.
11359
11360 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11361 conditionals. Don't check enable_font_backend. Delete all codes
11362 used only when USE_FONT_BACKEND is not defined.
11363 (handle_auto_composed_prop): Do nothing if it->f is not on a
11364 window system. Check how many following characters can be
11365 displayed by the same font.
11366 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11367 'struct font *'.
11368 (get_char_face_and_encoding): Assign the whole encoding task to
11369 the `encode-char' method of a font driver.
11370 (fill_composite_glyph_string): Adjusted for the change of `struct
11371 face' and `struct glyph_string'.
11372 (fill_glyph_string): Likewise.
11373 (get_per_char_metric): Arguments changed.
11374 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11375 and `struct glyph_string'.
11376 (produce_stretch_glyph, calc_line_height_property)
11377 (x_produce_glyphs): Likewise.
11378
11379 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11380 conditionals. Don't check enable_font_backend. Delete all codes
11381 used only when USE_FONT_BACKEND is not defined. Use
11382 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11383 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11384 (Qp): Extern them.
11385 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11386 Deleted.
11387 (struct font_name): Deleted.
11388 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11389 (compare_fonts_by_sort_order): New function.
11390 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11391 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11392 Deleted.
11393 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11394 compare_fonts_by_sort_order.
11395 (Fx_font_family_list): Call Ffont_family_list.
11396 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11397 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11398 (face_symbolic_slant, face_symbolic_swidth)
11399 (split_font_name_into_vector, build_font_name_from_vector)
11400 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11401 (font_rescale_ratio, split_font_name, build_font_name)
11402 (free_font_names, sort_fonts, x_face_list_fonts)
11403 (face_font_available_p, sorted_font_list, cmp_font_names)
11404 (font_list_1, concat_font_list, font_list, remove_duplicates):
11405 Deleted.
11406 (Fx_list_fonts): Use Ffont_list.
11407 (LFACE_AVGWIDTH): Deleted.
11408 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11409 by FONTP.
11410 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11411 (set_lface_from_font_name): Delete it.
11412 (set_lface_from_font): Renamed from
11413 set_lface_from_font_and_fontset. Caller changed. Don't set
11414 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11415 for face.
11416 (merge_face_vectors): Copy font-spec if necessary.
11417 Clear properties of the font-spec if necessary.
11418 (merge_face_ref): Clear properties of the font-spec if necessary.
11419 (Finternal_set_lisp_face_attribute): Likewise.
11420 (set_font_frame_param): Use font_load_for_lface to load a
11421 font-object, and call Fmodify_frame_parameters with it.
11422 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11423 font name by Ffont_xlfd_name.
11424 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11425 QCslant, and QCwidth.
11426 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11427 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11428 Compare fonts by EQ.
11429 (lookup_non_ascii_face): Deleted.
11430 (face_for_font): The 2nd argument changed.
11431 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11432 Check atomic font properties by case insensitive.
11433 (realize_non_ascii_face): Set face->overstrike correctly.
11434 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11435 (dump_realized_face): Get font name from
11436 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11437
11438 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11439 conditionals. Don't check enable_font_backend. Delete all codes
11440 used only when USE_FONT_BACKEND is not defined.
11441 (xic_create_xfontset): Original code deleted and renamed from
11442 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11443 (x_make_gc): Don't set GCFont in GCs.
11444 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11445 opened by "fixed".
11446 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11447 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11448 get_font_repertory_func.
11449
11450 * xfont.c: Include <stdlib.h> and "ccl.h".
11451 (struct xfont_info): New structure.
11452 (xfont_query_font): Deleted.
11453 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11454 moved from xterm.c.
11455 (xfont_driver): Adjusted for the change of struct font_driver.
11456 (compare_font_names): New function.
11457 (xfont_list_pattern): Sort font names case insensitively. Make
11458 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11459 (xfont_list): Return a list, not vector.
11460 (xfont_match): If the font doesn't have QCname property, generate
11461 a name from the other font properties.
11462 (xfont_open): Return a font-object. Adjusted for the change of
11463 struct font. Get underline_thickness and underline_position from
11464 font property. Don't update dpyinfo->smallest_font_height and
11465 dpyinfo->smallest_char_width.
11466 (xfont_close): Don't free struct font.
11467 (xfont_prepare_face): Adjusted for the change of struct font.
11468 (xfont_done_face): Deleted.
11469 (xfont_has_char): Adjusted for the change of struct font.
11470 (xfont_encode_char, xfont_draw): Likewise.
11471 (xfont_check): New function.
11472
11473 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11474 callback function.
11475 (xftfont_match): Adjusted for the format change of font-entity.
11476 (xftfont_open): Adjusted for the format change of font-entity and
11477 font-object. Adjusted for the change of struct font. Return a
11478 font-object. Don't update dpyinfo->smallest_font_height and
11479 dpyinfo->smallest_char_width.
11480 (xftfont_close): Block input while calling XftFontClose.
11481 (xftfont_prepare_face): Don't block input while calling
11482 xftfont_get_colors. Adjusted for the change of struct font.
11483 (xftfont_shape): Return value of error case fixed.
11484
11485 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11486
11487 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11488 conditionals.
11489 (FONT_WIDTH): Return (f)->max_width.
11490 (struct x_display_info): Delete member `font'.
11491 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11492 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11493 (struct x_output): Change type of `font' to `struct font *'.
11494
11495 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11496 conditionals. Don't check enable_font_backend. Delete all codes
11497 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11498 (x_per_char_metric, x_encode_char): Deleted.
11499 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11500 (x_compute_glyph_string_overhangs): Adjusted for the change of
11501 `struct face'.
11502 (x_draw_glyph_string_foreground)
11503 (x_draw_composite_glyph_string_foreground): Likewise.
11504 (x_draw_glyph_string): Likewise. Use font->underline_position and
11505 font->underline_thickness.
11506 (x_new_font): Renamed from x_new_fontset2.
11507 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11508 (x_check_font): Call `check' method of a font driver.
11509 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11510 (x_query_font, x_get_font_repertory): Deleted.
11511 (x_find_ccl_program): Renamed and moved to xfont.c.
11512 (x_redisplay_interface): Adjusted for the change of `struct
11513 redisplay_interface'.
11514
11515 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11516 conditionals. Don't check enable_font_backend. Delete all codes
11517 used only when USE_FONT_BACKEND is not defined. Surround non-used
11518 code by "#ifdef OLD_FONT" and "endif".
11519 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11520
11521 * w32font.h (struct w32font_info): New member.
11522 (FONT_COMPAT): New macro.
11523 (w32font_open_internal): Prototype adjusted.
11524
11525 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11526 OLD_FONT" and "endif".
11527
11528 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11529 conditionals. Don't check enable_font_backend. Delete all codes
11530 used only when USE_FONT_BACKEND is not defined.
11531 (w32font_open): Return a font-object. Make a font-object by
11532 font_make_object. Adjusted for the change of struct w32font_info.
11533 (w32font_close): Don't free struct font. Adjusted for the change
11534 of struct w32font_info.
11535 (w32font_encode_char, w32font_text_extents, w32font_draw):
11536 Adjusted for the change of struct w32font_info.
11537 (w32font_draw): Likewise.
11538 (w32font_list_internal): Return a list, not vector.
11539 (w32font_open_internal): Change the 4th arg to font-object.
11540 Adjusted for the change of struct w32font_info and font-object format.
11541 (add_font_name_to_list): Don't downcase names.
11542 (w32_enumfont_pattern_entity): Make a font-entity by
11543 font_make_entity. Adjusted for the format change of font-entity.
11544 Use FONT_SET_STYLE to set a style-related font property. If a
11545 font is scalable, set avgwidth property to 0. Set font-entity
11546 property by font_put_extra.
11547 (font_matches_spec): Adjusted for the format change of font-entity.
11548 (w32_weight_table, w32_decode_weight): New variables.
11549 (w32_encode_weight): New function.
11550 (fill_in_logfont): Adjusted for the format change of font-spec.
11551 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11552 weight value.
11553 (w32font_driver): Adjusted for the change of struct font_driver.
11554
11555 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11556 conditionals. Don't check enable_font_backend. Surround non-used
11557 code by "#ifdef OLD_FONT" and "endif".
11558 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11559 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11560
11561 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11562 conditionals. Don't check enable_font_backend. Delete all codes
11563 used only when USE_FONT_BACKEND is not defined. Surround non-used
11564 code by "#ifdef OLD_FONT" and "endif".
11565
11566 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11567 (uniscribe_open): Return value changed to font-object.
11568 Adjusted for the format change of font-object.
11569 (uniscribe_otf_capability): Adjusted for the change of struct font.
11570 (add_opentype_font_name_to_list): Don't downcase names.
11571 (uniscribe_font_driver): Adjusted for the change of struct
11572 font_driver.
11573
11574 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
11575
11576 * dispnew.c (update_frame_1): Check if tty output is still valid
11577 before flushing it.
11578
11579 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11580
11581 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11582 to Gtk+ menus.
11583
11584 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11585
11586 * dired.c (file_name_completion): Tweak the code so as to always do it
11587 in a single pass. Tighten the scope of some variables.
11588
11589 * dired.c (Qdefault_directory): New var.
11590 (file_name_completion): Use it instead of Fexpand_file_name.
11591 (syms_of_dired): Initialize it.
11592
11593 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11594
11595 * fileio.c (double_dollars): Remove dead code.
11596
11597 2008-05-10 Eli Zaretskii <eliz@gnu.org>
11598
11599 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11600 Mention w32-get-true-file-attributes in doc string.
11601
11602 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11603
11604 2008-05-09 Glenn Morris <rgm@gnu.org>
11605
11606 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11607 2008-04-23.
11608
11609 2008-05-09 Eli Zaretskii <eliz@gnu.org>
11610
11611 Support for reporting owner and group of each file on MS-Windows:
11612 * dired.c (stat_uname, stat_gname): New functions, with special
11613 implementation for w32.
11614 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11615
11616 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11617 (dflt_group_name): New static variable.
11618 (dflt_group): Rename from the_group.
11619 (init_user_info): Init dflt_group fields. Get user's group name
11620 from LookupAccountSid.
11621 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11622 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11623 New initialization states.
11624 (globals_of_w32): Initialize them to zero. Initialize the default
11625 group name to "None".
11626 (GetFileSecurity_Name): New global var, the name of the function
11627 to call for GetFileSecurity.
11628 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11629 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11630 (get_file_security, get_security_descriptor_owner)
11631 (get_security_descriptor_group, is_valid_sid)
11632 (get_file_security_desc, get_rid, get_name_and_id)
11633 (get_file_owner_and_group): New functions.
11634 (stat): Use get_file_security_desc and get_file_owner_and_group to
11635 report the owner and primary group of each file. Don't ignore the
11636 high 32 bits of file's size, now that st_size is 64-bit wide.
11637 Fix test when to get true file attributes.
11638 (init_user_info): Use get_rid instead of equivalent inline code.
11639 (fstat): Don't ignore the high 32 bits of file's size.
11640
11641 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
11642
11643 * image.c (png_load): Use correct bit-depth for setting background
11644 color.
11645
11646 2008-05-08 Eli Zaretskii <eliz@gnu.org>
11647
11648 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11649 epa-hook.elc.
11650
11651 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
11652
11653 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11654
11655 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11656
11657 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11658 because the original parameters are in pure storage now.
11659 (mac_window): Remove unused params. Update callers.
11660
11661 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11662
11663 * lread.c (substitute_object_recurse): Use lower-level primitives.
11664 Don't signal errors when traversing sub-char-tables.
11665 Don't loop over all the possible characters when traversing char-tables.
11666
11667 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11668 just like we do in print.c.
11669
11670 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11671
11672 * minibuf.c (Ftry_completion): Remove code left over from when we used
11673 scmp instead of Fcompare_strings.
11674
11675 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
11676
11677 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11678
11679 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11680
11681 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11682 Create bitmap context in native byte order.
11683
11684 * macterm.c (XDrawLine)
11685 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11686 context in native byte order.
11687
11688 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11689
11690 * config.in: Regenerate.
11691
11692 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11693 New definitions for Image I/O support.
11694 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11695 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11696 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11697 (mac_data_provider_release_data, image_load_image_io)
11698 [USE_MAC_IMAGE_IO]: New functions.
11699 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11700 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11701 (init_image_func_pointer) [MAC_OSX]: Remove function.
11702 (image_load_quartz2d) [MAC_OSX]: Check availability of
11703 CGImageCreateWithPNGDataProvider at compile time.
11704 Use lowercase `false' for boolean constant.
11705 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11706 Use image_load_image_io.
11707 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11708 Don't check MyCGImageCreateWithPNGDataProvider.
11709 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11710 Don't call init_image_func_pointer.
11711
11712 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11713
11714 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11715 Make variable non-static.
11716 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11717 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11718
11719 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11720 (RED_FROM_ULONG): Mask off higher bits.
11721 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11722
11723 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11724 Include AvailabilityMacros.h.
11725 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11726 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11727
11728 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11729
11730 * chartab.c (Fset_char_table_range): If range is t, really set all
11731 chars to that value.
11732
11733 2008-05-03 Eli Zaretskii <eliz@gnu.org>
11734
11735 * dired.c (Ffile_attributes): Don't allow the device number become
11736 negative.
11737
11738 2008-05-02 Daiki Ueno <ueno@unixuser.org>
11739
11740 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11741
11742 2008-05-02 Juri Linkov <juri@jurta.org>
11743
11744 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11745 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11746 DEFAULT argument as a list of default values in docstrings.
11747
11748 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
11749
11750 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11751
11752 2008-05-01 Martin Rudalics <rudalics@gmx.at>
11753
11754 * dispnew.c (change_frame_size_1): Preserve small windows when
11755 shrinking frames by calling set_window_height|width with third
11756 arg 2.
11757
11758 * window.h (struct window): Replace field too_small_ok by field
11759 resize_proportionally.
11760
11761 * window.c (make_window): Initialize resize_proportionally.
11762 (enlarge_window): Temporarily set resize_proportionally to make
11763 sure that shrink_windows does scale the window proportionally.
11764 (shrink_windows): When window has resize_proportionally set try
11765 to shrink it proportionally by stealing from other windows.
11766 (struct saved_window, Fset_window_configuration)
11767 (compare_window_configurations): Handle resize_proportionally.
11768 (WINDOW_TOTAL_SIZE): New macro.
11769 (window_min_size, shrink_windows, size_window): Use it.
11770 (check_min_window_sizes): Remove. Invalid values of
11771 window-min-height|width are handled by window_min_size_2 now.
11772 (size_window, Fsplit_window, enlarge_window)
11773 (adjust_window_trailing_edge, grow_mini_window): Don't call
11774 check_min_window_sizes.
11775 (window_min_size_2, window_min_size_1, window_min_size):
11776 New argument safe_p for retrieving "safe" minimum sizes.
11777 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11778 (adjust_window_trailing_edge, grow_mini_window):
11779 Adjust arguments of window_min_size... functions.
11780 (shrink_windows): Argument min_size removed. New argument
11781 safe_p allows shrinking windows to their safe minimum sizes.
11782 Calculate minimum size and decide whether a window shall be
11783 deleted for each window individually.
11784 (size_window): When nodelete_p equals 2, tell shrink_windows to
11785 delete windows only if their new minimum size is no more safe.
11786 (shrink_window_lowest_first): Call window_min_size_1 to make
11787 sure to preserve modeline of bottom-most window when resizing
11788 the minibuffer.
11789 (Fset_window_configuration, Fcurrent_window_configuration)
11790 (compare_window_configurations): Do not handle
11791 window-min-height|width any more.
11792 (syms_of_window): Clarify window-min-height|width doc-strings.
11793
11794 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11795
11796 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11797 some more. Copy some of the code from Ftry_completions.
11798 Remove special case code that dates back to initial revision when the
11799 slash was only added when necessary and that can't trigger nowadays.
11800
11801 2008-04-27 Kenichi Handa <handa@m17n.org>
11802
11803 * font.c (font_prop_validate): Signal `error' instead of `font'.
11804
11805 2008-04-29 Jason Rumney <jasonr@gnu.org>
11806
11807 * w32fns.c (Fw32_battery_status): New defun.
11808 (syms_of_w32fns): Defsubr it.
11809
11810 2008-04-28 Andreas Schwab <schwab@suse.de>
11811
11812 * dired.c (file_name_completion): Fix another mixing of encoded
11813 and decoded names.
11814
11815 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
11816
11817 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11818
11819 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
11820
11821 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11822
11823 2008-04-27 Andreas Schwab <schwab@suse.de>
11824
11825 * dired.c (file_name_completion): Fix inappropriate mixing of
11826 encoded and decoded names.
11827
11828 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11829
11830 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11831
11832 2008-04-26 Eli Zaretskii <eliz@gnu.org>
11833
11834 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11835 2008-03-31, it's not needed anymore with `struct stat' definition
11836 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11837 for the same reasons.
11838
11839 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11840
11841 * m/sparc.h: Additional redefinitions for GNU/Linux.
11842
11843 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11844
11845 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11846 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11847 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11848 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11849 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11850 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11851 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11852 Likewise.
11853
11854 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11855 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11856 (mac_ax_number_of_characters): Add externs.
11857 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11858 [USE_MAC_TSM]: Likewise.
11859 (mac_handle_text_input_event) [MAC_OSX]:
11860 Handle kEventTextInputOffsetToPos for no active input area case.
11861 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11862 (mac_handle_document_access_event)
11863 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11864 (install_application_handler) [MAC_OSX]: Register handlers for
11865 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11866 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11867 Register mac_handle_document_access_event.
11868
11869 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11870 Make functions non-static.
11871
11872 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11873
11874 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11875 (read_file_name_completion_ignore_case, insert_default_directory)
11876 (Qdefault_directory): Move to minibuffer.el.
11877 (Fread_file_name): Call the new `read-file-name' instead.
11878
11879 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11880
11881 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11882 Make function non-static.
11883 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11884 Remove function.
11885 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11886 Move to mactoolbox.c.
11887 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11888
11889 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11890 (mac_rect_make): New macro.
11891
11892 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11893 instead of float.
11894 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11895 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11896 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11897 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11898 CGRectMake.
11899 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11900 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11901 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11902 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11903 instead of WindowRef in argument type.
11904 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11905 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11906 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11907 instead of DISPLAY. All uses changed.
11908 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11909 (x_calc_absolute_position): Simplify so as not to use
11910 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11911
11912 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11913 instead of WindowRef in argument type.
11914 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11915 [TARGET_API_MAC_CARBON]: Remove externs.
11916 (create_apple_event, mac_event_parameters_to_lisp)
11917 [TARGET_API_MAC_CARBON]: Add externs.
11918
11919 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11920 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11921 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11922 is clicked.
11923 (x_activate_menubar): Remove extern for saved_menu_event_location.
11924 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11925 Move from mac.c.
11926
11927 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11928
11929 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11930 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11931
11932 2008-04-23 Jason Rumney <jasonr@gnu.org>
11933
11934 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11935 attributes only for local files.
11936
11937 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11938 default to Qlocal.
11939
11940 2008-04-22 Juri Linkov <juri@jurta.org>
11941
11942 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11943 read-buffer-to-switch instead of using the letter "B".
11944
11945 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11946
11947 * fileio.c (Qdefault_directory): New variable.
11948 (Fread_file_name): Use it to pass `dir' to the completion functions.
11949
11950 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
11951
11952 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11953
11954 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11955
11956 * keyboard.c (Vpre_help_message): Remove.
11957 (show_help_echo): Remove default C code.
11958
11959 * dired.c (directory_files_internal, file_name_completion):
11960 Only call ENCODE_FILE if the string is indeed decoded.
11961
11962 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11963
11964 * Makefile.in (TOOLKIT_DEFINES): Remove.
11965 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11966
11967 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11968
11969 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11970 (mactoolbox.o): New target.
11971
11972 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11973 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11974
11975 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11976 Use mac_set_frame_window_background instead of XSetWindowBackground.
11977 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11978 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11979 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11980 instead of SetWindowTitleWithCFString.
11981 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11982 Move function to mactoolbox.c.
11983 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11984 Use mac_set_window_modified instead of SetWindowModified.
11985 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11986 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11987 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11988 FrontNonFloatingWindow. Use mac_activate_window instead of
11989 ActivateWindow. Use mac_active_non_floating_window instead of
11990 ActiveNonFloatingWindow.
11991 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11992 Use mac_show_hourglass and mac_hide_hourglass.
11993 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11994 instead of GetGlobalMouse.
11995 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11996 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11997 Use mac_bring_window_to_front instead of BringToFront.
11998 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11999 mactoolbox.c.
12000 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
12001 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
12002 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
12003 mactoolbox.c.
12004
12005 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
12006 (XtPointer): Move typedef from macmenu.c.
12007 (enum button_type): Move enum from macmenu.c.
12008 (widget_value): Move typedef from macmenu.c.
12009 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
12010 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12011 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12012 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12013 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12014 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12015 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12016 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
12017 (Selection): Move typedef from macselect.c.
12018 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
12019 macterm.c.
12020 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
12021 (mac_is_window_collapsed, mac_bring_window_to_front)
12022 (mac_send_window_behind, mac_hide_window, mac_show_window)
12023 (mac_collapse_window, mac_front_non_floating_window)
12024 (mac_active_non_floating_window, mac_activate_window)
12025 (mac_move_window_structure, mac_move_window, mac_size_window)
12026 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
12027
12028 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
12029 (enum mac_menu_kind): Move enum to mactoolbox.c.
12030 (min_menu_id): Move variable to mactoolbox.c.
12031 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
12032 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
12033 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12034 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12035 [TARGET_API_MAC_CARBON]: Likewise.
12036 (XtPointer): Move typedef to macgui.h.
12037 (enum button_type): Move enum to macgui.h.
12038 (widget_value): Move typedef to macgui.h.
12039 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12040 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12041 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12042 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12043 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12044 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12045 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
12046 (popup_activated_flag): Make variable non-static.
12047 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
12048 (add_menu_item, fill_menu, dispose_menus):
12049 Move functions to mactoolbox.c.
12050 (restore_show_help_function, menu_target_item_handler)
12051 (install_menu_target_item_handler, mac_handle_dialog_event)
12052 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
12053 [TARGET_API_MAC_CARBON]: Likewise.
12054 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
12055 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12056 (find_and_call_menu_selection, name_is_separator): Make function
12057 non-static.
12058 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
12059 to mactoolbox.c.
12060 (set_frame_menubar): Don't call install_menu_quit_handler.
12061 (menu_item_selection): New variable.
12062 (mac_menu_show): Use create_and_show_popup_menu.
12063 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
12064 selection but set variable menu_item_selection. All uses changed.
12065 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
12066 Call install_menu_quit_handler. Move to mactoolbox.c.
12067
12068 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
12069 (Selection): Move typedef to macgui.h.
12070 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
12071 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
12072 Make variables non-static.
12073 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12074 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
12075 Make functions non-static.
12076 (Vmac_service_selection) [MAC_OSX]: Likewise.
12077 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
12078 (mac_valid_selection_target_p, mac_clear_selection)
12079 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12080 (mac_put_selection_value, mac_selection_has_target_p)
12081 (mac_get_selection_value, mac_get_selection_target_list)
12082 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
12083 Move functions to mactoolbox.c.
12084 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
12085 Likewise.
12086 (copy_scrap_flavor_data, mac_handle_service_event)
12087 (install_service_handler) [MAC_OSX]: Likewise.
12088 (syms_of_macselect) <Vmac_dnd_known_types>:
12089 Use mac_dnd_default_known_types.
12090
12091 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
12092 Move to mactoolbox.c.
12093 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12094 (Fx_selection_owner_p): Add EXFUN.
12095 (install_window_handler, remove_window_handler, XSetWindowBackground):
12096 Remove externs.
12097 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12098 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12099 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12100 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12101 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12102 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12103 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12104 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12105 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12106 (create_and_show_popup_menu, mac_get_selection_from_symbol)
12107 (mac_valid_selection_target_p, mac_clear_selection)
12108 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12109 (mac_put_selection_value, mac_selection_has_target_p)
12110 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12111 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12112 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12113 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12114 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12115 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12116 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12117 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12118 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12119
12120 * mactoolbox.c: New file.
12121
12122 2008-04-18 Jason Rumney <jasonr@gnu.org>
12123
12124 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12125
12126 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12127
12128 * character.c (Fmultibyte_char_to_unibyte):
12129 Return latin1 chars unchanged.
12130
12131 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12132 relocated if it points to `name'.
12133
12134 2008-04-17 Kenichi Handa <handa@m17n.org>
12135
12136 * data.c (Faset): Allow setting a multibyte character in an
12137 ASCII-only unibyte string.
12138
12139 * lisp.h (STRING_SET_MULTIBYTE): New macro.
12140
12141 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
12142
12143 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12144 done in config.h.
12145
12146 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
12147
12148 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12149 (Fchar_direction): Add usage in the docstring.
12150
12151 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
12152
12153 * keyboard.c (read_key_sequence): Remove always-true checks.
12154
12155 2008-04-14 Jason Rumney <jasonr@gnu.org>
12156
12157 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12158 compatibility struct, for better underline positioning.
12159
12160 2008-04-13 David Hansen <david.hansen@gmx.net>
12161
12162 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12163 string.
12164
12165 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12166
12167 * m/hp800.h (XUINT, XSET): Remove.
12168
12169 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
12170
12171 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12172 previous change.
12173
12174 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12175
12176 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12177 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12178
12179 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12180
12181 * keymap.h (map_keymap_canonical): Declare.
12182 * xmenu.c (single_keymap_panes): Use it.
12183
12184 2008-04-11 Glenn Morris <rgm@gnu.org>
12185
12186 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12187 set the target's value to that of the alias.
12188
12189 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12190
12191 * term.c (set_tty_color_mode): Left over typo.
12192
12193 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
12194
12195 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12196 only after check for file name handler functions. Signal, when
12197 native functionality is not supported.
12198 (syms_of_fileio): Declare it unconditionally.
12199
12200 2008-04-10 Jason Rumney <jasonr@gnu.org>
12201
12202 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12203 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12204
12205 * w32.c (logon_network_drive): Also logon to remote drives that
12206 are mapped to drive letters.
12207
12208 2008-04-10 Glenn Morris <rgm@gnu.org>
12209
12210 * xdisp.c (truncate-partial-width-windows): Doc fix.
12211
12212 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12213
12214 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12215 Move functions to minibuffer.el.
12216 (syms_of_fileio): Don't declare them.
12217
12218 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12219
12220 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12221 (syms_of_minibuf): Remove its initialization.
12222
12223 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12224
12225 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
12226
12227 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12228
12229 2008-04-09 Jason Rumney <jasonr@gnu.org>
12230
12231 * makefile.w32-in (distclean): Delete makefile too.
12232 (maintainer-clean): New target.
12233
12234 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12235
12236 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12237 for new font backend and composite cases.
12238
12239 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12240
12241 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12242 Most of the code moved to run_timers.
12243 (do_pending_atimers): Call run_timers.
12244 (run_timers): New function.
12245
12246 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12247 run atimers.
12248
12249 * process.c (wait_reading_process_output): The same as above.
12250
12251 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12252
12253 * minibuf.c (last_exact_completion): Remove variable.
12254 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12255 (complete_and_exit_1, complete_and_exit_2)
12256 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12257 (Fdisplay_completion_list, display_completion_list_1)
12258 (Fminibuffer_completion_help, Fself_insert_and_exit)
12259 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12260 minibuffer.el.
12261 (syms_of_minibuf): Remove corresponding initializations.
12262
12263 * keyboard.c (Qdeactivate_mark): New var.
12264 (command_loop_1): Use it to call `deactivate-mark'.
12265 (syms_of_keyboard): Initialize it.
12266
12267 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12268 to another frame.
12269 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12270 Don't call set_tty_color_mode.
12271 (store_frame_param): Reset previous_frame rather than call
12272 set_tty_color_mode.
12273 * term.c (set_tty_color_mode): Rewrite.
12274 * dispextern.h (set_tty_color_mode): New type.
12275 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12276
12277 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12278
12279 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12280 for generic chars, which do not exist any more in emacs-unicode.
12281
12282 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
12283
12284 * coding.c (detect_coding_emacs_mule)
12285 (Ffind_operation_coding_system): Fix typo.
12286
12287 2008-04-08 Jason Rumney <jasonr@gnu.org>
12288
12289 * w32uniscribe.c (SNAME): Extract only symbol name.
12290
12291 * w32font.h (struct w32_metric_cache): New struct.
12292 (w32font_info): Use it.
12293 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12294 (CACHE_BLOCKSIZE): New constants.
12295
12296 * w32font.c (Qja, Qko, Qzh): New symbols.
12297 (syms_of_w32font): Initialise them.
12298 (font_matches_spec): Use them to filter by language.
12299 (recompute_cached_metrics): Remove function.
12300 (compute_metrics, clear_cached_metrics): New functions.
12301 (w32font_encode_char): Use them to manage metric cache.
12302 (w32font_text_extents): Cache metrics for all glyphs on demand.
12303 Delay converting glyph indices to WORD until needed.
12304 (w32font_open_internal): Initialize metric cache to empty.
12305 (registry_to_w32_charset): Charset should always be a symbol.
12306 (fill_in_logfont, list_all_matching_fonts): Family should
12307 always be a symbol.
12308
12309 2008-04-06 Jason Rumney <jasonr@gnu.org>
12310
12311 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12312 Give up if glyph indices not supported. Use uniscribe obtained
12313 ABC widths for individual metrics. Map glyph clusters back to
12314 characters using fClusterStart flag. Return number of glyphs
12315 produced, not chars processed.
12316 (uniscribe_shape): Map char at FROM to current glyph.
12317
12318 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12319
12320 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12321 Use SetMenuItemHierarchicalMenu.
12322
12323 2008-04-05 Jason Rumney <jasonr@gnu.org>
12324
12325 * image.c (pbm_load): Allow color values up to 65535.
12326 Throw an error if max_color_idx is outside the supported range.
12327 Report an error when image size is invalid.
12328 Read two bytes at a time when raw images have max_color_idx above 255.
12329
12330 2008-04-05 Eli Zaretskii <eliz@gnu.org>
12331
12332 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12333 cFileName a file name that includes `?' characters, use the 8+3
12334 alias in cAlternateFileName instead.
12335
12336 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12337
12338 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12339 append "CCL: Quitted" when the CCL program is quitted.
12340 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12341
12342 * ccl.h (struct ccl_program): New member quit_silently.
12343
12344 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
12345
12346 * search.c (compile_pattern_1): Treat non-nil and non-string of
12347 search-spaces-regexp as nil.
12348
12349 * minibuf.c (Fassoc_string): Tweak docstring.
12350
12351 2008-04-05 Eli Zaretskii <eliz@gnu.org>
12352
12353 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12354 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12355 2008-03-14 to force inode be positive.
12356
12357 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12358 _S_* ones, since we now use our own sys/stat.h.
12359 (stat, fstat): Don't mangle the inode number.
12360 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12361
12362 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12363
12364 * frame.h (struct frame): Give one more bit to `visible' since we use
12365 values larger than 1 to indicate obscured frames on ttys.
12366
12367 * keymap.c (Qkeymap_canonicalize): New var.
12368 (Fmap_keymap_internal): New fun.
12369 (describe_map): Use keymap-canonicalize.
12370
12371 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12372 (Fundo_boundary): Set them.
12373 (syms_of_undo): Initialize them.
12374 (record_point): Use them instead of last_point_position*.
12375 (last_undo_buffer): Change type.
12376
12377 2008-04-04 Jason Rumney <jasonr@gnu.org>
12378
12379 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12380 (recompute_cached_metrics): Don't set ascent and descent per char.
12381
12382 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12383 (uniscribe_check_otf): Add GC protection before consing.
12384 Rearrange loop for counting features.
12385
12386 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12387
12388 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12389 buffer with byte-size of source buffer.
12390
12391 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
12392
12393 * callint.c (Fcall_interactively): Handle temporary region even
12394 when shift-select-mode is off.
12395
12396 2008-04-03 Jason Rumney <jasonr@gnu.org>
12397
12398 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12399
12400 2008-04-03 Kenichi Handa <handa@m17n.org>
12401
12402 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12403 (CATEGORY_MASK_UTF_16): Likewise.
12404 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12405 binary file.
12406 (detect_coding): Add null-byte detection for a binary file.
12407 (detect_coding_system): Likewise.
12408
12409 2008-04-03 Jason Rumney <jasonr@gnu.org>
12410
12411 * w32uniscribe.c: New file.
12412
12413 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12414
12415 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12416
12417 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12418 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12419 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12420 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12421 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12422 (Qphonetic): New symbols.
12423 (syms_of_w32font): Initialize them.
12424 (font_supported_scripts): Use them.
12425 (w32font_list_family): List all charsets.
12426 (w32font_text_extents, recompute_cached_metrics): Fix metric
12427 calculations.
12428 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12429 Give opentype fonts their own format.
12430 (font_matches_spec): New arguments backend and logfont.
12431 Handle :otf spec for uniscribe backend.
12432 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12433 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12434
12435 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12436 font backend.
12437 (globals_of_w32fns): Initialize uniscribe font backend.
12438
12439 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12440 dependencies.
12441 (w32uniscribe.$(O)): New file to build.
12442 (FONT_OBJ): Include w32uniscribe.$(O).
12443 (LIBS): Add uniscribe libraries.
12444
12445 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12446
12447 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
12448
12449 * callint.c (Vshift_select_mode): New var.
12450 (Finteractive): Document new ^ spec.
12451 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12452 is present.
12453
12454 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12455 (command_loop_1): Avoid running the direct display versions of
12456 forward-char and backward-char if shift-selection may occur.
12457 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12458 shift-translation takes place.
12459
12460 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12461 avoid clobbering by define-minor-mode.
12462
12463 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12464 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12465
12466 * syntax.c (Fforward_word): Add ^ interactive spec.
12467
12468 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12469 (Fscroll_right): Add ^ interactive spec.
12470
12471 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12472
12473 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12474
12475 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12476
12477 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12478
12479 2008-03-31 Juri Linkov <juri@jurta.org>
12480
12481 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12482
12483 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12484
12485 * gtkutil.c (xg_set_geometry): Fix indentation.
12486 (xg_resize_outer_widget): Remove.
12487 (x_wm_size_hint_off): Fix indentation.
12488 (xg_frame_set_char_size): Call flush_and_sync after
12489 gtk_window_resize.
12490 (x_wm_set_size_hint): Pass NULL as geometry window to
12491 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12492 Add menu bar and tool bar height to base height.
12493 (xg_update_frame_menubar, free_frame_menubar)
12494 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12495 (update_frame_tool_bar, free_frame_tool_bar):
12496 Change xg_resize_outer_widget to xg_frame_set_char_size.
12497
12498 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
12499
12500 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12501 (Fdbus_call_method): New parameter TIMEOUT.
12502 (dbus-send-signal): Optimize UNGCPRO call.
12503
12504 2008-03-29 Juri Linkov <juri@jurta.org>
12505
12506 * window.c (Fdisplay_buffer): Move call to
12507 Vsplit_window_preferred_function out of conditions that check
12508 if window is eligible for vertical splitting.
12509 When Vsplit_window_preferred_function is non-nil, call it and use
12510 its non-nil return value as window. Otherwise, continue doing
12511 vertical splitting using Fsplit_window with arg horflag=nil.
12512 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12513 default value from `split-window' to nil.
12514
12515 2008-03-29 Juri Linkov <juri@jurta.org>
12516
12517 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12518 for interactive code letters 'b' and 'B'.
12519
12520 2008-03-29 Eli Zaretskii <eliz@gnu.org>
12521
12522 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12523 multibyte string.
12524
12525 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12526
12527 * keyboard.c (pending_funcalls): New var.
12528 (timer_check): Run it.
12529 (syms_of_keyboard): Initialize it.
12530 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12531 (Vdelete_terminal_functions): New vars.
12532 (syms_of_terminal): Initialize them.
12533 (Fdelete_terminal): Run delete-terminal-functions.
12534 * xdisp.c (safe_eval): Rewrite.
12535 (safe_call2): New fun.
12536 * frame.c (Qdelete_frame_functions): New var.
12537 (syms_of_frame): Initialize it.
12538 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12539 * lisp.h (safe_call2, pending_funcalls): Declare.
12540
12541 2008-03-28 Andreas Schwab <schwab@suse.de>
12542
12543 * indent.c (Fmove_to_column): Move declaration before statements.
12544
12545 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12546
12547 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12548 (struct frame): Use bit fields for boolean vars.
12549
12550 * process.c (server_accept_connection): Simplify naming.
12551 (emacs_get_tty_pgrp): Use SDATA.
12552
12553 * coding.c (decode_coding_object): Fix last change.
12554
12555 2008-03-27 Jason Rumney <jasonr@gnu.org>
12556
12557 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12558
12559 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12560
12561 * charset.c (Fdefine_charset_internal): Change the way of
12562 registering charsets in Vcharset_order_list.
12563 (syms_of_charset): Make the charset `eight-bit' supplementary.
12564
12565 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12566
12567 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12568 operations, to avoid having the difference between pointers
12569 overflow.
12570
12571 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12572
12573 * indent.c (check_display_width): New fun.
12574 (scan_for_column): Use it.
12575
12576 * data.c (syms_of_data): Mark most-positive-fixnum and
12577 most-negative-fixnum as constants.
12578
12579 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12580
12581 * indent.c (scan_for_column): Extract from current_column_1.
12582 Merge with the same code from Fmove_to_column.
12583 (current_column_1, Fmove_to_column): Use it.
12584
12585 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12586
12587 * keymap.c (map_keymap_internal): New fun.
12588 (map_keymap): Use it.
12589 (Fmap_keymap_internal): New fun.
12590 (Fmap_keymap): Remove left-out test from before make_save_value.
12591
12592 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12593
12594 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12595 Use XCAR/XCDR.
12596
12597 * process.h (struct Lisp_Process): Remove filter_multibyte.
12598 * process.c (QCfilter_multibyte): Remove.
12599 (setup_process_coding_systems): Don't use filter_multibyte.
12600 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12601 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12602 (Fset_process_filter_multibyte): Change the coding-system to
12603 approximate the previous behavior.
12604 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12605 coding-system.
12606
12607 * coding.c (decode_coding_object): When not decoding into a buffer,
12608 obey the coding system's preference of (uni|multi)byte.
12609
12610 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12611
12612 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12613 every char is changed and has a different byte-length.
12614 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12615 Fix int -> EMACS_INT.
12616
12617 2008-03-23 David Hansen <david.hansen@gmx.net>
12618
12619 * dbusbind.c (xd_read_message): Remove extra copying of message
12620 strings. Check for NULL `interface' or `member'.
12621
12622 2008-03-22 Eli Zaretskii <eliz@gnu.org>
12623
12624 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12625 cFileName a file name that includes `?' characters, use the 8+3
12626 alias in cAlternateFileName instead.
12627
12628 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12629
12630 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12631
12632 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12633
12634 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12635 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12636 work on current_buffer only instead (that was already the case
12637 for some of the code anyway).
12638 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12639 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12640 (SET_PT, SET_PT_BOTH): Adjust.
12641 * intervals.h (set_point, temp_set_point, set_point_both)
12642 (temp_set_point_both): Remove redundant declarations.
12643
12644 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12645
12646 * fileio.c (Finsert_file_contents):
12647 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12648 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12649 when buffer != current_buffer anyway.
12650
12651 2008-03-20 Andreas Schwab <schwab@suse.de>
12652
12653 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12654 as default.
12655
12656 2008-03-19 Jason Rumney <jasonr@gnu.org>
12657
12658 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12659 (syms_of_w32fns): Initialize them.
12660 (HOURGLASS_ID): New constant.
12661 (x_window_to_frame): Don't check hourglass_window.
12662 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12663 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12664 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12665 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12666 Only change the cursor if hourglass is not active.
12667 (Fx_create_frame): Initialize frame's current_cursor.
12668 (hourglass_atimer): Remove.
12669 (hourglass_started): New function.
12670 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12671 (show_hourglass): Adapt to w32, changing argument to frame.
12672
12673 * w32term.h (struct w32_output): Remove hourglass_window.
12674 Add current_cursor.
12675
12676 * eval.c (call_debugger, Fsignal):
12677 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12678 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12679 (Fexecute_extended_command, cancel_hourglass_unwind):
12680 * minibuf.c (read_minibuf):
12681 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12682
12683 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12684
12685 * window.c (run_funs): New fun.
12686 (run_window_configuration_change_hook): Use it to run the buffer-local
12687 and the global part of the hook.
12688
12689 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12690 (unwind_format_mode_line): Restore selected window.
12691 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12692
12693 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12694
12695 * editfns.c (Fchar_equal): Check they are valid characters.
12696
12697 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12698
12699 2008-03-17 Andreas Schwab <schwab@suse.de>
12700
12701 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12702 against a charset.
12703
12704 * lisp.h (Fbuffer_list): Declare.
12705
12706 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
12707
12708 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12709 handlebox_widget is != 0.
12710
12711 2008-03-16 Juri Linkov <juri@jurta.org>
12712
12713 * callint.c (Fcall_interactively): For interactive code letters
12714 'b' and 'B' put the buffer list into the list of default "future"
12715 values of the minibuffer.
12716
12717 2008-03-16 Andreas Schwab <schwab@suse.de>
12718
12719 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12720 modifiers.
12721
12722 * regex.c (re_match_2_internal): Correct matching of a charset
12723 against latin-1 characters.
12724
12725 2008-03-16 Kenichi Handa <handa@m17n.org>
12726
12727 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12728 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12729 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12730 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12731 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12732 CHAR_STRING_ADVANCE.
12733 (produce_chars): Fix for the case that the source and the
12734 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12735 instead of CHAR_STRING_ADVANCE.
12736 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12737 STRING_CHAR_ADVANCE.
12738
12739 2008-03-15 Andreas Schwab <schwab@suse.de>
12740
12741 * regex.c (re_match_2_internal): Correct matching of eight bit
12742 characters in unibyte strings.
12743
12744 2008-03-15 Martin Rudalics <rudalics@gmx.at>
12745
12746 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12747 at end of range when it coincides with the end of the buffer.
12748
12749 2008-03-14 Eli Zaretskii <eliz@gnu.org>
12750
12751 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12752
12753 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12754
12755 2008-03-14 Jason Rumney <jasonr@gnu.org>
12756
12757 * editfns.c (initial_tz): New variable.
12758 (syms_of_editfns): Initialize it.
12759 (Fset_time_zone_rule): Set it when first called.
12760 Use it when TZSTRING is nil.
12761
12762 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12763 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12764 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12765 (globals_of_w32fns): Initialize them.
12766 (compute_tip_xy): Use them to position tooltips.
12767
12768 2008-03-14 Glenn Morris <rgm@gnu.org>
12769
12770 * emacs.c (main): Revert previous change.
12771 (standard_args): Revert -internal-script back to -scriptload,
12772 and remove the long-option form.
12773
12774 2008-03-13 Glenn Morris <rgm@gnu.org>
12775
12776 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12777 Remove option -enable-font-backend.
12778
12779 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12780
12781 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12782
12783 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12784
12785 * xterm.c (x_connection_closed): For GTK: If this is the last
12786 terminal just exit without closing the display.
12787
12788 2008-03-11 Jason Rumney <jasonr@gnu.org>
12789
12790 * w32font.c (w32font_full_name): Use floor to round.
12791
12792 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
12793
12794 * sound.c (alsa_configure): Declare vol at beginning of block.
12795
12796 * fontset.c (Ffontset_info): Remove extra semicolon.
12797
12798 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12799
12800 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12801 size of resulting string.
12802
12803 2008-03-10 Jason Rumney <jasonr@gnu.org>
12804
12805 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12806
12807 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12808
12809 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12810 Don't pretend as if characters with display property haven't been
12811 consumed for string-replacing-string case.
12812
12813 2008-03-08 Kim F. Storm <storm@cua.dk>
12814
12815 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12816 (get_next_display_element, next_element_from_string)
12817 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12818
12819 2008-03-08 Andreas Schwab <schwab@suse.de>
12820
12821 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12822
12823 2008-03-06 Jason Rumney <jasonr@gnu.org>
12824
12825 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12826 when charset not specified. Only translate ANSI to unicode when
12827 font_type is truetype.
12828 (w32font_coverage_ok): New function.
12829 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12830
12831 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12832
12833 * lread.c (Fread_char): Resolve modifiers.
12834 (Fread_char_exclusive): Likewise.
12835
12836 * character.c (char_resolve_modifier_mask): New function.
12837 (char_string): Use char_resolve_modifier_mask.
12838 (Fchar_resolve_modifiers): New function.
12839 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12840 function.
12841
12842 2008-03-04 Jason Rumney <jasonr@gnu.org>
12843
12844 * makefile.w32-in: Always include w32font.c in the build.
12845 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12846
12847 2008-03-04 Andreas Schwab <schwab@suse.de>
12848
12849 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12850 (versionclean): Likewise.
12851
12852 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
12853
12854 * .cvsignore: Add oo.
12855
12856 2008-03-03 Andreas Schwab <schwab@suse.de>
12857
12858 * coding.c (decode_coding_object): Inhibit gap shrinking while
12859 decoding in place.
12860
12861 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12862
12863 * w32term.c: Remove unused include "gnu.h".
12864 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12865
12866 * gnu.h: Rename to ...
12867 * emacs-icon.h: ... this.
12868 * xterm.c: Use emacs-icon.h instead of gnu.h.
12869 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12870
12871 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
12872
12873 * w32font.c: Include math.h.
12874
12875 2008-03-03 Jason Rumney <jasonr@gnu.org>
12876
12877 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12878 Compute options separately.
12879 (w32font_open_internal): Set glyph_idx before caching metrics.
12880
12881 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12882 Define if system headers don't.
12883 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12884 (w32font_encode_char): Don't declare here.
12885
12886 * w32font.c (Quniscribe, QCformat): New symbols.
12887 (syms_of_w32font): Define them.
12888 (w32font_has_char): Indicate uncertainty.
12889 (w32font_encode_char): Encode as glyph point. Make static.
12890 (recompute_cached_metrics): New function.
12891 (w32font_open_internal): Use it. Set font to use glyph points
12892 initially. Set format based on type of font.
12893 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12894 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12895 on it. Set format based on information available here.
12896 (add_font_entity_to_list): Identify backend based on opentype_only.
12897
12898 2008-03-02 Andreas Schwab <schwab@suse.de>
12899
12900 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12901
12902 * coding.c (decode_coding_big5, produce_chars):
12903 Fix typos in last change.
12904
12905 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12906
12907 * gnu.h: New icon.
12908
12909 2008-03-02 Kenichi Handa <handa@m17n.org>
12910
12911 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12912 `dos', don't decode '\r' if that is the last in the source.
12913 (decode_coding_utf_16, decode_coding_emacs_mule)
12914 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12915 (decode_coding_raw_text, decode_coding_charset): Likewise.
12916 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12917
12918 2008-03-01 Jason Rumney <jasonr@gnu.org>
12919
12920 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12921
12922 2008-03-01 Kim F. Storm <storm@cua.dk>
12923
12924 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12925
12926 2008-03-01 Jason Rumney <jasonr@gnu.org>
12927
12928 * w32font.c (w32font_full_name): New function.
12929 (w32font_open_internal): Use it.
12930
12931 2008-03-01 Kim F. Storm <storm@cua.dk>
12932
12933 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12934
12935 2008-03-01 Jason Rumney <jasonr@gnu.org>
12936
12937 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12938
12939 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12940
12941 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12942 xg_frame_resized when the event is for the edit widget.
12943
12944 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12945
12946 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12947 set_char_size.
12948 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12949 operations on widgets here. Just set frame size if needed.
12950 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12951 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12952 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12953 the whole frame.
12954 (xg_create_tool_bar): Move attachment of the tool bar to
12955 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12956 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12957
12958 2008-03-01 Jason Rumney <jasonr@gnu.org>
12959
12960 * w32fns.c (w32_msg_pump): Disable debug code.
12961
12962 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12963
12964 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12965
12966 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
12967
12968 * xdisp.c (next_overlay_string): Don't set
12969 overlay_strings_at_end_processed_p if we're currently reading from
12970 a display string.
12971
12972 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12973
12974 * xdisp.c (get_overlay_strings_1): Fix typo.
12975
12976 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
12977
12978 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12979
12980 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12981
12982 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12983
12984 * xdisp.c (display_mode_element): Cancel the previous change.
12985 (decode_mode_spec): Likewise.
12986 (handle_auto_composed_prop): Don't make composition if it->string
12987 is a string.
12988
12989 2008-02-27 Kim F. Storm <storm@cua.dk>
12990
12991 * lisp.h (GLYPH): Change type from int to struct with separate char
12992 and face_id members.
12993 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12994 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12995 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12996 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12997 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12998 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12999 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
13000 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
13001 handle new Lisp glyph code encoding, either an integer or a cons.
13002
13003 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
13004 (GLYPH_ALIAS): Delete.
13005 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
13006 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
13007 (GLYPH_FROM_CHAR): Replace macro by ...
13008 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
13009
13010 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
13011 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
13012 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
13013 (GLYPH_INVALID_P): New macro.
13014 (spec_glyph_lookup_face): Update prototype.
13015
13016 * dispnew.c (line_draw_cost): Adapt to new glyph type.
13017 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
13018 new glyph code encoding.
13019 (spec_glyph_lookup_face): No return value; update passed glyph instead.
13020 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
13021
13022 * xdisp.c (get_next_display_element, next_element_from_display_vector):
13023 Adapt to new glyph type and new glyph code encoding.
13024
13025 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
13026
13027 * indent.c (current_column, current_column_1, Fmove_to_column)
13028 (compute_motion): Adapt to new glyph code encoding.
13029
13030 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
13031
13032 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
13033
13034 * process.c (wait_reading_process_output): Check for window
13035 changes caused by timers.
13036 Suggested by Johan Bockgård.
13037
13038 2008-02-27 Glenn Morris <rgm@gnu.org>
13039
13040 * emacs.c (USAGE1): Add `--disable-font-backend'.
13041
13042 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
13043
13044 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
13045 is made to the buffer.
13046
13047 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
13048
13049 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
13050 (face_at_string_position):
13051 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
13052 (face_at_string_position):
13053 * xdisp.c (display_string, next_overlay_change):
13054 * buffer.h (overlays_at):
13055 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
13056 Update callers.
13057
13058 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
13059
13060 * editfns.c (Fformat): Doc fix.
13061
13062 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
13063
13064 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
13065 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
13066 (Ffont_otf_alternates, Fquery_font): Doc fixes.
13067
13068 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13069
13070 * buffer.c (Fbuffer_swap_text): New function.
13071 (syms_of_buffer): Defsubr it.
13072
13073 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
13074
13075 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
13076
13077 2008-02-25 Jason Rumney <jasonr@gnu.org>
13078
13079 * w32font.c (w32font_draw): Draw one character at a time when padding.
13080
13081 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13082
13083 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
13084 Handle a nil arg. Use run_window_configuration_change_hook.
13085 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
13086 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
13087 Use run_window_configuration_change_hook.
13088
13089 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13090
13091 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
13092 1-pixel width.
13093
13094 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13095
13096 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13097 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13098 if the glyph in the font is zero pixel with.
13099
13100 * dispextern.h (struct glyph_string): New member padding_p.
13101
13102 * w32font.c (w32font_draw): Pay attention to s->padding_p.
13103
13104 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13105
13106 * xfont.c (xfont_draw): Pay attention to s->padding_p.
13107
13108 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13109
13110 * font.c: If the font driver doesn't have `shape' function, return Qnil.
13111
13112 2008-02-25 Jason Rumney <jasonr@gnu.org>
13113
13114 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13115
13116 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
13117
13118 Allow fine-grained image-cache flushing.
13119 * dispextern.h (struct image): Add `dependencies' field.
13120 (clear_image_caches): Change arg to Lisp_Object.
13121 * image.c (make_image): Initialize `dependencies' field.
13122 (clear_image_cache): Change arg to allow fine-grained flushing.
13123 Perform the flush even if image-cache-eviction-delay is nil.
13124 (clear_image_caches): Change arg to Lisp_Object.
13125 (Fclear_image_cache): Expand meaning of the argument.
13126 (mark_image): Mark `dependencies' field.
13127 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13128 (lface_hash): Use XHASH rather than XFASTINT.
13129 (face_at_buffer_position): Fix int -> EMACS_INT position.
13130 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13131 (select_frame_for_redisplay): Remove code duplication.
13132 (redisplay_internal): Adapt arg to call to clear_image_caches.
13133
13134 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
13135
13136 * s/vms4-0.h:
13137 * s/vms4-2.h:
13138 * s/vms4-4.h:
13139 * s/vms5-5.h: Remove, unused.
13140
13141 * s/irix5-2.h:
13142 * s/irix6-0.h:
13143 * s/riscos5.h:
13144 * s/mach-bsd4-3.h:
13145 * m/mips4.h: Remove files for obsolete systems.
13146
13147 * Makefile.in:
13148 * filelock.c:
13149 * unexmips.c:
13150 * m/hp9000s300.h:
13151 * m/iris4d.h:
13152 * s/aix3-1.h:
13153 * s/hpux.h:
13154 * s/msdos.h:
13155 * s/usg5-0.h:
13156 * s/usg5-2-2.h:
13157 * s/usg5-2.h:
13158 * s/usg5-3.h: Remove references to obsolete variables.
13159
13160 * s/irix5-0.h: Remove, move all the contents ...
13161 * s/irix6-5.h: ... here. Simplify.
13162 * config.in: Regenerate.
13163
13164 2008-02-24 Jason Rumney <jasonr@gnu.org>
13165
13166 * w32term.c (x_draw_glyph_string_background): Clear the background
13167 manually when cleartype is in use.
13168 (x_draw_glyph_string_foreground): Draw text transparently when
13169 cleartype is in use.
13170
13171 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13172 a font into it unless we have to.
13173
13174 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13175
13176 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13177 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
13178
13179 2008-02-18 Jason Rumney <jasonr@gnu.org>
13180
13181 * w32fns.c (Fw32_shell_execute): Encode parameters.
13182
13183 2008-02-09 Eli Zaretskii <eliz@gnu.org>
13184
13185 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13186
13187 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
13188
13189 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13190
13191 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13192
13193 * xterm.c (x_set_offset): Don't change the gravity if
13194 CHANGE_GRAVITY is -1.
13195
13196 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
13197
13198 * fileio.c (auto_save_error_occurred): New var.
13199 (auto_save_error): Set it.
13200 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13201 error occurred.
13202
13203 2008-02-23 Eli Zaretskii <eliz@gnu.org>
13204
13205 * w32.c (globals_of_w32): Add initializations for
13206 g_b_init_get_sid_sub_authority and
13207 g_b_init_get_sid_sub_authority_count.
13208
13209 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13210
13211 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13212 (font_parse_xlfd): Use them for sanity check.
13213 (Finternal_set_font_style_table): Make sure the table is bijective.
13214
13215 Consolidate the image_cache to the terminal struct.
13216 * termhooks.h (P_): Remove redundant def.
13217 (struct terminal): New field `image_cache'.
13218 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13219 of FRAME_X_IMAGE_CACHE.
13220 * xterm.h (struct x_display_info): Remove image_cache field.
13221 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13222 * w32term.h (struct w32_display_info): Remove image_cache field.
13223 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13224 * macterm.h (struct mac_display_info): Remove image_cache field.
13225 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13226 * xterm.c (x_term_init):
13227 * w32term.c (w32_term_init):
13228 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13229 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13230 Remove declarations.
13231 (clear_image_caches, mark_image_cache): New declarations.
13232 * xfaces.c (clear_face_cache):
13233 * xdisp.c (redisplay_internal): Use clear_image_caches.
13234 * image.c (clear_image_cache): Don't check that a frame is on
13235 a window-system before checking if it shares the same cache.
13236 (clear_image_caches): New function.
13237 (Fclear_image_cache): Use it.
13238 (mark_image): Move from allo.c.
13239 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13240 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13241 (mark_object): Don't call mark_image_cache for frames.
13242 (mark_terminals): Call mark_image_cache.
13243
13244 * lisp.h (Fdelete_terminal): Declare.
13245
13246 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13247 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13248 wrong_type_argument.
13249
13250 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13251
13252 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13253 malayalam.el, and tamil.el. Add sinhala.el.
13254
13255 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13256
13257 * xterm.c (x_connection_closed): Consolidate identical tests.
13258 (x_delete_terminal): Don't crash if called via x_connection_closed.
13259
13260 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13261
13262 * xdisp.c (decode_mode_spec): New arg string.
13263 (display_mode_element): Adjust for the above change.
13264
13265 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13266
13267 * callint.c (Fcall_interactively): Use AREF.
13268
13269 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13270
13271 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13272
13273 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13274
13275 * xfns.c (Fx_show_tip): Set string to " " if empty.
13276
13277 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13278
13279 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13280 with Qt.
13281
13282 2008-02-17 Kenichi Handa <handa@m17n.org>
13283
13284 * ftfont.c (ftfont_shape): Return Lispy number.
13285
13286 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13287 for GCs.
13288 (Finternal_set_font_selection_order): Call font_update_sort_order
13289 only when enable_font_backend is set.
13290 (realize_x_face): Set face->font_info to that of default face only
13291 when enable_font_backend is set.
13292
13293 * xdisp.c (handle_composition_prop): Set it->c to the fist
13294 character of the composed region.
13295 (fill_composite_glyph_string): Set base_face->font_info to
13296 s->font_info. Get a face for ascii from base_face->ascii_face.
13297 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13298 with a face already decided.
13299 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13300 non-negative.
13301 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13302 call font_prepare_composition unconditionally.
13303
13304 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13305
13306 * xterm.h (struct x_display_info): New member font.
13307
13308 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13309 (x_set_mouse_face_gc, x_new_font): Likewise.
13310 (x_term_init): Setup display_info->font.
13311 (x_delete_terminal): Free display_info->font.
13312
13313 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13314
13315 * ftxfont.c (ftxfont_default_fid): Delete it.
13316 (ftxfont_open): Set xfont->fid to 0.
13317 (ftxfont_end_for_frame): Clear data specific to the frame and the
13318 font-driver.
13319
13320 * xftfont.c (xftfont_default_fid): Delete it.
13321 (xftfont_open): Set xfont->fid to 0.
13322
13323 * fontset.c (FONTSET_OBJLIST): New macro.
13324 (fontset_find_font): Update font-object list of the fontset.
13325 (free_realized_fontset): New function.
13326 (free_face_fontset): Call free_realized_fontset.
13327 (Ffont_info): Call font_close_object only when enable_font_backend
13328 is set.
13329
13330 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13331 [HAVE_NTGUI]: Include w32term.h.
13332 [MAC_OS]: Include macterm.ch.
13333 (font_otf_ValueRecord): Use make_number.
13334 (font_finish_cache): Fix handling of reference count.
13335 (font_clear_cache): Update num_fonts.
13336 (font_open_entity): Update smallest_char_width and
13337 smallest_font_height of the frame.
13338 (font_close_object): Update num_fonts.
13339 (Fclear_font_cache): Fix finding the target cache data.
13340
13341 2008-02-16 Glenn Morris <rgm@gnu.org>
13342
13343 * fontset.c (Finternal_char_font): Fix compilation warning.
13344
13345 2008-02-16 Eli Zaretskii <eliz@gnu.org>
13346
13347 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13348 instead of char arrays. Enlarge the size of array passed to
13349 get_token_information.
13350
13351 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13352 warnings.
13353
13354 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13355
13356 * .gdbinit: Don't set `args', it breaks gdb --args.
13357
13358 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13359
13360 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13361 within a narrowed buffer.
13362
13363 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13364
13365 * coding.c (decode_coding_object, encode_coding_object):
13366 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13367
13368 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13369
13370 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13371 hardcoding 1.
13372 (detect_coding_system):
13373 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13374 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13375 * insdel.c (insert_from_gap):
13376 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13377 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13378 (string_to_multibyte):
13379 * character.c (chars_in_text, multibyte_chars_in_text):
13380 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13381
13382 * character.h (FETCH_STRING_CHAR_ADVANCE)
13383 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13384 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13385 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13386
13387 * casefiddle.c (casify_region): Only call after-change and composition
13388 functions on the part of the region that was changed.
13389
13390 * keyboard.c (read_avail_input):
13391 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13392
13393 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13394
13395 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13396 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13397
13398 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
13399
13400 * w32menu.c (push_submenu_start, push_submenu_end)
13401 (push_left_right_boundary, push_menu_pane, push_menu_item):
13402 * keyboard.c (read_key_sequence): Don't pass args with side effects
13403 to AREF, it fails when compiling with -DENABLE_CHECKING.
13404
13405 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13406
13407 * Makefile.in (${lispsource}international/charprop.el):
13408 Delete this target.
13409
13410 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13411 emacs-unicode-2.
13412
13413 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13414
13415 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13416
13417 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13418
13419 * frame.c (Qnoelisp): New symbol.
13420 (syms_of_frame): Initialize it.
13421 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13422 harmless Elisp code, from a strong `force' from x_connection_closed.
13423 * frame.h (Qnoelisp): Declare.
13424 * xterm.c (x_connection_closed): Pass `noelisp'.
13425
13426 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13427 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13428 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13429 rather than `int' for the type of `type'.
13430
13431 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13432
13433 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13434
13435 * Makefile.in (GNUC): Remove support for gcc-1.x.
13436
13437 2008-02-10 Richard Stallman <rms@gnu.org>
13438
13439 * lisp.h (ASET): Use AREF, not ASLOT.
13440
13441 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13442
13443 * lisp.h (ASET): Check bounds.
13444
13445 2008-02-10 Glenn Morris <rgm@gnu.org>
13446
13447 * buffer.c (mode-name): Doc fix.
13448
13449 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13450
13451 * Makefile.in:
13452 * emacs.c:
13453 * gmalloc.c:
13454 * keyboard.c:
13455 * lisp.h:
13456 * m/ibm370aix.h:
13457 * process.c:
13458 * regex.c:
13459 * s/hpux.h:
13460 * sysdep.c:
13461 * sysselect.h:
13462 * systty.h:
13463 * unexec.c:
13464 * w32term.c:
13465 * xsmfns.c:
13466 * xterm.c: Remove code that deals with obsolete variables.
13467
13468 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13469
13470 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13471 nothing else needs it anymore.
13472
13473 2008-02-09 Eli Zaretskii <eliz@gnu.org>
13474
13475 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13476 instead of unibyte_char_to_multibyte.
13477
13478 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13479
13480 * s/gnu-linux.h: Remove commented out code.
13481
13482 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13483
13484 * Makefile.in: Update what RMS says about using autoconf.
13485 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13486 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13487 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13488 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13489
13490 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13491
13492 * keymap.c (Fkey_description): Move side effect outside of macro call.
13493
13494 * xfaces.c (Finternal_make_lisp_face):
13495 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13496
13497 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13498 (syms_of_fontset): Use ASET.
13499
13500 * fns.c (concat): Move side effect outside of macro call.
13501 (hash_clear): Use ASET.
13502
13503 2008-02-08 Richard Stallman <rms@gnu.org>
13504
13505 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13506 If FORCE, and frame has a surrogate minibuffer for another frame,
13507 delete the other frame first.
13508
13509 2008-02-07 Timo Savola <timo.savola@iki.fi>
13510
13511 * xterm.c (x_detect_focus_change): Handle embed client message.
13512 (handle_one_xevent): Ditto.
13513 (handle_one_xevent): If embedded and we get a button press/release,
13514 request focus.
13515 (xembed_set_info, xembed_send_message): New functions.
13516 (x_make_frame_visible): Call xembed_set_info if embedded.
13517 (x_make_frame_invisible): Call xembed_set_info if embedded.
13518 (x_term_init): Initialize Xatom_XEMBED.
13519 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13520 (x_iconify_frame): Ditto.
13521
13522 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13523 (enum xembed_info, enum xembed_message, enum xembed_focus)
13524 (enum xembed_modifier, enum xembed_accelerator): New.
13525 (xembed_set_info, xembed_send_message): Declare.
13526 (FRAME_X_EMBEDDED_P): New.
13527
13528 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13529 gtk_plug_new.
13530
13531 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13532 window ID of a frame.
13533 (x_window): Reparent frame if embedded.
13534 (Fx_create_frame): Don't set border width if embedded.
13535
13536 * emacs.c (USAGE3): Add --parent-id.
13537 (standard_args): Ditto.
13538
13539 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13540
13541 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13542
13543 2008-02-07 Jim Meyering <meyering@redhat.com>
13544
13545 Use "do...while (0)", not "if (1)...else" in macro definitions.
13546 The latter provokes a warning from gcc about the empty else, when
13547 followed by ";". Also, without that trailing semicolon, it would
13548 silently swallow up any following statement.
13549 * syntax.h (SETUP_SYNTAX_TABLE)
13550 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13551 * buffer.h (DECODE_POSITION): Likewise.
13552 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13553 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13554 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13555 (FETCH_CHAR_ADVANCE): Likewise.
13556 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13557
13558 2008-02-07 Jim Meyering <meyering@redhat.com>
13559
13560 * lread.c [lint]: Don't include <sys/inode.h>.
13561
13562 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13563
13564 * xselect.c (x_handle_dnd_message):
13565 * xmenu.c (digest_single_submenu, xmenu_show):
13566 * xdisp.c (with_echo_area_buffer_unwind_data)
13567 (format_mode_line_unwind_data, unwind_format_mode_line)
13568 (display_menu_bar):
13569 * eval.c (Ffetch_bytecode):
13570 * doc.c (store_function_docstring):
13571 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13572 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13573 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13574
13575 2008-02-07 Kenichi Handa <handa@m17n.org>
13576
13577 * ftxfont.c (ftxfont_open): Don't set
13578 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13579
13580 * ftfont.c (ftfont_open): Fix previous change.
13581
13582 2008-02-06 Jason Rumney <jasonr@gnu.org>
13583
13584 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13585 Use cached metrics for ASCII characters.
13586 (w32font_open_internal): Don't set font's owning_frame.
13587 Cache metrics for ASCII characters.
13588
13589 * w32font.h (struct w32font_info): Add ascii_metrics.
13590 Remove owning_frame.
13591
13592 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13593
13594 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13595 to negative value.
13596
13597 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13598
13599 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13600
13601 * charset.c (syms_of_charset): Set QCtest and Qeq.
13602
13603 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13604
13605 * process.c (Fstart_process):
13606 * callproc.c (Fcall_process): Handle the case where
13607 Funhandled_file_name_directory returns nil.
13608
13609 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13610 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13611 * font.c (check_gstring): Use them and AREF to access the vector before
13612 we know it's really a gstring.
13613 (Ffont_shape_text): Fix typo.
13614 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
13615
13616 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13617 Declare.
13618
13619 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13620
13621 2008-02-05 Jason Rumney <jasonr@gnu.org>
13622
13623 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13624 Set smallest_font_height and smallest_char_width in display info.
13625
13626 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13627
13628 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13629
13630 2008-02-05 Miles Bader <miles@gnu.org>
13631
13632 * xfaces.c (get_lface_attributes, merge_named_face)
13633 (lookup_named_face, lookup_derived_face, realize_named_face):
13634 Revert 2008-02-01 change by cyd@stupidchicken.com.
13635
13636 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13637
13638 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13639 fallback fonts.
13640 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13641
13642 2008-02-04 Jason Rumney <jasonr@gnu.org>
13643
13644 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13645 set full_name.
13646 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13647
13648 2008-02-03 Jason Rumney <jasonr@gnu.org>
13649
13650 * makefile.w32-in (OBJ1): Include font.o here.
13651 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13652
13653 2008-02-02 Jason Rumney <jasonr@gnu.org>
13654
13655 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13656
13657 2008-02-01 Jason Rumney <jasonr@gnu.org>
13658
13659 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13660
13661 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13662
13663 2008-02-01 Andreas Schwab <schwab@suse.de>
13664
13665 * Makefile.in (shortlisp, lisp): Update for rename of
13666 ../lisp/language/myanmar.el.
13667
13668 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
13669
13670 * xfaces.c (get_lface_attributes): Delete function.
13671 (merge_named_face, lookup_named_face, lookup_derived_face)
13672 (realize_named_face): Call lface_from_face_name directly, and use
13673 the fact that merge_face_vectors does not alter its FROM argument.
13674
13675 2008-02-01 Jason Rumney <jasonr@gnu.org>
13676
13677 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13678 input in the default locale. Handle non-Unicode multibyte input.
13679
13680 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13681
13682 * fontset.c (reorder_font_vector): Exclude nil elements from the
13683 font group. Don't try multiple fonts.
13684 (fontset_font): Adjust for the above change.
13685 (Finternal_char_font): Return nil if the found font doesn't
13686 contain the character ch.
13687
13688 * Makefile.in (lisp, shortlisp): Add cham.el.
13689
13690 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13691
13692 * font.h (FONTP): Make it return 1 also for a font-object.
13693
13694 * .gdbinit (xfontset): New function.
13695
13696 * font.c (font_find_for_lface): Check if the character C is
13697 supported or not only for the first font.
13698
13699 * fontset.c (reorder_font_vector): Fix typo.
13700 (fontset_find_font): Don't add a font-spec specifying a script.
13701 Use 0 (not Qt) for the indication of empty font-group. Change the
13702 format of RFONT-DEF. Return Qt if no font in the font-group
13703 support the character.
13704 (fontset_font): Adjust for the above change. If no font was
13705 found the character, remember that.
13706 (face_for_char): Adjust for the change of RFONT-DEF.
13707 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13708 no font for the target.
13709 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13710
13711 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13712
13713 * font.c (font_load_for_face): Handle the case that the font in
13714 face->lface is a string.
13715
13716 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13717
13718 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13719
13720 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13721
13722 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13723 Fix previous change. If the frame is not on a window system,
13724 signal an error.
13725
13726 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13727
13728 * coding.c (decode_coding_object, encode_coding_object): Adjust
13729 marker positions after conversion.
13730
13731 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13732
13733 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13734
13735 * font.c (font_find_for_lface): Fix the handling of the return
13736 value of font_has_char.
13737 (Ffont_shape_text): Fix previous change.
13738
13739 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13740 (fontset_ref_and_range): Delete it.
13741 (fontset_find_font): Call char_table_ref_and_range instead of
13742 FONTSET_REF_AND_RANGE.
13743 (make_fontset): Don't setup font groups of Latin here.
13744 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13745 (new_fontset_from_font): Make the specified font the default for
13746 all Latin characters.
13747
13748 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13749
13750 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13751 is on a window system before accessing the fontset of the frame.
13752
13753 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13754
13755 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13756
13757 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13758 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13759
13760 * font.c (Ffont_shape_text): If the font driver doesn't have a
13761 shaper function, make zero-width glyphs to have at least one-pixel
13762 width. Fix setting of `to' field of glyphs.
13763
13764 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13765
13766 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13767 glyphs.
13768
13769 * font.h (struct font_driver): Improve docstring of member `shape'.
13770
13771 2008-02-01 Kenichi Handa <handa@m17n.org>
13772
13773 * composite.c (syms_of_composite): Fix docstring of
13774 auto-composition-function.
13775
13776 * font.h (LGLYPH_SIZE): New macro.
13777
13778 * font.c (Ffont_fill_gstring): Stop filling when a character not
13779 supported by the font is found.
13780 (Ffont_shape_text): When a shape callback function returns nil,
13781 try at most two more times with larger gstring.
13782 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13783
13784 * xdisp.c (handle_auto_composed_prop): Change the argument to
13785 auto-composition-function.
13786
13787 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13788 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13789 Lispy glyph and store it in the lgstring.
13790
13791 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13792
13793 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13794
13795 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13796
13797 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13798
13799 * fontset.c (Vfont_encoding_charset_alist): New variable.
13800 (syms_of_fontset): DEFVAR it.
13801 (reorder_font_vector, fontset_find_font): Optimize for the case of
13802 no need of reordering.
13803 (face_for_char): Map the charset property by
13804 Vfont_encoding_charset_alist.
13805
13806 2008-02-01 Jason Rumney <jasonr@gnu.org>
13807
13808 * w32font.c (logfonts_match): Don't check adstyle here.
13809 (font_matches_spec): Check here against physical font instead.
13810 (add_font_entity_to_list): Avoid some substitutions.
13811
13812 * font.c (font_parse_fcname): Default weight and slant to normal.
13813 (font_score): Prefer normal fonts if weight or slant unspecified.
13814 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13815 match freetype scores.
13816
13817 2008-02-01 Jason Rumney <jasonr@gnu.org>
13818
13819 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13820 font, as it may have been deleted.
13821 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13822 most common hyphenless variation.
13823 (logfonts_match): Check generic family.
13824 (font_matches_spec): Don't check generic family here.
13825 (fill_in_logfont): Set generic family based on adstyle.
13826
13827 * w32font.h (w32font_get_cache): Update declaration.
13828
13829 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13830
13831 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13832
13833 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13834 If none of the new drivers are available, call font_update_drivers
13835 with the old drivers.
13836
13837 * w32font.c (w32font_get_cache): Adjust the argument type.
13838
13839 * xfont.c (xfont_get_cache): Adjust the argument type.
13840
13841 * font.h (struct font_driver): Change argument type of get_cache.
13842
13843 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13844
13845 * font.c (Ffont_get): Fix arguments to Fassoc.
13846 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13847 (font_clear_cache): New function.
13848 (font_list_entities, font_matching_entity): Use font_get_cache.
13849 (font_update_drivers): Call font_clear_cache when finishing a driver.
13850
13851 * fontset.c (fontset_find_font): Fix previous change.
13852
13853 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13854
13855 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13856 dpyinfo->font_table.
13857 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13858 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13859
13860 * font.c (font_at): Handle the case that the arg C is negative.
13861 Handle the unibyte case.
13862 (Ffont_at): Call font_at with the arg C -1.
13863
13864 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13865 the position here, and call font_at with the arg C -1.
13866 Don't check the range of the existing composition at the point.
13867
13868 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13869
13870 * fontset.c (fontset_add): New args charset_id and family.
13871 Change caller.
13872 (load_font_get_repertory, fontset_find_font): Assume that
13873 font_spec is always a font-spec object.
13874 (Fset_fontset_font): Always store a font-spec object in a fontset.
13875
13876 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13877 instead of get_property_and_range.
13878
13879 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13880
13881 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13882 (xftfont_open): Don't keep locking face.
13883 (xftfont_close): Don't unlock face.
13884 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13885
13886 * fontset.c (fontset_find_font): Don't prefer a font of
13887 supplementary charset.
13888
13889 2008-02-01 Kenichi Handa <handa@m17n.org>
13890
13891 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13892 script, langsys_tag to langsys, new member script.
13893 (OTF_TAG_STR): Terminate by '\0'.
13894 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
13895 listing to the script specified in that property. Fix arg to
13896 OTF_check_features.
13897
13898 2008-02-01 Jason Rumney <jasonr@gnu.org>
13899
13900 * w32font.h: New file.
13901
13902 * w32font.c: Include it.
13903 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13904 (w32font_open): Set owning_frame.
13905 (w32font_text_extents): Use owning_frame.
13906 (struct font_callback_data): Add opentype_only field.
13907 (add_font_entity_to_list): Use it to filter fonts.
13908 Don't check against full name.
13909 (w32font_list_internal): New function.
13910 (w32font_list): Use it.
13911 (w32font_match_internal): New function.
13912 (w32font_match): Use it.
13913 (w32font_open_internal): New function.
13914 (w32font_open): Use it.
13915 (w32font_get_cache, w32font_close, w32font_has_char)
13916 (w32font_encode_char, w32font_text_extents, w32font_draw):
13917 Make non-static.
13918
13919 * makefile.w32-in (w32font.o): Depend on w32font.h.
13920
13921 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13922
13923 * charset.c (Fdefine_charset_internal): Record a supplementary
13924 charset at the tail of Vcharset_order_list.
13925
13926 * font.c (Ffont_shape_text): Fix the return value.
13927
13928 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13929
13930 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13931
13932 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13933
13934 * ftfont.c (struct OpenTypeSpec): New struct.
13935 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13936 (ftfont_get_open_type_spec): New function.
13937 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13938
13939 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13940
13941 2008-02-01 Jason Rumney <jasonr@gnu.org>
13942
13943 * w32font.c (add_font_entity_to_list): Compare only the beginning
13944 of full name.
13945
13946 2008-02-01 Kenichi Handa <handa@m17n.org>
13947
13948 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13949 Never return HANDLED_RECOMPUTE_PROPS.
13950
13951 2008-02-01 Kenichi Handa <handa@m17n.org>
13952
13953 * font.c (font_gstring_produce): Delete it.
13954
13955 * composite.h (COMPOSITION_METHOD):
13956 Handle COMPOSITION_WITH_GLYPH_STRING.
13957
13958 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13959
13960 * xfont.c (Qx): Delete.
13961 (syms_of_xfont): Don't initialize Qx.
13962
13963 * composite.h (enum composition_method):
13964 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13965
13966 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13967
13968 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13969 (choose_face_font): Accept new form of font-spec.
13970
13971 * frame.h (font_driver_list): Declare it unconditionally.
13972 (struct frame): Define members font_driver_list and font_data_list
13973 unconditionally.
13974
13975 * fontset.c: Include "font.h" unconditionally.
13976 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13977 (Fset_fontset_font): Accept a font-spec object.
13978
13979 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13980 PIXEL_SIZE part a wild card.
13981
13982 * dispextern.h (struct glyph_string): Define members clip and
13983 num_clips unconditionally.
13984 (struct face): Define members font_info and extra unconditionally.
13985
13986 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13987 ftfont_info only when HAVE_LIBOTF is defined.
13988
13989 2008-02-01 Andreas Schwab <schwab@suse.de>
13990
13991 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13992 and end.
13993
13994 2008-02-01 Jason Rumney <jasonr@gnu.org>
13995
13996 * w32font.c (w32font_driver): Add new fields.
13997
13998 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13999
14000 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
14001 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
14002 (LIBES): Add @M17N_FLT_CFLAGS@.
14003
14004 * composite.c (compose_text): Don't treat the new style
14005 composition specially.
14006
14007 * emacs.c (main): Call syms_of_font unconditionally.
14008
14009 * font.h (FONT_ENTITY_NOT_LOADABLE)
14010 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
14011 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
14012 (struct font_driver): New member shape.
14013 (font_registry_charsets): Extern it.
14014 (font_find_for_lface, font_prepare_composition): Adjust prototype.
14015 (font_otf_capability, font_drive_otf): Delete their externs.
14016
14017 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
14018 (font_charset_alist, font_registry_charsets): Move from xfont.c
14019 and rename.
14020 (font_prop_validate_otf): New function.
14021 (font_property_table): Register it for QCotf.
14022 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
14023 (font_drive_otf): Delete.
14024 (font_prepare_composition): New arg F. Adjust for the change of
14025 lispy gstring.
14026 (font_find_for_lface): New arg C.
14027 (font_load_for_face): Adjust for the change of font_find_for_lface.
14028 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
14029 lispy gstring.
14030 (Ffont_shape_text): New function.
14031 (Fopen_font): If the font size is not given, use 12-pixel.
14032 (Ffont_at): New arg STRING.
14033 (syms_of_font): Initialize font_charset_alist.
14034 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
14035 conditionally.
14036
14037 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
14038 fonts of the same font-spec. Change the format of RFONT-DEF.
14039 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
14040 Adjust for the change of RFONT-DEF.
14041 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
14042
14043 * ftfont.h: New file.
14044
14045 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
14046 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14047 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14048 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
14049 font_otf_capability and font_drive_otf, set ftfont_shape.
14050 (ftfont_list): Adjust for the change of :otf property value.
14051 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
14052 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
14053 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
14054 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14055 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
14056 (otf_gstring, gstring, m17n_flt_initialized): New variables.
14057
14058 * w32term.c (x_draw_composite_glyph_string_foreground):
14059 Adjust for the change of lispy gstring.
14060
14061 * xdisp.c (handle_composition_prop): Adjust for the change of
14062 lispy gstring. Call a function for auto-composition with the
14063 third arg it->window.
14064 (fill_composite_glyph_string): Adjust for the change of lispy string.
14065 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
14066
14067 * xfaces.c (set_font_frame_param): Adjust for the change of
14068 font_find_for_lface.
14069
14070 * xfont.c (x_font_charset_alist): Move to font.c and rename.
14071 (xfont_registry_charsets): Likewise. Change caller.
14072 (syms_of_xfont): Don't handle x_font_charset_alist.
14073
14074 * xftfont.c: Include "ftfont.h".
14075 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14076 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14077 (xftfont_close) [HAVE_LIBOTF]: Close otf.
14078 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14079 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
14080 Set xftfont_driver.shape to xftfont_shape.
14081
14082 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14083 the change of lispy gstring.
14084
14085 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14086
14087 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
14088
14089 2008-02-01 Jason Rumney <jasonr@gnu.org>
14090
14091 * w32font.c (w32font_draw): Fill background manually.
14092
14093 2008-02-01 Jason Rumney <jasonr@gnu.org>
14094
14095 * font.c (Qfontp): Remove unused symbol.
14096 (QCantialias): New symbol.
14097 (syms_of_font): Define it.
14098 (font_property_table): Set a validator for QCantialias.
14099
14100 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14101 Define if not already.
14102 (QCfamily): Share with xfaces.c.
14103 (Qstandard, Qsubpixel, Qnatural): New symbols.
14104 (syms_of_w32font): Define them. Don't define QCfamily here.
14105 (w32_antialias_type, lispy_antialias_type): New functions.
14106 (w32_enumfont_pattern_entity): New arg requested_font.
14107 Set antialias parameter if non-default was requested.
14108 (fill_in_logfont): Fill in lfQuality if :antialias specified.
14109
14110 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14111
14112 * lread.c (read1): Undo the previous change.
14113
14114 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
14115
14116 * frame.c (Fdelete_frame): Call font_update_drivers only when
14117 USE_FONT_BACKEND is defined.
14118
14119 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14120
14121 * font.h (struct font_bitmap): New member bits_per_pixel.
14122 (struct font_driver): New members start_for_frame and end_for_frame.
14123 (struct font_data_list): New struct.
14124 (font_put_frame_data, font_get_frame_data): Extern them.
14125
14126 * frame.h (struct frame): New member font_data_list.
14127
14128 * font.c (font_update_drivers): Call driver->start_for_frame and
14129 driver->end_for_frame at proper timings.
14130 (font_put_frame_data, font_get_frame_data): New functions.
14131 (Ffont_spec): Add usage in the docstring.
14132
14133 * frame.c (make_frame): Initialize f->font_data_list to NULL.
14134 (Fdelete_frame): Call font_update_drivers.
14135
14136 * xftfont.c (struct xftface_info): Delete the member xft_draw.
14137 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14138 (xftfont_get_xft_draw): New function.
14139 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
14140 (xftfont_end_for_frame): New function.
14141 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14142
14143 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14144 Change argument. Cache GCs in the per-frame data.
14145 (struct ftxfont_frame_data): New struct.
14146 (ftxfont_draw_bitmap): New arg gc_fore and flush.
14147 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14148 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
14149 (ftxfont_end_for_frame): New function.
14150 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14151
14152 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14153
14154 2008-02-01 Kenichi Handa <handa@m17n.org>
14155
14156 * xselect.c (Vselection_coding_system)
14157 (Vnext_selection_coding_system): Delete them.
14158 (syms_of_xselect): Don't declare selection-coding-system and
14159 next-selection-coding-system. They are declared in select.el.
14160
14161 2008-02-01 Jason Rumney <jasonr@gnu.org>
14162
14163 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14164
14165 * w32fns.c: Include imm.h.
14166 (get_composition_string_fn, get_ime_context_fn): New optional
14167 system functions.
14168 (globals_of_w32fns): Load them from imm32.dll.
14169 (ignore_ime_char): New flag.
14170 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14171 WM_IME_ENDCOMPOSITION messages.
14172
14173 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14174 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14175
14176 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14177
14178 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14179 (READCHAR_REPORT_MULTIBYTE): New macro.
14180 (readchar): New 2nd arg MULTIBYTE.
14181 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14182 Make symbol's name multibyte according to the multibyteness of the
14183 source.
14184
14185 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14186
14187 * xfaces.c (face_for_overlay_string): Call lookup_face with
14188 correct arguments (fix of synching with the trunk).
14189
14190 2008-02-01 Kenichi Handa <handa@m17n.org>
14191
14192 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14193 (font_prop_validate_non_neg, font_prop_validate_spacing):
14194 Delete argument prop_index.
14195 (font_property_table): Change arguments to validater. Change Callers.
14196 (font_lispy_object): Delete.
14197 (font_at): Use font_find_object instead fo font_lispy_object.
14198
14199 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14200
14201 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14202 and file names.
14203
14204 2008-02-01 Jason Rumney <jasonr@gnu.org>
14205
14206 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14207 (font_matches_spec): Remove debug output.
14208 (add_font_entity_to_list): Avoid using substituted fonts.
14209
14210 2008-02-01 Jason Rumney <jasonr@gnu.org>
14211
14212 * doc.c (Fsnarf_documentation):
14213 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14214
14215 2008-02-01 Miles Bader <miles@gnu.org>
14216
14217 * dispextern.h (struct glyph_row): Only define "clip" field if
14218 HAVE_WINDOW_SYSTEM is defined.
14219
14220 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14221
14222 Fix up multi-tty merge.
14223
14224 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14225 and indentation.
14226
14227 * xfaces.c (free_realized_face, clear_face_gcs):
14228 Include font_done_for_face in the input_blocked section, just in case.
14229
14230 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14231 (get_char_face_and_encoding): Undo last change and remove the *other*
14232 duplicate definition (i.e. keep the one that's better scoped and that
14233 includes code for the font-backend).
14234
14235 * terminal.c (create_terminal): Default keyboard_coding to
14236 `no-conversion' and terminal_coding to `undecided'.
14237
14238 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14239
14240 * fontset.c (free_realized_fontsets): Check that the table entry does
14241 contain a fontset before trying to compare it to `base'.
14242
14243 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14244 syms_of_charset, and syms_of_coding earlier because init_window_once
14245 now needs Vcoding_system_hash_table to be setup.
14246
14247 * coding.h (default_buffer_file_coding): Remove.
14248
14249 * coding.c (default_buffer_file_coding): Remove.
14250 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14251 than ->symbol, and use the terminal-local coding system.
14252 (syms_of_coding): Don't setup the coding-systems that are not
14253 terminal-local.
14254 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14255
14256 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14257 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14258
14259 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14260 in chartab.c and were re-added here by mistake.
14261 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14262
14263 * doc.c (Fsnarf_documentation):
14264 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14265 src to etc.
14266
14267 * ChangeLog.10: Add mistakenly removed entry.
14268
14269 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14270
14271 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14272
14273 2008-02-01 Miles Bader <miles@gnu.org>
14274
14275 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14276 Add extra args to FACE_FOR_CHAR.
14277
14278 2008-02-01 Kenichi Handa <handa@m17n.org>
14279
14280 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14281 in sequence.
14282
14283 * chartab.c (map_sub_char_table, map_char_table): If the range
14284 contains just one character, call the function with that character
14285 even if the depth is not 3.
14286
14287 2008-02-01 Jason Rumney <jasonr@gnu.org>
14288
14289 * w32font.c (w32font_text_extents): Calculate metrics for the
14290 whole string.
14291
14292 2008-02-01 Jason Rumney <jasonr@gnu.org>
14293
14294 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14295
14296 2008-02-01 Jason Rumney <jasonr@gnu.org>
14297
14298 * w32term.c (x_set_glyph_string_clipping): Use
14299 get_glyph_string_clip_rects.
14300 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14301 Adjust for the change of struct glyph_string.
14302
14303 * w32font.c (w32font_draw): Do clipping here.
14304
14305 2008-02-01 Kenichi Handa <handa@m17n.org>
14306
14307 * xftfont.c (xftfont_draw): Adjust for the change of struct
14308 glyph_string.
14309
14310 * xterm.c (x_set_glyph_string_clipping): Use
14311 get_glyph_string_clip_rects.
14312 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14313 Adjust for the change of struct glyph_string.
14314
14315 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14316 the resulting clip(s}.
14317 (expose_overlaps): Add arg r. Change callers. Set it to
14318 row->clip temporarily.
14319 (expose_window): Redraw rows overlapping the exposed area.
14320
14321 * dispextern.h (struct glyph_row): New member clip.
14322 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14323 clip_height, new member clip, and num_clips.
14324
14325 2008-02-01 Kenichi Handa <handa@m17n.org>
14326
14327 * data.c (Fchar_or_string_p): Fix docstring.
14328
14329 2008-02-01 Kenichi Handa <handa@m17n.org>
14330
14331 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14332 create a temporary XftDraw object.
14333
14334 2008-02-01 Kenichi Handa <handa@m17n.org>
14335
14336 * font.c (Ffontp): Fix docstring.
14337
14338 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14339 strong evidence of ISO-2022.
14340
14341 2008-02-01 Kenichi Handa <handa@m17n.org>
14342
14343 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14344 SYNTAX_ENTRY_FOLLOW_PARENT.
14345
14346 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14347
14348 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14349 its type.
14350 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14351 Update to the new type of weak_hash_tables and next_weak.
14352
14353 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14354 a plain C pointer to Lisp_Hash_Table.
14355
14356 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14357 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14358 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14359 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14360 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14361 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14362 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14363 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14364 (GC_EQ): Remove since they've been identical to their non-GC_
14365 alter-egos ever since the markbit was eradicated.
14366
14367 * alloc.c:
14368 * buffer.c:
14369 * buffer.h:
14370 * data.c:
14371 * fileio.c:
14372 * filelock.c:
14373 * fns.c:
14374 * frame.h:
14375 * lisp.h:
14376 * macterm.c:
14377 * print.c:
14378 * process.c:
14379 * w32fns.c:
14380 * w32menu.c:
14381 * w32term.c:
14382 * xfns.c:
14383 * xmenu.c:
14384 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14385
14386 2008-02-01 Kenichi Handa <handa@m17n.org>
14387
14388 * chartab.c (map_sub_char_table): Make it work for the top-level
14389 char-table. Fix handling of parent char-table.
14390 (map_char_table): Adjust for the above change.
14391
14392 2008-02-01 Jason Rumney <jasonr@gnu.org>
14393
14394 * w32font.c (Qgdi): Rename from Qw32.
14395
14396 2008-02-01 Jason Rumney <jasonr@gnu.org>
14397
14398 * w32bdf.c (get_quoted_string): Make function static.
14399
14400 2008-02-01 Kenichi Handa <handa@m17n.org>
14401
14402 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14403 bigger ascent and descent than those of the font, use them as
14404 font's ascent and descent.
14405
14406 2008-02-01 Kenichi Handa <handa@m17n.org>
14407
14408 * Makefile.in (${lispsource}international/charprop.el): Move this
14409 target within "#ifdef HAVE_UNIDATA" and "#endif".
14410
14411 2008-02-01 Kenichi Handa <handa@m17n.org>
14412
14413 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14414 (shortlisp): Add ../lisp/language/tai-viet.el.
14415
14416 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
14417
14418 * Makefile.in (${lispsource}international/charprop.el): Depend on
14419 temacs${EXEEXT}.
14420
14421 2008-02-01 Jason Rumney <jasonr@gnu.org>
14422
14423 * w32font.c (w32font_close): Delete the GDI font object.
14424
14425 * w32menu.c: Include character.h.
14426
14427 * w32proc.c: Likewise.
14428
14429 * w32select.c: Likewise.
14430
14431 * makefile.w32-in (w32proc.o): Depend on character.h.
14432
14433 2008-02-01 Jason Rumney <jasonr@gnu.org>
14434
14435 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14436
14437 * w32menu.c (syms_of_w32menu): Likewise.
14438
14439 * w32proc.c (syms_of_ntproc): Likewise.
14440
14441 * w32select.c (syms_of_w32select): Likewise.
14442
14443 * w32term.c (syms_of_w32term): Likewise.
14444
14445 2008-02-01 Jason Rumney <jasonr@gnu.org>
14446
14447 * w32font.c (w32font_draw): Delete brush after using it.
14448
14449 2008-02-01 Jason Rumney <jasonr@gnu.org>
14450
14451 * w32font.c (w32font_open): Don't set font_idx.
14452 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14453 to font settings.
14454 (w32font_draw): Fill background explicitly.
14455
14456 2008-02-01 Jason Rumney <jasonr@gnu.org>
14457
14458 * w32term.c (w32_initialize): Don't call w32font_initialize.
14459
14460 * w32font.c (w32font_info): Remove subranges.
14461 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14462 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14463 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14464 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14465 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14466 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14467 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14468 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14469 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14470 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14471 New symbols.
14472 (font_callback_data): New struct.
14473 (w32font_list, w32font_match): Use it.
14474 (w32font_open): Don't populate subranges.
14475 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14476 (w32font_encode_char): Always return unicode code-point as-is.
14477 (w32font_text_extents): Supply a transformation matrix to
14478 GetGlyphOutline. Never look up by glyph index. Avoid looping
14479 twice. Use unicode version of GetTexExtentPoint32 instead of
14480 glyph index version.
14481 (set_fonts_frame): Remove.
14482 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14483 set frame parameter. Use backward compatible fake foundries.
14484 Save generic family in extra slot under QCfamily. Make width slot
14485 constant. Save QCspacing value. Save list of scripts instead of
14486 binary subranges.
14487 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14488 (add_font_entity_to_list): Use font_callback_data struct. Filter
14489 unwanted fonts.
14490 (add_one_font_entity_to_list): Use font_callback_data struct.
14491 (w32_registry): Default to iso10646_1.
14492 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14493 string font registries. Don't fill in font name if it is a generic
14494 family name, fill family instead. Use spacing, family and script
14495 extra info to fill pitch, family and charset fields.
14496 (list_all_matching_fonts): Use font_callback_data struct.
14497 (unicode_range_for_char): Remove.
14498 (font_supported_scripts): New function.
14499 (w32font_initialize): Remove.
14500 (syms_of_w32font): Update which symbols are defined.
14501
14502 2008-02-01 Jason Rumney <jasonr@gnu.org>
14503
14504 * font.c (font_pixel_size): Reverse assq_no_quit args.
14505
14506 * w32term.h (FONT_WIDTH): Report max width, not average.
14507 (FONT_MAX_WIDTH): Remove.
14508 (FONT_AVG_WIDTH): New macro.
14509
14510 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14511 redefinition of FONT_WIDTH.
14512
14513 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14514 (w32_cache_char_metrics): Use FONT_WIDTH.
14515
14516 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14517
14518 2008-02-01 Jason Rumney <jasonr@gnu.org>
14519
14520 * w32font.c (w32font_open): Make lfHeight negative.
14521
14522 * w32fns.c (x_default_font_parameter): Use new style font name.
14523 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14524
14525 2008-02-01 Jason Rumney <jasonr@gnu.org>
14526
14527 * w32font.c (QCsubranges): New symbol.
14528 (w32font_open, w32font_has_char): Get subranges from subproperty
14529 of extra.
14530 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14531 (syms_of_w32font): Define :subranges symbol.
14532
14533 * font.c (font_put_extra): Expose externally.
14534
14535 * font.h (font_put_extra): Move declaration from font.c.
14536
14537 * font.c (Ffont_get): Use font driver to determine otf capability.
14538 (adjust_anchor): Check if driver defines anchor_point before using.
14539
14540 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14541 (w32font_draw): Use options.
14542 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14543 Fix detection of truetype fonts.
14544 (registry_to_w32_charset): Handle charsets other than iso8859-1
14545 expressed as lisp symbols.
14546 (w32_registry): Express charset as lisp symbol.
14547 (fill_in_logfont): Reverse pixel and point height logic.
14548 Don't set width here. Set quality to default.
14549
14550 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14551 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14552
14553 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14554 Remove redundant loop and allocation.
14555
14556 * makefile.w32-in (font.o, w32font.o): New objects.
14557 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14558 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14559
14560 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14561 STORE_XCHARB a valid l-value.
14562
14563 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14564 calculations for non-Truetype fonts.
14565 (x_draw_glyph_string): Sync with xterm.c.
14566 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14567 Remove redundant code.
14568 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14569
14570 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14571 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14572
14573 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14574 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14575
14576 * w32font.c: New file for w32 font backend.
14577
14578 2008-02-01 Kenichi Handa <handa@m17n.org>
14579
14580 * term.c: Don't include "buffer.h" twice.
14581
14582 2008-02-01 Kenichi Handa <handa@m17n.org>
14583
14584 * character.c (Funibyte_string): New function.
14585 (syms_of_character): Defsubr it.
14586
14587 2008-02-01 Jason Rumney <jasonr@gnu.org>
14588
14589 * w32term.c [USE_FONT_BACKEND]:
14590 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14591 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14592 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14593 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14594 (x_free_frame_resources): Sync with xterm.c.
14595
14596 2008-02-01 Andreas Schwab <schwab@suse.de>
14597
14598 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14599 char-table size.
14600
14601 2008-02-01 Kenichi Handa <handa@m17n.org>
14602
14603 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14604
14605 2008-02-01 Kenichi Handa <handa@m17n.org>
14606
14607 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14608 font_otf_gpos, add font_drive_otf.
14609
14610 * fontset.c (fontset_find_font): Pay attention to font size
14611 specified for a font.
14612 (reorder_font_vector): Check contents of font_def.
14613
14614 * font.c (struct otf_list): Delete it.
14615 (otf_list): Make it a lisp variable.
14616 (otf_open): Use lispy otf_list.
14617 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14618 (check_otf_features): New function.
14619 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14620 New functions.
14621 (font_drive_otf): New function merging font_otf_gsub and
14622 font_otf_gpos.
14623 (font_open_for_lface): New arg spec. Change argument order.
14624 (font_load_for_face): Adjust for the change of font_open_for_lface.
14625 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14626 Ffont_otf_gpos.
14627 (syms_of_font): Staticpro otf_list. Delete defsubr of
14628 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14629
14630 * xfaces.c (set_font_frame_param): Adjust for the change of
14631 font_open_for_lface.
14632
14633 * font.h (font_open_for_lface): Adjust prototype.
14634 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14635 member otf_drive.
14636 (font_otf_gsub, font_otf_gpos): Delete externs.
14637 (font_drive_otf): Extern it.
14638
14639 2008-02-01 Kenichi Handa <handa@m17n.org>
14640
14641 * font.c (font_at): If the window W is not on a window system,
14642 return Qnil.
14643
14644 * coding.c (produce_chars, encode_coding): Don't call
14645 insert_from_gap if no characters to produce.
14646
14647 2008-02-01 Kenichi Handa <handa@m17n.org>
14648
14649 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14650 Fclear_face_cache.
14651
14652 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14653
14654 2008-02-01 Miles Bader <miles@gnu.org>
14655
14656 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14657 Parse "--disable-font-backend" option.
14658 (standard_args): Add "--disable-font-backend" option.
14659
14660 2008-02-01 Kenichi Handa <handa@m17n.org>
14661
14662 * fontset.c (fontset_find_font): New function.
14663 (fontset_font): Use fontset_find_font.
14664 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14665 Register the specified font for all Latin characters.
14666 (new_fontset_from_font): Register the specified font for all Latin
14667 characters.
14668 (dump_fontset): For a realized fontset, include the base fontset
14669 name in the returned vector.
14670
14671 2008-02-01 Kenichi Handa <handa@m17n.org>
14672
14673 * character.h (CHAR_STRING): Cast C to unsigned on calling
14674 char_string.
14675
14676 * character.c (char_string): Type of arg C changed to unsigned.
14677 Signal an error if C is an invalid character code.
14678
14679 * editfns.c (general_insert_function, Fchar_to_string):
14680 Use CHARACTERP, not INTEGERP.
14681
14682 2008-02-01 Kenichi Handa <handa@m17n.org>
14683
14684 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14685 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14686
14687 * regex.c (analyse_first): Fix for multibyte characters in "case
14688 charset:" and "case categoryspec:".
14689
14690 2008-02-01 Andreas Schwab <schwab@suse.de>
14691
14692 * Makefile.in (LIBES): Move standard libraries to the end.
14693
14694 2008-02-01 Kenichi Handa <handa@m17n.org>
14695
14696 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14697 nonzero, don't shrink the buffer nextb.
14698
14699 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14700
14701 * coding.c (coding_alloc_by_making_gap): New arg offset.
14702 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14703 offset.
14704 (decode_coding_iso_2022): Update coding->safe_charsets.
14705 (decode_coding_gap): Temporarily set
14706 current_buffer->text->inhibit_shrinking to 1.
14707
14708 2008-02-01 Kenichi Handa <handa@m17n.org>
14709
14710 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14711 indexing into elements of s->cmp and s->char2b.
14712
14713 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
14714
14715 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14716
14717 2008-02-01 Kenichi Handa <handa@m17n.org>
14718
14719 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14720 target_multibyte instead of multibyte.
14721 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14722 (bcmp_translate): Change the argument name from multibyte to
14723 target_multibyte.
14724
14725 2008-02-01 Kenichi Handa <handa@m17n.org>
14726
14727 These changes are to compile a regexp into a pattern that can be
14728 used both for multibyte and unibyte targets.
14729
14730 * Makefile.in (search.o): Depend on charset.h.
14731
14732 * character.c (multibyte_char_to_unibyte_safe): New function.
14733
14734 * search.c: Include "charset.h".
14735 (compile_pattern_1): Delete argument multibyte. Don't set
14736 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14737 (compile_pattern): Don't compare cp->buf.target_multibyte.
14738 Compare cp->buf.charset_unibyte.
14739 (compile_pattern): Set cp->buf.target_multibyte.
14740
14741 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14742
14743 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14744
14745 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14746 multibyte. Change callers.
14747 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14748 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14749 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14750 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14751 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14752 (regex_compile): Make the compiled pattern usable both for
14753 multibyte and unibyte targets.
14754 (analyse_first): Make the fastmap usable both for multibyte and
14755 unibyte targets.
14756 (TRANSLATE_VIA_MULTIBYTE): Delete.
14757 (re_match_2_internal): Pay attention to the case that the
14758 multibyteness of bufp and target may be different.
14759
14760 2008-02-01 Kenichi Handa <handa@m17n.org>
14761
14762 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14763 empty box occupy at least one column width.
14764
14765 2008-02-01 Miles Bader <miles@gnu.org>
14766
14767 * Makefile.in: Remove redundant HAVE_XFT clause.
14768
14769 2008-02-01 Kenichi Handa <handa@m17n.org>
14770
14771 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14772
14773 2008-02-01 Kenichi Handa <handa@m17n.org>
14774
14775 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14776 being nil.
14777
14778 2008-02-01 Kenichi Handa <handa@m17n.org>
14779
14780 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14781
14782 2008-02-01 Kenichi Handa <handa@m17n.org>
14783
14784 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14785
14786 2008-02-01 Kenichi Handa <handa@m17n.org>
14787
14788 * search.c (simple_search): Fix previous change.
14789
14790 2008-02-01 Kenichi Handa <handa@m17n.org>
14791
14792 * xftfont.c (ftfont_font_format): Extern declaration.
14793
14794 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14795
14796 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14797 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14798
14799 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14800 (ftfont_font_format): Fix previous change.
14801
14802 * font.h (Ffont_xlfd_name): EXFUN it.
14803
14804 * font.c (font_parse_xlfd): Fix the array size of `f'.
14805 (register_font_driver): Use EQ to compare driver->type.
14806
14807 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14808 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14809 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14810
14811 2008-02-01 Kenichi Handa <handa@m17n.org>
14812
14813 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14814 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14815
14816 2008-02-01 Kenichi Handa <handa@m17n.org>
14817
14818 * xfont.c (xfont_open): Set font->format.
14819
14820 * xftfont.c (xftfont_open): Set font->format.
14821
14822 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14823 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14824 (ftfont_open): Set font->format.
14825 (ftfont_font_format): New function.
14826
14827 * font.h (struct font): New member format.
14828
14829 * font.c (Qopentype): New variable.
14830 (syms_of_font): Defsym it.
14831 (Fquery_font): Change the format of the last element of the return
14832 value.
14833
14834 2008-02-01 Kenichi Handa <handa@m17n.org>
14835
14836 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14837 last resort.
14838
14839 2008-02-01 Kenichi Handa <handa@m17n.org>
14840
14841 * coding.c (detect_coding_charset): Fix detection of multi-byte
14842 charset.
14843
14844 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14845
14846 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14847
14848 2008-02-01 Kenichi Handa <handa@m17n.org>
14849
14850 * xdisp.c (get_next_display_element): Set it->face_id for the
14851 first component of a composition.
14852 (x_produce_glyphs): Check if the font is changed or not for composition.
14853
14854 2008-02-01 Kenichi Handa <handa@m17n.org>
14855
14856 * fontset.c (Qlatin): New variable.
14857 (syms_of_fontset): Define it as a lisp symbol.
14858 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14859
14860 2008-02-01 Kenichi Handa <handa@m17n.org>
14861
14862 * font.c (font_unparse_fcname): Pay attention to the case that
14863 some of font property is a null string.
14864
14865 2008-02-01 Kenichi Handa <handa@m17n.org>
14866
14867 * term.c: Include "composite.h".
14868 (encode_terminal_code): Output all components of composition.
14869 Check the size of encode_terminal_src.
14870 (produce_glyphs): For composition, call produce_composite_glyph.
14871 (append_composite_glyph, produce_composite_glyph): New functions.
14872
14873 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14874 is not found, get font_info from the current ascii face.
14875
14876 2008-02-01 Kenichi Handa <handa@m17n.org>
14877
14878 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14879 buffer-file-name to Qnil before calling insert_from_buffer.
14880
14881 * font.c (font_unparse_fcname): Pay attention to the case that
14882 foundry is a null string.
14883
14884 2008-02-01 Kenichi Handa <handa@m17n.org>
14885
14886 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14887
14888 * font.c (Qunicode_sip): New variable.
14889 (syms_of_font): Declare it as a Lisp symbol.
14890
14891 * font.h (Qunicode_sip): Extern it.
14892
14893 2008-02-01 Kenichi Handa <handa@m17n.org>
14894
14895 * composite.c (get_composition_id): Pay attention to TAB component.
14896
14897 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14898 TAB. Adjust for the change of s->char2b which always points to
14899 the first element of allocated memory.
14900
14901 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14902
14903 * xdisp.c (handle_composition_prop): Set it->c to the first
14904 non-TAB component.
14905 (fill_composite_glyph_string): Change argument.
14906 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14907 (x_produce_glyphs): Fix handling of left/right padding.
14908
14909 2008-02-01 Kenichi Handa <handa@m17n.org>
14910
14911 * coding.c (detect_coding_system): Fix for handling off
14912 inhibit_iso_escape_detection. Fix for the case that no coding
14913 system is defined for a specific coding category.
14914
14915 2008-02-01 Kenichi Handa <handa@m17n.org>
14916
14917 * font.c (font_matching_entity): Delete unused local var.
14918
14919 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14920 opening a font.
14921
14922 * fileio.c (Finsert_file_contents): On recovering a file, assume
14923 Unix-like eol.
14924 (choose_write_coding_system): On auto-saving a file, force
14925 Unix-like eol.
14926
14927 * coding.c (setup_coding_system): Fix setting of
14928 coding->common_flags based on eol_type.
14929 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14930 inherit from it.
14931
14932 2008-02-01 Kenichi Handa <handa@m17n.org>
14933
14934 * alloc.c (NSTATICS): Increas to 0x600.
14935
14936 2008-02-01 Kenichi Handa <handa@m17n.org>
14937
14938 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14939 (ftfont_list): Don't check :name property.
14940 (ftfont_match): New function.
14941 (ftfont_pattern_entity): If the pattern doesn't contain
14942 FC_SPACING, don't assume FC_MONO.
14943
14944 * font.h (struct font_driver): New member `match'.
14945 (font_update_drivers): Adjust prototype.
14946
14947 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14948 property of FONT.
14949 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14950 them unconditionally.
14951 (font_matching_entity): New function.
14952 (font_open_by_name): Try font_matching_entity if exact match is
14953 not found.
14954 (font_update_drivers): Delete the arg FONT. Return a list of
14955 actually used backends. Don't free faces, font caches here.
14956 Don't store data in frame parameters. Don't call x_set_font.
14957 (Ffont_spec): Store :name property as is.
14958 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14959 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14960 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14961 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14962 Call font->driver->otf_gsub instead of font_otf_gsub.
14963
14964 * frame.c (x_set_font_backend): Do more works that were done in
14965 font_update_drivers before.
14966
14967 * xfont.c (xfont_match): New function.
14968 (xfont_driver): Set xfont_driver.match to xfont_match.
14969 (xfont_draw): Set font in GC if necessary.
14970
14971 * ftxfont.c (ftxfont_match): New function.
14972 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14973
14974 * xftfont.c (xftfont_match): New function.
14975 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14976
14977 2008-02-01 Kenichi Handa <handa@m17n.org>
14978
14979 * font.h (struct font): New member scalable.
14980 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14981 (font_otf_gsub): Adjust prototype.
14982
14983 * font.c (font_otf_capability): Fix handling of the default langsys.
14984 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14985 Check the contents of SPEC.
14986 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14987 (check_gstring): New function.
14988 (REPLACEMENT_CHARACTER): New macro.
14989 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14990 glyph codes of GSTRING.
14991 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14992 (font_prepare_composition): Set cmp->glyph_len.
14993 (font_open_entity): Set font->scalable.
14994 (Ffont_get): Handle :otf property.
14995 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14996 functions.
14997 (Fquery_font): Use font->font.full_name.
14998 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14999 Sfont_otf_alternates.
15000
15001 * ftfont.c (ftfont_open): Set font->font.full_name and
15002 font->font.name properly. Fix calculation of font->font.height
15003 and font->min_width.
15004
15005 * ftxfont.c (ftxfont_create_gcs): New function.
15006 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
15007 (ftxfont_draw_backgrond): Fix filling region.
15008 (ftxfont_default_fid): New function.
15009 (ftxfont_open): Set xfont->fid to the return value of
15010 ftxfont_default_fid.
15011 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
15012 (ftxfont_done_face): Free only GCs that are created by
15013 ftxfont_create_gcs.
15014 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
15015
15016 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
15017 Clip to src->width, etc (not src->clip_XXX).
15018
15019 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
15020 FontBackend frame parameter.
15021
15022 2008-02-01 Kenichi Handa <handa@m17n.org>
15023
15024 * font.h (struct font_driver_list): New member `on'.
15025 (Fclear_font_cache): EXFUN it.
15026 (font_update_drivers): Extern it.
15027
15028 * font.c (font_unparse_fcname): Fix typo (swidth->width).
15029 (font_list_entities): Check driver_list->on.
15030 (register_font_driver): Initialize `on' member to 0.
15031 (font_update_drivers): New function.
15032 (Fclear_font_cache): Check driver_list->on.
15033
15034 * frame.h (Qfont_backend): Extern it.
15035 (x_set_font_backend): Extern it.
15036
15037 * frame.c (Qfont_backend): New variable.
15038 (frame_parms): New element for font-backend.
15039 (x_set_font_backend): New function.
15040
15041 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
15042 FontBackend frame parameter.
15043 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
15044 x_set_font_backend.
15045
15046 * xfont.c (xfont_list): Don't try listing by :name property if the
15047 name is not for XLFD.
15048
15049 2008-02-01 Kenichi Handa <handa@m17n.org>
15050
15051 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
15052 (LGLYPH_SET_TO): New macros.
15053 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
15054 element of G is vector or not.
15055 (font_at): Extern it.
15056
15057 * font.c: Include window.h.
15058 (font_lispy_object): New function.
15059 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
15060 end of valid glyph.
15061 (font_close_object): Fix getting (struct font *).
15062 (font_at): New function.
15063 (Ffont_get): If FONT is a font-object, get entity from it.
15064 (Ffont_make_gstring): Initialize elements of glyphs with nil.
15065 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
15066 range check.
15067 (Ffont_at): New function.
15068 (syms_of_font): Defsubr Sfont_at.
15069
15070 * xdisp.c (it_props): Move the entry for Qauto_composed to just
15071 before the entry for Qcomposition.
15072 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
15073 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
15074 the font in gstring.
15075 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
15076 LGLYPH_FORM (g) to detect the end of valid glyph.
15077 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
15078 we are composing with gstring.
15079
15080 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
15081 Check if adjustment is vector or not.
15082
15083 * Makefile.in (font.o): Make it depends on window.h.
15084
15085 2008-02-01 Kenichi Handa <handa@m17n.org>
15086
15087 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
15088 adjustment is vector or not.
15089
15090 2008-02-01 Miles Bader <miles@gnu.org>
15091
15092 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
15093
15094 2008-02-01 Kenichi Handa <handa@m17n.org>
15095
15096 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15097 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15098 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15099
15100 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15101 (DEVICE_DELTA): Fix typo.
15102 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15103 LGLYPH format.
15104
15105 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15106 the change of LGLYPH format.
15107
15108 2008-02-01 Kenichi Handa <handa@m17n.org>
15109
15110 * ftfont.c (ftfont_list): Fix typo.
15111 (ftfont_build_basic_charsets): Don't include letters with diacritics.
15112
15113 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15114
15115 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15116
15117 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15118 xftface_info is non-NULL.
15119
15120 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15121
15122 * ftfont.c (ftfont_list): Move misplaced #endif.
15123
15124 2008-02-01 Kenichi Handa <handa@m17n.org>
15125
15126 * ftfont.c (ftfont_list): Pay attention to the case that
15127 FC_CAPABILITY is not defined.
15128
15129 2008-02-01 Kenichi Handa <handa@m17n.org>
15130
15131 * xftfont.c (xftfont_open): Set charset related members to -1.
15132
15133 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
15134 QCname.
15135 (ftfont_open): Set charset related members to -1.
15136
15137 * fontset.c (Votf_script_alist): New variable.
15138 (syms_of_fontset): Initialize it.
15139 (fontset_font): Delete unused variable.
15140
15141 * fontset.h (Votf_script_alist): Extern it.
15142
15143 * font.c (font_find_for_lface): Optimize code.
15144
15145 * font.h (font_close_object, font_merge_old_spec): Extern them.
15146
15147 2008-02-01 Kenichi Handa <handa@m17n.org>
15148
15149 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15150 (syms_of_font): Initialize them.
15151 (font_pixel_size): Allow float value in dpi.
15152 (font_prop_validate_type): Delete.
15153 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15154 Change caller.
15155 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15156 (font_prop_validate_extra): Delete.
15157 (font_prop_validate_spacing): New function.
15158 (font_property_table): Add elements for all known properties.
15159 (get_font_prop_index): Rename from check_font_prop_name. New
15160 argument FROM. Change caller.
15161 (font_prop_validate): Validate all known properties.
15162 (font_put_extra): Delete argument force. Change caller.
15163 (font_expand_wildcards): Make it static. Fix the way of shrinking
15164 the possible range.
15165 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15166 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15167 Change caller.
15168 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15169 (font_parse_fcname): Delete argument merge. Fix parsing of point
15170 size. Don't validate properties values here. Change caller.
15171 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15172 (font_open_by_name): Delete unused variable.
15173 (Ffont_spec): Likewise. Validate property values.
15174 (Ffont_match_p): New function.
15175
15176 * font.h (QCscalable): Extern it.
15177 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15178
15179 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15180
15181 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15182 (xfont_list_pattern): New function.
15183 (xfont_list): Use xfont_list_pattern.
15184
15185 2008-02-01 Kenichi Handa <handa@m17n.org>
15186
15187 * font.h (Flist_fonts): EXFUN it.
15188
15189 2008-02-01 Jason Rumney <jasonr@gnu.org>
15190
15191 * w32term.c (w32_initialize): Add back smoothing_type and
15192 smoothing_enabled definitions.
15193
15194 2008-02-01 Kenichi Handa <handa@m17n.org>
15195
15196 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15197 s->face->font on determining underline position.
15198
15199 2008-02-01 Kenichi Handa <handa@m17n.org>
15200
15201 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15202 (font_has_char): Accept font-object too.
15203 (font_find_for_lface): Try at first with a size specified in face.
15204
15205 2008-02-01 Kenichi Handa <handa@m17n.org>
15206
15207 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15208 font_open_by_name.
15209
15210 2008-02-01 Kenichi Handa <handa@m17n.org>
15211
15212 * font.h (QCspacing, QCdpi): Extern them.
15213 (enum font_spacing): New enum.
15214 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15215
15216 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15217 (QCspacing, QCdpi): New variables.
15218 (syms_of_font): Initialize them.
15219 (font_pixel_size): New function.
15220 (font_put_extra): New function.
15221 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15222 in FONT_EXTRA.
15223 (font_parse_fcname): Handle enumerated values (e.g. bold).
15224 Fix handling font size. Add QCname property that contains only
15225 unknown properties.
15226 (font_score): Change argument. Change caller. Pay attention to
15227 FONT_PIXEL_SIZE_QUANTUM.
15228 (font_sort_entites, font_list_entities, font_find_for_lface)
15229 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15230 (Ffont_spec): Add QCname property that contains only unknown properties.
15231
15232 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15233 include weight in listing pattern, instead check weight of each
15234 listed font. Don't include scalable in pattern. Pay attention to
15235 FONT_PIXEL_SIZE_QUANTUM.
15236
15237 2008-02-01 Kenichi Handa <handa@m17n.org>
15238
15239 * font.c (font_parse_fcname): Fix parsing of point-size.
15240 (font_unparse_fcname): Produce symbolic names for style properties.
15241 (font_list_entities): Handle float size correctly.
15242 (font_open_by_name): Prefer `normal' property values if the name
15243 doesn't specify them.
15244
15245 * fontset.c (Finternal_char_font): Use font_get_name, not
15246 Ffont_xlfd_name.
15247
15248 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15249 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15250 pattern. Don't force scalable.
15251
15252 * xftfont.c (xftfont_open): For generating a name, start from
15253 96-byte buffer.
15254
15255 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15256
15257 * frame.h (x_new_fontset2): Fix prototype.
15258
15259 2008-02-01 Kenichi Handa <handa@m17n.org>
15260
15261 * font.h (struct font_driver): Delete member parse_name.
15262 (font_match_p, font_get_spec, font_parse_fcname)
15263 (font_unparse_fcname): Extern them.
15264 (font_get_name): Adjust prototype.
15265
15266 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15267 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15268 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15269 unnecessary checks for weight, slant, and swidth.
15270 (font_parse_fcname): New function.
15271 (font_unparse_fcname): New function.
15272 (font_parse_name): New function.
15273 (font_match_p): New function.
15274 (font_get_name): Change return value to Lisp string.
15275 (font_get_spec): New function.
15276 (Qunspecified, Qignore_defface): Don't extern them.
15277 (font_find_for_lface): Assume that LFACE is fully specified.
15278 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15279 object, use it for FACE.
15280 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15281 driver->parse_name.
15282 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15283
15284 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15285 prototype.
15286
15287 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15288 argument F. Don't call Fnew_fontset. Instead, directly call
15289 make_fontset.
15290
15291 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15292
15293 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15294 of x_new_fontset2.
15295
15296 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15297 (Qsans__serif): New variables.
15298 (ftfont_generic_family_list): New variable.
15299 (syms_of_ftfont): Initialize the above variables.
15300 (ftfont_pattern_entity): Delete argument NAME.
15301 (ftfont_list_generic_family): New function.
15302 (ftfont_parse_name): Delete this function.
15303 (ftfont_list): Try generic family only when FcFontList found no font.
15304 (ftfont_list_family): Fix args to FcObjectSetBuild.
15305
15306 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15307 object in attrs[LFACE_FONT_INDEX].
15308 (set_lface_from_font_name): Cancel all changes for font-backend.
15309 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15310 function.
15311 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15312 font object in QCfont attribute.
15313 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15314 (realize_default_face) [USE_FONT_BACKEND]: Call
15315 set_lface_from_font_and_fontset.
15316
15317 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15318 "fixed", and signal error here if no suitable font was found.
15319
15320 * xfont.c (xfont_parse_name): Delete this function.
15321
15322 * xftfont.c (xftfont_open): Change coding style of error
15323 handling. Generate fontconfig's fontname pattern.
15324
15325 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15326 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15327
15328 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15329 Both args FONTSET and FONT_OBJECT must be existing ones.
15330
15331 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15332
15333 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15334
15335 2008-02-01 Kenichi Handa <handa@m17n.org>
15336
15337 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15338
15339 * font.h (struct font): Fix typo.
15340
15341 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15342 XLFD_XXX_INDEX.
15343 (enum xlfd_field_mask): New enum.
15344 (intern_font_field): Changed argument. Change caller. If digits
15345 are followed by non-digits, return a symbol.
15346 (font_expand_wildcards): New function.
15347 (font_parse_xlfd): Fix wildcard handling.
15348 (Ffont_spec): If :name is specified, reflect the info in the other
15349 properties.
15350
15351 * ftfont.c (ftfont_pattern_entity): Fix typo.
15352 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15353 locale.
15354
15355 2008-02-01 Kenichi Handa <handa@m17n.org>
15356
15357 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15358
15359 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15360 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15361 registry doesn't specify encoding part.
15362 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15363 (font_open_by_name): At first try parsing the name.
15364 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15365 as Lisp symbols.
15366
15367 * fontset.c (reorder_font_vector): Pay attention to the case that
15368 the 3rd element of font_def is nil.
15369 (fontset_font): For the default fontset, append one more fontset
15370 elements for a script-based font specification. Don't add script
15371 attribute on finding a font.
15372 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15373 font name.
15374 (fontset_ascii_font): If a font can't be opened, return nil.
15375
15376 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15377 (ftfont_pattern_entity): New function.
15378 (ftfont_get_cache): Assume that freetype_font_cache is already
15379 initialized.
15380 (ftfont_list): Handle the case that a file is specified in font
15381 name. Use ftfont_pattern_entity to generate entities.
15382 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15383 (syms_of_ftfont): Initialize freetype_font_cache.
15384
15385 * xftfont.c (xftfont_open): Make the font name fontconfig's
15386 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15387 (xftfont_close): Free font->font.name if not NULL.
15388
15389 * xfont.c (xfont_list): If script is specified for a font, return
15390 null_vector.
15391 (xfont_list_family): Declare argument type.
15392
15393 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15394 name, set LFACE_FONT (lface) to nil.
15395
15396 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15397 return Qnil.
15398
15399 2008-02-01 Kenichi Handa <handa@m17n.org>
15400
15401 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15402 (standard_args): Add "-enable-font-backend".
15403
15404 2008-02-01 Kenichi Handa <handa@m17n.org>
15405
15406 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15407 (struct xftdraw_list, xftdraw_list): Delete them.
15408 (register_xftdraw, check_xftdraw): Delete them.
15409 (xftfont_prepare_face): Don't call register_xftdraw.
15410 (xftfont_done_face): Don't call check_xftdraw.
15411 (xftfont_draw): Get background color only when with_background is
15412 nonzero.
15413
15414 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15415
15416 2008-02-01 Kenichi Handa <handa@m17n.org>
15417
15418 These changes are for the new font handling codes.
15419
15420 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15421 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15422 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15423 (FONTSRC, FONTOBJ): New variables.
15424 (obj): Add $(FONTOBJ).
15425 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15426 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15427 @LIBOTF_LIBS@.
15428 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15429 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15430
15431 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15432
15433 * character.h (Vscript_representative_chars): Extern it.
15434
15435 * character.c (Vscript_representative_chars): New variable.
15436 (syms_of_character): Declare it as a Lisp variable.
15437
15438 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15439 enable_font_backend is nonzero, accept the composition method
15440 COMPOSITION_WITH_GLYPH_STRING.
15441
15442 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15443 enumeration COMPOSITION_WITH_GLYPH_STRING.
15444
15445 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15446 members clip_x, clip_y, clip_width, and clip_height.
15447 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15448
15449 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15450 --enable-font-backend. Call syms_of_font.
15451
15452 * fns.c (assoc_no_quit): New function.
15453
15454 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15455 (face_for_font, new_fontset_from_font)
15456 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15457
15458 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15459 (fontset_font, fontset_ascii, face_for_char)
15460 (make_fontset_for_ascii_face, Ffont_info)
15461 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15462 is nonzero, use font-backend mechanism.
15463 (find_font_encoding): Make it non-static.
15464 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15465 New functions.
15466
15467 * frame.h (struct frame): New members resx and resy.
15468 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15469 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15470
15471 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15472 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15473
15474 * lisp.h (assoc_no_quit): Extern it.
15475
15476 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15477 Through out the file, use FONT_INFO_FROM_FACE instead of
15478 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15479 rif->per_char_metric.
15480 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15481 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15482 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15483 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15484 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15485 nonzero, use font-backend mechanism.
15486 (get_per_char_metric): New function.
15487
15488 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15489 (set_lface_from_font_name)
15490 (set_font_frame_param, free_realized_face)
15491 (prepare_face_for_display, clear_face_gcs)
15492 (Finternal_set_font_selection_order, realize_x_face)
15493 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15494 font-backend mechanism.
15495 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15496 (load_face_font) [USE_FONT_BACKEND]: Abort.
15497 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15498 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15499
15500 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15501 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15502 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15503 nonzero, register all available font drivers. Call
15504 x_default_font_parameter for deciding a font.
15505 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15506
15507 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15508 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15509 (x_set_glyph_string_clipping_exactly)
15510 (x_compute_glyph_string_overhangs)
15511 (x_draw_glyph_string_foreground)
15512 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15513 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15514 enable_font_backend is nonzero, use font-backend mechanism.
15515 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15516
15517 2008-02-01 Kenichi Handa <handa@m17n.org>
15518
15519 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15520 system_eol_type.
15521 (syms_of_coding): Initialize system_eol_type.
15522
15523 * process.c (Fset_process_coding_system): Inherit system's eol
15524 format if necessary.
15525
15526 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15527
15528 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15529
15530 2008-02-01 Kenichi Handa <handa@m17n.org>
15531
15532 * coding.c (decode_eol): Pay attention to buffer relocation in
15533 del_range_2.
15534 (decode_coding): Call decode_eol before restoring undo_list.
15535
15536 2008-02-01 Kenichi Handa <handa@m17n.org>
15537
15538 * charset.c (Fdefine_charset_internal): Fix setting of
15539 emacs_mule_bytes.
15540
15541 2008-02-01 Kenichi Handa <handa@m17n.org>
15542
15543 * keyboard.c (read_char): Check if C is a character or not before
15544 looking up Vkeyboard_translate_table.
15545
15546 2008-02-01 Kenichi Handa <handa@m17n.org>
15547
15548 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15549 condition to terminate the loop.
15550
15551 2008-02-01 Kenichi Handa <handa@m17n.org>
15552
15553 * coding.c (produce_composition): Compare charbuf[i] instead of
15554 args[i] against 0.
15555 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15556
15557 2008-02-01 Kenichi Handa <handa@m17n.org>
15558
15559 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15560 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15561 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15562 detect_coding.
15563 (emacs_mule_char): Handle old style (Emacs 20) component character
15564 of a composition.
15565 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15566 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15567 composition rule.
15568 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15569
15570 2008-02-01 Kenichi Handa <handa@m17n.org>
15571
15572 * coding.c (encode_coding_ccl): Allocate destination dynamically
15573 when necessary.
15574
15575 2008-02-01 Kenichi Handa <handa@m17n.org>
15576
15577 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15578 the loop. When quitted, show a proper error message.
15579
15580 2008-02-01 Kenichi Handa <handa@m17n.org>
15581
15582 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15583 src->clip_head and src->clip_tail temporarily instead of src->hl.
15584
15585 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15586 character sequence.
15587 (Fccl_execute_on_string): Use ASET, not XSET.
15588
15589 2008-02-01 Kenichi Handa <handa@m17n.org>
15590
15591 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15592
15593 2008-02-01 Kenichi Handa <handa@m17n.org>
15594
15595 * coding.c (decode_coding): Fix the condition of terminating the
15596 decoding loop.
15597
15598 2008-02-01 Kenichi Handa <handa@m17n.org>
15599
15600 * data.c (Faset): On setting a character bigger than 255 in a
15601 unibyte string, signal an error instead of make the string multibyte.
15602
15603 2008-02-01 Kenichi Handa <handa@m17n.org>
15604
15605 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15606 made by a mapping table.
15607
15608 2008-02-01 Kenichi Handa <handa@m17n.org>
15609
15610 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15611 not.
15612 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15613 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15614
15615 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15616 s->face is NULL or not.
15617
15618 2008-02-01 Kenichi Handa <handa@m17n.org>
15619
15620 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15621 (x_draw_glyph_string): Fix drawing of right_overhang and
15622 left_overhang around/on cursor.
15623
15624 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15625
15626 2008-02-01 Kenichi Handa <handa@m17n.org>
15627
15628 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15629
15630 2008-02-01 Kenichi Handa <handa@m17n.org>
15631
15632 * coding.c (Fdefine_coding_system_internal)
15633 (Fdefine_coding_system_alias): Avoid a duplicated element in
15634 Vcoding_system_alist.
15635
15636 2008-02-01 Kenichi Handa <handa@m17n.org>
15637
15638 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15639
15640 * coding.c (Qcoding_system_define_form): New variable.
15641 (syms_of_coding): Intern and staticpro it.
15642 (Fcoding_system_p): Check Qcoding_system_define_form.
15643 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15644
15645 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15646 Fcoding_system_p.
15647 (CHECK_CODING_SYSTEM): If ID is not available, call
15648 Fcheck_coding_system.
15649 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15650 Try also Fcheck_coding_system.
15651
15652 2008-02-01 Kenichi Handa <handa@m17n.org>
15653
15654 * coding.c (code_conversion_restore): GCPRO arg.
15655
15656 2008-02-01 Kenichi Handa <handa@m17n.org>
15657
15658 * character.c (lisp_string_width): Check multibyteness of STRING.
15659
15660 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15661
15662 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15663 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15664 (decode_mac_font_name): Use decode_coding_c_string instead of
15665 decode_coding.
15666 (x_load_font): Initialize fontp->fontset to -1. Set
15667 fontp->encoding_type.
15668
15669 2008-02-01 Kenichi Handa <handa@m17n.org>
15670
15671 * search.c (search_buffer): Give up BM search on case-fold-search
15672 if one of a target character has a case-equivalence of different
15673 byte length even if that target charcter is an ASCII.
15674 (simple_search): Fix calculation of byte length of matched text.
15675 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15676
15677 2008-02-01 Kenichi Handa <handa@m17n.org>
15678
15679 * coding.c (decode_coding): Fix handling of invalid bytes.
15680
15681 2008-02-01 Kenichi Handa <handa@m17n.org>
15682
15683 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15684 Unicode characters.
15685
15686 2008-02-01 Kenichi Handa <handa@m17n.org>
15687
15688 * coding.c (encode_coding_object): If a pre-write-conversion
15689 function makes a new buffer, kill it.
15690
15691 2008-02-01 Kenichi Handa <handa@m17n.org>
15692
15693 * coding.c (QCascii_compatible_p): New variable.
15694 (syms_of_coding): Initialize it.
15695 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15696 calling string_char.
15697 (record_conversion_result): Add `default:' case.
15698 (coding_charset_list): Delete unused variable `coding_type'.
15699 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15700 property in the plist of the coding system.
15701 (Fcoding_system_put): Check QCascii_compatible_p.
15702
15703 2008-02-01 Miles Bader <miles@gnu.org>
15704
15705 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15706 removed calculation of frame `f', as it's now used.
15707
15708 2008-02-01 Kenichi Handa <handa@m17n.org>
15709
15710 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15711 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15712 (UNIDATA): New variable.
15713 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15714 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15715 $(RUN_TEMACS) unconditionally.
15716
15717 2008-02-01 Kenichi Handa <handa@m17n.org>
15718
15719 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15720 (admindir): New variable.
15721 ($(lispsource)international/charprop.el): New target.
15722
15723 2008-02-01 Miles Bader <miles@gnu.org>
15724
15725 * character.c (chars-in-region): Remove obsolete function.
15726 (syms_of_character): Remove its initialization.
15727
15728 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15729
15730 * w32select.c (validate_coding_system)
15731 (setup_windows_coding_system): New functions.
15732 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15733 setup_windows_coding_system.
15734 (setup_config, Fw32_get_clipboard_data): Use
15735 validate_coding_system.
15736 (Fx_selection_exists): Move call to setup_config to a place
15737 where signals are allowed.
15738
15739 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15740 (Fcheck_coding_system): Add declarations.
15741
15742 2008-02-01 Kenichi Handa <handa@m17n.org>
15743
15744 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15745
15746 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15747
15748 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15749 string as the second argument for x_new_fontset.
15750
15751 2008-02-01 Kenichi Handa <handa@m17n.org>
15752
15753 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15754 (encode_coding_object): Use safe_call instead of call2.
15755
15756 2008-02-01 Kenichi Handa <handa@m17n.org>
15757
15758 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15759
15760 * Makefile.in (lisp): Include charprop.el.
15761
15762 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15763
15764 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15765 Not sure if it's unnecessary.
15766
15767 2008-02-01 Steven Tamm <steventamm@mac.com>
15768
15769 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15770 some possibly unnecessary fontset checking code that crashed
15771 when creating a new frame.
15772
15773 2008-02-01 Kenichi Handa <handa@m17n.org>
15774
15775 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15776 lookup_face.
15777
15778 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15779
15780 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15781
15782 2008-02-01 Kenichi Handa <handa@m17n.org>
15783
15784 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15785 (coding_charset_list): New function.
15786
15787 * coding.h (coding_charset_list): Extern it.
15788
15789 2008-02-01 Kenichi Handa <handa@m17n.org>
15790
15791 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15792 concatenation of family and registry.
15793
15794 2008-02-01 Kenichi Handa <handa@m17n.org>
15795
15796 * character.h (BYTE8_STRING): Fix typo.
15797
15798 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15799 string to multibyte (sync to HEAD).
15800
15801 * casefiddle.c (casify_region): Handle changes in byte-length
15802 using replace_range_2 (sync to HEAD).
15803
15804 2008-02-01 Andreas Schwab <schwab@suse.de>
15805
15806 * chartab.c (map_char_table): GCPRO table and arg.
15807
15808 2008-02-01 Kenichi Handa <handa@m17n.org>
15809
15810 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15811 already at limit.
15812
15813 2008-02-01 Kenichi Handa <handa@m17n.org>
15814
15815 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15816 instead of fast_c_string_match_ignore_case.
15817 (find_font_encoding): Change argument to Lisp_Object. Use
15818 fast_string_match_ignore_case instead of
15819 fast_c_string_match_ignore_case. Change caller.
15820
15821 2008-02-01 Kenichi Handa <handa@m17n.org>
15822
15823 * xdisp.c (get_next_display_element): In unibyte case, decide to
15824 display in octal form by checking a character by
15825 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15826
15827 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15828
15829 * character.c (unibyte_has_multibyte_table): New variable.
15830
15831 * character.h (unibyte_has_multibyte_table): Extern it.
15832 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15833
15834 2008-02-01 Kenichi Handa <handa@m17n.org>
15835
15836 * coding.c (encode_coding_iso_2022): Fix handling of charset
15837 annotation.
15838
15839 2008-02-01 Kenichi Handa <handa@m17n.org>
15840
15841 * coding.c (setup_coding_system): If coding_system is nil, use
15842 Qundecided.
15843 (Fterminal_coding_system): Return nil if terminal coding system is
15844 `undecided'.
15845 (syms_of_coding): Define coding-system `undecided' here. Setup
15846 terminal_coding as `undecided'.
15847
15848 2008-02-01 Kenichi Handa <handa@m17n.org>
15849
15850 * xdisp.c (message_dolog, set_message_1): Call
15851 unibyte_char_to_multibyte with arg type int.
15852
15853 * lread.c (read1): Fix reading of a char-table.
15854
15855 * print.c (print_object): Include sub char-table in circularities
15856 detection.
15857
15858 2008-02-01 Kenichi Handa <handa@m17n.org>
15859
15860 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15861 Append the found sequences in car of ARGS instead of prepending.
15862
15863 2008-02-01 Kenichi Handa <handa@m17n.org>
15864
15865 * fileio.c (report_file_error): Make a unibyte string from
15866 strerror (errorno).
15867 (Fsubstitute_in_file_name): Fix the arg to
15868 unibyte_char_to_multibyte. It is evaluated twice.
15869
15870 2008-02-01 Kenichi Handa <handa@m17n.org>
15871
15872 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15873
15874 2008-02-01 Kenichi Handa <handa@m17n.org>
15875
15876 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15877 BOM is not found.
15878 (detect_coding, detect_coding_system): Optimization for ISO-2022
15879 when no 8-bit data is found.
15880
15881 2008-02-01 Jason Rumney <jasonr@gnu.org>
15882
15883 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15884
15885 2008-02-01 Kenichi Handa <handa@m17n.org>
15886
15887 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15888 CHARS.
15889
15890 2008-02-01 Steven Tamm <steventamm@mac.com>
15891
15892 * macterm.c (mac_encode_char): Add charset argument and update
15893 to use encoding_type.
15894 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15895 switch to pure fontset.
15896 (decode_mac_font_name): Temporarily remove decoding.
15897 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15898 (x_load_font): Temporarily remove encoding.
15899
15900 2008-02-01 Kenichi Handa <handa@m17n.org>
15901
15902 * xfaces.c (Fface_font): If frame is not on a window system,
15903 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15904 refer to face->font.
15905 (split_font_name_into_vector, build_font_name_from_vector)
15906 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15907 when HAVE_WINDOW_SYSTEM is defined.
15908
15909 2008-02-01 Kenichi Handa <handa@m17n.org>
15910
15911 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15912 (x_produce_glyphs): Fix setting of members of cmp in case
15913 cmp->glyph_len is zero.
15914
15915 * fontset.c (Fset_fontset_font): Fix docstring.
15916 (Ffontset_info): Make it backward compatible. New arg ALL.
15917
15918 2008-02-01 Kim F. Storm <storm@cua.dk>
15919
15920 * process.c (read_process_output): Grow decoding_buf when needed;
15921 this could cause a crash in allocate_string and compact_small_strings.
15922
15923 2008-02-01 Kenichi Handa <handa@m17n.org>
15924
15925 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15926
15927 2008-02-01 Kenichi Handa <handa@m17n.org>
15928
15929 * coding.c (setup_coding_system): Set coding->common_flags
15930 correctly for raw-text.
15931 (consume_chars): On encoding unibyte text by raw-text, don't check
15932 multibyte form.
15933 (encode_coding): On encoding by raw-text, never use translation tables.
15934
15935 * fileio.c (e_write): Short cut for the case of no encoding.
15936
15937 2008-02-01 Kenichi Handa <handa@m17n.org>
15938
15939 * coding.c (detect_coding, detect_coding_system): Delete unused
15940 variables.
15941
15942 2008-02-01 Kenichi Handa <handa@m17n.org>
15943
15944 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15945 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15946
15947 2008-02-01 Kenichi Handa <handa@m17n.org>
15948
15949 * coding.c (Ffind_coding_systems_region_internal): Include
15950 raw-text and no-conversion in the result.
15951
15952 2008-02-01 Kenichi Handa <handa@m17n.org>
15953
15954 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15955 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15956 FONT_DEF.
15957 (font_def_arg, add_arg, from_arg, to_arg): New args.
15958 (set_fontset_font): Change argument.
15959 (Fset_fontset_font): Fix for the case that TARGET is a script
15960 name and charset name.
15961 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15962
15963 2008-02-01 Kenichi Handa <handa@m17n.org>
15964
15965 * fontset.c (fontset_font): Rename from fontset_face. Change return
15966 value.
15967 (face_suitable_for_char_p, face_for_char): Adjust for the change
15968 of fontset_font.
15969 (make_fontset_for_ascii_face): Fix setting of the fontset element
15970 for ASCII.
15971 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15972 to get a font name.
15973 (Ffontset_info): Adjust for the change of fontset_font.
15974
15975 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15976
15977 * character.h (LEADING_CODE_LATIN_1_MIN)
15978 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15979
15980 2008-02-01 Kenichi Handa <handa@m17n.org>
15981
15982 * editfns.c (check_translation): New function.
15983 (Ftranslate_region_internal): Handle M:N mapping.
15984
15985 2008-02-01 Kenichi Handa <handa@m17n.org>
15986
15987 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15988
15989 2008-02-01 Kenichi Handa <handa@m17n.org>
15990
15991 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15992 goto invalid_code.
15993 (decode_coding_iso_2022): Fix handling of invalid designation.
15994
15995 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15996 after calling code_conversion_save.
15997
15998 2008-02-01 Kenichi Handa <handa@m17n.org>
15999
16000 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
16001
16002 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
16003
16004 * fontset.c: Include "intervals.h".
16005 (fontset_face): Fix comparing of Lisp_Objects.
16006 (free_face_fontset, new_fontset_from_font_name): Fix
16007 Lisp_Object/int mixup.
16008
16009 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
16010
16011 * coding.c: Add many prototypes for static functions.
16012 (get_translation_table): Allow max_lookup to be NULL.
16013 (decode_coding, Ffind_coding_systems_region_internal)
16014 (Funencodable_char_position, Fcheck_coding_systems_region): Call
16015 get_translation_table with max_lookup NULL.
16016
16017 2008-02-01 Kenichi Handa <handa@m17n.org>
16018
16019 * coding.c (get_translation_table): Declare it as Lisp_Object.
16020 (LOOKUP_TRANSLATION_TABLE): New macro.
16021 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
16022 instead of CHAR_TABLE_REF.
16023
16024 2008-02-01 Kenichi Handa <handa@m17n.org>
16025
16026 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
16027 annotation data format.
16028 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
16029 Change arguments FROM and TO to single argument NCHARS. Change caller.
16030 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
16031 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16032 (decode_coding_ccl, decode_coding_charset): Pay attention to
16033 coding->charbuf_used.
16034 (get_translation): New function.
16035 (produce_chars): New arguments translation_table and last_block.
16036 Translate characters here. Return number of carryover chars.
16037 Change caller.
16038 (produce_composition): New argument pos. Change caller.
16039 Adjust for the change of annotation data format.
16040 (produce_charset, produce_annotation): Likewise.
16041 (decode_coding, encode_coding): Don't call translate_chars.
16042 (consume_chars): New arg translation_table. Change caller.
16043 (translate_chars): Delete.
16044 (syms_of_coding): Make translation-table's number of extra slots 2.
16045
16046 2008-02-01 Kenichi Handa <handa@m17n.org>
16047
16048 * search.c (simple_search): Fix setting this_pos_byte in backward
16049 search.
16050
16051 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
16052 byte sequence.
16053 (detect_coding_ccl): Fix setting of the variable valids.
16054
16055 2008-02-01 Kenichi Handa <handa@m17n.org>
16056
16057 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
16058
16059 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
16060
16061 * editfns.c (Ftranslate_region_internal): Rename from
16062 Ftranslate_region. Accept a char-table in TABLE.
16063 (syms_of_editfns): Defsubr Stranslate_region_internal.
16064
16065 * xfaces.c (set_lface_from_font_name): If a font is specified for
16066 a frame, generate a fontset from the font.
16067 (build_scalable_font_name): If the scalable font is requested for
16068 a specific size, don't change that size.
16069 (try_font_list): Try a scalable font also in the case that a
16070 pattern string is specified.
16071
16072 2008-02-01 Kenichi Handa <handa@m17n.org>
16073
16074 * xfaces.c (Fface_font): New optional arg CHARACTER.
16075
16076 2008-02-01 Kenichi Handa <handa@m17n.org>
16077
16078 * charset.h (CHARSET_OFFSET): New macro.
16079
16080 2008-02-01 Kenichi Handa <handa@m17n.org>
16081
16082 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
16083
16084 * fontset.c (fontset_face): Handle the case that repertory is a
16085 char-table.
16086 (find_font_encoding): Return nil for unknown encoding.
16087 (Fset_fontset_font): Ignore a font of unknown encoding.
16088
16089 2008-02-01 Kenichi Handa <handa@m17n.org>
16090
16091 * keymap.c (describe_vector): Handle default value of a char table.
16092
16093 * fontset.c (fontset_face): Handle fallback fonts correctly.
16094 (Ffontset_info): Return infomation about fallback fonts.
16095
16096 2008-02-01 Kenichi Handa <handa@m17n.org>
16097
16098 * fontset.c (FONTSET_DEFAULT): New macro.
16099 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16100 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16101 the case that it is nil.
16102 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16103 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16104
16105 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16106 subset or superset.
16107
16108 2008-02-01 Kenichi Handa <handa@m17n.org>
16109
16110 * emacs.c (main): Call init_charset after syms_of_XXX.
16111
16112 * charset.c (Vcharset_map_directory): Delete.
16113 (Vcharset_map_path): New variable.
16114 (load_charset_map_from_file): Use Vcharset_map_path instead.
16115 (init_charset): Initialize Vcharset_map_path.
16116 (syms_of_charset): Delete declaration of "charset-map-directory",
16117 add declaration of "charset-map-path".
16118
16119 2008-02-01 Kenichi Handa <handa@m17n.org>
16120
16121 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16122 ASCII only string.
16123
16124 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16125
16126 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16127 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16128
16129 2008-02-01 Kenichi Handa <handa@m17n.org>
16130
16131 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16132
16133 * coding.c (QCmnemonic, QCdefalut_char)
16134 (QCdecode_translation_table, QCencode_translation_table)
16135 (QCpost_read_conversion, QCpre_write_conversion): New variables.
16136 (get_translation_table): Return a list of translation tables if
16137 necessary.
16138 (decode_coding): Call get_translation_table with ENCODEP 0.
16139 (char_encodable_p): If translation_table is non-nil, always call
16140 translate_char.
16141 (Fdefine_coding_system_internal): Accept list of translation
16142 tables as :encode-translation-table and :decode-translation-table.
16143 (Fcoding_system_put): New function.
16144 (syms_of_coding): Declare new symbols. Defsubr
16145 Scoding_system_put.
16146 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16147 typically JISX0212.
16148
16149 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16150 when the charset is superset type.
16151
16152 * character.c (translate_char): Accept list of translation tables.
16153
16154 2008-02-01 Kenichi Handa <handa@m17n.org>
16155
16156 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16157 (CODING_ATTR_TRANS_TBL): New macro.
16158
16159 * coding.c (get_translation_table): New function.
16160 (translate_chars): Fix the bug of skipping annotation data.
16161 (decode_coding, encode_coding): Utilize get_translation_table.
16162 (char_encodable_p, Funencodable_char_position): Translate char if
16163 necessary.
16164 (Ffind_coding_systems_region_internal)
16165 (Fcheck_coding_systems_region): Setup translation table for encode
16166 in a coding system attribute vector in advance.
16167 (Fdefine_coding_system_internal): Allow a symbol as translation
16168 table. For shift-jis type coding system, allow 4th charset.
16169
16170 2008-02-01 Kenichi Handa <handa@m17n.org>
16171
16172 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16173
16174 * xdisp.c (get_next_display_element): Pass -1 as POS to
16175 FACE_FOR_CHAR if displaying a C-string.
16176
16177 2008-02-01 Kenichi Handa <handa@m17n.org>
16178
16179 * composite.c (get_composition_id): Handle xoff and yoff in a
16180 composition rule.
16181
16182 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16183 (struct composition): New member lbearing and rbearing.
16184
16185 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16186 (x_get_glyph_overhangs): Handle a composition glyph.
16187 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16188
16189 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16190 composition glyph.
16191
16192 2008-02-01 Kenichi Handa <handa@m17n.org>
16193
16194 * print.c: Include charset.h.
16195 (Vprint_charset_text_property): New variable.
16196 (Qdefault): Extern it.
16197 (PRINT_STRING_NON_CHARSET_FOUND)
16198 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16199 (print_check_string_result): New variable.
16200 (print_check_string_charset_prop): New function.
16201 (print_prune_charset_plist): New variable.
16202 (print_prune_string_charset): New function.
16203 (print_object): Call print_prune_string_charset if
16204 Vprint_charset_text_property is not t.
16205 (print_interval): Print nothing if interval->plist is nil.
16206 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16207 variable. Init and staticpro print_prune_charset_plist.
16208
16209 2008-02-01 Kenichi Handa <handa@m17n.org>
16210
16211 * fontset.c (new_fontset_from_font_name): Use the specified font
16212 for all characters in the new fontset.
16213
16214 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16215 OBJECT args.
16216
16217 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16218 OBJECT args for composition too.
16219
16220 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16221 OBJECT args.
16222
16223 2008-02-01 Kenichi Handa <handa@m17n.org>
16224
16225 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16226
16227 * fontset.c (reorder_font_vector): Adjust for the change of
16228 FONT_DEF format.
16229 (fontset_face): New arg id. Change caller.
16230 (face_for_char): New args pos and object.
16231 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16232 (fs_query_fontset): Check NAME by Fassoc too.
16233 (Fset_fontset_font): Allow non-XLFD font name.
16234 (Ffontset_info): Adjust for the change of FONT_DEF format.
16235
16236 * fontset.h (face_for_char): Adjust prototype.
16237
16238 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16239 (append_space, extend_face_to_end_of_line)
16240 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16241 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16242
16243 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16244 POS and OBJECT args.
16245
16246 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16247 POS and OBJECT args.
16248
16249 2008-02-01 Jason Rumney <jasonr@gnu.org>
16250
16251 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16252 of GlobalAlloc'ed memory.
16253
16254 2008-02-01 Kenichi Handa <handa@m17n.org>
16255
16256 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16257
16258 * charset.h (charset_table_used): Delete extern.
16259
16260 * charset.c (charset_table_used): Make it static.
16261 (map_charset_chars): Fix args to c_function with.
16262
16263 * chartab.c (map_sub_char_table_for_charset): Fix args to
16264 c_function with.
16265
16266 * coding.h (enum coding_result_code): Delete
16267 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16268
16269 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16270 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16271 (Vlast_code_conversion_error): New variables.
16272 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16273 (ONE_MORE_BYTE): Record error if any instead of signaling an
16274 error. If non-ASCII multibyte char is found, return the negative
16275 value of the code. All callers changed to check it.
16276 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16277 (record_conversion_result): New function. Change all codes setting
16278 coding->result to call this function.
16279 (detect_coding_utf_8, decode_coding_utf_8)
16280 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16281 Don't use the local variable incomplete.
16282 (emacs_mule_char): Change the second arg to `const'.
16283 (decode_coding): Fix of flushing out unprocessed data.
16284 (make_conversion_work_buffer): Fix making of a work buffer.
16285 (decode_coding_object): Return coding->dst_object.
16286
16287 * fontset.c (set_fontset_font): Fix args.
16288
16289 * lisp.h (CHARACTERBITS): Define as 22.
16290
16291 * process.c (send_process): Be sure to set coding->src_multibyte.
16292
16293 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16294
16295 2008-02-01 Kenichi Handa <handa@m17n.org>
16296
16297 * xdisp.c (handle_auto_composed_prop): Give limit to
16298 Fnext_single_char_property_change.
16299
16300 2008-02-01 Kenichi Handa <handa@m17n.org>
16301
16302 * composite.c (syms_of_composite): Don't make the composition hash
16303 table weak.
16304
16305 * fontset.c (Fset_fontset_font): Fix docstring.
16306
16307 * lisp.h (detect_coding_system): Adjust prototype.
16308
16309 * fileio.c (kill_workbuf_unwind): Delete this function.
16310 (Finsert_file_contents): Adjust the call of detect_coding_system.
16311 Get conversion_buffer by code_conversion_save. Use the macro
16312 CODING_MAY_REQUIRE_DECODING. After decoding, update
16313 coding_system.
16314
16315 * coding.h (make_conversion_work_buffer): Delete extern.
16316 (code_conversion_save): Extern it.
16317
16318 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16319 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16320 (decode_coding_utf_8): Don't do eol converion.
16321 (detect_coding_utf_16): Check coding->src_chars, not
16322 coding->src_bytes. Add heuristics for those that have no signature.
16323 (decode_coding_emacs_mule, decode_coding_iso_2022)
16324 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16325 Don't do eol converion.
16326 (adjust_coding_eol_type): Return a new coding system.
16327 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16328 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16329 each change.
16330 (decode_coding): Pay attention to undo_list. Do eol conversion for
16331 all types of coding-systems (if necessary).
16332 (Vcode_conversion_work_buf_list): Delete it.
16333 (Vcode_conversion_reused_workbuf): Rename from
16334 Vcode_conversion_reused_work_buf.
16335 (Vcode_conversion_workbuf_name): New variable.
16336 (reused_workbuf_in_use): New variable.
16337 (make_conversion_work_buffer): Delete the arg DEPTH.
16338 (code_conversion_restore): Change argument to cons.
16339 (code_conversion_save): Delete the argument BUFFER. Change callers.
16340 (detect_coding_system): New argument src_chars. Change callers.
16341 Fix for utf-16 detection.
16342 (init_coding_once): Don't use ISO_carriage_return.
16343 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16344 reused_workbuf_in_use.
16345
16346 2008-02-01 Kenichi Handa <handa@m17n.org>
16347
16348 * keymap.c (store_in_keymap): Pay attention to the case that idx
16349 is a cons specifying a character range.
16350
16351 2008-02-01 Kenichi Handa <handa@m17n.org>
16352
16353 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16354 HANDLED_RECOMPUTE_PROPS.
16355
16356 * coding.c (Fdefine_coding_system_internal): Fix checking of
16357 ascii compatibility.
16358
16359 2008-02-01 Kenichi Handa <handa@m17n.org>
16360
16361 * charset.c (find_charsets_in_text): Delete unused locale variable.
16362 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16363
16364 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16365 Resync charset_list to Vemacs_mule_charset_list.
16366
16367 * keymap.c (store_in_keymap): Pay attention to the case that idx
16368 is a cons specifying a character range.
16369
16370 2008-02-01 Kenichi Handa <handa@m17n.org>
16371
16372 * composite.c (update_compositions): Bind inhibit-read-only, etc
16373 to t before calling remove-list-of-text-properties.
16374
16375 * print.c (print_object): Always print ASCII chars as is.
16376
16377 2008-02-01 Kenichi Handa <handa@m17n.org>
16378
16379 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16380
16381 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16382 is a char table.
16383
16384 2008-02-01 Kenichi Handa <handa@m17n.org>
16385
16386 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16387
16388 2008-02-01 Kenichi Handa <handa@m17n.org>
16389
16390 * xfaces.c (set_lface_from_font_name): Fix for the case that
16391 FONTNAME is not fontset name.
16392
16393 2008-02-01 Kenichi Handa <handa@m17n.org>
16394
16395 * fns.c (base64_encode_1): Fix previous change.
16396
16397 2008-02-01 Kenichi Handa <handa@m17n.org>
16398
16399 * fontset.c (set_fontset_font): New function.
16400 (Fset_fontset_font): If a font is specified for a charset, use
16401 map_charset_chars to store the font spec in a fontset.
16402
16403 2008-02-01 Kenichi Handa <handa@m17n.org>
16404
16405 * fontset.c (fontset_face): Create a fallback fontset on demand.
16406 (make_fontset): Don't create a fallback fontset here.
16407 (free_face_fontset): Free a fallback fontset (if any) too.
16408 (n_auto_fontsets): Delete this variable.
16409 (auto_fontset_alist): New variable.
16410 (new_fontset_from_font_name): Check auto_fontset_alist.
16411 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16412 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16413 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16414 Defsubr Sfontset_list_all.
16415
16416 2008-02-01 Kenichi Handa <handa@m17n.org>
16417
16418 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16419
16420 2008-02-01 Kenichi Handa <handa@m17n.org>
16421
16422 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16423
16424 2008-02-01 Kenichi Handa <handa@m17n.org>
16425
16426 * editfns.c (Fgoto_char): Fix docstring.
16427
16428 2008-02-01 Kenichi Handa <handa@m17n.org>
16429
16430 * insdel.c (insert_from_gap): Adjust intervals correctly.
16431
16432 2008-02-01 Jason Rumney <jasonr@gnu.org>
16433
16434 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16435 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16436 (w32_initialize): Try to load it.
16437 (x_get_font_repertory): Use it if available.
16438 (w32_encode_char): Add shortcut for unicode output.
16439
16440 * w32fns.c (w32_load_system_font): Default charset to -1.
16441 (x_to_w32_charset): Match all fonts for unicode.
16442 (w32_to_x_charset): New parameter matching. Don't return partial
16443 or wildcard charsets.
16444 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16445 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16446 (w32_to_x_font): Match charset to real charset.
16447 (enum_font_cb2): Always list unicode versions.
16448
16449 * makefile.w32-in (temacs): Increase EMHEAP.
16450
16451 2008-02-01 Jason Rumney <jasonr@gnu.org>
16452
16453 * w32term.c (w32_encode_char): New charset parameter.
16454 font_info.encoding becomes encoding_type.
16455 (x_get_font_repertory): New function. Warning: stub only!
16456 (x_new_font): Return quickly if font already set.
16457 (x_new_fontset): fontsetname parameter is Lisp_Object.
16458 Use new fs_query_fontset. Try new_fontset_from_font_name.
16459 Use fontset_name for return value.
16460
16461 * w32term.h: Declare x_get_font_repertory.
16462
16463 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16464 place of find_charset_in_text. Use encode_coding_object in place
16465 of encode_coding.
16466 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16467 decode_coding.
16468
16469 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16470 of x_new_fontset.
16471 (w32_load_system_font): Initialize charset as unicode.
16472 font_info.encoding becomes encoding_type.
16473 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16474 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16475 (syms_of_w32fns): Set get_font_repertory_func.
16476
16477 * w32console.c: Include character.h. Use terminal_encode_buffer
16478 from term.c.
16479 (write_glyphs): Use new version of encode_terminal_code. Use
16480 encode_coding_object in place of encode_coding.
16481
16482 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16483 encoding becomes encoding_type.
16484
16485 * term.c (terminal_encode_buffer): Make externally visible.
16486
16487 * makefile.w32-in: Add character.h dependancies.
16488 (character.o, chartab.o): New targets.
16489
16490 2008-02-01 Kenichi Handa <handa@m17n.org>
16491
16492 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16493 CODING_ID_EOL_TYPE.
16494
16495 2008-02-01 Andreas Schwab <schwab@suse.de>
16496
16497 * coding.c (produce_chars): Revert last change.
16498
16499 2008-02-01 Kenichi Handa <handa@m17n.org>
16500
16501 * charset.h (charset_unicode): Extern it.
16502
16503 * charset.c (string_xstring_p): Check by (C >= 0x100).
16504 (find_charsets_in_text): Change format of the arc CHARSETS. New
16505 arg MULTIBYTE.
16506 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16507 change of find_charsets_in_text.
16508 (Fsplit_char): Fix doc. Never return unknown.
16509
16510 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16511
16512 * coding.c (Fdefine_coding_system_alias): Update
16513 Vcoding_system_list.
16514
16515 * fontset.c (load_font_get_repertory): Pay attention to the case
16516 that ENCODING of a font is specified by a char-table.
16517
16518 * xterm.c (x_get_font_repertory): Handle the case that the
16519 encoding of font is other than Unicode.
16520
16521 2008-02-01 Kenichi Handa <handa@m17n.org>
16522
16523 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16524 if a character is encodable by the terminal coding system. If
16525 not, produces proper number of `?'s. Update
16526 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16527 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16528
16529 2008-02-01 Kenichi Handa <handa@m17n.org>
16530
16531 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16532 variables.
16533 (encode_terminal_code): Change argument. Encode multiple
16534 characters at once. Store the result of encoding in
16535 terminal_encode_buffer.
16536 (write_glyphs, insert_glyphs): Adjust for the change of
16537 encode_terminal_code.
16538 (term_init): Initialize terminal_encode_buffer and
16539 terminal_encode_buf_size.
16540
16541 * coding.c (consume_chars): If coding->src_object is nil, don't
16542 check annotation.
16543
16544 2008-02-01 Kenichi Handa <handa@m17n.org>
16545
16546 * character.c (char_string): Use ASCII_CHAR_P instead of
16547 SINGLE_BYTE_CHAR_P.
16548
16549 2008-02-01 Kenichi Handa <handa@m17n.org>
16550
16551 * xdisp.c (handle_auto_composed_prop): Check if the last
16552 characters of auto-composed region is newly composed with the
16553 following characters.
16554 (handle_composition_prop): Fix checking of point being inside
16555 composition.
16556
16557 2008-02-01 Kenichi Handa <handa@m17n.org>
16558
16559 * fns.c (concat): Don't change multibyteness of the result by
16560 concatenating an 8-bit character.
16561
16562 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16563 multibyteness of the result when newelt is an 8-bit character.
16564
16565 2008-02-01 Dave Love <fx@gnu.org>
16566
16567 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16568 EMACS_INT.
16569
16570 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16571
16572 * xfaces.c (face_numeric_value): Declare dim size_t.
16573 (Finternal_lisp_face_equal_p): Remove unused f.
16574
16575 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16576 (MATRIX_ROW): Remove unused vars.
16577 (draw_glyphs, x_insert_glyphs, fast_find_position)
16578 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16579 byte/char counts.
16580
16581 * regex.c (regex_compile): Remove unused var.
16582
16583 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16584
16585 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16586 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16587
16588 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16589
16590 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16591
16592 * fileio.c (Fwrite_region): Remove unused var.
16593
16594 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16595 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16596
16597 * composite.c (Fremove_list_of_text_properties): Declare.
16598
16599 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16600 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16601 (coding_inherit_eol_type): Remove unused attrs.
16602 (detect_coding): Cast arg of detect_eol.
16603
16604 * charset.c (syms_of_charset): Remove unused var p.
16605 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16606 byte/char counts.
16607
16608 * casetab.c (set_case_table): Remove unused var.
16609
16610 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16611 unused vars.
16612
16613 2008-02-01 Dave Love <fx@gnu.org>
16614
16615 * xterm.c (x_bitmap_mask): Declare.
16616
16617 2008-02-01 Dave Love <fx@gnu.org>
16618
16619 * xterm.c (x_term_init): Fix type error.
16620
16621 * lisp.h: Add Funibyte_char_to_multibyte.
16622
16623 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16624 (Fset_coding_system_priority): Doc fix.
16625
16626 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16627
16628 * indent.c (check_composition): Make start and end EMACS_INT.
16629
16630 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16631
16632 * xdisp.c (handle_composition_prop, check_point_in_composition):
16633 Make buffer positions EMACS_INT.
16634
16635 * composite.c (find_composition, run_composition_function)
16636 (update_compositions, Ffind_composition_internal): Make buffer
16637 positions EMACS_INT.
16638
16639 * composite.h (find_composition, update_compositions): Make
16640 position args EMACS_INT.
16641
16642 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16643
16644 * intervals.c (get_property_and_range):
16645 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16646
16647 * unexalpha.c: Don't include varargs.h.
16648
16649 2008-02-01 Dave Love <fx@gnu.org>
16650
16651 * coding.h (ENCODE_UTF_8): New.
16652
16653 * Makefile.in (gtkutil.o): Depend on coding.h.
16654
16655 * coding.c (Fset_coding_system_priority): Doc fix.
16656
16657 2008-02-01 Kenichi Handa <handa@m17n.org>
16658
16659 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16660 the case of auto saving.
16661
16662 2008-02-01 Andreas Schwab <schwab@suse.de>
16663
16664 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16665 `range' from GC.
16666
16667 2008-02-01 Kenichi Handa <handa@m17n.org>
16668
16669 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16670
16671 2008-02-01 Kenichi Handa <handa@m17n.org>
16672
16673 * fileio.c (choose_write_coding_system): Return a decided coding system.
16674 (Fwrite_region): Set Vlast_coding_system_used to the return value
16675 of choose_write_coding_system.
16676
16677 2008-02-01 Kenichi Handa <handa@m17n.org>
16678
16679 * charset.c (Fset_charset_priority): Pay attention to duplicated
16680 arguments.
16681
16682 * coding.c (QCcategory): New variable.
16683 (syms_of_coding): Defsym it. Set all elements of
16684 Vcoding_category_table and their symbol values.
16685 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16686 coding-category-XXX, and coding-category-list.
16687 (Fdefine_coding_system_internal): Add category in the plist.
16688
16689 2008-02-01 Kenichi Handa <handa@m17n.org>
16690
16691 * callproc.c (Fcall_process): Handle carryover correctly.
16692
16693 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16694 (raw_text_coding_system): Check NILP (coding_system).
16695 (coding_inherit_eol_type): Check NILP (coding_system) and
16696 NILP (parent).
16697 (consume_chars): Fix for the case of raw-text.
16698
16699 * process.c (read_process_output): Handle carryover correctly.
16700
16701 2008-02-01 Dave Love <fx@gnu.org>
16702
16703 * regex.c (re_search_2): Fix last change.
16704
16705 2008-02-01 Kenichi Handa <handa@m17n.org>
16706
16707 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16708 target_multibyte. Even in a unibyte case, return a converted
16709 multibyte char.
16710 (GET_CHAR_AFTER): New macro.
16711 (PATFETCH): Translate via multibyte char.
16712 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16713 (SETUP_MULTIBYTE_RANGE): New macro.
16714 (regex_compile): Setup compiled code so that its multibyteness
16715 matches that of a target. Fix the handling of "[X-YZ]" using
16716 SETUP_MULTIBYTE_RANGE.
16717 (analyse_first) <charset>: For filling fastmap for all multibyte
16718 characters, don't check by BASE_LEADING_CODE_P.
16719 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16720 the same as RE_MULTIBYTE_P (bufp) now.
16721 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16722 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16723 (TRANSLATE_VIA_MULTIBYTE): New macro.
16724 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16725 It is the same as RE_MULTIBYTE_P (bufp) now.
16726 <exactn>: Translate via multibyte.
16727 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16728 translate it.
16729 <charset, charset_not>: Fetch a character by
16730 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16731 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16732 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16733 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16734 by GET_CHAR_AFTER.
16735 (bcmp_translate): Likewise.
16736
16737 * search.c (compile_pattern): Check the member target_multibyte,
16738 not the member multibyte of buf.
16739
16740 * lread.c (read1): While reading a string, set force_singlebyte
16741 and force_multibyte correctly.
16742
16743 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16744 up of unibyte_to_multibyte_table.
16745
16746 2008-02-01 Kenichi Handa <handa@m17n.org>
16747
16748 * coding.c (setup_coding_system): If coding has
16749 post-read-conversion or pre-write-conversion, set
16750 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16751 respectively.
16752 (decode_coding_gap): Run post-read-conversion if any.
16753
16754 * fileio.c (Finsert_file_contents): Even if we read into a
16755 unibyte buffer, check if we must decode the result or not.
16756
16757 2008-02-01 Kenichi Handa <handa@m17n.org>
16758
16759 * coding.c (make_conversion_work_buffer): Change the work buffer
16760 name to the same one as that of Emacs 21.
16761
16762 2008-02-01 Kenichi Handa <handa@m17n.org>
16763
16764 * coding.h (make_conversion_work_buffer): Adjust prototype.
16765 (code_conversion_restore): Don't extern it.
16766
16767 * coding.c (detected_mask): Delete unused variable.
16768 (decode_coding_iso_2022): Pay attention to the byte sequence of
16769 CTEXT extended segment, and retain those bytes as is.
16770 (decode_coding_ccl): Delete unused variable `valids'.
16771 (setup_coding_system): Delete unused variable `category'.
16772 (consume_chars): Delete unused variable `category'. Make it work
16773 for non-multibyte case.
16774 (make_conversion_work_buffer): Change argument.
16775 (saved_coding): Delete unused variable.
16776 (code_conversion_restore): Don't check saved_coding->destination.
16777 (code_conversion_save): New function.
16778 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16779 instead of record_unwind_protect.
16780 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16781 (detect_coding_system): Delete unused variable `mask'.
16782 (Fdefine_coding_system_internal): Delete unused variable id.
16783
16784 * fileio.c (kill_workbuf_unwind): New function.
16785 (Finsert_file_contents): On replacing, call
16786 make_conversion_work_buffer with correct args, and call
16787 record_unwind_protect with the first arg kill_workbuf_unwind.
16788
16789 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16790
16791 2008-02-01 Kenichi Handa <handa@m17n.org>
16792
16793 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16794 (fontset_add): Fix for the case that TO is less than TO1.
16795 (Ffontset_info): Don't use fallback fontset on checking the
16796 default fontset.
16797 (dump_fontset): New function for debugging.
16798
16799 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16800 coding_type is Qcharset.
16801
16802 2008-02-01 Kenichi Handa <handa@m17n.org>
16803
16804 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16805 (map_char_table): Don't inherit the value from the parent on
16806 initializing VAL. Adjust for the above change.
16807
16808 2008-02-01 Kenichi Handa <handa@m17n.org>
16809
16810 * coding.c (Qsignature, Qendian): Delete these variables.
16811 (syms_of_coding): Don't initialize them.
16812 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16813 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16814 detect_info->found.
16815 (decode_coding_utf_16): Don't detect BOM here.
16816 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16817 is NOT utf_16_without_bom.
16818 (setup_coding_system): For a coding system of type utf-16, check
16819 if the attribute :endian is Qbig or not (not nil or not), and set
16820 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16821 (detect_coding): If coding type is utf-16 and BOM detection is
16822 required, detect it.
16823 (Fdefine_coding_system_internal): For a coding system of type
16824 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16825
16826 2008-02-01 Kenichi Handa <handa@m17n.org>
16827
16828 * coding.c (coding_set_source): Fix for the case that the current
16829 buffer is different from coding->src_object.
16830 (decode_coding_object): Don't use the conversion work buffer if
16831 DST_OBJECT is a buffer.
16832
16833 2008-02-01 Dave Love <fx@gnu.org>
16834
16835 * lread.c (read_emacs_mule_char) [len==2]: Index
16836 emacs_mule_charset correctly.
16837
16838 2008-02-01 Dave Love <fx@gnu.org>
16839
16840 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16841 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16842 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16843 treated specially.)
16844 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16845 (detected_mask): Remove Big5 bits.
16846
16847 2008-02-01 Kenichi Handa <handa@m17n.org>
16848
16849 The following changes are to make the font rescaling facility
16850 compatible with Emacs 21.
16851
16852 * xfaces.c (Vface_font_rescale_alist): Rename from
16853 Vface_resizing_fonts.
16854 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16855 (font_rescale_ratio): Rename from font_resizing_ratio.
16856 (split_font_name): Set font->rescale_ratio.
16857 (better_font_p): Pay attention to font->rescale_ratio.
16858 (build_scalable_font_name): Likewise. Change RESX, and RESY
16859 fields.
16860 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16861
16862 2008-02-01 Kenichi Handa <handa@m17n.org>
16863
16864 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16865 (Qutf_16_le): Remove these variables.
16866 (syms_of_coding): Don't DEFSYM them.
16867 (decode_coding_utf_16): Fix handling of BOM.
16868 (encode_coding_utf_16): Fix handling of BOM.
16869
16870 2008-02-01 Kenichi Handa <handa@m17n.org>
16871
16872 * fileio.c (Finsert_file_contents): On replacing, before decoding
16873 the file into the work buffer, set point of the work buffer to the end.
16874
16875 2008-02-01 Dave Love <fx@gnu.org>
16876
16877 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16878
16879 2008-02-01 Dave Love <fx@gnu.org>
16880
16881 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16882 and fix C types.
16883
16884 2008-02-01 Kenichi Handa <handa@m17n.org>
16885
16886 * xdisp.c (SKIP_GLYPHS): New macro.
16887 (set_cursor_from_row): Pay attention to string display properties.
16888
16889 * category.c (copy_category_entry): Fix for the case that RANGE
16890 is an integer.
16891
16892 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16893
16894 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16895
16896 2008-02-01 Kenichi Handa <handa@m17n.org>
16897
16898 * charset.c (Fcharset_id_internal): New function.
16899 (syms_of_charset): Defsubr it.
16900
16901 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16902 with the last arg charset_list acquired from coding.
16903 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16904 the attribute coding_attr_ccl_valids.
16905
16906 * coding.h (enum define_coding_ccl_arg_index): Set the first
16907 member coding_arg_ccl_decoder to coding_arg_max.
16908
16909 * ccl.h (ccl_driver): Adjust prototype.
16910
16911 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16912 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
16913 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
16914 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16915 last arg Qnil.
16916
16917 2008-02-01 Kenichi Handa <handa@m17n.org>
16918
16919 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16920 call encode_char.
16921
16922 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16923
16924 2008-02-01 Dave Love <fx@gnu.org>
16925
16926 * composite.c (syms_of_composite): Make composition_hash_table weak.
16927
16928 2008-02-01 Kenichi Handa <handa@m17n.org>
16929
16930 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16931 (font_name_registry): Don't extern them.
16932 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16933
16934 * fontset.h (Qfontset): Don't extern it.
16935 (new_fontset_from_font_name): Extern it.
16936
16937 * fontset.c: Give 8 extra slots to fontset objects.
16938 (Qfontset_info): New variable.
16939 (syms_of_fontset): Defsym it.
16940 (FONTSET_FALLBACK): New macro.
16941 (fontset_face): Try also the default fontset.
16942 (make_fontset): Realize a fallback fontset from the default fontset.
16943 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16944 using split_font_name_into_vector and build_font_name_from_vector.
16945 (Fset_fontset_font): Access the elements of font_spec by enum
16946 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16947 name by using split_font_name_into_vector.
16948 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16949 generate a proper font name from the fontset name. Update
16950 Vfontset_alias_alist.
16951 (n_auto_fontsets): New variable.
16952 (new_fontset_from_font_name): New function.
16953 (Ffont_info): Store the information about fonts generated from the
16954 default fontset in the first extra slot of the returned char-table.
16955
16956 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16957 (font_name_registry): Delete function.
16958 (split_font_name_into_vector): New function.
16959 (build_font_name_from_vector): New function.
16960 (font_list): The argument REGISTRY is now a list of registry names.
16961 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16962 specifies an explicit font name, return the name as is. Make a
16963 list of registy names.
16964
16965 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16966 of x_new_fontset.
16967 (Fx_create_frame): Don't call x_new_fontset here. Just use
16968 x_list_fonts to check the existence of fonts.
16969
16970 * xterm.h (x_new_fontset): Adjust prototype.
16971
16972 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16973 string. Use new_fontset_from_font_name to create a fontset from a
16974 font name.
16975
16976 2008-02-01 Kenichi Handa <handa@m17n.org>
16977
16978 * syntax.c (Vfind_word_boundary_function_table): New name for
16979 Vnext_word_boundary_function_table.
16980 (find-word-boundary-function-table): New name for
16981 next-word-boundary-function-table.
16982
16983 2008-02-01 Dave Love <fx@gnu.org>
16984
16985 * Makefile.in: Fix some dependencies.
16986
16987 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16988 set it to nil before returning.
16989
16990 * composite.c (update_compositions): Fix type error.
16991
16992 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16993
16994 2008-02-01 Kenichi Handa <handa@m17n.org>
16995
16996 * xterm.c (x_new_font): Optimize for the case that the font is
16997 already set for the frame.
16998
16999 2008-02-01 Kenichi Handa <handa@m17n.org>
17000
17001 * chartab.c (char_table_ascii): Check if the char table contents
17002 is sub-char-table or not.
17003 (char_table_set, char_table_set_range): Fix argument to
17004 char_table_ascii.
17005
17006 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
17007 (detect_coding_utf_8, detect_coding_utf_16)
17008 (detect_coding_emacs_mule, detect_coding_iso_2022)
17009 (detect_coding_sjis, detect_coding_big5)
17010 (detect_coding_ccl, detect_coding_charset): Change argument MASK
17011 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
17012 sequence is valid in this coding system. Change callers.
17013 (MAX_ANNOTATION_LENGTH): New macro.
17014 (ADD_ANNOTATION_DATA): New macro.
17015 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
17016 ADD_ANNOTATION_DATA. Change the format of annotation data.
17017 (ADD_CHARSET_DATA): New macro.
17018 (emacs_mule_char): New argument ID. Change callers.
17019 (decode_coding_emacs_mule, decode_coding_iso_2022)
17020 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17021 Produce charset annotation data in coding->charbuf.
17022 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
17023 to charset annotation data in coding->charbuf.
17024 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
17025 coding->common_flags if the coding system is iso-2022 based and
17026 uses designation.
17027 (produce_composition): Adjust for the new annotation data format.
17028 (produce_charset): New function.
17029 (produce_annotation): Handle charset annotation.
17030 (handle_composition_annotation, handle_charset_annotation): New
17031 functions.
17032 (consume_chars): Handle charset annotation. Utilize the above two
17033 functions.
17034 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
17035 buffer, get the deleted text as a string and set
17036 coding->src_object to that string.
17037 (detect_coding, detect_coding_system): Use the new struct
17038 coding_detection_info.
17039
17040 * coding.h (struct coding_detection_info): New structure.
17041 (struct coding_system): Adjust prototype of the member `detector'.
17042 (CODING_ANNOTATE_CHARSET_MASK): New macro.
17043
17044 2008-02-01 Kenichi Handa <handa@m17n.org>
17045
17046 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
17047
17048 2008-02-01 Dave Love <fx@gnu.org>
17049
17050 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
17051 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
17052 to new local and nullify apropos_accumulate before returning.
17053 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
17054
17055 2008-02-01 Kenichi Handa <handa@m17n.org>
17056
17057 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
17058 correctly.
17059
17060 2008-02-01 Dave Love <fx@gnu.org>
17061
17062 * fns.c (Flanginfo): Call synchronize_system_time_locale.
17063
17064 2008-02-01 Kenichi Handa <handa@m17n.org>
17065
17066 The following changes are to make character composition happen
17067 automatically on displaying.
17068
17069 * Makefile.in (lisp, shortlisp): Add composite.elc.
17070
17071 * composite.h (Qauto_composed, Vauto_composition_function)
17072 (Qauto_composition_function): Extern them.
17073
17074 * composite.c (Vcomposition_function_table)
17075 (Qcomposition_function_table): Delete variables.
17076 (Qauto_composed, Vauto_composition_function)
17077 (Qauto_composition_function): New variables.
17078 (run_composition_function): Don't call
17079 compose-chars-after-function.
17080 (update_compositions): Clear `auto-composed' text property.
17081 (compose_chars_in_text): Delete this function.
17082 (syms_of_composite): Staticpro Qauto_composed and
17083 Qauto_composition_function. Declare Vauto_composition_function as
17084 a Lisp variable.
17085
17086 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
17087
17088 * xdisp.c (it_props): Add an entry for Qauto_composed.
17089 (handle_auto_composed_prop): New function.
17090
17091 * xselect.c (selection_data_to_lisp_data): Don't call
17092 compose_chars_in_text.
17093
17094 2008-02-01 Dave Love <fx@gnu.org>
17095
17096 * keyboard.c (read_char): Modify checking around use of
17097 Vkeyboard_translate_table.
17098
17099 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17100 and fix C types.
17101
17102 2008-02-01 Kenichi Handa <handa@m17n.org>
17103
17104 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17105 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17106 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17107 the case that the last byte is '\r' correctly.
17108 (decode_coding): Flush out the unprocessed data correctly.
17109 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17110
17111 2008-02-01 Dave Love <fx@gnu.org>
17112
17113 * xterm.c (XTread_socket): Fix changes for defined keysyms.
17114 Add XK_ISO... case.
17115 (xaw_scroll_callback): Revert last change.
17116
17117 2008-02-01 Kenichi Handa <handa@m17n.org>
17118
17119 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17120
17121 2008-02-01 Kenichi Handa <handa@m17n.org>
17122
17123 * xfaces.c (Vface_resizing_fonts): New variable.
17124 (struct font_name): New member `resizing_ratio'.
17125 (font_resizing_ratio): New function.
17126 (split_font_name): Set font->resizing_ratio.
17127 (better_font_p): Pay attention to font->resizing_ratio.
17128 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
17129 RESX, and RESY fields.
17130 (try_alternative_families): Try scalable fonts if
17131 Vscalable_fonts_allowed is not Qt.
17132 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17133
17134 2008-02-01 Dave Love <fx@gnu.org>
17135
17136 * xterm.c (xaw_scroll_callback): Cast correctly.
17137
17138 2008-02-01 Dave Love <fx@gnu.org>
17139
17140 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
17141 (lispy_kana_keys): Comment out.
17142 (make_lispy_event) [XK_kana_A]: Comment out.
17143
17144 * xterm.c (xaw_scroll_callback): Cast call_data.
17145 (XTread_socket): Deal with ASCII keysyms.
17146 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17147
17148 2008-02-01 Dave Love <fx@gnu.org>
17149
17150 * xterm.c (Vx_keysym_table): New.
17151 (syms_of_xterm): Initialize it.
17152 (XTread_socket): Use it.
17153 From head: Eliminate incorrect optimization that tried to avoid
17154 decoding the output of X*LookupString.
17155 (x_get_font_repertory): Delete charset declaration.
17156
17157 2008-02-01 Kenichi Handa <handa@m17n.org>
17158
17159 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17160 return 0.
17161 (Fdefine_coding_system_internal): Setup
17162 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17163
17164 2008-02-01 Dave Love <fx@gnu.org>
17165
17166 * coding.c (Fcheck_coding_system): Doc fix.
17167
17168 * editfns.c (Finsert_byte): Return a proper value.
17169
17170 2008-02-01 Kenichi Handa <handa@m17n.org>
17171
17172 * coding.c (decode_coding): Fix args to translate_chars. Pay
17173 attention to Vstandard_translation_table_for_decode.
17174 (encode_coding): Fix args to translate_chars. Pay attention to
17175 Vstandard_translation_table_for_encode.
17176
17177 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17178 SINGLE_BYTE_CHAR_P.
17179
17180 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17181 not by SINGLE_BYTE_CHAR_P.
17182
17183 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17184 SINGLE_BYTE_CHAR_P.
17185
17186 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17187 SINGLE_BYTE_CHAR_P.
17188
17189 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17190 by SINGLE_BYTE_CHAR_P.
17191
17192 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17193 SINGLE_BYTE_CHAR_P.
17194
17195 2008-02-01 Dave Love <fx@gnu.org>
17196
17197 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17198
17199 2008-02-01 Dave Love <fx@gnu.org>
17200
17201 * fns.c (Flanginfo): Fix typo.
17202
17203 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17204
17205 2008-02-01 Kenichi Handa <handa@m17n.org>
17206
17207 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17208 (detect_coding_emacs_mule, detect_coding_iso_2022)
17209 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17210 incomplete byte sequence. Don't update *mask when correctly detected.
17211 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17212 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17213 (detect_coding, detect_coding_system): Adjust for the changes above.
17214
17215 2008-02-01 Kenichi Handa <handa@m17n.org>
17216
17217 * character.c (char_string): Rename from
17218 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17219 (string_char): Rename from string_char.
17220
17221 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17222 if C is greater than MAX_3_BYTE_CHAR.
17223 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17224 string_char instead of string_char_with_unification.
17225
17226 2008-02-01 Dave Love <fx@gnu.org>
17227
17228 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17229
17230 2008-02-01 Kenichi Handa <handa@m17n.org>
17231
17232 * keymap.c (push_key_description): Pay attention to force_multibyte.
17233
17234 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17235
17236 2008-02-01 Dave Love <fx@gnu.org>
17237
17238 * charset.c (define_charset_internal): Rename `supprementary'.
17239
17240 * Makefile.in (lisp, shortlisp): Remove latin-N.
17241
17242 2008-02-01 Dave Love <fx@gnu.org>
17243
17244 * xfns.c (x_window, x_window): Use use_xim.
17245
17246 * xterm.c (use_xim): Initialize.
17247 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17248 (x_term_init): Maybe set use_xim.
17249
17250 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17251
17252 2008-02-01 Kenichi Handa <handa@m17n.org>
17253
17254 * search.c (search_buffer): Fix case-fold-search of multibyte
17255 characters.
17256 (boyer_moore): Rename the last argument to char_high_bits.
17257
17258 2008-02-01 Kenichi Handa <handa@m17n.org>
17259
17260 * xdisp.c (display_string): Fix for the case of zero width glyph.
17261
17262 * xfns.c (x_set_font): Change the error message of the case that
17263 x_new_fontset returns Qt.
17264
17265 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17266 (Finternal_set_lisp_face_attribute): Use signal_error for the
17267 error of invalid fontset.
17268
17269 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17270 fontset, return Qt.
17271
17272 2008-02-01 Dave Love <fx@gnu.org>
17273
17274 * unexelf.c (unexec): Make .got handling not SGI-specific.
17275
17276 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17277
17278 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17279
17280 * keyboard.c (read_key_sequence): Fix type error.
17281
17282 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17283 type error.
17284
17285 * fontset.c (fontset_add): Return Lisp_Object.
17286
17287 2008-02-01 Dave Love <fx@gnu.org>
17288
17289 * charset.h (charset_ordered_list_tick): Declare extern.
17290
17291 2008-02-01 Kenichi Handa <handa@m17n.org>
17292
17293 The following changes (and some of 2008-02-01 changes of mine) are
17294 for handling syntax, category, and case conversion for unibyte
17295 characters by converting them to multibyte on the fly. With these
17296 changes, we don't have to setup syntax and case tables for unibyte
17297 characters in each language environment.
17298
17299 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17300 multibyte if necessary.
17301
17302 * bytecode.c (Fbyte_code): Likewise.
17303
17304 * character.h (LEADING_CODE_LATIN_1_MIN)
17305 (LEADING_CODE_LATIN_1_MAX): New macros.
17306 (unibyte_to_multibyte_table): Extern it.
17307 (unibyte_char_to_multibyte): New macro.
17308 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17309 (CHAR_LEADING_CODE): New macro.
17310 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17311
17312 * character.c (unibyte_to_multibyte_table): New variable.
17313 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17314 (multibyte_char_to_unibyte): If C is an eight-bit character,
17315 convert it to the corresponding byte value.
17316
17317 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17318 not 1, signals an error. Update the elements of
17319 unibyte_to_multibyte_table.
17320 (init_charset_once): Initialize unibyte_to_multibyte_table.
17321 (syms_of_charset): Define the charset `iso-8859-1'.
17322
17323 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17324 as is without converting it to unibyte. In a unibyte buffer,
17325 convert C to multibyte before checking the syntax.
17326
17327 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17328
17329 * minibuf.c (Fminibuffer_complete_word): Use the macro
17330 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17331
17332 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17333
17334 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17335 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17336 that is zero, convert an eight-bit char to multibyte.
17337 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17338 non-emacs case.
17339 (PATFETCH): Convert an eight-bit char to multibyte.
17340 (HANDLE_UNIBYTE_RANGE): New macro.
17341 (regex_compile): Setup the compiled pattern for multibyte chars
17342 even if the given regex string is unibyte. Use PATFETCH_RAW
17343 instead of PATFETCH in many places. To handle `charset'
17344 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17345 only for ASCII chars.
17346 (analyse_first) <exactn>: Simplify because the compiled pattern
17347 is multibyte.
17348 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17349 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17350 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17351 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17352 multibyte always 1.
17353 (re_search_2): In emacs, set the locale variable multibyte to 1,
17354 otherwise to 0. New local variable target_multibyte. Check it
17355 to decide the multibyteness of STR1 and STR2. If
17356 target_multibyte is zero, convert unibyte chars to multibyte
17357 before translating and checking fastmap.
17358 (TARGET_CHAR_AND_LENGTH): New macro.
17359 (re_match_2_internal): In emacs, set the locale variable multibyte
17360 to 1, otherwise to 0. New local variable target_multibyte. Check
17361 it to decide the multibyteness of STR1 and STR2. Use
17362 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17363 <charset, charset_not>: If multibyte is nonzero, check fastmap
17364 only for ASCII chars. Call bcmp_translate with
17365 target_multibyte, not with multibyte.
17366 <begline>: Declare the local variable C as `unsigned'.
17367 (bcmp_translate): Change the last arg name to target_multibyte.
17368
17369 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17370 the regexp pattern and the matching target. Set cp->buf.multibyte
17371 to the multibyteness of the regexp pattern. Set
17372 cp->but.target_multibyte to the multibyteness of the matching target.
17373 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17374 FETCH_STRING_CHAR_ADVANCE.
17375 (Freplace_match): Convert unibyte chars to multibyte.
17376
17377 * syntax.c (char_quoted, back_comment, scan_words)
17378 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17379 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17380 unibyte chars to multibyte.
17381 (skip_chars): Delete the arg syntaxp, and move the code for
17382 handling syntaxes to skip_syntaxes. Change callers.
17383 Fix the case that the multibyteness of STRING and the current
17384 buffer doesn't match.
17385 (skip_syntaxes): New function.
17386 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17387 SINGLE_BYTE_CHAR_P.
17388
17389 2008-02-01 Kenichi Handa <handa@m17n.org>
17390
17391 * xfaces.c (QCfontset): New variable.
17392 (LFACE_FONTSET): New macro.
17393 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17394 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17395 (Finternal_set_lisp_face_attribute)
17396 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17397 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17398 check also LFACE_FONTSET_INDEX.
17399 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17400 attrs[LFACE_FONT_INDEX].
17401 (syms_of_xfaces): Intern and staticpro QCfontset.
17402
17403 * dispextern.h (enum lface_attribute_index): New member
17404 LFACE_FONTSET_INDEX.
17405
17406 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17407
17408 2008-02-01 Kenichi Handa <handa@m17n.org>
17409
17410 * coding.c (coding_set_destination): Fix coding->destination for
17411 the case converting a region.
17412 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17413 (encode_coding_object): Fix coding->dst_pos and
17414 coding->dst_pos_byte for the case converting a region.
17415
17416 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17417
17418 * character.h (BYTE8_STRING): New macro.
17419
17420 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17421
17422 2008-02-01 Kenichi Handa <handa@m17n.org>
17423
17424 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17425 characters by octal form.
17426
17427 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17428
17429 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17430 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17431 _fetch_multibyte_char_len.
17432 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17433
17434 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17435
17436 * casefiddle.c (casify_object): Simplify. Handle the case that
17437 the case conversion change the byte length.
17438 (casify_region): Likewise.
17439
17440 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17441
17442 * character.c (_fetch_multibyte_char_len): Delete this variable.
17443 (syms_of_character): Setup Vprintable_chars.
17444
17445 * editfns.c (Fchar_equal): Fix for the unibyte case.
17446 (Finsert_byte): New function.
17447 (syms_of_editfns): Defsubr it.
17448
17449 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17450 of direct code 0x3ffff.
17451
17452 * search.c (Freplace_match): Fix for the unibyte case.
17453
17454 2008-02-01 Kenichi Handa <handa@m17n.org>
17455
17456 * lread.c (safe_to_load_p): Fix the logic.
17457
17458 * syntax.c (scan_words): Don't treat characters belonging to
17459 different scripts as constituting a word.
17460
17461 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17462
17463 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17464
17465 * emacs.c (main): In the case of --unibyte, instead of aborting on
17466 finding non-empty buffer, make it unibyte.
17467
17468 2008-02-01 Kenichi Handa <handa@m17n.org>
17469
17470 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17471 to create a fontset.
17472
17473 2008-02-01 Dave Love <fx@gnu.org>
17474
17475 * character.c (Funibyte_char_to_multibyte): Doc fix.
17476
17477 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17478
17479 2008-02-01 Kenichi Handa <handa@m17n.org>
17480
17481 * fontset.c (fontset_add): Make the type `int'.
17482 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17483
17484 * character.c (unibyte_char_to_multibyte)
17485 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17486 charset_unibyte, not charset_primary.
17487
17488 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17489
17490 * charset.c (charset_unibyte): Rename from charset_primary.
17491 (Funibyte_charset): Rename from Fprimary_charset.
17492 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17493 (syms_of_charset): Adjust for the above changes.
17494
17495 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17496 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17497 it->multibyte_p is zero.
17498
17499 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17500 Delete extern.
17501
17502 2008-02-01 Kenichi Handa <handa@m17n.org>
17503
17504 * coding.c (Fdefine_coding_system_internal): Fix category setting
17505 for a coding system of type iso-2022.
17506
17507 2008-02-01 Kenichi Handa <handa@m17n.org>
17508
17509 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17510
17511 2008-02-01 Kenichi Handa <handa@m17n.org>
17512
17513 * syntax.c (Vnext_word_boundary_function_table): New variable.
17514 (next-word-boundary-function-table): Declare it as a Lisp variable
17515 in syms_of_syntax.
17516 (scan_words): Call functions in Vnext_word_boundary_function_table
17517 if any.
17518
17519 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17520
17521 * fontset.c (fs_load_font): If fontp->charset is not negative,
17522 return fontp without setting its members.
17523
17524 2008-02-01 Dave Love <fx@gnu.org>
17525
17526 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17527
17528 * m/sparc.h (HAVE_ALLOCA): Delete.
17529
17530 * s/irix6-5.h: Don't include strings.h.
17531 (bcopy, bzero, bcmp): Don't undef.
17532
17533 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17534
17535 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17536 (TIOCSIGSEND): Don't test IRIX6.
17537 (bcopy, bzero, bcmp): Define conditionally.
17538
17539 2008-02-01 Kenichi Handa <handa@m17n.org>
17540
17541 * buffer.c (Qas, Qmake, Qto): New variables.
17542 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17543 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17544
17545 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17546 we are inserting a process output into a multibyte buffer.
17547
17548 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17549 multibyte_char_to_unibyte.
17550
17551 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17552 by the primary charset, make it eight-bit char.
17553 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17554
17555 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17556 (charset_8_bit__control, charset_8_bit_graphic)
17557 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17558 (define_charset_internal): New function.
17559 (syms_of_charset): Call define_charset_internal for pre-defined
17560 charsets.
17561
17562 * charset.h (charset_8_bit): Extern it.
17563
17564 * coding.c (make_conversion_work_buffer): Adjust for the change
17565 of Fset_buffer_multibyte.
17566 (encode_coding_raw_text): Increment p0 in the loop.
17567
17568 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17569
17570 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17571 for the change of Fset_buffer_multibyte.
17572
17573 * fns.c (Fstring_to_multibyte): New function.
17574 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17575
17576 2008-02-01 Dave Love <fx@gnu.org>
17577
17578 * xfns.c (x_put_x_image): Declare args.
17579
17580 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17581 (try_font_list): Declare an arg.
17582
17583 * xdisp.c (message2_nolog, set_message): Declare an arg.
17584
17585 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17586
17587 * syntax.c (scan_sexps_forward): Declare an arg.
17588
17589 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17590 Declare an arg.
17591
17592 * lisp.h (Fnew_fontset): Declare.
17593
17594 * keymap.c (push_key_description): Call CHARACTERP correctly.
17595
17596 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17597 (face_for_char): Delete unused vars.
17598 (Fset_fontset_font): Doc fix. Delete unused vars.
17599
17600 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17601
17602 * composite.c (update_compositions): Declare arg.
17603
17604 * cm.c (calccost, cmgoto): Declare args.
17605
17606 * charset.c: Remove `emacs' conditional. Doc fixes.
17607 (map_char_table_for_charset): Declare.
17608
17609 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17610
17611 * ccl.c: Remove `emacs' conditional.
17612
17613 2008-02-01 Kenichi Handa <handa@m17n.org>
17614
17615 The following changes are to allow specifying multiple font
17616 patterns for a character range (specified by script or charset).
17617
17618 * Makefile.in (abbrev.o): Depend on syntax.h.
17619 (xfaces.o): Depend on charset.h.
17620
17621 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17622 SINGLE_BYTE_CHAR_P.
17623
17624 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17625
17626 * character.h (Vchar_script_table): Extern it.
17627
17628 * character.c (Vscript_alist): Delete.
17629 (Vchar_script_table, Qchar_script_table): New variable.
17630 (syms_of_character): Declare Vchar_script_table as a lisp variable
17631 and initialize it.
17632
17633 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17634 have property char-table-extra-slots, make no extra slot.
17635
17636 * dispextern.h (struct face): Delete member `charset'.
17637 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17638 SINGLE_BYTE_CHAR_P.
17639 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17640 Add prototypes.
17641 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17642 (generate_ascii_font_name): Rename from generate_ascii_font.
17643
17644 * fontset.h (get_font_repertory_func): New prototype.
17645 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17646 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17647
17648 * fontset.c (Qprepend, Qappend): New variables.
17649 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17650 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17651 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17652 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17653 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17654 (load_font_get_repertory): New functions.
17655 (fontset_set): Delete.
17656 (fontset_face): New arg FACE. Return face ID, not face.
17657 Complete re-write to handle new fontset structure. Change caller.
17658 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17659 (face_for_char): Don't call lookup_face.
17660 (make_fontset_for_ascii_face): New arg FACE.
17661 (fs_load_font): New arg CHARSET_ID. Don't check
17662 Vfont_encoding_alist here.
17663 (find_font_encoding): New function.
17664 (list_fontsets): Use STRINGP, not ! NILP.
17665 (accumulate_script_ranges): New function.
17666 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17667 re-written to handle new fontset structure.
17668 (Ffontset_font): Return a copy of element.
17669 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17670 docstring of font-encoding-alist.
17671
17672 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17673 (Fset_fotset_font): Fix arguments to 5.
17674
17675 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17676
17677 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17678 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17679 (highlight_trailing_whitespace): Adjust for the change of
17680 lookup_named_face.
17681
17682 * xfaces.c: Include charset.h.
17683 (load_face_font): Delete argument C. Change caller.
17684 (generate_ascii_font_name): Rename from generate_ascii_font.
17685 (font_name_registry): New function.
17686 (cache_face): Store ascii faces before non-ascii faces in buckets.
17687 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17688 Lookup only ascii faces.
17689 (lookup_non_ascii_face): New function.
17690 (lookup_named_face): Delete argument C. Change caller.
17691 (lookup_derived_face): Delete argument C. Change caller.
17692 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17693 a string, just call font_list with it.
17694 (choose_face_font): Delete arguments FACE and C. New arg
17695 FONT_SPEC. Change caller.
17696 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17697 Change caller.
17698 (realize_non_ascii_face): New function.
17699 (realize_x_face): Call load_face_font here.
17700 (realize_tty_face): Delete argument C. Change caller.
17701 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17702 get a face ID.
17703 (dump_realized_face): Don't print charset of FACE.
17704
17705 * xfns.c (x_set_font): Always call x_new_fontset and
17706 store_frame_parameter.
17707 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17708 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17709
17710 * xterm.h (x_get_font_repertory): Extern it.
17711
17712 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17713 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17714 it->multibyte_p is zero.
17715 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17716 (x_new_fontset): If FONTSETNAME doesn't match any existing
17717 fontsets, create a new one.
17718 (x_get_font_repertory): New function.
17719
17720 2008-02-01 Kenichi Handa <handa@m17n.org>
17721
17722 * coding.c (Ffind_coding_systems_region_internal): Detect an
17723 ASCII only string correctly.
17724
17725 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17726 version is 0.
17727
17728 2008-02-01 Kenichi Handa <handa@m17n.org>
17729
17730 * lread.c: Include "coding.h".
17731 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17732 (load_each_byte, unread_char): New variables.
17733 (readchar_backlog): Delete.
17734 (readchar): Return a character unless load_each_byte is nonzero.
17735 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17736 cons. If unread_char is not -1, simply return it.
17737 (unreadchar): Handle the case that readcharfun is
17738 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17739 (read_multibyte): Delete.
17740 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17741 (read_emacs_mule_char): New functions.
17742 (Fload): Even if the file doesn't have the extension ".elc", if
17743 safe_to_load_p returns a positive version number, assume that the
17744 file contains bytecompiled code. If the version is less than 22,
17745 load the file while decoding multibyte sequences by emacs-mule.
17746 (readevalloop): Don't use readchar_backlog.
17747 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17748 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17749 (read_escape): Delete the arg BYTEREP.
17750 (read1): Set load_each_byte to 1 temporarily while handling
17751 #@NUMBER. Don't call read_multibyte.
17752 (read_vector): Call Fread with a cons. If readcharfun is
17753 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17754 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17755 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17756 and Qload_force_doc_strings.
17757
17758 2008-02-01 Kenichi Handa <handa@m17n.org>
17759
17760 * xdisp.c (face_before_or_after_it_pos): Call
17761 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17762
17763 2008-02-01 Kenichi Handa <handa@m17n.org>
17764
17765 * character.h (TRAILING_CODE_P): New macro.
17766 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17767 (string_char_with_unification): Fix prototype.
17768 (Vscript_alist): Extern it.
17769
17770 * character.c (Vscript_alist): New variable.
17771 (string_char_with_unification, str_as_unibyte)
17772 (string_escape_byte8): Add `const' to local variables.
17773 (syms_of_character): Declare script-alist as a Lisp variable.
17774
17775 * charset.h (Vcharset_ordered_list): Extern it.
17776 (charset_ordered_list_tick): Extern it.
17777 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17778 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17779 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17780 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17781 (Funify_charset): Adjust for the change of Funify_charset.
17782
17783 * charset.c (charset_ordered_list_tick): New variable.
17784 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17785 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17786 deunify intead of unify a charset.
17787 (string_xstring_p): Add `const' to local variables.
17788 (find_charsets_in_text): Add `const' to arguments and local variables.
17789 (encode_char): Adjust for the change of Funify_charset. Fix
17790 detecting of invalid code.
17791 (Fset_charset_priority): Increment charset_ordered_list_tick.
17792 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17793 and TO_CODE.
17794
17795 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17796 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17797 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17798 (decode_coding_ccl, consume_chars)
17799 (Ffind_coding_systems_region_internal)
17800 (Fcheck_coding_systems_region): Add `const' to local variables.
17801
17802 * print.c (print_object): Use octal form for printing the
17803 contents of a bool vector.
17804
17805 2008-02-01 Dave Love <fx@gnu.org>
17806
17807 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17808 <version == 20>: Refuse to load.
17809
17810 2008-02-01 Dave Love <fx@gnu.org>
17811
17812 * fns.c: Move coding.h.
17813 (Qcodeset, Qdays, Qmonths): New.
17814 (concat): Use CHARACTERP instead of INTEGERP.
17815 (Flocale_codeset): Delete.
17816 (Flanginfo): New function.
17817 (syms_of_fns): Change accordingly.
17818
17819 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17820
17821 2008-02-01 Dave Love <fx@gnu.org>
17822
17823 * casetab.c (init_casetab_once, init_casetab_once): Fix
17824 CHAR_TABLE_SET call.
17825
17826 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17827
17828 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17829
17830 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17831 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17832 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17833
17834 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17835
17836 * coding.c (ENCODE_DESIGNATION, decode_eol)
17837 (make_conversion_work_buffer, code_conversion_restore)
17838 (Fdefine_coding_system_internal): Convert Lisp types.
17839 (code_conversion_restore): Use EQ, not ==.
17840 (Fencode_coding_string): Fix code_convert_string call.
17841
17842 * coding.h (code_convert_region): Fix prototype.
17843
17844 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17845
17846 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17847 (Ffontset_info): Convert Lisp types.
17848
17849 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17850
17851 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17852
17853 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17854
17855 * chartab.c: Include "...h", not <...h> in some cases.
17856
17857 * callproc.c (Fcall_process): Remove unused variables.
17858
17859 2008-02-01 Dave Love <fx@gnu.org>
17860
17861 * coding.c (Fset_coding_system_priority): Allow null arg list.
17862
17863 2008-02-01 Dave Love <fx@gnu.org>
17864
17865 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17866 (Fself_insert_and_exit): Use CHARACTERP.
17867
17868 * callproc.c (Fcall_process): Remove unused vars.
17869
17870 * xterm.c (XTread_socket): Add extra dead keysyms.
17871
17872 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17873
17874 * dispextern.h: Remove prototypes for redraw_frame,
17875 redraw_garbaged_frames.
17876
17877 * cmds.c (Fself_insert_command): Use CHARACTERP.
17878
17879 * chartab.c (make_sub_char_table): Remove unused var.
17880 (Fset_char_table_default, Fmap_char_table): Doc fix.
17881
17882 * keymap.c (access_keymap): Remove generic char code.
17883 (push_key_description): Use CHARACTERP.
17884
17885 2008-02-01 Dave Love <fx@gnu.org>
17886
17887 * charset.c: Doc fixes.
17888 (Funify_charset): Extra checking.
17889
17890 2008-02-01 Dave Love <fx@gnu.org>
17891
17892 * lread.c: Remove some unused variables.
17893 (safe_to_load_p): If safe, return the magic number version byte.
17894 (Fload): Maybe use load-with-code-conversion.
17895
17896 2008-02-01 Kenichi Handa <handa@m17n.org>
17897
17898 * category.c (Fmodify_category_entry): Don't modify the contents
17899 of category_set for characters out of the range. Avoid
17900 unnecessary modification.
17901
17902 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17903 Vchar_unify_table. The default value of the table is now nil.
17904
17905 * character.c (syms_of_character): Setup Vchar_width_table for
17906 eight-bit-control and raw-byte chars.
17907
17908 * charset.h (enum define_charset_arg_index): Delete
17909 charset_arg_parents and add charset_arg_subset and
17910 charset_arg_superset.
17911 (enum charset_attr_index): Delete charset_parents and add
17912 charset_subset and charset_superset.
17913 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17914 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17915 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17916 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17917 (CHARSET_SUPERSET): New macros.
17918 (charset_work): Extern it.
17919 (ENCODE_CHAR): Use charset_work.
17920 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17921 (map_charset_chars): Extern it.
17922
17923 * charset.c (load_charset_map): Set the default value of encoder
17924 and deunifier char-tables to nil.
17925 (map_charset_chars): Change argument. Change callers. Use
17926 map_char_table_for_charset instead of map_char_table.
17927 (Fmap_charset_chars): New optional args from_code and to_code.
17928 (Fdefine_charset_internal): Adjust for the change of
17929 `define-charset' (:parents -> :subset or :superset).
17930 (charset_work): New variable.
17931 (encode_char, syms_of_charset): Adjust for the change of
17932 Fdefine_charset_internal.
17933 (Ffind_charset_string): Setup the vector `charsets' correctly.
17934
17935 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17936 the previous change.
17937 (char_table_ref_and_range): Adjust for the above change.
17938 (map_sub_char_table_for_charset): New function.
17939 (map_char_table_for_charset): New function.
17940
17941 * keymap.c (describe_vector): Handle a char-table directly here.
17942 (describe_char_table): Delete.
17943
17944 * lisp.h (map_charset_chars): Delete.
17945
17946 2008-02-01 Dave Love <fx@gnu.org>
17947
17948 * fns.c (count_combining): Comment out (unused).
17949 (Flocale_codeset): New.
17950 (syms_of_fns): Defsubr it.
17951
17952 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17953 (size_t): Remove.
17954
17955 2008-02-01 Dave Love <fx@gnu.org>
17956
17957 * Makefile.in (chartab.o): Depend on charset.h.
17958
17959 2008-02-01 Kenichi Handa <handa@m17n.org>
17960
17961 * character.c (syms_of_character): Set the default value of
17962 Vprintable_chars to Qnil.
17963
17964 2008-02-01 Dave Love <fx@gnu.org>
17965
17966 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17967
17968 2008-02-01 Kenichi Handa <handa@m17n.org>
17969
17970 * charset.c (load_charset_map): Handle the case that from < to
17971 correctly.
17972
17973 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17974 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17975 Pay attention to raw-8-bit chars.
17976
17977 2008-02-01 Kenichi Handa <handa@m17n.org>
17978
17979 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17980 It is not bytecompiled now.
17981
17982 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17983 (charset_jisx0208): New variables.
17984 (Fdefine_charset_internal): Setup them if appropriate.
17985 (init_charset_once): Initialize them to -1.
17986
17987 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17988 (charset_jisx0208): Extern them.
17989
17990 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17991 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17992 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17993 (setup_iso_safe_charsets): Fix arguments to Fassq.
17994 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17995 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17996 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17997 (encode_coding_iso_2022): Change the 1st arg to
17998 ENCODE_ISO_CHARACTER to a variable.
17999
18000 2008-02-01 Kenichi Handa <handa@m17n.org>
18001
18002 * charset.h (enum define_charset_arg_index): New enums
18003 charset_arg_min_code and charset_arg_max_code.
18004 (struct charset): New member char_index_offset.
18005
18006 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
18007 Take charset->char_index_offset into account.
18008 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
18009 args[charset_arg_max_code]. Setup charset.char_index_offset.
18010 (syms_of_charset): Fix args to Fdefine_charset_internal.
18011
18012 2008-02-01 Dave Love <fx@gnu.org>
18013
18014 * coding.c (decode_coding_utf_8): Reject overlong sequences.
18015
18016 2008-02-01 Dave Love <fx@gnu.org>
18017
18018 * coding.c: Doc fixes.
18019 (Fcoding_system_aliases): Fix return value.
18020 (Qmac): Remove (duplicated) definition.
18021
18022 2008-02-01 Dave Love <fx@gnu.org>
18023
18024 * charset.c (Fcharset_priority_list, Fset_charset_priority):
18025 New functions.
18026
18027 * character.c (Fstring): Doc fix.
18028
18029 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
18030
18031 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
18032 (font-encoding-alist): Doc fix.
18033
18034 2008-02-01 Dave Love <fx@gnu.org>
18035
18036 * term.c (costs_set): Declare static, non-initialized for pcc.
18037 (encode_terminal_code): Remove unused var.
18038
18039 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18040 for K&R.
18041
18042 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
18043
18044 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
18045 (suffixes): Move out of make_subsidiaries for K&R.
18046
18047 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
18048
18049 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
18050
18051 2008-02-01 Dave Love <fx@gnu.org>
18052
18053 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
18054
18055 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
18056
18057 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
18058
18059 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
18060
18061 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
18062
18063 2008-02-01 Kenichi Handa <handa@m17n.org>
18064
18065 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
18066 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
18067
18068 2008-02-01 Kenichi Handa <handa@m17n.org>
18069
18070 * coding.c (decode_coding_charset): Adjust for the change of
18071 Fdefine_coding_system_internal.
18072 (Fdefine_coding_system_internal): For a coding system of
18073 `charset' type, store a list of charset IDs in
18074 `charset_attr_charset_valids' element of coding attributes.
18075
18076 2008-02-01 Kenichi Handa <handa@m17n.org>
18077
18078 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
18079 (emacs_mule_char): New arg src. Delete arg `composition'. Change
18080 caller. Handle 2-byte and 3-byte charsets correctly.
18081 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
18082 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
18083 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
18084 (DECODE_EMACS_MULE_21_COMPOSITION): Call
18085 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
18086 sequence.
18087 (decode_coding_emacs_mule): Handle composition correctly. Rewind
18088 `src' and `consumed_chars' correctly before calling emacs_mule_char.
18089 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
18090 and alt&rule composition.
18091 (decode_coding_iso_2022): Handle composition correctly.
18092 (init_coding_once): Setup emacs_mule_bytes for private charsets.
18093
18094 * charset.c (Fdefine_charset_internal): Fix bug for the case of
18095 re-defining a charset. If the charset has :emacs-mule-id, setup
18096 emacs_mule_bytes.
18097 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18098
18099 2008-02-01 Kenichi Handa <handa@m17n.org>
18100
18101 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18102 (encode_coding_big5, encode_coding_charset): If coding requires safe
18103 encoding, produce a character specified by
18104 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18105
18106 2008-02-01 Dave Love <fx@gnu.org>
18107
18108 * xterm.c (XSetIMValues): Declare.
18109
18110 * process.c: Conditionally include sys/wait.h, pty.h.
18111
18112 * print.c (print_object): Fix print format for 64-bit systems.
18113
18114 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18115
18116 * buffer.c (emacs_strerror): Declare.
18117
18118 * fontset.c (Fclear_face_cache): Declare.
18119 (accumulate_font_info): Comment-out (unused).
18120 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18121 variables.
18122
18123 * character.h (string_escape_byte8): Declare.
18124
18125 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18126 unused vars.
18127 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18128 (Fmap_charset_chars): Doc fix.
18129
18130 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18131 (Fset_coding_system_priority, Fset_coding_system_priority)
18132 (Fdefine_coding_system_internal): Doc fix.
18133
18134 2008-02-01 Dave Love <fx@gnu.org>
18135
18136 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18137
18138 2008-02-01 Kenichi Handa <handa@m17n.org>
18139
18140 * character.c (string_escape_byte8): Make multibyte string with
18141 correct size.
18142
18143 * charset.c (Fmake_char): Delete unnecessary code.
18144
18145 2008-02-01 Kenichi Handa <handa@m17n.org>
18146
18147 * xfns.c (x_encode_text): Allocate coding.destination here, and
18148 call encode_coding_object with dst_object Qnil.
18149
18150 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18151 multibyte form correctly.
18152
18153 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18154 against Vfont_encoding_alist.
18155
18156 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18157 handling of charset list.
18158 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18159 (decode_coding_object): Move point to coding->dst_pos before
18160 calling post-read-conversion function.
18161 (encode_coding_object): Give correct arguments to
18162 pre-write-conversion. Ignore the return value of
18163 pre-write-conversion function. Pay attention to the case that
18164 pre-write-conversion changes the current buffer. If dst_object is
18165 Qt, even if coding->src_bytes is zero, allocate at least one byte
18166 to coding->destination.
18167
18168 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18169
18170 * charset.c (Fmake_char): Make it more backward compatible.
18171 (Fmap_charset_chars): Fix docstring.
18172
18173 2008-02-01 Dave Love <fx@gnu.org>
18174
18175 * coding.c: Doc fixes.
18176 (Fdefine_coding_system_alias): Use names, not symbols, in
18177 coding-system-alist.
18178
18179 2008-02-01 Kenichi Handa <handa@m17n.org>
18180
18181 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18182 of calling free_realized_face.
18183
18184 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
18185
18186 * charset.c (read_hex): Don't treat SPC as a comment starter.
18187 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18188 (Fdecode_char): Fix typo.
18189
18190 2008-02-01 Kenichi Handa <handa@m17n.org>
18191
18192 * charset.h (struct charset): New member `code_space_mask'.
18193
18194 * coding.c (coding_set_source): Delete the local variable beg_byte.
18195 (encode_coding_charset, Fdefine_coding_system_internal):
18196 Delete the local variable charset.
18197 (Fdefine_coding_system_internal): Setup
18198 attrs[coding_attr_charset_valids] correctly.
18199
18200 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18201 member to check if CODE is valid or not.
18202 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18203 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18204 is within the range of charset->min_code and carset->max_code.
18205
18206 2008-02-01 Dave Love <fx@gnu.org>
18207
18208 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18209
18210 * dispextern.h (generate_ascii_font): Fix return type.
18211
18212 * xfaces.c (generate_ascii_font): Fix arg declaration.
18213
18214 * coding.c (coding_inherit_eol_type)
18215 (Fset_terminal_coding_system_internal)
18216 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18217
18218 2008-02-01 Kenichi Handa <handa@m17n.org>
18219
18220 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18221 multiple charsets correctly.
18222
18223 2008-02-01 Kenichi Handa <handa@m17n.org>
18224
18225 * search.c (boyer_moore): Fix handling of multibyte character
18226 translation.
18227
18228 * xdisp.c (display_mode_element): When the variable `elt' is
18229 changed, update `this' and `lisp_string'.
18230
18231 2008-02-01 Kenichi Handa <handa@m17n.org>
18232
18233 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18234
18235 * callproc.c (Fcall_process): Be sure to give the current buffer
18236 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18237
18238 * charset.c (struct charset_map_entries): New struct.
18239 (load_charset_map): Rename from parse_charset_map. New args
18240 entries and n_entries. Change caller.
18241 (load_charset_map_from_file): Rename from load_charset_map.
18242 Change caller. New arg control_flag. Call load_charset_map at
18243 the tail.
18244 (load_charset_map_from_vector): New function.
18245 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18246 (encode_char): If the charset is compact, change a character index
18247 to a code point.
18248
18249 * coding.c (coding_alloc_by_making_gap): Check the case that the
18250 source and destination are the same correctly.
18251 (decode_coding_raw_text): Set coding->consumed_char and
18252 coding->consumed to 0.
18253 (produce_chars): If coding->chars_at_source is nonzero, update
18254 coding->consumed_char and coding->consumed before calling
18255 alloc_destination.
18256 (Fdefine_coding_system_alias): Register ALIAS in
18257 Vcoding_system_alist.
18258 (syms_of_coding): Define `no-conversion' coding system at the tail.
18259
18260 * fileio.c (Finsert_file_contents): Set coding_system instead of
18261 val. If the current buffer is multibyte, always call
18262 decode_coding_gap.
18263
18264 * xfaces.c (try_font_list): Give higher priority to fontset's
18265 family than face's family.
18266
18267 2008-02-01 Kenichi Handa <handa@m17n.org>
18268
18269 * callproc.c (Fcall_process): Be sure to give the current buffer
18270 to decode_coding_c_string.
18271
18272 * xfaces.c (try_font_list): Give a family specified in a fontset
18273 higher priority than a family specified in a face.
18274
18275 2008-02-01 Kenichi Handa <handa@m17n.org>
18276
18277 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18278 Fix arguments to insert_from_buffer.
18279
18280 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18281
18282 2008-02-01 Kenichi Handa <handa@m17n.org>
18283
18284 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18285 (decode_coding_gap): Set coding->dst_multibyte correctly.
18286
18287 2008-02-01 Kenichi Handa <handa@m17n.org>
18288
18289 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18290 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18291 (encode_coding_utf_16): Substitute coding->default_char for
18292 non-Unicode characters.
18293 (decode_coding): Don't call record_insert here.
18294 (setup_coding_system): Initialize `surrogate' of
18295 coding->spec.utf_16 to 0.
18296 (EMIT_ONE_BYTE): Fix for multibyte case.
18297
18298 * insdel.c (insert_from_gap): Call record_insert.
18299
18300 2008-02-01 Kenichi Handa <handa@m17n.org>
18301
18302 * casefiddle.c (casify_region): Fix multibyte case.
18303
18304 * character.c (c_string_width): Add return type `int'.
18305 (char_string_with_unification): Delete arg ADVANCED.
18306
18307 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18308 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18309 (CHAR_STRING_ADVANCE): Make it do-while statement.
18310
18311 * chartab.c (sub_char_table_set_range): Optimize for the case
18312 DEPTH == 3. Add workaround code for a GCC optimization bug.
18313
18314 * charset.c (parse_charset_map): Remove an unused variable.
18315
18316 * coding.c: Delete unused variables.
18317
18318 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18319 earlier. If inserted is zero and the coding system doesn't
18320 require flushing, don't call decode_coding_gap.
18321
18322 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18323
18324 2008-02-01 Kenichi Handa <handa@m17n.org>
18325
18326 The following changes are for using Unicode as an internal
18327 character model, and use UTF-8 format for buffer/string
18328 representation.
18329
18330 * .gdbinit (xchartable): Adjust for the change of char table structure.
18331 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18332
18333 * Makefile.in (obj): Add character.o and chartab.o.
18334 (lisp, shortlisp): Remove utf-8.elc.
18335 (*.o): For many files, change dependency on charset.h to
18336 character.h, and add dependency on character.h.
18337 (character.o, chartab.o): New targets.
18338
18339 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18340 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18341 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18342 of "charset.h".
18343
18344 * dired.c, filelock.c: Include "character.h".
18345
18346 * alloc.c: Include "character.h" instead of "charset.h".
18347 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18348 (syms_of_alloc): Remove defsubr for Smake_char_table.
18349
18350 * buffer.c: Include "character.h" instead of "charset.h", don't
18351 include "coding.h".
18352 (Fset_buffer_multibyte): Adjust for UTF-8.
18353
18354 * buffer.h: EXFUN Fbuffer_live_p.
18355
18356 * callproc.c: Include "character.h" instead of "charset.h".
18357 (Fcall_process): Big change for the new code-conversion APIs.
18358
18359 * casetab.c: Include "character.h" instead of "charset.h".
18360 (set_canon, set_identity, shuffle): Adjust for the new
18361 map_char_table spec.
18362 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18363 accessing the char table structure.
18364
18365 * chartab.c: New file that implements char table.
18366
18367 * category.c: Include "character.h".
18368 (copy_category_entry): New function.
18369 (copy_category_table): Call map_char_table and copy_category_entry.
18370 (Fmake_category_table): Initialize all top-level slots.
18371 (char_category_set): New function.
18372 (modify_lower_category_set): Delete.
18373 (Fmodify_category_entry): Call char_table_ref_and_range.
18374
18375 * category.h (CATEGORY_SET): Just call char_category_set.
18376
18377 * ccl.c: Include "character.h".
18378 (Qccl, Qcclp): New variables.
18379 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18380 it's less than 256.
18381 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18382 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18383 and DST type.
18384 (ccl_driver): Change types of argument, adjust code accordingly.
18385 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18386 ccl_driver.
18387 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18388
18389 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18390 New members src_multibyte, dst_multibyte, consumed, and produced.
18391 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18392 (CODING_SPEC_CCL_PROGRAM): New macro.
18393 (ccl_driver): Update prototype.
18394 (Qccl, Qcclp, Fccl_program_p): Extern them.
18395 (CHECK_CCL_PROGRAM): New macro.
18396
18397 * character.c, character.h, chartab.c: New files.
18398
18399 * charset.c: Mostly re-written. Move character and multibyte sequence
18400 handling codes to character.c.
18401
18402 * charset.h: Mostly re-written. Move character and multibyte sequence
18403 handling codes to character.h.
18404
18405 * coding.c, coding.h: Mostly re-written.
18406
18407 * composite.c: Include "character.h" instead of "charset.h".
18408 (CHAR_WIDTH): Move to character.h.
18409 (HASH_KEY, HASH_VALUE): Delete.
18410
18411 * composite.h (enum composition_method): Change order of enumeration
18412 symbols.
18413
18414 * data.c: Include "character.h" instead of "charset.h".
18415 (Faref): Call CHAR_TABLE_REF for a char table.
18416 (Faset): Call CHAR_TABLE_SET for a char table.
18417
18418 * dispextern.h (free_realized_face, check_face_attribytes)
18419 (generate_ascii_font): Extern them.
18420 (free_realized_multibyte_face): Delete extern.
18421
18422 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18423 table structure.
18424
18425 * editfns.c: Include "character.h" instead of "charset.h".
18426 (Fchar_to_string): Always call CHAR_STRING.
18427
18428 * emacs.c (main): Call init_charset_once, init_charset,
18429 syms_of_chartab, and syms_of_character.
18430
18431 * fileio.c: Include "character.h" instead of "charset.h".
18432 (Finsert_file_contents): Big change for the new code-conversion API.
18433 (choose_write_coding_system, Fwrite_region): Likewise.
18434 (build_annotations_2): Delete.
18435 (e_write): Big change for the new code-conversion API.
18436
18437 * fns.c: Include "character.h" instead of "charset.h".
18438 (copy_sub_char_table): Move to chartab.c.
18439 (Fcopy_sequence): Call copy_char_table for a char table.
18440 (concat): Delete codes calling count_multibyte.
18441 (string_char_to_byte, string_byte_to_char): Adjust for the new
18442 multibyte form.
18443 (internal_equal): Adjust for the change of char table structure.
18444 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18445 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18446 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18447 (char_table_translate, optimize_sub_char_table)
18448 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18449 chartab.c.
18450 (char_table_ref_and_index): Delete.
18451 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18452 (Fmd5): Call preferred_coding_system instead of accessing
18453 Vcoding_category_list. Adjust for the new code-conversion API.
18454 (syms_of_fns): Move defsubr for char table related functions to
18455 chartab.c.
18456
18457 * fontset.c: Mostly re-written.
18458
18459 * fontset.h (struct font_info): Change type of the member encoding_type.
18460 (enum FONT_SPEC_INDEX): New enum.
18461 (fontset_font_pattern, fs_load_font): Update prototype.
18462 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18463
18464 * indent.c: Include "character.h" instead of "charset.h".
18465 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18466
18467 * insdel.c: Include "character.h" instead of "charset.h".
18468 (copy_text): Don't refer to Vnonascii_translation_table.
18469 (insert_from_gap): New function.
18470
18471 * keyboard.c: Include "character.h" instead of "charset.h".
18472 (command_loop_1): Never call direct_output_forward_char before
18473 a non-ASCII character.
18474 (read_char): If Vkeyboard_translate_table is a char table, always
18475 translate a character.
18476
18477 * keymap.c: Include "character.h".
18478 (store_in_keymap): Handle the case that IDX is a cons.
18479 (Fdefine_key): Handle the case that KEY is a cons and the car part
18480 is also a cons (range).
18481 (push_key_description): Adjust for the new character code.
18482 (describe_vector): Call describe_char_table for a char table.
18483 (describe_char_table): New function.
18484
18485 * keymap.h (describe_char_table): Extern it.
18486
18487 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18488 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18489 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18490 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18491 Delete.
18492 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18493 structure.
18494 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18495 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18496 (CHARTAB_SIZE_BITS_3): New macros.
18497 (chartab_size): Extern it.
18498 (struct Lisp_Char_Table): Re-design.
18499 (struct Lisp_Sub_Char_Table): New structure.
18500 (HASH_KEY, HASH_VALUE): Move from fns.c.
18501 (CHARACTERBITS): Define as 22.
18502 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18503 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18504 (GC_SUB_CHAR_TABLE_P): New macro.
18505 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18506 (code_convert_string_norecord): Deleted extern.
18507 (init_character_once, syms_of_character, init_charset)
18508 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18509
18510 * lread.c: Include "character.h".
18511 (read_multibyte): New arg NBYTES.
18512 (read_escape): Change the meaning of returned *BYTEREP.
18513 (to_multibyte): Delete.
18514 (read1): Adjust the handling of char table and string.
18515
18516 * print.c: Include "character.h" instead of "charset.h".
18517 (print_string): Convert 8-bit raw bytes to octal form by
18518 string_escape_byte8.
18519 (print_object): Adjust for the new multibyte form. Print 8-bit
18520 raw bytes always in octal form. Handle sub char table correctly.
18521
18522 * process.c: Include "character.h" instead of "charset.h".
18523 (read_process_output, send_process): Adjust for the new
18524 code-conversion API.
18525
18526 * puresize.h (BASE_PURESIZE): Increase.
18527
18528 * regex.c: Include "character.h" instead of "charset.h".
18529 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18530 (regex_compile): Accept a range whose starting and ending
18531 character have different leading bytes.
18532 (analyse_first): Adjust for the above change.
18533
18534 * search.c: Include "character.h" instead of "charset.h".
18535 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18536 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18537
18538 * syntax.c: Include "character.h" instead of "charset.h".
18539 (syntax_parent_lookup): Delete.
18540 (Fmodify_syntax_entry): Accept a cons as CHAR.
18541 (skip_chars): Adjust for the new multibyte form.
18542 (init_syntax_once): Call char_table_set_range instead of directly
18543 accessing the structure of a char table.
18544
18545 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18546 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18547 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18548 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18549
18550 * term.c: Include "buffer.h" and "character.h".
18551 (encode_terminal_code, write_glyphs): Adjust for the new
18552 code-conversion API.
18553 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18554
18555 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18556
18557 * xdisp.c: Include "character.h".
18558 (get_next_display_element): Adjust for the new multibyte form.
18559 (disp_char_vector): Adjust for the new char table structure.
18560 (decode_mode_spec_coding): Adjust for the new structure of
18561 coding system.
18562 (decode_mode_spec): Adjust for the new code-conversion API.
18563
18564 * xfaces.c: Include "character.h" instead of "charset.h".
18565 (load_face_font): Adjust for the change of choose_face_font and
18566 FS_LOAD_FONT.
18567 (generate_ascii_font): New function.
18568 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18569 (set_font_frame_param): Adjust for the change of choose_face_font.
18570 (free_realized_face): Make it public.
18571 (free_realized_faces_for_fontset): Rename from
18572 free_realized_multibyte_face. Free also faces realized for ASCII.
18573 (choose_face_font): Change arguments. Adjust for the change of
18574 fontset_font_pattern and FS_LOAD_FONT.
18575
18576 * xfns.c: Include "character.h".
18577 (x_encode_text): Adjust for the new code-conversion API.
18578
18579 * xselect.c: Don't include "charset.h".
18580 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18581
18582 * xterm.c: Include "character.h".
18583 (x_encode_char): New argument CHARSET. Change caller.
18584 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18585 Call ENCODE_CHAR instead of SPLIT_CHAR.
18586 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18587 CHAR_WIDTH instead of CHARSET_WIDTH.
18588 (XTread_socket): Adjust for the new code-conversion API.
18589 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18590 (x_load_font): Adjust for the change of struct font.
18591
18592 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18593
18594 * xfaces.c (face_at_buffer_position): Remove unused vars.
18595
18596 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18597
18598 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18599 Fix overflow checking.
18600
18601 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18602
18603 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18604 Cancel previous change.
18605
18606 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18607
18608 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18609 ccl->eight_bit_control. Fix check for buffer overflow.
18610 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18611 (ccl_driver): Initialize extra_bytes to 0.
18612
18613 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18614
18615 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18616 return it ORed with ctrl_modifier.
18617
18618 2008-01-29 Miles Bader <miles@gnu.org>
18619
18620 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18621
18622 2008-01-28 Jason Rumney <jasonr@gnu.org>
18623
18624 * w32.c (stat): Don't double check for networked drive.
18625
18626 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18627
18628 * window.c (run_window_configuration_change_hook): New function.
18629 Code extracted from set_window_buffer. Set the selected frame.
18630 (set_window_buffer): Use it.
18631 * window.h (run_window_configuration_change_hook): Declare.
18632 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18633
18634 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18635
18636 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18637
18638 * Makefile.in: Remove references to unused macros.
18639
18640 2008-01-26 Eli Zaretskii <eliz@gnu.org>
18641
18642 * w32.c (g_b_init_get_sid_sub_authority)
18643 (g_b_init_get_sid_sub_authority_count): New static variables.
18644 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18645 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18646 (init_user_info): Use them to retrieve uid and gid.
18647 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18648 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18649 st_uid and st_gid of the file.
18650
18651 2008-01-26 Jason Rumney <jasonr@gnu.org>
18652
18653 * w32.c (logon_network_drive): New function.
18654 (stat): Use it.
18655
18656 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
18657
18658 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18659 invisible text covered with an ellipsis.
18660
18661 2008-01-25 Richard Stallman <rms@gnu.org>
18662
18663 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18664 jump back to beginning. Move some other initializations after that.
18665 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18666 New variables.
18667 (syms_of_xdisp): Init them.
18668
18669 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18670
18671 * buffer.c (reset_buffer_local_variables):
18672 Implement `permanent-local-hook'.
18673 (Qpermanent_local_hook): New variable.
18674 (syms_of_buffer): Init and staticpro it.
18675
18676 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
18677
18678 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18679
18680 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18681
18682 * fns.c (Fclrhash): Return TABLE.
18683
18684 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18685
18686 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18687 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18688 is set even without positional changes.
18689 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18690
18691 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18692
18693 2008-01-23 Jason Rumney <jasonr@gnu.org>
18694
18695 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18696
18697 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18698 the unicode range available in MULE by locale-coding-system.
18699 Improve dbcs lead byte detection. Set event timestamp and modifiers
18700 earlier.
18701
18702 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18703
18704 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18705 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18706 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18707 when used on child processes.
18708
18709 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
18710
18711 * dbusbind.c (Fdbus_method_return_internal): Rename from
18712 Fdbus_method_return.
18713 (Fdbus_unregister_object): Move to dbus.el.
18714 (Fdbus_call_method, Fdbus_method_return_internal)
18715 (Fdbus_send_signal): Improve debug messages.
18716
18717 2008-01-20 Martin Rudalics <rudalics@gmx.at>
18718
18719 * undo.c (undo_inhibit_record_point): New variable.
18720 (syms_of_undo): Initialize it.
18721 (record_point): Don't record point when undo_inhibit_record_point
18722 is set.
18723
18724 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18725
18726 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18727
18728 * xdisp.c (Qauto_hscroll_mode): New var.
18729 (syms_of_xdisp): Initialize it.
18730 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18731 window's buffer.
18732 (hscroll_windows): Don't check automatic_hscrolling_p here.
18733
18734 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18735 vscroll if we're setting window-buffer to the value it already has.
18736
18737 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18738
18739 * m/intel386.h: Remove references to XENIX.
18740
18741 2008-01-17 Andreas Schwab <schwab@suse.de>
18742
18743 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18744 instead of HAVE_X86_64_LIB64_DIR.
18745 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18746
18747 2008-01-17 Glenn Morris <rgm@gnu.org>
18748
18749 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18750 to HAVE_X86_64_LIB64_DIR.
18751
18752 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18753
18754 * s/irix3-3.h:
18755 * s/irix4-0.h:
18756 * s/386-ix.h:
18757 * s/domain.h:
18758 * s/hpux9-x11r4.h:
18759 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18760
18761 * sysdep.c: Remove code containing references to symbols defined
18762 by unsupported systems.
18763
18764 2008-01-16 Glenn Morris <rgm@gnu.org>
18765
18766 * coding.c (select-safe-coding-system-function): Doc fix.
18767
18768 2008-01-15 Glenn Morris <rgm@gnu.org>
18769
18770 * config.in: Revert 2008-01-13 change: this is a generated file.
18771
18772 2008-01-13 Tom Tromey <tromey@redhat.com>
18773
18774 * lisp.h: Fix typo.
18775
18776 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18777
18778 * m/sequent-ptx.h:
18779 * m/sequent.h:
18780 * s/ptx.h:
18781 * s/ptx4-2.h:
18782 * s/ptx4.h: Remove files for systems no longer supported.
18783
18784 * callproc.c (Fcall_process): Fix previous change.
18785
18786 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18787
18788 * unexsunos4.c: Remove file, system not supported anymore.
18789
18790 * m/mips.h:
18791 * m/intel386.h:
18792 * callproc.c:
18793 * config.in:
18794 * ecrt0.c:
18795 * emacs.c:
18796 * fileio.c:
18797 * frame.c:
18798 * getpagesize.h:
18799 * keyboard.c:
18800 * lread.c:
18801 * process.c:
18802 * puresize.h:
18803 * sysdep.c:
18804 * systty.h:
18805 * syswait.h:
18806 * unexec.c:
18807 * xdisp.c:
18808 * alloc.c: Remove code containing references to symbols defined by
18809 unsupported systems.
18810
18811 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18812
18813 * coding.c (detect_coding_mask): Fix previous change.
18814
18815 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18816
18817 * coding.c (detect_coding_iso2022): New arg
18818 latin_extra_code_state. Allow Latin extra codes only
18819 when *latin_extra_code_state is nonzero.
18820 (detect_coding_mask): If there is a NULL byte, detect the encoding
18821 as UTF-16 or binary. If Latin extra codes exist, detect the
18822 encoding as ISO-2022 only when there's no other proper encoding is
18823 found.
18824
18825 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18826
18827 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18828 #ifdef MAC_OS.
18829
18830 2008-01-08 Richard Stallman <rms@gnu.org>
18831
18832 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18833
18834 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
18835
18836 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18837 menu bar in parentheses.
18838
18839 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18840
18841 * m/7300.h:
18842 * m/acorn.h:
18843 * m/alliant-2800.h:
18844 * m/alliant.h:
18845 * m/alliant1.h:
18846 * m/alliant4.h:
18847 * m/altos.h:
18848 * m/amdahl.h:
18849 * m/apollo.h:
18850 * m/att3b.h:
18851 * m/aviion-intel.h:
18852 * m/aviion.h:
18853 * m/celerity.h:
18854 * m/clipper.h:
18855 * m/cnvrgnt.h:
18856 * m/convex.h:
18857 * m/cydra5.h:
18858 * m/delta88k.h:
18859 * m/dpx2.h:
18860 * m/dual.h:
18861 * m/elxsi.h:
18862 * m/f301.h:
18863 * m/gould-np1.h:
18864 * m/gould.h:
18865 * m/i860.h:
18866 * m/ibmps2-aix.h:
18867 * m/ibmrt-aix.h:
18868 * m/ibmrt.h:
18869 * m/irist.h:
18870 * m/is386.h:
18871 * m/isi-ov.h:
18872 * m/mega68.h:
18873 * m/mg1.h:
18874 * m/news-r6.h:
18875 * m/news-risc.h:
18876 * m/news.h:
18877 * m/nh3000.h:
18878 * m/nh4000.h:
18879 * m/ns16000.h:
18880 * m/ns32000.h:
18881 * m/nu.h:
18882 * m/orion.h:
18883 * m/orion105.h:
18884 * m/paragon.h:
18885 * m/pfa50.h:
18886 * m/plexus.h:
18887 * m/pyramid.h:
18888 * m/pyrmips.h:
18889 * m/sh3el.h:
18890 * m/sps7.h:
18891 * m/sr2k.h:
18892 * m/stride.h:
18893 * m/sun1.h:
18894 * m/sun2.h:
18895 * m/sun3-68881.h:
18896 * m/sun3-fpa.h:
18897 * m/sun3-soft.h:
18898 * m/sun3.h:
18899 * m/sun386.h:
18900 * m/symmetry.h:
18901 * m/tad68k.h:
18902 * m/tahoe.h:
18903 * m/targon31.h:
18904 * m/tek4300.h:
18905 * m/tekxd88.h:
18906 * m/tower32.h:
18907 * m/tower32v3.h:
18908 * m/ustation.h:
18909 * m/wicat.h:
18910 * m/xps100.h:
18911 * s/cxux.h:
18912 * s/cxux7.h:
18913 * s/dgux.h:
18914 * s/dgux4.h:
18915 * s/dgux5-4-3.h:
18916 * s/dgux5-4r2.h:
18917 * s/esix.h:
18918 * s/esix5r4.h:
18919 * s/hiuxmpp.h:
18920 * s/hiuxwe2.h:
18921 * s/iris3-5.h:
18922 * s/iris3-6.h:
18923 * s/isc2-2.h:
18924 * s/isc3-0.h:
18925 * s/isc4-0.h:
18926 * s/isc4-1.h:
18927 * s/newsos5.h:
18928 * s/newsos6.h:
18929 * s/osf1.h:
18930 * s/osf5-0.h:
18931 * s/riscix1-1.h:
18932 * s/riscix12.h:
18933 * s/sco4.h:
18934 * s/sco5.h:
18935 * s/sunos4-0.h:
18936 * s/sunos4-1.h:
18937 * s/sunos413.h:
18938 * s/sunos4shr.h:
18939 * s/umax.h:
18940 * s/unipl5-2.h:
18941 * s/xenix.h:
18942 * cxux-crt0.s:
18943 * unexapollo.c:
18944 * unexconvex.c:
18945 * unexenix.c:
18946 * unexsni.c: Remove files for systems no longer supported.
18947
18948 * m/intel386.h: Remove references to unsupported systems.
18949
18950 * w32.c (get_emacs_configuration): Remove reference to i860.
18951
18952 * sysdep.c: Remove dead code.
18953
18954 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18955
18956 * s/rtu.h:
18957 * m/masscomp.h: Remove files. Platform is obsolete.
18958
18959 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
18960
18961 * dbusbind.c (Fdbus_method_return): New function.
18962 (xd_read_message): Add the serial number to the event.
18963 (Fdbus_register_method): Activate the function.
18964
18965 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18966
18967 * keyboard.c (read_key_sequence): Fix typo.
18968
18969 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
18970
18971 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18972 (xd_signature, xd_append_arg): Handle element type detection for
18973 empty arrays.
18974 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18975 SDATA () calls; this must be solved more general.
18976 (Fdbus_register_signal): Use SBYTES instead of strlen.
18977
18978 2008-01-03 Magnus Henoch <magnus@zemdatav>
18979
18980 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18981 unsigned int for byte values (necessary for big-endian platform).
18982 (Fdbus_call_method): Handle the case of no returned arguments.
18983
18984 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18985
18986 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18987
18988 2007-12-31 Magnus Henoch <mange@freemail.hu>
18989
18990 * dbusbind.c (xd_signature): Signature of variant is just "v".
18991
18992 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
18993
18994 * dbusbind.c: Fix several errors and compiler warnings.
18995 Reported by Tom Tromey <tromey@redhat.com>.
18996 (XD_ERROR, XD_DEBUG_MESSAGE)
18997 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18998 (xd_append_arg): Part for basic D-Bus types rewritten.
18999 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
19000 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
19001 appropriate.
19002 (xd_read_message): Return Qnil. Don't signal an error; it is not
19003 useful during event reading.
19004 (Fdbus_register_signal): Signal an error if the check for
19005 FUNCTIONP fails.
19006 (Fdbus_register_method): New function. The implementation is not
19007 complete, the call of the function signals an error therefore.
19008 (Fdbus_unregister_object): New function, renamed from
19009 Fdbus_unregister_signal. The initial check signals an error, if
19010 the object is not well formed.
19011
19012 2007-12-30 Richard Stallman <rms@gnu.org>
19013
19014 * textprop.c (get_char_property_and_overlay):
19015 Signal error if POSITION is out of range in a buffer.
19016
19017 2007-12-29 Martin Rudalics <rudalics@gmx.at>
19018
19019 * w32fns.c (Fx_create_frame): Make copy of frame parameters
19020 because the original parameters are in pure storage now.
19021
19022 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19023
19024 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
19025
19026 2007-12-22 Eli Zaretskii <eliz@gnu.org>
19027
19028 * callint.c (syms_of_callint) <command-history>: Add reference to
19029 history-length in the doc string.
19030
19031 2007-12-17 Jason Rumney <jasonr@gnu.org>
19032
19033 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
19034 before passing as wParam.
19035
19036 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
19037
19038 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
19039 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
19040 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
19041 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
19042 as number.
19043 (Fdbus_call_method): Fix docstring.
19044
19045 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
19046
19047 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
19048 New macros.
19049 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
19050 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
19051 Simplify.
19052 (xd_signature): New function.
19053 (xd_append_arg): Compute also signatures. Major rewrite.
19054 (xd_retrieve_arg): Make debug messages friendly.
19055 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
19056 Check for signatures of arguments.
19057
19058 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
19059
19060 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
19061 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
19062 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
19063 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
19064 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
19065 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
19066 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
19067 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
19068 (xd_retrieve_value): Remove. Functionality included in ...
19069 (xd_append_arg): New function.
19070 (Fdbus_call_method, Fdbus_send_signal): Apply it.
19071
19072 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
19073
19074 * dbusbind.c (top): Include <stdio.h>.
19075 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
19076 dbus_message_new_method_call and dbus_message_new_signal.
19077 (Fdbus_register_signal): Rename unique_name to uname.
19078 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
19079 non-existing unique name. Fix typos in matching rule. Return an
19080 object which is useful in Fdbus_unregister_signal.
19081 (Fdbus_unregister_signal): Reimplementation, in order to remove
19082 only the corresponding entry.
19083 (Vdbus_registered_functions_table): Change the order of entries.
19084 Apply these changes in xd_read_message and Fdbus_register_signal.
19085
19086 2007-12-16 Andreas Schwab <schwab@suse.de>
19087
19088 * fileio.c (Finsert_file_contents): Fix overflow check to not
19089 depend on undefined integer overflow.
19090
19091 2007-12-14 Jason Rumney <jasonr@gnu.org>
19092
19093 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19094 for characters above 127.
19095
19096 2007-12-13 Jason Rumney <jasonr@gnu.org>
19097
19098 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19099 before dereferencing array.
19100 (lookup_vk_code): Remove zero comparison.
19101
19102 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
19103
19104 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19105 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19106 Use `unsigned int' instead of `uint'.
19107 (xd_read_message, Fdbus_register_signal): Split expressions into
19108 multiple lines before operators "&&" and "||", according to the
19109 GNU Coding Standards.
19110
19111 2007-12-14 Eli Zaretskii <eliz@gnu.org>
19112
19113 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19114
19115 2007-12-12 Juri Linkov <juri@jurta.org>
19116
19117 * buffer.c (Frename_buffer): In interactive spec replace
19118 `read-buffer' with `read-string' that uses `buffer-name-history'
19119 as history, and the current buffer's name as default.
19120
19121 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19122
19123 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19124 manipulating the backtrace manually.
19125 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19126 (struct backtrace, backtrace_list): Remove.
19127 (command_loop_1): Remove dead var `no_direct'.
19128
19129 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19130 preserve non-built-in buffer-local variables.
19131 (Fkill_all_local_variables): Don't re-create&re-set permanent
19132 buffer-local variables.
19133
19134 2007-12-09 Juri Linkov <juri@jurta.org>
19135
19136 * buffer.c (Frename_buffer): Change interactive spec from "s" to
19137 Lisp code that uses `read-buffer' with current buffer as default.
19138
19139 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
19140
19141 * dbusbind.c (xd_read_message): Generate an event for every
19142 registered handler. There might be several handlers registered
19143 for the same signal.
19144 (Fdbus_register_signal): Don't overwrite a registration for the
19145 same signal. Add a new registration if handlers are different.
19146 (Vdbus_registered_functions_table): Rework doc string.
19147
19148 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
19149
19150 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19151 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19152 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19153 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19154 Unify argument lists.
19155 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19156 arguments and hash table keys. Use unique name for service.
19157 (Fdbus_unregister_signal): Remove checks.
19158 (Vdbus_registered_functions_table): Fix doc string.
19159
19160 2007-12-05 Magnus Henoch <mange@freemail.hu>
19161
19162 * process.c (make_process): Initialize pty_flag to 0.
19163
19164 2007-12-05 Jason Rumney <jasonr@gnu.org>
19165
19166 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19167 specified XBMs.
19168
19169 2007-12-05 Richard Stallman <rms@gnu.org>
19170
19171 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19172
19173 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19174
19175 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19176 New variable.
19177 (mac_try_close_socket) [MAC_OSX]: New function.
19178 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19179 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19180
19181 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19182 Use mac_try_close_socket.
19183
19184 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19185
19186 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19187 reloc_base.
19188 (copy_dysymtab): Compute relocation base here.
19189 (rebase_reloc_address) [__ppc64__]: New function.
19190 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19191 changed.
19192
19193 2007-12-05 Jason Rumney <jasonr@gnu.org>
19194
19195 * w32proc.c (sys_spawnve): Quote args with wildcards.
19196
19197 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19198
19199 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19200 __objc_* sections.
19201 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19202
19203 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
19204
19205 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19206 Move check for Vdbus_registered_functions_table to
19207 xd_read_queued_messages.
19208 (xd_read_queued_messages): Protect xd_read_message calls by
19209 internal_condition_case_1.
19210
19211 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
19212
19213 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19214 Qdbus_system_bus and Qdbus_session_bus, respectively.
19215 (Vdbus_intern_symbols): Remove.
19216 (Vdbus_registered_functions_table): New hash table.
19217 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19218 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19219 Rewrite in order to manage registered functions by hash table
19220 Vdbus_registered_functions_table.
19221
19222 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19223
19224 * xterm.c: Update URL to Window Manager Specification in comment.
19225
19226 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
19227
19228 * config.in (HAVE_DBUS): Add.
19229
19230 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19231 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19232 (obj): Add $(DBUS_OBJ).
19233 (LIBES): Add $(DBUS_LIBS).
19234 (dbusbind.o): New target.
19235
19236 * dbusbind.c: New file.
19237
19238 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19239
19240 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19241 (Qdbus_event): New Lisp symbol.
19242 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19243 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
19244 (keys_of_keyboard): Define dbus-event.
19245
19246 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19247
19248 2007-12-01 Richard Stallman <rms@gnu.org>
19249
19250 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19251
19252 2007-11-30 Jason Rumney <jasonr@gnu.org>
19253
19254 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19255 (w32con_reset_terminal_modes): Clear screen buffer.
19256 (w32_face_attributes): Don't use color indexes that are out of range.
19257 Only reverse the default colors.
19258
19259 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19260 WINDOWSNT.
19261
19262 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19263
19264 2007-11-29 Jason Rumney <jasonr@gnu.org>
19265
19266 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19267 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19268 if the terminal colors are initialized.
19269 (unspecified_fg, unspecified_bg): Remove unused declarations.
19270
19271 2007-11-29 Andreas Schwab <schwab@suse.de>
19272
19273 * keyboard.c (apply_modifiers): Fix typo.
19274
19275 2007-11-29 Richard Stallman <rms@gnu.org>
19276
19277 * keymap.c (Fcurrent_local_map): Doc fix.
19278
19279 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19280
19281 * s/gnu-kfreebsd.h: New file.
19282
19283 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19284
19285 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19286 Don't cast redundantly.
19287
19288 * keyboard.c (KEY_TO_CHAR): New macro.
19289 (parse_modifiers, apply_modifiers): Accept integer arguments.
19290 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19291 for chars and symbol keys.
19292 After doing such remapping, apply function-key-map again.
19293
19294 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19295
19296 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19297 compiled anymore.
19298
19299 2007-11-26 Andreas Schwab <schwab@suse.de>
19300
19301 * process.c (list_processes_1): Fix indentation level of the
19302 command column.
19303
19304 2007-11-23 Andreas Schwab <schwab@suse.de>
19305
19306 * editfns.c (Fformat): Handle %c specially since it requires the
19307 argument to be of type int.
19308
19309 2007-11-23 Markus Triska <markus.triska@gmx.at>
19310
19311 * emacs.c (main): Call init_editfns before init_process, since
19312 init_process sets Vprocess_connection_type depending on OS release.
19313
19314 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19315
19316 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19317 (find_symbol_value): Use do_symval_forwarding.
19318
19319 * data.c (set_internal): Set the value in the `cons-cell' (for
19320 Buffer_Local_values) not only for frame-local variables.
19321
19322 2007-11-22 Andreas Schwab <schwab@suse.de>
19323
19324 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19325 values to sprintf.
19326 * keymap.c (Fsingle_key_description): Likewise.
19327 * print.c (print_object): Likewise.
19328
19329 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19330
19331 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19332 file for image is nil.
19333
19334 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19335
19336 * term.c: Include stdarg.h.
19337 (fatal): Implement using varargs.
19338 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19339
19340 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19341
19342 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19343 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19344 Update call to buffer_slot_type_mismatch.
19345 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19346 (buffer_slot_type_mismatch): Update.
19347 * buffer.c (buffer_local_types): Remove.
19348 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19349 (defvar_per_buffer): Set the type in the buffer_objfwd.
19350
19351 2007-11-21 Jason Rumney <jasonr@gnu.org>
19352
19353 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19354 CreateFileMapping returns NULL on failure.
19355
19356 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19357
19358 * search.c (Fset_match_data): Remove the `evaporate' feature.
19359 (unwind_set_match_data): Don't use the `evaporate' feature.
19360
19361 2007-11-21 Jason Rumney <jasonr@gnu.org>
19362
19363 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19364
19365 * w32console.c (w32con_write_glyphs): Remove unused variables.
19366
19367 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19368
19369 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19370
19371 * s/darwin.h (MULTI_KBOARD): Remove.
19372
19373 * macfns.c (x_create_tip_frame, Fx_create_frame)
19374 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19375
19376 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19377
19378 * buffer.c (Fbuffer_local_value): Remove redundant test.
19379 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19380 than in `current-buffer' to match the comment.
19381 Do the swap using swap_in_global_binding.
19382
19383 * data.c (store_symval_forwarding, set_internal):
19384 * eval.c (specbind): Remove dead code.
19385
19386 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19387 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19388 Since we do not want to see internal Lisp_*fwd objects here.
19389
19390 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19391
19392 * sysdep.c (init_system_name): Use getaddrinfo if available.
19393
19394 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19395 (x_scroll_bar_note_movement): start, end, with, height in struct
19396 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19397
19398 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19399
19400 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19401
19402 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19403
19404 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19405 This undoes Richard's change of 14-Oct-2002.
19406
19407 * alloc.c (allocate_other_vector):
19408 * lisp.h (allocate_other_vector): Remove.
19409
19410 * window.c (struct save_window_data): Move non-lisp data to the end
19411 and make it `int' rather than Lisp_Object.
19412 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19413 Done wrap/unwrap integer values.
19414 (Fset_window_configuration, compare_window_configurations):
19415 Update use of fields to their new types.
19416
19417 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19418 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19419 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19420 (SET_SCROLL_BAR_X_WINDOW): Remove.
19421 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19422 Access the new x_window field directly.
19423 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19424 Don't wrap/unwrap integers into Lisp_Objects.
19425 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19426 (x_scroll_bar_report_motion):
19427 Don't wrap/unwrap integers into Lisp_Objects.
19428 (x_term_init): Use SDATA.
19429 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19430 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19431 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19432 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19433 * xfns.c (x_set_background_color):
19434 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19435 Access the new x_window field directly.
19436
19437 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19438 (allocate_pseudovector): Make non-static.
19439
19440 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19441 (allocate_pseudovector): Declare.
19442 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19443
19444 2007-11-15 Andreas Schwab <schwab@suse.de>
19445
19446 * editfns.c (Fformat): Correctly format EMACS_INT values.
19447 Also take precision into account when formatting an integer.
19448
19449 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19450
19451 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19452
19453 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19454 (syms_of_keyboard): Defsubr it.
19455
19456 * data.c (swap_in_global_binding): Fix longstanding bug where
19457 store_symval_forwarding was not called with the right second argument,
19458 thus causing objfwd-ing from being dropped.
19459
19460 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
19461
19462 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19463 (Fx_display_pixel_height, Fx_display_planes)
19464 (Fx_display_color_cells, Fx_server_max_request_size)
19465 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19466 (Fx_display_visual_class, Fx_display_save_under):
19467 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19468 (Fx_display_pixel_height, Fx_display_planes)
19469 (Fx_display_color_cells, Fx_server_max_request_size)
19470 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19471 (Fx_display_mm_height, Fx_display_mm_width)
19472 (Fx_display_backing_store, Fx_display_visual_class)
19473 (Fw32_select_font, Fx_display_save_under):
19474 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19475 (Fx_display_pixel_height, Fx_display_planes)
19476 (Fx_display_color_cells, Fx_server_max_request_size)
19477 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19478 (Fx_display_save_under): Fix typos in docstrings.
19479
19480 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
19481
19482 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19483 corresponding to deleted entries; they are an implementation detail.
19484 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19485 Remove variables.
19486 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19487 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19488 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19489 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19490 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19491 (Fw32_define_rgb_color, Fw32_load_color_file)
19492 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19493 Fix typos in docstrings.
19494 (Fx_server_version): Reflow docstring.
19495 (Fw32_shell_execute): Doc fixes.
19496
19497 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
19498
19499 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19500 if w32_parse_hot_key returned nil.
19501
19502 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19503
19504 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19505
19506 2007-11-09 Jason Rumney <jasonr@gnu.org>
19507
19508 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19509
19510 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19511
19512 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19513 Remove W32_SCROLL_BAR_CLICK_EVENT.
19514
19515 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19516 Add MULTIMEDIA_KEY_EVENT.
19517
19518 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19519 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19520 (make_lispy_event) [WINDOWSNT]: Use it to translate
19521 MULTIMEDIA_KEY_EVENT.
19522
19523 * w32term.h (WM_APPCOMMAND): Define if not already.
19524 (GET_APPCOMMAND_LPARAM): Likewise.
19525
19526 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19527 WM_APPCOMMAND.
19528
19529 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19530 (syms_of_w32fns): Export and initialize it.
19531 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19532
19533 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
19534
19535 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19536 twice.
19537
19538 * xdisp.c (handle_face_prop): Fix last change.
19539
19540 2007-11-09 Richard Stallman <rms@gnu.org>
19541
19542 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19543 not just for after-strings and before-strings.
19544 Call face_for_overlay_string and pass the overlay to it.
19545 (handle_display_prop): Determine whether property came from an overlay.
19546 Pass OVERLAY arg to handle_single_display_spec.
19547 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19548 (load_overlay_strings): Fill in it->string_overlays.
19549 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19550
19551 * xfaces.c (face_for_overlay_string): Function renamed from
19552 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19553
19554 * dispextern.h (struct it): New elt string_overlays.
19555 New elt from_overlay, also in stack.
19556 Rearrange a few elements.
19557 (face_for_overlay_string): Decl renamed from
19558 face_at_buffer_position_no_overlays, and add argument.
19559
19560 2007-11-09 Richard Stallman <rms@gnu.org>
19561
19562 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19563 to get the base face for an overlay string.
19564
19565 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19566
19567 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19568
19569 * xdisp.c (handle_stop): Move some code out of loop.
19570
19571 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19572
19573 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19574 Fix conversion from Lisp object to ATSUFontID.
19575
19576 2007-11-09 Jason Rumney <jasonr@gnu.org>
19577
19578 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19579
19580 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19581
19582 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19583 Don't assume regions are aligned to page boundary.
19584 (print_load_command_name): Add LC_UUID if defined.
19585
19586 2007-11-09 Richard Stallman <rms@gnu.org>
19587
19588 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19589
19590 2007-11-07 Jason Rumney <jasonr@gnu.org>
19591
19592 * s/windows95.h: Remove.
19593
19594 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19595
19596 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19597 abort with a message on unhandled store_type values.
19598
19599 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19600
19601 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19602 Remove HAVE_X11R5 and HAVE_X11R4.
19603
19604 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19605
19606 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19607
19608 2007-11-01 Johan Bockgård <bojohan@gnu.org>
19609
19610 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19611 Don't set s->stippled_p here, since it has already been set by
19612 x_set_glyph_string_gc from x_draw_glyph_string.
19613
19614 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19615
19616 * sunfns.c: Remove file.
19617
19618 * m/sun386.h:
19619 * m/sun2.h:
19620 * m/sparc.h: Remove Sun windows code.
19621
19622 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19623
19624 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19625 (init_keyboard): Set current_kboard's window-system to nil.
19626 (tty_read_avail_input): Typo.
19627 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19628
19629 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19630
19631 * s/usg5-4.h:
19632 * s/usg5-3.h:
19633 * s/ptx.h:
19634 * m/is386.h:
19635 * m/ibmps2-aix.h:
19636 * Makefile.in: Remove all mentions of X10.
19637
19638 * dispnew.c (syms_of_display): Don't mention version 10.
19639
19640 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
19641
19642 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19643 ($(BLD)/abbrev.$(O)): Remove.
19644
19645 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19646
19647 Rewrite abbrev.c in Elisp.
19648 * image.c (Qcount): Don't declare as extern.
19649 (syms_of_image): Initialize and staticpro `Qcount'.
19650 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19651 * emacs.c (main): Don't call syms_of_abbrev.
19652 * Makefile.in (obj): Remove abbrev.o.
19653 (abbrev.o): Remove.
19654 * abbrev.c: Remove.
19655
19656 2007-10-26 Martin Rudalics <rudalics@gmx.at>
19657
19658 * window.c (window_min_size_2): Don't count header-line.
19659
19660 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19661
19662 * frame.h (struct frame): Move all bit fields after the first bit
19663 field to take advantage of the available space. Group all the
19664 chars together to reduce wasted space due to padding.
19665
19666 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
19667
19668 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19669
19670 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19671 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19672 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19673 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19674 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19675 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19676 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19677 (last_marked, mark_object_loop_halt): Make static.
19678
19679 * frame.c (syms_of_frame) <delete-frame-functions>:
19680 Fix typo in docstring.
19681
19682 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
19683
19684 * w32.c (init_environment): Fix tiny memory leak.
19685 (w32_get_resource): Remove unused variable `ok'.
19686
19687 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19688
19689 Make `window-system' into a keyboard-local variable (rather than
19690 frame-local as done originally by multi-tty).
19691
19692 * keyboard.h (struct kboard): Add Vwindow_system.
19693 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19694 (mark_kboards): Mark Vwindow_system.
19695
19696 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19697 (init_display): Don't set the obsolete `window-system' frame-param.
19698
19699 * xterm.c (x_term_init):
19700 * w32term.c (w32_create_terminal):
19701 * term.c (init_tty): Set Vwindow_system.
19702 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19703 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19704
19705 * xfns.c (Fx_create_frame, x_create_tip_frame):
19706 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19707 * macfns.c (Fx_create_frame):
19708 Don't set the obsolete `window-system' frame-param.
19709
19710 * frame.h (Qwindow_system): Remove.
19711 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19712 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19713
19714 2007-10-24 Richard Stallman <rms@gnu.org>
19715
19716 * frame.c (x_figure_window_size): For fullscreen case,
19717 set USPosition | PPosition without clobbering rest of window_prompting.
19718
19719 * keyboard.c (Fcurrent_idle_time): Doc fix.
19720
19721 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19722
19723 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19724
19725 * process.c (unwind_request_sigio): Only define if __ultrix__.
19726
19727 * callproc.c (child_setup): Remove spurious *.
19728
19729 * lisp.h (Fget_text_property): Declare.
19730 (have_menus_p): Declare it here rather than in sys-dep header files.
19731 * macterm.h (have_menus_p):
19732 * msdos.h (have_menus_p):
19733 * xterm.h (have_menus_p): Remove.
19734
19735 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19736 (Fmake_variable_frame_local): Just check the variable's const-ness
19737 rather than checking nil or t.
19738
19739 2007-10-22 Jason Rumney <jasonr@gnu.org>
19740
19741 * w32fns.c: Include math.h.
19742 (w32_abort): Declaration moved to nt/config.nt.
19743
19744 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19745 (abort): Redefinition moved to nt/config.nt.
19746
19747 * m/windowsnt.h: Remove.
19748
19749 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
19750
19751 * emacs.c (Fdump_emacs): Fix typo in message.
19752 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19753 <installation-directory>: Reflow docstring.
19754
19755 2007-10-22 Juri Linkov <juri@jurta.org>
19756
19757 * minibuf.c: Allow minibuffer default to be a list of default values.
19758 With empty input use the first element of this list as returned default.
19759 (string_to_object)
19760 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19761 (read_minibuf): If defalt is cons, set histstring to its car.
19762 (Fread_string): If default_value is cons, set val to its car.
19763 (Fread_buffer): If def is cons, use its car.
19764 (Fcompleting_read): If defalt is cons, set val to its car.
19765
19766 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
19767
19768 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19769
19770 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
19771
19772 * doc.c (Fdocumentation): Check for advice in all cases.
19773
19774 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
19775
19776 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19777
19778 2007-10-19 Richard Stallman <rms@gnu.org>
19779
19780 * doc.c (Fdocumentation): Check for and handle an advised function.
19781
19782 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
19783
19784 * process.c (Fset_process_filter): Doc fix.
19785
19786 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19787
19788 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19789 which caused key-translation-map to applied repeatedly (thus breaking
19790 double-mode).
19791
19792 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19793
19794 * xselect.c (x_own_selection, x_handle_selection_clear)
19795 (x_clear_frame_selections):
19796 * w32menu.c (list_of_panes, list_of_items):
19797 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19798 * textprop.c (validate_plist, interval_has_all_properties)
19799 (interval_has_some_properties, interval_has_some_properties_list)
19800 (add_properties, text_property_list):
19801 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19802 * minibuf.c (Fassoc_string):
19803 * macselect.c (x_own_selection, x_clear_frame_selections)
19804 (Fx_disown_selection_internal):
19805 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19806 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19807
19808 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
19809
19810 * process.c: Link to libs for calling res_init() if available.
19811 (Fmake_network_process): Call res_init() before getaddrinfo or
19812 gethostbyname, if possible.
19813
19814 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19815
19816 * lread.c (read1): Set pvectype for char_tables.
19817
19818 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19819 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19820 Add type checks.
19821 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19822
19823 * alloc.c (free_misc): Use XMISCTYPE.
19824 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19825
19826 2007-10-17 Glenn Morris <rgm@gnu.org>
19827
19828 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19829 (syms_of_minibuf): Add Qcompletion_ignore_case.
19830 * dired.c (Qcompletion_ignore_case): Change to external.
19831 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19832 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19833 (Fread_file_name): Use it rather than intern'ing.
19834
19835 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19836 (Fread_coding_system): Ignore case of user input.
19837
19838 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19839
19840 * xdisp.c (handle_display_prop): Ignore display specs after
19841 replacing one when string text is being replaced.
19842 (handle_single_display_spec): Pretend as if characters with display
19843 property haven't been consumed only when buffer text is being replaced.
19844
19845 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19846
19847 * xfns.c (Fx_create_frame, Fx_display_list):
19848 * window.c (window_fixed_size_p, enlarge_window)
19849 (shrink_window_lowest_first):
19850 * macterm.c (init_font_name_table):
19851 * macfns.c (Fx_create_frame, Fx_display_list):
19852 * lread.c (close_load_descs):
19853 * keyboard.c (read_char_x_menu_prompt):
19854 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19855 * coding.c (code_convert_region_unwind): Test the type of an object
19856 rather than just !NILP before extracting data from it.
19857
19858 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19859
19860 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19861 (XMISCANY): New macro.
19862 (XMISCTYPE): Use it.
19863 (struct Lisp_Misc_Any): New type.
19864 (union Lisp_Misc): Use it.
19865 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19866 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19867 (find_symbol_value, set_internal, default_value, Fset_default)
19868 (Fmake_variable_buffer_local, Fmake_local_variable)
19869 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19870 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19871 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19872 * alloc.c (allocate_buffer): Set the size and tag.
19873 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19874 Use XMISCANY.
19875 (die): Follow the GNU convention for error messages.
19876 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19877 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19878 tag any more.
19879 (set_buffer_internal_1):
19880 * frame.c (store_frame_param):
19881 * eval.c (specbind):
19882 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19883
19884 * doc.c (Fsnarf_documentation): Simplify.
19885
19886 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
19887
19888 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19889 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19890
19891 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19892
19893 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19894
19895 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
19896
19897 * eval.c (do_autoload): Don't save autoloads.
19898
19899 * data.c (Ffset): Save autoload of the function being set.
19900
19901 2007-10-07 John Paul Wallington <jpw@pobox.com>
19902
19903 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19904 parameter before setting up faces.
19905
19906 2007-10-13 Eli Zaretskii <eliz@gnu.org>
19907
19908 * ccl.c (Fregister_code_conversion_map):
19909 * keyboard.c (append_tool_bar_item): Reformat last change.
19910
19911 * lisp.h (eabs): Rename from `abs'. All callers changed.
19912
19913 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19914
19915 * buffer.c (add_overlay_mod_hooklist):
19916 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19917 * fontset.c (make_fontset):
19918 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19919 (append_tool_bar_item):
19920 * macmenu.c (grow_menu_items):
19921 * w32menu.c (grow_menu_items):
19922 * xmenu.c (grow_menu_items): Use larger_vector.
19923
19924 2007-10-13 Eli Zaretskii <eliz@gnu.org>
19925
19926 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19927 selected frame'' on MSDOS).
19928
19929 2007-10-12 Martin Rudalics <rudalics@gmx.at>
19930
19931 * frame.c (Qexplicit_name): New variable.
19932 (x_report_frame_params): Report it in parameter alist.
19933 (syms_of_frame): Intern and staticpro it.
19934
19935 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19936
19937 * macfns.c (x_create_tip_frame): Set terminal for frame.
19938
19939 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19940
19941 * frame.c (Qenvironment): Remove.
19942 (syms_of_frame) <Qenvironment>: Don't initialize.
19943 (Fdelete_frame): Don't treat the `environment' param specially.
19944 * frame.h (Qenvironment): Don't declare.
19945 * callproc.c (set_initial_environment): Don't set unused frame param.
19946
19947 * frame.c (Fframe_with_environment): Remove.
19948 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19949
19950 * lisp.h (Fframe_with_environment): Don't declare.
19951
19952 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
19953
19954 * indent.c (indent_tabs_mode, last_known_column)
19955 (last_known_column_modified): Make static.
19956 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19957
19958 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19959
19960 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19961
19962 2007-10-09 Jason Rumney <jasonr@gnu.org>
19963
19964 * w32term.c (x_set_window_size): Disable code that attempts to tell
19965 Lisp code about a size change before it actually happens.
19966
19967 2007-10-09 Richard Stallman <rms@gnu.org>
19968
19969 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19970 return HANDLED_RETURN.
19971
19972 2007-10-08 Martin Rudalics <rudalics@gmx.at>
19973
19974 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19975 when there's an unread command event.
19976
19977 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19978 window autoselection act appropriately when leaving selected frame.
19979 (syms_of_frame): Initialize focus_follows_mouse.
19980 * frame.h (focus_follows_mouse): Extern it.
19981 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19982 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19983 * msdos.c (dos_rawgetc): Likewise.
19984 * w32term.c (w32_read_socket): Likewise.
19985 * xterm.c (handle_one_xevent): Likewise.
19986 * xdisp.c (syms_of_xdisp): In doc-string of
19987 mouse-autoselect-window mention focus-follows-mouse.
19988
19989 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19990
19991 * macterm.c (mac_load_query_font): Fix missing return value.
19992 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19993 Add BLOCK_INPUT.
19994
19995 2007-10-08 Richard Stallman <rms@gnu.org>
19996
19997 * xdisp.c (get_window_cursor_type): Implement documented behavior
19998 for cursor-in-non-selected-windows = t.
19999
20000 2007-10-08 Jason Rumney <jasonr@gnu.org>
20001
20002 * w32.c (w32_get_resource): Always close registry keys.
20003
20004 2007-10-08 Jason Rumney <jasonr@gnu.org>
20005
20006 * makefile.w32-in (LIBS): Add COMCTL32.
20007
20008 * w32fns.c (globals_of_w32fns): Init common controls.
20009
20010 2007-10-08 Richard Stallman <rms@gnu.org>
20011
20012 * image.c (our_memory_buffer): Rename from omfib_buffer.
20013
20014 2007-10-08 Richard Stallman <rms@gnu.org>
20015
20016 * buffer.c (Foverlays_at): Doc fix.
20017
20018 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
20019
20020 * fns.c (Fplist_put): Preserve uneven tail data.
20021
20022 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
20023
20024 * termhooks.h (enum event_kind): Remove trailing comma.
20025
20026 * frame.h (enum): Remove trailing comma.
20027
20028 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20029
20030 * w32proc.c (delete_child): Don't terminate threads of zombies.
20031
20032 2007-10-08 Martin Rudalics <rudalics@gmx.at>
20033
20034 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
20035
20036 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
20037 last-repeatable-command.
20038 (init_kboard): Initialize Vlast_repeatable_command.
20039 (command_loop_1): Set it to real_this_command unless that was
20040 bound to an input event.
20041 (mark_kboards): Mark it.
20042
20043 2007-10-08 Richard Stallman <rms@gnu.org>
20044
20045 * eval.c (condition-case): Doc fix.
20046
20047 2007-10-08 Masatake YAMATO <jet@gyve.org>
20048
20049 * xfaces.c (tty_supports_face_attributes_p): Fix code
20050 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
20051 was copied and not edited.
20052
20053 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
20054
20055 Add new `input-decode-map' keymap and use it for terminal
20056 escape sequences.
20057 * keyboard.h (struct kboard): Add Vinput_decode_map.
20058 Remove Vlocal_key_translation_map.
20059 * keyboard.c (read_key_sequence): Add support for input-decode-map.
20060 (init_kboard): Init input-decode-map.
20061 Replace local-key-translation-map back with key-translation-map.
20062 (syms_of_keyboard): Declare input-decode-map.
20063 Remove local-key-translation-map. Update docstrings.
20064 (mark_kboards): Mark Vinput_decode_map.
20065 Don't mark Vlocal_key_translation_map.
20066 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
20067 Replace local-key-translation-map back with key-translation-map.
20068 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
20069 Bind in input-decode-map rather than function-key-map.
20070
20071 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
20072 This was made redundant by the previous introduction of XSETPVECTYPE.
20073
20074 2007-10-09 Richard Stallman <rms@gnu.org>
20075
20076 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
20077
20078 2007-09-29 Richard Stallman <rms@gnu.org>
20079
20080 * eval.c (internal_condition_case_2, internal_condition_case_1)
20081 (internal_condition_case): Reenable abort if x_catching_errors ()
20082 to see if that really happens and why.
20083
20084 2007-10-06 Andreas Schwab <schwab@suse.de>
20085
20086 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
20087
20088 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
20089
20090 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
20091
20092 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
20093
20094 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20095
20096 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
20097
20098 * window.h (struct window):
20099 * window.c (struct save_window_data, struct saved_window):
20100 * termhooks.h (struct terminal):
20101 * process.h (struct Lisp_Process):
20102 * frame.h (struct frame):
20103 * buffer.h (struct buffer):
20104 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20105 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20106 The size field of (pseudo)vectors is now unsigned.
20107 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20108
20109 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20110 Turn `count' into an integer.
20111
20112 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20113 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20114 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20115 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20116 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20117
20118 * alloc.c (allocate_pseudovector): New fun.
20119 (ALLOCATE_PSEUDOVECTOR): New macro.
20120 (allocate_window, allocate_terminal, allocate_frame)
20121 (allocate_process): Use it.
20122 (mark_vectorlike): New function.
20123 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20124 (mark_terminals): Use it.
20125 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20126 (Fmake_byte_code): Use XSETPVECTYPE.
20127
20128 * frame.c (Fframe_parameters): Minor simplification.
20129
20130 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20131
20132 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20133
20134 * buffer.c (Fget_buffer_create, init_buffer_once):
20135 * lread.c (defsubr):
20136 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20137
20138 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20139 defined differently in the m/*.h files.
20140 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
20141 (XSETPVECTYPE): New macro.
20142 (XSETPSEUDOVECTOR): Use it.
20143
20144 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20145 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20146
20147 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20148 * lread.c (defvar_per_buffer):
20149 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20150
20151 * window.c (candidate_window_p): Only consider as visible frames that
20152 are on the same terminal.
20153
20154 * m/ibms390x.h (MARKBIT): Remove unused macro.
20155
20156 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
20157
20158 * lread.c (Fload): Fix typo in docstring.
20159
20160 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20161
20162 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20163 of a non-zero value can't yield zero.
20164
20165 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20166
20167 * term.c (term_clear_mouse_face, term_mouse_highlight)
20168 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20169
20170 * print.c (safe_debug_print): Use XHASH.
20171
20172 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20173 Lisp elements such as tags.
20174 (XHASH): New macro.
20175 (EQ): Use it.
20176 (SREF, SSET, STRING_COPYIN): Use SDATA.
20177 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20178
20179 * alloc.c (mark_terminal): Remove left-over declaration.
20180 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20181 (allocate_vectorlike): Remove type argument. Adjust callers.
20182 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20183 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20184
20185 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20186 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20187 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20188 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20189 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20190 Use them.
20191
20192 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20193 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20194 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20195
20196 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20197
20198 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20199 loaded by default.
20200
20201 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20202
20203 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20204 on this tty.
20205 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20206
20207 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20208 Update all users.
20209 (handle_one_term_event): Use Gpm_DrawPointer.
20210 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20211 Signal errors instead of returning nil. Always return nil.
20212 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20213 Make it a noop if gpm-mouse was not activated.
20214 (syms_of_term): Update names.
20215
20216 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20217
20218 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20219 (init_sys_modes): Check that gpm_tty is the current tty.
20220
20221 * alloc.c (allocate_terminal): Set the vector size to only count the
20222 lisp fields. Initialize those to nil.
20223 (mark_object): Don't treat terminals specially.
20224 (mark_terminal): Remove.
20225 (mark_terminals): Use mark_object instead.
20226
20227 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20228 the GC to the beginning.
20229
20230 * indent.h:
20231 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20232
20233 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20234
20235 2007-09-25 Jason Rumney <jasonr@gnu.org>
20236
20237 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20238
20239 * w32console.c (create_w32cons_output): Remove.
20240
20241 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20242
20243 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20244 (reset_sys_modes): Use reset_terminal_modes_hook.
20245
20246 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20247
20248 * eval.c (do_autoload): Don't output any message.
20249
20250 2007-09-24 Juri Linkov <juri@jurta.org>
20251
20252 * emacs.c (standard_args): Change priority of "--no-splash"
20253 from 40 to 3. Add "--no-desktop" with the same priority.
20254
20255 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20256
20257 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20258 and optimize the case where they are all 1.
20259
20260 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
20261
20262 * lisp.h (abs): Define if not defined.
20263 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20264 Don't define `abs', since it's defined in lisp.h.
20265
20266 2007-09-22 Eli Zaretskii <eliz@gnu.org>
20267
20268 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20269 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20270 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20271 (init_tty): Use DEV_TTY instead of "/dev/tty".
20272 [WINDOWSNT]: No need to protect from NAME arg being null.
20273
20274 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20275
20276 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20277 up the tty state.
20278
20279 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20280
20281 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20282 (gpm_tty): Change its type.
20283 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20284 (gpm_tty): Change its type and initialize it.
20285 (Fterm_open_connection): Check the frame is indeed a tty.
20286 Use the new gpm_tty.
20287 (Fterm_close_connection): Use the new gpm_tty.
20288 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20289 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20290
20291 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
20292
20293 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20294 underline_color, to draw strike-through.
20295
20296 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20297
20298 * lisp.h (allocate_terminal): Declare.
20299
20300 * window.c (candidate_window_p): Consider frames that are being placed
20301 by the user as somewhere between visible and iconified.
20302 (window_loop): Prefer windows on the current frame.
20303 (Fselect_window): Move the use of select-frame to the beginning so we
20304 can just delegate all the work (it'll call us back anyway).
20305
20306 * frame.c (Qdisplay_environment_variable):
20307 * frame.h (Qdisplay_environment_variable): Delete.
20308
20309 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20310 of the first arg, since that value may be a union.
20311
20312 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20313 parameter rather than Qdisplay_environment_variable. If all else
20314 fails, look for DISPLAY in initial-environment.
20315
20316 2007-09-21 Glenn Morris <rgm@gnu.org>
20317
20318 * Makefile.in (emacstool): Remove target.
20319 (lisp, shortlisp): Remove termdev.elc.
20320
20321 2007-09-21 Markus Triska <markus.triska@gmx.at>
20322
20323 * xterm.c (x_delete_display): Compile session management conditionally.
20324
20325 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20326
20327 * callproc.c (getenv_internal_1): New function.
20328 (getenv_internal): Use it.
20329 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20330
20331 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20332 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20333 (Fset_terminal_parameter): Work with dead terminals as well.
20334 (Fmodify_terminal_parameters): Remove.
20335
20336 * terminal.c (get_terminal): Handle terminals.
20337 Make sure the terminal returned is live.
20338 (create_terminal): Use allocate_terminal.
20339 (mark_terminals): Move to alloc.c.
20340 (delete_terminal): Use terminal->name as liveness status.
20341 NULL out fields after freeing their contents.
20342 Don't deallocate the object.
20343 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20344 rather than an int.
20345 (Fterminal_live_p): Accept non-integer arguments.
20346 (Fterminal_list): Return terminal objects rather than an ints.
20347
20348 * alloc.c (enum mem_type): New member for `terminal' objects.
20349 (allocate_terminal): New function.
20350 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20351 Handle terminals.
20352 (mark_terminal): New fun.
20353 (mark_terminals): Move from terminal.c.
20354
20355 * term.c (get_tty_terminal): Don't treat output_initial specially.
20356 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20357 (delete_tty): Use terminal->name as liveness status.
20358
20359 * termhooks.h (struct terminal): Make it into a pseudovector.
20360 Remove `deleted' replaced by checking `name's nullness.
20361
20362 * print.c (print_object): Handle terminals.
20363
20364 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20365 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20366
20367 * frame.c (make_terminal_frame):
20368 * keyboard.c (tty_read_avail_input):
20369 * w32term.c (x_delete_terminal):
20370 * xfns.c (Fx_create_frame, x_create_tip_frame):
20371 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20372
20373 2007-09-20 Glenn Morris <rgm@gnu.org>
20374
20375 * process.c (Fmake_network_process): Doc fix.
20376
20377 2007-09-19 Jason Rumney <jasonr@gnu.org>
20378
20379 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20380
20381 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20382
20383 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20384 Fix a C warning regarding variable constness.
20385
20386 * xterm.c (handle_one_xevent): Fix a C warning.
20387
20388 2007-09-18 Jason Rumney <jasonr@gnu.org>
20389
20390 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20391
20392 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20393
20394 * gtkutil.c (gdpy_def): New variable.
20395 (xg_initialize): Initialize gdpy_def.
20396 (xg_display_close): If no other display exists, set gdpy_def to a
20397 new connection.
20398
20399 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20400
20401 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20402 when we have no file name for the icon.
20403 (xg_tool_bar_expose_callback): Remove.
20404 (xg_create_tool_bar): Don't connect expose signal to
20405 xg_tool_bar_expose_callback.
20406 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20407
20408 2007-09-16 Andreas Schwab <schwab@suse.de>
20409
20410 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20411 values instead of zapping them.
20412
20413 2007-09-14 Glenn Morris <rgm@gnu.org>
20414
20415 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20416 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20417 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20418 scope and rename to omfib_buffer for clarity.
20419 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20420
20421 2007-09-14 Kenichi Handa <handa@m17n.org>
20422
20423 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20424
20425 2007-09-13 Jason Rumney <jasonr@gnu.org>
20426
20427 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20428
20429 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20430
20431 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20432 (mac_term_init): Call here instead, passing rif.
20433
20434 2007-09-13 Glenn Morris <rgm@gnu.org>
20435
20436 * s/hpux.h: No longer define `static' as nothing.
20437
20438 2007-09-13 Johan Bockgård <bojohan@gnu.org>
20439
20440 * callint.c (Fcall_interactively): Remove unused var `fun'.
20441
20442 2007-09-12 Romain Francoise <romain@orebokech.com>
20443
20444 * window.c (prefer_window_split_horizontally, display_buffer):
20445 Revert 2007-09-08 change.
20446
20447 2007-09-12 Glenn Morris <rgm@gnu.org>
20448
20449 * alloca.c: Remove file.
20450 * Makefile.in (alloca): Do not undef.
20451 (allocaobj, alloca.o): Remove.
20452 (otherobj): Remove allocaobj.
20453 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20454 * regex.c (C_ALLOCA): Remove all references and code that was only
20455 used when this was defined.
20456 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20457 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20458 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20459
20460 * Makefile.in (SOURCES, unlock, relock): Delete.
20461
20462 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20463 (menu_grab_callback): All uses changed.
20464
20465 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20466 (x_reply_selection_request): All uses changed.
20467
20468 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20469
20470 * lread.c (load_warn_old_style_backquotes): Change message to look
20471 better when it appears in the middle of byte-compiler messages.
20472
20473 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20474
20475 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20476
20477 * xterm.c (x_create_terminal): Add comment.
20478
20479 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20480
20481 2007-09-10 Richard Stallman <rms@gnu.org>
20482
20483 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20484
20485 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20486
20487 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20488 (DEFUN): Document `intspec', use it instead of `prompt'.
20489
20490 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20491
20492 * data.c (Finteractive_form): If the interactive specification starts
20493 with a `(', use it as a Lisp form.
20494
20495 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20496 name and file modes.
20497
20498 * callint.c (Fcall_interactively): Comment fixes.
20499
20500 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20501
20502 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20503 and compiled functions.
20504
20505 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20506
20507 * window.c (prefer_window_split_horizontally): New variable.
20508 (display_buffer): Consider splitting window horizontally depending
20509 on prefer_window_split_horizontally.
20510
20511 2007-09-08 Eli Zaretskii <eliz@gnu.org>
20512
20513 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20514
20515 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20516
20517 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20518
20519 * frame.c (x_set_frame_parameters): Check number is positive before
20520 using XFASTINT.
20521
20522 * window.c (freeze_window_start): Don't presume selected_window holds
20523 a window object.
20524 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20525
20526 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20527
20528 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20529
20530 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20531
20532 * window.c (Vsplit_window_preferred_function): New var.
20533 (Fdisplay_buffer): Use it.
20534 (syms_of_window): Export, and initialize it.
20535
20536 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20537
20538 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20539
20540 2007-09-06 Glenn Morris <rgm@gnu.org>
20541
20542 * gtkutil.c (menu_grab_callback) <cnt>:
20543 * xselect.c (x_reply_selection_request) <cnt>: Move static
20544 variable to file scope.
20545
20546 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20547
20548 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20549 consistent values of selected_frame and selected_window.
20550
20551 2007-09-04 Jason Rumney <jasonr@gnu.org>
20552
20553 * w32console.c (initialize_w32_display): Zero unused hooks.
20554
20555 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20556
20557 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20558 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20559
20560 2007-09-04 Jason Rumney <jasonr@gnu.org>
20561
20562 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20563 in w32console.c. Set up input. Remove XXX comments that have been
20564 confirmed as correct.
20565
20566 * s/ms-w32.h (MULTI_KBOARD): Define.
20567
20568 * w32console.c (one_and_only_w32cons): Remove.
20569 (initialize_w32_display): Take terminal argument.
20570
20571 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20572 initialize_w32_display.
20573 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20574
20575 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20576
20577 * keyboard.c (discard_mouse_events): Discard it.
20578 (make_lispy_event): Translate it to a lisp event.
20579 (lispy_wheel_names): Add wheel-left and right events.
20580 (syms_of_keyboard): Enlarge wheel_syms.
20581
20582 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20583 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20584
20585 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20586
20587 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20588 from WM_MOUSEHWHEEL.
20589 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20590
20591 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20592 terminal.
20593
20594 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20595 keyboard for the terminal.
20596
20597 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20598
20599 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20600 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20601 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20602 and resume-tty-function to resume-tty-hook.
20603 (Fsuspend_tty, Fresume_tty): Use new names.
20604
20605 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20606
20607 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20608 if it starts with "n:".
20609
20610 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20611
20612 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20613
20614 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20615
20616 * frame.h:
20617 * frame.c (Qterm_environment_variable): Remove.
20618 (syms_of_frame): Don't init and staticpro it.
20619
20620 * callproc.c (getenv_internal): Remove special case for $TERM.
20621
20622 * callproc.c (Vinitial_environment): New variable.
20623 (set_initial_environment): Initialize it.
20624 (syms_of_callproc): Declare it.
20625 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20626 TERM under which a process runs is never related to the TERM in which
20627 Emacs is running.
20628
20629 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20630
20631 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20632 * s/darwin.h: ... do it here.
20633
20634 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20635
20636 * lisp.h (set_initial_environment): Rename from set_global_environment.
20637
20638 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20639 removed by mistake on the multi-tty branch.
20640
20641 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20642 (Fmodify_frame_parameters): Return a value.
20643
20644 * image.c (png_load): Comment-out var only used in commented-out code.
20645
20646 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20647 before passing it to mark_object.
20648
20649 * xfaces.c (internal_resolve_face_name): Return a value.
20650 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20651
20652 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20653 (x_icon): Comment-out var only used in commented-out code.
20654
20655 2007-08-29 Romain Francoise <romain@orebokech.com>
20656
20657 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20658 QUIT hasn't been provided.
20659
20660 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20661
20662 * callproc.c (child_setup, getenv_internal): Use the
20663 display-environment-variable and term-environment-variable frame params.
20664 (set_initial_environment): Initialise Vprocess_environment.
20665
20666 * config.in: Disable multi-keyboard support on a mac.
20667
20668 * frame.c (Qterm_environment_variable)
20669 (Qdisplay_environment_variable): New variables.
20670 (syms_of_frame): Intern and staticpro them.
20671 (Fmake_terminal_frame): Disable output method test.
20672
20673 * frame.h: Declare them here.
20674
20675 * macfns.c (x_set_mouse_color): Get rif from the frame.
20676 (x_set_tool_bar_lines): Don't use updating_frame.
20677 (mac_window): Add 2 new parameters for consistency with other systems.
20678 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20679 frame parameters following what is done in X11 and w32. Don't use
20680 FRAME_MAC_DISPLAY_INFO.
20681 (Fx_open_connection, start_hourglass): Remove window-system check.
20682 (x_create_tip_frame): Get the keyboard from the terminal.
20683
20684 * macmenu.c: Reorder includes.
20685 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20686
20687 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20688 terminal parameter.
20689 (x_clear_frame): Add a frame parameter.
20690 (note_mouse_movement): Get rif from the frame.
20691 (mac_term_init): Initialize the terminal.
20692 (mac_initialize): Make static and move terminal initialization ...
20693 (mac_create_terminal): ... to this new function.
20694
20695 * macterm.h (struct mac_display_info): Add terminal.
20696 (mac_initialize): Delete declaration.
20697
20698 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20699
20700 * sysdep.c: Comment out text after #endif.
20701
20702 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20703 is defined. Better initialize ttys in windows. Use terminal
20704 specific mouse_position_hook.
20705
20706 * termhooks.h (union display_info): Add mac_display_info.
20707
20708 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20709 Set the default minibuffer frame, window_system and the rest of the
20710 frame parameters following what is done in X11.
20711
20712 * w32term.c (w32_initialize): Make static.
20713
20714 * xselect.c (x_handle_selection_clear): Only access
20715 terminal->kboard when MULTI_KBOARD is defined.
20716
20717 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20718 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20719
20720 2007-08-29 Jason Rumney <jasonr@gnu.org>
20721
20722 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20723 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20724
20725 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20726 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20727
20728 * keyboard.c (restore_kboard_configuration): Only define when
20729 MULTI_KBOARD defined.
20730
20731 * makefile.w32-in: Update dependancies from Makefile.in.
20732 (OBJ1): Add terminal.$(O)
20733
20734 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20735 Don't define function body.
20736 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20737
20738 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20739
20740 * w32.c (request_sigio, unrequest_sigio): Remove.
20741
20742 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20743 (w32con_clear_frame, w32con_clear_end_of_line)
20744 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20745 (w32con_delete_glyphs, w32con_set_terminal_window)
20746 (scroll_line, w32_sys_ring_bell): Add frame arg.
20747 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20748 Add terminal arg.
20749 (PICK_FRAME): Remove.
20750 (w32con_write_glyphs): Use frame specific terminal coding.
20751 (one_and_only_w32cons): New global variable.
20752 (initialize_w32_display): Use it for storing hooks.
20753 (create_w32cons_output): New function.
20754
20755 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20756 arg a frame.
20757
20758 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20759 Set window_system.
20760 (x_set_tool_bar_lines): Don't use updating_frame.
20761 (Fx_create_frame): Set terminal and ref count.
20762 (Fx_open_connection): Remove window-system check.
20763
20764 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20765
20766 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20767 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20768 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20769 Add frame arg.
20770 (x_delete_terminal, w32_create_terminal): New functions.
20771 (w32_term_init): Create a terminal.
20772 (w32_initialize): Move terminal specific initialization to
20773 w32_create_terminal.
20774
20775 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20776 (w32_clear_rect, w32_clear_area): Use background from frame.
20777 (w32_display_info): Add terminal.
20778 (w32_sys_ring_bell, x_delete_display): Declare here.
20779
20780 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20781
20782 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20783
20784 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20785
20786 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20787 Fix get_named_tty calls for the controlling tty.
20788
20789 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20790
20791 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
20792
20793 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20794
20795 * term.c (tty_insert_glyphs): Add missing first parameter.
20796
20797 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20798
20799 * buffer.c (Fbuffer_list, Fbury_buffer):
20800 Take frame->buried_buffer_list into account.
20801
20802 * cm.c (current_tty): New variable, for cmputc().
20803 (cmputc): Use it.
20804 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20805 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20806 (cmgoto): Add tty parameter. Pass it on to calccost().
20807 Use emacs_tputs() instead of tputs().
20808
20809 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20810 tputs().
20811 (current_tty): New variable, for cmputc().
20812 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20813
20814 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20815 (internal_condition_case, internal_condition_case_1)
20816 (internal_condition_case_2): Don't abort when x_catching_errors.
20817
20818 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20819 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20820 prevent crashes caused by bogus longjmps in read_char.
20821
20822 * keymap.h (Fset_keymap_parent): Add EXFUN.
20823
20824 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20825 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20826 Remove redundant definition.
20827
20828 * macfns.c (x_set_mouse_color, x_make_gc):
20829 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20830
20831 * w32term.c (x_free_frame_resources):
20832 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20833 (w32_initialize): Use the accessor macros for terminal characteristics.
20834
20835 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20836 Use the accessor macros for terminal characteristics.
20837 * msdos.c (internal_terminal_init): Use the accessor macros for
20838 terminal characteristics.
20839 (ScreenVisualBell, internal_terminal_init):
20840 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20841
20842 * termopts.h (no_redraw_on_reenter): Declare.
20843
20844 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20845 (mark_terminals, mark_ttys): Declare.
20846 (Fgarbage_collect): Call them.
20847 (mark_object): Mark buried_buffer_list.
20848
20849 * prefix-args.c: Include stdlib.h for exit.
20850
20851 * syssignal.h: Add comment.
20852
20853 * indent.c: Include stdio.h.
20854
20855 * window.h (Vinitial_window_system): Declare.
20856 (Vwindow_system): Delete declaration.
20857
20858 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20859
20860 * image.c (lookup_image): Don't initialize `c' until the xasserts
20861 have been run.
20862
20863 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20864 FRAME_FOREGROUND_PIXEL.
20865
20866 * print.c (print_preprocess): Don't lose print_depth levels while
20867 iterating.
20868
20869 * widget.c (update_from_various_frame_slots):
20870 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20871
20872 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20873 frames.
20874 (window_internal_height): Remove bogus make_number call.
20875 (init_window_once): Call make_terminal_frame with two zero parameters.
20876
20877 * fileio.c (Fread_file_name): Update comment.
20878
20879 * callint.c (Fcall_interactively):
20880 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20881 Make sure it is correctly unwound.
20882
20883 * xsmfns.c (x_session_close): New function.
20884
20885 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20886 Delete declarations.
20887
20888 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20889 (x_output): Remove background_pixel and foreground_pixel fields.
20890 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20891 (x_delete_device, x_session_close): Declare.
20892
20893 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20894 (read_filtered_event): Call `read_char' with a local
20895 `wrong_kboard_jmpbuf'.
20896
20897 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20898 Don't call single_kboard_state. Use FRAME_RIF.
20899
20900 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20901 systems.
20902
20903 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20904 (Fframe_with_environment, Fset_input_meta_mode)
20905 (Fset_quit_char): EXFUN.
20906 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20907 (init_sys_modes, reset_sys_modes): Update prototypes.
20908 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20909
20910 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20911 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20912 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20913 Delete declarations.
20914 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20915 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20916 New declarations.
20917
20918 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20919 already does that during init_display(). Call syms_of_keymap
20920 before syms_of_keyboard. Call `syms_of_terminal'.
20921 Call set_initial_environment, not set_process_environment.
20922 (shut_down_emacs): Call reset_all_sys_modes() instead of
20923 reset_sys_modes().
20924
20925 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20926 (internal_resolve_face_name, resolve_face_name_error): New functions.
20927 (resolve_face_name): Protect against loops and errors thrown by Fget.
20928 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20929 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20930
20931 * scroll.c: Replace CURTTY() with local variables throughout the
20932 file (where applicable).
20933 (calculate_scrolling, calculate_direct_scrolling)
20934 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20935 characteristics.
20936
20937 * keymap.c (Vfunction_key_map): Remove.
20938 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20939 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20940 (Vkey_translation_map): Remove.
20941 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20942 (Fdescribe_buffer_bindings)
20943 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20944 Update for terminal-local key-translation-map.
20945
20946 * Makefile.in (callproc.o): Update dependencies.
20947 (lisp, shortlisp): Add termdev.elc.
20948 (obj): Add terminal.o.
20949 (terminal.o): Add dependencies.
20950 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20951 (data.o, fns.o): Add termhooks.h dependency.
20952 (SOME_MACHINE_LISP): Add dnd.elc.
20953 (minibuf.o): Fix typo.
20954 Update dependencies.
20955
20956 * data.c (do_symval_forwarding, store_symval_forwarding)
20957 (find_symbol_value): Use the selected frame's keyboard, not
20958 current_kboard.
20959
20960 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20961 Vwindow_system.
20962
20963 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20964 Fmenu_bar_open.
20965 (syms_of_xmenu): Update defsubr.
20966 (mouse_position_for_popup, Fx_popup_menu)
20967 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20968 (set_frame_menubar, free_frame_menubar)
20969 (create_and_show_popup_menu, xmenu_show)
20970 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20971 an X frame.
20972
20973 * xselect.c (x_own_selection): Abort if not an X frame.
20974 (some_frame_on_display): Check if it is an X frame.
20975 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20976
20977 * coding.c: Include frame.h and termhooks.h.
20978 (terminal_coding, keyboard_coding): Delete.
20979 (Fset_terminal_coding_system_internal)
20980 (Fset_keyboard_coding_system_internal)
20981 (Fkeyboard_coding_system)
20982 (Fterminal_coding_system): Add a terminal parameter.
20983 Get terminal_coding from the terminal.
20984 (init_coding_once): Don't call setup_coding_system here.
20985
20986 * dispextern.h (set_scroll_region, turn_off_insert)
20987 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20988 (tty_clear_end_of_line, tty_setup_colors)
20989 (delete_tty, updating_frame)
20990 (produce_special_glyphs, produce_glyphs, write_glyphs)
20991 (insert_glyphs): Remove.
20992 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20993 (tty_turn_off_highlight, get_tty_size): Add declaration.
20994 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20995
20996 * frame.h (enum output_method): Add output_initial.
20997 (struct x_output): Delete.
20998 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20999 Access foreground_pixel and background_pixel directly from the frame.
21000 (tty_display): Delete.
21001 (struct frame): Add buried_buffer_list, foreground_pixel,
21002 background_pixel and terminal. Delete kboard.
21003 (union output_data): Add tty.
21004 (FRAME_KBOARD): Get the kboard from the terminal.
21005 (FRAME_INITIAL_P): New macro.
21006 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
21007 (Qterm_environment_variable, Qdisplay_environment_variable)
21008 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
21009 New declarations.
21010
21011 * termchar.h (tty_output, tty_display_info): New structures.
21012 (tty_list): Declare.
21013 (FRAME_TTY, CURTTY): New macros.
21014 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
21015 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
21016 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
21017 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
21018
21019 * callproc.c: Include frame.h and termhooks.h, for terminal
21020 parameters.
21021 (add_env): New function.
21022 (child_setup): Use it.
21023 (child_setup, getenv_internal): Handle the new Vprocess_environment.
21024 (getenv_internal): Fix get_terminal_param call.
21025 (Fgetenv_internal, egetenv): Update doc.
21026 (syms_of_callproc): Initialize Vprocess_environment to nil.
21027 Register and initialize them. Remove obsolete defvars. Update doc
21028 strings.
21029 (child_setup): Handle Vlocal_environment_variables.
21030 (getenv_internal): Add terminal parameter.
21031 Handle Vlocal_environment_variables.
21032 (Fgetenv_internal): Add terminal parameter.
21033 (child_setup, getenv_internal, Fgetenv_internal): Store the local
21034 environment in a frame (not terminal) parameter. Update doc strings.
21035 (set_initial_environment): Rename from set_global_environment.
21036 Store Emacs environment in initial frame parameter.
21037
21038 * xdisp.c (redisplay_internal): Update references to
21039 `previous_terminal_frame'.
21040 (display_mode_line, Fformat_mode_line): Replace calls to
21041 `push_frame_kboard' with `push_kboard'.
21042 (get_glyph_string_clip_rects): Add extra parentheses and
21043 braces to prevent compiler warnings.
21044 (calc_pixel_width_or_height): Add xassert to check that the
21045 frame is alive. Don't call `lookup_image' on a termcap frame.
21046 (message2_nolog, message3_nolog, redisplay_internal)
21047 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
21048 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
21049 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
21050 (Fx_display_pixel_width, Fx_display_pixel_height)
21051 (Fx_display_planes, Fx_display_color_cells)
21052 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
21053 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
21054 (Fx_display_backing_store, Fx_display_visual_class)
21055 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
21056 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
21057
21058 * xfns.c (x_set_foreground_color x_set_background_color)
21059 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
21060 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21061 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
21062 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
21063 terminal that is being deleted.
21064 (Fx_create_frame): Use `store_frame_param' to set `window-system'
21065 frame parameter, and make sure it overrides any user-supplied setting.
21066 (Fx_close_connection, Fx_synchronize): Unify argument names with
21067 the rest of the DEFUNs.
21068
21069 * dispnew.c (Fsend_string_to_terminal): Update call to
21070 `get_tty_terminal'.
21071 (Fredraw_frame, Fsend_string_to_terminal)
21072 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
21073 FRAME_TERMCAP_P and FRAME_TTY.
21074 (window_change_signal): Don't believe width/height values that are
21075 impossibly small.
21076 (Vinitial_window_system): Rename from Vwindow_system.
21077 (termscript, Wcm, rif): Delete.
21078
21079 * termhooks.h (struct terminal): New struct containing the
21080 previously global text display hooks and new members NAME,
21081 DELETED and PARAM_ALIST.
21082 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
21083 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
21084 (FRAME_RIF): New macros.
21085 (get_terminal_param, get_device): New declarations.
21086 (termscript): Delete declaration.
21087
21088 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
21089 (XTflash, x_free_frame_resources, x_scroll_bar_create)
21090 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
21091 FRAME_FOREGROUND_PIXEL.
21092 (x_fully_uncatch_errors): Disable definition.
21093 (x_scroll_bar_expose): Fix reference to foreground pixel.
21094 (XTread_socket): Disable loop on all X displays.
21095 (x_delete_terminal): Don't set terminal->deleted and let
21096 delete_terminal delete the frames on the terminal.
21097 (x_delete_display): Doc update to reflect changes in
21098 delete_terminal.
21099 (x_display_info) <terminal>: Move member earlier in the struct.
21100 (deleting_tty): Remove old variable.
21101 (Fsuspend_tty): Call clear_tty_hooks.
21102 (Fresume_tty, init_tty): Call set_tty_hooks.
21103 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21104 errors on X frames.
21105 (x_catch_errors_unwind): Abort if x_error_message is NULL.
21106 (handle_one_xevent): Initialize `f' to NULL.
21107 (x_delete_terminal, x_create_terminal): New functions.
21108 (XTset_terminal_modes, XTreset_terminal_modes)
21109 (XTread_socket, x_connection_closed, x_term_init)
21110 (x_term_init, x_delete_display): Add terminal parameter.
21111 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21112 X connections.
21113
21114 * frame.c: Include termchar.h.
21115 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21116 (Qwindow_system, Qenvironment, Qterm_environment_variable)
21117 (Qdisplay_environment_variable): New vars.
21118 (Fframep): Deal with output_initial.
21119 (Fframe-live-p): Doc fix.
21120 (Fwindow-system): New function.
21121 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21122 (make_terminal_frame): Don't create frames on a terminal that is
21123 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21124 (store_frame_param): Check for found_for_frame before calling XFRAME.
21125 (Fmake_terminal_frame): Handle NULL tty names correctly.
21126 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21127 (Fdelete_frame): Remove unused variable `count'. Don't allow other
21128 frames to refer to a deleted frame in their 'environment parameter.
21129 (Fframe_with_environment): New function.
21130 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
21131 (get_future_frame_param): New function.
21132 (Fmake_terminal_frame): Use it.
21133 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21134
21135 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21136 * sysdep.c (reset_sys_modes): Update for renames.
21137
21138 * keyboard.c (tty_read_avail_input): New function.
21139 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
21140 (syms_of_keyboard): Defsubr them.
21141 (Fset_input_meta_mode, Fset_quit_char): New functions.
21142 (Fset_input_mode): Split to above functions.
21143 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21144 parameter. Use it in call to `read_char'.
21145 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
21146 Set wrong_kboard_jmpbuf correctly in recursive calls.
21147 Use current_kboard to access Vkeyboard_translate_table.
21148 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21149 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21150 Update longjmp invocations. Remember the original current_kboard,
21151 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21152 changes it. Comment out unnecessary calls to
21153 `record_single_kboard_state' and `any_kboard_state'.
21154 Update recursive calls.
21155 (wrong_kboard_jmpbuf): Remove global variable.
21156 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21157 Handle deleted interrupted_kboards correctly; that is a legal
21158 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21159 and read_char calls. Abort if interrupted_kboard died in read_char.
21160 (any_kboard_state, single_kboard_state)
21161 (push_frame_kboard): Remove function.
21162 (pop_kboard): Switch out of single_kboard mode if the kboard has
21163 been deleted. Remove unused variable. Help debugging by not
21164 changing current_kboard unnecessarily. Set current_kboard to the
21165 kboard of the selected frame when the stored kboard object has
21166 been deleted before pop_kboard.
21167 (temporarily_switch_to_single_kboard): Change first parameter to a
21168 frame pointer. Throw an error when caller wants to change kboards
21169 while in single_kboard mode. Don't push_kboard if we weren't in
21170 single kboard state. Don't pop_kboard if we popped into any
21171 kboard state.
21172 (restore_kboard_configuration): Abort if pop_kboard changed the
21173 kboard in single_kboard mode. Call pop_kboard only after setting
21174 up single_kboard mode.
21175 (Frecursive_edit): Switch to single_kboard mode only in nested
21176 command loops.
21177 (cmd_error, command_loop, command_loop_1, timer_check):
21178 Comment out unnecessary call to `any_kboard_state' and
21179 `record_single_kboard_state'.
21180 (delete_kboard): Exit single_kboard mode if we have just deleted
21181 that kboard. Use FRAME_KBOARD.
21182 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21183 `fatal_error_signal'.
21184 (record_single_kboard_state): Don't push_kboard if we weren't in
21185 single kboard state. Don't pop_kboard if we popped into any
21186 kboard state.
21187 (push_frame_kboard): Rename to push_kboard.
21188 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21189 (read_avail_input): Read input from all terminals.
21190 (mark_kboards): Also mark Vkeyboard_translate_table.
21191 (kbd_buffer_store_event_hold): Simplify condition.
21192 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21193 (Vkeyboard_translate_table): Move to struct kboard.
21194 (init_kboard): Initialize Vkeyboard_translate_table.
21195 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21196 Vkeyboard_translate_table. Update doc strings. Update docs of
21197 local-function-key-map and function-key-map.
21198
21199 * terminal.c: New file.
21200
21201 * term.c: Include errno.h.
21202 (Vring_bell_function, device_list, initial_device)
21203 (next_device_id, ring_bell, update_begin, update_end)
21204 (set_terminal_window, cursor_to, raw_cursor_to)
21205 (clear_to_end, clear_frame, clear_end_of_line)
21206 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21207 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21208 (syms_of_term): Move their initialization to terminal.c.
21209 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21210 (Ftty_display_color_cells)
21211 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21212 (clear_tty_hooks, set_tty_hooks)
21213 (init_tty, maybe_fatal): New functions.
21214 (Ftty_type): Return nil if terminal is not on a tty instead of
21215 throwing an error. Doc update.
21216 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21217 Doc update. Initialize new subrs and variables.
21218 (delete_tty): Use terminal->deleted.
21219 (tty_set_terminal_modes): Rename from set_terminal_modes.
21220 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21221 (set_scroll_region): Rename to `tty_set_scroll_region'.
21222 (turn_on_insert): Rename to `tty_turn_on_insert'.
21223 (turn_off_insert): Rename to `tty_turn_off_insert'.
21224 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21225 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21226 (toggle_highligh): Rename to `tty_toggle_highlight'.
21227 (background_highlight): Rename to `tty_background_highlight'.
21228 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21229 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21230 (tty_set_scroll_region, tty_background_highlight)
21231 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21232 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21233 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21234 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21235 Add static modifier.
21236 (tty_reset_terminal_modes, tty_set_terminal_window)
21237 (tty_set_scroll_region, tty_background_highlight)
21238 (tty_highlight_if_desired, tty_cursor_to)
21239 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21240 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21241 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21242 renames.
21243
21244 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21245
21246 * keyboard.c: Qrtl is new.
21247 (parse_tool_bar_item): Handle :rtl keyword.
21248 (syms_of_keyboard): Intern :rtl keyword.
21249
21250 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21251
21252 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21253 so no Lisp code is executed.
21254 (file_for_image, find_rtl_image): New functions.
21255 (xg_get_image_for_pixmap): Use file_for_image.
21256 (update_frame_tool_bar): If direction is RTL, use RTL image if
21257 defined. Use Gtk stock images if defined.
21258
21259 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21260
21261 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21262 for nonexistent or zero-width glyph in composition glyph.
21263
21264 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21265
21266 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21267
21268 * xdisp.c (Finvisible_p): New function.
21269 (syms_of_xdisp): defsubr it.
21270
21271 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
21272
21273 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21274 Doc fixes.
21275
21276 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21277
21278 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21279
21280 2007-08-24 Martin Rudalics <rudalics@gmx.at>
21281
21282 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21283 whether decoding has modified buffer contents.
21284
21285 2007-08-24 Jason Rumney <jasonr@gnu.org>
21286
21287 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21288 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21289 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21290 (init_svg_functions) [HAVE_NTGUI]: New function.
21291 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21292 (svg_load_image): Use them.
21293 (svg_load_image) [HAVE_NTGUI]: Implement background.
21294
21295 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21296
21297 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21298 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21299 (LIBX): Remove @RSVG_LIBS@.
21300 (LIBES): Add $(RSVG_LIBS).
21301
21302 * image.c (svg_load_image): Blend with specified background if exists.
21303 Use IMAGE_BACKGROUND. Add Mac OS Support.
21304
21305 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21306 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21307 Remove macros.
21308 [MAC_OSX] (socket_callback): Do nothing.
21309 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21310 ReceiveNextEvent.
21311 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21312 socket_callback.
21313 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21314
21315 2007-08-22 Glenn Morris <rgm@gnu.org>
21316
21317 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21318
21319 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21320
21321 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21322
21323 * image.c: Add support for SVG images. Some additional comments
21324 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21325 (svg_image_p): New function to test for SVG image.
21326 (svg_load): New function to load SVG image.
21327 (svg_load_image): New function, helper for svg_load.
21328 (Qsvg): New Lisp_object.
21329 (svg_keyword_index): New enum.
21330 (svg_format): New static `image_keyword' struct.
21331 (svg_type): New static `image_type' struct.
21332 (librsvg/rsvg.h): Include it.
21333
21334 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21335
21336 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21337
21338 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21339
21340 * lread.c (Qold_style_backquotes): New var.
21341 (syms_of_lread): Init and staticpro it.
21342 (load_warn_old_style_backquotes): New fun.
21343 (Fload): Use them to warn about old style backquotes.
21344 (end_of_file_error, Fload): Remove unused vars.
21345
21346 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21347
21348 * lread.c (Vold_style_backquotes): New var.
21349 (syms_of_lread): Init and export it to Elisp.
21350 (read1): Set it when we find an old-style (back)quote.
21351
21352 2007-08-22 Jason Rumney <jasonr@gnu.org>
21353
21354 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21355
21356 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21357
21358 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21359
21360 2007-08-19 Richard Stallman <rms@gnu.org>
21361
21362 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21363
21364 2007-08-19 Andreas Schwab <schwab@suse.de>
21365
21366 * alloc.c (pure): Round PURESIZE up.
21367
21368 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21369
21370 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21371 active frame.
21372
21373 2007-08-16 Richard Stallman <rms@gnu.org>
21374
21375 * eval.c (Fcommandp): Add parens to clarify.
21376
21377 * minibuf.c (Fall_completions): Use enum for type of table.
21378
21379 * emacs.c (USAGE2): Improve text.
21380
21381 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21382
21383 * term.c (tty_default_color_capabilities): Declare static
21384 variables in file scope, to avoid HPUX compiler problem.
21385
21386 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21387
21388 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21389 to gtk_toolbar_insert.
21390
21391 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21392
21393 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21394
21395 * insdel.c (reset_var_on_error): New fun.
21396 (signal_before_change, signal_after_change):
21397 Use it to reset (after|before)-change-functions to nil in case of error.
21398 Bind inhibit-modification-hooks to t.
21399 Don't bind (after|before)-change-functions to nil while they run.
21400
21401 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21402
21403 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21404 filling pixmap with stippled background.
21405
21406 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21407
21408 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21409 Don't use invisible frame as parent window for repositioning.
21410
21411 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21412
21413 * print.c (new_backquote_output): Rename from old_backquote_output.
21414 (print): Inverse its logic (according to its name) so as to match the
21415 behavior of new_backquote_flag in lread.c.
21416
21417 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21418
21419 * gmalloc.c (posix_memalign): New function.
21420
21421 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21422 ActivateControl/DeactivateControl here.
21423 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21424 frame-notice-user-settings is non-nil.
21425 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21426 for kEventParamFMFontStyle.
21427 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21428 mac_pass_command_to_system and mac_pass_control_to_system here.
21429 (XTread_socket): Call ActivateControl/DeactivateControl here.
21430 (XTread_socket) [TARGET_API_MAC_CARBON]:
21431 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21432 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21433 for window repositioning.
21434
21435 2007-08-08 Glenn Morris <rgm@gnu.org>
21436
21437 * Replace `iff' in doc-strings and comments.
21438
21439 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
21440
21441 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21442
21443 2007-08-07 Martin Rudalics <rudalics@gmx.at>
21444
21445 * fileio.c (Finsert_file_contents): Run format-decode and
21446 after_insert_file_functions on entire buffer when REPLACE is
21447 non-nil and inhibit modification_hooks and point_motion_hooks.
21448 For consistency, run after_insert_file_functions iff something
21449 got inserted. Move signal_after_change and update_compositions
21450 after code running after_insert_file_functions. Make sure that
21451 undo_list doesn't record intermediate steps of the decoding process.
21452
21453 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21454
21455 * emacs.c (main)
21456 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21457 Call malloc_enable_thread on interactive startup.
21458
21459 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21460 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21461 [USE_PTHREAD]: Conditionalize with it.
21462 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21463 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21464 New functions.
21465
21466 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
21467
21468 * xdisp.c (redisplay_window): When restoring original buffer
21469 position, make sure it is still valid.
21470
21471 * image.c (png_load): Ignore png-supplied background color.
21472
21473 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21474
21475 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21476 Use kCFAbsoluteTimeIntervalSince1970.
21477
21478 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21479 New variable.
21480 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21481 event loop should be quit.
21482 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21483 Quit dialog event loop if quit_dialog_event_loop is set.
21484
21485 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21486 (Selection): New typedef. Use instead of ScrapRef.
21487 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21488 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21489 (mac_clear_selection): Rename from clear_scrap.
21490 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21491 scrap_has_target_type. All uses changed.
21492 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21493 (mac_selection_has_target_p): New functions.
21494 (mac_put_selection_value): Rename from put_scrap_string.
21495 (mac_get_selection_value): Rename from get_scrap_string.
21496 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21497 (put_scrap_private_timestamp, scrap_has_target_type)
21498 (get_scrap_private_timestamp): Remove functions.
21499 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21500 (x_own_selection, x_get_local_selection):
21501 Use mac_valid_selection_value_p.
21502 (x_own_selection): Don't use put_scrap_private_timestamp.
21503 Record OWNERSHIP-INFO into Vselection_alist instead.
21504 (x_get_local_selection): Don't check type if request is local.
21505 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21506 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21507
21508 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21509
21510 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21511 add comment explaining why.
21512
21513 2007-08-03 Richard Stallman <rms@gnu.org>
21514
21515 * fileio.c (Fvisited_file_modtime): Use make_time.
21516
21517 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21518
21519 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21520 build.
21521
21522 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21523
21524 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21525
21526 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21527
21528 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21529
21530 2007-07-30 Richard Stallman <rms@gnu.org>
21531
21532 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21533
21534 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21535
21536 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21537
21538 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
21539
21540 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21541 remote default-directory.
21542
21543 * buffer.c (mode-line-format): Update doc string.
21544
21545 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21546
21547 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21548 scroll bar gap.
21549 (x_scroll_bar_create): Set bar->fringe_extended_p.
21550 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21551 on frame edge. Check fringe background extension. Don't clear
21552 extended fringe background area.
21553
21554 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21555 (w32_fill_area): Enclose multiple statements with do ... while (0).
21556
21557 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21558 Extend fringe background to scroll bar gap.
21559 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21560 Set bar->fringe_extended_p.
21561 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21562 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21563 background extension. Don't clear extended fringe background area.
21564
21565 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21566 New member fringe_extended_p.
21567
21568 2007-07-25 Glenn Morris <rgm@gnu.org>
21569
21570 * Relicense all FSF files to GPLv3 or later.
21571
21572 * COPYING: Switch to GPLv3.
21573
21574 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21575
21576 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21577
21578 * data.c (Finteractive_form): Check for the presence of an
21579 `interactive-form' symbol property more thoroughly.
21580
21581 * data.c (Finteractive_form): Use an `interactive-form' property if
21582 present, analogous to the function-documentation property.
21583
21584 2007-07-24 Jason Rumney <jasonr@gnu.org>
21585
21586 * w32fns.c (x_real_positions): Get real position from OS instead of
21587 calculating it.
21588
21589 2007-07-23 Jason Rumney <jasonr@gnu.org>
21590
21591 * filelock.c (current_lock_owner): Allow for @ sign in username.
21592
21593 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
21594
21595 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21596 remote default-directory.
21597
21598 * buffer.c (mode-line-format): Describe above case in doc string.
21599
21600 2007-07-20 Eli Zaretskii <eliz@gnu.org>
21601
21602 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21603 Define if not defined.
21604
21605 2007-07-18 Jason Rumney <jasonr@gnu.org>
21606
21607 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21608
21609 2007-07-18 Richard Stallman <rms@gnu.org>
21610
21611 * data.c (Fsetq_default): Doc fix.
21612
21613 * eval.c (Fsetq): Doc fix.
21614
21615 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
21616
21617 * coding.c (Ffind_operation_coding_system):
21618 * eval.c (For, Fand): Doc fixes.
21619 Reported by Johan Bockgård.
21620
21621 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21622
21623 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21624
21625 * xterm.h: Declare x_ewmh_activate_frame.
21626
21627 * xterm.c (x_ewmh_activate_frame): New function.
21628 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21629
21630 2007-07-17 Martin Rudalics <rudalics@gmx.at>
21631
21632 * window.c (Fdisplay_buffer): If largest or LRU window is the
21633 only window, split it even if it is not eligible for splitting.
21634 This restores the original behavior broken by the 2007-07-15
21635 change.
21636
21637 2007-07-17 Glenn Morris <rgm@gnu.org>
21638
21639 * abbrev.c (abbrev_check_chars): New function.
21640 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21641 Call abbrev_check_chars to check abbrev characters are word
21642 constituents. Doc fix.
21643
21644 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21645
21646 * process.c (Fstart_process, Fmake_network_process)
21647 (read_process_output): Fix up last changes.
21648
21649 2007-07-16 Eli Zaretskii <eliz@gnu.org>
21650
21651 * makefile.w32-in (clean): Don't delete *~.
21652
21653 2007-07-16 Andreas Schwab <schwab@suse.de>
21654
21655 * window.c (Fdisplay_buffer): Use NILP.
21656 (Fset_window_scroll_bars): Likewise.
21657
21658 2007-07-15 Martin Rudalics <rudalics@gmx.at>
21659
21660 * window.c (window_min_size_2): New function.
21661 (window_min_size_1, size_window, Fdisplay_buffer)
21662 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21663 windows without mode- or header-lines when window-min-height is
21664 too small.
21665 (size_window): Reset nodelete_p after testing it, following an
21666 earlier note by Kim F. Storm.
21667 (display_buffer): Do not set split_height_threshold to twice the
21668 value of window_min_height to avoid changing the value of a
21669 customizable variable. Rather explicitly check whether the
21670 height of the window that shall be splitted is at least as large
21671 as split_height_threshold.
21672 (Fwindow_full_width_p): New defun.
21673 (syms_of_window): Defsubr it.
21674
21675 * window.h: Add EXFUN for Fwindow_full_width_p.
21676
21677 2007-07-14 Jason Rumney <jasonr@gnu.org>
21678
21679 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21680
21681 2007-07-14 Richard Stallman <rms@gnu.org>
21682
21683 * eval.c (maybe_call_debugger): New function.
21684 (find_handler_clause): Use maybe_call_debugger.
21685 Call it when the handler says `debug'.
21686 Eliminate DEBUGGER_VALUE_PTR.
21687 (Fsignal): Eliminate debugger_value.
21688 (Qdebug): New variable.
21689 (syms_of_eval): Initialize it.
21690
21691 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
21692
21693 * eval.c (Fprogn):
21694 * keyboard.c (Ftrack_mouse):
21695 * print.c (Fwith_output_to_temp_buffer):
21696 * window.c (Fsave_window_excursion): Doc fix.
21697
21698 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21699
21700 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21701
21702 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21703
21704 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21705 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21706 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21707 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21708 Remove unused encoding_carryover.
21709 * process.c: Adjust all functions accordingly.
21710
21711 2007-07-12 Richard Stallman <rms@gnu.org>
21712
21713 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21714
21715 2007-07-11 Jason Rumney <jasonr@gnu.org>
21716
21717 * makefile.w32-in (LIBS): Include OLE32.
21718
21719 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21720 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21721
21722 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21723
21724 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21725 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21726 from a Lisp_Object into a bare pointer.
21727 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21728 Adjust the code correspondingly.
21729
21730 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21731
21732 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21733 (term_show_mouse_face): Remove unused var `j'.
21734 (handle_one_term_event): Remove unused vars `i' and `j'.
21735 Don't cast return value of ttyname since it's not necessary.
21736
21737 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21738
21739 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21740 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21741
21742 * fns.c (map_char_table): Use an array of int for `indices' rather than
21743 an array of Lisp_Objects (which are only ever integers anyway).
21744 (Fmap_char_table): Update caller.
21745 * lisp.h: Update prototype.
21746 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21747 * fontset.c (Ffontset_info):
21748 * casetab.c (set_case_table): Update callers.
21749
21750 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21751
21752 * keymap.c (struct accessible_keymaps_data)
21753 (struct where_is_internal_data): New structures.
21754 (accessible_keymaps_1, where_is_internal_1): Use them to change
21755 interface to adhere to the one used by map_keymap.
21756 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21757 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21758
21759 * keymap.h (map_keymap_function_t): More informative prototype.
21760
21761 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21762
21763 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21764 (looking_at_1): Don't change search_regs and last_thing_searched
21765 if `inhibit-changing-match-data' is non-nil.
21766 (string_match_1, search_buffer, set_search_regs): Likewise.
21767 (syms_of_search): Add Lisp level definition for
21768 `inhibit-changing-match-data' and set it to nil.
21769 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21770 start and end of the match, instead of using values in search_regs.
21771
21772 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21773
21774 * minibuf.c (Fcompleting_read): New value `confirm-only'
21775 for `require-match'.
21776
21777 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21778
21779 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21780 part of the 2007-06-27 change to syms_of_fileio.
21781
21782 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21783
21784 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21785 Check WINDOWP before using XWINDOW. Consolidate return statements.
21786
21787 2007-06-27 Richard Stallman <rms@gnu.org>
21788
21789 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21790
21791 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
21792
21793 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21794
21795 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21796
21797 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21798 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21799 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21800 (_free_internal, memalign): Use them.
21801 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21802 Initialize to PTHREAD_MUTEX_INITIALIZER.
21803 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21804 (morecore_nolock): Rename from morecore. All uses changed.
21805 Use only nolock versions of internal allocation functions.
21806 (_malloc_internal_nolock, _realloc_internal_nolock)
21807 (_free_internal_nolock): New functions created from
21808 _malloc_internal, _realloc_internal, and _free_internal.
21809 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21810 Copy hook value to automatic variable before its use.
21811 (memalign): Copy hook value to automatic variable before its use.
21812
21813 2007-06-26 Kenichi Handa <handa@m17n.org>
21814
21815 * coding.c (Ffind_operation_coding_system): Docstring improved.
21816 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21817
21818 2007-06-25 David Kastrup <dak@gnu.org>
21819
21820 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21821 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21822 cater for additional parameter.
21823
21824 * keymap.h: Adjust number of parameters to `current-active-maps'.
21825
21826 * doc.c (Fsubstitute_command_keys): Adjust call of
21827 `current-active-maps'.
21828
21829 2007-06-25 David Kastrup <dak@gnu.org>
21830
21831 * callint.c (Fcall_interactively): Make the parsing of interactive
21832 specs somewhat more readable.
21833
21834 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21835
21836 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21837 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21838 if extended background has already been filled.
21839
21840 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21841
21842 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21843 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21844
21845 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21846 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21847 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21848 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21849 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21850 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21851 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21852 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21853 Run timers during dialog popup.
21854 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21855
21856 2007-06-21 Jason Rumney <jasonr@gnu.org>
21857
21858 * image.c (convert_mono_to_color_image): Swap fore and background.
21859
21860 2007-06-20 Jason Rumney <jasonr@gnu.org>
21861
21862 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21863 (w32_free_bdf_font): Unmap memory not handle.
21864
21865 2007-06-20 Sam Steingold <sds@gnu.org>
21866
21867 * gmalloc.c (__morecore): Fix the declaration to comply with the
21868 definition.
21869
21870 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
21871
21872 * w32term.c (w32_delete_display): Remove leftover declaration.
21873 (w32_define_cursor, w32_initialize): Make static.
21874
21875 * w32.c (_wsa_errlist): Fix typo in error message.
21876 (init_environment): Ignore any environment variable from the
21877 registry having a null value.
21878
21879 2007-06-20 Glenn Morris <rgm@gnu.org>
21880
21881 * Makefile.in (LIBGIF): Default to -lgif.
21882
21883 2007-06-17 Jason Rumney <jasonr@gnu.org>
21884
21885 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21886 unicode strings.
21887
21888 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
21889
21890 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21891 Fix typo in docstring.
21892
21893 2007-06-16 Eli Zaretskii <eliz@gnu.org>
21894
21895 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21896 and their keybindings.
21897
21898 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
21899
21900 * composite.c (update_compositions): Fix last fix.
21901
21902 2007-06-14 Jason Rumney <jasonr@gnu.org>
21903
21904 * w32.c (get_process_times_fn): New function pointer.
21905 (globals_of_w32): Intialize it if present in kernel32.dll.
21906 (w32_get_internal_run_time): New function.
21907
21908 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21909
21910 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21911
21912 * composite.c (update_compositions): Check the validness of
21913 compositions.
21914
21915 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21916
21917 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21918 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21919
21920 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21921 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21922
21923 * macgui.h (USE_MAC_TOOLBAR): New define.
21924
21925 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21926 Return immediately unless popup is activated.
21927
21928 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21929 background to scroll bar gap.
21930 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21931 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21932 scroll bars on frame edge. Check fringe background extension.
21933 Don't clear extended fringe background area.
21934 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21935 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21936 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21937 [USE_MAC_TOOLBAR]: New macros.
21938 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21939 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21940 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21941 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21942 [USE_MAC_TOOLBAR]: New functions.
21943 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21944 manually if previous repositioning has failed.
21945 (mac_handle_keyboard_event): Use precomputed event kind.
21946 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21947 as tool bar item click. Handle mouse movement over tool bar items.
21948
21949 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21950 toolbar_win_gravity.
21951 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21952 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21953 Add externs.
21954
21955 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21956 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21957
21958 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
21959
21960 * image.c (search_image_cache): Remove unused variable.
21961
21962 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
21963
21964 * xfns.c, xmenu.c: Link to xaw3d if available.
21965
21966 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21967
21968 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21969 frame_foreground and frame_background.
21970
21971 * image.c (lookup_image): Save frame foreground and background colors.
21972 (search_image_cache): Check if saved and current frame colors match.
21973
21974 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21975
21976 * regex.c (regex_compile): Remove the `regnum' counter.
21977 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21978
21979 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21980
21981 * term.c: Include intervals.h to declare Fget_text_property.
21982
21983 2007-06-10 Jason Rumney <jasonr@gnu.org>
21984
21985 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21986
21987 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
21988
21989 * callint.c (Fcall_interactively):
21990 * editfns.c (Fdelete_and_extract_region):
21991 * fileio.c (Fread_file_name):
21992 * fns.c (Fmapconcat):
21993 * keyboard.c (cmd_error_internal):
21994 * keymap.c (Fkey_description):
21995 * lread.c (openp):
21996 * minibuf.c (read_minibuf):
21997 * search.c (wordify):
21998 * sunfns.c (sel_read):
21999 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
22000 * xfns.c (x_default_scroll_bar_color_parameter):
22001 * xmenu.c (menu_help_callback):
22002 * xselect.c (Fx_get_atom_name):
22003 * xterm.c (x_term_init): Use empty_unibyte_string.
22004
22005 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
22006
22007 * alloc.c (init_strings): Initialize canonical empty strings.
22008 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
22009 canonical empty string when the requested size is 0.
22010
22011 * emacs.c (empty_unibyte_string): Rename from empty_string.
22012 (empty_multibyte_string): New canonical empty string.
22013 (syms_of_emacs): Don't initialize empty_string.
22014
22015 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
22016 string, if appropriate.
22017 (empty_unibyte_string, empty_multibyte_string): New externs.
22018 (empty_string): Remove extern.
22019
22020 * lread.c (syms_of_lread): Use empty_unibyte_string.
22021
22022 2007-06-07 Jason Rumney <jasonr@gnu.org>
22023
22024 * s/ms-w32.h: Don't define HAVE_TZNAME.
22025
22026 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
22027
22028 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22029
22030 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
22031
22032 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
22033 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
22034
22035 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22036 Don't call next handler.
22037 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
22038 Remove argument. Install handler to application.
22039 (set_frame_menubar): Don't change deep_p.
22040 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
22041 FRAME_OUTER_TO_INNER_DIFF_Y.
22042 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22043 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22044 [HAVE_DIALOGS]: New macros.
22045 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
22046 Use them.
22047 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
22048
22049 * macselect.c [MAC_OSX] (install_service_handler): Rename from
22050 init_service_handler. All callers changed. Return OSStatus value.
22051
22052 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
22053 All callers changed so as not to call SetPortWindowPort.
22054 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
22055 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
22056 mac_draw_string_common.
22057 (mac_draw_image_string_qd): Likewise.
22058 (mac_draw_string_common): Use them. Add INLINE.
22059 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
22060 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
22061 GetGlobalMouse.
22062 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
22063 and FRAME_OUTER_TO_INNER_DIFF_Y.
22064 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
22065 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
22066 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
22067 repositioning window to mac_handle_window_event.
22068 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
22069 saving window location to mac_handle_window_event
22070 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
22071 (install_menu_target_item_handler): Remove argument in extern.
22072 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
22073 Also accept command events.
22074 (do_keystroke): New function created from XTread_socket.
22075 (init_command_handler): Remove functions.
22076 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
22077 and save window location by kEventWindowShowing and kEventWindowHiding
22078 handlers here. Don't call next handler for window state change and
22079 focus events.
22080 (mac_handle_application_event, mac_handle_keyboard_event)
22081 [TARGET_API_MAC_CARBON]: New functions.
22082 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
22083 kEventWindowShowing and kEventWindowHiding events. Move installation
22084 of mouse, font, text input and menu target item handlers to
22085 install_application_handler.
22086 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
22087 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22088 New function.
22089 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22090 Register it.
22091 (XTread_socket) [TARGET_API_MAC_CARBON]:
22092 Consolidate SendEventToEventTarget calls.
22093 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22094 Move application activation handler to mac_handle_application_event.
22095 Move keyboard handler to mac_handle_keyboard_event.
22096 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22097 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22098 init_command_handler. Call install_application_handler.
22099
22100 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22101 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22102
22103 2007-06-07 Glenn Morris <rgm@gnu.org>
22104
22105 * emacs.c (main): Use `emacs-copyright' in --version output.
22106
22107 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
22108
22109 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22110
22111 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22112
22113 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22114
22115 * macgui.h: Replace WindowPtr with WindowRef.
22116
22117 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22118 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22119 Replace ControlHandle with ControlRef.
22120 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22121
22122 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22123 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22124 Replace ControlHandle with ControlRef.
22125 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22126 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22127
22128 * macterm.h (struct scroll_bar): Rename member control_handle_low
22129 and control_handle_high to control_ref_low and control_ref_high.
22130 All uses changed.
22131 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22132 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22133 respectively. All uses changed.
22134 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22135 (install_window_handler, remove_window_handler): Replace WindowPtr
22136 with WindowRef in externs.
22137
22138 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
22139
22140 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
22141
22142 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
22143
22144 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22145
22146 * frame.c (Fmouse_position, Fmouse_pixel_position):
22147 Condition on HAVE_GPM too.
22148
22149 * term.c (term_mouse_highlight): Remove unused variables.
22150 (Fterm_open_connection): Set gpm_zerobased to 1.
22151 (term_mouse_movement, term_mouse_click, handle_one_term_event):
22152 Use zero based co-ordinates.
22153 (handle_one_term_event): Report a drag as mouse movement too.
22154
22155 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22156
22157 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
22158
22159 * image.c (search_image_cache): New function. Require background
22160 color match if background color is unspecified in the image spec.
22161 (uncache_image, lookup_image): Use it.
22162
22163 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
22164
22165 * window.c (Fshrink_window): Reflow docstring.
22166
22167 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
22168
22169 * Version 22.1 released.
22170
22171 2007-06-01 Richard Stallman <rms@gnu.org>
22172
22173 * xfns.c (x_encode_text): Add GCPRO.
22174
22175 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22176
22177 * xfns.c (x_set_name_internal): Save encoded name before
22178 x_encode_text in case string data is relocated.
22179
22180 2007-05-31 Richard Stallman <rms@gnu.org>
22181
22182 * buffer.c (syms_of_buffer): Doc fix.
22183
22184 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
22185
22186 * sysdep.c (init_sys_modes): Add rather than replace with
22187 O_NONBLOCK.
22188
22189 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22190 term_mouse_moveto.
22191
22192 * termhooks.h (term_mouse_moveto): New extern.
22193
22194 * term.c (mouse_face_window): Rename...
22195 (Qmouse_face_window): ...to this.
22196 (term_show_mouse_face, term_clear_mouse_face)
22197 (term_mouse_highlight): Use Qmouse_face_window.
22198 (term_mouse_moveto): New function.
22199 (term_mouse_position): Make it work.
22200 (syms_of_term): Uncomment assignment to mouse_position_hook.
22201 Staticpro Qmouse_face_window.
22202
22203 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22204
22205 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22206 around current_column call.
22207
22208 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22209
22210 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22211 * xdisp.c (next_element_from_buffer):
22212 * window.c (delete_window):
22213 * term.c (term_mouse_highlight):
22214 * msdos.c (getdefdir):
22215 * macterm.c (mac_create_bitmap_from_bitmap_data)
22216 (init_font_name_table):
22217 * fns.c (Fsxhash):
22218 * data.c (Fmake_local_variable):
22219 * ccl.c (ccl_driver): Likewise.
22220
22221 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22222
22223 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22224 Call mac_wakeup_from_rne on window size change.
22225
22226 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
22227
22228 * image.c (uncache_image): Fix typo.
22229
22230 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22231
22232 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22233
22234 2007-05-22 Richard Stallman <rms@gnu.org>
22235
22236 * xterm.c (x_connection_closed): Remove NO_RETURN.
22237
22238 2007-05-22 Martin Rudalics <rudalics@gmx.at>
22239
22240 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22241
22242 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
22243
22244 * image.c (uncache_image): New function.
22245 (Fimage_refresh): New function.
22246
22247 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22248
22249 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22250
22251 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
22252
22253 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22254 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22255
22256 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
22257
22258 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22259 conditional on [HAVE_GPM_H].
22260
22261 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22262
22263 * syntax.c (skip_chars): Update syntax-table only after we checked that
22264 the new location is valid.
22265
22266 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22267
22268 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22269 mac_get_window_bounds.
22270
22271 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
22272
22273 * Makefile.in (LIBGPM): Allow it to be set from configure.
22274 If set then link Emacs with it.
22275
22276 * config.in: Regenerate.
22277
22278 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22279 New externs.
22280
22281 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22282 Include gpm.h.
22283 (handle_one_term_event, term_gpm): New externs.
22284
22285 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22286 and allow it to be interrupted by SIGIO.
22287
22288 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22289 (wait_reading_process_output): Wait on gpm_fd too.
22290 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22291 (add_gpm_wait_descriptor_called_flag): New variable.
22292 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22293
22294 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22295 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22296 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22297 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22298 (make_lispy_event): Add case GPM_CLICK_EVENT.
22299 (read_avail_input): Handle mouse input.
22300
22301 * term.c (write_glyphs_with_face): New function.
22302 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22303 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22304 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22305 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22306 (last_mouse_x, last_mouse_y): New variables.
22307 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22308 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22309 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22310 (Fterm_close_connection): New functions.
22311 (term_init): Initialise mouse_face_window.
22312
22313 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
22314
22315 * xdisp.c (redisplay_window): If first window line is a
22316 continuation line, recompute the new window start instead of
22317 recentering.
22318
22319 2007-05-18 Glenn Morris <rgm@gnu.org>
22320
22321 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22322 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22323
22324 2007-05-17 Glenn Morris <rgm@gnu.org>
22325
22326 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22327
22328 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22329
22330 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22331 dead key repeat and up events.
22332
22333 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
22334
22335 * image.c (pbm_load): Check image size for monochrome pbm.
22336
22337 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
22338
22339 * xterm.c (XTread_socket): Revert last change.
22340
22341 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
22342
22343 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22344
22345 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22346
22347 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22348
22349 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22350 mixup (YAILOM).
22351
22352 2007-05-07 Andreas Schwab <schwab@suse.de>
22353
22354 * keymap.c (Flookup_key): Fix typo in last change.
22355
22356 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22357
22358 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22359 mapping for unibyte strings.
22360
22361 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22362
22363 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22364 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22365
22366 2007-04-29 Richard Stallman <rms@gnu.org>
22367
22368 * insdel.c (replace_range): For undo, record insertion first.
22369
22370 2007-04-29 Andreas Schwab <schwab@suse.de>
22371
22372 * lisp.h (VECSIZE): Use OFFSETOF.
22373
22374 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22375
22376 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22377 disabled lines.
22378
22379 2007-04-28 Richard Stallman <rms@gnu.org>
22380
22381 * lread.c (read_escape): In a string, \s is always space.
22382
22383 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22384
22385 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22386
22387 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22388 submenu for menu bar items.
22389
22390 See ChangeLog.10 for earlier changes.
22391
22392 ;; Local Variables:
22393 ;; coding: utf-8
22394 ;; add-log-time-zone-rule: t
22395 ;; End:
22396
22397 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
22398
22399 This file is part of GNU Emacs.
22400
22401 GNU Emacs is free software: you can redistribute it and/or modify
22402 it under the terms of the GNU General Public License as published by
22403 the Free Software Foundation, either version 3 of the License, or
22404 (at your option) any later version.
22405
22406 GNU Emacs is distributed in the hope that it will be useful,
22407 but WITHOUT ANY WARRANTY; without even the implied warranty of
22408 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22409 GNU General Public License for more details.
22410
22411 You should have received a copy of the GNU General Public License
22412 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22413
22414 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40