Put non-GTK X scroll-bars on left.
[bpt/emacs.git] / src / ChangeLog
1 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
2
3 * xfns.c (Fx_create_frame):
4 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
5 on left.
6
7 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
8
9 * editfns.c (Fformat): Account for string precision when computing
10 field width (Bug#5710).
11
12 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
13
14 * xfns.c (Fx_create_frame): Set default to Qright.
15
16 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
17 all window systems.
18
19 2010-03-12 Eli Zaretskii <eliz@gnu.org>
20
21 These changes remove termcap.c from the build on Posix platforms.
22 * Makefilie.in (termcapobj): Move termcap.o from here...
23 (MSDOS_OBJ): ...to here.
24 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
25 now identical to when LIBS_TERMCAP is defined.
26
27 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
28
29 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
30
31 * config.in: Regenerated. (See top-level ChangeLog.)
32
33 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
34
35 * Branch for 23.2.
36
37 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
38
39 Cleanup setup of gl_state in various parts of the code.
40 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
41 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
42 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
43 (skip_chars):
44 * regex.c (regex_compile): Use it.
45 (re_compile_pattern): Don't set gl_state.current_syntax_table since
46 it's now set in regex_compile when/if we need it.
47
48 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
49
50 Make it possible to C-g in a tight bytecode loop again (bug#5680).
51 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
52 (QUIT): Use it to consolidate code and remove redundancy.
53 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
54
55 * regex.c (regex_compile): Setup gl_state as well.
56
57 * syntax.c (skip_chars): Setup gl_state (bug#3823).
58 (in_classes): Use CONSP before XCAR/XCDR.
59
60 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
61
62 * keymap.c (Fwhere_is_internal): Use Fequal to compare
63 definitions, so that keyboard macros are correctly handled
64 (Bug#5481).
65
66 2010-03-02 Eli Zaretskii <eliz@gnu.org>
67
68 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
69 text that could be relocated inside the call to emacs_mule_char.
70 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
71 (CODING_DECODE_CHAR): Add a comment describing its purpose.
72
73 2010-03-02 Kenichi Handa <handa@m17n.org>
74
75 * character.c (parse_str_as_multibyte): Fix handling of the
76 multibyte form of raw-bytes.
77 (str_as_multibyte): Likewise.
78
79 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
80 form of raw-bytes.
81
82 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
83
84 * charset.c (load_charset_map_from_file)
85 (load_charset_map_from_vector): Zero out allocated
86 charset_map_entries before using them.
87
88 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
89
90 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
91
92 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
93
94 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
95 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
96
97 2010-02-26 Kenichi Handa <handa@m17n.org>
98
99 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
100
101 * xdisp.c (reseat_to_string): Fix previous change.
102
103 2010-02-26 David Reitter <david.reitter@gmail.com>
104
105 * nsfont.m (nsfont_draw): ns_antialias_text should be a
106 Lisp_Object (Bug#4736).
107
108 2010-02-25 Kenichi Handa <handa@m17n.org>
109
110 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
111
112 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
113
114 * xterm.c (XTflash): Move declarations before statements.
115
116 * gtkutil.c (xg_get_gdk_display): Remove (unused).
117 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
118 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
119 (xg_create_tool_bar): Remove unused variables.
120 (x_wm_set_size_hint): Move declarations before statements.
121 (xg_create_frame_widgets): Remove variable grav,
122
123 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
124
125 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
126
127 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
128
129 * term.c (fatal): Add a final \n if needed (bug#5596).
130
131 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
132
133 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
134
135 2010-02-18 Glenn Morris <rgm@gnu.org>
136
137 * callint.c (Finteractive): Doc fix.
138
139 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
140
141 * coding.c (record_conversion_result):
142 Handle CODING_RESULT_INSUFFICIENT_DST.
143 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
144 memory allocation error.
145
146 2010-02-17 Kenichi Handa <handa@m17n.org>
147
148 * coding.c (decode_coding_ccl): Don't setup ccl program here.
149 Fix for the case that the output buffer is fullfilled.
150 (decode_coding): Setup ccl program here. Keep looping when the
151 decoder stopped because the output buffer is
152 fullfilled (bug#5534).
153
154 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
155
156 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
157
158 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
159 bug #5571.
160 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
161 overdrawn.
162
163 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
164
165 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
166 doing_interact here.
167 (ice_connection_closed): New function.
168 (x_session_check_input, smc_die_CB, ice_io_error_handler)
169 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
170 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
171 returns I/O error.
172 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
173 bug #5512.
174
175 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
176
177 * nsfont.m (nsfont_open): The system's value for the font descent
178 is negative, so round it down to avoid clipping.
179
180 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
181
182 * charset.c (load_charset_map_from_file)
183 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
184 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
185
186 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
187
188 * charset.c (load_charset_map_from_file): Allocate large
189 charset_map_entries structure on the heap rather than the stack.
190 (Bug#5526).
191
192 2010-01-31 Kenichi Handa <handa@m17n.org>
193
194 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
195 size in NAME is invalid, return -1 (Bug#5396).
196
197 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
198
199 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
200 <deactivated@gmail.com> (Bug#3605).
201
202 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
203
204 * fileio.c (Frename_file): Correctly rename symlinks to
205 directories (Bug#5496).
206
207 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
208
209 * nsterm.m (ns_ring_bell): Handle visible bell like X.
210
211 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
212
213 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
214
215 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
216
217 * frame.c (DEFAULT_ROWS): Change default to 35.
218
219 * xfns.c (x_default_font_parameter): Change default XFT font to
220 monospace-10 (Bug#3643).
221
222 2010-01-29 Eli Zaretskii <eliz@gnu.org>
223
224 * w32inevt.c (key_event): Remove unnecessary comparison of
225 event->uChar.AsciiChar with 128.
226
227 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
228
229 * fileio.c (Frename_file): Fix last change (Bug#5487).
230
231 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
232
233 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
234
235 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
236
237 * xfns.c (Fx_create_frame): Remove window size matching code from
238 2010-01-15.
239 (x_get_current_desktop, x_get_desktop_workarea): Remove
240
241 2010-01-27 Jason Rumney <jasonr@gnu.org>
242
243 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
244 (key_event): Use unicode for characters 128 and higher (Bug#4567).
245
246 2010-01-27 Kenichi Handa <handa@m17n.org>
247
248 * regex.c (analyse_first): Fix setting of fastmap for unibyte
249 pattern string (Bug#4209).
250
251 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
252
253 * fileio.c (Frename_file): Call copy-directory and
254 delete-directory for directories, in order to handle cross-device
255 renaming (Bug#3353).
256
257 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
258
259 * xfns.c (Fx_create_frame): If frame height is too big, try
260 sizes 24 and 10. Bug #3643.
261
262 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
263
264 Try and fix bug#788, hopefully for real this time.
265 * keymap.c (shadow_lookup): Add `remap' arg.
266 (describe_map, describe_vector): Update calls to shadow_lookup.
267 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
268 `remapped' so this flag is applicable to `sequence'. Be careful to
269 perform remapping during shadow_lookup check of remapped_sequences.
270
271 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
272
273 * image.c (png_load): Use png_sig_cmp instead of the obsolete
274 png_check_sig, which has been removed in libpng 1.4.
275
276 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
277
278 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
279 lacks this header file).
280
281 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
282
283 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
284 as in Emacs 22.
285
286 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
287
288 * lisp.h (make_pure_string): String pointer arg now points to const.
289
290 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
291 args now point to const.
292
293 2010-01-22 Eli Zaretskii <eliz@gnu.org>
294
295 * lread.c (Fload): Don't treat files without .elc extension as
296 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
297 them. (bug#5303)
298
299 2010-01-20 Kenichi Handa <handa@m17n.org>
300
301 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
302 treat the source as actual byte sequence.
303
304 2010-01-19 Alan Mackenzie <acm@muc.de>
305
306 Fix spurious before-change-functions invocation from (insert ?\n).
307 * textprop.c (set_text_properties): rename parameter
308 `signal_after_change_p' to `coherent_change_p', and make the
309 invocation of `modify_region' conditional on it.
310
311 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
312
313 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
314 for debug purpose.
315 (syms_of_xsettings): Declare xft-settings.
316
317 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
318
319 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
320
321 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
322
323 * xterm.c (event_handler_gdk): Block input (Bug#5037).
324
325 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
326
327 * emacs.c (standard_args): Adjust arg priorities to reflect how
328 they are processed in startup.el.
329
330 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
331
332 * Makefile.in (lisp, shortlisp): Update.
333
334 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
335
336 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
337 code, link the new kboard into all_kboard before running Lisp code,
338 and protect the new terminal with GCPRO (Bug#5365).
339 (x_term_init): Remove unused var `atom'.
340 (x_delete_display, x_delete_terminal): Remove unused var `i'.
341
342 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
343
344 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
345 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
346 to find out usable size of the desktop. Don't make frames larger than
347 this. Bug #3643.
348
349 2010-01-15 Kenichi Handa <handa@m17n.org>
350
351 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
352
353 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
354
355 * nsterm.m (Qnone): Define.
356
357 * nsfns.m (Qnone): Move definition to nsterm.m.
358
359 2010-01-14 Kenichi Handa <handa@m17n.org>
360
361 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
362 systems.
363
364 2010-01-14 Kenichi Handa <handa@m17n.org>
365
366 Make auto-composition work on all buffers even if they are
367 fundamental mode.
368
369 * composite.c (Vauto_composition_mode): New variable.
370 (composition_compute_stop_pos): Check Vauto_composition_mode
371 instead of Vauto_composition_function.
372 (composition_adjust_point, Ffind_composition_internal): Likewise.
373 (syms_of_composite): Declare Lisp variable
374 "auto-composition-mode" here.
375
376 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
377
378 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
379 during call to vendor-specific-keysyms (Bug#5365).
380
381 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
382
383 * keyboard.c (input_available_signal) [SYNC_INPUT]:
384 Call SIGNAL_THREAD_CHECK (Bug#5333).
385
386 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
387 Call SIGNAL_THREAD_CHECK.
388
389 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
390
391 Try to fix bug#5314. This is probably not the final word, tho.
392 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
393 recent-auto-save-p as a side-effect.
394 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
395 * buffer.c (Fkill_buffer, reset_buffer):
396 * editfns.c (Fsubst_char_in_region):
397 * fileio.c (Finsert_file_contents, Fdo_auto_save)
398 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
399
400 2010-01-13 Kenichi Handa <handa@m17n.org>
401
402 Display buffer name, etc. in mode line by composing correctly.
403
404 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
405 STRING is not nil.
406 (display_mode_element): Adjust for the change of
407 decode_mode_spec and display_line.
408 (decode_mode_spec): Change arg MULTIBYTE to STRING.
409 (display_string): Handle the case that STRING is non-null and
410 LISP_STRING is not nil.
411
412 * xterm.c (x_draw_composite_glyph_string_foreground):
413 Pay attention to s->face->overstrike.
414
415 * composite.c (composition_reseat_it): Don't check PT if STRING is
416 non nil.
417
418 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
419
420 * keyboard.c (read_char): Don't apply previous change when current
421 buffer is unchanged by command execution.
422
423 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
424
425 * keyboard.c (read_char): Return after executing from special map.
426
427 2010-01-12 Glenn Morris <rgm@gnu.org>
428
429 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
430 bug-gnu-emacs rather than emacs-pretest-bug.
431
432 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
433
434 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
435 initializing the Lisp variables that depend on them.
436
437 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
438
439 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
440 Clear areas that will not be updated after change of menu bar lines.
441 Clear the menu bar window's current matrix when the window gets empty.
442
443 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
444
445 * intervals.h, textprop.c (extend_property_ranges): Return value
446 and args changed. Discard properties that begin at or after the
447 new end (Bug#5306).
448
449 * editfns.c (Fformat): Caller changed.
450
451 * nsterm.m (ns_set_default_prefs): Delete function.
452 (syms_of_nsterm): Initialize ns_command_modifier,
453 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
454 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
455
456 * xdisp.c (pos_visible_p): Check for invisible text at the correct
457 position (Bug#4040).
458
459 2010-01-09 Eli Zaretskii <eliz@gnu.org>
460
461 * editfns.c (Ffloat_time): Doc fix.
462
463 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
464
465 * xfns.c (Fx_create_frame): Don't create frame larger than display
466 by default bug#3643.
467
468 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
469
470 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
471 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
472 windows above internal border.
473
474 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
475 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
476 windows above internal border.
477
478 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
479 tool bar windows specially.
480
481 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
482
483 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
484 specially.
485 (XTflash): Take account of menu bar height.
486
487 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
488 specially.
489
490 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
491
492 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
493 also be true before we can return early (bug #5339).
494
495 2010-01-06 David Reitter <david.reitter@gmail.com>
496
497 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
498 (Fns_display_usable_bounds): Rewrite, computing bounds properly
499 (Bug#3233).
500
501 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
502
503 * font.c (font_open_entity): Enable chache and call cached_font_ok
504 for the driver if defined.
505 (QCuser_spec): New symbol.
506 (font_spec_from_name): Save name as user-spec.
507 (font_load_for_lface): Keep user-spec instead of name.
508 (font_open_by_name): Save name as user-spec.
509 (syms_of_font): Initialize QCuser_spec.
510 (font_clear_prop): Clear name if it exists in font (bug#5157).
511
512 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
513 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
514 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
515
516 * font.h (struct font_driver): Add cached_font_ok.
517
518 * xterm.c (x_clear_frame): Queue draw for scroll bars.
519
520 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
521
522 * xterm.c (x_new_font): Move code for setting rows/cols before
523 resizing ...
524 (x_set_window_size): ... to here. Bug #2568.
525
526 * gtkutil.c (xg_clear_under_internal_border): New function.
527 (xg_frame_resized, xg_frame_set_char_size):
528 Call xg_clear_under_internal_border.
529 (xg_update_scrollbar_pos): Clear under old scroll bar position.
530
531 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
532
533 * keyboard.c (read_key_sequence): Catch keyboard switch after
534 making a new tty frame (Bug#5095).
535
536 2010-01-05 Kenichi Handa <handa@m17n.org>
537
538 * fontset.c (fontset_find_font): Fix getting the frame pointer.
539
540 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
541
542 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
543 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
544 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
545
546 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
547
548 * dbusbind.c (xd_add_watch): Improve debug message.
549 (xd_remove_watch): Improve debug message. If DATA is the session
550 bus, unset D-Bus session environment.
551 (Fdbus_init_bus): Pass the bus as argument to
552 dbus_connection_set_watch_functions. (Bug#5283)
553
554 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
555
556 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
557
558 * lread.c (syms_of_lread): Make it clearer that these are the
559 names of loaded files (Bug#5068).
560
561 * eval.c (run_hook_with_args): Handle the case where the global
562 value has the obsolete single-function form (Bug#5026).
563
564 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
565
566 * minibuf.c (Fall_completions): Minor optimization.
567
568 2009-12-26 Eli Zaretskii <eliz@gnu.org>
569
570 * .gdbinit (pgx): Fix display of composite glyphs.
571 Display cmp.from and cmp.to as well.
572 (pitx): Fix last change.
573
574 2009-12-25 Kenichi Handa <handa@m17n.org>
575
576 * composite.h (composition_adjust_point): Update prototype.
577
578 * composite.c (composition_reseat_it): Don't make a composition
579 spanning over point.
580 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
581 composable characters.
582 (composition_adjust_point): New arg NEW_PT. Callers changed.
583
584 * keyboard.c (command_loop_1): Force redisplay if the last point
585 was within a composition.
586 (adjust_point_for_property): Don't adjust point for automatic
587 composition when called after buffer modification.
588
589 2009-12-19 Eli Zaretskii <eliz@gnu.org>
590
591 * .gdbinit (pitx): Don't use enum names, use their values.
592 Remove reference to non-existing value GET_FROM_COMPOSITION.
593 (pgx): Don't use enum names, use their values.
594 (pitmethod): New helper command.
595 (pitx): Use it to display iteration method.
596 (pgrowit): New command.
597
598 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
599
600 Update dependencies in Makefile.in.
601
602 * Makefile.in (alloc.o): Depend on termhooks.h.
603 (atimer.o): Depend on blockinput.h.
604 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
605 and frame.h.
606 (callint.o): Depend on systime.h, coding.h, and composite.h.
607 (callproc.o): Depend on buffer.h.
608 (casefiddle.o): Don't depend on charset.h.
609 (casetab.o): Depend on character.h.
610 (ccl.o): Depend on composite.h.
611 (chartab.o): Depend on ccl.h.
612 (cm.o): Depend on dispextern.h.
613 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
614 (coding.o): Don't depend on $(INTERVALS_H).
615 (composite.o): Don't depend on dispextern.h explicitly (it's in
616 $(INTERVALS_H)). Depend on ccl.h.
617 (data.o): Depend on systime.h, coding.h, composite.h,
618 dispextern.h, font.h, and ccl.h.
619 (dired.o): Depend on composite.h.
620 (dispnew.o): Depend on coding.h. Don't depend explicitly on
621 composite.h (it's in $(INTERVALS_H)).
622 (doc.o): Depend on systime.h, coding.h, and composite.h.
623 (editfns.o): Don't depend explicitly on dispextern.h.
624 (emacs.o): Depend on frame.h and coding.h.
625 (eval.o): Depend on coding.h, composite.h, and xterm.h.
626 (fileio.o): Depend on frame.h and commands.h. Don't depend
627 explicitly on dispextern.h.
628 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
629 composite.h.
630 (fns.o): Don't depend on termhooks.h.
631 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
632 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
633 coding.h, $(INTERVALS_H), window.h, xterm.h.
634 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
635 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
636 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
637 fontset.h, ccl.h, and ftfont.h.
638 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
639 (gtkutil.o): Depend on dispextern.h and composite.h.
640 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
641 termhooks.h, and ccl.h.
642 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
643 (intervals.o): Depend on systime.h and coding.h.
644 (keyboard.o): Depend on composite.h and coding.h.
645 (keymap.o): Depend on coding.h and frame.h.
646 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
647 (macros.o): Depend on systime.h, coding.h, and composite.h.
648 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
649 and atimer.h.
650 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
651 dispextern.h explicitly.
652 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
653 Don't depend explicitly on dispextern.h and composite.h.
654 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
655 (regex.o): Don't depend on charset.h.
656 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
657 (search.o): Don't depend explicitly on composite.h.
658 (sound.o): Depend on atimer.h and systime.h.
659 (syntax.o): Don't depend explicitly on composite.h.
660 (sysdep.o): Depend on coding.h and composite.h.
661 (term.o): Depend on xterm.h and buffer.h.
662 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
663 (textprop.o): Don't depend on dispextern.h explicitly.
664 (undo.o): Depend on dispextern.h.
665 (window.o): Depend on coding.h and termhooks.h. Don't depend on
666 dispextern.h and composite.h explicitly.
667 (xdisp.o): Depend on ccl.h.
668 (xfaces.o): Depend on coding.h and ccl.h.
669 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
670 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
671 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
672 ftfont.h.
673 (xgselect.o): New dependency.
674 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
675 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
676 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
677 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
678 (xsmfns.o): Depend on frame.h and dispextern.h.
679 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
680 sysselect.h.
681
682 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
683
684 * font.c (Fclear_font_cache): Pass correct cache argument to
685 font_clear_cache.
686
687 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
688
689 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
690 twice.
691
692 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
693
694 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
695 calling file-remote-p. Reported by Jim Meyering.
696
697 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
698
699 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
700 avoid compiler warnings. (Bug #5217)
701
702 2009-12-14 Kenichi Handa <handa@m17n.org>
703
704 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
705 in 8-bit encoding.
706
707 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
708
709 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
710 tooltip windows.
711
712 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
713
714 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
715 Xatom_net_window_type.
716
717 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
718 Xatom_net_window_type.
719
720 * xterm.c (my_log_handler): New function.
721 (x_term_init): Set my_log_handler as log handler during gtk_init
722 so we can filter out buggy messages. (Bug #5120).
723
724 * xterm.c (xg_scroll_callback): Parameter list changed,
725 use parameter GtkScrollType to determine scroll/line/page.
726 Only allow dragging if a button < 4 is grabbed (bug #5177).
727 (xg_end_scroll_callback): New function.
728 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
729 xg_create_scroll_bar.
730
731 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
732 (scroll_end_callback): Remove.
733 (xg_create_scroll_bar): Add parameter end_callback, bind it to
734 button-release-event. Replace value-changed event with change-value,
735 bug #5177,
736 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
737 bug #5177.
738
739 * gtkutil.h (XG_LAST_SB_DATA): Remove.
740 (xg_create_scroll_bar): Add GCallback end_callback.
741
742 * xftfont.c (QClcdfilter): New variable.
743 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
744 (syms_of_xftfont): Initialize QClcdfilter.
745
746 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
747
748 * xsettings.c (struct xsettings): Add member seen.
749 (parse_xft_settings): Update member seen with what we have read.
750 Return non-zero if Xft-settings have been parsed, 0 otherwise.
751 (apply_xft_settings): Only update Xft settings with what member seen
752 indicates as new.
753
754 2009-12-12 Eli Zaretskii <eliz@gnu.org>
755
756 * dispextern.h (struct text_pos): Use EMACS_INT;
757 (struct glyph): Use EMACS_INT for charpos.
758 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
759 region_beg_charpos, region_end_charpos,
760 redisplay_end_trigger_charpos, and also for
761 iterator_stack_entry.end_charpos and
762 iterator_stack_entry.stop_charpos.
763
764 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
765
766 * gtkutil.c (scroll_end_callback): New function (bug #5177).
767 (xg_create_scroll_bar): Call scroll_end_callback on button release
768 event (bug #5177).
769 (xg_event_is_for_scrollbar): != replaced with ==.
770
771 2009-12-12 Kenichi Handa <handa@m17n.org>
772
773 * ftfont.c (struct ftfont_info): New member matrix.
774 (ftfont_open): Setup xftfont_info->matrix.
775 (MFLTFontFT): New member matrix.
776 (FLOOR, CEIL, ROUND): New macros.
777 (ftfont_get_metrics): Handle matrix transformation.
778 (ftfont_shape_by_flt): New arg matrix. Callers changed.
779
780 * xftfont.c (struct xftfont_info): New member matrix.
781 (xftfont_open): Setup xftfont_info->matrix.
782
783 2009-12-10 Kenichi Handa <handa@m17n.org>
784
785 * xdisp.c (append_space_for_newline): Consider face-remapping.
786
787 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
788
789 * xsettings.c: Include "keyboard.h".
790
791 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
792
793 Fix implicit function declarations.
794 * cmds.c: Include "frame.h".
795 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
796 * frame.h: Move declaration of delete_frame outside of
797 HAVE_WINDOW_SYSTEM.
798
799 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
800
801 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
802
803 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
804 GTK builds.
805
806 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
807
808 * unexelf.c (unexec): Don't search for .data twice.
809
810 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
811
812 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
813 if push failed.
814 (handle_line_prefix): Set avoid_cursor_p here. Check return value
815 of push_display_prop (Bug#5000).
816
817 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
818 value of font_list_entities (Bug#5085).
819
820 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
821
822 Fix `string-to-number' to deal consistently with integers and floats.
823 * lread.c (isfloat_string): New argument ignore_trailing to accept all
824 trailing characters, not just whitespace.
825 (read1): Pass new arg 0 to keep old behavior.
826 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
827 trailing chars, as it is already done for integers. Doc fixes.
828 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
829
830 2009-12-04 Eli Zaretskii <eliz@gnu.org>
831
832 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
833 Delete unused enumeration value.
834
835 2009-12-03 Eli Zaretskii <eliz@gnu.org>
836
837 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
838
839 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
840
841 * process.c (Fmake_network_process): Fix up the tests for
842 "connectionless socket", so they DTRT for seqpacket sockets as well.
843
844 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
845
846 * process.c (Qseqpacket): New symbol.
847 (HAVE_SEQPACKET): New macro.
848 (Fmake_network_process): Accept new :type `seqpacket'.
849 (init_process): Add `seqpacket' feature when applicable.
850 (syms_of_process): Initialize Qseqpacket.
851
852 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
853
854 * font.c (font_load_for_lface, font_open_by_name): Don't store name
855 if entity is Qnil.
856
857 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
858
859 * print.c (print_preprocess): Preprocess the key_and_value table of
860 hashtables, even tho they're "hidden" (bug#5082).
861
862 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
863
864 * frame.c (frame_make_pointer_invisible)
865 (frame_make_pointer_visible): Declare f before statements.
866
867 2009-11-28 Eli Zaretskii <eliz@gnu.org>
868
869 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
870 omitted dependencies on lisp.h.
871
872 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
873
874 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
875 is NULL.
876
877 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
878
879 * frame.c (frame_make_pointer_invisible)
880 (frame_make_pointer_visible): Just return if there isn't any selected
881 frame.
882
883 * search.c (simple_search): Remove warning by making *p const.
884
885 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
886
887 * xdisp.c (power_letter): Remove duplicate const.
888
889 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
890
891 * term.c (delete_tty): Remove check for last terminal (bug#4970).
892
893 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
894 defaults (bug #5025).
895
896 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
897
898 * insdel.c (adjust_markers_for_delete): Move it in the
899 right direction! (bug#4803)
900
901 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
902
903 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
904
905 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
906
907 2009-11-24 Glenn Morris <rgm@gnu.org>
908
909 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
910
911 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
912
913 * Makefile.in: Must create deps for ecrt0.o in its rule.
914
915 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
916 because that is what Gtk+ font dialog understands.
917
918 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
919 of Fcopy_sequence.
920 (font_open_by_name): Put name given into QCname for font-object returned.
921
922 * frame.c (x_set_font): Save original font name as frame parameter
923 font-parameter.
924
925 * xsettings.c (set_default_xft_settings): New function.
926 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
927 is found.
928
929 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
930
931 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
932 searching backwards through multibyte buffer.
933
934 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
935
936 * xterm.c: #include xgselect.h.
937 (x_initialize): Call xgselect_initialize.
938
939 * xsettings.c (something_changedCB): C++ comments => C comments.
940 (init_gconf): Do not deal with any GLib file descriptors, xg_select
941 does that now.
942
943 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
944 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
945 (scroll_bar_button_cb): Remove.
946 (create_menus): C++ comments => C comments. Don't bind grab-notify
947 event.
948 (xg_create_scroll_bar): Don't bind button-press-event and
949 button-release-event.
950
951 * process.c: Include xgselect.h if defined (USE_GTK) ||
952 defined (HAVE_GCONF).
953 (wait_reading_process_output): Call xg_select for the same condition.
954
955 * xgselect.c (xg_select): New function to better integrate with
956 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
957
958 * xgselect.h: New file, declare xg_select, xgselect_initialize.
959
960 * Makefile.in (XOBJ): Add xgselect.o.
961
962 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
963
964 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
965 Remove ignored second argument. All callers changed.
966 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
967 (RE_STRING_CHAR_AND_LENGTH): Likewise.
968 * xdisp.c (string_char_and_length): Likewise.
969
970 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
971
972 * xterm.c (x_new_font):
973 * print.c (print_object):
974 * cmds.c (Fself_insert_command): Move declarations before statements.
975
976 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
977
978 * s/cygwin.h: Remove unneeded linker flags.
979
980 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
981
982 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
983
984 * xsettings.h: Declare xsettings_get_system_font.
985
986 * xsettings.c (xsettings_get_system_font): New function.
987 (init_gconf): No use initiating gconf unless we have Xft also.
988 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
989 HAVE_GCONF.
990
991 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
992 add a blank entry so it doesn't collapse into nothing.
993
994 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
995
996 * lread.c (Funintern): Comment out last change.
997
998 2009-11-19 Richard Stallman <rms@gnu.org>
999
1000 * lread.c (Funintern): Error if symbol is t or nil.
1001
1002 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1003
1004 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1005 representation of Lisp integers.
1006 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1007
1008 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1009
1010 * lisp.h: Remove declaration of Ffont_get_system_font.
1011 * xfns.c: Move include of "xsettings.h".
1012 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1013
1014 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1015
1016 * xsettings.c (something_changedCB, Ffont_get_system_font):
1017 Check use_system_font.
1018 (syms_of_xsettings): DEFVAR font-use-system-font.
1019
1020 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1021
1022 * xfns.c (x_default_font_parameter): Remove dead assignment.
1023
1024 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1025
1026 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1027
1028 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
1029 not have FC_LCD_*. #define them if not there.
1030
1031 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
1032
1033 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1034
1035 * xterm.c (handle_one_xevent): Call xft_settings_event for
1036 ClientMessage, PropertyNotify and DestroyNotify.
1037 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1038 Call xsettings_initialize.
1039
1040 * xftfont.c (xftfont_fix_match): New function.
1041 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1042 Call xftfont_fix_match after XftFontMatch.
1043
1044 * xfont.c (xfont_driver): Initialize all members.
1045
1046 * xfns.c (x_default_font_parameter):
1047 Try font from Ffont_get_system_font.
1048 Do not get font from x_default_parameter if we got one from
1049 Ffont_get_system_font.
1050 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
1051
1052 * w32font.c (w32font_driver): Initialize all members.
1053
1054 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1055
1056 * lisp.h: Declare syms_of_xsettings.
1057
1058 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1059 Handle CONFIG_CHANGED_EVENT.
1060
1061 * ftfont.c (ftfont_filter_properties): New function.
1062
1063 * frame.c (x_set_font): Remove unused variable lval.
1064
1065 * font.h (struct font_driver): Add filter_properties.
1066
1067 * font.c (font_put_extra): Don't return if val is nil, it means
1068 boolean option is off.
1069 (font_parse_fcname): Collect all extra properties in extra_props
1070 and call filter_properties for all drivers with extra_props and
1071 font as parameter.
1072 (font_open_entity): Do not use cache, it does not pick up new
1073 fontconfig settings like hinting.
1074 (font_load_for_lface): If spec had a name in it, store it in entity.
1075
1076 * emacs.c (main): Call syms_of_xsettings
1077
1078 * config.in: HAVE_GCONF is new.
1079
1080 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1081 xsettings.o is new.
1082
1083 2009-11-17 Kenichi Handa <handa@m17n.org>
1084
1085 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1086 back to the default font in case that no suitable font is found.
1087
1088 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1089
1090 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1091 Suggested by Chad Brown <yandros@mit.edu>.
1092 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1093
1094 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1095
1096 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1097
1098 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1099
1100 * Makefile.in: Ignore errors from mkdir when creating deps directory.
1101
1102 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1103
1104 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1105 has a parent.
1106
1107 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
1108 dependency files in deps/. Include those files into Makefile.
1109
1110 * config.in: Generated (AUTO_DEPEND).
1111
1112 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
1113
1114 * dbusbind.c (Vdbus_registered_objects_table): Rename from
1115 Vdbus_registered_functions_table, because it contains also
1116 properties. Fix docstring.
1117 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
1118
1119 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1120
1121 * alloc.c (mark_object): Don't reprocess marked strings.
1122 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1123 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1124
1125 2009-11-13 Kenichi Handa <handa@m17n.org>
1126
1127 * category.c (word_boundary_p): Adjust for the change of the
1128 semantics of Vword_combining_categories.
1129 (Vword_combining_categories): Describe the slight change of the
1130 semantics.
1131
1132 2009-11-13 Eli Zaretskii <eliz@gnu.org>
1133
1134 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1135
1136 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1137
1138 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1139
1140 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1141
1142 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
1143
1144 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1145
1146 2009-11-11 David Reitter <david.reitter@gmail.com>
1147
1148 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1149 variables to fix 2009-11-09 change.
1150
1151 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1152
1153 * process.c (ifflag_def): Make flag_sym constant.
1154 (Fnetwork_interface_info): Use a constant pointer.
1155 (ifflag_table):
1156 * xfns.c (cursor_bits):
1157 * xdisp.c (power_letter):
1158 * termcap.c (speeds, esctab):
1159 * sysdep.c (baud_convert):
1160 * keyboard.c (lispy_accent_codes, modifier_names):
1161 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1162 (jpeg_format, tiff_format, gif_format, svg_format)
1163 (interlace_start, interlace_increment, gs_format):
1164 * gtkutil.c (separator_names):
1165 * fringe.c (swap_nibble):
1166 * fns.c (base64_value_to_char, base64_char_to_value):
1167 * fileio.c (make_temp_name_tbl):
1168 * coding.c (suffixes): Make constant.
1169
1170 * frame.c (make_initial_frame):
1171 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1172 build_string.
1173 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1174
1175 * s/freebsd.h:
1176 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1177
1178 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1179 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1180
1181 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1182 * xterm.c (syms_of_xterm):
1183 * xfaces.c (syms_of_xfaces):
1184 * xdisp.c (syms_of_xdisp):
1185 * lread.c (syms_of_lread):
1186 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1187 build_string.
1188
1189 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1190
1191 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1192
1193 * fns.c (Fplist_get): Merge the active and the commented out code.
1194
1195 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1196
1197 * keyboard.h: Declare timer_check.
1198
1199 * keyboard.c (timer_check_2): New function that does what the old
1200 timer_check did.
1201 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1202 returned, i.e. don't return -1 with timers pending.
1203
1204 * process.c: Remove extern declaration of timer_check.
1205
1206 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1207 even if timer_check returned -1.
1208
1209 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1210 xg_dialog_data.
1211 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1212 the event loop.
1213 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1214 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1215 Destroy the dialog after xg_dialog_run.
1216
1217 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1218
1219 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1220
1221 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1222
1223 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1224
1225 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
1226
1227 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1228
1229 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1230
1231 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1232 w32menu.c, and nsmenu.m.
1233 Simplify the obsolete case where position is nil.
1234 (cleanup_popup_menu): New function, moved from nsmenu.m.
1235 (struct skp): Remove slot `notreal'.
1236 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1237 adjust callers.
1238 (single_menu_item): Adjust call to parse_menu_item.
1239 (syms_of_menu): Defsubr x-popup-menu.
1240 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1241 (keymap_panes): Don't export any more.
1242 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1243 (xmenu_show): Declare.
1244 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1245 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1246 * keyboard.h (parse_menu_item): Update declaration.
1247 * xmenu.c (Fx_popup_menu): Remove.
1248 (syms_of_xmenu): Don't defsubr x-popup-menu.
1249 * w32menu.c (Fx_popup_menu): Remove.
1250 (syms_of_w32menu): Don't defsubr x-popup-menu.
1251 * nsmenu.m (cleanup_popup_menu): Remove.
1252 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1253 moved to menu.c's Fx_popup_menu.
1254 (Fx_popup_menu): Remove.
1255 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1256 menu_items (it's done in menu.c already).
1257
1258 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1259
1260 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1261 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1262
1263 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
1264
1265 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
1266 xmenu_show. Hide any tooltip before opening a menu.
1267 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1268 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1269
1270 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1271
1272 Let integers use up 2 tags to give them one extra bit and thus double
1273 their range.
1274 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1275 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1276 New macros.
1277 (enum Lisp_Type): Use them. Give explicit values.
1278 (Lisp_Type_Limit): Remove.
1279 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1280 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1281 Pay attention to USE_2_TAGS_FOR_INTS.
1282 (INTEGERP): Use LISP_INT_TAG_P.
1283 * fns.c (internal_equal): Simplify the default case.
1284 (sxhash): Use case_Lisp_Int.
1285 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1286 any more.
1287 (Ftype_of): Use case_Lisp_Int.
1288 (store_symval_forwarding): Take into account the fact that Ints can
1289 now have more than one tag.
1290 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1291 buffer_slot_type_mismatch):
1292 * xfaces.c (face_attr_equal_p):
1293 * print.c (print_object):
1294 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1295 Use case_Lisp_Int.
1296
1297 2009-11-06 Eli Zaretskii <eliz@gnu.org>
1298
1299 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1300
1301 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1302 warning.
1303
1304 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1305
1306 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1307
1308 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1309
1310 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1311 ButtonPressRelease and MotionNotify (bug#4870).
1312
1313 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1314
1315 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1316
1317 * xterm.c (syms_of_xterm):
1318 * xselect.c (syms_of_xselect):
1319 * xmenu.c (syms_of_xmenu):
1320 * xfns.c (syms_of_xfns):
1321 * xfaces.c (syms_of_xfaces):
1322 * xdisp.c (syms_of_xdisp):
1323 * window.c (syms_of_window):
1324 * w32fns.c (syms_of_w32fns):
1325 * undo.c (syms_of_undo):
1326 * textprop.c (syms_of_textprop):
1327 * terminal.c (syms_of_terminal):
1328 * syntax.c (syms_of_syntax):
1329 * sound.c (syms_of_sound):
1330 * search.c (syms_of_search):
1331 * print.c (syms_of_print):
1332 * minibuf.c (syms_of_minibuf):
1333 * macros.c (syms_of_macros):
1334 * keymap.c (syms_of_keymap, initial_define_key)
1335 (initial_define_lispy_key):
1336 * keyboard.c (syms_of_keyboard):
1337 * insdel.c (syms_of_insdel):
1338 * image.c (syms_of_image):
1339 * fringe.c (syms_of_fringe):
1340 * frame.c (syms_of_frame):
1341 * fontset.c (syms_of_fontset):
1342 * fns.c (syms_of_fns):
1343 * fns.c (syms_of_fns):
1344 * fileio.c (syms_of_fileio):
1345 * fileio.c (syms_of_fileio):
1346 * eval.c (syms_of_eval):
1347 * doc.c (syms_of_doc):
1348 * dispnew.c (syms_of_display):
1349 * dired.c (syms_of_dired):
1350 * dbusbind.c (syms_of_dbusbind):
1351 * data.c (syms_of_data):
1352 * composite.c (syms_of_composite):
1353 * coding.c (syms_of_coding):
1354 * cmds.c (syms_of_cmds):
1355 * charset.c (define_charset_internal, syms_of_character):
1356 * ccl.c (syms_of_ccl):
1357 * category.c (syms_of_category, init_category_once):
1358 * casetab.c (syms_of_casetab):
1359 * casefiddle.c (syms_of_casefiddle):
1360 * callint.c (syms_of_callint):
1361 * bytecode.c (syms_of_bytecode):
1362 * buffer.c (keys_of_buffer, syms_of_buffer):
1363 * alloc.c (syms_of_alloc):
1364 * process.c (syms_of_process, init_process):
1365 * lread.c (syms_of_lread, init_obarray):
1366 * font.c (build_style_table):
1367 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1368 intern_c_string, calls to make_pure_string with
1369 make_pure_c_string. Use pure_cons instead of Fcons.
1370
1371 * process.c (socket_options): Make it const.
1372 (set_socket_option, init_process): Use a const pointer.
1373
1374 * lread.c (intern_c_string): New function.
1375 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1376 (defvar_int): Uset it. Make the name const char*.
1377
1378 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1379 (defvar_int): Update prototypes.
1380 (DEFUN, EXFUN): Support for prototypes is now required.
1381 (intern_c_string): New prototype.
1382 (struct Lisp_Subr): Make symbol_name constant.
1383
1384 * font.c (struct table_entry): Remove unused member. Make NAMES
1385 constant.
1386 (weight_table, slant_table, width_table): Make constant.
1387
1388 * emacs.c (struct standard_args): Make name and longname constant.
1389
1390 * character.h (DEFSYM): Use intern_c_string.
1391
1392 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1393
1394 * alloc.c (make_pure_c_string): New function.
1395
1396 * eval.c (Fautoload): Purecopy all arguments.
1397
1398 2009-11-05 Kenichi Handa <handa@m17n.org>
1399
1400 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1401 the buffer in case of replace.
1402
1403 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1404
1405 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1406
1407 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1408
1409 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1410 when applicable (bug#4851).
1411
1412 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1413 (P_): Support for prototypes is now required.
1414
1415 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
1416
1417 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1418 (Bug#4827).
1419
1420 2009-10-30 Eli Zaretskii <eliz@gnu.org>
1421
1422 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
1423
1424 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1425
1426 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1427
1428 * lread.c (Fload): Purecopy the file name when building
1429 Vpreloaded_file_list.
1430
1431 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1432
1433 * w32fns.c (syms_of_w32fns): Change default value of
1434 w32-scroll-lock-modifier to nil. (Bug#2827)
1435
1436 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
1437
1438 * minibuf.c (Fall_completions): Fix typos in docstring.
1439
1440 2009-10-26 Andreas Schwab <schwab@redhat.com>
1441
1442 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1443
1444 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
1445
1446 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1447 For delta < 0, skip check that only makes sense when the mini-window
1448 is going to be enlarged. (Bug#4534)
1449
1450 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
1451
1452 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1453 string in menu maps (Bug#4471).
1454
1455 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
1456
1457 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1458 FRAME_NS_VIEW on terminal frames (Bug#4765).
1459
1460 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1461
1462 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1463 DBUS_TYPE_UINTnn separately to get proper sign extension.
1464
1465 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1466 can properly handle unsigned types.
1467 (make_uid, make_gid): Remove.
1468
1469 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1470 types again.
1471
1472 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
1473 (system_process_attributes): Likewise.
1474
1475 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1476
1477 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1478
1479 * eval.c (Fautoload): Purecopy the filename. Simplify.
1480
1481 * category.c (Fdefine_category): Purecopy docstring.
1482
1483 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1484
1485 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1486
1487 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1488
1489 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
1490
1491 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1492 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1493 (Bug#4775).
1494
1495 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1496
1497 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1498 (init_fileio_once):
1499 * lisp.h (init_fileio_once): Remove.
1500 * emacs.c (main): Don't call init_fileio_once.
1501
1502 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1503
1504 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1505
1506 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1507
1508 * doprnt.c (doprnt): Fix overflow check.
1509
1510 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1511
1512 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1513
1514 * xterm.h (x_wait_for_event): Declare it.
1515
1516 * xterm.c (pending_event_wait): New variable.
1517 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1518 see pending_event_wait.eventtype.
1519 (handle_one_xevent): Don't change gravity when parent changes.
1520 (x_new_font): Call change_frame_size with new rows/columns before we
1521 try to resize the frame.
1522 (x_wait_for_event): New function.
1523 (x_set_window_size_1): Don't change gravity unless change_gravity
1524 is set.
1525 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
1526 don't change frame size, instead wait for the ConfigureNotify.
1527 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
1528 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
1529 (x_initialize): Initialize pending_event_wait.
1530
1531 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
1532 size.
1533
1534 * widget.c (EmacsFrameSetValues): Add comment.
1535 (EmacsFrameSetCharSize): Just call x_set_window_size.
1536
1537 * gtkutil.c (xg_frame_set_char_size): Flush events and call
1538 x_wait_for_event.
1539 (flush_and_sync): Remove again.
1540 (xg_get_font_name): Suggest monospace if no previous font is known.
1541
1542 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
1543
1544 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
1545 8th bit, since that only made sense in the ASCII world (bug#4751).
1546
1547 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1548
1549 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
1550 processing pending events when event is filtered for input method.
1551 (Bug#3681)
1552
1553 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
1554
1555 * fns.c: Add #endif accidentally removed in previous change.
1556
1557 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1558
1559 * fns.c: Remove code for unsupported system: MAC_OS.
1560 * image.c: Likewise. Include setjmp.h.
1561
1562 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
1563
1564 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
1565 pixel -1 (bug #4742).
1566
1567 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1568
1569 * process.c (create_pty): Remove conditionals for no longer
1570 supported systems: UNIPLUS and RTU.
1571
1572 * xterm.c:
1573 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
1574
1575 * alloc.c: Do not define struct catchtag.
1576 * eval.c: Move struct catchtag definition ...
1577 * lisp.h: ... here.
1578
1579 * image.c: Move png.h #include earlier to avoid warnings.
1580
1581 * xterm.c:
1582 * xsmfns.c:
1583 * xselect.c:
1584 * xrdb.c:
1585 * xmenu.c:
1586 * xftfont.c:
1587 * xfont.c:
1588 * xfns.c:
1589 * xfaces.c:
1590 * xdisp.c:
1591 * window.c:
1592 * widget.c:
1593 * w32xfns.c:
1594 * w32uniscribe.c:
1595 * w32term.c:
1596 * w32select.c:
1597 * w32reg.c:
1598 * w32proc.c:
1599 * w32menu.c:
1600 * w32inevt.c:
1601 * w32heap.c:
1602 * w32font.c:
1603 * w32fns.c:
1604 * w32console.c:
1605 * w32.c:
1606 * w16select.c:
1607 * vm-limit.c:
1608 * unexsol.c:
1609 * unexec.c:
1610 * unexcw.c:
1611 * unexaix.c:
1612 * undo.c:
1613 * tparam.c:
1614 * textprop.c:
1615 * terminfo.c:
1616 * terminal.c:
1617 * termcap.c:
1618 * term.c:
1619 * syntax.c:
1620 * sound.c:
1621 * sheap.c:
1622 * search.c:
1623 * scroll.c:
1624 * region-cache.c:
1625 * regex.c:
1626 * ralloc.c:
1627 * process.c:
1628 * print.c:
1629 * nsterm.m:
1630 * nsselect.m:
1631 * nsmenu.m:
1632 * nsimage.m:
1633 * nsfont.m:
1634 * nsfns.m:
1635 * msdos.c:
1636 * minibuf.c:
1637 * menu.c:
1638 * marker.c:
1639 * macros.c:
1640 * keymap.c:
1641 * keyboard.c:
1642 * intervals.c:
1643 * insdel.c:
1644 * indent.c:
1645 * gtkutil.c:
1646 * ftxfont.c:
1647 * ftfont.c:
1648 * fringe.c:
1649 * frame.c:
1650 * fontset.c:
1651 * font.c:
1652 * fns.c:
1653 * floatfns.c:
1654 * filelock.c:
1655 * fileio.c:
1656 * emacs.c:
1657 * editfns.c:
1658 * dosfns.c:
1659 * doprnt.c:
1660 * doc.c:
1661 * dispnew.c:
1662 * dired.c:
1663 * dbusbind.c:
1664 * data.c:
1665 * composite.c:
1666 * coding.c:
1667 * cmds.c:
1668 * cm.c:
1669 * chartab.c:
1670 * charset.c:
1671 * character.c:
1672 * ccl.c:
1673 * category.c:
1674 * casetab.c:
1675 * casefiddle.c:
1676 * callproc.c:
1677 * callint.c:
1678 * bytecode.c:
1679 * buffer.c:
1680 * atimer.c: Include setjmp.h. (Bug#4643)
1681
1682 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
1683
1684 Remove leftover table unibyte_to_multibyte_table.
1685 * character.c (unibyte_to_multibyte_table): Remove.
1686 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
1687 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
1688 * character.h (UNIBYTE_TO_CHAR): New macro.
1689 (MAKE_CHAR_MULTIBYTE): Use it.
1690 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
1691 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
1692 (message_dolog, set_message_1):
1693 * search.c (Freplace_match):
1694 * editfns.c (Fcompare_buffer_substrings):
1695 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
1696 (concat):
1697 * insdel.c (copy_text, count_size_as_multibyte):
1698 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
1699 * term.c (produce_glyphs):
1700 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
1701 * regex.c (RE_CHAR_TO_MULTIBYTE):
1702 * cmds.c (internal_self_insert):
1703 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
1704
1705 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
1706
1707 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
1708
1709 * puresize.h (BASE_PURESIZE): Increase to 1310000.
1710
1711 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
1712
1713 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
1714
1715 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1716
1717 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
1718 still needed under Tiger.
1719
1720 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
1721
1722 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
1723 __Apple__.
1724
1725 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
1726
1727 2009-10-15 Kenichi Handa <handa@m17n.org>
1728
1729 * print.c (print_object): Escape a symbol like "2E10" too.
1730
1731 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
1732
1733 Cleanups and changes for 64-bit compile under Snow Leopard.
1734 Based on suggestions by Erik Charlebois.
1735
1736 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
1737
1738 * nsfont.m (ns_char_width): Replace deprecated call.
1739 (ns_findfonts, nsfont_list_family): Use long format in printf, and
1740 cast argument.
1741 (nsfont_open): Use ns_char_width() everywhere.
1742 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
1743
1744 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
1745
1746 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
1747 where appropriate.
1748
1749 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
1750 where appropriate.
1751 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
1752 Use stringWithUTF8String.
1753 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
1754
1755 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
1756 Add formal protocol mention to inheritance.
1757 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
1758
1759 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
1760 Fix printf format.
1761 (ns_query_color): Use CGFloat where appropriate.
1762 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
1763 (EmacsScroller-mouseDown:): Use long format in printf, and cast
1764 argument.
1765
1766 * config.in (NS_HAVE_NSINTEGER): Drop.
1767
1768 * dbusbind.c (dbus-method-return-internal)
1769 (dbus-method-error-internal): Use long format in printf, and cast
1770 argument.
1771
1772 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
1773 in printf, and cast argument.
1774
1775 * process.c (list_processes_1): Use long format in printf, and
1776 cast argument.
1777
1778 2009-10-11 Glenn Morris <rgm@gnu.org>
1779
1780 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
1781
1782 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
1783
1784 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
1785 menu bar with a small width so it doesn't enlarge the frame.
1786
1787 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
1788
1789 * fontset.c (Fset_fontset_font): Fix typos in error messages.
1790
1791 2009-10-06 Glenn Morris <rgm@gnu.org>
1792
1793 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
1794 SOME_MACHINE_LISP (this enters indirectly via DOC).
1795
1796 2009-10-05 Eli Zaretskii <eliz@gnu.org>
1797
1798 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
1799
1800 2009-10-04 Eli Zaretskii <eliz@gnu.org>
1801
1802 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
1803 Doc fix.
1804
1805 2009-10-03 Martin Rudalics <rudalics@gmx.at>
1806
1807 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
1808
1809 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
1810
1811 * lisp.h (Qdelete_directory_internal): Remove, because it is not
1812 used anymore outside fileio.c.
1813
1814 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
1815
1816 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
1817
1818 * lisp.h (Qdelete_directory_internal):
1819 Declare, instead of Qdelete_directory.
1820
1821 * w32fns.c (Fsystem_move_file_to_trash): Use it.
1822
1823 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1824
1825 * eval.c (Fcalled_interactively_p): Add `kind' argument.
1826
1827 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
1828
1829 * fileio.c (Fdelete_directory_internal): Rename from
1830 Fdelete_directory. It is not a command anymore. It has no file
1831 name handler.
1832
1833 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1834
1835 * xdisp.c (get_next_display_element): Use an enum in last change.
1836
1837 2009-09-28 Kenichi Handa <handa@m17n.org>
1838
1839 * xdisp.c (get_next_display_element): Pay attention to
1840 unibyte_display_via_language_environment in handling
1841 Vnobreak_char_display.
1842
1843 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1844
1845 * nsterm.h (ns_app_name): New extern variable.
1846
1847 * nsterm.m (ns_app_name): New variable.
1848 (ns_term_init): Set and use it.
1849 (ns_term_shutdown): Use it.
1850
1851 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1852 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1853
1854 * nsfns.m (ns_set_name_iconic, ns_set_name)
1855 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1856 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1857
1858 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1859 Remove double-casting in client_data comparison.
1860
1861 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1862
1863 * keyboard.c (make_lispy_event): Remember last wheel direction.
1864 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1865
1866 2009-09-26 Glenn Morris <rgm@gnu.org>
1867
1868 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1869 internal.elc. Add term/pc-win.elc.
1870 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1871 term/x-win.elc.
1872 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1873 term/w32-win.elc.
1874 (NS_SUPPORT): New.
1875 (lisp): Add NS_SUPPORT.
1876 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
1877
1878 2009-09-25 David Reitter <david.reitter@gmail.com>
1879
1880 * nsmenu.m (EmacsMenu-clear): Recognize application menu
1881 on Mac OS X 10.6+ (bug#4513).
1882
1883 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
1884
1885 * frame.c (xrdb_get_resource): Return nil for empty string resources;
1886 some parts of Emacs code (like font selection) don't grok them.
1887 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
1888
1889 2009-09-24 Andreas Schwab <schwab@redhat.com>
1890
1891 * coding.c (decode_coding_iso_2022): Fix operator precedence.
1892
1893 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
1894
1895 * dired.c (Fdirectory_files): Fix typo in docstring.
1896
1897 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1898
1899 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
1900 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
1901 (EmacsScroller-setPosition:portion:whole:): Remove -display call
1902 under GNUstep.
1903 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
1904
1905 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
1906 glyph advancement.
1907
1908 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1909
1910 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
1911 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
1912
1913 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
1914 deleted (bug #4492).
1915
1916 * nsfont.m (Vns_reg_to_script): New lisp variable.
1917 (syms_of_nsfont): Declare it.
1918 (ns_registry_to_script): New function.
1919 (ns_get_req_script): Call it.
1920 (ns_findfonts): Don't give up on non-unicode registry.
1921
1922 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
1923
1924 2009-09-20 Tom Tromey <tromey@redhat.com>
1925
1926 * eval.c (find_handler_clause): Make stack-trace-on-error work in
1927 batch mode (bug#4228).
1928
1929 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
1930
1931 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
1932 carefully. (Bug #4339)
1933
1934 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
1935
1936 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
1937
1938 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1939
1940 * emacs.c (inhibit_x_resources): Update doc string for NS.
1941 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
1942 legacy code for -NXHost. Fix error printf in daemon case.
1943
1944 * nsterm.h (ns_no_defaults): Remove.
1945
1946 * nsterm.m (ns_no_defaults): Remove.
1947 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1948 (ns_use_qd_smoothing): Remove legacy variable.
1949 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1950 don't update the NSWindow itself.
1951 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
1952 state detection and store user rect ourselves. (Bug #3581)
1953
1954 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1955 ns_use_qd_smoothing.
1956
1957 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1958 platform versions. Drop support for emacs-20-style face specs.
1959 (x-close-connection): Drop PSFlush() under OS X.
1960 (x-focus-frame): Activate the app first. (Bug #4180)
1961
1962 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
1963
1964 * emacs.c (inhibit_x_resources): New variable.
1965 (main) [HAVE_NS]: Don't process --quick command line option.
1966 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1967
1968 * lisp.h (inhibit_x_resources): Declare it extern.
1969
1970 * w32reg.c (x_get_string_resource):
1971 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1972
1973 2009-09-17 Eli Zaretskii <eliz@gnu.org>
1974
1975 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1976 Add lisp/term/internal.elc.
1977
1978 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1979
1980 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1981 (bug#4461).
1982
1983 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1984
1985 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1986
1987 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1988 (OBJECTS_MACHINE): Remove, unused.
1989
1990 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1991
1992 * frame.c (x_get_resource_string): Remove unused.
1993
1994 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1995
1996 * xterm.c (x_new_font): Call change_frame_size before calling
1997 x_set_window_size, in case frame size won't change.
1998
1999 * frame.c (x_set_font): Remove dead code.
2000
2001 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2002
2003 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2004
2005 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2006
2007 * lread.c (Fload): Don't output a message after loading an obsolete
2008 package any more (done in Lisp now).
2009
2010 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
2011
2012 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2013
2014 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2015
2016 * keymap.c (Fwhere_is_internal): Use nconc2.
2017
2018 2009-09-11 Alan Mackenzie <acm@muc.de>
2019
2020 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2021 batch mode.
2022
2023 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2024
2025 * xdisp.c (display_mode_element): Detect cycles.
2026
2027 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2028
2029 * keymap.c (where_is_internal): Don't erroneously return nil right after
2030 filling the cache.
2031 (where_is_internal_1): Fix up typo.
2032
2033 2009-09-11 Glenn Morris <rgm@gnu.org>
2034
2035 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2036 share a common doc-string.
2037
2038 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2039
2040 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2041 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2042
2043 * keymap.c (QCadvertised_binding): New constant.
2044 (syms_of_keymap): Initialize it.
2045 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2046 if applicable.
2047
2048 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2049
2050 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2051 (parse_menu_item): Streamline since bindings are recomputed all the
2052 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2053 more and don't support lmenu's menu-alias any more either.
2054
2055 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2056 (where_is_internal): Strip it down to only traverse the keymaps.
2057 Move the cache handling from Fwhere_is_internal to here.
2058 (Fwhere_is_internal): Move the handling of remapping and the choice of
2059 the best binding from where_is_internal to here.
2060 Unify the cached/noncached paths, so remapping is also handled
2061 correctly when the cache is used, and so the cache can be used to
2062 speed up remap-handling when applicable.
2063 Give preference to non-remapped bindings.
2064 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2065 non-remapped bindings.
2066 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2067 command remapping.
2068
2069 * xdisp.c (display_mode_element): Move list length limit from 50 to
2070 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2071
2072 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
2073
2074 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2075
2076 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2077
2078 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2079 (Bug#4334)
2080
2081 * keymap.c (where_is_internal): Filter out shadowed remappings.
2082 Assume that where_is_internal returns unshadowed bindings to simplify
2083 the code and get rid of the gotos. Use ASIZE.
2084
2085 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2086
2087 * xterm.c (x_focus_changed): If we get a focusout and pointer
2088 is invisible, make it visible.
2089
2090 * xterm.h: Remove condition for declaration of
2091 x_*_window_to_frame.
2092
2093 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2094
2095 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2096 initial terminal as well.
2097
2098 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2099
2100 * xterm.h: Rename x_non_menubar_window_to_frame to
2101 x_menubar_window_to_frame.
2102
2103 * xterm.c: Remove declarations also in xterm.h
2104 (XTmouse_position): Do not return valid positions
2105 for clicks in the menubar and the toolbar for Gtk+.
2106
2107 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2108 if the widget for the event has the same top level as a frame,
2109 return the frame.
2110 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2111 internal windows, bug #4122.
2112 (x_non_menubar_window_to_frame): Remove.
2113
2114 2009-09-02 Glenn Morris <rgm@gnu.org>
2115
2116 * buffer.c (default-major-mode): Move most of the doc from here...
2117 (major-mode): ... to here.
2118
2119 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
2120
2121 * process.c (wait_reading_process_output): Keep the descriptor
2122 when pty is used by a non-child process, e.g., in I/O buffer of
2123 GDB this allows inferior to be restarted.
2124
2125 2009-08-29 Eli Zaretskii <eliz@gnu.org>
2126
2127 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2128 both branches into one.
2129
2130 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2131
2132 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2133 (main): Use enable-multibyte-characters rather than
2134 default-enable-multibyte-characters. Output a warning message when
2135 running a unibyte session.
2136
2137 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2138
2139 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2140 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2141 (copy_data_segment): Also copy __program_vars section.
2142 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2143 (dump_it) [LC_DYLD_INFO]: Use it.
2144
2145 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2146
2147 2009-08-28 Eli Zaretskii <eliz@gnu.org>
2148
2149 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2150 $(SRC)/buildobj.h.
2151 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2152 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2153 $(SRC)/buildobj.h.
2154 (clean): Add buildobj.h.
2155
2156 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2157
2158 * print.c (print_object): Set escapeflag to 1 when printing
2159 hashtable keys and values.
2160
2161 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2162
2163 * lread.c (read_integer): Use doubles (and potentially return a float
2164 number) as we do in string-to-number.
2165 (read1): Use strtol to read integers, signal errors on strtol's
2166 overflow and use floats if strtol's output is too large for
2167 Elisp integers.
2168
2169 2009-08-27 Eli Zaretskii <eliz@gnu.org>
2170
2171 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2172 (make-buildobj-SH): Fix last change.
2173 (SRC): Move to before where it's first used.
2174
2175 2009-08-27 Kenichi Handa <handa@m17n.org>
2176
2177 * process.c (send_process): Use encode_coding_object instead of
2178 encode_coding_string to perform eol-conversion even if the string
2179 is unibyte.
2180
2181 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2182 character.
2183
2184 * cmds.c (Fself_insert_command): Avoid unnecessay
2185 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
2186
2187 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2188
2189 * callproc.c (Fcall_process): Remove always true #if.
2190
2191 * lisp.h: Replace #if 0 code for checking with text pointing to
2192 the --enable-checking configure flag.
2193
2194 * emacs.c (main): Mention the --enable-profiling configure flag
2195 instead of using CFLAGS.
2196
2197 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
2198
2199 * Makefile.in (buildobj.h): New target.
2200 (doc.o): Depend on it.
2201 (temacs${EXEEXT}): Don't generate buildobj.lst.
2202 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2203 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2204 ($(BLD)/doc.$(O)): Depend on it.
2205 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2206 provided by Eli Zaretskii.)
2207 ($(TEMACS)): Don't generate buildobj.lst.
2208 * doc.c: Include buildobj.h.
2209 (buildobj): New static variable.
2210 (Fsnarf_documentation): Use it, instead of opening and reading
2211 buildobj.lst.
2212
2213 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
2214
2215 * dbusbind.c (Fdbus_call_method)
2216 (Fdbus_call_method_asynchronously): Use English numeric format for
2217 timeout values in doc string.
2218
2219 2009-08-25 Kenichi Handa <handa@m17n.org>
2220
2221 * alloc.c (mark_char_table): New function.
2222 (mark_object): Use mark_char_table for a char-table.
2223
2224 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2225 (CHAR_TABLE_REF): Use it.
2226
2227 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
2228
2229 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2230 before invoking the newly build emacs to check for load-path
2231 shadowing.
2232
2233 2009-08-22 Glenn Morris <rgm@gnu.org>
2234
2235 * Makefile.in (bootstrap_exe): New variable.
2236 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2237 Use ${bootstrap_exe}.
2238
2239 2009-08-22 Eli Zaretskii <eliz@gnu.org>
2240
2241 * coding.h (encode_coding_string): Don't encode unibyte strings.
2242 (Bug#4047)
2243
2244 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
2245
2246 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2247
2248 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2249 intended as hotfix only.
2250 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2251
2252 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2253
2254 * nsterm.m (ns_get_color): Update documentation properly for last
2255 change, and clean up loose ends in the code left by it. Fix
2256 longstanding bug with 16-bit hex parsing, and add support for
2257 yet another X11 format (rgb:r/g/b) for compatibility.
2258 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2259 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2260
2261 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2262
2263 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2264
2265 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
2266
2267 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2268 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2269 (xd_initialize, xd_pending_messages): Check, whether
2270 $DBUS_SESSION_BUS_ADDRESS is set.
2271
2272 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2273
2274 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2275
2276 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2277
2278 2009-08-20 Glenn Morris <rgm@gnu.org>
2279
2280 * emacs.c (system-type): Doc fix.
2281
2282 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2283
2284 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2285 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2286
2287 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
2288
2289 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2290 New functions.
2291 (xd_initialize): Revert change from 2009-08-16.
2292
2293 2009-08-18 Kenichi Handa <handa@m17n.org>
2294
2295 * fontset.c (Ffontset_font): If a nil element is found in a
2296 font-group vector, return nil.
2297
2298 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
2299
2300 * process.c (status_notify): Don't perform redisplay.
2301 (Fdelete_process, list_processes_1, process_send_signal):
2302 Expliticly perform redisplay.
2303 (wait_reading_process_output): Always check process status, but
2304 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2305
2306 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
2307
2308 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
2309 (XFLOAT_INIT): New macro for storing a float value.
2310 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2311 * fns.c (sxhash): Copy out the value of a float in order to
2312 examine its bytes.
2313 * dbusbind.c (xd_append_arg): Likewise.
2314
2315 * emacs.c (main): Don't call syms_of_data twice.
2316
2317 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
2318
2319 * dbusbind.c (xd_initialize): Add connection file descriptor to
2320 input_wait_mask, in order to let select() detect, whether a new
2321 message has been arrived.
2322 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
2323
2324 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
2325
2326 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2327 New functions.
2328
2329 * lisp.h (xd_pending_messages): Declare.
2330
2331 * keyboard.c (readable_events): Call xd_pending_messages.
2332
2333 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
2334
2335 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
2336
2337 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2338
2339 * buffer.c (set_buffer_internal_1)
2340 (swap_out_buffer_local_variables): Check for unbound local
2341 variables (Bug#4138).
2342
2343 2009-08-14 Eli Zaretskii <eliz@gnu.org>
2344
2345 * process.c (create_pty): Fix last change.
2346
2347 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
2348
2349 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2350 (xbm_load_image): Caller changed.
2351 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
2352
2353 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
2354
2355 * process.c (create_pty): New function.
2356 (Fstart_process): Use it to allow Emacs to just associate a pty
2357 with the buffer. See associated change in gdb-mi.el.
2358 (list_processes_1): Deal with no program name.
2359 (start_process_unwind): Use pid == -2 to mean no process.
2360
2361 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2362
2363 * cmds.c (nonundocount): New global variable.
2364 (keys_of_cmds): Initialize it.
2365 (Fself_insert_command): Use it to combine upto 20 sequential chars
2366 into a single undo entry, just like the Qself_insert_command code in
2367 keyboard.c does.
2368 Call frame_make_pointer_invisible, also like the Qself_insert_command
2369 code in keyboard.c does.
2370 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2371 than its own local replacement for it.
2372
2373 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
2374
2375 * fns.c (concat): Don't re-set string length to its current value.
2376
2377 * coding.h (decode_coding_string, encode_coding_string):
2378 Use SBYTES macro.
2379
2380 * doprnt.c (doprnt_lisp): Delete unused function.
2381 (doprnt): Merge with doprnt1, discarding lispstrings code.
2382 * lisp.h (doprnt_lisp): Don't declare.
2383
2384 2009-08-07 Juri Linkov <juri@jurta.org>
2385
2386 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2387
2388 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2389
2390 * print.c (syms_of_print): Undo previous change.
2391
2392 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2393
2394 * lread.c (read1, syms_of_lread): Read hashtables back from the
2395 readable format.
2396
2397 * print.c (print_preprocess, print_object): Print hashtables fully
2398 and readably.
2399 (syms_of_print): Provide 'hashtable-print-readable.
2400
2401 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2402
2403 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2404 no family set.
2405 (nsfont_open): Handle case when entity has no family.
2406
2407 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2408
2409 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2410 element, not a list, for match case.
2411
2412 2009-07-28 Kenichi Handa <handa@m17n.org>
2413
2414 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2415 rigidly.
2416
2417 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2418 font_parse_xlfd. Check font properties more rigidly.
2419
2420 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2421
2422 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2423 bsd-common.h.
2424
2425 2009-07-27 Kenichi Handa <handa@m17n.org>
2426
2427 * xfaces.c (face_with_height): Call font_clear_prop.
2428
2429 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
2430
2431 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2432
2433 * xterm.c (x_term_init): Use Qx.
2434
2435 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2436
2437 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
2438 (ns_get_color): Revert 2009-07-16 change.
2439
2440 2009-07-25 Eli Zaretskii <eliz@gnu.org>
2441
2442 * lread.c (syms_of_lread) <force_load_messages>: New variable.
2443 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
2444
2445 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
2446
2447 * coding.h (decode_coding_string, encode_coding_string):
2448 Use SCHARS macro.
2449
2450 * lread.c: Rewrite 2009-07-21 changes.
2451 (load_depth): Delete.
2452 (Qload_in_progress): New variable.
2453 (load_unwind): Don't reference load_depth or load_in_progress.
2454 (Fload): Likewise; specbind Qload_in_progress instead.
2455 (init_lread): Don't initialize load_depth.
2456 (syms_of_lread): Initialize and protect Qload_in_progress.
2457
2458 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2459
2460 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2461
2462 2009-07-23 Yavor Doganov <yavor@gnu.org>
2463
2464 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2465
2466 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2467
2468 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
2469 Bugs 3792, 3720, 2402.
2470 (ns_lookup_indexed_color): Check for bad index.
2471 (ns_index_color): Init unused slot to 0.
2472 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2473 Bug 3714, possibly 3082.
2474
2475 2009-07-22 Jason Rumney <jasonr@gnu.org>
2476
2477 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2478 Position IME window at cursor (Bug#2570).
2479 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2480 (globals_of_w32fns): Dynamically load functions required above.
2481
2482 * w32term.c (w32_draw_window_cursor): Send message to reposition
2483 any IME window.
2484
2485 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
2486
2487 * fileio.c: Revert 2009-07-16 changes.
2488 (Vauto_save_include_big_deletions): New variable.
2489 (Fdo_auto_save): Disable auto-save only if
2490 auto-save-include-big-deletions is nil.
2491
2492 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
2493
2494 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2495 the overflowed pixels into account (Bug#3879).
2496
2497 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
2498
2499 * lread.c (load_depth): New variable.
2500 (Fload, load_unwind, init_lread): Set it to the load recursion
2501 depth; set load_in_progress as a simple boolean based on the
2502 current load_depth. (Bug#3892)
2503
2504 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2505
2506 * nsfont.m (ns_has_attribute): Remove.
2507 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2508
2509 2009-07-18 Juri Linkov <juri@jurta.org>
2510
2511 * process.c (Fset_process_query_on_exit_flag): Mention killing
2512 a buffer in docstring.
2513
2514 2009-07-17 Kenichi Handa <handa@m17n.org>
2515
2516 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2517
2518 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2519
2520 * nsfns.m (Fns_set_alpha): Remove function.
2521 (syms_of_nsfns): Don't defsubr it.
2522
2523 * nsterm.m (ns_get_color): Remove incompatible color formats.
2524 (ns_color_to_lisp): Generate #rrggbb color format string.
2525
2526 2009-07-16 Richard Stallman <rms@gnu.org>
2527
2528 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
2529 (Fset_buffer_auto_saved): Handle save_length = -2.
2530
2531 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
2532
2533 * xterm.c (Qx_gtk_map_stock): New var.
2534
2535 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
2536 of calling intern each time.
2537
2538 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2539
2540 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
2541 does tiling.
2542
2543 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
2544
2545 2009-07-14 Kenichi Handa <handa@m17n.org>
2546
2547 * font.c (font_vconcat_entity_vectors): New function.
2548 (struct font_sort_data): New member font_driver_preference.
2549 (font_compare): Check font_driver_preference.
2550 (font_sort_entities): The format of the first argument changed.
2551 (font_delete_unmatched): Likewise.
2552 (font_list_entities): The return type changed.
2553 (font_select_entity): The format of the second argument changed.
2554 (font_find_for_lface): Adjuste for the above changes.
2555 Don't suppress the checking of C even if the repertory supports it.
2556 (Flist_fonts): Adjust for the above changes.
2557
2558 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
2559 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
2560 Reject a font who has adstyle property that is different from a
2561 langname derived from registry property.
2562 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
2563
2564 2009-07-13 Eli Zaretskii <eliz@gnu.org>
2565
2566 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
2567 local copy of dirfilename.
2568
2569 2009-07-13 Kenichi Handa <handa@m17n.org>
2570
2571 * chartab.c (sub_char_table_ref_and_range): Fix the range check
2572 against max_char.
2573
2574 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
2575 calling XSYMBOL (sym).
2576
2577 2009-07-11 Eli Zaretskii <eliz@gnu.org>
2578
2579 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
2580 New function.
2581 (directory_files_internal) [WINDOWSNT]:
2582 Bind w32-get-true-file-attributes to either t or nil, depending whether
2583 the filesystem of the directory is fast or slow.
2584
2585 * w32.c (logon_network_drive): Don't assume PATH is an absolute
2586 file name.
2587 (is_slow_fs): New function.
2588 (stat): Use it to determine whether to issue more system calls to
2589 get accurate file attributes, when w32-get-true-file-attributes is
2590 `local'.
2591
2592 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
2593
2594 * xfns.c (Fx_select_font): Remember last font selected in
2595 x_last_font_name and use that the next time. Also try the frame
2596 parameter font-parameter as default to the font dialog.
2597
2598 2009-07-10 Kenichi Handa <handa@m17n.org>
2599
2600 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
2601
2602 2009-07-09 Eli Zaretskii <eliz@gnu.org>
2603
2604 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
2605
2606 * w32.c (stat): Treat UNC file names as residing on remote
2607 drives. (Bug#3542)
2608
2609 2009-07-09 Kenichi Handa <handa@m17n.org>
2610
2611 * fontset.c (fontset_find_font): Fix previous change.
2612
2613 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
2614
2615 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
2616 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
2617 error flag.
2618
2619 2009-07-08 Kenichi Handa <handa@m17n.org>
2620
2621 * fontset.c (fontset_find_font): Fix the logic of handling
2622 charset_matched.
2623 (font_for_char): Delete unused var.
2624 (generate_ascii_font_name): Delete it.
2625
2626 * coding.h (JIS_TO_SJIS2): Fix the code range check.
2627
2628 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
2629 (encode_coding_sjis): Fix the code range check.
2630
2631 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
2632
2633 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
2634 (Fexpand_file_name): Copy string data properly (Bug#3772).
2635
2636 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
2637
2638 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
2639 first MapNotify.
2640
2641 2009-07-07 Kenichi Handa <handa@m17n.org>
2642
2643 * character.h (unibyte_has_multibyte_table): Delete extern.
2644 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
2645
2646 * charset.c (Fset_charset_priority): Update charset_unibyte.
2647 (syms_of_charset): Initialize charset_unibyte.
2648
2649 * character.c (unibyte_has_multibyte_table): Delete it.
2650 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
2651 charset_unibyte.
2652 (multibyte_char_to_unibyte_safe): Likewise.
2653 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
2654
2655 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
2656 (x_produce_glyphs): Likewise.
2657
2658 * .gdbinit (xcharset): Fix the treating $arg0.
2659
2660 2009-07-04 Eli Zaretskii <eliz@gnu.org>
2661
2662 Emulation of `getloadavg' on MS-Windows.
2663 * w32.c: Include float.h
2664 (g_b_init_get_native_system_info, g_b_init_get_system_times)
2665 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
2666 (get_native_system_info, get_system_times): New functions.
2667 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
2668 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
2669 (globals_of_w32): Initialize g_b_init_get_native_system_info,
2670 g_b_init_get_system_times, and num_of_processors.
2671
2672 2009-07-03 Jason Rumney <jasonr@gnu.org>
2673
2674 * w32term.c (w32_initialize): Use standard types.
2675
2676 2009-07-03 Eli Zaretskii <eliz@gnu.org>
2677
2678 * dired.c (Ffile_attributes): Decode user and group names by the
2679 locale's encoding. (Bug#3443)
2680
2681 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
2682
2683 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
2684 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
2685
2686 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
2687
2688 * term.c (init_tty): Remove spurious #ifdef.
2689
2690 * m/mips.h: Mention this file is also used for netbsd.
2691 * m/pmax.h: Remove file.
2692
2693 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
2694
2695 * xterm.h (struct x_display_info): Add invisible_cursor.
2696 (struct x_output): Add current_cursor.
2697
2698 * xterm.c (XTtoggle_invisible_pointer): New function.
2699 (x_define_frame_cursor): Don't define cursor if invisible or the
2700 same as before. Set current_cursor.
2701 (x_create_terminal): Set toggle_invisible_pointer_hook.
2702
2703 * xfns.c (make_invisible_cursor): New function.
2704 (x_set_mouse_color): Call make_invisible_cursor.
2705 Set current_cursor.
2706 (x_window): Set current_cursor.
2707
2708 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
2709
2710 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
2711 inserting a character.
2712 (read_avail_input): Call frame_make_pointer_visible.
2713
2714 * frame.c (Vmake_pointer_invisible): New variable.
2715 (frame_make_pointer_invisible, frame_make_pointer_visible):
2716 New functions.
2717 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
2718
2719 * frame.h: Declare frame_make_pointer_invisible and
2720 frame_make_pointer_visible.
2721 (struct frame): Add pointer_invisible.
2722
2723 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
2724
2725 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
2726 frame isn't visible.
2727 (xg_frame_resized): If width/height is -1, get size of window
2728 from X server.
2729
2730 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
2731 for MapNotify.
2732
2733 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
2734 here or call change_frame_size. Just call flush_and_sync.
2735 (flush_and_sync): Reintroduce.
2736
2737 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
2738
2739 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
2740
2741 * xterm.c (x_handle_net_wm_state): Also look for sticky.
2742 (x_term_init): Initialize Xatom_net_wm_state_sticky.
2743
2744 * frame.h: Declare Qsticky.
2745
2746 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
2747
2748 * nsfns.m (ns_frame_parm_handlers): Ditto.
2749
2750 * frame.c: Declare Qsticky.
2751 (frame_parms): Add sticky.
2752
2753 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
2754
2755 * xterm.h: Declare x_set_sticky.
2756
2757 * xterm.c (x_set_sticky): New function.
2758
2759 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
2760 (xg_tool_bar_menu_proxy): Attach enter/leave events to
2761 xg_tool_bar_proxy_help_callback.
2762
2763 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
2764
2765 * frame.c: Qmaximized is new.
2766 (x_set_frame_parameters): Do not handle fullscreen specially.
2767 Only set width and height if explicitly set.
2768 (x_set_fullscreen): Handle Qmaximized.
2769 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
2770 (syms_of_frame): Initialize Qmaximized.
2771
2772 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
2773 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
2774
2775 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
2776 for Expose event. Add call to x_check_fullscreen for MapNotify event.
2777 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
2778 set gravity to NorthWestGravity when USE_GTK.
2779 (set_wm_state): New function.
2780 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
2781 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
2782 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
2783 or the case when no window manager is running. That means remove calls
2784 to x_real_positions and x_fullscreen_adjust.
2785
2786 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
2787 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
2788 flush_and_sync.
2789 (xg_height_changed): New function.
2790 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
2791 and gtk_window_set_policy. Set frame gravity after parsing the
2792 geometry string.
2793 (xg_update_frame_menubar, free_frame_menubar)
2794 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
2795 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
2796 Remove calls to xg_frame_set_char_size.
2797
2798 2009-07-01 Kenichi Handa <handa@m17n.org>
2799
2800 * keyboard.c (decode_keyboard_code): New function.
2801 (tty_read_avail_input): Decode the input bytes if necessary.
2802
2803 * coding.c (setup_coding_system):
2804 Initialize coding->carryover_bytes to 0.
2805 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
2806 use Qno_conversion.
2807
2808 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2809
2810 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
2811
2812 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
2813
2814 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
2815
2816 2009-06-30 Jason Rumney <jasonr@gnu.org>
2817
2818 * w32term.c (w32_initialize): Use GetModuleHandle for library that
2819 is already loaded.
2820 Set user model ID if supported (bug#1849).
2821
2822 2009-06-29 Jim Meyering <meyering@redhat.com>
2823
2824 Remove useless if-before-xfree test.
2825 * nsfont.m (nsfont_close): Remove useless test.
2826 * term.c (delete_tty): Likewise.
2827 * w32.c (system_process_attributes): Likewise.
2828 * w32font.c (w32font_close): Likewise.
2829 * xfaces.c (x_free_gc): Likewise.
2830 * xselect.c (buffer): Likewise.
2831
2832 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
2833
2834 * process.c (send_process): Keep decoded string in a local
2835 variable and protect it from GC. (Bug#3521)
2836
2837 2009-06-28 Eli Zaretskii <eliz@gnu.org>
2838
2839 * term.c (create_tty_output) [MSDOS]: #ifdef away.
2840 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2841
2842 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
2843
2844 * xdisp.c (start_display, handle_face_prop)
2845 (move_it_vertically_backward, cursor_row_fully_visible_p)
2846 (redisplay_window, try_window_id, produce_image_glyph):
2847 Delete some #ifdef-ed out code chunks that are now obsolete.
2848
2849 * xterm.c (x_update_window_begin, x_new_focus_frame)
2850 (x_scroll_bar_handle_click, handle_one_xevent)
2851 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2852 (x_make_frame_visible, x_make_frame_invisible)
2853 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2854 code chunks that are now obsolete.
2855
2856 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
2857
2858 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2859 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2860 for hours, when optimzation is enabled.
2861 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2862 (xd_read_message): Make them static.
2863
2864 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2865
2866 * term.c (turn_on_face): Allow simultaneously bold and dim
2867 terminal faces (Bug#3530).
2868
2869 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
2870
2871 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2872
2873 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2874 truncation glyphs (Bug#3686).
2875
2876 2009-06-27 Glenn Morris <rgm@gnu.org>
2877
2878 * m/pmax.h: Restore file, with only netbsd portions.
2879
2880 2009-06-26 David Reitter <david.reitter@gmail.com>
2881
2882 * nsterm.m (keydown): Avoid infinite loop.
2883
2884 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
2885
2886 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
2887 the arg FORCE_SYMBOL.
2888
2889 2009-06-25 Kenichi Handa <handa@m17n.org>
2890
2891 * fontset.c (fontset_find_font): When a usable rfont_def is found
2892 in a fallback font-group, make it the first element of the group.
2893
2894 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
2895
2896 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
2897
2898 2009-06-24 Kenichi Handa <handa@m17n.org>
2899
2900 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
2901 set for C.
2902 (fontset_font): Record the availability of a font for C both in
2903 the realized fontsets of the current one and the default one.
2904
2905 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2906
2907 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
2908 conditional, it is always defined on AIX.
2909
2910 2009-06-23 Miles Bader <miles@gnu.org>
2911
2912 * window.c (Vrecenter_redisplay): New variable.
2913 (syms_of_window): Initialize it.
2914 (Qtty): New extern declaration.
2915 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
2916
2917 2009-06-23 Jim Meyering <meyering@redhat.com>
2918
2919 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
2920 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
2921 pointer dereferences are guaranteed to be valid.
2922
2923 2009-06-23 Kenichi Handa <handa@m17n.org>
2924
2925 * emacs.c (main): Call init_font ().
2926
2927 * font.h (Vfont_log): Extern it.
2928 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2929
2930 * font.c (font_sort_entities, font_list_entities)
2931 (font_matching_entity, font_open_entity)
2932 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2933 (Vfont_log): Delete static.
2934 (font_log_env_checked): Delete this variable.
2935 (font_add_log): Don't check font_log_env_checked.
2936 (font_deferred_log): Check Vfont_log.
2937 (init_font): New function.
2938
2939 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2940
2941 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2942
2943 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2944
2945 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2946
2947 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2948 (face_for_char): Don't call font_deferred_log here.
2949 (font_for_char): Likewise.
2950
2951 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
2952
2953 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2954 rather than its background_width for drawing the overline and
2955 underline (Bug#489).
2956
2957 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2958 rather than its background_width for drawing the overline and
2959 underline (Bug#489).
2960 (xg_default_icon_file): New variable.
2961 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2962 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
2963
2964 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2965 (load_overlay_strings): Remove externs.
2966 (fast_find_position): Function deleted.
2967 (mouse_face_from_buffer_pos): New function, based on
2968 fast_find_position. Correctly handle before-strings,
2969 display-strings, and after-strings (Bug#1220).
2970 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2971
2972 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
2973
2974 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
2975 (move_it_in_display_line_to, move_it_in_display_line_to)
2976 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2977
2978 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
2979
2980 * Branch for 23.1.
2981
2982 2009-06-21 Jason Rumney <jasonr@gnu.org>
2983
2984 * w32term.c (keyboard_codepage): New static variable.
2985 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2986 (w32_read_socket) [WM_CHAR]: Use it to decode character
2987 input (bug#3237).
2988 (w32_initialize): Initialize it.
2989 (codepage_for_locale): New function.
2990
2991 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
2992
2993 * process.c (status_message): Pass Faset index argument as a lisp
2994 object, so as to work with USE_LISP_UNION_TYPE.
2995
2996 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2997
2998 * coding.c (Ffind_coding_systems_region_internal):
2999 Cache checked characters.
3000
3001 2009-06-18 Kenichi Handa <handa@m17n.org>
3002
3003 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
3004
3005 2009-06-18 Andreas Schwab <aschwab@redhat.com>
3006
3007 * xdisp.c (redisplay_internal): Check that the frame is still
3008 live after redisplay of its windows.
3009 (redisplay_windows): Check that the window is still live.
3010
3011 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3012
3013 * coding.c (detect_coding_utf_16): Fix previous change.
3014
3015 2009-06-16 Kenichi Handa <handa@m17n.org>
3016
3017 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3018 UTF-16 by checking the dispersion of Eth and Oth bytes.
3019
3020 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3021
3022 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3023
3024 2009-06-15 Kenichi Handa <handa@m17n.org>
3025
3026 * process.c (status_message): Fix previous change. Be sure to
3027 decode a localized string.
3028
3029 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3030
3031 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3032 add comment explaining why.
3033
3034 2009-06-14 Sidney Markowitz <sidney@sidney.com>
3035
3036 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
3037
3038 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3039
3040 * nsfont.m (ns_attribute_value): Remove.
3041 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3042 (ns_has_attribute): Shrink the normal range.
3043 (ns_findfonts): Don't worry about requested spec in determining
3044 need for synthItal.
3045 (ns_get_covering_families): Retain scriptToFamilies.
3046
3047 2009-06-14 Seiji Zenitani <zenitani@mac.com>
3048
3049 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3050
3051 2009-06-11 Kenichi Handa <handa@m17n.org>
3052
3053 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3054 overhang for the static composition case.
3055
3056 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3057
3058 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3059 overhang for the automatic composition case.
3060
3061 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3062 composition case.
3063
3064 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
3065
3066 * xdisp.c (get_next_display_element): When handling wrap-prefix
3067 and line-prefix, treat \n as a control character (bug#3502).
3068
3069 2009-06-10 Kenichi Handa <handa@m17n.org>
3070
3071 * font.c (font_parse_family_registry): Fix for one-char foundry.
3072 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3073
3074 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3075
3076 * process.c (status_message): Fix handling of multibyte signal
3077 string (Bug#3499).
3078
3079 2009-06-09 Jim Meyering <meyering@redhat.com>
3080
3081 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3082 color name is missing.
3083
3084 2009-06-09 Kenichi Handa <handa@m17n.org>
3085
3086 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3087 FROM-CODE and TO-CODE are codepoints of CHARSET.
3088
3089 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3090
3091 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3092
3093 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3094
3095 Changes to support :script/:lang/:otf in NS font driver.
3096 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3097 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3098 indicate not part of font driver interface, and change callers.
3099 (ns_get_family): Remove pointless null check.
3100 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3101 ns_spec_to_descriptor, ns_descriptor_to_entity.
3102 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3103 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3104 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3105 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3106 (ns_get_req_script, ns_accumulate_script_ranges)
3107 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3108 New functions.
3109 (nsfont_list, nsfont_match): Use ns_findfonts.
3110 (nsfont_open): Use font descriptor instead of traits.
3111 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3112 (dump_glyphstring): Rename to ns_dump_glyphstring.
3113
3114 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3115
3116 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3117
3118 * fontset.c (fontset_from_font): Remove NS-specific code.
3119
3120 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
3121
3122 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3123 nonactive windows.
3124
3125 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
3126
3127 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
3128
3129 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3130
3131 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3132
3133 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
3134
3135 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3136 account for the overflowing of newlines into the last glyph on the
3137 display line (Bug#3482).
3138
3139 2009-06-05 David Reitter <david.reitter@gmail.com>
3140
3141 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3142 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
3143 Fns_selection_exists_p, Fns_selection_owner_p.
3144
3145 2009-06-03 Jason Rumney <jasonr@gnu.org>
3146
3147 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3148 available. (Bug#3379)
3149
3150 2009-05-29 Kenichi Handa <handa@m17n.org>
3151
3152 * coding.c (get_translation_table):
3153 Check Venable_character_translation.
3154
3155 2009-05-26 David Reitter <david.reitter@gmail.com>
3156
3157 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3158 (x_make_frame_visible): Move frame to front rather than calling
3159 ns_raise_frame().
3160 (keyDown:): Do not swallow events that aren't re-sent if frame
3161 isn't key window.
3162 (drawRect:): Do not set visibility/iconified flags because
3163 drawRect may be called by NSView even if the frame is hidden.
3164
3165 * nsfns.m (Fx_create_frame): Follow other ports in
3166 determining visibility; default to t. Ensure async_visible is set.
3167
3168 2009-05-23 Eli Zaretskii <eliz@gnu.org>
3169
3170 * dired.c (Ffile_attributes): Doc fix.
3171
3172 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
3173
3174 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3175
3176 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3177
3178 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3179 and xfont_scratch_props.
3180 (syms_of_xfont): Do it here instead.
3181 (xfont_find_ccl_program): Delete, unused.
3182 (xfont_open): Delete unused var `i'.
3183
3184 2009-05-21 Kenichi Handa <handa@m17n.org>
3185
3186 * fontset.c (Qlatin): Don't make it static.
3187
3188 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3189 New functions.
3190 (xfont_scripts_cache, xfont_scratch_props): New variables.
3191 (Qlatin, Vscalable_fonts_allowed): Extern it.
3192 (xfont_list_pattern): Argument changed. Callers changed.
3193 Check Vscalable_fonts_allowed. Check the support of a script.
3194 (xfont_list): Don't reject a font spec with :script property.
3195 (xfont_has_char): Fix setting of encoding.
3196 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3197 xfont_scratch_props.
3198
3199 2009-05-19 Kenichi Handa <handa@m17n.org>
3200
3201 * font.c (font_sort_entities): Rename from font_sort_entites.
3202 Callers changed.
3203
3204 2009-05-18 Kenichi Handa <handa@m17n.org>
3205
3206 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3207
3208 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3209
3210 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3211 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3212
3213 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3214
3215 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3216 (x_delete_terminal): Dissociate resource database from display and
3217 then call XrmDestroyDatabase before closing display.
3218
3219 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3220
3221 * nsterm.m (ns_read_socket): Remove unused variable.
3222 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3223 whether selected frame is viable before raising it (based on patch
3224 by David Reitter), and improve commentary.
3225 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
3226
3227 2009-05-15 Kenichi Handa <handa@m17n.org>
3228
3229 * font.c (Ffont_spec): Check arguments.
3230
3231 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
3232
3233 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3234 weight when testing attributes (Bug#3282).
3235
3236 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3237
3238 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3239 what we expect to get in the next ConfigureNotify event.
3240
3241 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3242 before Xft one (Bug#1696).
3243
3244 2009-05-07 David Reitter <david.reitter@gmail.com>
3245
3246 * nsfns.m (Fx_display_planes): Compute bitplanes using
3247 NSBitsPerPixelFromDepth (Bug#3207).
3248
3249 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
3250
3251 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3252
3253 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
3254
3255 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3256
3257 2009-05-07 David Reitter <david.reitter@gmail.com>
3258
3259 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3260 Respect mouse face background.
3261
3262 2009-05-07 David Reitter <david.reitter@gmail.com>
3263
3264 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3265 Mouse movement/highlight: bracket drawing operations
3266 in ns_update_begin and ns_update_end.
3267
3268 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3269
3270 * nsfns.m (ns_get_screen): Rewrite.
3271 Don't presume selected-frame is of type `ns'.
3272
3273 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3274 all drivers.
3275
3276 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3277
3278 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3279
3280 * keyboard.h (add_user_signal): Fix typo in extern.
3281
3282 * lisp.h (add_user_signal): Remove extern.
3283
3284 * unexelf.c (unexec): Consider a section to precede the .bss section
3285 if its addresses overlap that of .bss.
3286 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3287 instead of dumping process.
3288
3289 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3290
3291 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3292
3293 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3294
3295 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3296
3297 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3298
3299 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3300 any statements.
3301
3302 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3303
3304 * process.c (read_process_output): Make sure the current buffer is
3305 always restored.
3306
3307 * coding.c (record_conversion_result): Don't modify
3308 Vlast_code_conversion_error for successful result.
3309 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3310
3311 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3312
3313 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
3314 (load_charset_map): Remove unnecessary code.
3315
3316 2009-04-30 David Reitter <david.reitter@gmail.com>
3317
3318 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
3319 through f24.
3320
3321 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
3322
3323 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3324
3325 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3326 face_at_buffer_position.
3327 (face_before_or_after_it_pos, get_next_display_element)
3328 (note_mouse_highlight): Update face_at_buffer_position call.
3329
3330 * term.c (term_mouse_highlight):
3331 * msdos.c (IT_note_mouse_highlight):
3332 * fontset.c (Finternal_char_font):
3333 * font.c (font_at, font_range): Update face_at_buffer_position call.
3334
3335 * dispextern.h (face_at_buffer_position): Update prototype.
3336
3337 2009-04-30 Kenichi Handa <handa@m17n.org>
3338
3339 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
3340
3341 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3342
3343 * callproc.c (Fcall_process): Fix GC protection. Make sure
3344 current buffer is always restored.
3345
3346 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3347
3348 * atimer.c (init_atimer): Also clear stopped_atimers.
3349
3350 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3351
3352 * process.c (create_process): Clean up merger residues of
3353 2008-07-17 change.
3354
3355 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
3356
3357 * lread.c (Vread_circle): New variable.
3358 (read1): Disable recursive read if Vread_circle is nil.
3359
3360 2009-04-29 Kenichi Handa <handa@m17n.org>
3361
3362 * fontset.h (set_default_ascii_font): Delete extern.
3363
3364 * fontset.c (set_default_ascii_font): Delete this unused function.
3365
3366 * frame.c (x_set_font): When ARG is a font-object, check if the
3367 font-object matches with the ASCII font-spec of the frame's
3368 fontset. If not, create a new fontset for the frame. (Bug #3075)
3369
3370 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3371
3372 * fns.c (Flocale_info): Protect vector from GC during decoding.
3373
3374 * process.c (Fstart_process): Protect argv strings from GC during
3375 encoding.
3376
3377 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3378
3379 * sysdep.c: Include <ctype.h>.
3380
3381 2009-04-27 David Reitter <david.reitter@gmail.com>
3382
3383 * nsfont.m (nsfont_open): Remove unused variable shrink.
3384 Remove commented-out code.
3385
3386 2009-04-26 Johan Bockgård <bojohan@gnu.org>
3387
3388 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3389
3390 2009-04-25 Jason Rumney <jasonr@gnu.org>
3391
3392 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3393
3394 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3395
3396 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3397 Swap bytes in short integer if fringe bitmap width > 8.
3398
3399 2009-04-23 Kenichi Handa <handa@m17n.org>
3400
3401 * xfaces.c (Fx_list_fonts): If a font size is specified in
3402 PATTERN, set it in returned scalable fonts.
3403
3404 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
3405
3406 * keyboard.c (Fset_input_meta_mode): Doc fix.
3407
3408 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3409
3410 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
3411
3412 * coding.c (Fterminal_coding_system): Doc fix.
3413
3414 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3415 (Fx_display_pixel_height, Fx_display_planes)
3416 (Fx_display_color_cells, Fx_server_max_request_size)
3417 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3418 (Fx_display_mm_height, Fx_display_mm_width)
3419 (Fx_display_backing_store, Fx_display_visual_class)
3420 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3421 Doc fixes, replacing "terminal id" with "terminal object".
3422 (check_x_display_info): Handle terminal objects instead of
3423 terminal ids.
3424
3425 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3426 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
3427 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3428 Doc fixes, replacing "terminal id" with "terminal object".
3429
3430 2009-04-21 Kenichi Handa <handa@m17n.org>
3431
3432 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
3433 (font_score): Check AVGWIDTH too.
3434
3435 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3436 worst case.
3437 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3438 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
3439
3440 2009-04-19 Jason Rumney <jasonr@gnu.org>
3441
3442 The following changes fix Bug#3005 for wide glyphs on each platform,
3443 without reintroducing Bug#1258 for stretch glyphs.
3444
3445 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3446 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3447 get_phys_cursor_geometry.
3448
3449 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
3450 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3451 using get_phys_cursor_geometry.
3452
3453 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3454 correctly calculated.
3455
3456 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3457
3458 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3459 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
3460 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3461 is deprecated.
3462
3463 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3464
3465 * font.c (font_put_frame_data): Use xfree instead of free.
3466
3467 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
3468
3469 * w32font.c (Qja, Qko): Remove declarations.
3470 (syms_of_w32font): Don't DEFSYM them.
3471
3472 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
3473
3474 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3475
3476 * font.h (Qja, Qko): Extern them.
3477
3478 * ftfont.c (Qja, Qko): Remove declarations.
3479
3480 * xfont.c (Qja, Qko): Remove declarations.
3481
3482 2009-04-17 Kenichi Handa <handa@m17n.org>
3483
3484 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3485 string from a vector to handle Latin-1 characters correctly.
3486
3487 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3488 entity even if the cache hits.
3489
3490 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3491
3492 * search.c (boyer_moore): Use zero as marker value for a possible
3493 match instead of depending on overflow behavior. (Bug#2844)
3494
3495 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3496 * lisp.h: Adjust prototypes.
3497
3498 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
3499
3500 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3501 change (Bug#3003).
3502
3503 2009-04-16 Kenichi Handa <handa@m17n.org>
3504
3505 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
3506
3507 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3508 adstyle.
3509
3510 * ftfont.c (Qja, Qko): Don't make them static.
3511 (enum ftfont_cache_for): New enum.
3512 (fc_charset_table): Undo the previous change.
3513 (ftfont_get_latin1_charset): Delete it.
3514 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3515 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
3516 non-scarable font, try to get AVERAGE_WIDTH.
3517 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3518 Change ft_face_cache from a list of a hash-table. Don't check
3519 `ja' and `ko' adstyle here.
3520 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3521 FTFONT_CACHE_FOR_CHARET.
3522 (ftfont_get_charset): Undo the previous change.
3523 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
3524 (ftfont_close): Likewise.
3525 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
3526
3527 * font.c (font_sort_entites): Change the meaning of the arg
3528 BEST-ONLY. Don't optimize for VEC of lenght 1.
3529 (font_select_entity): Just return the value of font_sort_entites.
3530
3531 * xfaces.c (merge_face_vectors): Reflect font properties in
3532 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
3533 font_clear_prop if a face attribute doesn't change.
3534
3535 * charset.h (charset_ksc5601): Extern it.
3536
3537 * charset.c (charset_ksc5601): New variable.
3538 (Fdefine_charset_internal): Set charset_ksc5601.
3539 (init_charset_once): Initialize charset_ksc5601 to -1.
3540
3541 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3542
3543 * fileio.c (history_delete_duplicates): Remove unused declaration.
3544
3545 * callint.c (history_delete_duplicates): New declaration.
3546 (Fcall_interactively): Remove command history duplicates when
3547 history_delete_duplicates is true.
3548
3549 2009-04-14 Eli Zaretskii <eliz@gnu.org>
3550
3551 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
3552
3553 2009-04-14 Kenichi Handa <handa@m17n.org>
3554
3555 * font.c (Ffont_info): Fix docstring. Fix the second element of
3556 the returned value (bug#2949).
3557
3558 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
3559
3560 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
3561
3562 2009-04-14 Kenichi Handa <handa@m17n.org>
3563
3564 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
3565 encoding charset is ascii_compatible.
3566
3567 * charset.c (Fdefine_charset_internal): Make charset
3568 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
3569 code_offset is 0, and covers all ASCII characters.
3570
3571 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3572
3573 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
3574 (ns_string_to_pasteboard_internal):
3575 * nsmenu.m (process_dialog):
3576 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
3577 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
3578 * lisp.h (Fx_load_color_file): Declare.
3579
3580 2009-04-13 Kenichi Handa <handa@m17n.org>
3581
3582 * font.c (font_delete_unmatched): Preserve the order of list elements.
3583 (font_select_entity): Suppress the code to optimize for the same
3584 kind of fonts.
3585 (font_load_for_lface): Get a font that supports at least ASCII
3586 characters.
3587
3588 * ftfont.c (Qja, Qko): New variables.
3589 (fc_charset_table): Delete uniquifier data for iso8859-1.
3590 (ftfont_get_latin1_charset): New function.
3591 (get_adstyle_property): New function.
3592 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
3593 bitmap fonts.
3594 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
3595 Delete iso-8859-1 range from the charset of fonts whose adstyle is
3596 `ko' or `ja'.
3597 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
3598 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
3599 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
3600 property.
3601 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
3602 (syms_of_ftfont): DEFSYM Qja and Qko.
3603
3604 2009-04-09 Kenichi Handa <handa@m17n.org>
3605
3606 * charset.c (map_charset_chars): For a charset of `superset'
3607 method, fix calculation of code range.
3608
3609 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
3610 from the list of extra properties.
3611 (font_clear_prop): Be sure to delete `:name' font property.
3612
3613 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3614
3615 * dispnew.c (redraw_overlapping_rows): Fix detection of
3616 overlapping for topmost and bottommost rows.
3617
3618 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
3619
3620 2009-04-06 Jason Rumney <jasonr@gnu.org>
3621
3622 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
3623
3624 2009-04-06 Kenichi Handa <handa@m17n.org>
3625
3626 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
3627
3628 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
3629
3630 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3631
3632 * ftfont.c (ftfont_open): Fix checking of the return value of
3633 FT_Load_Char. Fix setting font->underline_thickness.
3634
3635 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
3636
3637 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
3638 (Fterminal_parameters, Fterminal_parameter)
3639 (Fset_terminal_parameter): In doc string, refer to terminal
3640 objects rather than terminal ids.
3641
3642 2009-04-04 Eli Zaretskii <eliz@gnu.org>
3643
3644 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
3645 ret_lim_data. (Bug#2867)
3646
3647 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
3648
3649 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
3650 so they don't get wider than the window, matching 2006-01-23
3651 change to the partner function in xdisp.c (Bug#2800).
3652
3653 2009-04-03 Kenichi Handa <handa@m17n.org>
3654
3655 * print.c (print_object): Make each lowest sub_char_table start a
3656 new line (Bug#2866).
3657
3658 2009-04-02 Kenichi Handa <handa@m17n.org>
3659
3660 * fontset.c (fontset_font): Record no-font when a fontset
3661 explicitly tells not to try another font-specs.
3662
3663 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
3664
3665 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
3666
3667 2009-03-30 Kenichi Handa <handa@m17n.org>
3668
3669 * fontset.c (fontset_from_font): Specify only registry in a
3670 font-spec for all characters supported by that registry.
3671
3672 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
3673 even if HAVE_M17N_FLT is not defined.
3674
3675 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
3676
3677 * ftfont.c: Conditionalize prototyping and use of
3678 ftfont_variation_glyphs.
3679
3680 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3681
3682 * frame.c (delete_frame): Work around compiler bug.
3683
3684 * editfns.c (general_insert_function): Adjust to insdel.c changes.
3685 * insdel.c (prepare_to_modify_buffer, signal_before_change):
3686 Some more EMACS_INT.
3687 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
3688
3689 * xdisp.c (dump_glyph): Fix typo.
3690
3691 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
3692 (adjust_markers_gap_motion, adjust_markers_for_delete)
3693 (adjust_markers_for_insert, adjust_point)
3694 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
3695 (make_gap, copy_text, count_size_as_multibyte, insert)
3696 (insert_and_inherit, insert_before_markers)
3697 (insert_before_markers_and_inherit, insert_1)
3698 (count_combining_before, count_combining_after, insert_1_both)
3699 (insert_from_string, insert_from_string_before_markers)
3700 (insert_from_string_1, insert_from_gap, insert_from_buffer)
3701 (insert_from_buffer_1, adjust_after_replace)
3702 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
3703 (replace_range_2, del_range, del_range_1, del_range_byte)
3704 (del_range_both, del_range_2, modify_region)
3705 (prepare_to_modify_buffer, signal_before_change)
3706 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
3707 for buffer positions and sizes.
3708 * lisp.h: Adjust prototypes accordingly.
3709
3710 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
3711 (non_regular_inserted, non_regular_nbytes, read_non_regular)
3712 (Finsert_file_contents): Use EMACS_INT for buffer positions.
3713
3714 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
3715
3716 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
3717
3718 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
3719 lines and columns so we keep the same pixel height and width.
3720
3721 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
3722 the property _NET_WM_STATE has changed.
3723 (x_handle_net_wm_state): New function to update frame parameter
3724 fullscreen.
3725 (x_term_init): Initialize atoms for _NET_WM_STATE.
3726
3727 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
3728
3729 2009-03-27 Kevin Ryde <user42@zip.com.au>
3730
3731 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
3732 Gpm_GetEvent as an error that justifies closing the filedescriptor.
3733 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
3734 (Fgpm_mouse_stop): Pass that new parameter.
3735 * termhooks.h (close_gpm): Adjust prototype.
3736
3737 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3738
3739 * lisp.h (Fx_focus_frame): Declare.
3740
3741 * callint.c (Fcall_interactively): For '^' just delegate the work to
3742 handle-shift-selection.
3743 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
3744
3745 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
3746
3747 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
3748
3749 * data.c (Qinteractive_form): New variable.
3750 (Finteractive_form): Use it.
3751
3752 * eval.c (Fcommandp): Use Qinteractive_form.
3753
3754 2009-03-24 Jason Rumney <jasonr@gnu.org>
3755
3756 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
3757 Calculate total size precisely. Decode environment variables
3758 before substituting. (Bug#38)
3759
3760 2009-03-24 Kenichi Handa <handa@m17n.org>
3761
3762 * font.c (find_font_encoding): Return Qnil for unsupported
3763 encoding (Bug#2722).
3764
3765 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
3766
3767 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
3768 that gdpy is set.
3769
3770 2009-03-22 Alan Mackenzie <acm@muc.de>
3771
3772 * callint.c (Finteractive): Clarify the doc string - even
3773 promptless elements need \n separators.
3774
3775 2009-03-22 Jason Rumney <jasonr@gnu.org>
3776
3777 * w32term.c (syms_of_w32term): Doc fix for
3778 x-use-underline-position-properties.
3779
3780 2009-03-21 Eli Zaretskii <eliz@gnu.org>
3781
3782 * w32.c (getpwuid): Change argument type to unsigned.
3783 (struct w32_id): Change type of `rid' member to unsigned.
3784 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
3785 argument ID to unsigned. All callers changed.
3786 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
3787
3788 2009-03-20 Eli Zaretskii <eliz@gnu.org>
3789
3790 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
3791 negative, produce a float value.
3792
3793 * dired.c (make_uid, make_gid): New functions.
3794 (Ffile_attributes): Use them to avoid negative UID and GID.
3795
3796 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
3797
3798 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
3799 (syms_of_keyboard) <command-hook-internal, input-method-function>:
3800 Fix typos in docstrings.
3801
3802 2009-03-19 Kenichi Handa <handa@m17n.org>
3803
3804 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
3805 changed, use font_load_for_lface to get a new font object.
3806 Call free_realized_fontset after handling ASCII font change.
3807
3808 * frame.c (x_set_font): Handle the case that ARG is a cons.
3809
3810 2009-03-19 Glenn Morris <rgm@gnu.org>
3811
3812 * fileio.c (Fsubstitute_in_file_name): Doc fix.
3813
3814 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
3815
3816 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
3817
3818 2009-03-19 Kenichi Handa <handa@m17n.org>
3819
3820 * charset.c (load_charset_map_from_file): When a mapfile can't be
3821 loaded, signal an error.
3822
3823 2009-03-18 Eli Zaretskii <eliz@gnu.org>
3824
3825 * dired.c (Ffile_attributes): Make sure UID and GID are always
3826 positive, even if the value is too large for a positive EMACS_INT.
3827 Doc fix.
3828
3829 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
3830
3831 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3832
3833 * xmenu.c (xdialog_show): Move Fredisplay call ...
3834 (Fx_popup_dialog): ... here.
3835
3836 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
3837
3838 * dired.c (file_name_completion): Disable the first optimization just
3839 installed, since it is not implemented correctly.
3840
3841 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3842
3843 * dired.c (file_name_completion): Check completion-ignored-extensions
3844 only if the entry can affect bestmatch.
3845 Stop the search early, as Ftry_completion already does.
3846
3847 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
3848
3849 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
3850
3851 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
3852
3853 * keyboard.c (parse_menu_item): Don't display remappings as menu
3854 equivalent bindings (Bug#788).
3855
3856 2009-03-15 Jason Rumney <jasonr@gnu.org>
3857
3858 * w32term.h (WM_EMACS_PAINT): New message.
3859 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3860 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3861 before passing to lisp thread. (Bug#950)
3862
3863 2009-03-14 David Reitter <david.reitter@gmail.com>
3864
3865 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3866 variable as it was never reset.
3867 (ns_term_init): Remove initialization of Lisp-settable defaults
3868 and ns_expand_space.
3869 (-setPanelFromDefaultValues): Remove ns_expand_space.
3870 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3871 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
3872 i.e. no additional spacing, similar to Carbon port.
3873
3874 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
3875 * nsfns.m (ns-popup-prefs-panel): Remove.
3876
3877 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
3878
3879 * sound.c (alsa_configure): Remove call to deprecated
3880 snd_pcm_sw_params_set_xfer_align.
3881
3882 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
3883
3884 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
3885 after clicking in a detached tool bar.
3886 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
3887
3888 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
3889
3890 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
3891 int/Lisp_Object mixup).
3892
3893 2009-03-13 Kenichi Handa <handa@m17n.org>
3894
3895 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
3896 Handle NAME nil and t correctly. Callers changed.
3897 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
3898 (set_fontset_font): Change ARG to a vector. Handle range_list in
3899 ARG correctly.
3900 (Fset_fontset_font): Fix the case that TARGET is both a script
3901 name and charset name. Adjust the arg to set_fontset_font for
3902 the above change.
3903 (fontset_from_font): Fix previous change.
3904 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
3905 entry. If FONTSET is the default fontset, don't set the extra
3906 slot of the returning char-table.
3907
3908 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
3909
3910 * nsfns.m (Fx_close_connection): Doc fix.
3911 (Fns_do_applescript): Reflow docstring.
3912 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
3913 (Fx_display_pixel_width, Fx_display_pixel_height)
3914 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
3915 Fix typos in docstrings.
3916 (Fns_set_alpha): Fix typos in error messages.
3917
3918 2009-03-12 David Reitter <david.reitter@gmail.com>
3919
3920 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
3921 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
3922 were used for such events.
3923
3924 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
3925 (toggleToolbar, performDragOperation, runHelp): Use it.
3926
3927 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
3928 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
3929
3930 2009-03-11 Kenichi Handa <handa@m17n.org>
3931
3932 * font.h (font_open_by_spec): Extern it.
3933
3934 * font.c (font_open_by_spec): New function.
3935 (font_open_by_name): Use font_open_by_spec.
3936
3937 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3938 fontset of the frame.
3939
3940 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3941 modify the default font of frames that use this fontset.
3942 (num_auto_fontsets): New variable.
3943 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3944 name. Be sure to set FONTSET_ASCII to the correct font name.
3945 (update_auto_fontset_alist): New function.
3946
3947 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
3948
3949 * makefile.w32-in: Update dependencies.
3950
3951 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3952
3953 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3954
3955 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3956
3957 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3958
3959 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
3960
3961 * lread.c (Feval_buffer): Doc fix.
3962
3963 2009-03-09 Kenichi Handa <handa@m17n.org>
3964
3965 * charset.c (Qfile_name_handler_alist): Extern it.
3966 (load_charset_map_from_file): Temporarily bind
3967 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3968
3969 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
3970
3971 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3972 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
3973
3974 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3975
3976 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3977 (x_set_window_size): Change back to calculated method of setting
3978 toolbar height under Cocoa. (Bug#2546)
3979 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3980 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3981
3982 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3983
3984 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3985 accelerator in parens under GNUstep.
3986
3987 2009-03-06 Kenichi Handa <handa@m17n.org>
3988
3989 These changes are to detect incorrect composition sequence without
3990 looking ahead the source. (Bug#2370)
3991
3992 * coding.h: Include "composite.h".
3993 (enum compisition_state): New enum.
3994 (struct compisition_status): New struct.
3995 (struct iso_2022_spec): New member cmp_status.
3996 (struct emacs_mule_spec): New struct.
3997 (struct coding_system): New members ctext_extended_segment_len and
3998 embedded_utf_8. Change the union member
3999 spec.emacs_mule_full_support to spec.emacs_mule.
4000
4001 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4002 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
4003 (MAX_ANNOTATION_LENGTH): Define to 5.
4004 (ADD_COMPOSITION_DATA): New arg nbytes.
4005 (emacs_mule_char): New arg cmp_status.
4006 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4007 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4008 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4009 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4010 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4011 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4012 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4013 (EMACS_MULE_COMPOSITION_END): New macro.
4014 (emacs_mule_finish_composition): New function.
4015 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4016 (decode_coding_emacs_mule): Avoid long looking ahead while
4017 handling composition.
4018 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4019 (ENCODE_COMPOSITION_RULE): New macro.
4020 (finish_composition): New function.
4021 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4022 (DECODE_COMPOSITION_START): New implementation.
4023 (DECODE_COMPOSITION_END): Likewise.
4024 (STORE_COMPOSITION_RULE): New macro.
4025 (decode_coding_iso_2022): Avoid long looking ahead while handling
4026 composition, CTEXT extended segment, and embedded UTF-8.
4027 (setup_coding_system): For a coding of type iso-2022, reset
4028 CODING_ISO_EXTSEGMENT_LEN (coding) and
4029 CODING_ISO_EMBEDDED_UTF_8 (coding).
4030 (get_translation): Delete arguments last_block, from_nchars,
4031 to_nchars. Callers changed.
4032 (produce_chars): Don't modify charbuf. Adjusted for the change of
4033 get_translation.
4034 (produce_composition): Adjust for the new annotation sequence.
4035 (handle_composition_annotation): Likewise.
4036 (consume_chars): Adjust for the change of get_translation.
4037
4038 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4039
4040 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
4041
4042 2009-03-05 Kenichi Handa <handa@m17n.org>
4043
4044 * font.c (font_select_entity): New function.
4045 (font_find_for_lface): Use font_select_entity to select a font.
4046
4047 * fontset.c (fontset_find_font): If a font found without
4048 restricting to the characters C doesn't support C, try to find a
4049 font with C restriction.
4050
4051 2009-03-04 Nikolaj Schumacher <me@nschum.de>
4052
4053 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
4054
4055 2009-03-04 Jason Rumney <jasonr@gnu.org>
4056
4057 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4058 characters that have already been read. (Bug#2569)
4059
4060 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4061 Log an error message if check_image_size failed.
4062 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4063 (gs_load): Mention max-image-size in size error message. (Bug#2560)
4064
4065 2009-03-02 Eli Zaretskii <eliz@gnu.org>
4066
4067 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4068 when decoding process output.
4069
4070 2009-03-01 Richard M Stallman <rms@gnu.org>
4071
4072 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4073
4074 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4075
4076 2009-02-28 Eli Zaretskii <eliz@gnu.org>
4077
4078 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4079 (decode_coding_emacs_mule, decode_coding_iso_2022)
4080 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4081 (decode_coding_raw_text, decode_coding_charset)
4082 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4083 Honor inhibit-eol-conversion. (Bug #2186)
4084
4085 2009-02-28 Jason Rumney <jasonr@gnu.org>
4086
4087 * coding.c (detect_coding_charset): If not checking latin extra,
4088 fail on characters between 0x80 and 0xA0. (Bug#2354)
4089
4090 2009-02-28 Eli Zaretskii <eliz@gnu.org>
4091
4092 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
4093 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
4094
4095 2009-02-27 Glenn Morris <rgm@gnu.org>
4096
4097 * callint.c (Finteractive): Doc fix.
4098
4099 2009-02-27 Kenichi Handa <handa@m17n.org>
4100
4101 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4102
4103 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
4104
4105 * font.c (font_style_to_value): Set value for unknown symbols to
4106 100 instead of 255.
4107 (weight_table, slant_table, width_table): Treat "unspecified" as
4108 the default value.
4109
4110 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
4111
4112 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4113
4114 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
4115
4116 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4117 error as soon as a recursive load is detected.
4118
4119 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4120
4121 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4122 before caching.
4123
4124 2009-02-24 Kenichi Handa <handa@m17n.org>
4125
4126 * fontset.c (fontset_find_font): Fix the condition for checking
4127 unavailable font.
4128
4129 2009-02-24 Glenn Morris <rgm@gnu.org>
4130
4131 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4132 whitespace that confuses documentation.
4133
4134 2009-02-23 Miles Bader <miles@gnu.org>
4135
4136 * process.c (Flist_system_processes, Fprocess_attributes)
4137 (syms_of_process): Rename `system-process-attributes' to
4138 `process-attributes'.
4139
4140 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4141
4142 * coding.h (struct coding_system): Make safe_charsets a pointer to
4143 unsigned char.
4144 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4145 being 255.
4146 (SAFE_CHARSET_P): Likewise.
4147 (setup_iso_safe_charsets): Properly setup safe_charsets.
4148 (Fdefine_coding_system_internal): Likewise.
4149 (setup_coding_system): Likewise. Remove unneeded casts.
4150 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4151 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4152 unneeded casts.
4153
4154 * insdel.c (del_range_2): Don't modify gap contents when called
4155 from decode_coding_object. (Bug#1809)
4156
4157 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
4158
4159 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4160 Qfont_object.
4161 (Ftype_of): Recognize font objects.
4162
4163 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4164
4165 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4166 moved to data.c.
4167
4168 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4169
4170 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4171 async_iconified. Based on a patch by Christian Lynbech
4172 <christian.lynbech@tieto.com>.
4173 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4174
4175 2009-02-20 Glenn Morris <rgm@gnu.org>
4176
4177 * syntax.c (Fskip_chars_forward): Fix doc typo.
4178
4179 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
4180
4181 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4182
4183 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
4184
4185 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4186
4187 2009-02-19 Kenichi Handa <handa@m17n.org>
4188
4189 * coding.c (detect_coding): Preserve coding->mode.
4190 Don't overflow coding->carryover. (Bug#2370)
4191
4192 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4193
4194 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4195
4196 2009-02-18 Kenichi Handa <handa@m17n.org>
4197
4198 * font.c (font_check_otf_features): Fix handling of `nil' element.
4199 (Ffont_spec): Describe :lang and :otf in the docstring.
4200
4201 2009-02-16 Andreas Schwab <schwab@suse.de>
4202
4203 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4204 string.
4205
4206 2009-02-16 Kenichi Handa <handa@m17n.org>
4207
4208 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
4209 (Bug#1723)
4210
4211 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
4212
4213 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
4214
4215 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4216 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4217
4218 2009-02-14 Eli Zaretskii <eliz@gnu.org>
4219
4220 * msdos.c (MAX_SCREEN_BUF): New macro.
4221 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4222 Encode the entire run of glyphs sharing the same face, instead of
4223 doing that one glyph at a time (fixes a bug with displaying
4224 double-size characters).
4225
4226 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4227
4228 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4229
4230 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4231 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
4232 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
4233
4234 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
4235 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
4236
4237 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4238
4239 * keyboard.c (adjust_point_for_property): Allow stopping between two
4240 invisible areas.
4241
4242 2009-02-12 Jason Rumney <jasonr@gnu.org>
4243
4244 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4245 (add_font_entity_to_list): Call check_face_name even when family
4246 is unspecified.
4247
4248 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4249 Release DC when finished. Use NULL window to refer to desktop.
4250 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
4251
4252 * w32font.c (add_font_entity_to_list): Fix check for substituted
4253 raster fonts. (Bug#2219)
4254
4255 2009-02-12 Kenichi Handa <handa@m17n.org>
4256
4257 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4258 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4259 (autocmp_chars): Use fast_looking_at. Don't compose more
4260 characters than MAX_COMPOSITION_COMPONENTS.
4261 (find_automatic_composition): While looking forward and backward,
4262 check static composition. Fix where to stop looking forward.
4263 (composition_adjust_point): Fix checking of static composition.
4264 (Fcomposition_get_gstring): Pay attention to
4265 MAX_COMPOSITION_COMPONENTS.
4266
4267 * lisp.h (fast_looking_at): Extern it.
4268
4269 * search.c (fast_looking_at): New function.
4270
4271 * term.c (encode_terminal_code): Adjust for the change of
4272 <struct glyph>.u.cmp.to.
4273 (append_composite_glyph): Likewise.
4274
4275 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
4276 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4277 composition.
4278 (append_composite_glyph): Adjust for the change of
4279 <strcut glyph>.u.cmp.to.
4280
4281 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
4282
4283 * casetab.c (init_casetab_once):
4284 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4285 * font.c (font_update_lface):
4286 * fontset.c (Fnew_fontset):
4287 * ftfont.c (ftfont_drive_otf):
4288 * xfont.c (xfont_open):
4289 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4290
4291 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4292
4293 * fileio.c (Fwrite_region): !NILP -> CONSP.
4294
4295 2009-02-10 Andreas Schwab <schwab@suse.de>
4296
4297 * process.c (send_process): Properly relocate pointer into data
4298 when using encoded data. (Bug#2272)
4299
4300 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4301
4302 * coding.c (detect_coding_charset): Fix previous change.
4303
4304 2009-02-08 Jason Rumney <jasonr@gnu.org>
4305
4306 * w32fns.c (w32_hide_hourglass): Handle case where frame
4307 disappeared while hourglass was displayed. (Bug #2193)
4308
4309 2009-02-07 Andreas Schwab <schwab@suse.de>
4310
4311 * unexelf.c (unexec): Fix error message.
4312
4313 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4314
4315 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
4316 when modal window is active. (Bug #2152)
4317 (applicationShouldTerminate:): Remove now-unneeded while loop
4318 around NSRunAlertPanel.
4319
4320 * nsmenu.m (popupSession): New file-global variable.
4321 (pop_down_menu): End the popupSession before closing dialog.
4322 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4323 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4324 don't query NSApp for events (just sleep instead).
4325
4326 2009-02-07 Eli Zaretskii <eliz@gnu.org>
4327
4328 * coding.c (syms_of_coding) <translation-table-for-input>:
4329 Modify doc string to discourage use for character code unification.
4330
4331 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4332
4333 * atimer.c (run_timers): Update pending_atimers.
4334
4335 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
4336
4337 * image.c (svg_load_image): Fix last change.
4338
4339 * xfns.c (Fx_create_frame): Signal an error if no font is
4340 found (Bug#2147).
4341
4342 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
4343
4344 * character.c (syms_of_character) <script-representative-chars>:
4345 Fix typo in docstring.
4346
4347 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4348
4349 * nsmenu.m (pop_down_menu): New function.
4350 (ns_popup_dialog): Call it on unwind.
4351 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4352 call timer_check() (Bug#2154).
4353 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4354 handling_signal is set.
4355 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4356
4357 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
4358
4359 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4360
4361 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4362
4363 * keyboard.c (poll_for_input_1, handle_async_input):
4364 Set handling_signal under HAVE_NS.
4365
4366 2009-02-04 Glenn Morris <rgm@gnu.org>
4367
4368 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4369
4370 2009-02-04 Kenichi Handa <handa@m17n.org>
4371
4372 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4373
4374 * charset.c (Fchar_charset): New optional arg restriction.
4375
4376 * coding.h (coding_system_charset_list): Extern it.
4377
4378 * coding.c (coding_system_charset_list): New function.
4379
4380 * composite.c: Include coding.h and termhooks.h.
4381 (composition_gstring_p): Fix for the terminal case.
4382 (composition_gstring_width): Likewise.
4383 (fill_gstring_body): Likewise.
4384 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4385 the frame.
4386 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4387 is within a composition.
4388 (Fcomposition_get_gstring): Fix the terminal case.
4389
4390 * term.c (encode_terminal_code): Fix handling of composition.
4391 (produce_composite_glyph): For static composition, get pixel_width
4392 from struct composition.
4393
4394 2009-02-02 Andreas Schwab <schwab@suse.de>
4395
4396 * unexelf.c (unexec): Handle unaligned bss offset.
4397
4398 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4399
4400 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4401 XT,w32read_socket changes to ns_read_socket.
4402
4403 * keyboard.c (handle_interrupt): Don't call
4404 quit_throw_to_read_char() under NS.
4405
4406 * blockinput.h: Remove NS-specific code.
4407
4408 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4409
4410 * dispnew.c (window_change_signal): Don't try to get the size of a
4411 suspended tty frame.
4412 * term.c (Fresume_tty): Resize if the size has changed while the
4413 tty was suspended.
4414
4415 * alloc.c (mark_stack): Properly conditionalize previous change.
4416
4417 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
4418
4419 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4420 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4421 Remove; this code is not used on Windows.
4422
4423 2009-01-30 Eli Zaretskii <eliz@gnu.org>
4424
4425 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4426 EOLs that also has stray ^M characters.
4427
4428 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
4429
4430 * atimer.c (run_timers, alarm_signal_handler):
4431 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4432 * w32inevt.c (w32_console_read_socket):
4433 * w32term.c (w32_read_socket):
4434 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4435
4436 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
4437
4438 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4439 Initialize it as a relative filename pattern.
4440 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4441 (Fcall_process_region): Simplify temp file creation using
4442 temporary-file-directory.
4443
4444 2009-01-29 Eli Zaretskii <eliz@gnu.org>
4445
4446 * msdos.c: Rename pending_signals to msdos_pending_signals.
4447 (sig_suspender, sigprocmask): Adjust.
4448
4449 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
4450
4451 * keyboard.c (pending_signals): New var.
4452 (poll_for_input, input_available_signal, init_keyboard): Set it.
4453 (process_pending_signals): New function.
4454
4455 * lisp.h (QUIT): Check pending_signals instead of
4456 interrupt_input_pending. Use process_pending_signals.
4457
4458 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
4459
4460 * process.c (wait_reading_process_output): Use process_pending_signals.
4461
4462 * sysdep.c (emacs_write): Use process_pending_signals.
4463
4464 * xterm.c (XTread_socket): Update pending_signals.
4465
4466 * w32term.c (w32_read_socket): Update pending_signals.
4467
4468 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4469
4470 2009-01-29 Kenichi Handa <handa@m17n.org>
4471
4472 * xftfont.c (xftfont_has_char): New function.
4473 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4474
4475 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4476
4477 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4478 under GNUstep.
4479 (ns_query_color): New declaration.
4480
4481 * nsterm.m (ns_confirm_quit): New variable.
4482 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4483 (EmacsApp-applicationShouldTerminate:): Use it.
4484 (EmacsPrefsController): Let user set it.
4485 (ns_query_color): New function.
4486 (ns_defined_color): Use it.
4487 (ns_initialize): Drop.
4488 (ns_term_init): Add two lines from ns_initialize(), and set
4489 input_interrupt_mode to nil.
4490
4491 * image.c (svg_load_image): Don't right-shift background RGB when
4492 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
4493
4494 2009-01-28 Kenichi Handa <handa@m17n.org>
4495
4496 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
4497 (fontset_get_font_group): Remember that no font-group is specified
4498 for C.
4499
4500 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
4501
4502 * fns.c (concat): Check for string overflow (bug#1787).
4503
4504 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4505 Quadruple undo limits (bug#1501).
4506
4507 2009-01-27 Kenichi Handa <handa@m17n.org>
4508
4509 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4510 directly use GT_Get_Char_index.
4511
4512 * xftfont.c (struct xftfont_info): New member `index'.
4513
4514 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
4515 (Ffontset_font): Adjust for the change of fontset entry.
4516
4517 2009-01-26 Kenichi Handa <handa@m17n.org>
4518
4519 * fontset.c (fontset_find_font): Fix handling of non-cons return
4520 value of fontset_get_font_group.
4521 (fontset_font): Revert last change.
4522
4523 2009-01-26 Jason Rumney <jasonr@gnu.org>
4524
4525 * w32font.c (w32font_list_internal): Return quickly if registry is
4526 unknown. Simplify final return.
4527 (add_font_entity_to_list): Break complex logic down into more
4528 manageable chunks. Move unknown registry check to
4529 w32font_list_internal.
4530
4531 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
4532
4533 Changes to remove Feval calls from GUI under NS.
4534
4535 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
4536 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
4537 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
4538
4539 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
4540 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
4541 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
4542 instead of NON_ASCII_KEYSTROKE_EVENT.
4543 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
4544 (EmacsApp-applicationShouldTerminate:): Query user.
4545 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
4546 instead of Feval.
4547
4548 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
4549
4550 * keyboard.c (kbd_buffer_get_event): Check for it.
4551 (keys_of_keyboard): Define lispy keys for
4552 ns-put/unput-working-text.
4553
4554 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
4555 versions.
4556 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
4557
4558 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
4559
4560 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
4561 setting current_buffer directly. (Bug#2044)
4562
4563 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
4564
4565 * fontset.c (fontset_font): If we know there is no font, don't do
4566 any work. (Bug#1952, bug#1990).
4567
4568 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
4569
4570 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4571
4572 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
4573 (ns_no_defaults): New declaration.
4574 (main): Use it.
4575
4576 * nsterm.h (ns_no_defaults): New declaration.
4577
4578 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
4579
4580 * nsterm.m (ns_no_defaults): New variable.
4581 (ns_initialize): Don't read defaults when ns_no_defaults.
4582 (EmacsView-readSelectionFromPasteboard:)
4583 (writeSelectionToPasteboard:types:): New stubbed-out methods for
4584 NSServicesRequests protocol. (Bug#1435)
4585 (ns_dumpglyphs_stretch): New function.
4586 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
4587 of 2008-11-15 to other terms. (Bug#615)
4588
4589 * nsimage.m (setPixmapData:): Set to ignore image DPI.
4590
4591 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
4592
4593 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
4594 call for Sparc64.
4595
4596 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4597
4598 * nsfns.m:
4599 * nsgui.h:
4600 * nsmenu.m:
4601 * nsselect.m:
4602 * nsterm.h:
4603 * nsterm.m: Remove '23' comments that indicated code added during
4604 update from emacs-20 -> emacs-23.
4605
4606 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4607
4608 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
4609 ns_alternate_modifier. (Bug#1217)
4610
4611 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
4612 Display all shortcuts, including those w/o super modifier.
4613
4614 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
4615
4616 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
4617
4618 * fileio.c (Vwrite_region_post_annotation_function)
4619 (Vwrite_region_annotation_buffers): New vars.
4620 (build_annotations_unwind): Just reset
4621 Vwrite_region_annotation_buffers.
4622 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
4623 Call write-region-post-annotation-function.
4624 (build_annotations): Add to Vwrite_region_annotation_buffers if
4625 buffer changes.
4626
4627 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4628
4629 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
4630 Tiger.
4631 * nsfns.m (ns_do_applescript):
4632 Conditionalize typeUTF16ExternalRepresentation on Tiger.
4633
4634 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4635
4636 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
4637
4638 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4639
4640 * nsmenu.m (NSMENUPROFILE): Change #if style.
4641
4642 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
4643
4644 * nsterm.m (x_set_frame_alpha): Add prototype.
4645 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
4646 handle Ctrl-tab. (Bug#1841)
4647 (ns_get_color): Use unsigned long long for scanned hex string value.
4648 (ns_term_shutdown): Abort on non SIGTERM signals.
4649 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
4650 (EmacsPrefsController-setPanelFromDefaultValues): New function.
4651 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
4652 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
4653 (ns_defined_color): Fix settings of the XColor variable fields:
4654 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
4655
4656 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
4657 DPI. (Bug#1316)
4658 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
4659 values in onTiger section.
4660
4661 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
4662
4663 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
4664 Check return value of font_spec_from_name.
4665 (Fx_list_fonts): Doc fix. (Bug#1951)
4666
4667 * font.c (font_spec_from_name): Return Qnil if font name could not
4668 be parsed.
4669 (font_parse_name): Treat a `?' character as part of an XLFD.
4670
4671 * fns.c (Fsubstring): Doc fix.
4672
4673 2009-01-19 Kenichi Handa <handa@m17n.org>
4674
4675 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
4676 (ftfont_list): Likewise.
4677
4678 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
4679
4680 * dbusbind.c (Fdbus_register_signal):
4681 * process.c (conv_sockaddr_to_lisp):
4682 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
4683
4684 * callproc.c (Fgetenv_internal): Doc fix.
4685
4686 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
4687
4688 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
4689 it is not even used.
4690
4691 2009-01-16 Glenn Morris <rgm@gnu.org>
4692
4693 * font.c (Ffont_variation_glyphs): Silence compiler.
4694
4695 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
4696
4697 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
4698 Reported by David Robinow <drobinow@gmail.com>.
4699
4700 2009-01-15 Kenichi Handa <handa@m17n.org>
4701
4702 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4703
4704 2009-01-14 Jason Rumney <jasonr@gnu.org>
4705
4706 * frame.c (x_set_font): Always store a font to the font parameter,
4707 never a fontset. (Bug#1562)
4708
4709 2009-01-14 Kenichi Handa <handa@m17n.org>
4710
4711 * coding.c (TWO_MORE_BYTES): New macro.
4712 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
4713
4714 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
4715
4716 * font.c (font_clear_prop): If clearing the family, clear the font
4717 width index too.
4718
4719 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4720
4721 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
4722
4723 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
4724 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
4725 functions, use sizeof.
4726
4727 2009-01-12 Martin Rudalics <rudalics@gmx.at>
4728
4729 * keyboard.c (read_char): Fix case where last_nonmenu_event
4730 returned a bad value with submenus. (Bug#447)
4731
4732 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
4733
4734 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
4735 family, clear the font width index too.
4736
4737 2009-01-11 Jason Rumney <jasonr@gnu.org>
4738
4739 * keyboard.c (cmd_error_internal): Exit when errors occur before
4740 frame creation and not in daemon mode. (Bug#1836)
4741
4742 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
4743
4744 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
4745 of a display vector, backtrack.
4746 (try_window_reusing_current_matrix): Check glyph type before
4747 referencing charpos member.
4748
4749 2009-01-10 Eli Zaretskii <eliz@gnu.org>
4750
4751 Fix Bug #876:
4752
4753 * coding.c (inhibit_null_byte_detection): New variable.
4754 (detect_coding, detect_coding_system): Don't pay attention to null
4755 bytes if inhibit_null_byte_detection is non-zero.
4756 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
4757 <inhibit-iso-escape-detection>: Doc fix.
4758
4759 2009-01-09 Jason Rumney <jasonr@gnu.org>
4760
4761 * w32font.c (add_font_entity_to_list): Don't report unknown
4762 Windows charset as any unrecognized registry. (Bug#1548)
4763 Only report Unicode Plane 2 fonts as unicode-sip.
4764
4765 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
4766
4767 * xfaces.c (Fx_font_family_list): Delete function.
4768 Move compatibility version to faces.el.
4769
4770 * font.c (Ffont_family_list): Return a list of strings, not symbols.
4771
4772 2009-01-09 Martin Rudalics <rudalics@gmx.at>
4773
4774 * frame.c (x_set_frame_parameters): Remember requested value for
4775 fullscreen before it's reset by the parameter handler.
4776
4777 2009-01-09 Glenn Morris <rgm@gnu.org>
4778
4779 * keyboard.c (last_command_char): For clarity, rename to...
4780 (last_command_event): ... and update all users.
4781 (last_input_char): For clarity, rename to...
4782 (last_input_event): ... and update all users.
4783 (last-command-char, last-input-char): Move to subr.el as aliases.
4784 * cmds.c, commands.h: Update for last_command_char rename.
4785
4786 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
4787
4788 * font.c (font_open_for_lface): Handle unspecified height attribute.
4789
4790 2009-01-08 Jason Rumney <jasonr@gnu.org>
4791
4792 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
4793 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
4794 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
4795 Don't declare.
4796 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
4797 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
4798
4799 2009-01-07 Kenichi Handa <handa@m17n.org>
4800
4801 * fileio.c (Finsert_file_contents): In the case of replace,
4802 remember the coding system used for decoding in
4803 coding_system (Bug#1039).
4804
4805 * coding.c (decode_coding_utf_8): Check byte_after_cr before
4806 breaking the loop. (Bug#870)
4807 (decode_coding_utf_16, decode_coding_emacs_mule)
4808 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4809 (decode_coding_charset): Likewise.
4810
4811 2009-01-05 Martin Rudalics <rudalics@gmx.at>
4812
4813 * frame.c (x_set_frame_parameters): Make sure height (width) get
4814 applied when fullwidth (fullheight) is set. (Bug#1522)
4815
4816 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
4817
4818 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
4819 (utc_base): Declare as ULONGLONG, not long double.
4820 (convert_time_raw): Delete.
4821 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
4822 (initialize_utc_base): New function.
4823 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
4824 (convert_from_time_t): Use initialize_utc_base; compute result with
4825 64-bit arithmetic.
4826 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
4827
4828 2009-01-03 Eli Zaretskii <eliz@gnu.org>
4829
4830 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
4831 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
4832 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
4833 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
4834 [!subprocesses]: Define.
4835 (syms_of_process) [!subprocesses]: Intern and staticpro them.
4836 (Flist_system_processes, Fsystem_process_attributes)
4837 [!subprocesses]: Call list_system_processes and
4838 system_process_attributes instead of returning Qnil.
4839
4840 * dosfns.c (system_process_attributes, list_system_processes):
4841 New functions.
4842
4843 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4844
4845 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4846 Don't use the default (no-op) implementation.
4847
4848 2009-01-03 Jason Rumney <jasonr@gnu.org>
4849
4850 * keyboard.c (parse_modifiers_uncached): Wheel events are
4851 clicks (bug#687).
4852
4853 * w32term.c (x_query_colors, x_query_color): New functions.
4854
4855 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4856 (svg_load_image): Cast returned pointers from dynamically loaded
4857 functions. Eliminate W32 specific code.
4858
4859 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4860
4861 * nsfns.m (x_set_foreground_color, x_set_background_color)
4862 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4863 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4864 x_ prefix instead of ns_. Update references.
4865 (syms_of_nsfns): Add a FIXME comment.
4866
4867 * nsterm.m (x_set_cursor_type): New prototype.
4868 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4869
4870 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4871 for Solaris instead of incorrectly providing Qutime and Qcutime.
4872
4873 2009-01-02 Eli Zaretskii <eliz@gnu.org>
4874
4875 * w32.c (process_times): Compute sum of utime and stime.
4876 (system_process_attributes): Add Qtime to the alist.
4877
4878 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
4879 and add them to the alist.
4880
4881 * process.c (top level) <Qtime, Qctime>: New variables.
4882 (syms_of_process): staticpro them.
4883 (Fsystem_process_attributes): Add their documentation to the doc
4884 string.
4885
4886 * process.h: Declare Qtime and Qctime.
4887
4888 2009-01-02 Jason Rumney <jasonr@gnu.org>
4889
4890 * image.c (Qgobject): New symbol.
4891 (syms_of_image): Initialize it.
4892 (init_svg_functions): Load some functions from gobject library.
4893
4894 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
4895
4896 * frame.c (make_terminal_frame): Remove redundant code and useless
4897 block.
4898
4899 2009-01-01 Andreas Schwab <schwab@suse.de>
4900
4901 * process.c (conv_sockaddr_to_lisp): Add workaround for
4902 getsockname bug on BSD.
4903
4904 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
4905
4906 * xfns.c (x_create_tip_frame): Set border width of the X window.
4907
4908 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
4909
4910 2009-01-01 Jason Rumney <jasonr@gnu.org>
4911
4912 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
4913 Don't block input, as per earlier xterm.c changes.
4914
4915 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
4916
4917 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
4918 (ns_appkit_version_int): New function.
4919 (x-server-version): Use ns_appkit_version_int and follow 21+
4920 convention of returning 3 integers.
4921
4922 2008-12-30 Kenichi Handa <handa@m17n.org>
4923
4924 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
4925 (CHAR_SURROGATE_PAIR_P): New macro.
4926
4927 * font.h (struct font_driver): New member get_variation_glyphs.
4928
4929 * font.c (font_range): Don't require a font for a variation selector.
4930 (Ffont_variation_glyphs): New function.
4931 (syms_of_font): Defsubr it.
4932
4933 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4934 ftfont_variation_glyphs.
4935 (setup_otf_gstring): New function.
4936 (ftfont_drive_otf): Use it.
4937 (ftfont_shape_by_flt): Handle variation selector.
4938 (ftfont_variation_glyphs): New function.
4939
4940 2008-12-30 Martin Rudalics <rudalics@gmx.at>
4941
4942 * frame.c (Vemacs_iconified): Remove.
4943
4944 2008-12-30 Jason Rumney <jasonr@gnu.org>
4945
4946 * frame.c (store_frame_param, x_get_arg): Enable newer code on
4947 WINDOWSNT too, as related changes have already been synced. (Bug#117)
4948
4949 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
4950
4951 * indent.c (Fvertical_motion): Don't advance iterator if we have
4952 reseated to the desired position.
4953
4954 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4955 checking for pos match.
4956
4957 2008-12-30 Kenichi Handa <handa@m17n.org>
4958
4959 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4960 just get the low 8-bit of the code.
4961
4962 * font.c (font_intern_prop): Validate str as multibyte.
4963
4964 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4965
4966 * dispextern.h (struct face): Move lface and hash from the middle
4967 of bitfields.
4968
4969 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4970
4971 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4972
4973 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4974 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4975 instead of intervals.h.
4976
4977 2008-12-26 Andreas Schwab <schwab@suse.de>
4978
4979 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4980 cons.
4981
4982 2008-12-26 Martin Rudalics <rudalics@gmx.at>
4983
4984 * textprop.c (Qminibuffer_prompt): New variable.
4985 (syms_of_textprop): Initialize it.
4986 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4987 in minibuffer-prompt face. (Bug#1662)
4988
4989 2008-12-25 Jason Rumney <jasonr@gnu.org>
4990
4991 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4992
4993 2008-12-24 Jason Rumney <jasonr@gnu.org>
4994
4995 * ralloc.c (r_alloc_reset_variable): New function.
4996
4997 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
4998 record of what points where. (Bug#716)
4999
5000 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5001
5002 * minibuf.c (read_minibuf): Follow the non-interactive case when
5003 running as a daemon, before detaching.
5004
5005 2008-12-22 Andreas Schwab <schwab@suse.de>
5006
5007 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5008 * gtkutil.c (free_widget_value): Use xfree instead of free.
5009
5010 2008-12-22 Martin Rudalics <rudalics@gmx.at>
5011
5012 * frame.c (delete_frame): New function derived from
5013 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5014 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5015 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5016 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5017 * frame.h: Extern delete_frame.
5018 * window.c (window_loop):
5019 * terminal.c (delete_terminal):
5020 * xterm.c (x_connection_closed):
5021 * xfns.c (Fx_hide_tip):
5022 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
5023
5024 2008-12-21 Jason Rumney <jasonr@gnu.org>
5025
5026 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5027 when character maps to .notdef character.
5028
5029 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5030
5031 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5032
5033 2008-12-20 Jason Rumney <jasonr@gnu.org>
5034
5035 * frame.c (Fmake_terminal_frame): Raise an error when called from
5036 a graphical frame on Windows. (Bug#1325)
5037
5038 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5039
5040 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5041
5042 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
5043
5044 * minibuf.c (Fread_buffer): Doc fix.
5045
5046 2008-12-20 Jason Rumney <jasonr@gnu.org>
5047
5048 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
5049 server name in UNC paths. (Bug#719)
5050
5051 * coding.c (decode_coding): Clear chars_at_source flag when using
5052 charbuf. (Bug#1035)
5053
5054 2008-12-19 Daniel Engeler <engeler@gmail.com>
5055
5056 * sysdep.c (serial_configure): Fix typo.
5057
5058 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5059
5060 * sysdep.c: Include alloca.h.
5061 (system_process_attributes): Add implementation for Solaris.
5062
5063 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
5064
5065 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5066
5067 Reorganize implementation of Flist_system_processes and
5068 Fsystem_process_attributes. No functional changes.
5069 * process.c: Don't #include pwd.h, grp.h and limits.h.
5070 (Flist_system_processes): Just call list_system_processes.
5071 (Fsystem_process_attributes): Just call system_process_attributes.
5072 (procfs_list_system_processes, time_from_jiffies)
5073 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5074 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5075
5076 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5077 (list_system_processes): Rename from
5078 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5079 Provide a do nothing implementation.
5080 (system_process_attributes): Rename from
5081 procfs_list_system_processes.
5082 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5083 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
5084
5085 * w32.c (list_system_processes): Rename from
5086 w32_list_system_processes.
5087 (system_process_attributes): Rename from
5088 w32_system_process_attributes.
5089
5090 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5091
5092 * process.h (w32_list_system_processes)
5093 (w32_system_process_attributes): Remove.
5094 (list_system_processes, system_process_attributes):
5095 New prototypes.
5096
5097 2008-12-19 Kenichi Handa <handa@m17n.org>
5098
5099 * xfont.c (xfont_decode_coding_xlfd): New function.
5100 (xfont_encode_coding_xlfd): New function.
5101 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5102 (xfont_list): Decode and encode XLFD by iso-8859-1.
5103 (xfont_match): Likewise.
5104 (xfont_list_family): Likewise.
5105 (xfont_open): Likewise.
5106
5107 * ftfont.c (ftfont_open): Generate a multibyte string if given
5108 names are utf-8.
5109
5110 * xftfont.c (xftfont_open): Generate a multibyte string if given
5111 names are utf-8.
5112
5113 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5114
5115 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5116 changed.
5117 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5118 clicked on a detached tool bar button.
5119
5120 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5121
5122 * emacs.c (main): Print and error and exit when no data is read
5123 from the pipe.
5124
5125 2008-12-17 Jason Rumney <jasonr@gnu.org>
5126
5127 * w32font.c (w32font_has_char): Always return -1.
5128
5129 2008-12-16 Kenichi Handa <handa@m17n.org>
5130
5131 * font.c (font_open_entity): Fix previous change.
5132
5133 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5134
5135 * process.c: Include <limits.h>.
5136
5137 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
5138
5139 * font.c (font_update_drivers): Fix mistake in reconstructing the
5140 driver list.
5141
5142 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
5143
5144 * font.c (font_clear_cache): Fix format of font cache data.
5145
5146 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
5147
5148 * xftfont.c (xftfont_open): Free Xft font pattern if
5149 XftFontOpenPattern fails.
5150
5151 * xterm.c (x_free_frame_resources): Remove extraneous call to
5152 free_frame_faces.
5153
5154 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
5155
5156 * xterm.c (x_delete_display): Move xim_close_dpy call to
5157 x_delete_terminal.
5158 (x_delete_terminal): Call xim_close_dpy.
5159
5160 2008-12-13 Jason Rumney <jasonr@gnu.org>
5161
5162 * w32font.c (intern_font_name): New function.
5163 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5164 (w32font_open_internal, Fx_select_font): Decode font name.
5165 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5166
5167 * w32font.h (intern_font_name): Declare new function.
5168
5169 * w32uniscribe.c (add_opentype_font_name_to_list):
5170 Use intern_font_name.
5171
5172 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
5173
5174 * frame.c (Fdelete_frame): Call free_font_driver_list.
5175
5176 * font.c (free_font_driver_list): Implement missing function.
5177
5178 * w32term.c (w32_term_init): Don't initialize the image cache
5179 here; it will be done in init_frame_faces.
5180
5181 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5182 (struct x_display_info): Remove unused member null_pixel. New
5183 member xim_callback_data.
5184
5185 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5186 (xim_initialize): Save pointer to callback function data.
5187 (xim_close_dpy): Free callback function data. Call XCloseIM,
5188 reverting 2008-11-04 change by David Smith.
5189 (x_term_init): Don't initialize the image cache here; it will be
5190 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5191 (x_delete_display): Free x_dnd_atoms member.
5192
5193 2008-12-13 Kenichi Handa <handa@m17n.org>
5194
5195 * font.c (font_rescale_ratio): Moved from xfaces.c.
5196 Argument type changed. Handle a font-spec too.
5197 (font_score): Check Vface_font_rescale_alist.
5198 (font_open_entity): Likewise. (Bug#1547)
5199
5200 * xfaces.c (font_rescale_ratio): Moved to font.c.
5201
5202 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
5203
5204 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5205
5206 2008-12-12 Jason Rumney <jasonr@gnu.org>
5207
5208 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5209 Vwindow_system_version to the real w32 major version.
5210
5211 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5212
5213 * term.c (init_tty): Move setting the terminal name before the
5214 potential user: maybe_fatal.
5215
5216 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
5217
5218 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5219 all callers changed. Call free_frame_faces to free the face cache.
5220
5221 2008-12-11 Jason Rumney <jasonr@gnu.org>
5222
5223 * w32font.c (fill_in_logfont): Don't assume symbol script means
5224 SYMBOL_CHARSET. (Bug#547)
5225
5226 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
5227 size for surrogates. (Bug#1096, bug#872)
5228
5229 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
5230
5231 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5232
5233 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
5234
5235 * process.c (Fsystem_process_attributes, syms_of_process):
5236 Fix typo in name of Ssystem_process_attributes.
5237 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5238
5239 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
5240
5241 * syntax.c (Fmodify_syntax_entry): Doc fix.
5242
5243 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
5244
5245 * font.c (Ffont_spec): Move usage to end of docstring.
5246
5247 2008-12-10 Jason Rumney <jasonr@gnu.org>
5248
5249 * w32font.c (Qcham): New symbol.
5250 (font_supported_scripts): Add cham, and comments for other new
5251 scripts in bitfield from OpenType spec.
5252 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5253 contain characters beyond the bmp.
5254
5255 2008-12-10 Kenichi Handa <handa@m17n.org>
5256
5257 * ftfont.c (fc_charset_table): Add "unicode-sip".
5258 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
5259 Qunicode_sip.
5260
5261 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
5262
5263 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5264 (Fcoding_system_put): Use QCdefault_char.
5265 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5266
5267 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
5268
5269 * xftfont.c (syms_of_xftfont): Fix typo.
5270
5271 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
5272
5273 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5274
5275 * emacs.c (main): Close daemon_pipe on exec.
5276
5277 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
5278
5279 * termchar.h (struct tty): New members termcap_term_buffer and
5280 termcap_strings_buffer.
5281
5282 * term.c (encode_terminal_code): Free any previous memory blocks
5283 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
5284 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5285 All callers changed.
5286 (init_tty): Store termcap data and string buffers in new struct
5287 tty members termcap_term_buffer and termcap_strings_buffer.
5288 (delete_tty): Free them.
5289 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
5290
5291 2008-12-07 Seiji Zenitani <zenitani@mac.com>
5292
5293 * nsfns.m (ns_set_background_color): Remove code duplication.
5294 It was a substitute for face-transparency on OS X 10.3.
5295
5296 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
5297
5298 * coding.c (make_conversion_work_buffer): Disable buffer
5299 modification hooks in the work buffer.
5300
5301 2008-12-05 Eli Zaretskii <eliz@gnu.org>
5302
5303 * process.c (procfs_system_process_attributes): If `nread' has a
5304 negative value, assign zero to it.
5305
5306 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
5307
5308 * eval.c (Vdebug_on_error): Doc fix.
5309
5310 2008-12-05 Kenichi Handa <handa@m17n.org>
5311
5312 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5313 second character is a combining character.
5314
5315 2008-12-05 Eli Zaretskii <eliz@gnu.org>
5316
5317 * process.c (procfs_system_process_attributes): Don't use cmd,
5318 cmdsize, and q without initializing them first.
5319
5320 2008-12-04 Jason Rumney <jasonr@gnu.org>
5321
5322 * w32font.c (w32font_draw): Initialize orig_clip before getting
5323 it, and delete it when finished.
5324
5325 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5326
5327 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5328 case when running as a daemon before detaching.
5329
5330 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
5331
5332 * w32.c (init_environment): Don't unload library shell32.dll.
5333
5334 2008-12-03 Kenichi Handa <handa@m17n.org>
5335
5336 * font.c (font_at): Set `multibyte' at first.
5337
5338 * coding.c (decode_coding_charset): Check type of an element of
5339 vector VALIDS.
5340 (encode_coding_emacs_mule): Be sure to set `code'.
5341
5342 * fontset.c (face_for_char): Handle invalid charset property correctly.
5343 (font_for_char): Likewise.
5344
5345 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
5346
5347 * font.c (Fopen_font): Compute pixel size correctly.
5348 (font_update_lface): Handle fonts with corrupted size specs,
5349 i.e. non-int and non-float.
5350
5351 * ftfont.c (ftfont_match): Initialize entity variable.
5352 (ftfont_resolve_generic_family): Avoid using uninitialized var.
5353 (ftfont_list_family): Initialize list var earlier.
5354
5355 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5356
5357 * xterm.c (x_draw_glyph_string): Fall back on
5358 underline_minimum_offset for underline position.
5359
5360 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5361
5362 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5363
5364 * character.c (c_string_width): Specify the type for LEN.
5365
5366 2008-12-03 Kenichi Handa <handa@m17n.org>
5367
5368 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
5369 (decode_coding_utf_8): Likewise.
5370 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
5371 (produce_chars): Initialize consumed_chars to 0.
5372
5373 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
5374
5375 * keyboard.c (make_lispy_position): Only use PT if the selected
5376 window is current.
5377
5378 2008-12-02 Andreas Schwab <schwab@suse.de>
5379
5380 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5381
5382 * doprnt.c (doprnt1): Fix size of charbuf.
5383
5384 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
5385
5386 * keyboard.c (timer_check): Revert last change.
5387
5388 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
5389
5390 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5391
5392 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
5393
5394 * makefile.w32-in: Update dependencies.
5395 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5396
5397 2008-12-01 Andreas Schwab <schwab@suse.de>
5398
5399 * font.c (register_font_driver): Use xmalloc.
5400 (font_put_frame_data): Likewise.
5401
5402 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
5403
5404 * xfaces.c (realize_x_face): Make abort condition clearer.
5405
5406 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5407
5408 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
5409
5410 * keyboard.c (timer_check): After a timer runs, ensure that the
5411 selected window's buffer is current.
5412
5413 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
5414
5415 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5416 It was accidentally restored by the Unicode merge.
5417
5418 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5419
5420 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
5421
5422 * w32proc.c: Include "coding.h".
5423 (Fw32_short_file_name): Encode filename passed to Windows API.
5424 (Fw32_long_file_name): Encode filename passed to Windows API and
5425 decode back the result. (Bug#1433)
5426
5427 2008-11-29 Kenichi Handa <handa@m17n.org>
5428
5429 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5430 not before accessing it.
5431
5432 * charset.c (Fdefine_charset_internal): After calculating
5433 min_char, max_char, and fastmap, copy the charset structure again.
5434 (encode_char): Fix the previous change.
5435
5436 2008-11-28 Seiji Zenitani <zenitani@mac.com>
5437
5438 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5439
5440 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5441
5442 * nsterm.m (x_set_frame_alpha): New function.
5443
5444 2008-11-27 Eli Zaretskii <eliz@gnu.org>
5445
5446 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5447
5448 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
5449
5450 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5451 pointer to check_face_name.
5452
5453 2008-11-27 Kenichi Handa <handa@m17n.org>
5454
5455 * category.h (SET_CATEGORY_SET): Call set_category_set.
5456 (set_category_set): Extern it.
5457
5458 * category.c (hash_get_category_set): New function.
5459 (Fmodify_category_entry): Adjusted for the change of
5460 char_table_ref_and_range. Call hash_get_category_set to get a
5461 category set to store in the table.
5462
5463 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5464 Funify_charset.
5465
5466 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
5467 (DECODE_CHAR): Check if the decoder vector is ready.
5468 (ENCODE_CHAR): Check if the encoder char-table is ready.
5469 (maybe_unify_char): Extern it.
5470
5471 * charset.c (Vchar_unified_charset_table): Delete it.
5472 (inhibit_load_charset_map): New variable.
5473 (temp_charset_work): New variable.
5474 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5475 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5476 New macros.
5477 (load_charset_map): Meaning of control_flag changed. If
5478 inhibit_load_charset_map is nonzero, setup a table in
5479 temp_charset_work.
5480 (load_charset): New argument control_flag.
5481 (map_charset_for_dump): New function.
5482 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5483 map_charset_for_dump.
5484 (Fdefine_charset_internal): If the charset method is MAP, load
5485 mapping tables by calling load_charset.
5486 (Funify_charset): Don't load a mapping table but directly set
5487 Vchar_unify_table.
5488 (maybe_unify_char): New function.
5489 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5490 Handle the case of inhibit_load_charset_map being nonzero.
5491 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5492 Handle the case of inhibit_load_charset_map being nonzero.
5493 (Fclear_charset_maps): Just free temp_charset_work.
5494 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5495 variable.
5496
5497 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5498 change of char_table_ref_and_range.
5499 (char_table_ref_and_range): Change the meaning of argument FROM
5500 and TO. Now the caller must provide initial values for *FROM
5501 and *TO.
5502
5503 * fontset.c (fontset_add): Adjusted for the change of
5504 char_table_ref_and_range.
5505 (fontset_get_font_group): Likewise.
5506 (Ffontset_info): Likewise.
5507
5508 * keymap.c (describe_vector): Adjusted for the change of
5509 char_table_ref_and_range. For char-table, put boundary between
5510 non-ASCII and 8-bit characters.
5511
5512 * print.c (print_object): For bool-vector, delete unnecessary
5513 check of ASCII_BYTE_P.
5514
5515 2008-11-26 Jason Rumney <jasonr@gnu.org>
5516
5517 * w32font.c (w32font_open_internal): Don't include external
5518 leading in font height. (Bug#879)
5519
5520 2008-11-26 Glenn Morris <rgm@gnu.org>
5521
5522 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5523 redefinition with ifdef. (Bug#1383)
5524
5525 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5526
5527 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
5528
5529 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5530
5531 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
5532 New EmacsView methods.
5533 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
5534 Fixes bug #1048,1357,1414.
5535
5536 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5537
5538 Fix bug #1362.
5539 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
5540 is not an indexed color.
5541 * nsterm.m (free_indexed_color): Add argument checking.
5542 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
5543
5544 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
5545
5546 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
5547 Document confirm-after-completion value for
5548 minibuffer-completion-confirm.
5549
5550 2008-11-24 Jason Rumney <jasonr@gnu.org>
5551
5552 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
5553 warning.
5554
5555 2008-11-23 Jason Rumney <jasonr@gnu.org>
5556
5557 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
5558 restored before returning.
5559
5560 * w32font.c (check_face_name): New function.
5561 (add_font_entity_to_list): Use it to filter out common substituted
5562 fonts. (Bug#642)
5563
5564 2008-11-22 Martin Rudalics <rudalics@gmx.at>
5565
5566 * buffer.c (Fswitch_to_buffer): Reword and mention new option
5567 confirm-nonexistent-file-or-buffer in doc-string.
5568
5569 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
5570
5571 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
5572 Fix copy/paste typo. Add checks.
5573
5574 2008-11-21 Kenichi Handa <handa@m17n.org>
5575
5576 * coding.c (detect_coding_iso_2022): Reject invalid composition
5577 sequence.
5578 (DECODE_COMPOSITION_START): If the current source is the last
5579 block, and the current composition doesn't end, regard this
5580 sequence as invalid.
5581 (decode_coding_iso_2022): Handle invalid composition sequence.
5582
5583 2008-11-20 Martin Rudalics <rudalics@gmx.at>
5584
5585 * window.c (coordinates_in_window): Don't return
5586 ON_VERTICAL_BORDER for the rightmost position of a mode/header
5587 line when the window is not the rightmost one. (Bug#1372)
5588
5589 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
5590
5591 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
5592
5593 2008-11-15 Eli Zaretskii <eliz@gnu.org>
5594
5595 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
5596 and bright_bg if noninteractive is non-zero.
5597
5598 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5599
5600 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
5601 x_draw_glyph_string_background.
5602
5603 * w32term.c (x_draw_glyph_string): Likewise.
5604
5605 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
5606
5607 * xterm.c (x_draw_glyph_string): Stop drawing the background of
5608 the next glyph string once past the overhang width.
5609
5610 * nsterm.m (ns_draw_glyph_string): Likewise.
5611
5612 * w32term.c (x_draw_glyph_string): Likewise.
5613
5614 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
5615
5616 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
5617 double file close.
5618
5619 2008-11-14 Martin Rudalics <rudalics@gmx.at>
5620
5621 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
5622 dedicated status of window before attempting to display another
5623 buffer in it.
5624
5625 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
5626
5627 * msdos.c (Fmsdos_long_file_names):
5628 (syms_of_msdos) <dos-unsupported-char-glyph>:
5629 * dosfns.c (Fint86): Fix typos in docstrings.
5630
5631 2008-11-14 Eli Zaretskii <eliz@gnu.org>
5632
5633 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
5634
5635 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
5636
5637 * puresize.h (BASE_PURESIZE): Increase to 1260000.
5638
5639 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
5640
5641 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
5642
5643 * frame.h: Negative alpha means "don't touch".
5644
5645 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
5646
5647 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
5648
5649 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
5650
5651 * hftctl.c:
5652 * chpdef.h:
5653 * acldef.h: Remove files used only for systems no longer supported.
5654
5655 * Makefile.in: Fix .o alphabetical ordering.
5656 (hftctl.o): Remove dependency, file removed.
5657 (keymap.o, print.o): Depend on charset.h.
5658
5659 2008-11-10 Kenichi Handa <handa@m17n.org>
5660
5661 * character.c (Fget_byte): Fix and make it faster for unibyte target.
5662
5663 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
5664
5665 * dired.c (file_name_completion): If completion_ignore_case is
5666 enabled, ignore case when checking completion-regexp-list.
5667
5668 2008-11-08 Eli Zaretskii <eliz@gnu.org>
5669
5670 * vm-limit.c (get_lim_data): Fix last change.
5671
5672 2008-11-08 Kenichi Handa <handa@m17n.org>
5673
5674 * character.c (Fget_byte): New function.
5675 (syms_of_character): Defsubr Fget_byte.
5676
5677 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
5678
5679 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
5680 cursor position is valid after scrolling.
5681
5682 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
5683
5684 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
5685
5686 2008-11-06 Glenn Morris <rgm@gnu.org>
5687
5688 * xterm.c (handle_one_xevent): Don't let popup menus cause
5689 mouse-autoselect-window related window switching. (Bug#1261)
5690
5691 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
5692
5693 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
5694
5695 2008-11-04 Andreas Schwab <schwab@suse.de>
5696
5697 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
5698
5699 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
5700
5701 * xfns.c (Fx_wm_set_size_hint): New function.
5702
5703 2008-11-03 Martin Rudalics <rudalics@gmx.at>
5704
5705 * textprop.c (Fprevious_single_char_property_change): Return 0
5706 when there's no change in a string. (Bug#1301)
5707
5708 2008-11-02 Martin Rudalics <rudalics@gmx.at>
5709
5710 * frame.c (do_switch_frame): New argument NORECORD passed to
5711 Fselect_window.
5712 (Fselect_frame): New argument NORECORD passed to
5713 do_switch_frame.
5714 (Fset_frame_selected_window): New argument NORECORD passed to
5715 Fselect_frame.
5716 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
5717 in call of do_switch_frame.
5718 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
5719 Handle NORECORD argument in call of Fselect_frame.
5720 * lisp.h (do_switch_frame, Fselect_frame)
5721 (Fset_frame_selected_window): Adjust declarations.
5722 * window.c (select_frame_norecord): New function.
5723 (run_window_configuration_change_hook): Use it and call
5724 Fselect_frame with NORECORD set.
5725 (Fselect_window): Pass NORECORD to Fselect_frame.
5726 (Fset_window_configuration): Handle NORECORD argument in call of
5727 do_switch_frame.
5728 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
5729 Fset_frame_selected_window.
5730 * keyboard.c (command_loop_1): Handle NORECORD in call of
5731 Fselect_frame (currently ifdefd).
5732
5733 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
5734
5735 * emacs.c (USAGE2): Untabify.
5736
5737 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
5738
5739 * composite.c (fill_gstring_header): Fix copy/paste typo.
5740
5741 2008-10-31 Martin Rudalics <rudalics@gmx.at>
5742
5743 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
5744 (Fother_window): Rename argument and rewrite doc-string.
5745 (select_window_norecord): Fix return value. (Bug#1276)
5746
5747 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
5748
5749 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
5750 new frames overriding foreground for tooltips. Based on similar patch
5751 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
5752
5753 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
5754
5755 * emacs.c (Fdaemon_initialized): Initialize nfd.
5756
5757 2008-10-29 Martin Rudalics <rudalics@gmx.at>
5758
5759 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
5760 (Fwindow_text_height): Clarify doc-strings.
5761 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
5762 doc-string of window-scroll-functions.
5763
5764 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
5765
5766 * category.c (syms_of_category): Fix typo in docstring.
5767
5768 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
5769
5770 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
5771 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
5772 Fix typos in docstrings.
5773
5774 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
5775
5776 * emacs.c (daemon_pipe): Make non-static.
5777 (IS_DAEMON): Move definition ...
5778 * lisp.h (IS_DAEMON): ... here.
5779 (daemon_pipe): Declare.
5780 (is_daemon): Remove.
5781 * dispnew.c (init_display): Use IS_DAEMON.
5782
5783 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
5784
5785 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
5786 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
5787
5788 * emacs.c (is_daemon): Remove.
5789 (main): Don't set is_daemon.
5790 (IS_DAEMON): New macro.
5791 (Fdaemonp, Fdaemon_initialized): Use it.
5792 (Fdaemon_initialized): Write a char into the pipe to make sure the
5793 parent exits.
5794 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
5795
5796 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
5797
5798 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
5799 over-sized glyph, draw it with the default glyph width.
5800
5801 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5802 glyph, draw it with the default glyph width.
5803
5804 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5805 glyph, draw it with the default glyph width.
5806
5807 * xdisp.c (try_scrolling): When computing the distance from the
5808 scroll margin to PT, try moving some distance past the window
5809 bottom before giving up.
5810
5811 2008-10-27 Martin Rudalics <rudalics@gmx.at>
5812
5813 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
5814 (Fset_window_buffer): Explain in doc-string that a window can be
5815 "strongly" dedicated to its buffer.
5816
5817 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
5818
5819 * emacs.c (daemon_name): New variable.
5820 (main): Deal with --daemon=SERVER_NAME.
5821 (Fdaemonp): Return a name if one was passed to --daemon.
5822
5823 2008-10-26 Romain Francoise <romain@orebokech.com>
5824
5825 * emacs.c (daemon_pipe): New variable.
5826 (main): Create a pipe before forking, make the parent exit only after
5827 the child has closed its end of the pipe. Move closing the
5828 descriptors ...
5829 (Fdaemon_initialized): ... here. New function.
5830
5831 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
5832
5833 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
5834 the previous unoptimized table.
5835
5836 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
5837 the distinction between non-nil and non-t value of `dedicated'.
5838
5839 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
5840
5841 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
5842 read_char_minibuf_menu_text is large enough to hold the menu string.
5843
5844 2008-10-25 Martin Rudalics <rudalics@gmx.at>
5845
5846 * window.c (Fget_buffer_window, Fdelete_windows_on)
5847 (Freplace_buffer_in_windows): Make buffer argument optional and
5848 rename to buffer_or_name.
5849
5850 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
5851
5852 * xdisp.c (handle_single_display_spec, handle_display_prop):
5853 Undo 2005-05-16 change.
5854 (handle_stop): Pop iterator if it's loaded with an empty string.
5855 (get_overlay_strings_1): Don't save iterator if it's loaded with
5856 an empty string (bug#1201).
5857
5858 2008-10-24 Kenichi Handa <handa@m17n.org>
5859
5860 * ftfont.c (ftfont_otf_features): Fix previous change.
5861 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5862 calling ftfont_otf_features.
5863
5864 2008-10-24 Kenichi Handa <handa@m17n.org>
5865
5866 * font.c (font_match_p): Fix for the case that a vector of
5867 characters is in script-representative-chars.
5868
5869 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
5870
5871 * dbusbind.c (xd_in_read_queued_messages): New variable.
5872 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
5873 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5874 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
5875 macro. (Bug#1186)
5876
5877 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
5878
5879 * s/sol2-10.h: New file.
5880
5881 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
5882
5883 * xdisp.c (fill_glyph_string): Fix typo in source (though the
5884 poor beast has survived 9+ years and the jump from xterm.c!).
5885
5886 2008-10-23 Martin Rudalics <rudalics@gmx.at>
5887
5888 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
5889 Reword doc-string.
5890 (Fbury_buffer): In doc-string say what happens to the buffer's window.
5891
5892 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
5893
5894 * character.c (syms_of_character) <script-representative-chars>:
5895 <unicode-category-table>: Doc fixes.
5896
5897 2008-10-23 Noah Friedman <friedman@splode.com>
5898
5899 * coding.c (make_conversion_work_buffer): Check that
5900 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
5901 Fget_buffer_create.
5902
5903 2008-10-23 Kenichi Handa <handa@m17n.org>
5904
5905 * font.c (font_add_log): Check the values of extra properties.
5906
5907 2008-10-22 Martin Rudalics <rudalics@gmx.at>
5908
5909 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5910 Reword doc-string.
5911 (Fset_window_parameter): Use NILP.
5912 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
5913 (Frecenter): Use "selected" instead of "current" window in doc-strings.
5914
5915 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
5916
5917 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
5918
5919 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5920
5921 * nsfns.m (ns_appkit_version): New function.
5922 (x-server-version): Use it.
5923 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
5924 (x-server-vendor): Don't check_ns().
5925
5926 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
5927
5928 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
5929
5930 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5931 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
5932
5933 2008-10-22 Kenichi Handa <handa@m17n.org>
5934
5935 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5936 scripts.
5937
5938 * category.c (word_boundary_p): Check scripts instead of charset.
5939 Handle nil value in word-separating-categories and
5940 word-combining-categories.
5941 (syms_of_category): Fix docstrings of word-separating-categories
5942 and word-combining-categories.
5943
5944 2008-10-21 Eli Zaretskii <eliz@gnu.org>
5945
5946 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5947 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5948
5949 2008-10-21 Martin Rudalics <rudalics@gmx.at>
5950
5951 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5952 Rename arg "buffer" to "buffer_or_name".
5953 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5954 it optional.
5955 (no_switch_window): Remove since the return value is not used.
5956 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
5957 Consider window as dedicated when Fwindow_dedicated_p returns a
5958 non-nil value.
5959 * lisp.h: Remove prototype for no_switch_window.
5960
5961 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5962
5963 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
5964 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
5965
5966 2008-10-21 Kenichi Handa <handa@m17n.org>
5967
5968 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5969 check Vlatin_extra_code_table.
5970
5971 2008-10-20 Eli Zaretskii <eliz@gnu.org>
5972
5973 * fileio.c (Fset_file_modes): Doc fix.
5974
5975 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
5976
5977 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5978 in arrays.
5979
5980 2008-10-19 Martin Rudalics <rudalics@gmx.at>
5981
5982 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5983 Mention kill-buffer in doc-string.
5984 (Fset_window_buffer): Reinsert tem check removed in last commit.
5985 (Fenlarge_window, Fshrink_window): Have argument names and
5986 doc-string follow Elisp manual more closely.
5987
5988 2008-10-18 Eli Zaretskii <eliz@gnu.org>
5989
5990 * fileio.c (Fset_file_modes): Doc fix.
5991
5992 2008-10-18 Martin Rudalics <rudalics@gmx.at>
5993
5994 * window.c (Fwindow_width, Fset_window_start)
5995 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
5996 (Fdelete_windows_on, Freplace_buffer_in_windows):
5997 Make doc-strings follow code and Elisp manual more closely.
5998 (Fwindow_dedicated_p): Make window argument optional.
5999 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6000 (Fset_window_buffer): Respect any non-nil dedicated value for
6001 window. Rename "buffer" argument to "buffer_or_name".
6002
6003 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
6004
6005 * m/sh3.h: New file, machine description for SuperH.
6006
6007 2008-10-17 Martin Rudalics <rudalics@gmx.at>
6008
6009 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6010
6011 2008-10-17 Kenichi Handa <handa@m17n.org>
6012
6013 * ftfont.c (ftfont_otf_features): Fix indexing
6014 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6015
6016 2008-10-16 Magnus Henoch <mange@freemail.hu>
6017
6018 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6019 (Fdbus_call_method_asynchronously): Ditto.
6020 This change makes C-h f display the argument list.
6021
6022 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
6023
6024 * fileio.c (Fexpand_file_name): Doc fix.
6025
6026 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6027 of :foreground and :background equivalent to unspecified (20.x
6028 compatibility).
6029
6030 2008-10-15 Eli Zaretskii <eliz@gnu.org>
6031
6032 * buffer.c (syms_of_buffer): Doc fix.
6033
6034 2008-10-14 Kenichi Handa <handa@m17n.org>
6035
6036 * font.c (font_clear_prop): When clearing font width, clear the
6037 average width field too.
6038
6039 2008-10-12 Andreas Schwab <schwab@suse.de>
6040
6041 * ftfont.c (ftfont_shape_by_flt): Make static.
6042 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6043
6044 * font.c: Don't include <m17n-flt.h>.
6045
6046 2008-10-10 Eli Zaretskii <eliz@gnu.org>
6047
6048 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6049
6050 2008-10-09 Eli Zaretskii <eliz@gnu.org>
6051
6052 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6053 away code.
6054
6055 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
6056
6057 * dispnew.c (update_text_area): Avoid looping due to large glyph
6058 overhangs (bug#1070).
6059
6060 2008-10-09 Kenichi Handa <handa@m17n.org>
6061
6062 * fontset.c (face_for_char): If face->fontset is negative, just
6063 return ascii_face.
6064
6065 * font.c (font_delete_unmatched): Fix previous change.
6066 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
6067
6068 2008-10-09 Martin Rudalics <rudalics@gmx.at>
6069
6070 * frame.c (Fraise_frame): On text-only terminals select frame in
6071 order to make it visible. (Bug#1061)
6072
6073 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
6074
6075 * fontset.c (fontset_find_font): Check frame validity.
6076
6077 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
6078
6079 * gtkutil.c (xg_display_open): Reset default display if none exists.
6080 (xg_display_close): Allow Emacs to close all displays (bug#985).
6081
6082 2008-10-06 Andreas Schwab <schwab@suse.de>
6083
6084 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
6085
6086 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
6087
6088 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
6089
6090 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
6091
6092 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6093 during initialization.
6094
6095 2008-10-04 Eli Zaretskii <eliz@gnu.org>
6096
6097 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6098 whole thing on MSDOS frames as well as on a TTY.
6099
6100 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6101 well as for TTY.
6102 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6103 well as on a TTY.
6104
6105 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6106 as well as for TTY.
6107
6108 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6109
6110 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6111 MSDOS frames as well.
6112
6113 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6114
6115 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6116 correct arguments.
6117 * menu.c (find_and_return_menu_selection): Add cast.
6118
6119 2008-10-03 Glenn Morris <rgm@gnu.org>
6120
6121 * emacs.c (USAGE1): Add --daemon.
6122
6123 2008-10-02 Eli Zaretskii <eliz@gnu.org>
6124
6125 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6126 100, so it's in percents as advertised.
6127
6128 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6129
6130 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6131 (ns_output.current_cursor, ns_output.desired_cursor)
6132 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6133 (FRAME_NEW_CURSOR_COLOR): Remove.
6134
6135 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
6136 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
6137 enumeration (HOLLOW_BOX_CURSOR, etc.).
6138
6139 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6140 (draw_window_cursor): Simplify code.
6141 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6142 Don't change cursor type. In latter, call rehighlight instead of doing
6143 updates manually.
6144 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6145 Use core Emacs cursor types.
6146
6147 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
6148
6149 2008-10-02 Martin Rudalics <rudalics@gmx.at>
6150
6151 * process.c (Faccept_process_output): Fix doc-string.
6152
6153 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6154
6155 * gmalloc.c (__sbrk): Also define for uClibc.
6156
6157 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6158 for uClibc.
6159
6160 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6161
6162 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6163 styles.
6164 (nsfont_open): Reenable the cache.
6165
6166 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6167
6168 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6169 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6170
6171 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6172
6173 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6174 a suspended terminal.
6175
6176 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
6177
6178 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6179
6180 2008-09-30 Eli Zaretskii <eliz@gnu.org>
6181
6182 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6183
6184 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
6185
6186 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6187 in a continued line coincides with a line beginning.
6188
6189 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6190
6191 * nsfont.m (nsfont_trait_distance): Fix bug.
6192 (nsfont_list): Return a list rather than a vector (syncs with Handa
6193 changes of 2008-05-14).
6194 (nsfont_open): Improve logging.
6195
6196 2008-09-29 Andreas Schwab <schwab@suse.de>
6197
6198 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6199
6200 2008-09-28 Martin Rudalics <rudalics@gmx.at>
6201
6202 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6203 name as char-resolve-modifiers.
6204 Reported by: Markus Triska <markus.triska@gmx.at>
6205
6206 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6207
6208 * dispnew.c (init_display): Return earlier when running as a daemon.
6209
6210 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6211
6212 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6213
6214 2008-09-27 Eli Zaretskii <eliz@gnu.org>
6215
6216 * composite.c (Fcomposition_get_gstring)
6217 (Fcompose_region_internal, Fcompose_string_internal)
6218 (Ffind_composition_internal): Doc fix.
6219 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6220 (syms_of_composite) <auto-composition-function>: Doc fix.
6221 (syms_of_composite) <composition-function-table>: Doc fix.
6222
6223 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
6224
6225 * search.c (wordify): New argument for lax word-ends.
6226 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6227
6228 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6229
6230 * lisp.h (is_daemon): Declare.
6231 * dispnew.c (init_display): Do not try to initialize the terminal
6232 when running as a daemon.
6233
6234 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
6235
6236 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6237 x_display_pixel_height.
6238
6239 2008-09-22 Martin Rudalics <rudalics@gmx.at>
6240
6241 * undo.c (record_point): Don't call Fundo_boundary for first
6242 change. (Bug#731)
6243
6244 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
6245
6246 * emacs.c (Fdaemonp): Doc fix.
6247
6248 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6249
6250 * emacs.c (main): Place #ifdef in the proper place.
6251
6252 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6253
6254 * emacs.c (standard_args): Add --daemon.
6255 (main): Disconnect from the terminal when --daemon is passed.
6256 (is_daemon): New variable.
6257 (Fdaemonp): New function.
6258 (syms_of_emacs): Defsubr it.
6259
6260 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
6261
6262 * xdisp.c (get_next_display_element): Handle string display
6263 correctly when checking for the end of a box run.
6264
6265 2008-09-20 Glenn Morris <rgm@gnu.org>
6266
6267 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6268 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6269 (Frename_file): Avoid copying to trash if a rename involves
6270 a delete. (Bug#964).
6271
6272 2008-09-20 Eli Zaretskii <eliz@gnu.org>
6273
6274 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6275 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6276 frames as well as termcap frames.
6277 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6278 get_named_tty.
6279
6280 2008-09-19 Eli Zaretskii <eliz@gnu.org>
6281
6282 * process.c (procfs_system_process_attributes): Fix cmdline in
6283 case /proc/PID/cmdline is empty.
6284
6285 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6286 x_display_pixel_height.
6287
6288 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
6289
6290 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6291
6292 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6293 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6294
6295 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6296
6297 * dispextern.h (struct it): Move line_wrap away from the middle of
6298 bitfields. Move voffset in struct iterator_stack_entry after the
6299 bitfields. Move tab_width near after another short.
6300
6301 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6302
6303 * frame.h (struct frame): Move alpha from the middle of bitfields.
6304
6305 * window.h (struct window): Move frozen_window_start_p after the
6306 rest of the bitfields to reduce padding.
6307
6308 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
6309
6310 * xterm.h (x_display_info): Remove `height' and `width' members.
6311
6312 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6313
6314 * w32term.h (w32_display_info): Remove `height', `width',
6315 `height_in', and `width_in' members.
6316
6317 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6318 New functions.
6319 (x_calc_absolute_position): Use them.
6320 (x_term_init): Omit removed `height' and `width' members.
6321
6322 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6323 New functions.
6324 (w32_read_socket, x_calc_absolute_position): Use them.
6325 (w32_initialize_display_info, w32_term_init): Omit removed members
6326 of w32_display_info.
6327
6328 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6329 New functions.
6330 (ns_initialize_display_info): Omit removed members of ns_display_info.
6331
6332 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6333 New functions.
6334 (x_calc_absolute_position): Use them.
6335 (x_term_init): Omit removed `height' and `width' members.
6336
6337 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6338 (compute_tip_xy):
6339 * frame.c (x_fullscreen_adjust):
6340 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6341 x_display_pixel_width.
6342
6343 2008-09-18 Kenichi Handa <handa@m17n.org>
6344
6345 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6346 (composition_compute_stop_pos): Fix handling of static composition.
6347 (Fcomposition_get_gstring): Check FROM and TO at first.
6348
6349 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6350
6351 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
6352 mixup (YAILOM).
6353
6354 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
6355
6356 * indent.c (Fvertical_motion): Use position reported by iterator
6357 instead of PT for determining screen motion (bug#943).
6358
6359 2008-09-17 Romain Francoise <romain@orebokech.com>
6360
6361 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6362
6363 2008-09-17 Kenichi Handa <handa@m17n.org>
6364
6365 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6366
6367 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6368 if necessary.
6369
6370 2008-09-16 Kenichi Handa <handa@m17n.org>
6371
6372 * coding.c (make_conversion_work_buffer): Avoid calling
6373 Fget_buffer_create if it is not necessary.
6374
6375 2008-09-15 Martin Rudalics <rudalics@gmx.at>
6376
6377 * window.c (Fselect_window): Don't update window_select_count and
6378 use_time when norecord is not nil.
6379
6380 2008-09-14 Kenichi Handa <handa@m17n.org>
6381
6382 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6383 specpdl_ptr.
6384
6385 2008-09-12 Kenichi Handa <handa@m17n.org>
6386
6387 * indent.c (scan_for_column): Don't handle automatic composition
6388 if the current buffer is not associated with a window.
6389
6390 * composite.c (composition_reseat_it): If the current buffer is
6391 not associated with a window, ignore the automatic composition.
6392 (find_automatic_composition): Likewise.
6393
6394 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6395
6396 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6397 (Fgpm_mouse_stop): Use it.
6398 * termhooks.h (close_gpm): Declare.
6399 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6400 connection if Gpm_GetEvent fails.
6401
6402 * window.c (set_window_buffer): Always preserve current-buffer.
6403
6404 2008-09-12 Glenn Morris <rgm@gnu.org>
6405
6406 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6407
6408 2008-09-11 Glenn Morris <rgm@gnu.org>
6409
6410 * charset.c (charset-map-path): Doc fix.
6411
6412 2008-09-10 Kenichi Handa <handa@m17n.org>
6413
6414 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6415
6416 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6417 compose a grapheme cluster with the preceding base glyph.
6418
6419 * composite.c (composition_compute_stop_pos): Fix previous change.
6420 Reset cmp_it->id to -1 at first.
6421
6422 2008-09-10 Glenn Morris <rgm@gnu.org>
6423
6424 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6425
6426 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
6427
6428 * keyboard.c (read_key_sequence): Reapply translation maps when
6429 switching keyboards.
6430
6431 2008-09-09 Kenichi Handa <handa@m17n.org>
6432
6433 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6434 characters.
6435
6436 * composite.c (FORWARD_CHAR): Fix calculation
6437 of (POSITION).pos_byte.
6438 (composition_compute_stop_pos): Limit the search of composition to
6439 at most 500 characters ahead. If we reach the limit or find a
6440 newline, set cmp_it->ch to -2 and return 0.
6441 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6442
6443 2008-09-08 Kenichi Handa <handa@m17n.org>
6444
6445 * indent.c (Fvertical_motion): Be sure to set
6446 it_overshoot_expected if it.cmp_it.id is non-negative.
6447
6448 2008-09-07 Andreas Schwab <schwab@suse.de>
6449
6450 * callproc.c (Fcall_process): Don't hold references to string data
6451 across garbage collection. Move initialisation of new_argv down
6452 to avoid compiler bug.
6453
6454 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6455
6456 * process.c (Fsystem_process_attributes): Doc fix.
6457
6458 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
6459
6460 * callproc.c (Fcall_process): Canonicalize current directory name.
6461
6462 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6463 iterator advances to the next line if the current line ends in a
6464 continued tab.
6465
6466 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6467
6468 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6469 member to point to cmp_from.
6470
6471 * xdisp.c: Doc fix for references to gidx data member.
6472
6473 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6474
6475 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6476
6477 2008-09-07 Kenichi Handa <handa@m17n.org>
6478
6479 * composite.c (FORWARD_CHAR): Check STOP after
6480 incrementing (POSITION).pos.
6481
6482 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6483
6484 * process.c (Fsystem_process_attributes): Doc fix.
6485
6486 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
6487
6488 * keyboard.c (Ftop_level): Doc fix.
6489
6490 2008-09-06 Eli Zaretskii <eliz@gnu.org>
6491
6492 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6493 minibuffer, don't let lower part of menu invade the echo area.
6494
6495 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6496 "char *q" to access menu text and advance through it. Revert the
6497 change that displayed ">" instead of ASCII character 0x10.
6498
6499 2008-09-05 Eli Zaretskii <eliz@gnu.org>
6500
6501 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6502 toggle boxes and radio buttons on MS-DOS as well.
6503
6504 2008-09-05 Kenichi Handa <handa@m17n.org>
6505
6506 * composite.c (autocmp_chars): Check lookback count.
6507 (composition_compute_stop_pos): Set cmp_it->lookback.
6508 (composition_reseat_it): Check lookback count.
6509 (struct position_record): New struct.
6510 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6511 (find_automatic_composition): New function.
6512 (composition_adjust_point): Use find_automatic_composition.
6513
6514 * dispextern.h (struct composition_it): New member lookback.
6515
6516 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
6517
6518 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6519 if moving by a single line.
6520
6521 2008-09-02 Andreas Schwab <schwab@suse.de>
6522
6523 * xterm.c (x_delete_display): Fix merge error.
6524
6525 * fileio.c (Fexpand_file_name): Remove unused variables.
6526
6527 2008-09-02 Eli Zaretskii <eliz@gnu.org>
6528
6529 * fileio.c (Fexpand_file_name): Copy argument `name' into local
6530 storage on all platforms, not just on DOS_NT.
6531
6532 2008-09-02 Jason Rumney <jasonr@gnu.org>
6533
6534 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
6535 Ensure mouse is not grabbed after menu is finished.
6536
6537 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
6538
6539 * xfaces.c (Finternal_set_alternative_font_family_alist)
6540 (Finternal_set_alternative_font_registry_alist): Properly copy
6541 entire alist structure.
6542
6543 2008-09-01 Kenichi Handa <handa@m17n.org>
6544
6545 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
6546 representative chars of the script is a vector.
6547 (ftfont_list): Handle the case where the representative chars of
6548 the script is a vector.
6549
6550 * character.c (syms_of_character): Docstring of
6551 script-representative-chars fixed.
6552
6553 2008-08-31 Eli Zaretskii <eliz@gnu.org>
6554
6555 * msdos.c (BUILD_CHAR_GLYPH): New macro.
6556 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
6557 the menu. Allocate larger buffer for `text', to account for
6558 possible ^C characters.
6559
6560 2008-08-31 Martin Rudalics <rudalics@gmx.at>
6561
6562 * xdisp.c (prepare_menu_bars): Don't call
6563 Vwindow_size_change_functions with arg Qt.
6564
6565 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
6566
6567 * font.h (font_range):
6568 * fileio.c (report_file_error):
6569 * composite.c (composition_update_it): Yet another int/Lisp_Object
6570 mixup (YAILOM).
6571
6572 2008-08-30 Glenn Morris <rgm@gnu.org>
6573
6574 * data.c (Fmake_variable_frame_local): Doc fix.
6575
6576 * frame.c (Fmodify_frame_parameters): Doc fix.
6577
6578 2008-08-30 Eli Zaretskii <eliz@gnu.org>
6579
6580 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
6581 needed by GetTokenInformation.
6582 (w32_system_process_attributes): Check return values of all system
6583 APIs.
6584
6585 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
6586 only when the state changes.
6587 (IT_update_begin, IT_update_end): Add termscript trace.
6588
6589 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
6590 clipboard is unavailable. Set dst to NULL if it doesn't point to
6591 malloc'ed data.
6592 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
6593 passing random values to xfree.
6594
6595 * dispnew.c (init_display): Set `tty's association in frame's
6596 parameters alist to the name of the terminal device, if that is known.
6597
6598 2008-08-29 Jason Rumney <jasonr@gnu.org>
6599
6600 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
6601
6602 2008-08-29 Eli Zaretskii <eliz@gnu.org>
6603
6604 * composite.c (fill_gstring_body): Avoid compiler warnings.
6605
6606 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
6607 LGLYPH_SET_CODE to avoid compiler warnings.
6608
6609 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
6610
6611 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
6612
6613 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
6614 LGLYPH_SET_CODE.
6615
6616 2008-08-29 Kenichi Handa <handa@m17n.org>
6617
6618 * fileio.c (report_file_error): Don't downcase the first character
6619 of errstring if it is still unibyte.
6620
6621 2008-08-29 Kenichi Handa <handa@m17n.org>
6622
6623 These changes are to re-implement the automatic composition so
6624 that it doesn't use text properties.
6625
6626 * Makefile.in (ftfont.o): Depend on composite.h.
6627 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
6628
6629 * character.h (Vunicode_category_table): Extern it.
6630
6631 * character.c (Vunicode_category_table): New variable.
6632 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
6633
6634 * chartab.c (optimize_sub_char_table): Perform more greedy
6635 optimization.
6636
6637 * composite.h (enum composition_method):
6638 Delete COMPOSITION_WITH_GLYPH_STRING.
6639 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
6640 (Vcomposition_function_table): Extern it.
6641 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
6642 (composition_gstring_put_cache, composition_gstring_from_id)
6643 (composition_gstring_p, composition_gstring_width)
6644 (composition_compute_stop_pos, composition_reseat_it)
6645 (composition_update_it, composition_adjust_point): Extern them.
6646 (Fcomposition_get_gstring): EXFUN it.
6647
6648 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
6649 (Vcomposition_function_table)
6650 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
6651 (gstring_hash_table, gstring_work, gstring_work_headers):
6652 New variables.
6653 (gstring_lookup_cache, composition_gstring_put_cache)
6654 (composition_gstring_from_id, composition_gstring_p)
6655 (composition_gstring_width, fill_gstring_header)
6656 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
6657 (composition_reseat_it, composition_update_it)
6658 (composition_adjust_point, Fcomposition_get_gstring): New functions.
6659 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
6660 and gstring_work_headers. DEFVAR_LISP composition-function-table.
6661 Defsubr compostion_get_gstring.
6662
6663 * dispextern.h (struct glyph): New union u.cmp. Delete the member
6664 cmp_id.
6665 (struct glyph_string): Delete the member gidx. New members
6666 cmp_id, cmp_from, and cmp_to.
6667 (enum it_method): Delete GET_FROM_COMPOSITION.
6668 (struct composition_it): New struct.
6669 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
6670 Delete c, len, cmp_id, cmp_len in u.comp.
6671
6672 * font.h (enum lgstring_indices): Delete it.
6673 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
6674 (enum lglyph_indices): Likewise.
6675 (font_range): Adjust extern.
6676 (font_fill_lglyph_metrics): Extern it.
6677
6678 * font.c (QCf): New variable.
6679 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6680 (font_prepare_composition): Delete this function.
6681 (font_range): Type and arguments changed.
6682 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
6683 (font_fill_lglyph_metrics): New function.
6684 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
6685 (syms_of_font): DEFSYM QCf. Delete defsubr for
6686 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
6687 Defsubr Sfont_shape_gstring.
6688
6689 * fontset.h (font_for_char): Extern it.
6690
6691 * fontset.c (font_for_char): New function.
6692
6693 * ftfont.c: Include composite.h.
6694 (ftfont_resolve_generic_family): Add langset "en" to pattern.
6695 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6696
6697 * indent.c: Include composite.h and dispextern.h.
6698 (check_composition): Delete this function.
6699 (scan_for_column): Handle composition by
6700 composition_compute_stop_pos, composition_reseat_it, and
6701 composition_update_it.
6702 (compute_motion): Likewise.
6703 (Fvertical_motion): Fix checking of composition.
6704
6705 * keyboard.c (adjust_point_for_property): Check composition by
6706 composition_adjust_point.
6707
6708 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
6709 struct glyph_string.
6710
6711 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
6712 (append_composite_glyph): Adjust for the change of struct it and
6713 struct glyph.
6714 (produce_composite_glyph): Likewise.
6715
6716 * w32term.c (x_draw_composite_glyph_string_foreground):
6717 Adjust for the change of struct glyph_string.
6718 (x_draw_glyph_string): Likewise.
6719
6720 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
6721 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6722
6723 * xdisp.c: Include font.h.
6724 (it_props): Delete the entry for Qauto_composed.
6725 (init_iterator): Initialize it->cmp_it.id to -1.
6726 (compute_stop_pos): Call composition_compute_stop_pos.
6727 (face_before_or_after_it_pos): Adjust for the change of struct it.
6728 (handle_auto_composed_prop): Delete it.
6729 (handle_composition_prop): Handle only static composition.
6730 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
6731 from xassert. Initialize it->cmp_it.stop_pos.
6732 (push_it): Adjust for the change of struct it.
6733 (pop_it): Likewise.
6734 (get_next_element): Delete next_element_from_composition.
6735 (CHAR_COMPOSED_P): New macro.
6736 (get_next_display_element): For automatic composition, get a face
6737 from the font in the glyph-string.
6738 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
6739 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
6740 (next_element_from_string): Check if the character at the current
6741 position is composed by CHAR_COMPOSED_P.
6742 (next_element_from_buffer): Likewise.
6743 (next_element_from_composition): Adjust for the change of struct it.
6744 Update it->cmp_it.
6745 (dump_glyph): Adjust for the change of struct glyph.
6746 (fill_composite_glyph_string): Adjust for the change of struct
6747 it and struct glyph. Don't handle automatic composition here.
6748 (fill_gstring_glyph_string): New function.
6749 (x_get_glyph_overhangs): Handle automatic composition.
6750 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
6751 (BUILD_GSTRING_GLYPH_STRING): New macro.
6752 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
6753 automatic composition.
6754 (append_composite_glyph): Adjust for the change of struct it and
6755 struct glyph.
6756 (x_produce_glyphs): Adjust for the change of struct it.
6757
6758 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
6759 the change of struct glyph_string.
6760 (x_draw_glyph_string): Likewise.
6761
6762 2008-08-29 Glenn Morris <rgm@gnu.org>
6763
6764 * buffer.c (word-wrap): Doc fix.
6765 * xdisp.c (truncate-partial-width-windows): Doc fix.
6766 Increase default to 50.
6767
6768 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
6769
6770 * xdisp.c (update_tool_bar_unwind): New function.
6771 (update_tool_bar): Temporarily set selected frame before building
6772 tool-bar items.
6773
6774 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
6775
6776 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
6777 snprintf, respectively.
6778 (xd_append_arg): Convert strings with Fstring_make_unibyte.
6779
6780 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
6781
6782 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
6783 LDFLAGS to GNUstep CC invocation.
6784
6785 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
6786
6787 * indent.c (Fvertical_motion): Revert last change. Handle the
6788 general case where we are moving forward, and PT spans multiple
6789 screen lines.
6790
6791 * eval.c (find_handler_clause): Temporarily increase
6792 max-lisp-eval-depth while printing the backtrace buffer, to
6793 guarantee that help-mode code can run.
6794
6795 2008-08-27 Eli Zaretskii <eliz@gnu.org>
6796
6797 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
6798 colors under -rv.
6799 (IT_set_frame_parameters): Don't swap foreground and background
6800 colors if `(reverse . t)' is present in the frame properties.
6801 (internal_terminal_init): Call init_frame_faces only for the
6802 initial frame.
6803
6804 2008-08-27 Andreas Schwab <schwab@suse.de>
6805
6806 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
6807
6808 2008-08-27 Andreas Schwab <schwab@suse.de>
6809
6810 * search.c (search_buffer): Set char_base to zero only at the end.
6811
6812 2008-08-27 Kenichi Handa <handa@m17n.org>
6813
6814 * fileio.c (report_file_error): Fix handling of multibyte error string.
6815
6816 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
6817
6818 * xterm.c (x_term_init): Temporarily hide the partially
6819 initialized terminal while calling vendor-specific-keysyms.
6820
6821 2008-08-26 Eli Zaretskii <eliz@gnu.org>
6822
6823 * msdos.c (internal_terminal_init): Most initializations done only
6824 once, especially initial_screen_colors[] and termscript open.
6825
6826 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
6827
6828 * eval.c (Fcondition_case): Doc fix.
6829
6830 * widgetprv.h (EmacsFramePart): Change font member to the new font
6831 struct.
6832
6833 * widget.c: Include character.h and font.h for XSETFONT.
6834 (setup_frame_gcs): Compute X font id from font struct, just once.
6835
6836 2008-08-26 Eli Zaretskii <eliz@gnu.org>
6837
6838 * term.c (get_named_tty): Fix last change.
6839
6840 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
6841
6842 * indent.c (Fvertical_motion): If moving forward starting from a
6843 multi-line string, move the iterator to the last line of that string.
6844
6845 2008-08-25 Eli Zaretskii <eliz@gnu.org>
6846
6847 * frame.c (do_switch_frame): Mark previously displayed frame as
6848 obscured for FRAME_MSDOS_P frames as well.
6849
6850 2008-08-24 Eli Zaretskii <eliz@gnu.org>
6851
6852 * frame.c (make_terminal_frame): Initialize f->terminal,
6853 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6854 Set the top frame to newly created frame.
6855 (Fmake_terminal_frame): Reuse the_only_display_info.
6856
6857 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6858 estimating available memory.
6859
6860 2008-08-23 David Reitter <david.reitter@gmail.com>
6861
6862 * nsterm.m (ns_draw_window_cursor): Don't call
6863 NSDisableScreenUpdates and NSEnableScreenUpdates on
6864 non-NS_IMPL_COCOA systems.
6865
6866 2008-08-23 Andreas Schwab <schwab@suse.de>
6867
6868 * process.c (procfs_system_process_attributes): Fix use of
6869 uninitialized variables.
6870
6871 2008-08-23 Eli Zaretskii <eliz@gnu.org>
6872
6873 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6874
6875 * dispnew.c (init_display): Remove MS-DOS specific conditions for
6876 calling tty-set-up-initial-frame-faces.
6877
6878 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
6879 Allow MSDOS frames along with X frames.
6880
6881 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
6882 addition to output_termcap.
6883
6884 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
6885
6886 * termchar.h (FRAME_TTY): Support output_msdos_raw.
6887 (struct tty_display_info) [MSDOS]: Add fields related to mouse
6888 highlight.
6889
6890 * process.c [!subprocesses]: Define QCname.
6891 (syms_of_process): Intern and staticpro it.
6892
6893 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
6894 Adjust for changes in encoding/decoding routines.
6895 Use encode_coding_object and decode_coding_object instead of
6896 encode_coding and decode_coding.
6897
6898 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
6899
6900 * dosfns.c: Include frame.h before termhooks.h.
6901 (dos_cleanup): Use CURTTY ()->termscript instead of a global
6902 variable termscript.
6903
6904 * s/msdos.h (USER_FULL_NAME): Define.
6905 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
6906
6907 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
6908 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
6909 pw->pw_gecos.
6910
6911 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
6912 SELECTED_FRAME as additional (1st) argument.
6913 (tty_read_avail_input): Handle output_msdos_raw in
6914 addition to output_termcap.
6915
6916 * msdos.c: Include frame.h before termhooks.h.
6917 (mouse_on, mouse_off, mouse_moveto, mouse_init)
6918 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
6919 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
6920 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
6921 (IT_set_terminal_modes, IT_reset_terminal_modes)
6922 (IT_set_frame_parameters): Use tty->termscript instead of a global
6923 variable termscript.
6924 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
6925 global variable terminal_coding. Don't refer to
6926 Vnonascii_translation_table.
6927 (internal_terminal_init): Set Vwindow_system in current_kboard.
6928 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
6929 Announce date and time of session start, if termscript is open.
6930 Don't zero out the_only_display_info (it is done in
6931 term.c:init_tty). Open termscript only of not already open.
6932 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
6933 here instead of dos_ttraw. Don't initialize display if this is an
6934 initial tty. Don't set FRAME_FONT.
6935 (Vwindow_system_version): Bump to 23.
6936 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6937 is available, set up mouse_position_hook.
6938 (dos_ttraw, IT_set_terminal_modes): If called with initial
6939 terminal, do nothing.
6940 (IT_set_frame_parameters): Handle the Qtty_type frame
6941 parameter by calling internal_terminal_init.
6942 (dos_set_window_size, show_mouse_face)
6943 (clear_mouse_face, IT_note_mode_line_highlight)
6944 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6945 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6946 (initialize_msdos_display): New function.
6947 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6948 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6949 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6950 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
6951 Accept additional argument: a pointer to a frame. Update all callers.
6952 (request_sigio, unrequest_sigio): Don't define, now defined on
6953 sysdep.c.
6954 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6955
6956 * term.c [MSDOS]: Include msdos.h.
6957 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6958 conditional to DOS_NT. Allow only one call to this function in a
6959 session. Don't allocate a new struct tty_display_info; instead,
6960 reuse the_only_display_info. Call get_tty_size to get screen
6961 dimensions. Call init_baud_rate to set bad_rate.
6962 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6963 (Fsuspend_tty) [MSDOS]: Don't close input and output.
6964 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
6965 (get_tty_terminal, get_named_tty, Ftty_type)
6966 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6967 output_termcap.
6968 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6969 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
6970 only when subprocesses are supported.
6971
6972 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6973 f->output_data.x.
6974 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6975 terminal devices.
6976
6977 * msdos.h: Remove definition of struct x_display_info and struct
6978 x_output.
6979 (FRAME_FONT): Use output_data.tty.
6980 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
6981 (struct x_display_info): Rename from display_info. Update all users in
6982 msdos.c.
6983 (struct x_output): Remove background_pixel and foreground_pixel.
6984 (the_only_display_info): Rename from the_only_x_display.
6985 (dos_ttraw): Update prototype.
6986
6987 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6988 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6989
6990 2008-08-23 Jason Rumney <jasonr@gnu.org>
6991
6992 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6993 (fn_TIFFSetDirectory): New library function used.
6994 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6995 (tiff_load): Use :index to select among multiple images. Set count
6996 property when multiple images exist.
6997 (gif_format): Use :index, not :image.
6998
6999 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
7000
7001 * xdisp.c (try_scrolling): Check INT_MAX instead of
7002 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7003 to obtain INT_MAX.
7004
7005 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7006
7007 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7008
7009 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7010
7011 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7012 GNUstep library location.
7013
7014 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
7015
7016 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7017 before using it.
7018
7019 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7020
7021 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7022
7023 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7024 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7025 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7026 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7027 (EmacsApp-cursor_blink_handler): Remove declaration.
7028 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7029 match 01 Feb 2008 changes in xterm.c.
7030 (ns_read_socket): Add cast to avoid warning.
7031 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7032 GNUstep.
7033
7034 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
7035
7036 * xselect.c (x_get_foreign_selection): Return nil if desired
7037 selection could not be obtained, instead of signalling an error.
7038
7039 2008-08-20 David Reitter <david.reitter@gmail.com>
7040
7041 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7042 * nsterm.m: Remove ns-specific code for cursor blinking.
7043 (ns_draw_window_cursor): Clear cursor properly rather than
7044 redrawing the area. Respect width of bar cursors.
7045 These changes enable the use of generic blink-cursor-mode and
7046 generic cursor types in NS and support smooth cursor movements (do
7047 not blink off after command).
7048 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7049 Nextstep, too.
7050
7051 2008-08-19 Kenichi Handa <handa@m17n.org>
7052
7053 * font.c (Vfont_log_deferred): New variable.
7054 (font_add_log): Check Vfont_log_deferred.
7055 (font_deferred_log): New function.
7056
7057 * font.h (font_deferred_log): Extern it.
7058
7059 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7060 for sorting.
7061 (face_for_char): Use deferred log.
7062
7063 2008-08-18 Kenichi Handa <handa@m17n.org>
7064
7065 * fontset.c (face_for_char): Add font log.
7066
7067 * font.c (font_add_log): Add the font properties :script, :lang,
7068 and :otf in the log.
7069
7070 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
7071
7072 * xdisp.c: Remove dead code.
7073 (handle_invisible_prop, next_overlay_string): Defer call to
7074 setup_for_ellipsis.
7075 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7076
7077 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
7078
7079 * xfaces.c (lookup_derived_face): Properly handle possible zero
7080 return value of get_lface_attributes.
7081 (merge_faces): Don't tell lookup_derived_face to signal an error
7082 if face is not found.
7083
7084 * dired.c (Fdirectory_files): Doc fix.
7085
7086 * process.c (make_process): Initialize kill_without_query struct
7087 member.
7088
7089 2008-08-15 Eli Zaretskii <eliz@gnu.org>
7090
7091 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7092 Alternative calculation of totphys for Visual Studio 6.
7093
7094 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7095
7096 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7097 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7098 All users changed.
7099 (stat): Only root directory passed to GetDriveType. Allow RAM
7100 disk as well as local fixed disk when w32-get-true-file-attributes
7101 is set to `local'.
7102 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7103 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7104 (w32_cached_id, w32_add_to_cache): New functions.
7105 (get_name_and_id): Look account names in the cache before calling
7106 lookup_account_sid.
7107 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7108 New initialization flags.
7109 (globals_of_w32): Initialize them to zero.
7110 (w32_system_process_attributes): Use w32_cached_id and
7111 w32_add_to_cache.
7112
7113 2008-08-14 Lawrence Mitchell <wence@gmx.li>
7114
7115 * lread.c (Fread_char, Fread_char_exclusive): If no character
7116 event is read before timeout is reached, return nil, rather than
7117 converting to a number.
7118
7119 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
7120
7121 * fns.c (use_dialog_box): Doc fix.
7122
7123 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7124 on OS X.
7125
7126 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
7127
7128 * frame.c (Qns_parse_geometry): New var.
7129 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7130
7131 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
7132
7133 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7134 space character in calculating tabs.
7135
7136 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7137
7138 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7139
7140 2008-08-10 Glenn Morris <rgm@gnu.org>
7141
7142 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7143 silence gcc "limited range of data type" warnings in some
7144 make_fixnum_or_float calls.
7145
7146 2008-08-09 Eli Zaretskii <eliz@gnu.org>
7147
7148 * w32.c (w32_system_process_attributes): If the process does not
7149 exist, return nil.
7150
7151 * w32.c: Include thelp32.h, psapi.h and coding.h.
7152 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7153 declarations.
7154 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7155 (Process32Next_Proc): New typedefs.
7156 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7157 (g_b_init_process32_next, g_b_init_open_thread_token)
7158 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7159 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7160 (g_b_init_get_process_working_set_size)
7161 (g_b_init_global_memory_status_ex): New static variables.
7162 (globals_of_w32): Initialize them.
7163 (create_toolhelp32_snapshot, process32_first, process32_next)
7164 (open_thread_token, impersonate_self, revert_to_self)
7165 (get_process_memory_info, get_process_working_set_size)
7166 (global_memory_status, global_memory_status_ex): New wrapper
7167 functions.
7168 (w32_list_system_processes, w32_system_process_attributes)
7169 (enable_privilege, restore_privilege, ltime, process_times):
7170 New functions.
7171 (convert_time_raw): New function.
7172 (convert_time): Remove conversion of FILETIME into time in 100
7173 nsec units, call convert_time_raw instead.
7174
7175 * process.h (w32_list_system_processes, w32_system_process_attributes):
7176 Add prototypes.
7177 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7178 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7179 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7180 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7181
7182 * process.c (Fsystem_process_attributes): Doc fix.
7183
7184 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
7185
7186 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7187 a continued multi-char glyph; if so, advance to the actual glyph.
7188
7189 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7190
7191 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7192
7193 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7194 (.m.o): Use it.
7195 * config.in: Regenerate.
7196
7197 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
7198
7199 * xdisp.c (redisplay_window): Revert last change.
7200 (try_window): Check bottom scroll margin too.
7201
7202 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7203
7204 * config.in: Regenerate.
7205
7206 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7207 -list-load-path-shadows'.
7208 (nsgui.h): Reduce number of things depending on it.
7209
7210 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
7211
7212 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7213 instead of window-end which does the wrong thing at eob.
7214 (try_cursor_movement): Minor optimization.
7215 (redisplay_window): If scroll margin is defined, don't assume
7216 window doesn't need scrolling.
7217
7218 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7219
7220 * config.in: Regenerate.
7221
7222 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7223 (mostlyclean): Don't delete *.d under NS.
7224
7225 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7226
7227 2008-08-06 Kenichi Handa <handa@m17n.org>
7228
7229 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7230
7231 2008-08-06 Andreas Schwab <schwab@suse.de>
7232
7233 * config.in: Regenerate.
7234
7235 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
7236
7237 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7238 forcing a window start.
7239
7240 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7241 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7242
7243 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7244
7245 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7246 argument.
7247
7248 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
7249
7250 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7251 <scroll-down-aggressively, before-change-functions>:
7252 <after-change-functions>: Reflow docstrings.
7253
7254 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7255 Ken Raeburn <raeburn@gnu.org>
7256
7257 Dock menu customization, based on a patch by Ken Raeburn, plus some
7258 other fixes.
7259 * nsmenu.m (dockMenu): New variable.
7260 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7261
7262 * nsterm.h (dockMenu): Declare.
7263
7264 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7265 (ns_term_init): Initialize dockMenu.
7266 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7267 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7268 left.
7269
7270 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7271
7272 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
7273
7274 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7275
7276 * config.in: Regenerate.
7277
7278 2008-08-04 Seiji Zenitani <zenitani@mac.com>
7279
7280 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7281
7282 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
7283
7284 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7285
7286 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7287
7288 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7289
7290 * keyboard.h: Comment an #endif.
7291
7292 * lisp.h (have_menus_p): Adjust comment.
7293
7294 * menu.c (find_and_return_menu_selection): Fix comparison with
7295 client_data.
7296
7297 * nsmenu.m (popup_activated_flag): New variable.
7298 (popup_activated): New function.
7299 (menu-or-popup-active-p): New exported lisp definition.
7300 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7301 when popup done.
7302 (ns_popup_dialog): Set popup_activated_flag.
7303
7304 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7305 version for GNUstep (handled by conditional typedef in nsterm.m).
7306 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7307 in rgb.txt).
7308
7309 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7310
7311 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7312
7313 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7314
7315 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7316 shortcircuit if popup_activated like GTK and X toolkit.
7317
7318 * m/inter386.h: Change DARWIN to DARWIN_OS.
7319
7320 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7321 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7322 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7323 comment on NO_SOCK_SIGIO.
7324
7325 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
7326
7327 * nsterm.m (windowDidResize): Remove stopModal call.
7328
7329 2008-08-03 Andreas Schwab <schwab@suse.de>
7330
7331 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7332 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7333
7334 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
7335
7336 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7337 Don't use uninitialized pointer variable when using getrlimit.
7338
7339 2008-08-02 Jason Rumney <jasonr@gnu.org>
7340
7341 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7342
7343 2008-08-02 Eli Zaretskii <eliz@gnu.org>
7344
7345 * alloc.c (NSTATICS): Bump to 0x640.
7346
7347 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7348
7349 * lisp.h: Add prototype for directory_files_internal.
7350
7351 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7352 New functions.
7353 (syms_of_process): Defsubr them. Add initializations for various
7354 Q* symbols used in procfs_system_process_attributes.
7355 (procfs_list_system_processes, procfs_system_process_attributes)
7356 [HAVE_PROCFS]: New functions.
7357 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7358 (procfs_get_total_memory): New functions.
7359
7360 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
7361
7362 * xfaces.c (Fx_load_color_file): Fix previous change;
7363 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7364
7365 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
7366
7367 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7368
7369 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7370
7371 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7372
7373 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
7374
7375 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7376
7377 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7378 define NSApplicationDelegateReplySuccess.
7379 (EmacsView -converstationIdentifier): Use long instead of
7380 NSInteger for GNUstep, since it doesn't have NSInteger.
7381
7382 * xmenu.c: Revert last change.
7383
7384 * keyboard.h: Fix last change.
7385
7386 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
7387
7388 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7389 on Windows.
7390
7391 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7392
7393 Warning clearing and clean-up in NS port.
7394 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7395 Add prototypes.
7396 * nsgui.h (FACE_DEFAULT): Remove, unused.
7397 (XGCValues): Change colors to unsigned long.
7398 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7399 nsterm.m.
7400 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7401 (ns_list_fonts): Remove, unused.
7402 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7403 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7404 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7405 (nsfont_draw): Compare face colors to 0, not nil.
7406 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7407 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7408 (-addSubmenuWithTitle:): Use NSMenuItem class.
7409 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7410 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7411 (ns_clip_to_row): Make gc arg a BOOL.
7412 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7413 ns_clip_to_row() call.
7414 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7415 used). Cast FRAME_FONT assignments.
7416 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7417 (ns_string_to_lispmod): Change arg to const char.
7418 (ns_term_init): Use NSMenuItem class.
7419 (EmacsApp -openFile:): Move to different section of file.
7420 (EmacsApp -application:openFiles:): Don't return a value, call
7421 -replyToOpenOrPrint:.
7422 (EmacsView -keyDown:): Fix up cast.
7423 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7424 (EmacsView -menuDown:): Cast tag in call to
7425 find_and_call_menu_selection().
7426 (ns_list_fonts): Remove, unused.
7427 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7428 (ns_fontname_to_xlfd): Make static.
7429 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7430 Remove prototypes (now in keyboard.h).
7431 (next_menubar_widget_id): Remove, unused.
7432 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7433 Remove prototypes (now in keyboard.h).
7434 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7435
7436 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7437
7438 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7439 (floatfns.o): Depend on syssignal.h.
7440 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7441
7442 * systty.h: Fix previous change that removed BSD_TERMIOS.
7443 Add comments to #ifdefs.
7444
7445 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7446
7447 * w32fns.c (w32-load-color-file): Remove.
7448 (x-open-connection): Use renamed Fx_load_color_file.
7449 * xfaces.c (x-load-color-file): Add.
7450 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7451 Emacs.clr.
7452 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7453
7454 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
7455
7456 * dbusbind.c (Fdbus_call_method_asynchronously)
7457 (Fdbus_method_error_internal): New defuns.
7458 (xd_read_message): Handle also reply messages.
7459 (Vdbus_registered_functions_table): Extend docstring.
7460
7461 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
7462
7463 * keyboard.c (gobble_input): Fix previous change.
7464
7465 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7466
7467 * bitmaps/README:
7468 * xfns.c:
7469 * termcap.c:
7470 * term.c:
7471 * syswait.h:
7472 * systty.h:
7473 * systime.h:
7474 * syssignal.h:
7475 * sysdep.c:
7476 * process.h:
7477 * process.c:
7478 * print.c:
7479 * ndir.h:
7480 * lread.c:
7481 * keyboard.c:
7482 * getpagesize.h:
7483 * floatfns.c:
7484 * fileio.c:
7485 * emacs.c:
7486 * doc.c:
7487 * dispnew.c:
7488 * dired.c:
7489 * data.c:
7490 * callproc.c:
7491 * buffer.c:
7492 * README:
7493 * Makefile.in:
7494 * s/template.h:
7495 * s/msdos.h:
7496 * m/vax.h: Remove VMS support.
7497 * s/vms.h:
7498 * vlimit.h:
7499 * uaf.h:
7500 * temacs.opt:
7501 * param.h:
7502 * ioctl.h: Remove file.
7503
7504 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7505
7506 * s/ms-w32.h (MULTI_KBOARD): Remove.
7507 * xterm.c:
7508 * xselect.c:
7509 * xfns.c:
7510 * window.c:
7511 * w32term.c:
7512 * w32fns.c:
7513 * terminal.c:
7514 * termhooks.h:
7515 * term.c:
7516 * sysdep.c:
7517 * keyboard.h:
7518 * keyboard.c:
7519 * frame.h:
7520 * frame.c:
7521 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7522 * config.in: Regenerate.
7523
7524 2008-07-30 Jason Rumney <jasonr@gnu.org>
7525
7526 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
7527
7528 * w32font.c (w32font_encode_char): Leave as unicode if in range.
7529 (w32font_open_internal): Get unicode version of textmetrics.
7530 Don't enable or disable glyph indices here.
7531 (w32font_open): Disable use of glyph indices.
7532
7533 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
7534
7535 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
7536
7537 * minibuf.c (Vread_buffer_function): Doc fix.
7538
7539 2008-07-30 John Paul Wallington <jpw@pobox.com>
7540
7541 * minibuf.c (read_buffer_completion_ignore_case): New var.
7542 (Fread_buffer): Use it.
7543
7544 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
7545
7546 * systty.h (sensemode): Remove empty #if. Remove reference to
7547 BSD_TERMIOS, unused.
7548
7549 * sysdep.c: Remove reference to DGUX.
7550 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
7551
7552 * config.in: Regenerate.
7553
7554 2008-07-30 Jason Rumney <jasonr@gnu.org>
7555
7556 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
7557
7558 2008-07-29 Jason Rumney <jasonr@gnu.org>
7559
7560 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
7561 is populated.
7562 (uniscribe_encode_char): Always use uniscribe.
7563 Avoid using context if cache is populated.
7564
7565 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
7566
7567 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
7568 open menu.
7569
7570 * gtkutil.c (menu_nav_ended): Remove.
7571 (create_menus): Remove signal connect for menu_nav_ended.
7572
7573 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
7574
7575 * xdisp.c (redisplay_window): Check return value of
7576 compute_window_start_on_continuation_line before forcing a window
7577 start.
7578
7579 2008-07-28 Jason Rumney <jasonr@gnu.org>
7580
7581 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
7582
7583 * w32term.c (w32_enable_unicode_output, cleartype_active):
7584 Remove obsolete display options.
7585 (x_draw_glyph_string_background): Don't use old cleartype_active
7586 workaround.
7587 (w32_initialize): Remove cleartype_active initialization.
7588 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
7589
7590 2008-07-28 Andreas Schwab <schwab@suse.de>
7591
7592 * lisp.h (init_weak_hash_tables, syms_of_font)
7593 (xd_read_queued_messages, syms_of_dbusbind): Declare.
7594 (remove_hash_entry): Don't declare.
7595 * eval.c (maybe_call_debugger): Make static and move before use.
7596 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
7597 * xdisp.c: Include "gtkutil.h" if USE_GTK.
7598 * xterm.h (x_set_frame_alpha): Declare.
7599
7600 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
7601
7602 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
7603 (create_menus): Connect selection-done to menu_nav_ended.
7604
7605 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7606
7607 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
7608 Set Vx_resource_name to a fallback. Replace read of 'buffered'
7609 parameter with read of 'alpha' one.
7610 (Qns_frame_parameter): Remove.
7611 * nsselect.m (selection-coding-system)
7612 (next-selection-coding-system, Vselection_coding_system)
7613 (Vnext_selection_coding_system): Drop.
7614
7615 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7616
7617 * nsfns.m (do-applescript, do_applescript): Rename to
7618 ns-do-applescript, ns_do_applescript, and move within file.
7619
7620 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7621
7622 Remove support for Mac Carbon.
7623 * mactoolbox.c:
7624 * macterm.h:
7625 * macterm.c:
7626 * macselect.c:
7627 * macmenu.c:
7628 * macgui.h:
7629 * macfns.c:
7630 * mac.c: Remove file.
7631 * s/darwin.h:
7632 * m/intel386.h:
7633 * xfaces.c:
7634 * xdisp.c:
7635 * window.c:
7636 * tparam.c:
7637 * termhooks.h:
7638 * termcap.c:
7639 * term.c:
7640 * syssignal.h:
7641 * sysselect.h:
7642 * sysdep.c:
7643 * process.c:
7644 * lread.c:
7645 * lisp.h:
7646 * keyboard.c:
7647 * image.c:
7648 * fringe.c:
7649 * frame.h:
7650 * frame.c:
7651 * fontset.c:
7652 * font.h:
7653 * font.c:
7654 * fns.c:
7655 * fileio.c:
7656 * emacs.c:
7657 * dispnew.c:
7658 * dispextern.h:
7659 * config.in:
7660 * atimer.c:
7661 * Makefile.in: Remove code for Carbon.
7662
7663 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7664
7665 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
7666
7667 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7668
7669 * macterm.h (kCGBitmapByteOrder32Host): New define for
7670 non-universal SDKs.
7671
7672 * image.c (mac_create_cg_image_from_image, image_load_image_io)
7673 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7674
7675 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
7676 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7677
7678 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
7679
7680 * w32inevt.c: Include dispextern.h.
7681
7682 2008-07-26 Andreas Schwab <schwab@suse.de>
7683
7684 * print.c (print_object): Fix off-by-one in last change.
7685
7686 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
7687
7688 * term.c (syms_of_term): Don't initialize default_orig_pair,
7689 default_set_foreground and default_set_background on Windows.
7690
7691 2008-07-25 Jason Rumney <jasonr@gnu.org>
7692
7693 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
7694 ScriptItemize. Clean up return value checking. Remove unused
7695 variables.
7696 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
7697 shaping engine.
7698
7699 * w32font.c (w32font_has_char): Handle the case where we can't
7700 determine the script for a character.
7701
7702 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
7703
7704 * term.c (syms_of_term): Initialize default_orig_pair,
7705 default_set_foreground, and default_set_background.
7706
7707 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7708 clash (bug#86).
7709 (getloadavg): Callers changed.
7710
7711 * image.c (svg_load_image): Fix last change.
7712 (svg_load_image): Use rsvg_handle_get_dimensions to check that
7713 image size is valid. Use g_object_unref instead of deprecated
7714 rsvg_handle_free to free rsvg handle.
7715 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7716
7717 2008-07-25 Jason Rumney <jasonr@gnu.org>
7718
7719 * w32font.c (w32font_encode_char): Encode characters outside BMP as
7720 surrogates before looking up glyph index.
7721 (w32font_text_extents): Encode as surrogates if falling back to
7722 functions that need UTF-16 wide chars.
7723
7724 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
7725 BMP as surrogates before looking up glyph index.
7726
7727 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
7728
7729 * image.c (svg_load_image): Check for failure in return value of
7730 rsvg_handle_get_pixbuf. Free rsvg handle when done.
7731
7732 2008-07-25 Jason Rumney <jasonr@gnu.org>
7733
7734 * w32font.c (Fx_select_font): Reverse sense of second arg.
7735
7736 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
7737
7738 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
7739 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
7740
7741 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
7742 (PURESIZE): Use it.
7743
7744 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7745
7746 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
7747 * m/alpha.h (TEXT_END):
7748 * m/ibmrs6000.h (TEXT_END):
7749 * m/macppc.h (TEXT_END):
7750 * s/darwin.h (TEXT_END):
7751 * s/msdos.h (TEXT_END): Remove, unused.
7752 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
7753 * s/cygwin.h: Remove comment.
7754
7755 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
7756 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
7757 * m/intel386.h (DOT_GLOBAL_START):
7758 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
7759 (USG): Remove, file not used on USG platforms.
7760
7761 * Makefile.in (HAVE_X11): Remove empty #else.
7762
7763 2008-07-24 Andreas Schwab <schwab@suse.de>
7764
7765 * fileio.c (Finsert_file_contents): Properly adjust undo list
7766 after format conversion.
7767
7768 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
7769
7770 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
7771 (menu_nav_ended): Remove.
7772 (create_menus): Remove signal connect for menu_nav_ended.
7773 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
7774 create_menus.
7775 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
7776
7777 2008-07-23 Jason Rumney <jasonr@gnu.org>
7778
7779 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
7780 with opened font.
7781 (w32font_open): Set font type to gdi.
7782
7783 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
7784
7785 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
7786
7787 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
7788 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
7789 defines it.
7790 * unexec.c (ADDR_CORRECT): Define unconditionally.
7791
7792 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
7793
7794 * unexec.c: Remove code depending on !COFF and USG, the file is
7795 not used for such systems.
7796
7797 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
7798 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
7799 (LD_SWITCH_SYSTEM_1): Remove, update users.
7800
7801 * s/darwin.h (DATA_END):
7802 * m/intel386.h (DATA_END):
7803 * m/ibmrs6000.h (DATA_END):
7804 * m/alpha.h (DATA_END): Remove, unused.
7805
7806 * config.in: Regenerate.
7807 * s/ms-w32.h (subprocesses): Define unconditionally.
7808 * s/template.h (subprocesses): Update comment.
7809 * s/vms.h (subprocesses):
7810 * s/usg5-4.h (subprocesses):
7811 * s/hpux10-20.h (subprocesses):
7812 * s/gnu-linux.h (subprocesses):
7813 * s/cygwin.h (subprocesses):
7814 * s/bsd-common.h (subprocesses):
7815 * s/aix4-2.h (subprocesses):
7816 * s/darwin.h (subprocesses): Do not define, defined by default now.
7817
7818 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
7819 Remove all references.
7820 (temacs): Add GNUstep specific ld flags.
7821
7822 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
7823 similarly to what X does.
7824
7825 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7826
7827 * nsfns.m (x-list-fonts): Remove.
7828 (syms_of_nsfns): Drop the x-list-fonts declaration.
7829 * nsterm.m: Get rid of remaining "//" comments.
7830
7831 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
7832
7833 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
7834
7835 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
7836 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
7837 (Fns_own_selection_internal, Fx_disown_selection_internal)
7838 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
7839
7840 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
7841 ... */' style of docstrings. Doc fixes.
7842
7843 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7844
7845 * terminfo.c (UP, BC, PC): Undo previous change.
7846
7847 * nsfns.m: Rename ns prefixed functions/variables to the
7848 corresponding x versions. Update references.
7849
7850 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7851
7852 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7853
7854 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7855
7856 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7857 Remove forwarding functions.
7858 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7859 non-static.
7860 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7861 non-static.
7862 (ns_frame_parm_handlers): Use the new names.
7863 (syms_of_nsfns): Move to the end of file.
7864
7865 * nsterm.m (syms_of_nsterm): Move to the end of file.
7866
7867 * dispnew.c (init_display): Remove code for X10.
7868
7869 2008-07-22 Jason Rumney <jasonr@gnu.org>
7870
7871 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7872 bare drive.
7873
7874 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7875
7876 * nsterm.m (syms_of_nsterm): Remove debugging println.
7877
7878 2008-07-22 David Reitter <david.reitter@gmail.com>
7879
7880 * nsfns.m (do_applescript, F_do_applescript): NS version of the
7881 Carbon implementation of the same functionality: execute arbitrary
7882 AppleScript code.
7883
7884 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7885
7886 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
7887 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
7888 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7889 (Fx_display_mm_height, Fx_display_mm_width)
7890 (Fx_display_backing_store, Fx_display_visual_class)
7891 (Fx_display_save_under, Fx_open_connection)
7892 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
7893 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
7894 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7895 (Fx_display_pixel_width, Fx_display_pixel_height)
7896 (Fx_display_usable_bounds, Fx_display_planes)
7897 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
7898 ... */' style of docstrings.
7899
7900 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
7901
7902 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
7903 on this platform.
7904 (mips):
7905 * m/iris4d.h (mips): Do not define.
7906 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
7907
7908 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
7909
7910 * image.c:
7911 * nsfns.m:
7912 * nsselect.m:
7913 * nsterm.h:
7914 * nsterm.m: Rename ns prefixed functions/variables to the
7915 corresponding x versions. Update references.
7916
7917 * m/ibms390x.h (NO_REMAP): Do not undefine.
7918
7919 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
7920
7921 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
7922
7923 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
7924 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
7925 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
7926 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7927 (Fns_display_mm_height, Fns_display_mm_width)
7928 (Fns_display_backing_store, Fns_display_visual_class)
7929 (Fns_display_save_under, Fns_open_connection)
7930 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
7931 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
7932 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7933 (Fns_display_pixel_width, Fns_display_pixel_height)
7934 (Fns_display_usable_bounds, Fx_display_planes)
7935 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7936
7937 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7938
7939 * print.c (print_object): Check print_depth before searching for
7940 circularities.
7941
7942 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
7943
7944 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7945 only sprintf.
7946
7947 2008-07-21 Kenichi Handa <handa@m17n.org>
7948
7949 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7950
7951 2008-07-20 Andreas Schwab <schwab@suse.de>
7952
7953 * syntax.c (find_start_pos, find_start_value)
7954 (find_start_value_byte, find_start_begv, find_defun_start)
7955 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7956
7957 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7958
7959 * s/sol2-3.h: Insert contents of s/sol2.h.
7960 (LD_SWITCH_SYSTEM): Remove redundant definition.
7961 * s/sol2.h: Remove, unused.
7962
7963 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7964
7965 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7966
7967 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7968
7969 * Makefile.in (ns_appdir): Fix typo in find command.
7970
7971 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7972
7973 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7974
7975 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7976 added not supported anymore.
7977
7978 * s/usg5-4-2.h (LIBS_SYSTEM):
7979 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7980
7981 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7982 * s/lynxos.h (GETPGRP_NO_ARG):
7983 * s/hpux10-20.h (NO_SIOCTL_H):
7984 * s/gnu.h (GETPGRP_NO_ARG):
7985 * s/gnu-linux.h (NO_SIOCTL_H):
7986 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7987 * s/cygwin.h (GETPGRP_NO_ARG):
7988 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7989 (C_DEBUG_SWITCH): Remove duplicate definition.
7990
7991 * m/ibms390.h: Remove boilerplate comments.
7992
7993 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7994
7995 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7996 (wait_reading_process_output): Remove code for SunOS, platform not
7997 supported anymore. Use SOLARIS2 instead of sun.
7998
7999 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8000
8001 * font.c (font_open_by_name): Under NS, default lface height to zero.
8002 (font_open_for_lface): Under NS, set size based on frame fontsize.
8003 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8004 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8005
8006 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8007
8008 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8009 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8010 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8011 YES/NO.
8012 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8013 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8014 * Makefile.in (clean): Clear out build destination dir.
8015
8016 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8017
8018 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8019 xterm, xselect.
8020 * lisp.h: Remove declaration of hash_remove.
8021 * nsgui.h: Remove redefinitions of hash_remove.
8022 * fns.c (hash_remove): Rename to hash_remove_from_table.
8023
8024 2008-07-19 Seiji Zenitani <zenitani@mac.com>
8025
8026 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8027 strdup() the family UTF8String before modifying it.
8028
8029 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8030
8031 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8032 NS_FACE_BACKGROUND with 0 instead of nil.
8033 * nsfont.m (nsfont_draw): Same.
8034
8035 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
8036
8037 * nsfns.m (ns_set_background_color): Fix crash.
8038
8039 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
8040
8041 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8042
8043 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8044
8045 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8046
8047 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8048
8049 * gtkutil.c: Include <config.h> instead of "config.h".
8050
8051 * lisp.h (Foverlay_buffer): Add EXFUN.
8052
8053 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8054 child process to complete child_setup. Undo 2005-09-21 change.
8055
8056 * s/darwin.h: Mention setsid after vfork.
8057
8058 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8059
8060 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8061 Depend on macgui.h.
8062
8063 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8064 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8065
8066 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8067 and f19.
8068 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8069
8070 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8071 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8072 Remove enumerators.
8073
8074 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8075 Check if FACE_FROM_ID returns NULL.
8076
8077 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8078
8079 * w32inevt.c (change_frame_size): Remove extern declaration.
8080 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8081 change_frame_size.
8082
8083 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8084
8085 * getloadavg.c: Revert last change (2008-07-15).
8086
8087 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8088
8089 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
8090 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
8091 from configure.
8092
8093 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8094
8095 * s/sol2.h:
8096 * s/sol2-4.h: Reorganize conditionals.
8097
8098 * ecrt0.c: Remove code depending on m68000, not used anymore.
8099
8100 * fns.c (hash_remove): Make static.
8101 * lisp.h (hash_remove): Don't prototype.
8102
8103 * m/ibmrs6000.h:
8104 * m/ibms390x.h:
8105 * m/macppc.h: Remove boilerplate comments.
8106
8107 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8108 Solaris, which does not need them.
8109
8110 * m/vax.h: Remove comments about unsupported systems.
8111
8112 * s/darwin.h: Reorganize ifdefs.
8113
8114 2008-07-17 Andreas Schwab <schwab@suse.de>
8115
8116 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8117
8118 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8119
8120 Use SDATA. Follow coding convention of placing operators at
8121 beginning of next line rather than end of previous line, and placing
8122 spaces around infix operators.
8123
8124 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8125 in case it was defined already.
8126 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8127 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8128 ns_default.
8129 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8130 Lisp_Objects.
8131 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8132 (ns_defined_color, ns_color_to_lisp): Declare.
8133 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8134 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8135 it's accepted even with USE_LISP_UNION_TYPE.
8136 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8137 (update_frame_tool_bar): Remove apparently obsolete tests for
8138 non-integerness of f->tool_bar_lines.
8139 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8140 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8141 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8142 (nsfont_open): Don't confuse NULL for Qnil.
8143 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8144 * menu.h (find_and_call_menu_selection):
8145 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8146 (find_and_return_menu_selection): Always return something.
8147 * frame.h: Include dispextern.h for Display_Info.
8148 (display_x_get_resource): Declare.
8149
8150 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8151
8152 * syntax.c: Remove stdio.h include accidentally introduced in
8153 Emacs.app commit.
8154 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8155 NS_IMPL_COCOA.
8156 * keyboard.c (handle_async_input, input_available_signal): Remove
8157 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8158
8159 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8160
8161 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8162 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8163 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8164 Use SDATA.
8165
8166 * keymap.c: Remove all NS-specific code.
8167 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8168 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8169 where_is_preferred_modifier, return a different value depending on how
8170 preferred is the binding.
8171 (where_is_internal): Adjust accordingly.
8172 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8173 Adjust to new preferred_sequence_p.
8174 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8175 * keyboard.c (parse_solitary_modifier): Not static any more.
8176 * keyboard.h (parse_solitary_modifier): Declare.
8177
8178 2008-07-16 Andreas Schwab <schwab@suse.de>
8179
8180 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8181 of easymenu.
8182
8183 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
8184
8185 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8186 that we don't move off the line.
8187
8188 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8189
8190 * keyboard.c (Qsuper): Remove.
8191 (parse_menu_item): Don't call where_is_internal specially for NS.
8192
8193 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8194
8195 * s/gnu-linux.h: Remove boilerplate comments.
8196
8197 * m/alpha.h (__ELF__): Consolidate conditions.
8198
8199 * m/m68k.h (linux): Use GNU_LINUX instead.
8200 Remove boilerplate comments.
8201
8202 * m/intel386.h: Undo refactoring from previous change.
8203 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8204 too, remove dead code.
8205 (linux): Use GNU_LINUX instead.
8206
8207 2008-07-16 Jason Rumney <jasonr@gnu.org>
8208
8209 * w32gui.h: Repeat 26 June changes lost by last change.
8210
8211 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8212
8213 * systty.h: Remove code for Aix on 386, unsupported platform.
8214
8215 * s/ms-w32.h: Remove boilerplate comments.
8216 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8217
8218 * s/gnu-linux.h (TERM): Remove support.
8219 (HAVE_SYSVIPC): Remove, unused.
8220 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8221 for this system.
8222
8223 * process.c: Remove support for IRIS, unused.
8224 Remove support for TERM, not relevant anymore.
8225
8226 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8227 used with the definition.
8228
8229 * s/aix4-2.h (static): Do not undef.
8230
8231 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8232 only used on Aix.
8233 (HAVE_SYSVIPC): Remove, unused.
8234
8235 * m/hp800.h (CANNOT_DUMP): Do not undef.
8236
8237 * m/alpha.h: Fix comment.
8238
8239 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8240 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8241 used by this configuration.
8242 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8243 * unexec.c: Remove code depending on HPUX and
8244 USG_SHARED_LIBRARIES, not used with this file. Remove code
8245 depending on IRIS, unused. Remove if 0-ed code.
8246
8247 * s/template.h: Remove comments about static.
8248
8249 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8250 Remove if 0-ed code.
8251 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8252 were the same as the default.
8253 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8254 Remove boilerplate comments.
8255 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8256 (HAVE_SYSVIPC): Remove, unused.
8257 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8258
8259 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8260 Remove boilerplate comments.
8261 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8262 Remove boilerplate comments.
8263 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8264 Remove boilerplate comments.
8265 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8266
8267 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8268 USG systems which do not use DATA_SEG_BITS.
8269 Refactor code. Remove boilerplate comments.
8270
8271 * m/ibms390.h:
8272 * m/m68k.h:
8273 * s/bsd-common.h:
8274 * s/cygwin.h:
8275 * s/darwin.h:
8276 * s/freebsd.h:
8277 * s/gnu.h:
8278 * s/msdos.h: Remove boilerplate comments.
8279
8280 * m/iris4d.h: Remove boilerplate comments and code for systems that
8281 do not use this file.
8282 (IRIS_4D): Remove, unused.
8283
8284 * m/mips.h: Remove boilerplate comments and code for systems that
8285 do not use this file.
8286 (SIGN_EXTEND_CHAR):
8287 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8288 * unexmips.c: Remove file, unused.
8289
8290 * editfns.c (Fuser_full_name): Replace the only use of
8291 USER_FULL_NAME with its value.
8292 * config.in: Regenerate.
8293
8294 2008-07-16 David Reitter <david.reitter@gmail.com>
8295
8296 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8297 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8298
8299 2008-07-16 Glenn Morris <rgm@gnu.org>
8300
8301 * emacs.c (system-type): Doc fix.
8302
8303 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8304
8305 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8306 If the cache doesn't work, let's fix it, rather than work around it.
8307
8308 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8309
8310 * Makefile.in: Correct additions for nsfont.o in last commit.
8311 * nsfont.m: New file (forgot last commit).
8312
8313 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8314
8315 * callproc.c (set_initial_environment): Initialize
8316 Vprocess_environment under CANNOT_DUMP (fixes crash when
8317 batch-compiling for bootstrap).
8318
8319 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8320 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8321
8322 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8323 fix crash due to different init order.
8324
8325 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8326
8327 Changes and additions for NeXTstep windowing system (Cocoa and
8328 GNUstep) support.
8329
8330 * Makefile.in:
8331 * config.in: Support defines and build commands for NS port.
8332 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8333 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8334 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8335 windowing.
8336 (struct face): Add synth_ital field.
8337 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8338 (init_display): Initialize Vinitial_window_system to "ns" when so
8339 compiled.
8340 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8341 (display_arg): Use under NS.
8342 (main): Under NS, allocate autorelease pool and handle command line
8343 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8344 (standard_args): Add NS-specific args.
8345 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8346 * font.c (DEFAULT_ENCODING): New variable.
8347 (font_find_for_lface): Use it.
8348 (syms_of_font): Load syms_of_nsfont under NS.
8349 * font.h: Declare nsfont_driver when compiled under NS.
8350 * fontset.c: When compiling under NS, include nsterm.h.
8351 (fontset_from_font): Autoconstruct fontset under NS.
8352 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8353 symbol, document and use it.
8354 (do_switch_frame): When for_deletion under Cocoa, add
8355 Fraise_frame(Qnil).
8356 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8357 (x_get_arg): Allow "yes" and "no" as boolean values.
8358 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8359 Qright under Cocoa.
8360 (focus-follows-mouse): Default to 0 under NS.
8361 * frame.h (enum output_method): Add output_ns.
8362 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8363 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8364 (FRAME_WINDOW_P): NS-specific definition.
8365 * fringe.c (max_used_fringe_bitmap): Make public.
8366 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8367 (getloadavg): Use NeXT code under descendant OS's.
8368 * image.c (includes and header section, x_create_bitmap_from_data)
8369 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8370 (image_background_transparent, x_clear_image_1)
8371 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8372 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8373 (x_to_xcolors, x_from_xcolors, x_disable_image)
8374 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8375 other GUIs, including XPM support using code originally written for
8376 Carbon GUI.
8377 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8378 using NS API.
8379 (image_ascent): Use font metrics macros instead of direct struct field
8380 access.
8381 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8382 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8383 Also, handle NS as GTK for menu bar purposes.
8384 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8385 toolkit where they differ.
8386 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8387 use cachelist, still needed under NS.
8388 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8389 (struct widget_value): Define it here for menu.c.
8390 * keymap.c (includes): Include modifier internals.
8391 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8392 NS.
8393 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8394 support for preferring sequences using certain modifiers, specified by
8395 the FIRSTONLY argument.
8396 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8397 under NS GNUstep implementation.
8398 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8399 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8400 * menu.c: Include nsterm.h under NS.
8401 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8402 (free_menubar_widget_tree_value, update_submenu_strings)
8403 (find_and_call_menu_selection): Treat NS as X and NT.
8404 (find_and_return_menu_selection): New function, used for popup menus.
8405 * nsgui.h:
8406 * nsterm.h:
8407 * nsfns.m:
8408 * nsimage.m:
8409 * nsmenu.m:
8410 * nsselect.m:
8411 * nsterm.m: New files.
8412 * process.c (wait_reading_process_output): Under NS, call ns_select()
8413 instead of plain select().
8414 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8415 beginning of buffer.
8416 * sysselect.h (init_process): Rename when compiling under Cocoa to
8417 avoid name conflict.
8418 * termhooks.h (display_info): Add ns_display_info to union.
8419 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8420 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8421 COCOA environment.
8422 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8423 unexec() signature. (Note, this will dump, but the resulting file
8424 crashes; unexosx is used instead; keeping around for reference and
8425 possible aid in getting dump working under GNUstep.)
8426 * w32gui.h (button_type, widget_value): Remove definitions (now in
8427 keyboard.h).
8428 * window.c: Include nsterm.h when compiling under NS.
8429 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8430 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8431 other GUI windowing systems.
8432 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8433 GTK.
8434 (x_consider_frame_title): Under NS, set icon type and frame
8435 modified-state indicator; use ns_set_name_as_filename() when using
8436 formatted title.
8437 (update_window_cursor): Make public when compiling under NS.
8438 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8439 (hourglass_atimer, Vhourglass_delay
8440 * xfaces.c (header section, init_frame_faces, clear_font_table)
8441 (defined_color, unload_color, x_face_list_fonts)
8442 (prepare_face_for_display): Add NS support parallel to other GUIs.
8443 Emulate GCs like other non-X GUIs.
8444 (split_font_name): Don't lowercase font name under NS.
8445 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8446 under NS.
8447 * s/darwin.h: Add support for compilation under NS.
8448
8449 2008-07-15 Jason Rumney <jasonr@gnu.org>
8450
8451 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8452 (w32_show_hourglass): Rename from show_hourglass.
8453 (w32_hide_hourglass): Rename from hide_hourglass.
8454 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8455 (Vhourglass_delay): Declare extern.
8456 (hourglass_started): Remove.
8457
8458 * xdisp.c (Vhourglass_delay): Remove static.
8459 (hourglass_started, start_hourglass, cancel_hourglass):
8460 Don't include these versions on WINDOWSNT.
8461
8462 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8463
8464 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8465 variables (formerly in xfns.c).
8466 (show_hourglass, hide_hourglass): New prototypes (same).
8467 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8468 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8469 in xfns.c).
8470 (syms_of_xdisp): Declare/initialize display-hourglass,
8471 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8472 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8473 formerly in xfns.c.
8474 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8475 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8476 (start_hourglass, cancel_hourglass): Remove.
8477 (show_hourglass, hide_hourglass): Remove prototypes and static
8478 modifiers.
8479 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8480 hourglass_atimer, hourglass_shown_p declaration/initialization.
8481 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8482 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8483 (start_hourglass, cancel_hourglass): Remove.
8484 (show_hourglass, hide_hourglass): Remove prototypes and static
8485 modifiers.
8486 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8487 hourglass_atimer, hourglass_shown_p declaration/initialization.
8488 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8489 (DEFAULT_HOURGLASS_DELAY): Remove.
8490 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8491 hourglass_shown_p declaration/initialization.
8492
8493 2008-07-14 Jason Rumney <jasonr@gnu.org>
8494
8495 * w32fns.c (w32_get_arg): Remove wrapper function.
8496 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8497 directly.
8498 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8499
8500 2008-07-14 Kenichi Handa <handa@m17n.org>
8501
8502 * xfont.c (xfont_open): Add workaround for X's bug.
8503
8504 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8505
8506 * fontset.c: Include <stdio.h> unconditionally.
8507
8508 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
8509
8510 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8511 for filtering.
8512
8513 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8514
8515 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8516
8517 * m/macppc.h:
8518 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8519
8520 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8521 (SPECIAL_EMACS_INT):
8522 * m/ia64.h (SPECIAL_EMACS_INT):
8523 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8524 * s/gnu.h (NLIST_STRUCT):
8525 * s/aix4-2.h (X11R5_INHIBIT_I18N):
8526 * s/gnu-linux.h (LINUX):
8527 * s/msdos.h (HAVE_FACES):
8528 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
8529
8530 * systty.h:
8531 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
8532 anymore.
8533
8534 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
8535
8536 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
8537 always defined as int.
8538
8539 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
8540 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
8541 * s/gnu-linux.h (HAVE_WAIT_HEADER):
8542 * s/freebsd.h (HAVE_WAIT_HEADER):
8543 * s/bsd-common.h (HAVE_UNION_WAIT):
8544 * s/aix4-2.h (HAVE_WAIT_HEADER):
8545 * m/mips.h (HAVE_UNION_WAIT):
8546 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
8547 (COFF, static): Do not define, they are undefined later in the file.
8548
8549 * process.c (update_status): Don't use a union.
8550 (status_convert):
8551 (sigchld_handler): Use int instead of WAITTYPE.
8552
8553 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
8554
8555 * indent.c (Fvertical_motion): Restore hscroll before moving to
8556 goal column.
8557
8558 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8559
8560 * lisp.h: Remove left over code.
8561
8562 2008-07-11 Andreas Schwab <schwab@suse.de>
8563
8564 * lisp.h: Fix logic in last change.
8565
8566 * menu.h: New file.
8567 * menu.c: Include it.
8568 * xmenu.c: Likewise.
8569 * Makefile.in: Update dependencies.
8570
8571 2008-07-11 Kenichi Handa <handa@m17n.org>
8572
8573 * fontset.c (fontset_from_font): Cancel the previous change.
8574
8575 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8576
8577 * lisp.h:
8578 * w32heap.c:
8579 * emacs.c:
8580 * alloc.c: Replace all references of NO_UNION_TYPE with
8581 USE_LISP_UNION_TYPE.
8582
8583 * m/xtensa.h (NO_UNION_TYPE):
8584 * m/vax.h (NO_UNION_TYPE):
8585 * m/template.h (NO_UNION_TYPE):
8586 * m/sparc.h (NO_UNION_TYPE):
8587 * m/mips.h (NO_UNION_TYPE):
8588 * m/macppc.h (NO_UNION_TYPE):
8589 * m/m68k.h (NO_UNION_TYPE):
8590 * m/iris4d.h (NO_UNION_TYPE):
8591 * m/intel386.h (NO_UNION_TYPE):
8592 * m/ibms390x.h (NO_UNION_TYPE):
8593 * m/ibms390.h (NO_UNION_TYPE):
8594 * m/ibmrs6000.h (NO_UNION_TYPE):
8595 * m/ia64.h (NO_UNION_TYPE):
8596 * m/hp800.h (NO_UNION_TYPE):
8597 * m/arm.h (NO_UNION_TYPE):
8598 * m/amdx86-64.h (NO_UNION_TYPE):
8599 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
8600 defining it the same.
8601
8602 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
8603
8604 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
8605
8606 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8607
8608 * fileio.c:
8609 * sysdep.c
8610 * systty.h:
8611 * m/ibmrs6000.h:
8612 * m/iris4d.h:
8613 * s/aix4-2.h:
8614 * s/freebsd.h:
8615 * s/gnu-linux.h:
8616 * s/hpux10-20.h:
8617 * s/hpux11.h:
8618 * s/netbsd.h:
8619 * s/sol2-3.h:
8620 * s/sol2-4.h:
8621 * s/sol2.h:
8622 * s/usg5-4.h:
8623 * s/vms.h: Remove references to unused variables.
8624
8625 2008-07-10 Andreas Schwab <schwab@suse.de>
8626
8627 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
8628 pattern before matching the generic family.
8629
8630 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8631
8632 * unexec.c:
8633 * s/vms.h:
8634 * s/usg5-4-2.h:
8635 * s/sol2-5.h:
8636 * s/freebsd.h:
8637 * s/darwin.h: Remove dead code.
8638
8639 * m/template.h:
8640 * m/sparc.h:
8641 * m/mips.h:
8642 * m/m68k.h:
8643 * m/iris4d.h:
8644 * m/intel386.h:
8645 * m/ibms390x.h:
8646 * m/ibms390.h:
8647 * m/ia64.h:
8648 * m/hp800.h:
8649 * m/arm.h:
8650 * m/amdx86-64.h: Remove dead code and references to unused
8651 and compiler defined symbols.
8652
8653 * unexmips.c:
8654 * unexelf.c: Remove references to desupported systems.
8655
8656 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
8657
8658 * m/powermac.h: Remove boilerplate comments.
8659 (NO_REMAP): Remove unused definition.
8660
8661 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
8662 define them.
8663
8664 2008-07-10 Kenichi Handa <handa@m17n.org>
8665
8666 * xfont.c (xfont_open): Log the reason of failure.
8667
8668 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
8669
8670 * fontset.c (fontset_get_font_group):
8671 * font.c (font_check_otf): Specify argument types.
8672
8673 2008-07-09 Kenichi Handa <handa@m17n.org>
8674
8675 * coding.c (detect_coding_utf_8): Set detect_info->found only when
8676 non-ASCII char is found.
8677
8678 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
8679 (reorder_font_vector): Change the arg preferred_family to font.
8680 Prefer the spec matching with font.
8681 (fontset_get_font_group): New function.
8682 (fontset_find_font): Change the format of an element of a realized
8683 fontset. Use fontset_get_font_group.
8684 (fontset_font): Try the current fontset, the default fontset, the
8685 fallbacks of the current fontset, and the fallbacks of the default
8686 fontset in this order.
8687 (face_for_char): Delete the shortcut to use the current font.
8688 (fontset_from_font): Don't set fonts for Latin in the fontset.
8689
8690 * font.h (font_make_object, font_match_p): Adjust prototypes.
8691
8692 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
8693
8694 * font.c (font_make_object): New arg entity and pixelsize.
8695 (font_check_otf_features, font_check_otf): New functions.
8696 (font_match_p): Check :lang, :script, and :otf properties.
8697
8698 * xfont.c (xfont_open): Adjust it for the change of
8699 font_make_object.
8700 (xfont_text_extents): Fix initial setting of metrics.
8701
8702 * ftfont.c (struct ftfont_info): New member index, delete member
8703 fc_charset_idx. Make the member order compatible with struct
8704 xftfont_info.
8705 (fc_charset_table): Change charset names to registry names.
8706 (ftfont_pattern_entity): Delete the args registry and
8707 fc_charset_idx. Change the value of :font-entity property
8708 to (FONTNAME . INDEX). Always set :registry property to
8709 `iso10646-1'.
8710 (struct ftfont_cache_data): New struct.
8711 (ftfont_lookup_cache): New arg for_face.
8712 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
8713 (ftfont_driver): Set the member otf_capability.
8714 (ftfont_get_charset): Adjust it for the change of
8715 fc_charset_table.
8716 (OTF_TAG_SYM): New macro.
8717 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
8718 for the change of fc_charset_table.
8719 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
8720 ftfont_pattern_entity. Add FC_INDEX to objset.
8721 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
8722 and ftfont_pattern_entity.
8723 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
8724 font_make_object, struct ftfont_info.
8725 (ftfont_has_char): Use ftfont_get_fc_charset.
8726 (ftfont_otf_features, ftfont_otf_capability): New functions.
8727 (ftfont_shape): Use ftfont_get_otf.
8728 (ftfont_text_extents): Fix initial setting of metrics.
8729
8730 * xftfont.c (struct xftfont_info): New member ft_size. Make the
8731 member order compatible with struct ftfont_info.
8732 (xftfont_open): Add FC_CHARSET to the pattern. Set
8733 xftfont_info->ft_size. Don't unlock the face. Check BDF
8734 properties if appropriate.
8735 (xftfont_close): Unlock the face.
8736 (xftfont_anchor_point, xftfont_shape): Deleted.
8737 (syms_of_xftfont): Don't set members anchor_point and shape of
8738 xftfont_driver.
8739
8740 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
8741 font_make_object.
8742
8743 * w32font.c (w32font_open): Adjust it for the change of
8744 font_make_object.
8745 (w32font_open_internal): Don't set properties of font_object here.
8746
8747 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
8748
8749 * macfns.c (x_create_tip_frame):
8750 * w32fns.c (x_create_tip_frame):
8751 * xfns.c (x_create_tip_frame): Pass parameter argument to
8752 face-set-after-frame-default.
8753
8754 * xfaces.c (Finternal_merge_in_global_face): Save merged
8755 attributes for the default face back into the face vector.
8756
8757 2008-07-08 Andreas Schwab <schwab@suse.de>
8758
8759 * fontset.h: Declare fontset_from_font. Don't declare
8760 new_fontset_from_font and fontset_from_font_name.
8761 * xterm.c: Include "fontset.h".
8762 * Makefile.in (xterm.o): Update dependencies.
8763
8764 2008-07-08 Glenn Morris <rgm@gnu.org>
8765
8766 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
8767 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
8768
8769 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
8770
8771 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
8772 (x_set_frame_parameters): Don't bind it.
8773
8774 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
8775
8776 * w32fns.c (map_w32_filename): Declare extern.
8777
8778 2008-07-07 Jason Rumney <jasonr@gnu.org>
8779
8780 * w32term.c (WS_EX_LAYERED): Define if not already.
8781
8782 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
8783
8784 * xfaces.c (set_font_frame_param): Don't try to set the font
8785 parameter if it is still unspecified in the lface.
8786
8787 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
8788
8789 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
8790 face if it didn't already exist.
8791
8792 * xdisp.c (try_window_id): Give up if word-wrapping is on.
8793
8794 2008-07-05 Andreas Schwab <schwab@suse.de>
8795
8796 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
8797
8798 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
8799
8800 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
8801 word-wrapping.
8802 (IT_DISPLAYING_WHITESPACE): New macro.
8803 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
8804 when word-wrapping. Simplify word-wrapping logic. Use correct
8805 pixel positions when saving copies of the iterator.
8806 (display_line): Use proper wrap point if the last character on a
8807 line was preceded by whitespace.
8808
8809 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
8810
8811 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
8812
8813 2008-07-04 Kenichi Handa <handa@m17n.org>
8814
8815 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
8816
8817 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
8818
8819 2008-07-02 Jason Rumney <jasonr@gnu.org>
8820
8821 * xfns.c (syms_of_xfns): Only define x-select-font when both
8822 HAVE_FREETYPE and USE_GTK.
8823
8824 * xdisp.c (next_element_from_display_vector): Move assignment out
8825 of if statement.
8826
8827 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
8828
8829 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
8830
8831 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
8832 (syms_of_fileio): Initialize and export them.
8833 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
8834
8835 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
8836 (Fsystem_move_file_to_trash): New function.
8837 (syms_of_w32fns): Export it to lisp.
8838
8839 2008-07-01 Jason Rumney <jasonr@gnu.org>
8840
8841 * w32font.c (w32font_text_extents): Don't count overhang as part
8842 of width.
8843
8844 2008-06-30 Miles Bader <miles@gnu.org>
8845
8846 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8847 Add `avoid_cursor_p' field.
8848
8849 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8850 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8851 (append_glyph, append_composite_glyph, produce_image_glyph)
8852 (append_stretch_glyph): Initialize avoid_cursor_p.
8853 (get_it_property): Rename from `get_line_height_property'.
8854 (x_produce_glyphs): Use get_it_property.
8855 (handle_line_prefix, push_display_prop): New functions.
8856 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8857 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8858 New variables.
8859 (syms_of_xdisp): Initialize them.
8860
8861 2008-06-30 Kenichi Handa <handa@m17n.org>
8862
8863 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8864 XftDefaultSubstitute (they are called in XftFontMatch).
8865 (xftfont_open): Fix args to ftfont_font_format.
8866
8867 * ftfont.c (fc_charset_table): New member lang.
8868 (ftfont_resolve_generic_family): New arg pattern.
8869 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
8870 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8871 (ftfont_open): Fix args to ftfont_font_format.
8872 (ftfont_font_format): New arg filename.
8873
8874 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
8875
8876 * xfaces.c (Finternal_merge_in_global_face): If default face was
8877 modified, realize it again. Update the font face attribute.
8878
8879 2008-06-29 Jason Rumney <jasonr@gnu.org>
8880
8881 * w32term.c (x_set_frame_alpha): Fix logic.
8882
8883 2008-06-29 Kenichi Handa <handa@m17n.org>
8884
8885 * fontset.c (Finternal_char_font): Return font-object instead of
8886 font-name.
8887
8888 * composite.c (get_composition_id): Fix the width calculation for TAB.
8889
8890 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
8891
8892 * indent.c (Fvertical_motion): Properly handle float column arg.
8893
8894 2008-06-28 Jason Rumney <jasonr@gnu.org>
8895
8896 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
8897 (pfnSetLayeredWindowAttributes): New function pointer.
8898 (w32_initialize): Initialize it when supported.
8899 (x_set_frame_alpha): New function.
8900
8901 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
8902 (w32_frame_parm_handlers): Set alpha handler.
8903
8904 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8905
8906 2008-06-27 Jason Rumney <jasonr@gnu.org>
8907
8908 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
8909 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
8910 (w32_to_x_charset, x_to_w32_charset)
8911 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8912 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8913 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8914 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8915 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8916 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8917 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
8918 (Qw32_charset_unicode): Remove.
8919 (syms_of_w32fns): Update for above changes.
8920
8921 * w32font.c (w32_to_x_charset, x_to_w32_charset)
8922 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8923 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8924 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8925 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8926 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8927 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8928 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
8929 (syms_of_w32font): Update for above changes.
8930
8931 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8932
8933 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8934 removed #if.
8935 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8936
8937 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
8938 Eli Zaretskii <eliz@gnu.org>
8939
8940 * makefile.w32-in (LOCAL_FLAGS):
8941 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8942
8943 * sysdep.c (_spawnlp, _getpid):
8944 Declare with explicit _cdecl instead of _CRTAPI1.
8945
8946 * editfns.c (Fget_internal_run_time):
8947 Check for WINDOWSNT with #ifdef, not #if.
8948
8949 2008-06-26 Jason Rumney <jasonr@gnu.org>
8950
8951 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8952
8953 * w32term.c (x_draw_glyph_string_foreground)
8954 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8955 Use FONT_HANDLE macro.
8956 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8957
8958 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8959 (uniscribe_encode_char): Use FONT_HANDLE macro.
8960
8961 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8962 (w32font_text_extents): Use precast w32_font.
8963 (w32font_close): Free cached metrics.
8964 (w32font_open_internal): Allocate space for name on stack.
8965
8966 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
8967
8968 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8969
8970 2008-06-26 Jason Rumney <jasonr@gnu.org>
8971
8972 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8973 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8974
8975 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
8976
8977 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8978
8979 2008-06-26 Jason Rumney <jasonr@gnu.org>
8980
8981 * w32bdf.c, w32bdf.h: Remove obsolete files.
8982
8983 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8984
8985 * w32gui.h: Don't include w32bdf.h.
8986 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8987 Remove obsolete font support.
8988
8989 * w32font.h (struct w32font_info): Remove compat_w32_font.
8990 Add hfont member.
8991 (FONT_COMPAT): Remove obsolete macro.
8992
8993 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8994 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8995 (w32font_open_internal): Remove compat code. Set new hfont member.
8996 (Fx_select_font): Use new hfont member.
8997
8998 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8999 (uniscribe_encode_char): Use new hfont member.
9000
9001 * w32term.c (x_draw_glyph_string_foreground)
9002 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9003 (x_draw_glyph_string): Use metrics in w32font_info.
9004
9005 2008-06-26 Kenichi Handa <handa@m17n.org>
9006
9007 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9008
9009 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9010
9011 * unexnext.c:
9012 * m/ews4800.h:
9013 * m/hp9000s300.h:
9014 * m/ibm370aix.h:
9015 * m/mips-siemens.h:
9016 * m/ncr386.h:
9017 * m/next.h:
9018 * m/pmax.h:
9019 * m/powerpcle.h:
9020 * m/tandem-s2.h:
9021 * s/386bsd.h:
9022 * s/bsd386.h:
9023 * s/bsd4-1.h:
9024 * s/bsd4-2.h:
9025 * s/bsdos2-1.h:
9026 * s/bsdos2.h:
9027 * s/bsdos3.h:
9028 * s/bsdos4.h:
9029 * s/nextstep.h:
9030 * s/ultrix4-3.h:
9031 * s/usg5-0.h:
9032 * s/usg5-2-2.h:
9033 * s/usg5-2.h:
9034 * s/usg5-4-3.h:
9035 * s/ux4800.h:
9036 * s/uxpds.h:
9037 * s/uxpv.h: Remove support for obsolete systems.
9038 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
9039 Remove, insert contents in s/hpux10-20.h.
9040 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9041 Remove, insert contents in s/aix4-2.h.
9042 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9043 * s/bsd4-3.h: Rename to ...
9044 * s/bsd-common.h: ... this.
9045 * data.c:
9046 * doc.c:
9047 * ecrt0.c:
9048 * emacs.c:
9049 * fileio.c:
9050 * floatfns.c:
9051 * keyboard.c:
9052 * mem-limits.h:
9053 * print.c:
9054 * process.c:
9055 * sysdep.c:
9056 * syssignal.h:
9057 * systty.h:
9058 * syswait.h:
9059 * term.c:
9060 * unexec.c:
9061 * unexelf.c:
9062 * unexhp9k800.c:
9063 * m/hp800.h:
9064 * m/ibmrs6000.h:
9065 * m/mips.h:
9066 * m/vax.h:
9067 * s/darwin.h:
9068 * s/freebsd.h:
9069 * s/gnu.h:
9070 * s/ms-w32.h:
9071 * s/msdos.h:
9072 * s/netbsd.h:
9073 * s/template.h: Remove references to obsolete variables.
9074
9075 * Makefile.in: Add dependencies for all unexec files.
9076 (admindir): Remove unused variable.
9077 (UNEXEC_SRC): Remove references.
9078
9079 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
9080
9081 * xfns.c (x_default_font_parameter): If Xft is available, first
9082 try Monospace-12 for the default font.
9083
9084 2008-06-25 Jason Rumney <jasonr@gnu.org>
9085
9086 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9087
9088 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9089
9090 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9091
9092 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9093
9094 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
9095
9096 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9097 <scroll-conservatively>: Fix typo in docstring.
9098
9099 * xselect.c (Fx_send_client_event): Doc fix.
9100
9101 2008-06-25 Kenichi Handa <handa@m17n.org>
9102
9103 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9104
9105 * font.c (font_parse_fcname): Remove unused variables.
9106 (font_sort_entites): Delete the arg SPEC. Caller changed.
9107 Fix for the case of ! best_only.
9108 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9109
9110 * lisp.h (Fstring_to_unibyte): EXFUN it.
9111
9112 * character.h (str_to_unibyte): Extern it.
9113
9114 * character.c (str_to_unibyte): New function.
9115
9116 * fns.c (Fstring_to_unibyte): New function.
9117 (syms_of_fns): Defsubr it.
9118
9119 2008-06-24 Kenichi Handa <handa@m17n.org>
9120
9121 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9122 DPI too.
9123 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9124
9125 2008-06-24 Andreas Schwab <schwab@suse.de>
9126
9127 * Makefile.in (${lispsource}loaddefs.el): Rename from
9128 ../lisp/loaddefs.el.
9129 (bootstrap-clean): Do what distclean does but don't remove
9130 Makefile.
9131 (distclean): Depend on bootstrap-clean and remove Makefile.
9132
9133 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
9134
9135 * buffer.h (struct buffer): New member word_wrap.
9136
9137 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9138 word-wrap.
9139 (init_buffer_once): Initialize them.
9140
9141 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9142 line_wrap enum possessing three possible values.
9143
9144 * termopts.h: Replace truncate_partial_width_windows with
9145 Vtruncate_partial_width_windows.
9146
9147 * dispnew.c (direct_output_for_insert): Avoid direct output when
9148 inserting a space with word wrap on.
9149
9150 * indent.c (compute_motion): Obey integer values of
9151 truncate-partial-width-windows.
9152
9153 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9154 replacing truncate_partial_width_windows.
9155 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9156 truncate only if the window width is below that integer.
9157 (start_display, resize_mini_window, produce_stretch_glyph)
9158 (display_string, move_it_in_display_line_to): Use line_wrap.
9159 (back_to_previous_visible_line_start, reseat_1): Reset
9160 string_from_display_prop_p.
9161 (display_line): Extend default face to end of line when wrapping.
9162
9163 2008-06-24 Kim F. Storm <storm@cua.dk>
9164
9165 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9166 to wrap continued lines at word boundaries.
9167
9168 2008-06-24 Jason Rumney <jasonr@gnu.org>
9169
9170 * font.c (Ffont_face_attributes): Multiply pixel size before point
9171 conversion to avoid multiplying rounding error.
9172
9173 2008-06-23 Jason Rumney <jasonr@gnu.org>
9174
9175 * w32term.c (x_draw_glyph_string_background)
9176 (x_draw_glyph_string): Remove old bdf font code.
9177
9178 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9179
9180 2008-06-22 Kenichi Handa <handa@m17n.org>
9181
9182 * font.c (font_find_for_lface): Try the adstyle specified in
9183 the property of LFACE_FONT of LFACE (if any).
9184
9185 2008-06-21 Seiji Zenitani <zenitani@mac.com>
9186 Ryo Yoshitake <ryo@shiftmode.net>
9187
9188 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9189
9190 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9191
9192 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9193 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9194 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9195 (witness-emacs): Remove.
9196 (lisp, shortlisp): Move loaddefs.el earlier.
9197 (mostlyclean): Forget about witness-emacs.
9198
9199 2008-06-22 Glenn Morris <rgm@gnu.org>
9200
9201 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9202 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9203
9204 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9205
9206 * Makefile.in (PRECOMP): Remove.
9207 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9208 (witness-emacs): Run `compile-first'.
9209 (.el.elc): Use the new compile-onefile target.
9210
9211 2008-06-21 Kenichi Handa <handa@m17n.org>
9212
9213 * xftfont.c (xftfont_open): Handle QCembolden only when
9214 FC_EMBOLDEN is defined.
9215
9216 2008-06-21 Andreas Schwab <schwab@suse.de>
9217
9218 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9219 (.el.elc): Likewise.
9220
9221 2008-06-21 Miles Bader <miles@gnu.org>
9222
9223 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9224 build dir, not the lisp source dir.
9225
9226 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9227
9228 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9229 (bootstrapclean): Remove.
9230 (.el.elc): New rule.
9231 (PRECOMP): New var.
9232 (../lisp/subdirs.el): Remove.
9233 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9234 (witness-emacs): New target.
9235 (mostlyclean): Remove witness-emacs as well.
9236 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9237 Add witness-emacs dependency.
9238
9239 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
9240
9241 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9242 defined by the font.
9243
9244 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9245
9246 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9247 (bootstrap-clean): New target that keeps TAGS around.
9248 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9249 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9250
9251 2008-06-20 Jason Rumney <jasonr@gnu.org>
9252
9253 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9254 Remove obsolete font code.
9255
9256 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9257 to determine language support.
9258
9259 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9260
9261 * sysdep.c (cfsetspeed): New fun extracted from the code.
9262 (cfmakeraw): Move before first use.
9263
9264 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9265
9266 * sysdep.c (cfmakeraw): Provide fallback implementation.
9267 (serial_configure): Provide fallback implementation of cfsetspeed.
9268
9269 2008-06-20 Kenichi Handa <handa@m17n.org>
9270
9271 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9272 the pattern.
9273
9274 * fontset.c (fontset_from_font): Copy font_spec before changing
9275 the elements.
9276
9277 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9278
9279 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9280
9281 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9282 for explicit `font' parameters.
9283
9284 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9285
9286 2008-06-19 Kenichi Handa <handa@m17n.org>
9287
9288 * frame.c: Include <ctype.h>.
9289 (x_set_font_backend): Allow spacing characters in the X resource
9290 for FontBackend.
9291
9292 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9293
9294 * w32fns.c, xfns.c (Qfont_param): New var.
9295 (syms_of_w32fns): Initialize it.
9296 (x_default_font_parameter): Record explicit `font' into
9297 `font-parameter'.
9298
9299 2008-06-18 Kenichi Handa <handa@m17n.org>
9300
9301 * font.c (font_parse_xlfd): Fix previous change.
9302 (font_parse_fcname): Don't use :fc-unknown-spec.
9303 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9304 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9305 (font_add_log): Prepend the driver name to the resulting fonts.
9306
9307 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9308 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9309 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9310
9311 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9312 (QCembolden): New variables.
9313 (syms_of_xftfont): DEFSYM them.
9314 (xftfont_open): Call XftFontMatch. Don't trust the result of
9315 XftTextExtents8 if the pixel_size is less than 5.
9316
9317 2008-06-18 Andreas Schwab <schwab@suse.de>
9318
9319 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9320 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9321
9322 2008-06-18 Jason Rumney <jasonr@gnu.org>
9323
9324 * w32font.c (w32font_list, w32font_match): Add logging.
9325
9326 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9327
9328 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
9329
9330 * font.c (font_parse_fcname): Store divider characters for
9331 unknown-spec list. For known key symbols, intern using correct
9332 symbol name.
9333
9334 2008-06-17 Kenichi Handa <handa@m17n.org>
9335
9336 * xfaces.c (realize_default_face): If the frame is not on window
9337 system, set the fontset of face to nil.
9338
9339 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9340
9341 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9342
9343 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
9344
9345 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9346 (build_font_name_from_vector): Delete externs.
9347
9348 * xfaces.c (struct font_name): Don't declare.
9349
9350 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9351
9352 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9353
9354 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
9355
9356 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9357
9358 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
9359
9360 * font.c (Ffont_spec): Fix usage in docstring.
9361 (Ffont_face_attributes): Doc fix.
9362
9363 2008-06-16 Andreas Schwab <schwab@suse.de>
9364
9365 * font.c (Ffont_face_attributes): Fix definition.
9366
9367 2008-06-16 Jason Rumney <jasonr@gnu.org>
9368
9369 * font.h (font_style_symbolic_from_value): Remove.
9370
9371 * font.c (font_style_symbolic_from_value): Remove.
9372 (font_style_symbolic): Revert to pre 2008-06-13 version.
9373
9374 * w32font.c (w32_to_fc_weight): New function.
9375 (w32font_full_name, logfont_to_fcname): Use it.
9376
9377 2008-06-16 Kenichi Handa <handa@m17n.org>
9378
9379 * font.c (font_check_object): Delete it.
9380 (font_clear_cache): Check if a font-object is alive.
9381 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9382 font-object to nil.
9383 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9384 (font_at): Don't call font_check_object.
9385 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9386
9387 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9388
9389 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9390
9391 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
9392
9393 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9394
9395 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
9396
9397 * font.c (font_parse_fcname): Only one decimal point.
9398 (font_unparse_fcname): Handle data in family and foundry indices
9399 as symbols, not strings.
9400 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9401
9402 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9403
9404 * font.h (font_unparse_gtkname): Add prototype.
9405
9406 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9407
9408 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9409
9410 2008-06-15 Andreas Schwab <schwab@suse.de>
9411
9412 * font.c (font_update_drivers): Fix crash when no drivers match.
9413
9414 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9415
9416 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9417 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9418
9419 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9420
9421 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9422
9423 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9424
9425 * process.c (Fserial_process_configure, Fprocess_send_eof):
9426 Use EQ to compare Lisp_Objects.
9427
9428 2008-06-13 Jason Rumney <jasonr@gnu.org>
9429
9430 * w32fns.c (Fw32_select_font): Remove old font API function.
9431
9432 * w32font.c (logfont_to_fcname): New function.
9433 (Fx_select_font): New font dialog function compatible with
9434 GTK/fontconfig version.
9435
9436 * font.c (font_style_symbolic_from_value): New function.
9437 (font_style_symbolic): Use it.
9438
9439 * font.h (font_style_symbolic_from_value): Declare new function.
9440
9441 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
9442
9443 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9444 <font-width-table>: Fix typos in docstrings.
9445
9446 2008-06-13 Daniel Engeler <engeler@gmail.com>
9447
9448 These changes add serial port access.
9449 * process.c: Add HAVE_SERIAL.
9450 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9451 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9452 (list_processes_1, select_wrapper, Fstop_process)
9453 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9454 (status_notify): Modify to handle serial processes.
9455 [HAVE_SERIAL] (Fserial_process_configure)
9456 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9457 New functions.
9458 * process.h (struct Lisp_Process): Add `type'.
9459 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9460 New functions.
9461 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9462 serial ports.
9463 (serial_open, serial_configure): New functions.
9464 * w32.h: Add FILE_SERIAL.
9465 (struct _child_process): Add ovl_read, ovl_write.
9466
9467 2008-06-13 Kenichi Handa <handa@m17n.org>
9468
9469 * dispextern.h (enum lface_attribute_index): New member
9470 LFACE_FOUNDRY_INDEX.
9471
9472 * font.c (font_score): Delete arg alternate_families. Check only
9473 weight, slant, width, and size. Ignore the difference of alias
9474 style symbols.
9475 (font_sort_entites): Adjust for the above change. Reflect the
9476 order of font-driver to scores.
9477 (font_list_entities): Don't check alternate_familes here.
9478 (font_clear_prop): Handle foundry.
9479 (font_update_lface): Don't parse "foundry-family" form here.
9480 Handle FONT_FOUNDRY_INDEX.
9481 (font_find_for_lface): Likewise. Handle alternate families here.
9482 If registry is nil, try iso8859-1 and ascii-0.
9483 (font_open_for_lface): Pay attention to size in ENTITY.
9484 (font_open_by_name): Simplify by calling font_load_for_lface.
9485 (free_font_driver_list): Delete it.
9486 (font_update_drivers): Preserve the order of backends.
9487 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9488 of font_score and font_sort_entites.
9489 (font_update_sort_order): Likewise.
9490
9491 * xfaces.c (LFACE_FOUNDRY): New macro.
9492 (check_lface_attrs): Check foundry.
9493 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9494 (merge_face_vectors): Check foundry.
9495 (merge_face_ref): Likewise.
9496 (Finternal_set_lisp_face_attribute): Likewise.
9497 (x_update_menu_appearance): Likewise.
9498 (Finternal_get_lisp_face_attribute): Likewise.
9499 (lface_hash): Likewise.
9500 (lface_same_font_attributes_p): Likewise.
9501 (x_supports_face_attributes_p): Likewise.
9502 (tty_supports_face_attributes_p): Likewise.
9503 (Finternal_set_alternative_font_family_alist): Intern strings.
9504 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9505 (realize_default_face): Set LFACE_FOUNDRY (lface).
9506
9507 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9508 font-driver at first.
9509
9510 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9511
9512 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9513
9514 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9515
9516 2008-06-12 Jim Meyering <meyering@redhat.com>
9517
9518 Make unexec_free handle NULL the same way free does.
9519 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9520
9521 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9522
9523 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9524 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9525 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
9526 (WEAK_ALIAS): Simplify.
9527 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
9528 when searching a unibyte buffer.
9529
9530 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
9531
9532 * xfns.c (Fx_select_font): Rename from x-font-dialog.
9533
9534 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
9535
9536 * w32font.c: Include ctype.h.
9537
9538 2008-06-11 Jason Rumney <jasonr@gnu.org>
9539
9540 * w32font.c (w32font_encode_char): Detect missing glyphs that are
9541 misreported as space.
9542 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
9543 as aliases for registry iso10646-1.
9544
9545 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
9546
9547 * buffer.c (clone_per_buffer_values): Skip `name'.
9548
9549 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
9550
9551 * font.c (font_parse_fcname): Fix last change; accept decimal
9552 points in font size.
9553
9554 2008-06-10 Jason Rumney <jasonr@gnu.org>
9555
9556 * w32uniscribe.c (add_opentype_font_name_to_list):
9557 Skip non unicode fonts.
9558
9559 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
9560
9561 * xfns.c (Fx_font_dialog): New function.
9562
9563 * gtkutil.c (xg_dialog_response_cb): Rename from
9564 xg_file_response_callback.
9565 (pop_down_dialog): Rename from pop_down_file_dialog.
9566 (xg_get_file_name): Callers changed.
9567 (xg_get_font_name): New function.
9568
9569 * gtkutil.h (xg_get_font_name): Insert prototype.
9570
9571 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9572
9573 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
9574 x_underline_minimum_display_offset.
9575 (syms_of_xdisp): Declare it here rather than in xterm.c.
9576 * dispextern.h (underline_minimum_offset): Declare it.
9577 * w32term.c (x_draw_glyph_string): Use it.
9578 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
9579 (syms_of_xterm): Don't declare it any more.
9580 (x_draw_glyph_string): Adjust to the new name.
9581
9582 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
9583
9584 * xterm.c (x_underline_minimum_display_offset): New var.
9585 (x_draw_glyph_string): Use it.
9586 (syms_of_xterm): Declare it.
9587
9588 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
9589
9590 * font.c (font_parse_fcname): Accept GTK-style font names too.
9591
9592 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9593
9594 * dired.c (file_name_completion): Don't return t if the match is exact
9595 but with different capitalization.
9596 * minibuf.c (Ftry_completion): Simplify.
9597
9598 * window.c (Vwindow_point_insertion_type): New var.
9599 (set_window_buffer): Use it.
9600 (syms_of_window): Init and export it to Lisp.
9601
9602 2008-06-10 Kenichi Handa <handa@m17n.org>
9603
9604 * font.h (font_intern_prop): Prototype adjusted.
9605
9606 * font.c (font_intern_prop): New arg force_symbol.
9607 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
9608 Adjust for the change of font_intern_prop.
9609
9610 * ftfont.c (ftfont_pattern_entity):
9611 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
9612 (w32_registry):
9613 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9614 the change of font_intern_prop.
9615
9616 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
9617
9618 * w32menu.c (digest_single_submenu): Declare extern.
9619
9620 2008-06-09 Jason Rumney <jasonr@gnu.org>
9621
9622 * w32term.c (x_make_frame_visible): Use alternate restore flags.
9623
9624 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
9625 (parse_single_submenu): Remove.
9626 (digest_single_submenu): Remove.
9627 (syms_of_w32menu): Don't initialise variables that have moved
9628 to menu.c.
9629 (set_frame_menubar): Sync with version in xmenu.c.
9630 (w32_menu_show): Sync with xmenu_show in xmenu.c.
9631
9632 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
9633 Make static again.
9634
9635 2008-06-09 Jason Rumney <jasonr@gnu.org>
9636
9637 Changes to w32 files related to the move of common menu code
9638 to menu.c on 2008-06-08 by Chong Yidong.
9639
9640 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
9641 defs to w32gui.h.
9642 (single_keymap_panes, push_menu_item, push_menu_pane):
9643 Make globally visible.
9644
9645 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
9646 (local_free, malloc_widget_value, free_widget_value)
9647 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
9648 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
9649 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
9650 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
9651 (menu_items, menu_items_allocated, menu_items_used)
9652 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
9653 (init_menu_items, finish_menu_items, discard_menu_items)
9654 (grow_menu_items, push_submenu_start, push_submenu_end)
9655 (push_left_right_boundary, push_menu_pane, push_menu_item)
9656 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
9657 (free_menubar_widget_tree_value, parse_single_submenu)
9658 (update_submenu_strings): Remove functions.
9659 (xmalloc_widget_value): Remove and declare extern.
9660
9661 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
9662 (OBJ1): Build it.
9663
9664 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
9665 (local_heap, local_alloc, local_free, malloc_widget_value)
9666 (free_widget_value): Define here.
9667
9668 2008-06-09 Kenichi Handa <handa@m17n.org>
9669
9670 * font.h (Qascii_0): Extern it.
9671
9672 * font.c (Qascii_0): New variable.
9673 (syms_of_font): DEFSYM it.
9674 (font_open_by_name): If the registry "iso8859-1" fails, try also
9675 "ascii-0".
9676
9677 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
9678
9679 2008-06-08 Kenichi Handa <handa@m17n.org>
9680
9681 * .gdbinit (xfont): New command.
9682
9683 2008-06-08 Andreas Schwab <schwab@suse.de>
9684
9685 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
9686 * Makefile.in (menu.o): Update dependencies.
9687
9688 * Makefile.in (obj): Always add menu.o.
9689 * emacs.c (main): Always call syms_of_menu.
9690 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
9691
9692 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
9693
9694 * Makefile.in: Compile menu.c.
9695
9696 * lisp.h: Declare syms_of_menu.
9697
9698 * emacs.c (main): Call syms_of_menu.
9699
9700 * keyboard.h: Relocate platform-independent menu definitions from
9701 xmenu.c.
9702
9703 * menu.c: New file. Relocate platform-independent menu
9704 definitions from xmenu.c. Suggested by Adrian Robert.
9705
9706 * xmenu.c: Remove platform-independent menu definitions.
9707 (menu_items menu_items_inuse, menu_items_allocated)
9708 (menu_items_used, menu_items_n_panes)
9709 (menu_items_submenu_depth): Move to keyboard.h.
9710 (init_menu_items, finish_menu_items, unuse_menu_items)
9711 (discard_menu_items, restore_menu_items, save_menu_items)
9712 (grow_menu_items, push_submenu_start, push_submenu_end)
9713 (push_left_right_boundary, push_menu_pane, push_menu_item)
9714 (keymap_panes, single_keymap_panes, single_menu_item)
9715 (list_of_panes, list_of_items, find_and_call_menu_selection)
9716 (xmalloc_widget_value, free_menubar_widget_value_tree)
9717 (parse_single_submenu, digest_single_submenu)
9718 (update_submenu_strings): Move to menu.c.
9719
9720 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
9721
9722 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
9723
9724 2008-06-06 Miles Bader <miles@gnu.org>
9725
9726 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
9727 face, not frame default.
9728
9729 2008-06-05 Martin Rudalics <rudalics@gmx.at>
9730
9731 * window.c (pop_up_windows, pop_up_frames)
9732 (display_buffer_reuse_frames, Vpop_up_frame_function)
9733 (Vdisplay_buffer_function, Veven_window_heights)
9734 (Vspecial_display_buffer_names, Vspecial_display_regexps)
9735 (Vspecial_display_function, Vsame_window_buffer_names)
9736 (Vsame_window_regexps, split_height_threshold)
9737 (Vsplit_window_preferred_function): Move those vars to window.el.
9738 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
9739 (Fdisplay_buffer): Move those functions to window.el.
9740 (syms_of_window): Remove corresponding declarations.
9741 (display_buffer): New function.
9742 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
9743 * dispnew.c (Flast_nonminibuf_frame): New function.
9744 * buffer.c (Fpop_to_buffer): Move to window.el.
9745
9746 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9747
9748 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
9749
9750 2008-06-05 Kenichi Handa <handa@m17n.org>
9751
9752 * coding.c (detect_coding): Fix previous change.
9753 (detect_coding_system): Likewise.
9754
9755 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9756
9757 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
9758
9759 * keymap.c (Vminibuffer_local_filename_must_match_map):
9760 Rename from Vminibuffer_local_must_match_filename_map.
9761 (syms_of_keymap):
9762 * minibuf.c (Fcompleting_read): Adjust accordingly.
9763 * commands.h: Rename declaration as well.
9764
9765 2008-06-05 Kenichi Handa <handa@m17n.org>
9766
9767 * font.c (Ffont_spec): Don't use font_parse_family_registry for
9768 family name.
9769 (Ffont_put): Likewise.
9770
9771 * fontset.c (fontset_find_font): Call font_open_for_lface with the
9772 current font-spec.
9773
9774 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
9775 is unspecified.
9776
9777 * xfaces.c (realize_x_face): If the font-related face attributes
9778 are the same as those of default face, realize a new fontset from
9779 default->fontset.
9780 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
9781
9782 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9783
9784 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
9785 (move_it_in_display_line): New wrapper.
9786
9787 * window.c (window_scroll_pixel_based_preserve_x)
9788 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
9789 (window_scroll_pixel_based, window_scroll_line_based):
9790 Use them to preserve column positions.
9791 (syms_of_window): Initialize them.
9792
9793 * indent.c (Fvertical_motion): Extend first arg to allow passing an
9794 (HPOS . VPOS) pair.
9795
9796 * dispextern.h (move_it_in_display_line): Declare.
9797
9798 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
9799
9800 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
9801 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
9802 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
9803
9804 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
9805
9806 * window.c (Fset_window_parameter): Doc fix.
9807 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
9808
9809 2008-06-04 Joakim Verona <joakim@verona.se>
9810
9811 * window.h (struct window): Add new member window_parameters.
9812
9813 * window.c (Fwindow_parameters, Fwindow_parameter)
9814 (Fset_window_parameter): New defuns.
9815 (syms_of_window): Defsubr the new defuns.
9816 (make_window): Initialize window_parameters to nil.
9817
9818 2008-06-04 John Paul Wallington <jpw@pobox.com>
9819
9820 * eval.c (Fdefmacro): Doc fix.
9821
9822 2008-06-04 Kenichi Handa <handa@m17n.org>
9823
9824 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9825 Be sure to call setup_coding_system when we find a proper coding system.
9826 (detect_coding_system): Fix handling of coding->head_ascii.
9827
9828 2008-06-03 Andreas Schwab <schwab@suse.de>
9829
9830 * font.c (font_prop_validate_spacing): Fix last change.
9831
9832 2008-06-03 Kenichi Handa <handa@m17n.org>
9833
9834 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
9835 (font_parse_fcname): Fix handling of unknown key.
9836
9837 * xfont.c (xfont_list): Try an alias.
9838
9839 * charset.c (char_charset): Return NULL if the arg charset_list is
9840 specified and C doesn't belong to any of them.
9841
9842 2008-06-02 Chip Coldwell <coldwell@redhat.com>
9843
9844 * font.c (font_pixel_size): Don't take cdr of an integer.
9845
9846 2008-06-02 Jim Meyering <meyering@redhat.com>
9847
9848 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9849 * alloc.c (xfree): Return right away for a NULL arg.
9850 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9851 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9852 * mac.c (create_apple_event_from_event_ref): Likewise.
9853 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9854 Likewise.
9855 * doprnt.c (doprnt1): Likewise.
9856 * frame.c (frame): Likewise.
9857 * keyboard.c (wipe_kboard): Likewise.
9858 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9859 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9860 * term.c (tty_default_color_capabilities, maybe_fatal)
9861 (delete_tty): Likewise.
9862 * w16select.c (string): Likewise.
9863 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9864 * w32bdf.c (w32_free_bdf_font): Likewise.
9865 * w32fns.c (w32_unload_font): Likewise.
9866 * w32font.c (w32font_close): Likewise.
9867 * window.c (size_window): Likewise.
9868 * xselect.c (receive_incremental_selection): Likewise.
9869 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9870 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9871 * w32.c (stat): Likewise.
9872
9873 Remove useless if-before-free tests.
9874 * editfns.c (Fset_time_zone_rule): Likewise.
9875 * lread.c (nosuffix): Likewise.
9876 * ralloc.c (get_bloc): Likewise.
9877 * regex.c (reg_free): Likewise.
9878 * xftfont.c (xftfont_open, xftfont_close): Likewise.
9879 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
9880 * xsmfns.c (smc_save_yourself_CB): Likewise.
9881
9882 2008-06-02 Kenichi Handa <handa@m17n.org>
9883
9884 * font.c (font_find_for_lface): Handle float font size.
9885 (font_open_for_lface): Likewise.
9886
9887 * xfaces.c (x_supports_face_attributes_p): Check face->font before
9888 comparing the properties.
9889
9890 2008-06-01 Jason Rumney <jasonr@gnu.org>
9891
9892 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
9893 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
9894 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
9895 Don't add empty script list.
9896 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
9897
9898 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
9899
9900 * Makefile.in (dot, dotdot): Remove, update users.
9901 ".." has been used elsewhere in the file for a long time.
9902 (LIBXT_STATIC): Remove conditional based on unused variable.
9903
9904 2008-06-01 Miles Bader <miles@gnu.org>
9905
9906 * xfaces.c (Vface_remapping_alist): New variable.
9907 (syms_of_xfaces): Initialize it.
9908 (enum named_merge_point_kind): New type.
9909 (struct named_merge_point): Add `named_merge_point_kind' field.
9910 (push_named_merge_point): Make cycle detection respect different
9911 named-merge-point kinds.
9912 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
9913 Remove face-name alias resolution.
9914 (lface_from_face_name): New definition using
9915 `lface_from_face_name_no_resolve'.
9916 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
9917 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
9918 (get_lface_attributes): New definition that layers face-remapping on
9919 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
9920 (lookup_basic_face): New function.
9921 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
9922 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
9923 `get_lface_attributes'.
9924 (face_at_buffer_position): Use `lookup_basic_face' to lookup
9925 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
9926 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
9927
9928 * xdisp.c (init_iterator): Pass base_face_id through
9929 `lookup_basic_face' when we actually use it as a face-id.
9930 (handle_single_display_prop): Use `lookup_basic_face' to lookup
9931 DEFAULT_FACE_ID.
9932
9933 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9934 lookup the initial face-id.
9935
9936 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9937
9938 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
9939
9940 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9941 (Fremove_text_properties): Fix typos in docstrings.
9942
9943 2008-05-31 Kenichi Handa <handa@m17n.org>
9944
9945 * font.c (font_list_entities): Fix the car part of data to be
9946 stored in the cache.
9947
9948 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9949
9950 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9951
9952 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9953 Add a `test' argument so another predicate than `equal' can be used.
9954 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9955 (map_char_table): Remove unused vars `c' and `i'.
9956 * lisp.h (Foptimize_char_table): Adjust declaration.
9957 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9958
9959 2008-05-30 Kenichi Handa <handa@m17n.org>
9960
9961 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9962 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9963 defined.
9964
9965 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9966
9967 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9968 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9969 frame-local settings for the same variable.
9970
9971 2008-05-30 Kenichi Handa <handa@m17n.org>
9972
9973 * fontset.c (Ffont_info): Move to font.c.
9974 (syms_of_fontset): Delete defsubr of Sfont_info.
9975
9976 * font.c (font_style_to_value, font_score): Delete casting of the
9977 args to xstcasecmp.
9978 (register_font_driver): Increment num_font_drivers only when
9979 registering the driver globally.
9980 (Ffont_info): Move from fontset.c. Handle a font object too.
9981 (syms_of_font): Defsubr Sfont_info.
9982
9983 2008-05-29 Kenichi Handa <handa@m17n.org>
9984
9985 * coding.h (enum define_coding_utf8_arg_index): New enum.
9986 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9987 coding_attr_utf_bom.
9988 (enum utf_bom_type): Rename from utf_16_bom_type.
9989 (struct utf_16_spec): Adjust for the above change.
9990 (struct coding_system): Add utf_8_bom in `spec' union.
9991
9992 * coding.c (CODING_UTF_8_BOM): New macro.
9993 (enum coding_category): Delete coding_category_utf_8, add
9994 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9995 coding_category_utf_8_sig.
9996 (CATEGORY_MASK_UTF_8): Delete it.
9997 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9998 (CATEGORY_MASK_UTF_8_SIG): New macros.
9999 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10000 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10001 CATEGORY_MASK_UTF_8_SIG.
10002 (CATEGORY_MASK_UTF_8): New macro.
10003 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10004 (detect_coding_utf_8): Check BOM.
10005 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10006 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10007 (encode_coding_utf_16): Likewise.
10008 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10009 (detect_coding, detect_coding_system): Handle utf-8-auto.
10010 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10011 (syms_of_coding): Fix setting up of Vcoding_category_table.
10012
10013 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10014
10015 * process.c (Faccept_process_output): If `millisec' is non-nil,
10016 `seconds' default to 0.
10017 (wait_reading_process_output): Also return non-nil if we read output
10018 from a non-running process.
10019
10020 2008-05-29 Jason Rumney <jasonr@gnu.org>
10021
10022 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10023 `raster' specified.
10024 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10025 in the uniscribe backend, but disallow any font that has no
10026 unicode subrange support.
10027
10028 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
10029
10030 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10031 Fix typos in docstrings.
10032
10033 2008-05-29 Kenichi Handa <handa@m17n.org>
10034
10035 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10036 (Fx_family_fonts): Set frame correctly.
10037
10038 2008-05-28 Jason Rumney <jasonr@gnu.org>
10039
10040 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10041
10042 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10043
10044 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10045 calling build_annotations.
10046
10047 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
10048
10049 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10050 (Fencode_coding_string):
10051 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10052 <latin-extra-code-table>: Fix typos in docstrings.
10053 (syms_of_coding) <coding-system-alist>: Doc fix.
10054 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10055
10056 2008-05-28 Kenichi Handa <handa@m17n.org>
10057
10058 * fontset.c (Ffont_info): Don't call font_close_object.
10059
10060 * font.c (font_parse_family_registry): Use Ffont_put to validate
10061 foundry and family.
10062 (font_delete_unmatched): Don't check spacing.
10063 (font_list_entities): Add spacing to the spec to list fonts.
10064
10065 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10066 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10067
10068 * coding.c (encode_coding_raw_text): Fix previous change.
10069 (encode_coding_object): When the dst_object is a buffer and is
10070 different from src_object, move gap to PT.
10071
10072 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
10073
10074 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10075
10076 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10077
10078 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10079 all branches. Compute it differently.
10080
10081 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10082
10083 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
10084
10085 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10086 into "else if () ... else ...".
10087
10088 2008-05-27 Jason Rumney <jasonr@gnu.org>
10089
10090 * w32font.c (w32font_open_internal): Determine if glyph indices
10091 are likely to work here.
10092
10093 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
10094
10095 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10096 draw overlap glyphs with appropriate highlighting.
10097
10098 2008-05-27 Kenichi Handa <handa@m17n.org>
10099
10100 * xfont.c (xfont_open): Fix calculation of font->average_width.
10101
10102 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10103
10104 * casefiddle.c (casify_object): Try to guess better whether the
10105 argument is a byte or a char.
10106
10107 2008-05-26 Andreas Schwab <schwab@suse.de>
10108
10109 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10110 Always send multiples of format size.
10111
10112 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10113
10114 2008-05-26 Jason Rumney <jasonr@gnu.org>
10115
10116 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10117 (compute_metrics): Don't set failure if we just cleared the cache.
10118 (w32_weight_table): Remove unused variable.
10119 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10120 backwards compatibility.
10121
10122 2008-05-25 Kenichi Handa <handa@m17n.org>
10123
10124 * w32term.c (x_draw_glyph_string):
10125 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10126
10127 * xfaces.c: Delete unused function prototypes.
10128 (xstrlwr, font_frame): Delete them.
10129 (clear_face_cache): Delete unused variable.
10130
10131 * xftfont.c (xftfont_open): Delete unused variable.
10132 If underline_thickness is not 1, adjust underline_position.
10133
10134 * ftxfont.c (ftxfont_open): Delete unused variable.
10135
10136 * fontset.c (face_for_char): Optimize for the case of no charset
10137 property.
10138
10139 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10140 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10141 (otf_open, font_otf_capability, generate_otf_features)
10142 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10143 Comment out by surrounding "#if 0" and "#endif" for the moment.
10144 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10145 (syms_of_font): Codes for accessing above commented out.
10146
10147 2008-05-24 Eli Zaretskii <eliz@gnu.org>
10148
10149 * w32proc.c: Include dispextern.h.
10150
10151 * w32.c: Include dispextern.h.
10152
10153 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
10154
10155 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10156 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10157 Fix typos in docstrings.
10158
10159 2008-05-23 Jason Rumney <jasonr@gnu.org>
10160
10161 * xsmfns.c: Remove includes that are already included by config.h.
10162
10163 2008-05-23 Kenichi Handa <handa@m17n.org>
10164
10165 * charset.c (Qemacs, charset_emacs): New variables.
10166 (char_charset): Fix for non-Unicode characters.
10167 (syms_of_charset): Define charset_emacs.
10168
10169 * w32term.c (x_draw_glyph_string): Be sure to update
10170 s->underline_thickness and s->underline_position. Be sure to draw
10171 underline within the current line area.
10172
10173 * xterm.c (x_draw_glyph_string): Be sure to update
10174 s->underline_thickness and s->underline_position. Be sure to draw
10175 underline within the current line area.
10176
10177 * fontset.c: Delete unused variables and add casting for char *
10178 throughout the file.
10179 (fontset_font): Try the fallback fonts of the current fontset
10180 before consulting the default fontset.
10181
10182 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10183
10184 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10185
10186 2008-05-22 Jason Rumney <jasonr@gnu.org>
10187
10188 * font.c: Don't include strings.h.
10189
10190 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10191
10192 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10193 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10194 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10195 to call xstrcasecmp.
10196
10197 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10198
10199 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10200
10201 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10202
10203 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10204
10205 2008-05-22 Kenichi Handa <handa@m17n.org>
10206
10207 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10208
10209 * font.c (font_prop_validate_style): Adjust for the format
10210 change of font_style_table.
10211
10212 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10213 two args.
10214
10215 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10216 two args.
10217
10218 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10219
10220 * minibuf.c (keys_of_minibuf): Delete.
10221 * lisp.h (keys_of_minibuf): Delete.
10222 * emacs.c (main): Don't call keys_of_minibuf.
10223
10224 2008-05-22 Kenichi Handa <handa@m17n.org>
10225
10226 * ftfont.c (ftfont_resolve_generic_family): Rename from
10227 ftfont_list_generic_family. Return a single family for each
10228 generic family.
10229 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10230 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10231 Call font_add_log.
10232 (ftfont_match): Call font_add_log.
10233
10234 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10235 (FONT_DEBUG): Define it.
10236 (font_add_log): Extern it.
10237 (font_assert): Rename from xassert.
10238
10239 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10240 (xfont_list_family): Call font_add_log.
10241 (xfont_match): Likewise.
10242 (memq_no_quit): Delete.
10243
10244 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10245 call of Ffont_xlfd_name.
10246
10247 * xfaces.c (struct table_entry, slant_table, weight_table)
10248 (swidth_table): Move to font.c.
10249
10250 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10251 xassert are changed to font_assert. Delete many unused variables.
10252 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10253 New variables.
10254 (struct table_entry): Move from xfaces.c and modified.
10255 (weight_table, slant_table, width_table): Move from xfaces.c and
10256 contents adjusted for the change of struct table_entry.
10257 (font_style_to_value, font_style_symbolic): Adjust for the
10258 format change of font_style_table.
10259 (font_parse_family_registry): Don't overwrite existing foundry and
10260 family of font_spec.
10261 (font_score): Fix calculation of diff for sizes.
10262 (font_sort_entites): Call font_add_log.
10263 (font_delete_unmatched): Return a newly created list.
10264 (font_list_entities): Fix previous change. Call font_add_log.
10265 (font_matching_entity, font_open_entity, font_close_entity):
10266 Call font_add_log.
10267 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10268 (Finternal_set_font_style_table): Delete.
10269 (BUILD_STYLE_TABLE): New macro.
10270 (build_style_table): New function.
10271 (Vfont_log, font_log_env_checked): New variables.
10272 (font_add_log): New function.
10273 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10274 Declare Lisp variables "font-weight-table", "font-slant-table",
10275 "font-width-table", and "font-log". Initialize font_style_table.
10276
10277 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10278
10279 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10280
10281 2008-05-21 Seiji Zenitani <zenitani@mac.com>
10282 Ryo Yoshitake <ryo@shiftmode.net>
10283
10284 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10285 (Vframe_alpha_lower_limit): New variable.
10286 (x_set_alpha): New function.
10287
10288 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10289
10290 * xfns.c (x-create-frame, Qalpha):
10291 Initialize the frame parameter `alpha'.
10292 * xterm.c (OPAQUE, OPACITY): New.
10293 (x_set_frame_alpha): New function.
10294 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10295
10296 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10297 * w32fns.c (w32_frame_parm_handlers): Likewise.
10298
10299 2008-05-20 Jason Rumney <jasonr@gnu.org>
10300
10301 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10302 truetype fonts to opentype list.
10303
10304 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
10305
10306 * fontset.c (Ffontset_info): Doc fix.
10307 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10308 <ignore-relative-composition>: Fix typos in docstrings.
10309
10310 * font.c (syms-of-font) <font-encoding-alist>:
10311 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10312 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10313 (Ffont_otf_alternates): Doc fixes.
10314
10315 2008-05-20 Kenichi Handa <handa@m17n.org>
10316
10317 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10318 font.h through out the file.
10319 (FONT_DRIVERS): Rename from FONTOBJ.
10320 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10321 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10322
10323 * emacs.c (main): Call syms_of_font unconditionally.
10324
10325 * font.h (find_font_encoding): Extern it.
10326
10327 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10328 fontset.c.
10329 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
10330 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10331 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10332 only when HAVE_WINDOW_SYSTEM is defined.
10333 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10334 when HAVE_WINDOW_SYSTEM is defined.
10335
10336 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10337 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10338
10339 * xfaces.c: Include font.h unconditionally.
10340 (merge_face_ref, merge_face_vectors)
10341 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10342
10343 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10344
10345 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10346 indirect_variable.
10347 * eval.c (lisp_indirect_variable): New fun.
10348 (Fuser_variable_p): Use it.
10349
10350 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10351
10352 * lisp.h (indirect_variable):
10353 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10354 Use Lisp_Symbol pointers rather than Lisp_Object.
10355 Adjust callers.
10356 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10357 To this end, change calling-convention.
10358
10359 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10360 if some non-hidden buffers are selected by string&pred.
10361
10362 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
10363
10364 * process.c (wait_reading_process_output): Always check status
10365 when in batch mode.
10366
10367 2008-05-19 Kenichi Handa <handa@m17n.org>
10368
10369 * font.c (font_list_entities): Fix handling of cache.
10370 (font_matching_entity): Likewise.
10371
10372 * ftfont.c (cs_iso8859_1): Delete.
10373 (ft_face_cache): New variable.
10374 (struct ftfont_info): New member fc_charset_idx.
10375 (ftfont_build_basic_charsets): Delete.
10376 (fc_charset_table): New variable.
10377 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10378 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10379 Callers changed.
10380 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10381 (ftfont_spec_pattern): New argument fc_charset_idx.
10382 Check registry more rigidly. Change callers.
10383 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10384 change of :font-entity property of the font.
10385
10386 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10387 property of the font.
10388
10389 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
10390
10391 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10392 (Funencodable_char_position, Fcheck_coding_systems_region)
10393 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10394 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10395 (Ffind_operation_coding_system, Fset_coding_system_priority)
10396 (Fcoding_system_eol_type): Doc fixes.
10397
10398 2008-05-17 Glenn Morris <rgm@gnu.org>
10399
10400 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10401
10402 2008-05-16 Eli Zaretskii <eliz@gnu.org>
10403
10404 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10405 and st_gid.
10406
10407 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10408 HAVE_WINDOW_SYSTEM is not defined.
10409
10410 * xfaces.c (merge_face_ref, merge_face_vectors)
10411 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10412 HAVE_WINDOW_SYSTEM is defined.
10413 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10414
10415 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10416
10417 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10418
10419 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10420
10421 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10422
10423 2008-05-15 Kenichi Handa <handa@m17n.org>
10424
10425 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10426 preference.
10427
10428 2008-05-15 Glenn Morris <rgm@gnu.org>
10429
10430 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10431
10432 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
10433
10434 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10435 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10436
10437 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10438
10439 2008-05-15 Kenichi Handa <handa@m17n.org>
10440
10441 * ftfont.c (ftfont_list): Downcase family name to check generic
10442 families.
10443
10444 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10445 font-spec for QCfont value.
10446
10447 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10448 buffer. Check the return value of it.
10449
10450 2008-05-14 Jason Rumney <jasonr@gnu.org>
10451
10452 * w32term.c (w32_get_glyph_overhangs): Remove.
10453 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10454
10455 2008-05-14 Kenichi Handa <handa@m17n.org>
10456
10457 * font.c (font_prop_validate): Make nil a valid value.
10458 (font_clear_cache): Check if the cached vector of entities is nil
10459 or not.
10460
10461 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10462
10463 * emacs.c (main_thread): Conditionalize on
10464 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10465 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10466
10467 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10468 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10469 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10470
10471 2008-05-14 Kenichi Handa <handa@m17n.org>
10472
10473 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10474 has no corresponding coding system.
10475
10476 2008-05-14 Jason Rumney <jasonr@gnu.org>
10477
10478 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10479
10480 * w32font.h (w32font_open_internal): Update declaration.
10481
10482 * w32font.c (w32font_open_internal): Change last argument from
10483 w32font_info struct to font object. Fill in font object from
10484 font_entity. Get Outline metrics if possible. Use them to
10485 calculate underline position and thickness. Use xlfd name as name
10486 property. Don't set codepage.
10487 (w32font_open): Pass font_object to w32font_open_internal. Don't
10488 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10489 (w32font_draw): Use s->font.
10490 (clear_cached_metrics): Don't clear non-existent blocks.
10491
10492 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10493 font was not found.
10494 (x_draw_glyph_string): Use underline position and thickness from font.
10495
10496 * w32uniscribe.c (uniscribe_open): Pass font_object to
10497 w32font_open_internal.
10498
10499 2008-05-14 Kenichi Handa <handa@m17n.org>
10500
10501 These changes are to delete all legacy font-handling codes, and
10502 make Emacs use only font-backends.
10503
10504 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10505 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10506
10507 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10508
10509 * charset.h (Vcharset_non_preferred_head)
10510 (Vcurrent_iso639_language): Extern them.
10511
10512 * charset.c (Vcharset_non_preferred_head): New variable.
10513 (Vcurrent_iso639_language): New variable.
10514 (syms_of_charset): Declare it as a Lisp variable.
10515 (char_charset): Don't check non preferred charsets. As a last
10516 resort, return charset_unicode.
10517 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10518
10519 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10520 conditionals. Don't check enable_font_backend. Delete all codes
10521 used only when USE_FONT_BACKEND is not defined.
10522
10523 * dispextern.h (struct glyph_string): Change type of `font' to
10524 `struct font *'.
10525 (struct glyph_string): New member underline_position and
10526 underline_thickness.
10527 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
10528 (struct face): Change type of `font' to `struct font *'. Remove
10529 members `font_name', `font_info_id'.
10530 (per_char_metric, encode_char): Delete externs.
10531 (calc_pixel_width_or_height): Adjust the prototype.
10532
10533 * emacs.c (enable_font_backend): Delete extern.
10534 (main): Don't set enable_font_backend. Don't check the command
10535 line argument "-disable-font-backend".
10536
10537 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
10538 (enum font_property_index): New members FONT_DPI_INDEX,
10539 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
10540 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
10541 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
10542 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
10543 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
10544 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
10545 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
10546 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
10547 (struct font_spec, struct font_entity): New structs.
10548 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
10549 (struct font): Many members from old "struct font_info" moved to
10550 here. Members font and entity deleted.
10551 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
10552 the new font-related objects.
10553 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
10554 (CHECK_FONT_GET_OBJECT): Likewise.
10555 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
10556 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
10557 (struct font_driver): New members case_sensitive anc check. Type
10558 of the member list and open changed.
10559 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
10560 (font_symbolic_width, font_find_object, font_get_spec)
10561 (font_set_lface_from_name): Delete extern.
10562 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
10563
10564 * font.c: Include <strings.h>.
10565 (enable_font_backend): Delete it.
10566 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
10567 (CHECK_VALIDATE_FONT_SPEC): Delete it.
10568 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
10569 (null_string): Delete it.
10570 (null_vector): Make it static.
10571 (font_family_alist): Delete it.
10572 (Qnormal): Extern it.
10573 (QCextra, QClanguage): Delete it.
10574 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
10575 (font_make_spec, font_make_entity, font_make_object)
10576 (font_intern_prop): Renamed from intern_downcase. Don't downcase
10577 the string. Callers changed.
10578 (font_pixel_size): Adjusted for the format change of font-related
10579 objects.
10580 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
10581 (font_style_to_value, font_style_symbolic): New function.
10582 (build_font_family_alist): Delete it.
10583 (font_registry_charsets): Use Fassoc_string instead of
10584 assq_no_quit.
10585 (font_prop_validate_symbol): Don't return null_string.
10586 (font_prop_validate_style): Adjusted for the change of
10587 style-related values in a font vector.
10588 (font_property_table): Delete entries for QClanguage and
10589 QCantialias, add entries for QCavgwidth.
10590 (get_font_prop_index): Delete the 2nd argument FROM.
10591 (font_prop_validate): Arguments changed.
10592 (font_put_extra): Adjusted for the change of font-related objects.
10593 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
10594 (font_parse_fcname, font_unparse_fcname)
10595 (font_prepare_composition): Likewise.
10596 (font_parse_family_registry): Renamed from font_merge_old_spec.
10597 (otf_open): Delete the 1st arg entity.
10598 (font_otf_capability): Adjusted for the above change.
10599 (font_score): New arg alternate_families. Adjusted for the change
10600 of font-related objects.
10601 (font_sort_entites): New arg best_only.
10602 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
10603 Delete them.
10604 (font_match_p): Check alternate families.
10605 (font_find_object): Delete it.
10606 (font_check_object): New function.
10607 (font_clear_cache): Adjusted for the change of font-related objects.
10608 (font_delete_unmatched): New arg.
10609 (font_list_entities): Call font_driver->list with a spec that
10610 doesn't specify style-related properties.
10611 (font_matching_entity): Arguments changed. Caller changed.
10612 (font_open_entity): Adjusted for the change of font-related objects.
10613 (font_close_object, font_has_char, font_encode_char)
10614 (font_get_name, font_get_spec): Likewise.
10615 (font_spec_from_name, font_clear_prop, font_update_lface):
10616 New functions.
10617 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
10618 (font_prepare_for_face, font_done_for_face, font_open_by_name)
10619 (font_at): Adjusted for the change of font-related objects.
10620 (font_range): New function.
10621 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
10622 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
10623 (Fcopy_font_spec, Fmerge_font_spec): New function.
10624 (Ffont_family_list): Renamed from list-families.
10625 (Finternal_set_font_style_table): Arguments changed.
10626 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
10627 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
10628 change of font-related objects.
10629 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
10630
10631 * fontset.h (struct font_info): Delete it. Most members go to
10632 struct font.
10633 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
10634 (enum FONT_SPEC_INDEX): Delete it.
10635 (font_info, list_fonts_func, load_font_func, query_font_func)
10636 (set_frame_fontset_func, find_ccl_program_func)
10637 (get_font_repertory_func, new_fontset_from_font_name): Delete
10638 externs.
10639 (fontset_from_font_name): Extern it.
10640 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
10641 (FONT_INFO_FROM_FACE): Deleted.
10642 (face_for_font): Adjust prototype.
10643
10644 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
10645 conditionals. Don't check enable_font_backend. Delete all codes
10646 used only when USE_FONT_BACKEND is not defined.
10647 (get_font_info_func, list_font_func, load_font_func)
10648 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
10649 (get_font_repertory_func): Delete them.
10650 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
10651 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
10652 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
10653 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
10654 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
10655 (fontset_compare_rfontdef): New function.
10656 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
10657 rfont-defs by qsort. Adjusted for the change of font-group vector.
10658 (load_font_get_repertory): Deleted.
10659 (fontset_find_font): Use new macros to ref/set elements of
10660 font-def and rfont-def.
10661 (fontset_font): Fix the timing of remembering that no font for C.
10662 (free_face_fontset): Do nothing if the face has no fontset.
10663 (face_suitable_for_char_p): Use new macros to ref/set elements of
10664 rfont-def.
10665 (face_for_char): Likewise. Call face_for_char with font_object.
10666 (fs_load_font): Delete. Delete #pragma surrounding it.
10667 (fs_query_fontset): Use strcasecmp instead of strcmp.
10668 (generate_ascii_font_name): Adjusted for the format change of
10669 font-spec.
10670 (Fset_fontset_font): Likewise. Use new macros to set elements of
10671 font-def.
10672 (Fnew_fontset): Use font_unparse_xlfd to generate
10673 FONTSET_ASCII (fontset).
10674 (new_fontset_from_font_name): Deleted.
10675 (fontset_from_font): Renamed from new_fontset_from_font. Check if
10676 a fontset is already created for the font. FIx updating of
10677 Vfontset_alias_alist.
10678 (fontset_ascii_font): Deleted.
10679 (Ffont_info): Adjusted for the format change of font-spec.
10680 (Finternal_char_font): Likewise.
10681 (Ffontset_info): Likewise.
10682 (syms_of_fontset): Don't check load_font_func.
10683
10684 * fns.c (internal_equal): Handle PREV_FONT.
10685
10686 * frame.h: Delete USE_FONT_BACKEND conditional.
10687
10688 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
10689 conditionals. Don't check enable_font_backend. Delete all codes
10690 used only when USE_FONT_BACKEND is not defined.
10691 (x_set_font): Call x_new_font, not x_new_fontset2.
10692 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
10693 already set for the frame.
10694
10695 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
10696 a font-entity by font_make_entity. Use font_intern_prop instead
10697 of intern_downcase. Use FONT_SET_STYLE to set a style-related
10698 font property. If a font is scalable, set avgwidth property to 0.
10699 Set font-entity property by font_put_extra.
10700 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
10701 (ffont_driver): Adjusted for the change of struct font_driver.
10702 (ftfont_spec_pattern): New function.
10703 (ftfont_list): Return a list, not vector.
10704 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
10705 (ftfont_list_family): Don't downcase names.
10706 (ftfont_free_entity): Deleted.
10707 (ftfont_open): Return a font-object. Adjusted for the change of
10708 struct font. Get underline_thickness and underline_position from
10709 font property. Don't update dpyinfo->smallest_font_height and
10710 dpyinfo->smallest_char_width.
10711 (ftfont_close): Don't free `struct font'.
10712 (ftfont_has_char): Adjusted for the format change of font-entity.
10713 (ftfont_encode_char, ftfont_text_extents): Likewise.
10714
10715 * ftxfont.c (ftxfont_list): Return a list, not vector.
10716 (ftxfont_open): Return a font-object. Adjusted for the change of
10717 struct font. Get underline_thickness and underline_position from
10718 font property. Don't update dpyinfo->smallest_font_height and
10719 dpyinfo->smallest_char_width.
10720 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
10721 (ftxfont_draw): Adjusted for the change of struct font.
10722
10723 * image.c (image_ascent): Don't include "charset.h". Include
10724 "character.h" and "font.h".
10725
10726 * lisp.h (enum pvec_type): New member PREV_FONT.
10727 (Fassoc_string): EXFUN it.
10728
10729 * print.c: Include font.h.
10730 (print_object): Handle font-related objects.
10731
10732 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
10733 conditionals. Don't check enable_font_backend. Delete all codes
10734 used only when USE_FONT_BACKEND is not defined.
10735 (handle_auto_composed_prop): Do nothing if it->f is not on a
10736 window system. Check how many following characters can be
10737 displayed by the same font.
10738 (calc_pixel_width_or_height): Type of the 4th arg is changed to
10739 'struct font *'.
10740 (get_char_face_and_encoding): Assign the whole encoding task to
10741 the `encode-char' method of a font driver.
10742 (fill_composite_glyph_string): Adjusted for the change of `struct
10743 face' and `struct glyph_string'.
10744 (fill_glyph_string): Likewise.
10745 (get_per_char_metric): Arguments changed.
10746 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
10747 and `struct glyph_string'.
10748 (produce_stretch_glyph, calc_line_height_property)
10749 (x_produce_glyphs): Likewise.
10750
10751 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
10752 conditionals. Don't check enable_font_backend. Delete all codes
10753 used only when USE_FONT_BACKEND is not defined. Use
10754 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
10755 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
10756 (Qp): Extern them.
10757 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
10758 Deleted.
10759 (struct font_name): Deleted.
10760 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
10761 (compare_fonts_by_sort_order): New function.
10762 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
10763 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
10764 Deleted.
10765 (Fx_family_fonts): Use font_list_entities, and sort fonts by
10766 compare_fonts_by_sort_order.
10767 (Fx_font_family_list): Call Ffont_family_list.
10768 (face_numeric_value, face_numeric_weight, face_numeric_slant)
10769 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
10770 (face_symbolic_slant, face_symbolic_swidth)
10771 (split_font_name_into_vector, build_font_name_from_vector)
10772 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
10773 (font_rescale_ratio, split_font_name, build_font_name)
10774 (free_font_names, sort_fonts, x_face_list_fonts)
10775 (face_font_available_p, sorted_font_list, cmp_font_names)
10776 (font_list_1, concat_font_list, font_list, remove_duplicates):
10777 Deleted.
10778 (Fx_list_fonts): Use Ffont_list.
10779 (LFACE_AVGWIDTH): Deleted.
10780 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
10781 by FONTP.
10782 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
10783 (set_lface_from_font_name): Delete it.
10784 (set_lface_from_font): Renamed from
10785 set_lface_from_font_and_fontset. Caller changed. Don't set
10786 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
10787 for face.
10788 (merge_face_vectors): Copy font-spec if necessary.
10789 Clear properties of the font-spec if necessary.
10790 (merge_face_ref): Clear properties of the font-spec if necessary.
10791 (Finternal_set_lisp_face_attribute): Likewise.
10792 (set_font_frame_param): Use font_load_for_lface to load a
10793 font-object, and call Fmodify_frame_parameters with it.
10794 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
10795 font name by Ffont_xlfd_name.
10796 (Finternal_lisp_face_attribute_values): Don't check QCweight,
10797 QCslant, and QCwidth.
10798 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
10799 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
10800 Compare fonts by EQ.
10801 (lookup_non_ascii_face): Deleted.
10802 (face_for_font): The 2nd argument changed.
10803 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
10804 Check atomic font properties by case insensitive.
10805 (realize_non_ascii_face): Set face->overstrike correctly.
10806 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
10807 (dump_realized_face): Get font name from
10808 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
10809
10810 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
10811 conditionals. Don't check enable_font_backend. Delete all codes
10812 used only when USE_FONT_BACKEND is not defined.
10813 (xic_create_xfontset): Original code deleted and renamed from
10814 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
10815 (x_make_gc): Don't set GCFont in GCs.
10816 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
10817 opened by "fixed".
10818 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
10819 find_ccl_program_func, query_font_func, set_frame_fontset_func,
10820 get_font_repertory_func.
10821
10822 * xfont.c: Include <stdlib.h> and "ccl.h".
10823 (struct xfont_info): New structure.
10824 (xfont_query_font): Deleted.
10825 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
10826 moved from xterm.c.
10827 (xfont_driver): Adjusted for the change of struct font_driver.
10828 (compare_font_names): New function.
10829 (xfont_list_pattern): Sort font names case insensitively. Make
10830 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
10831 (xfont_list): Return a list, not vector.
10832 (xfont_match): If the font doesn't have QCname property, generate
10833 a name from the other font properties.
10834 (xfont_open): Return a font-object. Adjusted for the change of
10835 struct font. Get underline_thickness and underline_position from
10836 font property. Don't update dpyinfo->smallest_font_height and
10837 dpyinfo->smallest_char_width.
10838 (xfont_close): Don't free struct font.
10839 (xfont_prepare_face): Adjusted for the change of struct font.
10840 (xfont_done_face): Deleted.
10841 (xfont_has_char): Adjusted for the change of struct font.
10842 (xfont_encode_char, xfont_draw): Likewise.
10843 (xfont_check): New function.
10844
10845 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10846 callback function.
10847 (xftfont_match): Adjusted for the format change of font-entity.
10848 (xftfont_open): Adjusted for the format change of font-entity and
10849 font-object. Adjusted for the change of struct font. Return a
10850 font-object. Don't update dpyinfo->smallest_font_height and
10851 dpyinfo->smallest_char_width.
10852 (xftfont_close): Block input while calling XftFontClose.
10853 (xftfont_prepare_face): Don't block input while calling
10854 xftfont_get_colors. Adjusted for the change of struct font.
10855 (xftfont_shape): Return value of error case fixed.
10856
10857 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10858
10859 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10860 conditionals.
10861 (FONT_WIDTH): Return (f)->max_width.
10862 (struct x_display_info): Delete member `font'.
10863 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10864 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10865 (struct x_output): Change type of `font' to `struct font *'.
10866
10867 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
10868 conditionals. Don't check enable_font_backend. Delete all codes
10869 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
10870 (x_per_char_metric, x_encode_char): Deleted.
10871 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10872 (x_compute_glyph_string_overhangs): Adjusted for the change of
10873 `struct face'.
10874 (x_draw_glyph_string_foreground)
10875 (x_draw_composite_glyph_string_foreground): Likewise.
10876 (x_draw_glyph_string): Likewise. Use font->underline_position and
10877 font->underline_thickness.
10878 (x_new_font): Renamed from x_new_fontset2.
10879 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
10880 (x_check_font): Call `check' method of a font driver.
10881 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
10882 (x_query_font, x_get_font_repertory): Deleted.
10883 (x_find_ccl_program): Renamed and moved to xfont.c.
10884 (x_redisplay_interface): Adjusted for the change of `struct
10885 redisplay_interface'.
10886
10887 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
10888 conditionals. Don't check enable_font_backend. Delete all codes
10889 used only when USE_FONT_BACKEND is not defined. Surround non-used
10890 code by "#ifdef OLD_FONT" and "endif".
10891 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
10892
10893 * w32font.h (struct w32font_info): New member.
10894 (FONT_COMPAT): New macro.
10895 (w32font_open_internal): Prototype adjusted.
10896
10897 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
10898 OLD_FONT" and "endif".
10899
10900 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
10901 conditionals. Don't check enable_font_backend. Delete all codes
10902 used only when USE_FONT_BACKEND is not defined.
10903 (w32font_open): Return a font-object. Make a font-object by
10904 font_make_object. Adjusted for the change of struct w32font_info.
10905 (w32font_close): Don't free struct font. Adjusted for the change
10906 of struct w32font_info.
10907 (w32font_encode_char, w32font_text_extents, w32font_draw):
10908 Adjusted for the change of struct w32font_info.
10909 (w32font_draw): Likewise.
10910 (w32font_list_internal): Return a list, not vector.
10911 (w32font_open_internal): Change the 4th arg to font-object.
10912 Adjusted for the change of struct w32font_info and font-object format.
10913 (add_font_name_to_list): Don't downcase names.
10914 (w32_enumfont_pattern_entity): Make a font-entity by
10915 font_make_entity. Adjusted for the format change of font-entity.
10916 Use FONT_SET_STYLE to set a style-related font property. If a
10917 font is scalable, set avgwidth property to 0. Set font-entity
10918 property by font_put_extra.
10919 (font_matches_spec): Adjusted for the format change of font-entity.
10920 (w32_weight_table, w32_decode_weight): New variables.
10921 (w32_encode_weight): New function.
10922 (fill_in_logfont): Adjusted for the format change of font-spec.
10923 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
10924 weight value.
10925 (w32font_driver): Adjusted for the change of struct font_driver.
10926
10927 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
10928 conditionals. Don't check enable_font_backend. Surround non-used
10929 code by "#ifdef OLD_FONT" and "endif".
10930 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
10931 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
10932
10933 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10934 conditionals. Don't check enable_font_backend. Delete all codes
10935 used only when USE_FONT_BACKEND is not defined. Surround non-used
10936 code by "#ifdef OLD_FONT" and "endif".
10937
10938 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10939 (uniscribe_open): Return value changed to font-object.
10940 Adjusted for the format change of font-object.
10941 (uniscribe_otf_capability): Adjusted for the change of struct font.
10942 (add_opentype_font_name_to_list): Don't downcase names.
10943 (uniscribe_font_driver): Adjusted for the change of struct
10944 font_driver.
10945
10946 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
10947
10948 * dispnew.c (update_frame_1): Check if tty output is still valid
10949 before flushing it.
10950
10951 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10952
10953 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10954 to Gtk+ menus.
10955
10956 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10957
10958 * dired.c (file_name_completion): Tweak the code so as to always do it
10959 in a single pass. Tighten the scope of some variables.
10960
10961 * dired.c (Qdefault_directory): New var.
10962 (file_name_completion): Use it instead of Fexpand_file_name.
10963 (syms_of_dired): Initialize it.
10964
10965 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10966
10967 * fileio.c (double_dollars): Remove dead code.
10968
10969 2008-05-10 Eli Zaretskii <eliz@gnu.org>
10970
10971 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10972 Mention w32-get-true-file-attributes in doc string.
10973
10974 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10975
10976 2008-05-09 Glenn Morris <rgm@gnu.org>
10977
10978 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10979 2008-04-23.
10980
10981 2008-05-09 Eli Zaretskii <eliz@gnu.org>
10982
10983 Support for reporting owner and group of each file on MS-Windows:
10984 * dired.c (stat_uname, stat_gname): New functions, with special
10985 implementation for w32.
10986 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10987
10988 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10989 (dflt_group_name): New static variable.
10990 (dflt_group): Rename from the_group.
10991 (init_user_info): Init dflt_group fields. Get user's group name
10992 from LookupAccountSid.
10993 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10994 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10995 New initialization states.
10996 (globals_of_w32): Initialize them to zero. Initialize the default
10997 group name to "None".
10998 (GetFileSecurity_Name): New global var, the name of the function
10999 to call for GetFileSecurity.
11000 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11001 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11002 (get_file_security, get_security_descriptor_owner)
11003 (get_security_descriptor_group, is_valid_sid)
11004 (get_file_security_desc, get_rid, get_name_and_id)
11005 (get_file_owner_and_group): New functions.
11006 (stat): Use get_file_security_desc and get_file_owner_and_group to
11007 report the owner and primary group of each file. Don't ignore the
11008 high 32 bits of file's size, now that st_size is 64-bit wide.
11009 Fix test when to get true file attributes.
11010 (init_user_info): Use get_rid instead of equivalent inline code.
11011 (fstat): Don't ignore the high 32 bits of file's size.
11012
11013 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
11014
11015 * image.c (png_load): Use correct bit-depth for setting background
11016 color.
11017
11018 2008-05-08 Eli Zaretskii <eliz@gnu.org>
11019
11020 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11021 epa-hook.elc.
11022
11023 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
11024
11025 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11026
11027 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11028
11029 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11030 because the original parameters are in pure storage now.
11031 (mac_window): Remove unused params. Update callers.
11032
11033 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11034
11035 * lread.c (substitute_object_recurse): Use lower-level primitives.
11036 Don't signal errors when traversing sub-char-tables.
11037 Don't loop over all the possible characters when traversing char-tables.
11038
11039 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11040 just like we do in print.c.
11041
11042 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11043
11044 * minibuf.c (Ftry_completion): Remove code left over from when we used
11045 scmp instead of Fcompare_strings.
11046
11047 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
11048
11049 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11050
11051 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11052
11053 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11054 Create bitmap context in native byte order.
11055
11056 * macterm.c (XDrawLine)
11057 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11058 context in native byte order.
11059
11060 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11061
11062 * config.in: Regenerate.
11063
11064 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11065 New definitions for Image I/O support.
11066 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11067 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11068 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11069 (mac_data_provider_release_data, image_load_image_io)
11070 [USE_MAC_IMAGE_IO]: New functions.
11071 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11072 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11073 (init_image_func_pointer) [MAC_OSX]: Remove function.
11074 (image_load_quartz2d) [MAC_OSX]: Check availability of
11075 CGImageCreateWithPNGDataProvider at compile time.
11076 Use lowercase `false' for boolean constant.
11077 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11078 Use image_load_image_io.
11079 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11080 Don't check MyCGImageCreateWithPNGDataProvider.
11081 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11082 Don't call init_image_func_pointer.
11083
11084 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11085
11086 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11087 Make variable non-static.
11088 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11089 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11090
11091 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11092 (RED_FROM_ULONG): Mask off higher bits.
11093 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11094
11095 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11096 Include AvailabilityMacros.h.
11097 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11098 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11099
11100 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11101
11102 * chartab.c (Fset_char_table_range): If range is t, really set all
11103 chars to that value.
11104
11105 2008-05-03 Eli Zaretskii <eliz@gnu.org>
11106
11107 * dired.c (Ffile_attributes): Don't allow the device number become
11108 negative.
11109
11110 2008-05-02 Daiki Ueno <ueno@unixuser.org>
11111
11112 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11113
11114 2008-05-02 Juri Linkov <juri@jurta.org>
11115
11116 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11117 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11118 DEFAULT argument as a list of default values in docstrings.
11119
11120 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
11121
11122 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11123
11124 2008-05-01 Martin Rudalics <rudalics@gmx.at>
11125
11126 * dispnew.c (change_frame_size_1): Preserve small windows when
11127 shrinking frames by calling set_window_height|width with third
11128 arg 2.
11129
11130 * window.h (struct window): Replace field too_small_ok by field
11131 resize_proportionally.
11132
11133 * window.c (make_window): Initialize resize_proportionally.
11134 (enlarge_window): Temporarily set resize_proportionally to make
11135 sure that shrink_windows does scale the window proportionally.
11136 (shrink_windows): When window has resize_proportionally set try
11137 to shrink it proportionally by stealing from other windows.
11138 (struct saved_window, Fset_window_configuration)
11139 (compare_window_configurations): Handle resize_proportionally.
11140 (WINDOW_TOTAL_SIZE): New macro.
11141 (window_min_size, shrink_windows, size_window): Use it.
11142 (check_min_window_sizes): Remove. Invalid values of
11143 window-min-height|width are handled by window_min_size_2 now.
11144 (size_window, Fsplit_window, enlarge_window)
11145 (adjust_window_trailing_edge, grow_mini_window): Don't call
11146 check_min_window_sizes.
11147 (window_min_size_2, window_min_size_1, window_min_size):
11148 New argument safe_p for retrieving "safe" minimum sizes.
11149 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11150 (adjust_window_trailing_edge, grow_mini_window):
11151 Adjust arguments of window_min_size... functions.
11152 (shrink_windows): Argument min_size removed. New argument
11153 safe_p allows shrinking windows to their safe minimum sizes.
11154 Calculate minimum size and decide whether a window shall be
11155 deleted for each window individually.
11156 (size_window): When nodelete_p equals 2, tell shrink_windows to
11157 delete windows only if their new minimum size is no more safe.
11158 (shrink_window_lowest_first): Call window_min_size_1 to make
11159 sure to preserve modeline of bottom-most window when resizing
11160 the minibuffer.
11161 (Fset_window_configuration, Fcurrent_window_configuration)
11162 (compare_window_configurations): Do not handle
11163 window-min-height|width any more.
11164 (syms_of_window): Clarify window-min-height|width doc-strings.
11165
11166 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11167
11168 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11169 some more. Copy some of the code from Ftry_completions.
11170 Remove special case code that dates back to initial revision when the
11171 slash was only added when necessary and that can't trigger nowadays.
11172
11173 2008-04-27 Kenichi Handa <handa@m17n.org>
11174
11175 * font.c (font_prop_validate): Signal `error' instead of `font'.
11176
11177 2008-04-29 Jason Rumney <jasonr@gnu.org>
11178
11179 * w32fns.c (Fw32_battery_status): New defun.
11180 (syms_of_w32fns): Defsubr it.
11181
11182 2008-04-28 Andreas Schwab <schwab@suse.de>
11183
11184 * dired.c (file_name_completion): Fix another mixing of encoded
11185 and decoded names.
11186
11187 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
11188
11189 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11190
11191 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
11192
11193 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11194
11195 2008-04-27 Andreas Schwab <schwab@suse.de>
11196
11197 * dired.c (file_name_completion): Fix inappropriate mixing of
11198 encoded and decoded names.
11199
11200 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11201
11202 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11203
11204 2008-04-26 Eli Zaretskii <eliz@gnu.org>
11205
11206 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11207 2008-03-31, it's not needed anymore with `struct stat' definition
11208 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11209 for the same reasons.
11210
11211 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11212
11213 * m/sparc.h: Additional redefinitions for GNU/Linux.
11214
11215 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11216
11217 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11218 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11219 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11220 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11221 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11222 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11223 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11224 Likewise.
11225
11226 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11227 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11228 (mac_ax_number_of_characters): Add externs.
11229 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11230 [USE_MAC_TSM]: Likewise.
11231 (mac_handle_text_input_event) [MAC_OSX]:
11232 Handle kEventTextInputOffsetToPos for no active input area case.
11233 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11234 (mac_handle_document_access_event)
11235 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11236 (install_application_handler) [MAC_OSX]: Register handlers for
11237 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11238 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11239 Register mac_handle_document_access_event.
11240
11241 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11242 Make functions non-static.
11243
11244 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11245
11246 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11247 (read_file_name_completion_ignore_case, insert_default_directory)
11248 (Qdefault_directory): Move to minibuffer.el.
11249 (Fread_file_name): Call the new `read-file-name' instead.
11250
11251 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11252
11253 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11254 Make function non-static.
11255 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11256 Remove function.
11257 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11258 Move to mactoolbox.c.
11259 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11260
11261 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11262 (mac_rect_make): New macro.
11263
11264 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11265 instead of float.
11266 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11267 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11268 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11269 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11270 CGRectMake.
11271 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11272 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11273 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11274 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11275 instead of WindowRef in argument type.
11276 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11277 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11278 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11279 instead of DISPLAY. All uses changed.
11280 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11281 (x_calc_absolute_position): Simplify so as not to use
11282 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11283
11284 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11285 instead of WindowRef in argument type.
11286 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11287 [TARGET_API_MAC_CARBON]: Remove externs.
11288 (create_apple_event, mac_event_parameters_to_lisp)
11289 [TARGET_API_MAC_CARBON]: Add externs.
11290
11291 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11292 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11293 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11294 is clicked.
11295 (x_activate_menubar): Remove extern for saved_menu_event_location.
11296 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11297 Move from mac.c.
11298
11299 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11300
11301 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11302 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11303
11304 2008-04-23 Jason Rumney <jasonr@gnu.org>
11305
11306 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11307 attributes only for local files.
11308
11309 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11310 default to Qlocal.
11311
11312 2008-04-22 Juri Linkov <juri@jurta.org>
11313
11314 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11315 read-buffer-to-switch instead of using the letter "B".
11316
11317 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11318
11319 * fileio.c (Qdefault_directory): New variable.
11320 (Fread_file_name): Use it to pass `dir' to the completion functions.
11321
11322 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
11323
11324 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11325
11326 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11327
11328 * keyboard.c (Vpre_help_message): Remove.
11329 (show_help_echo): Remove default C code.
11330
11331 * dired.c (directory_files_internal, file_name_completion):
11332 Only call ENCODE_FILE if the string is indeed decoded.
11333
11334 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11335
11336 * Makefile.in (TOOLKIT_DEFINES): Remove.
11337 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11338
11339 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11340
11341 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11342 (mactoolbox.o): New target.
11343
11344 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11345 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11346
11347 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11348 Use mac_set_frame_window_background instead of XSetWindowBackground.
11349 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11350 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11351 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11352 instead of SetWindowTitleWithCFString.
11353 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11354 Move function to mactoolbox.c.
11355 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11356 Use mac_set_window_modified instead of SetWindowModified.
11357 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11358 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11359 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11360 FrontNonFloatingWindow. Use mac_activate_window instead of
11361 ActivateWindow. Use mac_active_non_floating_window instead of
11362 ActiveNonFloatingWindow.
11363 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11364 Use mac_show_hourglass and mac_hide_hourglass.
11365 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11366 instead of GetGlobalMouse.
11367 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11368 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11369 Use mac_bring_window_to_front instead of BringToFront.
11370 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11371 mactoolbox.c.
11372 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11373 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11374 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11375 mactoolbox.c.
11376
11377 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11378 (XtPointer): Move typedef from macmenu.c.
11379 (enum button_type): Move enum from macmenu.c.
11380 (widget_value): Move typedef from macmenu.c.
11381 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11382 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11383 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11384 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11385 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11386 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11387 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11388 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11389 (Selection): Move typedef from macselect.c.
11390 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11391 macterm.c.
11392 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11393 (mac_is_window_collapsed, mac_bring_window_to_front)
11394 (mac_send_window_behind, mac_hide_window, mac_show_window)
11395 (mac_collapse_window, mac_front_non_floating_window)
11396 (mac_active_non_floating_window, mac_activate_window)
11397 (mac_move_window_structure, mac_move_window, mac_size_window)
11398 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11399
11400 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11401 (enum mac_menu_kind): Move enum to mactoolbox.c.
11402 (min_menu_id): Move variable to mactoolbox.c.
11403 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11404 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11405 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11406 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11407 [TARGET_API_MAC_CARBON]: Likewise.
11408 (XtPointer): Move typedef to macgui.h.
11409 (enum button_type): Move enum to macgui.h.
11410 (widget_value): Move typedef to macgui.h.
11411 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11412 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11413 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11414 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11415 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11416 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11417 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11418 (popup_activated_flag): Make variable non-static.
11419 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11420 (add_menu_item, fill_menu, dispose_menus):
11421 Move functions to mactoolbox.c.
11422 (restore_show_help_function, menu_target_item_handler)
11423 (install_menu_target_item_handler, mac_handle_dialog_event)
11424 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11425 [TARGET_API_MAC_CARBON]: Likewise.
11426 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11427 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11428 (find_and_call_menu_selection, name_is_separator): Make function
11429 non-static.
11430 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11431 to mactoolbox.c.
11432 (set_frame_menubar): Don't call install_menu_quit_handler.
11433 (menu_item_selection): New variable.
11434 (mac_menu_show): Use create_and_show_popup_menu.
11435 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11436 selection but set variable menu_item_selection. All uses changed.
11437 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11438 Call install_menu_quit_handler. Move to mactoolbox.c.
11439
11440 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11441 (Selection): Move typedef to macgui.h.
11442 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11443 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11444 Make variables non-static.
11445 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11446 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11447 Make functions non-static.
11448 (Vmac_service_selection) [MAC_OSX]: Likewise.
11449 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11450 (mac_valid_selection_target_p, mac_clear_selection)
11451 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11452 (mac_put_selection_value, mac_selection_has_target_p)
11453 (mac_get_selection_value, mac_get_selection_target_list)
11454 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11455 Move functions to mactoolbox.c.
11456 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11457 Likewise.
11458 (copy_scrap_flavor_data, mac_handle_service_event)
11459 (install_service_handler) [MAC_OSX]: Likewise.
11460 (syms_of_macselect) <Vmac_dnd_known_types>:
11461 Use mac_dnd_default_known_types.
11462
11463 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11464 Move to mactoolbox.c.
11465 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11466 (Fx_selection_owner_p): Add EXFUN.
11467 (install_window_handler, remove_window_handler, XSetWindowBackground):
11468 Remove externs.
11469 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11470 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11471 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11472 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11473 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11474 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11475 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11476 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11477 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11478 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11479 (mac_valid_selection_target_p, mac_clear_selection)
11480 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11481 (mac_put_selection_value, mac_selection_has_target_p)
11482 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11483 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11484 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11485 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11486 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11487 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11488 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11489 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11490 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11491
11492 * mactoolbox.c: New file.
11493
11494 2008-04-18 Jason Rumney <jasonr@gnu.org>
11495
11496 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11497
11498 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11499
11500 * character.c (Fmultibyte_char_to_unibyte):
11501 Return latin1 chars unchanged.
11502
11503 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11504 relocated if it points to `name'.
11505
11506 2008-04-17 Kenichi Handa <handa@m17n.org>
11507
11508 * data.c (Faset): Allow setting a multibyte character in an
11509 ASCII-only unibyte string.
11510
11511 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11512
11513 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11514
11515 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11516 done in config.h.
11517
11518 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
11519
11520 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11521 (Fchar_direction): Add usage in the docstring.
11522
11523 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
11524
11525 * keyboard.c (read_key_sequence): Remove always-true checks.
11526
11527 2008-04-14 Jason Rumney <jasonr@gnu.org>
11528
11529 * w32font.c (w32font_open_internal): Set max_bounds.descent in
11530 compatibility struct, for better underline positioning.
11531
11532 2008-04-13 David Hansen <david.hansen@gmx.net>
11533
11534 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
11535 string.
11536
11537 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
11538
11539 * m/hp800.h (XUINT, XSET): Remove.
11540
11541 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
11542
11543 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
11544 previous change.
11545
11546 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
11547
11548 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
11549 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
11550
11551 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11552
11553 * keymap.h (map_keymap_canonical): Declare.
11554 * xmenu.c (single_keymap_panes): Use it.
11555
11556 2008-04-11 Glenn Morris <rgm@gnu.org>
11557
11558 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
11559 set the target's value to that of the alias.
11560
11561 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11562
11563 * term.c (set_tty_color_mode): Left over typo.
11564
11565 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
11566
11567 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
11568 only after check for file name handler functions. Signal, when
11569 native functionality is not supported.
11570 (syms_of_fileio): Declare it unconditionally.
11571
11572 2008-04-10 Jason Rumney <jasonr@gnu.org>
11573
11574 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
11575 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
11576
11577 * w32.c (logon_network_drive): Also logon to remote drives that
11578 are mapped to drive letters.
11579
11580 2008-04-10 Glenn Morris <rgm@gnu.org>
11581
11582 * xdisp.c (truncate-partial-width-windows): Doc fix.
11583
11584 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
11585
11586 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
11587 Move functions to minibuffer.el.
11588 (syms_of_fileio): Don't declare them.
11589
11590 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11591
11592 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
11593 (syms_of_minibuf): Remove its initialization.
11594
11595 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
11596
11597 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
11598
11599 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
11600
11601 2008-04-09 Jason Rumney <jasonr@gnu.org>
11602
11603 * makefile.w32-in (distclean): Delete makefile too.
11604 (maintainer-clean): New target.
11605
11606 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
11607
11608 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
11609 for new font backend and composite cases.
11610
11611 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
11612
11613 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
11614 Most of the code moved to run_timers.
11615 (do_pending_atimers): Call run_timers.
11616 (run_timers): New function.
11617
11618 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
11619 run atimers.
11620
11621 * process.c (wait_reading_process_output): The same as above.
11622
11623 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11624
11625 * minibuf.c (last_exact_completion): Remove variable.
11626 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
11627 (complete_and_exit_1, complete_and_exit_2)
11628 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
11629 (Fdisplay_completion_list, display_completion_list_1)
11630 (Fminibuffer_completion_help, Fself_insert_and_exit)
11631 (Fexit_minibuffer, Fminibuffer_message): Move functions to
11632 minibuffer.el.
11633 (syms_of_minibuf): Remove corresponding initializations.
11634
11635 * keyboard.c (Qdeactivate_mark): New var.
11636 (command_loop_1): Use it to call `deactivate-mark'.
11637 (syms_of_keyboard): Initialize it.
11638
11639 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
11640 to another frame.
11641 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
11642 Don't call set_tty_color_mode.
11643 (store_frame_param): Reset previous_frame rather than call
11644 set_tty_color_mode.
11645 * term.c (set_tty_color_mode): Rewrite.
11646 * dispextern.h (set_tty_color_mode): New type.
11647 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
11648
11649 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
11650
11651 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
11652 for generic chars, which do not exist any more in emacs-unicode.
11653
11654 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
11655
11656 * coding.c (detect_coding_emacs_mule)
11657 (Ffind_operation_coding_system): Fix typo.
11658
11659 2008-04-08 Jason Rumney <jasonr@gnu.org>
11660
11661 * w32uniscribe.c (SNAME): Extract only symbol name.
11662
11663 * w32font.h (struct w32_metric_cache): New struct.
11664 (w32font_info): Use it.
11665 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
11666 (CACHE_BLOCKSIZE): New constants.
11667
11668 * w32font.c (Qja, Qko, Qzh): New symbols.
11669 (syms_of_w32font): Initialise them.
11670 (font_matches_spec): Use them to filter by language.
11671 (recompute_cached_metrics): Remove function.
11672 (compute_metrics, clear_cached_metrics): New functions.
11673 (w32font_encode_char): Use them to manage metric cache.
11674 (w32font_text_extents): Cache metrics for all glyphs on demand.
11675 Delay converting glyph indices to WORD until needed.
11676 (w32font_open_internal): Initialize metric cache to empty.
11677 (registry_to_w32_charset): Charset should always be a symbol.
11678 (fill_in_logfont, list_all_matching_fonts): Family should
11679 always be a symbol.
11680
11681 2008-04-06 Jason Rumney <jasonr@gnu.org>
11682
11683 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
11684 Give up if glyph indices not supported. Use uniscribe obtained
11685 ABC widths for individual metrics. Map glyph clusters back to
11686 characters using fClusterStart flag. Return number of glyphs
11687 produced, not chars processed.
11688 (uniscribe_shape): Map char at FROM to current glyph.
11689
11690 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11691
11692 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
11693 Use SetMenuItemHierarchicalMenu.
11694
11695 2008-04-05 Jason Rumney <jasonr@gnu.org>
11696
11697 * image.c (pbm_load): Allow color values up to 65535.
11698 Throw an error if max_color_idx is outside the supported range.
11699 Report an error when image size is invalid.
11700 Read two bytes at a time when raw images have max_color_idx above 255.
11701
11702 2008-04-05 Eli Zaretskii <eliz@gnu.org>
11703
11704 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11705 cFileName a file name that includes `?' characters, use the 8+3
11706 alias in cAlternateFileName instead.
11707
11708 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
11709
11710 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
11711 append "CCL: Quitted" when the CCL program is quitted.
11712 (setup_ccl_program): Initialize ccl->quit_silently to zero.
11713
11714 * ccl.h (struct ccl_program): New member quit_silently.
11715
11716 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
11717
11718 * search.c (compile_pattern_1): Treat non-nil and non-string of
11719 search-spaces-regexp as nil.
11720
11721 * minibuf.c (Fassoc_string): Tweak docstring.
11722
11723 2008-04-05 Eli Zaretskii <eliz@gnu.org>
11724
11725 * dired.c (Ffile_attributes): Support inode numbers wider than 32
11726 bits. Remove ugly WINDOWSNT-specific kludge introduced on
11727 2008-03-14 to force inode be positive.
11728
11729 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
11730 _S_* ones, since we now use our own sys/stat.h.
11731 (stat, fstat): Don't mangle the inode number.
11732 (init_user_info): Don't restrict UID and GID to 0-60000 range.
11733
11734 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
11735
11736 * frame.h (struct frame): Give one more bit to `visible' since we use
11737 values larger than 1 to indicate obscured frames on ttys.
11738
11739 * keymap.c (Qkeymap_canonicalize): New var.
11740 (Fmap_keymap_internal): New fun.
11741 (describe_map): Use keymap-canonicalize.
11742
11743 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
11744 (Fundo_boundary): Set them.
11745 (syms_of_undo): Initialize them.
11746 (record_point): Use them instead of last_point_position*.
11747 (last_undo_buffer): Change type.
11748
11749 2008-04-04 Jason Rumney <jasonr@gnu.org>
11750
11751 * w32font.c (w32font_text_extents): Use font's ascent and descent.
11752 (recompute_cached_metrics): Don't set ascent and descent per char.
11753
11754 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
11755 (uniscribe_check_otf): Add GC protection before consing.
11756 Rearrange loop for counting features.
11757
11758 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11759
11760 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
11761 buffer with byte-size of source buffer.
11762
11763 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
11764
11765 * callint.c (Fcall_interactively): Handle temporary region even
11766 when shift-select-mode is off.
11767
11768 2008-04-03 Jason Rumney <jasonr@gnu.org>
11769
11770 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
11771
11772 2008-04-03 Kenichi Handa <handa@m17n.org>
11773
11774 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
11775 (CATEGORY_MASK_UTF_16): Likewise.
11776 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
11777 binary file.
11778 (detect_coding): Add null-byte detection for a binary file.
11779 (detect_coding_system): Likewise.
11780
11781 2008-04-03 Jason Rumney <jasonr@gnu.org>
11782
11783 * w32uniscribe.c: New file.
11784
11785 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
11786
11787 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
11788
11789 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
11790 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
11791 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
11792 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
11793 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
11794 (Qphonetic): New symbols.
11795 (syms_of_w32font): Initialize them.
11796 (font_supported_scripts): Use them.
11797 (w32font_list_family): List all charsets.
11798 (w32font_text_extents, recompute_cached_metrics): Fix metric
11799 calculations.
11800 (w32_enumfont_pattern_entity): Make full_type a DWORD.
11801 Give opentype fonts their own format.
11802 (font_matches_spec): New arguments backend and logfont.
11803 Handle :otf spec for uniscribe backend.
11804 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
11805 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
11806
11807 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
11808 font backend.
11809 (globals_of_w32fns): Initialize uniscribe font backend.
11810
11811 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
11812 dependencies.
11813 (w32uniscribe.$(O)): New file to build.
11814 (FONT_OBJ): Include w32uniscribe.$(O).
11815 (LIBS): Add uniscribe libraries.
11816
11817 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
11818
11819 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
11820
11821 * callint.c (Vshift_select_mode): New var.
11822 (Finteractive): Document new ^ spec.
11823 (Fcall_interactively): Call handle-shift-selection if the ^ spec
11824 is present.
11825
11826 * keyboard.c (Vthis_command_keys_shift_translated): New var.
11827 (command_loop_1): Avoid running the direct display versions of
11828 forward-char and backward-char if shift-selection may occur.
11829 (read_key_sequence): Set Vthis_command_keys_shift_translated if
11830 shift-translation takes place.
11831
11832 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
11833 avoid clobbering by define-minor-mode.
11834
11835 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
11836 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
11837
11838 * syntax.c (Fforward_word): Add ^ interactive spec.
11839
11840 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
11841 (Fscroll_right): Add ^ interactive spec.
11842
11843 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11844
11845 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11846
11847 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11848
11849 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11850
11851 2008-03-31 Juri Linkov <juri@jurta.org>
11852
11853 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11854
11855 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11856
11857 * gtkutil.c (xg_set_geometry): Fix indentation.
11858 (xg_resize_outer_widget): Remove.
11859 (x_wm_size_hint_off): Fix indentation.
11860 (xg_frame_set_char_size): Call flush_and_sync after
11861 gtk_window_resize.
11862 (x_wm_set_size_hint): Pass NULL as geometry window to
11863 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11864 Add menu bar and tool bar height to base height.
11865 (xg_update_frame_menubar, free_frame_menubar)
11866 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11867 (update_frame_tool_bar, free_frame_tool_bar):
11868 Change xg_resize_outer_widget to xg_frame_set_char_size.
11869
11870 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
11871
11872 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11873 (Fdbus_call_method): New parameter TIMEOUT.
11874 (dbus-send-signal): Optimize UNGCPRO call.
11875
11876 2008-03-29 Juri Linkov <juri@jurta.org>
11877
11878 * window.c (Fdisplay_buffer): Move call to
11879 Vsplit_window_preferred_function out of conditions that check
11880 if window is eligible for vertical splitting.
11881 When Vsplit_window_preferred_function is non-nil, call it and use
11882 its non-nil return value as window. Otherwise, continue doing
11883 vertical splitting using Fsplit_window with arg horflag=nil.
11884 (syms_of_window) <Vsplit_window_preferred_function>: Change the
11885 default value from `split-window' to nil.
11886
11887 2008-03-29 Juri Linkov <juri@jurta.org>
11888
11889 * callint.c (Fcall_interactively): Revert 2008-03-16 change
11890 for interactive code letters 'b' and 'B'.
11891
11892 2008-03-29 Eli Zaretskii <eliz@gnu.org>
11893
11894 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
11895 multibyte string.
11896
11897 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
11898
11899 * keyboard.c (pending_funcalls): New var.
11900 (timer_check): Run it.
11901 (syms_of_keyboard): Initialize it.
11902 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
11903 (Vdelete_terminal_functions): New vars.
11904 (syms_of_terminal): Initialize them.
11905 (Fdelete_terminal): Run delete-terminal-functions.
11906 * xdisp.c (safe_eval): Rewrite.
11907 (safe_call2): New fun.
11908 * frame.c (Qdelete_frame_functions): New var.
11909 (syms_of_frame): Initialize it.
11910 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
11911 * lisp.h (safe_call2, pending_funcalls): Declare.
11912
11913 2008-03-28 Andreas Schwab <schwab@suse.de>
11914
11915 * indent.c (Fmove_to_column): Move declaration before statements.
11916
11917 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
11918
11919 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
11920 (struct frame): Use bit fields for boolean vars.
11921
11922 * process.c (server_accept_connection): Simplify naming.
11923 (emacs_get_tty_pgrp): Use SDATA.
11924
11925 * coding.c (decode_coding_object): Fix last change.
11926
11927 2008-03-27 Jason Rumney <jasonr@gnu.org>
11928
11929 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
11930
11931 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
11932
11933 * charset.c (Fdefine_charset_internal): Change the way of
11934 registering charsets in Vcharset_order_list.
11935 (syms_of_charset): Make the charset `eight-bit' supplementary.
11936
11937 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11938
11939 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11940 operations, to avoid having the difference between pointers
11941 overflow.
11942
11943 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11944
11945 * indent.c (check_display_width): New fun.
11946 (scan_for_column): Use it.
11947
11948 * data.c (syms_of_data): Mark most-positive-fixnum and
11949 most-negative-fixnum as constants.
11950
11951 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11952
11953 * indent.c (scan_for_column): Extract from current_column_1.
11954 Merge with the same code from Fmove_to_column.
11955 (current_column_1, Fmove_to_column): Use it.
11956
11957 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11958
11959 * keymap.c (map_keymap_internal): New fun.
11960 (map_keymap): Use it.
11961 (Fmap_keymap_internal): New fun.
11962 (Fmap_keymap): Remove left-out test from before make_save_value.
11963
11964 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11965
11966 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11967 Use XCAR/XCDR.
11968
11969 * process.h (struct Lisp_Process): Remove filter_multibyte.
11970 * process.c (QCfilter_multibyte): Remove.
11971 (setup_process_coding_systems): Don't use filter_multibyte.
11972 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11973 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11974 (Fset_process_filter_multibyte): Change the coding-system to
11975 approximate the previous behavior.
11976 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11977 coding-system.
11978
11979 * coding.c (decode_coding_object): When not decoding into a buffer,
11980 obey the coding system's preference of (uni|multi)byte.
11981
11982 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11983
11984 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11985 every char is changed and has a different byte-length.
11986 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11987 Fix int -> EMACS_INT.
11988
11989 2008-03-23 David Hansen <david.hansen@gmx.net>
11990
11991 * dbusbind.c (xd_read_message): Remove extra copying of message
11992 strings. Check for NULL `interface' or `member'.
11993
11994 2008-03-22 Eli Zaretskii <eliz@gnu.org>
11995
11996 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11997 cFileName a file name that includes `?' characters, use the 8+3
11998 alias in cAlternateFileName instead.
11999
12000 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12001
12002 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12003
12004 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12005
12006 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12007 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12008 work on current_buffer only instead (that was already the case
12009 for some of the code anyway).
12010 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12011 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12012 (SET_PT, SET_PT_BOTH): Adjust.
12013 * intervals.h (set_point, temp_set_point, set_point_both)
12014 (temp_set_point_both): Remove redundant declarations.
12015
12016 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12017
12018 * fileio.c (Finsert_file_contents):
12019 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12020 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12021 when buffer != current_buffer anyway.
12022
12023 2008-03-20 Andreas Schwab <schwab@suse.de>
12024
12025 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12026 as default.
12027
12028 2008-03-19 Jason Rumney <jasonr@gnu.org>
12029
12030 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12031 (syms_of_w32fns): Initialize them.
12032 (HOURGLASS_ID): New constant.
12033 (x_window_to_frame): Don't check hourglass_window.
12034 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12035 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12036 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12037 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12038 Only change the cursor if hourglass is not active.
12039 (Fx_create_frame): Initialize frame's current_cursor.
12040 (hourglass_atimer): Remove.
12041 (hourglass_started): New function.
12042 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12043 (show_hourglass): Adapt to w32, changing argument to frame.
12044
12045 * w32term.h (struct w32_output): Remove hourglass_window.
12046 Add current_cursor.
12047
12048 * eval.c (call_debugger, Fsignal):
12049 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12050 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12051 (Fexecute_extended_command, cancel_hourglass_unwind):
12052 * minibuf.c (read_minibuf):
12053 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12054
12055 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12056
12057 * window.c (run_funs): New fun.
12058 (run_window_configuration_change_hook): Use it to run the buffer-local
12059 and the global part of the hook.
12060
12061 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12062 (unwind_format_mode_line): Restore selected window.
12063 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12064
12065 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12066
12067 * editfns.c (Fchar_equal): Check they are valid characters.
12068
12069 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12070
12071 2008-03-17 Andreas Schwab <schwab@suse.de>
12072
12073 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12074 against a charset.
12075
12076 * lisp.h (Fbuffer_list): Declare.
12077
12078 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
12079
12080 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12081 handlebox_widget is != 0.
12082
12083 2008-03-16 Juri Linkov <juri@jurta.org>
12084
12085 * callint.c (Fcall_interactively): For interactive code letters
12086 'b' and 'B' put the buffer list into the list of default "future"
12087 values of the minibuffer.
12088
12089 2008-03-16 Andreas Schwab <schwab@suse.de>
12090
12091 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12092 modifiers.
12093
12094 * regex.c (re_match_2_internal): Correct matching of a charset
12095 against latin-1 characters.
12096
12097 2008-03-16 Kenichi Handa <handa@m17n.org>
12098
12099 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12100 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12101 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12102 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12103 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12104 CHAR_STRING_ADVANCE.
12105 (produce_chars): Fix for the case that the source and the
12106 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12107 instead of CHAR_STRING_ADVANCE.
12108 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12109 STRING_CHAR_ADVANCE.
12110
12111 2008-03-15 Andreas Schwab <schwab@suse.de>
12112
12113 * regex.c (re_match_2_internal): Correct matching of eight bit
12114 characters in unibyte strings.
12115
12116 2008-03-15 Martin Rudalics <rudalics@gmx.at>
12117
12118 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12119 at end of range when it coincides with the end of the buffer.
12120
12121 2008-03-14 Eli Zaretskii <eliz@gnu.org>
12122
12123 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12124
12125 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12126
12127 2008-03-14 Jason Rumney <jasonr@gnu.org>
12128
12129 * editfns.c (initial_tz): New variable.
12130 (syms_of_editfns): Initialize it.
12131 (Fset_time_zone_rule): Set it when first called.
12132 Use it when TZSTRING is nil.
12133
12134 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12135 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12136 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12137 (globals_of_w32fns): Initialize them.
12138 (compute_tip_xy): Use them to position tooltips.
12139
12140 2008-03-14 Glenn Morris <rgm@gnu.org>
12141
12142 * emacs.c (main): Revert previous change.
12143 (standard_args): Revert -internal-script back to -scriptload,
12144 and remove the long-option form.
12145
12146 2008-03-13 Glenn Morris <rgm@gnu.org>
12147
12148 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12149 Remove option -enable-font-backend.
12150
12151 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12152
12153 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12154
12155 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12156
12157 * xterm.c (x_connection_closed): For GTK: If this is the last
12158 terminal just exit without closing the display.
12159
12160 2008-03-11 Jason Rumney <jasonr@gnu.org>
12161
12162 * w32font.c (w32font_full_name): Use floor to round.
12163
12164 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
12165
12166 * sound.c (alsa_configure): Declare vol at beginning of block.
12167
12168 * fontset.c (Ffontset_info): Remove extra semicolon.
12169
12170 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12171
12172 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12173 size of resulting string.
12174
12175 2008-03-10 Jason Rumney <jasonr@gnu.org>
12176
12177 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12178
12179 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12180
12181 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12182 Don't pretend as if characters with display property haven't been
12183 consumed for string-replacing-string case.
12184
12185 2008-03-08 Kim F. Storm <storm@cua.dk>
12186
12187 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12188 (get_next_display_element, next_element_from_string)
12189 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12190
12191 2008-03-08 Andreas Schwab <schwab@suse.de>
12192
12193 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12194
12195 2008-03-06 Jason Rumney <jasonr@gnu.org>
12196
12197 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12198 when charset not specified. Only translate ANSI to unicode when
12199 font_type is truetype.
12200 (w32font_coverage_ok): New function.
12201 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12202
12203 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12204
12205 * lread.c (Fread_char): Resolve modifiers.
12206 (Fread_char_exclusive): Likewise.
12207
12208 * character.c (char_resolve_modifier_mask): New function.
12209 (char_string): Use char_resolve_modifier_mask.
12210 (Fchar_resolve_modifiers): New function.
12211 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12212 function.
12213
12214 2008-03-04 Jason Rumney <jasonr@gnu.org>
12215
12216 * makefile.w32-in: Always include w32font.c in the build.
12217 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12218
12219 2008-03-04 Andreas Schwab <schwab@suse.de>
12220
12221 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12222 (versionclean): Likewise.
12223
12224 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
12225
12226 * .cvsignore: Add oo.
12227
12228 2008-03-03 Andreas Schwab <schwab@suse.de>
12229
12230 * coding.c (decode_coding_object): Inhibit gap shrinking while
12231 decoding in place.
12232
12233 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12234
12235 * w32term.c: Remove unused include "gnu.h".
12236 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12237
12238 * gnu.h: Rename to ...
12239 * emacs-icon.h: ... this.
12240 * xterm.c: Use emacs-icon.h instead of gnu.h.
12241 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12242
12243 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
12244
12245 * w32font.c: Include math.h.
12246
12247 2008-03-03 Jason Rumney <jasonr@gnu.org>
12248
12249 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12250 Compute options separately.
12251 (w32font_open_internal): Set glyph_idx before caching metrics.
12252
12253 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12254 Define if system headers don't.
12255 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12256 (w32font_encode_char): Don't declare here.
12257
12258 * w32font.c (Quniscribe, QCformat): New symbols.
12259 (syms_of_w32font): Define them.
12260 (w32font_has_char): Indicate uncertainty.
12261 (w32font_encode_char): Encode as glyph point. Make static.
12262 (recompute_cached_metrics): New function.
12263 (w32font_open_internal): Use it. Set font to use glyph points
12264 initially. Set format based on type of font.
12265 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12266 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12267 on it. Set format based on information available here.
12268 (add_font_entity_to_list): Identify backend based on opentype_only.
12269
12270 2008-03-02 Andreas Schwab <schwab@suse.de>
12271
12272 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12273
12274 * coding.c (decode_coding_big5, produce_chars):
12275 Fix typos in last change.
12276
12277 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12278
12279 * gnu.h: New icon.
12280
12281 2008-03-02 Kenichi Handa <handa@m17n.org>
12282
12283 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12284 `dos', don't decode '\r' if that is the last in the source.
12285 (decode_coding_utf_16, decode_coding_emacs_mule)
12286 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12287 (decode_coding_raw_text, decode_coding_charset): Likewise.
12288 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12289
12290 2008-03-01 Jason Rumney <jasonr@gnu.org>
12291
12292 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12293
12294 2008-03-01 Kim F. Storm <storm@cua.dk>
12295
12296 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12297
12298 2008-03-01 Jason Rumney <jasonr@gnu.org>
12299
12300 * w32font.c (w32font_full_name): New function.
12301 (w32font_open_internal): Use it.
12302
12303 2008-03-01 Kim F. Storm <storm@cua.dk>
12304
12305 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12306
12307 2008-03-01 Jason Rumney <jasonr@gnu.org>
12308
12309 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12310
12311 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12312
12313 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12314 xg_frame_resized when the event is for the edit widget.
12315
12316 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12317
12318 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12319 set_char_size.
12320 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12321 operations on widgets here. Just set frame size if needed.
12322 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12323 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12324 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12325 the whole frame.
12326 (xg_create_tool_bar): Move attachment of the tool bar to
12327 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12328 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12329
12330 2008-03-01 Jason Rumney <jasonr@gnu.org>
12331
12332 * w32fns.c (w32_msg_pump): Disable debug code.
12333
12334 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12335
12336 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12337
12338 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
12339
12340 * xdisp.c (next_overlay_string): Don't set
12341 overlay_strings_at_end_processed_p if we're currently reading from
12342 a display string.
12343
12344 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12345
12346 * xdisp.c (get_overlay_strings_1): Fix typo.
12347
12348 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
12349
12350 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12351
12352 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12353
12354 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12355
12356 * xdisp.c (display_mode_element): Cancel the previous change.
12357 (decode_mode_spec): Likewise.
12358 (handle_auto_composed_prop): Don't make composition if it->string
12359 is a string.
12360
12361 2008-02-27 Kim F. Storm <storm@cua.dk>
12362
12363 * lisp.h (GLYPH): Change type from int to struct with separate char
12364 and face_id members.
12365 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12366 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12367 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12368 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12369 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12370 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12371 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12372 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12373 handle new Lisp glyph code encoding, either an integer or a cons.
12374
12375 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12376 (GLYPH_ALIAS): Delete.
12377 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12378 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12379 (GLYPH_FROM_CHAR): Replace macro by ...
12380 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12381
12382 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12383 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12384 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12385 (GLYPH_INVALID_P): New macro.
12386 (spec_glyph_lookup_face): Update prototype.
12387
12388 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12389 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12390 new glyph code encoding.
12391 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12392 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12393
12394 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12395 Adapt to new glyph type and new glyph code encoding.
12396
12397 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12398
12399 * indent.c (current_column, current_column_1, Fmove_to_column)
12400 (compute_motion): Adapt to new glyph code encoding.
12401
12402 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12403
12404 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
12405
12406 * process.c (wait_reading_process_output): Check for window
12407 changes caused by timers.
12408 Suggested by Johan Bockgård.
12409
12410 2008-02-27 Glenn Morris <rgm@gnu.org>
12411
12412 * emacs.c (USAGE1): Add `--disable-font-backend'.
12413
12414 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12415
12416 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12417 is made to the buffer.
12418
12419 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12420
12421 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12422 (face_at_string_position):
12423 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12424 (face_at_string_position):
12425 * xdisp.c (display_string, next_overlay_change):
12426 * buffer.h (overlays_at):
12427 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12428 Update callers.
12429
12430 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
12431
12432 * editfns.c (Fformat): Doc fix.
12433
12434 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
12435
12436 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12437 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12438 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12439
12440 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12441
12442 * buffer.c (Fbuffer_swap_text): New function.
12443 (syms_of_buffer): Defsubr it.
12444
12445 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
12446
12447 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12448
12449 2008-02-25 Jason Rumney <jasonr@gnu.org>
12450
12451 * w32font.c (w32font_draw): Draw one character at a time when padding.
12452
12453 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12454
12455 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12456 Handle a nil arg. Use run_window_configuration_change_hook.
12457 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12458 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12459 Use run_window_configuration_change_hook.
12460
12461 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12462
12463 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12464 1-pixel width.
12465
12466 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12467
12468 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12469 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12470 if the glyph in the font is zero pixel with.
12471
12472 * dispextern.h (struct glyph_string): New member padding_p.
12473
12474 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12475
12476 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12477
12478 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12479
12480 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12481
12482 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12483
12484 2008-02-25 Jason Rumney <jasonr@gnu.org>
12485
12486 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12487
12488 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12489
12490 Allow fine-grained image-cache flushing.
12491 * dispextern.h (struct image): Add `dependencies' field.
12492 (clear_image_caches): Change arg to Lisp_Object.
12493 * image.c (make_image): Initialize `dependencies' field.
12494 (clear_image_cache): Change arg to allow fine-grained flushing.
12495 Perform the flush even if image-cache-eviction-delay is nil.
12496 (clear_image_caches): Change arg to Lisp_Object.
12497 (Fclear_image_cache): Expand meaning of the argument.
12498 (mark_image): Mark `dependencies' field.
12499 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12500 (lface_hash): Use XHASH rather than XFASTINT.
12501 (face_at_buffer_position): Fix int -> EMACS_INT position.
12502 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12503 (select_frame_for_redisplay): Remove code duplication.
12504 (redisplay_internal): Adapt arg to call to clear_image_caches.
12505
12506 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12507
12508 * s/vms4-0.h:
12509 * s/vms4-2.h:
12510 * s/vms4-4.h:
12511 * s/vms5-5.h: Remove, unused.
12512
12513 * s/irix5-2.h:
12514 * s/irix6-0.h:
12515 * s/riscos5.h:
12516 * s/mach-bsd4-3.h:
12517 * m/mips4.h: Remove files for obsolete systems.
12518
12519 * Makefile.in:
12520 * filelock.c:
12521 * unexmips.c:
12522 * m/hp9000s300.h:
12523 * m/iris4d.h:
12524 * s/aix3-1.h:
12525 * s/hpux.h:
12526 * s/msdos.h:
12527 * s/usg5-0.h:
12528 * s/usg5-2-2.h:
12529 * s/usg5-2.h:
12530 * s/usg5-3.h: Remove references to obsolete variables.
12531
12532 * s/irix5-0.h: Remove, move all the contents ...
12533 * s/irix6-5.h: ... here. Simplify.
12534 * config.in: Regenerate.
12535
12536 2008-02-24 Jason Rumney <jasonr@gnu.org>
12537
12538 * w32term.c (x_draw_glyph_string_background): Clear the background
12539 manually when cleartype is in use.
12540 (x_draw_glyph_string_foreground): Draw text transparently when
12541 cleartype is in use.
12542
12543 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
12544 a font into it unless we have to.
12545
12546 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12547
12548 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
12549 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
12550
12551 2008-02-18 Jason Rumney <jasonr@gnu.org>
12552
12553 * w32fns.c (Fw32_shell_execute): Encode parameters.
12554
12555 2008-02-09 Eli Zaretskii <eliz@gnu.org>
12556
12557 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
12558
12559 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
12560
12561 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
12562
12563 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
12564
12565 * xterm.c (x_set_offset): Don't change the gravity if
12566 CHANGE_GRAVITY is -1.
12567
12568 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
12569
12570 * fileio.c (auto_save_error_occurred): New var.
12571 (auto_save_error): Set it.
12572 (Fdo_auto_save): Don't overwrite the error message if an auto-save
12573 error occurred.
12574
12575 2008-02-23 Eli Zaretskii <eliz@gnu.org>
12576
12577 * w32.c (globals_of_w32): Add initializations for
12578 g_b_init_get_sid_sub_authority and
12579 g_b_init_get_sid_sub_authority_count.
12580
12581 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
12582
12583 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
12584 (font_parse_xlfd): Use them for sanity check.
12585 (Finternal_set_font_style_table): Make sure the table is bijective.
12586
12587 Consolidate the image_cache to the terminal struct.
12588 * termhooks.h (P_): Remove redundant def.
12589 (struct terminal): New field `image_cache'.
12590 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
12591 of FRAME_X_IMAGE_CACHE.
12592 * xterm.h (struct x_display_info): Remove image_cache field.
12593 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12594 * w32term.h (struct w32_display_info): Remove image_cache field.
12595 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12596 * macterm.h (struct mac_display_info): Remove image_cache field.
12597 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12598 * xterm.c (x_term_init):
12599 * w32term.c (w32_term_init):
12600 * macterm.c (mac_term_init): Set the image_cache in the terminal.
12601 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
12602 Remove declarations.
12603 (clear_image_caches, mark_image_cache): New declarations.
12604 * xfaces.c (clear_face_cache):
12605 * xdisp.c (redisplay_internal): Use clear_image_caches.
12606 * image.c (clear_image_cache): Don't check that a frame is on
12607 a window-system before checking if it shares the same cache.
12608 (clear_image_caches): New function.
12609 (Fclear_image_cache): Use it.
12610 (mark_image): Move from allo.c.
12611 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
12612 * alloc.c (mark_image, mark_image_cache): Move to image.c.
12613 (mark_object): Don't call mark_image_cache for frames.
12614 (mark_terminals): Call mark_image_cache.
12615
12616 * lisp.h (Fdelete_terminal): Declare.
12617
12618 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
12619 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
12620 wrong_type_argument.
12621
12622 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
12623
12624 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
12625 malayalam.el, and tamil.el. Add sinhala.el.
12626
12627 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
12628
12629 * xterm.c (x_connection_closed): Consolidate identical tests.
12630 (x_delete_terminal): Don't crash if called via x_connection_closed.
12631
12632 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
12633
12634 * xdisp.c (decode_mode_spec): New arg string.
12635 (display_mode_element): Adjust for the above change.
12636
12637 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12638
12639 * callint.c (Fcall_interactively): Use AREF.
12640
12641 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
12642
12643 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
12644
12645 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
12646
12647 * xfns.c (Fx_show_tip): Set string to " " if empty.
12648
12649 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
12650
12651 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
12652 with Qt.
12653
12654 2008-02-17 Kenichi Handa <handa@m17n.org>
12655
12656 * ftfont.c (ftfont_shape): Return Lispy number.
12657
12658 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
12659 for GCs.
12660 (Finternal_set_font_selection_order): Call font_update_sort_order
12661 only when enable_font_backend is set.
12662 (realize_x_face): Set face->font_info to that of default face only
12663 when enable_font_backend is set.
12664
12665 * xdisp.c (handle_composition_prop): Set it->c to the fist
12666 character of the composed region.
12667 (fill_composite_glyph_string): Set base_face->font_info to
12668 s->font_info. Get a face for ascii from base_face->ascii_face.
12669 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
12670 with a face already decided.
12671 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
12672 non-negative.
12673 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
12674 call font_prepare_composition unconditionally.
12675
12676 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
12677
12678 * xterm.h (struct x_display_info): New member font.
12679
12680 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
12681 (x_set_mouse_face_gc, x_new_font): Likewise.
12682 (x_term_init): Setup display_info->font.
12683 (x_delete_terminal): Free display_info->font.
12684
12685 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
12686
12687 * ftxfont.c (ftxfont_default_fid): Delete it.
12688 (ftxfont_open): Set xfont->fid to 0.
12689 (ftxfont_end_for_frame): Clear data specific to the frame and the
12690 font-driver.
12691
12692 * xftfont.c (xftfont_default_fid): Delete it.
12693 (xftfont_open): Set xfont->fid to 0.
12694
12695 * fontset.c (FONTSET_OBJLIST): New macro.
12696 (fontset_find_font): Update font-object list of the fontset.
12697 (free_realized_fontset): New function.
12698 (free_face_fontset): Call free_realized_fontset.
12699 (Ffont_info): Call font_close_object only when enable_font_backend
12700 is set.
12701
12702 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
12703 [HAVE_NTGUI]: Include w32term.h.
12704 [MAC_OS]: Include macterm.ch.
12705 (font_otf_ValueRecord): Use make_number.
12706 (font_finish_cache): Fix handling of reference count.
12707 (font_clear_cache): Update num_fonts.
12708 (font_open_entity): Update smallest_char_width and
12709 smallest_font_height of the frame.
12710 (font_close_object): Update num_fonts.
12711 (Fclear_font_cache): Fix finding the target cache data.
12712
12713 2008-02-16 Glenn Morris <rgm@gnu.org>
12714
12715 * fontset.c (Finternal_char_font): Fix compilation warning.
12716
12717 2008-02-16 Eli Zaretskii <eliz@gnu.org>
12718
12719 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
12720 instead of char arrays. Enlarge the size of array passed to
12721 get_token_information.
12722
12723 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
12724 warnings.
12725
12726 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
12727
12728 * .gdbinit: Don't set `args', it breaks gdb --args.
12729
12730 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
12731
12732 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
12733 within a narrowed buffer.
12734
12735 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
12736
12737 * coding.c (decode_coding_object, encode_coding_object):
12738 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
12739
12740 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12741
12742 * coding.c (coding_set_destination): Use BEG_BYTE rather than
12743 hardcoding 1.
12744 (detect_coding_system):
12745 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
12746 (string_char_to_byte, string_byte_to_char, insert_from_gap):
12747 * insdel.c (insert_from_gap):
12748 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
12749 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
12750 (string_to_multibyte):
12751 * character.c (chars_in_text, multibyte_chars_in_text):
12752 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
12753
12754 * character.h (FETCH_STRING_CHAR_ADVANCE)
12755 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
12756 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
12757 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
12758
12759 * casefiddle.c (casify_region): Only call after-change and composition
12760 functions on the part of the region that was changed.
12761
12762 * keyboard.c (read_avail_input):
12763 * frame.c (Fdelete_frame): Call Fdelete_terminal.
12764
12765 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12766
12767 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
12768 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
12769
12770 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
12771
12772 * w32menu.c (push_submenu_start, push_submenu_end)
12773 (push_left_right_boundary, push_menu_pane, push_menu_item):
12774 * keyboard.c (read_key_sequence): Don't pass args with side effects
12775 to AREF, it fails when compiling with -DENABLE_CHECKING.
12776
12777 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
12778
12779 * Makefile.in (${lispsource}international/charprop.el):
12780 Delete this target.
12781
12782 * search.c (boyer_moore): Fix incorrect synching of the trunk and
12783 emacs-unicode-2.
12784
12785 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12786
12787 * terminal.c (Fdelete_terminal): Clean up the `force' path.
12788
12789 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12790
12791 * frame.c (Qnoelisp): New symbol.
12792 (syms_of_frame): Initialize it.
12793 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
12794 harmless Elisp code, from a strong `force' from x_connection_closed.
12795 * frame.h (Qnoelisp): Declare.
12796 * xterm.c (x_connection_closed): Pass `noelisp'.
12797
12798 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
12799 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
12800 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
12801 rather than `int' for the type of `type'.
12802
12803 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
12804
12805 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
12806
12807 * Makefile.in (GNUC): Remove support for gcc-1.x.
12808
12809 2008-02-10 Richard Stallman <rms@gnu.org>
12810
12811 * lisp.h (ASET): Use AREF, not ASLOT.
12812
12813 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12814
12815 * lisp.h (ASET): Check bounds.
12816
12817 2008-02-10 Glenn Morris <rgm@gnu.org>
12818
12819 * buffer.c (mode-name): Doc fix.
12820
12821 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12822
12823 * Makefile.in:
12824 * emacs.c:
12825 * gmalloc.c:
12826 * keyboard.c:
12827 * lisp.h:
12828 * m/ibm370aix.h:
12829 * process.c:
12830 * regex.c:
12831 * s/hpux.h:
12832 * sysdep.c:
12833 * sysselect.h:
12834 * systty.h:
12835 * unexec.c:
12836 * w32term.c:
12837 * xsmfns.c:
12838 * xterm.c: Remove code that deals with obsolete variables.
12839
12840 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
12841
12842 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12843 nothing else needs it anymore.
12844
12845 2008-02-09 Eli Zaretskii <eliz@gnu.org>
12846
12847 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12848 instead of unibyte_char_to_multibyte.
12849
12850 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12851
12852 * s/gnu-linux.h: Remove commented out code.
12853
12854 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12855
12856 * Makefile.in: Update what RMS says about using autoconf.
12857 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12858 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12859 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12860 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12861
12862 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12863
12864 * keymap.c (Fkey_description): Move side effect outside of macro call.
12865
12866 * xfaces.c (Finternal_make_lisp_face):
12867 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12868
12869 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12870 (syms_of_fontset): Use ASET.
12871
12872 * fns.c (concat): Move side effect outside of macro call.
12873 (hash_clear): Use ASET.
12874
12875 2008-02-08 Richard Stallman <rms@gnu.org>
12876
12877 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
12878 If FORCE, and frame has a surrogate minibuffer for another frame,
12879 delete the other frame first.
12880
12881 2008-02-07 Timo Savola <timo.savola@iki.fi>
12882
12883 * xterm.c (x_detect_focus_change): Handle embed client message.
12884 (handle_one_xevent): Ditto.
12885 (handle_one_xevent): If embedded and we get a button press/release,
12886 request focus.
12887 (xembed_set_info, xembed_send_message): New functions.
12888 (x_make_frame_visible): Call xembed_set_info if embedded.
12889 (x_make_frame_invisible): Call xembed_set_info if embedded.
12890 (x_term_init): Initialize Xatom_XEMBED.
12891 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
12892 (x_iconify_frame): Ditto.
12893
12894 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
12895 (enum xembed_info, enum xembed_message, enum xembed_focus)
12896 (enum xembed_modifier, enum xembed_accelerator): New.
12897 (xembed_set_info, xembed_send_message): Declare.
12898 (FRAME_X_EMBEDDED_P): New.
12899
12900 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
12901 gtk_plug_new.
12902
12903 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
12904 window ID of a frame.
12905 (x_window): Reparent frame if embedded.
12906 (Fx_create_frame): Don't set border width if embedded.
12907
12908 * emacs.c (USAGE3): Add --parent-id.
12909 (standard_args): Ditto.
12910
12911 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
12912
12913 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
12914
12915 2008-02-07 Jim Meyering <meyering@redhat.com>
12916
12917 Use "do...while (0)", not "if (1)...else" in macro definitions.
12918 The latter provokes a warning from gcc about the empty else, when
12919 followed by ";". Also, without that trailing semicolon, it would
12920 silently swallow up any following statement.
12921 * syntax.h (SETUP_SYNTAX_TABLE)
12922 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
12923 * buffer.h (DECODE_POSITION): Likewise.
12924 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
12925 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
12926 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
12927 (FETCH_CHAR_ADVANCE): Likewise.
12928 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
12929
12930 2008-02-07 Jim Meyering <meyering@redhat.com>
12931
12932 * lread.c [lint]: Don't include <sys/inode.h>.
12933
12934 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12935
12936 * xselect.c (x_handle_dnd_message):
12937 * xmenu.c (digest_single_submenu, xmenu_show):
12938 * xdisp.c (with_echo_area_buffer_unwind_data)
12939 (format_mode_line_unwind_data, unwind_format_mode_line)
12940 (display_menu_bar):
12941 * eval.c (Ffetch_bytecode):
12942 * doc.c (store_function_docstring):
12943 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12944 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12945 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12946
12947 2008-02-07 Kenichi Handa <handa@m17n.org>
12948
12949 * ftxfont.c (ftxfont_open): Don't set
12950 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12951
12952 * ftfont.c (ftfont_open): Fix previous change.
12953
12954 2008-02-06 Jason Rumney <jasonr@gnu.org>
12955
12956 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12957 Use cached metrics for ASCII characters.
12958 (w32font_open_internal): Don't set font's owning_frame.
12959 Cache metrics for ASCII characters.
12960
12961 * w32font.h (struct w32font_info): Add ascii_metrics.
12962 Remove owning_frame.
12963
12964 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12965
12966 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12967 to negative value.
12968
12969 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12970
12971 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12972
12973 * charset.c (syms_of_charset): Set QCtest and Qeq.
12974
12975 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12976
12977 * process.c (Fstart_process):
12978 * callproc.c (Fcall_process): Handle the case where
12979 Funhandled_file_name_directory returns nil.
12980
12981 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12982 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12983 * font.c (check_gstring): Use them and AREF to access the vector before
12984 we know it's really a gstring.
12985 (Ffont_shape_text): Fix typo.
12986 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
12987
12988 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12989 Declare.
12990
12991 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12992
12993 2008-02-05 Jason Rumney <jasonr@gnu.org>
12994
12995 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12996 Set smallest_font_height and smallest_char_width in display info.
12997
12998 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12999
13000 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13001
13002 2008-02-05 Miles Bader <miles@gnu.org>
13003
13004 * xfaces.c (get_lface_attributes, merge_named_face)
13005 (lookup_named_face, lookup_derived_face, realize_named_face):
13006 Revert 2008-02-01 change by cyd@stupidchicken.com.
13007
13008 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13009
13010 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13011 fallback fonts.
13012 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13013
13014 2008-02-04 Jason Rumney <jasonr@gnu.org>
13015
13016 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13017 set full_name.
13018 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13019
13020 2008-02-03 Jason Rumney <jasonr@gnu.org>
13021
13022 * makefile.w32-in (OBJ1): Include font.o here.
13023 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13024
13025 2008-02-02 Jason Rumney <jasonr@gnu.org>
13026
13027 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13028
13029 2008-02-01 Jason Rumney <jasonr@gnu.org>
13030
13031 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13032
13033 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13034
13035 2008-02-01 Andreas Schwab <schwab@suse.de>
13036
13037 * Makefile.in (shortlisp, lisp): Update for rename of
13038 ../lisp/language/myanmar.el.
13039
13040 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
13041
13042 * xfaces.c (get_lface_attributes): Delete function.
13043 (merge_named_face, lookup_named_face, lookup_derived_face)
13044 (realize_named_face): Call lface_from_face_name directly, and use
13045 the fact that merge_face_vectors does not alter its FROM argument.
13046
13047 2008-02-01 Jason Rumney <jasonr@gnu.org>
13048
13049 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13050 input in the default locale. Handle non-Unicode multibyte input.
13051
13052 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13053
13054 * fontset.c (reorder_font_vector): Exclude nil elements from the
13055 font group. Don't try multiple fonts.
13056 (fontset_font): Adjust for the above change.
13057 (Finternal_char_font): Return nil if the found font doesn't
13058 contain the character ch.
13059
13060 * Makefile.in (lisp, shortlisp): Add cham.el.
13061
13062 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13063
13064 * font.h (FONTP): Make it return 1 also for a font-object.
13065
13066 * .gdbinit (xfontset): New function.
13067
13068 * font.c (font_find_for_lface): Check if the character C is
13069 supported or not only for the first font.
13070
13071 * fontset.c (reorder_font_vector): Fix typo.
13072 (fontset_find_font): Don't add a font-spec specifying a script.
13073 Use 0 (not Qt) for the indication of empty font-group. Change the
13074 format of RFONT-DEF. Return Qt if no font in the font-group
13075 support the character.
13076 (fontset_font): Adjust for the above change. If no font was
13077 found the character, remember that.
13078 (face_for_char): Adjust for the change of RFONT-DEF.
13079 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13080 no font for the target.
13081 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13082
13083 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13084
13085 * font.c (font_load_for_face): Handle the case that the font in
13086 face->lface is a string.
13087
13088 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13089
13090 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13091
13092 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13093
13094 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13095 Fix previous change. If the frame is not on a window system,
13096 signal an error.
13097
13098 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13099
13100 * coding.c (decode_coding_object, encode_coding_object): Adjust
13101 marker positions after conversion.
13102
13103 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13104
13105 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13106
13107 * font.c (font_find_for_lface): Fix the handling of the return
13108 value of font_has_char.
13109 (Ffont_shape_text): Fix previous change.
13110
13111 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13112 (fontset_ref_and_range): Delete it.
13113 (fontset_find_font): Call char_table_ref_and_range instead of
13114 FONTSET_REF_AND_RANGE.
13115 (make_fontset): Don't setup font groups of Latin here.
13116 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13117 (new_fontset_from_font): Make the specified font the default for
13118 all Latin characters.
13119
13120 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13121
13122 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13123 is on a window system before accessing the fontset of the frame.
13124
13125 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13126
13127 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13128
13129 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13130 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13131
13132 * font.c (Ffont_shape_text): If the font driver doesn't have a
13133 shaper function, make zero-width glyphs to have at least one-pixel
13134 width. Fix setting of `to' field of glyphs.
13135
13136 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13137
13138 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13139 glyphs.
13140
13141 * font.h (struct font_driver): Improve docstring of member `shape'.
13142
13143 2008-02-01 Kenichi Handa <handa@m17n.org>
13144
13145 * composite.c (syms_of_composite): Fix docstring of
13146 auto-composition-function.
13147
13148 * font.h (LGLYPH_SIZE): New macro.
13149
13150 * font.c (Ffont_fill_gstring): Stop filling when a character not
13151 supported by the font is found.
13152 (Ffont_shape_text): When a shape callback function returns nil,
13153 try at most two more times with larger gstring.
13154 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13155
13156 * xdisp.c (handle_auto_composed_prop): Change the argument to
13157 auto-composition-function.
13158
13159 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13160 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13161 Lispy glyph and store it in the lgstring.
13162
13163 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13164
13165 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13166
13167 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13168
13169 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13170
13171 * fontset.c (Vfont_encoding_charset_alist): New variable.
13172 (syms_of_fontset): DEFVAR it.
13173 (reorder_font_vector, fontset_find_font): Optimize for the case of
13174 no need of reordering.
13175 (face_for_char): Map the charset property by
13176 Vfont_encoding_charset_alist.
13177
13178 2008-02-01 Jason Rumney <jasonr@gnu.org>
13179
13180 * w32font.c (logfonts_match): Don't check adstyle here.
13181 (font_matches_spec): Check here against physical font instead.
13182 (add_font_entity_to_list): Avoid some substitutions.
13183
13184 * font.c (font_parse_fcname): Default weight and slant to normal.
13185 (font_score): Prefer normal fonts if weight or slant unspecified.
13186 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13187 match freetype scores.
13188
13189 2008-02-01 Jason Rumney <jasonr@gnu.org>
13190
13191 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13192 font, as it may have been deleted.
13193 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13194 most common hyphenless variation.
13195 (logfonts_match): Check generic family.
13196 (font_matches_spec): Don't check generic family here.
13197 (fill_in_logfont): Set generic family based on adstyle.
13198
13199 * w32font.h (w32font_get_cache): Update declaration.
13200
13201 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13202
13203 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13204
13205 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13206 If none of the new drivers are available, call font_update_drivers
13207 with the old drivers.
13208
13209 * w32font.c (w32font_get_cache): Adjust the argument type.
13210
13211 * xfont.c (xfont_get_cache): Adjust the argument type.
13212
13213 * font.h (struct font_driver): Change argument type of get_cache.
13214
13215 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13216
13217 * font.c (Ffont_get): Fix arguments to Fassoc.
13218 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13219 (font_clear_cache): New function.
13220 (font_list_entities, font_matching_entity): Use font_get_cache.
13221 (font_update_drivers): Call font_clear_cache when finishing a driver.
13222
13223 * fontset.c (fontset_find_font): Fix previous change.
13224
13225 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13226
13227 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13228 dpyinfo->font_table.
13229 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13230 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13231
13232 * font.c (font_at): Handle the case that the arg C is negative.
13233 Handle the unibyte case.
13234 (Ffont_at): Call font_at with the arg C -1.
13235
13236 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13237 the position here, and call font_at with the arg C -1.
13238 Don't check the range of the existing composition at the point.
13239
13240 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13241
13242 * fontset.c (fontset_add): New args charset_id and family.
13243 Change caller.
13244 (load_font_get_repertory, fontset_find_font): Assume that
13245 font_spec is always a font-spec object.
13246 (Fset_fontset_font): Always store a font-spec object in a fontset.
13247
13248 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13249 instead of get_property_and_range.
13250
13251 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13252
13253 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13254 (xftfont_open): Don't keep locking face.
13255 (xftfont_close): Don't unlock face.
13256 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13257
13258 * fontset.c (fontset_find_font): Don't prefer a font of
13259 supplementary charset.
13260
13261 2008-02-01 Kenichi Handa <handa@m17n.org>
13262
13263 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13264 script, langsys_tag to langsys, new member script.
13265 (OTF_TAG_STR): Terminate by '\0'.
13266 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
13267 listing to the script specified in that property. Fix arg to
13268 OTF_check_features.
13269
13270 2008-02-01 Jason Rumney <jasonr@gnu.org>
13271
13272 * w32font.h: New file.
13273
13274 * w32font.c: Include it.
13275 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13276 (w32font_open): Set owning_frame.
13277 (w32font_text_extents): Use owning_frame.
13278 (struct font_callback_data): Add opentype_only field.
13279 (add_font_entity_to_list): Use it to filter fonts.
13280 Don't check against full name.
13281 (w32font_list_internal): New function.
13282 (w32font_list): Use it.
13283 (w32font_match_internal): New function.
13284 (w32font_match): Use it.
13285 (w32font_open_internal): New function.
13286 (w32font_open): Use it.
13287 (w32font_get_cache, w32font_close, w32font_has_char)
13288 (w32font_encode_char, w32font_text_extents, w32font_draw):
13289 Make non-static.
13290
13291 * makefile.w32-in (w32font.o): Depend on w32font.h.
13292
13293 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13294
13295 * charset.c (Fdefine_charset_internal): Record a supplementary
13296 charset at the tail of Vcharset_order_list.
13297
13298 * font.c (Ffont_shape_text): Fix the return value.
13299
13300 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13301
13302 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13303
13304 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13305
13306 * ftfont.c (struct OpenTypeSpec): New struct.
13307 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13308 (ftfont_get_open_type_spec): New function.
13309 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13310
13311 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13312
13313 2008-02-01 Jason Rumney <jasonr@gnu.org>
13314
13315 * w32font.c (add_font_entity_to_list): Compare only the beginning
13316 of full name.
13317
13318 2008-02-01 Kenichi Handa <handa@m17n.org>
13319
13320 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13321 Never return HANDLED_RECOMPUTE_PROPS.
13322
13323 2008-02-01 Kenichi Handa <handa@m17n.org>
13324
13325 * font.c (font_gstring_produce): Delete it.
13326
13327 * composite.h (COMPOSITION_METHOD):
13328 Handle COMPOSITION_WITH_GLYPH_STRING.
13329
13330 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13331
13332 * xfont.c (Qx): Delete.
13333 (syms_of_xfont): Don't initialize Qx.
13334
13335 * composite.h (enum composition_method):
13336 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13337
13338 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13339
13340 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13341 (choose_face_font): Accept new form of font-spec.
13342
13343 * frame.h (font_driver_list): Declare it unconditionally.
13344 (struct frame): Define members font_driver_list and font_data_list
13345 unconditionally.
13346
13347 * fontset.c: Include "font.h" unconditionally.
13348 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13349 (Fset_fontset_font): Accept a font-spec object.
13350
13351 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13352 PIXEL_SIZE part a wild card.
13353
13354 * dispextern.h (struct glyph_string): Define members clip and
13355 num_clips unconditionally.
13356 (struct face): Define members font_info and extra unconditionally.
13357
13358 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13359 ftfont_info only when HAVE_LIBOTF is defined.
13360
13361 2008-02-01 Andreas Schwab <schwab@suse.de>
13362
13363 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13364 and end.
13365
13366 2008-02-01 Jason Rumney <jasonr@gnu.org>
13367
13368 * w32font.c (w32font_driver): Add new fields.
13369
13370 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13371
13372 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13373 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13374 (LIBES): Add @M17N_FLT_CFLAGS@.
13375
13376 * composite.c (compose_text): Don't treat the new style
13377 composition specially.
13378
13379 * emacs.c (main): Call syms_of_font unconditionally.
13380
13381 * font.h (FONT_ENTITY_NOT_LOADABLE)
13382 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13383 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13384 (struct font_driver): New member shape.
13385 (font_registry_charsets): Extern it.
13386 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13387 (font_otf_capability, font_drive_otf): Delete their externs.
13388
13389 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13390 (font_charset_alist, font_registry_charsets): Move from xfont.c
13391 and rename.
13392 (font_prop_validate_otf): New function.
13393 (font_property_table): Register it for QCotf.
13394 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13395 (font_drive_otf): Delete.
13396 (font_prepare_composition): New arg F. Adjust for the change of
13397 lispy gstring.
13398 (font_find_for_lface): New arg C.
13399 (font_load_for_face): Adjust for the change of font_find_for_lface.
13400 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13401 lispy gstring.
13402 (Ffont_shape_text): New function.
13403 (Fopen_font): If the font size is not given, use 12-pixel.
13404 (Ffont_at): New arg STRING.
13405 (syms_of_font): Initalize font_charset_alist.
13406 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13407 conditionally.
13408
13409 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13410 fonts of the same font-spec. Change the format of RFONT-DEF.
13411 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13412 Adjust for the change of RFONT-DEF.
13413 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13414
13415 * ftfont.h: New file.
13416
13417 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13418 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13419 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13420 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13421 font_otf_capability and font_drive_otf, set ftfont_shape.
13422 (ftfont_list): Adjust for the change of :otf property value.
13423 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13424 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13425 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13426 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13427 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13428 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13429
13430 * w32term.c (x_draw_composite_glyph_string_foreground):
13431 Adjust for the change of lispy gstring.
13432
13433 * xdisp.c (handle_composition_prop): Adjust for the change of
13434 lispy gstring. Call a function for auto-composition with the
13435 third arg it->window.
13436 (fill_composite_glyph_string): Adjust for the change of lispy string.
13437 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13438
13439 * xfaces.c (set_font_frame_param): Adjust for the change of
13440 font_find_for_lface.
13441
13442 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13443 (xfont_registry_charsets): Likewise. Change caller.
13444 (syms_of_xfont): Don't handle x_font_charset_alist.
13445
13446 * xftfont.c: Include "ftfont.h".
13447 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13448 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13449 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13450 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13451 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13452 Set xftfont_driver.shape to xftfont_shape.
13453
13454 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13455 the change of lispy gstring.
13456
13457 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13458
13459 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13460
13461 2008-02-01 Jason Rumney <jasonr@gnu.org>
13462
13463 * w32font.c (w32font_draw): Fill background manually.
13464
13465 2008-02-01 Jason Rumney <jasonr@gnu.org>
13466
13467 * font.c (Qfontp): Remove unused symbol.
13468 (QCantialias): New symbol.
13469 (syms_of_font): Define it.
13470 (font_property_table): Set a validator for QCantialias.
13471
13472 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13473 Define if not already.
13474 (QCfamily): Share with xfaces.c.
13475 (Qstandard, Qsubpixel, Qnatural): New symbols.
13476 (syms_of_w32font): Define them. Don't define QCfamily here.
13477 (w32_antialias_type, lispy_antialias_type): New functions.
13478 (w32_enumfont_pattern_entity): New arg requested_font.
13479 Set antialias parameter if non-default was requested.
13480 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13481
13482 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13483
13484 * lread.c (read1): Undo the previous change.
13485
13486 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13487
13488 * frame.c (Fdelete_frame): Call font_update_drivers only when
13489 USE_FONT_BACKEND is defined.
13490
13491 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13492
13493 * font.h (struct font_bitmap): New member bits_per_pixel.
13494 (struct font_driver): New members start_for_frame and end_for_frame.
13495 (struct font_data_list): New struct.
13496 (font_put_frame_data, font_get_frame_data): Extern them.
13497
13498 * frame.h (struct frame): New member font_data_list.
13499
13500 * font.c (font_update_drivers): Call driver->start_for_frame and
13501 driver->end_for_frame at proper timings.
13502 (font_put_frame_data, font_get_frame_data): New functions.
13503 (Ffont_spec): Add usage in the docstring.
13504
13505 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13506 (Fdelete_frame): Call font_update_drivers.
13507
13508 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13509 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13510 (xftfont_get_xft_draw): New function.
13511 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13512 (xftfont_end_for_frame): New function.
13513 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13514
13515 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13516 Change argument. Cache GCs in the per-frame data.
13517 (struct ftxfont_frame_data): New struct.
13518 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13519 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13520 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13521 (ftxfont_end_for_frame): New function.
13522 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13523
13524 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13525
13526 2008-02-01 Kenichi Handa <handa@m17n.org>
13527
13528 * xselect.c (Vselection_coding_system)
13529 (Vnext_selection_coding_system): Delete them.
13530 (syms_of_xselect): Don't declare selection-coding-system and
13531 next-selection-coding-system. They are declared in select.el.
13532
13533 2008-02-01 Jason Rumney <jasonr@gnu.org>
13534
13535 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
13536
13537 * w32fns.c: Include imm.h.
13538 (get_composition_string_fn, get_ime_context_fn): New optional
13539 system functions.
13540 (globals_of_w32fns): Load them from imm32.dll.
13541 (ignore_ime_char): New flag.
13542 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
13543 WM_IME_ENDCOMPOSITION messages.
13544
13545 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
13546 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
13547
13548 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13549
13550 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
13551 (READCHAR_REPORT_MULTIBYTE): New macro.
13552 (readchar): New 2nd arg MULTIBYTE.
13553 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
13554 Make symbol's name multibyte according to the multibyteness of the
13555 source.
13556
13557 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13558
13559 * xfaces.c (face_for_overlay_string): Call lookup_face with
13560 correct arguments (fix of synching with the trunk).
13561
13562 2008-02-01 Kenichi Handa <handa@m17n.org>
13563
13564 * font.c (font_prop_validate_symbol, font_prop_validate_style)
13565 (font_prop_validate_non_neg, font_prop_validate_spacing):
13566 Delete argument prop_index.
13567 (font_property_table): Change arguments to validater. Change Callers.
13568 (font_lispy_object): Delete.
13569 (font_at): Use font_find_object instead fo font_lispy_object.
13570
13571 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13572
13573 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
13574 and file names.
13575
13576 2008-02-01 Jason Rumney <jasonr@gnu.org>
13577
13578 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
13579 (font_matches_spec): Remove debug output.
13580 (add_font_entity_to_list): Avoid using substituted fonts.
13581
13582 2008-02-01 Jason Rumney <jasonr@gnu.org>
13583
13584 * doc.c (Fsnarf_documentation):
13585 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
13586
13587 2008-02-01 Miles Bader <miles@gnu.org>
13588
13589 * dispextern.h (struct glyph_row): Only define "clip" field if
13590 HAVE_WINDOW_SYSTEM is defined.
13591
13592 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13593
13594 Fix up multi-tty merge.
13595
13596 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
13597 and indentation.
13598
13599 * xfaces.c (free_realized_face, clear_face_gcs):
13600 Include font_done_for_face in the input_blocked section, just in case.
13601
13602 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
13603 (get_char_face_and_encoding): Undo last change and remove the *other*
13604 duplicate definition (i.e. keep the one that's better scoped and that
13605 includes code for the font-backend).
13606
13607 * terminal.c (create_terminal): Default keyboard_coding to
13608 `no-conversion' and terminal_coding to `undecided'.
13609
13610 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
13611
13612 * fontset.c (free_realized_fontsets): Check that the table entry does
13613 contain a fontset before trying to compare it to `base'.
13614
13615 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
13616 syms_of_charset, and syms_of_coding earlier because init_window_once
13617 now needs Vcoding_system_hash_table to be setup.
13618
13619 * coding.h (default_buffer_file_coding): Remove.
13620
13621 * coding.c (default_buffer_file_coding): Remove.
13622 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
13623 than ->symbol, and use the terminal-local coding system.
13624 (syms_of_coding): Don't setup the coding-systems that are not
13625 terminal-local.
13626 (Fdefine_coding_system_internal): Use XCAR/XCDR.
13627
13628 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
13629 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
13630
13631 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
13632 in chartab.c and were re-added here by mistake.
13633 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
13634
13635 * doc.c (Fsnarf_documentation):
13636 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
13637 src to etc.
13638
13639 * ChangeLog.10: Add mistakenly removed entry.
13640
13641 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
13642
13643 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
13644
13645 2008-02-01 Miles Bader <miles@gnu.org>
13646
13647 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
13648 Add extra args to FACE_FOR_CHAR.
13649
13650 2008-02-01 Kenichi Handa <handa@m17n.org>
13651
13652 * keymap.c (where_is_internal_1): If key is a cons, store the copy
13653 in sequence.
13654
13655 * chartab.c (map_sub_char_table, map_char_table): If the range
13656 contains just one character, call the function with that character
13657 even if the depth is not 3.
13658
13659 2008-02-01 Jason Rumney <jasonr@gnu.org>
13660
13661 * w32font.c (w32font_text_extents): Calculate metrics for the
13662 whole string.
13663
13664 2008-02-01 Jason Rumney <jasonr@gnu.org>
13665
13666 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
13667
13668 2008-02-01 Jason Rumney <jasonr@gnu.org>
13669
13670 * w32term.c (x_set_glyph_string_clipping): Use
13671 get_glyph_string_clip_rects.
13672 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13673 Adjust for the change of struct glyph_string.
13674
13675 * w32font.c (w32font_draw): Do clipping here.
13676
13677 2008-02-01 Kenichi Handa <handa@m17n.org>
13678
13679 * xftfont.c (xftfont_draw): Adjust for the change of struct
13680 glyph_string.
13681
13682 * xterm.c (x_set_glyph_string_clipping): Use
13683 get_glyph_string_clip_rects.
13684 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13685 Adjust for the change of struct glyph_string.
13686
13687 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
13688 the resulting clip(s}.
13689 (expose_overlaps): Add arg r. Change callers. Set it to
13690 row->clip temporarily.
13691 (expose_window): Redraw rows overlapping the exposed area.
13692
13693 * dispextern.h (struct glyph_row): New member clip.
13694 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
13695 clip_height, new member clip, and num_clips.
13696
13697 2008-02-01 Kenichi Handa <handa@m17n.org>
13698
13699 * data.c (Fchar_or_string_p): Fix docstring.
13700
13701 2008-02-01 Kenichi Handa <handa@m17n.org>
13702
13703 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
13704 create a temporary XftDraw object.
13705
13706 2008-02-01 Kenichi Handa <handa@m17n.org>
13707
13708 * font.c (Ffontp): Fix docstring.
13709
13710 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
13711 strong evidence of ISO-2022.
13712
13713 2008-02-01 Kenichi Handa <handa@m17n.org>
13714
13715 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
13716 SYNTAX_ENTRY_FOLLOW_PARENT.
13717
13718 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13719
13720 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
13721 its type.
13722 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13723 Update to the new type of weak_hash_tables and next_weak.
13724
13725 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
13726 a plain C pointer to Lisp_Hash_Table.
13727
13728 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
13729 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
13730 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
13731 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
13732 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
13733 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
13734 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
13735 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
13736 (GC_EQ): Remove since they've been identical to their non-GC_
13737 alter-egos ever since the markbit was eradicated.
13738
13739 * alloc.c:
13740 * buffer.c:
13741 * buffer.h:
13742 * data.c:
13743 * fileio.c:
13744 * filelock.c:
13745 * fns.c:
13746 * frame.h:
13747 * lisp.h:
13748 * macterm.c:
13749 * print.c:
13750 * process.c:
13751 * w32fns.c:
13752 * w32menu.c:
13753 * w32term.c:
13754 * xfns.c:
13755 * xmenu.c:
13756 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
13757
13758 2008-02-01 Kenichi Handa <handa@m17n.org>
13759
13760 * chartab.c (map_sub_char_table): Make it work for the top-level
13761 char-table. Fix handling of parent char-table.
13762 (map_char_table): Adjust for the above change.
13763
13764 2008-02-01 Jason Rumney <jasonr@gnu.org>
13765
13766 * w32font.c (Qgdi): Rename from Qw32.
13767
13768 2008-02-01 Jason Rumney <jasonr@gnu.org>
13769
13770 * w32bdf.c (get_quoted_string): Make function static.
13771
13772 2008-02-01 Kenichi Handa <handa@m17n.org>
13773
13774 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
13775 bigger ascent and descent than those of the font, use them as
13776 font's ascent and descent.
13777
13778 2008-02-01 Kenichi Handa <handa@m17n.org>
13779
13780 * Makefile.in (${lispsource}international/charprop.el): Move this
13781 target within "#ifdef HAVE_UNIDATA" and "#endif".
13782
13783 2008-02-01 Kenichi Handa <handa@m17n.org>
13784
13785 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
13786 (shortlisp): Add ../lisp/language/tai-viet.el.
13787
13788 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
13789
13790 * Makefile.in (${lispsource}international/charprop.el): Depend on
13791 temacs${EXEEXT}.
13792
13793 2008-02-01 Jason Rumney <jasonr@gnu.org>
13794
13795 * w32font.c (w32font_close): Delete the GDI font object.
13796
13797 * w32menu.c: Include character.h.
13798
13799 * w32proc.c: Likewise.
13800
13801 * w32select.c: Likewise.
13802
13803 * makefile.w32-in (w32proc.o): Depend on character.h.
13804
13805 2008-02-01 Jason Rumney <jasonr@gnu.org>
13806
13807 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
13808
13809 * w32menu.c (syms_of_w32menu): Likewise.
13810
13811 * w32proc.c (syms_of_ntproc): Likewise.
13812
13813 * w32select.c (syms_of_w32select): Likewise.
13814
13815 * w32term.c (syms_of_w32term): Likewise.
13816
13817 2008-02-01 Jason Rumney <jasonr@gnu.org>
13818
13819 * w32font.c (w32font_draw): Delete brush after using it.
13820
13821 2008-02-01 Jason Rumney <jasonr@gnu.org>
13822
13823 * w32font.c (w32font_open): Don't set font_idx.
13824 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
13825 to font settings.
13826 (w32font_draw): Fill background explicitly.
13827
13828 2008-02-01 Jason Rumney <jasonr@gnu.org>
13829
13830 * w32term.c (w32_initialize): Don't call w32font_initialize.
13831
13832 * w32font.c (w32font_info): Remove subranges.
13833 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
13834 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
13835 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
13836 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
13837 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
13838 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
13839 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
13840 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
13841 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
13842 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13843 New symbols.
13844 (font_callback_data): New struct.
13845 (w32font_list, w32font_match): Use it.
13846 (w32font_open): Don't populate subranges.
13847 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13848 (w32font_encode_char): Always return unicode code-point as-is.
13849 (w32font_text_extents): Supply a transformation matrix to
13850 GetGlyphOutline. Never look up by glyph index. Avoid looping
13851 twice. Use unicode version of GetTexExtentPoint32 instead of
13852 glyph index version.
13853 (set_fonts_frame): Remove.
13854 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13855 set frame parameter. Use backward compatible fake foundries.
13856 Save generic family in extra slot under QCfamily. Make width slot
13857 constant. Save QCspacing value. Save list of scripts instead of
13858 binary subranges.
13859 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13860 (add_font_entity_to_list): Use font_callback_data struct. Filter
13861 unwanted fonts.
13862 (add_one_font_entity_to_list): Use font_callback_data struct.
13863 (w32_registry): Default to iso10646_1.
13864 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13865 string font registries. Don't fill in font name if it is a generic
13866 family name, fill family instead. Use spacing, family and script
13867 extra info to fill pitch, family and charset fields.
13868 (list_all_matching_fonts): Use font_callback_data struct.
13869 (unicode_range_for_char): Remove.
13870 (font_supported_scripts): New function.
13871 (w32font_initialize): Remove.
13872 (syms_of_w32font): Update which symbols are defined.
13873
13874 2008-02-01 Jason Rumney <jasonr@gnu.org>
13875
13876 * font.c (font_pixel_size): Reverse assq_no_quit args.
13877
13878 * w32term.h (FONT_WIDTH): Report max width, not average.
13879 (FONT_MAX_WIDTH): Remove.
13880 (FONT_AVG_WIDTH): New macro.
13881
13882 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
13883 redefinition of FONT_WIDTH.
13884
13885 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
13886 (w32_cache_char_metrics): Use FONT_WIDTH.
13887
13888 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
13889
13890 2008-02-01 Jason Rumney <jasonr@gnu.org>
13891
13892 * w32font.c (w32font_open): Make lfHeight negative.
13893
13894 * w32fns.c (x_default_font_parameter): Use new style font name.
13895 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
13896
13897 2008-02-01 Jason Rumney <jasonr@gnu.org>
13898
13899 * w32font.c (QCsubranges): New symbol.
13900 (w32font_open, w32font_has_char): Get subranges from subproperty
13901 of extra.
13902 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
13903 (syms_of_w32font): Define :subranges symbol.
13904
13905 * font.c (font_put_extra): Expose externally.
13906
13907 * font.h (font_put_extra): Move declaration from font.c.
13908
13909 * font.c (Ffont_get): Use font driver to determine otf capability.
13910 (adjust_anchor): Check if driver defines anchor_point before using.
13911
13912 * w32font.c (w32font_open): Handle size, height and pixel_size better.
13913 (w32font_draw): Use options.
13914 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
13915 Fix detection of truetype fonts.
13916 (registry_to_w32_charset): Handle charsets other than iso8859-1
13917 expressed as lisp symbols.
13918 (w32_registry): Express charset as lisp symbol.
13919 (fill_in_logfont): Reverse pixel and point height logic.
13920 Don't set width here. Set quality to default.
13921
13922 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
13923 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
13924
13925 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13926 Remove redundant loop and allocation.
13927
13928 * makefile.w32-in (font.o, w32font.o): New objects.
13929 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
13930 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
13931
13932 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13933 STORE_XCHARB a valid l-value.
13934
13935 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13936 calculations for non-Truetype fonts.
13937 (x_draw_glyph_string): Sync with xterm.c.
13938 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13939 Remove redundant code.
13940 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13941
13942 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13943 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13944
13945 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13946 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13947
13948 * w32font.c: New file for w32 font backend.
13949
13950 2008-02-01 Kenichi Handa <handa@m17n.org>
13951
13952 * term.c: Don't include "buffer.h" twice.
13953
13954 2008-02-01 Kenichi Handa <handa@m17n.org>
13955
13956 * character.c (Funibyte_string): New function.
13957 (syms_of_character): Defsubr it.
13958
13959 2008-02-01 Jason Rumney <jasonr@gnu.org>
13960
13961 * w32term.c [USE_FONT_BACKEND]:
13962 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13963 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13964 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13965 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13966 (x_free_frame_resources): Sync with xterm.c.
13967
13968 2008-02-01 Andreas Schwab <schwab@suse.de>
13969
13970 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13971 char-table size.
13972
13973 2008-02-01 Kenichi Handa <handa@m17n.org>
13974
13975 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13976
13977 2008-02-01 Kenichi Handa <handa@m17n.org>
13978
13979 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13980 font_otf_gpos, add font_drive_otf.
13981
13982 * fontset.c (fontset_find_font): Pay attention to font size
13983 specified for a font.
13984 (reorder_font_vector): Check contents of font_def.
13985
13986 * font.c (struct otf_list): Delete it.
13987 (otf_list): Make it a lisp variable.
13988 (otf_open): Use lispy otf_list.
13989 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13990 (check_otf_features): New function.
13991 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13992 New functions.
13993 (font_drive_otf): New function merging font_otf_gsub and
13994 font_otf_gpos.
13995 (font_open_for_lface): New arg spec. Change argument order.
13996 (font_load_for_face): Adjust for the change of font_open_for_lface.
13997 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13998 Ffont_otf_gpos.
13999 (syms_of_font): Staticpro otf_list. Delete defsubr of
14000 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14001
14002 * xfaces.c (set_font_frame_param): Adjust for the change of
14003 font_open_for_lface.
14004
14005 * font.h (font_open_for_lface): Adjust prototype.
14006 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14007 member otf_drive.
14008 (font_otf_gsub, font_otf_gpos): Delete externs.
14009 (font_drive_otf): Extern it.
14010
14011 2008-02-01 Kenichi Handa <handa@m17n.org>
14012
14013 * font.c (font_at): If the window W is not on a window system,
14014 return Qnil.
14015
14016 * coding.c (produce_chars, encode_coding): Don't call
14017 insert_from_gap if no characters to produce.
14018
14019 2008-02-01 Kenichi Handa <handa@m17n.org>
14020
14021 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14022 Fclear_face_cache.
14023
14024 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14025
14026 2008-02-01 Miles Bader <miles@gnu.org>
14027
14028 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14029 Parse "--disable-font-backend" option.
14030 (standard_args): Add "--disable-font-backend" option.
14031
14032 2008-02-01 Kenichi Handa <handa@m17n.org>
14033
14034 * fontset.c (fontset_find_font): New function.
14035 (fontset_font): Use fontset_find_font.
14036 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14037 Register the specified font for all Latin characters.
14038 (new_fontset_from_font): Register the specified font for all Latin
14039 characters.
14040 (dump_fontset): For a realized fontset, include the base fontset
14041 name in the returned vector.
14042
14043 2008-02-01 Kenichi Handa <handa@m17n.org>
14044
14045 * character.h (CHAR_STRING): Cast C to unsigned on calling
14046 char_string.
14047
14048 * character.c (char_string): Type of arg C changed to unsigned.
14049 Signal an error if C is an invalid character code.
14050
14051 * editfns.c (general_insert_function, Fchar_to_string):
14052 Use CHARACTERP, not INTEGERP.
14053
14054 2008-02-01 Kenichi Handa <handa@m17n.org>
14055
14056 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14057 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14058
14059 * regex.c (analyse_first): Fix for multibyte characters in "case
14060 charset:" and "case categoryspec:".
14061
14062 2008-02-01 Andreas Schwab <schwab@suse.de>
14063
14064 * Makefile.in (LIBES): Move standard libraries to the end.
14065
14066 2008-02-01 Kenichi Handa <handa@m17n.org>
14067
14068 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14069 nonzero, don't shrink the buffer nextb.
14070
14071 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14072
14073 * coding.c (coding_alloc_by_making_gap): New arg offset.
14074 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14075 offset.
14076 (decode_coding_iso_2022): Update coding->safe_charsets.
14077 (decode_coding_gap): Temporarily set
14078 current_buffer->text->inhibit_shrinking to 1.
14079
14080 2008-02-01 Kenichi Handa <handa@m17n.org>
14081
14082 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14083 indexing into elements of s->cmp and s->char2b.
14084
14085 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
14086
14087 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14088
14089 2008-02-01 Kenichi Handa <handa@m17n.org>
14090
14091 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14092 target_multibyte instead of multibyte.
14093 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14094 (bcmp_translate): Change the argument name from multibyte to
14095 target_multibyte.
14096
14097 2008-02-01 Kenichi Handa <handa@m17n.org>
14098
14099 These changes are to compile a regexp into a pattern that can be
14100 used both for multibyte and unibyte targets.
14101
14102 * Makefile.in (search.o): Depend on charset.h.
14103
14104 * character.c (multibyte_char_to_unibyte_safe): New function.
14105
14106 * search.c: Include "charset.h".
14107 (compile_pattern_1): Delete argument multibyte. Don't set
14108 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14109 (compile_pattern): Don't compare cp->buf.target_multibyte.
14110 Compare cp->buf.charset_unibyte.
14111 (compile_pattern): Set cp->buf.target_multibyte.
14112
14113 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14114
14115 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14116
14117 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14118 multibyte. Change callers.
14119 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14120 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14121 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14122 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14123 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14124 (regex_compile): Make the compiled pattern usable both for
14125 multibyte and unibyte targets.
14126 (analyse_first): Make the fastmap usable both for multibyte and
14127 unibyte targets.
14128 (TRANSLATE_VIA_MULTIBYTE): Delete.
14129 (re_match_2_internal): Pay attention to the case that the
14130 multibyteness of bufp and target may be different.
14131
14132 2008-02-01 Kenichi Handa <handa@m17n.org>
14133
14134 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14135 empty box occupy at least one column width.
14136
14137 2008-02-01 Miles Bader <miles@gnu.org>
14138
14139 * Makefile.in: Remove redundant HAVE_XFT clause.
14140
14141 2008-02-01 Kenichi Handa <handa@m17n.org>
14142
14143 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14144
14145 2008-02-01 Kenichi Handa <handa@m17n.org>
14146
14147 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14148 being nil.
14149
14150 2008-02-01 Kenichi Handa <handa@m17n.org>
14151
14152 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14153
14154 2008-02-01 Kenichi Handa <handa@m17n.org>
14155
14156 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14157
14158 2008-02-01 Kenichi Handa <handa@m17n.org>
14159
14160 * search.c (simple_search): Fix previous change.
14161
14162 2008-02-01 Kenichi Handa <handa@m17n.org>
14163
14164 * xftfont.c (ftfont_font_format): Extern declaration.
14165
14166 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14167
14168 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14169 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14170
14171 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14172 (ftfont_font_format): Fix previous change.
14173
14174 * font.h (Ffont_xlfd_name): EXFUN it.
14175
14176 * font.c (font_parse_xlfd): Fix the array size of `f'.
14177 (register_font_driver): Use EQ to compare driver->type.
14178
14179 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14180 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14181 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14182
14183 2008-02-01 Kenichi Handa <handa@m17n.org>
14184
14185 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14186 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14187
14188 2008-02-01 Kenichi Handa <handa@m17n.org>
14189
14190 * xfont.c (xfont_open): Set font->format.
14191
14192 * xftfont.c (xftfont_open): Set font->format.
14193
14194 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14195 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14196 (ftfont_open): Set font->format.
14197 (ftfont_font_format): New function.
14198
14199 * font.h (struct font): New member format.
14200
14201 * font.c (Qopentype): New variable.
14202 (syms_of_font): Defsym it.
14203 (Fquery_font): Change the format of the last element of the return
14204 value.
14205
14206 2008-02-01 Kenichi Handa <handa@m17n.org>
14207
14208 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14209 last resort.
14210
14211 2008-02-01 Kenichi Handa <handa@m17n.org>
14212
14213 * coding.c (detect_coding_charset): Fix detection of multi-byte
14214 charset.
14215
14216 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14217
14218 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14219
14220 2008-02-01 Kenichi Handa <handa@m17n.org>
14221
14222 * xdisp.c (get_next_display_element): Set it->face_id for the
14223 first component of a composition.
14224 (x_produce_glyphs): Check if the font is changed or not for composition.
14225
14226 2008-02-01 Kenichi Handa <handa@m17n.org>
14227
14228 * fontset.c (Qlatin): New variable.
14229 (syms_of_fontset): Define it as a lisp symbol.
14230 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14231
14232 2008-02-01 Kenichi Handa <handa@m17n.org>
14233
14234 * font.c (font_unparse_fcname): Pay attention to the case that
14235 some of font property is a null string.
14236
14237 2008-02-01 Kenichi Handa <handa@m17n.org>
14238
14239 * term.c: Include "composite.h".
14240 (encode_terminal_code): Output all components of composition.
14241 Check the size of encode_terminal_src.
14242 (produce_glyphs): For composition, call produce_composite_glyph.
14243 (append_composite_glyph, produce_composite_glyph): New functions.
14244
14245 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14246 is not found, get font_info from the current ascii face.
14247
14248 2008-02-01 Kenichi Handa <handa@m17n.org>
14249
14250 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14251 buffer-file-name to Qnil before calling insert_from_buffer.
14252
14253 * font.c (font_unparse_fcname): Pay attention to the case that
14254 foundry is a null string.
14255
14256 2008-02-01 Kenichi Handa <handa@m17n.org>
14257
14258 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14259
14260 * font.c (Qunicode_sip): New variable.
14261 (syms_of_font): Declare it as a Lisp symbol.
14262
14263 * font.h (Qunicode_sip): Extern it.
14264
14265 2008-02-01 Kenichi Handa <handa@m17n.org>
14266
14267 * composite.c (get_composition_id): Pay attention to TAB component.
14268
14269 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14270 TAB. Adjust for the change of s->char2b which always points to
14271 the first element of allocated memory.
14272
14273 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14274
14275 * xdisp.c (handle_composition_prop): Set it->c to the first
14276 non-TAB component.
14277 (fill_composite_glyph_string): Change argument.
14278 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14279 (x_produce_glyphs): Fix handling of left/right padding.
14280
14281 2008-02-01 Kenichi Handa <handa@m17n.org>
14282
14283 * coding.c (detect_coding_system): Fix for handling off
14284 inhibit_iso_escape_detection. Fix for the case that no coding
14285 system is defined for a specific coding category.
14286
14287 2008-02-01 Kenichi Handa <handa@m17n.org>
14288
14289 * font.c (font_matching_entity): Delete unused local var.
14290
14291 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14292 opening a font.
14293
14294 * fileio.c (Finsert_file_contents): On recovering a file, assume
14295 Unix-like eol.
14296 (choose_write_coding_system): On auto-saving a file, force
14297 Unix-like eol.
14298
14299 * coding.c (setup_coding_system): Fix setting of
14300 coding->common_flags based on eol_type.
14301 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14302 inherit from it.
14303
14304 2008-02-01 Kenichi Handa <handa@m17n.org>
14305
14306 * alloc.c (NSTATICS): Increas to 0x600.
14307
14308 2008-02-01 Kenichi Handa <handa@m17n.org>
14309
14310 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14311 (ftfont_list): Don't check :name property.
14312 (ftfont_match): New function.
14313 (ftfont_pattern_entity): If the pattern doesn't contain
14314 FC_SPACING, don't assume FC_MONO.
14315
14316 * font.h (struct font_driver): New member `match'.
14317 (font_update_drivers): Adjust prototype.
14318
14319 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14320 property of FONT.
14321 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14322 them unconditionally.
14323 (font_matching_entity): New function.
14324 (font_open_by_name): Try font_matching_entity if exact match is
14325 not found.
14326 (font_update_drivers): Delete the arg FONT. Return a list of
14327 actually used backends. Don't free faces, font caches here.
14328 Don't store data in frame parameters. Don't call x_set_font.
14329 (Ffont_spec): Store :name property as is.
14330 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14331 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14332 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14333 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14334 Call font->driver->otf_gsub instead of font_otf_gsub.
14335
14336 * frame.c (x_set_font_backend): Do more works that were done in
14337 font_update_drivers before.
14338
14339 * xfont.c (xfont_match): New function.
14340 (xfont_driver): Set xfont_driver.match to xfont_match.
14341 (xfont_draw): Set font in GC if necessary.
14342
14343 * ftxfont.c (ftxfont_match): New function.
14344 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14345
14346 * xftfont.c (xftfont_match): New function.
14347 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14348
14349 2008-02-01 Kenichi Handa <handa@m17n.org>
14350
14351 * font.h (struct font): New member scalable.
14352 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14353 (font_otf_gsub): Adjust prototype.
14354
14355 * font.c (font_otf_capability): Fix handling of the default langsys.
14356 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14357 Check the contents of SPEC.
14358 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14359 (check_gstring): New function.
14360 (REPLACEMENT_CHARACTER): New macro.
14361 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14362 glyph codes of GSTRING.
14363 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14364 (font_prepare_composition): Set cmp->glyph_len.
14365 (font_open_entity): Set font->scalable.
14366 (Ffont_get): Handle :otf property.
14367 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14368 functions.
14369 (Fquery_font): Use font->font.full_name.
14370 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14371 Sfont_otf_alternates.
14372
14373 * ftfont.c (ftfont_open): Set font->font.full_name and
14374 font->font.name properly. Fix calculation of font->font.height
14375 and font->min_width.
14376
14377 * ftxfont.c (ftxfont_create_gcs): New function.
14378 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14379 (ftxfont_draw_backgrond): Fix filling region.
14380 (ftxfont_default_fid): New function.
14381 (ftxfont_open): Set xfont->fid to the return value of
14382 ftxfont_default_fid.
14383 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14384 (ftxfont_done_face): Free only GCs that are created by
14385 ftxfont_create_gcs.
14386 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14387
14388 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14389 Clip to src->width, etc (not src->clip_XXX).
14390
14391 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14392 FontBackend frame parameter.
14393
14394 2008-02-01 Kenichi Handa <handa@m17n.org>
14395
14396 * font.h (struct font_driver_list): New member `on'.
14397 (Fclear_font_cache): EXFUN it.
14398 (font_update_drivers): Extern it.
14399
14400 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14401 (font_list_entities): Check driver_list->on.
14402 (register_font_driver): Initalize `on' member to 0.
14403 (font_update_drivers): New function.
14404 (Fclear_font_cache): Check driver_list->on.
14405
14406 * frame.h (Qfont_backend): Extern it.
14407 (x_set_font_backend): Extern it.
14408
14409 * frame.c (Qfont_backend): New variable.
14410 (frame_parms): New element for font-backend.
14411 (x_set_font_backend): New function.
14412
14413 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14414 FontBackend frame parameter.
14415 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14416 x_set_font_backend.
14417
14418 * xfont.c (xfont_list): Don't try listing by :name property if the
14419 name is not for XLFD.
14420
14421 2008-02-01 Kenichi Handa <handa@m17n.org>
14422
14423 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14424 (LGLYPH_SET_TO): New macros.
14425 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14426 element of G is vector or not.
14427 (font_at): Extern it.
14428
14429 * font.c: Include window.h.
14430 (font_lispy_object): New function.
14431 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14432 end of valid glyph.
14433 (font_close_object): Fix getting (struct font *).
14434 (font_at): New function.
14435 (Ffont_get): If FONT is a font-object, get entity from it.
14436 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14437 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14438 range check.
14439 (Ffont_at): New function.
14440 (syms_of_font): Defsubr Sfont_at.
14441
14442 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14443 before the entry for Qcomposition.
14444 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14445 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14446 the font in gstring.
14447 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14448 LGLYPH_FORM (g) to detect the end of valid glyph.
14449 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14450 we are composing with gstring.
14451
14452 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14453 Check if adjustment is vector or not.
14454
14455 * Makefile.in (font.o): Make it depends on window.h.
14456
14457 2008-02-01 Kenichi Handa <handa@m17n.org>
14458
14459 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14460 adjustment is vector or not.
14461
14462 2008-02-01 Miles Bader <miles@gnu.org>
14463
14464 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14465
14466 2008-02-01 Kenichi Handa <handa@m17n.org>
14467
14468 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14469 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14470 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14471
14472 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14473 (DEVICE_DELTA): Fix typo.
14474 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14475 LGLYPH format.
14476
14477 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14478 the change of LGLYPH format.
14479
14480 2008-02-01 Kenichi Handa <handa@m17n.org>
14481
14482 * ftfont.c (ftfont_list): Fix typo.
14483 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14484
14485 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14486
14487 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14488
14489 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14490 xftface_info is non-NULL.
14491
14492 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14493
14494 * ftfont.c (ftfont_list): Move misplaced #endif.
14495
14496 2008-02-01 Kenichi Handa <handa@m17n.org>
14497
14498 * ftfont.c (ftfont_list): Pay attention to the case that
14499 FC_CAPABILITY is not defined.
14500
14501 2008-02-01 Kenichi Handa <handa@m17n.org>
14502
14503 * xftfont.c (xftfont_open): Set charset related members to -1.
14504
14505 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14506 QCname.
14507 (ftfont_open): Set charset related members to -1.
14508
14509 * fontset.c (Votf_script_alist): New variable.
14510 (syms_of_fontset): Initialize it.
14511 (fontset_font): Delete unused variable.
14512
14513 * fontset.h (Votf_script_alist): Extern it.
14514
14515 * font.c (font_find_for_lface): Optimize code.
14516
14517 * font.h (font_close_object, font_merge_old_spec): Extern them.
14518
14519 2008-02-01 Kenichi Handa <handa@m17n.org>
14520
14521 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14522 (syms_of_font): Initialize them.
14523 (font_pixel_size): Allow float value in dpi.
14524 (font_prop_validate_type): Delete.
14525 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
14526 Change caller.
14527 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
14528 (font_prop_validate_extra): Delete.
14529 (font_prop_validate_spacing): New function.
14530 (font_property_table): Add elements for all known properties.
14531 (get_font_prop_index): Rename from check_font_prop_name. New
14532 argument FROM. Change caller.
14533 (font_prop_validate): Validate all known properties.
14534 (font_put_extra): Delete argument force. Change caller.
14535 (font_expand_wildcards): Make it static. Fix the way of shrinking
14536 the possible range.
14537 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
14538 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
14539 Change caller.
14540 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
14541 (font_parse_fcname): Delete argument merge. Fix parsing of point
14542 size. Don't validate properties values here. Change caller.
14543 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
14544 (font_open_by_name): Delete unused variable.
14545 (Ffont_spec): Likewise. Validate property values.
14546 (Ffont_match_p): New function.
14547
14548 * font.h (QCscalable): Extern it.
14549 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
14550
14551 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
14552
14553 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
14554 (xfont_list_pattern): New function.
14555 (xfont_list): Use xfont_list_pattern.
14556
14557 2008-02-01 Kenichi Handa <handa@m17n.org>
14558
14559 * font.h (Flist_fonts): EXFUN it.
14560
14561 2008-02-01 Jason Rumney <jasonr@gnu.org>
14562
14563 * w32term.c (w32_initialize): Add back smoothing_type and
14564 smoothing_enabled definitions.
14565
14566 2008-02-01 Kenichi Handa <handa@m17n.org>
14567
14568 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
14569 s->face->font on determining underline position.
14570
14571 2008-02-01 Kenichi Handa <handa@m17n.org>
14572
14573 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
14574 (font_has_char): Accept font-object too.
14575 (font_find_for_lface): Try at first with a size specified in face.
14576
14577 2008-02-01 Kenichi Handa <handa@m17n.org>
14578
14579 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
14580 font_open_by_name.
14581
14582 2008-02-01 Kenichi Handa <handa@m17n.org>
14583
14584 * font.h (QCspacing, QCdpi): Extern them.
14585 (enum font_spacing): New enum.
14586 (FONT_PIXEL_SIZE_QUANTUM): New macro.
14587
14588 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
14589 (QCspacing, QCdpi): New variables.
14590 (syms_of_font): Initialize them.
14591 (font_pixel_size): New function.
14592 (font_put_extra): New function.
14593 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
14594 in FONT_EXTRA.
14595 (font_parse_fcname): Handle enumerated values (e.g. bold).
14596 Fix handling font size. Add QCname property that contains only
14597 unknown properties.
14598 (font_score): Change argument. Change caller. Pay attention to
14599 FONT_PIXEL_SIZE_QUANTUM.
14600 (font_sort_entites, font_list_entities, font_find_for_lface)
14601 (font_open_for_lface, font_open_by_name): Fix handling of font size.
14602 (Ffont_spec): Add QCname property that contains only unknown properties.
14603
14604 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
14605 include weight in listing pattern, instead check weight of each
14606 listed font. Don't include scalable in pattern. Pay attention to
14607 FONT_PIXEL_SIZE_QUANTUM.
14608
14609 2008-02-01 Kenichi Handa <handa@m17n.org>
14610
14611 * font.c (font_parse_fcname): Fix parsing of point-size.
14612 (font_unparse_fcname): Produce symbolic names for style properties.
14613 (font_list_entities): Handle float size correctly.
14614 (font_open_by_name): Prefer `normal' property values if the name
14615 doesn't specify them.
14616
14617 * fontset.c (Finternal_char_font): Use font_get_name, not
14618 Ffont_xlfd_name.
14619
14620 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
14621 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
14622 pattern. Don't force scalable.
14623
14624 * xftfont.c (xftfont_open): For generating a name, start from
14625 96-byte buffer.
14626
14627 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14628
14629 * frame.h (x_new_fontset2): Fix prototype.
14630
14631 2008-02-01 Kenichi Handa <handa@m17n.org>
14632
14633 * font.h (struct font_driver): Delete member parse_name.
14634 (font_match_p, font_get_spec, font_parse_fcname)
14635 (font_unparse_fcname): Extern them.
14636 (font_get_name): Adjust prototype.
14637
14638 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
14639 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
14640 (font_expand_wildcards): Fix handling ENCODING field. Avoid
14641 unnecessary checks for weight, slant, and swidth.
14642 (font_parse_fcname): New function.
14643 (font_unparse_fcname): New function.
14644 (font_parse_name): New function.
14645 (font_match_p): New function.
14646 (font_get_name): Change return value to Lisp string.
14647 (font_get_spec): New function.
14648 (Qunspecified, Qignore_defface): Don't extern them.
14649 (font_find_for_lface): Assume that LFACE is fully specified.
14650 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
14651 object, use it for FACE.
14652 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
14653 driver->parse_name.
14654 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
14655
14656 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
14657 prototype.
14658
14659 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
14660 argument F. Don't call Fnew_fontset. Instead, directly call
14661 make_fontset.
14662
14663 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
14664
14665 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
14666 of x_new_fontset2.
14667
14668 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
14669 (Qsans__serif): New variables.
14670 (ftfont_generic_family_list): New variable.
14671 (syms_of_ftfont): Initialize the above variables.
14672 (ftfont_pattern_entity): Delete argument NAME.
14673 (ftfont_list_generic_family): New function.
14674 (ftfont_parse_name): Delete this function.
14675 (ftfont_list): Try generic family only when FcFontList found no font.
14676 (ftfont_list_family): Fix args to FcObjectSetBuild.
14677
14678 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
14679 object in attrs[LFACE_FONT_INDEX].
14680 (set_lface_from_font_name): Cancel all changes for font-backend.
14681 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
14682 function.
14683 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
14684 font object in QCfont attribute.
14685 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
14686 (realize_default_face) [USE_FONT_BACKEND]: Call
14687 set_lface_from_font_and_fontset.
14688
14689 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
14690 "fixed", and signal error here if no suitable font was found.
14691
14692 * xfont.c (xfont_parse_name): Delete this function.
14693
14694 * xftfont.c (xftfont_open): Change coding style of error
14695 handling. Generate fontconfig's fontname pattern.
14696
14697 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
14698 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
14699
14700 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
14701 Both args FONTSET and FONT_OBJECT must be existing ones.
14702
14703 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14704
14705 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
14706
14707 2008-02-01 Kenichi Handa <handa@m17n.org>
14708
14709 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
14710
14711 * font.h (struct font): Fix typo.
14712
14713 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
14714 XLFD_XXX_INDEX.
14715 (enum xlfd_field_mask): New enum.
14716 (intern_font_field): Changed argument. Change caller. If digits
14717 are followed by non-digits, return a symbol.
14718 (font_expand_wildcards): New function.
14719 (font_parse_xlfd): Fix wildcard handling.
14720 (Ffont_spec): If :name is specified, reflect the info in the other
14721 properties.
14722
14723 * ftfont.c (ftfont_pattern_entity): Fix typo.
14724 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
14725 locale.
14726
14727 2008-02-01 Kenichi Handa <handa@m17n.org>
14728
14729 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
14730
14731 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
14732 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
14733 registry doesn't specify encoding part.
14734 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
14735 (font_open_by_name): At first try parsing the name.
14736 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
14737 as Lisp symbols.
14738
14739 * fontset.c (reorder_font_vector): Pay attention to the case that
14740 the 3rd element of font_def is nil.
14741 (fontset_font): For the default fontset, append one more fontset
14742 elements for a script-based font specification. Don't add script
14743 attribute on finding a font.
14744 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
14745 font name.
14746 (fontset_ascii_font): If a font can't be opened, return nil.
14747
14748 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
14749 (ftfont_pattern_entity): New function.
14750 (ftfont_get_cache): Assume that freetype_font_cache is already
14751 initialized.
14752 (ftfont_list): Handle the case that a file is specified in font
14753 name. Use ftfont_pattern_entity to generate entities.
14754 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
14755 (syms_of_ftfont): Initialize freetype_font_cache.
14756
14757 * xftfont.c (xftfont_open): Make the font name fontconfig's
14758 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
14759 (xftfont_close): Free font->font.name if not NULL.
14760
14761 * xfont.c (xfont_list): If script is specified for a font, return
14762 null_vector.
14763 (xfont_list_family): Declare argument type.
14764
14765 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
14766 name, set LFACE_FONT (lface) to nil.
14767
14768 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
14769 return Qnil.
14770
14771 2008-02-01 Kenichi Handa <handa@m17n.org>
14772
14773 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
14774 (standard_args): Add "-enable-font-backend".
14775
14776 2008-02-01 Kenichi Handa <handa@m17n.org>
14777
14778 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
14779 (struct xftdraw_list, xftdraw_list): Delete them.
14780 (register_xftdraw, check_xftdraw): Delete them.
14781 (xftfont_prepare_face): Don't call register_xftdraw.
14782 (xftfont_done_face): Don't call check_xftdraw.
14783 (xftfont_draw): Get background color only when with_background is
14784 nonzero.
14785
14786 * xfont.c (xfont_encode_char): Fix calculation of char2b.
14787
14788 2008-02-01 Kenichi Handa <handa@m17n.org>
14789
14790 These changes are for the new font handling codes.
14791
14792 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
14793 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
14794 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
14795 (FONTSRC, FONTOBJ): New variables.
14796 (obj): Add $(FONTOBJ).
14797 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
14798 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
14799 @LIBOTF_LIBS@.
14800 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
14801 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
14802
14803 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
14804
14805 * character.h (Vscript_representative_chars): Extern it.
14806
14807 * character.c (Vscript_representative_chars): New variable.
14808 (syms_of_character): Declare it as a Lisp variable.
14809
14810 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
14811 enable_font_backend is nonzero, accept the composition method
14812 COMPOSITION_WITH_GLYPH_STRING.
14813
14814 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
14815 enumeration COMPOSITION_WITH_GLYPH_STRING.
14816
14817 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
14818 members clip_x, clip_y, clip_width, and clip_height.
14819 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
14820
14821 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
14822 --enable-font-backend. Call syms_of_font.
14823
14824 * fns.c (assoc_no_quit): New function.
14825
14826 * fontset.h (FONT_INFO_FROM_FACE): New macro.
14827 (face_for_font, new_fontset_from_font)
14828 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
14829
14830 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
14831 (fontset_font, fontset_ascii, face_for_char)
14832 (make_fontset_for_ascii_face, Ffont_info)
14833 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
14834 is nonzero, use font-backend mechanism.
14835 (find_font_encoding): Make it non-static.
14836 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
14837 New functions.
14838
14839 * frame.h (struct frame): New members resx and resy.
14840 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
14841 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
14842
14843 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14844 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14845
14846 * lisp.h (assoc_no_quit): Extern it.
14847
14848 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14849 Through out the file, use FONT_INFO_FROM_FACE instead of
14850 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14851 rif->per_char_metric.
14852 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14853 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14854 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14855 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14856 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14857 nonzero, use font-backend mechanism.
14858 (get_per_char_metric): New function.
14859
14860 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14861 (set_lface_from_font_name)
14862 (set_font_frame_param, free_realized_face)
14863 (prepare_face_for_display, clear_face_gcs)
14864 (Finternal_set_font_selection_order, realize_x_face)
14865 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14866 font-backend mechanism.
14867 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14868 (load_face_font) [USE_FONT_BACKEND]: Abort.
14869 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14870 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14871
14872 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14873 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14874 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
14875 nonzero, register all available font drivers. Call
14876 x_default_font_parameter for deciding a font.
14877 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
14878
14879 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
14880 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
14881 (x_set_glyph_string_clipping_exactly)
14882 (x_compute_glyph_string_overhangs)
14883 (x_draw_glyph_string_foreground)
14884 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
14885 (x_free_frame_resources) [USE_FONT_BACKEND]: If
14886 enable_font_backend is nonzero, use font-backend mechanism.
14887 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
14888
14889 2008-02-01 Kenichi Handa <handa@m17n.org>
14890
14891 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
14892 system_eol_type.
14893 (syms_of_coding): Initialize system_eol_type.
14894
14895 * process.c (Fset_process_coding_system): Inherit system's eol
14896 format if necessary.
14897
14898 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14899
14900 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
14901
14902 2008-02-01 Kenichi Handa <handa@m17n.org>
14903
14904 * coding.c (decode_eol): Pay attention to buffer relocation in
14905 del_range_2.
14906 (decode_coding): Call decode_eol before restoring undo_list.
14907
14908 2008-02-01 Kenichi Handa <handa@m17n.org>
14909
14910 * charset.c (Fdefine_charset_internal): Fix setting of
14911 emacs_mule_bytes.
14912
14913 2008-02-01 Kenichi Handa <handa@m17n.org>
14914
14915 * keyboard.c (read_char): Check if C is a character or not before
14916 looking up Vkeyboard_translate_table.
14917
14918 2008-02-01 Kenichi Handa <handa@m17n.org>
14919
14920 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
14921 condition to terminate the loop.
14922
14923 2008-02-01 Kenichi Handa <handa@m17n.org>
14924
14925 * coding.c (produce_composition): Compare charbuf[i] instead of
14926 args[i] against 0.
14927 (Fterminal_coding_system): Use EQ to compare Lisp objects.
14928
14929 2008-02-01 Kenichi Handa <handa@m17n.org>
14930
14931 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
14932 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14933 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14934 detect_coding.
14935 (emacs_mule_char): Handle old style (Emacs 20) component character
14936 of a composition.
14937 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14938 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14939 composition rule.
14940 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14941
14942 2008-02-01 Kenichi Handa <handa@m17n.org>
14943
14944 * coding.c (encode_coding_ccl): Allocate destination dynamically
14945 when necessary.
14946
14947 2008-02-01 Kenichi Handa <handa@m17n.org>
14948
14949 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14950 the loop. When quitted, show a proper error message.
14951
14952 2008-02-01 Kenichi Handa <handa@m17n.org>
14953
14954 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14955 src->clip_head and src->clip_tail temporarily instead of src->hl.
14956
14957 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14958 character sequence.
14959 (Fccl_execute_on_string): Use ASET, not XSET.
14960
14961 2008-02-01 Kenichi Handa <handa@m17n.org>
14962
14963 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14964
14965 2008-02-01 Kenichi Handa <handa@m17n.org>
14966
14967 * coding.c (decode_coding): Fix the condition of terminating the
14968 decoding loop.
14969
14970 2008-02-01 Kenichi Handa <handa@m17n.org>
14971
14972 * data.c (Faset): On setting a character bigger than 255 in a
14973 unibyte string, signal an error instead of make the string multibyte.
14974
14975 2008-02-01 Kenichi Handa <handa@m17n.org>
14976
14977 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14978 made by a mapping table.
14979
14980 2008-02-01 Kenichi Handa <handa@m17n.org>
14981
14982 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14983 not.
14984 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14985 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14986
14987 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14988 s->face is NULL or not.
14989
14990 2008-02-01 Kenichi Handa <handa@m17n.org>
14991
14992 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14993 (x_draw_glyph_string): Fix drawing of right_overhang and
14994 left_overhang around/on cursor.
14995
14996 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14997
14998 2008-02-01 Kenichi Handa <handa@m17n.org>
14999
15000 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15001
15002 2008-02-01 Kenichi Handa <handa@m17n.org>
15003
15004 * coding.c (Fdefine_coding_system_internal)
15005 (Fdefine_coding_system_alias): Avoid a duplicated element in
15006 Vcoding_system_alist.
15007
15008 2008-02-01 Kenichi Handa <handa@m17n.org>
15009
15010 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15011
15012 * coding.c (Qcoding_system_define_form): New variable.
15013 (syms_of_coding): Intern and staticpro it.
15014 (Fcoding_system_p): Check Qcoding_system_define_form.
15015 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15016
15017 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15018 Fcoding_system_p.
15019 (CHECK_CODING_SYSTEM): If ID is not available, call
15020 Fcheck_coding_system.
15021 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15022 Try also Fcheck_coding_system.
15023
15024 2008-02-01 Kenichi Handa <handa@m17n.org>
15025
15026 * coding.c (code_conversion_restore): GCPRO arg.
15027
15028 2008-02-01 Kenichi Handa <handa@m17n.org>
15029
15030 * character.c (lisp_string_width): Check multibyteness of STRING.
15031
15032 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15033
15034 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15035 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15036 (decode_mac_font_name): Use decode_coding_c_string instead of
15037 decode_coding.
15038 (x_load_font): Initialize fontp->fontset to -1. Set
15039 fontp->encoding_type.
15040
15041 2008-02-01 Kenichi Handa <handa@m17n.org>
15042
15043 * search.c (search_buffer): Give up BM search on case-fold-search
15044 if one of a target character has a case-equivalence of different
15045 byte length even if that target charcter is an ASCII.
15046 (simple_search): Fix calculation of byte length of matched text.
15047 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15048
15049 2008-02-01 Kenichi Handa <handa@m17n.org>
15050
15051 * coding.c (decode_coding): Fix handling of invalid bytes.
15052
15053 2008-02-01 Kenichi Handa <handa@m17n.org>
15054
15055 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15056 Unicode characters.
15057
15058 2008-02-01 Kenichi Handa <handa@m17n.org>
15059
15060 * coding.c (encode_coding_object): If a pre-write-conversion
15061 function makes a new buffer, kill it.
15062
15063 2008-02-01 Kenichi Handa <handa@m17n.org>
15064
15065 * coding.c (QCascii_compatible_p): New variable.
15066 (syms_of_coding): Initialize it.
15067 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15068 calling string_char.
15069 (record_conversion_result): Add `default:' case.
15070 (coding_charset_list): Delete unused variable `coding_type'.
15071 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15072 property in the plist of the coding system.
15073 (Fcoding_system_put): Check QCascii_compatible_p.
15074
15075 2008-02-01 Miles Bader <miles@gnu.org>
15076
15077 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15078 removed calculation of frame `f', as it's now used.
15079
15080 2008-02-01 Kenichi Handa <handa@m17n.org>
15081
15082 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15083 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15084 (UNIDATA): New variable.
15085 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15086 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15087 $(RUN_TEMACS) unconditionally.
15088
15089 2008-02-01 Kenichi Handa <handa@m17n.org>
15090
15091 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15092 (admindir): New variable.
15093 ($(lispsource)international/charprop.el): New target.
15094
15095 2008-02-01 Miles Bader <miles@gnu.org>
15096
15097 * character.c (chars-in-region): Remove obsolete function.
15098 (syms_of_character): Remove its initialization.
15099
15100 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15101
15102 * w32select.c (validate_coding_system)
15103 (setup_windows_coding_system): New functions.
15104 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15105 setup_windows_coding_system.
15106 (setup_config, Fw32_get_clipboard_data): Use
15107 validate_coding_system.
15108 (Fx_selection_exists): Move call to setup_config to a place
15109 where signals are allowed.
15110
15111 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15112 (Fcheck_coding_system): Add declarations.
15113
15114 2008-02-01 Kenichi Handa <handa@m17n.org>
15115
15116 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15117
15118 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15119
15120 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15121 string as the second argument for x_new_fontset.
15122
15123 2008-02-01 Kenichi Handa <handa@m17n.org>
15124
15125 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15126 (encode_coding_object): Use safe_call instead of call2.
15127
15128 2008-02-01 Kenichi Handa <handa@m17n.org>
15129
15130 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15131
15132 * Makefile.in (lisp): Include charprop.el.
15133
15134 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15135
15136 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15137 Not sure if it's unnecessary.
15138
15139 2008-02-01 Steven Tamm <steventamm@mac.com>
15140
15141 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15142 some possibly unnecessary fontset checking code that crashed
15143 when creating a new frame.
15144
15145 2008-02-01 Kenichi Handa <handa@m17n.org>
15146
15147 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15148 lookup_face.
15149
15150 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15151
15152 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15153
15154 2008-02-01 Kenichi Handa <handa@m17n.org>
15155
15156 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15157 (coding_charset_list): New function.
15158
15159 * coding.h (coding_charset_list): Extern it.
15160
15161 2008-02-01 Kenichi Handa <handa@m17n.org>
15162
15163 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15164 concatenation of family and registry.
15165
15166 2008-02-01 Kenichi Handa <handa@m17n.org>
15167
15168 * character.h (BYTE8_STRING): Fix typo.
15169
15170 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15171 string to multibyte (sync to HEAD).
15172
15173 * casefiddle.c (casify_region): Handle changes in byte-length
15174 using replace_range_2 (sync to HEAD).
15175
15176 2008-02-01 Andreas Schwab <schwab@suse.de>
15177
15178 * chartab.c (map_char_table): GCPRO table and arg.
15179
15180 2008-02-01 Kenichi Handa <handa@m17n.org>
15181
15182 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15183 already at limit.
15184
15185 2008-02-01 Kenichi Handa <handa@m17n.org>
15186
15187 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15188 instead of fast_c_string_match_ignore_case.
15189 (find_font_encoding): Change argument to Lisp_Object. Use
15190 fast_string_match_ignore_case instead of
15191 fast_c_string_match_ignore_case. Change caller.
15192
15193 2008-02-01 Kenichi Handa <handa@m17n.org>
15194
15195 * xdisp.c (get_next_display_element): In unibyte case, decide to
15196 display in octal form by checking a character by
15197 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15198
15199 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15200
15201 * character.c (unibyte_has_multibyte_table): New variable.
15202
15203 * character.h (unibyte_has_multibyte_table): Extern it.
15204 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15205
15206 2008-02-01 Kenichi Handa <handa@m17n.org>
15207
15208 * coding.c (encode_coding_iso_2022): Fix handling of charset
15209 annotation.
15210
15211 2008-02-01 Kenichi Handa <handa@m17n.org>
15212
15213 * coding.c (setup_coding_system): If coding_system is nil, use
15214 Qundecided.
15215 (Fterminal_coding_system): Return nil if terminal coding system is
15216 `undecided'.
15217 (syms_of_coding): Define coding-system `undecided' here. Setup
15218 terminal_coding as `undecided'.
15219
15220 2008-02-01 Kenichi Handa <handa@m17n.org>
15221
15222 * xdisp.c (message_dolog, set_message_1): Call
15223 unibyte_char_to_multibyte with arg type int.
15224
15225 * lread.c (read1): Fix reading of a char-table.
15226
15227 * print.c (print_object): Include sub char-table in circularities
15228 detection.
15229
15230 2008-02-01 Kenichi Handa <handa@m17n.org>
15231
15232 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15233 Append the found sequences in car of ARGS instead of prepending.
15234
15235 2008-02-01 Kenichi Handa <handa@m17n.org>
15236
15237 * fileio.c (report_file_error): Make a unibyte string from
15238 strerror (errorno).
15239 (Fsubstitute_in_file_name): Fix the arg to
15240 unibyte_char_to_multibyte. It is evaluated twice.
15241
15242 2008-02-01 Kenichi Handa <handa@m17n.org>
15243
15244 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15245
15246 2008-02-01 Kenichi Handa <handa@m17n.org>
15247
15248 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15249 BOM is not found.
15250 (detect_coding, detect_coding_system): Optimization for ISO-2022
15251 when no 8-bit data is found.
15252
15253 2008-02-01 Jason Rumney <jasonr@gnu.org>
15254
15255 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15256
15257 2008-02-01 Kenichi Handa <handa@m17n.org>
15258
15259 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15260 CHARS.
15261
15262 2008-02-01 Steven Tamm <steventamm@mac.com>
15263
15264 * macterm.c (mac_encode_char): Add charset argument and update
15265 to use encoding_type.
15266 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15267 switch to pure fontset.
15268 (decode_mac_font_name): Temporarily remove decoding.
15269 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15270 (x_load_font): Temporarily remove encoding.
15271
15272 2008-02-01 Kenichi Handa <handa@m17n.org>
15273
15274 * xfaces.c (Fface_font): If frame is not on a window system,
15275 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15276 refer to face->font.
15277 (split_font_name_into_vector, build_font_name_from_vector)
15278 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15279 when HAVE_WINDOW_SYSTEM is defined.
15280
15281 2008-02-01 Kenichi Handa <handa@m17n.org>
15282
15283 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15284 (x_produce_glyphs): Fix setting of members of cmp in case
15285 cmp->glyph_len is zero.
15286
15287 * fontset.c (Fset_fontset_font): Fix docstring.
15288 (Ffontset_info): Make it backward compatible. New arg ALL.
15289
15290 2008-02-01 Kim F. Storm <storm@cua.dk>
15291
15292 * process.c (read_process_output): Grow decoding_buf when needed;
15293 this could cause a crash in allocate_string and compact_small_strings.
15294
15295 2008-02-01 Kenichi Handa <handa@m17n.org>
15296
15297 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15298
15299 2008-02-01 Kenichi Handa <handa@m17n.org>
15300
15301 * coding.c (setup_coding_system): Set coding->common_flags
15302 correctly for raw-text.
15303 (consume_chars): On encoding unibyte text by raw-text, don't check
15304 multibyte form.
15305 (encode_coding): On encoding by raw-text, never use translation tables.
15306
15307 * fileio.c (e_write): Short cut for the case of no encoding.
15308
15309 2008-02-01 Kenichi Handa <handa@m17n.org>
15310
15311 * coding.c (detect_coding, detect_coding_system): Delete unused
15312 variables.
15313
15314 2008-02-01 Kenichi Handa <handa@m17n.org>
15315
15316 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15317 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15318
15319 2008-02-01 Kenichi Handa <handa@m17n.org>
15320
15321 * coding.c (Ffind_coding_systems_region_internal): Include
15322 raw-text and no-conversion in the result.
15323
15324 2008-02-01 Kenichi Handa <handa@m17n.org>
15325
15326 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15327 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15328 FONT_DEF.
15329 (font_def_arg, add_arg, from_arg, to_arg): New args.
15330 (set_fontset_font): Change argument.
15331 (Fset_fontset_font): Fix for the case that TARGET is a script
15332 name and charset name.
15333 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15334
15335 2008-02-01 Kenichi Handa <handa@m17n.org>
15336
15337 * fontset.c (fontset_font): Rename from fontset_face. Change return
15338 value.
15339 (face_suitable_for_char_p, face_for_char): Adjust for the change
15340 of fontset_font.
15341 (make_fontset_for_ascii_face): Fix setting of the fontset element
15342 for ASCII.
15343 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15344 to get a font name.
15345 (Ffontset_info): Adjust for the change of fontset_font.
15346
15347 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15348
15349 * character.h (LEADING_CODE_LATIN_1_MIN)
15350 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15351
15352 2008-02-01 Kenichi Handa <handa@m17n.org>
15353
15354 * editfns.c (check_translation): New function.
15355 (Ftranslate_region_internal): Handle M:N mapping.
15356
15357 2008-02-01 Kenichi Handa <handa@m17n.org>
15358
15359 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15360
15361 2008-02-01 Kenichi Handa <handa@m17n.org>
15362
15363 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15364 goto invalid_code.
15365 (decode_coding_iso_2022): Fix handling of invalid designation.
15366
15367 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15368 after calling code_conversion_save.
15369
15370 2008-02-01 Kenichi Handa <handa@m17n.org>
15371
15372 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15373
15374 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15375
15376 * fontset.c: Include "intervals.h".
15377 (fontset_face): Fix comparing of Lisp_Objects.
15378 (free_face_fontset, new_fontset_from_font_name): Fix
15379 Lisp_Object/int mixup.
15380
15381 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15382
15383 * coding.c: Add many prototypes for static functions.
15384 (get_translation_table): Allow max_lookup to be NULL.
15385 (decode_coding, Ffind_coding_systems_region_internal)
15386 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15387 get_translation_table with max_lookup NULL.
15388
15389 2008-02-01 Kenichi Handa <handa@m17n.org>
15390
15391 * coding.c (get_translation_table): Declare it as Lisp_Object.
15392 (LOOKUP_TRANSLATION_TABLE): New macro.
15393 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15394 instead of CHAR_TABLE_REF.
15395
15396 2008-02-01 Kenichi Handa <handa@m17n.org>
15397
15398 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15399 annotation data format.
15400 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15401 Change arguments FROM and TO to single argument NCHARS. Change caller.
15402 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15403 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15404 (decode_coding_ccl, decode_coding_charset): Pay attention to
15405 coding->charbuf_used.
15406 (get_translation): New function.
15407 (produce_chars): New arguments translation_table and last_block.
15408 Translate characters here. Return number of carryover chars.
15409 Change caller.
15410 (produce_composition): New argument pos. Change caller.
15411 Adjust for the change of annotation data format.
15412 (produce_charset, produce_annotation): Likewise.
15413 (decode_coding, encode_coding): Don't call translate_chars.
15414 (consume_chars): New arg translation_table. Change caller.
15415 (translate_chars): Delete.
15416 (syms_of_coding): Make translation-table's number of extra slots 2.
15417
15418 2008-02-01 Kenichi Handa <handa@m17n.org>
15419
15420 * search.c (simple_search): Fix setting this_pos_byte in backward
15421 search.
15422
15423 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15424 byte sequence.
15425 (detect_coding_ccl): Fix setting of the variable valids.
15426
15427 2008-02-01 Kenichi Handa <handa@m17n.org>
15428
15429 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15430
15431 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15432
15433 * editfns.c (Ftranslate_region_internal): Rename from
15434 Ftranslate_region. Accept a char-table in TABLE.
15435 (syms_of_editfns): Defsubr Stranslate_region_internal.
15436
15437 * xfaces.c (set_lface_from_font_name): If a font is specified for
15438 a frame, generate a fontset from the font.
15439 (build_scalable_font_name): If the scalable font is requested for
15440 a specific size, don't change that size.
15441 (try_font_list): Try a scalable font also in the case that a
15442 pattern string is specified.
15443
15444 2008-02-01 Kenichi Handa <handa@m17n.org>
15445
15446 * xfaces.c (Fface_font): New optional arg CHARACTER.
15447
15448 2008-02-01 Kenichi Handa <handa@m17n.org>
15449
15450 * charset.h (CHARSET_OFFSET): New macro.
15451
15452 2008-02-01 Kenichi Handa <handa@m17n.org>
15453
15454 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15455
15456 * fontset.c (fontset_face): Handle the case that repertory is a
15457 char-table.
15458 (find_font_encoding): Return nil for unknown encoding.
15459 (Fset_fontset_font): Ignore a font of unknown encoding.
15460
15461 2008-02-01 Kenichi Handa <handa@m17n.org>
15462
15463 * keymap.c (describe_vector): Handle default value of a char table.
15464
15465 * fontset.c (fontset_face): Handle fallback fonts correctly.
15466 (Ffontset_info): Return infomation about fallback fonts.
15467
15468 2008-02-01 Kenichi Handa <handa@m17n.org>
15469
15470 * fontset.c (FONTSET_DEFAULT): New macro.
15471 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15472 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15473 the case that it is nil.
15474 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15475 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15476
15477 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15478 subset or superset.
15479
15480 2008-02-01 Kenichi Handa <handa@m17n.org>
15481
15482 * emacs.c (main): Call init_charset after syms_of_XXX.
15483
15484 * charset.c (Vcharset_map_directory): Delete.
15485 (Vcharset_map_path): New variable.
15486 (load_charset_map_from_file): Use Vcharset_map_path instead.
15487 (init_charset): Initialize Vcharset_map_path.
15488 (syms_of_charset): Delete declaration of "charset-map-directory",
15489 add declaration of "charset-map-path".
15490
15491 2008-02-01 Kenichi Handa <handa@m17n.org>
15492
15493 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15494 ASCII only string.
15495
15496 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15497
15498 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15499 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15500
15501 2008-02-01 Kenichi Handa <handa@m17n.org>
15502
15503 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15504
15505 * coding.c (QCmnemonic, QCdefalut_char)
15506 (QCdecode_translation_table, QCencode_translation_table)
15507 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15508 (get_translation_table): Return a list of translation tables if
15509 necessary.
15510 (decode_coding): Call get_translation_table with ENCODEP 0.
15511 (char_encodable_p): If translation_table is non-nil, always call
15512 translate_char.
15513 (Fdefine_coding_system_internal): Accept list of translation
15514 tables as :encode-translation-table and :decode-translation-table.
15515 (Fcoding_system_put): New function.
15516 (syms_of_coding): Declare new symbols. Defsubr
15517 Scoding_system_put.
15518 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15519 typically JISX0212.
15520
15521 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15522 when the charset is superset type.
15523
15524 * character.c (translate_char): Accept list of translation tables.
15525
15526 2008-02-01 Kenichi Handa <handa@m17n.org>
15527
15528 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
15529 (CODING_ATTR_TRANS_TBL): New macro.
15530
15531 * coding.c (get_translation_table): New function.
15532 (translate_chars): Fix the bug of skipping annotation data.
15533 (decode_coding, encode_coding): Utilize get_translation_table.
15534 (char_encodable_p, Funencodable_char_position): Translate char if
15535 necessary.
15536 (Ffind_coding_systems_region_internal)
15537 (Fcheck_coding_systems_region): Setup translation table for encode
15538 in a coding system attribute vector in advance.
15539 (Fdefine_coding_system_internal): Allow a symbol as translation
15540 table. For shift-jis type coding system, allow 4th charset.
15541
15542 2008-02-01 Kenichi Handa <handa@m17n.org>
15543
15544 * coding.c (decode_coding_sjis): Check the first byte rigidly.
15545
15546 * xdisp.c (get_next_display_element): Pass -1 as POS to
15547 FACE_FOR_CHAR if displaying a C-string.
15548
15549 2008-02-01 Kenichi Handa <handa@m17n.org>
15550
15551 * composite.c (get_composition_id): Handle xoff and yoff in a
15552 composition rule.
15553
15554 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
15555 (struct composition): New member lbearing and rbearing.
15556
15557 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
15558 (x_get_glyph_overhangs): Handle a composition glyph.
15559 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
15560
15561 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
15562 composition glyph.
15563
15564 2008-02-01 Kenichi Handa <handa@m17n.org>
15565
15566 * print.c: Include charset.h.
15567 (Vprint_charset_text_property): New variable.
15568 (Qdefault): Extern it.
15569 (PRINT_STRING_NON_CHARSET_FOUND)
15570 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
15571 (print_check_string_result): New variable.
15572 (print_check_string_charset_prop): New function.
15573 (print_prune_charset_plist): New variable.
15574 (print_prune_string_charset): New function.
15575 (print_object): Call print_prune_string_charset if
15576 Vprint_charset_text_property is not t.
15577 (print_interval): Print nothing if interval->plist is nil.
15578 (syms_of_print): Declare Vprint_charset_text_property as a lisp
15579 variable. Init and staticpro print_prune_charset_plist.
15580
15581 2008-02-01 Kenichi Handa <handa@m17n.org>
15582
15583 * fontset.c (new_fontset_from_font_name): Use the specified font
15584 for all characters in the new fontset.
15585
15586 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15587 OBJECT args.
15588
15589 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
15590 OBJECT args for composition too.
15591
15592 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15593 OBJECT args.
15594
15595 2008-02-01 Kenichi Handa <handa@m17n.org>
15596
15597 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
15598
15599 * fontset.c (reorder_font_vector): Adjust for the change of
15600 FONT_DEF format.
15601 (fontset_face): New arg id. Change caller.
15602 (face_for_char): New args pos and object.
15603 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
15604 (fs_query_fontset): Check NAME by Fassoc too.
15605 (Fset_fontset_font): Allow non-XLFD font name.
15606 (Ffontset_info): Adjust for the change of FONT_DEF format.
15607
15608 * fontset.h (face_for_char): Adjust prototype.
15609
15610 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
15611 (append_space, extend_face_to_end_of_line)
15612 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15613 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
15614
15615 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
15616 POS and OBJECT args.
15617
15618 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
15619 POS and OBJECT args.
15620
15621 2008-02-01 Jason Rumney <jasonr@gnu.org>
15622
15623 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
15624 of GlobalAlloc'ed memory.
15625
15626 2008-02-01 Kenichi Handa <handa@m17n.org>
15627
15628 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
15629
15630 * charset.h (charset_table_used): Delete extern.
15631
15632 * charset.c (charset_table_used): Make it static.
15633 (map_charset_chars): Fix args to c_function with.
15634
15635 * chartab.c (map_sub_char_table_for_charset): Fix args to
15636 c_function with.
15637
15638 * coding.h (enum coding_result_code): Delete
15639 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
15640
15641 * coding.c (Qinsufficient_source, Qinconsistent_eol)
15642 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
15643 (Vlast_code_conversion_error): New variables.
15644 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
15645 (ONE_MORE_BYTE): Record error if any instead of signaling an
15646 error. If non-ASCII multibyte char is found, return the negative
15647 value of the code. All callers changed to check it.
15648 (ONE_MORE_BYTE_NO_CHECK): Likewise.
15649 (record_conversion_result): New function. Change all codes setting
15650 coding->result to call this function.
15651 (detect_coding_utf_8, decode_coding_utf_8)
15652 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
15653 Don't use the local variable incomplete.
15654 (emacs_mule_char): Change the second arg to `const'.
15655 (decode_coding): Fix of flushing out unprocessed data.
15656 (make_conversion_work_buffer): Fix making of a work buffer.
15657 (decode_coding_object): Return coding->dst_object.
15658
15659 * fontset.c (set_fontset_font): Fix args.
15660
15661 * lisp.h (CHARACTERBITS): Define as 22.
15662
15663 * process.c (send_process): Be sure to set coding->src_multibyte.
15664
15665 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
15666
15667 2008-02-01 Kenichi Handa <handa@m17n.org>
15668
15669 * xdisp.c (handle_auto_composed_prop): Give limit to
15670 Fnext_single_char_property_change.
15671
15672 2008-02-01 Kenichi Handa <handa@m17n.org>
15673
15674 * composite.c (syms_of_composite): Don't make the composition hash
15675 table weak.
15676
15677 * fontset.c (Fset_fontset_font): Fix docstring.
15678
15679 * lisp.h (detect_coding_system): Adjust prototype.
15680
15681 * fileio.c (kill_workbuf_unwind): Delete this function.
15682 (Finsert_file_contents): Adjust the call of detect_coding_system.
15683 Get conversion_buffer by code_conversion_save. Use the macro
15684 CODING_MAY_REQUIRE_DECODING. After decoding, update
15685 coding_system.
15686
15687 * coding.h (make_conversion_work_buffer): Delete extern.
15688 (code_conversion_save): Extern it.
15689
15690 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
15691 (CODING_GET_INFO): Delete argument eol_type. Change callers.
15692 (decode_coding_utf_8): Don't do eol converion.
15693 (detect_coding_utf_16): Check coding->src_chars, not
15694 coding->src_bytes. Add heuristics for those that have no signature.
15695 (decode_coding_emacs_mule, decode_coding_iso_2022)
15696 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15697 Don't do eol converion.
15698 (adjust_coding_eol_type): Return a new coding system.
15699 (detect_coding): Don't detect eol. Fix for utf-16 detection.
15700 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
15701 each change.
15702 (decode_coding): Pay attention to undo_list. Do eol conversion for
15703 all types of coding-systems (if necessary).
15704 (Vcode_conversion_work_buf_list): Delete it.
15705 (Vcode_conversion_reused_workbuf): Rename from
15706 Vcode_conversion_reused_work_buf.
15707 (Vcode_conversion_workbuf_name): New variable.
15708 (reused_workbuf_in_use): New variable.
15709 (make_conversion_work_buffer): Delete the arg DEPTH.
15710 (code_conversion_restore): Change argument to cons.
15711 (code_conversion_save): Delete the argument BUFFER. Change callers.
15712 (detect_coding_system): New argument src_chars. Change callers.
15713 Fix for utf-16 detection.
15714 (init_coding_once): Don't use ISO_carriage_return.
15715 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
15716 reused_workbuf_in_use.
15717
15718 2008-02-01 Kenichi Handa <handa@m17n.org>
15719
15720 * keymap.c (store_in_keymap): Pay attention to the case that idx
15721 is a cons specifying a character range.
15722
15723 2008-02-01 Kenichi Handa <handa@m17n.org>
15724
15725 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
15726 HANDLED_RECOMPUTE_PROPS.
15727
15728 * coding.c (Fdefine_coding_system_internal): Fix checking of
15729 ascii compatibility.
15730
15731 2008-02-01 Kenichi Handa <handa@m17n.org>
15732
15733 * charset.c (find_charsets_in_text): Delete unused locale variable.
15734 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
15735
15736 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
15737 Resync charset_list to Vemacs_mule_charset_list.
15738
15739 * keymap.c (store_in_keymap): Pay attention to the case that idx
15740 is a cons specifying a character range.
15741
15742 2008-02-01 Kenichi Handa <handa@m17n.org>
15743
15744 * composite.c (update_compositions): Bind inhibit-read-only, etc
15745 to t before calling remove-list-of-text-properties.
15746
15747 * print.c (print_object): Always print ASCII chars as is.
15748
15749 2008-02-01 Kenichi Handa <handa@m17n.org>
15750
15751 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
15752
15753 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
15754 is a char table.
15755
15756 2008-02-01 Kenichi Handa <handa@m17n.org>
15757
15758 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
15759
15760 2008-02-01 Kenichi Handa <handa@m17n.org>
15761
15762 * xfaces.c (set_lface_from_font_name): Fix for the case that
15763 FONTNAME is not fontset name.
15764
15765 2008-02-01 Kenichi Handa <handa@m17n.org>
15766
15767 * fns.c (base64_encode_1): Fix previous change.
15768
15769 2008-02-01 Kenichi Handa <handa@m17n.org>
15770
15771 * fontset.c (set_fontset_font): New function.
15772 (Fset_fontset_font): If a font is specified for a charset, use
15773 map_charset_chars to store the font spec in a fontset.
15774
15775 2008-02-01 Kenichi Handa <handa@m17n.org>
15776
15777 * fontset.c (fontset_face): Create a fallback fontset on demand.
15778 (make_fontset): Don't create a fallback fontset here.
15779 (free_face_fontset): Free a fallback fontset (if any) too.
15780 (n_auto_fontsets): Delete this variable.
15781 (auto_fontset_alist): New variable.
15782 (new_fontset_from_font_name): Check auto_fontset_alist.
15783 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
15784 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
15785 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
15786 Defsubr Sfontset_list_all.
15787
15788 2008-02-01 Kenichi Handa <handa@m17n.org>
15789
15790 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15791
15792 2008-02-01 Kenichi Handa <handa@m17n.org>
15793
15794 * fontset.c (Fnew_fontset): Check NAME more rigidly.
15795
15796 2008-02-01 Kenichi Handa <handa@m17n.org>
15797
15798 * editfns.c (Fgoto_char): Fix docstring.
15799
15800 2008-02-01 Kenichi Handa <handa@m17n.org>
15801
15802 * insdel.c (insert_from_gap): Adjust intervals correctly.
15803
15804 2008-02-01 Jason Rumney <jasonr@gnu.org>
15805
15806 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
15807 (pfnGetFontUnicodeRanges): New dynamically loaded function.
15808 (w32_initialize): Try to load it.
15809 (x_get_font_repertory): Use it if available.
15810 (w32_encode_char): Add shortcut for unicode output.
15811
15812 * w32fns.c (w32_load_system_font): Default charset to -1.
15813 (x_to_w32_charset): Match all fonts for unicode.
15814 (w32_to_x_charset): New parameter matching. Don't return partial
15815 or wildcard charsets.
15816 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
15817 (w32_codepage_for_font): Return CP_UNICODE for unicode.
15818 (w32_to_x_font): Match charset to real charset.
15819 (enum_font_cb2): Always list unicode versions.
15820
15821 * makefile.w32-in (temacs): Increase EMHEAP.
15822
15823 2008-02-01 Jason Rumney <jasonr@gnu.org>
15824
15825 * w32term.c (w32_encode_char): New charset parameter.
15826 font_info.encoding becomes encoding_type.
15827 (x_get_font_repertory): New function. Warning: stub only!
15828 (x_new_font): Return quickly if font already set.
15829 (x_new_fontset): fontsetname parameter is Lisp_Object.
15830 Use new fs_query_fontset. Try new_fontset_from_font_name.
15831 Use fontset_name for return value.
15832
15833 * w32term.h: Declare x_get_font_repertory.
15834
15835 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
15836 place of find_charset_in_text. Use encode_coding_object in place
15837 of encode_coding.
15838 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
15839 decode_coding.
15840
15841 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
15842 of x_new_fontset.
15843 (w32_load_system_font): Initialize charset as unicode.
15844 font_info.encoding becomes encoding_type.
15845 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15846 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15847 (syms_of_w32fns): Set get_font_repertory_func.
15848
15849 * w32console.c: Include character.h. Use terminal_encode_buffer
15850 from term.c.
15851 (write_glyphs): Use new version of encode_terminal_code. Use
15852 encode_coding_object in place of encode_coding.
15853
15854 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15855 encoding becomes encoding_type.
15856
15857 * term.c (terminal_encode_buffer): Make externally visible.
15858
15859 * makefile.w32-in: Add character.h dependancies.
15860 (character.o, chartab.o): New targets.
15861
15862 2008-02-01 Kenichi Handa <handa@m17n.org>
15863
15864 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15865 CODING_ID_EOL_TYPE.
15866
15867 2008-02-01 Andreas Schwab <schwab@suse.de>
15868
15869 * coding.c (produce_chars): Revert last change.
15870
15871 2008-02-01 Kenichi Handa <handa@m17n.org>
15872
15873 * charset.h (charset_unicode): Extern it.
15874
15875 * charset.c (string_xstring_p): Check by (C >= 0x100).
15876 (find_charsets_in_text): Change format of the arc CHARSETS. New
15877 arg MULTIBYTE.
15878 (Ffind_charset_region, Ffind_charset_string): Adjust for the
15879 change of find_charsets_in_text.
15880 (Fsplit_char): Fix doc. Never return unknown.
15881
15882 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
15883
15884 * coding.c (Fdefine_coding_system_alias): Update
15885 Vcoding_system_list.
15886
15887 * fontset.c (load_font_get_repertory): Pay attention to the case
15888 that ENCODING of a font is specified by a char-table.
15889
15890 * xterm.c (x_get_font_repertory): Handle the case that the
15891 encoding of font is other than Unicode.
15892
15893 2008-02-01 Kenichi Handa <handa@m17n.org>
15894
15895 * term.c (encode_terminal_code): Don't handle glyph-table. Check
15896 if a character is encodable by the terminal coding system. If
15897 not, produces proper number of `?'s. Update
15898 terminal_encode_buffer and terminal_encode_buf_size if necessary.
15899 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
15900
15901 2008-02-01 Kenichi Handa <handa@m17n.org>
15902
15903 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
15904 variables.
15905 (encode_terminal_code): Change argument. Encode multiple
15906 characters at once. Store the result of encoding in
15907 terminal_encode_buffer.
15908 (write_glyphs, insert_glyphs): Adjust for the change of
15909 encode_terminal_code.
15910 (term_init): Initialize terminal_encode_buffer and
15911 terminal_encode_buf_size.
15912
15913 * coding.c (consume_chars): If coding->src_object is nil, don't
15914 check annotation.
15915
15916 2008-02-01 Kenichi Handa <handa@m17n.org>
15917
15918 * character.c (char_string): Use ASCII_CHAR_P instead of
15919 SINGLE_BYTE_CHAR_P.
15920
15921 2008-02-01 Kenichi Handa <handa@m17n.org>
15922
15923 * xdisp.c (handle_auto_composed_prop): Check if the last
15924 characters of auto-composed region is newly composed with the
15925 following characters.
15926 (handle_composition_prop): Fix checking of point being inside
15927 composition.
15928
15929 2008-02-01 Kenichi Handa <handa@m17n.org>
15930
15931 * fns.c (concat): Don't change multibyteness of the result by
15932 concatenating an 8-bit character.
15933
15934 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15935 multibyteness of the result when newelt is an 8-bit character.
15936
15937 2008-02-01 Dave Love <fx@gnu.org>
15938
15939 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15940 EMACS_INT.
15941
15942 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15943
15944 * xfaces.c (face_numeric_value): Declare dim size_t.
15945 (Finternal_lisp_face_equal_p): Remove unused f.
15946
15947 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15948 (MATRIX_ROW): Remove unused vars.
15949 (draw_glyphs, x_insert_glyphs, fast_find_position)
15950 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15951 byte/char counts.
15952
15953 * regex.c (regex_compile): Remove unused var.
15954
15955 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15956
15957 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15958 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15959
15960 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15961
15962 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15963
15964 * fileio.c (Fwrite_region): Remove unused var.
15965
15966 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15967 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15968
15969 * composite.c (Fremove_list_of_text_properties): Declare.
15970
15971 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15972 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15973 (coding_inherit_eol_type): Remove unused attrs.
15974 (detect_coding): Cast arg of detect_eol.
15975
15976 * charset.c (syms_of_charset): Remove unused var p.
15977 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15978 byte/char counts.
15979
15980 * casetab.c (set_case_table): Remove unused var.
15981
15982 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15983 unused vars.
15984
15985 2008-02-01 Dave Love <fx@gnu.org>
15986
15987 * xterm.c (x_bitmap_mask): Declare.
15988
15989 2008-02-01 Dave Love <fx@gnu.org>
15990
15991 * xterm.c (x_term_init): Fix type error.
15992
15993 * lisp.h: Add Funibyte_char_to_multibyte.
15994
15995 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15996 (Fset_coding_system_priority): Doc fix.
15997
15998 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15999
16000 * indent.c (check_composition): Make start and end EMACS_INT.
16001
16002 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16003
16004 * xdisp.c (handle_composition_prop, check_point_in_composition):
16005 Make buffer positions EMACS_INT.
16006
16007 * composite.c (find_composition, run_composition_function)
16008 (update_compositions, Ffind_composition_internal): Make buffer
16009 positions EMACS_INT.
16010
16011 * composite.h (find_composition, update_compositions): Make
16012 position args EMACS_INT.
16013
16014 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16015
16016 * intervals.c (get_property_and_range):
16017 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16018
16019 * unexalpha.c: Don't include varargs.h.
16020
16021 2008-02-01 Dave Love <fx@gnu.org>
16022
16023 * coding.h (ENCODE_UTF_8): New.
16024
16025 * Makefile.in (gtkutil.o): Depend on coding.h.
16026
16027 * coding.c (Fset_coding_system_priority): Doc fix.
16028
16029 2008-02-01 Kenichi Handa <handa@m17n.org>
16030
16031 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16032 the case of auto saving.
16033
16034 2008-02-01 Andreas Schwab <schwab@suse.de>
16035
16036 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16037 `range' from GC.
16038
16039 2008-02-01 Kenichi Handa <handa@m17n.org>
16040
16041 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16042
16043 2008-02-01 Kenichi Handa <handa@m17n.org>
16044
16045 * fileio.c (choose_write_coding_system): Return a decided coding system.
16046 (Fwrite_region): Set Vlast_coding_system_used to the return value
16047 of choose_write_coding_system.
16048
16049 2008-02-01 Kenichi Handa <handa@m17n.org>
16050
16051 * charset.c (Fset_charset_priority): Pay attention to duplicated
16052 arguments.
16053
16054 * coding.c (QCcategory): New variable.
16055 (syms_of_coding): Defsym it. Set all elements of
16056 Vcoding_category_table and their symbol values.
16057 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16058 coding-category-XXX, and coding-category-list.
16059 (Fdefine_coding_system_internal): Add category in the plist.
16060
16061 2008-02-01 Kenichi Handa <handa@m17n.org>
16062
16063 * callproc.c (Fcall_process): Handle carryover correctly.
16064
16065 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16066 (raw_text_coding_system): Check NILP (coding_system).
16067 (coding_inherit_eol_type): Check NILP (coding_system) and
16068 NILP (parent).
16069 (consume_chars): Fix for the case of raw-text.
16070
16071 * process.c (read_process_output): Handle carryover correctly.
16072
16073 2008-02-01 Dave Love <fx@gnu.org>
16074
16075 * regex.c (re_search_2): Fix last change.
16076
16077 2008-02-01 Kenichi Handa <handa@m17n.org>
16078
16079 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16080 target_multibyte. Even in a unibyte case, return a converted
16081 multibyte char.
16082 (GET_CHAR_AFTER): New macro.
16083 (PATFETCH): Translate via multibyte char.
16084 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16085 (SETUP_MULTIBYTE_RANGE): New macro.
16086 (regex_compile): Setup compiled code so that its multibyteness
16087 matches that of a target. Fix the handling of "[X-YZ]" using
16088 SETUP_MULTIBYTE_RANGE.
16089 (analyse_first) <charset>: For filling fastmap for all multibyte
16090 characters, don't check by BASE_LEADING_CODE_P.
16091 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16092 the same as RE_MULTIBYTE_P (bufp) now.
16093 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16094 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16095 (TRANSLATE_VIA_MULTIBYTE): New macro.
16096 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16097 It is the same as RE_MULTIBYTE_P (bufp) now.
16098 <exactn>: Translate via multibyte.
16099 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16100 translate it.
16101 <charset, charset_not>: Fetch a character by
16102 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16103 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16104 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16105 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16106 by GET_CHAR_AFTER.
16107 (bcmp_translate): Likewise.
16108
16109 * search.c (compile_pattern): Check the member target_multibyte,
16110 not the member multibyte of buf.
16111
16112 * lread.c (read1): While reading a string, set force_singlebyte
16113 and force_multibyte correctly.
16114
16115 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16116 up of unibyte_to_multibyte_table.
16117
16118 2008-02-01 Kenichi Handa <handa@m17n.org>
16119
16120 * coding.c (setup_coding_system): If coding has
16121 post-read-conversion or pre-write-conversion, set
16122 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16123 respectively.
16124 (decode_coding_gap): Run post-read-conversion if any.
16125
16126 * fileio.c (Finsert_file_contents): Even if we read into a
16127 unibyte buffer, check if we must decode the result or not.
16128
16129 2008-02-01 Kenichi Handa <handa@m17n.org>
16130
16131 * coding.c (make_conversion_work_buffer): Change the work buffer
16132 name to the same one as that of Emacs 21.
16133
16134 2008-02-01 Kenichi Handa <handa@m17n.org>
16135
16136 * coding.h (make_conversion_work_buffer): Adjust prototype.
16137 (code_conversion_restore): Don't extern it.
16138
16139 * coding.c (detected_mask): Delete unused variable.
16140 (decode_coding_iso_2022): Pay attention to the byte sequence of
16141 CTEXT extended segment, and retain those bytes as is.
16142 (decode_coding_ccl): Delete unused variable `valids'.
16143 (setup_coding_system): Delete unused variable `category'.
16144 (consume_chars): Delete unused variable `category'. Make it work
16145 for non-multibyte case.
16146 (make_conversion_work_buffer): Change argument.
16147 (saved_coding): Delete unused variable.
16148 (code_conversion_restore): Don't check saved_coding->destination.
16149 (code_conversion_save): New function.
16150 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16151 instead of record_unwind_protect.
16152 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16153 (detect_coding_system): Delete unused variable `mask'.
16154 (Fdefine_coding_system_internal): Delete unused variable id.
16155
16156 * fileio.c (kill_workbuf_unwind): New function.
16157 (Finsert_file_contents): On replacing, call
16158 make_conversion_work_buffer with correct args, and call
16159 record_unwind_protect with the first arg kill_workbuf_unwind.
16160
16161 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16162
16163 2008-02-01 Kenichi Handa <handa@m17n.org>
16164
16165 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16166 (fontset_add): Fix for the case that TO is less than TO1.
16167 (Ffontset_info): Don't use fallback fontset on checking the
16168 default fontset.
16169 (dump_fontset): New function for debugging.
16170
16171 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16172 coding_type is Qcharset.
16173
16174 2008-02-01 Kenichi Handa <handa@m17n.org>
16175
16176 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16177 (map_char_table): Don't inherit the value from the parent on
16178 initializing VAL. Adjust for the above change.
16179
16180 2008-02-01 Kenichi Handa <handa@m17n.org>
16181
16182 * coding.c (Qsignature, Qendian): Delete these variables.
16183 (syms_of_coding): Don't initialize them.
16184 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16185 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16186 detect_info->found.
16187 (decode_coding_utf_16): Don't detect BOM here.
16188 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16189 is NOT utf_16_without_bom.
16190 (setup_coding_system): For a coding system of type utf-16, check
16191 if the attribute :endian is Qbig or not (not nil or not), and set
16192 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16193 (detect_coding): If coding type is utf-16 and BOM detection is
16194 required, detect it.
16195 (Fdefine_coding_system_internal): For a coding system of type
16196 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16197
16198 2008-02-01 Kenichi Handa <handa@m17n.org>
16199
16200 * coding.c (coding_set_source): Fix for the case that the current
16201 buffer is different from coding->src_object.
16202 (decode_coding_object): Don't use the conversion work buffer if
16203 DST_OBJECT is a buffer.
16204
16205 2008-02-01 Dave Love <fx@gnu.org>
16206
16207 * lread.c (read_emacs_mule_char) [len==2]: Index
16208 emacs_mule_charset correctly.
16209
16210 2008-02-01 Dave Love <fx@gnu.org>
16211
16212 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16213 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16214 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16215 treated specially.)
16216 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16217 (detected_mask): Remove Big5 bits.
16218
16219 2008-02-01 Kenichi Handa <handa@m17n.org>
16220
16221 The following changes are to make the font rescaling facility
16222 compatible with Emacs 21.
16223
16224 * xfaces.c (Vface_font_rescale_alist): Rename from
16225 Vface_resizing_fonts.
16226 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16227 (font_rescale_ratio): Rename from font_resizing_ratio.
16228 (split_font_name): Set font->rescale_ratio.
16229 (better_font_p): Pay attention to font->rescale_ratio.
16230 (build_scalable_font_name): Likewise. Change RESX, and RESY
16231 fields.
16232 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16233
16234 2008-02-01 Kenichi Handa <handa@m17n.org>
16235
16236 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16237 (Qutf_16_le): Remove these variables.
16238 (syms_of_coding): Don't DEFSYM them.
16239 (decode_coding_utf_16): Fix handling of BOM.
16240 (encode_coding_utf_16): Fix handling of BOM.
16241
16242 2008-02-01 Kenichi Handa <handa@m17n.org>
16243
16244 * fileio.c (Finsert_file_contents): On replacing, before decoding
16245 the file into the work buffer, set point of the work buffer to the end.
16246
16247 2008-02-01 Dave Love <fx@gnu.org>
16248
16249 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16250
16251 2008-02-01 Dave Love <fx@gnu.org>
16252
16253 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16254 and fix C types.
16255
16256 2008-02-01 Kenichi Handa <handa@m17n.org>
16257
16258 * xdisp.c (SKIP_GLYPHS): New macro.
16259 (set_cursor_from_row): Pay attention to string display properties.
16260
16261 * category.c (copy_category_entry): Fix for the case that RANGE
16262 is an integer.
16263
16264 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16265
16266 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16267
16268 2008-02-01 Kenichi Handa <handa@m17n.org>
16269
16270 * charset.c (Fcharset_id_internal): New function.
16271 (syms_of_charset): Defsubr it.
16272
16273 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16274 with the last arg charset_list acquired from coding.
16275 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16276 the attribute coding_attr_ccl_valids.
16277
16278 * coding.h (enum define_coding_ccl_arg_index): Set the first
16279 member coding_arg_ccl_decoder to coding_arg_max.
16280
16281 * ccl.h (ccl_driver): Adjust prototype.
16282
16283 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16284 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
16285 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
16286 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16287 last arg Qnil.
16288
16289 2008-02-01 Kenichi Handa <handa@m17n.org>
16290
16291 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16292 call encode_char.
16293
16294 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16295
16296 2008-02-01 Dave Love <fx@gnu.org>
16297
16298 * composite.c (syms_of_composite): Make composition_hash_table weak.
16299
16300 2008-02-01 Kenichi Handa <handa@m17n.org>
16301
16302 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16303 (font_name_registry): Don't extern them.
16304 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16305
16306 * fontset.h (Qfontset): Don't extern it.
16307 (new_fontset_from_font_name): Extern it.
16308
16309 * fontset.c: Give 8 extra slots to fontset objects.
16310 (Qfontset_info): New variable.
16311 (syms_of_fontset): Defsym it.
16312 (FONTSET_FALLBACK): New macro.
16313 (fontset_face): Try also the default fontset.
16314 (make_fontset): Realize a fallback fontset from the default fontset.
16315 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16316 using split_font_name_into_vector and build_font_name_from_vector.
16317 (Fset_fontset_font): Access the elements of font_spec by enum
16318 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16319 name by using split_font_name_into_vector.
16320 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16321 generate a proper font name from the fontset name. Update
16322 Vfontset_alias_alist.
16323 (n_auto_fontsets): New variable.
16324 (new_fontset_from_font_name): New function.
16325 (Ffont_info): Store the information about fonts generated from the
16326 default fontset in the first extra slot of the returned char-table.
16327
16328 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16329 (font_name_registry): Delete function.
16330 (split_font_name_into_vector): New function.
16331 (build_font_name_from_vector): New function.
16332 (font_list): The argument REGISTRY is now a list of registry names.
16333 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16334 specifies an explicit font name, return the name as is. Make a
16335 list of registy names.
16336
16337 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16338 of x_new_fontset.
16339 (Fx_create_frame): Don't call x_new_fontset here. Just use
16340 x_list_fonts to check the existence of fonts.
16341
16342 * xterm.h (x_new_fontset): Adjust prototype.
16343
16344 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16345 string. Use new_fontset_from_font_name to create a fontset from a
16346 font name.
16347
16348 2008-02-01 Kenichi Handa <handa@m17n.org>
16349
16350 * syntax.c (Vfind_word_boundary_function_table): New name for
16351 Vnext_word_boundary_function_table.
16352 (find-word-boundary-function-table): New name for
16353 next-word-boundary-function-table.
16354
16355 2008-02-01 Dave Love <fx@gnu.org>
16356
16357 * Makefile.in: Fix some dependencies.
16358
16359 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16360 set it to nil before returning.
16361
16362 * composite.c (update_compositions): Fix type error.
16363
16364 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16365
16366 2008-02-01 Kenichi Handa <handa@m17n.org>
16367
16368 * xterm.c (x_new_font): Optimize for the case that the font is
16369 already set for the frame.
16370
16371 2008-02-01 Kenichi Handa <handa@m17n.org>
16372
16373 * chartab.c (char_table_ascii): Check if the char table contents
16374 is sub-char-table or not.
16375 (char_table_set, char_table_set_range): Fix argument to
16376 char_table_ascii.
16377
16378 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16379 (detect_coding_utf_8, detect_coding_utf_16)
16380 (detect_coding_emacs_mule, detect_coding_iso_2022)
16381 (detect_coding_sjis, detect_coding_big5)
16382 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16383 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16384 sequence is valid in this coding system. Change callers.
16385 (MAX_ANNOTATION_LENGTH): New macro.
16386 (ADD_ANNOTATION_DATA): New macro.
16387 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16388 ADD_ANNOTATION_DATA. Change the format of annotation data.
16389 (ADD_CHARSET_DATA): New macro.
16390 (emacs_mule_char): New argument ID. Change callers.
16391 (decode_coding_emacs_mule, decode_coding_iso_2022)
16392 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16393 Produce charset annotation data in coding->charbuf.
16394 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16395 to charset annotation data in coding->charbuf.
16396 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16397 coding->common_flags if the coding system is iso-2022 based and
16398 uses designation.
16399 (produce_composition): Adjust for the new annotation data format.
16400 (produce_charset): New function.
16401 (produce_annotation): Handle charset annotation.
16402 (handle_composition_annotation, handle_charset_annotation): New
16403 functions.
16404 (consume_chars): Handle charset annotation. Utilize the above two
16405 functions.
16406 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16407 buffer, get the deleted text as a string and set
16408 coding->src_object to that string.
16409 (detect_coding, detect_coding_system): Use the new struct
16410 coding_detection_info.
16411
16412 * coding.h (struct coding_detection_info): New structure.
16413 (struct coding_system): Adjust prototype of the member `detector'.
16414 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16415
16416 2008-02-01 Kenichi Handa <handa@m17n.org>
16417
16418 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16419
16420 2008-02-01 Dave Love <fx@gnu.org>
16421
16422 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16423 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16424 to new local and nullify apropos_accumulate before returning.
16425 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16426
16427 2008-02-01 Kenichi Handa <handa@m17n.org>
16428
16429 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16430 correctly.
16431
16432 2008-02-01 Dave Love <fx@gnu.org>
16433
16434 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16435
16436 2008-02-01 Kenichi Handa <handa@m17n.org>
16437
16438 The following changes are to make character composition happen
16439 automatically on displaying.
16440
16441 * Makefile.in (lisp, shortlisp): Add composite.elc.
16442
16443 * composite.h (Qauto_composed, Vauto_composition_function)
16444 (Qauto_composition_function): Extern them.
16445
16446 * composite.c (Vcomposition_function_table)
16447 (Qcomposition_function_table): Delete variables.
16448 (Qauto_composed, Vauto_composition_function)
16449 (Qauto_composition_function): New variables.
16450 (run_composition_function): Don't call
16451 compose-chars-after-function.
16452 (update_compositions): Clear `auto-composed' text property.
16453 (compose_chars_in_text): Delete this function.
16454 (syms_of_composite): Staticpro Qauto_composed and
16455 Qauto_composition_function. Declare Vauto_composition_function as
16456 a Lisp variable.
16457
16458 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16459
16460 * xdisp.c (it_props): Add an entry for Qauto_composed.
16461 (handle_auto_composed_prop): New function.
16462
16463 * xselect.c (selection_data_to_lisp_data): Don't call
16464 compose_chars_in_text.
16465
16466 2008-02-01 Dave Love <fx@gnu.org>
16467
16468 * keyboard.c (read_char): Modify checking around use of
16469 Vkeyboard_translate_table.
16470
16471 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16472 and fix C types.
16473
16474 2008-02-01 Kenichi Handa <handa@m17n.org>
16475
16476 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16477 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16478 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16479 the case that the last byte is '\r' correctly.
16480 (decode_coding): Flush out the unprocessed data correctly.
16481 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16482
16483 2008-02-01 Dave Love <fx@gnu.org>
16484
16485 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16486 Add XK_ISO... case.
16487 (xaw_scroll_callback): Revert last change.
16488
16489 2008-02-01 Kenichi Handa <handa@m17n.org>
16490
16491 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16492
16493 2008-02-01 Kenichi Handa <handa@m17n.org>
16494
16495 * xfaces.c (Vface_resizing_fonts): New variable.
16496 (struct font_name): New member `resizing_ratio'.
16497 (font_resizing_ratio): New function.
16498 (split_font_name): Set font->resizing_ratio.
16499 (better_font_p): Pay attention to font->resizing_ratio.
16500 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16501 RESX, and RESY fields.
16502 (try_alternative_families): Try scalable fonts if
16503 Vscalable_fonts_allowed is not Qt.
16504 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16505
16506 2008-02-01 Dave Love <fx@gnu.org>
16507
16508 * xterm.c (xaw_scroll_callback): Cast correctly.
16509
16510 2008-02-01 Dave Love <fx@gnu.org>
16511
16512 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16513 (lispy_kana_keys): Comment out.
16514 (make_lispy_event) [XK_kana_A]: Comment out.
16515
16516 * xterm.c (xaw_scroll_callback): Cast call_data.
16517 (XTread_socket): Deal with ASCII keysyms.
16518 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16519
16520 2008-02-01 Dave Love <fx@gnu.org>
16521
16522 * xterm.c (Vx_keysym_table): New.
16523 (syms_of_xterm): Initialize it.
16524 (XTread_socket): Use it.
16525 From head: Eliminate incorrect optimization that tried to avoid
16526 decoding the output of X*LookupString.
16527 (x_get_font_repertory): Delete charset declaration.
16528
16529 2008-02-01 Kenichi Handa <handa@m17n.org>
16530
16531 * coding.c (detect_coding_charset): If only ASCII bytes are found,
16532 return 0.
16533 (Fdefine_coding_system_internal): Setup
16534 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
16535
16536 2008-02-01 Dave Love <fx@gnu.org>
16537
16538 * coding.c (Fcheck_coding_system): Doc fix.
16539
16540 * editfns.c (Finsert_byte): Return a proper value.
16541
16542 2008-02-01 Kenichi Handa <handa@m17n.org>
16543
16544 * coding.c (decode_coding): Fix args to translate_chars. Pay
16545 attention to Vstandard_translation_table_for_decode.
16546 (encode_coding): Fix args to translate_chars. Pay attention to
16547 Vstandard_translation_table_for_encode.
16548
16549 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
16550 SINGLE_BYTE_CHAR_P.
16551
16552 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
16553 not by SINGLE_BYTE_CHAR_P.
16554
16555 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
16556 SINGLE_BYTE_CHAR_P.
16557
16558 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
16559 SINGLE_BYTE_CHAR_P.
16560
16561 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
16562 by SINGLE_BYTE_CHAR_P.
16563
16564 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
16565 SINGLE_BYTE_CHAR_P.
16566
16567 2008-02-01 Dave Love <fx@gnu.org>
16568
16569 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
16570
16571 2008-02-01 Dave Love <fx@gnu.org>
16572
16573 * fns.c (Flanginfo): Fix typo.
16574
16575 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
16576
16577 2008-02-01 Kenichi Handa <handa@m17n.org>
16578
16579 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
16580 (detect_coding_emacs_mule, detect_coding_iso_2022)
16581 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
16582 incomplete byte sequence. Don't update *mask when correctly detected.
16583 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
16584 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
16585 (detect_coding, detect_coding_system): Adjust for the changes above.
16586
16587 2008-02-01 Kenichi Handa <handa@m17n.org>
16588
16589 * character.c (char_string): Rename from
16590 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
16591 (string_char): Rename from string_char.
16592
16593 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
16594 if C is greater than MAX_3_BYTE_CHAR.
16595 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
16596 string_char instead of string_char_with_unification.
16597
16598 2008-02-01 Dave Love <fx@gnu.org>
16599
16600 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
16601
16602 2008-02-01 Kenichi Handa <handa@m17n.org>
16603
16604 * keymap.c (push_key_description): Pay attention to force_multibyte.
16605
16606 * regex.c (re_search_2): Fix for the case of unibyte buffer.
16607
16608 2008-02-01 Dave Love <fx@gnu.org>
16609
16610 * charset.c (define_charset_internal): Rename `supprementary'.
16611
16612 * Makefile.in (lisp, shortlisp): Remove latin-N.
16613
16614 2008-02-01 Dave Love <fx@gnu.org>
16615
16616 * xfns.c (x_window, x_window): Use use_xim.
16617
16618 * xterm.c (use_xim): Initialize.
16619 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
16620 (x_term_init): Maybe set use_xim.
16621
16622 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
16623
16624 2008-02-01 Kenichi Handa <handa@m17n.org>
16625
16626 * search.c (search_buffer): Fix case-fold-search of multibyte
16627 characters.
16628 (boyer_moore): Rename the last argument to char_high_bits.
16629
16630 2008-02-01 Kenichi Handa <handa@m17n.org>
16631
16632 * xdisp.c (display_string): Fix for the case of zero width glyph.
16633
16634 * xfns.c (x_set_font): Change the error message of the case that
16635 x_new_fontset returns Qt.
16636
16637 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
16638 (Finternal_set_lisp_face_attribute): Use signal_error for the
16639 error of invalid fontset.
16640
16641 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
16642 fontset, return Qt.
16643
16644 2008-02-01 Dave Love <fx@gnu.org>
16645
16646 * unexelf.c (unexec): Make .got handling not SGI-specific.
16647
16648 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
16649
16650 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
16651
16652 * keyboard.c (read_key_sequence): Fix type error.
16653
16654 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
16655 type error.
16656
16657 * fontset.c (fontset_add): Return Lisp_Object.
16658
16659 2008-02-01 Dave Love <fx@gnu.org>
16660
16661 * charset.h (charset_ordered_list_tick): Declare extern.
16662
16663 2008-02-01 Kenichi Handa <handa@m17n.org>
16664
16665 The following changes (and some of 2008-02-01 changes of mine) are
16666 for handling syntax, category, and case conversion for unibyte
16667 characters by converting them to multibyte on the fly. With these
16668 changes, we don't have to setup syntax and case tables for unibyte
16669 characters in each language environment.
16670
16671 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
16672 multibyte if necessary.
16673
16674 * bytecode.c (Fbyte_code): Likewise.
16675
16676 * character.h (LEADING_CODE_LATIN_1_MIN)
16677 (LEADING_CODE_LATIN_1_MAX): New macros.
16678 (unibyte_to_multibyte_table): Extern it.
16679 (unibyte_char_to_multibyte): New macro.
16680 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
16681 (CHAR_LEADING_CODE): New macro.
16682 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
16683
16684 * character.c (unibyte_to_multibyte_table): New variable.
16685 (unibyte_char_to_multibyte): Move to character.h and define as macro.
16686 (multibyte_char_to_unibyte): If C is an eight-bit character,
16687 convert it to the corresponding byte value.
16688
16689 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
16690 not 1, signals an error. Update the elements of
16691 unibyte_to_multibyte_table.
16692 (init_charset_once): Initialize unibyte_to_multibyte_table.
16693 (syms_of_charset): Define the charset `iso-8859-1'.
16694
16695 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
16696 as is without converting it to unibyte. In a unibyte buffer,
16697 convert C to multibyte before checking the syntax.
16698
16699 * lisp.h (unibyte_char_to_multibyte): Delete extern.
16700
16701 * minibuf.c (Fminibuffer_complete_word): Use the macro
16702 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
16703
16704 * regex.h (struct re_pattern_buffer): New member target_multibyte.
16705
16706 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
16707 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
16708 that is zero, convert an eight-bit char to multibyte.
16709 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
16710 non-emacs case.
16711 (PATFETCH): Convert an eight-bit char to multibyte.
16712 (HANDLE_UNIBYTE_RANGE): New macro.
16713 (regex_compile): Setup the compiled pattern for multibyte chars
16714 even if the given regex string is unibyte. Use PATFETCH_RAW
16715 instead of PATFETCH in many places. To handle `charset'
16716 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
16717 only for ASCII chars.
16718 (analyse_first) <exactn>: Simplify because the compiled pattern
16719 is multibyte.
16720 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
16721 <charset>: Use CHAR_LEADING_CODE to get leading codes.
16722 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
16723 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
16724 multibyte always 1.
16725 (re_search_2): In emacs, set the locale variable multibyte to 1,
16726 otherwise to 0. New local variable target_multibyte. Check it
16727 to decide the multibyteness of STR1 and STR2. If
16728 target_multibyte is zero, convert unibyte chars to multibyte
16729 before translating and checking fastmap.
16730 (TARGET_CHAR_AND_LENGTH): New macro.
16731 (re_match_2_internal): In emacs, set the locale variable multibyte
16732 to 1, otherwise to 0. New local variable target_multibyte. Check
16733 it to decide the multibyteness of STR1 and STR2. Use
16734 TARGET_CHAR_AND_LENGTH to fetch a character from D.
16735 <charset, charset_not>: If multibyte is nonzero, check fastmap
16736 only for ASCII chars. Call bcmp_translate with
16737 target_multibyte, not with multibyte.
16738 <begline>: Declare the local variable C as `unsigned'.
16739 (bcmp_translate): Change the last arg name to target_multibyte.
16740
16741 * search.c (compile_pattern_1): Don't adjust the multibyteness of
16742 the regexp pattern and the matching target. Set cp->buf.multibyte
16743 to the multibyteness of the regexp pattern. Set
16744 cp->but.target_multibyte to the multibyteness of the matching target.
16745 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
16746 FETCH_STRING_CHAR_ADVANCE.
16747 (Freplace_match): Convert unibyte chars to multibyte.
16748
16749 * syntax.c (char_quoted, back_comment, scan_words)
16750 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
16751 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
16752 unibyte chars to multibyte.
16753 (skip_chars): Delete the arg syntaxp, and move the code for
16754 handling syntaxes to skip_syntaxes. Change callers.
16755 Fix the case that the multibyteness of STRING and the current
16756 buffer doesn't match.
16757 (skip_syntaxes): New function.
16758 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
16759 SINGLE_BYTE_CHAR_P.
16760
16761 2008-02-01 Kenichi Handa <handa@m17n.org>
16762
16763 * xfaces.c (QCfontset): New variable.
16764 (LFACE_FONTSET): New macro.
16765 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
16766 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
16767 (Finternal_set_lisp_face_attribute)
16768 (Finternal_get_lisp_face_attribute): Handle QCfontset.
16769 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
16770 check also LFACE_FONTSET_INDEX.
16771 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
16772 attrs[LFACE_FONT_INDEX].
16773 (syms_of_xfaces): Intern and staticpro QCfontset.
16774
16775 * dispextern.h (enum lface_attribute_index): New member
16776 LFACE_FONTSET_INDEX.
16777
16778 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
16779
16780 2008-02-01 Kenichi Handa <handa@m17n.org>
16781
16782 * coding.c (coding_set_destination): Fix coding->destination for
16783 the case converting a region.
16784 (encode_coding_utf_8): Encode eight-bit chars as single byte.
16785 (encode_coding_object): Fix coding->dst_pos and
16786 coding->dst_pos_byte for the case converting a region.
16787
16788 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
16789
16790 * character.h (BYTE8_STRING): New macro.
16791
16792 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
16793
16794 2008-02-01 Kenichi Handa <handa@m17n.org>
16795
16796 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
16797 characters by octal form.
16798
16799 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16800
16801 * buffer.h (_fetch_multibyte_char_len): Delete extern.
16802 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
16803 _fetch_multibyte_char_len.
16804 (FETCH_CHAR_AS_MULTIBYTE): New macro.
16805
16806 * casetab.c (set_canon, set_identity, shuffle): Simplify.
16807
16808 * casefiddle.c (casify_object): Simplify. Handle the case that
16809 the case conversion change the byte length.
16810 (casify_region): Likewise.
16811
16812 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
16813
16814 * character.c (_fetch_multibyte_char_len): Delete this variable.
16815 (syms_of_character): Setup Vprintable_chars.
16816
16817 * editfns.c (Fchar_equal): Fix for the unibyte case.
16818 (Finsert_byte): New function.
16819 (syms_of_editfns): Defsubr it.
16820
16821 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
16822 of direct code 0x3ffff.
16823
16824 * search.c (Freplace_match): Fix for the unibyte case.
16825
16826 2008-02-01 Kenichi Handa <handa@m17n.org>
16827
16828 * lread.c (safe_to_load_p): Fix the logic.
16829
16830 * syntax.c (scan_words): Don't treat characters belonging to
16831 different scripts as constituting a word.
16832
16833 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16834
16835 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
16836
16837 * emacs.c (main): In the case of --unibyte, instead of aborting on
16838 finding non-empty buffer, make it unibyte.
16839
16840 2008-02-01 Kenichi Handa <handa@m17n.org>
16841
16842 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16843 to create a fontset.
16844
16845 2008-02-01 Dave Love <fx@gnu.org>
16846
16847 * character.c (Funibyte_char_to_multibyte): Doc fix.
16848
16849 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16850
16851 2008-02-01 Kenichi Handa <handa@m17n.org>
16852
16853 * fontset.c (fontset_add): Make the type `int'.
16854 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16855
16856 * character.c (unibyte_char_to_multibyte)
16857 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16858 charset_unibyte, not charset_primary.
16859
16860 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16861
16862 * charset.c (charset_unibyte): Rename from charset_primary.
16863 (Funibyte_charset): Rename from Fprimary_charset.
16864 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16865 (syms_of_charset): Adjust for the above changes.
16866
16867 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16868 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16869 it->multibyte_p is zero.
16870
16871 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16872 Delete extern.
16873
16874 2008-02-01 Kenichi Handa <handa@m17n.org>
16875
16876 * coding.c (Fdefine_coding_system_internal): Fix category setting
16877 for a coding system of type iso-2022.
16878
16879 2008-02-01 Kenichi Handa <handa@m17n.org>
16880
16881 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
16882
16883 2008-02-01 Kenichi Handa <handa@m17n.org>
16884
16885 * syntax.c (Vnext_word_boundary_function_table): New variable.
16886 (next-word-boundary-function-table): Declare it as a Lisp variable
16887 in syms_of_syntax.
16888 (scan_words): Call functions in Vnext_word_boundary_function_table
16889 if any.
16890
16891 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
16892
16893 * fontset.c (fs_load_font): If fontp->charset is not negative,
16894 return fontp without setting its members.
16895
16896 2008-02-01 Dave Love <fx@gnu.org>
16897
16898 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
16899
16900 * m/sparc.h (HAVE_ALLOCA): Delete.
16901
16902 * s/irix6-5.h: Don't include strings.h.
16903 (bcopy, bzero, bcmp): Don't undef.
16904
16905 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
16906
16907 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
16908 (TIOCSIGSEND): Don't test IRIX6.
16909 (bcopy, bzero, bcmp): Define conditionally.
16910
16911 2008-02-01 Kenichi Handa <handa@m17n.org>
16912
16913 * buffer.c (Qas, Qmake, Qto): New variables.
16914 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
16915 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
16916
16917 * callproc.c (Fcall_process): Don't call insert_1_both directly if
16918 we are inserting a process output into a multibyte buffer.
16919
16920 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
16921 multibyte_char_to_unibyte.
16922
16923 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
16924 by the primary charset, make it eight-bit char.
16925 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
16926
16927 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
16928 (charset_8_bit__control, charset_8_bit_graphic)
16929 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
16930 (define_charset_internal): New function.
16931 (syms_of_charset): Call define_charset_internal for pre-defined
16932 charsets.
16933
16934 * charset.h (charset_8_bit): Extern it.
16935
16936 * coding.c (make_conversion_work_buffer): Adjust for the change
16937 of Fset_buffer_multibyte.
16938 (encode_coding_raw_text): Increment p0 in the loop.
16939
16940 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16941
16942 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16943 for the change of Fset_buffer_multibyte.
16944
16945 * fns.c (Fstring_to_multibyte): New function.
16946 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16947
16948 2008-02-01 Dave Love <fx@gnu.org>
16949
16950 * xfns.c (x_put_x_image): Declare args.
16951
16952 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16953 (try_font_list): Declare an arg.
16954
16955 * xdisp.c (message2_nolog, set_message): Declare an arg.
16956
16957 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16958
16959 * syntax.c (scan_sexps_forward): Declare an arg.
16960
16961 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16962 Declare an arg.
16963
16964 * lisp.h (Fnew_fontset): Declare.
16965
16966 * keymap.c (push_key_description): Call CHARACTERP correctly.
16967
16968 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16969 (face_for_char): Delete unused vars.
16970 (Fset_fontset_font): Doc fix. Delete unused vars.
16971
16972 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16973
16974 * composite.c (update_compositions): Declare arg.
16975
16976 * cm.c (calccost, cmgoto): Declare args.
16977
16978 * charset.c: Remove `emacs' conditional. Doc fixes.
16979 (map_char_table_for_charset): Declare.
16980
16981 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16982
16983 * ccl.c: Remove `emacs' conditional.
16984
16985 2008-02-01 Kenichi Handa <handa@m17n.org>
16986
16987 The following changes are to allow specifying multiple font
16988 patterns for a character range (specified by script or charset).
16989
16990 * Makefile.in (abbrev.o): Depend on syntax.h.
16991 (xfaces.o): Depend on charset.h.
16992
16993 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16994 SINGLE_BYTE_CHAR_P.
16995
16996 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16997
16998 * character.h (Vchar_script_table): Extern it.
16999
17000 * character.c (Vscript_alist): Delete.
17001 (Vchar_script_table, Qchar_script_table): New variable.
17002 (syms_of_character): Declare Vchar_script_table as a lisp variable
17003 and initialize it.
17004
17005 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17006 have property char-table-extra-slots, make no extra slot.
17007
17008 * dispextern.h (struct face): Delete member `charset'.
17009 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17010 SINGLE_BYTE_CHAR_P.
17011 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17012 Add prototypes.
17013 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17014 (generate_ascii_font_name): Rename from generate_ascii_font.
17015
17016 * fontset.h (get_font_repertory_func): New prototype.
17017 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17018 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17019
17020 * fontset.c (Qprepend, Qappend): New variables.
17021 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17022 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17023 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17024 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17025 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17026 (load_font_get_repertory): New functions.
17027 (fontset_set): Delete.
17028 (fontset_face): New arg FACE. Return face ID, not face.
17029 Complete re-write to handle new fontset structure. Change caller.
17030 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17031 (face_for_char): Don't call lookup_face.
17032 (make_fontset_for_ascii_face): New arg FACE.
17033 (fs_load_font): New arg CHARSET_ID. Don't check
17034 Vfont_encoding_alist here.
17035 (find_font_encoding): New function.
17036 (list_fontsets): Use STRINGP, not ! NILP.
17037 (accumulate_script_ranges): New function.
17038 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17039 re-written to handle new fontset structure.
17040 (Ffontset_font): Return a copy of element.
17041 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17042 docstring of font-encoding-alist.
17043
17044 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17045 (Fset_fotset_font): Fix arguments to 5.
17046
17047 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17048
17049 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17050 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17051 (highlight_trailing_whitespace): Adjust for the change of
17052 lookup_named_face.
17053
17054 * xfaces.c: Include charset.h.
17055 (load_face_font): Delete argument C. Change caller.
17056 (generate_ascii_font_name): Rename from generate_ascii_font.
17057 (font_name_registry): New function.
17058 (cache_face): Store ascii faces before non-ascii faces in buckets.
17059 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17060 Lookup only ascii faces.
17061 (lookup_non_ascii_face): New function.
17062 (lookup_named_face): Delete argument C. Change caller.
17063 (lookup_derived_face): Delete argument C. Change caller.
17064 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17065 a string, just call font_list with it.
17066 (choose_face_font): Delete arguments FACE and C. New arg
17067 FONT_SPEC. Change caller.
17068 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17069 Change caller.
17070 (realize_non_ascii_face): New function.
17071 (realize_x_face): Call load_face_font here.
17072 (realize_tty_face): Delete argument C. Change caller.
17073 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17074 get a face ID.
17075 (dump_realized_face): Don't print charset of FACE.
17076
17077 * xfns.c (x_set_font): Always call x_new_fontset and
17078 store_frame_parameter.
17079 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17080 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17081
17082 * xterm.h (x_get_font_repertory): Extern it.
17083
17084 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17085 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17086 it->multibyte_p is zero.
17087 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17088 (x_new_fontset): If FONTSETNAME doesn't match any existing
17089 fontsets, create a new one.
17090 (x_get_font_repertory): New function.
17091
17092 2008-02-01 Kenichi Handa <handa@m17n.org>
17093
17094 * coding.c (Ffind_coding_systems_region_internal): Detect an
17095 ASCII only string correctly.
17096
17097 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17098 version is 0.
17099
17100 2008-02-01 Kenichi Handa <handa@m17n.org>
17101
17102 * lread.c: Include "coding.h".
17103 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17104 (load_each_byte, unread_char): New variables.
17105 (readchar_backlog): Delete.
17106 (readchar): Return a character unless load_each_byte is nonzero.
17107 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17108 cons. If unread_char is not -1, simply return it.
17109 (unreadchar): Handle the case that readcharfun is
17110 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17111 (read_multibyte): Delete.
17112 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17113 (read_emacs_mule_char): New functions.
17114 (Fload): Even if the file doesn't have the extension ".elc", if
17115 safe_to_load_p returns a positive version number, assume that the
17116 file contains bytecompiled code. If the version is less than 22,
17117 load the file while decoding multibyte sequences by emacs-mule.
17118 (readevalloop): Don't use readchar_backlog.
17119 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17120 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17121 (read_escape): Delete the arg BYTEREP.
17122 (read1): Set load_each_byte to 1 temporarily while handling
17123 #@NUMBER. Don't call read_multibyte.
17124 (read_vector): Call Fread with a cons. If readcharfun is
17125 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17126 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17127 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17128 and Qload_force_doc_strings.
17129
17130 2008-02-01 Kenichi Handa <handa@m17n.org>
17131
17132 * xdisp.c (face_before_or_after_it_pos): Call
17133 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17134
17135 2008-02-01 Kenichi Handa <handa@m17n.org>
17136
17137 * character.h (TRAILING_CODE_P): New macro.
17138 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17139 (string_char_with_unification): Fix prototype.
17140 (Vscript_alist): Extern it.
17141
17142 * character.c (Vscript_alist): New variable.
17143 (string_char_with_unification, str_as_unibyte)
17144 (string_escape_byte8): Add `const' to local variables.
17145 (syms_of_character): Declare script-alist as a Lisp variable.
17146
17147 * charset.h (Vcharset_ordered_list): Extern it.
17148 (charset_ordered_list_tick): Extern it.
17149 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17150 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17151 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17152 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17153 (Funify_charset): Adjust for the change of Funify_charset.
17154
17155 * charset.c (charset_ordered_list_tick): New variable.
17156 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17157 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17158 deunify intead of unify a charset.
17159 (string_xstring_p): Add `const' to local variables.
17160 (find_charsets_in_text): Add `const' to arguments and local variables.
17161 (encode_char): Adjust for the change of Funify_charset. Fix
17162 detecting of invalid code.
17163 (Fset_charset_priority): Increment charset_ordered_list_tick.
17164 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17165 and TO_CODE.
17166
17167 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17168 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17169 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17170 (decode_coding_ccl, consume_chars)
17171 (Ffind_coding_systems_region_internal)
17172 (Fcheck_coding_systems_region): Add `const' to local variables.
17173
17174 * print.c (print_object): Use octal form for printing the
17175 contents of a bool vector.
17176
17177 2008-02-01 Dave Love <fx@gnu.org>
17178
17179 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17180 <version == 20>: Refuse to load.
17181
17182 2008-02-01 Dave Love <fx@gnu.org>
17183
17184 * fns.c: Move coding.h.
17185 (Qcodeset, Qdays, Qmonths): New.
17186 (concat): Use CHARACTERP instead of INTEGERP.
17187 (Flocale_codeset): Delete.
17188 (Flanginfo): New function.
17189 (syms_of_fns): Change accordingly.
17190
17191 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17192
17193 2008-02-01 Dave Love <fx@gnu.org>
17194
17195 * casetab.c (init_casetab_once, init_casetab_once): Fix
17196 CHAR_TABLE_SET call.
17197
17198 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17199
17200 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17201
17202 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17203 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17204 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17205
17206 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17207
17208 * coding.c (ENCODE_DESIGNATION, decode_eol)
17209 (make_conversion_work_buffer, code_conversion_restore)
17210 (Fdefine_coding_system_internal): Convert Lisp types.
17211 (code_conversion_restore): Use EQ, not ==.
17212 (Fencode_coding_string): Fix code_convert_string call.
17213
17214 * coding.h (code_convert_region): Fix prototype.
17215
17216 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17217
17218 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17219 (Ffontset_info): Convert Lisp types.
17220
17221 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17222
17223 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17224
17225 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17226
17227 * chartab.c: Include "...h", not <...h> in some cases.
17228
17229 * callproc.c (Fcall_process): Remove unused variables.
17230
17231 2008-02-01 Dave Love <fx@gnu.org>
17232
17233 * coding.c (Fset_coding_system_priority): Allow null arg list.
17234
17235 2008-02-01 Dave Love <fx@gnu.org>
17236
17237 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17238 (Fself_insert_and_exit): Use CHARACTERP.
17239
17240 * callproc.c (Fcall_process): Remove unused vars.
17241
17242 * xterm.c (XTread_socket): Add extra dead keysyms.
17243
17244 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17245
17246 * dispextern.h: Remove prototypes for redraw_frame,
17247 redraw_garbaged_frames.
17248
17249 * cmds.c (Fself_insert_command): Use CHARACTERP.
17250
17251 * chartab.c (make_sub_char_table): Remove unused var.
17252 (Fset_char_table_default, Fmap_char_table): Doc fix.
17253
17254 * keymap.c (access_keymap): Remove generic char code.
17255 (push_key_description): Use CHARACTERP.
17256
17257 2008-02-01 Dave Love <fx@gnu.org>
17258
17259 * charset.c: Doc fixes.
17260 (Funify_charset): Extra checking.
17261
17262 2008-02-01 Dave Love <fx@gnu.org>
17263
17264 * lread.c: Remove some unused variables.
17265 (safe_to_load_p): If safe, return the magic number version byte.
17266 (Fload): Maybe use load-with-code-conversion.
17267
17268 2008-02-01 Kenichi Handa <handa@m17n.org>
17269
17270 * category.c (Fmodify_category_entry): Don't modify the contents
17271 of category_set for characters out of the range. Avoid
17272 unnecessary modification.
17273
17274 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17275 Vchar_unify_table. The default value of the table is now nil.
17276
17277 * character.c (syms_of_character): Setup Vchar_width_table for
17278 eight-bit-control and raw-byte chars.
17279
17280 * charset.h (enum define_charset_arg_index): Delete
17281 charset_arg_parents and add charset_arg_subset and
17282 charset_arg_superset.
17283 (enum charset_attr_index): Delete charset_parents and add
17284 charset_subset and charset_superset.
17285 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17286 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17287 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17288 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17289 (CHARSET_SUPERSET): New macros.
17290 (charset_work): Extern it.
17291 (ENCODE_CHAR): Use charset_work.
17292 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17293 (map_charset_chars): Extern it.
17294
17295 * charset.c (load_charset_map): Set the default value of encoder
17296 and deunifier char-tables to nil.
17297 (map_charset_chars): Change argument. Change callers. Use
17298 map_char_table_for_charset instead of map_char_table.
17299 (Fmap_charset_chars): New optional args from_code and to_code.
17300 (Fdefine_charset_internal): Adjust for the change of
17301 `define-charset' (:parents -> :subset or :superset).
17302 (charset_work): New variable.
17303 (encode_char, syms_of_charset): Adjust for the change of
17304 Fdefine_charset_internal.
17305 (Ffind_charset_string): Setup the vector `charsets' correctly.
17306
17307 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17308 the previous change.
17309 (char_table_ref_and_range): Adjust for the above change.
17310 (map_sub_char_table_for_charset): New function.
17311 (map_char_table_for_charset): New function.
17312
17313 * keymap.c (describe_vector): Handle a char-table directly here.
17314 (describe_char_table): Delete.
17315
17316 * lisp.h (map_charset_chars): Delete.
17317
17318 2008-02-01 Dave Love <fx@gnu.org>
17319
17320 * fns.c (count_combining): Comment out (unused).
17321 (Flocale_codeset): New.
17322 (syms_of_fns): Defsubr it.
17323
17324 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17325 (size_t): Remove.
17326
17327 2008-02-01 Dave Love <fx@gnu.org>
17328
17329 * Makefile.in (chartab.o): Depend on charset.h.
17330
17331 2008-02-01 Kenichi Handa <handa@m17n.org>
17332
17333 * character.c (syms_of_character): Set the default value of
17334 Vprintable_chars to Qnil.
17335
17336 2008-02-01 Dave Love <fx@gnu.org>
17337
17338 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17339
17340 2008-02-01 Kenichi Handa <handa@m17n.org>
17341
17342 * charset.c (load_charset_map): Handle the case that from < to
17343 correctly.
17344
17345 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17346 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17347 Pay attention to raw-8-bit chars.
17348
17349 2008-02-01 Kenichi Handa <handa@m17n.org>
17350
17351 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17352 It is not bytecompiled now.
17353
17354 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17355 (charset_jisx0208): New variables.
17356 (Fdefine_charset_internal): Setup them if appropriate.
17357 (init_charset_once): Initialize them to -1.
17358
17359 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17360 (charset_jisx0208): Extern them.
17361
17362 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17363 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17364 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17365 (setup_iso_safe_charsets): Fix arguments to Fassq.
17366 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17367 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17368 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17369 (encode_coding_iso_2022): Change the 1st arg to
17370 ENCODE_ISO_CHARACTER to a variable.
17371
17372 2008-02-01 Kenichi Handa <handa@m17n.org>
17373
17374 * charset.h (enum define_charset_arg_index): New enums
17375 charset_arg_min_code and charset_arg_max_code.
17376 (struct charset): New member char_index_offset.
17377
17378 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17379 Take charset->char_index_offset into account.
17380 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17381 args[charset_arg_max_code]. Setup charset.char_index_offset.
17382 (syms_of_charset): Fix args to Fdefine_charset_internal.
17383
17384 2008-02-01 Dave Love <fx@gnu.org>
17385
17386 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17387
17388 2008-02-01 Dave Love <fx@gnu.org>
17389
17390 * coding.c: Doc fixes.
17391 (Fcoding_system_aliases): Fix return value.
17392 (Qmac): Remove (duplicated) definition.
17393
17394 2008-02-01 Dave Love <fx@gnu.org>
17395
17396 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17397 New functions.
17398
17399 * character.c (Fstring): Doc fix.
17400
17401 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17402
17403 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
17404 (font-encoding-alist): Doc fix.
17405
17406 2008-02-01 Dave Love <fx@gnu.org>
17407
17408 * term.c (costs_set): Declare static, non-initialized for pcc.
17409 (encode_terminal_code): Remove unused var.
17410
17411 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17412 for K&R.
17413
17414 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17415
17416 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17417 (suffixes): Move out of make_subsidiaries for K&R.
17418
17419 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17420
17421 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17422
17423 2008-02-01 Dave Love <fx@gnu.org>
17424
17425 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17426
17427 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17428
17429 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
17430
17431 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17432
17433 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17434
17435 2008-02-01 Kenichi Handa <handa@m17n.org>
17436
17437 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17438 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17439
17440 2008-02-01 Kenichi Handa <handa@m17n.org>
17441
17442 * coding.c (decode_coding_charset): Adjust for the change of
17443 Fdefine_coding_system_internal.
17444 (Fdefine_coding_system_internal): For a coding system of
17445 `charset' type, store a list of charset IDs in
17446 `charset_attr_charset_valids' element of coding attributes.
17447
17448 2008-02-01 Kenichi Handa <handa@m17n.org>
17449
17450 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17451 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17452 caller. Handle 2-byte and 3-byte charsets correctly.
17453 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17454 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17455 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17456 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17457 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17458 sequence.
17459 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17460 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17461 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17462 and alt&rule composition.
17463 (decode_coding_iso_2022): Handle composition correctly.
17464 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17465
17466 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17467 re-defining a charset. If the charset has :emacs-mule-id, setup
17468 emacs_mule_bytes.
17469 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17470
17471 2008-02-01 Kenichi Handa <handa@m17n.org>
17472
17473 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17474 (encode_coding_big5, encode_coding_charset): If coding requires safe
17475 encoding, produce a character specified by
17476 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17477
17478 2008-02-01 Dave Love <fx@gnu.org>
17479
17480 * xterm.c (XSetIMValues): Declare.
17481
17482 * process.c: Conditionally include sys/wait.h, pty.h.
17483
17484 * print.c (print_object): Fix print format for 64-bit systems.
17485
17486 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17487
17488 * buffer.c (emacs_strerror): Declare.
17489
17490 * fontset.c (Fclear_face_cache): Declare.
17491 (accumulate_font_info): Comment-out (unused).
17492 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17493 variables.
17494
17495 * character.h (string_escape_byte8): Declare.
17496
17497 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17498 unused vars.
17499 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17500 (Fmap_charset_chars): Doc fix.
17501
17502 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17503 (Fset_coding_system_priority, Fset_coding_system_priority)
17504 (Fdefine_coding_system_internal): Doc fix.
17505
17506 2008-02-01 Dave Love <fx@gnu.org>
17507
17508 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17509
17510 2008-02-01 Kenichi Handa <handa@m17n.org>
17511
17512 * character.c (string_escape_byte8): Make multibyte string with
17513 correct size.
17514
17515 * charset.c (Fmake_char): Delete unnecessary code.
17516
17517 2008-02-01 Kenichi Handa <handa@m17n.org>
17518
17519 * xfns.c (x_encode_text): Allocate coding.destination here, and
17520 call encode_coding_object with dst_object Qnil.
17521
17522 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17523 multibyte form correctly.
17524
17525 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
17526 against Vfont_encoding_alist.
17527
17528 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
17529 handling of charset list.
17530 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
17531 (decode_coding_object): Move point to coding->dst_pos before
17532 calling post-read-conversion function.
17533 (encode_coding_object): Give correct arguments to
17534 pre-write-conversion. Ignore the return value of
17535 pre-write-conversion function. Pay attention to the case that
17536 pre-write-conversion changes the current buffer. If dst_object is
17537 Qt, even if coding->src_bytes is zero, allocate at least one byte
17538 to coding->destination.
17539
17540 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
17541
17542 * charset.c (Fmake_char): Make it more backward compatible.
17543 (Fmap_charset_chars): Fix docstring.
17544
17545 2008-02-01 Dave Love <fx@gnu.org>
17546
17547 * coding.c: Doc fixes.
17548 (Fdefine_coding_system_alias): Use names, not symbols, in
17549 coding-system-alist.
17550
17551 2008-02-01 Kenichi Handa <handa@m17n.org>
17552
17553 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
17554 of calling free_realized_face.
17555
17556 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
17557
17558 * charset.c (read_hex): Don't treat SPC as a comment starter.
17559 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
17560 (Fdecode_char): Fix typo.
17561
17562 2008-02-01 Kenichi Handa <handa@m17n.org>
17563
17564 * charset.h (struct charset): New member `code_space_mask'.
17565
17566 * coding.c (coding_set_source): Delete the local variable beg_byte.
17567 (encode_coding_charset, Fdefine_coding_system_internal):
17568 Delete the local variable charset.
17569 (Fdefine_coding_system_internal): Setup
17570 attrs[coding_attr_charset_valids] correctly.
17571
17572 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
17573 member to check if CODE is valid or not.
17574 (Fdefine_charset_internal): Initialize `code_space_mask' member.
17575 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
17576 is within the range of charset->min_code and carset->max_code.
17577
17578 2008-02-01 Dave Love <fx@gnu.org>
17579
17580 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
17581
17582 * dispextern.h (generate_ascii_font): Fix return type.
17583
17584 * xfaces.c (generate_ascii_font): Fix arg declaration.
17585
17586 * coding.c (coding_inherit_eol_type)
17587 (Fset_terminal_coding_system_internal)
17588 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
17589
17590 2008-02-01 Kenichi Handa <handa@m17n.org>
17591
17592 * coding.c (decode_coding_charset, encode_coding_charset): Handle
17593 multiple charsets correctly.
17594
17595 2008-02-01 Kenichi Handa <handa@m17n.org>
17596
17597 * search.c (boyer_moore): Fix handling of multibyte character
17598 translation.
17599
17600 * xdisp.c (display_mode_element): When the variable `elt' is
17601 changed, update `this' and `lisp_string'.
17602
17603 2008-02-01 Kenichi Handa <handa@m17n.org>
17604
17605 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
17606
17607 * callproc.c (Fcall_process): Be sure to give the current buffer
17608 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
17609
17610 * charset.c (struct charset_map_entries): New struct.
17611 (load_charset_map): Rename from parse_charset_map. New args
17612 entries and n_entries. Change caller.
17613 (load_charset_map_from_file): Rename from load_charset_map.
17614 Change caller. New arg control_flag. Call load_charset_map at
17615 the tail.
17616 (load_charset_map_from_vector): New function.
17617 (Fdefine_charset_internal): Setup charset.compact_codes_p.
17618 (encode_char): If the charset is compact, change a character index
17619 to a code point.
17620
17621 * coding.c (coding_alloc_by_making_gap): Check the case that the
17622 source and destination are the same correctly.
17623 (decode_coding_raw_text): Set coding->consumed_char and
17624 coding->consumed to 0.
17625 (produce_chars): If coding->chars_at_source is nonzero, update
17626 coding->consumed_char and coding->consumed before calling
17627 alloc_destination.
17628 (Fdefine_coding_system_alias): Register ALIAS in
17629 Vcoding_system_alist.
17630 (syms_of_coding): Define `no-conversion' coding system at the tail.
17631
17632 * fileio.c (Finsert_file_contents): Set coding_system instead of
17633 val. If the current buffer is multibyte, always call
17634 decode_coding_gap.
17635
17636 * xfaces.c (try_font_list): Give higher priority to fontset's
17637 family than face's family.
17638
17639 2008-02-01 Kenichi Handa <handa@m17n.org>
17640
17641 * callproc.c (Fcall_process): Be sure to give the current buffer
17642 to decode_coding_c_string.
17643
17644 * xfaces.c (try_font_list): Give a family specified in a fontset
17645 higher priority than a family specified in a face.
17646
17647 2008-02-01 Kenichi Handa <handa@m17n.org>
17648
17649 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
17650 Fix arguments to insert_from_buffer.
17651
17652 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
17653
17654 2008-02-01 Kenichi Handa <handa@m17n.org>
17655
17656 * coding.c (produce_chars): Set the variable `multibytep' correctly.
17657 (decode_coding_gap): Set coding->dst_multibyte correctly.
17658
17659 2008-02-01 Kenichi Handa <handa@m17n.org>
17660
17661 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
17662 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
17663 (encode_coding_utf_16): Substitute coding->default_char for
17664 non-Unicode characters.
17665 (decode_coding): Don't call record_insert here.
17666 (setup_coding_system): Initialize `surrogate' of
17667 coding->spec.utf_16 to 0.
17668 (EMIT_ONE_BYTE): Fix for multibyte case.
17669
17670 * insdel.c (insert_from_gap): Call record_insert.
17671
17672 2008-02-01 Kenichi Handa <handa@m17n.org>
17673
17674 * casefiddle.c (casify_region): Fix multibyte case.
17675
17676 * character.c (c_string_width): Add return type `int'.
17677 (char_string_with_unification): Delete arg ADVANCED.
17678
17679 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
17680 (CHAR_STRING): Adjust for the change of char_string_with_unification.
17681 (CHAR_STRING_ADVANCE): Make it do-while statement.
17682
17683 * chartab.c (sub_char_table_set_range): Optimize for the case
17684 DEPTH == 3. Add workaround code for a GCC optimization bug.
17685
17686 * charset.c (parse_charset_map): Remove an unused variable.
17687
17688 * coding.c: Delete unused variables.
17689
17690 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
17691 earlier. If inserted is zero and the coding system doesn't
17692 require flushing, don't call decode_coding_gap.
17693
17694 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
17695
17696 2008-02-01 Kenichi Handa <handa@m17n.org>
17697
17698 The following changes are for using Unicode as an internal
17699 character model, and use UTF-8 format for buffer/string
17700 representation.
17701
17702 * .gdbinit (xchartable): Adjust for the change of char table structure.
17703 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
17704
17705 * Makefile.in (obj): Add character.o and chartab.o.
17706 (lisp, shortlisp): Remove utf-8.elc.
17707 (*.o): For many files, change dependency on charset.h to
17708 character.h, and add dependency on character.h.
17709 (character.o, chartab.o): New targets.
17710
17711 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
17712 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
17713 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
17714 of "charset.h".
17715
17716 * dired.c, filelock.c: Include "character.h".
17717
17718 * alloc.c: Include "character.h" instead of "charset.h".
17719 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
17720 (syms_of_alloc): Remove defsubr for Smake_char_table.
17721
17722 * buffer.c: Include "character.h" instead of "charset.h", don't
17723 include "coding.h".
17724 (Fset_buffer_multibyte): Adjust for UTF-8.
17725
17726 * buffer.h: EXFUN Fbuffer_live_p.
17727
17728 * callproc.c: Include "character.h" instead of "charset.h".
17729 (Fcall_process): Big change for the new code-conversion APIs.
17730
17731 * casetab.c: Include "character.h" instead of "charset.h".
17732 (set_canon, set_identity, shuffle): Adjust for the new
17733 map_char_table spec.
17734 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
17735 accessing the char table structure.
17736
17737 * chartab.c: New file that implements char table.
17738
17739 * category.c: Include "character.h".
17740 (copy_category_entry): New function.
17741 (copy_category_table): Call map_char_table and copy_category_entry.
17742 (Fmake_category_table): Initialize all top-level slots.
17743 (char_category_set): New function.
17744 (modify_lower_category_set): Delete.
17745 (Fmodify_category_entry): Call char_table_ref_and_range.
17746
17747 * category.h (CATEGORY_SET): Just call char_category_set.
17748
17749 * ccl.c: Include "character.h".
17750 (Qccl, Qcclp): New variables.
17751 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
17752 it's less than 256.
17753 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
17754 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
17755 and DST type.
17756 (ccl_driver): Change types of argument, adjust code accordingly.
17757 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
17758 ccl_driver.
17759 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
17760
17761 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
17762 New members src_multibyte, dst_multibyte, consumed, and produced.
17763 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
17764 (CODING_SPEC_CCL_PROGRAM): New macro.
17765 (ccl_driver): Update prototype.
17766 (Qccl, Qcclp, Fccl_program_p): Extern them.
17767 (CHECK_CCL_PROGRAM): New macro.
17768
17769 * character.c, character.h, chartab.c: New files.
17770
17771 * charset.c: Mostly re-written. Move character and multibyte sequence
17772 handling codes to character.c.
17773
17774 * charset.h: Mostly re-written. Move character and multibyte sequence
17775 handling codes to character.h.
17776
17777 * coding.c, coding.h: Mostly re-written.
17778
17779 * composite.c: Include "character.h" instead of "charset.h".
17780 (CHAR_WIDTH): Move to character.h.
17781 (HASH_KEY, HASH_VALUE): Delete.
17782
17783 * composite.h (enum composition_method): Change order of enumeration
17784 symbols.
17785
17786 * data.c: Include "character.h" instead of "charset.h".
17787 (Faref): Call CHAR_TABLE_REF for a char table.
17788 (Faset): Call CHAR_TABLE_SET for a char table.
17789
17790 * dispextern.h (free_realized_face, check_face_attribytes)
17791 (generate_ascii_font): Extern them.
17792 (free_realized_multibyte_face): Delete extern.
17793
17794 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
17795 table structure.
17796
17797 * editfns.c: Include "character.h" instead of "charset.h".
17798 (Fchar_to_string): Always call CHAR_STRING.
17799
17800 * emacs.c (main): Call init_charset_once, init_charset,
17801 syms_of_chartab, and syms_of_character.
17802
17803 * fileio.c: Include "character.h" instead of "charset.h".
17804 (Finsert_file_contents): Big change for the new code-conversion API.
17805 (choose_write_coding_system, Fwrite_region): Likewise.
17806 (build_annotations_2): Delete.
17807 (e_write): Big change for the new code-conversion API.
17808
17809 * fns.c: Include "character.h" instead of "charset.h".
17810 (copy_sub_char_table): Move to chartab.c.
17811 (Fcopy_sequence): Call copy_char_table for a char table.
17812 (concat): Delete codes calling count_multibyte.
17813 (string_char_to_byte, string_byte_to_char): Adjust for the new
17814 multibyte form.
17815 (internal_equal): Adjust for the change of char table structure.
17816 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
17817 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
17818 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
17819 (char_table_translate, optimize_sub_char_table)
17820 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
17821 chartab.c.
17822 (char_table_ref_and_index): Delete.
17823 (HASH_KEY, HASH_VALUE): Move to lisp.h.
17824 (Fmd5): Call preferred_coding_system instead of accessing
17825 Vcoding_category_list. Adjust for the new code-conversion API.
17826 (syms_of_fns): Move defsubr for char table related functions to
17827 chartab.c.
17828
17829 * fontset.c: Mostly re-written.
17830
17831 * fontset.h (struct font_info): Change type of the member encoding_type.
17832 (enum FONT_SPEC_INDEX): New enum.
17833 (fontset_font_pattern, fs_load_font): Update prototype.
17834 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
17835
17836 * indent.c: Include "character.h" instead of "charset.h".
17837 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
17838
17839 * insdel.c: Include "character.h" instead of "charset.h".
17840 (copy_text): Don't refer to Vnonascii_translation_table.
17841 (insert_from_gap): New function.
17842
17843 * keyboard.c: Include "character.h" instead of "charset.h".
17844 (command_loop_1): Never call direct_output_forward_char before
17845 a non-ASCII character.
17846 (read_char): If Vkeyboard_translate_table is a char table, always
17847 translate a character.
17848
17849 * keymap.c: Include "character.h".
17850 (store_in_keymap): Handle the case that IDX is a cons.
17851 (Fdefine_key): Handle the case that KEY is a cons and the car part
17852 is also a cons (range).
17853 (push_key_description): Adjust for the new character code.
17854 (describe_vector): Call describe_char_table for a char table.
17855 (describe_char_table): New function.
17856
17857 * keymap.h (describe_char_table): Extern it.
17858
17859 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17860 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17861 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17862 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17863 Delete.
17864 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17865 structure.
17866 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17867 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17868 (CHARTAB_SIZE_BITS_3): New macros.
17869 (chartab_size): Extern it.
17870 (struct Lisp_Char_Table): Re-design.
17871 (struct Lisp_Sub_Char_Table): New structure.
17872 (HASH_KEY, HASH_VALUE): Move from fns.c.
17873 (CHARACTERBITS): Define as 22.
17874 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
17875 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
17876 (GC_SUB_CHAR_TABLE_P): New macro.
17877 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
17878 (code_convert_string_norecord): Deleted extern.
17879 (init_character_once, syms_of_character, init_charset)
17880 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
17881
17882 * lread.c: Include "character.h".
17883 (read_multibyte): New arg NBYTES.
17884 (read_escape): Change the meaning of returned *BYTEREP.
17885 (to_multibyte): Delete.
17886 (read1): Adjust the handling of char table and string.
17887
17888 * print.c: Include "character.h" instead of "charset.h".
17889 (print_string): Convert 8-bit raw bytes to octal form by
17890 string_escape_byte8.
17891 (print_object): Adjust for the new multibyte form. Print 8-bit
17892 raw bytes always in octal form. Handle sub char table correctly.
17893
17894 * process.c: Include "character.h" instead of "charset.h".
17895 (read_process_output, send_process): Adjust for the new
17896 code-conversion API.
17897
17898 * puresize.h (BASE_PURESIZE): Increase.
17899
17900 * regex.c: Include "character.h" instead of "charset.h".
17901 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
17902 (regex_compile): Accept a range whose starting and ending
17903 character have different leading bytes.
17904 (analyse_first): Adjust for the above change.
17905
17906 * search.c: Include "character.h" instead of "charset.h".
17907 (search_buffer, boyer_moore): Adjust for the new multibyte form.
17908 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
17909
17910 * syntax.c: Include "character.h" instead of "charset.h".
17911 (syntax_parent_lookup): Delete.
17912 (Fmodify_syntax_entry): Accept a cons as CHAR.
17913 (skip_chars): Adjust for the new multibyte form.
17914 (init_syntax_once): Call char_table_set_range instead of directly
17915 accessing the structure of a char table.
17916
17917 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
17918 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
17919 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
17920 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
17921
17922 * term.c: Include "buffer.h" and "character.h".
17923 (encode_terminal_code, write_glyphs): Adjust for the new
17924 code-conversion API.
17925 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
17926
17927 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
17928
17929 * xdisp.c: Include "character.h".
17930 (get_next_display_element): Adjust for the new multibyte form.
17931 (disp_char_vector): Adjust for the new char table structure.
17932 (decode_mode_spec_coding): Adjust for the new structure of
17933 coding system.
17934 (decode_mode_spec): Adjust for the new code-conversion API.
17935
17936 * xfaces.c: Include "character.h" instead of "charset.h".
17937 (load_face_font): Adjust for the change of choose_face_font and
17938 FS_LOAD_FONT.
17939 (generate_ascii_font): New function.
17940 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17941 (set_font_frame_param): Adjust for the change of choose_face_font.
17942 (free_realized_face): Make it public.
17943 (free_realized_faces_for_fontset): Rename from
17944 free_realized_multibyte_face. Free also faces realized for ASCII.
17945 (choose_face_font): Change arguments. Adjust for the change of
17946 fontset_font_pattern and FS_LOAD_FONT.
17947
17948 * xfns.c: Include "character.h".
17949 (x_encode_text): Adjust for the new code-conversion API.
17950
17951 * xselect.c: Don't include "charset.h".
17952 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17953
17954 * xterm.c: Include "character.h".
17955 (x_encode_char): New argument CHARSET. Change caller.
17956 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17957 Call ENCODE_CHAR instead of SPLIT_CHAR.
17958 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17959 CHAR_WIDTH instead of CHARSET_WIDTH.
17960 (XTread_socket): Adjust for the new code-conversion API.
17961 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17962 (x_load_font): Adjust for the change of struct font.
17963
17964 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17965
17966 * xfaces.c (face_at_buffer_position): Remove unused vars.
17967
17968 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17969
17970 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17971 Fix overflow checking.
17972
17973 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17974
17975 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17976 Cancel previous change.
17977
17978 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17979
17980 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17981 ccl->eight_bit_control. Fix check for buffer overflow.
17982 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17983 (ccl_driver): Initialize extra_bytes to 0.
17984
17985 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17986
17987 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17988 return it ORed with ctrl_modifier.
17989
17990 2008-01-29 Miles Bader <miles@gnu.org>
17991
17992 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17993
17994 2008-01-28 Jason Rumney <jasonr@gnu.org>
17995
17996 * w32.c (stat): Don't double check for networked drive.
17997
17998 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17999
18000 * window.c (run_window_configuration_change_hook): New function.
18001 Code extracted from set_window_buffer. Set the selected frame.
18002 (set_window_buffer): Use it.
18003 * window.h (run_window_configuration_change_hook): Declare.
18004 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18005
18006 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18007
18008 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18009
18010 * Makefile.in: Remove references to unused macros.
18011
18012 2008-01-26 Eli Zaretskii <eliz@gnu.org>
18013
18014 * w32.c (g_b_init_get_sid_sub_authority)
18015 (g_b_init_get_sid_sub_authority_count): New static variables.
18016 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18017 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18018 (init_user_info): Use them to retrieve uid and gid.
18019 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18020 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18021 st_uid and st_gid of the file.
18022
18023 2008-01-26 Jason Rumney <jasonr@gnu.org>
18024
18025 * w32.c (logon_network_drive): New function.
18026 (stat): Use it.
18027
18028 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
18029
18030 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18031 invisible text covered with an ellipsis.
18032
18033 2008-01-25 Richard Stallman <rms@gnu.org>
18034
18035 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18036 jump back to beginning. Move some other initializations after that.
18037 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18038 New variables.
18039 (syms_of_xdisp): Init them.
18040
18041 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18042
18043 * buffer.c (reset_buffer_local_variables):
18044 Implement `permanent-local-hook'.
18045 (Qpermanent_local_hook): New variable.
18046 (syms_of_buffer): Init and staticpro it.
18047
18048 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
18049
18050 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18051
18052 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18053
18054 * fns.c (Fclrhash): Return TABLE.
18055
18056 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18057
18058 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18059 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18060 is set even without positional changes.
18061 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18062
18063 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18064
18065 2008-01-23 Jason Rumney <jasonr@gnu.org>
18066
18067 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18068
18069 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18070 the unicode range available in MULE by locale-coding-system.
18071 Improve dbcs lead byte detection. Set event timestamp and modifiers
18072 earlier.
18073
18074 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18075
18076 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18077 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18078 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18079 when used on child processes.
18080
18081 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
18082
18083 * dbusbind.c (Fdbus_method_return_internal): Rename from
18084 Fdbus_method_return.
18085 (Fdbus_unregister_object): Move to dbus.el.
18086 (Fdbus_call_method, Fdbus_method_return_internal)
18087 (Fdbus_send_signal): Improve debug messages.
18088
18089 2008-01-20 Martin Rudalics <rudalics@gmx.at>
18090
18091 * undo.c (undo_inhibit_record_point): New variable.
18092 (syms_of_undo): Initialize it.
18093 (record_point): Don't record point when undo_inhibit_record_point
18094 is set.
18095
18096 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18097
18098 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18099
18100 * xdisp.c (Qauto_hscroll_mode): New var.
18101 (syms_of_xdisp): Initialize it.
18102 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18103 window's buffer.
18104 (hscroll_windows): Don't check automatic_hscrolling_p here.
18105
18106 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18107 vscroll if we're setting window-buffer to the value it already has.
18108
18109 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18110
18111 * m/intel386.h: Remove references to XENIX.
18112
18113 2008-01-17 Andreas Schwab <schwab@suse.de>
18114
18115 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18116 instead of HAVE_X86_64_LIB64_DIR.
18117 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18118
18119 2008-01-17 Glenn Morris <rgm@gnu.org>
18120
18121 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18122 to HAVE_X86_64_LIB64_DIR.
18123
18124 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18125
18126 * s/irix3-3.h:
18127 * s/irix4-0.h:
18128 * s/386-ix.h:
18129 * s/domain.h:
18130 * s/hpux9-x11r4.h:
18131 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18132
18133 * sysdep.c: Remove code containing references to symbols defined
18134 by unsupported systems.
18135
18136 2008-01-16 Glenn Morris <rgm@gnu.org>
18137
18138 * coding.c (select-safe-coding-system-function): Doc fix.
18139
18140 2008-01-15 Glenn Morris <rgm@gnu.org>
18141
18142 * config.in: Revert 2008-01-13 change: this is a generated file.
18143
18144 2008-01-13 Tom Tromey <tromey@redhat.com>
18145
18146 * lisp.h: Fix typo.
18147
18148 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18149
18150 * m/sequent-ptx.h:
18151 * m/sequent.h:
18152 * s/ptx.h:
18153 * s/ptx4-2.h:
18154 * s/ptx4.h: Remove files for systems no longer supported.
18155
18156 * callproc.c (Fcall_process): Fix previous change.
18157
18158 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18159
18160 * unexsunos4.c: Remove file, system not supported anymore.
18161
18162 * m/mips.h:
18163 * m/intel386.h:
18164 * callproc.c:
18165 * config.in:
18166 * ecrt0.c:
18167 * emacs.c:
18168 * fileio.c:
18169 * frame.c:
18170 * getpagesize.h:
18171 * keyboard.c:
18172 * lread.c:
18173 * process.c:
18174 * puresize.h:
18175 * sysdep.c:
18176 * systty.h:
18177 * syswait.h:
18178 * unexec.c:
18179 * xdisp.c:
18180 * alloc.c: Remove code containing references to symbols defined by
18181 unsupported systems.
18182
18183 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18184
18185 * coding.c (detect_coding_mask): Fix previous change.
18186
18187 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18188
18189 * coding.c (detect_coding_iso2022): New arg
18190 latin_extra_code_state. Allow Latin extra codes only
18191 when *latin_extra_code_state is nonzero.
18192 (detect_coding_mask): If there is a NULL byte, detect the encoding
18193 as UTF-16 or binary. If Latin extra codes exist, detect the
18194 encoding as ISO-2022 only when there's no other proper encoding is
18195 found.
18196
18197 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18198
18199 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18200 #ifdef MAC_OS.
18201
18202 2008-01-08 Richard Stallman <rms@gnu.org>
18203
18204 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18205
18206 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
18207
18208 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18209 menu bar in parentheses.
18210
18211 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18212
18213 * m/7300.h:
18214 * m/acorn.h:
18215 * m/alliant-2800.h:
18216 * m/alliant.h:
18217 * m/alliant1.h:
18218 * m/alliant4.h:
18219 * m/altos.h:
18220 * m/amdahl.h:
18221 * m/apollo.h:
18222 * m/att3b.h:
18223 * m/aviion-intel.h:
18224 * m/aviion.h:
18225 * m/celerity.h:
18226 * m/clipper.h:
18227 * m/cnvrgnt.h:
18228 * m/convex.h:
18229 * m/cydra5.h:
18230 * m/delta88k.h:
18231 * m/dpx2.h:
18232 * m/dual.h:
18233 * m/elxsi.h:
18234 * m/f301.h:
18235 * m/gould-np1.h:
18236 * m/gould.h:
18237 * m/i860.h:
18238 * m/ibmps2-aix.h:
18239 * m/ibmrt-aix.h:
18240 * m/ibmrt.h:
18241 * m/irist.h:
18242 * m/is386.h:
18243 * m/isi-ov.h:
18244 * m/mega68.h:
18245 * m/mg1.h:
18246 * m/news-r6.h:
18247 * m/news-risc.h:
18248 * m/news.h:
18249 * m/nh3000.h:
18250 * m/nh4000.h:
18251 * m/ns16000.h:
18252 * m/ns32000.h:
18253 * m/nu.h:
18254 * m/orion.h:
18255 * m/orion105.h:
18256 * m/paragon.h:
18257 * m/pfa50.h:
18258 * m/plexus.h:
18259 * m/pyramid.h:
18260 * m/pyrmips.h:
18261 * m/sh3el.h:
18262 * m/sps7.h:
18263 * m/sr2k.h:
18264 * m/stride.h:
18265 * m/sun1.h:
18266 * m/sun2.h:
18267 * m/sun3-68881.h:
18268 * m/sun3-fpa.h:
18269 * m/sun3-soft.h:
18270 * m/sun3.h:
18271 * m/sun386.h:
18272 * m/symmetry.h:
18273 * m/tad68k.h:
18274 * m/tahoe.h:
18275 * m/targon31.h:
18276 * m/tek4300.h:
18277 * m/tekxd88.h:
18278 * m/tower32.h:
18279 * m/tower32v3.h:
18280 * m/ustation.h:
18281 * m/wicat.h:
18282 * m/xps100.h:
18283 * s/cxux.h:
18284 * s/cxux7.h:
18285 * s/dgux.h:
18286 * s/dgux4.h:
18287 * s/dgux5-4-3.h:
18288 * s/dgux5-4r2.h:
18289 * s/esix.h:
18290 * s/esix5r4.h:
18291 * s/hiuxmpp.h:
18292 * s/hiuxwe2.h:
18293 * s/iris3-5.h:
18294 * s/iris3-6.h:
18295 * s/isc2-2.h:
18296 * s/isc3-0.h:
18297 * s/isc4-0.h:
18298 * s/isc4-1.h:
18299 * s/newsos5.h:
18300 * s/newsos6.h:
18301 * s/osf1.h:
18302 * s/osf5-0.h:
18303 * s/riscix1-1.h:
18304 * s/riscix12.h:
18305 * s/sco4.h:
18306 * s/sco5.h:
18307 * s/sunos4-0.h:
18308 * s/sunos4-1.h:
18309 * s/sunos413.h:
18310 * s/sunos4shr.h:
18311 * s/umax.h:
18312 * s/unipl5-2.h:
18313 * s/xenix.h:
18314 * cxux-crt0.s:
18315 * unexapollo.c:
18316 * unexconvex.c:
18317 * unexenix.c:
18318 * unexsni.c: Remove files for systems no longer supported.
18319
18320 * m/intel386.h: Remove references to unsupported systems.
18321
18322 * w32.c (get_emacs_configuration): Remove reference to i860.
18323
18324 * sysdep.c: Remove dead code.
18325
18326 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18327
18328 * s/rtu.h:
18329 * m/masscomp.h: Remove files. Platform is obsolete.
18330
18331 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
18332
18333 * dbusbind.c (Fdbus_method_return): New function.
18334 (xd_read_message): Add the serial number to the event.
18335 (Fdbus_register_method): Activate the function.
18336
18337 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18338
18339 * keyboard.c (read_key_sequence): Fix typo.
18340
18341 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
18342
18343 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18344 (xd_signature, xd_append_arg): Handle element type detection for
18345 empty arrays.
18346 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18347 SDATA () calls; this must be solved more general.
18348 (Fdbus_register_signal): Use SBYTES instead of strlen.
18349
18350 2008-01-03 Magnus Henoch <magnus@zemdatav>
18351
18352 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18353 unsigned int for byte values (necessary for big-endian platform).
18354 (Fdbus_call_method): Handle the case of no returned arguments.
18355
18356 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18357
18358 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18359
18360 2007-12-31 Magnus Henoch <mange@freemail.hu>
18361
18362 * dbusbind.c (xd_signature): Signature of variant is just "v".
18363
18364 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
18365
18366 * dbusbind.c: Fix several errors and compiler warnings.
18367 Reported by Tom Tromey <tromey@redhat.com>.
18368 (XD_ERROR, XD_DEBUG_MESSAGE)
18369 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18370 (xd_append_arg): Part for basic D-Bus types rewritten.
18371 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18372 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18373 appropriate.
18374 (xd_read_message): Return Qnil. Don't signal an error; it is not
18375 useful during event reading.
18376 (Fdbus_register_signal): Signal an error if the check for
18377 FUNCTIONP fails.
18378 (Fdbus_register_method): New function. The implementation is not
18379 complete, the call of the function signals an error therefore.
18380 (Fdbus_unregister_object): New function, renamed from
18381 Fdbus_unregister_signal. The initial check signals an error, if
18382 the object is not well formed.
18383
18384 2007-12-30 Richard Stallman <rms@gnu.org>
18385
18386 * textprop.c (get_char_property_and_overlay):
18387 Signal error if POSITION is out of range in a buffer.
18388
18389 2007-12-29 Martin Rudalics <rudalics@gmx.at>
18390
18391 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18392 because the original parameters are in pure storage now.
18393
18394 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18395
18396 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18397
18398 2007-12-22 Eli Zaretskii <eliz@gnu.org>
18399
18400 * callint.c (syms_of_callint) <command-history>: Add reference to
18401 history-length in the doc string.
18402
18403 2007-12-17 Jason Rumney <jasonr@gnu.org>
18404
18405 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18406 before passing as wParam.
18407
18408 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
18409
18410 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18411 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18412 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18413 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18414 as number.
18415 (Fdbus_call_method): Fix docstring.
18416
18417 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
18418
18419 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18420 New macros.
18421 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18422 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18423 Simplify.
18424 (xd_signature): New function.
18425 (xd_append_arg): Compute also signatures. Major rewrite.
18426 (xd_retrieve_arg): Make debug messages friendly.
18427 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18428 Check for signatures of arguments.
18429
18430 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
18431
18432 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18433 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18434 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18435 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18436 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18437 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18438 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18439 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18440 (xd_retrieve_value): Remove. Functionality included in ...
18441 (xd_append_arg): New function.
18442 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18443
18444 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
18445
18446 * dbusbind.c (top): Include <stdio.h>.
18447 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18448 dbus_message_new_method_call and dbus_message_new_signal.
18449 (Fdbus_register_signal): Rename unique_name to uname.
18450 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18451 non-existing unique name. Fix typos in matching rule. Return an
18452 object which is useful in Fdbus_unregister_signal.
18453 (Fdbus_unregister_signal): Reimplementation, in order to remove
18454 only the corresponding entry.
18455 (Vdbus_registered_functions_table): Change the order of entries.
18456 Apply these changes in xd_read_message and Fdbus_register_signal.
18457
18458 2007-12-16 Andreas Schwab <schwab@suse.de>
18459
18460 * fileio.c (Finsert_file_contents): Fix overflow check to not
18461 depend on undefined integer overflow.
18462
18463 2007-12-14 Jason Rumney <jasonr@gnu.org>
18464
18465 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18466 for characters above 127.
18467
18468 2007-12-13 Jason Rumney <jasonr@gnu.org>
18469
18470 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18471 before dereferencing array.
18472 (lookup_vk_code): Remove zero comparison.
18473
18474 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
18475
18476 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18477 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18478 Use `unsigned int' instead of `uint'.
18479 (xd_read_message, Fdbus_register_signal): Split expressions into
18480 multiple lines before operators "&&" and "||", according to the
18481 GNU Coding Standards.
18482
18483 2007-12-14 Eli Zaretskii <eliz@gnu.org>
18484
18485 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18486
18487 2007-12-12 Juri Linkov <juri@jurta.org>
18488
18489 * buffer.c (Frename_buffer): In interactive spec replace
18490 `read-buffer' with `read-string' that uses `buffer-name-history'
18491 as history, and the current buffer's name as default.
18492
18493 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18494
18495 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18496 manipulating the backtrace manually.
18497 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18498 (struct backtrace, backtrace_list): Remove.
18499 (command_loop_1): Remove dead var `no_direct'.
18500
18501 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18502 preserve non-built-in buffer-local variables.
18503 (Fkill_all_local_variables): Don't re-create&re-set permanent
18504 buffer-local variables.
18505
18506 2007-12-09 Juri Linkov <juri@jurta.org>
18507
18508 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18509 Lisp code that uses `read-buffer' with current buffer as default.
18510
18511 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
18512
18513 * dbusbind.c (xd_read_message): Generate an event for every
18514 registered handler. There might be several handlers registered
18515 for the same signal.
18516 (Fdbus_register_signal): Don't overwrite a registration for the
18517 same signal. Add a new registration if handlers are different.
18518 (Vdbus_registered_functions_table): Rework doc string.
18519
18520 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
18521
18522 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18523 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18524 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18525 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
18526 Unify argument lists.
18527 (xd_read_message, Fdbus_register_signal): Reorder and extend event
18528 arguments and hash table keys. Use unique name for service.
18529 (Fdbus_unregister_signal): Remove checks.
18530 (Vdbus_registered_functions_table): Fix doc string.
18531
18532 2007-12-05 Magnus Henoch <mange@freemail.hu>
18533
18534 * process.c (make_process): Initialize pty_flag to 0.
18535
18536 2007-12-05 Jason Rumney <jasonr@gnu.org>
18537
18538 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
18539 specified XBMs.
18540
18541 2007-12-05 Richard Stallman <rms@gnu.org>
18542
18543 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
18544
18545 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18546
18547 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
18548 New variable.
18549 (mac_try_close_socket) [MAC_OSX]: New function.
18550 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
18551 Update cfsockets_for_select. Replace invalid CFRunLoop source.
18552
18553 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
18554 Use mac_try_close_socket.
18555
18556 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18557
18558 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
18559 reloc_base.
18560 (copy_dysymtab): Compute relocation base here.
18561 (rebase_reloc_address) [__ppc64__]: New function.
18562 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
18563 changed.
18564
18565 2007-12-05 Jason Rumney <jasonr@gnu.org>
18566
18567 * w32proc.c (sys_spawnve): Quote args with wildcards.
18568
18569 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18570
18571 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
18572 __objc_* sections.
18573 (unrelocate) [_LP64]: Set relocation base to address of data segment.
18574
18575 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
18576
18577 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
18578 Move check for Vdbus_registered_functions_table to
18579 xd_read_queued_messages.
18580 (xd_read_queued_messages): Protect xd_read_message calls by
18581 internal_condition_case_1.
18582
18583 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
18584
18585 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
18586 Qdbus_system_bus and Qdbus_session_bus, respectively.
18587 (Vdbus_intern_symbols): Remove.
18588 (Vdbus_registered_functions_table): New hash table.
18589 (XD_SYMBOL_INTERN_SYMBOL): Remove.
18590 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
18591 Rewrite in order to manage registered functions by hash table
18592 Vdbus_registered_functions_table.
18593
18594 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
18595
18596 * xterm.c: Update URL to Window Manager Specification in comment.
18597
18598 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
18599
18600 * config.in (HAVE_DBUS): Add.
18601
18602 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
18603 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
18604 (obj): Add $(DBUS_OBJ).
18605 (LIBES): Add $(DBUS_LIBS).
18606 (dbusbind.o): New target.
18607
18608 * dbusbind.c: New file.
18609
18610 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
18611
18612 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
18613 (Qdbus_event): New Lisp symbol.
18614 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
18615 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
18616 (keys_of_keyboard): Define dbus-event.
18617
18618 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
18619
18620 2007-12-01 Richard Stallman <rms@gnu.org>
18621
18622 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
18623
18624 2007-11-30 Jason Rumney <jasonr@gnu.org>
18625
18626 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
18627 (w32con_reset_terminal_modes): Clear screen buffer.
18628 (w32_face_attributes): Don't use color indexes that are out of range.
18629 Only reverse the default colors.
18630
18631 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
18632 WINDOWSNT.
18633
18634 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
18635
18636 2007-11-29 Jason Rumney <jasonr@gnu.org>
18637
18638 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
18639 (w32_face_attributes): Use Vtty_defined_color_alist to determine
18640 if the terminal colors are initialized.
18641 (unspecified_fg, unspecified_bg): Remove unused declarations.
18642
18643 2007-11-29 Andreas Schwab <schwab@suse.de>
18644
18645 * keyboard.c (apply_modifiers): Fix typo.
18646
18647 2007-11-29 Richard Stallman <rms@gnu.org>
18648
18649 * keymap.c (Fcurrent_local_map): Doc fix.
18650
18651 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
18652
18653 * s/gnu-kfreebsd.h: New file.
18654
18655 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
18656
18657 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
18658 Don't cast redundantly.
18659
18660 * keyboard.c (KEY_TO_CHAR): New macro.
18661 (parse_modifiers, apply_modifiers): Accept integer arguments.
18662 (read_key_sequence): Use them to unify the "shift->unshift" mapping
18663 for chars and symbol keys.
18664 After doing such remapping, apply function-key-map again.
18665
18666 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
18667
18668 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
18669 compiled anymore.
18670
18671 2007-11-26 Andreas Schwab <schwab@suse.de>
18672
18673 * process.c (list_processes_1): Fix indentation level of the
18674 command column.
18675
18676 2007-11-23 Andreas Schwab <schwab@suse.de>
18677
18678 * editfns.c (Fformat): Handle %c specially since it requires the
18679 argument to be of type int.
18680
18681 2007-11-23 Markus Triska <markus.triska@gmx.at>
18682
18683 * emacs.c (main): Call init_editfns before init_process, since
18684 init_process sets Vprocess_connection_type depending on OS release.
18685
18686 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
18687
18688 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
18689 (find_symbol_value): Use do_symval_forwarding.
18690
18691 * data.c (set_internal): Set the value in the `cons-cell' (for
18692 Buffer_Local_values) not only for frame-local variables.
18693
18694 2007-11-22 Andreas Schwab <schwab@suse.de>
18695
18696 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
18697 values to sprintf.
18698 * keymap.c (Fsingle_key_description): Likewise.
18699 * print.c (print_object): Likewise.
18700
18701 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
18702
18703 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
18704 file for image is nil.
18705
18706 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
18707
18708 * term.c: Include stdarg.h.
18709 (fatal): Implement using varargs.
18710 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
18711
18712 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18713
18714 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
18715 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
18716 Update call to buffer_slot_type_mismatch.
18717 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
18718 (buffer_slot_type_mismatch): Update.
18719 * buffer.c (buffer_local_types): Remove.
18720 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
18721 (defvar_per_buffer): Set the type in the buffer_objfwd.
18722
18723 2007-11-21 Jason Rumney <jasonr@gnu.org>
18724
18725 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
18726 CreateFileMapping returns NULL on failure.
18727
18728 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18729
18730 * search.c (Fset_match_data): Remove the `evaporate' feature.
18731 (unwind_set_match_data): Don't use the `evaporate' feature.
18732
18733 2007-11-21 Jason Rumney <jasonr@gnu.org>
18734
18735 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
18736
18737 * w32console.c (w32con_write_glyphs): Remove unused variables.
18738
18739 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
18740
18741 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
18742
18743 * s/darwin.h (MULTI_KBOARD): Remove.
18744
18745 * macfns.c (x_create_tip_frame, Fx_create_frame)
18746 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
18747
18748 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
18749
18750 * buffer.c (Fbuffer_local_value): Remove redundant test.
18751 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
18752 than in `current-buffer' to match the comment.
18753 Do the swap using swap_in_global_binding.
18754
18755 * data.c (store_symval_forwarding, set_internal):
18756 * eval.c (specbind): Remove dead code.
18757
18758 * coding.c (detect_coding, Fupdate_coding_systems_internal):
18759 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
18760 Since we do not want to see internal Lisp_*fwd objects here.
18761
18762 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
18763
18764 * sysdep.c (init_system_name): Use getaddrinfo if available.
18765
18766 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
18767 (x_scroll_bar_note_movement): start, end, with, height in struct
18768 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
18769
18770 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
18771
18772 * puresize.h (BASE_PURESIZE): Increase to 1190000.
18773
18774 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
18775
18776 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
18777 This undoes Richard's change of 14-Oct-2002.
18778
18779 * alloc.c (allocate_other_vector):
18780 * lisp.h (allocate_other_vector): Remove.
18781
18782 * window.c (struct save_window_data): Move non-lisp data to the end
18783 and make it `int' rather than Lisp_Object.
18784 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
18785 Done wrap/unwrap integer values.
18786 (Fset_window_configuration, compare_window_configurations):
18787 Update use of fields to their new types.
18788
18789 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
18790 Turn integer fields into `int'. Merge x_window_low and x_window_high.
18791 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
18792 (SET_SCROLL_BAR_X_WINDOW): Remove.
18793 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
18794 Access the new x_window field directly.
18795 * xterm.c (x_scroll_bar_create): Use a pseudovector.
18796 Don't wrap/unwrap integers into Lisp_Objects.
18797 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
18798 (x_scroll_bar_report_motion):
18799 Don't wrap/unwrap integers into Lisp_Objects.
18800 (x_term_init): Use SDATA.
18801 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
18802 (x_scroll_bar_set_handle, x_scroll_bar_remove)
18803 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
18804 (x_scroll_bar_report_motion, x_scroll_bar_clear):
18805 * xfns.c (x_set_background_color):
18806 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
18807 Access the new x_window field directly.
18808
18809 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
18810 (allocate_pseudovector): Make non-static.
18811
18812 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
18813 (allocate_pseudovector): Declare.
18814 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
18815
18816 2007-11-15 Andreas Schwab <schwab@suse.de>
18817
18818 * editfns.c (Fformat): Correctly format EMACS_INT values.
18819 Also take precision into account when formatting an integer.
18820
18821 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
18822
18823 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
18824
18825 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
18826 (syms_of_keyboard): Defsubr it.
18827
18828 * data.c (swap_in_global_binding): Fix longstanding bug where
18829 store_symval_forwarding was not called with the right second argument,
18830 thus causing objfwd-ing from being dropped.
18831
18832 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
18833
18834 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
18835 (Fx_display_pixel_height, Fx_display_planes)
18836 (Fx_display_color_cells, Fx_server_max_request_size)
18837 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18838 (Fx_display_visual_class, Fx_display_save_under):
18839 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
18840 (Fx_display_pixel_height, Fx_display_planes)
18841 (Fx_display_color_cells, Fx_server_max_request_size)
18842 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18843 (Fx_display_mm_height, Fx_display_mm_width)
18844 (Fx_display_backing_store, Fx_display_visual_class)
18845 (Fw32_select_font, Fx_display_save_under):
18846 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
18847 (Fx_display_pixel_height, Fx_display_planes)
18848 (Fx_display_color_cells, Fx_server_max_request_size)
18849 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18850 (Fx_display_save_under): Fix typos in docstrings.
18851
18852 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
18853
18854 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18855 corresponding to deleted entries; they are an implementation detail.
18856 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18857 Remove variables.
18858 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18859 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18860 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18861 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18862 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18863 (Fw32_define_rgb_color, Fw32_load_color_file)
18864 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18865 Fix typos in docstrings.
18866 (Fx_server_version): Reflow docstring.
18867 (Fw32_shell_execute): Doc fixes.
18868
18869 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
18870
18871 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18872 if w32_parse_hot_key returned nil.
18873
18874 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
18875
18876 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
18877
18878 2007-11-09 Jason Rumney <jasonr@gnu.org>
18879
18880 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
18881
18882 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
18883
18884 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
18885 Remove W32_SCROLL_BAR_CLICK_EVENT.
18886
18887 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
18888 Add MULTIMEDIA_KEY_EVENT.
18889
18890 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
18891 (lispy_multimedia_keys) [WINDOWSNT]: New array.
18892 (make_lispy_event) [WINDOWSNT]: Use it to translate
18893 MULTIMEDIA_KEY_EVENT.
18894
18895 * w32term.h (WM_APPCOMMAND): Define if not already.
18896 (GET_APPCOMMAND_LPARAM): Likewise.
18897
18898 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
18899 WM_APPCOMMAND.
18900
18901 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
18902 (syms_of_w32fns): Export and initialize it.
18903 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
18904
18905 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
18906
18907 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
18908 twice.
18909
18910 * xdisp.c (handle_face_prop): Fix last change.
18911
18912 2007-11-09 Richard Stallman <rms@gnu.org>
18913
18914 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
18915 not just for after-strings and before-strings.
18916 Call face_for_overlay_string and pass the overlay to it.
18917 (handle_display_prop): Determine whether property came from an overlay.
18918 Pass OVERLAY arg to handle_single_display_spec.
18919 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
18920 (load_overlay_strings): Fill in it->string_overlays.
18921 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
18922
18923 * xfaces.c (face_for_overlay_string): Function renamed from
18924 face_at_buffer_position_no_overlays, and add arg OVERLAY.
18925
18926 * dispextern.h (struct it): New elt string_overlays.
18927 New elt from_overlay, also in stack.
18928 Rearrange a few elements.
18929 (face_for_overlay_string): Decl renamed from
18930 face_at_buffer_position_no_overlays, and add argument.
18931
18932 2007-11-09 Richard Stallman <rms@gnu.org>
18933
18934 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18935 to get the base face for an overlay string.
18936
18937 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18938
18939 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18940
18941 * xdisp.c (handle_stop): Move some code out of loop.
18942
18943 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18944
18945 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18946 Fix conversion from Lisp object to ATSUFontID.
18947
18948 2007-11-09 Jason Rumney <jasonr@gnu.org>
18949
18950 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18951
18952 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18953
18954 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18955 Don't assume regions are aligned to page boundary.
18956 (print_load_command_name): Add LC_UUID if defined.
18957
18958 2007-11-09 Richard Stallman <rms@gnu.org>
18959
18960 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18961
18962 2007-11-07 Jason Rumney <jasonr@gnu.org>
18963
18964 * s/windows95.h: Remove.
18965
18966 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18967
18968 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18969 abort with a message on unhandled store_type values.
18970
18971 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18972
18973 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18974 Remove HAVE_X11R5 and HAVE_X11R4.
18975
18976 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18977
18978 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18979
18980 2007-11-01 Johan Bockgård <bojohan@gnu.org>
18981
18982 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18983 Don't set s->stippled_p here, since it has already been set by
18984 x_set_glyph_string_gc from x_draw_glyph_string.
18985
18986 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18987
18988 * sunfns.c: Remove file.
18989
18990 * m/sun386.h:
18991 * m/sun2.h:
18992 * m/sparc.h: Remove Sun windows code.
18993
18994 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18995
18996 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18997 (init_keyboard): Set current_kboard's window-system to nil.
18998 (tty_read_avail_input): Typo.
18999 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19000
19001 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19002
19003 * s/usg5-4.h:
19004 * s/usg5-3.h:
19005 * s/ptx.h:
19006 * m/is386.h:
19007 * m/ibmps2-aix.h:
19008 * Makefile.in: Remove all mentions of X10.
19009
19010 * dispnew.c (syms_of_display): Don't mention version 10.
19011
19012 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
19013
19014 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19015 ($(BLD)/abbrev.$(O)): Remove.
19016
19017 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19018
19019 Rewrite abbrev.c in Elisp.
19020 * image.c (Qcount): Don't declare as extern.
19021 (syms_of_image): Initialize and staticpro `Qcount'.
19022 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19023 * emacs.c (main): Don't call syms_of_abbrev.
19024 * Makefile.in (obj): Remove abbrev.o.
19025 (abbrev.o): Remove.
19026 * abbrev.c: Remove.
19027
19028 2007-10-26 Martin Rudalics <rudalics@gmx.at>
19029
19030 * window.c (window_min_size_2): Don't count header-line.
19031
19032 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19033
19034 * frame.h (struct frame): Move all bit fields after the first bit
19035 field to take advantage of the available space. Group all the
19036 chars together to reduce wasted space due to padding.
19037
19038 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
19039
19040 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19041
19042 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19043 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19044 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19045 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19046 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19047 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19048 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19049 (last_marked, mark_object_loop_halt): Make static.
19050
19051 * frame.c (syms_of_frame) <delete-frame-functions>:
19052 Fix typo in docstring.
19053
19054 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
19055
19056 * w32.c (init_environment): Fix tiny memory leak.
19057 (w32_get_resource): Remove unused variable `ok'.
19058
19059 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19060
19061 Make `window-system' into a keyboard-local variable (rather than
19062 frame-local as done originally by multi-tty).
19063
19064 * keyboard.h (struct kboard): Add Vwindow_system.
19065 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19066 (mark_kboards): Mark Vwindow_system.
19067
19068 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19069 (init_display): Don't set the obsolete `window-system' frame-param.
19070
19071 * xterm.c (x_term_init):
19072 * w32term.c (w32_create_terminal):
19073 * term.c (init_tty): Set Vwindow_system.
19074 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19075 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19076
19077 * xfns.c (Fx_create_frame, x_create_tip_frame):
19078 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19079 * macfns.c (Fx_create_frame):
19080 Don't set the obsolete `window-system' frame-param.
19081
19082 * frame.h (Qwindow_system): Remove.
19083 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19084 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19085
19086 2007-10-24 Richard Stallman <rms@gnu.org>
19087
19088 * frame.c (x_figure_window_size): For fullscreen case,
19089 set USPosition | PPosition without clobbering rest of window_prompting.
19090
19091 * keyboard.c (Fcurrent_idle_time): Doc fix.
19092
19093 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19094
19095 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19096
19097 * process.c (unwind_request_sigio): Only define if __ultrix__.
19098
19099 * callproc.c (child_setup): Remove spurious *.
19100
19101 * lisp.h (Fget_text_property): Declare.
19102 (have_menus_p): Declare it here rather than in sys-dep header files.
19103 * macterm.h (have_menus_p):
19104 * msdos.h (have_menus_p):
19105 * xterm.h (have_menus_p): Remove.
19106
19107 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19108 (Fmake_variable_frame_local): Just check the variable's const-ness
19109 rather than checking nil or t.
19110
19111 2007-10-22 Jason Rumney <jasonr@gnu.org>
19112
19113 * w32fns.c: Include math.h.
19114 (w32_abort): Declaration moved to nt/config.nt.
19115
19116 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19117 (abort): Redefinition moved to nt/config.nt.
19118
19119 * m/windowsnt.h: Remove.
19120
19121 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
19122
19123 * emacs.c (Fdump_emacs): Fix typo in message.
19124 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19125 <installation-directory>: Reflow docstring.
19126
19127 2007-10-22 Juri Linkov <juri@jurta.org>
19128
19129 * minibuf.c: Allow minibuffer default to be a list of default values.
19130 With empty input use the first element of this list as returned default.
19131 (string_to_object)
19132 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19133 (read_minibuf): If defalt is cons, set histstring to its car.
19134 (Fread_string): If default_value is cons, set val to its car.
19135 (Fread_buffer): If def is cons, use its car.
19136 (Fcompleting_read): If defalt is cons, set val to its car.
19137
19138 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
19139
19140 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19141
19142 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
19143
19144 * doc.c (Fdocumentation): Check for advice in all cases.
19145
19146 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
19147
19148 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19149
19150 2007-10-19 Richard Stallman <rms@gnu.org>
19151
19152 * doc.c (Fdocumentation): Check for and handle an advised function.
19153
19154 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
19155
19156 * process.c (Fset_process_filter): Doc fix.
19157
19158 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19159
19160 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19161 which caused key-translation-map to applied repeatedly (thus breaking
19162 double-mode).
19163
19164 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19165
19166 * xselect.c (x_own_selection, x_handle_selection_clear)
19167 (x_clear_frame_selections):
19168 * w32menu.c (list_of_panes, list_of_items):
19169 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19170 * textprop.c (validate_plist, interval_has_all_properties)
19171 (interval_has_some_properties, interval_has_some_properties_list)
19172 (add_properties, text_property_list):
19173 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19174 * minibuf.c (Fassoc_string):
19175 * macselect.c (x_own_selection, x_clear_frame_selections)
19176 (Fx_disown_selection_internal):
19177 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19178 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19179
19180 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
19181
19182 * process.c: Link to libs for calling res_init() if available.
19183 (Fmake_network_process): Call res_init() before getaddrinfo or
19184 gethostbyname, if possible.
19185
19186 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19187
19188 * lread.c (read1): Set pvectype for char_tables.
19189
19190 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19191 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19192 Add type checks.
19193 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19194
19195 * alloc.c (free_misc): Use XMISCTYPE.
19196 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19197
19198 2007-10-17 Glenn Morris <rgm@gnu.org>
19199
19200 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19201 (syms_of_minibuf): Add Qcompletion_ignore_case.
19202 * dired.c (Qcompletion_ignore_case): Change to external.
19203 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19204 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19205 (Fread_file_name): Use it rather than intern'ing.
19206
19207 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19208 (Fread_coding_system): Ignore case of user input.
19209
19210 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19211
19212 * xdisp.c (handle_display_prop): Ignore display specs after
19213 replacing one when string text is being replaced.
19214 (handle_single_display_spec): Pretend as if characters with display
19215 property haven't been consumed only when buffer text is being replaced.
19216
19217 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19218
19219 * xfns.c (Fx_create_frame, Fx_display_list):
19220 * window.c (window_fixed_size_p, enlarge_window)
19221 (shrink_window_lowest_first):
19222 * macterm.c (init_font_name_table):
19223 * macfns.c (Fx_create_frame, Fx_display_list):
19224 * lread.c (close_load_descs):
19225 * keyboard.c (read_char_x_menu_prompt):
19226 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19227 * coding.c (code_convert_region_unwind): Test the type of an object
19228 rather than just !NILP before extracting data from it.
19229
19230 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19231
19232 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19233 (XMISCANY): New macro.
19234 (XMISCTYPE): Use it.
19235 (struct Lisp_Misc_Any): New type.
19236 (union Lisp_Misc): Use it.
19237 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19238 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19239 (find_symbol_value, set_internal, default_value, Fset_default)
19240 (Fmake_variable_buffer_local, Fmake_local_variable)
19241 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19242 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19243 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19244 * alloc.c (allocate_buffer): Set the size and tag.
19245 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19246 Use XMISCANY.
19247 (die): Follow the GNU convention for error messages.
19248 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19249 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19250 tag any more.
19251 (set_buffer_internal_1):
19252 * frame.c (store_frame_param):
19253 * eval.c (specbind):
19254 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19255
19256 * doc.c (Fsnarf_documentation): Simplify.
19257
19258 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
19259
19260 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19261 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19262
19263 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19264
19265 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19266
19267 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
19268
19269 * eval.c (do_autoload): Don't save autoloads.
19270
19271 * data.c (Ffset): Save autoload of the function being set.
19272
19273 2007-10-07 John Paul Wallington <jpw@pobox.com>
19274
19275 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19276 parameter before setting up faces.
19277
19278 2007-10-13 Eli Zaretskii <eliz@gnu.org>
19279
19280 * ccl.c (Fregister_code_conversion_map):
19281 * keyboard.c (append_tool_bar_item): Reformat last change.
19282
19283 * lisp.h (eabs): Rename from `abs'. All callers changed.
19284
19285 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19286
19287 * buffer.c (add_overlay_mod_hooklist):
19288 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19289 * fontset.c (make_fontset):
19290 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19291 (append_tool_bar_item):
19292 * macmenu.c (grow_menu_items):
19293 * w32menu.c (grow_menu_items):
19294 * xmenu.c (grow_menu_items): Use larger_vector.
19295
19296 2007-10-13 Eli Zaretskii <eliz@gnu.org>
19297
19298 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19299 selected frame'' on MSDOS).
19300
19301 2007-10-12 Martin Rudalics <rudalics@gmx.at>
19302
19303 * frame.c (Qexplicit_name): New variable.
19304 (x_report_frame_params): Report it in parameter alist.
19305 (syms_of_frame): Intern and staticpro it.
19306
19307 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19308
19309 * macfns.c (x_create_tip_frame): Set terminal for frame.
19310
19311 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19312
19313 * frame.c (Qenvironment): Remove.
19314 (syms_of_frame) <Qenvironment>: Don't initialize.
19315 (Fdelete_frame): Don't treat the `environment' param specially.
19316 * frame.h (Qenvironment): Don't declare.
19317 * callproc.c (set_initial_environment): Don't set unused frame param.
19318
19319 * frame.c (Fframe_with_environment): Remove.
19320 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19321
19322 * lisp.h (Fframe_with_environment): Don't declare.
19323
19324 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
19325
19326 * indent.c (indent_tabs_mode, last_known_column)
19327 (last_known_column_modified): Make static.
19328 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19329
19330 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19331
19332 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19333
19334 2007-10-09 Jason Rumney <jasonr@gnu.org>
19335
19336 * w32term.c (x_set_window_size): Disable code that attempts to tell
19337 Lisp code about a size change before it actually happens.
19338
19339 2007-10-09 Richard Stallman <rms@gnu.org>
19340
19341 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19342 return HANDLED_RETURN.
19343
19344 2007-10-08 Martin Rudalics <rudalics@gmx.at>
19345
19346 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19347 when there's an unread command event.
19348
19349 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19350 window autoselection act appropriately when leaving selected frame.
19351 (syms_of_frame): Initialize focus_follows_mouse.
19352 * frame.h (focus_follows_mouse): Extern it.
19353 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19354 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19355 * msdos.c (dos_rawgetc): Likewise.
19356 * w32term.c (w32_read_socket): Likewise.
19357 * xterm.c (handle_one_xevent): Likewise.
19358 * xdisp.c (syms_of_xdisp): In doc-string of
19359 mouse-autoselect-window mention focus-follows-mouse.
19360
19361 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19362
19363 * macterm.c (mac_load_query_font): Fix missing return value.
19364 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19365 Add BLOCK_INPUT.
19366
19367 2007-10-08 Richard Stallman <rms@gnu.org>
19368
19369 * xdisp.c (get_window_cursor_type): Implement documented behavior
19370 for cursor-in-non-selected-windows = t.
19371
19372 2007-10-08 Jason Rumney <jasonr@gnu.org>
19373
19374 * w32.c (w32_get_resource): Always close registry keys.
19375
19376 2007-10-08 Jason Rumney <jasonr@gnu.org>
19377
19378 * makefile.w32-in (LIBS): Add COMCTL32.
19379
19380 * w32fns.c (globals_of_w32fns): Init common controls.
19381
19382 2007-10-08 Richard Stallman <rms@gnu.org>
19383
19384 * image.c (our_memory_buffer): Rename from omfib_buffer.
19385
19386 2007-10-08 Richard Stallman <rms@gnu.org>
19387
19388 * buffer.c (Foverlays_at): Doc fix.
19389
19390 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19391
19392 * fns.c (Fplist_put): Preserve uneven tail data.
19393
19394 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19395
19396 * termhooks.h (enum event_kind): Remove trailing comma.
19397
19398 * frame.h (enum): Remove trailing comma.
19399
19400 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19401
19402 * w32proc.c (delete_child): Don't terminate threads of zombies.
19403
19404 2007-10-08 Martin Rudalics <rudalics@gmx.at>
19405
19406 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19407
19408 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19409 last-repeatable-command.
19410 (init_kboard): Initialize Vlast_repeatable_command.
19411 (command_loop_1): Set it to real_this_command unless that was
19412 bound to an input event.
19413 (mark_kboards): Mark it.
19414
19415 2007-10-08 Richard Stallman <rms@gnu.org>
19416
19417 * eval.c (condition-case): Doc fix.
19418
19419 2007-10-08 Masatake YAMATO <jet@gyve.org>
19420
19421 * xfaces.c (tty_supports_face_attributes_p): Fix code
19422 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19423 was copied and not edited.
19424
19425 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19426
19427 Add new `input-decode-map' keymap and use it for terminal
19428 escape sequences.
19429 * keyboard.h (struct kboard): Add Vinput_decode_map.
19430 Remove Vlocal_key_translation_map.
19431 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19432 (init_kboard): Init input-decode-map.
19433 Replace local-key-translation-map back with key-translation-map.
19434 (syms_of_keyboard): Declare input-decode-map.
19435 Remove local-key-translation-map. Update docstrings.
19436 (mark_kboards): Mark Vinput_decode_map.
19437 Don't mark Vlocal_key_translation_map.
19438 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19439 Replace local-key-translation-map back with key-translation-map.
19440 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19441 Bind in input-decode-map rather than function-key-map.
19442
19443 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19444 This was made redundant by the previous introduction of XSETPVECTYPE.
19445
19446 2007-10-09 Richard Stallman <rms@gnu.org>
19447
19448 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19449
19450 2007-09-29 Richard Stallman <rms@gnu.org>
19451
19452 * eval.c (internal_condition_case_2, internal_condition_case_1)
19453 (internal_condition_case): Reenable abort if x_catching_errors ()
19454 to see if that really happens and why.
19455
19456 2007-10-06 Andreas Schwab <schwab@suse.de>
19457
19458 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19459
19460 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
19461
19462 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19463
19464 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19465
19466 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19467
19468 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19469
19470 * window.h (struct window):
19471 * window.c (struct save_window_data, struct saved_window):
19472 * termhooks.h (struct terminal):
19473 * process.h (struct Lisp_Process):
19474 * frame.h (struct frame):
19475 * buffer.h (struct buffer):
19476 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19477 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19478 The size field of (pseudo)vectors is now unsigned.
19479 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19480
19481 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19482 Turn `count' into an integer.
19483
19484 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19485 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19486 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19487 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19488 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19489
19490 * alloc.c (allocate_pseudovector): New fun.
19491 (ALLOCATE_PSEUDOVECTOR): New macro.
19492 (allocate_window, allocate_terminal, allocate_frame)
19493 (allocate_process): Use it.
19494 (mark_vectorlike): New function.
19495 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19496 (mark_terminals): Use it.
19497 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19498 (Fmake_byte_code): Use XSETPVECTYPE.
19499
19500 * frame.c (Fframe_parameters): Minor simplification.
19501
19502 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19503
19504 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19505
19506 * buffer.c (Fget_buffer_create, init_buffer_once):
19507 * lread.c (defsubr):
19508 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19509
19510 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19511 defined differently in the m/*.h files.
19512 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19513 (XSETPVECTYPE): New macro.
19514 (XSETPSEUDOVECTOR): Use it.
19515
19516 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19517 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19518
19519 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19520 * lread.c (defvar_per_buffer):
19521 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19522
19523 * window.c (candidate_window_p): Only consider as visible frames that
19524 are on the same terminal.
19525
19526 * m/ibms390x.h (MARKBIT): Remove unused macro.
19527
19528 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
19529
19530 * lread.c (Fload): Fix typo in docstring.
19531
19532 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
19533
19534 * floatfns.c (Fexpt): Manually check for overflows, so that a power
19535 of a non-zero value can't yield zero.
19536
19537 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
19538
19539 * term.c (term_clear_mouse_face, term_mouse_highlight)
19540 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
19541
19542 * print.c (safe_debug_print): Use XHASH.
19543
19544 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
19545 Lisp elements such as tags.
19546 (XHASH): New macro.
19547 (EQ): Use it.
19548 (SREF, SSET, STRING_COPYIN): Use SDATA.
19549 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
19550
19551 * alloc.c (mark_terminal): Remove left-over declaration.
19552 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
19553 (allocate_vectorlike): Remove type argument. Adjust callers.
19554 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
19555 Only handle the one remaining MEM_TYPE_VECTORLIKE.
19556
19557 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
19558 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
19559 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
19560 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
19561 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
19562 Use them.
19563
19564 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
19565 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
19566 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
19567
19568 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
19569
19570 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
19571 loaded by default.
19572
19573 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
19574
19575 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
19576 on this tty.
19577 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
19578
19579 * term.c (mouse_face_window): Rename from Qmouse_face_window.
19580 Update all users.
19581 (handle_one_term_event): Use Gpm_DrawPointer.
19582 (Fgpm_mouse_start): Rename from Fterm_open_connection.
19583 Signal errors instead of returning nil. Always return nil.
19584 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
19585 Make it a noop if gpm-mouse was not activated.
19586 (syms_of_term): Update names.
19587
19588 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
19589
19590 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
19591 (init_sys_modes): Check that gpm_tty is the current tty.
19592
19593 * alloc.c (allocate_terminal): Set the vector size to only count the
19594 lisp fields. Initialize those to nil.
19595 (mark_object): Don't treat terminals specially.
19596 (mark_terminal): Remove.
19597 (mark_terminals): Use mark_object instead.
19598
19599 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
19600 the GC to the beginning.
19601
19602 * indent.h:
19603 * indent.c: Use EMACS_INT for ints coming from Elisp data.
19604
19605 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
19606
19607 2007-09-25 Jason Rumney <jasonr@gnu.org>
19608
19609 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
19610
19611 * w32console.c (create_w32cons_output): Remove.
19612
19613 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
19614
19615 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
19616 (reset_sys_modes): Use reset_terminal_modes_hook.
19617
19618 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
19619
19620 * eval.c (do_autoload): Don't output any message.
19621
19622 2007-09-24 Juri Linkov <juri@jurta.org>
19623
19624 * emacs.c (standard_args): Change priority of "--no-splash"
19625 from 40 to 3. Add "--no-desktop" with the same priority.
19626
19627 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
19628
19629 * alloc.c (gc_sweep): Check cons cell mark bits word by word
19630 and optimize the case where they are all 1.
19631
19632 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
19633
19634 * lisp.h (abs): Define if not defined.
19635 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
19636 Don't define `abs', since it's defined in lisp.h.
19637
19638 2007-09-22 Eli Zaretskii <eliz@gnu.org>
19639
19640 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
19641 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
19642 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
19643 (init_tty): Use DEV_TTY instead of "/dev/tty".
19644 [WINDOWSNT]: No need to protect from NAME arg being null.
19645
19646 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
19647
19648 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
19649 up the tty state.
19650
19651 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19652
19653 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
19654 (gpm_tty): Change its type.
19655 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
19656 (gpm_tty): Change its type and initialize it.
19657 (Fterm_open_connection): Check the frame is indeed a tty.
19658 Use the new gpm_tty.
19659 (Fterm_close_connection): Use the new gpm_tty.
19660 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
19661 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
19662
19663 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
19664
19665 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
19666 underline_color, to draw strike-through.
19667
19668 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19669
19670 * lisp.h (allocate_terminal): Declare.
19671
19672 * window.c (candidate_window_p): Consider frames that are being placed
19673 by the user as somewhere between visible and iconified.
19674 (window_loop): Prefer windows on the current frame.
19675 (Fselect_window): Move the use of select-frame to the beginning so we
19676 can just delegate all the work (it'll call us back anyway).
19677
19678 * frame.c (Qdisplay_environment_variable):
19679 * frame.h (Qdisplay_environment_variable): Delete.
19680
19681 * .gdbinit (xbacktrace): Print the arg's address rather than the value
19682 of the first arg, since that value may be a union.
19683
19684 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
19685 parameter rather than Qdisplay_environment_variable. If all else
19686 fails, look for DISPLAY in initial-environment.
19687
19688 2007-09-21 Glenn Morris <rgm@gnu.org>
19689
19690 * Makefile.in (emacstool): Remove target.
19691 (lisp, shortlisp): Remove termdev.elc.
19692
19693 2007-09-21 Markus Triska <markus.triska@gmx.at>
19694
19695 * xterm.c (x_delete_display): Compile session management conditionally.
19696
19697 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
19698
19699 * callproc.c (getenv_internal_1): New function.
19700 (getenv_internal): Use it.
19701 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
19702
19703 * terminal.c (get_terminal): Don't accept ints to represent terminals.
19704 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
19705 (Fset_terminal_parameter): Work with dead terminals as well.
19706 (Fmodify_terminal_parameters): Remove.
19707
19708 * terminal.c (get_terminal): Handle terminals.
19709 Make sure the terminal returned is live.
19710 (create_terminal): Use allocate_terminal.
19711 (mark_terminals): Move to alloc.c.
19712 (delete_terminal): Use terminal->name as liveness status.
19713 NULL out fields after freeing their contents.
19714 Don't deallocate the object.
19715 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
19716 rather than an int.
19717 (Fterminal_live_p): Accept non-integer arguments.
19718 (Fterminal_list): Return terminal objects rather than an ints.
19719
19720 * alloc.c (enum mem_type): New member for `terminal' objects.
19721 (allocate_terminal): New function.
19722 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
19723 Handle terminals.
19724 (mark_terminal): New fun.
19725 (mark_terminals): Move from terminal.c.
19726
19727 * term.c (get_tty_terminal): Don't treat output_initial specially.
19728 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
19729 (delete_tty): Use terminal->name as liveness status.
19730
19731 * termhooks.h (struct terminal): Make it into a pseudovector.
19732 Remove `deleted' replaced by checking `name's nullness.
19733
19734 * print.c (print_object): Handle terminals.
19735
19736 * lisp.h (enum pvec_type): New `terminal' pseudovector.
19737 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
19738
19739 * frame.c (make_terminal_frame):
19740 * keyboard.c (tty_read_avail_input):
19741 * w32term.c (x_delete_terminal):
19742 * xfns.c (Fx_create_frame, x_create_tip_frame):
19743 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
19744
19745 2007-09-20 Glenn Morris <rgm@gnu.org>
19746
19747 * process.c (Fmake_network_process): Doc fix.
19748
19749 2007-09-19 Jason Rumney <jasonr@gnu.org>
19750
19751 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
19752
19753 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
19754
19755 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
19756 Fix a C warning regarding variable constness.
19757
19758 * xterm.c (handle_one_xevent): Fix a C warning.
19759
19760 2007-09-18 Jason Rumney <jasonr@gnu.org>
19761
19762 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
19763
19764 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
19765
19766 * gtkutil.c (gdpy_def): New variable.
19767 (xg_initialize): Initialize gdpy_def.
19768 (xg_display_close): If no other display exists, set gdpy_def to a
19769 new connection.
19770
19771 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
19772
19773 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
19774 when we have no file name for the icon.
19775 (xg_tool_bar_expose_callback): Remove.
19776 (xg_create_tool_bar): Don't connect expose signal to
19777 xg_tool_bar_expose_callback.
19778 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
19779
19780 2007-09-16 Andreas Schwab <schwab@suse.de>
19781
19782 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
19783 values instead of zapping them.
19784
19785 2007-09-14 Glenn Morris <rgm@gnu.org>
19786
19787 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
19788 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
19789 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
19790 scope and rename to omfib_buffer for clarity.
19791 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
19792
19793 2007-09-14 Kenichi Handa <handa@m17n.org>
19794
19795 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
19796
19797 2007-09-13 Jason Rumney <jasonr@gnu.org>
19798
19799 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
19800
19801 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
19802
19803 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
19804 (mac_term_init): Call here instead, passing rif.
19805
19806 2007-09-13 Glenn Morris <rgm@gnu.org>
19807
19808 * s/hpux.h: No longer define `static' as nothing.
19809
19810 2007-09-13 Johan Bockgård <bojohan@gnu.org>
19811
19812 * callint.c (Fcall_interactively): Remove unused var `fun'.
19813
19814 2007-09-12 Romain Francoise <romain@orebokech.com>
19815
19816 * window.c (prefer_window_split_horizontally, display_buffer):
19817 Revert 2007-09-08 change.
19818
19819 2007-09-12 Glenn Morris <rgm@gnu.org>
19820
19821 * alloca.c: Remove file.
19822 * Makefile.in (alloca): Do not undef.
19823 (allocaobj, alloca.o): Remove.
19824 (otherobj): Remove allocaobj.
19825 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
19826 * regex.c (C_ALLOCA): Remove all references and code that was only
19827 used when this was defined.
19828 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
19829 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
19830 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
19831
19832 * Makefile.in (SOURCES, unlock, relock): Delete.
19833
19834 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
19835 (menu_grab_callback): All uses changed.
19836
19837 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
19838 (x_reply_selection_request): All uses changed.
19839
19840 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19841
19842 * lread.c (load_warn_old_style_backquotes): Change message to look
19843 better when it appears in the middle of byte-compiler messages.
19844
19845 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19846
19847 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19848
19849 * xterm.c (x_create_terminal): Add comment.
19850
19851 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19852
19853 2007-09-10 Richard Stallman <rms@gnu.org>
19854
19855 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19856
19857 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19858
19859 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19860 (DEFUN): Document `intspec', use it instead of `prompt'.
19861
19862 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19863
19864 * data.c (Finteractive_form): If the interactive specification starts
19865 with a `(', use it as a Lisp form.
19866
19867 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19868 name and file modes.
19869
19870 * callint.c (Fcall_interactively): Comment fixes.
19871
19872 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19873
19874 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
19875 and compiled functions.
19876
19877 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
19878
19879 * window.c (prefer_window_split_horizontally): New variable.
19880 (display_buffer): Consider splitting window horizontally depending
19881 on prefer_window_split_horizontally.
19882
19883 2007-09-08 Eli Zaretskii <eliz@gnu.org>
19884
19885 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
19886
19887 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19888
19889 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
19890
19891 * frame.c (x_set_frame_parameters): Check number is positive before
19892 using XFASTINT.
19893
19894 * window.c (freeze_window_start): Don't presume selected_window holds
19895 a window object.
19896 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
19897
19898 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
19899
19900 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
19901
19902 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19903
19904 * window.c (Vsplit_window_preferred_function): New var.
19905 (Fdisplay_buffer): Use it.
19906 (syms_of_window): Export, and initialize it.
19907
19908 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
19909
19910 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
19911
19912 2007-09-06 Glenn Morris <rgm@gnu.org>
19913
19914 * gtkutil.c (menu_grab_callback) <cnt>:
19915 * xselect.c (x_reply_selection_request) <cnt>: Move static
19916 variable to file scope.
19917
19918 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
19919
19920 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
19921 consistent values of selected_frame and selected_window.
19922
19923 2007-09-04 Jason Rumney <jasonr@gnu.org>
19924
19925 * w32console.c (initialize_w32_display): Zero unused hooks.
19926
19927 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19928
19929 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
19930 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
19931
19932 2007-09-04 Jason Rumney <jasonr@gnu.org>
19933
19934 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19935 in w32console.c. Set up input. Remove XXX comments that have been
19936 confirmed as correct.
19937
19938 * s/ms-w32.h (MULTI_KBOARD): Define.
19939
19940 * w32console.c (one_and_only_w32cons): Remove.
19941 (initialize_w32_display): Take terminal argument.
19942
19943 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19944 initialize_w32_display.
19945 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19946
19947 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19948
19949 * keyboard.c (discard_mouse_events): Discard it.
19950 (make_lispy_event): Translate it to a lisp event.
19951 (lispy_wheel_names): Add wheel-left and right events.
19952 (syms_of_keyboard): Enlarge wheel_syms.
19953
19954 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19955 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19956
19957 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19958
19959 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19960 from WM_MOUSEHWHEEL.
19961 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19962
19963 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19964 terminal.
19965
19966 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19967 keyboard for the terminal.
19968
19969 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19970
19971 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19972 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19973 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19974 and resume-tty-function to resume-tty-hook.
19975 (Fsuspend_tty, Fresume_tty): Use new names.
19976
19977 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19978
19979 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19980 if it starts with "n:".
19981
19982 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19983
19984 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19985
19986 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19987
19988 * frame.h:
19989 * frame.c (Qterm_environment_variable): Remove.
19990 (syms_of_frame): Don't init and staticpro it.
19991
19992 * callproc.c (getenv_internal): Remove special case for $TERM.
19993
19994 * callproc.c (Vinitial_environment): New variable.
19995 (set_initial_environment): Initialize it.
19996 (syms_of_callproc): Declare it.
19997 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19998 TERM under which a process runs is never related to the TERM in which
19999 Emacs is running.
20000
20001 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20002
20003 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20004 * s/darwin.h: ... do it here.
20005
20006 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20007
20008 * lisp.h (set_initial_environment): Rename from set_global_environment.
20009
20010 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20011 removed by mistake on the multi-tty branch.
20012
20013 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20014 (Fmodify_frame_parameters): Return a value.
20015
20016 * image.c (png_load): Comment-out var only used in commented-out code.
20017
20018 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20019 before passing it to mark_object.
20020
20021 * xfaces.c (internal_resolve_face_name): Return a value.
20022 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20023
20024 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20025 (x_icon): Comment-out var only used in commented-out code.
20026
20027 2007-08-29 Romain Francoise <romain@orebokech.com>
20028
20029 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20030 QUIT hasn't been provided.
20031
20032 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20033
20034 * callproc.c (child_setup, getenv_internal): Use the
20035 display-environment-variable and term-environment-variable frame params.
20036 (set_initial_environment): Initialise Vprocess_environment.
20037
20038 * config.in: Disable multi-keyboard support on a mac.
20039
20040 * frame.c (Qterm_environment_variable)
20041 (Qdisplay_environment_variable): New variables.
20042 (syms_of_frame): Intern and staticpro them.
20043 (Fmake_terminal_frame): Disable output method test.
20044
20045 * frame.h: Declare them here.
20046
20047 * macfns.c (x_set_mouse_color): Get rif from the frame.
20048 (x_set_tool_bar_lines): Don't use updating_frame.
20049 (mac_window): Add 2 new parameters for consistency with other systems.
20050 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20051 frame parameters following what is done in X11 and w32. Don't use
20052 FRAME_MAC_DISPLAY_INFO.
20053 (Fx_open_connection, start_hourglass): Remove window-system check.
20054 (x_create_tip_frame): Get the keyboard from the terminal.
20055
20056 * macmenu.c: Reorder includes.
20057 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20058
20059 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20060 terminal parameter.
20061 (x_clear_frame): Add a frame parameter.
20062 (note_mouse_movement): Get rif from the frame.
20063 (mac_term_init): Initialize the terminal.
20064 (mac_initialize): Make static and move terminal initialization ...
20065 (mac_create_terminal): ... to this new function.
20066
20067 * macterm.h (struct mac_display_info): Add terminal.
20068 (mac_initialize): Delete declaration.
20069
20070 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20071
20072 * sysdep.c: Comment out text after #endif.
20073
20074 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20075 is defined. Better initialize ttys in windows. Use terminal
20076 specific mouse_position_hook.
20077
20078 * termhooks.h (union display_info): Add mac_display_info.
20079
20080 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20081 Set the default minibuffer frame, window_system and the rest of the
20082 frame parameters following what is done in X11.
20083
20084 * w32term.c (w32_initialize): Make static.
20085
20086 * xselect.c (x_handle_selection_clear): Only access
20087 terminal->kboard when MULTI_KBOARD is defined.
20088
20089 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20090 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20091
20092 2007-08-29 Jason Rumney <jasonr@gnu.org>
20093
20094 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20095 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20096
20097 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20098 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20099
20100 * keyboard.c (restore_kboard_configuration): Only define when
20101 MULTI_KBOARD defined.
20102
20103 * makefile.w32-in: Update dependancies from Makefile.in.
20104 (OBJ1): Add terminal.$(O)
20105
20106 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20107 Don't define function body.
20108 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20109
20110 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20111
20112 * w32.c (request_sigio, unrequest_sigio): Remove.
20113
20114 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20115 (w32con_clear_frame, w32con_clear_end_of_line)
20116 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20117 (w32con_delete_glyphs, w32con_set_terminal_window)
20118 (scroll_line, w32_sys_ring_bell): Add frame arg.
20119 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20120 Add terminal arg.
20121 (PICK_FRAME): Remove.
20122 (w32con_write_glyphs): Use frame specific terminal coding.
20123 (one_and_only_w32cons): New global variable.
20124 (initialize_w32_display): Use it for storing hooks.
20125 (create_w32cons_output): New function.
20126
20127 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20128 arg a frame.
20129
20130 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20131 Set window_system.
20132 (x_set_tool_bar_lines): Don't use updating_frame.
20133 (Fx_create_frame): Set terminal and ref count.
20134 (Fx_open_connection): Remove window-system check.
20135
20136 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20137
20138 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20139 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20140 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20141 Add frame arg.
20142 (x_delete_terminal, w32_create_terminal): New functions.
20143 (w32_term_init): Create a terminal.
20144 (w32_initialize): Move terminal specific initialization to
20145 w32_create_terminal.
20146
20147 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20148 (w32_clear_rect, w32_clear_area): Use background from frame.
20149 (w32_display_info): Add terminal.
20150 (w32_sys_ring_bell, x_delete_display): Declare here.
20151
20152 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20153
20154 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20155
20156 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20157
20158 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20159 Fix get_named_tty calls for the controlling tty.
20160
20161 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20162
20163 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
20164
20165 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20166
20167 * term.c (tty_insert_glyphs): Add missing first parameter.
20168
20169 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20170
20171 * buffer.c (Fbuffer_list, Fbury_buffer):
20172 Take frame->buried_buffer_list into account.
20173
20174 * cm.c (current_tty): New variable, for cmputc().
20175 (cmputc): Use it.
20176 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20177 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20178 (cmgoto): Add tty parameter. Pass it on to calccost().
20179 Use emacs_tputs() instead of tputs().
20180
20181 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20182 tputs().
20183 (current_tty): New variable, for cmputc().
20184 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20185
20186 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20187 (internal_condition_case, internal_condition_case_1)
20188 (internal_condition_case_2): Don't abort when x_catching_errors.
20189
20190 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20191 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20192 prevent crashes caused by bogus longjmps in read_char.
20193
20194 * keymap.h (Fset_keymap_parent): Add EXFUN.
20195
20196 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20197 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20198 Remove redundant definition.
20199
20200 * macfns.c (x_set_mouse_color, x_make_gc):
20201 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20202
20203 * w32term.c (x_free_frame_resources):
20204 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20205 (w32_initialize): Use the accessor macros for terminal characteristics.
20206
20207 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20208 Use the accessor macros for terminal characteristics.
20209 * msdos.c (internal_terminal_init): Use the accessor macros for
20210 terminal characteristics.
20211 (ScreenVisualBell, internal_terminal_init):
20212 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20213
20214 * termopts.h (no_redraw_on_reenter): Declare.
20215
20216 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20217 (mark_terminals, mark_ttys): Declare.
20218 (Fgarbage_collect): Call them.
20219 (mark_object): Mark buried_buffer_list.
20220
20221 * prefix-args.c: Include stdlib.h for exit.
20222
20223 * syssignal.h: Add comment.
20224
20225 * indent.c: Include stdio.h.
20226
20227 * window.h (Vinitial_window_system): Declare.
20228 (Vwindow_system): Delete declaration.
20229
20230 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20231
20232 * image.c (lookup_image): Don't initialize `c' until the xasserts
20233 have been run.
20234
20235 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20236 FRAME_FOREGROUND_PIXEL.
20237
20238 * print.c (print_preprocess): Don't lose print_depth levels while
20239 iterating.
20240
20241 * widget.c (update_from_various_frame_slots):
20242 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20243
20244 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20245 frames.
20246 (window_internal_height): Remove bogus make_number call.
20247 (init_window_once): Call make_terminal_frame with two zero parameters.
20248
20249 * fileio.c (Fread_file_name): Update comment.
20250
20251 * callint.c (Fcall_interactively):
20252 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20253 Make sure it is correctly unwound.
20254
20255 * xsmfns.c (x_session_close): New function.
20256
20257 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20258 Delete declarations.
20259
20260 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20261 (x_output): Remove background_pixel and foreground_pixel fields.
20262 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20263 (x_delete_device, x_session_close): Declare.
20264
20265 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20266 (read_filtered_event): Call `read_char' with a local
20267 `wrong_kboard_jmpbuf'.
20268
20269 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20270 Don't call single_kboard_state. Use FRAME_RIF.
20271
20272 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20273 systems.
20274
20275 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20276 (Fframe_with_environment, Fset_input_meta_mode)
20277 (Fset_quit_char): EXFUN.
20278 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20279 (init_sys_modes, reset_sys_modes): Update prototypes.
20280 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20281
20282 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20283 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20284 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20285 Delete declarations.
20286 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20287 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20288 New declarations.
20289
20290 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20291 already does that during init_display(). Call syms_of_keymap
20292 before syms_of_keyboard. Call `syms_of_terminal'.
20293 Call set_initial_environment, not set_process_environment.
20294 (shut_down_emacs): Call reset_all_sys_modes() instead of
20295 reset_sys_modes().
20296
20297 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20298 (internal_resolve_face_name, resolve_face_name_error): New functions.
20299 (resolve_face_name): Protect against loops and errors thrown by Fget.
20300 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20301 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20302
20303 * scroll.c: Replace CURTTY() with local variables throughout the
20304 file (where applicable).
20305 (calculate_scrolling, calculate_direct_scrolling)
20306 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20307 characteristics.
20308
20309 * keymap.c (Vfunction_key_map): Remove.
20310 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20311 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20312 (Vkey_translation_map): Remove.
20313 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20314 (Fdescribe_buffer_bindings)
20315 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20316 Update for terminal-local key-translation-map.
20317
20318 * Makefile.in (callproc.o): Update dependencies.
20319 (lisp, shortlisp): Add termdev.elc.
20320 (obj): Add terminal.o.
20321 (terminal.o): Add dependencies.
20322 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20323 (data.o, fns.o): Add termhooks.h dependency.
20324 (SOME_MACHINE_LISP): Add dnd.elc.
20325 (minibuf.o): Fix typo.
20326 Update dependencies.
20327
20328 * data.c (do_symval_forwarding, store_symval_forwarding)
20329 (find_symbol_value): Use the selected frame's keyboard, not
20330 current_kboard.
20331
20332 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20333 Vwindow_system.
20334
20335 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20336 Fmenu_bar_open.
20337 (syms_of_xmenu): Update defsubr.
20338 (mouse_position_for_popup, Fx_popup_menu)
20339 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20340 (set_frame_menubar, free_frame_menubar)
20341 (create_and_show_popup_menu, xmenu_show)
20342 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20343 an X frame.
20344
20345 * xselect.c (x_own_selection): Abort if not an X frame.
20346 (some_frame_on_display): Check if it is an X frame.
20347 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20348
20349 * coding.c: Include frame.h and termhooks.h.
20350 (terminal_coding, keyboard_coding): Delete.
20351 (Fset_terminal_coding_system_internal)
20352 (Fset_keyboard_coding_system_internal)
20353 (Fkeyboard_coding_system)
20354 (Fterminal_coding_system): Add a terminal parameter.
20355 Get terminal_coding from the terminal.
20356 (init_coding_once): Don't call setup_coding_system here.
20357
20358 * dispextern.h (set_scroll_region, turn_off_insert)
20359 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20360 (tty_clear_end_of_line, tty_setup_colors)
20361 (delete_tty, updating_frame)
20362 (produce_special_glyphs, produce_glyphs, write_glyphs)
20363 (insert_glyphs): Remove.
20364 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20365 (tty_turn_off_highlight, get_tty_size): Add declaration.
20366 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20367
20368 * frame.h (enum output_method): Add output_initial.
20369 (struct x_output): Delete.
20370 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20371 Access foreground_pixel and background_pixel directly from the frame.
20372 (tty_display): Delete.
20373 (struct frame): Add buried_buffer_list, foreground_pixel,
20374 background_pixel and terminal. Delete kboard.
20375 (union output_data): Add tty.
20376 (FRAME_KBOARD): Get the kboard from the terminal.
20377 (FRAME_INITIAL_P): New macro.
20378 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20379 (Qterm_environment_variable, Qdisplay_environment_variable)
20380 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20381 New declarations.
20382
20383 * termchar.h (tty_output, tty_display_info): New structures.
20384 (tty_list): Declare.
20385 (FRAME_TTY, CURTTY): New macros.
20386 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20387 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20388 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20389 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20390
20391 * callproc.c: Include frame.h and termhooks.h, for terminal
20392 parameters.
20393 (add_env): New function.
20394 (child_setup): Use it.
20395 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20396 (getenv_internal): Fix get_terminal_param call.
20397 (Fgetenv_internal, egetenv): Update doc.
20398 (syms_of_callproc): Initialize Vprocess_environment to nil.
20399 Register and initialize them. Remove obsolete defvars. Update doc
20400 strings.
20401 (child_setup): Handle Vlocal_environment_variables.
20402 (getenv_internal): Add terminal parameter.
20403 Handle Vlocal_environment_variables.
20404 (Fgetenv_internal): Add terminal parameter.
20405 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20406 environment in a frame (not terminal) parameter. Update doc strings.
20407 (set_initial_environment): Rename from set_global_environment.
20408 Store Emacs environment in initial frame parameter.
20409
20410 * xdisp.c (redisplay_internal): Update references to
20411 `previous_terminal_frame'.
20412 (display_mode_line, Fformat_mode_line): Replace calls to
20413 `push_frame_kboard' with `push_kboard'.
20414 (get_glyph_string_clip_rects): Add extra parentheses and
20415 braces to prevent compiler warnings.
20416 (calc_pixel_width_or_height): Add xassert to check that the
20417 frame is alive. Don't call `lookup_image' on a termcap frame.
20418 (message2_nolog, message3_nolog, redisplay_internal)
20419 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20420 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20421 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20422 (Fx_display_pixel_width, Fx_display_pixel_height)
20423 (Fx_display_planes, Fx_display_color_cells)
20424 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20425 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20426 (Fx_display_backing_store, Fx_display_visual_class)
20427 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20428 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20429
20430 * xfns.c (x_set_foreground_color x_set_background_color)
20431 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20432 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20433 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20434 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20435 terminal that is being deleted.
20436 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20437 frame parameter, and make sure it overrides any user-supplied setting.
20438 (Fx_close_connection, Fx_synchronize): Unify argument names with
20439 the rest of the DEFUNs.
20440
20441 * dispnew.c (Fsend_string_to_terminal): Update call to
20442 `get_tty_terminal'.
20443 (Fredraw_frame, Fsend_string_to_terminal)
20444 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20445 FRAME_TERMCAP_P and FRAME_TTY.
20446 (window_change_signal): Don't believe width/height values that are
20447 impossibly small.
20448 (Vinitial_window_system): Rename from Vwindow_system.
20449 (termscript, Wcm, rif): Delete.
20450
20451 * termhooks.h (struct terminal): New struct containing the
20452 previously global text display hooks and new members NAME,
20453 DELETED and PARAM_ALIST.
20454 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20455 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20456 (FRAME_RIF): New macros.
20457 (get_terminal_param, get_device): New declarations.
20458 (termscript): Delete declaration.
20459
20460 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20461 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20462 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20463 FRAME_FOREGROUND_PIXEL.
20464 (x_fully_uncatch_errors): Disable definition.
20465 (x_scroll_bar_expose): Fix reference to foreground pixel.
20466 (XTread_socket): Disable loop on all X displays.
20467 (x_delete_terminal): Don't set terminal->deleted and let
20468 delete_terminal delete the frames on the terminal.
20469 (x_delete_display): Doc update to reflect changes in
20470 delete_terminal.
20471 (x_display_info) <terminal>: Move member earlier in the struct.
20472 (deleting_tty): Remove old variable.
20473 (Fsuspend_tty): Call clear_tty_hooks.
20474 (Fresume_tty, init_tty): Call set_tty_hooks.
20475 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20476 errors on X frames.
20477 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20478 (handle_one_xevent): Initialize `f' to NULL.
20479 (x_delete_terminal, x_create_terminal): New functions.
20480 (XTset_terminal_modes, XTreset_terminal_modes)
20481 (XTread_socket, x_connection_closed, x_term_init)
20482 (x_term_init, x_delete_display): Add terminal parameter.
20483 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20484 X connections.
20485
20486 * frame.c: Include termchar.h.
20487 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20488 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20489 (Qdisplay_environment_variable): New vars.
20490 (Fframep): Deal with output_initial.
20491 (Fframe-live-p): Doc fix.
20492 (Fwindow-system): New function.
20493 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20494 (make_terminal_frame): Don't create frames on a terminal that is
20495 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20496 (store_frame_param): Check for found_for_frame before calling XFRAME.
20497 (Fmake_terminal_frame): Handle NULL tty names correctly.
20498 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20499 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20500 frames to refer to a deleted frame in their 'environment parameter.
20501 (Fframe_with_environment): New function.
20502 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20503 (get_future_frame_param): New function.
20504 (Fmake_terminal_frame): Use it.
20505 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20506
20507 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20508 * sysdep.c (reset_sys_modes): Update for renames.
20509
20510 * keyboard.c (tty_read_avail_input): New function.
20511 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20512 (syms_of_keyboard): Defsubr them.
20513 (Fset_input_meta_mode, Fset_quit_char): New functions.
20514 (Fset_input_mode): Split to above functions.
20515 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20516 parameter. Use it in call to `read_char'.
20517 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20518 Set wrong_kboard_jmpbuf correctly in recursive calls.
20519 Use current_kboard to access Vkeyboard_translate_table.
20520 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20521 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20522 Update longjmp invocations. Remember the original current_kboard,
20523 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20524 changes it. Comment out unnecessary calls to
20525 `record_single_kboard_state' and `any_kboard_state'.
20526 Update recursive calls.
20527 (wrong_kboard_jmpbuf): Remove global variable.
20528 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
20529 Handle deleted interrupted_kboards correctly; that is a legal
20530 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
20531 and read_char calls. Abort if interrupted_kboard died in read_char.
20532 (any_kboard_state, single_kboard_state)
20533 (push_frame_kboard): Remove function.
20534 (pop_kboard): Switch out of single_kboard mode if the kboard has
20535 been deleted. Remove unused variable. Help debugging by not
20536 changing current_kboard unnecessarily. Set current_kboard to the
20537 kboard of the selected frame when the stored kboard object has
20538 been deleted before pop_kboard.
20539 (temporarily_switch_to_single_kboard): Change first parameter to a
20540 frame pointer. Throw an error when caller wants to change kboards
20541 while in single_kboard mode. Don't push_kboard if we weren't in
20542 single kboard state. Don't pop_kboard if we popped into any
20543 kboard state.
20544 (restore_kboard_configuration): Abort if pop_kboard changed the
20545 kboard in single_kboard mode. Call pop_kboard only after setting
20546 up single_kboard mode.
20547 (Frecursive_edit): Switch to single_kboard mode only in nested
20548 command loops.
20549 (cmd_error, command_loop, command_loop_1, timer_check):
20550 Comment out unnecessary call to `any_kboard_state' and
20551 `record_single_kboard_state'.
20552 (delete_kboard): Exit single_kboard mode if we have just deleted
20553 that kboard. Use FRAME_KBOARD.
20554 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
20555 `fatal_error_signal'.
20556 (record_single_kboard_state): Don't push_kboard if we weren't in
20557 single kboard state. Don't pop_kboard if we popped into any
20558 kboard state.
20559 (push_frame_kboard): Rename to push_kboard.
20560 (kbd_buffer_get_event): Use FRAME_TERMINAL.
20561 (read_avail_input): Read input from all terminals.
20562 (mark_kboards): Also mark Vkeyboard_translate_table.
20563 (kbd_buffer_store_event_hold): Simplify condition.
20564 (read_key_sequence): Reinitialize fkey and keytran at each replay.
20565 (Vkeyboard_translate_table): Move to struct kboard.
20566 (init_kboard): Initialize Vkeyboard_translate_table.
20567 (syms_of_keyboard): Use DEFVAR_KBOARD to define
20568 Vkeyboard_translate_table. Update doc strings. Update docs of
20569 local-function-key-map and function-key-map.
20570
20571 * terminal.c: New file.
20572
20573 * term.c: Include errno.h.
20574 (Vring_bell_function, device_list, initial_device)
20575 (next_device_id, ring_bell, update_begin, update_end)
20576 (set_terminal_window, cursor_to, raw_cursor_to)
20577 (clear_to_end, clear_frame, clear_end_of_line)
20578 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
20579 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
20580 (syms_of_term): Move their initialization to terminal.c.
20581 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
20582 (Ftty_display_color_cells)
20583 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
20584 (clear_tty_hooks, set_tty_hooks)
20585 (init_tty, maybe_fatal): New functions.
20586 (Ftty_type): Return nil if terminal is not on a tty instead of
20587 throwing an error. Doc update.
20588 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
20589 Doc update. Initialize new subrs and variables.
20590 (delete_tty): Use terminal->deleted.
20591 (tty_set_terminal_modes): Rename from set_terminal_modes.
20592 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
20593 (set_scroll_region): Rename to `tty_set_scroll_region'.
20594 (turn_on_insert): Rename to `tty_turn_on_insert'.
20595 (turn_off_insert): Rename to `tty_turn_off_insert'.
20596 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
20597 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
20598 (toggle_highligh): Rename to `tty_toggle_highlight'.
20599 (background_highlight): Rename to `tty_background_highlight'.
20600 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
20601 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
20602 (tty_set_scroll_region, tty_background_highlight)
20603 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
20604 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
20605 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
20606 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
20607 Add static modifier.
20608 (tty_reset_terminal_modes, tty_set_terminal_window)
20609 (tty_set_scroll_region, tty_background_highlight)
20610 (tty_highlight_if_desired, tty_cursor_to)
20611 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
20612 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
20613 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
20614 renames.
20615
20616 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
20617
20618 * keyboard.c: Qrtl is new.
20619 (parse_tool_bar_item): Handle :rtl keyword.
20620 (syms_of_keyboard): Intern :rtl keyword.
20621
20622 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
20623
20624 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
20625 so no Lisp code is executed.
20626 (file_for_image, find_rtl_image): New functions.
20627 (xg_get_image_for_pixmap): Use file_for_image.
20628 (update_frame_tool_bar): If direction is RTL, use RTL image if
20629 defined. Use Gtk stock images if defined.
20630
20631 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20632
20633 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
20634 for nonexistent or zero-width glyph in composition glyph.
20635
20636 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
20637
20638 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
20639
20640 * xdisp.c (Finvisible_p): New function.
20641 (syms_of_xdisp): defsubr it.
20642
20643 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
20644
20645 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
20646 Doc fixes.
20647
20648 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20649
20650 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
20651
20652 2007-08-24 Martin Rudalics <rudalics@gmx.at>
20653
20654 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
20655 whether decoding has modified buffer contents.
20656
20657 2007-08-24 Jason Rumney <jasonr@gnu.org>
20658
20659 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
20660 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
20661 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
20662 (init_svg_functions) [HAVE_NTGUI]: New function.
20663 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
20664 (svg_load_image): Use them.
20665 (svg_load_image) [HAVE_NTGUI]: Implement background.
20666
20667 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20668
20669 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
20670 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
20671 (LIBX): Remove @RSVG_LIBS@.
20672 (LIBES): Add $(RSVG_LIBS).
20673
20674 * image.c (svg_load_image): Blend with specified background if exists.
20675 Use IMAGE_BACKGROUND. Add Mac OS Support.
20676
20677 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
20678 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
20679 Remove macros.
20680 [MAC_OSX] (socket_callback): Do nothing.
20681 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
20682 ReceiveNextEvent.
20683 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
20684 socket_callback.
20685 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
20686
20687 2007-08-22 Glenn Morris <rgm@gnu.org>
20688
20689 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
20690
20691 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
20692
20693 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
20694
20695 * image.c: Add support for SVG images. Some additional comments
20696 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
20697 (svg_image_p): New function to test for SVG image.
20698 (svg_load): New function to load SVG image.
20699 (svg_load_image): New function, helper for svg_load.
20700 (Qsvg): New Lisp_object.
20701 (svg_keyword_index): New enum.
20702 (svg_format): New static `image_keyword' struct.
20703 (svg_type): New static `image_type' struct.
20704 (librsvg/rsvg.h): Include it.
20705
20706 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
20707
20708 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
20709
20710 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
20711
20712 * lread.c (Qold_style_backquotes): New var.
20713 (syms_of_lread): Init and staticpro it.
20714 (load_warn_old_style_backquotes): New fun.
20715 (Fload): Use them to warn about old style backquotes.
20716 (end_of_file_error, Fload): Remove unused vars.
20717
20718 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
20719
20720 * lread.c (Vold_style_backquotes): New var.
20721 (syms_of_lread): Init and export it to Elisp.
20722 (read1): Set it when we find an old-style (back)quote.
20723
20724 2007-08-22 Jason Rumney <jasonr@gnu.org>
20725
20726 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
20727
20728 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
20729
20730 * puresize.h (BASE_PURESIZE): Increase to 1140000.
20731
20732 2007-08-19 Richard Stallman <rms@gnu.org>
20733
20734 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
20735
20736 2007-08-19 Andreas Schwab <schwab@suse.de>
20737
20738 * alloc.c (pure): Round PURESIZE up.
20739
20740 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
20741
20742 * xterm.c (handle_one_xevent): Remove check that mouse click is in
20743 active frame.
20744
20745 2007-08-16 Richard Stallman <rms@gnu.org>
20746
20747 * eval.c (Fcommandp): Add parens to clarify.
20748
20749 * minibuf.c (Fall_completions): Use enum for type of table.
20750
20751 * emacs.c (USAGE2): Improve text.
20752
20753 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
20754
20755 * term.c (tty_default_color_capabilities): Declare static
20756 variables in file scope, to avoid HPUX compiler problem.
20757
20758 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
20759
20760 * gtkutil.c (update_frame_tool_bar): Use -1 as index
20761 to gtk_toolbar_insert.
20762
20763 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
20764
20765 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
20766
20767 * insdel.c (reset_var_on_error): New fun.
20768 (signal_before_change, signal_after_change):
20769 Use it to reset (after|before)-change-functions to nil in case of error.
20770 Bind inhibit-modification-hooks to t.
20771 Don't bind (after|before)-change-functions to nil while they run.
20772
20773 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20774
20775 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
20776 filling pixmap with stippled background.
20777
20778 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20779
20780 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
20781 Don't use invisible frame as parent window for repositioning.
20782
20783 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
20784
20785 * print.c (new_backquote_output): Rename from old_backquote_output.
20786 (print): Inverse its logic (according to its name) so as to match the
20787 behavior of new_backquote_flag in lread.c.
20788
20789 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20790
20791 * gmalloc.c (posix_memalign): New function.
20792
20793 * macterm.c (frame_highlight, frame_unhighlight): Don't call
20794 ActivateControl/DeactivateControl here.
20795 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
20796 frame-notice-user-settings is non-nil.
20797 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
20798 for kEventParamFMFontStyle.
20799 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
20800 mac_pass_command_to_system and mac_pass_control_to_system here.
20801 (XTread_socket): Call ActivateControl/DeactivateControl here.
20802 (XTread_socket) [TARGET_API_MAC_CARBON]:
20803 Check mac_pass_command_to_system and mac_pass_control_to_system here.
20804 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
20805 for window repositioning.
20806
20807 2007-08-08 Glenn Morris <rgm@gnu.org>
20808
20809 * Replace `iff' in doc-strings and comments.
20810
20811 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
20812
20813 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
20814
20815 2007-08-07 Martin Rudalics <rudalics@gmx.at>
20816
20817 * fileio.c (Finsert_file_contents): Run format-decode and
20818 after_insert_file_functions on entire buffer when REPLACE is
20819 non-nil and inhibit modification_hooks and point_motion_hooks.
20820 For consistency, run after_insert_file_functions iff something
20821 got inserted. Move signal_after_change and update_compositions
20822 after code running after_insert_file_functions. Make sure that
20823 undo_list doesn't record intermediate steps of the decoding process.
20824
20825 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20826
20827 * emacs.c (main)
20828 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
20829 Call malloc_enable_thread on interactive startup.
20830
20831 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
20832 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
20833 [USE_PTHREAD]: Conditionalize with it.
20834 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
20835 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
20836 New functions.
20837
20838 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
20839
20840 * xdisp.c (redisplay_window): When restoring original buffer
20841 position, make sure it is still valid.
20842
20843 * image.c (png_load): Ignore png-supplied background color.
20844
20845 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20846
20847 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20848 Use kCFAbsoluteTimeIntervalSince1970.
20849
20850 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20851 New variable.
20852 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20853 event loop should be quit.
20854 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20855 Quit dialog event loop if quit_dialog_event_loop is set.
20856
20857 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20858 (Selection): New typedef. Use instead of ScrapRef.
20859 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20860 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20861 (mac_clear_selection): Rename from clear_scrap.
20862 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20863 scrap_has_target_type. All uses changed.
20864 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20865 (mac_selection_has_target_p): New functions.
20866 (mac_put_selection_value): Rename from put_scrap_string.
20867 (mac_get_selection_value): Rename from get_scrap_string.
20868 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20869 (put_scrap_private_timestamp, scrap_has_target_type)
20870 (get_scrap_private_timestamp): Remove functions.
20871 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20872 (x_own_selection, x_get_local_selection):
20873 Use mac_valid_selection_value_p.
20874 (x_own_selection): Don't use put_scrap_private_timestamp.
20875 Record OWNERSHIP-INFO into Vselection_alist instead.
20876 (x_get_local_selection): Don't check type if request is local.
20877 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
20878 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
20879
20880 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
20881
20882 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
20883 add comment explaining why.
20884
20885 2007-08-03 Richard Stallman <rms@gnu.org>
20886
20887 * fileio.c (Fvisited_file_modtime): Use make_time.
20888
20889 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
20890
20891 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
20892 build.
20893
20894 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
20895
20896 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
20897
20898 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
20899
20900 * puresize.h (BASE_PURESIZE): Increase to 1130000.
20901
20902 2007-07-30 Richard Stallman <rms@gnu.org>
20903
20904 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
20905
20906 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
20907
20908 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
20909
20910 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
20911
20912 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
20913 remote default-directory.
20914
20915 * buffer.c (mode-line-format): Update doc string.
20916
20917 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20918
20919 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
20920 scroll bar gap.
20921 (x_scroll_bar_create): Set bar->fringe_extended_p.
20922 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
20923 on frame edge. Check fringe background extension. Don't clear
20924 extended fringe background area.
20925
20926 * w32term.h (struct scroll_bar): New member fringe_extended_p.
20927 (w32_fill_area): Enclose multiple statements with do ... while (0).
20928
20929 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
20930 Extend fringe background to scroll bar gap.
20931 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
20932 Set bar->fringe_extended_p.
20933 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20934 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20935 background extension. Don't clear extended fringe background area.
20936
20937 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20938 New member fringe_extended_p.
20939
20940 2007-07-25 Glenn Morris <rgm@gnu.org>
20941
20942 * Relicense all FSF files to GPLv3 or later.
20943
20944 * COPYING: Switch to GPLv3.
20945
20946 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20947
20948 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20949
20950 * data.c (Finteractive_form): Check for the presence of an
20951 `interactive-form' symbol property more thoroughly.
20952
20953 * data.c (Finteractive_form): Use an `interactive-form' property if
20954 present, analogous to the function-documentation property.
20955
20956 2007-07-24 Jason Rumney <jasonr@gnu.org>
20957
20958 * w32fns.c (x_real_positions): Get real position from OS instead of
20959 calculating it.
20960
20961 2007-07-23 Jason Rumney <jasonr@gnu.org>
20962
20963 * filelock.c (current_lock_owner): Allow for @ sign in username.
20964
20965 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
20966
20967 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20968 remote default-directory.
20969
20970 * buffer.c (mode-line-format): Describe above case in doc string.
20971
20972 2007-07-20 Eli Zaretskii <eliz@gnu.org>
20973
20974 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20975 Define if not defined.
20976
20977 2007-07-18 Jason Rumney <jasonr@gnu.org>
20978
20979 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20980
20981 2007-07-18 Richard Stallman <rms@gnu.org>
20982
20983 * data.c (Fsetq_default): Doc fix.
20984
20985 * eval.c (Fsetq): Doc fix.
20986
20987 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
20988
20989 * coding.c (Ffind_operation_coding_system):
20990 * eval.c (For, Fand): Doc fixes.
20991 Reported by Johan Bockgård.
20992
20993 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20994
20995 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20996
20997 * xterm.h: Declare x_ewmh_activate_frame.
20998
20999 * xterm.c (x_ewmh_activate_frame): New function.
21000 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21001
21002 2007-07-17 Martin Rudalics <rudalics@gmx.at>
21003
21004 * window.c (Fdisplay_buffer): If largest or LRU window is the
21005 only window, split it even if it is not eligible for splitting.
21006 This restores the original behavior broken by the 2007-07-15
21007 change.
21008
21009 2007-07-17 Glenn Morris <rgm@gnu.org>
21010
21011 * abbrev.c (abbrev_check_chars): New function.
21012 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21013 Call abbrev_check_chars to check abbrev characters are word
21014 constituents. Doc fix.
21015
21016 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21017
21018 * process.c (Fstart_process, Fmake_network_process)
21019 (read_process_output): Fix up last changes.
21020
21021 2007-07-16 Eli Zaretskii <eliz@gnu.org>
21022
21023 * makefile.w32-in (clean): Don't delete *~.
21024
21025 2007-07-16 Andreas Schwab <schwab@suse.de>
21026
21027 * window.c (Fdisplay_buffer): Use NILP.
21028 (Fset_window_scroll_bars): Likewise.
21029
21030 2007-07-15 Martin Rudalics <rudalics@gmx.at>
21031
21032 * window.c (window_min_size_2): New function.
21033 (window_min_size_1, size_window, Fdisplay_buffer)
21034 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21035 windows without mode- or header-lines when window-min-height is
21036 too small.
21037 (size_window): Reset nodelete_p after testing it, following an
21038 earlier note by Kim F. Storm.
21039 (display_buffer): Do not set split_height_threshold to twice the
21040 value of window_min_height to avoid changing the value of a
21041 customizable variable. Rather explicitly check whether the
21042 height of the window that shall be splitted is at least as large
21043 as split_height_threshold.
21044 (Fwindow_full_width_p): New defun.
21045 (syms_of_window): Defsubr it.
21046
21047 * window.h: Add EXFUN for Fwindow_full_width_p.
21048
21049 2007-07-14 Jason Rumney <jasonr@gnu.org>
21050
21051 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21052
21053 2007-07-14 Richard Stallman <rms@gnu.org>
21054
21055 * eval.c (maybe_call_debugger): New function.
21056 (find_handler_clause): Use maybe_call_debugger.
21057 Call it when the handler says `debug'.
21058 Eliminate DEBUGGER_VALUE_PTR.
21059 (Fsignal): Eliminate debugger_value.
21060 (Qdebug): New variable.
21061 (syms_of_eval): Initialize it.
21062
21063 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
21064
21065 * eval.c (Fprogn):
21066 * keyboard.c (Ftrack_mouse):
21067 * print.c (Fwith_output_to_temp_buffer):
21068 * window.c (Fsave_window_excursion): Doc fix.
21069
21070 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21071
21072 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21073
21074 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21075
21076 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21077 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21078 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21079 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21080 Remove unused encoding_carryover.
21081 * process.c: Adjust all functions accordingly.
21082
21083 2007-07-12 Richard Stallman <rms@gnu.org>
21084
21085 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21086
21087 2007-07-11 Jason Rumney <jasonr@gnu.org>
21088
21089 * makefile.w32-in (LIBS): Include OLE32.
21090
21091 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21092 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21093
21094 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21095
21096 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21097 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21098 from a Lisp_Object into a bare pointer.
21099 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21100 Adjust the code correspondingly.
21101
21102 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21103
21104 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21105 (term_show_mouse_face): Remove unused var `j'.
21106 (handle_one_term_event): Remove unused vars `i' and `j'.
21107 Don't cast return value of ttyname since it's not necessary.
21108
21109 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21110
21111 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21112 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21113
21114 * fns.c (map_char_table): Use an array of int for `indices' rather than
21115 an array of Lisp_Objects (which are only ever integers anyway).
21116 (Fmap_char_table): Update caller.
21117 * lisp.h: Update prototype.
21118 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21119 * fontset.c (Ffontset_info):
21120 * casetab.c (set_case_table): Update callers.
21121
21122 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21123
21124 * keymap.c (struct accessible_keymaps_data)
21125 (struct where_is_internal_data): New structures.
21126 (accessible_keymaps_1, where_is_internal_1): Use them to change
21127 interface to adhere to the one used by map_keymap.
21128 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21129 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21130
21131 * keymap.h (map_keymap_function_t): More informative prototype.
21132
21133 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21134
21135 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21136 (looking_at_1): Don't change search_regs and last_thing_searched
21137 if `inhibit-changing-match-data' is non-nil.
21138 (string_match_1, search_buffer, set_search_regs): Likewise.
21139 (syms_of_search): Add Lisp level definition for
21140 `inhibit-changing-match-data' and set it to nil.
21141 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21142 start and end of the match, instead of using values in search_regs.
21143
21144 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21145
21146 * minibuf.c (Fcompleting_read): New value `confirm-only'
21147 for `require-match'.
21148
21149 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21150
21151 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21152 part of the 2007-06-27 change to syms_of_fileio.
21153
21154 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21155
21156 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21157 Check WINDOWP before using XWINDOW. Consolidate return statements.
21158
21159 2007-06-27 Richard Stallman <rms@gnu.org>
21160
21161 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21162
21163 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
21164
21165 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21166
21167 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21168
21169 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21170 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21171 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21172 (_free_internal, memalign): Use them.
21173 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21174 Initialize to PTHREAD_MUTEX_INITIALIZER.
21175 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21176 (morecore_nolock): Rename from morecore. All uses changed.
21177 Use only nolock versions of internal allocation functions.
21178 (_malloc_internal_nolock, _realloc_internal_nolock)
21179 (_free_internal_nolock): New functions created from
21180 _malloc_internal, _realloc_internal, and _free_internal.
21181 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21182 Copy hook value to automatic variable before its use.
21183 (memalign): Copy hook value to automatic variable before its use.
21184
21185 2007-06-26 Kenichi Handa <handa@m17n.org>
21186
21187 * coding.c (Ffind_operation_coding_system): Docstring improved.
21188 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21189
21190 2007-06-25 David Kastrup <dak@gnu.org>
21191
21192 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21193 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21194 cater for additional parameter.
21195
21196 * keymap.h: Adjust number of parameters to `current-active-maps'.
21197
21198 * doc.c (Fsubstitute_command_keys): Adjust call of
21199 `current-active-maps'.
21200
21201 2007-06-25 David Kastrup <dak@gnu.org>
21202
21203 * callint.c (Fcall_interactively): Make the parsing of interactive
21204 specs somewhat more readable.
21205
21206 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21207
21208 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21209 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21210 if extended background has already been filled.
21211
21212 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21213
21214 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21215 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21216
21217 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21218 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21219 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21220 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21221 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21222 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21223 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21224 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21225 Run timers during dialog popup.
21226 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21227
21228 2007-06-21 Jason Rumney <jasonr@gnu.org>
21229
21230 * image.c (convert_mono_to_color_image): Swap fore and background.
21231
21232 2007-06-20 Jason Rumney <jasonr@gnu.org>
21233
21234 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21235 (w32_free_bdf_font): Unmap memory not handle.
21236
21237 2007-06-20 Sam Steingold <sds@gnu.org>
21238
21239 * gmalloc.c (__morecore): Fix the declaration to comply with the
21240 definition.
21241
21242 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
21243
21244 * w32term.c (w32_delete_display): Remove leftover declaration.
21245 (w32_define_cursor, w32_initialize): Make static.
21246
21247 * w32.c (_wsa_errlist): Fix typo in error message.
21248 (init_environment): Ignore any environment variable from the
21249 registry having a null value.
21250
21251 2007-06-20 Glenn Morris <rgm@gnu.org>
21252
21253 * Makefile.in (LIBGIF): Default to -lgif.
21254
21255 2007-06-17 Jason Rumney <jasonr@gnu.org>
21256
21257 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21258 unicode strings.
21259
21260 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
21261
21262 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21263 Fix typo in docstring.
21264
21265 2007-06-16 Eli Zaretskii <eliz@gnu.org>
21266
21267 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21268 and their keybindings.
21269
21270 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
21271
21272 * composite.c (update_compositions): Fix last fix.
21273
21274 2007-06-14 Jason Rumney <jasonr@gnu.org>
21275
21276 * w32.c (get_process_times_fn): New function pointer.
21277 (globals_of_w32): Intialize it if present in kernel32.dll.
21278 (w32_get_internal_run_time): New function.
21279
21280 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21281
21282 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21283
21284 * composite.c (update_compositions): Check the validness of
21285 compositions.
21286
21287 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21288
21289 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21290 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21291
21292 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21293 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21294
21295 * macgui.h (USE_MAC_TOOLBAR): New define.
21296
21297 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21298 Return immediately unless popup is activated.
21299
21300 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21301 background to scroll bar gap.
21302 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21303 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21304 scroll bars on frame edge. Check fringe background extension.
21305 Don't clear extended fringe background area.
21306 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21307 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21308 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21309 [USE_MAC_TOOLBAR]: New macros.
21310 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21311 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21312 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21313 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21314 [USE_MAC_TOOLBAR]: New functions.
21315 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21316 manually if previous repositioning has failed.
21317 (mac_handle_keyboard_event): Use precomputed event kind.
21318 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21319 as tool bar item click. Handle mouse movement over tool bar items.
21320
21321 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21322 toolbar_win_gravity.
21323 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21324 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21325 Add externs.
21326
21327 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21328 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21329
21330 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
21331
21332 * image.c (search_image_cache): Remove unused variable.
21333
21334 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
21335
21336 * xfns.c, xmenu.c: Link to xaw3d if available.
21337
21338 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21339
21340 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21341 frame_foreground and frame_background.
21342
21343 * image.c (lookup_image): Save frame foreground and background colors.
21344 (search_image_cache): Check if saved and current frame colors match.
21345
21346 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21347
21348 * regex.c (regex_compile): Remove the `regnum' counter.
21349 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21350
21351 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21352
21353 * term.c: Include intervals.h to declare Fget_text_property.
21354
21355 2007-06-10 Jason Rumney <jasonr@gnu.org>
21356
21357 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21358
21359 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
21360
21361 * callint.c (Fcall_interactively):
21362 * editfns.c (Fdelete_and_extract_region):
21363 * fileio.c (Fread_file_name):
21364 * fns.c (Fmapconcat):
21365 * keyboard.c (cmd_error_internal):
21366 * keymap.c (Fkey_description):
21367 * lread.c (openp):
21368 * minibuf.c (read_minibuf):
21369 * search.c (wordify):
21370 * sunfns.c (sel_read):
21371 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21372 * xfns.c (x_default_scroll_bar_color_parameter):
21373 * xmenu.c (menu_help_callback):
21374 * xselect.c (Fx_get_atom_name):
21375 * xterm.c (x_term_init): Use empty_unibyte_string.
21376
21377 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21378
21379 * alloc.c (init_strings): Initialize canonical empty strings.
21380 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21381 canonical empty string when the requested size is 0.
21382
21383 * emacs.c (empty_unibyte_string): Rename from empty_string.
21384 (empty_multibyte_string): New canonical empty string.
21385 (syms_of_emacs): Don't initialize empty_string.
21386
21387 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21388 string, if appropriate.
21389 (empty_unibyte_string, empty_multibyte_string): New externs.
21390 (empty_string): Remove extern.
21391
21392 * lread.c (syms_of_lread): Use empty_unibyte_string.
21393
21394 2007-06-07 Jason Rumney <jasonr@gnu.org>
21395
21396 * s/ms-w32.h: Don't define HAVE_TZNAME.
21397
21398 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21399
21400 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21401
21402 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21403
21404 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21405 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21406
21407 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21408 Don't call next handler.
21409 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21410 Remove argument. Install handler to application.
21411 (set_frame_menubar): Don't change deep_p.
21412 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21413 FRAME_OUTER_TO_INNER_DIFF_Y.
21414 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21415 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21416 [HAVE_DIALOGS]: New macros.
21417 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21418 Use them.
21419 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21420
21421 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21422 init_service_handler. All callers changed. Return OSStatus value.
21423
21424 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21425 All callers changed so as not to call SetPortWindowPort.
21426 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21427 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21428 mac_draw_string_common.
21429 (mac_draw_image_string_qd): Likewise.
21430 (mac_draw_string_common): Use them. Add INLINE.
21431 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21432 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21433 GetGlobalMouse.
21434 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21435 and FRAME_OUTER_TO_INNER_DIFF_Y.
21436 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21437 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21438 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21439 repositioning window to mac_handle_window_event.
21440 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21441 saving window location to mac_handle_window_event
21442 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21443 (install_menu_target_item_handler): Remove argument in extern.
21444 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21445 Also accept command events.
21446 (do_keystroke): New function created from XTread_socket.
21447 (init_command_handler): Remove functions.
21448 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21449 and save window location by kEventWindowShowing and kEventWindowHiding
21450 handlers here. Don't call next handler for window state change and
21451 focus events.
21452 (mac_handle_application_event, mac_handle_keyboard_event)
21453 [TARGET_API_MAC_CARBON]: New functions.
21454 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21455 kEventWindowShowing and kEventWindowHiding events. Move installation
21456 of mouse, font, text input and menu target item handlers to
21457 install_application_handler.
21458 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21459 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21460 New function.
21461 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21462 Register it.
21463 (XTread_socket) [TARGET_API_MAC_CARBON]:
21464 Consolidate SendEventToEventTarget calls.
21465 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21466 Move application activation handler to mac_handle_application_event.
21467 Move keyboard handler to mac_handle_keyboard_event.
21468 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21469 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21470 init_command_handler. Call install_application_handler.
21471
21472 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21473 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21474
21475 2007-06-07 Glenn Morris <rgm@gnu.org>
21476
21477 * emacs.c (main): Use `emacs-copyright' in --version output.
21478
21479 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
21480
21481 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21482
21483 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21484
21485 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21486
21487 * macgui.h: Replace WindowPtr with WindowRef.
21488
21489 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21490 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21491 Replace ControlHandle with ControlRef.
21492 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21493
21494 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21495 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21496 Replace ControlHandle with ControlRef.
21497 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21498 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21499
21500 * macterm.h (struct scroll_bar): Rename member control_handle_low
21501 and control_handle_high to control_ref_low and control_ref_high.
21502 All uses changed.
21503 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21504 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21505 respectively. All uses changed.
21506 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21507 (install_window_handler, remove_window_handler): Replace WindowPtr
21508 with WindowRef in externs.
21509
21510 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
21511
21512 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21513
21514 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
21515
21516 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21517
21518 * frame.c (Fmouse_position, Fmouse_pixel_position):
21519 Condition on HAVE_GPM too.
21520
21521 * term.c (term_mouse_highlight): Remove unused variables.
21522 (Fterm_open_connection): Set gpm_zerobased to 1.
21523 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21524 Use zero based co-ordinates.
21525 (handle_one_term_event): Report a drag as mouse movement too.
21526
21527 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
21528
21529 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
21530
21531 * image.c (search_image_cache): New function. Require background
21532 color match if background color is unspecified in the image spec.
21533 (uncache_image, lookup_image): Use it.
21534
21535 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
21536
21537 * window.c (Fshrink_window): Reflow docstring.
21538
21539 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
21540
21541 * Version 22.1 released.
21542
21543 2007-06-01 Richard Stallman <rms@gnu.org>
21544
21545 * xfns.c (x_encode_text): Add GCPRO.
21546
21547 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21548
21549 * xfns.c (x_set_name_internal): Save encoded name before
21550 x_encode_text in case string data is relocated.
21551
21552 2007-05-31 Richard Stallman <rms@gnu.org>
21553
21554 * buffer.c (syms_of_buffer): Doc fix.
21555
21556 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
21557
21558 * sysdep.c (init_sys_modes): Add rather than replace with
21559 O_NONBLOCK.
21560
21561 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
21562 term_mouse_moveto.
21563
21564 * termhooks.h (term_mouse_moveto): New extern.
21565
21566 * term.c (mouse_face_window): Rename...
21567 (Qmouse_face_window): ...to this.
21568 (term_show_mouse_face, term_clear_mouse_face)
21569 (term_mouse_highlight): Use Qmouse_face_window.
21570 (term_mouse_moveto): New function.
21571 (term_mouse_position): Make it work.
21572 (syms_of_term): Uncomment assignment to mouse_position_hook.
21573 Staticpro Qmouse_face_window.
21574
21575 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21576
21577 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
21578 around current_column call.
21579
21580 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
21581
21582 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
21583 * xdisp.c (next_element_from_buffer):
21584 * window.c (delete_window):
21585 * term.c (term_mouse_highlight):
21586 * msdos.c (getdefdir):
21587 * macterm.c (mac_create_bitmap_from_bitmap_data)
21588 (init_font_name_table):
21589 * fns.c (Fsxhash):
21590 * data.c (Fmake_local_variable):
21591 * ccl.c (ccl_driver): Likewise.
21592
21593 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21594
21595 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
21596 Call mac_wakeup_from_rne on window size change.
21597
21598 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
21599
21600 * image.c (uncache_image): Fix typo.
21601
21602 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
21603
21604 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
21605
21606 2007-05-22 Richard Stallman <rms@gnu.org>
21607
21608 * xterm.c (x_connection_closed): Remove NO_RETURN.
21609
21610 2007-05-22 Martin Rudalics <rudalics@gmx.at>
21611
21612 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
21613
21614 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
21615
21616 * image.c (uncache_image): New function.
21617 (Fimage_refresh): New function.
21618
21619 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
21620
21621 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
21622
21623 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
21624
21625 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
21626 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
21627
21628 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
21629
21630 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
21631 conditional on [HAVE_GPM_H].
21632
21633 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21634
21635 * syntax.c (skip_chars): Update syntax-table only after we checked that
21636 the new location is valid.
21637
21638 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21639
21640 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
21641 mac_get_window_bounds.
21642
21643 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
21644
21645 * Makefile.in (LIBGPM): Allow it to be set from configure.
21646 If set then link Emacs with it.
21647
21648 * config.in: Regenerate.
21649
21650 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
21651 New externs.
21652
21653 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
21654 Include gpm.h.
21655 (handle_one_term_event, term_gpm): New externs.
21656
21657 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
21658 and allow it to be interrupted by SIGIO.
21659
21660 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
21661 (wait_reading_process_output): Wait on gpm_fd too.
21662 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
21663 (add_gpm_wait_descriptor_called_flag): New variable.
21664 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
21665
21666 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
21667 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
21668 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
21669 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
21670 (make_lispy_event): Add case GPM_CLICK_EVENT.
21671 (read_avail_input): Handle mouse input.
21672
21673 * term.c (write_glyphs_with_face): New function.
21674 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
21675 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
21676 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
21677 (mouse_face_face_id, term_gpm, pos_x, pos_y)
21678 (last_mouse_x, last_mouse_y): New variables.
21679 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
21680 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
21681 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
21682 (Fterm_close_connection): New functions.
21683 (term_init): Initialise mouse_face_window.
21684
21685 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
21686
21687 * xdisp.c (redisplay_window): If first window line is a
21688 continuation line, recompute the new window start instead of
21689 recentering.
21690
21691 2007-05-18 Glenn Morris <rgm@gnu.org>
21692
21693 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
21694 Suggested by Alfred M. Szmidt <ams@gnu.org>.
21695
21696 2007-05-17 Glenn Morris <rgm@gnu.org>
21697
21698 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
21699
21700 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21701
21702 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
21703 dead key repeat and up events.
21704
21705 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
21706
21707 * image.c (pbm_load): Check image size for monochrome pbm.
21708
21709 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
21710
21711 * xterm.c (XTread_socket): Revert last change.
21712
21713 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
21714
21715 * image.c (pbm_load): Correctly check image size for greyscale pbm.
21716
21717 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
21718
21719 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21720
21721 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
21722 mixup (YAILOM).
21723
21724 2007-05-07 Andreas Schwab <schwab@suse.de>
21725
21726 * keymap.c (Flookup_key): Fix typo in last change.
21727
21728 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21729
21730 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
21731 mapping for unibyte strings.
21732
21733 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21734
21735 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
21736 (Fx_popup_dialog) [MAC_OSX]: Likewise.
21737
21738 2007-04-29 Richard Stallman <rms@gnu.org>
21739
21740 * insdel.c (replace_range): For undo, record insertion first.
21741
21742 2007-04-29 Andreas Schwab <schwab@suse.de>
21743
21744 * lisp.h (VECSIZE): Use OFFSETOF.
21745
21746 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21747
21748 * xdisp.c (try_window_reusing_current_matrix): Fix number of
21749 disabled lines.
21750
21751 2007-04-28 Richard Stallman <rms@gnu.org>
21752
21753 * lread.c (read_escape): In a string, \s is always space.
21754
21755 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
21756
21757 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
21758
21759 * gtkutil.c (xg_update_menubar, create_menus): Create empty
21760 submenu for menu bar items.
21761
21762 See ChangeLog.10 for earlier changes.
21763
21764 ;; Local Variables:
21765 ;; coding: utf-8
21766 ;; add-log-time-zone-rule: t
21767 ;; End:
21768
21769 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
21770
21771 This file is part of GNU Emacs.
21772
21773 GNU Emacs is free software: you can redistribute it and/or modify
21774 it under the terms of the GNU General Public License as published by
21775 the Free Software Foundation, either version 3 of the License, or
21776 (at your option) any later version.
21777
21778 GNU Emacs is distributed in the hope that it will be useful,
21779 but WITHOUT ANY WARRANTY; without even the implied warranty of
21780 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21781 GNU General Public License for more details.
21782
21783 You should have received a copy of the GNU General Public License
21784 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21785
21786 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40