Doc fix (Bug#6224).
[bpt/emacs.git] / src / ChangeLog
1 2010-05-20 Kevin Ryde <user42@zip.com.au>
2
3 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
4 (Voverriding_terminal_local_map, Vsystem_key_alist)
5 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
6
7 2010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8
9 * editfns.c (Fbyte_to_string): New function.
10
11 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
12
13 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
14 prevent stack overflow if number of arguments is too large
15 (Bug#6214).
16
17 2010-05-11 Eli Zaretskii <eliz@gnu.org>
18
19 * makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(SRC)/w32.h.
20
21 * w32fns.c: Include w32.h.
22 (Fw32_shell_execute): Decode the error message before passing it
23 to `error'. (Bug#6126)
24
25 2010-05-11 Karel Klic <kklic@redhat.com>
26
27 * ftfont.c: Fix incorrect parentheses of #if condition for
28 definining M17N_FLT_USE_NEW_FEATURE.
29
30 2010-05-07 Chong Yidong <cyd@stupidchicken.com>
31
32 * Version 23.2 released.
33
34 2010-04-30 Andreas Schwab <schwab@linux-m68k.org>
35
36 * composite.c (autocmp_chars): Save point as marker before calling
37 auto-composition-function (Bug#5984).
38
39 * lisp.h (restore_point_unwind): Add prototype.
40
41 * fileio.c (restore_point_unwind): Remove static attribute.
42
43 2010-04-23 Kenichi Handa <handa@m17n.org>
44
45 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
46 new feature of libotf and m17n-flt.
47 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]: Call
48 OTF_check_features even if no specific feature is given.
49 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
50 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
51 that OUT is NULL. Use OTF_drive_gsub_with_log and
52 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
53 OTF_drive_gpos.
54 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
55 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]: Setup
56 mflt_enable_new_feature and mflt_try_otf.
57
58 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
59
60 * dired.c (Ffile_attributes): Fix typo in docstring.
61
62 2010-04-13 Adrian Robert <Adrian.B.Robert@gmail.com>
63
64 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
65 NSInteger (Bug#5811).
66
67 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
68
69 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
70 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
71
72 2010-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
73
74 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
75
76 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
77
78 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
79 FRAME_LINE_TO_PIXEL_Y.
80
81 * xterm.c (x_set_window_size_1): Don't add border_width/height to
82 pixelwidth/height.
83
84 2010-04-05 Chong Yidong <cyd@stupidchicken.com>
85
86 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
87 terminal frames (Bug#5837).
88
89 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
90
91 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
92 * nsterm.h: Fix prototype.
93
94 2010-03-31 Eli Zaretskii <eliz@gnu.org>
95
96 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
97 in this function. (Bug#5703)
98
99 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
100
101 * nsterm.h: Fix last change.
102
103 2010-03-30 Bernhard Herzog <bh@intevation.de> (tiny change)
104
105 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
106
107 2010-03-30 Jan Djärv <jan.h.d@swipnet.se>
108
109 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
110 invisible (Bug#5766).
111
112 2010-03-29 Adrian Robert <adrian.b.robert@gmail.com>
113
114 * xdisp.c (x_consider_frame_title, update_window_cursor): Remove
115 HAVE_NS conditionals.
116 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
117
118 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
119 filename for the title.
120 (ns_set_doc_edited): Do nothing if the selected window is a
121 minibuffer window.
122
123 * nsterm.h: Add prototypes for ns_set_name_as_filename and
124 ns_set_doc_edited.
125
126 * nsterm.m: Remove unneeded prototype.
127
128 2010-03-28 Glenn Morris <rgm@gnu.org>
129
130 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
131 in the DOC file. (Bug#5336)
132
133 2010-03-24 Chong Yidong <cyd@stupidchicken.com>
134
135 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
136
137 2010-03-20 Jan Djärv <jan.h.d@swipnet.se>
138
139 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
140
141 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
142
143 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
144
145 2010-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
146
147 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
148 XLoadQueryFont.
149
150 2010-03-16 Kenichi Handa <handa@m17n.org>
151
152 * coding.c (decode_coding_ccl): Fix previous change for the
153 multibyte case.
154 (encode_coding_ccl): Don't setup ccl program here. Fix for the
155 case that the output buffer is fullfilled.
156 (encode_coding): Setup ccl program here.
157
158 2010-03-15 Andreas Politz <politza@fh-trier.de> (tiny change)
159
160 * editfns.c (Fformat): Account for string precision when computing
161 field width (Bug#5710).
162
163 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
164
165 Make it possible to C-g in a tight bytecode loop again (bug#5680).
166 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
167 (QUIT): Use it to consolidate code and remove redundancy.
168 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
169
170 * regex.c (regex_compile): Setup gl_state as well.
171
172 * syntax.c (skip_chars): Setup gl_state (bug#3823).
173 (in_classes): Use CONSP before XCAR/XCDR.
174
175 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
176
177 * keymap.c (Fwhere_is_internal): Use Fequal to compare
178 definitions, so that keyboard macros are correctly handled
179 (Bug#5481).
180
181 2010-03-02 Eli Zaretskii <eliz@gnu.org>
182
183 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
184 text that could be relocated inside the call to emacs_mule_char.
185 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
186 (CODING_DECODE_CHAR): Add a comment describing its purpose.
187
188 2010-03-02 Kenichi Handa <handa@m17n.org>
189
190 * character.c (parse_str_as_multibyte): Fix handling of the
191 multibyte form of raw-bytes.
192 (str_as_multibyte): Likewise.
193
194 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
195 form of raw-bytes.
196
197 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
198
199 * charset.c (load_charset_map_from_file)
200 (load_charset_map_from_vector): Zero out allocated
201 charset_map_entries before using them.
202
203 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
204
205 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
206
207 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
208
209 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
210 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
211
212 2010-02-26 Kenichi Handa <handa@m17n.org>
213
214 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
215
216 * xdisp.c (reseat_to_string): Fix previous change.
217
218 2010-02-26 David Reitter <david.reitter@gmail.com>
219
220 * nsfont.m (nsfont_draw): ns_antialias_text should be a
221 Lisp_Object (Bug#4736).
222
223 2010-02-25 Kenichi Handa <handa@m17n.org>
224
225 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
226
227 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
228
229 * xterm.c (XTflash): Move declarations before statements.
230
231 * gtkutil.c (xg_get_gdk_display): Remove (unused).
232 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
233 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
234 (xg_create_tool_bar): Remove unused variables.
235 (x_wm_set_size_hint): Move declarations before statements.
236 (xg_create_frame_widgets): Remove variable grav,
237
238 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
239
240 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
241
242 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
243
244 * term.c (fatal): Add a final \n if needed (bug#5596).
245
246 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
247
248 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
249
250 2010-02-18 Glenn Morris <rgm@gnu.org>
251
252 * callint.c (Finteractive): Doc fix.
253
254 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
255
256 * coding.c (record_conversion_result):
257 Handle CODING_RESULT_INSUFFICIENT_DST.
258 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
259 memory allocation error.
260
261 2010-02-17 Kenichi Handa <handa@m17n.org>
262
263 * coding.c (decode_coding_ccl): Don't setup ccl program here.
264 Fix for the case that the output buffer is fullfilled.
265 (decode_coding): Setup ccl program here. Keep looping when the
266 decoder stopped because the output buffer is
267 fullfilled (bug#5534).
268
269 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
270
271 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
272
273 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
274 bug #5571.
275 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
276 overdrawn.
277
278 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
279
280 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
281 doing_interact here.
282 (ice_connection_closed): New function.
283 (x_session_check_input, smc_die_CB, ice_io_error_handler)
284 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
285 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
286 returns I/O error.
287 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
288 bug #5512.
289
290 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
291
292 * nsfont.m (nsfont_open): The system's value for the font descent
293 is negative, so round it down to avoid clipping.
294
295 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
296
297 * charset.c (load_charset_map_from_file)
298 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
299 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
300
301 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
302
303 * charset.c (load_charset_map_from_file): Allocate large
304 charset_map_entries structure on the heap rather than the stack.
305 (Bug#5526).
306
307 2010-01-31 Kenichi Handa <handa@m17n.org>
308
309 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
310 size in NAME is invalid, return -1 (Bug#5396).
311
312 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
313
314 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
315 <deactivated@gmail.com> (Bug#3605).
316
317 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
318
319 * fileio.c (Frename_file): Correctly rename symlinks to
320 directories (Bug#5496).
321
322 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
323
324 * nsterm.m (ns_ring_bell): Handle visible bell like X.
325
326 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
327
328 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
329
330 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
331
332 * frame.c (DEFAULT_ROWS): Change default to 35.
333
334 * xfns.c (x_default_font_parameter): Change default XFT font to
335 monospace-10 (Bug#3643).
336
337 2010-01-29 Eli Zaretskii <eliz@gnu.org>
338
339 * w32inevt.c (key_event): Remove unnecessary comparison of
340 event->uChar.AsciiChar with 128.
341
342 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
343
344 * fileio.c (Frename_file): Fix last change (Bug#5487).
345
346 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
347
348 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
349
350 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
351
352 * xfns.c (Fx_create_frame): Remove window size matching code from
353 2010-01-15.
354 (x_get_current_desktop, x_get_desktop_workarea): Remove
355
356 2010-01-27 Jason Rumney <jasonr@gnu.org>
357
358 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
359 (key_event): Use unicode for characters 128 and higher (Bug#4567).
360
361 2010-01-27 Kenichi Handa <handa@m17n.org>
362
363 * regex.c (analyse_first): Fix setting of fastmap for unibyte
364 pattern string (Bug#4209).
365
366 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
367
368 * fileio.c (Frename_file): Call copy-directory and
369 delete-directory for directories, in order to handle cross-device
370 renaming (Bug#3353).
371
372 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
373
374 * xfns.c (Fx_create_frame): If frame height is too big, try
375 sizes 24 and 10. Bug #3643.
376
377 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
378
379 Try and fix bug#788, hopefully for real this time.
380 * keymap.c (shadow_lookup): Add `remap' arg.
381 (describe_map, describe_vector): Update calls to shadow_lookup.
382 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
383 `remapped' so this flag is applicable to `sequence'. Be careful to
384 perform remapping during shadow_lookup check of remapped_sequences.
385
386 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
387
388 * image.c (png_load): Use png_sig_cmp instead of the obsolete
389 png_check_sig, which has been removed in libpng 1.4.
390
391 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
392
393 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
394 lacks this header file).
395
396 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
397
398 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
399 as in Emacs 22.
400
401 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
402
403 * lisp.h (make_pure_string): String pointer arg now points to const.
404
405 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
406 args now point to const.
407
408 2010-01-22 Eli Zaretskii <eliz@gnu.org>
409
410 * lread.c (Fload): Don't treat files without .elc extension as
411 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
412 them. (bug#5303)
413
414 2010-01-20 Kenichi Handa <handa@m17n.org>
415
416 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
417 treat the source as actual byte sequence.
418
419 2010-01-19 Alan Mackenzie <acm@muc.de>
420
421 Fix spurious before-change-functions invocation from (insert ?\n).
422 * textprop.c (set_text_properties): Rename parameter
423 `signal_after_change_p' to `coherent_change_p', and make the
424 invocation of `modify_region' conditional on it.
425
426 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
427
428 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
429 for debug purpose.
430 (syms_of_xsettings): Declare xft-settings.
431
432 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
433
434 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
435
436 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
437
438 * xterm.c (event_handler_gdk): Block input (Bug#5037).
439
440 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
441
442 * emacs.c (standard_args): Adjust arg priorities to reflect how
443 they are processed in startup.el.
444
445 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
446
447 * Makefile.in (lisp, shortlisp): Update.
448
449 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
450
451 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
452 code, link the new kboard into all_kboard before running Lisp code,
453 and protect the new terminal with GCPRO (Bug#5365).
454 (x_term_init): Remove unused var `atom'.
455 (x_delete_display, x_delete_terminal): Remove unused var `i'.
456
457 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
458
459 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
460 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
461 to find out usable size of the desktop. Don't make frames larger than
462 this. Bug #3643.
463
464 2010-01-15 Kenichi Handa <handa@m17n.org>
465
466 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
467
468 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
469
470 * nsterm.m (Qnone): Define.
471
472 * nsfns.m (Qnone): Move definition to nsterm.m.
473
474 2010-01-14 Kenichi Handa <handa@m17n.org>
475
476 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
477 systems.
478
479 2010-01-14 Kenichi Handa <handa@m17n.org>
480
481 Make auto-composition work on all buffers even if they are
482 fundamental mode.
483
484 * composite.c (Vauto_composition_mode): New variable.
485 (composition_compute_stop_pos): Check Vauto_composition_mode
486 instead of Vauto_composition_function.
487 (composition_adjust_point, Ffind_composition_internal): Likewise.
488 (syms_of_composite): Declare Lisp variable
489 "auto-composition-mode" here.
490
491 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
492
493 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
494 during call to vendor-specific-keysyms (Bug#5365).
495
496 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
497
498 * keyboard.c (input_available_signal) [SYNC_INPUT]:
499 Call SIGNAL_THREAD_CHECK (Bug#5333).
500
501 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
502 Call SIGNAL_THREAD_CHECK.
503
504 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
505
506 Try to fix bug#5314. This is probably not the final word, tho.
507 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
508 recent-auto-save-p as a side-effect.
509 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
510 * buffer.c (Fkill_buffer, reset_buffer):
511 * editfns.c (Fsubst_char_in_region):
512 * fileio.c (Finsert_file_contents, Fdo_auto_save)
513 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
514
515 2010-01-13 Kenichi Handa <handa@m17n.org>
516
517 Display buffer name, etc. in mode line by composing correctly.
518
519 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
520 STRING is not nil.
521 (display_mode_element): Adjust for the change of
522 decode_mode_spec and display_line.
523 (decode_mode_spec): Change arg MULTIBYTE to STRING.
524 (display_string): Handle the case that STRING is non-null and
525 LISP_STRING is not nil.
526
527 * xterm.c (x_draw_composite_glyph_string_foreground):
528 Pay attention to s->face->overstrike.
529
530 * composite.c (composition_reseat_it): Don't check PT if STRING is
531 non nil.
532
533 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
534
535 * keyboard.c (read_char): Don't apply previous change when current
536 buffer is unchanged by command execution.
537
538 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
539
540 * keyboard.c (read_char): Return after executing from special map.
541
542 2010-01-12 Glenn Morris <rgm@gnu.org>
543
544 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
545 bug-gnu-emacs rather than emacs-pretest-bug.
546
547 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
548
549 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
550 initializing the Lisp variables that depend on them.
551
552 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
553
554 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
555 Clear areas that will not be updated after change of menu bar lines.
556 Clear the menu bar window's current matrix when the window gets empty.
557
558 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
559
560 * intervals.h, textprop.c (extend_property_ranges): Return value
561 and args changed. Discard properties that begin at or after the
562 new end (Bug#5306).
563
564 * editfns.c (Fformat): Caller changed.
565
566 * nsterm.m (ns_set_default_prefs): Delete function.
567 (syms_of_nsterm): Initialize ns_command_modifier,
568 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
569 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
570
571 * xdisp.c (pos_visible_p): Check for invisible text at the correct
572 position (Bug#4040).
573
574 2010-01-09 Eli Zaretskii <eliz@gnu.org>
575
576 * editfns.c (Ffloat_time): Doc fix.
577
578 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
579
580 * xfns.c (Fx_create_frame): Don't create frame larger than display
581 by default bug#3643.
582
583 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
584
585 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
586 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
587 windows above internal border.
588
589 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
590 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
591 windows above internal border.
592
593 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
594 tool bar windows specially.
595
596 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
597
598 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
599 specially.
600 (XTflash): Take account of menu bar height.
601
602 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
603 specially.
604
605 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
606
607 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
608 also be true before we can return early (bug #5339).
609
610 2010-01-06 David Reitter <david.reitter@gmail.com>
611
612 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
613 (Fns_display_usable_bounds): Rewrite, computing bounds properly
614 (Bug#3233).
615
616 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
617
618 * font.c (font_open_entity): Enable chache and call cached_font_ok
619 for the driver if defined.
620 (QCuser_spec): New symbol.
621 (font_spec_from_name): Save name as user-spec.
622 (font_load_for_lface): Keep user-spec instead of name.
623 (font_open_by_name): Save name as user-spec.
624 (syms_of_font): Initialize QCuser_spec.
625 (font_clear_prop): Clear name if it exists in font (bug#5157).
626
627 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
628 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
629 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
630
631 * font.h (struct font_driver): Add cached_font_ok.
632
633 * xterm.c (x_clear_frame): Queue draw for scroll bars.
634
635 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
636
637 * xterm.c (x_new_font): Move code for setting rows/cols before
638 resizing ...
639 (x_set_window_size): ... to here. Bug #2568.
640
641 * gtkutil.c (xg_clear_under_internal_border): New function.
642 (xg_frame_resized, xg_frame_set_char_size):
643 Call xg_clear_under_internal_border.
644 (xg_update_scrollbar_pos): Clear under old scroll bar position.
645
646 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
647
648 * keyboard.c (read_key_sequence): Catch keyboard switch after
649 making a new tty frame (Bug#5095).
650
651 2010-01-05 Kenichi Handa <handa@m17n.org>
652
653 * fontset.c (fontset_find_font): Fix getting the frame pointer.
654
655 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
656
657 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
658 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
659 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
660
661 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
662
663 * dbusbind.c (xd_add_watch): Improve debug message.
664 (xd_remove_watch): Improve debug message. If DATA is the session
665 bus, unset D-Bus session environment.
666 (Fdbus_init_bus): Pass the bus as argument to
667 dbus_connection_set_watch_functions. (Bug#5283)
668
669 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
670
671 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
672
673 * lread.c (syms_of_lread): Make it clearer that these are the
674 names of loaded files (Bug#5068).
675
676 * eval.c (run_hook_with_args): Handle the case where the global
677 value has the obsolete single-function form (Bug#5026).
678
679 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
680
681 * minibuf.c (Fall_completions): Minor optimization.
682
683 2009-12-26 Eli Zaretskii <eliz@gnu.org>
684
685 * .gdbinit (pgx): Fix display of composite glyphs.
686 Display cmp.from and cmp.to as well.
687 (pitx): Fix last change.
688
689 2009-12-25 Kenichi Handa <handa@m17n.org>
690
691 * composite.h (composition_adjust_point): Update prototype.
692
693 * composite.c (composition_reseat_it): Don't make a composition
694 spanning over point.
695 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
696 composable characters.
697 (composition_adjust_point): New arg NEW_PT. Callers changed.
698
699 * keyboard.c (command_loop_1): Force redisplay if the last point
700 was within a composition.
701 (adjust_point_for_property): Don't adjust point for automatic
702 composition when called after buffer modification.
703
704 2009-12-19 Eli Zaretskii <eliz@gnu.org>
705
706 * .gdbinit (pitx): Don't use enum names, use their values.
707 Remove reference to non-existing value GET_FROM_COMPOSITION.
708 (pgx): Don't use enum names, use their values.
709 (pitmethod): New helper command.
710 (pitx): Use it to display iteration method.
711 (pgrowit): New command.
712
713 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
714
715 Update dependencies in Makefile.in.
716
717 * Makefile.in (alloc.o): Depend on termhooks.h.
718 (atimer.o): Depend on blockinput.h.
719 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
720 and frame.h.
721 (callint.o): Depend on systime.h, coding.h, and composite.h.
722 (callproc.o): Depend on buffer.h.
723 (casefiddle.o): Don't depend on charset.h.
724 (casetab.o): Depend on character.h.
725 (ccl.o): Depend on composite.h.
726 (chartab.o): Depend on ccl.h.
727 (cm.o): Depend on dispextern.h.
728 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
729 (coding.o): Don't depend on $(INTERVALS_H).
730 (composite.o): Don't depend on dispextern.h explicitly (it's in
731 $(INTERVALS_H)). Depend on ccl.h.
732 (data.o): Depend on systime.h, coding.h, composite.h,
733 dispextern.h, font.h, and ccl.h.
734 (dired.o): Depend on composite.h.
735 (dispnew.o): Depend on coding.h. Don't depend explicitly on
736 composite.h (it's in $(INTERVALS_H)).
737 (doc.o): Depend on systime.h, coding.h, and composite.h.
738 (editfns.o): Don't depend explicitly on dispextern.h.
739 (emacs.o): Depend on frame.h and coding.h.
740 (eval.o): Depend on coding.h, composite.h, and xterm.h.
741 (fileio.o): Depend on frame.h and commands.h. Don't depend
742 explicitly on dispextern.h.
743 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
744 composite.h.
745 (fns.o): Don't depend on termhooks.h.
746 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
747 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
748 coding.h, $(INTERVALS_H), window.h, xterm.h.
749 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
750 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
751 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
752 fontset.h, ccl.h, and ftfont.h.
753 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
754 (gtkutil.o): Depend on dispextern.h and composite.h.
755 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
756 termhooks.h, and ccl.h.
757 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
758 (intervals.o): Depend on systime.h and coding.h.
759 (keyboard.o): Depend on composite.h and coding.h.
760 (keymap.o): Depend on coding.h and frame.h.
761 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
762 (macros.o): Depend on systime.h, coding.h, and composite.h.
763 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
764 and atimer.h.
765 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
766 dispextern.h explicitly.
767 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
768 Don't depend explicitly on dispextern.h and composite.h.
769 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
770 (regex.o): Don't depend on charset.h.
771 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
772 (search.o): Don't depend explicitly on composite.h.
773 (sound.o): Depend on atimer.h and systime.h.
774 (syntax.o): Don't depend explicitly on composite.h.
775 (sysdep.o): Depend on coding.h and composite.h.
776 (term.o): Depend on xterm.h and buffer.h.
777 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
778 (textprop.o): Don't depend on dispextern.h explicitly.
779 (undo.o): Depend on dispextern.h.
780 (window.o): Depend on coding.h and termhooks.h. Don't depend on
781 dispextern.h and composite.h explicitly.
782 (xdisp.o): Depend on ccl.h.
783 (xfaces.o): Depend on coding.h and ccl.h.
784 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
785 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
786 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
787 ftfont.h.
788 (xgselect.o): New dependency.
789 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
790 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
791 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
792 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
793 (xsmfns.o): Depend on frame.h and dispextern.h.
794 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
795 sysselect.h.
796
797 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
798
799 * font.c (Fclear_font_cache): Pass correct cache argument to
800 font_clear_cache.
801
802 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
803
804 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
805 twice.
806
807 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
808
809 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
810 calling file-remote-p. Reported by Jim Meyering.
811
812 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
813
814 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
815 avoid compiler warnings. (Bug #5217)
816
817 2009-12-14 Kenichi Handa <handa@m17n.org>
818
819 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
820 in 8-bit encoding.
821
822 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
823
824 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
825 tooltip windows.
826
827 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
828
829 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
830 Xatom_net_window_type.
831
832 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
833 Xatom_net_window_type.
834
835 * xterm.c (my_log_handler): New function.
836 (x_term_init): Set my_log_handler as log handler during gtk_init
837 so we can filter out buggy messages. (Bug #5120).
838
839 * xterm.c (xg_scroll_callback): Parameter list changed,
840 use parameter GtkScrollType to determine scroll/line/page.
841 Only allow dragging if a button < 4 is grabbed (bug #5177).
842 (xg_end_scroll_callback): New function.
843 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
844 xg_create_scroll_bar.
845
846 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
847 (scroll_end_callback): Remove.
848 (xg_create_scroll_bar): Add parameter end_callback, bind it to
849 button-release-event. Replace value-changed event with change-value,
850 bug #5177,
851 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
852 bug #5177.
853
854 * gtkutil.h (XG_LAST_SB_DATA): Remove.
855 (xg_create_scroll_bar): Add GCallback end_callback.
856
857 * xftfont.c (QClcdfilter): New variable.
858 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
859 (syms_of_xftfont): Initialize QClcdfilter.
860
861 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
862
863 * xsettings.c (struct xsettings): Add member seen.
864 (parse_xft_settings): Update member seen with what we have read.
865 Return non-zero if Xft-settings have been parsed, 0 otherwise.
866 (apply_xft_settings): Only update Xft settings with what member seen
867 indicates as new.
868
869 2009-12-12 Eli Zaretskii <eliz@gnu.org>
870
871 * dispextern.h (struct text_pos): Use EMACS_INT;
872 (struct glyph): Use EMACS_INT for charpos.
873 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
874 region_beg_charpos, region_end_charpos,
875 redisplay_end_trigger_charpos, and also for
876 iterator_stack_entry.end_charpos and
877 iterator_stack_entry.stop_charpos.
878
879 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
880
881 * gtkutil.c (scroll_end_callback): New function (bug #5177).
882 (xg_create_scroll_bar): Call scroll_end_callback on button release
883 event (bug #5177).
884 (xg_event_is_for_scrollbar): != replaced with ==.
885
886 2009-12-12 Kenichi Handa <handa@m17n.org>
887
888 * ftfont.c (struct ftfont_info): New member matrix.
889 (ftfont_open): Setup xftfont_info->matrix.
890 (MFLTFontFT): New member matrix.
891 (FLOOR, CEIL, ROUND): New macros.
892 (ftfont_get_metrics): Handle matrix transformation.
893 (ftfont_shape_by_flt): New arg matrix. Callers changed.
894
895 * xftfont.c (struct xftfont_info): New member matrix.
896 (xftfont_open): Setup xftfont_info->matrix.
897
898 2009-12-10 Kenichi Handa <handa@m17n.org>
899
900 * xdisp.c (append_space_for_newline): Consider face-remapping.
901
902 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
903
904 * xsettings.c: Include "keyboard.h".
905
906 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
907
908 Fix implicit function declarations.
909 * cmds.c: Include "frame.h".
910 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
911 * frame.h: Move declaration of delete_frame outside of
912 HAVE_WINDOW_SYSTEM.
913
914 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
915
916 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
917
918 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
919 GTK builds.
920
921 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
922
923 * unexelf.c (unexec): Don't search for .data twice.
924
925 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
926
927 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
928 if push failed.
929 (handle_line_prefix): Set avoid_cursor_p here. Check return value
930 of push_display_prop (Bug#5000).
931
932 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
933 value of font_list_entities (Bug#5085).
934
935 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
936
937 Fix `string-to-number' to deal consistently with integers and floats.
938 * lread.c (isfloat_string): New argument ignore_trailing to accept all
939 trailing characters, not just whitespace.
940 (read1): Pass new arg 0 to keep old behavior.
941 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
942 trailing chars, as it is already done for integers. Doc fixes.
943 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
944
945 2009-12-04 Eli Zaretskii <eliz@gnu.org>
946
947 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
948 Delete unused enumeration value.
949
950 2009-12-03 Eli Zaretskii <eliz@gnu.org>
951
952 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
953
954 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
955
956 * process.c (Fmake_network_process): Fix up the tests for
957 "connectionless socket", so they DTRT for seqpacket sockets as well.
958
959 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
960
961 * process.c (Qseqpacket): New symbol.
962 (HAVE_SEQPACKET): New macro.
963 (Fmake_network_process): Accept new :type `seqpacket'.
964 (init_process): Add `seqpacket' feature when applicable.
965 (syms_of_process): Initialize Qseqpacket.
966
967 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
968
969 * font.c (font_load_for_lface, font_open_by_name): Don't store name
970 if entity is Qnil.
971
972 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
973
974 * print.c (print_preprocess): Preprocess the key_and_value table of
975 hashtables, even tho they're "hidden" (bug#5082).
976
977 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
978
979 * frame.c (frame_make_pointer_invisible)
980 (frame_make_pointer_visible): Declare f before statements.
981
982 2009-11-28 Eli Zaretskii <eliz@gnu.org>
983
984 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
985 omitted dependencies on lisp.h.
986
987 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
988
989 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
990 is NULL.
991
992 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
993
994 * frame.c (frame_make_pointer_invisible)
995 (frame_make_pointer_visible): Just return if there isn't any selected
996 frame.
997
998 * search.c (simple_search): Remove warning by making *p const.
999
1000 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1001
1002 * xdisp.c (power_letter): Remove duplicate const.
1003
1004 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1005
1006 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1007
1008 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
1009 defaults (bug #5025).
1010
1011 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1012
1013 * insdel.c (adjust_markers_for_delete): Move it in the
1014 right direction! (bug#4803)
1015
1016 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1017
1018 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1019
1020 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1021
1022 2009-11-24 Glenn Morris <rgm@gnu.org>
1023
1024 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1025
1026 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1027
1028 * Makefile.in: Must create deps for ecrt0.o in its rule.
1029
1030 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1031 because that is what Gtk+ font dialog understands.
1032
1033 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1034 of Fcopy_sequence.
1035 (font_open_by_name): Put name given into QCname for font-object returned.
1036
1037 * frame.c (x_set_font): Save original font name as frame parameter
1038 font-parameter.
1039
1040 * xsettings.c (set_default_xft_settings): New function.
1041 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1042 is found.
1043
1044 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1045
1046 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1047 searching backwards through multibyte buffer.
1048
1049 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1050
1051 * xterm.c: #include xgselect.h.
1052 (x_initialize): Call xgselect_initialize.
1053
1054 * xsettings.c (something_changedCB): C++ comments => C comments.
1055 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1056 does that now.
1057
1058 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1059 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1060 (scroll_bar_button_cb): Remove.
1061 (create_menus): C++ comments => C comments. Don't bind grab-notify
1062 event.
1063 (xg_create_scroll_bar): Don't bind button-press-event and
1064 button-release-event.
1065
1066 * process.c: Include xgselect.h if defined (USE_GTK) ||
1067 defined (HAVE_GCONF).
1068 (wait_reading_process_output): Call xg_select for the same condition.
1069
1070 * xgselect.c (xg_select): New function to better integrate with
1071 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1072
1073 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1074
1075 * Makefile.in (XOBJ): Add xgselect.o.
1076
1077 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1078
1079 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1080 Remove ignored second argument. All callers changed.
1081 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1082 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1083 * xdisp.c (string_char_and_length): Likewise.
1084
1085 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1086
1087 * xterm.c (x_new_font):
1088 * print.c (print_object):
1089 * cmds.c (Fself_insert_command): Move declarations before statements.
1090
1091 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1092
1093 * s/cygwin.h: Remove unneeded linker flags.
1094
1095 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1096
1097 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1098
1099 * xsettings.h: Declare xsettings_get_system_font.
1100
1101 * xsettings.c (xsettings_get_system_font): New function.
1102 (init_gconf): No use initiating gconf unless we have Xft also.
1103 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1104 HAVE_GCONF.
1105
1106 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1107 add a blank entry so it doesn't collapse into nothing.
1108
1109 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1110
1111 * lread.c (Funintern): Comment out last change.
1112
1113 2009-11-19 Richard Stallman <rms@gnu.org>
1114
1115 * lread.c (Funintern): Error if symbol is t or nil.
1116
1117 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1118
1119 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1120 representation of Lisp integers.
1121 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1122
1123 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1124
1125 * lisp.h: Remove declaration of Ffont_get_system_font.
1126 * xfns.c: Move include of "xsettings.h".
1127 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1128
1129 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1130
1131 * xsettings.c (something_changedCB, Ffont_get_system_font):
1132 Check use_system_font.
1133 (syms_of_xsettings): DEFVAR font-use-system-font.
1134
1135 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1136
1137 * xfns.c (x_default_font_parameter): Remove dead assignment.
1138
1139 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1140
1141 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1142
1143 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
1144 not have FC_LCD_*. #define them if not there.
1145
1146 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
1147
1148 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1149
1150 * xterm.c (handle_one_xevent): Call xft_settings_event for
1151 ClientMessage, PropertyNotify and DestroyNotify.
1152 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1153 Call xsettings_initialize.
1154
1155 * xftfont.c (xftfont_fix_match): New function.
1156 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1157 Call xftfont_fix_match after XftFontMatch.
1158
1159 * xfont.c (xfont_driver): Initialize all members.
1160
1161 * xfns.c (x_default_font_parameter):
1162 Try font from Ffont_get_system_font.
1163 Do not get font from x_default_parameter if we got one from
1164 Ffont_get_system_font.
1165 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
1166
1167 * w32font.c (w32font_driver): Initialize all members.
1168
1169 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1170
1171 * lisp.h: Declare syms_of_xsettings.
1172
1173 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1174 Handle CONFIG_CHANGED_EVENT.
1175
1176 * ftfont.c (ftfont_filter_properties): New function.
1177
1178 * frame.c (x_set_font): Remove unused variable lval.
1179
1180 * font.h (struct font_driver): Add filter_properties.
1181
1182 * font.c (font_put_extra): Don't return if val is nil, it means
1183 boolean option is off.
1184 (font_parse_fcname): Collect all extra properties in extra_props
1185 and call filter_properties for all drivers with extra_props and
1186 font as parameter.
1187 (font_open_entity): Do not use cache, it does not pick up new
1188 fontconfig settings like hinting.
1189 (font_load_for_lface): If spec had a name in it, store it in entity.
1190
1191 * emacs.c (main): Call syms_of_xsettings
1192
1193 * config.in: HAVE_GCONF is new.
1194
1195 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1196 xsettings.o is new.
1197
1198 2009-11-17 Kenichi Handa <handa@m17n.org>
1199
1200 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1201 back to the default font in case that no suitable font is found.
1202
1203 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1204
1205 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1206 Suggested by Chad Brown <yandros@mit.edu>.
1207 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1208
1209 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1210
1211 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1212
1213 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1214
1215 * Makefile.in: Ignore errors from mkdir when creating deps directory.
1216
1217 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1218
1219 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1220 has a parent.
1221
1222 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
1223 dependency files in deps/. Include those files into Makefile.
1224
1225 * config.in: Generated (AUTO_DEPEND).
1226
1227 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
1228
1229 * dbusbind.c (Vdbus_registered_objects_table): Rename from
1230 Vdbus_registered_functions_table, because it contains also
1231 properties. Fix docstring.
1232 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
1233
1234 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1235
1236 * alloc.c (mark_object): Don't reprocess marked strings.
1237 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1238 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1239
1240 2009-11-13 Kenichi Handa <handa@m17n.org>
1241
1242 * category.c (word_boundary_p): Adjust for the change of the
1243 semantics of Vword_combining_categories.
1244 (Vword_combining_categories): Describe the slight change of the
1245 semantics.
1246
1247 2009-11-13 Eli Zaretskii <eliz@gnu.org>
1248
1249 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1250
1251 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1252
1253 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1254
1255 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1256
1257 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
1258
1259 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1260
1261 2009-11-11 David Reitter <david.reitter@gmail.com>
1262
1263 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1264 variables to fix 2009-11-09 change.
1265
1266 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1267
1268 * process.c (ifflag_def): Make flag_sym constant.
1269 (Fnetwork_interface_info): Use a constant pointer.
1270 (ifflag_table):
1271 * xfns.c (cursor_bits):
1272 * xdisp.c (power_letter):
1273 * termcap.c (speeds, esctab):
1274 * sysdep.c (baud_convert):
1275 * keyboard.c (lispy_accent_codes, modifier_names):
1276 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1277 (jpeg_format, tiff_format, gif_format, svg_format)
1278 (interlace_start, interlace_increment, gs_format):
1279 * gtkutil.c (separator_names):
1280 * fringe.c (swap_nibble):
1281 * fns.c (base64_value_to_char, base64_char_to_value):
1282 * fileio.c (make_temp_name_tbl):
1283 * coding.c (suffixes): Make constant.
1284
1285 * frame.c (make_initial_frame):
1286 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1287 build_string.
1288 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1289
1290 * s/freebsd.h:
1291 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1292
1293 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1294 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1295
1296 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1297 * xterm.c (syms_of_xterm):
1298 * xfaces.c (syms_of_xfaces):
1299 * xdisp.c (syms_of_xdisp):
1300 * lread.c (syms_of_lread):
1301 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1302 build_string.
1303
1304 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1305
1306 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1307
1308 * fns.c (Fplist_get): Merge the active and the commented out code.
1309
1310 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1311
1312 * keyboard.h: Declare timer_check.
1313
1314 * keyboard.c (timer_check_2): New function that does what the old
1315 timer_check did.
1316 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1317 returned, i.e. don't return -1 with timers pending.
1318
1319 * process.c: Remove extern declaration of timer_check.
1320
1321 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1322 even if timer_check returned -1.
1323
1324 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1325 xg_dialog_data.
1326 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1327 the event loop.
1328 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1329 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1330 Destroy the dialog after xg_dialog_run.
1331
1332 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1333
1334 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1335
1336 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1337
1338 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1339
1340 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
1341
1342 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1343
1344 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1345
1346 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1347 w32menu.c, and nsmenu.m.
1348 Simplify the obsolete case where position is nil.
1349 (cleanup_popup_menu): New function, moved from nsmenu.m.
1350 (struct skp): Remove slot `notreal'.
1351 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1352 adjust callers.
1353 (single_menu_item): Adjust call to parse_menu_item.
1354 (syms_of_menu): Defsubr x-popup-menu.
1355 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1356 (keymap_panes): Don't export any more.
1357 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1358 (xmenu_show): Declare.
1359 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1360 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1361 * keyboard.h (parse_menu_item): Update declaration.
1362 * xmenu.c (Fx_popup_menu): Remove.
1363 (syms_of_xmenu): Don't defsubr x-popup-menu.
1364 * w32menu.c (Fx_popup_menu): Remove.
1365 (syms_of_w32menu): Don't defsubr x-popup-menu.
1366 * nsmenu.m (cleanup_popup_menu): Remove.
1367 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1368 moved to menu.c's Fx_popup_menu.
1369 (Fx_popup_menu): Remove.
1370 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1371 menu_items (it's done in menu.c already).
1372
1373 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1374
1375 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1376 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1377
1378 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
1379
1380 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
1381 xmenu_show. Hide any tooltip before opening a menu.
1382 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1383 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1384
1385 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1386
1387 Let integers use up 2 tags to give them one extra bit and thus double
1388 their range.
1389 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1390 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1391 New macros.
1392 (enum Lisp_Type): Use them. Give explicit values.
1393 (Lisp_Type_Limit): Remove.
1394 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1395 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1396 Pay attention to USE_2_TAGS_FOR_INTS.
1397 (INTEGERP): Use LISP_INT_TAG_P.
1398 * fns.c (internal_equal): Simplify the default case.
1399 (sxhash): Use case_Lisp_Int.
1400 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1401 any more.
1402 (Ftype_of): Use case_Lisp_Int.
1403 (store_symval_forwarding): Take into account the fact that Ints can
1404 now have more than one tag.
1405 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1406 buffer_slot_type_mismatch):
1407 * xfaces.c (face_attr_equal_p):
1408 * print.c (print_object):
1409 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1410 Use case_Lisp_Int.
1411
1412 2009-11-06 Eli Zaretskii <eliz@gnu.org>
1413
1414 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1415
1416 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1417 warning.
1418
1419 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1420
1421 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1422
1423 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1424
1425 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1426 ButtonPressRelease and MotionNotify (bug#4870).
1427
1428 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1429
1430 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1431
1432 * xterm.c (syms_of_xterm):
1433 * xselect.c (syms_of_xselect):
1434 * xmenu.c (syms_of_xmenu):
1435 * xfns.c (syms_of_xfns):
1436 * xfaces.c (syms_of_xfaces):
1437 * xdisp.c (syms_of_xdisp):
1438 * window.c (syms_of_window):
1439 * w32fns.c (syms_of_w32fns):
1440 * undo.c (syms_of_undo):
1441 * textprop.c (syms_of_textprop):
1442 * terminal.c (syms_of_terminal):
1443 * syntax.c (syms_of_syntax):
1444 * sound.c (syms_of_sound):
1445 * search.c (syms_of_search):
1446 * print.c (syms_of_print):
1447 * minibuf.c (syms_of_minibuf):
1448 * macros.c (syms_of_macros):
1449 * keymap.c (syms_of_keymap, initial_define_key)
1450 (initial_define_lispy_key):
1451 * keyboard.c (syms_of_keyboard):
1452 * insdel.c (syms_of_insdel):
1453 * image.c (syms_of_image):
1454 * fringe.c (syms_of_fringe):
1455 * frame.c (syms_of_frame):
1456 * fontset.c (syms_of_fontset):
1457 * fns.c (syms_of_fns):
1458 * fns.c (syms_of_fns):
1459 * fileio.c (syms_of_fileio):
1460 * fileio.c (syms_of_fileio):
1461 * eval.c (syms_of_eval):
1462 * doc.c (syms_of_doc):
1463 * dispnew.c (syms_of_display):
1464 * dired.c (syms_of_dired):
1465 * dbusbind.c (syms_of_dbusbind):
1466 * data.c (syms_of_data):
1467 * composite.c (syms_of_composite):
1468 * coding.c (syms_of_coding):
1469 * cmds.c (syms_of_cmds):
1470 * charset.c (define_charset_internal, syms_of_character):
1471 * ccl.c (syms_of_ccl):
1472 * category.c (syms_of_category, init_category_once):
1473 * casetab.c (syms_of_casetab):
1474 * casefiddle.c (syms_of_casefiddle):
1475 * callint.c (syms_of_callint):
1476 * bytecode.c (syms_of_bytecode):
1477 * buffer.c (keys_of_buffer, syms_of_buffer):
1478 * alloc.c (syms_of_alloc):
1479 * process.c (syms_of_process, init_process):
1480 * lread.c (syms_of_lread, init_obarray):
1481 * font.c (build_style_table):
1482 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1483 intern_c_string, calls to make_pure_string with
1484 make_pure_c_string. Use pure_cons instead of Fcons.
1485
1486 * process.c (socket_options): Make it const.
1487 (set_socket_option, init_process): Use a const pointer.
1488
1489 * lread.c (intern_c_string): New function.
1490 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1491 (defvar_int): Uset it. Make the name const char*.
1492
1493 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1494 (defvar_int): Update prototypes.
1495 (DEFUN, EXFUN): Support for prototypes is now required.
1496 (intern_c_string): New prototype.
1497 (struct Lisp_Subr): Make symbol_name constant.
1498
1499 * font.c (struct table_entry): Remove unused member. Make NAMES
1500 constant.
1501 (weight_table, slant_table, width_table): Make constant.
1502
1503 * emacs.c (struct standard_args): Make name and longname constant.
1504
1505 * character.h (DEFSYM): Use intern_c_string.
1506
1507 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1508
1509 * alloc.c (make_pure_c_string): New function.
1510
1511 * eval.c (Fautoload): Purecopy all arguments.
1512
1513 2009-11-05 Kenichi Handa <handa@m17n.org>
1514
1515 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1516 the buffer in case of replace.
1517
1518 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1519
1520 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1521
1522 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1523
1524 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1525 when applicable (bug#4851).
1526
1527 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1528 (P_): Support for prototypes is now required.
1529
1530 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
1531
1532 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1533 (Bug#4827).
1534
1535 2009-10-30 Eli Zaretskii <eliz@gnu.org>
1536
1537 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
1538
1539 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1540
1541 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1542
1543 * lread.c (Fload): Purecopy the file name when building
1544 Vpreloaded_file_list.
1545
1546 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1547
1548 * w32fns.c (syms_of_w32fns): Change default value of
1549 w32-scroll-lock-modifier to nil. (Bug#2827)
1550
1551 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
1552
1553 * minibuf.c (Fall_completions): Fix typos in docstring.
1554
1555 2009-10-26 Andreas Schwab <schwab@redhat.com>
1556
1557 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1558
1559 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
1560
1561 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1562 For delta < 0, skip check that only makes sense when the mini-window
1563 is going to be enlarged. (Bug#4534)
1564
1565 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
1566
1567 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1568 string in menu maps (Bug#4471).
1569
1570 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
1571
1572 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1573 FRAME_NS_VIEW on terminal frames (Bug#4765).
1574
1575 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1576
1577 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1578 DBUS_TYPE_UINTnn separately to get proper sign extension.
1579
1580 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1581 can properly handle unsigned types.
1582 (make_uid, make_gid): Remove.
1583
1584 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1585 types again.
1586
1587 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
1588 (system_process_attributes): Likewise.
1589
1590 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1591
1592 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1593
1594 * eval.c (Fautoload): Purecopy the filename. Simplify.
1595
1596 * category.c (Fdefine_category): Purecopy docstring.
1597
1598 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1599
1600 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1601
1602 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1603
1604 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
1605
1606 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1607 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1608 (Bug#4775).
1609
1610 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1611
1612 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1613 (init_fileio_once):
1614 * lisp.h (init_fileio_once): Remove.
1615 * emacs.c (main): Don't call init_fileio_once.
1616
1617 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1618
1619 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1620
1621 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1622
1623 * doprnt.c (doprnt): Fix overflow check.
1624
1625 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1626
1627 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1628
1629 * xterm.h (x_wait_for_event): Declare it.
1630
1631 * xterm.c (pending_event_wait): New variable.
1632 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1633 see pending_event_wait.eventtype.
1634 (handle_one_xevent): Don't change gravity when parent changes.
1635 (x_new_font): Call change_frame_size with new rows/columns before we
1636 try to resize the frame.
1637 (x_wait_for_event): New function.
1638 (x_set_window_size_1): Don't change gravity unless change_gravity
1639 is set.
1640 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
1641 don't change frame size, instead wait for the ConfigureNotify.
1642 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
1643 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
1644 (x_initialize): Initialize pending_event_wait.
1645
1646 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
1647 size.
1648
1649 * widget.c (EmacsFrameSetValues): Add comment.
1650 (EmacsFrameSetCharSize): Just call x_set_window_size.
1651
1652 * gtkutil.c (xg_frame_set_char_size): Flush events and call
1653 x_wait_for_event.
1654 (flush_and_sync): Remove again.
1655 (xg_get_font_name): Suggest monospace if no previous font is known.
1656
1657 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
1658
1659 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
1660 8th bit, since that only made sense in the ASCII world (bug#4751).
1661
1662 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1663
1664 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
1665 processing pending events when event is filtered for input method.
1666 (Bug#3681)
1667
1668 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
1669
1670 * fns.c: Add #endif accidentally removed in previous change.
1671
1672 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1673
1674 * fns.c: Remove code for unsupported system: MAC_OS.
1675 * image.c: Likewise. Include setjmp.h.
1676
1677 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
1678
1679 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
1680 pixel -1 (bug #4742).
1681
1682 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1683
1684 * process.c (create_pty): Remove conditionals for no longer
1685 supported systems: UNIPLUS and RTU.
1686
1687 * xterm.c:
1688 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
1689
1690 * alloc.c: Do not define struct catchtag.
1691 * eval.c: Move struct catchtag definition ...
1692 * lisp.h: ... here.
1693
1694 * image.c: Move png.h #include earlier to avoid warnings.
1695
1696 * xterm.c:
1697 * xsmfns.c:
1698 * xselect.c:
1699 * xrdb.c:
1700 * xmenu.c:
1701 * xftfont.c:
1702 * xfont.c:
1703 * xfns.c:
1704 * xfaces.c:
1705 * xdisp.c:
1706 * window.c:
1707 * widget.c:
1708 * w32xfns.c:
1709 * w32uniscribe.c:
1710 * w32term.c:
1711 * w32select.c:
1712 * w32reg.c:
1713 * w32proc.c:
1714 * w32menu.c:
1715 * w32inevt.c:
1716 * w32heap.c:
1717 * w32font.c:
1718 * w32fns.c:
1719 * w32console.c:
1720 * w32.c:
1721 * w16select.c:
1722 * vm-limit.c:
1723 * unexsol.c:
1724 * unexec.c:
1725 * unexcw.c:
1726 * unexaix.c:
1727 * undo.c:
1728 * tparam.c:
1729 * textprop.c:
1730 * terminfo.c:
1731 * terminal.c:
1732 * termcap.c:
1733 * term.c:
1734 * syntax.c:
1735 * sound.c:
1736 * sheap.c:
1737 * search.c:
1738 * scroll.c:
1739 * region-cache.c:
1740 * regex.c:
1741 * ralloc.c:
1742 * process.c:
1743 * print.c:
1744 * nsterm.m:
1745 * nsselect.m:
1746 * nsmenu.m:
1747 * nsimage.m:
1748 * nsfont.m:
1749 * nsfns.m:
1750 * msdos.c:
1751 * minibuf.c:
1752 * menu.c:
1753 * marker.c:
1754 * macros.c:
1755 * keymap.c:
1756 * keyboard.c:
1757 * intervals.c:
1758 * insdel.c:
1759 * indent.c:
1760 * gtkutil.c:
1761 * ftxfont.c:
1762 * ftfont.c:
1763 * fringe.c:
1764 * frame.c:
1765 * fontset.c:
1766 * font.c:
1767 * fns.c:
1768 * floatfns.c:
1769 * filelock.c:
1770 * fileio.c:
1771 * emacs.c:
1772 * editfns.c:
1773 * dosfns.c:
1774 * doprnt.c:
1775 * doc.c:
1776 * dispnew.c:
1777 * dired.c:
1778 * dbusbind.c:
1779 * data.c:
1780 * composite.c:
1781 * coding.c:
1782 * cmds.c:
1783 * cm.c:
1784 * chartab.c:
1785 * charset.c:
1786 * character.c:
1787 * ccl.c:
1788 * category.c:
1789 * casetab.c:
1790 * casefiddle.c:
1791 * callproc.c:
1792 * callint.c:
1793 * bytecode.c:
1794 * buffer.c:
1795 * atimer.c: Include setjmp.h. (Bug#4643)
1796
1797 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
1798
1799 Remove leftover table unibyte_to_multibyte_table.
1800 * character.c (unibyte_to_multibyte_table): Remove.
1801 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
1802 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
1803 * character.h (UNIBYTE_TO_CHAR): New macro.
1804 (MAKE_CHAR_MULTIBYTE): Use it.
1805 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
1806 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
1807 (message_dolog, set_message_1):
1808 * search.c (Freplace_match):
1809 * editfns.c (Fcompare_buffer_substrings):
1810 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
1811 (concat):
1812 * insdel.c (copy_text, count_size_as_multibyte):
1813 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
1814 * term.c (produce_glyphs):
1815 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
1816 * regex.c (RE_CHAR_TO_MULTIBYTE):
1817 * cmds.c (internal_self_insert):
1818 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
1819
1820 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
1821
1822 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
1823
1824 * puresize.h (BASE_PURESIZE): Increase to 1310000.
1825
1826 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
1827
1828 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
1829
1830 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1831
1832 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
1833 still needed under Tiger.
1834
1835 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
1836
1837 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
1838 __Apple__.
1839
1840 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
1841
1842 2009-10-15 Kenichi Handa <handa@m17n.org>
1843
1844 * print.c (print_object): Escape a symbol like "2E10" too.
1845
1846 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
1847
1848 Cleanups and changes for 64-bit compile under Snow Leopard.
1849 Based on suggestions by Erik Charlebois.
1850
1851 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
1852
1853 * nsfont.m (ns_char_width): Replace deprecated call.
1854 (ns_findfonts, nsfont_list_family): Use long format in printf, and
1855 cast argument.
1856 (nsfont_open): Use ns_char_width() everywhere.
1857 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
1858
1859 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
1860
1861 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
1862 where appropriate.
1863
1864 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
1865 where appropriate.
1866 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
1867 Use stringWithUTF8String.
1868 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
1869
1870 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
1871 Add formal protocol mention to inheritance.
1872 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
1873
1874 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
1875 Fix printf format.
1876 (ns_query_color): Use CGFloat where appropriate.
1877 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
1878 (EmacsScroller-mouseDown:): Use long format in printf, and cast
1879 argument.
1880
1881 * config.in (NS_HAVE_NSINTEGER): Drop.
1882
1883 * dbusbind.c (dbus-method-return-internal)
1884 (dbus-method-error-internal): Use long format in printf, and cast
1885 argument.
1886
1887 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
1888 in printf, and cast argument.
1889
1890 * process.c (list_processes_1): Use long format in printf, and
1891 cast argument.
1892
1893 2009-10-11 Glenn Morris <rgm@gnu.org>
1894
1895 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
1896
1897 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
1898
1899 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
1900 menu bar with a small width so it doesn't enlarge the frame.
1901
1902 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
1903
1904 * fontset.c (Fset_fontset_font): Fix typos in error messages.
1905
1906 2009-10-06 Glenn Morris <rgm@gnu.org>
1907
1908 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
1909 SOME_MACHINE_LISP (this enters indirectly via DOC).
1910
1911 2009-10-05 Eli Zaretskii <eliz@gnu.org>
1912
1913 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
1914
1915 2009-10-04 Eli Zaretskii <eliz@gnu.org>
1916
1917 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
1918 Doc fix.
1919
1920 2009-10-03 Martin Rudalics <rudalics@gmx.at>
1921
1922 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
1923
1924 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
1925
1926 * lisp.h (Qdelete_directory_internal): Remove, because it is not
1927 used anymore outside fileio.c.
1928
1929 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
1930
1931 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
1932
1933 * lisp.h (Qdelete_directory_internal):
1934 Declare, instead of Qdelete_directory.
1935
1936 * w32fns.c (Fsystem_move_file_to_trash): Use it.
1937
1938 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1939
1940 * eval.c (Fcalled_interactively_p): Add `kind' argument.
1941
1942 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
1943
1944 * fileio.c (Fdelete_directory_internal): Rename from
1945 Fdelete_directory. It is not a command anymore. It has no file
1946 name handler.
1947
1948 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1949
1950 * xdisp.c (get_next_display_element): Use an enum in last change.
1951
1952 2009-09-28 Kenichi Handa <handa@m17n.org>
1953
1954 * xdisp.c (get_next_display_element): Pay attention to
1955 unibyte_display_via_language_environment in handling
1956 Vnobreak_char_display.
1957
1958 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1959
1960 * nsterm.h (ns_app_name): New extern variable.
1961
1962 * nsterm.m (ns_app_name): New variable.
1963 (ns_term_init): Set and use it.
1964 (ns_term_shutdown): Use it.
1965
1966 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1967 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1968
1969 * nsfns.m (ns_set_name_iconic, ns_set_name)
1970 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1971 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1972
1973 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1974 Remove double-casting in client_data comparison.
1975
1976 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1977
1978 * keyboard.c (make_lispy_event): Remember last wheel direction.
1979 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1980
1981 2009-09-26 Glenn Morris <rgm@gnu.org>
1982
1983 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1984 internal.elc. Add term/pc-win.elc.
1985 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1986 term/x-win.elc.
1987 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1988 term/w32-win.elc.
1989 (NS_SUPPORT): New.
1990 (lisp): Add NS_SUPPORT.
1991 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
1992
1993 2009-09-25 David Reitter <david.reitter@gmail.com>
1994
1995 * nsmenu.m (EmacsMenu-clear): Recognize application menu
1996 on Mac OS X 10.6+ (bug#4513).
1997
1998 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
1999
2000 * frame.c (xrdb_get_resource): Return nil for empty string resources;
2001 some parts of Emacs code (like font selection) don't grok them.
2002 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
2003
2004 2009-09-24 Andreas Schwab <schwab@redhat.com>
2005
2006 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2007
2008 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
2009
2010 * dired.c (Fdirectory_files): Fix typo in docstring.
2011
2012 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2013
2014 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2015 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2016 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2017 under GNUstep.
2018 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2019
2020 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2021 glyph advancement.
2022
2023 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2024
2025 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
2026 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
2027
2028 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2029 deleted (bug #4492).
2030
2031 * nsfont.m (Vns_reg_to_script): New lisp variable.
2032 (syms_of_nsfont): Declare it.
2033 (ns_registry_to_script): New function.
2034 (ns_get_req_script): Call it.
2035 (ns_findfonts): Don't give up on non-unicode registry.
2036
2037 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2038
2039 2009-09-20 Tom Tromey <tromey@redhat.com>
2040
2041 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2042 batch mode (bug#4228).
2043
2044 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
2045
2046 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
2047 carefully. (Bug #4339)
2048
2049 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
2050
2051 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
2052
2053 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2054
2055 * emacs.c (inhibit_x_resources): Update doc string for NS.
2056 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
2057 legacy code for -NXHost. Fix error printf in daemon case.
2058
2059 * nsterm.h (ns_no_defaults): Remove.
2060
2061 * nsterm.m (ns_no_defaults): Remove.
2062 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2063 (ns_use_qd_smoothing): Remove legacy variable.
2064 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2065 don't update the NSWindow itself.
2066 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
2067 state detection and store user rect ourselves. (Bug #3581)
2068
2069 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2070 ns_use_qd_smoothing.
2071
2072 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2073 platform versions. Drop support for emacs-20-style face specs.
2074 (x-close-connection): Drop PSFlush() under OS X.
2075 (x-focus-frame): Activate the app first. (Bug #4180)
2076
2077 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
2078
2079 * emacs.c (inhibit_x_resources): New variable.
2080 (main) [HAVE_NS]: Don't process --quick command line option.
2081 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2082
2083 * lisp.h (inhibit_x_resources): Declare it extern.
2084
2085 * w32reg.c (x_get_string_resource):
2086 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2087
2088 2009-09-17 Eli Zaretskii <eliz@gnu.org>
2089
2090 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2091 Add lisp/term/internal.elc.
2092
2093 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2094
2095 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2096 (bug#4461).
2097
2098 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2099
2100 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2101
2102 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2103 (OBJECTS_MACHINE): Remove, unused.
2104
2105 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2106
2107 * frame.c (x_get_resource_string): Remove unused.
2108
2109 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2110
2111 * xterm.c (x_new_font): Call change_frame_size before calling
2112 x_set_window_size, in case frame size won't change.
2113
2114 * frame.c (x_set_font): Remove dead code.
2115
2116 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2117
2118 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2119
2120 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2121
2122 * lread.c (Fload): Don't output a message after loading an obsolete
2123 package any more (done in Lisp now).
2124
2125 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
2126
2127 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2128
2129 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2130
2131 * keymap.c (Fwhere_is_internal): Use nconc2.
2132
2133 2009-09-11 Alan Mackenzie <acm@muc.de>
2134
2135 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2136 batch mode.
2137
2138 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2139
2140 * xdisp.c (display_mode_element): Detect cycles.
2141
2142 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2143
2144 * keymap.c (where_is_internal): Don't erroneously return nil right after
2145 filling the cache.
2146 (where_is_internal_1): Fix up typo.
2147
2148 2009-09-11 Glenn Morris <rgm@gnu.org>
2149
2150 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2151 share a common doc-string.
2152
2153 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2154
2155 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2156 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2157
2158 * keymap.c (QCadvertised_binding): New constant.
2159 (syms_of_keymap): Initialize it.
2160 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2161 if applicable.
2162
2163 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2164
2165 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2166 (parse_menu_item): Streamline since bindings are recomputed all the
2167 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2168 more and don't support lmenu's menu-alias any more either.
2169
2170 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2171 (where_is_internal): Strip it down to only traverse the keymaps.
2172 Move the cache handling from Fwhere_is_internal to here.
2173 (Fwhere_is_internal): Move the handling of remapping and the choice of
2174 the best binding from where_is_internal to here.
2175 Unify the cached/noncached paths, so remapping is also handled
2176 correctly when the cache is used, and so the cache can be used to
2177 speed up remap-handling when applicable.
2178 Give preference to non-remapped bindings.
2179 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2180 non-remapped bindings.
2181 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2182 command remapping.
2183
2184 * xdisp.c (display_mode_element): Move list length limit from 50 to
2185 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2186
2187 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
2188
2189 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2190
2191 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2192
2193 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2194 (Bug#4334)
2195
2196 * keymap.c (where_is_internal): Filter out shadowed remappings.
2197 Assume that where_is_internal returns unshadowed bindings to simplify
2198 the code and get rid of the gotos. Use ASIZE.
2199
2200 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2201
2202 * xterm.c (x_focus_changed): If we get a focusout and pointer
2203 is invisible, make it visible.
2204
2205 * xterm.h: Remove condition for declaration of
2206 x_*_window_to_frame.
2207
2208 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2209
2210 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2211 initial terminal as well.
2212
2213 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2214
2215 * xterm.h: Rename x_non_menubar_window_to_frame to
2216 x_menubar_window_to_frame.
2217
2218 * xterm.c: Remove declarations also in xterm.h
2219 (XTmouse_position): Do not return valid positions
2220 for clicks in the menubar and the toolbar for Gtk+.
2221
2222 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2223 if the widget for the event has the same top level as a frame,
2224 return the frame.
2225 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2226 internal windows, bug #4122.
2227 (x_non_menubar_window_to_frame): Remove.
2228
2229 2009-09-02 Glenn Morris <rgm@gnu.org>
2230
2231 * buffer.c (default-major-mode): Move most of the doc from here...
2232 (major-mode): ... to here.
2233
2234 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
2235
2236 * process.c (wait_reading_process_output): Keep the descriptor
2237 when pty is used by a non-child process, e.g., in I/O buffer of
2238 GDB this allows inferior to be restarted.
2239
2240 2009-08-29 Eli Zaretskii <eliz@gnu.org>
2241
2242 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2243 both branches into one.
2244
2245 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2246
2247 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2248 (main): Use enable-multibyte-characters rather than
2249 default-enable-multibyte-characters. Output a warning message when
2250 running a unibyte session.
2251
2252 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2253
2254 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2255 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2256 (copy_data_segment): Also copy __program_vars section.
2257 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2258 (dump_it) [LC_DYLD_INFO]: Use it.
2259
2260 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2261
2262 2009-08-28 Eli Zaretskii <eliz@gnu.org>
2263
2264 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2265 $(SRC)/buildobj.h.
2266 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2267 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2268 $(SRC)/buildobj.h.
2269 (clean): Add buildobj.h.
2270
2271 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2272
2273 * print.c (print_object): Set escapeflag to 1 when printing
2274 hashtable keys and values.
2275
2276 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2277
2278 * lread.c (read_integer): Use doubles (and potentially return a float
2279 number) as we do in string-to-number.
2280 (read1): Use strtol to read integers, signal errors on strtol's
2281 overflow and use floats if strtol's output is too large for
2282 Elisp integers.
2283
2284 2009-08-27 Eli Zaretskii <eliz@gnu.org>
2285
2286 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2287 (make-buildobj-SH): Fix last change.
2288 (SRC): Move to before where it's first used.
2289
2290 2009-08-27 Kenichi Handa <handa@m17n.org>
2291
2292 * process.c (send_process): Use encode_coding_object instead of
2293 encode_coding_string to perform eol-conversion even if the string
2294 is unibyte.
2295
2296 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2297 character.
2298
2299 * cmds.c (Fself_insert_command): Avoid unnecessay
2300 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
2301
2302 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2303
2304 * callproc.c (Fcall_process): Remove always true #if.
2305
2306 * lisp.h: Replace #if 0 code for checking with text pointing to
2307 the --enable-checking configure flag.
2308
2309 * emacs.c (main): Mention the --enable-profiling configure flag
2310 instead of using CFLAGS.
2311
2312 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
2313
2314 * Makefile.in (buildobj.h): New target.
2315 (doc.o): Depend on it.
2316 (temacs${EXEEXT}): Don't generate buildobj.lst.
2317 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2318 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2319 ($(BLD)/doc.$(O)): Depend on it.
2320 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2321 provided by Eli Zaretskii.)
2322 ($(TEMACS)): Don't generate buildobj.lst.
2323 * doc.c: Include buildobj.h.
2324 (buildobj): New static variable.
2325 (Fsnarf_documentation): Use it, instead of opening and reading
2326 buildobj.lst.
2327
2328 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
2329
2330 * dbusbind.c (Fdbus_call_method)
2331 (Fdbus_call_method_asynchronously): Use English numeric format for
2332 timeout values in doc string.
2333
2334 2009-08-25 Kenichi Handa <handa@m17n.org>
2335
2336 * alloc.c (mark_char_table): New function.
2337 (mark_object): Use mark_char_table for a char-table.
2338
2339 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2340 (CHAR_TABLE_REF): Use it.
2341
2342 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
2343
2344 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2345 before invoking the newly build emacs to check for load-path
2346 shadowing.
2347
2348 2009-08-22 Glenn Morris <rgm@gnu.org>
2349
2350 * Makefile.in (bootstrap_exe): New variable.
2351 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2352 Use ${bootstrap_exe}.
2353
2354 2009-08-22 Eli Zaretskii <eliz@gnu.org>
2355
2356 * coding.h (encode_coding_string): Don't encode unibyte strings.
2357 (Bug#4047)
2358
2359 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
2360
2361 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2362
2363 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2364 intended as hotfix only.
2365 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2366
2367 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2368
2369 * nsterm.m (ns_get_color): Update documentation properly for last
2370 change, and clean up loose ends in the code left by it. Fix
2371 longstanding bug with 16-bit hex parsing, and add support for
2372 yet another X11 format (rgb:r/g/b) for compatibility.
2373 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2374 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2375
2376 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2377
2378 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2379
2380 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
2381
2382 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2383 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2384 (xd_initialize, xd_pending_messages): Check, whether
2385 $DBUS_SESSION_BUS_ADDRESS is set.
2386
2387 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2388
2389 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2390
2391 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2392
2393 2009-08-20 Glenn Morris <rgm@gnu.org>
2394
2395 * emacs.c (system-type): Doc fix.
2396
2397 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2398
2399 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2400 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2401
2402 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
2403
2404 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2405 New functions.
2406 (xd_initialize): Revert change from 2009-08-16.
2407
2408 2009-08-18 Kenichi Handa <handa@m17n.org>
2409
2410 * fontset.c (Ffontset_font): If a nil element is found in a
2411 font-group vector, return nil.
2412
2413 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
2414
2415 * process.c (status_notify): Don't perform redisplay.
2416 (Fdelete_process, list_processes_1, process_send_signal):
2417 Expliticly perform redisplay.
2418 (wait_reading_process_output): Always check process status, but
2419 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2420
2421 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
2422
2423 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
2424 (XFLOAT_INIT): New macro for storing a float value.
2425 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2426 * fns.c (sxhash): Copy out the value of a float in order to
2427 examine its bytes.
2428 * dbusbind.c (xd_append_arg): Likewise.
2429
2430 * emacs.c (main): Don't call syms_of_data twice.
2431
2432 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
2433
2434 * dbusbind.c (xd_initialize): Add connection file descriptor to
2435 input_wait_mask, in order to let select() detect, whether a new
2436 message has been arrived.
2437 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
2438
2439 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
2440
2441 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2442 New functions.
2443
2444 * lisp.h (xd_pending_messages): Declare.
2445
2446 * keyboard.c (readable_events): Call xd_pending_messages.
2447
2448 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
2449
2450 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
2451
2452 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2453
2454 * buffer.c (set_buffer_internal_1)
2455 (swap_out_buffer_local_variables): Check for unbound local
2456 variables (Bug#4138).
2457
2458 2009-08-14 Eli Zaretskii <eliz@gnu.org>
2459
2460 * process.c (create_pty): Fix last change.
2461
2462 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
2463
2464 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2465 (xbm_load_image): Caller changed.
2466 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
2467
2468 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
2469
2470 * process.c (create_pty): New function.
2471 (Fstart_process): Use it to allow Emacs to just associate a pty
2472 with the buffer. See associated change in gdb-mi.el.
2473 (list_processes_1): Deal with no program name.
2474 (start_process_unwind): Use pid == -2 to mean no process.
2475
2476 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2477
2478 * cmds.c (nonundocount): New global variable.
2479 (keys_of_cmds): Initialize it.
2480 (Fself_insert_command): Use it to combine upto 20 sequential chars
2481 into a single undo entry, just like the Qself_insert_command code in
2482 keyboard.c does.
2483 Call frame_make_pointer_invisible, also like the Qself_insert_command
2484 code in keyboard.c does.
2485 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2486 than its own local replacement for it.
2487
2488 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
2489
2490 * fns.c (concat): Don't re-set string length to its current value.
2491
2492 * coding.h (decode_coding_string, encode_coding_string):
2493 Use SBYTES macro.
2494
2495 * doprnt.c (doprnt_lisp): Delete unused function.
2496 (doprnt): Merge with doprnt1, discarding lispstrings code.
2497 * lisp.h (doprnt_lisp): Don't declare.
2498
2499 2009-08-07 Juri Linkov <juri@jurta.org>
2500
2501 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2502
2503 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2504
2505 * print.c (syms_of_print): Undo previous change.
2506
2507 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2508
2509 * lread.c (read1, syms_of_lread): Read hashtables back from the
2510 readable format.
2511
2512 * print.c (print_preprocess, print_object): Print hashtables fully
2513 and readably.
2514 (syms_of_print): Provide 'hashtable-print-readable.
2515
2516 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2517
2518 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2519 no family set.
2520 (nsfont_open): Handle case when entity has no family.
2521
2522 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2523
2524 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2525 element, not a list, for match case.
2526
2527 2009-07-28 Kenichi Handa <handa@m17n.org>
2528
2529 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2530 rigidly.
2531
2532 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2533 font_parse_xlfd. Check font properties more rigidly.
2534
2535 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2536
2537 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2538 bsd-common.h.
2539
2540 2009-07-27 Kenichi Handa <handa@m17n.org>
2541
2542 * xfaces.c (face_with_height): Call font_clear_prop.
2543
2544 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
2545
2546 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2547
2548 * xterm.c (x_term_init): Use Qx.
2549
2550 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2551
2552 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
2553 (ns_get_color): Revert 2009-07-16 change.
2554
2555 2009-07-25 Eli Zaretskii <eliz@gnu.org>
2556
2557 * lread.c (syms_of_lread) <force_load_messages>: New variable.
2558 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
2559
2560 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
2561
2562 * coding.h (decode_coding_string, encode_coding_string):
2563 Use SCHARS macro.
2564
2565 * lread.c: Rewrite 2009-07-21 changes.
2566 (load_depth): Delete.
2567 (Qload_in_progress): New variable.
2568 (load_unwind): Don't reference load_depth or load_in_progress.
2569 (Fload): Likewise; specbind Qload_in_progress instead.
2570 (init_lread): Don't initialize load_depth.
2571 (syms_of_lread): Initialize and protect Qload_in_progress.
2572
2573 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2574
2575 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2576
2577 2009-07-23 Yavor Doganov <yavor@gnu.org>
2578
2579 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2580
2581 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2582
2583 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
2584 Bugs 3792, 3720, 2402.
2585 (ns_lookup_indexed_color): Check for bad index.
2586 (ns_index_color): Init unused slot to 0.
2587 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2588 Bug 3714, possibly 3082.
2589
2590 2009-07-22 Jason Rumney <jasonr@gnu.org>
2591
2592 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2593 Position IME window at cursor (Bug#2570).
2594 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2595 (globals_of_w32fns): Dynamically load functions required above.
2596
2597 * w32term.c (w32_draw_window_cursor): Send message to reposition
2598 any IME window.
2599
2600 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
2601
2602 * fileio.c: Revert 2009-07-16 changes.
2603 (Vauto_save_include_big_deletions): New variable.
2604 (Fdo_auto_save): Disable auto-save only if
2605 auto-save-include-big-deletions is nil.
2606
2607 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
2608
2609 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2610 the overflowed pixels into account (Bug#3879).
2611
2612 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
2613
2614 * lread.c (load_depth): New variable.
2615 (Fload, load_unwind, init_lread): Set it to the load recursion
2616 depth; set load_in_progress as a simple boolean based on the
2617 current load_depth. (Bug#3892)
2618
2619 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2620
2621 * nsfont.m (ns_has_attribute): Remove.
2622 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2623
2624 2009-07-18 Juri Linkov <juri@jurta.org>
2625
2626 * process.c (Fset_process_query_on_exit_flag): Mention killing
2627 a buffer in docstring.
2628
2629 2009-07-17 Kenichi Handa <handa@m17n.org>
2630
2631 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2632
2633 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2634
2635 * nsfns.m (Fns_set_alpha): Remove function.
2636 (syms_of_nsfns): Don't defsubr it.
2637
2638 * nsterm.m (ns_get_color): Remove incompatible color formats.
2639 (ns_color_to_lisp): Generate #rrggbb color format string.
2640
2641 2009-07-16 Richard Stallman <rms@gnu.org>
2642
2643 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
2644 (Fset_buffer_auto_saved): Handle save_length = -2.
2645
2646 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
2647
2648 * xterm.c (Qx_gtk_map_stock): New var.
2649
2650 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
2651 of calling intern each time.
2652
2653 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2654
2655 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
2656 does tiling.
2657
2658 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
2659
2660 2009-07-14 Kenichi Handa <handa@m17n.org>
2661
2662 * font.c (font_vconcat_entity_vectors): New function.
2663 (struct font_sort_data): New member font_driver_preference.
2664 (font_compare): Check font_driver_preference.
2665 (font_sort_entities): The format of the first argument changed.
2666 (font_delete_unmatched): Likewise.
2667 (font_list_entities): The return type changed.
2668 (font_select_entity): The format of the second argument changed.
2669 (font_find_for_lface): Adjuste for the above changes.
2670 Don't suppress the checking of C even if the repertory supports it.
2671 (Flist_fonts): Adjust for the above changes.
2672
2673 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
2674 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
2675 Reject a font who has adstyle property that is different from a
2676 langname derived from registry property.
2677 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
2678
2679 2009-07-13 Eli Zaretskii <eliz@gnu.org>
2680
2681 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
2682 local copy of dirfilename.
2683
2684 2009-07-13 Kenichi Handa <handa@m17n.org>
2685
2686 * chartab.c (sub_char_table_ref_and_range): Fix the range check
2687 against max_char.
2688
2689 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
2690 calling XSYMBOL (sym).
2691
2692 2009-07-11 Eli Zaretskii <eliz@gnu.org>
2693
2694 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
2695 New function.
2696 (directory_files_internal) [WINDOWSNT]:
2697 Bind w32-get-true-file-attributes to either t or nil, depending whether
2698 the filesystem of the directory is fast or slow.
2699
2700 * w32.c (logon_network_drive): Don't assume PATH is an absolute
2701 file name.
2702 (is_slow_fs): New function.
2703 (stat): Use it to determine whether to issue more system calls to
2704 get accurate file attributes, when w32-get-true-file-attributes is
2705 `local'.
2706
2707 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
2708
2709 * xfns.c (Fx_select_font): Remember last font selected in
2710 x_last_font_name and use that the next time. Also try the frame
2711 parameter font-parameter as default to the font dialog.
2712
2713 2009-07-10 Kenichi Handa <handa@m17n.org>
2714
2715 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
2716
2717 2009-07-09 Eli Zaretskii <eliz@gnu.org>
2718
2719 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
2720
2721 * w32.c (stat): Treat UNC file names as residing on remote
2722 drives. (Bug#3542)
2723
2724 2009-07-09 Kenichi Handa <handa@m17n.org>
2725
2726 * fontset.c (fontset_find_font): Fix previous change.
2727
2728 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
2729
2730 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
2731 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
2732 error flag.
2733
2734 2009-07-08 Kenichi Handa <handa@m17n.org>
2735
2736 * fontset.c (fontset_find_font): Fix the logic of handling
2737 charset_matched.
2738 (font_for_char): Delete unused var.
2739 (generate_ascii_font_name): Delete it.
2740
2741 * coding.h (JIS_TO_SJIS2): Fix the code range check.
2742
2743 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
2744 (encode_coding_sjis): Fix the code range check.
2745
2746 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
2747
2748 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
2749 (Fexpand_file_name): Copy string data properly (Bug#3772).
2750
2751 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
2752
2753 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
2754 first MapNotify.
2755
2756 2009-07-07 Kenichi Handa <handa@m17n.org>
2757
2758 * character.h (unibyte_has_multibyte_table): Delete extern.
2759 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
2760
2761 * charset.c (Fset_charset_priority): Update charset_unibyte.
2762 (syms_of_charset): Initialize charset_unibyte.
2763
2764 * character.c (unibyte_has_multibyte_table): Delete it.
2765 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
2766 charset_unibyte.
2767 (multibyte_char_to_unibyte_safe): Likewise.
2768 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
2769
2770 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
2771 (x_produce_glyphs): Likewise.
2772
2773 * .gdbinit (xcharset): Fix the treating $arg0.
2774
2775 2009-07-04 Eli Zaretskii <eliz@gnu.org>
2776
2777 Emulation of `getloadavg' on MS-Windows.
2778 * w32.c: Include float.h
2779 (g_b_init_get_native_system_info, g_b_init_get_system_times)
2780 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
2781 (get_native_system_info, get_system_times): New functions.
2782 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
2783 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
2784 (globals_of_w32): Initialize g_b_init_get_native_system_info,
2785 g_b_init_get_system_times, and num_of_processors.
2786
2787 2009-07-03 Jason Rumney <jasonr@gnu.org>
2788
2789 * w32term.c (w32_initialize): Use standard types.
2790
2791 2009-07-03 Eli Zaretskii <eliz@gnu.org>
2792
2793 * dired.c (Ffile_attributes): Decode user and group names by the
2794 locale's encoding. (Bug#3443)
2795
2796 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
2797
2798 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
2799 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
2800
2801 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
2802
2803 * term.c (init_tty): Remove spurious #ifdef.
2804
2805 * m/mips.h: Mention this file is also used for netbsd.
2806 * m/pmax.h: Remove file.
2807
2808 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
2809
2810 * xterm.h (struct x_display_info): Add invisible_cursor.
2811 (struct x_output): Add current_cursor.
2812
2813 * xterm.c (XTtoggle_invisible_pointer): New function.
2814 (x_define_frame_cursor): Don't define cursor if invisible or the
2815 same as before. Set current_cursor.
2816 (x_create_terminal): Set toggle_invisible_pointer_hook.
2817
2818 * xfns.c (make_invisible_cursor): New function.
2819 (x_set_mouse_color): Call make_invisible_cursor.
2820 Set current_cursor.
2821 (x_window): Set current_cursor.
2822
2823 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
2824
2825 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
2826 inserting a character.
2827 (read_avail_input): Call frame_make_pointer_visible.
2828
2829 * frame.c (Vmake_pointer_invisible): New variable.
2830 (frame_make_pointer_invisible, frame_make_pointer_visible):
2831 New functions.
2832 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
2833
2834 * frame.h: Declare frame_make_pointer_invisible and
2835 frame_make_pointer_visible.
2836 (struct frame): Add pointer_invisible.
2837
2838 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
2839
2840 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
2841 frame isn't visible.
2842 (xg_frame_resized): If width/height is -1, get size of window
2843 from X server.
2844
2845 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
2846 for MapNotify.
2847
2848 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
2849 here or call change_frame_size. Just call flush_and_sync.
2850 (flush_and_sync): Reintroduce.
2851
2852 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
2853
2854 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
2855
2856 * xterm.c (x_handle_net_wm_state): Also look for sticky.
2857 (x_term_init): Initialize Xatom_net_wm_state_sticky.
2858
2859 * frame.h: Declare Qsticky.
2860
2861 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
2862
2863 * nsfns.m (ns_frame_parm_handlers): Ditto.
2864
2865 * frame.c: Declare Qsticky.
2866 (frame_parms): Add sticky.
2867
2868 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
2869
2870 * xterm.h: Declare x_set_sticky.
2871
2872 * xterm.c (x_set_sticky): New function.
2873
2874 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
2875 (xg_tool_bar_menu_proxy): Attach enter/leave events to
2876 xg_tool_bar_proxy_help_callback.
2877
2878 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
2879
2880 * frame.c: Qmaximized is new.
2881 (x_set_frame_parameters): Do not handle fullscreen specially.
2882 Only set width and height if explicitly set.
2883 (x_set_fullscreen): Handle Qmaximized.
2884 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
2885 (syms_of_frame): Initialize Qmaximized.
2886
2887 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
2888 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
2889
2890 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
2891 for Expose event. Add call to x_check_fullscreen for MapNotify event.
2892 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
2893 set gravity to NorthWestGravity when USE_GTK.
2894 (set_wm_state): New function.
2895 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
2896 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
2897 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
2898 or the case when no window manager is running. That means remove calls
2899 to x_real_positions and x_fullscreen_adjust.
2900
2901 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
2902 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
2903 flush_and_sync.
2904 (xg_height_changed): New function.
2905 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
2906 and gtk_window_set_policy. Set frame gravity after parsing the
2907 geometry string.
2908 (xg_update_frame_menubar, free_frame_menubar)
2909 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
2910 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
2911 Remove calls to xg_frame_set_char_size.
2912
2913 2009-07-01 Kenichi Handa <handa@m17n.org>
2914
2915 * keyboard.c (decode_keyboard_code): New function.
2916 (tty_read_avail_input): Decode the input bytes if necessary.
2917
2918 * coding.c (setup_coding_system):
2919 Initialize coding->carryover_bytes to 0.
2920 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
2921 use Qno_conversion.
2922
2923 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2924
2925 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
2926
2927 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
2928
2929 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
2930
2931 2009-06-30 Jason Rumney <jasonr@gnu.org>
2932
2933 * w32term.c (w32_initialize): Use GetModuleHandle for library that
2934 is already loaded.
2935 Set user model ID if supported (bug#1849).
2936
2937 2009-06-29 Jim Meyering <meyering@redhat.com>
2938
2939 Remove useless if-before-xfree test.
2940 * nsfont.m (nsfont_close): Remove useless test.
2941 * term.c (delete_tty): Likewise.
2942 * w32.c (system_process_attributes): Likewise.
2943 * w32font.c (w32font_close): Likewise.
2944 * xfaces.c (x_free_gc): Likewise.
2945 * xselect.c (buffer): Likewise.
2946
2947 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
2948
2949 * process.c (send_process): Keep decoded string in a local
2950 variable and protect it from GC. (Bug#3521)
2951
2952 2009-06-28 Eli Zaretskii <eliz@gnu.org>
2953
2954 * term.c (create_tty_output) [MSDOS]: #ifdef away.
2955 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2956
2957 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
2958
2959 * xdisp.c (start_display, handle_face_prop)
2960 (move_it_vertically_backward, cursor_row_fully_visible_p)
2961 (redisplay_window, try_window_id, produce_image_glyph):
2962 Delete some #ifdef-ed out code chunks that are now obsolete.
2963
2964 * xterm.c (x_update_window_begin, x_new_focus_frame)
2965 (x_scroll_bar_handle_click, handle_one_xevent)
2966 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2967 (x_make_frame_visible, x_make_frame_invisible)
2968 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2969 code chunks that are now obsolete.
2970
2971 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
2972
2973 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2974 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2975 for hours, when optimzation is enabled.
2976 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2977 (xd_read_message): Make them static.
2978
2979 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2980
2981 * term.c (turn_on_face): Allow simultaneously bold and dim
2982 terminal faces (Bug#3530).
2983
2984 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
2985
2986 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2987
2988 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2989 truncation glyphs (Bug#3686).
2990
2991 2009-06-27 Glenn Morris <rgm@gnu.org>
2992
2993 * m/pmax.h: Restore file, with only netbsd portions.
2994
2995 2009-06-26 David Reitter <david.reitter@gmail.com>
2996
2997 * nsterm.m (keydown): Avoid infinite loop.
2998
2999 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3000
3001 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3002 the arg FORCE_SYMBOL.
3003
3004 2009-06-25 Kenichi Handa <handa@m17n.org>
3005
3006 * fontset.c (fontset_find_font): When a usable rfont_def is found
3007 in a fallback font-group, make it the first element of the group.
3008
3009 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
3010
3011 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3012
3013 2009-06-24 Kenichi Handa <handa@m17n.org>
3014
3015 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3016 set for C.
3017 (fontset_font): Record the availability of a font for C both in
3018 the realized fontsets of the current one and the default one.
3019
3020 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3021
3022 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3023 conditional, it is always defined on AIX.
3024
3025 2009-06-23 Miles Bader <miles@gnu.org>
3026
3027 * window.c (Vrecenter_redisplay): New variable.
3028 (syms_of_window): Initialize it.
3029 (Qtty): New extern declaration.
3030 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3031
3032 2009-06-23 Jim Meyering <meyering@redhat.com>
3033
3034 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3035 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
3036 pointer dereferences are guaranteed to be valid.
3037
3038 2009-06-23 Kenichi Handa <handa@m17n.org>
3039
3040 * emacs.c (main): Call init_font ().
3041
3042 * font.h (Vfont_log): Extern it.
3043 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3044
3045 * font.c (font_sort_entities, font_list_entities)
3046 (font_matching_entity, font_open_entity)
3047 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3048 (Vfont_log): Delete static.
3049 (font_log_env_checked): Delete this variable.
3050 (font_add_log): Don't check font_log_env_checked.
3051 (font_deferred_log): Check Vfont_log.
3052 (init_font): New function.
3053
3054 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3055
3056 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3057
3058 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3059
3060 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3061
3062 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3063 (face_for_char): Don't call font_deferred_log here.
3064 (font_for_char): Likewise.
3065
3066 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
3067
3068 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3069 rather than its background_width for drawing the overline and
3070 underline (Bug#489).
3071
3072 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3073 rather than its background_width for drawing the overline and
3074 underline (Bug#489).
3075 (xg_default_icon_file): New variable.
3076 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3077 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
3078
3079 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3080 (load_overlay_strings): Remove externs.
3081 (fast_find_position): Function deleted.
3082 (mouse_face_from_buffer_pos): New function, based on
3083 fast_find_position. Correctly handle before-strings,
3084 display-strings, and after-strings (Bug#1220).
3085 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3086
3087 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
3088
3089 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
3090 (move_it_in_display_line_to, move_it_in_display_line_to)
3091 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3092
3093 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
3094
3095 * Branch for 23.1.
3096
3097 2009-06-21 Jason Rumney <jasonr@gnu.org>
3098
3099 * w32term.c (keyboard_codepage): New static variable.
3100 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3101 (w32_read_socket) [WM_CHAR]: Use it to decode character
3102 input (bug#3237).
3103 (w32_initialize): Initialize it.
3104 (codepage_for_locale): New function.
3105
3106 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
3107
3108 * process.c (status_message): Pass Faset index argument as a lisp
3109 object, so as to work with USE_LISP_UNION_TYPE.
3110
3111 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3112
3113 * coding.c (Ffind_coding_systems_region_internal):
3114 Cache checked characters.
3115
3116 2009-06-18 Kenichi Handa <handa@m17n.org>
3117
3118 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
3119
3120 2009-06-18 Andreas Schwab <aschwab@redhat.com>
3121
3122 * xdisp.c (redisplay_internal): Check that the frame is still
3123 live after redisplay of its windows.
3124 (redisplay_windows): Check that the window is still live.
3125
3126 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3127
3128 * coding.c (detect_coding_utf_16): Fix previous change.
3129
3130 2009-06-16 Kenichi Handa <handa@m17n.org>
3131
3132 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3133 UTF-16 by checking the dispersion of Eth and Oth bytes.
3134
3135 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3136
3137 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3138
3139 2009-06-15 Kenichi Handa <handa@m17n.org>
3140
3141 * process.c (status_message): Fix previous change. Be sure to
3142 decode a localized string.
3143
3144 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3145
3146 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3147 add comment explaining why.
3148
3149 2009-06-14 Sidney Markowitz <sidney@sidney.com>
3150
3151 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
3152
3153 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3154
3155 * nsfont.m (ns_attribute_value): Remove.
3156 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3157 (ns_has_attribute): Shrink the normal range.
3158 (ns_findfonts): Don't worry about requested spec in determining
3159 need for synthItal.
3160 (ns_get_covering_families): Retain scriptToFamilies.
3161
3162 2009-06-14 Seiji Zenitani <zenitani@mac.com>
3163
3164 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3165
3166 2009-06-11 Kenichi Handa <handa@m17n.org>
3167
3168 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3169 overhang for the static composition case.
3170
3171 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3172
3173 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3174 overhang for the automatic composition case.
3175
3176 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3177 composition case.
3178
3179 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
3180
3181 * xdisp.c (get_next_display_element): When handling wrap-prefix
3182 and line-prefix, treat \n as a control character (bug#3502).
3183
3184 2009-06-10 Kenichi Handa <handa@m17n.org>
3185
3186 * font.c (font_parse_family_registry): Fix for one-char foundry.
3187 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3188
3189 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3190
3191 * process.c (status_message): Fix handling of multibyte signal
3192 string (Bug#3499).
3193
3194 2009-06-09 Jim Meyering <meyering@redhat.com>
3195
3196 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3197 color name is missing.
3198
3199 2009-06-09 Kenichi Handa <handa@m17n.org>
3200
3201 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3202 FROM-CODE and TO-CODE are codepoints of CHARSET.
3203
3204 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3205
3206 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3207
3208 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3209
3210 Changes to support :script/:lang/:otf in NS font driver.
3211 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3212 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3213 indicate not part of font driver interface, and change callers.
3214 (ns_get_family): Remove pointless null check.
3215 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3216 ns_spec_to_descriptor, ns_descriptor_to_entity.
3217 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3218 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3219 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3220 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3221 (ns_get_req_script, ns_accumulate_script_ranges)
3222 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3223 New functions.
3224 (nsfont_list, nsfont_match): Use ns_findfonts.
3225 (nsfont_open): Use font descriptor instead of traits.
3226 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3227 (dump_glyphstring): Rename to ns_dump_glyphstring.
3228
3229 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3230
3231 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3232
3233 * fontset.c (fontset_from_font): Remove NS-specific code.
3234
3235 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
3236
3237 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3238 nonactive windows.
3239
3240 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
3241
3242 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
3243
3244 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3245
3246 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3247
3248 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
3249
3250 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3251 account for the overflowing of newlines into the last glyph on the
3252 display line (Bug#3482).
3253
3254 2009-06-05 David Reitter <david.reitter@gmail.com>
3255
3256 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3257 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
3258 Fns_selection_exists_p, Fns_selection_owner_p.
3259
3260 2009-06-03 Jason Rumney <jasonr@gnu.org>
3261
3262 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3263 available. (Bug#3379)
3264
3265 2009-05-29 Kenichi Handa <handa@m17n.org>
3266
3267 * coding.c (get_translation_table):
3268 Check Venable_character_translation.
3269
3270 2009-05-26 David Reitter <david.reitter@gmail.com>
3271
3272 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3273 (x_make_frame_visible): Move frame to front rather than calling
3274 ns_raise_frame().
3275 (keyDown:): Do not swallow events that aren't re-sent if frame
3276 isn't key window.
3277 (drawRect:): Do not set visibility/iconified flags because
3278 drawRect may be called by NSView even if the frame is hidden.
3279
3280 * nsfns.m (Fx_create_frame): Follow other ports in
3281 determining visibility; default to t. Ensure async_visible is set.
3282
3283 2009-05-23 Eli Zaretskii <eliz@gnu.org>
3284
3285 * dired.c (Ffile_attributes): Doc fix.
3286
3287 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
3288
3289 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3290
3291 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3292
3293 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3294 and xfont_scratch_props.
3295 (syms_of_xfont): Do it here instead.
3296 (xfont_find_ccl_program): Delete, unused.
3297 (xfont_open): Delete unused var `i'.
3298
3299 2009-05-21 Kenichi Handa <handa@m17n.org>
3300
3301 * fontset.c (Qlatin): Don't make it static.
3302
3303 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3304 New functions.
3305 (xfont_scripts_cache, xfont_scratch_props): New variables.
3306 (Qlatin, Vscalable_fonts_allowed): Extern it.
3307 (xfont_list_pattern): Argument changed. Callers changed.
3308 Check Vscalable_fonts_allowed. Check the support of a script.
3309 (xfont_list): Don't reject a font spec with :script property.
3310 (xfont_has_char): Fix setting of encoding.
3311 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3312 xfont_scratch_props.
3313
3314 2009-05-19 Kenichi Handa <handa@m17n.org>
3315
3316 * font.c (font_sort_entities): Rename from font_sort_entites.
3317 Callers changed.
3318
3319 2009-05-18 Kenichi Handa <handa@m17n.org>
3320
3321 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3322
3323 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3324
3325 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3326 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3327
3328 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3329
3330 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3331 (x_delete_terminal): Dissociate resource database from display and
3332 then call XrmDestroyDatabase before closing display.
3333
3334 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3335
3336 * nsterm.m (ns_read_socket): Remove unused variable.
3337 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3338 whether selected frame is viable before raising it (based on patch
3339 by David Reitter), and improve commentary.
3340 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
3341
3342 2009-05-15 Kenichi Handa <handa@m17n.org>
3343
3344 * font.c (Ffont_spec): Check arguments.
3345
3346 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
3347
3348 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3349 weight when testing attributes (Bug#3282).
3350
3351 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3352
3353 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3354 what we expect to get in the next ConfigureNotify event.
3355
3356 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3357 before Xft one (Bug#1696).
3358
3359 2009-05-07 David Reitter <david.reitter@gmail.com>
3360
3361 * nsfns.m (Fx_display_planes): Compute bitplanes using
3362 NSBitsPerPixelFromDepth (Bug#3207).
3363
3364 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
3365
3366 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3367
3368 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
3369
3370 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3371
3372 2009-05-07 David Reitter <david.reitter@gmail.com>
3373
3374 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3375 Respect mouse face background.
3376
3377 2009-05-07 David Reitter <david.reitter@gmail.com>
3378
3379 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3380 Mouse movement/highlight: bracket drawing operations
3381 in ns_update_begin and ns_update_end.
3382
3383 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3384
3385 * nsfns.m (ns_get_screen): Rewrite.
3386 Don't presume selected-frame is of type `ns'.
3387
3388 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3389 all drivers.
3390
3391 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3392
3393 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3394
3395 * keyboard.h (add_user_signal): Fix typo in extern.
3396
3397 * lisp.h (add_user_signal): Remove extern.
3398
3399 * unexelf.c (unexec): Consider a section to precede the .bss section
3400 if its addresses overlap that of .bss.
3401 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3402 instead of dumping process.
3403
3404 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3405
3406 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3407
3408 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3409
3410 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3411
3412 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3413
3414 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3415 any statements.
3416
3417 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3418
3419 * process.c (read_process_output): Make sure the current buffer is
3420 always restored.
3421
3422 * coding.c (record_conversion_result): Don't modify
3423 Vlast_code_conversion_error for successful result.
3424 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3425
3426 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3427
3428 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
3429 (load_charset_map): Remove unnecessary code.
3430
3431 2009-04-30 David Reitter <david.reitter@gmail.com>
3432
3433 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
3434 through f24.
3435
3436 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
3437
3438 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3439
3440 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3441 face_at_buffer_position.
3442 (face_before_or_after_it_pos, get_next_display_element)
3443 (note_mouse_highlight): Update face_at_buffer_position call.
3444
3445 * term.c (term_mouse_highlight):
3446 * msdos.c (IT_note_mouse_highlight):
3447 * fontset.c (Finternal_char_font):
3448 * font.c (font_at, font_range): Update face_at_buffer_position call.
3449
3450 * dispextern.h (face_at_buffer_position): Update prototype.
3451
3452 2009-04-30 Kenichi Handa <handa@m17n.org>
3453
3454 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
3455
3456 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3457
3458 * callproc.c (Fcall_process): Fix GC protection. Make sure
3459 current buffer is always restored.
3460
3461 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3462
3463 * atimer.c (init_atimer): Also clear stopped_atimers.
3464
3465 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3466
3467 * process.c (create_process): Clean up merger residues of
3468 2008-07-17 change.
3469
3470 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
3471
3472 * lread.c (Vread_circle): New variable.
3473 (read1): Disable recursive read if Vread_circle is nil.
3474
3475 2009-04-29 Kenichi Handa <handa@m17n.org>
3476
3477 * fontset.h (set_default_ascii_font): Delete extern.
3478
3479 * fontset.c (set_default_ascii_font): Delete this unused function.
3480
3481 * frame.c (x_set_font): When ARG is a font-object, check if the
3482 font-object matches with the ASCII font-spec of the frame's
3483 fontset. If not, create a new fontset for the frame. (Bug #3075)
3484
3485 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3486
3487 * fns.c (Flocale_info): Protect vector from GC during decoding.
3488
3489 * process.c (Fstart_process): Protect argv strings from GC during
3490 encoding.
3491
3492 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3493
3494 * sysdep.c: Include <ctype.h>.
3495
3496 2009-04-27 David Reitter <david.reitter@gmail.com>
3497
3498 * nsfont.m (nsfont_open): Remove unused variable shrink.
3499 Remove commented-out code.
3500
3501 2009-04-26 Johan Bockgård <bojohan@gnu.org>
3502
3503 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3504
3505 2009-04-25 Jason Rumney <jasonr@gnu.org>
3506
3507 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3508
3509 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3510
3511 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3512 Swap bytes in short integer if fringe bitmap width > 8.
3513
3514 2009-04-23 Kenichi Handa <handa@m17n.org>
3515
3516 * xfaces.c (Fx_list_fonts): If a font size is specified in
3517 PATTERN, set it in returned scalable fonts.
3518
3519 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
3520
3521 * keyboard.c (Fset_input_meta_mode): Doc fix.
3522
3523 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3524
3525 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
3526
3527 * coding.c (Fterminal_coding_system): Doc fix.
3528
3529 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3530 (Fx_display_pixel_height, Fx_display_planes)
3531 (Fx_display_color_cells, Fx_server_max_request_size)
3532 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3533 (Fx_display_mm_height, Fx_display_mm_width)
3534 (Fx_display_backing_store, Fx_display_visual_class)
3535 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3536 Doc fixes, replacing "terminal id" with "terminal object".
3537 (check_x_display_info): Handle terminal objects instead of
3538 terminal ids.
3539
3540 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3541 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
3542 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3543 Doc fixes, replacing "terminal id" with "terminal object".
3544
3545 2009-04-21 Kenichi Handa <handa@m17n.org>
3546
3547 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
3548 (font_score): Check AVGWIDTH too.
3549
3550 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3551 worst case.
3552 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3553 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
3554
3555 2009-04-19 Jason Rumney <jasonr@gnu.org>
3556
3557 The following changes fix Bug#3005 for wide glyphs on each platform,
3558 without reintroducing Bug#1258 for stretch glyphs.
3559
3560 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3561 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3562 get_phys_cursor_geometry.
3563
3564 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
3565 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3566 using get_phys_cursor_geometry.
3567
3568 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3569 correctly calculated.
3570
3571 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3572
3573 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3574 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
3575 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3576 is deprecated.
3577
3578 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3579
3580 * font.c (font_put_frame_data): Use xfree instead of free.
3581
3582 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
3583
3584 * w32font.c (Qja, Qko): Remove declarations.
3585 (syms_of_w32font): Don't DEFSYM them.
3586
3587 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
3588
3589 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3590
3591 * font.h (Qja, Qko): Extern them.
3592
3593 * ftfont.c (Qja, Qko): Remove declarations.
3594
3595 * xfont.c (Qja, Qko): Remove declarations.
3596
3597 2009-04-17 Kenichi Handa <handa@m17n.org>
3598
3599 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3600 string from a vector to handle Latin-1 characters correctly.
3601
3602 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3603 entity even if the cache hits.
3604
3605 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3606
3607 * search.c (boyer_moore): Use zero as marker value for a possible
3608 match instead of depending on overflow behavior. (Bug#2844)
3609
3610 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3611 * lisp.h: Adjust prototypes.
3612
3613 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
3614
3615 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3616 change (Bug#3003).
3617
3618 2009-04-16 Kenichi Handa <handa@m17n.org>
3619
3620 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
3621
3622 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3623 adstyle.
3624
3625 * ftfont.c (Qja, Qko): Don't make them static.
3626 (enum ftfont_cache_for): New enum.
3627 (fc_charset_table): Undo the previous change.
3628 (ftfont_get_latin1_charset): Delete it.
3629 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3630 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
3631 non-scarable font, try to get AVERAGE_WIDTH.
3632 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3633 Change ft_face_cache from a list of a hash-table. Don't check
3634 `ja' and `ko' adstyle here.
3635 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3636 FTFONT_CACHE_FOR_CHARET.
3637 (ftfont_get_charset): Undo the previous change.
3638 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
3639 (ftfont_close): Likewise.
3640 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
3641
3642 * font.c (font_sort_entites): Change the meaning of the arg
3643 BEST-ONLY. Don't optimize for VEC of lenght 1.
3644 (font_select_entity): Just return the value of font_sort_entites.
3645
3646 * xfaces.c (merge_face_vectors): Reflect font properties in
3647 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
3648 font_clear_prop if a face attribute doesn't change.
3649
3650 * charset.h (charset_ksc5601): Extern it.
3651
3652 * charset.c (charset_ksc5601): New variable.
3653 (Fdefine_charset_internal): Set charset_ksc5601.
3654 (init_charset_once): Initialize charset_ksc5601 to -1.
3655
3656 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3657
3658 * fileio.c (history_delete_duplicates): Remove unused declaration.
3659
3660 * callint.c (history_delete_duplicates): New declaration.
3661 (Fcall_interactively): Remove command history duplicates when
3662 history_delete_duplicates is true.
3663
3664 2009-04-14 Eli Zaretskii <eliz@gnu.org>
3665
3666 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
3667
3668 2009-04-14 Kenichi Handa <handa@m17n.org>
3669
3670 * font.c (Ffont_info): Fix docstring. Fix the second element of
3671 the returned value (bug#2949).
3672
3673 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
3674
3675 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
3676
3677 2009-04-14 Kenichi Handa <handa@m17n.org>
3678
3679 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
3680 encoding charset is ascii_compatible.
3681
3682 * charset.c (Fdefine_charset_internal): Make charset
3683 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
3684 code_offset is 0, and covers all ASCII characters.
3685
3686 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3687
3688 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
3689 (ns_string_to_pasteboard_internal):
3690 * nsmenu.m (process_dialog):
3691 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
3692 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
3693 * lisp.h (Fx_load_color_file): Declare.
3694
3695 2009-04-13 Kenichi Handa <handa@m17n.org>
3696
3697 * font.c (font_delete_unmatched): Preserve the order of list elements.
3698 (font_select_entity): Suppress the code to optimize for the same
3699 kind of fonts.
3700 (font_load_for_lface): Get a font that supports at least ASCII
3701 characters.
3702
3703 * ftfont.c (Qja, Qko): New variables.
3704 (fc_charset_table): Delete uniquifier data for iso8859-1.
3705 (ftfont_get_latin1_charset): New function.
3706 (get_adstyle_property): New function.
3707 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
3708 bitmap fonts.
3709 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
3710 Delete iso-8859-1 range from the charset of fonts whose adstyle is
3711 `ko' or `ja'.
3712 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
3713 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
3714 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
3715 property.
3716 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
3717 (syms_of_ftfont): DEFSYM Qja and Qko.
3718
3719 2009-04-09 Kenichi Handa <handa@m17n.org>
3720
3721 * charset.c (map_charset_chars): For a charset of `superset'
3722 method, fix calculation of code range.
3723
3724 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
3725 from the list of extra properties.
3726 (font_clear_prop): Be sure to delete `:name' font property.
3727
3728 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3729
3730 * dispnew.c (redraw_overlapping_rows): Fix detection of
3731 overlapping for topmost and bottommost rows.
3732
3733 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
3734
3735 2009-04-06 Jason Rumney <jasonr@gnu.org>
3736
3737 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
3738
3739 2009-04-06 Kenichi Handa <handa@m17n.org>
3740
3741 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
3742
3743 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
3744
3745 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3746
3747 * ftfont.c (ftfont_open): Fix checking of the return value of
3748 FT_Load_Char. Fix setting font->underline_thickness.
3749
3750 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
3751
3752 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
3753 (Fterminal_parameters, Fterminal_parameter)
3754 (Fset_terminal_parameter): In doc string, refer to terminal
3755 objects rather than terminal ids.
3756
3757 2009-04-04 Eli Zaretskii <eliz@gnu.org>
3758
3759 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
3760 ret_lim_data. (Bug#2867)
3761
3762 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
3763
3764 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
3765 so they don't get wider than the window, matching 2006-01-23
3766 change to the partner function in xdisp.c (Bug#2800).
3767
3768 2009-04-03 Kenichi Handa <handa@m17n.org>
3769
3770 * print.c (print_object): Make each lowest sub_char_table start a
3771 new line (Bug#2866).
3772
3773 2009-04-02 Kenichi Handa <handa@m17n.org>
3774
3775 * fontset.c (fontset_font): Record no-font when a fontset
3776 explicitly tells not to try another font-specs.
3777
3778 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
3779
3780 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
3781
3782 2009-03-30 Kenichi Handa <handa@m17n.org>
3783
3784 * fontset.c (fontset_from_font): Specify only registry in a
3785 font-spec for all characters supported by that registry.
3786
3787 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
3788 even if HAVE_M17N_FLT is not defined.
3789
3790 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
3791
3792 * ftfont.c: Conditionalize prototyping and use of
3793 ftfont_variation_glyphs.
3794
3795 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3796
3797 * frame.c (delete_frame): Work around compiler bug.
3798
3799 * editfns.c (general_insert_function): Adjust to insdel.c changes.
3800 * insdel.c (prepare_to_modify_buffer, signal_before_change):
3801 Some more EMACS_INT.
3802 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
3803
3804 * xdisp.c (dump_glyph): Fix typo.
3805
3806 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
3807 (adjust_markers_gap_motion, adjust_markers_for_delete)
3808 (adjust_markers_for_insert, adjust_point)
3809 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
3810 (make_gap, copy_text, count_size_as_multibyte, insert)
3811 (insert_and_inherit, insert_before_markers)
3812 (insert_before_markers_and_inherit, insert_1)
3813 (count_combining_before, count_combining_after, insert_1_both)
3814 (insert_from_string, insert_from_string_before_markers)
3815 (insert_from_string_1, insert_from_gap, insert_from_buffer)
3816 (insert_from_buffer_1, adjust_after_replace)
3817 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
3818 (replace_range_2, del_range, del_range_1, del_range_byte)
3819 (del_range_both, del_range_2, modify_region)
3820 (prepare_to_modify_buffer, signal_before_change)
3821 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
3822 for buffer positions and sizes.
3823 * lisp.h: Adjust prototypes accordingly.
3824
3825 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
3826 (non_regular_inserted, non_regular_nbytes, read_non_regular)
3827 (Finsert_file_contents): Use EMACS_INT for buffer positions.
3828
3829 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
3830
3831 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
3832
3833 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
3834 lines and columns so we keep the same pixel height and width.
3835
3836 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
3837 the property _NET_WM_STATE has changed.
3838 (x_handle_net_wm_state): New function to update frame parameter
3839 fullscreen.
3840 (x_term_init): Initialize atoms for _NET_WM_STATE.
3841
3842 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
3843
3844 2009-03-27 Kevin Ryde <user42@zip.com.au>
3845
3846 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
3847 Gpm_GetEvent as an error that justifies closing the filedescriptor.
3848 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
3849 (Fgpm_mouse_stop): Pass that new parameter.
3850 * termhooks.h (close_gpm): Adjust prototype.
3851
3852 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3853
3854 * lisp.h (Fx_focus_frame): Declare.
3855
3856 * callint.c (Fcall_interactively): For '^' just delegate the work to
3857 handle-shift-selection.
3858 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
3859
3860 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
3861
3862 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
3863
3864 * data.c (Qinteractive_form): New variable.
3865 (Finteractive_form): Use it.
3866
3867 * eval.c (Fcommandp): Use Qinteractive_form.
3868
3869 2009-03-24 Jason Rumney <jasonr@gnu.org>
3870
3871 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
3872 Calculate total size precisely. Decode environment variables
3873 before substituting. (Bug#38)
3874
3875 2009-03-24 Kenichi Handa <handa@m17n.org>
3876
3877 * font.c (find_font_encoding): Return Qnil for unsupported
3878 encoding (Bug#2722).
3879
3880 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
3881
3882 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
3883 that gdpy is set.
3884
3885 2009-03-22 Alan Mackenzie <acm@muc.de>
3886
3887 * callint.c (Finteractive): Clarify the doc string - even
3888 promptless elements need \n separators.
3889
3890 2009-03-22 Jason Rumney <jasonr@gnu.org>
3891
3892 * w32term.c (syms_of_w32term): Doc fix for
3893 x-use-underline-position-properties.
3894
3895 2009-03-21 Eli Zaretskii <eliz@gnu.org>
3896
3897 * w32.c (getpwuid): Change argument type to unsigned.
3898 (struct w32_id): Change type of `rid' member to unsigned.
3899 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
3900 argument ID to unsigned. All callers changed.
3901 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
3902
3903 2009-03-20 Eli Zaretskii <eliz@gnu.org>
3904
3905 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
3906 negative, produce a float value.
3907
3908 * dired.c (make_uid, make_gid): New functions.
3909 (Ffile_attributes): Use them to avoid negative UID and GID.
3910
3911 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
3912
3913 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
3914 (syms_of_keyboard) <command-hook-internal, input-method-function>:
3915 Fix typos in docstrings.
3916
3917 2009-03-19 Kenichi Handa <handa@m17n.org>
3918
3919 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
3920 changed, use font_load_for_lface to get a new font object.
3921 Call free_realized_fontset after handling ASCII font change.
3922
3923 * frame.c (x_set_font): Handle the case that ARG is a cons.
3924
3925 2009-03-19 Glenn Morris <rgm@gnu.org>
3926
3927 * fileio.c (Fsubstitute_in_file_name): Doc fix.
3928
3929 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
3930
3931 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
3932
3933 2009-03-19 Kenichi Handa <handa@m17n.org>
3934
3935 * charset.c (load_charset_map_from_file): When a mapfile can't be
3936 loaded, signal an error.
3937
3938 2009-03-18 Eli Zaretskii <eliz@gnu.org>
3939
3940 * dired.c (Ffile_attributes): Make sure UID and GID are always
3941 positive, even if the value is too large for a positive EMACS_INT.
3942 Doc fix.
3943
3944 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
3945
3946 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3947
3948 * xmenu.c (xdialog_show): Move Fredisplay call ...
3949 (Fx_popup_dialog): ... here.
3950
3951 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
3952
3953 * dired.c (file_name_completion): Disable the first optimization just
3954 installed, since it is not implemented correctly.
3955
3956 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3957
3958 * dired.c (file_name_completion): Check completion-ignored-extensions
3959 only if the entry can affect bestmatch.
3960 Stop the search early, as Ftry_completion already does.
3961
3962 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
3963
3964 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
3965
3966 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
3967
3968 * keyboard.c (parse_menu_item): Don't display remappings as menu
3969 equivalent bindings (Bug#788).
3970
3971 2009-03-15 Jason Rumney <jasonr@gnu.org>
3972
3973 * w32term.h (WM_EMACS_PAINT): New message.
3974 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3975 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3976 before passing to lisp thread. (Bug#950)
3977
3978 2009-03-14 David Reitter <david.reitter@gmail.com>
3979
3980 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3981 variable as it was never reset.
3982 (ns_term_init): Remove initialization of Lisp-settable defaults
3983 and ns_expand_space.
3984 (-setPanelFromDefaultValues): Remove ns_expand_space.
3985 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3986 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
3987 i.e. no additional spacing, similar to Carbon port.
3988
3989 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
3990 * nsfns.m (ns-popup-prefs-panel): Remove.
3991
3992 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
3993
3994 * sound.c (alsa_configure): Remove call to deprecated
3995 snd_pcm_sw_params_set_xfer_align.
3996
3997 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
3998
3999 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4000 after clicking in a detached tool bar.
4001 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4002
4003 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4004
4005 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4006 int/Lisp_Object mixup).
4007
4008 2009-03-13 Kenichi Handa <handa@m17n.org>
4009
4010 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
4011 Handle NAME nil and t correctly. Callers changed.
4012 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4013 (set_fontset_font): Change ARG to a vector. Handle range_list in
4014 ARG correctly.
4015 (Fset_fontset_font): Fix the case that TARGET is both a script
4016 name and charset name. Adjust the arg to set_fontset_font for
4017 the above change.
4018 (fontset_from_font): Fix previous change.
4019 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
4020 entry. If FONTSET is the default fontset, don't set the extra
4021 slot of the returning char-table.
4022
4023 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
4024
4025 * nsfns.m (Fx_close_connection): Doc fix.
4026 (Fns_do_applescript): Reflow docstring.
4027 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4028 (Fx_display_pixel_width, Fx_display_pixel_height)
4029 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4030 Fix typos in docstrings.
4031 (Fns_set_alpha): Fix typos in error messages.
4032
4033 2009-03-12 David Reitter <david.reitter@gmail.com>
4034
4035 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
4036 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4037 were used for such events.
4038
4039 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4040 (toggleToolbar, performDragOperation, runHelp): Use it.
4041
4042 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
4043 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4044
4045 2009-03-11 Kenichi Handa <handa@m17n.org>
4046
4047 * font.h (font_open_by_spec): Extern it.
4048
4049 * font.c (font_open_by_spec): New function.
4050 (font_open_by_name): Use font_open_by_spec.
4051
4052 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4053 fontset of the frame.
4054
4055 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4056 modify the default font of frames that use this fontset.
4057 (num_auto_fontsets): New variable.
4058 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4059 name. Be sure to set FONTSET_ASCII to the correct font name.
4060 (update_auto_fontset_alist): New function.
4061
4062 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
4063
4064 * makefile.w32-in: Update dependencies.
4065
4066 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4067
4068 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4069
4070 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4071
4072 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4073
4074 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
4075
4076 * lread.c (Feval_buffer): Doc fix.
4077
4078 2009-03-09 Kenichi Handa <handa@m17n.org>
4079
4080 * charset.c (Qfile_name_handler_alist): Extern it.
4081 (load_charset_map_from_file): Temporarily bind
4082 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4083
4084 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
4085
4086 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4087 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
4088
4089 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4090
4091 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4092 (x_set_window_size): Change back to calculated method of setting
4093 toolbar height under Cocoa. (Bug#2546)
4094 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4095 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4096
4097 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4098
4099 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4100 accelerator in parens under GNUstep.
4101
4102 2009-03-06 Kenichi Handa <handa@m17n.org>
4103
4104 These changes are to detect incorrect composition sequence without
4105 looking ahead the source. (Bug#2370)
4106
4107 * coding.h: Include "composite.h".
4108 (enum compisition_state): New enum.
4109 (struct compisition_status): New struct.
4110 (struct iso_2022_spec): New member cmp_status.
4111 (struct emacs_mule_spec): New struct.
4112 (struct coding_system): New members ctext_extended_segment_len and
4113 embedded_utf_8. Change the union member
4114 spec.emacs_mule_full_support to spec.emacs_mule.
4115
4116 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4117 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
4118 (MAX_ANNOTATION_LENGTH): Define to 5.
4119 (ADD_COMPOSITION_DATA): New arg nbytes.
4120 (emacs_mule_char): New arg cmp_status.
4121 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4122 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4123 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4124 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4125 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4126 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4127 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4128 (EMACS_MULE_COMPOSITION_END): New macro.
4129 (emacs_mule_finish_composition): New function.
4130 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4131 (decode_coding_emacs_mule): Avoid long looking ahead while
4132 handling composition.
4133 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4134 (ENCODE_COMPOSITION_RULE): New macro.
4135 (finish_composition): New function.
4136 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4137 (DECODE_COMPOSITION_START): New implementation.
4138 (DECODE_COMPOSITION_END): Likewise.
4139 (STORE_COMPOSITION_RULE): New macro.
4140 (decode_coding_iso_2022): Avoid long looking ahead while handling
4141 composition, CTEXT extended segment, and embedded UTF-8.
4142 (setup_coding_system): For a coding of type iso-2022, reset
4143 CODING_ISO_EXTSEGMENT_LEN (coding) and
4144 CODING_ISO_EMBEDDED_UTF_8 (coding).
4145 (get_translation): Delete arguments last_block, from_nchars,
4146 to_nchars. Callers changed.
4147 (produce_chars): Don't modify charbuf. Adjusted for the change of
4148 get_translation.
4149 (produce_composition): Adjust for the new annotation sequence.
4150 (handle_composition_annotation): Likewise.
4151 (consume_chars): Adjust for the change of get_translation.
4152
4153 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4154
4155 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
4156
4157 2009-03-05 Kenichi Handa <handa@m17n.org>
4158
4159 * font.c (font_select_entity): New function.
4160 (font_find_for_lface): Use font_select_entity to select a font.
4161
4162 * fontset.c (fontset_find_font): If a font found without
4163 restricting to the characters C doesn't support C, try to find a
4164 font with C restriction.
4165
4166 2009-03-04 Nikolaj Schumacher <me@nschum.de>
4167
4168 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
4169
4170 2009-03-04 Jason Rumney <jasonr@gnu.org>
4171
4172 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4173 characters that have already been read. (Bug#2569)
4174
4175 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4176 Log an error message if check_image_size failed.
4177 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4178 (gs_load): Mention max-image-size in size error message. (Bug#2560)
4179
4180 2009-03-02 Eli Zaretskii <eliz@gnu.org>
4181
4182 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4183 when decoding process output.
4184
4185 2009-03-01 Richard M Stallman <rms@gnu.org>
4186
4187 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4188
4189 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4190
4191 2009-02-28 Eli Zaretskii <eliz@gnu.org>
4192
4193 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4194 (decode_coding_emacs_mule, decode_coding_iso_2022)
4195 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4196 (decode_coding_raw_text, decode_coding_charset)
4197 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4198 Honor inhibit-eol-conversion. (Bug #2186)
4199
4200 2009-02-28 Jason Rumney <jasonr@gnu.org>
4201
4202 * coding.c (detect_coding_charset): If not checking latin extra,
4203 fail on characters between 0x80 and 0xA0. (Bug#2354)
4204
4205 2009-02-28 Eli Zaretskii <eliz@gnu.org>
4206
4207 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
4208 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
4209
4210 2009-02-27 Glenn Morris <rgm@gnu.org>
4211
4212 * callint.c (Finteractive): Doc fix.
4213
4214 2009-02-27 Kenichi Handa <handa@m17n.org>
4215
4216 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4217
4218 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
4219
4220 * font.c (font_style_to_value): Set value for unknown symbols to
4221 100 instead of 255.
4222 (weight_table, slant_table, width_table): Treat "unspecified" as
4223 the default value.
4224
4225 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
4226
4227 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4228
4229 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
4230
4231 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4232 error as soon as a recursive load is detected.
4233
4234 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4235
4236 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4237 before caching.
4238
4239 2009-02-24 Kenichi Handa <handa@m17n.org>
4240
4241 * fontset.c (fontset_find_font): Fix the condition for checking
4242 unavailable font.
4243
4244 2009-02-24 Glenn Morris <rgm@gnu.org>
4245
4246 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4247 whitespace that confuses documentation.
4248
4249 2009-02-23 Miles Bader <miles@gnu.org>
4250
4251 * process.c (Flist_system_processes, Fprocess_attributes)
4252 (syms_of_process): Rename `system-process-attributes' to
4253 `process-attributes'.
4254
4255 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4256
4257 * coding.h (struct coding_system): Make safe_charsets a pointer to
4258 unsigned char.
4259 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4260 being 255.
4261 (SAFE_CHARSET_P): Likewise.
4262 (setup_iso_safe_charsets): Properly setup safe_charsets.
4263 (Fdefine_coding_system_internal): Likewise.
4264 (setup_coding_system): Likewise. Remove unneeded casts.
4265 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4266 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4267 unneeded casts.
4268
4269 * insdel.c (del_range_2): Don't modify gap contents when called
4270 from decode_coding_object. (Bug#1809)
4271
4272 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
4273
4274 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4275 Qfont_object.
4276 (Ftype_of): Recognize font objects.
4277
4278 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4279
4280 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4281 moved to data.c.
4282
4283 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4284
4285 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4286 async_iconified. Based on a patch by Christian Lynbech
4287 <christian.lynbech@tieto.com>.
4288 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4289
4290 2009-02-20 Glenn Morris <rgm@gnu.org>
4291
4292 * syntax.c (Fskip_chars_forward): Fix doc typo.
4293
4294 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
4295
4296 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4297
4298 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
4299
4300 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4301
4302 2009-02-19 Kenichi Handa <handa@m17n.org>
4303
4304 * coding.c (detect_coding): Preserve coding->mode.
4305 Don't overflow coding->carryover. (Bug#2370)
4306
4307 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4308
4309 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4310
4311 2009-02-18 Kenichi Handa <handa@m17n.org>
4312
4313 * font.c (font_check_otf_features): Fix handling of `nil' element.
4314 (Ffont_spec): Describe :lang and :otf in the docstring.
4315
4316 2009-02-16 Andreas Schwab <schwab@suse.de>
4317
4318 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4319 string.
4320
4321 2009-02-16 Kenichi Handa <handa@m17n.org>
4322
4323 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
4324 (Bug#1723)
4325
4326 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
4327
4328 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
4329
4330 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4331 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4332
4333 2009-02-14 Eli Zaretskii <eliz@gnu.org>
4334
4335 * msdos.c (MAX_SCREEN_BUF): New macro.
4336 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4337 Encode the entire run of glyphs sharing the same face, instead of
4338 doing that one glyph at a time (fixes a bug with displaying
4339 double-size characters).
4340
4341 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4342
4343 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4344
4345 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4346 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
4347 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
4348
4349 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
4350 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
4351
4352 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4353
4354 * keyboard.c (adjust_point_for_property): Allow stopping between two
4355 invisible areas.
4356
4357 2009-02-12 Jason Rumney <jasonr@gnu.org>
4358
4359 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4360 (add_font_entity_to_list): Call check_face_name even when family
4361 is unspecified.
4362
4363 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4364 Release DC when finished. Use NULL window to refer to desktop.
4365 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
4366
4367 * w32font.c (add_font_entity_to_list): Fix check for substituted
4368 raster fonts. (Bug#2219)
4369
4370 2009-02-12 Kenichi Handa <handa@m17n.org>
4371
4372 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4373 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4374 (autocmp_chars): Use fast_looking_at. Don't compose more
4375 characters than MAX_COMPOSITION_COMPONENTS.
4376 (find_automatic_composition): While looking forward and backward,
4377 check static composition. Fix where to stop looking forward.
4378 (composition_adjust_point): Fix checking of static composition.
4379 (Fcomposition_get_gstring): Pay attention to
4380 MAX_COMPOSITION_COMPONENTS.
4381
4382 * lisp.h (fast_looking_at): Extern it.
4383
4384 * search.c (fast_looking_at): New function.
4385
4386 * term.c (encode_terminal_code): Adjust for the change of
4387 <struct glyph>.u.cmp.to.
4388 (append_composite_glyph): Likewise.
4389
4390 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
4391 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4392 composition.
4393 (append_composite_glyph): Adjust for the change of
4394 <strcut glyph>.u.cmp.to.
4395
4396 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
4397
4398 * casetab.c (init_casetab_once):
4399 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4400 * font.c (font_update_lface):
4401 * fontset.c (Fnew_fontset):
4402 * ftfont.c (ftfont_drive_otf):
4403 * xfont.c (xfont_open):
4404 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4405
4406 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4407
4408 * fileio.c (Fwrite_region): !NILP -> CONSP.
4409
4410 2009-02-10 Andreas Schwab <schwab@suse.de>
4411
4412 * process.c (send_process): Properly relocate pointer into data
4413 when using encoded data. (Bug#2272)
4414
4415 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4416
4417 * coding.c (detect_coding_charset): Fix previous change.
4418
4419 2009-02-08 Jason Rumney <jasonr@gnu.org>
4420
4421 * w32fns.c (w32_hide_hourglass): Handle case where frame
4422 disappeared while hourglass was displayed. (Bug #2193)
4423
4424 2009-02-07 Andreas Schwab <schwab@suse.de>
4425
4426 * unexelf.c (unexec): Fix error message.
4427
4428 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4429
4430 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
4431 when modal window is active. (Bug #2152)
4432 (applicationShouldTerminate:): Remove now-unneeded while loop
4433 around NSRunAlertPanel.
4434
4435 * nsmenu.m (popupSession): New file-global variable.
4436 (pop_down_menu): End the popupSession before closing dialog.
4437 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4438 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4439 don't query NSApp for events (just sleep instead).
4440
4441 2009-02-07 Eli Zaretskii <eliz@gnu.org>
4442
4443 * coding.c (syms_of_coding) <translation-table-for-input>:
4444 Modify doc string to discourage use for character code unification.
4445
4446 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4447
4448 * atimer.c (run_timers): Update pending_atimers.
4449
4450 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
4451
4452 * image.c (svg_load_image): Fix last change.
4453
4454 * xfns.c (Fx_create_frame): Signal an error if no font is
4455 found (Bug#2147).
4456
4457 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
4458
4459 * character.c (syms_of_character) <script-representative-chars>:
4460 Fix typo in docstring.
4461
4462 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4463
4464 * nsmenu.m (pop_down_menu): New function.
4465 (ns_popup_dialog): Call it on unwind.
4466 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4467 call timer_check() (Bug#2154).
4468 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4469 handling_signal is set.
4470 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4471
4472 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
4473
4474 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4475
4476 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4477
4478 * keyboard.c (poll_for_input_1, handle_async_input):
4479 Set handling_signal under HAVE_NS.
4480
4481 2009-02-04 Glenn Morris <rgm@gnu.org>
4482
4483 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4484
4485 2009-02-04 Kenichi Handa <handa@m17n.org>
4486
4487 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4488
4489 * charset.c (Fchar_charset): New optional arg restriction.
4490
4491 * coding.h (coding_system_charset_list): Extern it.
4492
4493 * coding.c (coding_system_charset_list): New function.
4494
4495 * composite.c: Include coding.h and termhooks.h.
4496 (composition_gstring_p): Fix for the terminal case.
4497 (composition_gstring_width): Likewise.
4498 (fill_gstring_body): Likewise.
4499 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4500 the frame.
4501 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4502 is within a composition.
4503 (Fcomposition_get_gstring): Fix the terminal case.
4504
4505 * term.c (encode_terminal_code): Fix handling of composition.
4506 (produce_composite_glyph): For static composition, get pixel_width
4507 from struct composition.
4508
4509 2009-02-02 Andreas Schwab <schwab@suse.de>
4510
4511 * unexelf.c (unexec): Handle unaligned bss offset.
4512
4513 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4514
4515 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4516 XT,w32read_socket changes to ns_read_socket.
4517
4518 * keyboard.c (handle_interrupt): Don't call
4519 quit_throw_to_read_char() under NS.
4520
4521 * blockinput.h: Remove NS-specific code.
4522
4523 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4524
4525 * dispnew.c (window_change_signal): Don't try to get the size of a
4526 suspended tty frame.
4527 * term.c (Fresume_tty): Resize if the size has changed while the
4528 tty was suspended.
4529
4530 * alloc.c (mark_stack): Properly conditionalize previous change.
4531
4532 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
4533
4534 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4535 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4536 Remove; this code is not used on Windows.
4537
4538 2009-01-30 Eli Zaretskii <eliz@gnu.org>
4539
4540 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4541 EOLs that also has stray ^M characters.
4542
4543 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
4544
4545 * atimer.c (run_timers, alarm_signal_handler):
4546 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4547 * w32inevt.c (w32_console_read_socket):
4548 * w32term.c (w32_read_socket):
4549 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4550
4551 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
4552
4553 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4554 Initialize it as a relative filename pattern.
4555 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4556 (Fcall_process_region): Simplify temp file creation using
4557 temporary-file-directory.
4558
4559 2009-01-29 Eli Zaretskii <eliz@gnu.org>
4560
4561 * msdos.c: Rename pending_signals to msdos_pending_signals.
4562 (sig_suspender, sigprocmask): Adjust.
4563
4564 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
4565
4566 * keyboard.c (pending_signals): New var.
4567 (poll_for_input, input_available_signal, init_keyboard): Set it.
4568 (process_pending_signals): New function.
4569
4570 * lisp.h (QUIT): Check pending_signals instead of
4571 interrupt_input_pending. Use process_pending_signals.
4572
4573 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
4574
4575 * process.c (wait_reading_process_output): Use process_pending_signals.
4576
4577 * sysdep.c (emacs_write): Use process_pending_signals.
4578
4579 * xterm.c (XTread_socket): Update pending_signals.
4580
4581 * w32term.c (w32_read_socket): Update pending_signals.
4582
4583 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4584
4585 2009-01-29 Kenichi Handa <handa@m17n.org>
4586
4587 * xftfont.c (xftfont_has_char): New function.
4588 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4589
4590 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4591
4592 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4593 under GNUstep.
4594 (ns_query_color): New declaration.
4595
4596 * nsterm.m (ns_confirm_quit): New variable.
4597 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4598 (EmacsApp-applicationShouldTerminate:): Use it.
4599 (EmacsPrefsController): Let user set it.
4600 (ns_query_color): New function.
4601 (ns_defined_color): Use it.
4602 (ns_initialize): Drop.
4603 (ns_term_init): Add two lines from ns_initialize(), and set
4604 input_interrupt_mode to nil.
4605
4606 * image.c (svg_load_image): Don't right-shift background RGB when
4607 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
4608
4609 2009-01-28 Kenichi Handa <handa@m17n.org>
4610
4611 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
4612 (fontset_get_font_group): Remember that no font-group is specified
4613 for C.
4614
4615 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
4616
4617 * fns.c (concat): Check for string overflow (bug#1787).
4618
4619 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4620 Quadruple undo limits (bug#1501).
4621
4622 2009-01-27 Kenichi Handa <handa@m17n.org>
4623
4624 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4625 directly use GT_Get_Char_index.
4626
4627 * xftfont.c (struct xftfont_info): New member `index'.
4628
4629 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
4630 (Ffontset_font): Adjust for the change of fontset entry.
4631
4632 2009-01-26 Kenichi Handa <handa@m17n.org>
4633
4634 * fontset.c (fontset_find_font): Fix handling of non-cons return
4635 value of fontset_get_font_group.
4636 (fontset_font): Revert last change.
4637
4638 2009-01-26 Jason Rumney <jasonr@gnu.org>
4639
4640 * w32font.c (w32font_list_internal): Return quickly if registry is
4641 unknown. Simplify final return.
4642 (add_font_entity_to_list): Break complex logic down into more
4643 manageable chunks. Move unknown registry check to
4644 w32font_list_internal.
4645
4646 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
4647
4648 Changes to remove Feval calls from GUI under NS.
4649
4650 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
4651 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
4652 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
4653
4654 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
4655 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
4656 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
4657 instead of NON_ASCII_KEYSTROKE_EVENT.
4658 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
4659 (EmacsApp-applicationShouldTerminate:): Query user.
4660 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
4661 instead of Feval.
4662
4663 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
4664
4665 * keyboard.c (kbd_buffer_get_event): Check for it.
4666 (keys_of_keyboard): Define lispy keys for
4667 ns-put/unput-working-text.
4668
4669 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
4670 versions.
4671 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
4672
4673 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
4674
4675 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
4676 setting current_buffer directly. (Bug#2044)
4677
4678 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
4679
4680 * fontset.c (fontset_font): If we know there is no font, don't do
4681 any work. (Bug#1952, bug#1990).
4682
4683 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
4684
4685 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4686
4687 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
4688 (ns_no_defaults): New declaration.
4689 (main): Use it.
4690
4691 * nsterm.h (ns_no_defaults): New declaration.
4692
4693 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
4694
4695 * nsterm.m (ns_no_defaults): New variable.
4696 (ns_initialize): Don't read defaults when ns_no_defaults.
4697 (EmacsView-readSelectionFromPasteboard:)
4698 (writeSelectionToPasteboard:types:): New stubbed-out methods for
4699 NSServicesRequests protocol. (Bug#1435)
4700 (ns_dumpglyphs_stretch): New function.
4701 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
4702 of 2008-11-15 to other terms. (Bug#615)
4703
4704 * nsimage.m (setPixmapData:): Set to ignore image DPI.
4705
4706 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
4707
4708 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
4709 call for Sparc64.
4710
4711 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4712
4713 * nsfns.m:
4714 * nsgui.h:
4715 * nsmenu.m:
4716 * nsselect.m:
4717 * nsterm.h:
4718 * nsterm.m: Remove '23' comments that indicated code added during
4719 update from emacs-20 -> emacs-23.
4720
4721 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4722
4723 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
4724 ns_alternate_modifier. (Bug#1217)
4725
4726 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
4727 Display all shortcuts, including those w/o super modifier.
4728
4729 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
4730
4731 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
4732
4733 * fileio.c (Vwrite_region_post_annotation_function)
4734 (Vwrite_region_annotation_buffers): New vars.
4735 (build_annotations_unwind): Just reset
4736 Vwrite_region_annotation_buffers.
4737 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
4738 Call write-region-post-annotation-function.
4739 (build_annotations): Add to Vwrite_region_annotation_buffers if
4740 buffer changes.
4741
4742 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4743
4744 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
4745 Tiger.
4746 * nsfns.m (ns_do_applescript):
4747 Conditionalize typeUTF16ExternalRepresentation on Tiger.
4748
4749 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4750
4751 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
4752
4753 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4754
4755 * nsmenu.m (NSMENUPROFILE): Change #if style.
4756
4757 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
4758
4759 * nsterm.m (x_set_frame_alpha): Add prototype.
4760 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
4761 handle Ctrl-tab. (Bug#1841)
4762 (ns_get_color): Use unsigned long long for scanned hex string value.
4763 (ns_term_shutdown): Abort on non SIGTERM signals.
4764 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
4765 (EmacsPrefsController-setPanelFromDefaultValues): New function.
4766 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
4767 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
4768 (ns_defined_color): Fix settings of the XColor variable fields:
4769 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
4770
4771 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
4772 DPI. (Bug#1316)
4773 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
4774 values in onTiger section.
4775
4776 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
4777
4778 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
4779 Check return value of font_spec_from_name.
4780 (Fx_list_fonts): Doc fix. (Bug#1951)
4781
4782 * font.c (font_spec_from_name): Return Qnil if font name could not
4783 be parsed.
4784 (font_parse_name): Treat a `?' character as part of an XLFD.
4785
4786 * fns.c (Fsubstring): Doc fix.
4787
4788 2009-01-19 Kenichi Handa <handa@m17n.org>
4789
4790 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
4791 (ftfont_list): Likewise.
4792
4793 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
4794
4795 * dbusbind.c (Fdbus_register_signal):
4796 * process.c (conv_sockaddr_to_lisp):
4797 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
4798
4799 * callproc.c (Fgetenv_internal): Doc fix.
4800
4801 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
4802
4803 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
4804 it is not even used.
4805
4806 2009-01-16 Glenn Morris <rgm@gnu.org>
4807
4808 * font.c (Ffont_variation_glyphs): Silence compiler.
4809
4810 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
4811
4812 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
4813 Reported by David Robinow <drobinow@gmail.com>.
4814
4815 2009-01-15 Kenichi Handa <handa@m17n.org>
4816
4817 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4818
4819 2009-01-14 Jason Rumney <jasonr@gnu.org>
4820
4821 * frame.c (x_set_font): Always store a font to the font parameter,
4822 never a fontset. (Bug#1562)
4823
4824 2009-01-14 Kenichi Handa <handa@m17n.org>
4825
4826 * coding.c (TWO_MORE_BYTES): New macro.
4827 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
4828
4829 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
4830
4831 * font.c (font_clear_prop): If clearing the family, clear the font
4832 width index too.
4833
4834 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4835
4836 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
4837
4838 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
4839 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
4840 functions, use sizeof.
4841
4842 2009-01-12 Martin Rudalics <rudalics@gmx.at>
4843
4844 * keyboard.c (read_char): Fix case where last_nonmenu_event
4845 returned a bad value with submenus. (Bug#447)
4846
4847 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
4848
4849 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
4850 family, clear the font width index too.
4851
4852 2009-01-11 Jason Rumney <jasonr@gnu.org>
4853
4854 * keyboard.c (cmd_error_internal): Exit when errors occur before
4855 frame creation and not in daemon mode. (Bug#1836)
4856
4857 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
4858
4859 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
4860 of a display vector, backtrack.
4861 (try_window_reusing_current_matrix): Check glyph type before
4862 referencing charpos member.
4863
4864 2009-01-10 Eli Zaretskii <eliz@gnu.org>
4865
4866 Fix Bug #876:
4867
4868 * coding.c (inhibit_null_byte_detection): New variable.
4869 (detect_coding, detect_coding_system): Don't pay attention to null
4870 bytes if inhibit_null_byte_detection is non-zero.
4871 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
4872 <inhibit-iso-escape-detection>: Doc fix.
4873
4874 2009-01-09 Jason Rumney <jasonr@gnu.org>
4875
4876 * w32font.c (add_font_entity_to_list): Don't report unknown
4877 Windows charset as any unrecognized registry. (Bug#1548)
4878 Only report Unicode Plane 2 fonts as unicode-sip.
4879
4880 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
4881
4882 * xfaces.c (Fx_font_family_list): Delete function.
4883 Move compatibility version to faces.el.
4884
4885 * font.c (Ffont_family_list): Return a list of strings, not symbols.
4886
4887 2009-01-09 Martin Rudalics <rudalics@gmx.at>
4888
4889 * frame.c (x_set_frame_parameters): Remember requested value for
4890 fullscreen before it's reset by the parameter handler.
4891
4892 2009-01-09 Glenn Morris <rgm@gnu.org>
4893
4894 * keyboard.c (last_command_char): For clarity, rename to...
4895 (last_command_event): ... and update all users.
4896 (last_input_char): For clarity, rename to...
4897 (last_input_event): ... and update all users.
4898 (last-command-char, last-input-char): Move to subr.el as aliases.
4899 * cmds.c, commands.h: Update for last_command_char rename.
4900
4901 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
4902
4903 * font.c (font_open_for_lface): Handle unspecified height attribute.
4904
4905 2009-01-08 Jason Rumney <jasonr@gnu.org>
4906
4907 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
4908 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
4909 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
4910 Don't declare.
4911 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
4912 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
4913
4914 2009-01-07 Kenichi Handa <handa@m17n.org>
4915
4916 * fileio.c (Finsert_file_contents): In the case of replace,
4917 remember the coding system used for decoding in
4918 coding_system (Bug#1039).
4919
4920 * coding.c (decode_coding_utf_8): Check byte_after_cr before
4921 breaking the loop. (Bug#870)
4922 (decode_coding_utf_16, decode_coding_emacs_mule)
4923 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4924 (decode_coding_charset): Likewise.
4925
4926 2009-01-05 Martin Rudalics <rudalics@gmx.at>
4927
4928 * frame.c (x_set_frame_parameters): Make sure height (width) get
4929 applied when fullwidth (fullheight) is set. (Bug#1522)
4930
4931 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
4932
4933 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
4934 (utc_base): Declare as ULONGLONG, not long double.
4935 (convert_time_raw): Delete.
4936 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
4937 (initialize_utc_base): New function.
4938 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
4939 (convert_from_time_t): Use initialize_utc_base; compute result with
4940 64-bit arithmetic.
4941 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
4942
4943 2009-01-03 Eli Zaretskii <eliz@gnu.org>
4944
4945 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
4946 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
4947 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
4948 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
4949 [!subprocesses]: Define.
4950 (syms_of_process) [!subprocesses]: Intern and staticpro them.
4951 (Flist_system_processes, Fsystem_process_attributes)
4952 [!subprocesses]: Call list_system_processes and
4953 system_process_attributes instead of returning Qnil.
4954
4955 * dosfns.c (system_process_attributes, list_system_processes):
4956 New functions.
4957
4958 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4959
4960 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4961 Don't use the default (no-op) implementation.
4962
4963 2009-01-03 Jason Rumney <jasonr@gnu.org>
4964
4965 * keyboard.c (parse_modifiers_uncached): Wheel events are
4966 clicks (bug#687).
4967
4968 * w32term.c (x_query_colors, x_query_color): New functions.
4969
4970 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4971 (svg_load_image): Cast returned pointers from dynamically loaded
4972 functions. Eliminate W32 specific code.
4973
4974 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4975
4976 * nsfns.m (x_set_foreground_color, x_set_background_color)
4977 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4978 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4979 x_ prefix instead of ns_. Update references.
4980 (syms_of_nsfns): Add a FIXME comment.
4981
4982 * nsterm.m (x_set_cursor_type): New prototype.
4983 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4984
4985 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4986 for Solaris instead of incorrectly providing Qutime and Qcutime.
4987
4988 2009-01-02 Eli Zaretskii <eliz@gnu.org>
4989
4990 * w32.c (process_times): Compute sum of utime and stime.
4991 (system_process_attributes): Add Qtime to the alist.
4992
4993 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
4994 and add them to the alist.
4995
4996 * process.c (top level) <Qtime, Qctime>: New variables.
4997 (syms_of_process): staticpro them.
4998 (Fsystem_process_attributes): Add their documentation to the doc
4999 string.
5000
5001 * process.h: Declare Qtime and Qctime.
5002
5003 2009-01-02 Jason Rumney <jasonr@gnu.org>
5004
5005 * image.c (Qgobject): New symbol.
5006 (syms_of_image): Initialize it.
5007 (init_svg_functions): Load some functions from gobject library.
5008
5009 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5010
5011 * frame.c (make_terminal_frame): Remove redundant code and useless
5012 block.
5013
5014 2009-01-01 Andreas Schwab <schwab@suse.de>
5015
5016 * process.c (conv_sockaddr_to_lisp): Add workaround for
5017 getsockname bug on BSD.
5018
5019 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
5020
5021 * xfns.c (x_create_tip_frame): Set border width of the X window.
5022
5023 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
5024
5025 2009-01-01 Jason Rumney <jasonr@gnu.org>
5026
5027 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
5028 Don't block input, as per earlier xterm.c changes.
5029
5030 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5031
5032 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5033 (ns_appkit_version_int): New function.
5034 (x-server-version): Use ns_appkit_version_int and follow 21+
5035 convention of returning 3 integers.
5036
5037 2008-12-30 Kenichi Handa <handa@m17n.org>
5038
5039 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5040 (CHAR_SURROGATE_PAIR_P): New macro.
5041
5042 * font.h (struct font_driver): New member get_variation_glyphs.
5043
5044 * font.c (font_range): Don't require a font for a variation selector.
5045 (Ffont_variation_glyphs): New function.
5046 (syms_of_font): Defsubr it.
5047
5048 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5049 ftfont_variation_glyphs.
5050 (setup_otf_gstring): New function.
5051 (ftfont_drive_otf): Use it.
5052 (ftfont_shape_by_flt): Handle variation selector.
5053 (ftfont_variation_glyphs): New function.
5054
5055 2008-12-30 Martin Rudalics <rudalics@gmx.at>
5056
5057 * frame.c (Vemacs_iconified): Remove.
5058
5059 2008-12-30 Jason Rumney <jasonr@gnu.org>
5060
5061 * frame.c (store_frame_param, x_get_arg): Enable newer code on
5062 WINDOWSNT too, as related changes have already been synced. (Bug#117)
5063
5064 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
5065
5066 * indent.c (Fvertical_motion): Don't advance iterator if we have
5067 reseated to the desired position.
5068
5069 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5070 checking for pos match.
5071
5072 2008-12-30 Kenichi Handa <handa@m17n.org>
5073
5074 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5075 just get the low 8-bit of the code.
5076
5077 * font.c (font_intern_prop): Validate str as multibyte.
5078
5079 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5080
5081 * dispextern.h (struct face): Move lface and hash from the middle
5082 of bitfields.
5083
5084 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5085
5086 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5087
5088 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5089 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5090 instead of intervals.h.
5091
5092 2008-12-26 Andreas Schwab <schwab@suse.de>
5093
5094 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5095 cons.
5096
5097 2008-12-26 Martin Rudalics <rudalics@gmx.at>
5098
5099 * textprop.c (Qminibuffer_prompt): New variable.
5100 (syms_of_textprop): Initialize it.
5101 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5102 in minibuffer-prompt face. (Bug#1662)
5103
5104 2008-12-25 Jason Rumney <jasonr@gnu.org>
5105
5106 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5107
5108 2008-12-24 Jason Rumney <jasonr@gnu.org>
5109
5110 * ralloc.c (r_alloc_reset_variable): New function.
5111
5112 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
5113 record of what points where. (Bug#716)
5114
5115 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5116
5117 * minibuf.c (read_minibuf): Follow the non-interactive case when
5118 running as a daemon, before detaching.
5119
5120 2008-12-22 Andreas Schwab <schwab@suse.de>
5121
5122 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5123 * gtkutil.c (free_widget_value): Use xfree instead of free.
5124
5125 2008-12-22 Martin Rudalics <rudalics@gmx.at>
5126
5127 * frame.c (delete_frame): New function derived from
5128 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5129 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5130 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5131 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5132 * frame.h: Extern delete_frame.
5133 * window.c (window_loop):
5134 * terminal.c (delete_terminal):
5135 * xterm.c (x_connection_closed):
5136 * xfns.c (Fx_hide_tip):
5137 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
5138
5139 2008-12-21 Jason Rumney <jasonr@gnu.org>
5140
5141 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5142 when character maps to .notdef character.
5143
5144 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5145
5146 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5147
5148 2008-12-20 Jason Rumney <jasonr@gnu.org>
5149
5150 * frame.c (Fmake_terminal_frame): Raise an error when called from
5151 a graphical frame on Windows. (Bug#1325)
5152
5153 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5154
5155 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5156
5157 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
5158
5159 * minibuf.c (Fread_buffer): Doc fix.
5160
5161 2008-12-20 Jason Rumney <jasonr@gnu.org>
5162
5163 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
5164 server name in UNC paths. (Bug#719)
5165
5166 * coding.c (decode_coding): Clear chars_at_source flag when using
5167 charbuf. (Bug#1035)
5168
5169 2008-12-19 Daniel Engeler <engeler@gmail.com>
5170
5171 * sysdep.c (serial_configure): Fix typo.
5172
5173 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5174
5175 * sysdep.c: Include alloca.h.
5176 (system_process_attributes): Add implementation for Solaris.
5177
5178 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
5179
5180 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5181
5182 Reorganize implementation of Flist_system_processes and
5183 Fsystem_process_attributes. No functional changes.
5184 * process.c: Don't #include pwd.h, grp.h and limits.h.
5185 (Flist_system_processes): Just call list_system_processes.
5186 (Fsystem_process_attributes): Just call system_process_attributes.
5187 (procfs_list_system_processes, time_from_jiffies)
5188 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5189 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5190
5191 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5192 (list_system_processes): Rename from
5193 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5194 Provide a do nothing implementation.
5195 (system_process_attributes): Rename from
5196 procfs_list_system_processes.
5197 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5198 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
5199
5200 * w32.c (list_system_processes): Rename from
5201 w32_list_system_processes.
5202 (system_process_attributes): Rename from
5203 w32_system_process_attributes.
5204
5205 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5206
5207 * process.h (w32_list_system_processes)
5208 (w32_system_process_attributes): Remove.
5209 (list_system_processes, system_process_attributes):
5210 New prototypes.
5211
5212 2008-12-19 Kenichi Handa <handa@m17n.org>
5213
5214 * xfont.c (xfont_decode_coding_xlfd): New function.
5215 (xfont_encode_coding_xlfd): New function.
5216 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5217 (xfont_list): Decode and encode XLFD by iso-8859-1.
5218 (xfont_match): Likewise.
5219 (xfont_list_family): Likewise.
5220 (xfont_open): Likewise.
5221
5222 * ftfont.c (ftfont_open): Generate a multibyte string if given
5223 names are utf-8.
5224
5225 * xftfont.c (xftfont_open): Generate a multibyte string if given
5226 names are utf-8.
5227
5228 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5229
5230 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5231 changed.
5232 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5233 clicked on a detached tool bar button.
5234
5235 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5236
5237 * emacs.c (main): Print and error and exit when no data is read
5238 from the pipe.
5239
5240 2008-12-17 Jason Rumney <jasonr@gnu.org>
5241
5242 * w32font.c (w32font_has_char): Always return -1.
5243
5244 2008-12-16 Kenichi Handa <handa@m17n.org>
5245
5246 * font.c (font_open_entity): Fix previous change.
5247
5248 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5249
5250 * process.c: Include <limits.h>.
5251
5252 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
5253
5254 * font.c (font_update_drivers): Fix mistake in reconstructing the
5255 driver list.
5256
5257 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
5258
5259 * font.c (font_clear_cache): Fix format of font cache data.
5260
5261 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
5262
5263 * xftfont.c (xftfont_open): Free Xft font pattern if
5264 XftFontOpenPattern fails.
5265
5266 * xterm.c (x_free_frame_resources): Remove extraneous call to
5267 free_frame_faces.
5268
5269 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
5270
5271 * xterm.c (x_delete_display): Move xim_close_dpy call to
5272 x_delete_terminal.
5273 (x_delete_terminal): Call xim_close_dpy.
5274
5275 2008-12-13 Jason Rumney <jasonr@gnu.org>
5276
5277 * w32font.c (intern_font_name): New function.
5278 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5279 (w32font_open_internal, Fx_select_font): Decode font name.
5280 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5281
5282 * w32font.h (intern_font_name): Declare new function.
5283
5284 * w32uniscribe.c (add_opentype_font_name_to_list):
5285 Use intern_font_name.
5286
5287 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
5288
5289 * frame.c (Fdelete_frame): Call free_font_driver_list.
5290
5291 * font.c (free_font_driver_list): Implement missing function.
5292
5293 * w32term.c (w32_term_init): Don't initialize the image cache
5294 here; it will be done in init_frame_faces.
5295
5296 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5297 (struct x_display_info): Remove unused member null_pixel. New
5298 member xim_callback_data.
5299
5300 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5301 (xim_initialize): Save pointer to callback function data.
5302 (xim_close_dpy): Free callback function data. Call XCloseIM,
5303 reverting 2008-11-04 change by David Smith.
5304 (x_term_init): Don't initialize the image cache here; it will be
5305 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5306 (x_delete_display): Free x_dnd_atoms member.
5307
5308 2008-12-13 Kenichi Handa <handa@m17n.org>
5309
5310 * font.c (font_rescale_ratio): Moved from xfaces.c.
5311 Argument type changed. Handle a font-spec too.
5312 (font_score): Check Vface_font_rescale_alist.
5313 (font_open_entity): Likewise. (Bug#1547)
5314
5315 * xfaces.c (font_rescale_ratio): Moved to font.c.
5316
5317 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
5318
5319 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5320
5321 2008-12-12 Jason Rumney <jasonr@gnu.org>
5322
5323 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5324 Vwindow_system_version to the real w32 major version.
5325
5326 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5327
5328 * term.c (init_tty): Move setting the terminal name before the
5329 potential user: maybe_fatal.
5330
5331 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
5332
5333 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5334 all callers changed. Call free_frame_faces to free the face cache.
5335
5336 2008-12-11 Jason Rumney <jasonr@gnu.org>
5337
5338 * w32font.c (fill_in_logfont): Don't assume symbol script means
5339 SYMBOL_CHARSET. (Bug#547)
5340
5341 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
5342 size for surrogates. (Bug#1096, bug#872)
5343
5344 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
5345
5346 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5347
5348 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
5349
5350 * process.c (Fsystem_process_attributes, syms_of_process):
5351 Fix typo in name of Ssystem_process_attributes.
5352 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5353
5354 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
5355
5356 * syntax.c (Fmodify_syntax_entry): Doc fix.
5357
5358 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
5359
5360 * font.c (Ffont_spec): Move usage to end of docstring.
5361
5362 2008-12-10 Jason Rumney <jasonr@gnu.org>
5363
5364 * w32font.c (Qcham): New symbol.
5365 (font_supported_scripts): Add cham, and comments for other new
5366 scripts in bitfield from OpenType spec.
5367 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5368 contain characters beyond the bmp.
5369
5370 2008-12-10 Kenichi Handa <handa@m17n.org>
5371
5372 * ftfont.c (fc_charset_table): Add "unicode-sip".
5373 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
5374 Qunicode_sip.
5375
5376 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
5377
5378 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5379 (Fcoding_system_put): Use QCdefault_char.
5380 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5381
5382 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
5383
5384 * xftfont.c (syms_of_xftfont): Fix typo.
5385
5386 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
5387
5388 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5389
5390 * emacs.c (main): Close daemon_pipe on exec.
5391
5392 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
5393
5394 * termchar.h (struct tty): New members termcap_term_buffer and
5395 termcap_strings_buffer.
5396
5397 * term.c (encode_terminal_code): Free any previous memory blocks
5398 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
5399 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5400 All callers changed.
5401 (init_tty): Store termcap data and string buffers in new struct
5402 tty members termcap_term_buffer and termcap_strings_buffer.
5403 (delete_tty): Free them.
5404 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
5405
5406 2008-12-07 Seiji Zenitani <zenitani@mac.com>
5407
5408 * nsfns.m (ns_set_background_color): Remove code duplication.
5409 It was a substitute for face-transparency on OS X 10.3.
5410
5411 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
5412
5413 * coding.c (make_conversion_work_buffer): Disable buffer
5414 modification hooks in the work buffer.
5415
5416 2008-12-05 Eli Zaretskii <eliz@gnu.org>
5417
5418 * process.c (procfs_system_process_attributes): If `nread' has a
5419 negative value, assign zero to it.
5420
5421 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
5422
5423 * eval.c (Vdebug_on_error): Doc fix.
5424
5425 2008-12-05 Kenichi Handa <handa@m17n.org>
5426
5427 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5428 second character is a combining character.
5429
5430 2008-12-05 Eli Zaretskii <eliz@gnu.org>
5431
5432 * process.c (procfs_system_process_attributes): Don't use cmd,
5433 cmdsize, and q without initializing them first.
5434
5435 2008-12-04 Jason Rumney <jasonr@gnu.org>
5436
5437 * w32font.c (w32font_draw): Initialize orig_clip before getting
5438 it, and delete it when finished.
5439
5440 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5441
5442 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5443 case when running as a daemon before detaching.
5444
5445 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
5446
5447 * w32.c (init_environment): Don't unload library shell32.dll.
5448
5449 2008-12-03 Kenichi Handa <handa@m17n.org>
5450
5451 * font.c (font_at): Set `multibyte' at first.
5452
5453 * coding.c (decode_coding_charset): Check type of an element of
5454 vector VALIDS.
5455 (encode_coding_emacs_mule): Be sure to set `code'.
5456
5457 * fontset.c (face_for_char): Handle invalid charset property correctly.
5458 (font_for_char): Likewise.
5459
5460 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
5461
5462 * font.c (Fopen_font): Compute pixel size correctly.
5463 (font_update_lface): Handle fonts with corrupted size specs,
5464 i.e. non-int and non-float.
5465
5466 * ftfont.c (ftfont_match): Initialize entity variable.
5467 (ftfont_resolve_generic_family): Avoid using uninitialized var.
5468 (ftfont_list_family): Initialize list var earlier.
5469
5470 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5471
5472 * xterm.c (x_draw_glyph_string): Fall back on
5473 underline_minimum_offset for underline position.
5474
5475 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5476
5477 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5478
5479 * character.c (c_string_width): Specify the type for LEN.
5480
5481 2008-12-03 Kenichi Handa <handa@m17n.org>
5482
5483 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
5484 (decode_coding_utf_8): Likewise.
5485 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
5486 (produce_chars): Initialize consumed_chars to 0.
5487
5488 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
5489
5490 * keyboard.c (make_lispy_position): Only use PT if the selected
5491 window is current.
5492
5493 2008-12-02 Andreas Schwab <schwab@suse.de>
5494
5495 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5496
5497 * doprnt.c (doprnt1): Fix size of charbuf.
5498
5499 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
5500
5501 * keyboard.c (timer_check): Revert last change.
5502
5503 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
5504
5505 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5506
5507 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
5508
5509 * makefile.w32-in: Update dependencies.
5510 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5511
5512 2008-12-01 Andreas Schwab <schwab@suse.de>
5513
5514 * font.c (register_font_driver): Use xmalloc.
5515 (font_put_frame_data): Likewise.
5516
5517 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
5518
5519 * xfaces.c (realize_x_face): Make abort condition clearer.
5520
5521 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5522
5523 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
5524
5525 * keyboard.c (timer_check): After a timer runs, ensure that the
5526 selected window's buffer is current.
5527
5528 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
5529
5530 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5531 It was accidentally restored by the Unicode merge.
5532
5533 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5534
5535 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
5536
5537 * w32proc.c: Include "coding.h".
5538 (Fw32_short_file_name): Encode filename passed to Windows API.
5539 (Fw32_long_file_name): Encode filename passed to Windows API and
5540 decode back the result. (Bug#1433)
5541
5542 2008-11-29 Kenichi Handa <handa@m17n.org>
5543
5544 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5545 not before accessing it.
5546
5547 * charset.c (Fdefine_charset_internal): After calculating
5548 min_char, max_char, and fastmap, copy the charset structure again.
5549 (encode_char): Fix the previous change.
5550
5551 2008-11-28 Seiji Zenitani <zenitani@mac.com>
5552
5553 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5554
5555 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5556
5557 * nsterm.m (x_set_frame_alpha): New function.
5558
5559 2008-11-27 Eli Zaretskii <eliz@gnu.org>
5560
5561 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5562
5563 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
5564
5565 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5566 pointer to check_face_name.
5567
5568 2008-11-27 Kenichi Handa <handa@m17n.org>
5569
5570 * category.h (SET_CATEGORY_SET): Call set_category_set.
5571 (set_category_set): Extern it.
5572
5573 * category.c (hash_get_category_set): New function.
5574 (Fmodify_category_entry): Adjusted for the change of
5575 char_table_ref_and_range. Call hash_get_category_set to get a
5576 category set to store in the table.
5577
5578 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5579 Funify_charset.
5580
5581 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
5582 (DECODE_CHAR): Check if the decoder vector is ready.
5583 (ENCODE_CHAR): Check if the encoder char-table is ready.
5584 (maybe_unify_char): Extern it.
5585
5586 * charset.c (Vchar_unified_charset_table): Delete it.
5587 (inhibit_load_charset_map): New variable.
5588 (temp_charset_work): New variable.
5589 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5590 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5591 New macros.
5592 (load_charset_map): Meaning of control_flag changed. If
5593 inhibit_load_charset_map is nonzero, setup a table in
5594 temp_charset_work.
5595 (load_charset): New argument control_flag.
5596 (map_charset_for_dump): New function.
5597 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5598 map_charset_for_dump.
5599 (Fdefine_charset_internal): If the charset method is MAP, load
5600 mapping tables by calling load_charset.
5601 (Funify_charset): Don't load a mapping table but directly set
5602 Vchar_unify_table.
5603 (maybe_unify_char): New function.
5604 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5605 Handle the case of inhibit_load_charset_map being nonzero.
5606 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5607 Handle the case of inhibit_load_charset_map being nonzero.
5608 (Fclear_charset_maps): Just free temp_charset_work.
5609 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5610 variable.
5611
5612 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5613 change of char_table_ref_and_range.
5614 (char_table_ref_and_range): Change the meaning of argument FROM
5615 and TO. Now the caller must provide initial values for *FROM
5616 and *TO.
5617
5618 * fontset.c (fontset_add): Adjusted for the change of
5619 char_table_ref_and_range.
5620 (fontset_get_font_group): Likewise.
5621 (Ffontset_info): Likewise.
5622
5623 * keymap.c (describe_vector): Adjusted for the change of
5624 char_table_ref_and_range. For char-table, put boundary between
5625 non-ASCII and 8-bit characters.
5626
5627 * print.c (print_object): For bool-vector, delete unnecessary
5628 check of ASCII_BYTE_P.
5629
5630 2008-11-26 Jason Rumney <jasonr@gnu.org>
5631
5632 * w32font.c (w32font_open_internal): Don't include external
5633 leading in font height. (Bug#879)
5634
5635 2008-11-26 Glenn Morris <rgm@gnu.org>
5636
5637 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5638 redefinition with ifdef. (Bug#1383)
5639
5640 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5641
5642 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
5643
5644 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5645
5646 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
5647 New EmacsView methods.
5648 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
5649 Fixes bug #1048,1357,1414.
5650
5651 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5652
5653 Fix bug #1362.
5654 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
5655 is not an indexed color.
5656 * nsterm.m (free_indexed_color): Add argument checking.
5657 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
5658
5659 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
5660
5661 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
5662 Document confirm-after-completion value for
5663 minibuffer-completion-confirm.
5664
5665 2008-11-24 Jason Rumney <jasonr@gnu.org>
5666
5667 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
5668 warning.
5669
5670 2008-11-23 Jason Rumney <jasonr@gnu.org>
5671
5672 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
5673 restored before returning.
5674
5675 * w32font.c (check_face_name): New function.
5676 (add_font_entity_to_list): Use it to filter out common substituted
5677 fonts. (Bug#642)
5678
5679 2008-11-22 Martin Rudalics <rudalics@gmx.at>
5680
5681 * buffer.c (Fswitch_to_buffer): Reword and mention new option
5682 confirm-nonexistent-file-or-buffer in doc-string.
5683
5684 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
5685
5686 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
5687 Fix copy/paste typo. Add checks.
5688
5689 2008-11-21 Kenichi Handa <handa@m17n.org>
5690
5691 * coding.c (detect_coding_iso_2022): Reject invalid composition
5692 sequence.
5693 (DECODE_COMPOSITION_START): If the current source is the last
5694 block, and the current composition doesn't end, regard this
5695 sequence as invalid.
5696 (decode_coding_iso_2022): Handle invalid composition sequence.
5697
5698 2008-11-20 Martin Rudalics <rudalics@gmx.at>
5699
5700 * window.c (coordinates_in_window): Don't return
5701 ON_VERTICAL_BORDER for the rightmost position of a mode/header
5702 line when the window is not the rightmost one. (Bug#1372)
5703
5704 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
5705
5706 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
5707
5708 2008-11-15 Eli Zaretskii <eliz@gnu.org>
5709
5710 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
5711 and bright_bg if noninteractive is non-zero.
5712
5713 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5714
5715 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
5716 x_draw_glyph_string_background.
5717
5718 * w32term.c (x_draw_glyph_string): Likewise.
5719
5720 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
5721
5722 * xterm.c (x_draw_glyph_string): Stop drawing the background of
5723 the next glyph string once past the overhang width.
5724
5725 * nsterm.m (ns_draw_glyph_string): Likewise.
5726
5727 * w32term.c (x_draw_glyph_string): Likewise.
5728
5729 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
5730
5731 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
5732 double file close.
5733
5734 2008-11-14 Martin Rudalics <rudalics@gmx.at>
5735
5736 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
5737 dedicated status of window before attempting to display another
5738 buffer in it.
5739
5740 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
5741
5742 * msdos.c (Fmsdos_long_file_names):
5743 (syms_of_msdos) <dos-unsupported-char-glyph>:
5744 * dosfns.c (Fint86): Fix typos in docstrings.
5745
5746 2008-11-14 Eli Zaretskii <eliz@gnu.org>
5747
5748 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
5749
5750 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
5751
5752 * puresize.h (BASE_PURESIZE): Increase to 1260000.
5753
5754 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
5755
5756 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
5757
5758 * frame.h: Negative alpha means "don't touch".
5759
5760 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
5761
5762 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
5763
5764 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
5765
5766 * hftctl.c:
5767 * chpdef.h:
5768 * acldef.h: Remove files used only for systems no longer supported.
5769
5770 * Makefile.in: Fix .o alphabetical ordering.
5771 (hftctl.o): Remove dependency, file removed.
5772 (keymap.o, print.o): Depend on charset.h.
5773
5774 2008-11-10 Kenichi Handa <handa@m17n.org>
5775
5776 * character.c (Fget_byte): Fix and make it faster for unibyte target.
5777
5778 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
5779
5780 * dired.c (file_name_completion): If completion_ignore_case is
5781 enabled, ignore case when checking completion-regexp-list.
5782
5783 2008-11-08 Eli Zaretskii <eliz@gnu.org>
5784
5785 * vm-limit.c (get_lim_data): Fix last change.
5786
5787 2008-11-08 Kenichi Handa <handa@m17n.org>
5788
5789 * character.c (Fget_byte): New function.
5790 (syms_of_character): Defsubr Fget_byte.
5791
5792 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
5793
5794 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
5795 cursor position is valid after scrolling.
5796
5797 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
5798
5799 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
5800
5801 2008-11-06 Glenn Morris <rgm@gnu.org>
5802
5803 * xterm.c (handle_one_xevent): Don't let popup menus cause
5804 mouse-autoselect-window related window switching. (Bug#1261)
5805
5806 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
5807
5808 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
5809
5810 2008-11-04 Andreas Schwab <schwab@suse.de>
5811
5812 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
5813
5814 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
5815
5816 * xfns.c (Fx_wm_set_size_hint): New function.
5817
5818 2008-11-03 Martin Rudalics <rudalics@gmx.at>
5819
5820 * textprop.c (Fprevious_single_char_property_change): Return 0
5821 when there's no change in a string. (Bug#1301)
5822
5823 2008-11-02 Martin Rudalics <rudalics@gmx.at>
5824
5825 * frame.c (do_switch_frame): New argument NORECORD passed to
5826 Fselect_window.
5827 (Fselect_frame): New argument NORECORD passed to
5828 do_switch_frame.
5829 (Fset_frame_selected_window): New argument NORECORD passed to
5830 Fselect_frame.
5831 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
5832 in call of do_switch_frame.
5833 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
5834 Handle NORECORD argument in call of Fselect_frame.
5835 * lisp.h (do_switch_frame, Fselect_frame)
5836 (Fset_frame_selected_window): Adjust declarations.
5837 * window.c (select_frame_norecord): New function.
5838 (run_window_configuration_change_hook): Use it and call
5839 Fselect_frame with NORECORD set.
5840 (Fselect_window): Pass NORECORD to Fselect_frame.
5841 (Fset_window_configuration): Handle NORECORD argument in call of
5842 do_switch_frame.
5843 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
5844 Fset_frame_selected_window.
5845 * keyboard.c (command_loop_1): Handle NORECORD in call of
5846 Fselect_frame (currently ifdefd).
5847
5848 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
5849
5850 * emacs.c (USAGE2): Untabify.
5851
5852 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
5853
5854 * composite.c (fill_gstring_header): Fix copy/paste typo.
5855
5856 2008-10-31 Martin Rudalics <rudalics@gmx.at>
5857
5858 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
5859 (Fother_window): Rename argument and rewrite doc-string.
5860 (select_window_norecord): Fix return value. (Bug#1276)
5861
5862 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
5863
5864 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
5865 new frames overriding foreground for tooltips. Based on similar patch
5866 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
5867
5868 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
5869
5870 * emacs.c (Fdaemon_initialized): Initialize nfd.
5871
5872 2008-10-29 Martin Rudalics <rudalics@gmx.at>
5873
5874 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
5875 (Fwindow_text_height): Clarify doc-strings.
5876 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
5877 doc-string of window-scroll-functions.
5878
5879 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
5880
5881 * category.c (syms_of_category): Fix typo in docstring.
5882
5883 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
5884
5885 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
5886 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
5887 Fix typos in docstrings.
5888
5889 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
5890
5891 * emacs.c (daemon_pipe): Make non-static.
5892 (IS_DAEMON): Move definition ...
5893 * lisp.h (IS_DAEMON): ... here.
5894 (daemon_pipe): Declare.
5895 (is_daemon): Remove.
5896 * dispnew.c (init_display): Use IS_DAEMON.
5897
5898 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
5899
5900 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
5901 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
5902
5903 * emacs.c (is_daemon): Remove.
5904 (main): Don't set is_daemon.
5905 (IS_DAEMON): New macro.
5906 (Fdaemonp, Fdaemon_initialized): Use it.
5907 (Fdaemon_initialized): Write a char into the pipe to make sure the
5908 parent exits.
5909 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
5910
5911 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
5912
5913 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
5914 over-sized glyph, draw it with the default glyph width.
5915
5916 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5917 glyph, draw it with the default glyph width.
5918
5919 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5920 glyph, draw it with the default glyph width.
5921
5922 * xdisp.c (try_scrolling): When computing the distance from the
5923 scroll margin to PT, try moving some distance past the window
5924 bottom before giving up.
5925
5926 2008-10-27 Martin Rudalics <rudalics@gmx.at>
5927
5928 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
5929 (Fset_window_buffer): Explain in doc-string that a window can be
5930 "strongly" dedicated to its buffer.
5931
5932 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
5933
5934 * emacs.c (daemon_name): New variable.
5935 (main): Deal with --daemon=SERVER_NAME.
5936 (Fdaemonp): Return a name if one was passed to --daemon.
5937
5938 2008-10-26 Romain Francoise <romain@orebokech.com>
5939
5940 * emacs.c (daemon_pipe): New variable.
5941 (main): Create a pipe before forking, make the parent exit only after
5942 the child has closed its end of the pipe. Move closing the
5943 descriptors ...
5944 (Fdaemon_initialized): ... here. New function.
5945
5946 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
5947
5948 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
5949 the previous unoptimized table.
5950
5951 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
5952 the distinction between non-nil and non-t value of `dedicated'.
5953
5954 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
5955
5956 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
5957 read_char_minibuf_menu_text is large enough to hold the menu string.
5958
5959 2008-10-25 Martin Rudalics <rudalics@gmx.at>
5960
5961 * window.c (Fget_buffer_window, Fdelete_windows_on)
5962 (Freplace_buffer_in_windows): Make buffer argument optional and
5963 rename to buffer_or_name.
5964
5965 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
5966
5967 * xdisp.c (handle_single_display_spec, handle_display_prop):
5968 Undo 2005-05-16 change.
5969 (handle_stop): Pop iterator if it's loaded with an empty string.
5970 (get_overlay_strings_1): Don't save iterator if it's loaded with
5971 an empty string (bug#1201).
5972
5973 2008-10-24 Kenichi Handa <handa@m17n.org>
5974
5975 * ftfont.c (ftfont_otf_features): Fix previous change.
5976 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5977 calling ftfont_otf_features.
5978
5979 2008-10-24 Kenichi Handa <handa@m17n.org>
5980
5981 * font.c (font_match_p): Fix for the case that a vector of
5982 characters is in script-representative-chars.
5983
5984 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
5985
5986 * dbusbind.c (xd_in_read_queued_messages): New variable.
5987 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
5988 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5989 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
5990 macro. (Bug#1186)
5991
5992 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
5993
5994 * s/sol2-10.h: New file.
5995
5996 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
5997
5998 * xdisp.c (fill_glyph_string): Fix typo in source (though the
5999 poor beast has survived 9+ years and the jump from xterm.c!).
6000
6001 2008-10-23 Martin Rudalics <rudalics@gmx.at>
6002
6003 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6004 Reword doc-string.
6005 (Fbury_buffer): In doc-string say what happens to the buffer's window.
6006
6007 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
6008
6009 * character.c (syms_of_character) <script-representative-chars>:
6010 <unicode-category-table>: Doc fixes.
6011
6012 2008-10-23 Noah Friedman <friedman@splode.com>
6013
6014 * coding.c (make_conversion_work_buffer): Check that
6015 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6016 Fget_buffer_create.
6017
6018 2008-10-23 Kenichi Handa <handa@m17n.org>
6019
6020 * font.c (font_add_log): Check the values of extra properties.
6021
6022 2008-10-22 Martin Rudalics <rudalics@gmx.at>
6023
6024 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6025 Reword doc-string.
6026 (Fset_window_parameter): Use NILP.
6027 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
6028 (Frecenter): Use "selected" instead of "current" window in doc-strings.
6029
6030 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
6031
6032 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6033
6034 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6035
6036 * nsfns.m (ns_appkit_version): New function.
6037 (x-server-version): Use it.
6038 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6039 (x-server-vendor): Don't check_ns().
6040
6041 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6042
6043 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
6044
6045 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6046 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6047
6048 2008-10-22 Kenichi Handa <handa@m17n.org>
6049
6050 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6051 scripts.
6052
6053 * category.c (word_boundary_p): Check scripts instead of charset.
6054 Handle nil value in word-separating-categories and
6055 word-combining-categories.
6056 (syms_of_category): Fix docstrings of word-separating-categories
6057 and word-combining-categories.
6058
6059 2008-10-21 Eli Zaretskii <eliz@gnu.org>
6060
6061 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6062 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6063
6064 2008-10-21 Martin Rudalics <rudalics@gmx.at>
6065
6066 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6067 Rename arg "buffer" to "buffer_or_name".
6068 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6069 it optional.
6070 (no_switch_window): Remove since the return value is not used.
6071 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
6072 Consider window as dedicated when Fwindow_dedicated_p returns a
6073 non-nil value.
6074 * lisp.h: Remove prototype for no_switch_window.
6075
6076 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6077
6078 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
6079 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
6080
6081 2008-10-21 Kenichi Handa <handa@m17n.org>
6082
6083 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6084 check Vlatin_extra_code_table.
6085
6086 2008-10-20 Eli Zaretskii <eliz@gnu.org>
6087
6088 * fileio.c (Fset_file_modes): Doc fix.
6089
6090 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
6091
6092 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6093 in arrays.
6094
6095 2008-10-19 Martin Rudalics <rudalics@gmx.at>
6096
6097 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6098 Mention kill-buffer in doc-string.
6099 (Fset_window_buffer): Reinsert tem check removed in last commit.
6100 (Fenlarge_window, Fshrink_window): Have argument names and
6101 doc-string follow Elisp manual more closely.
6102
6103 2008-10-18 Eli Zaretskii <eliz@gnu.org>
6104
6105 * fileio.c (Fset_file_modes): Doc fix.
6106
6107 2008-10-18 Martin Rudalics <rudalics@gmx.at>
6108
6109 * window.c (Fwindow_width, Fset_window_start)
6110 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
6111 (Fdelete_windows_on, Freplace_buffer_in_windows):
6112 Make doc-strings follow code and Elisp manual more closely.
6113 (Fwindow_dedicated_p): Make window argument optional.
6114 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6115 (Fset_window_buffer): Respect any non-nil dedicated value for
6116 window. Rename "buffer" argument to "buffer_or_name".
6117
6118 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
6119
6120 * m/sh3.h: New file, machine description for SuperH.
6121
6122 2008-10-17 Martin Rudalics <rudalics@gmx.at>
6123
6124 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6125
6126 2008-10-17 Kenichi Handa <handa@m17n.org>
6127
6128 * ftfont.c (ftfont_otf_features): Fix indexing
6129 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6130
6131 2008-10-16 Magnus Henoch <mange@freemail.hu>
6132
6133 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6134 (Fdbus_call_method_asynchronously): Ditto.
6135 This change makes C-h f display the argument list.
6136
6137 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
6138
6139 * fileio.c (Fexpand_file_name): Doc fix.
6140
6141 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6142 of :foreground and :background equivalent to unspecified (20.x
6143 compatibility).
6144
6145 2008-10-15 Eli Zaretskii <eliz@gnu.org>
6146
6147 * buffer.c (syms_of_buffer): Doc fix.
6148
6149 2008-10-14 Kenichi Handa <handa@m17n.org>
6150
6151 * font.c (font_clear_prop): When clearing font width, clear the
6152 average width field too.
6153
6154 2008-10-12 Andreas Schwab <schwab@suse.de>
6155
6156 * ftfont.c (ftfont_shape_by_flt): Make static.
6157 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6158
6159 * font.c: Don't include <m17n-flt.h>.
6160
6161 2008-10-10 Eli Zaretskii <eliz@gnu.org>
6162
6163 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6164
6165 2008-10-09 Eli Zaretskii <eliz@gnu.org>
6166
6167 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6168 away code.
6169
6170 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
6171
6172 * dispnew.c (update_text_area): Avoid looping due to large glyph
6173 overhangs (bug#1070).
6174
6175 2008-10-09 Kenichi Handa <handa@m17n.org>
6176
6177 * fontset.c (face_for_char): If face->fontset is negative, just
6178 return ascii_face.
6179
6180 * font.c (font_delete_unmatched): Fix previous change.
6181 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
6182
6183 2008-10-09 Martin Rudalics <rudalics@gmx.at>
6184
6185 * frame.c (Fraise_frame): On text-only terminals select frame in
6186 order to make it visible. (Bug#1061)
6187
6188 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
6189
6190 * fontset.c (fontset_find_font): Check frame validity.
6191
6192 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
6193
6194 * gtkutil.c (xg_display_open): Reset default display if none exists.
6195 (xg_display_close): Allow Emacs to close all displays (bug#985).
6196
6197 2008-10-06 Andreas Schwab <schwab@suse.de>
6198
6199 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
6200
6201 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
6202
6203 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
6204
6205 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
6206
6207 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6208 during initialization.
6209
6210 2008-10-04 Eli Zaretskii <eliz@gnu.org>
6211
6212 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6213 whole thing on MSDOS frames as well as on a TTY.
6214
6215 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6216 well as for TTY.
6217 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6218 well as on a TTY.
6219
6220 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6221 as well as for TTY.
6222
6223 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6224
6225 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6226 MSDOS frames as well.
6227
6228 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6229
6230 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6231 correct arguments.
6232 * menu.c (find_and_return_menu_selection): Add cast.
6233
6234 2008-10-03 Glenn Morris <rgm@gnu.org>
6235
6236 * emacs.c (USAGE1): Add --daemon.
6237
6238 2008-10-02 Eli Zaretskii <eliz@gnu.org>
6239
6240 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6241 100, so it's in percents as advertised.
6242
6243 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6244
6245 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6246 (ns_output.current_cursor, ns_output.desired_cursor)
6247 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6248 (FRAME_NEW_CURSOR_COLOR): Remove.
6249
6250 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
6251 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
6252 enumeration (HOLLOW_BOX_CURSOR, etc.).
6253
6254 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6255 (draw_window_cursor): Simplify code.
6256 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6257 Don't change cursor type. In latter, call rehighlight instead of doing
6258 updates manually.
6259 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6260 Use core Emacs cursor types.
6261
6262 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
6263
6264 2008-10-02 Martin Rudalics <rudalics@gmx.at>
6265
6266 * process.c (Faccept_process_output): Fix doc-string.
6267
6268 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6269
6270 * gmalloc.c (__sbrk): Also define for uClibc.
6271
6272 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6273 for uClibc.
6274
6275 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6276
6277 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6278 styles.
6279 (nsfont_open): Reenable the cache.
6280
6281 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6282
6283 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6284 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6285
6286 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6287
6288 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6289 a suspended terminal.
6290
6291 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
6292
6293 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6294
6295 2008-09-30 Eli Zaretskii <eliz@gnu.org>
6296
6297 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6298
6299 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
6300
6301 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6302 in a continued line coincides with a line beginning.
6303
6304 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6305
6306 * nsfont.m (nsfont_trait_distance): Fix bug.
6307 (nsfont_list): Return a list rather than a vector (syncs with Handa
6308 changes of 2008-05-14).
6309 (nsfont_open): Improve logging.
6310
6311 2008-09-29 Andreas Schwab <schwab@suse.de>
6312
6313 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6314
6315 2008-09-28 Martin Rudalics <rudalics@gmx.at>
6316
6317 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6318 name as char-resolve-modifiers.
6319 Reported by: Markus Triska <markus.triska@gmx.at>
6320
6321 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6322
6323 * dispnew.c (init_display): Return earlier when running as a daemon.
6324
6325 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6326
6327 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6328
6329 2008-09-27 Eli Zaretskii <eliz@gnu.org>
6330
6331 * composite.c (Fcomposition_get_gstring)
6332 (Fcompose_region_internal, Fcompose_string_internal)
6333 (Ffind_composition_internal): Doc fix.
6334 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6335 (syms_of_composite) <auto-composition-function>: Doc fix.
6336 (syms_of_composite) <composition-function-table>: Doc fix.
6337
6338 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
6339
6340 * search.c (wordify): New argument for lax word-ends.
6341 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6342
6343 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6344
6345 * lisp.h (is_daemon): Declare.
6346 * dispnew.c (init_display): Do not try to initialize the terminal
6347 when running as a daemon.
6348
6349 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
6350
6351 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6352 x_display_pixel_height.
6353
6354 2008-09-22 Martin Rudalics <rudalics@gmx.at>
6355
6356 * undo.c (record_point): Don't call Fundo_boundary for first
6357 change. (Bug#731)
6358
6359 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
6360
6361 * emacs.c (Fdaemonp): Doc fix.
6362
6363 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6364
6365 * emacs.c (main): Place #ifdef in the proper place.
6366
6367 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6368
6369 * emacs.c (standard_args): Add --daemon.
6370 (main): Disconnect from the terminal when --daemon is passed.
6371 (is_daemon): New variable.
6372 (Fdaemonp): New function.
6373 (syms_of_emacs): Defsubr it.
6374
6375 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
6376
6377 * xdisp.c (get_next_display_element): Handle string display
6378 correctly when checking for the end of a box run.
6379
6380 2008-09-20 Glenn Morris <rgm@gnu.org>
6381
6382 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6383 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6384 (Frename_file): Avoid copying to trash if a rename involves
6385 a delete. (Bug#964).
6386
6387 2008-09-20 Eli Zaretskii <eliz@gnu.org>
6388
6389 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6390 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6391 frames as well as termcap frames.
6392 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6393 get_named_tty.
6394
6395 2008-09-19 Eli Zaretskii <eliz@gnu.org>
6396
6397 * process.c (procfs_system_process_attributes): Fix cmdline in
6398 case /proc/PID/cmdline is empty.
6399
6400 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6401 x_display_pixel_height.
6402
6403 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
6404
6405 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6406
6407 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6408 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6409
6410 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6411
6412 * dispextern.h (struct it): Move line_wrap away from the middle of
6413 bitfields. Move voffset in struct iterator_stack_entry after the
6414 bitfields. Move tab_width near after another short.
6415
6416 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6417
6418 * frame.h (struct frame): Move alpha from the middle of bitfields.
6419
6420 * window.h (struct window): Move frozen_window_start_p after the
6421 rest of the bitfields to reduce padding.
6422
6423 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
6424
6425 * xterm.h (x_display_info): Remove `height' and `width' members.
6426
6427 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6428
6429 * w32term.h (w32_display_info): Remove `height', `width',
6430 `height_in', and `width_in' members.
6431
6432 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6433 New functions.
6434 (x_calc_absolute_position): Use them.
6435 (x_term_init): Omit removed `height' and `width' members.
6436
6437 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6438 New functions.
6439 (w32_read_socket, x_calc_absolute_position): Use them.
6440 (w32_initialize_display_info, w32_term_init): Omit removed members
6441 of w32_display_info.
6442
6443 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6444 New functions.
6445 (ns_initialize_display_info): Omit removed members of ns_display_info.
6446
6447 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6448 New functions.
6449 (x_calc_absolute_position): Use them.
6450 (x_term_init): Omit removed `height' and `width' members.
6451
6452 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6453 (compute_tip_xy):
6454 * frame.c (x_fullscreen_adjust):
6455 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6456 x_display_pixel_width.
6457
6458 2008-09-18 Kenichi Handa <handa@m17n.org>
6459
6460 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6461 (composition_compute_stop_pos): Fix handling of static composition.
6462 (Fcomposition_get_gstring): Check FROM and TO at first.
6463
6464 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6465
6466 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
6467 mixup (YAILOM).
6468
6469 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
6470
6471 * indent.c (Fvertical_motion): Use position reported by iterator
6472 instead of PT for determining screen motion (bug#943).
6473
6474 2008-09-17 Romain Francoise <romain@orebokech.com>
6475
6476 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6477
6478 2008-09-17 Kenichi Handa <handa@m17n.org>
6479
6480 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6481
6482 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6483 if necessary.
6484
6485 2008-09-16 Kenichi Handa <handa@m17n.org>
6486
6487 * coding.c (make_conversion_work_buffer): Avoid calling
6488 Fget_buffer_create if it is not necessary.
6489
6490 2008-09-15 Martin Rudalics <rudalics@gmx.at>
6491
6492 * window.c (Fselect_window): Don't update window_select_count and
6493 use_time when norecord is not nil.
6494
6495 2008-09-14 Kenichi Handa <handa@m17n.org>
6496
6497 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6498 specpdl_ptr.
6499
6500 2008-09-12 Kenichi Handa <handa@m17n.org>
6501
6502 * indent.c (scan_for_column): Don't handle automatic composition
6503 if the current buffer is not associated with a window.
6504
6505 * composite.c (composition_reseat_it): If the current buffer is
6506 not associated with a window, ignore the automatic composition.
6507 (find_automatic_composition): Likewise.
6508
6509 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6510
6511 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6512 (Fgpm_mouse_stop): Use it.
6513 * termhooks.h (close_gpm): Declare.
6514 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6515 connection if Gpm_GetEvent fails.
6516
6517 * window.c (set_window_buffer): Always preserve current-buffer.
6518
6519 2008-09-12 Glenn Morris <rgm@gnu.org>
6520
6521 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6522
6523 2008-09-11 Glenn Morris <rgm@gnu.org>
6524
6525 * charset.c (charset-map-path): Doc fix.
6526
6527 2008-09-10 Kenichi Handa <handa@m17n.org>
6528
6529 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6530
6531 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6532 compose a grapheme cluster with the preceding base glyph.
6533
6534 * composite.c (composition_compute_stop_pos): Fix previous change.
6535 Reset cmp_it->id to -1 at first.
6536
6537 2008-09-10 Glenn Morris <rgm@gnu.org>
6538
6539 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6540
6541 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
6542
6543 * keyboard.c (read_key_sequence): Reapply translation maps when
6544 switching keyboards.
6545
6546 2008-09-09 Kenichi Handa <handa@m17n.org>
6547
6548 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6549 characters.
6550
6551 * composite.c (FORWARD_CHAR): Fix calculation
6552 of (POSITION).pos_byte.
6553 (composition_compute_stop_pos): Limit the search of composition to
6554 at most 500 characters ahead. If we reach the limit or find a
6555 newline, set cmp_it->ch to -2 and return 0.
6556 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6557
6558 2008-09-08 Kenichi Handa <handa@m17n.org>
6559
6560 * indent.c (Fvertical_motion): Be sure to set
6561 it_overshoot_expected if it.cmp_it.id is non-negative.
6562
6563 2008-09-07 Andreas Schwab <schwab@suse.de>
6564
6565 * callproc.c (Fcall_process): Don't hold references to string data
6566 across garbage collection. Move initialisation of new_argv down
6567 to avoid compiler bug.
6568
6569 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6570
6571 * process.c (Fsystem_process_attributes): Doc fix.
6572
6573 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
6574
6575 * callproc.c (Fcall_process): Canonicalize current directory name.
6576
6577 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6578 iterator advances to the next line if the current line ends in a
6579 continued tab.
6580
6581 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6582
6583 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6584 member to point to cmp_from.
6585
6586 * xdisp.c: Doc fix for references to gidx data member.
6587
6588 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6589
6590 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6591
6592 2008-09-07 Kenichi Handa <handa@m17n.org>
6593
6594 * composite.c (FORWARD_CHAR): Check STOP after
6595 incrementing (POSITION).pos.
6596
6597 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6598
6599 * process.c (Fsystem_process_attributes): Doc fix.
6600
6601 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
6602
6603 * keyboard.c (Ftop_level): Doc fix.
6604
6605 2008-09-06 Eli Zaretskii <eliz@gnu.org>
6606
6607 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6608 minibuffer, don't let lower part of menu invade the echo area.
6609
6610 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6611 "char *q" to access menu text and advance through it. Revert the
6612 change that displayed ">" instead of ASCII character 0x10.
6613
6614 2008-09-05 Eli Zaretskii <eliz@gnu.org>
6615
6616 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6617 toggle boxes and radio buttons on MS-DOS as well.
6618
6619 2008-09-05 Kenichi Handa <handa@m17n.org>
6620
6621 * composite.c (autocmp_chars): Check lookback count.
6622 (composition_compute_stop_pos): Set cmp_it->lookback.
6623 (composition_reseat_it): Check lookback count.
6624 (struct position_record): New struct.
6625 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6626 (find_automatic_composition): New function.
6627 (composition_adjust_point): Use find_automatic_composition.
6628
6629 * dispextern.h (struct composition_it): New member lookback.
6630
6631 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
6632
6633 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6634 if moving by a single line.
6635
6636 2008-09-02 Andreas Schwab <schwab@suse.de>
6637
6638 * xterm.c (x_delete_display): Fix merge error.
6639
6640 * fileio.c (Fexpand_file_name): Remove unused variables.
6641
6642 2008-09-02 Eli Zaretskii <eliz@gnu.org>
6643
6644 * fileio.c (Fexpand_file_name): Copy argument `name' into local
6645 storage on all platforms, not just on DOS_NT.
6646
6647 2008-09-02 Jason Rumney <jasonr@gnu.org>
6648
6649 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
6650 Ensure mouse is not grabbed after menu is finished.
6651
6652 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
6653
6654 * xfaces.c (Finternal_set_alternative_font_family_alist)
6655 (Finternal_set_alternative_font_registry_alist): Properly copy
6656 entire alist structure.
6657
6658 2008-09-01 Kenichi Handa <handa@m17n.org>
6659
6660 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
6661 representative chars of the script is a vector.
6662 (ftfont_list): Handle the case where the representative chars of
6663 the script is a vector.
6664
6665 * character.c (syms_of_character): Docstring of
6666 script-representative-chars fixed.
6667
6668 2008-08-31 Eli Zaretskii <eliz@gnu.org>
6669
6670 * msdos.c (BUILD_CHAR_GLYPH): New macro.
6671 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
6672 the menu. Allocate larger buffer for `text', to account for
6673 possible ^C characters.
6674
6675 2008-08-31 Martin Rudalics <rudalics@gmx.at>
6676
6677 * xdisp.c (prepare_menu_bars): Don't call
6678 Vwindow_size_change_functions with arg Qt.
6679
6680 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
6681
6682 * font.h (font_range):
6683 * fileio.c (report_file_error):
6684 * composite.c (composition_update_it): Yet another int/Lisp_Object
6685 mixup (YAILOM).
6686
6687 2008-08-30 Glenn Morris <rgm@gnu.org>
6688
6689 * data.c (Fmake_variable_frame_local): Doc fix.
6690
6691 * frame.c (Fmodify_frame_parameters): Doc fix.
6692
6693 2008-08-30 Eli Zaretskii <eliz@gnu.org>
6694
6695 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
6696 needed by GetTokenInformation.
6697 (w32_system_process_attributes): Check return values of all system
6698 APIs.
6699
6700 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
6701 only when the state changes.
6702 (IT_update_begin, IT_update_end): Add termscript trace.
6703
6704 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
6705 clipboard is unavailable. Set dst to NULL if it doesn't point to
6706 malloc'ed data.
6707 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
6708 passing random values to xfree.
6709
6710 * dispnew.c (init_display): Set `tty's association in frame's
6711 parameters alist to the name of the terminal device, if that is known.
6712
6713 2008-08-29 Jason Rumney <jasonr@gnu.org>
6714
6715 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
6716
6717 2008-08-29 Eli Zaretskii <eliz@gnu.org>
6718
6719 * composite.c (fill_gstring_body): Avoid compiler warnings.
6720
6721 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
6722 LGLYPH_SET_CODE to avoid compiler warnings.
6723
6724 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
6725
6726 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
6727
6728 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
6729 LGLYPH_SET_CODE.
6730
6731 2008-08-29 Kenichi Handa <handa@m17n.org>
6732
6733 * fileio.c (report_file_error): Don't downcase the first character
6734 of errstring if it is still unibyte.
6735
6736 2008-08-29 Kenichi Handa <handa@m17n.org>
6737
6738 These changes are to re-implement the automatic composition so
6739 that it doesn't use text properties.
6740
6741 * Makefile.in (ftfont.o): Depend on composite.h.
6742 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
6743
6744 * character.h (Vunicode_category_table): Extern it.
6745
6746 * character.c (Vunicode_category_table): New variable.
6747 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
6748
6749 * chartab.c (optimize_sub_char_table): Perform more greedy
6750 optimization.
6751
6752 * composite.h (enum composition_method):
6753 Delete COMPOSITION_WITH_GLYPH_STRING.
6754 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
6755 (Vcomposition_function_table): Extern it.
6756 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
6757 (composition_gstring_put_cache, composition_gstring_from_id)
6758 (composition_gstring_p, composition_gstring_width)
6759 (composition_compute_stop_pos, composition_reseat_it)
6760 (composition_update_it, composition_adjust_point): Extern them.
6761 (Fcomposition_get_gstring): EXFUN it.
6762
6763 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
6764 (Vcomposition_function_table)
6765 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
6766 (gstring_hash_table, gstring_work, gstring_work_headers):
6767 New variables.
6768 (gstring_lookup_cache, composition_gstring_put_cache)
6769 (composition_gstring_from_id, composition_gstring_p)
6770 (composition_gstring_width, fill_gstring_header)
6771 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
6772 (composition_reseat_it, composition_update_it)
6773 (composition_adjust_point, Fcomposition_get_gstring): New functions.
6774 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
6775 and gstring_work_headers. DEFVAR_LISP composition-function-table.
6776 Defsubr compostion_get_gstring.
6777
6778 * dispextern.h (struct glyph): New union u.cmp. Delete the member
6779 cmp_id.
6780 (struct glyph_string): Delete the member gidx. New members
6781 cmp_id, cmp_from, and cmp_to.
6782 (enum it_method): Delete GET_FROM_COMPOSITION.
6783 (struct composition_it): New struct.
6784 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
6785 Delete c, len, cmp_id, cmp_len in u.comp.
6786
6787 * font.h (enum lgstring_indices): Delete it.
6788 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
6789 (enum lglyph_indices): Likewise.
6790 (font_range): Adjust extern.
6791 (font_fill_lglyph_metrics): Extern it.
6792
6793 * font.c (QCf): New variable.
6794 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6795 (font_prepare_composition): Delete this function.
6796 (font_range): Type and arguments changed.
6797 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
6798 (font_fill_lglyph_metrics): New function.
6799 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
6800 (syms_of_font): DEFSYM QCf. Delete defsubr for
6801 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
6802 Defsubr Sfont_shape_gstring.
6803
6804 * fontset.h (font_for_char): Extern it.
6805
6806 * fontset.c (font_for_char): New function.
6807
6808 * ftfont.c: Include composite.h.
6809 (ftfont_resolve_generic_family): Add langset "en" to pattern.
6810 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6811
6812 * indent.c: Include composite.h and dispextern.h.
6813 (check_composition): Delete this function.
6814 (scan_for_column): Handle composition by
6815 composition_compute_stop_pos, composition_reseat_it, and
6816 composition_update_it.
6817 (compute_motion): Likewise.
6818 (Fvertical_motion): Fix checking of composition.
6819
6820 * keyboard.c (adjust_point_for_property): Check composition by
6821 composition_adjust_point.
6822
6823 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
6824 struct glyph_string.
6825
6826 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
6827 (append_composite_glyph): Adjust for the change of struct it and
6828 struct glyph.
6829 (produce_composite_glyph): Likewise.
6830
6831 * w32term.c (x_draw_composite_glyph_string_foreground):
6832 Adjust for the change of struct glyph_string.
6833 (x_draw_glyph_string): Likewise.
6834
6835 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
6836 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6837
6838 * xdisp.c: Include font.h.
6839 (it_props): Delete the entry for Qauto_composed.
6840 (init_iterator): Initialize it->cmp_it.id to -1.
6841 (compute_stop_pos): Call composition_compute_stop_pos.
6842 (face_before_or_after_it_pos): Adjust for the change of struct it.
6843 (handle_auto_composed_prop): Delete it.
6844 (handle_composition_prop): Handle only static composition.
6845 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
6846 from xassert. Initialize it->cmp_it.stop_pos.
6847 (push_it): Adjust for the change of struct it.
6848 (pop_it): Likewise.
6849 (get_next_element): Delete next_element_from_composition.
6850 (CHAR_COMPOSED_P): New macro.
6851 (get_next_display_element): For automatic composition, get a face
6852 from the font in the glyph-string.
6853 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
6854 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
6855 (next_element_from_string): Check if the character at the current
6856 position is composed by CHAR_COMPOSED_P.
6857 (next_element_from_buffer): Likewise.
6858 (next_element_from_composition): Adjust for the change of struct it.
6859 Update it->cmp_it.
6860 (dump_glyph): Adjust for the change of struct glyph.
6861 (fill_composite_glyph_string): Adjust for the change of struct
6862 it and struct glyph. Don't handle automatic composition here.
6863 (fill_gstring_glyph_string): New function.
6864 (x_get_glyph_overhangs): Handle automatic composition.
6865 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
6866 (BUILD_GSTRING_GLYPH_STRING): New macro.
6867 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
6868 automatic composition.
6869 (append_composite_glyph): Adjust for the change of struct it and
6870 struct glyph.
6871 (x_produce_glyphs): Adjust for the change of struct it.
6872
6873 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
6874 the change of struct glyph_string.
6875 (x_draw_glyph_string): Likewise.
6876
6877 2008-08-29 Glenn Morris <rgm@gnu.org>
6878
6879 * buffer.c (word-wrap): Doc fix.
6880 * xdisp.c (truncate-partial-width-windows): Doc fix.
6881 Increase default to 50.
6882
6883 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
6884
6885 * xdisp.c (update_tool_bar_unwind): New function.
6886 (update_tool_bar): Temporarily set selected frame before building
6887 tool-bar items.
6888
6889 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
6890
6891 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
6892 snprintf, respectively.
6893 (xd_append_arg): Convert strings with Fstring_make_unibyte.
6894
6895 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
6896
6897 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
6898 LDFLAGS to GNUstep CC invocation.
6899
6900 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
6901
6902 * indent.c (Fvertical_motion): Revert last change. Handle the
6903 general case where we are moving forward, and PT spans multiple
6904 screen lines.
6905
6906 * eval.c (find_handler_clause): Temporarily increase
6907 max-lisp-eval-depth while printing the backtrace buffer, to
6908 guarantee that help-mode code can run.
6909
6910 2008-08-27 Eli Zaretskii <eliz@gnu.org>
6911
6912 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
6913 colors under -rv.
6914 (IT_set_frame_parameters): Don't swap foreground and background
6915 colors if `(reverse . t)' is present in the frame properties.
6916 (internal_terminal_init): Call init_frame_faces only for the
6917 initial frame.
6918
6919 2008-08-27 Andreas Schwab <schwab@suse.de>
6920
6921 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
6922
6923 2008-08-27 Andreas Schwab <schwab@suse.de>
6924
6925 * search.c (search_buffer): Set char_base to zero only at the end.
6926
6927 2008-08-27 Kenichi Handa <handa@m17n.org>
6928
6929 * fileio.c (report_file_error): Fix handling of multibyte error string.
6930
6931 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
6932
6933 * xterm.c (x_term_init): Temporarily hide the partially
6934 initialized terminal while calling vendor-specific-keysyms.
6935
6936 2008-08-26 Eli Zaretskii <eliz@gnu.org>
6937
6938 * msdos.c (internal_terminal_init): Most initializations done only
6939 once, especially initial_screen_colors[] and termscript open.
6940
6941 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
6942
6943 * eval.c (Fcondition_case): Doc fix.
6944
6945 * widgetprv.h (EmacsFramePart): Change font member to the new font
6946 struct.
6947
6948 * widget.c: Include character.h and font.h for XSETFONT.
6949 (setup_frame_gcs): Compute X font id from font struct, just once.
6950
6951 2008-08-26 Eli Zaretskii <eliz@gnu.org>
6952
6953 * term.c (get_named_tty): Fix last change.
6954
6955 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
6956
6957 * indent.c (Fvertical_motion): If moving forward starting from a
6958 multi-line string, move the iterator to the last line of that string.
6959
6960 2008-08-25 Eli Zaretskii <eliz@gnu.org>
6961
6962 * frame.c (do_switch_frame): Mark previously displayed frame as
6963 obscured for FRAME_MSDOS_P frames as well.
6964
6965 2008-08-24 Eli Zaretskii <eliz@gnu.org>
6966
6967 * frame.c (make_terminal_frame): Initialize f->terminal,
6968 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6969 Set the top frame to newly created frame.
6970 (Fmake_terminal_frame): Reuse the_only_display_info.
6971
6972 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6973 estimating available memory.
6974
6975 2008-08-23 David Reitter <david.reitter@gmail.com>
6976
6977 * nsterm.m (ns_draw_window_cursor): Don't call
6978 NSDisableScreenUpdates and NSEnableScreenUpdates on
6979 non-NS_IMPL_COCOA systems.
6980
6981 2008-08-23 Andreas Schwab <schwab@suse.de>
6982
6983 * process.c (procfs_system_process_attributes): Fix use of
6984 uninitialized variables.
6985
6986 2008-08-23 Eli Zaretskii <eliz@gnu.org>
6987
6988 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6989
6990 * dispnew.c (init_display): Remove MS-DOS specific conditions for
6991 calling tty-set-up-initial-frame-faces.
6992
6993 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
6994 Allow MSDOS frames along with X frames.
6995
6996 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
6997 addition to output_termcap.
6998
6999 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7000
7001 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7002 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7003 highlight.
7004
7005 * process.c [!subprocesses]: Define QCname.
7006 (syms_of_process): Intern and staticpro it.
7007
7008 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
7009 Adjust for changes in encoding/decoding routines.
7010 Use encode_coding_object and decode_coding_object instead of
7011 encode_coding and decode_coding.
7012
7013 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
7014
7015 * dosfns.c: Include frame.h before termhooks.h.
7016 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7017 variable termscript.
7018
7019 * s/msdos.h (USER_FULL_NAME): Define.
7020 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7021
7022 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7023 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7024 pw->pw_gecos.
7025
7026 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7027 SELECTED_FRAME as additional (1st) argument.
7028 (tty_read_avail_input): Handle output_msdos_raw in
7029 addition to output_termcap.
7030
7031 * msdos.c: Include frame.h before termhooks.h.
7032 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7033 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7034 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7035 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7036 (IT_set_terminal_modes, IT_reset_terminal_modes)
7037 (IT_set_frame_parameters): Use tty->termscript instead of a global
7038 variable termscript.
7039 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7040 global variable terminal_coding. Don't refer to
7041 Vnonascii_translation_table.
7042 (internal_terminal_init): Set Vwindow_system in current_kboard.
7043 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7044 Announce date and time of session start, if termscript is open.
7045 Don't zero out the_only_display_info (it is done in
7046 term.c:init_tty). Open termscript only of not already open.
7047 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
7048 here instead of dos_ttraw. Don't initialize display if this is an
7049 initial tty. Don't set FRAME_FONT.
7050 (Vwindow_system_version): Bump to 23.
7051 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7052 is available, set up mouse_position_hook.
7053 (dos_ttraw, IT_set_terminal_modes): If called with initial
7054 terminal, do nothing.
7055 (IT_set_frame_parameters): Handle the Qtty_type frame
7056 parameter by calling internal_terminal_init.
7057 (dos_set_window_size, show_mouse_face)
7058 (clear_mouse_face, IT_note_mode_line_highlight)
7059 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7060 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7061 (initialize_msdos_display): New function.
7062 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7063 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7064 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7065 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
7066 Accept additional argument: a pointer to a frame. Update all callers.
7067 (request_sigio, unrequest_sigio): Don't define, now defined on
7068 sysdep.c.
7069 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7070
7071 * term.c [MSDOS]: Include msdos.h.
7072 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7073 conditional to DOS_NT. Allow only one call to this function in a
7074 session. Don't allocate a new struct tty_display_info; instead,
7075 reuse the_only_display_info. Call get_tty_size to get screen
7076 dimensions. Call init_baud_rate to set bad_rate.
7077 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7078 (Fsuspend_tty) [MSDOS]: Don't close input and output.
7079 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
7080 (get_tty_terminal, get_named_tty, Ftty_type)
7081 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7082 output_termcap.
7083 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7084 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
7085 only when subprocesses are supported.
7086
7087 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7088 f->output_data.x.
7089 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7090 terminal devices.
7091
7092 * msdos.h: Remove definition of struct x_display_info and struct
7093 x_output.
7094 (FRAME_FONT): Use output_data.tty.
7095 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
7096 (struct x_display_info): Rename from display_info. Update all users in
7097 msdos.c.
7098 (struct x_output): Remove background_pixel and foreground_pixel.
7099 (the_only_display_info): Rename from the_only_x_display.
7100 (dos_ttraw): Update prototype.
7101
7102 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7103 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7104
7105 2008-08-23 Jason Rumney <jasonr@gnu.org>
7106
7107 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7108 (fn_TIFFSetDirectory): New library function used.
7109 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7110 (tiff_load): Use :index to select among multiple images. Set count
7111 property when multiple images exist.
7112 (gif_format): Use :index, not :image.
7113
7114 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
7115
7116 * xdisp.c (try_scrolling): Check INT_MAX instead of
7117 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7118 to obtain INT_MAX.
7119
7120 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7121
7122 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7123
7124 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7125
7126 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7127 GNUstep library location.
7128
7129 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
7130
7131 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7132 before using it.
7133
7134 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7135
7136 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7137
7138 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7139 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7140 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7141 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7142 (EmacsApp-cursor_blink_handler): Remove declaration.
7143 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7144 match 01 Feb 2008 changes in xterm.c.
7145 (ns_read_socket): Add cast to avoid warning.
7146 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7147 GNUstep.
7148
7149 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
7150
7151 * xselect.c (x_get_foreign_selection): Return nil if desired
7152 selection could not be obtained, instead of signalling an error.
7153
7154 2008-08-20 David Reitter <david.reitter@gmail.com>
7155
7156 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7157 * nsterm.m: Remove ns-specific code for cursor blinking.
7158 (ns_draw_window_cursor): Clear cursor properly rather than
7159 redrawing the area. Respect width of bar cursors.
7160 These changes enable the use of generic blink-cursor-mode and
7161 generic cursor types in NS and support smooth cursor movements (do
7162 not blink off after command).
7163 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7164 Nextstep, too.
7165
7166 2008-08-19 Kenichi Handa <handa@m17n.org>
7167
7168 * font.c (Vfont_log_deferred): New variable.
7169 (font_add_log): Check Vfont_log_deferred.
7170 (font_deferred_log): New function.
7171
7172 * font.h (font_deferred_log): Extern it.
7173
7174 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7175 for sorting.
7176 (face_for_char): Use deferred log.
7177
7178 2008-08-18 Kenichi Handa <handa@m17n.org>
7179
7180 * fontset.c (face_for_char): Add font log.
7181
7182 * font.c (font_add_log): Add the font properties :script, :lang,
7183 and :otf in the log.
7184
7185 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
7186
7187 * xdisp.c: Remove dead code.
7188 (handle_invisible_prop, next_overlay_string): Defer call to
7189 setup_for_ellipsis.
7190 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7191
7192 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
7193
7194 * xfaces.c (lookup_derived_face): Properly handle possible zero
7195 return value of get_lface_attributes.
7196 (merge_faces): Don't tell lookup_derived_face to signal an error
7197 if face is not found.
7198
7199 * dired.c (Fdirectory_files): Doc fix.
7200
7201 * process.c (make_process): Initialize kill_without_query struct
7202 member.
7203
7204 2008-08-15 Eli Zaretskii <eliz@gnu.org>
7205
7206 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7207 Alternative calculation of totphys for Visual Studio 6.
7208
7209 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7210
7211 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7212 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7213 All users changed.
7214 (stat): Only root directory passed to GetDriveType. Allow RAM
7215 disk as well as local fixed disk when w32-get-true-file-attributes
7216 is set to `local'.
7217 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7218 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7219 (w32_cached_id, w32_add_to_cache): New functions.
7220 (get_name_and_id): Look account names in the cache before calling
7221 lookup_account_sid.
7222 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7223 New initialization flags.
7224 (globals_of_w32): Initialize them to zero.
7225 (w32_system_process_attributes): Use w32_cached_id and
7226 w32_add_to_cache.
7227
7228 2008-08-14 Lawrence Mitchell <wence@gmx.li>
7229
7230 * lread.c (Fread_char, Fread_char_exclusive): If no character
7231 event is read before timeout is reached, return nil, rather than
7232 converting to a number.
7233
7234 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
7235
7236 * fns.c (use_dialog_box): Doc fix.
7237
7238 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7239 on OS X.
7240
7241 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
7242
7243 * frame.c (Qns_parse_geometry): New var.
7244 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7245
7246 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
7247
7248 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7249 space character in calculating tabs.
7250
7251 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7252
7253 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7254
7255 2008-08-10 Glenn Morris <rgm@gnu.org>
7256
7257 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7258 silence gcc "limited range of data type" warnings in some
7259 make_fixnum_or_float calls.
7260
7261 2008-08-09 Eli Zaretskii <eliz@gnu.org>
7262
7263 * w32.c (w32_system_process_attributes): If the process does not
7264 exist, return nil.
7265
7266 * w32.c: Include thelp32.h, psapi.h and coding.h.
7267 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7268 declarations.
7269 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7270 (Process32Next_Proc): New typedefs.
7271 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7272 (g_b_init_process32_next, g_b_init_open_thread_token)
7273 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7274 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7275 (g_b_init_get_process_working_set_size)
7276 (g_b_init_global_memory_status_ex): New static variables.
7277 (globals_of_w32): Initialize them.
7278 (create_toolhelp32_snapshot, process32_first, process32_next)
7279 (open_thread_token, impersonate_self, revert_to_self)
7280 (get_process_memory_info, get_process_working_set_size)
7281 (global_memory_status, global_memory_status_ex): New wrapper
7282 functions.
7283 (w32_list_system_processes, w32_system_process_attributes)
7284 (enable_privilege, restore_privilege, ltime, process_times):
7285 New functions.
7286 (convert_time_raw): New function.
7287 (convert_time): Remove conversion of FILETIME into time in 100
7288 nsec units, call convert_time_raw instead.
7289
7290 * process.h (w32_list_system_processes, w32_system_process_attributes):
7291 Add prototypes.
7292 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7293 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7294 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7295 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7296
7297 * process.c (Fsystem_process_attributes): Doc fix.
7298
7299 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
7300
7301 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7302 a continued multi-char glyph; if so, advance to the actual glyph.
7303
7304 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7305
7306 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7307
7308 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7309 (.m.o): Use it.
7310 * config.in: Regenerate.
7311
7312 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
7313
7314 * xdisp.c (redisplay_window): Revert last change.
7315 (try_window): Check bottom scroll margin too.
7316
7317 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7318
7319 * config.in: Regenerate.
7320
7321 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7322 -list-load-path-shadows'.
7323 (nsgui.h): Reduce number of things depending on it.
7324
7325 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
7326
7327 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7328 instead of window-end which does the wrong thing at eob.
7329 (try_cursor_movement): Minor optimization.
7330 (redisplay_window): If scroll margin is defined, don't assume
7331 window doesn't need scrolling.
7332
7333 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7334
7335 * config.in: Regenerate.
7336
7337 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7338 (mostlyclean): Don't delete *.d under NS.
7339
7340 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7341
7342 2008-08-06 Kenichi Handa <handa@m17n.org>
7343
7344 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7345
7346 2008-08-06 Andreas Schwab <schwab@suse.de>
7347
7348 * config.in: Regenerate.
7349
7350 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
7351
7352 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7353 forcing a window start.
7354
7355 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7356 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7357
7358 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7359
7360 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7361 argument.
7362
7363 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
7364
7365 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7366 <scroll-down-aggressively, before-change-functions>:
7367 <after-change-functions>: Reflow docstrings.
7368
7369 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7370 Ken Raeburn <raeburn@gnu.org>
7371
7372 Dock menu customization, based on a patch by Ken Raeburn, plus some
7373 other fixes.
7374 * nsmenu.m (dockMenu): New variable.
7375 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7376
7377 * nsterm.h (dockMenu): Declare.
7378
7379 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7380 (ns_term_init): Initialize dockMenu.
7381 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7382 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7383 left.
7384
7385 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7386
7387 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
7388
7389 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7390
7391 * config.in: Regenerate.
7392
7393 2008-08-04 Seiji Zenitani <zenitani@mac.com>
7394
7395 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7396
7397 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
7398
7399 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7400
7401 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7402
7403 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7404
7405 * keyboard.h: Comment an #endif.
7406
7407 * lisp.h (have_menus_p): Adjust comment.
7408
7409 * menu.c (find_and_return_menu_selection): Fix comparison with
7410 client_data.
7411
7412 * nsmenu.m (popup_activated_flag): New variable.
7413 (popup_activated): New function.
7414 (menu-or-popup-active-p): New exported lisp definition.
7415 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7416 when popup done.
7417 (ns_popup_dialog): Set popup_activated_flag.
7418
7419 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7420 version for GNUstep (handled by conditional typedef in nsterm.m).
7421 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7422 in rgb.txt).
7423
7424 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7425
7426 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7427
7428 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7429
7430 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7431 shortcircuit if popup_activated like GTK and X toolkit.
7432
7433 * m/inter386.h: Change DARWIN to DARWIN_OS.
7434
7435 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7436 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7437 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7438 comment on NO_SOCK_SIGIO.
7439
7440 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
7441
7442 * nsterm.m (windowDidResize): Remove stopModal call.
7443
7444 2008-08-03 Andreas Schwab <schwab@suse.de>
7445
7446 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7447 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7448
7449 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
7450
7451 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7452 Don't use uninitialized pointer variable when using getrlimit.
7453
7454 2008-08-02 Jason Rumney <jasonr@gnu.org>
7455
7456 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7457
7458 2008-08-02 Eli Zaretskii <eliz@gnu.org>
7459
7460 * alloc.c (NSTATICS): Bump to 0x640.
7461
7462 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7463
7464 * lisp.h: Add prototype for directory_files_internal.
7465
7466 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7467 New functions.
7468 (syms_of_process): Defsubr them. Add initializations for various
7469 Q* symbols used in procfs_system_process_attributes.
7470 (procfs_list_system_processes, procfs_system_process_attributes)
7471 [HAVE_PROCFS]: New functions.
7472 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7473 (procfs_get_total_memory): New functions.
7474
7475 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
7476
7477 * xfaces.c (Fx_load_color_file): Fix previous change;
7478 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7479
7480 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
7481
7482 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7483
7484 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7485
7486 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7487
7488 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
7489
7490 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7491
7492 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7493 define NSApplicationDelegateReplySuccess.
7494 (EmacsView -converstationIdentifier): Use long instead of
7495 NSInteger for GNUstep, since it doesn't have NSInteger.
7496
7497 * xmenu.c: Revert last change.
7498
7499 * keyboard.h: Fix last change.
7500
7501 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
7502
7503 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7504 on Windows.
7505
7506 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7507
7508 Warning clearing and clean-up in NS port.
7509 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7510 Add prototypes.
7511 * nsgui.h (FACE_DEFAULT): Remove, unused.
7512 (XGCValues): Change colors to unsigned long.
7513 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7514 nsterm.m.
7515 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7516 (ns_list_fonts): Remove, unused.
7517 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7518 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7519 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7520 (nsfont_draw): Compare face colors to 0, not nil.
7521 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7522 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7523 (-addSubmenuWithTitle:): Use NSMenuItem class.
7524 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7525 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7526 (ns_clip_to_row): Make gc arg a BOOL.
7527 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7528 ns_clip_to_row() call.
7529 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7530 used). Cast FRAME_FONT assignments.
7531 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7532 (ns_string_to_lispmod): Change arg to const char.
7533 (ns_term_init): Use NSMenuItem class.
7534 (EmacsApp -openFile:): Move to different section of file.
7535 (EmacsApp -application:openFiles:): Don't return a value, call
7536 -replyToOpenOrPrint:.
7537 (EmacsView -keyDown:): Fix up cast.
7538 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7539 (EmacsView -menuDown:): Cast tag in call to
7540 find_and_call_menu_selection().
7541 (ns_list_fonts): Remove, unused.
7542 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7543 (ns_fontname_to_xlfd): Make static.
7544 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7545 Remove prototypes (now in keyboard.h).
7546 (next_menubar_widget_id): Remove, unused.
7547 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7548 Remove prototypes (now in keyboard.h).
7549 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7550
7551 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7552
7553 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7554 (floatfns.o): Depend on syssignal.h.
7555 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7556
7557 * systty.h: Fix previous change that removed BSD_TERMIOS.
7558 Add comments to #ifdefs.
7559
7560 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7561
7562 * w32fns.c (w32-load-color-file): Remove.
7563 (x-open-connection): Use renamed Fx_load_color_file.
7564 * xfaces.c (x-load-color-file): Add.
7565 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7566 Emacs.clr.
7567 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7568
7569 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
7570
7571 * dbusbind.c (Fdbus_call_method_asynchronously)
7572 (Fdbus_method_error_internal): New defuns.
7573 (xd_read_message): Handle also reply messages.
7574 (Vdbus_registered_functions_table): Extend docstring.
7575
7576 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
7577
7578 * keyboard.c (gobble_input): Fix previous change.
7579
7580 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7581
7582 * bitmaps/README:
7583 * xfns.c:
7584 * termcap.c:
7585 * term.c:
7586 * syswait.h:
7587 * systty.h:
7588 * systime.h:
7589 * syssignal.h:
7590 * sysdep.c:
7591 * process.h:
7592 * process.c:
7593 * print.c:
7594 * ndir.h:
7595 * lread.c:
7596 * keyboard.c:
7597 * getpagesize.h:
7598 * floatfns.c:
7599 * fileio.c:
7600 * emacs.c:
7601 * doc.c:
7602 * dispnew.c:
7603 * dired.c:
7604 * data.c:
7605 * callproc.c:
7606 * buffer.c:
7607 * README:
7608 * Makefile.in:
7609 * s/template.h:
7610 * s/msdos.h:
7611 * m/vax.h: Remove VMS support.
7612 * s/vms.h:
7613 * vlimit.h:
7614 * uaf.h:
7615 * temacs.opt:
7616 * param.h:
7617 * ioctl.h: Remove file.
7618
7619 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7620
7621 * s/ms-w32.h (MULTI_KBOARD): Remove.
7622 * xterm.c:
7623 * xselect.c:
7624 * xfns.c:
7625 * window.c:
7626 * w32term.c:
7627 * w32fns.c:
7628 * terminal.c:
7629 * termhooks.h:
7630 * term.c:
7631 * sysdep.c:
7632 * keyboard.h:
7633 * keyboard.c:
7634 * frame.h:
7635 * frame.c:
7636 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7637 * config.in: Regenerate.
7638
7639 2008-07-30 Jason Rumney <jasonr@gnu.org>
7640
7641 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
7642
7643 * w32font.c (w32font_encode_char): Leave as unicode if in range.
7644 (w32font_open_internal): Get unicode version of textmetrics.
7645 Don't enable or disable glyph indices here.
7646 (w32font_open): Disable use of glyph indices.
7647
7648 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
7649
7650 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
7651
7652 * minibuf.c (Vread_buffer_function): Doc fix.
7653
7654 2008-07-30 John Paul Wallington <jpw@pobox.com>
7655
7656 * minibuf.c (read_buffer_completion_ignore_case): New var.
7657 (Fread_buffer): Use it.
7658
7659 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
7660
7661 * systty.h (sensemode): Remove empty #if. Remove reference to
7662 BSD_TERMIOS, unused.
7663
7664 * sysdep.c: Remove reference to DGUX.
7665 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
7666
7667 * config.in: Regenerate.
7668
7669 2008-07-30 Jason Rumney <jasonr@gnu.org>
7670
7671 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
7672
7673 2008-07-29 Jason Rumney <jasonr@gnu.org>
7674
7675 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
7676 is populated.
7677 (uniscribe_encode_char): Always use uniscribe.
7678 Avoid using context if cache is populated.
7679
7680 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
7681
7682 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
7683 open menu.
7684
7685 * gtkutil.c (menu_nav_ended): Remove.
7686 (create_menus): Remove signal connect for menu_nav_ended.
7687
7688 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
7689
7690 * xdisp.c (redisplay_window): Check return value of
7691 compute_window_start_on_continuation_line before forcing a window
7692 start.
7693
7694 2008-07-28 Jason Rumney <jasonr@gnu.org>
7695
7696 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
7697
7698 * w32term.c (w32_enable_unicode_output, cleartype_active):
7699 Remove obsolete display options.
7700 (x_draw_glyph_string_background): Don't use old cleartype_active
7701 workaround.
7702 (w32_initialize): Remove cleartype_active initialization.
7703 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
7704
7705 2008-07-28 Andreas Schwab <schwab@suse.de>
7706
7707 * lisp.h (init_weak_hash_tables, syms_of_font)
7708 (xd_read_queued_messages, syms_of_dbusbind): Declare.
7709 (remove_hash_entry): Don't declare.
7710 * eval.c (maybe_call_debugger): Make static and move before use.
7711 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
7712 * xdisp.c: Include "gtkutil.h" if USE_GTK.
7713 * xterm.h (x_set_frame_alpha): Declare.
7714
7715 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
7716
7717 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
7718 (create_menus): Connect selection-done to menu_nav_ended.
7719
7720 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7721
7722 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
7723 Set Vx_resource_name to a fallback. Replace read of 'buffered'
7724 parameter with read of 'alpha' one.
7725 (Qns_frame_parameter): Remove.
7726 * nsselect.m (selection-coding-system)
7727 (next-selection-coding-system, Vselection_coding_system)
7728 (Vnext_selection_coding_system): Drop.
7729
7730 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7731
7732 * nsfns.m (do-applescript, do_applescript): Rename to
7733 ns-do-applescript, ns_do_applescript, and move within file.
7734
7735 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7736
7737 Remove support for Mac Carbon.
7738 * mactoolbox.c:
7739 * macterm.h:
7740 * macterm.c:
7741 * macselect.c:
7742 * macmenu.c:
7743 * macgui.h:
7744 * macfns.c:
7745 * mac.c: Remove file.
7746 * s/darwin.h:
7747 * m/intel386.h:
7748 * xfaces.c:
7749 * xdisp.c:
7750 * window.c:
7751 * tparam.c:
7752 * termhooks.h:
7753 * termcap.c:
7754 * term.c:
7755 * syssignal.h:
7756 * sysselect.h:
7757 * sysdep.c:
7758 * process.c:
7759 * lread.c:
7760 * lisp.h:
7761 * keyboard.c:
7762 * image.c:
7763 * fringe.c:
7764 * frame.h:
7765 * frame.c:
7766 * fontset.c:
7767 * font.h:
7768 * font.c:
7769 * fns.c:
7770 * fileio.c:
7771 * emacs.c:
7772 * dispnew.c:
7773 * dispextern.h:
7774 * config.in:
7775 * atimer.c:
7776 * Makefile.in: Remove code for Carbon.
7777
7778 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7779
7780 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
7781
7782 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7783
7784 * macterm.h (kCGBitmapByteOrder32Host): New define for
7785 non-universal SDKs.
7786
7787 * image.c (mac_create_cg_image_from_image, image_load_image_io)
7788 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7789
7790 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
7791 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7792
7793 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
7794
7795 * w32inevt.c: Include dispextern.h.
7796
7797 2008-07-26 Andreas Schwab <schwab@suse.de>
7798
7799 * print.c (print_object): Fix off-by-one in last change.
7800
7801 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
7802
7803 * term.c (syms_of_term): Don't initialize default_orig_pair,
7804 default_set_foreground and default_set_background on Windows.
7805
7806 2008-07-25 Jason Rumney <jasonr@gnu.org>
7807
7808 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
7809 ScriptItemize. Clean up return value checking. Remove unused
7810 variables.
7811 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
7812 shaping engine.
7813
7814 * w32font.c (w32font_has_char): Handle the case where we can't
7815 determine the script for a character.
7816
7817 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
7818
7819 * term.c (syms_of_term): Initialize default_orig_pair,
7820 default_set_foreground, and default_set_background.
7821
7822 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7823 clash (bug#86).
7824 (getloadavg): Callers changed.
7825
7826 * image.c (svg_load_image): Fix last change.
7827 (svg_load_image): Use rsvg_handle_get_dimensions to check that
7828 image size is valid. Use g_object_unref instead of deprecated
7829 rsvg_handle_free to free rsvg handle.
7830 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7831
7832 2008-07-25 Jason Rumney <jasonr@gnu.org>
7833
7834 * w32font.c (w32font_encode_char): Encode characters outside BMP as
7835 surrogates before looking up glyph index.
7836 (w32font_text_extents): Encode as surrogates if falling back to
7837 functions that need UTF-16 wide chars.
7838
7839 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
7840 BMP as surrogates before looking up glyph index.
7841
7842 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
7843
7844 * image.c (svg_load_image): Check for failure in return value of
7845 rsvg_handle_get_pixbuf. Free rsvg handle when done.
7846
7847 2008-07-25 Jason Rumney <jasonr@gnu.org>
7848
7849 * w32font.c (Fx_select_font): Reverse sense of second arg.
7850
7851 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
7852
7853 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
7854 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
7855
7856 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
7857 (PURESIZE): Use it.
7858
7859 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7860
7861 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
7862 * m/alpha.h (TEXT_END):
7863 * m/ibmrs6000.h (TEXT_END):
7864 * m/macppc.h (TEXT_END):
7865 * s/darwin.h (TEXT_END):
7866 * s/msdos.h (TEXT_END): Remove, unused.
7867 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
7868 * s/cygwin.h: Remove comment.
7869
7870 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
7871 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
7872 * m/intel386.h (DOT_GLOBAL_START):
7873 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
7874 (USG): Remove, file not used on USG platforms.
7875
7876 * Makefile.in (HAVE_X11): Remove empty #else.
7877
7878 2008-07-24 Andreas Schwab <schwab@suse.de>
7879
7880 * fileio.c (Finsert_file_contents): Properly adjust undo list
7881 after format conversion.
7882
7883 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
7884
7885 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
7886 (menu_nav_ended): Remove.
7887 (create_menus): Remove signal connect for menu_nav_ended.
7888 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
7889 create_menus.
7890 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
7891
7892 2008-07-23 Jason Rumney <jasonr@gnu.org>
7893
7894 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
7895 with opened font.
7896 (w32font_open): Set font type to gdi.
7897
7898 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
7899
7900 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
7901
7902 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
7903 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
7904 defines it.
7905 * unexec.c (ADDR_CORRECT): Define unconditionally.
7906
7907 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
7908
7909 * unexec.c: Remove code depending on !COFF and USG, the file is
7910 not used for such systems.
7911
7912 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
7913 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
7914 (LD_SWITCH_SYSTEM_1): Remove, update users.
7915
7916 * s/darwin.h (DATA_END):
7917 * m/intel386.h (DATA_END):
7918 * m/ibmrs6000.h (DATA_END):
7919 * m/alpha.h (DATA_END): Remove, unused.
7920
7921 * config.in: Regenerate.
7922 * s/ms-w32.h (subprocesses): Define unconditionally.
7923 * s/template.h (subprocesses): Update comment.
7924 * s/vms.h (subprocesses):
7925 * s/usg5-4.h (subprocesses):
7926 * s/hpux10-20.h (subprocesses):
7927 * s/gnu-linux.h (subprocesses):
7928 * s/cygwin.h (subprocesses):
7929 * s/bsd-common.h (subprocesses):
7930 * s/aix4-2.h (subprocesses):
7931 * s/darwin.h (subprocesses): Do not define, defined by default now.
7932
7933 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
7934 Remove all references.
7935 (temacs): Add GNUstep specific ld flags.
7936
7937 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
7938 similarly to what X does.
7939
7940 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7941
7942 * nsfns.m (x-list-fonts): Remove.
7943 (syms_of_nsfns): Drop the x-list-fonts declaration.
7944 * nsterm.m: Get rid of remaining "//" comments.
7945
7946 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
7947
7948 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
7949
7950 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
7951 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
7952 (Fns_own_selection_internal, Fx_disown_selection_internal)
7953 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
7954
7955 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
7956 ... */' style of docstrings. Doc fixes.
7957
7958 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7959
7960 * terminfo.c (UP, BC, PC): Undo previous change.
7961
7962 * nsfns.m: Rename ns prefixed functions/variables to the
7963 corresponding x versions. Update references.
7964
7965 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7966
7967 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7968
7969 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7970
7971 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7972 Remove forwarding functions.
7973 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7974 non-static.
7975 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7976 non-static.
7977 (ns_frame_parm_handlers): Use the new names.
7978 (syms_of_nsfns): Move to the end of file.
7979
7980 * nsterm.m (syms_of_nsterm): Move to the end of file.
7981
7982 * dispnew.c (init_display): Remove code for X10.
7983
7984 2008-07-22 Jason Rumney <jasonr@gnu.org>
7985
7986 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7987 bare drive.
7988
7989 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7990
7991 * nsterm.m (syms_of_nsterm): Remove debugging println.
7992
7993 2008-07-22 David Reitter <david.reitter@gmail.com>
7994
7995 * nsfns.m (do_applescript, F_do_applescript): NS version of the
7996 Carbon implementation of the same functionality: execute arbitrary
7997 AppleScript code.
7998
7999 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8000
8001 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8002 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8003 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8004 (Fx_display_mm_height, Fx_display_mm_width)
8005 (Fx_display_backing_store, Fx_display_visual_class)
8006 (Fx_display_save_under, Fx_open_connection)
8007 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8008 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8009 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8010 (Fx_display_pixel_width, Fx_display_pixel_height)
8011 (Fx_display_usable_bounds, Fx_display_planes)
8012 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8013 ... */' style of docstrings.
8014
8015 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8016
8017 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8018 on this platform.
8019 (mips):
8020 * m/iris4d.h (mips): Do not define.
8021 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8022
8023 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8024
8025 * image.c:
8026 * nsfns.m:
8027 * nsselect.m:
8028 * nsterm.h:
8029 * nsterm.m: Rename ns prefixed functions/variables to the
8030 corresponding x versions. Update references.
8031
8032 * m/ibms390x.h (NO_REMAP): Do not undefine.
8033
8034 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8035
8036 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
8037
8038 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8039 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8040 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8041 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8042 (Fns_display_mm_height, Fns_display_mm_width)
8043 (Fns_display_backing_store, Fns_display_visual_class)
8044 (Fns_display_save_under, Fns_open_connection)
8045 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8046 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8047 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8048 (Fns_display_pixel_width, Fns_display_pixel_height)
8049 (Fns_display_usable_bounds, Fx_display_planes)
8050 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8051
8052 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8053
8054 * print.c (print_object): Check print_depth before searching for
8055 circularities.
8056
8057 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
8058
8059 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8060 only sprintf.
8061
8062 2008-07-21 Kenichi Handa <handa@m17n.org>
8063
8064 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8065
8066 2008-07-20 Andreas Schwab <schwab@suse.de>
8067
8068 * syntax.c (find_start_pos, find_start_value)
8069 (find_start_value_byte, find_start_begv, find_defun_start)
8070 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8071
8072 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8073
8074 * s/sol2-3.h: Insert contents of s/sol2.h.
8075 (LD_SWITCH_SYSTEM): Remove redundant definition.
8076 * s/sol2.h: Remove, unused.
8077
8078 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8079
8080 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8081
8082 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8083
8084 * Makefile.in (ns_appdir): Fix typo in find command.
8085
8086 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8087
8088 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8089
8090 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8091 added not supported anymore.
8092
8093 * s/usg5-4-2.h (LIBS_SYSTEM):
8094 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8095
8096 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8097 * s/lynxos.h (GETPGRP_NO_ARG):
8098 * s/hpux10-20.h (NO_SIOCTL_H):
8099 * s/gnu.h (GETPGRP_NO_ARG):
8100 * s/gnu-linux.h (NO_SIOCTL_H):
8101 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8102 * s/cygwin.h (GETPGRP_NO_ARG):
8103 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8104 (C_DEBUG_SWITCH): Remove duplicate definition.
8105
8106 * m/ibms390.h: Remove boilerplate comments.
8107
8108 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8109
8110 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8111 (wait_reading_process_output): Remove code for SunOS, platform not
8112 supported anymore. Use SOLARIS2 instead of sun.
8113
8114 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8115
8116 * font.c (font_open_by_name): Under NS, default lface height to zero.
8117 (font_open_for_lface): Under NS, set size based on frame fontsize.
8118 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8119 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8120
8121 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8122
8123 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8124 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8125 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8126 YES/NO.
8127 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8128 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8129 * Makefile.in (clean): Clear out build destination dir.
8130
8131 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8132
8133 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8134 xterm, xselect.
8135 * lisp.h: Remove declaration of hash_remove.
8136 * nsgui.h: Remove redefinitions of hash_remove.
8137 * fns.c (hash_remove): Rename to hash_remove_from_table.
8138
8139 2008-07-19 Seiji Zenitani <zenitani@mac.com>
8140
8141 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8142 strdup() the family UTF8String before modifying it.
8143
8144 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8145
8146 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8147 NS_FACE_BACKGROUND with 0 instead of nil.
8148 * nsfont.m (nsfont_draw): Same.
8149
8150 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
8151
8152 * nsfns.m (ns_set_background_color): Fix crash.
8153
8154 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
8155
8156 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8157
8158 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8159
8160 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8161
8162 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8163
8164 * gtkutil.c: Include <config.h> instead of "config.h".
8165
8166 * lisp.h (Foverlay_buffer): Add EXFUN.
8167
8168 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8169 child process to complete child_setup. Undo 2005-09-21 change.
8170
8171 * s/darwin.h: Mention setsid after vfork.
8172
8173 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8174
8175 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8176 Depend on macgui.h.
8177
8178 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8179 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8180
8181 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8182 and f19.
8183 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8184
8185 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8186 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8187 Remove enumerators.
8188
8189 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8190 Check if FACE_FROM_ID returns NULL.
8191
8192 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8193
8194 * w32inevt.c (change_frame_size): Remove extern declaration.
8195 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8196 change_frame_size.
8197
8198 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8199
8200 * getloadavg.c: Revert last change (2008-07-15).
8201
8202 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8203
8204 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
8205 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
8206 from configure.
8207
8208 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8209
8210 * s/sol2.h:
8211 * s/sol2-4.h: Reorganize conditionals.
8212
8213 * ecrt0.c: Remove code depending on m68000, not used anymore.
8214
8215 * fns.c (hash_remove): Make static.
8216 * lisp.h (hash_remove): Don't prototype.
8217
8218 * m/ibmrs6000.h:
8219 * m/ibms390x.h:
8220 * m/macppc.h: Remove boilerplate comments.
8221
8222 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8223 Solaris, which does not need them.
8224
8225 * m/vax.h: Remove comments about unsupported systems.
8226
8227 * s/darwin.h: Reorganize ifdefs.
8228
8229 2008-07-17 Andreas Schwab <schwab@suse.de>
8230
8231 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8232
8233 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8234
8235 Use SDATA. Follow coding convention of placing operators at
8236 beginning of next line rather than end of previous line, and placing
8237 spaces around infix operators.
8238
8239 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8240 in case it was defined already.
8241 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8242 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8243 ns_default.
8244 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8245 Lisp_Objects.
8246 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8247 (ns_defined_color, ns_color_to_lisp): Declare.
8248 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8249 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8250 it's accepted even with USE_LISP_UNION_TYPE.
8251 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8252 (update_frame_tool_bar): Remove apparently obsolete tests for
8253 non-integerness of f->tool_bar_lines.
8254 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8255 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8256 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8257 (nsfont_open): Don't confuse NULL for Qnil.
8258 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8259 * menu.h (find_and_call_menu_selection):
8260 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8261 (find_and_return_menu_selection): Always return something.
8262 * frame.h: Include dispextern.h for Display_Info.
8263 (display_x_get_resource): Declare.
8264
8265 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8266
8267 * syntax.c: Remove stdio.h include accidentally introduced in
8268 Emacs.app commit.
8269 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8270 NS_IMPL_COCOA.
8271 * keyboard.c (handle_async_input, input_available_signal): Remove
8272 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8273
8274 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8275
8276 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8277 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8278 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8279 Use SDATA.
8280
8281 * keymap.c: Remove all NS-specific code.
8282 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8283 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8284 where_is_preferred_modifier, return a different value depending on how
8285 preferred is the binding.
8286 (where_is_internal): Adjust accordingly.
8287 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8288 Adjust to new preferred_sequence_p.
8289 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8290 * keyboard.c (parse_solitary_modifier): Not static any more.
8291 * keyboard.h (parse_solitary_modifier): Declare.
8292
8293 2008-07-16 Andreas Schwab <schwab@suse.de>
8294
8295 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8296 of easymenu.
8297
8298 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
8299
8300 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8301 that we don't move off the line.
8302
8303 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8304
8305 * keyboard.c (Qsuper): Remove.
8306 (parse_menu_item): Don't call where_is_internal specially for NS.
8307
8308 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8309
8310 * s/gnu-linux.h: Remove boilerplate comments.
8311
8312 * m/alpha.h (__ELF__): Consolidate conditions.
8313
8314 * m/m68k.h (linux): Use GNU_LINUX instead.
8315 Remove boilerplate comments.
8316
8317 * m/intel386.h: Undo refactoring from previous change.
8318 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8319 too, remove dead code.
8320 (linux): Use GNU_LINUX instead.
8321
8322 2008-07-16 Jason Rumney <jasonr@gnu.org>
8323
8324 * w32gui.h: Repeat 26 June changes lost by last change.
8325
8326 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8327
8328 * systty.h: Remove code for Aix on 386, unsupported platform.
8329
8330 * s/ms-w32.h: Remove boilerplate comments.
8331 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8332
8333 * s/gnu-linux.h (TERM): Remove support.
8334 (HAVE_SYSVIPC): Remove, unused.
8335 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8336 for this system.
8337
8338 * process.c: Remove support for IRIS, unused.
8339 Remove support for TERM, not relevant anymore.
8340
8341 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8342 used with the definition.
8343
8344 * s/aix4-2.h (static): Do not undef.
8345
8346 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8347 only used on Aix.
8348 (HAVE_SYSVIPC): Remove, unused.
8349
8350 * m/hp800.h (CANNOT_DUMP): Do not undef.
8351
8352 * m/alpha.h: Fix comment.
8353
8354 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8355 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8356 used by this configuration.
8357 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8358 * unexec.c: Remove code depending on HPUX and
8359 USG_SHARED_LIBRARIES, not used with this file. Remove code
8360 depending on IRIS, unused. Remove if 0-ed code.
8361
8362 * s/template.h: Remove comments about static.
8363
8364 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8365 Remove if 0-ed code.
8366 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8367 were the same as the default.
8368 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8369 Remove boilerplate comments.
8370 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8371 (HAVE_SYSVIPC): Remove, unused.
8372 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8373
8374 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8375 Remove boilerplate comments.
8376 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8377 Remove boilerplate comments.
8378 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8379 Remove boilerplate comments.
8380 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8381
8382 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8383 USG systems which do not use DATA_SEG_BITS.
8384 Refactor code. Remove boilerplate comments.
8385
8386 * m/ibms390.h:
8387 * m/m68k.h:
8388 * s/bsd-common.h:
8389 * s/cygwin.h:
8390 * s/darwin.h:
8391 * s/freebsd.h:
8392 * s/gnu.h:
8393 * s/msdos.h: Remove boilerplate comments.
8394
8395 * m/iris4d.h: Remove boilerplate comments and code for systems that
8396 do not use this file.
8397 (IRIS_4D): Remove, unused.
8398
8399 * m/mips.h: Remove boilerplate comments and code for systems that
8400 do not use this file.
8401 (SIGN_EXTEND_CHAR):
8402 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8403 * unexmips.c: Remove file, unused.
8404
8405 * editfns.c (Fuser_full_name): Replace the only use of
8406 USER_FULL_NAME with its value.
8407 * config.in: Regenerate.
8408
8409 2008-07-16 David Reitter <david.reitter@gmail.com>
8410
8411 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8412 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8413
8414 2008-07-16 Glenn Morris <rgm@gnu.org>
8415
8416 * emacs.c (system-type): Doc fix.
8417
8418 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8419
8420 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8421 If the cache doesn't work, let's fix it, rather than work around it.
8422
8423 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8424
8425 * Makefile.in: Correct additions for nsfont.o in last commit.
8426 * nsfont.m: New file (forgot last commit).
8427
8428 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8429
8430 * callproc.c (set_initial_environment): Initialize
8431 Vprocess_environment under CANNOT_DUMP (fixes crash when
8432 batch-compiling for bootstrap).
8433
8434 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8435 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8436
8437 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8438 fix crash due to different init order.
8439
8440 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8441
8442 Changes and additions for NeXTstep windowing system (Cocoa and
8443 GNUstep) support.
8444
8445 * Makefile.in:
8446 * config.in: Support defines and build commands for NS port.
8447 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8448 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8449 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8450 windowing.
8451 (struct face): Add synth_ital field.
8452 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8453 (init_display): Initialize Vinitial_window_system to "ns" when so
8454 compiled.
8455 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8456 (display_arg): Use under NS.
8457 (main): Under NS, allocate autorelease pool and handle command line
8458 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8459 (standard_args): Add NS-specific args.
8460 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8461 * font.c (DEFAULT_ENCODING): New variable.
8462 (font_find_for_lface): Use it.
8463 (syms_of_font): Load syms_of_nsfont under NS.
8464 * font.h: Declare nsfont_driver when compiled under NS.
8465 * fontset.c: When compiling under NS, include nsterm.h.
8466 (fontset_from_font): Autoconstruct fontset under NS.
8467 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8468 symbol, document and use it.
8469 (do_switch_frame): When for_deletion under Cocoa, add
8470 Fraise_frame(Qnil).
8471 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8472 (x_get_arg): Allow "yes" and "no" as boolean values.
8473 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8474 Qright under Cocoa.
8475 (focus-follows-mouse): Default to 0 under NS.
8476 * frame.h (enum output_method): Add output_ns.
8477 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8478 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8479 (FRAME_WINDOW_P): NS-specific definition.
8480 * fringe.c (max_used_fringe_bitmap): Make public.
8481 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8482 (getloadavg): Use NeXT code under descendant OS's.
8483 * image.c (includes and header section, x_create_bitmap_from_data)
8484 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8485 (image_background_transparent, x_clear_image_1)
8486 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8487 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8488 (x_to_xcolors, x_from_xcolors, x_disable_image)
8489 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8490 other GUIs, including XPM support using code originally written for
8491 Carbon GUI.
8492 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8493 using NS API.
8494 (image_ascent): Use font metrics macros instead of direct struct field
8495 access.
8496 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8497 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8498 Also, handle NS as GTK for menu bar purposes.
8499 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8500 toolkit where they differ.
8501 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8502 use cachelist, still needed under NS.
8503 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8504 (struct widget_value): Define it here for menu.c.
8505 * keymap.c (includes): Include modifier internals.
8506 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8507 NS.
8508 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8509 support for preferring sequences using certain modifiers, specified by
8510 the FIRSTONLY argument.
8511 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8512 under NS GNUstep implementation.
8513 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8514 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8515 * menu.c: Include nsterm.h under NS.
8516 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8517 (free_menubar_widget_tree_value, update_submenu_strings)
8518 (find_and_call_menu_selection): Treat NS as X and NT.
8519 (find_and_return_menu_selection): New function, used for popup menus.
8520 * nsgui.h:
8521 * nsterm.h:
8522 * nsfns.m:
8523 * nsimage.m:
8524 * nsmenu.m:
8525 * nsselect.m:
8526 * nsterm.m: New files.
8527 * process.c (wait_reading_process_output): Under NS, call ns_select()
8528 instead of plain select().
8529 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8530 beginning of buffer.
8531 * sysselect.h (init_process): Rename when compiling under Cocoa to
8532 avoid name conflict.
8533 * termhooks.h (display_info): Add ns_display_info to union.
8534 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8535 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8536 COCOA environment.
8537 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8538 unexec() signature. (Note, this will dump, but the resulting file
8539 crashes; unexosx is used instead; keeping around for reference and
8540 possible aid in getting dump working under GNUstep.)
8541 * w32gui.h (button_type, widget_value): Remove definitions (now in
8542 keyboard.h).
8543 * window.c: Include nsterm.h when compiling under NS.
8544 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8545 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8546 other GUI windowing systems.
8547 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8548 GTK.
8549 (x_consider_frame_title): Under NS, set icon type and frame
8550 modified-state indicator; use ns_set_name_as_filename() when using
8551 formatted title.
8552 (update_window_cursor): Make public when compiling under NS.
8553 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8554 (hourglass_atimer, Vhourglass_delay
8555 * xfaces.c (header section, init_frame_faces, clear_font_table)
8556 (defined_color, unload_color, x_face_list_fonts)
8557 (prepare_face_for_display): Add NS support parallel to other GUIs.
8558 Emulate GCs like other non-X GUIs.
8559 (split_font_name): Don't lowercase font name under NS.
8560 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8561 under NS.
8562 * s/darwin.h: Add support for compilation under NS.
8563
8564 2008-07-15 Jason Rumney <jasonr@gnu.org>
8565
8566 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8567 (w32_show_hourglass): Rename from show_hourglass.
8568 (w32_hide_hourglass): Rename from hide_hourglass.
8569 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8570 (Vhourglass_delay): Declare extern.
8571 (hourglass_started): Remove.
8572
8573 * xdisp.c (Vhourglass_delay): Remove static.
8574 (hourglass_started, start_hourglass, cancel_hourglass):
8575 Don't include these versions on WINDOWSNT.
8576
8577 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8578
8579 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8580 variables (formerly in xfns.c).
8581 (show_hourglass, hide_hourglass): New prototypes (same).
8582 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8583 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8584 in xfns.c).
8585 (syms_of_xdisp): Declare/initialize display-hourglass,
8586 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8587 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8588 formerly in xfns.c.
8589 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8590 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8591 (start_hourglass, cancel_hourglass): Remove.
8592 (show_hourglass, hide_hourglass): Remove prototypes and static
8593 modifiers.
8594 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8595 hourglass_atimer, hourglass_shown_p declaration/initialization.
8596 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8597 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8598 (start_hourglass, cancel_hourglass): Remove.
8599 (show_hourglass, hide_hourglass): Remove prototypes and static
8600 modifiers.
8601 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8602 hourglass_atimer, hourglass_shown_p declaration/initialization.
8603 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8604 (DEFAULT_HOURGLASS_DELAY): Remove.
8605 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8606 hourglass_shown_p declaration/initialization.
8607
8608 2008-07-14 Jason Rumney <jasonr@gnu.org>
8609
8610 * w32fns.c (w32_get_arg): Remove wrapper function.
8611 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8612 directly.
8613 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8614
8615 2008-07-14 Kenichi Handa <handa@m17n.org>
8616
8617 * xfont.c (xfont_open): Add workaround for X's bug.
8618
8619 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8620
8621 * fontset.c: Include <stdio.h> unconditionally.
8622
8623 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
8624
8625 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8626 for filtering.
8627
8628 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8629
8630 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8631
8632 * m/macppc.h:
8633 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8634
8635 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8636 (SPECIAL_EMACS_INT):
8637 * m/ia64.h (SPECIAL_EMACS_INT):
8638 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8639 * s/gnu.h (NLIST_STRUCT):
8640 * s/aix4-2.h (X11R5_INHIBIT_I18N):
8641 * s/gnu-linux.h (LINUX):
8642 * s/msdos.h (HAVE_FACES):
8643 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
8644
8645 * systty.h:
8646 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
8647 anymore.
8648
8649 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
8650
8651 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
8652 always defined as int.
8653
8654 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
8655 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
8656 * s/gnu-linux.h (HAVE_WAIT_HEADER):
8657 * s/freebsd.h (HAVE_WAIT_HEADER):
8658 * s/bsd-common.h (HAVE_UNION_WAIT):
8659 * s/aix4-2.h (HAVE_WAIT_HEADER):
8660 * m/mips.h (HAVE_UNION_WAIT):
8661 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
8662 (COFF, static): Do not define, they are undefined later in the file.
8663
8664 * process.c (update_status): Don't use a union.
8665 (status_convert):
8666 (sigchld_handler): Use int instead of WAITTYPE.
8667
8668 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
8669
8670 * indent.c (Fvertical_motion): Restore hscroll before moving to
8671 goal column.
8672
8673 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8674
8675 * lisp.h: Remove left over code.
8676
8677 2008-07-11 Andreas Schwab <schwab@suse.de>
8678
8679 * lisp.h: Fix logic in last change.
8680
8681 * menu.h: New file.
8682 * menu.c: Include it.
8683 * xmenu.c: Likewise.
8684 * Makefile.in: Update dependencies.
8685
8686 2008-07-11 Kenichi Handa <handa@m17n.org>
8687
8688 * fontset.c (fontset_from_font): Cancel the previous change.
8689
8690 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8691
8692 * lisp.h:
8693 * w32heap.c:
8694 * emacs.c:
8695 * alloc.c: Replace all references of NO_UNION_TYPE with
8696 USE_LISP_UNION_TYPE.
8697
8698 * m/xtensa.h (NO_UNION_TYPE):
8699 * m/vax.h (NO_UNION_TYPE):
8700 * m/template.h (NO_UNION_TYPE):
8701 * m/sparc.h (NO_UNION_TYPE):
8702 * m/mips.h (NO_UNION_TYPE):
8703 * m/macppc.h (NO_UNION_TYPE):
8704 * m/m68k.h (NO_UNION_TYPE):
8705 * m/iris4d.h (NO_UNION_TYPE):
8706 * m/intel386.h (NO_UNION_TYPE):
8707 * m/ibms390x.h (NO_UNION_TYPE):
8708 * m/ibms390.h (NO_UNION_TYPE):
8709 * m/ibmrs6000.h (NO_UNION_TYPE):
8710 * m/ia64.h (NO_UNION_TYPE):
8711 * m/hp800.h (NO_UNION_TYPE):
8712 * m/arm.h (NO_UNION_TYPE):
8713 * m/amdx86-64.h (NO_UNION_TYPE):
8714 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
8715 defining it the same.
8716
8717 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
8718
8719 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
8720
8721 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8722
8723 * fileio.c:
8724 * sysdep.c
8725 * systty.h:
8726 * m/ibmrs6000.h:
8727 * m/iris4d.h:
8728 * s/aix4-2.h:
8729 * s/freebsd.h:
8730 * s/gnu-linux.h:
8731 * s/hpux10-20.h:
8732 * s/hpux11.h:
8733 * s/netbsd.h:
8734 * s/sol2-3.h:
8735 * s/sol2-4.h:
8736 * s/sol2.h:
8737 * s/usg5-4.h:
8738 * s/vms.h: Remove references to unused variables.
8739
8740 2008-07-10 Andreas Schwab <schwab@suse.de>
8741
8742 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
8743 pattern before matching the generic family.
8744
8745 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8746
8747 * unexec.c:
8748 * s/vms.h:
8749 * s/usg5-4-2.h:
8750 * s/sol2-5.h:
8751 * s/freebsd.h:
8752 * s/darwin.h: Remove dead code.
8753
8754 * m/template.h:
8755 * m/sparc.h:
8756 * m/mips.h:
8757 * m/m68k.h:
8758 * m/iris4d.h:
8759 * m/intel386.h:
8760 * m/ibms390x.h:
8761 * m/ibms390.h:
8762 * m/ia64.h:
8763 * m/hp800.h:
8764 * m/arm.h:
8765 * m/amdx86-64.h: Remove dead code and references to unused
8766 and compiler defined symbols.
8767
8768 * unexmips.c:
8769 * unexelf.c: Remove references to desupported systems.
8770
8771 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
8772
8773 * m/powermac.h: Remove boilerplate comments.
8774 (NO_REMAP): Remove unused definition.
8775
8776 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
8777 define them.
8778
8779 2008-07-10 Kenichi Handa <handa@m17n.org>
8780
8781 * xfont.c (xfont_open): Log the reason of failure.
8782
8783 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
8784
8785 * fontset.c (fontset_get_font_group):
8786 * font.c (font_check_otf): Specify argument types.
8787
8788 2008-07-09 Kenichi Handa <handa@m17n.org>
8789
8790 * coding.c (detect_coding_utf_8): Set detect_info->found only when
8791 non-ASCII char is found.
8792
8793 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
8794 (reorder_font_vector): Change the arg preferred_family to font.
8795 Prefer the spec matching with font.
8796 (fontset_get_font_group): New function.
8797 (fontset_find_font): Change the format of an element of a realized
8798 fontset. Use fontset_get_font_group.
8799 (fontset_font): Try the current fontset, the default fontset, the
8800 fallbacks of the current fontset, and the fallbacks of the default
8801 fontset in this order.
8802 (face_for_char): Delete the shortcut to use the current font.
8803 (fontset_from_font): Don't set fonts for Latin in the fontset.
8804
8805 * font.h (font_make_object, font_match_p): Adjust prototypes.
8806
8807 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
8808
8809 * font.c (font_make_object): New arg entity and pixelsize.
8810 (font_check_otf_features, font_check_otf): New functions.
8811 (font_match_p): Check :lang, :script, and :otf properties.
8812
8813 * xfont.c (xfont_open): Adjust it for the change of
8814 font_make_object.
8815 (xfont_text_extents): Fix initial setting of metrics.
8816
8817 * ftfont.c (struct ftfont_info): New member index, delete member
8818 fc_charset_idx. Make the member order compatible with struct
8819 xftfont_info.
8820 (fc_charset_table): Change charset names to registry names.
8821 (ftfont_pattern_entity): Delete the args registry and
8822 fc_charset_idx. Change the value of :font-entity property
8823 to (FONTNAME . INDEX). Always set :registry property to
8824 `iso10646-1'.
8825 (struct ftfont_cache_data): New struct.
8826 (ftfont_lookup_cache): New arg for_face.
8827 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
8828 (ftfont_driver): Set the member otf_capability.
8829 (ftfont_get_charset): Adjust it for the change of
8830 fc_charset_table.
8831 (OTF_TAG_SYM): New macro.
8832 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
8833 for the change of fc_charset_table.
8834 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
8835 ftfont_pattern_entity. Add FC_INDEX to objset.
8836 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
8837 and ftfont_pattern_entity.
8838 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
8839 font_make_object, struct ftfont_info.
8840 (ftfont_has_char): Use ftfont_get_fc_charset.
8841 (ftfont_otf_features, ftfont_otf_capability): New functions.
8842 (ftfont_shape): Use ftfont_get_otf.
8843 (ftfont_text_extents): Fix initial setting of metrics.
8844
8845 * xftfont.c (struct xftfont_info): New member ft_size. Make the
8846 member order compatible with struct ftfont_info.
8847 (xftfont_open): Add FC_CHARSET to the pattern. Set
8848 xftfont_info->ft_size. Don't unlock the face. Check BDF
8849 properties if appropriate.
8850 (xftfont_close): Unlock the face.
8851 (xftfont_anchor_point, xftfont_shape): Deleted.
8852 (syms_of_xftfont): Don't set members anchor_point and shape of
8853 xftfont_driver.
8854
8855 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
8856 font_make_object.
8857
8858 * w32font.c (w32font_open): Adjust it for the change of
8859 font_make_object.
8860 (w32font_open_internal): Don't set properties of font_object here.
8861
8862 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
8863
8864 * macfns.c (x_create_tip_frame):
8865 * w32fns.c (x_create_tip_frame):
8866 * xfns.c (x_create_tip_frame): Pass parameter argument to
8867 face-set-after-frame-default.
8868
8869 * xfaces.c (Finternal_merge_in_global_face): Save merged
8870 attributes for the default face back into the face vector.
8871
8872 2008-07-08 Andreas Schwab <schwab@suse.de>
8873
8874 * fontset.h: Declare fontset_from_font. Don't declare
8875 new_fontset_from_font and fontset_from_font_name.
8876 * xterm.c: Include "fontset.h".
8877 * Makefile.in (xterm.o): Update dependencies.
8878
8879 2008-07-08 Glenn Morris <rgm@gnu.org>
8880
8881 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
8882 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
8883
8884 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
8885
8886 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
8887 (x_set_frame_parameters): Don't bind it.
8888
8889 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
8890
8891 * w32fns.c (map_w32_filename): Declare extern.
8892
8893 2008-07-07 Jason Rumney <jasonr@gnu.org>
8894
8895 * w32term.c (WS_EX_LAYERED): Define if not already.
8896
8897 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
8898
8899 * xfaces.c (set_font_frame_param): Don't try to set the font
8900 parameter if it is still unspecified in the lface.
8901
8902 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
8903
8904 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
8905 face if it didn't already exist.
8906
8907 * xdisp.c (try_window_id): Give up if word-wrapping is on.
8908
8909 2008-07-05 Andreas Schwab <schwab@suse.de>
8910
8911 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
8912
8913 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
8914
8915 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
8916 word-wrapping.
8917 (IT_DISPLAYING_WHITESPACE): New macro.
8918 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
8919 when word-wrapping. Simplify word-wrapping logic. Use correct
8920 pixel positions when saving copies of the iterator.
8921 (display_line): Use proper wrap point if the last character on a
8922 line was preceded by whitespace.
8923
8924 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
8925
8926 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
8927
8928 2008-07-04 Kenichi Handa <handa@m17n.org>
8929
8930 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
8931
8932 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
8933
8934 2008-07-02 Jason Rumney <jasonr@gnu.org>
8935
8936 * xfns.c (syms_of_xfns): Only define x-select-font when both
8937 HAVE_FREETYPE and USE_GTK.
8938
8939 * xdisp.c (next_element_from_display_vector): Move assignment out
8940 of if statement.
8941
8942 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
8943
8944 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
8945
8946 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
8947 (syms_of_fileio): Initialize and export them.
8948 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
8949
8950 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
8951 (Fsystem_move_file_to_trash): New function.
8952 (syms_of_w32fns): Export it to lisp.
8953
8954 2008-07-01 Jason Rumney <jasonr@gnu.org>
8955
8956 * w32font.c (w32font_text_extents): Don't count overhang as part
8957 of width.
8958
8959 2008-06-30 Miles Bader <miles@gnu.org>
8960
8961 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8962 Add `avoid_cursor_p' field.
8963
8964 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8965 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8966 (append_glyph, append_composite_glyph, produce_image_glyph)
8967 (append_stretch_glyph): Initialize avoid_cursor_p.
8968 (get_it_property): Rename from `get_line_height_property'.
8969 (x_produce_glyphs): Use get_it_property.
8970 (handle_line_prefix, push_display_prop): New functions.
8971 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8972 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8973 New variables.
8974 (syms_of_xdisp): Initialize them.
8975
8976 2008-06-30 Kenichi Handa <handa@m17n.org>
8977
8978 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8979 XftDefaultSubstitute (they are called in XftFontMatch).
8980 (xftfont_open): Fix args to ftfont_font_format.
8981
8982 * ftfont.c (fc_charset_table): New member lang.
8983 (ftfont_resolve_generic_family): New arg pattern.
8984 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
8985 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8986 (ftfont_open): Fix args to ftfont_font_format.
8987 (ftfont_font_format): New arg filename.
8988
8989 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
8990
8991 * xfaces.c (Finternal_merge_in_global_face): If default face was
8992 modified, realize it again. Update the font face attribute.
8993
8994 2008-06-29 Jason Rumney <jasonr@gnu.org>
8995
8996 * w32term.c (x_set_frame_alpha): Fix logic.
8997
8998 2008-06-29 Kenichi Handa <handa@m17n.org>
8999
9000 * fontset.c (Finternal_char_font): Return font-object instead of
9001 font-name.
9002
9003 * composite.c (get_composition_id): Fix the width calculation for TAB.
9004
9005 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9006
9007 * indent.c (Fvertical_motion): Properly handle float column arg.
9008
9009 2008-06-28 Jason Rumney <jasonr@gnu.org>
9010
9011 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9012 (pfnSetLayeredWindowAttributes): New function pointer.
9013 (w32_initialize): Initialize it when supported.
9014 (x_set_frame_alpha): New function.
9015
9016 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9017 (w32_frame_parm_handlers): Set alpha handler.
9018
9019 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9020
9021 2008-06-27 Jason Rumney <jasonr@gnu.org>
9022
9023 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9024 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9025 (w32_to_x_charset, x_to_w32_charset)
9026 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9027 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9028 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9029 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9030 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9031 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9032 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9033 (Qw32_charset_unicode): Remove.
9034 (syms_of_w32fns): Update for above changes.
9035
9036 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9037 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9038 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9039 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9040 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9041 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9042 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9043 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9044 (syms_of_w32font): Update for above changes.
9045
9046 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9047
9048 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9049 removed #if.
9050 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9051
9052 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
9053 Eli Zaretskii <eliz@gnu.org>
9054
9055 * makefile.w32-in (LOCAL_FLAGS):
9056 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9057
9058 * sysdep.c (_spawnlp, _getpid):
9059 Declare with explicit _cdecl instead of _CRTAPI1.
9060
9061 * editfns.c (Fget_internal_run_time):
9062 Check for WINDOWSNT with #ifdef, not #if.
9063
9064 2008-06-26 Jason Rumney <jasonr@gnu.org>
9065
9066 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9067
9068 * w32term.c (x_draw_glyph_string_foreground)
9069 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9070 Use FONT_HANDLE macro.
9071 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9072
9073 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9074 (uniscribe_encode_char): Use FONT_HANDLE macro.
9075
9076 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9077 (w32font_text_extents): Use precast w32_font.
9078 (w32font_close): Free cached metrics.
9079 (w32font_open_internal): Allocate space for name on stack.
9080
9081 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
9082
9083 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9084
9085 2008-06-26 Jason Rumney <jasonr@gnu.org>
9086
9087 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9088 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9089
9090 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
9091
9092 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9093
9094 2008-06-26 Jason Rumney <jasonr@gnu.org>
9095
9096 * w32bdf.c, w32bdf.h: Remove obsolete files.
9097
9098 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9099
9100 * w32gui.h: Don't include w32bdf.h.
9101 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9102 Remove obsolete font support.
9103
9104 * w32font.h (struct w32font_info): Remove compat_w32_font.
9105 Add hfont member.
9106 (FONT_COMPAT): Remove obsolete macro.
9107
9108 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9109 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9110 (w32font_open_internal): Remove compat code. Set new hfont member.
9111 (Fx_select_font): Use new hfont member.
9112
9113 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9114 (uniscribe_encode_char): Use new hfont member.
9115
9116 * w32term.c (x_draw_glyph_string_foreground)
9117 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9118 (x_draw_glyph_string): Use metrics in w32font_info.
9119
9120 2008-06-26 Kenichi Handa <handa@m17n.org>
9121
9122 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9123
9124 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9125
9126 * unexnext.c:
9127 * m/ews4800.h:
9128 * m/hp9000s300.h:
9129 * m/ibm370aix.h:
9130 * m/mips-siemens.h:
9131 * m/ncr386.h:
9132 * m/next.h:
9133 * m/pmax.h:
9134 * m/powerpcle.h:
9135 * m/tandem-s2.h:
9136 * s/386bsd.h:
9137 * s/bsd386.h:
9138 * s/bsd4-1.h:
9139 * s/bsd4-2.h:
9140 * s/bsdos2-1.h:
9141 * s/bsdos2.h:
9142 * s/bsdos3.h:
9143 * s/bsdos4.h:
9144 * s/nextstep.h:
9145 * s/ultrix4-3.h:
9146 * s/usg5-0.h:
9147 * s/usg5-2-2.h:
9148 * s/usg5-2.h:
9149 * s/usg5-4-3.h:
9150 * s/ux4800.h:
9151 * s/uxpds.h:
9152 * s/uxpv.h: Remove support for obsolete systems.
9153 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
9154 Remove, insert contents in s/hpux10-20.h.
9155 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9156 Remove, insert contents in s/aix4-2.h.
9157 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9158 * s/bsd4-3.h: Rename to ...
9159 * s/bsd-common.h: ... this.
9160 * data.c:
9161 * doc.c:
9162 * ecrt0.c:
9163 * emacs.c:
9164 * fileio.c:
9165 * floatfns.c:
9166 * keyboard.c:
9167 * mem-limits.h:
9168 * print.c:
9169 * process.c:
9170 * sysdep.c:
9171 * syssignal.h:
9172 * systty.h:
9173 * syswait.h:
9174 * term.c:
9175 * unexec.c:
9176 * unexelf.c:
9177 * unexhp9k800.c:
9178 * m/hp800.h:
9179 * m/ibmrs6000.h:
9180 * m/mips.h:
9181 * m/vax.h:
9182 * s/darwin.h:
9183 * s/freebsd.h:
9184 * s/gnu.h:
9185 * s/ms-w32.h:
9186 * s/msdos.h:
9187 * s/netbsd.h:
9188 * s/template.h: Remove references to obsolete variables.
9189
9190 * Makefile.in: Add dependencies for all unexec files.
9191 (admindir): Remove unused variable.
9192 (UNEXEC_SRC): Remove references.
9193
9194 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
9195
9196 * xfns.c (x_default_font_parameter): If Xft is available, first
9197 try Monospace-12 for the default font.
9198
9199 2008-06-25 Jason Rumney <jasonr@gnu.org>
9200
9201 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9202
9203 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9204
9205 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9206
9207 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9208
9209 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
9210
9211 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9212 <scroll-conservatively>: Fix typo in docstring.
9213
9214 * xselect.c (Fx_send_client_event): Doc fix.
9215
9216 2008-06-25 Kenichi Handa <handa@m17n.org>
9217
9218 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9219
9220 * font.c (font_parse_fcname): Remove unused variables.
9221 (font_sort_entites): Delete the arg SPEC. Caller changed.
9222 Fix for the case of ! best_only.
9223 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9224
9225 * lisp.h (Fstring_to_unibyte): EXFUN it.
9226
9227 * character.h (str_to_unibyte): Extern it.
9228
9229 * character.c (str_to_unibyte): New function.
9230
9231 * fns.c (Fstring_to_unibyte): New function.
9232 (syms_of_fns): Defsubr it.
9233
9234 2008-06-24 Kenichi Handa <handa@m17n.org>
9235
9236 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9237 DPI too.
9238 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9239
9240 2008-06-24 Andreas Schwab <schwab@suse.de>
9241
9242 * Makefile.in (${lispsource}loaddefs.el): Rename from
9243 ../lisp/loaddefs.el.
9244 (bootstrap-clean): Do what distclean does but don't remove
9245 Makefile.
9246 (distclean): Depend on bootstrap-clean and remove Makefile.
9247
9248 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
9249
9250 * buffer.h (struct buffer): New member word_wrap.
9251
9252 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9253 word-wrap.
9254 (init_buffer_once): Initialize them.
9255
9256 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9257 line_wrap enum possessing three possible values.
9258
9259 * termopts.h: Replace truncate_partial_width_windows with
9260 Vtruncate_partial_width_windows.
9261
9262 * dispnew.c (direct_output_for_insert): Avoid direct output when
9263 inserting a space with word wrap on.
9264
9265 * indent.c (compute_motion): Obey integer values of
9266 truncate-partial-width-windows.
9267
9268 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9269 replacing truncate_partial_width_windows.
9270 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9271 truncate only if the window width is below that integer.
9272 (start_display, resize_mini_window, produce_stretch_glyph)
9273 (display_string, move_it_in_display_line_to): Use line_wrap.
9274 (back_to_previous_visible_line_start, reseat_1): Reset
9275 string_from_display_prop_p.
9276 (display_line): Extend default face to end of line when wrapping.
9277
9278 2008-06-24 Kim F. Storm <storm@cua.dk>
9279
9280 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9281 to wrap continued lines at word boundaries.
9282
9283 2008-06-24 Jason Rumney <jasonr@gnu.org>
9284
9285 * font.c (Ffont_face_attributes): Multiply pixel size before point
9286 conversion to avoid multiplying rounding error.
9287
9288 2008-06-23 Jason Rumney <jasonr@gnu.org>
9289
9290 * w32term.c (x_draw_glyph_string_background)
9291 (x_draw_glyph_string): Remove old bdf font code.
9292
9293 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9294
9295 2008-06-22 Kenichi Handa <handa@m17n.org>
9296
9297 * font.c (font_find_for_lface): Try the adstyle specified in
9298 the property of LFACE_FONT of LFACE (if any).
9299
9300 2008-06-21 Seiji Zenitani <zenitani@mac.com>
9301 Ryo Yoshitake <ryo@shiftmode.net>
9302
9303 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9304
9305 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9306
9307 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9308 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9309 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9310 (witness-emacs): Remove.
9311 (lisp, shortlisp): Move loaddefs.el earlier.
9312 (mostlyclean): Forget about witness-emacs.
9313
9314 2008-06-22 Glenn Morris <rgm@gnu.org>
9315
9316 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9317 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9318
9319 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9320
9321 * Makefile.in (PRECOMP): Remove.
9322 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9323 (witness-emacs): Run `compile-first'.
9324 (.el.elc): Use the new compile-onefile target.
9325
9326 2008-06-21 Kenichi Handa <handa@m17n.org>
9327
9328 * xftfont.c (xftfont_open): Handle QCembolden only when
9329 FC_EMBOLDEN is defined.
9330
9331 2008-06-21 Andreas Schwab <schwab@suse.de>
9332
9333 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9334 (.el.elc): Likewise.
9335
9336 2008-06-21 Miles Bader <miles@gnu.org>
9337
9338 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9339 build dir, not the lisp source dir.
9340
9341 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9342
9343 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9344 (bootstrapclean): Remove.
9345 (.el.elc): New rule.
9346 (PRECOMP): New var.
9347 (../lisp/subdirs.el): Remove.
9348 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9349 (witness-emacs): New target.
9350 (mostlyclean): Remove witness-emacs as well.
9351 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9352 Add witness-emacs dependency.
9353
9354 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
9355
9356 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9357 defined by the font.
9358
9359 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9360
9361 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9362 (bootstrap-clean): New target that keeps TAGS around.
9363 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9364 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9365
9366 2008-06-20 Jason Rumney <jasonr@gnu.org>
9367
9368 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9369 Remove obsolete font code.
9370
9371 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9372 to determine language support.
9373
9374 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9375
9376 * sysdep.c (cfsetspeed): New fun extracted from the code.
9377 (cfmakeraw): Move before first use.
9378
9379 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9380
9381 * sysdep.c (cfmakeraw): Provide fallback implementation.
9382 (serial_configure): Provide fallback implementation of cfsetspeed.
9383
9384 2008-06-20 Kenichi Handa <handa@m17n.org>
9385
9386 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9387 the pattern.
9388
9389 * fontset.c (fontset_from_font): Copy font_spec before changing
9390 the elements.
9391
9392 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9393
9394 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9395
9396 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9397 for explicit `font' parameters.
9398
9399 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9400
9401 2008-06-19 Kenichi Handa <handa@m17n.org>
9402
9403 * frame.c: Include <ctype.h>.
9404 (x_set_font_backend): Allow spacing characters in the X resource
9405 for FontBackend.
9406
9407 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9408
9409 * w32fns.c, xfns.c (Qfont_param): New var.
9410 (syms_of_w32fns): Initialize it.
9411 (x_default_font_parameter): Record explicit `font' into
9412 `font-parameter'.
9413
9414 2008-06-18 Kenichi Handa <handa@m17n.org>
9415
9416 * font.c (font_parse_xlfd): Fix previous change.
9417 (font_parse_fcname): Don't use :fc-unknown-spec.
9418 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9419 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9420 (font_add_log): Prepend the driver name to the resulting fonts.
9421
9422 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9423 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9424 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9425
9426 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9427 (QCembolden): New variables.
9428 (syms_of_xftfont): DEFSYM them.
9429 (xftfont_open): Call XftFontMatch. Don't trust the result of
9430 XftTextExtents8 if the pixel_size is less than 5.
9431
9432 2008-06-18 Andreas Schwab <schwab@suse.de>
9433
9434 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9435 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9436
9437 2008-06-18 Jason Rumney <jasonr@gnu.org>
9438
9439 * w32font.c (w32font_list, w32font_match): Add logging.
9440
9441 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9442
9443 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
9444
9445 * font.c (font_parse_fcname): Store divider characters for
9446 unknown-spec list. For known key symbols, intern using correct
9447 symbol name.
9448
9449 2008-06-17 Kenichi Handa <handa@m17n.org>
9450
9451 * xfaces.c (realize_default_face): If the frame is not on window
9452 system, set the fontset of face to nil.
9453
9454 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9455
9456 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9457
9458 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
9459
9460 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9461 (build_font_name_from_vector): Delete externs.
9462
9463 * xfaces.c (struct font_name): Don't declare.
9464
9465 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9466
9467 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9468
9469 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
9470
9471 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9472
9473 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
9474
9475 * font.c (Ffont_spec): Fix usage in docstring.
9476 (Ffont_face_attributes): Doc fix.
9477
9478 2008-06-16 Andreas Schwab <schwab@suse.de>
9479
9480 * font.c (Ffont_face_attributes): Fix definition.
9481
9482 2008-06-16 Jason Rumney <jasonr@gnu.org>
9483
9484 * font.h (font_style_symbolic_from_value): Remove.
9485
9486 * font.c (font_style_symbolic_from_value): Remove.
9487 (font_style_symbolic): Revert to pre 2008-06-13 version.
9488
9489 * w32font.c (w32_to_fc_weight): New function.
9490 (w32font_full_name, logfont_to_fcname): Use it.
9491
9492 2008-06-16 Kenichi Handa <handa@m17n.org>
9493
9494 * font.c (font_check_object): Delete it.
9495 (font_clear_cache): Check if a font-object is alive.
9496 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9497 font-object to nil.
9498 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9499 (font_at): Don't call font_check_object.
9500 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9501
9502 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9503
9504 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9505
9506 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
9507
9508 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9509
9510 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
9511
9512 * font.c (font_parse_fcname): Only one decimal point.
9513 (font_unparse_fcname): Handle data in family and foundry indices
9514 as symbols, not strings.
9515 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9516
9517 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9518
9519 * font.h (font_unparse_gtkname): Add prototype.
9520
9521 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9522
9523 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9524
9525 2008-06-15 Andreas Schwab <schwab@suse.de>
9526
9527 * font.c (font_update_drivers): Fix crash when no drivers match.
9528
9529 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9530
9531 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9532 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9533
9534 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9535
9536 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9537
9538 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9539
9540 * process.c (Fserial_process_configure, Fprocess_send_eof):
9541 Use EQ to compare Lisp_Objects.
9542
9543 2008-06-13 Jason Rumney <jasonr@gnu.org>
9544
9545 * w32fns.c (Fw32_select_font): Remove old font API function.
9546
9547 * w32font.c (logfont_to_fcname): New function.
9548 (Fx_select_font): New font dialog function compatible with
9549 GTK/fontconfig version.
9550
9551 * font.c (font_style_symbolic_from_value): New function.
9552 (font_style_symbolic): Use it.
9553
9554 * font.h (font_style_symbolic_from_value): Declare new function.
9555
9556 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
9557
9558 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9559 <font-width-table>: Fix typos in docstrings.
9560
9561 2008-06-13 Daniel Engeler <engeler@gmail.com>
9562
9563 These changes add serial port access.
9564 * process.c: Add HAVE_SERIAL.
9565 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9566 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9567 (list_processes_1, select_wrapper, Fstop_process)
9568 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9569 (status_notify): Modify to handle serial processes.
9570 [HAVE_SERIAL] (Fserial_process_configure)
9571 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9572 New functions.
9573 * process.h (struct Lisp_Process): Add `type'.
9574 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9575 New functions.
9576 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9577 serial ports.
9578 (serial_open, serial_configure): New functions.
9579 * w32.h: Add FILE_SERIAL.
9580 (struct _child_process): Add ovl_read, ovl_write.
9581
9582 2008-06-13 Kenichi Handa <handa@m17n.org>
9583
9584 * dispextern.h (enum lface_attribute_index): New member
9585 LFACE_FOUNDRY_INDEX.
9586
9587 * font.c (font_score): Delete arg alternate_families. Check only
9588 weight, slant, width, and size. Ignore the difference of alias
9589 style symbols.
9590 (font_sort_entites): Adjust for the above change. Reflect the
9591 order of font-driver to scores.
9592 (font_list_entities): Don't check alternate_familes here.
9593 (font_clear_prop): Handle foundry.
9594 (font_update_lface): Don't parse "foundry-family" form here.
9595 Handle FONT_FOUNDRY_INDEX.
9596 (font_find_for_lface): Likewise. Handle alternate families here.
9597 If registry is nil, try iso8859-1 and ascii-0.
9598 (font_open_for_lface): Pay attention to size in ENTITY.
9599 (font_open_by_name): Simplify by calling font_load_for_lface.
9600 (free_font_driver_list): Delete it.
9601 (font_update_drivers): Preserve the order of backends.
9602 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9603 of font_score and font_sort_entites.
9604 (font_update_sort_order): Likewise.
9605
9606 * xfaces.c (LFACE_FOUNDRY): New macro.
9607 (check_lface_attrs): Check foundry.
9608 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9609 (merge_face_vectors): Check foundry.
9610 (merge_face_ref): Likewise.
9611 (Finternal_set_lisp_face_attribute): Likewise.
9612 (x_update_menu_appearance): Likewise.
9613 (Finternal_get_lisp_face_attribute): Likewise.
9614 (lface_hash): Likewise.
9615 (lface_same_font_attributes_p): Likewise.
9616 (x_supports_face_attributes_p): Likewise.
9617 (tty_supports_face_attributes_p): Likewise.
9618 (Finternal_set_alternative_font_family_alist): Intern strings.
9619 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9620 (realize_default_face): Set LFACE_FOUNDRY (lface).
9621
9622 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9623 font-driver at first.
9624
9625 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9626
9627 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9628
9629 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9630
9631 2008-06-12 Jim Meyering <meyering@redhat.com>
9632
9633 Make unexec_free handle NULL the same way free does.
9634 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9635
9636 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9637
9638 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9639 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9640 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
9641 (WEAK_ALIAS): Simplify.
9642 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
9643 when searching a unibyte buffer.
9644
9645 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
9646
9647 * xfns.c (Fx_select_font): Rename from x-font-dialog.
9648
9649 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
9650
9651 * w32font.c: Include ctype.h.
9652
9653 2008-06-11 Jason Rumney <jasonr@gnu.org>
9654
9655 * w32font.c (w32font_encode_char): Detect missing glyphs that are
9656 misreported as space.
9657 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
9658 as aliases for registry iso10646-1.
9659
9660 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
9661
9662 * buffer.c (clone_per_buffer_values): Skip `name'.
9663
9664 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
9665
9666 * font.c (font_parse_fcname): Fix last change; accept decimal
9667 points in font size.
9668
9669 2008-06-10 Jason Rumney <jasonr@gnu.org>
9670
9671 * w32uniscribe.c (add_opentype_font_name_to_list):
9672 Skip non unicode fonts.
9673
9674 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
9675
9676 * xfns.c (Fx_font_dialog): New function.
9677
9678 * gtkutil.c (xg_dialog_response_cb): Rename from
9679 xg_file_response_callback.
9680 (pop_down_dialog): Rename from pop_down_file_dialog.
9681 (xg_get_file_name): Callers changed.
9682 (xg_get_font_name): New function.
9683
9684 * gtkutil.h (xg_get_font_name): Insert prototype.
9685
9686 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9687
9688 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
9689 x_underline_minimum_display_offset.
9690 (syms_of_xdisp): Declare it here rather than in xterm.c.
9691 * dispextern.h (underline_minimum_offset): Declare it.
9692 * w32term.c (x_draw_glyph_string): Use it.
9693 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
9694 (syms_of_xterm): Don't declare it any more.
9695 (x_draw_glyph_string): Adjust to the new name.
9696
9697 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
9698
9699 * xterm.c (x_underline_minimum_display_offset): New var.
9700 (x_draw_glyph_string): Use it.
9701 (syms_of_xterm): Declare it.
9702
9703 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
9704
9705 * font.c (font_parse_fcname): Accept GTK-style font names too.
9706
9707 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9708
9709 * dired.c (file_name_completion): Don't return t if the match is exact
9710 but with different capitalization.
9711 * minibuf.c (Ftry_completion): Simplify.
9712
9713 * window.c (Vwindow_point_insertion_type): New var.
9714 (set_window_buffer): Use it.
9715 (syms_of_window): Init and export it to Lisp.
9716
9717 2008-06-10 Kenichi Handa <handa@m17n.org>
9718
9719 * font.h (font_intern_prop): Prototype adjusted.
9720
9721 * font.c (font_intern_prop): New arg force_symbol.
9722 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
9723 Adjust for the change of font_intern_prop.
9724
9725 * ftfont.c (ftfont_pattern_entity):
9726 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
9727 (w32_registry):
9728 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9729 the change of font_intern_prop.
9730
9731 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
9732
9733 * w32menu.c (digest_single_submenu): Declare extern.
9734
9735 2008-06-09 Jason Rumney <jasonr@gnu.org>
9736
9737 * w32term.c (x_make_frame_visible): Use alternate restore flags.
9738
9739 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
9740 (parse_single_submenu): Remove.
9741 (digest_single_submenu): Remove.
9742 (syms_of_w32menu): Don't initialise variables that have moved
9743 to menu.c.
9744 (set_frame_menubar): Sync with version in xmenu.c.
9745 (w32_menu_show): Sync with xmenu_show in xmenu.c.
9746
9747 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
9748 Make static again.
9749
9750 2008-06-09 Jason Rumney <jasonr@gnu.org>
9751
9752 Changes to w32 files related to the move of common menu code
9753 to menu.c on 2008-06-08 by Chong Yidong.
9754
9755 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
9756 defs to w32gui.h.
9757 (single_keymap_panes, push_menu_item, push_menu_pane):
9758 Make globally visible.
9759
9760 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
9761 (local_free, malloc_widget_value, free_widget_value)
9762 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
9763 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
9764 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
9765 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
9766 (menu_items, menu_items_allocated, menu_items_used)
9767 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
9768 (init_menu_items, finish_menu_items, discard_menu_items)
9769 (grow_menu_items, push_submenu_start, push_submenu_end)
9770 (push_left_right_boundary, push_menu_pane, push_menu_item)
9771 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
9772 (free_menubar_widget_tree_value, parse_single_submenu)
9773 (update_submenu_strings): Remove functions.
9774 (xmalloc_widget_value): Remove and declare extern.
9775
9776 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
9777 (OBJ1): Build it.
9778
9779 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
9780 (local_heap, local_alloc, local_free, malloc_widget_value)
9781 (free_widget_value): Define here.
9782
9783 2008-06-09 Kenichi Handa <handa@m17n.org>
9784
9785 * font.h (Qascii_0): Extern it.
9786
9787 * font.c (Qascii_0): New variable.
9788 (syms_of_font): DEFSYM it.
9789 (font_open_by_name): If the registry "iso8859-1" fails, try also
9790 "ascii-0".
9791
9792 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
9793
9794 2008-06-08 Kenichi Handa <handa@m17n.org>
9795
9796 * .gdbinit (xfont): New command.
9797
9798 2008-06-08 Andreas Schwab <schwab@suse.de>
9799
9800 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
9801 * Makefile.in (menu.o): Update dependencies.
9802
9803 * Makefile.in (obj): Always add menu.o.
9804 * emacs.c (main): Always call syms_of_menu.
9805 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
9806
9807 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
9808
9809 * Makefile.in: Compile menu.c.
9810
9811 * lisp.h: Declare syms_of_menu.
9812
9813 * emacs.c (main): Call syms_of_menu.
9814
9815 * keyboard.h: Relocate platform-independent menu definitions from
9816 xmenu.c.
9817
9818 * menu.c: New file. Relocate platform-independent menu
9819 definitions from xmenu.c. Suggested by Adrian Robert.
9820
9821 * xmenu.c: Remove platform-independent menu definitions.
9822 (menu_items menu_items_inuse, menu_items_allocated)
9823 (menu_items_used, menu_items_n_panes)
9824 (menu_items_submenu_depth): Move to keyboard.h.
9825 (init_menu_items, finish_menu_items, unuse_menu_items)
9826 (discard_menu_items, restore_menu_items, save_menu_items)
9827 (grow_menu_items, push_submenu_start, push_submenu_end)
9828 (push_left_right_boundary, push_menu_pane, push_menu_item)
9829 (keymap_panes, single_keymap_panes, single_menu_item)
9830 (list_of_panes, list_of_items, find_and_call_menu_selection)
9831 (xmalloc_widget_value, free_menubar_widget_value_tree)
9832 (parse_single_submenu, digest_single_submenu)
9833 (update_submenu_strings): Move to menu.c.
9834
9835 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
9836
9837 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
9838
9839 2008-06-06 Miles Bader <miles@gnu.org>
9840
9841 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
9842 face, not frame default.
9843
9844 2008-06-05 Martin Rudalics <rudalics@gmx.at>
9845
9846 * window.c (pop_up_windows, pop_up_frames)
9847 (display_buffer_reuse_frames, Vpop_up_frame_function)
9848 (Vdisplay_buffer_function, Veven_window_heights)
9849 (Vspecial_display_buffer_names, Vspecial_display_regexps)
9850 (Vspecial_display_function, Vsame_window_buffer_names)
9851 (Vsame_window_regexps, split_height_threshold)
9852 (Vsplit_window_preferred_function): Move those vars to window.el.
9853 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
9854 (Fdisplay_buffer): Move those functions to window.el.
9855 (syms_of_window): Remove corresponding declarations.
9856 (display_buffer): New function.
9857 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
9858 * dispnew.c (Flast_nonminibuf_frame): New function.
9859 * buffer.c (Fpop_to_buffer): Move to window.el.
9860
9861 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9862
9863 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
9864
9865 2008-06-05 Kenichi Handa <handa@m17n.org>
9866
9867 * coding.c (detect_coding): Fix previous change.
9868 (detect_coding_system): Likewise.
9869
9870 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9871
9872 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
9873
9874 * keymap.c (Vminibuffer_local_filename_must_match_map):
9875 Rename from Vminibuffer_local_must_match_filename_map.
9876 (syms_of_keymap):
9877 * minibuf.c (Fcompleting_read): Adjust accordingly.
9878 * commands.h: Rename declaration as well.
9879
9880 2008-06-05 Kenichi Handa <handa@m17n.org>
9881
9882 * font.c (Ffont_spec): Don't use font_parse_family_registry for
9883 family name.
9884 (Ffont_put): Likewise.
9885
9886 * fontset.c (fontset_find_font): Call font_open_for_lface with the
9887 current font-spec.
9888
9889 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
9890 is unspecified.
9891
9892 * xfaces.c (realize_x_face): If the font-related face attributes
9893 are the same as those of default face, realize a new fontset from
9894 default->fontset.
9895 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
9896
9897 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9898
9899 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
9900 (move_it_in_display_line): New wrapper.
9901
9902 * window.c (window_scroll_pixel_based_preserve_x)
9903 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
9904 (window_scroll_pixel_based, window_scroll_line_based):
9905 Use them to preserve column positions.
9906 (syms_of_window): Initialize them.
9907
9908 * indent.c (Fvertical_motion): Extend first arg to allow passing an
9909 (HPOS . VPOS) pair.
9910
9911 * dispextern.h (move_it_in_display_line): Declare.
9912
9913 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
9914
9915 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
9916 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
9917 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
9918
9919 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
9920
9921 * window.c (Fset_window_parameter): Doc fix.
9922 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
9923
9924 2008-06-04 Joakim Verona <joakim@verona.se>
9925
9926 * window.h (struct window): Add new member window_parameters.
9927
9928 * window.c (Fwindow_parameters, Fwindow_parameter)
9929 (Fset_window_parameter): New defuns.
9930 (syms_of_window): Defsubr the new defuns.
9931 (make_window): Initialize window_parameters to nil.
9932
9933 2008-06-04 John Paul Wallington <jpw@pobox.com>
9934
9935 * eval.c (Fdefmacro): Doc fix.
9936
9937 2008-06-04 Kenichi Handa <handa@m17n.org>
9938
9939 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9940 Be sure to call setup_coding_system when we find a proper coding system.
9941 (detect_coding_system): Fix handling of coding->head_ascii.
9942
9943 2008-06-03 Andreas Schwab <schwab@suse.de>
9944
9945 * font.c (font_prop_validate_spacing): Fix last change.
9946
9947 2008-06-03 Kenichi Handa <handa@m17n.org>
9948
9949 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
9950 (font_parse_fcname): Fix handling of unknown key.
9951
9952 * xfont.c (xfont_list): Try an alias.
9953
9954 * charset.c (char_charset): Return NULL if the arg charset_list is
9955 specified and C doesn't belong to any of them.
9956
9957 2008-06-02 Chip Coldwell <coldwell@redhat.com>
9958
9959 * font.c (font_pixel_size): Don't take cdr of an integer.
9960
9961 2008-06-02 Jim Meyering <meyering@redhat.com>
9962
9963 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9964 * alloc.c (xfree): Return right away for a NULL arg.
9965 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9966 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9967 * mac.c (create_apple_event_from_event_ref): Likewise.
9968 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9969 Likewise.
9970 * doprnt.c (doprnt1): Likewise.
9971 * frame.c (frame): Likewise.
9972 * keyboard.c (wipe_kboard): Likewise.
9973 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9974 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9975 * term.c (tty_default_color_capabilities, maybe_fatal)
9976 (delete_tty): Likewise.
9977 * w16select.c (string): Likewise.
9978 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9979 * w32bdf.c (w32_free_bdf_font): Likewise.
9980 * w32fns.c (w32_unload_font): Likewise.
9981 * w32font.c (w32font_close): Likewise.
9982 * window.c (size_window): Likewise.
9983 * xselect.c (receive_incremental_selection): Likewise.
9984 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9985 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9986 * w32.c (stat): Likewise.
9987
9988 Remove useless if-before-free tests.
9989 * editfns.c (Fset_time_zone_rule): Likewise.
9990 * lread.c (nosuffix): Likewise.
9991 * ralloc.c (get_bloc): Likewise.
9992 * regex.c (reg_free): Likewise.
9993 * xftfont.c (xftfont_open, xftfont_close): Likewise.
9994 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
9995 * xsmfns.c (smc_save_yourself_CB): Likewise.
9996
9997 2008-06-02 Kenichi Handa <handa@m17n.org>
9998
9999 * font.c (font_find_for_lface): Handle float font size.
10000 (font_open_for_lface): Likewise.
10001
10002 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10003 comparing the properties.
10004
10005 2008-06-01 Jason Rumney <jasonr@gnu.org>
10006
10007 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10008 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10009 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10010 Don't add empty script list.
10011 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10012
10013 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10014
10015 * Makefile.in (dot, dotdot): Remove, update users.
10016 ".." has been used elsewhere in the file for a long time.
10017 (LIBXT_STATIC): Remove conditional based on unused variable.
10018
10019 2008-06-01 Miles Bader <miles@gnu.org>
10020
10021 * xfaces.c (Vface_remapping_alist): New variable.
10022 (syms_of_xfaces): Initialize it.
10023 (enum named_merge_point_kind): New type.
10024 (struct named_merge_point): Add `named_merge_point_kind' field.
10025 (push_named_merge_point): Make cycle detection respect different
10026 named-merge-point kinds.
10027 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10028 Remove face-name alias resolution.
10029 (lface_from_face_name): New definition using
10030 `lface_from_face_name_no_resolve'.
10031 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10032 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10033 (get_lface_attributes): New definition that layers face-remapping on
10034 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10035 (lookup_basic_face): New function.
10036 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10037 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10038 `get_lface_attributes'.
10039 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10040 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10041 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10042
10043 * xdisp.c (init_iterator): Pass base_face_id through
10044 `lookup_basic_face' when we actually use it as a face-id.
10045 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10046 DEFAULT_FACE_ID.
10047
10048 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10049 lookup the initial face-id.
10050
10051 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10052
10053 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
10054
10055 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10056 (Fremove_text_properties): Fix typos in docstrings.
10057
10058 2008-05-31 Kenichi Handa <handa@m17n.org>
10059
10060 * font.c (font_list_entities): Fix the car part of data to be
10061 stored in the cache.
10062
10063 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10064
10065 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10066
10067 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10068 Add a `test' argument so another predicate than `equal' can be used.
10069 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10070 (map_char_table): Remove unused vars `c' and `i'.
10071 * lisp.h (Foptimize_char_table): Adjust declaration.
10072 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10073
10074 2008-05-30 Kenichi Handa <handa@m17n.org>
10075
10076 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10077 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10078 defined.
10079
10080 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10081
10082 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10083 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10084 frame-local settings for the same variable.
10085
10086 2008-05-30 Kenichi Handa <handa@m17n.org>
10087
10088 * fontset.c (Ffont_info): Move to font.c.
10089 (syms_of_fontset): Delete defsubr of Sfont_info.
10090
10091 * font.c (font_style_to_value, font_score): Delete casting of the
10092 args to xstcasecmp.
10093 (register_font_driver): Increment num_font_drivers only when
10094 registering the driver globally.
10095 (Ffont_info): Move from fontset.c. Handle a font object too.
10096 (syms_of_font): Defsubr Sfont_info.
10097
10098 2008-05-29 Kenichi Handa <handa@m17n.org>
10099
10100 * coding.h (enum define_coding_utf8_arg_index): New enum.
10101 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10102 coding_attr_utf_bom.
10103 (enum utf_bom_type): Rename from utf_16_bom_type.
10104 (struct utf_16_spec): Adjust for the above change.
10105 (struct coding_system): Add utf_8_bom in `spec' union.
10106
10107 * coding.c (CODING_UTF_8_BOM): New macro.
10108 (enum coding_category): Delete coding_category_utf_8, add
10109 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10110 coding_category_utf_8_sig.
10111 (CATEGORY_MASK_UTF_8): Delete it.
10112 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10113 (CATEGORY_MASK_UTF_8_SIG): New macros.
10114 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10115 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10116 CATEGORY_MASK_UTF_8_SIG.
10117 (CATEGORY_MASK_UTF_8): New macro.
10118 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10119 (detect_coding_utf_8): Check BOM.
10120 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10121 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10122 (encode_coding_utf_16): Likewise.
10123 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10124 (detect_coding, detect_coding_system): Handle utf-8-auto.
10125 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10126 (syms_of_coding): Fix setting up of Vcoding_category_table.
10127
10128 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10129
10130 * process.c (Faccept_process_output): If `millisec' is non-nil,
10131 `seconds' default to 0.
10132 (wait_reading_process_output): Also return non-nil if we read output
10133 from a non-running process.
10134
10135 2008-05-29 Jason Rumney <jasonr@gnu.org>
10136
10137 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10138 `raster' specified.
10139 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10140 in the uniscribe backend, but disallow any font that has no
10141 unicode subrange support.
10142
10143 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
10144
10145 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10146 Fix typos in docstrings.
10147
10148 2008-05-29 Kenichi Handa <handa@m17n.org>
10149
10150 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10151 (Fx_family_fonts): Set frame correctly.
10152
10153 2008-05-28 Jason Rumney <jasonr@gnu.org>
10154
10155 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10156
10157 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10158
10159 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10160 calling build_annotations.
10161
10162 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
10163
10164 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10165 (Fencode_coding_string):
10166 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10167 <latin-extra-code-table>: Fix typos in docstrings.
10168 (syms_of_coding) <coding-system-alist>: Doc fix.
10169 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10170
10171 2008-05-28 Kenichi Handa <handa@m17n.org>
10172
10173 * fontset.c (Ffont_info): Don't call font_close_object.
10174
10175 * font.c (font_parse_family_registry): Use Ffont_put to validate
10176 foundry and family.
10177 (font_delete_unmatched): Don't check spacing.
10178 (font_list_entities): Add spacing to the spec to list fonts.
10179
10180 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10181 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10182
10183 * coding.c (encode_coding_raw_text): Fix previous change.
10184 (encode_coding_object): When the dst_object is a buffer and is
10185 different from src_object, move gap to PT.
10186
10187 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
10188
10189 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10190
10191 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10192
10193 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10194 all branches. Compute it differently.
10195
10196 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10197
10198 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
10199
10200 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10201 into "else if () ... else ...".
10202
10203 2008-05-27 Jason Rumney <jasonr@gnu.org>
10204
10205 * w32font.c (w32font_open_internal): Determine if glyph indices
10206 are likely to work here.
10207
10208 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
10209
10210 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10211 draw overlap glyphs with appropriate highlighting.
10212
10213 2008-05-27 Kenichi Handa <handa@m17n.org>
10214
10215 * xfont.c (xfont_open): Fix calculation of font->average_width.
10216
10217 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10218
10219 * casefiddle.c (casify_object): Try to guess better whether the
10220 argument is a byte or a char.
10221
10222 2008-05-26 Andreas Schwab <schwab@suse.de>
10223
10224 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10225 Always send multiples of format size.
10226
10227 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10228
10229 2008-05-26 Jason Rumney <jasonr@gnu.org>
10230
10231 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10232 (compute_metrics): Don't set failure if we just cleared the cache.
10233 (w32_weight_table): Remove unused variable.
10234 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10235 backwards compatibility.
10236
10237 2008-05-25 Kenichi Handa <handa@m17n.org>
10238
10239 * w32term.c (x_draw_glyph_string):
10240 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10241
10242 * xfaces.c: Delete unused function prototypes.
10243 (xstrlwr, font_frame): Delete them.
10244 (clear_face_cache): Delete unused variable.
10245
10246 * xftfont.c (xftfont_open): Delete unused variable.
10247 If underline_thickness is not 1, adjust underline_position.
10248
10249 * ftxfont.c (ftxfont_open): Delete unused variable.
10250
10251 * fontset.c (face_for_char): Optimize for the case of no charset
10252 property.
10253
10254 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10255 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10256 (otf_open, font_otf_capability, generate_otf_features)
10257 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10258 Comment out by surrounding "#if 0" and "#endif" for the moment.
10259 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10260 (syms_of_font): Codes for accessing above commented out.
10261
10262 2008-05-24 Eli Zaretskii <eliz@gnu.org>
10263
10264 * w32proc.c: Include dispextern.h.
10265
10266 * w32.c: Include dispextern.h.
10267
10268 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
10269
10270 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10271 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10272 Fix typos in docstrings.
10273
10274 2008-05-23 Jason Rumney <jasonr@gnu.org>
10275
10276 * xsmfns.c: Remove includes that are already included by config.h.
10277
10278 2008-05-23 Kenichi Handa <handa@m17n.org>
10279
10280 * charset.c (Qemacs, charset_emacs): New variables.
10281 (char_charset): Fix for non-Unicode characters.
10282 (syms_of_charset): Define charset_emacs.
10283
10284 * w32term.c (x_draw_glyph_string): Be sure to update
10285 s->underline_thickness and s->underline_position. Be sure to draw
10286 underline within the current line area.
10287
10288 * xterm.c (x_draw_glyph_string): Be sure to update
10289 s->underline_thickness and s->underline_position. Be sure to draw
10290 underline within the current line area.
10291
10292 * fontset.c: Delete unused variables and add casting for char *
10293 throughout the file.
10294 (fontset_font): Try the fallback fonts of the current fontset
10295 before consulting the default fontset.
10296
10297 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10298
10299 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10300
10301 2008-05-22 Jason Rumney <jasonr@gnu.org>
10302
10303 * font.c: Don't include strings.h.
10304
10305 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10306
10307 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10308 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10309 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10310 to call xstrcasecmp.
10311
10312 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10313
10314 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10315
10316 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10317
10318 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10319
10320 2008-05-22 Kenichi Handa <handa@m17n.org>
10321
10322 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10323
10324 * font.c (font_prop_validate_style): Adjust for the format
10325 change of font_style_table.
10326
10327 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10328 two args.
10329
10330 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10331 two args.
10332
10333 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10334
10335 * minibuf.c (keys_of_minibuf): Delete.
10336 * lisp.h (keys_of_minibuf): Delete.
10337 * emacs.c (main): Don't call keys_of_minibuf.
10338
10339 2008-05-22 Kenichi Handa <handa@m17n.org>
10340
10341 * ftfont.c (ftfont_resolve_generic_family): Rename from
10342 ftfont_list_generic_family. Return a single family for each
10343 generic family.
10344 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10345 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10346 Call font_add_log.
10347 (ftfont_match): Call font_add_log.
10348
10349 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10350 (FONT_DEBUG): Define it.
10351 (font_add_log): Extern it.
10352 (font_assert): Rename from xassert.
10353
10354 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10355 (xfont_list_family): Call font_add_log.
10356 (xfont_match): Likewise.
10357 (memq_no_quit): Delete.
10358
10359 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10360 call of Ffont_xlfd_name.
10361
10362 * xfaces.c (struct table_entry, slant_table, weight_table)
10363 (swidth_table): Move to font.c.
10364
10365 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10366 xassert are changed to font_assert. Delete many unused variables.
10367 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10368 New variables.
10369 (struct table_entry): Move from xfaces.c and modified.
10370 (weight_table, slant_table, width_table): Move from xfaces.c and
10371 contents adjusted for the change of struct table_entry.
10372 (font_style_to_value, font_style_symbolic): Adjust for the
10373 format change of font_style_table.
10374 (font_parse_family_registry): Don't overwrite existing foundry and
10375 family of font_spec.
10376 (font_score): Fix calculation of diff for sizes.
10377 (font_sort_entites): Call font_add_log.
10378 (font_delete_unmatched): Return a newly created list.
10379 (font_list_entities): Fix previous change. Call font_add_log.
10380 (font_matching_entity, font_open_entity, font_close_entity):
10381 Call font_add_log.
10382 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10383 (Finternal_set_font_style_table): Delete.
10384 (BUILD_STYLE_TABLE): New macro.
10385 (build_style_table): New function.
10386 (Vfont_log, font_log_env_checked): New variables.
10387 (font_add_log): New function.
10388 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10389 Declare Lisp variables "font-weight-table", "font-slant-table",
10390 "font-width-table", and "font-log". Initialize font_style_table.
10391
10392 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10393
10394 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10395
10396 2008-05-21 Seiji Zenitani <zenitani@mac.com>
10397 Ryo Yoshitake <ryo@shiftmode.net>
10398
10399 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10400 (Vframe_alpha_lower_limit): New variable.
10401 (x_set_alpha): New function.
10402
10403 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10404
10405 * xfns.c (x-create-frame, Qalpha):
10406 Initialize the frame parameter `alpha'.
10407 * xterm.c (OPAQUE, OPACITY): New.
10408 (x_set_frame_alpha): New function.
10409 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10410
10411 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10412 * w32fns.c (w32_frame_parm_handlers): Likewise.
10413
10414 2008-05-20 Jason Rumney <jasonr@gnu.org>
10415
10416 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10417 truetype fonts to opentype list.
10418
10419 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
10420
10421 * fontset.c (Ffontset_info): Doc fix.
10422 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10423 <ignore-relative-composition>: Fix typos in docstrings.
10424
10425 * font.c (syms-of-font) <font-encoding-alist>:
10426 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10427 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10428 (Ffont_otf_alternates): Doc fixes.
10429
10430 2008-05-20 Kenichi Handa <handa@m17n.org>
10431
10432 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10433 font.h through out the file.
10434 (FONT_DRIVERS): Rename from FONTOBJ.
10435 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10436 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10437
10438 * emacs.c (main): Call syms_of_font unconditionally.
10439
10440 * font.h (find_font_encoding): Extern it.
10441
10442 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10443 fontset.c.
10444 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
10445 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10446 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10447 only when HAVE_WINDOW_SYSTEM is defined.
10448 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10449 when HAVE_WINDOW_SYSTEM is defined.
10450
10451 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10452 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10453
10454 * xfaces.c: Include font.h unconditionally.
10455 (merge_face_ref, merge_face_vectors)
10456 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10457
10458 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10459
10460 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10461 indirect_variable.
10462 * eval.c (lisp_indirect_variable): New fun.
10463 (Fuser_variable_p): Use it.
10464
10465 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10466
10467 * lisp.h (indirect_variable):
10468 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10469 Use Lisp_Symbol pointers rather than Lisp_Object.
10470 Adjust callers.
10471 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10472 To this end, change calling-convention.
10473
10474 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10475 if some non-hidden buffers are selected by string&pred.
10476
10477 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
10478
10479 * process.c (wait_reading_process_output): Always check status
10480 when in batch mode.
10481
10482 2008-05-19 Kenichi Handa <handa@m17n.org>
10483
10484 * font.c (font_list_entities): Fix handling of cache.
10485 (font_matching_entity): Likewise.
10486
10487 * ftfont.c (cs_iso8859_1): Delete.
10488 (ft_face_cache): New variable.
10489 (struct ftfont_info): New member fc_charset_idx.
10490 (ftfont_build_basic_charsets): Delete.
10491 (fc_charset_table): New variable.
10492 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10493 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10494 Callers changed.
10495 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10496 (ftfont_spec_pattern): New argument fc_charset_idx.
10497 Check registry more rigidly. Change callers.
10498 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10499 change of :font-entity property of the font.
10500
10501 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10502 property of the font.
10503
10504 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
10505
10506 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10507 (Funencodable_char_position, Fcheck_coding_systems_region)
10508 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10509 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10510 (Ffind_operation_coding_system, Fset_coding_system_priority)
10511 (Fcoding_system_eol_type): Doc fixes.
10512
10513 2008-05-17 Glenn Morris <rgm@gnu.org>
10514
10515 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10516
10517 2008-05-16 Eli Zaretskii <eliz@gnu.org>
10518
10519 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10520 and st_gid.
10521
10522 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10523 HAVE_WINDOW_SYSTEM is not defined.
10524
10525 * xfaces.c (merge_face_ref, merge_face_vectors)
10526 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10527 HAVE_WINDOW_SYSTEM is defined.
10528 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10529
10530 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10531
10532 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10533
10534 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10535
10536 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10537
10538 2008-05-15 Kenichi Handa <handa@m17n.org>
10539
10540 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10541 preference.
10542
10543 2008-05-15 Glenn Morris <rgm@gnu.org>
10544
10545 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10546
10547 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
10548
10549 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10550 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10551
10552 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10553
10554 2008-05-15 Kenichi Handa <handa@m17n.org>
10555
10556 * ftfont.c (ftfont_list): Downcase family name to check generic
10557 families.
10558
10559 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10560 font-spec for QCfont value.
10561
10562 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10563 buffer. Check the return value of it.
10564
10565 2008-05-14 Jason Rumney <jasonr@gnu.org>
10566
10567 * w32term.c (w32_get_glyph_overhangs): Remove.
10568 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10569
10570 2008-05-14 Kenichi Handa <handa@m17n.org>
10571
10572 * font.c (font_prop_validate): Make nil a valid value.
10573 (font_clear_cache): Check if the cached vector of entities is nil
10574 or not.
10575
10576 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10577
10578 * emacs.c (main_thread): Conditionalize on
10579 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10580 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10581
10582 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10583 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10584 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10585
10586 2008-05-14 Kenichi Handa <handa@m17n.org>
10587
10588 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10589 has no corresponding coding system.
10590
10591 2008-05-14 Jason Rumney <jasonr@gnu.org>
10592
10593 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10594
10595 * w32font.h (w32font_open_internal): Update declaration.
10596
10597 * w32font.c (w32font_open_internal): Change last argument from
10598 w32font_info struct to font object. Fill in font object from
10599 font_entity. Get Outline metrics if possible. Use them to
10600 calculate underline position and thickness. Use xlfd name as name
10601 property. Don't set codepage.
10602 (w32font_open): Pass font_object to w32font_open_internal. Don't
10603 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10604 (w32font_draw): Use s->font.
10605 (clear_cached_metrics): Don't clear non-existent blocks.
10606
10607 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10608 font was not found.
10609 (x_draw_glyph_string): Use underline position and thickness from font.
10610
10611 * w32uniscribe.c (uniscribe_open): Pass font_object to
10612 w32font_open_internal.
10613
10614 2008-05-14 Kenichi Handa <handa@m17n.org>
10615
10616 These changes are to delete all legacy font-handling codes, and
10617 make Emacs use only font-backends.
10618
10619 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10620 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10621
10622 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10623
10624 * charset.h (Vcharset_non_preferred_head)
10625 (Vcurrent_iso639_language): Extern them.
10626
10627 * charset.c (Vcharset_non_preferred_head): New variable.
10628 (Vcurrent_iso639_language): New variable.
10629 (syms_of_charset): Declare it as a Lisp variable.
10630 (char_charset): Don't check non preferred charsets. As a last
10631 resort, return charset_unicode.
10632 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10633
10634 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10635 conditionals. Don't check enable_font_backend. Delete all codes
10636 used only when USE_FONT_BACKEND is not defined.
10637
10638 * dispextern.h (struct glyph_string): Change type of `font' to
10639 `struct font *'.
10640 (struct glyph_string): New member underline_position and
10641 underline_thickness.
10642 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
10643 (struct face): Change type of `font' to `struct font *'. Remove
10644 members `font_name', `font_info_id'.
10645 (per_char_metric, encode_char): Delete externs.
10646 (calc_pixel_width_or_height): Adjust the prototype.
10647
10648 * emacs.c (enable_font_backend): Delete extern.
10649 (main): Don't set enable_font_backend. Don't check the command
10650 line argument "-disable-font-backend".
10651
10652 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
10653 (enum font_property_index): New members FONT_DPI_INDEX,
10654 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
10655 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
10656 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
10657 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
10658 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
10659 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
10660 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
10661 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
10662 (struct font_spec, struct font_entity): New structs.
10663 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
10664 (struct font): Many members from old "struct font_info" moved to
10665 here. Members font and entity deleted.
10666 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
10667 the new font-related objects.
10668 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
10669 (CHECK_FONT_GET_OBJECT): Likewise.
10670 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
10671 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
10672 (struct font_driver): New members case_sensitive anc check. Type
10673 of the member list and open changed.
10674 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
10675 (font_symbolic_width, font_find_object, font_get_spec)
10676 (font_set_lface_from_name): Delete extern.
10677 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
10678
10679 * font.c: Include <strings.h>.
10680 (enable_font_backend): Delete it.
10681 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
10682 (CHECK_VALIDATE_FONT_SPEC): Delete it.
10683 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
10684 (null_string): Delete it.
10685 (null_vector): Make it static.
10686 (font_family_alist): Delete it.
10687 (Qnormal): Extern it.
10688 (QCextra, QClanguage): Delete it.
10689 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
10690 (font_make_spec, font_make_entity, font_make_object)
10691 (font_intern_prop): Renamed from intern_downcase. Don't downcase
10692 the string. Callers changed.
10693 (font_pixel_size): Adjusted for the format change of font-related
10694 objects.
10695 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
10696 (font_style_to_value, font_style_symbolic): New function.
10697 (build_font_family_alist): Delete it.
10698 (font_registry_charsets): Use Fassoc_string instead of
10699 assq_no_quit.
10700 (font_prop_validate_symbol): Don't return null_string.
10701 (font_prop_validate_style): Adjusted for the change of
10702 style-related values in a font vector.
10703 (font_property_table): Delete entries for QClanguage and
10704 QCantialias, add entries for QCavgwidth.
10705 (get_font_prop_index): Delete the 2nd argument FROM.
10706 (font_prop_validate): Arguments changed.
10707 (font_put_extra): Adjusted for the change of font-related objects.
10708 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
10709 (font_parse_fcname, font_unparse_fcname)
10710 (font_prepare_composition): Likewise.
10711 (font_parse_family_registry): Renamed from font_merge_old_spec.
10712 (otf_open): Delete the 1st arg entity.
10713 (font_otf_capability): Adjusted for the above change.
10714 (font_score): New arg alternate_families. Adjusted for the change
10715 of font-related objects.
10716 (font_sort_entites): New arg best_only.
10717 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
10718 Delete them.
10719 (font_match_p): Check alternate families.
10720 (font_find_object): Delete it.
10721 (font_check_object): New function.
10722 (font_clear_cache): Adjusted for the change of font-related objects.
10723 (font_delete_unmatched): New arg.
10724 (font_list_entities): Call font_driver->list with a spec that
10725 doesn't specify style-related properties.
10726 (font_matching_entity): Arguments changed. Caller changed.
10727 (font_open_entity): Adjusted for the change of font-related objects.
10728 (font_close_object, font_has_char, font_encode_char)
10729 (font_get_name, font_get_spec): Likewise.
10730 (font_spec_from_name, font_clear_prop, font_update_lface):
10731 New functions.
10732 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
10733 (font_prepare_for_face, font_done_for_face, font_open_by_name)
10734 (font_at): Adjusted for the change of font-related objects.
10735 (font_range): New function.
10736 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
10737 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
10738 (Fcopy_font_spec, Fmerge_font_spec): New function.
10739 (Ffont_family_list): Renamed from list-families.
10740 (Finternal_set_font_style_table): Arguments changed.
10741 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
10742 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
10743 change of font-related objects.
10744 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
10745
10746 * fontset.h (struct font_info): Delete it. Most members go to
10747 struct font.
10748 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
10749 (enum FONT_SPEC_INDEX): Delete it.
10750 (font_info, list_fonts_func, load_font_func, query_font_func)
10751 (set_frame_fontset_func, find_ccl_program_func)
10752 (get_font_repertory_func, new_fontset_from_font_name): Delete
10753 externs.
10754 (fontset_from_font_name): Extern it.
10755 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
10756 (FONT_INFO_FROM_FACE): Deleted.
10757 (face_for_font): Adjust prototype.
10758
10759 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
10760 conditionals. Don't check enable_font_backend. Delete all codes
10761 used only when USE_FONT_BACKEND is not defined.
10762 (get_font_info_func, list_font_func, load_font_func)
10763 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
10764 (get_font_repertory_func): Delete them.
10765 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
10766 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
10767 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
10768 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
10769 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
10770 (fontset_compare_rfontdef): New function.
10771 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
10772 rfont-defs by qsort. Adjusted for the change of font-group vector.
10773 (load_font_get_repertory): Deleted.
10774 (fontset_find_font): Use new macros to ref/set elements of
10775 font-def and rfont-def.
10776 (fontset_font): Fix the timing of remembering that no font for C.
10777 (free_face_fontset): Do nothing if the face has no fontset.
10778 (face_suitable_for_char_p): Use new macros to ref/set elements of
10779 rfont-def.
10780 (face_for_char): Likewise. Call face_for_char with font_object.
10781 (fs_load_font): Delete. Delete #pragma surrounding it.
10782 (fs_query_fontset): Use strcasecmp instead of strcmp.
10783 (generate_ascii_font_name): Adjusted for the format change of
10784 font-spec.
10785 (Fset_fontset_font): Likewise. Use new macros to set elements of
10786 font-def.
10787 (Fnew_fontset): Use font_unparse_xlfd to generate
10788 FONTSET_ASCII (fontset).
10789 (new_fontset_from_font_name): Deleted.
10790 (fontset_from_font): Renamed from new_fontset_from_font. Check if
10791 a fontset is already created for the font. FIx updating of
10792 Vfontset_alias_alist.
10793 (fontset_ascii_font): Deleted.
10794 (Ffont_info): Adjusted for the format change of font-spec.
10795 (Finternal_char_font): Likewise.
10796 (Ffontset_info): Likewise.
10797 (syms_of_fontset): Don't check load_font_func.
10798
10799 * fns.c (internal_equal): Handle PREV_FONT.
10800
10801 * frame.h: Delete USE_FONT_BACKEND conditional.
10802
10803 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
10804 conditionals. Don't check enable_font_backend. Delete all codes
10805 used only when USE_FONT_BACKEND is not defined.
10806 (x_set_font): Call x_new_font, not x_new_fontset2.
10807 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
10808 already set for the frame.
10809
10810 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
10811 a font-entity by font_make_entity. Use font_intern_prop instead
10812 of intern_downcase. Use FONT_SET_STYLE to set a style-related
10813 font property. If a font is scalable, set avgwidth property to 0.
10814 Set font-entity property by font_put_extra.
10815 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
10816 (ffont_driver): Adjusted for the change of struct font_driver.
10817 (ftfont_spec_pattern): New function.
10818 (ftfont_list): Return a list, not vector.
10819 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
10820 (ftfont_list_family): Don't downcase names.
10821 (ftfont_free_entity): Deleted.
10822 (ftfont_open): Return a font-object. Adjusted for the change of
10823 struct font. Get underline_thickness and underline_position from
10824 font property. Don't update dpyinfo->smallest_font_height and
10825 dpyinfo->smallest_char_width.
10826 (ftfont_close): Don't free `struct font'.
10827 (ftfont_has_char): Adjusted for the format change of font-entity.
10828 (ftfont_encode_char, ftfont_text_extents): Likewise.
10829
10830 * ftxfont.c (ftxfont_list): Return a list, not vector.
10831 (ftxfont_open): Return a font-object. Adjusted for the change of
10832 struct font. Get underline_thickness and underline_position from
10833 font property. Don't update dpyinfo->smallest_font_height and
10834 dpyinfo->smallest_char_width.
10835 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
10836 (ftxfont_draw): Adjusted for the change of struct font.
10837
10838 * image.c (image_ascent): Don't include "charset.h". Include
10839 "character.h" and "font.h".
10840
10841 * lisp.h (enum pvec_type): New member PREV_FONT.
10842 (Fassoc_string): EXFUN it.
10843
10844 * print.c: Include font.h.
10845 (print_object): Handle font-related objects.
10846
10847 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
10848 conditionals. Don't check enable_font_backend. Delete all codes
10849 used only when USE_FONT_BACKEND is not defined.
10850 (handle_auto_composed_prop): Do nothing if it->f is not on a
10851 window system. Check how many following characters can be
10852 displayed by the same font.
10853 (calc_pixel_width_or_height): Type of the 4th arg is changed to
10854 'struct font *'.
10855 (get_char_face_and_encoding): Assign the whole encoding task to
10856 the `encode-char' method of a font driver.
10857 (fill_composite_glyph_string): Adjusted for the change of `struct
10858 face' and `struct glyph_string'.
10859 (fill_glyph_string): Likewise.
10860 (get_per_char_metric): Arguments changed.
10861 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
10862 and `struct glyph_string'.
10863 (produce_stretch_glyph, calc_line_height_property)
10864 (x_produce_glyphs): Likewise.
10865
10866 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
10867 conditionals. Don't check enable_font_backend. Delete all codes
10868 used only when USE_FONT_BACKEND is not defined. Use
10869 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
10870 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
10871 (Qp): Extern them.
10872 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
10873 Deleted.
10874 (struct font_name): Deleted.
10875 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
10876 (compare_fonts_by_sort_order): New function.
10877 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
10878 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
10879 Deleted.
10880 (Fx_family_fonts): Use font_list_entities, and sort fonts by
10881 compare_fonts_by_sort_order.
10882 (Fx_font_family_list): Call Ffont_family_list.
10883 (face_numeric_value, face_numeric_weight, face_numeric_slant)
10884 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
10885 (face_symbolic_slant, face_symbolic_swidth)
10886 (split_font_name_into_vector, build_font_name_from_vector)
10887 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
10888 (font_rescale_ratio, split_font_name, build_font_name)
10889 (free_font_names, sort_fonts, x_face_list_fonts)
10890 (face_font_available_p, sorted_font_list, cmp_font_names)
10891 (font_list_1, concat_font_list, font_list, remove_duplicates):
10892 Deleted.
10893 (Fx_list_fonts): Use Ffont_list.
10894 (LFACE_AVGWIDTH): Deleted.
10895 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
10896 by FONTP.
10897 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
10898 (set_lface_from_font_name): Delete it.
10899 (set_lface_from_font): Renamed from
10900 set_lface_from_font_and_fontset. Caller changed. Don't set
10901 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
10902 for face.
10903 (merge_face_vectors): Copy font-spec if necessary.
10904 Clear properties of the font-spec if necessary.
10905 (merge_face_ref): Clear properties of the font-spec if necessary.
10906 (Finternal_set_lisp_face_attribute): Likewise.
10907 (set_font_frame_param): Use font_load_for_lface to load a
10908 font-object, and call Fmodify_frame_parameters with it.
10909 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
10910 font name by Ffont_xlfd_name.
10911 (Finternal_lisp_face_attribute_values): Don't check QCweight,
10912 QCslant, and QCwidth.
10913 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
10914 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
10915 Compare fonts by EQ.
10916 (lookup_non_ascii_face): Deleted.
10917 (face_for_font): The 2nd argument changed.
10918 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
10919 Check atomic font properties by case insensitive.
10920 (realize_non_ascii_face): Set face->overstrike correctly.
10921 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
10922 (dump_realized_face): Get font name from
10923 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
10924
10925 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
10926 conditionals. Don't check enable_font_backend. Delete all codes
10927 used only when USE_FONT_BACKEND is not defined.
10928 (xic_create_xfontset): Original code deleted and renamed from
10929 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
10930 (x_make_gc): Don't set GCFont in GCs.
10931 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
10932 opened by "fixed".
10933 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
10934 find_ccl_program_func, query_font_func, set_frame_fontset_func,
10935 get_font_repertory_func.
10936
10937 * xfont.c: Include <stdlib.h> and "ccl.h".
10938 (struct xfont_info): New structure.
10939 (xfont_query_font): Deleted.
10940 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
10941 moved from xterm.c.
10942 (xfont_driver): Adjusted for the change of struct font_driver.
10943 (compare_font_names): New function.
10944 (xfont_list_pattern): Sort font names case insensitively. Make
10945 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
10946 (xfont_list): Return a list, not vector.
10947 (xfont_match): If the font doesn't have QCname property, generate
10948 a name from the other font properties.
10949 (xfont_open): Return a font-object. Adjusted for the change of
10950 struct font. Get underline_thickness and underline_position from
10951 font property. Don't update dpyinfo->smallest_font_height and
10952 dpyinfo->smallest_char_width.
10953 (xfont_close): Don't free struct font.
10954 (xfont_prepare_face): Adjusted for the change of struct font.
10955 (xfont_done_face): Deleted.
10956 (xfont_has_char): Adjusted for the change of struct font.
10957 (xfont_encode_char, xfont_draw): Likewise.
10958 (xfont_check): New function.
10959
10960 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10961 callback function.
10962 (xftfont_match): Adjusted for the format change of font-entity.
10963 (xftfont_open): Adjusted for the format change of font-entity and
10964 font-object. Adjusted for the change of struct font. Return a
10965 font-object. Don't update dpyinfo->smallest_font_height and
10966 dpyinfo->smallest_char_width.
10967 (xftfont_close): Block input while calling XftFontClose.
10968 (xftfont_prepare_face): Don't block input while calling
10969 xftfont_get_colors. Adjusted for the change of struct font.
10970 (xftfont_shape): Return value of error case fixed.
10971
10972 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10973
10974 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10975 conditionals.
10976 (FONT_WIDTH): Return (f)->max_width.
10977 (struct x_display_info): Delete member `font'.
10978 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10979 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10980 (struct x_output): Change type of `font' to `struct font *'.
10981
10982 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
10983 conditionals. Don't check enable_font_backend. Delete all codes
10984 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
10985 (x_per_char_metric, x_encode_char): Deleted.
10986 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10987 (x_compute_glyph_string_overhangs): Adjusted for the change of
10988 `struct face'.
10989 (x_draw_glyph_string_foreground)
10990 (x_draw_composite_glyph_string_foreground): Likewise.
10991 (x_draw_glyph_string): Likewise. Use font->underline_position and
10992 font->underline_thickness.
10993 (x_new_font): Renamed from x_new_fontset2.
10994 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
10995 (x_check_font): Call `check' method of a font driver.
10996 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
10997 (x_query_font, x_get_font_repertory): Deleted.
10998 (x_find_ccl_program): Renamed and moved to xfont.c.
10999 (x_redisplay_interface): Adjusted for the change of `struct
11000 redisplay_interface'.
11001
11002 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11003 conditionals. Don't check enable_font_backend. Delete all codes
11004 used only when USE_FONT_BACKEND is not defined. Surround non-used
11005 code by "#ifdef OLD_FONT" and "endif".
11006 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11007
11008 * w32font.h (struct w32font_info): New member.
11009 (FONT_COMPAT): New macro.
11010 (w32font_open_internal): Prototype adjusted.
11011
11012 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11013 OLD_FONT" and "endif".
11014
11015 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11016 conditionals. Don't check enable_font_backend. Delete all codes
11017 used only when USE_FONT_BACKEND is not defined.
11018 (w32font_open): Return a font-object. Make a font-object by
11019 font_make_object. Adjusted for the change of struct w32font_info.
11020 (w32font_close): Don't free struct font. Adjusted for the change
11021 of struct w32font_info.
11022 (w32font_encode_char, w32font_text_extents, w32font_draw):
11023 Adjusted for the change of struct w32font_info.
11024 (w32font_draw): Likewise.
11025 (w32font_list_internal): Return a list, not vector.
11026 (w32font_open_internal): Change the 4th arg to font-object.
11027 Adjusted for the change of struct w32font_info and font-object format.
11028 (add_font_name_to_list): Don't downcase names.
11029 (w32_enumfont_pattern_entity): Make a font-entity by
11030 font_make_entity. Adjusted for the format change of font-entity.
11031 Use FONT_SET_STYLE to set a style-related font property. If a
11032 font is scalable, set avgwidth property to 0. Set font-entity
11033 property by font_put_extra.
11034 (font_matches_spec): Adjusted for the format change of font-entity.
11035 (w32_weight_table, w32_decode_weight): New variables.
11036 (w32_encode_weight): New function.
11037 (fill_in_logfont): Adjusted for the format change of font-spec.
11038 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11039 weight value.
11040 (w32font_driver): Adjusted for the change of struct font_driver.
11041
11042 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11043 conditionals. Don't check enable_font_backend. Surround non-used
11044 code by "#ifdef OLD_FONT" and "endif".
11045 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11046 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11047
11048 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11049 conditionals. Don't check enable_font_backend. Delete all codes
11050 used only when USE_FONT_BACKEND is not defined. Surround non-used
11051 code by "#ifdef OLD_FONT" and "endif".
11052
11053 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11054 (uniscribe_open): Return value changed to font-object.
11055 Adjusted for the format change of font-object.
11056 (uniscribe_otf_capability): Adjusted for the change of struct font.
11057 (add_opentype_font_name_to_list): Don't downcase names.
11058 (uniscribe_font_driver): Adjusted for the change of struct
11059 font_driver.
11060
11061 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
11062
11063 * dispnew.c (update_frame_1): Check if tty output is still valid
11064 before flushing it.
11065
11066 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11067
11068 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11069 to Gtk+ menus.
11070
11071 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11072
11073 * dired.c (file_name_completion): Tweak the code so as to always do it
11074 in a single pass. Tighten the scope of some variables.
11075
11076 * dired.c (Qdefault_directory): New var.
11077 (file_name_completion): Use it instead of Fexpand_file_name.
11078 (syms_of_dired): Initialize it.
11079
11080 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11081
11082 * fileio.c (double_dollars): Remove dead code.
11083
11084 2008-05-10 Eli Zaretskii <eliz@gnu.org>
11085
11086 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11087 Mention w32-get-true-file-attributes in doc string.
11088
11089 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11090
11091 2008-05-09 Glenn Morris <rgm@gnu.org>
11092
11093 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11094 2008-04-23.
11095
11096 2008-05-09 Eli Zaretskii <eliz@gnu.org>
11097
11098 Support for reporting owner and group of each file on MS-Windows:
11099 * dired.c (stat_uname, stat_gname): New functions, with special
11100 implementation for w32.
11101 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11102
11103 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11104 (dflt_group_name): New static variable.
11105 (dflt_group): Rename from the_group.
11106 (init_user_info): Init dflt_group fields. Get user's group name
11107 from LookupAccountSid.
11108 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11109 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11110 New initialization states.
11111 (globals_of_w32): Initialize them to zero. Initialize the default
11112 group name to "None".
11113 (GetFileSecurity_Name): New global var, the name of the function
11114 to call for GetFileSecurity.
11115 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11116 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11117 (get_file_security, get_security_descriptor_owner)
11118 (get_security_descriptor_group, is_valid_sid)
11119 (get_file_security_desc, get_rid, get_name_and_id)
11120 (get_file_owner_and_group): New functions.
11121 (stat): Use get_file_security_desc and get_file_owner_and_group to
11122 report the owner and primary group of each file. Don't ignore the
11123 high 32 bits of file's size, now that st_size is 64-bit wide.
11124 Fix test when to get true file attributes.
11125 (init_user_info): Use get_rid instead of equivalent inline code.
11126 (fstat): Don't ignore the high 32 bits of file's size.
11127
11128 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
11129
11130 * image.c (png_load): Use correct bit-depth for setting background
11131 color.
11132
11133 2008-05-08 Eli Zaretskii <eliz@gnu.org>
11134
11135 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11136 epa-hook.elc.
11137
11138 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
11139
11140 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11141
11142 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11143
11144 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11145 because the original parameters are in pure storage now.
11146 (mac_window): Remove unused params. Update callers.
11147
11148 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11149
11150 * lread.c (substitute_object_recurse): Use lower-level primitives.
11151 Don't signal errors when traversing sub-char-tables.
11152 Don't loop over all the possible characters when traversing char-tables.
11153
11154 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11155 just like we do in print.c.
11156
11157 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11158
11159 * minibuf.c (Ftry_completion): Remove code left over from when we used
11160 scmp instead of Fcompare_strings.
11161
11162 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
11163
11164 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11165
11166 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11167
11168 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11169 Create bitmap context in native byte order.
11170
11171 * macterm.c (XDrawLine)
11172 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11173 context in native byte order.
11174
11175 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11176
11177 * config.in: Regenerate.
11178
11179 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11180 New definitions for Image I/O support.
11181 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11182 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11183 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11184 (mac_data_provider_release_data, image_load_image_io)
11185 [USE_MAC_IMAGE_IO]: New functions.
11186 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11187 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11188 (init_image_func_pointer) [MAC_OSX]: Remove function.
11189 (image_load_quartz2d) [MAC_OSX]: Check availability of
11190 CGImageCreateWithPNGDataProvider at compile time.
11191 Use lowercase `false' for boolean constant.
11192 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11193 Use image_load_image_io.
11194 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11195 Don't check MyCGImageCreateWithPNGDataProvider.
11196 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11197 Don't call init_image_func_pointer.
11198
11199 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11200
11201 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11202 Make variable non-static.
11203 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11204 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11205
11206 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11207 (RED_FROM_ULONG): Mask off higher bits.
11208 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11209
11210 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11211 Include AvailabilityMacros.h.
11212 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11213 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11214
11215 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11216
11217 * chartab.c (Fset_char_table_range): If range is t, really set all
11218 chars to that value.
11219
11220 2008-05-03 Eli Zaretskii <eliz@gnu.org>
11221
11222 * dired.c (Ffile_attributes): Don't allow the device number become
11223 negative.
11224
11225 2008-05-02 Daiki Ueno <ueno@unixuser.org>
11226
11227 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11228
11229 2008-05-02 Juri Linkov <juri@jurta.org>
11230
11231 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11232 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11233 DEFAULT argument as a list of default values in docstrings.
11234
11235 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
11236
11237 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11238
11239 2008-05-01 Martin Rudalics <rudalics@gmx.at>
11240
11241 * dispnew.c (change_frame_size_1): Preserve small windows when
11242 shrinking frames by calling set_window_height|width with third
11243 arg 2.
11244
11245 * window.h (struct window): Replace field too_small_ok by field
11246 resize_proportionally.
11247
11248 * window.c (make_window): Initialize resize_proportionally.
11249 (enlarge_window): Temporarily set resize_proportionally to make
11250 sure that shrink_windows does scale the window proportionally.
11251 (shrink_windows): When window has resize_proportionally set try
11252 to shrink it proportionally by stealing from other windows.
11253 (struct saved_window, Fset_window_configuration)
11254 (compare_window_configurations): Handle resize_proportionally.
11255 (WINDOW_TOTAL_SIZE): New macro.
11256 (window_min_size, shrink_windows, size_window): Use it.
11257 (check_min_window_sizes): Remove. Invalid values of
11258 window-min-height|width are handled by window_min_size_2 now.
11259 (size_window, Fsplit_window, enlarge_window)
11260 (adjust_window_trailing_edge, grow_mini_window): Don't call
11261 check_min_window_sizes.
11262 (window_min_size_2, window_min_size_1, window_min_size):
11263 New argument safe_p for retrieving "safe" minimum sizes.
11264 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11265 (adjust_window_trailing_edge, grow_mini_window):
11266 Adjust arguments of window_min_size... functions.
11267 (shrink_windows): Argument min_size removed. New argument
11268 safe_p allows shrinking windows to their safe minimum sizes.
11269 Calculate minimum size and decide whether a window shall be
11270 deleted for each window individually.
11271 (size_window): When nodelete_p equals 2, tell shrink_windows to
11272 delete windows only if their new minimum size is no more safe.
11273 (shrink_window_lowest_first): Call window_min_size_1 to make
11274 sure to preserve modeline of bottom-most window when resizing
11275 the minibuffer.
11276 (Fset_window_configuration, Fcurrent_window_configuration)
11277 (compare_window_configurations): Do not handle
11278 window-min-height|width any more.
11279 (syms_of_window): Clarify window-min-height|width doc-strings.
11280
11281 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11282
11283 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11284 some more. Copy some of the code from Ftry_completions.
11285 Remove special case code that dates back to initial revision when the
11286 slash was only added when necessary and that can't trigger nowadays.
11287
11288 2008-04-27 Kenichi Handa <handa@m17n.org>
11289
11290 * font.c (font_prop_validate): Signal `error' instead of `font'.
11291
11292 2008-04-29 Jason Rumney <jasonr@gnu.org>
11293
11294 * w32fns.c (Fw32_battery_status): New defun.
11295 (syms_of_w32fns): Defsubr it.
11296
11297 2008-04-28 Andreas Schwab <schwab@suse.de>
11298
11299 * dired.c (file_name_completion): Fix another mixing of encoded
11300 and decoded names.
11301
11302 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
11303
11304 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11305
11306 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
11307
11308 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11309
11310 2008-04-27 Andreas Schwab <schwab@suse.de>
11311
11312 * dired.c (file_name_completion): Fix inappropriate mixing of
11313 encoded and decoded names.
11314
11315 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11316
11317 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11318
11319 2008-04-26 Eli Zaretskii <eliz@gnu.org>
11320
11321 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11322 2008-03-31, it's not needed anymore with `struct stat' definition
11323 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11324 for the same reasons.
11325
11326 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11327
11328 * m/sparc.h: Additional redefinitions for GNU/Linux.
11329
11330 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11331
11332 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11333 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11334 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11335 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11336 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11337 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11338 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11339 Likewise.
11340
11341 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11342 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11343 (mac_ax_number_of_characters): Add externs.
11344 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11345 [USE_MAC_TSM]: Likewise.
11346 (mac_handle_text_input_event) [MAC_OSX]:
11347 Handle kEventTextInputOffsetToPos for no active input area case.
11348 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11349 (mac_handle_document_access_event)
11350 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11351 (install_application_handler) [MAC_OSX]: Register handlers for
11352 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11353 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11354 Register mac_handle_document_access_event.
11355
11356 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11357 Make functions non-static.
11358
11359 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11360
11361 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11362 (read_file_name_completion_ignore_case, insert_default_directory)
11363 (Qdefault_directory): Move to minibuffer.el.
11364 (Fread_file_name): Call the new `read-file-name' instead.
11365
11366 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11367
11368 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11369 Make function non-static.
11370 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11371 Remove function.
11372 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11373 Move to mactoolbox.c.
11374 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11375
11376 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11377 (mac_rect_make): New macro.
11378
11379 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11380 instead of float.
11381 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11382 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11383 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11384 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11385 CGRectMake.
11386 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11387 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11388 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11389 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11390 instead of WindowRef in argument type.
11391 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11392 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11393 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11394 instead of DISPLAY. All uses changed.
11395 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11396 (x_calc_absolute_position): Simplify so as not to use
11397 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11398
11399 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11400 instead of WindowRef in argument type.
11401 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11402 [TARGET_API_MAC_CARBON]: Remove externs.
11403 (create_apple_event, mac_event_parameters_to_lisp)
11404 [TARGET_API_MAC_CARBON]: Add externs.
11405
11406 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11407 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11408 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11409 is clicked.
11410 (x_activate_menubar): Remove extern for saved_menu_event_location.
11411 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11412 Move from mac.c.
11413
11414 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11415
11416 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11417 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11418
11419 2008-04-23 Jason Rumney <jasonr@gnu.org>
11420
11421 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11422 attributes only for local files.
11423
11424 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11425 default to Qlocal.
11426
11427 2008-04-22 Juri Linkov <juri@jurta.org>
11428
11429 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11430 read-buffer-to-switch instead of using the letter "B".
11431
11432 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11433
11434 * fileio.c (Qdefault_directory): New variable.
11435 (Fread_file_name): Use it to pass `dir' to the completion functions.
11436
11437 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
11438
11439 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11440
11441 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11442
11443 * keyboard.c (Vpre_help_message): Remove.
11444 (show_help_echo): Remove default C code.
11445
11446 * dired.c (directory_files_internal, file_name_completion):
11447 Only call ENCODE_FILE if the string is indeed decoded.
11448
11449 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11450
11451 * Makefile.in (TOOLKIT_DEFINES): Remove.
11452 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11453
11454 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11455
11456 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11457 (mactoolbox.o): New target.
11458
11459 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11460 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11461
11462 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11463 Use mac_set_frame_window_background instead of XSetWindowBackground.
11464 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11465 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11466 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11467 instead of SetWindowTitleWithCFString.
11468 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11469 Move function to mactoolbox.c.
11470 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11471 Use mac_set_window_modified instead of SetWindowModified.
11472 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11473 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11474 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11475 FrontNonFloatingWindow. Use mac_activate_window instead of
11476 ActivateWindow. Use mac_active_non_floating_window instead of
11477 ActiveNonFloatingWindow.
11478 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11479 Use mac_show_hourglass and mac_hide_hourglass.
11480 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11481 instead of GetGlobalMouse.
11482 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11483 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11484 Use mac_bring_window_to_front instead of BringToFront.
11485 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11486 mactoolbox.c.
11487 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11488 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11489 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11490 mactoolbox.c.
11491
11492 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11493 (XtPointer): Move typedef from macmenu.c.
11494 (enum button_type): Move enum from macmenu.c.
11495 (widget_value): Move typedef from macmenu.c.
11496 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11497 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11498 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11499 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11500 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11501 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11502 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11503 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11504 (Selection): Move typedef from macselect.c.
11505 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11506 macterm.c.
11507 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11508 (mac_is_window_collapsed, mac_bring_window_to_front)
11509 (mac_send_window_behind, mac_hide_window, mac_show_window)
11510 (mac_collapse_window, mac_front_non_floating_window)
11511 (mac_active_non_floating_window, mac_activate_window)
11512 (mac_move_window_structure, mac_move_window, mac_size_window)
11513 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11514
11515 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11516 (enum mac_menu_kind): Move enum to mactoolbox.c.
11517 (min_menu_id): Move variable to mactoolbox.c.
11518 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11519 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11520 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11521 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11522 [TARGET_API_MAC_CARBON]: Likewise.
11523 (XtPointer): Move typedef to macgui.h.
11524 (enum button_type): Move enum to macgui.h.
11525 (widget_value): Move typedef to macgui.h.
11526 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11527 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11528 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11529 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11530 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11531 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11532 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11533 (popup_activated_flag): Make variable non-static.
11534 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11535 (add_menu_item, fill_menu, dispose_menus):
11536 Move functions to mactoolbox.c.
11537 (restore_show_help_function, menu_target_item_handler)
11538 (install_menu_target_item_handler, mac_handle_dialog_event)
11539 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11540 [TARGET_API_MAC_CARBON]: Likewise.
11541 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11542 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11543 (find_and_call_menu_selection, name_is_separator): Make function
11544 non-static.
11545 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11546 to mactoolbox.c.
11547 (set_frame_menubar): Don't call install_menu_quit_handler.
11548 (menu_item_selection): New variable.
11549 (mac_menu_show): Use create_and_show_popup_menu.
11550 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11551 selection but set variable menu_item_selection. All uses changed.
11552 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11553 Call install_menu_quit_handler. Move to mactoolbox.c.
11554
11555 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11556 (Selection): Move typedef to macgui.h.
11557 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11558 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11559 Make variables non-static.
11560 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11561 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11562 Make functions non-static.
11563 (Vmac_service_selection) [MAC_OSX]: Likewise.
11564 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11565 (mac_valid_selection_target_p, mac_clear_selection)
11566 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11567 (mac_put_selection_value, mac_selection_has_target_p)
11568 (mac_get_selection_value, mac_get_selection_target_list)
11569 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11570 Move functions to mactoolbox.c.
11571 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11572 Likewise.
11573 (copy_scrap_flavor_data, mac_handle_service_event)
11574 (install_service_handler) [MAC_OSX]: Likewise.
11575 (syms_of_macselect) <Vmac_dnd_known_types>:
11576 Use mac_dnd_default_known_types.
11577
11578 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11579 Move to mactoolbox.c.
11580 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11581 (Fx_selection_owner_p): Add EXFUN.
11582 (install_window_handler, remove_window_handler, XSetWindowBackground):
11583 Remove externs.
11584 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11585 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11586 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11587 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11588 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11589 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11590 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11591 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11592 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11593 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11594 (mac_valid_selection_target_p, mac_clear_selection)
11595 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11596 (mac_put_selection_value, mac_selection_has_target_p)
11597 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11598 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11599 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11600 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11601 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11602 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11603 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11604 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11605 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11606
11607 * mactoolbox.c: New file.
11608
11609 2008-04-18 Jason Rumney <jasonr@gnu.org>
11610
11611 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11612
11613 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11614
11615 * character.c (Fmultibyte_char_to_unibyte):
11616 Return latin1 chars unchanged.
11617
11618 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11619 relocated if it points to `name'.
11620
11621 2008-04-17 Kenichi Handa <handa@m17n.org>
11622
11623 * data.c (Faset): Allow setting a multibyte character in an
11624 ASCII-only unibyte string.
11625
11626 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11627
11628 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11629
11630 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11631 done in config.h.
11632
11633 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
11634
11635 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11636 (Fchar_direction): Add usage in the docstring.
11637
11638 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
11639
11640 * keyboard.c (read_key_sequence): Remove always-true checks.
11641
11642 2008-04-14 Jason Rumney <jasonr@gnu.org>
11643
11644 * w32font.c (w32font_open_internal): Set max_bounds.descent in
11645 compatibility struct, for better underline positioning.
11646
11647 2008-04-13 David Hansen <david.hansen@gmx.net>
11648
11649 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
11650 string.
11651
11652 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
11653
11654 * m/hp800.h (XUINT, XSET): Remove.
11655
11656 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
11657
11658 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
11659 previous change.
11660
11661 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
11662
11663 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
11664 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
11665
11666 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11667
11668 * keymap.h (map_keymap_canonical): Declare.
11669 * xmenu.c (single_keymap_panes): Use it.
11670
11671 2008-04-11 Glenn Morris <rgm@gnu.org>
11672
11673 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
11674 set the target's value to that of the alias.
11675
11676 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11677
11678 * term.c (set_tty_color_mode): Left over typo.
11679
11680 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
11681
11682 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
11683 only after check for file name handler functions. Signal, when
11684 native functionality is not supported.
11685 (syms_of_fileio): Declare it unconditionally.
11686
11687 2008-04-10 Jason Rumney <jasonr@gnu.org>
11688
11689 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
11690 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
11691
11692 * w32.c (logon_network_drive): Also logon to remote drives that
11693 are mapped to drive letters.
11694
11695 2008-04-10 Glenn Morris <rgm@gnu.org>
11696
11697 * xdisp.c (truncate-partial-width-windows): Doc fix.
11698
11699 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
11700
11701 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
11702 Move functions to minibuffer.el.
11703 (syms_of_fileio): Don't declare them.
11704
11705 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11706
11707 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
11708 (syms_of_minibuf): Remove its initialization.
11709
11710 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
11711
11712 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
11713
11714 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
11715
11716 2008-04-09 Jason Rumney <jasonr@gnu.org>
11717
11718 * makefile.w32-in (distclean): Delete makefile too.
11719 (maintainer-clean): New target.
11720
11721 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
11722
11723 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
11724 for new font backend and composite cases.
11725
11726 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
11727
11728 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
11729 Most of the code moved to run_timers.
11730 (do_pending_atimers): Call run_timers.
11731 (run_timers): New function.
11732
11733 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
11734 run atimers.
11735
11736 * process.c (wait_reading_process_output): The same as above.
11737
11738 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11739
11740 * minibuf.c (last_exact_completion): Remove variable.
11741 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
11742 (complete_and_exit_1, complete_and_exit_2)
11743 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
11744 (Fdisplay_completion_list, display_completion_list_1)
11745 (Fminibuffer_completion_help, Fself_insert_and_exit)
11746 (Fexit_minibuffer, Fminibuffer_message): Move functions to
11747 minibuffer.el.
11748 (syms_of_minibuf): Remove corresponding initializations.
11749
11750 * keyboard.c (Qdeactivate_mark): New var.
11751 (command_loop_1): Use it to call `deactivate-mark'.
11752 (syms_of_keyboard): Initialize it.
11753
11754 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
11755 to another frame.
11756 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
11757 Don't call set_tty_color_mode.
11758 (store_frame_param): Reset previous_frame rather than call
11759 set_tty_color_mode.
11760 * term.c (set_tty_color_mode): Rewrite.
11761 * dispextern.h (set_tty_color_mode): New type.
11762 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
11763
11764 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
11765
11766 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
11767 for generic chars, which do not exist any more in emacs-unicode.
11768
11769 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
11770
11771 * coding.c (detect_coding_emacs_mule)
11772 (Ffind_operation_coding_system): Fix typo.
11773
11774 2008-04-08 Jason Rumney <jasonr@gnu.org>
11775
11776 * w32uniscribe.c (SNAME): Extract only symbol name.
11777
11778 * w32font.h (struct w32_metric_cache): New struct.
11779 (w32font_info): Use it.
11780 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
11781 (CACHE_BLOCKSIZE): New constants.
11782
11783 * w32font.c (Qja, Qko, Qzh): New symbols.
11784 (syms_of_w32font): Initialise them.
11785 (font_matches_spec): Use them to filter by language.
11786 (recompute_cached_metrics): Remove function.
11787 (compute_metrics, clear_cached_metrics): New functions.
11788 (w32font_encode_char): Use them to manage metric cache.
11789 (w32font_text_extents): Cache metrics for all glyphs on demand.
11790 Delay converting glyph indices to WORD until needed.
11791 (w32font_open_internal): Initialize metric cache to empty.
11792 (registry_to_w32_charset): Charset should always be a symbol.
11793 (fill_in_logfont, list_all_matching_fonts): Family should
11794 always be a symbol.
11795
11796 2008-04-06 Jason Rumney <jasonr@gnu.org>
11797
11798 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
11799 Give up if glyph indices not supported. Use uniscribe obtained
11800 ABC widths for individual metrics. Map glyph clusters back to
11801 characters using fClusterStart flag. Return number of glyphs
11802 produced, not chars processed.
11803 (uniscribe_shape): Map char at FROM to current glyph.
11804
11805 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11806
11807 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
11808 Use SetMenuItemHierarchicalMenu.
11809
11810 2008-04-05 Jason Rumney <jasonr@gnu.org>
11811
11812 * image.c (pbm_load): Allow color values up to 65535.
11813 Throw an error if max_color_idx is outside the supported range.
11814 Report an error when image size is invalid.
11815 Read two bytes at a time when raw images have max_color_idx above 255.
11816
11817 2008-04-05 Eli Zaretskii <eliz@gnu.org>
11818
11819 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11820 cFileName a file name that includes `?' characters, use the 8+3
11821 alias in cAlternateFileName instead.
11822
11823 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
11824
11825 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
11826 append "CCL: Quitted" when the CCL program is quitted.
11827 (setup_ccl_program): Initialize ccl->quit_silently to zero.
11828
11829 * ccl.h (struct ccl_program): New member quit_silently.
11830
11831 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
11832
11833 * search.c (compile_pattern_1): Treat non-nil and non-string of
11834 search-spaces-regexp as nil.
11835
11836 * minibuf.c (Fassoc_string): Tweak docstring.
11837
11838 2008-04-05 Eli Zaretskii <eliz@gnu.org>
11839
11840 * dired.c (Ffile_attributes): Support inode numbers wider than 32
11841 bits. Remove ugly WINDOWSNT-specific kludge introduced on
11842 2008-03-14 to force inode be positive.
11843
11844 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
11845 _S_* ones, since we now use our own sys/stat.h.
11846 (stat, fstat): Don't mangle the inode number.
11847 (init_user_info): Don't restrict UID and GID to 0-60000 range.
11848
11849 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
11850
11851 * frame.h (struct frame): Give one more bit to `visible' since we use
11852 values larger than 1 to indicate obscured frames on ttys.
11853
11854 * keymap.c (Qkeymap_canonicalize): New var.
11855 (Fmap_keymap_internal): New fun.
11856 (describe_map): Use keymap-canonicalize.
11857
11858 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
11859 (Fundo_boundary): Set them.
11860 (syms_of_undo): Initialize them.
11861 (record_point): Use them instead of last_point_position*.
11862 (last_undo_buffer): Change type.
11863
11864 2008-04-04 Jason Rumney <jasonr@gnu.org>
11865
11866 * w32font.c (w32font_text_extents): Use font's ascent and descent.
11867 (recompute_cached_metrics): Don't set ascent and descent per char.
11868
11869 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
11870 (uniscribe_check_otf): Add GC protection before consing.
11871 Rearrange loop for counting features.
11872
11873 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11874
11875 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
11876 buffer with byte-size of source buffer.
11877
11878 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
11879
11880 * callint.c (Fcall_interactively): Handle temporary region even
11881 when shift-select-mode is off.
11882
11883 2008-04-03 Jason Rumney <jasonr@gnu.org>
11884
11885 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
11886
11887 2008-04-03 Kenichi Handa <handa@m17n.org>
11888
11889 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
11890 (CATEGORY_MASK_UTF_16): Likewise.
11891 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
11892 binary file.
11893 (detect_coding): Add null-byte detection for a binary file.
11894 (detect_coding_system): Likewise.
11895
11896 2008-04-03 Jason Rumney <jasonr@gnu.org>
11897
11898 * w32uniscribe.c: New file.
11899
11900 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
11901
11902 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
11903
11904 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
11905 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
11906 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
11907 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
11908 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
11909 (Qphonetic): New symbols.
11910 (syms_of_w32font): Initialize them.
11911 (font_supported_scripts): Use them.
11912 (w32font_list_family): List all charsets.
11913 (w32font_text_extents, recompute_cached_metrics): Fix metric
11914 calculations.
11915 (w32_enumfont_pattern_entity): Make full_type a DWORD.
11916 Give opentype fonts their own format.
11917 (font_matches_spec): New arguments backend and logfont.
11918 Handle :otf spec for uniscribe backend.
11919 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
11920 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
11921
11922 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
11923 font backend.
11924 (globals_of_w32fns): Initialize uniscribe font backend.
11925
11926 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
11927 dependencies.
11928 (w32uniscribe.$(O)): New file to build.
11929 (FONT_OBJ): Include w32uniscribe.$(O).
11930 (LIBS): Add uniscribe libraries.
11931
11932 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
11933
11934 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
11935
11936 * callint.c (Vshift_select_mode): New var.
11937 (Finteractive): Document new ^ spec.
11938 (Fcall_interactively): Call handle-shift-selection if the ^ spec
11939 is present.
11940
11941 * keyboard.c (Vthis_command_keys_shift_translated): New var.
11942 (command_loop_1): Avoid running the direct display versions of
11943 forward-char and backward-char if shift-selection may occur.
11944 (read_key_sequence): Set Vthis_command_keys_shift_translated if
11945 shift-translation takes place.
11946
11947 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
11948 avoid clobbering by define-minor-mode.
11949
11950 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
11951 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
11952
11953 * syntax.c (Fforward_word): Add ^ interactive spec.
11954
11955 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
11956 (Fscroll_right): Add ^ interactive spec.
11957
11958 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11959
11960 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11961
11962 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11963
11964 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11965
11966 2008-03-31 Juri Linkov <juri@jurta.org>
11967
11968 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11969
11970 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11971
11972 * gtkutil.c (xg_set_geometry): Fix indentation.
11973 (xg_resize_outer_widget): Remove.
11974 (x_wm_size_hint_off): Fix indentation.
11975 (xg_frame_set_char_size): Call flush_and_sync after
11976 gtk_window_resize.
11977 (x_wm_set_size_hint): Pass NULL as geometry window to
11978 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11979 Add menu bar and tool bar height to base height.
11980 (xg_update_frame_menubar, free_frame_menubar)
11981 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11982 (update_frame_tool_bar, free_frame_tool_bar):
11983 Change xg_resize_outer_widget to xg_frame_set_char_size.
11984
11985 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
11986
11987 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11988 (Fdbus_call_method): New parameter TIMEOUT.
11989 (dbus-send-signal): Optimize UNGCPRO call.
11990
11991 2008-03-29 Juri Linkov <juri@jurta.org>
11992
11993 * window.c (Fdisplay_buffer): Move call to
11994 Vsplit_window_preferred_function out of conditions that check
11995 if window is eligible for vertical splitting.
11996 When Vsplit_window_preferred_function is non-nil, call it and use
11997 its non-nil return value as window. Otherwise, continue doing
11998 vertical splitting using Fsplit_window with arg horflag=nil.
11999 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12000 default value from `split-window' to nil.
12001
12002 2008-03-29 Juri Linkov <juri@jurta.org>
12003
12004 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12005 for interactive code letters 'b' and 'B'.
12006
12007 2008-03-29 Eli Zaretskii <eliz@gnu.org>
12008
12009 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12010 multibyte string.
12011
12012 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12013
12014 * keyboard.c (pending_funcalls): New var.
12015 (timer_check): Run it.
12016 (syms_of_keyboard): Initialize it.
12017 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12018 (Vdelete_terminal_functions): New vars.
12019 (syms_of_terminal): Initialize them.
12020 (Fdelete_terminal): Run delete-terminal-functions.
12021 * xdisp.c (safe_eval): Rewrite.
12022 (safe_call2): New fun.
12023 * frame.c (Qdelete_frame_functions): New var.
12024 (syms_of_frame): Initialize it.
12025 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12026 * lisp.h (safe_call2, pending_funcalls): Declare.
12027
12028 2008-03-28 Andreas Schwab <schwab@suse.de>
12029
12030 * indent.c (Fmove_to_column): Move declaration before statements.
12031
12032 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12033
12034 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12035 (struct frame): Use bit fields for boolean vars.
12036
12037 * process.c (server_accept_connection): Simplify naming.
12038 (emacs_get_tty_pgrp): Use SDATA.
12039
12040 * coding.c (decode_coding_object): Fix last change.
12041
12042 2008-03-27 Jason Rumney <jasonr@gnu.org>
12043
12044 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12045
12046 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12047
12048 * charset.c (Fdefine_charset_internal): Change the way of
12049 registering charsets in Vcharset_order_list.
12050 (syms_of_charset): Make the charset `eight-bit' supplementary.
12051
12052 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12053
12054 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12055 operations, to avoid having the difference between pointers
12056 overflow.
12057
12058 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12059
12060 * indent.c (check_display_width): New fun.
12061 (scan_for_column): Use it.
12062
12063 * data.c (syms_of_data): Mark most-positive-fixnum and
12064 most-negative-fixnum as constants.
12065
12066 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12067
12068 * indent.c (scan_for_column): Extract from current_column_1.
12069 Merge with the same code from Fmove_to_column.
12070 (current_column_1, Fmove_to_column): Use it.
12071
12072 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12073
12074 * keymap.c (map_keymap_internal): New fun.
12075 (map_keymap): Use it.
12076 (Fmap_keymap_internal): New fun.
12077 (Fmap_keymap): Remove left-out test from before make_save_value.
12078
12079 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12080
12081 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12082 Use XCAR/XCDR.
12083
12084 * process.h (struct Lisp_Process): Remove filter_multibyte.
12085 * process.c (QCfilter_multibyte): Remove.
12086 (setup_process_coding_systems): Don't use filter_multibyte.
12087 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12088 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12089 (Fset_process_filter_multibyte): Change the coding-system to
12090 approximate the previous behavior.
12091 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12092 coding-system.
12093
12094 * coding.c (decode_coding_object): When not decoding into a buffer,
12095 obey the coding system's preference of (uni|multi)byte.
12096
12097 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12098
12099 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12100 every char is changed and has a different byte-length.
12101 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12102 Fix int -> EMACS_INT.
12103
12104 2008-03-23 David Hansen <david.hansen@gmx.net>
12105
12106 * dbusbind.c (xd_read_message): Remove extra copying of message
12107 strings. Check for NULL `interface' or `member'.
12108
12109 2008-03-22 Eli Zaretskii <eliz@gnu.org>
12110
12111 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12112 cFileName a file name that includes `?' characters, use the 8+3
12113 alias in cAlternateFileName instead.
12114
12115 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12116
12117 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12118
12119 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12120
12121 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12122 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12123 work on current_buffer only instead (that was already the case
12124 for some of the code anyway).
12125 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12126 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12127 (SET_PT, SET_PT_BOTH): Adjust.
12128 * intervals.h (set_point, temp_set_point, set_point_both)
12129 (temp_set_point_both): Remove redundant declarations.
12130
12131 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12132
12133 * fileio.c (Finsert_file_contents):
12134 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12135 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12136 when buffer != current_buffer anyway.
12137
12138 2008-03-20 Andreas Schwab <schwab@suse.de>
12139
12140 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12141 as default.
12142
12143 2008-03-19 Jason Rumney <jasonr@gnu.org>
12144
12145 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12146 (syms_of_w32fns): Initialize them.
12147 (HOURGLASS_ID): New constant.
12148 (x_window_to_frame): Don't check hourglass_window.
12149 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12150 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12151 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12152 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12153 Only change the cursor if hourglass is not active.
12154 (Fx_create_frame): Initialize frame's current_cursor.
12155 (hourglass_atimer): Remove.
12156 (hourglass_started): New function.
12157 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12158 (show_hourglass): Adapt to w32, changing argument to frame.
12159
12160 * w32term.h (struct w32_output): Remove hourglass_window.
12161 Add current_cursor.
12162
12163 * eval.c (call_debugger, Fsignal):
12164 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12165 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12166 (Fexecute_extended_command, cancel_hourglass_unwind):
12167 * minibuf.c (read_minibuf):
12168 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12169
12170 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12171
12172 * window.c (run_funs): New fun.
12173 (run_window_configuration_change_hook): Use it to run the buffer-local
12174 and the global part of the hook.
12175
12176 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12177 (unwind_format_mode_line): Restore selected window.
12178 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12179
12180 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12181
12182 * editfns.c (Fchar_equal): Check they are valid characters.
12183
12184 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12185
12186 2008-03-17 Andreas Schwab <schwab@suse.de>
12187
12188 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12189 against a charset.
12190
12191 * lisp.h (Fbuffer_list): Declare.
12192
12193 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
12194
12195 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12196 handlebox_widget is != 0.
12197
12198 2008-03-16 Juri Linkov <juri@jurta.org>
12199
12200 * callint.c (Fcall_interactively): For interactive code letters
12201 'b' and 'B' put the buffer list into the list of default "future"
12202 values of the minibuffer.
12203
12204 2008-03-16 Andreas Schwab <schwab@suse.de>
12205
12206 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12207 modifiers.
12208
12209 * regex.c (re_match_2_internal): Correct matching of a charset
12210 against latin-1 characters.
12211
12212 2008-03-16 Kenichi Handa <handa@m17n.org>
12213
12214 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12215 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12216 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12217 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12218 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12219 CHAR_STRING_ADVANCE.
12220 (produce_chars): Fix for the case that the source and the
12221 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12222 instead of CHAR_STRING_ADVANCE.
12223 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12224 STRING_CHAR_ADVANCE.
12225
12226 2008-03-15 Andreas Schwab <schwab@suse.de>
12227
12228 * regex.c (re_match_2_internal): Correct matching of eight bit
12229 characters in unibyte strings.
12230
12231 2008-03-15 Martin Rudalics <rudalics@gmx.at>
12232
12233 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12234 at end of range when it coincides with the end of the buffer.
12235
12236 2008-03-14 Eli Zaretskii <eliz@gnu.org>
12237
12238 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12239
12240 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12241
12242 2008-03-14 Jason Rumney <jasonr@gnu.org>
12243
12244 * editfns.c (initial_tz): New variable.
12245 (syms_of_editfns): Initialize it.
12246 (Fset_time_zone_rule): Set it when first called.
12247 Use it when TZSTRING is nil.
12248
12249 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12250 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12251 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12252 (globals_of_w32fns): Initialize them.
12253 (compute_tip_xy): Use them to position tooltips.
12254
12255 2008-03-14 Glenn Morris <rgm@gnu.org>
12256
12257 * emacs.c (main): Revert previous change.
12258 (standard_args): Revert -internal-script back to -scriptload,
12259 and remove the long-option form.
12260
12261 2008-03-13 Glenn Morris <rgm@gnu.org>
12262
12263 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12264 Remove option -enable-font-backend.
12265
12266 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12267
12268 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12269
12270 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12271
12272 * xterm.c (x_connection_closed): For GTK: If this is the last
12273 terminal just exit without closing the display.
12274
12275 2008-03-11 Jason Rumney <jasonr@gnu.org>
12276
12277 * w32font.c (w32font_full_name): Use floor to round.
12278
12279 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
12280
12281 * sound.c (alsa_configure): Declare vol at beginning of block.
12282
12283 * fontset.c (Ffontset_info): Remove extra semicolon.
12284
12285 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12286
12287 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12288 size of resulting string.
12289
12290 2008-03-10 Jason Rumney <jasonr@gnu.org>
12291
12292 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12293
12294 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12295
12296 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12297 Don't pretend as if characters with display property haven't been
12298 consumed for string-replacing-string case.
12299
12300 2008-03-08 Kim F. Storm <storm@cua.dk>
12301
12302 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12303 (get_next_display_element, next_element_from_string)
12304 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12305
12306 2008-03-08 Andreas Schwab <schwab@suse.de>
12307
12308 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12309
12310 2008-03-06 Jason Rumney <jasonr@gnu.org>
12311
12312 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12313 when charset not specified. Only translate ANSI to unicode when
12314 font_type is truetype.
12315 (w32font_coverage_ok): New function.
12316 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12317
12318 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12319
12320 * lread.c (Fread_char): Resolve modifiers.
12321 (Fread_char_exclusive): Likewise.
12322
12323 * character.c (char_resolve_modifier_mask): New function.
12324 (char_string): Use char_resolve_modifier_mask.
12325 (Fchar_resolve_modifiers): New function.
12326 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12327 function.
12328
12329 2008-03-04 Jason Rumney <jasonr@gnu.org>
12330
12331 * makefile.w32-in: Always include w32font.c in the build.
12332 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12333
12334 2008-03-04 Andreas Schwab <schwab@suse.de>
12335
12336 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12337 (versionclean): Likewise.
12338
12339 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
12340
12341 * .cvsignore: Add oo.
12342
12343 2008-03-03 Andreas Schwab <schwab@suse.de>
12344
12345 * coding.c (decode_coding_object): Inhibit gap shrinking while
12346 decoding in place.
12347
12348 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12349
12350 * w32term.c: Remove unused include "gnu.h".
12351 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12352
12353 * gnu.h: Rename to ...
12354 * emacs-icon.h: ... this.
12355 * xterm.c: Use emacs-icon.h instead of gnu.h.
12356 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12357
12358 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
12359
12360 * w32font.c: Include math.h.
12361
12362 2008-03-03 Jason Rumney <jasonr@gnu.org>
12363
12364 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12365 Compute options separately.
12366 (w32font_open_internal): Set glyph_idx before caching metrics.
12367
12368 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12369 Define if system headers don't.
12370 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12371 (w32font_encode_char): Don't declare here.
12372
12373 * w32font.c (Quniscribe, QCformat): New symbols.
12374 (syms_of_w32font): Define them.
12375 (w32font_has_char): Indicate uncertainty.
12376 (w32font_encode_char): Encode as glyph point. Make static.
12377 (recompute_cached_metrics): New function.
12378 (w32font_open_internal): Use it. Set font to use glyph points
12379 initially. Set format based on type of font.
12380 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12381 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12382 on it. Set format based on information available here.
12383 (add_font_entity_to_list): Identify backend based on opentype_only.
12384
12385 2008-03-02 Andreas Schwab <schwab@suse.de>
12386
12387 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12388
12389 * coding.c (decode_coding_big5, produce_chars):
12390 Fix typos in last change.
12391
12392 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12393
12394 * gnu.h: New icon.
12395
12396 2008-03-02 Kenichi Handa <handa@m17n.org>
12397
12398 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12399 `dos', don't decode '\r' if that is the last in the source.
12400 (decode_coding_utf_16, decode_coding_emacs_mule)
12401 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12402 (decode_coding_raw_text, decode_coding_charset): Likewise.
12403 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12404
12405 2008-03-01 Jason Rumney <jasonr@gnu.org>
12406
12407 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12408
12409 2008-03-01 Kim F. Storm <storm@cua.dk>
12410
12411 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12412
12413 2008-03-01 Jason Rumney <jasonr@gnu.org>
12414
12415 * w32font.c (w32font_full_name): New function.
12416 (w32font_open_internal): Use it.
12417
12418 2008-03-01 Kim F. Storm <storm@cua.dk>
12419
12420 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12421
12422 2008-03-01 Jason Rumney <jasonr@gnu.org>
12423
12424 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12425
12426 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12427
12428 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12429 xg_frame_resized when the event is for the edit widget.
12430
12431 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12432
12433 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12434 set_char_size.
12435 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12436 operations on widgets here. Just set frame size if needed.
12437 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12438 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12439 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12440 the whole frame.
12441 (xg_create_tool_bar): Move attachment of the tool bar to
12442 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12443 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12444
12445 2008-03-01 Jason Rumney <jasonr@gnu.org>
12446
12447 * w32fns.c (w32_msg_pump): Disable debug code.
12448
12449 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12450
12451 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12452
12453 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
12454
12455 * xdisp.c (next_overlay_string): Don't set
12456 overlay_strings_at_end_processed_p if we're currently reading from
12457 a display string.
12458
12459 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12460
12461 * xdisp.c (get_overlay_strings_1): Fix typo.
12462
12463 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
12464
12465 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12466
12467 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12468
12469 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12470
12471 * xdisp.c (display_mode_element): Cancel the previous change.
12472 (decode_mode_spec): Likewise.
12473 (handle_auto_composed_prop): Don't make composition if it->string
12474 is a string.
12475
12476 2008-02-27 Kim F. Storm <storm@cua.dk>
12477
12478 * lisp.h (GLYPH): Change type from int to struct with separate char
12479 and face_id members.
12480 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12481 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12482 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12483 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12484 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12485 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12486 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12487 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12488 handle new Lisp glyph code encoding, either an integer or a cons.
12489
12490 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12491 (GLYPH_ALIAS): Delete.
12492 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12493 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12494 (GLYPH_FROM_CHAR): Replace macro by ...
12495 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12496
12497 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12498 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12499 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12500 (GLYPH_INVALID_P): New macro.
12501 (spec_glyph_lookup_face): Update prototype.
12502
12503 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12504 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12505 new glyph code encoding.
12506 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12507 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12508
12509 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12510 Adapt to new glyph type and new glyph code encoding.
12511
12512 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12513
12514 * indent.c (current_column, current_column_1, Fmove_to_column)
12515 (compute_motion): Adapt to new glyph code encoding.
12516
12517 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12518
12519 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
12520
12521 * process.c (wait_reading_process_output): Check for window
12522 changes caused by timers.
12523 Suggested by Johan Bockgård.
12524
12525 2008-02-27 Glenn Morris <rgm@gnu.org>
12526
12527 * emacs.c (USAGE1): Add `--disable-font-backend'.
12528
12529 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12530
12531 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12532 is made to the buffer.
12533
12534 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12535
12536 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12537 (face_at_string_position):
12538 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12539 (face_at_string_position):
12540 * xdisp.c (display_string, next_overlay_change):
12541 * buffer.h (overlays_at):
12542 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12543 Update callers.
12544
12545 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
12546
12547 * editfns.c (Fformat): Doc fix.
12548
12549 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
12550
12551 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12552 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12553 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12554
12555 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12556
12557 * buffer.c (Fbuffer_swap_text): New function.
12558 (syms_of_buffer): Defsubr it.
12559
12560 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
12561
12562 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12563
12564 2008-02-25 Jason Rumney <jasonr@gnu.org>
12565
12566 * w32font.c (w32font_draw): Draw one character at a time when padding.
12567
12568 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12569
12570 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12571 Handle a nil arg. Use run_window_configuration_change_hook.
12572 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12573 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12574 Use run_window_configuration_change_hook.
12575
12576 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12577
12578 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12579 1-pixel width.
12580
12581 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12582
12583 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12584 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12585 if the glyph in the font is zero pixel with.
12586
12587 * dispextern.h (struct glyph_string): New member padding_p.
12588
12589 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12590
12591 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12592
12593 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12594
12595 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12596
12597 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12598
12599 2008-02-25 Jason Rumney <jasonr@gnu.org>
12600
12601 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12602
12603 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12604
12605 Allow fine-grained image-cache flushing.
12606 * dispextern.h (struct image): Add `dependencies' field.
12607 (clear_image_caches): Change arg to Lisp_Object.
12608 * image.c (make_image): Initialize `dependencies' field.
12609 (clear_image_cache): Change arg to allow fine-grained flushing.
12610 Perform the flush even if image-cache-eviction-delay is nil.
12611 (clear_image_caches): Change arg to Lisp_Object.
12612 (Fclear_image_cache): Expand meaning of the argument.
12613 (mark_image): Mark `dependencies' field.
12614 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12615 (lface_hash): Use XHASH rather than XFASTINT.
12616 (face_at_buffer_position): Fix int -> EMACS_INT position.
12617 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12618 (select_frame_for_redisplay): Remove code duplication.
12619 (redisplay_internal): Adapt arg to call to clear_image_caches.
12620
12621 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12622
12623 * s/vms4-0.h:
12624 * s/vms4-2.h:
12625 * s/vms4-4.h:
12626 * s/vms5-5.h: Remove, unused.
12627
12628 * s/irix5-2.h:
12629 * s/irix6-0.h:
12630 * s/riscos5.h:
12631 * s/mach-bsd4-3.h:
12632 * m/mips4.h: Remove files for obsolete systems.
12633
12634 * Makefile.in:
12635 * filelock.c:
12636 * unexmips.c:
12637 * m/hp9000s300.h:
12638 * m/iris4d.h:
12639 * s/aix3-1.h:
12640 * s/hpux.h:
12641 * s/msdos.h:
12642 * s/usg5-0.h:
12643 * s/usg5-2-2.h:
12644 * s/usg5-2.h:
12645 * s/usg5-3.h: Remove references to obsolete variables.
12646
12647 * s/irix5-0.h: Remove, move all the contents ...
12648 * s/irix6-5.h: ... here. Simplify.
12649 * config.in: Regenerate.
12650
12651 2008-02-24 Jason Rumney <jasonr@gnu.org>
12652
12653 * w32term.c (x_draw_glyph_string_background): Clear the background
12654 manually when cleartype is in use.
12655 (x_draw_glyph_string_foreground): Draw text transparently when
12656 cleartype is in use.
12657
12658 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
12659 a font into it unless we have to.
12660
12661 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12662
12663 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
12664 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
12665
12666 2008-02-18 Jason Rumney <jasonr@gnu.org>
12667
12668 * w32fns.c (Fw32_shell_execute): Encode parameters.
12669
12670 2008-02-09 Eli Zaretskii <eliz@gnu.org>
12671
12672 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
12673
12674 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
12675
12676 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
12677
12678 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
12679
12680 * xterm.c (x_set_offset): Don't change the gravity if
12681 CHANGE_GRAVITY is -1.
12682
12683 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
12684
12685 * fileio.c (auto_save_error_occurred): New var.
12686 (auto_save_error): Set it.
12687 (Fdo_auto_save): Don't overwrite the error message if an auto-save
12688 error occurred.
12689
12690 2008-02-23 Eli Zaretskii <eliz@gnu.org>
12691
12692 * w32.c (globals_of_w32): Add initializations for
12693 g_b_init_get_sid_sub_authority and
12694 g_b_init_get_sid_sub_authority_count.
12695
12696 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
12697
12698 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
12699 (font_parse_xlfd): Use them for sanity check.
12700 (Finternal_set_font_style_table): Make sure the table is bijective.
12701
12702 Consolidate the image_cache to the terminal struct.
12703 * termhooks.h (P_): Remove redundant def.
12704 (struct terminal): New field `image_cache'.
12705 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
12706 of FRAME_X_IMAGE_CACHE.
12707 * xterm.h (struct x_display_info): Remove image_cache field.
12708 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12709 * w32term.h (struct w32_display_info): Remove image_cache field.
12710 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12711 * macterm.h (struct mac_display_info): Remove image_cache field.
12712 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12713 * xterm.c (x_term_init):
12714 * w32term.c (w32_term_init):
12715 * macterm.c (mac_term_init): Set the image_cache in the terminal.
12716 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
12717 Remove declarations.
12718 (clear_image_caches, mark_image_cache): New declarations.
12719 * xfaces.c (clear_face_cache):
12720 * xdisp.c (redisplay_internal): Use clear_image_caches.
12721 * image.c (clear_image_cache): Don't check that a frame is on
12722 a window-system before checking if it shares the same cache.
12723 (clear_image_caches): New function.
12724 (Fclear_image_cache): Use it.
12725 (mark_image): Move from allo.c.
12726 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
12727 * alloc.c (mark_image, mark_image_cache): Move to image.c.
12728 (mark_object): Don't call mark_image_cache for frames.
12729 (mark_terminals): Call mark_image_cache.
12730
12731 * lisp.h (Fdelete_terminal): Declare.
12732
12733 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
12734 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
12735 wrong_type_argument.
12736
12737 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
12738
12739 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
12740 malayalam.el, and tamil.el. Add sinhala.el.
12741
12742 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
12743
12744 * xterm.c (x_connection_closed): Consolidate identical tests.
12745 (x_delete_terminal): Don't crash if called via x_connection_closed.
12746
12747 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
12748
12749 * xdisp.c (decode_mode_spec): New arg string.
12750 (display_mode_element): Adjust for the above change.
12751
12752 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12753
12754 * callint.c (Fcall_interactively): Use AREF.
12755
12756 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
12757
12758 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
12759
12760 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
12761
12762 * xfns.c (Fx_show_tip): Set string to " " if empty.
12763
12764 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
12765
12766 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
12767 with Qt.
12768
12769 2008-02-17 Kenichi Handa <handa@m17n.org>
12770
12771 * ftfont.c (ftfont_shape): Return Lispy number.
12772
12773 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
12774 for GCs.
12775 (Finternal_set_font_selection_order): Call font_update_sort_order
12776 only when enable_font_backend is set.
12777 (realize_x_face): Set face->font_info to that of default face only
12778 when enable_font_backend is set.
12779
12780 * xdisp.c (handle_composition_prop): Set it->c to the fist
12781 character of the composed region.
12782 (fill_composite_glyph_string): Set base_face->font_info to
12783 s->font_info. Get a face for ascii from base_face->ascii_face.
12784 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
12785 with a face already decided.
12786 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
12787 non-negative.
12788 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
12789 call font_prepare_composition unconditionally.
12790
12791 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
12792
12793 * xterm.h (struct x_display_info): New member font.
12794
12795 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
12796 (x_set_mouse_face_gc, x_new_font): Likewise.
12797 (x_term_init): Setup display_info->font.
12798 (x_delete_terminal): Free display_info->font.
12799
12800 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
12801
12802 * ftxfont.c (ftxfont_default_fid): Delete it.
12803 (ftxfont_open): Set xfont->fid to 0.
12804 (ftxfont_end_for_frame): Clear data specific to the frame and the
12805 font-driver.
12806
12807 * xftfont.c (xftfont_default_fid): Delete it.
12808 (xftfont_open): Set xfont->fid to 0.
12809
12810 * fontset.c (FONTSET_OBJLIST): New macro.
12811 (fontset_find_font): Update font-object list of the fontset.
12812 (free_realized_fontset): New function.
12813 (free_face_fontset): Call free_realized_fontset.
12814 (Ffont_info): Call font_close_object only when enable_font_backend
12815 is set.
12816
12817 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
12818 [HAVE_NTGUI]: Include w32term.h.
12819 [MAC_OS]: Include macterm.ch.
12820 (font_otf_ValueRecord): Use make_number.
12821 (font_finish_cache): Fix handling of reference count.
12822 (font_clear_cache): Update num_fonts.
12823 (font_open_entity): Update smallest_char_width and
12824 smallest_font_height of the frame.
12825 (font_close_object): Update num_fonts.
12826 (Fclear_font_cache): Fix finding the target cache data.
12827
12828 2008-02-16 Glenn Morris <rgm@gnu.org>
12829
12830 * fontset.c (Finternal_char_font): Fix compilation warning.
12831
12832 2008-02-16 Eli Zaretskii <eliz@gnu.org>
12833
12834 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
12835 instead of char arrays. Enlarge the size of array passed to
12836 get_token_information.
12837
12838 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
12839 warnings.
12840
12841 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
12842
12843 * .gdbinit: Don't set `args', it breaks gdb --args.
12844
12845 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
12846
12847 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
12848 within a narrowed buffer.
12849
12850 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
12851
12852 * coding.c (decode_coding_object, encode_coding_object):
12853 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
12854
12855 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12856
12857 * coding.c (coding_set_destination): Use BEG_BYTE rather than
12858 hardcoding 1.
12859 (detect_coding_system):
12860 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
12861 (string_char_to_byte, string_byte_to_char, insert_from_gap):
12862 * insdel.c (insert_from_gap):
12863 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
12864 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
12865 (string_to_multibyte):
12866 * character.c (chars_in_text, multibyte_chars_in_text):
12867 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
12868
12869 * character.h (FETCH_STRING_CHAR_ADVANCE)
12870 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
12871 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
12872 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
12873
12874 * casefiddle.c (casify_region): Only call after-change and composition
12875 functions on the part of the region that was changed.
12876
12877 * keyboard.c (read_avail_input):
12878 * frame.c (Fdelete_frame): Call Fdelete_terminal.
12879
12880 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12881
12882 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
12883 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
12884
12885 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
12886
12887 * w32menu.c (push_submenu_start, push_submenu_end)
12888 (push_left_right_boundary, push_menu_pane, push_menu_item):
12889 * keyboard.c (read_key_sequence): Don't pass args with side effects
12890 to AREF, it fails when compiling with -DENABLE_CHECKING.
12891
12892 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
12893
12894 * Makefile.in (${lispsource}international/charprop.el):
12895 Delete this target.
12896
12897 * search.c (boyer_moore): Fix incorrect synching of the trunk and
12898 emacs-unicode-2.
12899
12900 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12901
12902 * terminal.c (Fdelete_terminal): Clean up the `force' path.
12903
12904 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12905
12906 * frame.c (Qnoelisp): New symbol.
12907 (syms_of_frame): Initialize it.
12908 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
12909 harmless Elisp code, from a strong `force' from x_connection_closed.
12910 * frame.h (Qnoelisp): Declare.
12911 * xterm.c (x_connection_closed): Pass `noelisp'.
12912
12913 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
12914 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
12915 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
12916 rather than `int' for the type of `type'.
12917
12918 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
12919
12920 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
12921
12922 * Makefile.in (GNUC): Remove support for gcc-1.x.
12923
12924 2008-02-10 Richard Stallman <rms@gnu.org>
12925
12926 * lisp.h (ASET): Use AREF, not ASLOT.
12927
12928 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12929
12930 * lisp.h (ASET): Check bounds.
12931
12932 2008-02-10 Glenn Morris <rgm@gnu.org>
12933
12934 * buffer.c (mode-name): Doc fix.
12935
12936 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12937
12938 * Makefile.in:
12939 * emacs.c:
12940 * gmalloc.c:
12941 * keyboard.c:
12942 * lisp.h:
12943 * m/ibm370aix.h:
12944 * process.c:
12945 * regex.c:
12946 * s/hpux.h:
12947 * sysdep.c:
12948 * sysselect.h:
12949 * systty.h:
12950 * unexec.c:
12951 * w32term.c:
12952 * xsmfns.c:
12953 * xterm.c: Remove code that deals with obsolete variables.
12954
12955 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
12956
12957 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12958 nothing else needs it anymore.
12959
12960 2008-02-09 Eli Zaretskii <eliz@gnu.org>
12961
12962 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12963 instead of unibyte_char_to_multibyte.
12964
12965 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12966
12967 * s/gnu-linux.h: Remove commented out code.
12968
12969 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12970
12971 * Makefile.in: Update what RMS says about using autoconf.
12972 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12973 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12974 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12975 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12976
12977 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12978
12979 * keymap.c (Fkey_description): Move side effect outside of macro call.
12980
12981 * xfaces.c (Finternal_make_lisp_face):
12982 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12983
12984 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12985 (syms_of_fontset): Use ASET.
12986
12987 * fns.c (concat): Move side effect outside of macro call.
12988 (hash_clear): Use ASET.
12989
12990 2008-02-08 Richard Stallman <rms@gnu.org>
12991
12992 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
12993 If FORCE, and frame has a surrogate minibuffer for another frame,
12994 delete the other frame first.
12995
12996 2008-02-07 Timo Savola <timo.savola@iki.fi>
12997
12998 * xterm.c (x_detect_focus_change): Handle embed client message.
12999 (handle_one_xevent): Ditto.
13000 (handle_one_xevent): If embedded and we get a button press/release,
13001 request focus.
13002 (xembed_set_info, xembed_send_message): New functions.
13003 (x_make_frame_visible): Call xembed_set_info if embedded.
13004 (x_make_frame_invisible): Call xembed_set_info if embedded.
13005 (x_term_init): Initialize Xatom_XEMBED.
13006 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13007 (x_iconify_frame): Ditto.
13008
13009 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13010 (enum xembed_info, enum xembed_message, enum xembed_focus)
13011 (enum xembed_modifier, enum xembed_accelerator): New.
13012 (xembed_set_info, xembed_send_message): Declare.
13013 (FRAME_X_EMBEDDED_P): New.
13014
13015 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13016 gtk_plug_new.
13017
13018 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13019 window ID of a frame.
13020 (x_window): Reparent frame if embedded.
13021 (Fx_create_frame): Don't set border width if embedded.
13022
13023 * emacs.c (USAGE3): Add --parent-id.
13024 (standard_args): Ditto.
13025
13026 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13027
13028 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13029
13030 2008-02-07 Jim Meyering <meyering@redhat.com>
13031
13032 Use "do...while (0)", not "if (1)...else" in macro definitions.
13033 The latter provokes a warning from gcc about the empty else, when
13034 followed by ";". Also, without that trailing semicolon, it would
13035 silently swallow up any following statement.
13036 * syntax.h (SETUP_SYNTAX_TABLE)
13037 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13038 * buffer.h (DECODE_POSITION): Likewise.
13039 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13040 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13041 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13042 (FETCH_CHAR_ADVANCE): Likewise.
13043 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13044
13045 2008-02-07 Jim Meyering <meyering@redhat.com>
13046
13047 * lread.c [lint]: Don't include <sys/inode.h>.
13048
13049 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13050
13051 * xselect.c (x_handle_dnd_message):
13052 * xmenu.c (digest_single_submenu, xmenu_show):
13053 * xdisp.c (with_echo_area_buffer_unwind_data)
13054 (format_mode_line_unwind_data, unwind_format_mode_line)
13055 (display_menu_bar):
13056 * eval.c (Ffetch_bytecode):
13057 * doc.c (store_function_docstring):
13058 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13059 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13060 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13061
13062 2008-02-07 Kenichi Handa <handa@m17n.org>
13063
13064 * ftxfont.c (ftxfont_open): Don't set
13065 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13066
13067 * ftfont.c (ftfont_open): Fix previous change.
13068
13069 2008-02-06 Jason Rumney <jasonr@gnu.org>
13070
13071 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13072 Use cached metrics for ASCII characters.
13073 (w32font_open_internal): Don't set font's owning_frame.
13074 Cache metrics for ASCII characters.
13075
13076 * w32font.h (struct w32font_info): Add ascii_metrics.
13077 Remove owning_frame.
13078
13079 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13080
13081 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13082 to negative value.
13083
13084 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13085
13086 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13087
13088 * charset.c (syms_of_charset): Set QCtest and Qeq.
13089
13090 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13091
13092 * process.c (Fstart_process):
13093 * callproc.c (Fcall_process): Handle the case where
13094 Funhandled_file_name_directory returns nil.
13095
13096 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13097 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13098 * font.c (check_gstring): Use them and AREF to access the vector before
13099 we know it's really a gstring.
13100 (Ffont_shape_text): Fix typo.
13101 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
13102
13103 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13104 Declare.
13105
13106 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13107
13108 2008-02-05 Jason Rumney <jasonr@gnu.org>
13109
13110 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13111 Set smallest_font_height and smallest_char_width in display info.
13112
13113 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13114
13115 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13116
13117 2008-02-05 Miles Bader <miles@gnu.org>
13118
13119 * xfaces.c (get_lface_attributes, merge_named_face)
13120 (lookup_named_face, lookup_derived_face, realize_named_face):
13121 Revert 2008-02-01 change by cyd@stupidchicken.com.
13122
13123 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13124
13125 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13126 fallback fonts.
13127 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13128
13129 2008-02-04 Jason Rumney <jasonr@gnu.org>
13130
13131 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13132 set full_name.
13133 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13134
13135 2008-02-03 Jason Rumney <jasonr@gnu.org>
13136
13137 * makefile.w32-in (OBJ1): Include font.o here.
13138 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13139
13140 2008-02-02 Jason Rumney <jasonr@gnu.org>
13141
13142 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13143
13144 2008-02-01 Jason Rumney <jasonr@gnu.org>
13145
13146 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13147
13148 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13149
13150 2008-02-01 Andreas Schwab <schwab@suse.de>
13151
13152 * Makefile.in (shortlisp, lisp): Update for rename of
13153 ../lisp/language/myanmar.el.
13154
13155 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
13156
13157 * xfaces.c (get_lface_attributes): Delete function.
13158 (merge_named_face, lookup_named_face, lookup_derived_face)
13159 (realize_named_face): Call lface_from_face_name directly, and use
13160 the fact that merge_face_vectors does not alter its FROM argument.
13161
13162 2008-02-01 Jason Rumney <jasonr@gnu.org>
13163
13164 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13165 input in the default locale. Handle non-Unicode multibyte input.
13166
13167 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13168
13169 * fontset.c (reorder_font_vector): Exclude nil elements from the
13170 font group. Don't try multiple fonts.
13171 (fontset_font): Adjust for the above change.
13172 (Finternal_char_font): Return nil if the found font doesn't
13173 contain the character ch.
13174
13175 * Makefile.in (lisp, shortlisp): Add cham.el.
13176
13177 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13178
13179 * font.h (FONTP): Make it return 1 also for a font-object.
13180
13181 * .gdbinit (xfontset): New function.
13182
13183 * font.c (font_find_for_lface): Check if the character C is
13184 supported or not only for the first font.
13185
13186 * fontset.c (reorder_font_vector): Fix typo.
13187 (fontset_find_font): Don't add a font-spec specifying a script.
13188 Use 0 (not Qt) for the indication of empty font-group. Change the
13189 format of RFONT-DEF. Return Qt if no font in the font-group
13190 support the character.
13191 (fontset_font): Adjust for the above change. If no font was
13192 found the character, remember that.
13193 (face_for_char): Adjust for the change of RFONT-DEF.
13194 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13195 no font for the target.
13196 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13197
13198 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13199
13200 * font.c (font_load_for_face): Handle the case that the font in
13201 face->lface is a string.
13202
13203 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13204
13205 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13206
13207 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13208
13209 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13210 Fix previous change. If the frame is not on a window system,
13211 signal an error.
13212
13213 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13214
13215 * coding.c (decode_coding_object, encode_coding_object): Adjust
13216 marker positions after conversion.
13217
13218 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13219
13220 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13221
13222 * font.c (font_find_for_lface): Fix the handling of the return
13223 value of font_has_char.
13224 (Ffont_shape_text): Fix previous change.
13225
13226 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13227 (fontset_ref_and_range): Delete it.
13228 (fontset_find_font): Call char_table_ref_and_range instead of
13229 FONTSET_REF_AND_RANGE.
13230 (make_fontset): Don't setup font groups of Latin here.
13231 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13232 (new_fontset_from_font): Make the specified font the default for
13233 all Latin characters.
13234
13235 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13236
13237 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13238 is on a window system before accessing the fontset of the frame.
13239
13240 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13241
13242 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13243
13244 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13245 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13246
13247 * font.c (Ffont_shape_text): If the font driver doesn't have a
13248 shaper function, make zero-width glyphs to have at least one-pixel
13249 width. Fix setting of `to' field of glyphs.
13250
13251 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13252
13253 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13254 glyphs.
13255
13256 * font.h (struct font_driver): Improve docstring of member `shape'.
13257
13258 2008-02-01 Kenichi Handa <handa@m17n.org>
13259
13260 * composite.c (syms_of_composite): Fix docstring of
13261 auto-composition-function.
13262
13263 * font.h (LGLYPH_SIZE): New macro.
13264
13265 * font.c (Ffont_fill_gstring): Stop filling when a character not
13266 supported by the font is found.
13267 (Ffont_shape_text): When a shape callback function returns nil,
13268 try at most two more times with larger gstring.
13269 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13270
13271 * xdisp.c (handle_auto_composed_prop): Change the argument to
13272 auto-composition-function.
13273
13274 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13275 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13276 Lispy glyph and store it in the lgstring.
13277
13278 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13279
13280 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13281
13282 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13283
13284 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13285
13286 * fontset.c (Vfont_encoding_charset_alist): New variable.
13287 (syms_of_fontset): DEFVAR it.
13288 (reorder_font_vector, fontset_find_font): Optimize for the case of
13289 no need of reordering.
13290 (face_for_char): Map the charset property by
13291 Vfont_encoding_charset_alist.
13292
13293 2008-02-01 Jason Rumney <jasonr@gnu.org>
13294
13295 * w32font.c (logfonts_match): Don't check adstyle here.
13296 (font_matches_spec): Check here against physical font instead.
13297 (add_font_entity_to_list): Avoid some substitutions.
13298
13299 * font.c (font_parse_fcname): Default weight and slant to normal.
13300 (font_score): Prefer normal fonts if weight or slant unspecified.
13301 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13302 match freetype scores.
13303
13304 2008-02-01 Jason Rumney <jasonr@gnu.org>
13305
13306 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13307 font, as it may have been deleted.
13308 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13309 most common hyphenless variation.
13310 (logfonts_match): Check generic family.
13311 (font_matches_spec): Don't check generic family here.
13312 (fill_in_logfont): Set generic family based on adstyle.
13313
13314 * w32font.h (w32font_get_cache): Update declaration.
13315
13316 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13317
13318 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13319
13320 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13321 If none of the new drivers are available, call font_update_drivers
13322 with the old drivers.
13323
13324 * w32font.c (w32font_get_cache): Adjust the argument type.
13325
13326 * xfont.c (xfont_get_cache): Adjust the argument type.
13327
13328 * font.h (struct font_driver): Change argument type of get_cache.
13329
13330 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13331
13332 * font.c (Ffont_get): Fix arguments to Fassoc.
13333 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13334 (font_clear_cache): New function.
13335 (font_list_entities, font_matching_entity): Use font_get_cache.
13336 (font_update_drivers): Call font_clear_cache when finishing a driver.
13337
13338 * fontset.c (fontset_find_font): Fix previous change.
13339
13340 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13341
13342 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13343 dpyinfo->font_table.
13344 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13345 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13346
13347 * font.c (font_at): Handle the case that the arg C is negative.
13348 Handle the unibyte case.
13349 (Ffont_at): Call font_at with the arg C -1.
13350
13351 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13352 the position here, and call font_at with the arg C -1.
13353 Don't check the range of the existing composition at the point.
13354
13355 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13356
13357 * fontset.c (fontset_add): New args charset_id and family.
13358 Change caller.
13359 (load_font_get_repertory, fontset_find_font): Assume that
13360 font_spec is always a font-spec object.
13361 (Fset_fontset_font): Always store a font-spec object in a fontset.
13362
13363 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13364 instead of get_property_and_range.
13365
13366 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13367
13368 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13369 (xftfont_open): Don't keep locking face.
13370 (xftfont_close): Don't unlock face.
13371 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13372
13373 * fontset.c (fontset_find_font): Don't prefer a font of
13374 supplementary charset.
13375
13376 2008-02-01 Kenichi Handa <handa@m17n.org>
13377
13378 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13379 script, langsys_tag to langsys, new member script.
13380 (OTF_TAG_STR): Terminate by '\0'.
13381 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
13382 listing to the script specified in that property. Fix arg to
13383 OTF_check_features.
13384
13385 2008-02-01 Jason Rumney <jasonr@gnu.org>
13386
13387 * w32font.h: New file.
13388
13389 * w32font.c: Include it.
13390 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13391 (w32font_open): Set owning_frame.
13392 (w32font_text_extents): Use owning_frame.
13393 (struct font_callback_data): Add opentype_only field.
13394 (add_font_entity_to_list): Use it to filter fonts.
13395 Don't check against full name.
13396 (w32font_list_internal): New function.
13397 (w32font_list): Use it.
13398 (w32font_match_internal): New function.
13399 (w32font_match): Use it.
13400 (w32font_open_internal): New function.
13401 (w32font_open): Use it.
13402 (w32font_get_cache, w32font_close, w32font_has_char)
13403 (w32font_encode_char, w32font_text_extents, w32font_draw):
13404 Make non-static.
13405
13406 * makefile.w32-in (w32font.o): Depend on w32font.h.
13407
13408 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13409
13410 * charset.c (Fdefine_charset_internal): Record a supplementary
13411 charset at the tail of Vcharset_order_list.
13412
13413 * font.c (Ffont_shape_text): Fix the return value.
13414
13415 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13416
13417 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13418
13419 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13420
13421 * ftfont.c (struct OpenTypeSpec): New struct.
13422 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13423 (ftfont_get_open_type_spec): New function.
13424 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13425
13426 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13427
13428 2008-02-01 Jason Rumney <jasonr@gnu.org>
13429
13430 * w32font.c (add_font_entity_to_list): Compare only the beginning
13431 of full name.
13432
13433 2008-02-01 Kenichi Handa <handa@m17n.org>
13434
13435 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13436 Never return HANDLED_RECOMPUTE_PROPS.
13437
13438 2008-02-01 Kenichi Handa <handa@m17n.org>
13439
13440 * font.c (font_gstring_produce): Delete it.
13441
13442 * composite.h (COMPOSITION_METHOD):
13443 Handle COMPOSITION_WITH_GLYPH_STRING.
13444
13445 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13446
13447 * xfont.c (Qx): Delete.
13448 (syms_of_xfont): Don't initialize Qx.
13449
13450 * composite.h (enum composition_method):
13451 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13452
13453 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13454
13455 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13456 (choose_face_font): Accept new form of font-spec.
13457
13458 * frame.h (font_driver_list): Declare it unconditionally.
13459 (struct frame): Define members font_driver_list and font_data_list
13460 unconditionally.
13461
13462 * fontset.c: Include "font.h" unconditionally.
13463 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13464 (Fset_fontset_font): Accept a font-spec object.
13465
13466 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13467 PIXEL_SIZE part a wild card.
13468
13469 * dispextern.h (struct glyph_string): Define members clip and
13470 num_clips unconditionally.
13471 (struct face): Define members font_info and extra unconditionally.
13472
13473 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13474 ftfont_info only when HAVE_LIBOTF is defined.
13475
13476 2008-02-01 Andreas Schwab <schwab@suse.de>
13477
13478 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13479 and end.
13480
13481 2008-02-01 Jason Rumney <jasonr@gnu.org>
13482
13483 * w32font.c (w32font_driver): Add new fields.
13484
13485 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13486
13487 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13488 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13489 (LIBES): Add @M17N_FLT_CFLAGS@.
13490
13491 * composite.c (compose_text): Don't treat the new style
13492 composition specially.
13493
13494 * emacs.c (main): Call syms_of_font unconditionally.
13495
13496 * font.h (FONT_ENTITY_NOT_LOADABLE)
13497 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13498 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13499 (struct font_driver): New member shape.
13500 (font_registry_charsets): Extern it.
13501 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13502 (font_otf_capability, font_drive_otf): Delete their externs.
13503
13504 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13505 (font_charset_alist, font_registry_charsets): Move from xfont.c
13506 and rename.
13507 (font_prop_validate_otf): New function.
13508 (font_property_table): Register it for QCotf.
13509 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13510 (font_drive_otf): Delete.
13511 (font_prepare_composition): New arg F. Adjust for the change of
13512 lispy gstring.
13513 (font_find_for_lface): New arg C.
13514 (font_load_for_face): Adjust for the change of font_find_for_lface.
13515 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13516 lispy gstring.
13517 (Ffont_shape_text): New function.
13518 (Fopen_font): If the font size is not given, use 12-pixel.
13519 (Ffont_at): New arg STRING.
13520 (syms_of_font): Initalize font_charset_alist.
13521 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13522 conditionally.
13523
13524 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13525 fonts of the same font-spec. Change the format of RFONT-DEF.
13526 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13527 Adjust for the change of RFONT-DEF.
13528 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13529
13530 * ftfont.h: New file.
13531
13532 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13533 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13534 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13535 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13536 font_otf_capability and font_drive_otf, set ftfont_shape.
13537 (ftfont_list): Adjust for the change of :otf property value.
13538 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13539 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13540 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13541 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13542 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13543 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13544
13545 * w32term.c (x_draw_composite_glyph_string_foreground):
13546 Adjust for the change of lispy gstring.
13547
13548 * xdisp.c (handle_composition_prop): Adjust for the change of
13549 lispy gstring. Call a function for auto-composition with the
13550 third arg it->window.
13551 (fill_composite_glyph_string): Adjust for the change of lispy string.
13552 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13553
13554 * xfaces.c (set_font_frame_param): Adjust for the change of
13555 font_find_for_lface.
13556
13557 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13558 (xfont_registry_charsets): Likewise. Change caller.
13559 (syms_of_xfont): Don't handle x_font_charset_alist.
13560
13561 * xftfont.c: Include "ftfont.h".
13562 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13563 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13564 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13565 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13566 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13567 Set xftfont_driver.shape to xftfont_shape.
13568
13569 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13570 the change of lispy gstring.
13571
13572 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13573
13574 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13575
13576 2008-02-01 Jason Rumney <jasonr@gnu.org>
13577
13578 * w32font.c (w32font_draw): Fill background manually.
13579
13580 2008-02-01 Jason Rumney <jasonr@gnu.org>
13581
13582 * font.c (Qfontp): Remove unused symbol.
13583 (QCantialias): New symbol.
13584 (syms_of_font): Define it.
13585 (font_property_table): Set a validator for QCantialias.
13586
13587 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13588 Define if not already.
13589 (QCfamily): Share with xfaces.c.
13590 (Qstandard, Qsubpixel, Qnatural): New symbols.
13591 (syms_of_w32font): Define them. Don't define QCfamily here.
13592 (w32_antialias_type, lispy_antialias_type): New functions.
13593 (w32_enumfont_pattern_entity): New arg requested_font.
13594 Set antialias parameter if non-default was requested.
13595 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13596
13597 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13598
13599 * lread.c (read1): Undo the previous change.
13600
13601 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13602
13603 * frame.c (Fdelete_frame): Call font_update_drivers only when
13604 USE_FONT_BACKEND is defined.
13605
13606 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13607
13608 * font.h (struct font_bitmap): New member bits_per_pixel.
13609 (struct font_driver): New members start_for_frame and end_for_frame.
13610 (struct font_data_list): New struct.
13611 (font_put_frame_data, font_get_frame_data): Extern them.
13612
13613 * frame.h (struct frame): New member font_data_list.
13614
13615 * font.c (font_update_drivers): Call driver->start_for_frame and
13616 driver->end_for_frame at proper timings.
13617 (font_put_frame_data, font_get_frame_data): New functions.
13618 (Ffont_spec): Add usage in the docstring.
13619
13620 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13621 (Fdelete_frame): Call font_update_drivers.
13622
13623 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13624 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13625 (xftfont_get_xft_draw): New function.
13626 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13627 (xftfont_end_for_frame): New function.
13628 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13629
13630 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13631 Change argument. Cache GCs in the per-frame data.
13632 (struct ftxfont_frame_data): New struct.
13633 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13634 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13635 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13636 (ftxfont_end_for_frame): New function.
13637 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13638
13639 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13640
13641 2008-02-01 Kenichi Handa <handa@m17n.org>
13642
13643 * xselect.c (Vselection_coding_system)
13644 (Vnext_selection_coding_system): Delete them.
13645 (syms_of_xselect): Don't declare selection-coding-system and
13646 next-selection-coding-system. They are declared in select.el.
13647
13648 2008-02-01 Jason Rumney <jasonr@gnu.org>
13649
13650 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
13651
13652 * w32fns.c: Include imm.h.
13653 (get_composition_string_fn, get_ime_context_fn): New optional
13654 system functions.
13655 (globals_of_w32fns): Load them from imm32.dll.
13656 (ignore_ime_char): New flag.
13657 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
13658 WM_IME_ENDCOMPOSITION messages.
13659
13660 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
13661 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
13662
13663 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13664
13665 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
13666 (READCHAR_REPORT_MULTIBYTE): New macro.
13667 (readchar): New 2nd arg MULTIBYTE.
13668 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
13669 Make symbol's name multibyte according to the multibyteness of the
13670 source.
13671
13672 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13673
13674 * xfaces.c (face_for_overlay_string): Call lookup_face with
13675 correct arguments (fix of synching with the trunk).
13676
13677 2008-02-01 Kenichi Handa <handa@m17n.org>
13678
13679 * font.c (font_prop_validate_symbol, font_prop_validate_style)
13680 (font_prop_validate_non_neg, font_prop_validate_spacing):
13681 Delete argument prop_index.
13682 (font_property_table): Change arguments to validater. Change Callers.
13683 (font_lispy_object): Delete.
13684 (font_at): Use font_find_object instead fo font_lispy_object.
13685
13686 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13687
13688 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
13689 and file names.
13690
13691 2008-02-01 Jason Rumney <jasonr@gnu.org>
13692
13693 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
13694 (font_matches_spec): Remove debug output.
13695 (add_font_entity_to_list): Avoid using substituted fonts.
13696
13697 2008-02-01 Jason Rumney <jasonr@gnu.org>
13698
13699 * doc.c (Fsnarf_documentation):
13700 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
13701
13702 2008-02-01 Miles Bader <miles@gnu.org>
13703
13704 * dispextern.h (struct glyph_row): Only define "clip" field if
13705 HAVE_WINDOW_SYSTEM is defined.
13706
13707 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13708
13709 Fix up multi-tty merge.
13710
13711 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
13712 and indentation.
13713
13714 * xfaces.c (free_realized_face, clear_face_gcs):
13715 Include font_done_for_face in the input_blocked section, just in case.
13716
13717 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
13718 (get_char_face_and_encoding): Undo last change and remove the *other*
13719 duplicate definition (i.e. keep the one that's better scoped and that
13720 includes code for the font-backend).
13721
13722 * terminal.c (create_terminal): Default keyboard_coding to
13723 `no-conversion' and terminal_coding to `undecided'.
13724
13725 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
13726
13727 * fontset.c (free_realized_fontsets): Check that the table entry does
13728 contain a fontset before trying to compare it to `base'.
13729
13730 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
13731 syms_of_charset, and syms_of_coding earlier because init_window_once
13732 now needs Vcoding_system_hash_table to be setup.
13733
13734 * coding.h (default_buffer_file_coding): Remove.
13735
13736 * coding.c (default_buffer_file_coding): Remove.
13737 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
13738 than ->symbol, and use the terminal-local coding system.
13739 (syms_of_coding): Don't setup the coding-systems that are not
13740 terminal-local.
13741 (Fdefine_coding_system_internal): Use XCAR/XCDR.
13742
13743 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
13744 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
13745
13746 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
13747 in chartab.c and were re-added here by mistake.
13748 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
13749
13750 * doc.c (Fsnarf_documentation):
13751 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
13752 src to etc.
13753
13754 * ChangeLog.10: Add mistakenly removed entry.
13755
13756 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
13757
13758 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
13759
13760 2008-02-01 Miles Bader <miles@gnu.org>
13761
13762 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
13763 Add extra args to FACE_FOR_CHAR.
13764
13765 2008-02-01 Kenichi Handa <handa@m17n.org>
13766
13767 * keymap.c (where_is_internal_1): If key is a cons, store the copy
13768 in sequence.
13769
13770 * chartab.c (map_sub_char_table, map_char_table): If the range
13771 contains just one character, call the function with that character
13772 even if the depth is not 3.
13773
13774 2008-02-01 Jason Rumney <jasonr@gnu.org>
13775
13776 * w32font.c (w32font_text_extents): Calculate metrics for the
13777 whole string.
13778
13779 2008-02-01 Jason Rumney <jasonr@gnu.org>
13780
13781 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
13782
13783 2008-02-01 Jason Rumney <jasonr@gnu.org>
13784
13785 * w32term.c (x_set_glyph_string_clipping): Use
13786 get_glyph_string_clip_rects.
13787 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13788 Adjust for the change of struct glyph_string.
13789
13790 * w32font.c (w32font_draw): Do clipping here.
13791
13792 2008-02-01 Kenichi Handa <handa@m17n.org>
13793
13794 * xftfont.c (xftfont_draw): Adjust for the change of struct
13795 glyph_string.
13796
13797 * xterm.c (x_set_glyph_string_clipping): Use
13798 get_glyph_string_clip_rects.
13799 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13800 Adjust for the change of struct glyph_string.
13801
13802 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
13803 the resulting clip(s}.
13804 (expose_overlaps): Add arg r. Change callers. Set it to
13805 row->clip temporarily.
13806 (expose_window): Redraw rows overlapping the exposed area.
13807
13808 * dispextern.h (struct glyph_row): New member clip.
13809 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
13810 clip_height, new member clip, and num_clips.
13811
13812 2008-02-01 Kenichi Handa <handa@m17n.org>
13813
13814 * data.c (Fchar_or_string_p): Fix docstring.
13815
13816 2008-02-01 Kenichi Handa <handa@m17n.org>
13817
13818 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
13819 create a temporary XftDraw object.
13820
13821 2008-02-01 Kenichi Handa <handa@m17n.org>
13822
13823 * font.c (Ffontp): Fix docstring.
13824
13825 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
13826 strong evidence of ISO-2022.
13827
13828 2008-02-01 Kenichi Handa <handa@m17n.org>
13829
13830 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
13831 SYNTAX_ENTRY_FOLLOW_PARENT.
13832
13833 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13834
13835 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
13836 its type.
13837 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13838 Update to the new type of weak_hash_tables and next_weak.
13839
13840 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
13841 a plain C pointer to Lisp_Hash_Table.
13842
13843 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
13844 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
13845 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
13846 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
13847 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
13848 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
13849 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
13850 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
13851 (GC_EQ): Remove since they've been identical to their non-GC_
13852 alter-egos ever since the markbit was eradicated.
13853
13854 * alloc.c:
13855 * buffer.c:
13856 * buffer.h:
13857 * data.c:
13858 * fileio.c:
13859 * filelock.c:
13860 * fns.c:
13861 * frame.h:
13862 * lisp.h:
13863 * macterm.c:
13864 * print.c:
13865 * process.c:
13866 * w32fns.c:
13867 * w32menu.c:
13868 * w32term.c:
13869 * xfns.c:
13870 * xmenu.c:
13871 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
13872
13873 2008-02-01 Kenichi Handa <handa@m17n.org>
13874
13875 * chartab.c (map_sub_char_table): Make it work for the top-level
13876 char-table. Fix handling of parent char-table.
13877 (map_char_table): Adjust for the above change.
13878
13879 2008-02-01 Jason Rumney <jasonr@gnu.org>
13880
13881 * w32font.c (Qgdi): Rename from Qw32.
13882
13883 2008-02-01 Jason Rumney <jasonr@gnu.org>
13884
13885 * w32bdf.c (get_quoted_string): Make function static.
13886
13887 2008-02-01 Kenichi Handa <handa@m17n.org>
13888
13889 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
13890 bigger ascent and descent than those of the font, use them as
13891 font's ascent and descent.
13892
13893 2008-02-01 Kenichi Handa <handa@m17n.org>
13894
13895 * Makefile.in (${lispsource}international/charprop.el): Move this
13896 target within "#ifdef HAVE_UNIDATA" and "#endif".
13897
13898 2008-02-01 Kenichi Handa <handa@m17n.org>
13899
13900 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
13901 (shortlisp): Add ../lisp/language/tai-viet.el.
13902
13903 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
13904
13905 * Makefile.in (${lispsource}international/charprop.el): Depend on
13906 temacs${EXEEXT}.
13907
13908 2008-02-01 Jason Rumney <jasonr@gnu.org>
13909
13910 * w32font.c (w32font_close): Delete the GDI font object.
13911
13912 * w32menu.c: Include character.h.
13913
13914 * w32proc.c: Likewise.
13915
13916 * w32select.c: Likewise.
13917
13918 * makefile.w32-in (w32proc.o): Depend on character.h.
13919
13920 2008-02-01 Jason Rumney <jasonr@gnu.org>
13921
13922 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
13923
13924 * w32menu.c (syms_of_w32menu): Likewise.
13925
13926 * w32proc.c (syms_of_ntproc): Likewise.
13927
13928 * w32select.c (syms_of_w32select): Likewise.
13929
13930 * w32term.c (syms_of_w32term): Likewise.
13931
13932 2008-02-01 Jason Rumney <jasonr@gnu.org>
13933
13934 * w32font.c (w32font_draw): Delete brush after using it.
13935
13936 2008-02-01 Jason Rumney <jasonr@gnu.org>
13937
13938 * w32font.c (w32font_open): Don't set font_idx.
13939 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
13940 to font settings.
13941 (w32font_draw): Fill background explicitly.
13942
13943 2008-02-01 Jason Rumney <jasonr@gnu.org>
13944
13945 * w32term.c (w32_initialize): Don't call w32font_initialize.
13946
13947 * w32font.c (w32font_info): Remove subranges.
13948 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
13949 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
13950 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
13951 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
13952 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
13953 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
13954 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
13955 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
13956 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
13957 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13958 New symbols.
13959 (font_callback_data): New struct.
13960 (w32font_list, w32font_match): Use it.
13961 (w32font_open): Don't populate subranges.
13962 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13963 (w32font_encode_char): Always return unicode code-point as-is.
13964 (w32font_text_extents): Supply a transformation matrix to
13965 GetGlyphOutline. Never look up by glyph index. Avoid looping
13966 twice. Use unicode version of GetTexExtentPoint32 instead of
13967 glyph index version.
13968 (set_fonts_frame): Remove.
13969 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13970 set frame parameter. Use backward compatible fake foundries.
13971 Save generic family in extra slot under QCfamily. Make width slot
13972 constant. Save QCspacing value. Save list of scripts instead of
13973 binary subranges.
13974 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13975 (add_font_entity_to_list): Use font_callback_data struct. Filter
13976 unwanted fonts.
13977 (add_one_font_entity_to_list): Use font_callback_data struct.
13978 (w32_registry): Default to iso10646_1.
13979 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13980 string font registries. Don't fill in font name if it is a generic
13981 family name, fill family instead. Use spacing, family and script
13982 extra info to fill pitch, family and charset fields.
13983 (list_all_matching_fonts): Use font_callback_data struct.
13984 (unicode_range_for_char): Remove.
13985 (font_supported_scripts): New function.
13986 (w32font_initialize): Remove.
13987 (syms_of_w32font): Update which symbols are defined.
13988
13989 2008-02-01 Jason Rumney <jasonr@gnu.org>
13990
13991 * font.c (font_pixel_size): Reverse assq_no_quit args.
13992
13993 * w32term.h (FONT_WIDTH): Report max width, not average.
13994 (FONT_MAX_WIDTH): Remove.
13995 (FONT_AVG_WIDTH): New macro.
13996
13997 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
13998 redefinition of FONT_WIDTH.
13999
14000 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14001 (w32_cache_char_metrics): Use FONT_WIDTH.
14002
14003 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14004
14005 2008-02-01 Jason Rumney <jasonr@gnu.org>
14006
14007 * w32font.c (w32font_open): Make lfHeight negative.
14008
14009 * w32fns.c (x_default_font_parameter): Use new style font name.
14010 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14011
14012 2008-02-01 Jason Rumney <jasonr@gnu.org>
14013
14014 * w32font.c (QCsubranges): New symbol.
14015 (w32font_open, w32font_has_char): Get subranges from subproperty
14016 of extra.
14017 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14018 (syms_of_w32font): Define :subranges symbol.
14019
14020 * font.c (font_put_extra): Expose externally.
14021
14022 * font.h (font_put_extra): Move declaration from font.c.
14023
14024 * font.c (Ffont_get): Use font driver to determine otf capability.
14025 (adjust_anchor): Check if driver defines anchor_point before using.
14026
14027 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14028 (w32font_draw): Use options.
14029 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14030 Fix detection of truetype fonts.
14031 (registry_to_w32_charset): Handle charsets other than iso8859-1
14032 expressed as lisp symbols.
14033 (w32_registry): Express charset as lisp symbol.
14034 (fill_in_logfont): Reverse pixel and point height logic.
14035 Don't set width here. Set quality to default.
14036
14037 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14038 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14039
14040 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14041 Remove redundant loop and allocation.
14042
14043 * makefile.w32-in (font.o, w32font.o): New objects.
14044 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14045 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14046
14047 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14048 STORE_XCHARB a valid l-value.
14049
14050 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14051 calculations for non-Truetype fonts.
14052 (x_draw_glyph_string): Sync with xterm.c.
14053 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14054 Remove redundant code.
14055 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14056
14057 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14058 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14059
14060 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14061 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14062
14063 * w32font.c: New file for w32 font backend.
14064
14065 2008-02-01 Kenichi Handa <handa@m17n.org>
14066
14067 * term.c: Don't include "buffer.h" twice.
14068
14069 2008-02-01 Kenichi Handa <handa@m17n.org>
14070
14071 * character.c (Funibyte_string): New function.
14072 (syms_of_character): Defsubr it.
14073
14074 2008-02-01 Jason Rumney <jasonr@gnu.org>
14075
14076 * w32term.c [USE_FONT_BACKEND]:
14077 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14078 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14079 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14080 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14081 (x_free_frame_resources): Sync with xterm.c.
14082
14083 2008-02-01 Andreas Schwab <schwab@suse.de>
14084
14085 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14086 char-table size.
14087
14088 2008-02-01 Kenichi Handa <handa@m17n.org>
14089
14090 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14091
14092 2008-02-01 Kenichi Handa <handa@m17n.org>
14093
14094 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14095 font_otf_gpos, add font_drive_otf.
14096
14097 * fontset.c (fontset_find_font): Pay attention to font size
14098 specified for a font.
14099 (reorder_font_vector): Check contents of font_def.
14100
14101 * font.c (struct otf_list): Delete it.
14102 (otf_list): Make it a lisp variable.
14103 (otf_open): Use lispy otf_list.
14104 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14105 (check_otf_features): New function.
14106 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14107 New functions.
14108 (font_drive_otf): New function merging font_otf_gsub and
14109 font_otf_gpos.
14110 (font_open_for_lface): New arg spec. Change argument order.
14111 (font_load_for_face): Adjust for the change of font_open_for_lface.
14112 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14113 Ffont_otf_gpos.
14114 (syms_of_font): Staticpro otf_list. Delete defsubr of
14115 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14116
14117 * xfaces.c (set_font_frame_param): Adjust for the change of
14118 font_open_for_lface.
14119
14120 * font.h (font_open_for_lface): Adjust prototype.
14121 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14122 member otf_drive.
14123 (font_otf_gsub, font_otf_gpos): Delete externs.
14124 (font_drive_otf): Extern it.
14125
14126 2008-02-01 Kenichi Handa <handa@m17n.org>
14127
14128 * font.c (font_at): If the window W is not on a window system,
14129 return Qnil.
14130
14131 * coding.c (produce_chars, encode_coding): Don't call
14132 insert_from_gap if no characters to produce.
14133
14134 2008-02-01 Kenichi Handa <handa@m17n.org>
14135
14136 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14137 Fclear_face_cache.
14138
14139 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14140
14141 2008-02-01 Miles Bader <miles@gnu.org>
14142
14143 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14144 Parse "--disable-font-backend" option.
14145 (standard_args): Add "--disable-font-backend" option.
14146
14147 2008-02-01 Kenichi Handa <handa@m17n.org>
14148
14149 * fontset.c (fontset_find_font): New function.
14150 (fontset_font): Use fontset_find_font.
14151 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14152 Register the specified font for all Latin characters.
14153 (new_fontset_from_font): Register the specified font for all Latin
14154 characters.
14155 (dump_fontset): For a realized fontset, include the base fontset
14156 name in the returned vector.
14157
14158 2008-02-01 Kenichi Handa <handa@m17n.org>
14159
14160 * character.h (CHAR_STRING): Cast C to unsigned on calling
14161 char_string.
14162
14163 * character.c (char_string): Type of arg C changed to unsigned.
14164 Signal an error if C is an invalid character code.
14165
14166 * editfns.c (general_insert_function, Fchar_to_string):
14167 Use CHARACTERP, not INTEGERP.
14168
14169 2008-02-01 Kenichi Handa <handa@m17n.org>
14170
14171 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14172 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14173
14174 * regex.c (analyse_first): Fix for multibyte characters in "case
14175 charset:" and "case categoryspec:".
14176
14177 2008-02-01 Andreas Schwab <schwab@suse.de>
14178
14179 * Makefile.in (LIBES): Move standard libraries to the end.
14180
14181 2008-02-01 Kenichi Handa <handa@m17n.org>
14182
14183 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14184 nonzero, don't shrink the buffer nextb.
14185
14186 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14187
14188 * coding.c (coding_alloc_by_making_gap): New arg offset.
14189 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14190 offset.
14191 (decode_coding_iso_2022): Update coding->safe_charsets.
14192 (decode_coding_gap): Temporarily set
14193 current_buffer->text->inhibit_shrinking to 1.
14194
14195 2008-02-01 Kenichi Handa <handa@m17n.org>
14196
14197 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14198 indexing into elements of s->cmp and s->char2b.
14199
14200 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
14201
14202 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14203
14204 2008-02-01 Kenichi Handa <handa@m17n.org>
14205
14206 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14207 target_multibyte instead of multibyte.
14208 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14209 (bcmp_translate): Change the argument name from multibyte to
14210 target_multibyte.
14211
14212 2008-02-01 Kenichi Handa <handa@m17n.org>
14213
14214 These changes are to compile a regexp into a pattern that can be
14215 used both for multibyte and unibyte targets.
14216
14217 * Makefile.in (search.o): Depend on charset.h.
14218
14219 * character.c (multibyte_char_to_unibyte_safe): New function.
14220
14221 * search.c: Include "charset.h".
14222 (compile_pattern_1): Delete argument multibyte. Don't set
14223 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14224 (compile_pattern): Don't compare cp->buf.target_multibyte.
14225 Compare cp->buf.charset_unibyte.
14226 (compile_pattern): Set cp->buf.target_multibyte.
14227
14228 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14229
14230 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14231
14232 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14233 multibyte. Change callers.
14234 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14235 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14236 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14237 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14238 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14239 (regex_compile): Make the compiled pattern usable both for
14240 multibyte and unibyte targets.
14241 (analyse_first): Make the fastmap usable both for multibyte and
14242 unibyte targets.
14243 (TRANSLATE_VIA_MULTIBYTE): Delete.
14244 (re_match_2_internal): Pay attention to the case that the
14245 multibyteness of bufp and target may be different.
14246
14247 2008-02-01 Kenichi Handa <handa@m17n.org>
14248
14249 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14250 empty box occupy at least one column width.
14251
14252 2008-02-01 Miles Bader <miles@gnu.org>
14253
14254 * Makefile.in: Remove redundant HAVE_XFT clause.
14255
14256 2008-02-01 Kenichi Handa <handa@m17n.org>
14257
14258 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14259
14260 2008-02-01 Kenichi Handa <handa@m17n.org>
14261
14262 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14263 being nil.
14264
14265 2008-02-01 Kenichi Handa <handa@m17n.org>
14266
14267 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14268
14269 2008-02-01 Kenichi Handa <handa@m17n.org>
14270
14271 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14272
14273 2008-02-01 Kenichi Handa <handa@m17n.org>
14274
14275 * search.c (simple_search): Fix previous change.
14276
14277 2008-02-01 Kenichi Handa <handa@m17n.org>
14278
14279 * xftfont.c (ftfont_font_format): Extern declaration.
14280
14281 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14282
14283 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14284 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14285
14286 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14287 (ftfont_font_format): Fix previous change.
14288
14289 * font.h (Ffont_xlfd_name): EXFUN it.
14290
14291 * font.c (font_parse_xlfd): Fix the array size of `f'.
14292 (register_font_driver): Use EQ to compare driver->type.
14293
14294 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14295 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14296 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14297
14298 2008-02-01 Kenichi Handa <handa@m17n.org>
14299
14300 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14301 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14302
14303 2008-02-01 Kenichi Handa <handa@m17n.org>
14304
14305 * xfont.c (xfont_open): Set font->format.
14306
14307 * xftfont.c (xftfont_open): Set font->format.
14308
14309 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14310 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14311 (ftfont_open): Set font->format.
14312 (ftfont_font_format): New function.
14313
14314 * font.h (struct font): New member format.
14315
14316 * font.c (Qopentype): New variable.
14317 (syms_of_font): Defsym it.
14318 (Fquery_font): Change the format of the last element of the return
14319 value.
14320
14321 2008-02-01 Kenichi Handa <handa@m17n.org>
14322
14323 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14324 last resort.
14325
14326 2008-02-01 Kenichi Handa <handa@m17n.org>
14327
14328 * coding.c (detect_coding_charset): Fix detection of multi-byte
14329 charset.
14330
14331 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14332
14333 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14334
14335 2008-02-01 Kenichi Handa <handa@m17n.org>
14336
14337 * xdisp.c (get_next_display_element): Set it->face_id for the
14338 first component of a composition.
14339 (x_produce_glyphs): Check if the font is changed or not for composition.
14340
14341 2008-02-01 Kenichi Handa <handa@m17n.org>
14342
14343 * fontset.c (Qlatin): New variable.
14344 (syms_of_fontset): Define it as a lisp symbol.
14345 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14346
14347 2008-02-01 Kenichi Handa <handa@m17n.org>
14348
14349 * font.c (font_unparse_fcname): Pay attention to the case that
14350 some of font property is a null string.
14351
14352 2008-02-01 Kenichi Handa <handa@m17n.org>
14353
14354 * term.c: Include "composite.h".
14355 (encode_terminal_code): Output all components of composition.
14356 Check the size of encode_terminal_src.
14357 (produce_glyphs): For composition, call produce_composite_glyph.
14358 (append_composite_glyph, produce_composite_glyph): New functions.
14359
14360 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14361 is not found, get font_info from the current ascii face.
14362
14363 2008-02-01 Kenichi Handa <handa@m17n.org>
14364
14365 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14366 buffer-file-name to Qnil before calling insert_from_buffer.
14367
14368 * font.c (font_unparse_fcname): Pay attention to the case that
14369 foundry is a null string.
14370
14371 2008-02-01 Kenichi Handa <handa@m17n.org>
14372
14373 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14374
14375 * font.c (Qunicode_sip): New variable.
14376 (syms_of_font): Declare it as a Lisp symbol.
14377
14378 * font.h (Qunicode_sip): Extern it.
14379
14380 2008-02-01 Kenichi Handa <handa@m17n.org>
14381
14382 * composite.c (get_composition_id): Pay attention to TAB component.
14383
14384 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14385 TAB. Adjust for the change of s->char2b which always points to
14386 the first element of allocated memory.
14387
14388 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14389
14390 * xdisp.c (handle_composition_prop): Set it->c to the first
14391 non-TAB component.
14392 (fill_composite_glyph_string): Change argument.
14393 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14394 (x_produce_glyphs): Fix handling of left/right padding.
14395
14396 2008-02-01 Kenichi Handa <handa@m17n.org>
14397
14398 * coding.c (detect_coding_system): Fix for handling off
14399 inhibit_iso_escape_detection. Fix for the case that no coding
14400 system is defined for a specific coding category.
14401
14402 2008-02-01 Kenichi Handa <handa@m17n.org>
14403
14404 * font.c (font_matching_entity): Delete unused local var.
14405
14406 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14407 opening a font.
14408
14409 * fileio.c (Finsert_file_contents): On recovering a file, assume
14410 Unix-like eol.
14411 (choose_write_coding_system): On auto-saving a file, force
14412 Unix-like eol.
14413
14414 * coding.c (setup_coding_system): Fix setting of
14415 coding->common_flags based on eol_type.
14416 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14417 inherit from it.
14418
14419 2008-02-01 Kenichi Handa <handa@m17n.org>
14420
14421 * alloc.c (NSTATICS): Increas to 0x600.
14422
14423 2008-02-01 Kenichi Handa <handa@m17n.org>
14424
14425 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14426 (ftfont_list): Don't check :name property.
14427 (ftfont_match): New function.
14428 (ftfont_pattern_entity): If the pattern doesn't contain
14429 FC_SPACING, don't assume FC_MONO.
14430
14431 * font.h (struct font_driver): New member `match'.
14432 (font_update_drivers): Adjust prototype.
14433
14434 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14435 property of FONT.
14436 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14437 them unconditionally.
14438 (font_matching_entity): New function.
14439 (font_open_by_name): Try font_matching_entity if exact match is
14440 not found.
14441 (font_update_drivers): Delete the arg FONT. Return a list of
14442 actually used backends. Don't free faces, font caches here.
14443 Don't store data in frame parameters. Don't call x_set_font.
14444 (Ffont_spec): Store :name property as is.
14445 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14446 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14447 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14448 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14449 Call font->driver->otf_gsub instead of font_otf_gsub.
14450
14451 * frame.c (x_set_font_backend): Do more works that were done in
14452 font_update_drivers before.
14453
14454 * xfont.c (xfont_match): New function.
14455 (xfont_driver): Set xfont_driver.match to xfont_match.
14456 (xfont_draw): Set font in GC if necessary.
14457
14458 * ftxfont.c (ftxfont_match): New function.
14459 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14460
14461 * xftfont.c (xftfont_match): New function.
14462 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14463
14464 2008-02-01 Kenichi Handa <handa@m17n.org>
14465
14466 * font.h (struct font): New member scalable.
14467 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14468 (font_otf_gsub): Adjust prototype.
14469
14470 * font.c (font_otf_capability): Fix handling of the default langsys.
14471 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14472 Check the contents of SPEC.
14473 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14474 (check_gstring): New function.
14475 (REPLACEMENT_CHARACTER): New macro.
14476 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14477 glyph codes of GSTRING.
14478 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14479 (font_prepare_composition): Set cmp->glyph_len.
14480 (font_open_entity): Set font->scalable.
14481 (Ffont_get): Handle :otf property.
14482 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14483 functions.
14484 (Fquery_font): Use font->font.full_name.
14485 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14486 Sfont_otf_alternates.
14487
14488 * ftfont.c (ftfont_open): Set font->font.full_name and
14489 font->font.name properly. Fix calculation of font->font.height
14490 and font->min_width.
14491
14492 * ftxfont.c (ftxfont_create_gcs): New function.
14493 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14494 (ftxfont_draw_backgrond): Fix filling region.
14495 (ftxfont_default_fid): New function.
14496 (ftxfont_open): Set xfont->fid to the return value of
14497 ftxfont_default_fid.
14498 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14499 (ftxfont_done_face): Free only GCs that are created by
14500 ftxfont_create_gcs.
14501 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14502
14503 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14504 Clip to src->width, etc (not src->clip_XXX).
14505
14506 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14507 FontBackend frame parameter.
14508
14509 2008-02-01 Kenichi Handa <handa@m17n.org>
14510
14511 * font.h (struct font_driver_list): New member `on'.
14512 (Fclear_font_cache): EXFUN it.
14513 (font_update_drivers): Extern it.
14514
14515 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14516 (font_list_entities): Check driver_list->on.
14517 (register_font_driver): Initalize `on' member to 0.
14518 (font_update_drivers): New function.
14519 (Fclear_font_cache): Check driver_list->on.
14520
14521 * frame.h (Qfont_backend): Extern it.
14522 (x_set_font_backend): Extern it.
14523
14524 * frame.c (Qfont_backend): New variable.
14525 (frame_parms): New element for font-backend.
14526 (x_set_font_backend): New function.
14527
14528 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14529 FontBackend frame parameter.
14530 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14531 x_set_font_backend.
14532
14533 * xfont.c (xfont_list): Don't try listing by :name property if the
14534 name is not for XLFD.
14535
14536 2008-02-01 Kenichi Handa <handa@m17n.org>
14537
14538 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14539 (LGLYPH_SET_TO): New macros.
14540 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14541 element of G is vector or not.
14542 (font_at): Extern it.
14543
14544 * font.c: Include window.h.
14545 (font_lispy_object): New function.
14546 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14547 end of valid glyph.
14548 (font_close_object): Fix getting (struct font *).
14549 (font_at): New function.
14550 (Ffont_get): If FONT is a font-object, get entity from it.
14551 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14552 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14553 range check.
14554 (Ffont_at): New function.
14555 (syms_of_font): Defsubr Sfont_at.
14556
14557 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14558 before the entry for Qcomposition.
14559 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14560 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14561 the font in gstring.
14562 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14563 LGLYPH_FORM (g) to detect the end of valid glyph.
14564 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14565 we are composing with gstring.
14566
14567 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14568 Check if adjustment is vector or not.
14569
14570 * Makefile.in (font.o): Make it depends on window.h.
14571
14572 2008-02-01 Kenichi Handa <handa@m17n.org>
14573
14574 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14575 adjustment is vector or not.
14576
14577 2008-02-01 Miles Bader <miles@gnu.org>
14578
14579 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14580
14581 2008-02-01 Kenichi Handa <handa@m17n.org>
14582
14583 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14584 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14585 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14586
14587 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14588 (DEVICE_DELTA): Fix typo.
14589 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14590 LGLYPH format.
14591
14592 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14593 the change of LGLYPH format.
14594
14595 2008-02-01 Kenichi Handa <handa@m17n.org>
14596
14597 * ftfont.c (ftfont_list): Fix typo.
14598 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14599
14600 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14601
14602 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14603
14604 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14605 xftface_info is non-NULL.
14606
14607 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14608
14609 * ftfont.c (ftfont_list): Move misplaced #endif.
14610
14611 2008-02-01 Kenichi Handa <handa@m17n.org>
14612
14613 * ftfont.c (ftfont_list): Pay attention to the case that
14614 FC_CAPABILITY is not defined.
14615
14616 2008-02-01 Kenichi Handa <handa@m17n.org>
14617
14618 * xftfont.c (xftfont_open): Set charset related members to -1.
14619
14620 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14621 QCname.
14622 (ftfont_open): Set charset related members to -1.
14623
14624 * fontset.c (Votf_script_alist): New variable.
14625 (syms_of_fontset): Initialize it.
14626 (fontset_font): Delete unused variable.
14627
14628 * fontset.h (Votf_script_alist): Extern it.
14629
14630 * font.c (font_find_for_lface): Optimize code.
14631
14632 * font.h (font_close_object, font_merge_old_spec): Extern them.
14633
14634 2008-02-01 Kenichi Handa <handa@m17n.org>
14635
14636 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14637 (syms_of_font): Initialize them.
14638 (font_pixel_size): Allow float value in dpi.
14639 (font_prop_validate_type): Delete.
14640 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
14641 Change caller.
14642 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
14643 (font_prop_validate_extra): Delete.
14644 (font_prop_validate_spacing): New function.
14645 (font_property_table): Add elements for all known properties.
14646 (get_font_prop_index): Rename from check_font_prop_name. New
14647 argument FROM. Change caller.
14648 (font_prop_validate): Validate all known properties.
14649 (font_put_extra): Delete argument force. Change caller.
14650 (font_expand_wildcards): Make it static. Fix the way of shrinking
14651 the possible range.
14652 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
14653 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
14654 Change caller.
14655 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
14656 (font_parse_fcname): Delete argument merge. Fix parsing of point
14657 size. Don't validate properties values here. Change caller.
14658 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
14659 (font_open_by_name): Delete unused variable.
14660 (Ffont_spec): Likewise. Validate property values.
14661 (Ffont_match_p): New function.
14662
14663 * font.h (QCscalable): Extern it.
14664 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
14665
14666 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
14667
14668 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
14669 (xfont_list_pattern): New function.
14670 (xfont_list): Use xfont_list_pattern.
14671
14672 2008-02-01 Kenichi Handa <handa@m17n.org>
14673
14674 * font.h (Flist_fonts): EXFUN it.
14675
14676 2008-02-01 Jason Rumney <jasonr@gnu.org>
14677
14678 * w32term.c (w32_initialize): Add back smoothing_type and
14679 smoothing_enabled definitions.
14680
14681 2008-02-01 Kenichi Handa <handa@m17n.org>
14682
14683 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
14684 s->face->font on determining underline position.
14685
14686 2008-02-01 Kenichi Handa <handa@m17n.org>
14687
14688 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
14689 (font_has_char): Accept font-object too.
14690 (font_find_for_lface): Try at first with a size specified in face.
14691
14692 2008-02-01 Kenichi Handa <handa@m17n.org>
14693
14694 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
14695 font_open_by_name.
14696
14697 2008-02-01 Kenichi Handa <handa@m17n.org>
14698
14699 * font.h (QCspacing, QCdpi): Extern them.
14700 (enum font_spacing): New enum.
14701 (FONT_PIXEL_SIZE_QUANTUM): New macro.
14702
14703 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
14704 (QCspacing, QCdpi): New variables.
14705 (syms_of_font): Initialize them.
14706 (font_pixel_size): New function.
14707 (font_put_extra): New function.
14708 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
14709 in FONT_EXTRA.
14710 (font_parse_fcname): Handle enumerated values (e.g. bold).
14711 Fix handling font size. Add QCname property that contains only
14712 unknown properties.
14713 (font_score): Change argument. Change caller. Pay attention to
14714 FONT_PIXEL_SIZE_QUANTUM.
14715 (font_sort_entites, font_list_entities, font_find_for_lface)
14716 (font_open_for_lface, font_open_by_name): Fix handling of font size.
14717 (Ffont_spec): Add QCname property that contains only unknown properties.
14718
14719 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
14720 include weight in listing pattern, instead check weight of each
14721 listed font. Don't include scalable in pattern. Pay attention to
14722 FONT_PIXEL_SIZE_QUANTUM.
14723
14724 2008-02-01 Kenichi Handa <handa@m17n.org>
14725
14726 * font.c (font_parse_fcname): Fix parsing of point-size.
14727 (font_unparse_fcname): Produce symbolic names for style properties.
14728 (font_list_entities): Handle float size correctly.
14729 (font_open_by_name): Prefer `normal' property values if the name
14730 doesn't specify them.
14731
14732 * fontset.c (Finternal_char_font): Use font_get_name, not
14733 Ffont_xlfd_name.
14734
14735 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
14736 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
14737 pattern. Don't force scalable.
14738
14739 * xftfont.c (xftfont_open): For generating a name, start from
14740 96-byte buffer.
14741
14742 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14743
14744 * frame.h (x_new_fontset2): Fix prototype.
14745
14746 2008-02-01 Kenichi Handa <handa@m17n.org>
14747
14748 * font.h (struct font_driver): Delete member parse_name.
14749 (font_match_p, font_get_spec, font_parse_fcname)
14750 (font_unparse_fcname): Extern them.
14751 (font_get_name): Adjust prototype.
14752
14753 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
14754 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
14755 (font_expand_wildcards): Fix handling ENCODING field. Avoid
14756 unnecessary checks for weight, slant, and swidth.
14757 (font_parse_fcname): New function.
14758 (font_unparse_fcname): New function.
14759 (font_parse_name): New function.
14760 (font_match_p): New function.
14761 (font_get_name): Change return value to Lisp string.
14762 (font_get_spec): New function.
14763 (Qunspecified, Qignore_defface): Don't extern them.
14764 (font_find_for_lface): Assume that LFACE is fully specified.
14765 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
14766 object, use it for FACE.
14767 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
14768 driver->parse_name.
14769 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
14770
14771 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
14772 prototype.
14773
14774 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
14775 argument F. Don't call Fnew_fontset. Instead, directly call
14776 make_fontset.
14777
14778 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
14779
14780 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
14781 of x_new_fontset2.
14782
14783 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
14784 (Qsans__serif): New variables.
14785 (ftfont_generic_family_list): New variable.
14786 (syms_of_ftfont): Initialize the above variables.
14787 (ftfont_pattern_entity): Delete argument NAME.
14788 (ftfont_list_generic_family): New function.
14789 (ftfont_parse_name): Delete this function.
14790 (ftfont_list): Try generic family only when FcFontList found no font.
14791 (ftfont_list_family): Fix args to FcObjectSetBuild.
14792
14793 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
14794 object in attrs[LFACE_FONT_INDEX].
14795 (set_lface_from_font_name): Cancel all changes for font-backend.
14796 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
14797 function.
14798 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
14799 font object in QCfont attribute.
14800 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
14801 (realize_default_face) [USE_FONT_BACKEND]: Call
14802 set_lface_from_font_and_fontset.
14803
14804 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
14805 "fixed", and signal error here if no suitable font was found.
14806
14807 * xfont.c (xfont_parse_name): Delete this function.
14808
14809 * xftfont.c (xftfont_open): Change coding style of error
14810 handling. Generate fontconfig's fontname pattern.
14811
14812 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
14813 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
14814
14815 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
14816 Both args FONTSET and FONT_OBJECT must be existing ones.
14817
14818 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14819
14820 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
14821
14822 2008-02-01 Kenichi Handa <handa@m17n.org>
14823
14824 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
14825
14826 * font.h (struct font): Fix typo.
14827
14828 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
14829 XLFD_XXX_INDEX.
14830 (enum xlfd_field_mask): New enum.
14831 (intern_font_field): Changed argument. Change caller. If digits
14832 are followed by non-digits, return a symbol.
14833 (font_expand_wildcards): New function.
14834 (font_parse_xlfd): Fix wildcard handling.
14835 (Ffont_spec): If :name is specified, reflect the info in the other
14836 properties.
14837
14838 * ftfont.c (ftfont_pattern_entity): Fix typo.
14839 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
14840 locale.
14841
14842 2008-02-01 Kenichi Handa <handa@m17n.org>
14843
14844 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
14845
14846 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
14847 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
14848 registry doesn't specify encoding part.
14849 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
14850 (font_open_by_name): At first try parsing the name.
14851 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
14852 as Lisp symbols.
14853
14854 * fontset.c (reorder_font_vector): Pay attention to the case that
14855 the 3rd element of font_def is nil.
14856 (fontset_font): For the default fontset, append one more fontset
14857 elements for a script-based font specification. Don't add script
14858 attribute on finding a font.
14859 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
14860 font name.
14861 (fontset_ascii_font): If a font can't be opened, return nil.
14862
14863 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
14864 (ftfont_pattern_entity): New function.
14865 (ftfont_get_cache): Assume that freetype_font_cache is already
14866 initialized.
14867 (ftfont_list): Handle the case that a file is specified in font
14868 name. Use ftfont_pattern_entity to generate entities.
14869 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
14870 (syms_of_ftfont): Initialize freetype_font_cache.
14871
14872 * xftfont.c (xftfont_open): Make the font name fontconfig's
14873 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
14874 (xftfont_close): Free font->font.name if not NULL.
14875
14876 * xfont.c (xfont_list): If script is specified for a font, return
14877 null_vector.
14878 (xfont_list_family): Declare argument type.
14879
14880 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
14881 name, set LFACE_FONT (lface) to nil.
14882
14883 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
14884 return Qnil.
14885
14886 2008-02-01 Kenichi Handa <handa@m17n.org>
14887
14888 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
14889 (standard_args): Add "-enable-font-backend".
14890
14891 2008-02-01 Kenichi Handa <handa@m17n.org>
14892
14893 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
14894 (struct xftdraw_list, xftdraw_list): Delete them.
14895 (register_xftdraw, check_xftdraw): Delete them.
14896 (xftfont_prepare_face): Don't call register_xftdraw.
14897 (xftfont_done_face): Don't call check_xftdraw.
14898 (xftfont_draw): Get background color only when with_background is
14899 nonzero.
14900
14901 * xfont.c (xfont_encode_char): Fix calculation of char2b.
14902
14903 2008-02-01 Kenichi Handa <handa@m17n.org>
14904
14905 These changes are for the new font handling codes.
14906
14907 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
14908 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
14909 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
14910 (FONTSRC, FONTOBJ): New variables.
14911 (obj): Add $(FONTOBJ).
14912 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
14913 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
14914 @LIBOTF_LIBS@.
14915 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
14916 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
14917
14918 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
14919
14920 * character.h (Vscript_representative_chars): Extern it.
14921
14922 * character.c (Vscript_representative_chars): New variable.
14923 (syms_of_character): Declare it as a Lisp variable.
14924
14925 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
14926 enable_font_backend is nonzero, accept the composition method
14927 COMPOSITION_WITH_GLYPH_STRING.
14928
14929 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
14930 enumeration COMPOSITION_WITH_GLYPH_STRING.
14931
14932 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
14933 members clip_x, clip_y, clip_width, and clip_height.
14934 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
14935
14936 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
14937 --enable-font-backend. Call syms_of_font.
14938
14939 * fns.c (assoc_no_quit): New function.
14940
14941 * fontset.h (FONT_INFO_FROM_FACE): New macro.
14942 (face_for_font, new_fontset_from_font)
14943 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
14944
14945 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
14946 (fontset_font, fontset_ascii, face_for_char)
14947 (make_fontset_for_ascii_face, Ffont_info)
14948 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
14949 is nonzero, use font-backend mechanism.
14950 (find_font_encoding): Make it non-static.
14951 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
14952 New functions.
14953
14954 * frame.h (struct frame): New members resx and resy.
14955 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
14956 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
14957
14958 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14959 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14960
14961 * lisp.h (assoc_no_quit): Extern it.
14962
14963 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14964 Through out the file, use FONT_INFO_FROM_FACE instead of
14965 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14966 rif->per_char_metric.
14967 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14968 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14969 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14970 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14971 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14972 nonzero, use font-backend mechanism.
14973 (get_per_char_metric): New function.
14974
14975 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14976 (set_lface_from_font_name)
14977 (set_font_frame_param, free_realized_face)
14978 (prepare_face_for_display, clear_face_gcs)
14979 (Finternal_set_font_selection_order, realize_x_face)
14980 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14981 font-backend mechanism.
14982 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14983 (load_face_font) [USE_FONT_BACKEND]: Abort.
14984 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14985 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14986
14987 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14988 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14989 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
14990 nonzero, register all available font drivers. Call
14991 x_default_font_parameter for deciding a font.
14992 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
14993
14994 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
14995 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
14996 (x_set_glyph_string_clipping_exactly)
14997 (x_compute_glyph_string_overhangs)
14998 (x_draw_glyph_string_foreground)
14999 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15000 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15001 enable_font_backend is nonzero, use font-backend mechanism.
15002 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15003
15004 2008-02-01 Kenichi Handa <handa@m17n.org>
15005
15006 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15007 system_eol_type.
15008 (syms_of_coding): Initialize system_eol_type.
15009
15010 * process.c (Fset_process_coding_system): Inherit system's eol
15011 format if necessary.
15012
15013 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15014
15015 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15016
15017 2008-02-01 Kenichi Handa <handa@m17n.org>
15018
15019 * coding.c (decode_eol): Pay attention to buffer relocation in
15020 del_range_2.
15021 (decode_coding): Call decode_eol before restoring undo_list.
15022
15023 2008-02-01 Kenichi Handa <handa@m17n.org>
15024
15025 * charset.c (Fdefine_charset_internal): Fix setting of
15026 emacs_mule_bytes.
15027
15028 2008-02-01 Kenichi Handa <handa@m17n.org>
15029
15030 * keyboard.c (read_char): Check if C is a character or not before
15031 looking up Vkeyboard_translate_table.
15032
15033 2008-02-01 Kenichi Handa <handa@m17n.org>
15034
15035 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15036 condition to terminate the loop.
15037
15038 2008-02-01 Kenichi Handa <handa@m17n.org>
15039
15040 * coding.c (produce_composition): Compare charbuf[i] instead of
15041 args[i] against 0.
15042 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15043
15044 2008-02-01 Kenichi Handa <handa@m17n.org>
15045
15046 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15047 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15048 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15049 detect_coding.
15050 (emacs_mule_char): Handle old style (Emacs 20) component character
15051 of a composition.
15052 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15053 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15054 composition rule.
15055 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15056
15057 2008-02-01 Kenichi Handa <handa@m17n.org>
15058
15059 * coding.c (encode_coding_ccl): Allocate destination dynamically
15060 when necessary.
15061
15062 2008-02-01 Kenichi Handa <handa@m17n.org>
15063
15064 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15065 the loop. When quitted, show a proper error message.
15066
15067 2008-02-01 Kenichi Handa <handa@m17n.org>
15068
15069 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15070 src->clip_head and src->clip_tail temporarily instead of src->hl.
15071
15072 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15073 character sequence.
15074 (Fccl_execute_on_string): Use ASET, not XSET.
15075
15076 2008-02-01 Kenichi Handa <handa@m17n.org>
15077
15078 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15079
15080 2008-02-01 Kenichi Handa <handa@m17n.org>
15081
15082 * coding.c (decode_coding): Fix the condition of terminating the
15083 decoding loop.
15084
15085 2008-02-01 Kenichi Handa <handa@m17n.org>
15086
15087 * data.c (Faset): On setting a character bigger than 255 in a
15088 unibyte string, signal an error instead of make the string multibyte.
15089
15090 2008-02-01 Kenichi Handa <handa@m17n.org>
15091
15092 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15093 made by a mapping table.
15094
15095 2008-02-01 Kenichi Handa <handa@m17n.org>
15096
15097 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15098 not.
15099 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15100 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15101
15102 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15103 s->face is NULL or not.
15104
15105 2008-02-01 Kenichi Handa <handa@m17n.org>
15106
15107 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15108 (x_draw_glyph_string): Fix drawing of right_overhang and
15109 left_overhang around/on cursor.
15110
15111 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15112
15113 2008-02-01 Kenichi Handa <handa@m17n.org>
15114
15115 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15116
15117 2008-02-01 Kenichi Handa <handa@m17n.org>
15118
15119 * coding.c (Fdefine_coding_system_internal)
15120 (Fdefine_coding_system_alias): Avoid a duplicated element in
15121 Vcoding_system_alist.
15122
15123 2008-02-01 Kenichi Handa <handa@m17n.org>
15124
15125 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15126
15127 * coding.c (Qcoding_system_define_form): New variable.
15128 (syms_of_coding): Intern and staticpro it.
15129 (Fcoding_system_p): Check Qcoding_system_define_form.
15130 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15131
15132 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15133 Fcoding_system_p.
15134 (CHECK_CODING_SYSTEM): If ID is not available, call
15135 Fcheck_coding_system.
15136 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15137 Try also Fcheck_coding_system.
15138
15139 2008-02-01 Kenichi Handa <handa@m17n.org>
15140
15141 * coding.c (code_conversion_restore): GCPRO arg.
15142
15143 2008-02-01 Kenichi Handa <handa@m17n.org>
15144
15145 * character.c (lisp_string_width): Check multibyteness of STRING.
15146
15147 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15148
15149 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15150 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15151 (decode_mac_font_name): Use decode_coding_c_string instead of
15152 decode_coding.
15153 (x_load_font): Initialize fontp->fontset to -1. Set
15154 fontp->encoding_type.
15155
15156 2008-02-01 Kenichi Handa <handa@m17n.org>
15157
15158 * search.c (search_buffer): Give up BM search on case-fold-search
15159 if one of a target character has a case-equivalence of different
15160 byte length even if that target charcter is an ASCII.
15161 (simple_search): Fix calculation of byte length of matched text.
15162 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15163
15164 2008-02-01 Kenichi Handa <handa@m17n.org>
15165
15166 * coding.c (decode_coding): Fix handling of invalid bytes.
15167
15168 2008-02-01 Kenichi Handa <handa@m17n.org>
15169
15170 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15171 Unicode characters.
15172
15173 2008-02-01 Kenichi Handa <handa@m17n.org>
15174
15175 * coding.c (encode_coding_object): If a pre-write-conversion
15176 function makes a new buffer, kill it.
15177
15178 2008-02-01 Kenichi Handa <handa@m17n.org>
15179
15180 * coding.c (QCascii_compatible_p): New variable.
15181 (syms_of_coding): Initialize it.
15182 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15183 calling string_char.
15184 (record_conversion_result): Add `default:' case.
15185 (coding_charset_list): Delete unused variable `coding_type'.
15186 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15187 property in the plist of the coding system.
15188 (Fcoding_system_put): Check QCascii_compatible_p.
15189
15190 2008-02-01 Miles Bader <miles@gnu.org>
15191
15192 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15193 removed calculation of frame `f', as it's now used.
15194
15195 2008-02-01 Kenichi Handa <handa@m17n.org>
15196
15197 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15198 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15199 (UNIDATA): New variable.
15200 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15201 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15202 $(RUN_TEMACS) unconditionally.
15203
15204 2008-02-01 Kenichi Handa <handa@m17n.org>
15205
15206 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15207 (admindir): New variable.
15208 ($(lispsource)international/charprop.el): New target.
15209
15210 2008-02-01 Miles Bader <miles@gnu.org>
15211
15212 * character.c (chars-in-region): Remove obsolete function.
15213 (syms_of_character): Remove its initialization.
15214
15215 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15216
15217 * w32select.c (validate_coding_system)
15218 (setup_windows_coding_system): New functions.
15219 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15220 setup_windows_coding_system.
15221 (setup_config, Fw32_get_clipboard_data): Use
15222 validate_coding_system.
15223 (Fx_selection_exists): Move call to setup_config to a place
15224 where signals are allowed.
15225
15226 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15227 (Fcheck_coding_system): Add declarations.
15228
15229 2008-02-01 Kenichi Handa <handa@m17n.org>
15230
15231 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15232
15233 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15234
15235 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15236 string as the second argument for x_new_fontset.
15237
15238 2008-02-01 Kenichi Handa <handa@m17n.org>
15239
15240 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15241 (encode_coding_object): Use safe_call instead of call2.
15242
15243 2008-02-01 Kenichi Handa <handa@m17n.org>
15244
15245 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15246
15247 * Makefile.in (lisp): Include charprop.el.
15248
15249 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15250
15251 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15252 Not sure if it's unnecessary.
15253
15254 2008-02-01 Steven Tamm <steventamm@mac.com>
15255
15256 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15257 some possibly unnecessary fontset checking code that crashed
15258 when creating a new frame.
15259
15260 2008-02-01 Kenichi Handa <handa@m17n.org>
15261
15262 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15263 lookup_face.
15264
15265 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15266
15267 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15268
15269 2008-02-01 Kenichi Handa <handa@m17n.org>
15270
15271 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15272 (coding_charset_list): New function.
15273
15274 * coding.h (coding_charset_list): Extern it.
15275
15276 2008-02-01 Kenichi Handa <handa@m17n.org>
15277
15278 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15279 concatenation of family and registry.
15280
15281 2008-02-01 Kenichi Handa <handa@m17n.org>
15282
15283 * character.h (BYTE8_STRING): Fix typo.
15284
15285 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15286 string to multibyte (sync to HEAD).
15287
15288 * casefiddle.c (casify_region): Handle changes in byte-length
15289 using replace_range_2 (sync to HEAD).
15290
15291 2008-02-01 Andreas Schwab <schwab@suse.de>
15292
15293 * chartab.c (map_char_table): GCPRO table and arg.
15294
15295 2008-02-01 Kenichi Handa <handa@m17n.org>
15296
15297 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15298 already at limit.
15299
15300 2008-02-01 Kenichi Handa <handa@m17n.org>
15301
15302 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15303 instead of fast_c_string_match_ignore_case.
15304 (find_font_encoding): Change argument to Lisp_Object. Use
15305 fast_string_match_ignore_case instead of
15306 fast_c_string_match_ignore_case. Change caller.
15307
15308 2008-02-01 Kenichi Handa <handa@m17n.org>
15309
15310 * xdisp.c (get_next_display_element): In unibyte case, decide to
15311 display in octal form by checking a character by
15312 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15313
15314 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15315
15316 * character.c (unibyte_has_multibyte_table): New variable.
15317
15318 * character.h (unibyte_has_multibyte_table): Extern it.
15319 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15320
15321 2008-02-01 Kenichi Handa <handa@m17n.org>
15322
15323 * coding.c (encode_coding_iso_2022): Fix handling of charset
15324 annotation.
15325
15326 2008-02-01 Kenichi Handa <handa@m17n.org>
15327
15328 * coding.c (setup_coding_system): If coding_system is nil, use
15329 Qundecided.
15330 (Fterminal_coding_system): Return nil if terminal coding system is
15331 `undecided'.
15332 (syms_of_coding): Define coding-system `undecided' here. Setup
15333 terminal_coding as `undecided'.
15334
15335 2008-02-01 Kenichi Handa <handa@m17n.org>
15336
15337 * xdisp.c (message_dolog, set_message_1): Call
15338 unibyte_char_to_multibyte with arg type int.
15339
15340 * lread.c (read1): Fix reading of a char-table.
15341
15342 * print.c (print_object): Include sub char-table in circularities
15343 detection.
15344
15345 2008-02-01 Kenichi Handa <handa@m17n.org>
15346
15347 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15348 Append the found sequences in car of ARGS instead of prepending.
15349
15350 2008-02-01 Kenichi Handa <handa@m17n.org>
15351
15352 * fileio.c (report_file_error): Make a unibyte string from
15353 strerror (errorno).
15354 (Fsubstitute_in_file_name): Fix the arg to
15355 unibyte_char_to_multibyte. It is evaluated twice.
15356
15357 2008-02-01 Kenichi Handa <handa@m17n.org>
15358
15359 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15360
15361 2008-02-01 Kenichi Handa <handa@m17n.org>
15362
15363 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15364 BOM is not found.
15365 (detect_coding, detect_coding_system): Optimization for ISO-2022
15366 when no 8-bit data is found.
15367
15368 2008-02-01 Jason Rumney <jasonr@gnu.org>
15369
15370 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15371
15372 2008-02-01 Kenichi Handa <handa@m17n.org>
15373
15374 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15375 CHARS.
15376
15377 2008-02-01 Steven Tamm <steventamm@mac.com>
15378
15379 * macterm.c (mac_encode_char): Add charset argument and update
15380 to use encoding_type.
15381 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15382 switch to pure fontset.
15383 (decode_mac_font_name): Temporarily remove decoding.
15384 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15385 (x_load_font): Temporarily remove encoding.
15386
15387 2008-02-01 Kenichi Handa <handa@m17n.org>
15388
15389 * xfaces.c (Fface_font): If frame is not on a window system,
15390 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15391 refer to face->font.
15392 (split_font_name_into_vector, build_font_name_from_vector)
15393 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15394 when HAVE_WINDOW_SYSTEM is defined.
15395
15396 2008-02-01 Kenichi Handa <handa@m17n.org>
15397
15398 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15399 (x_produce_glyphs): Fix setting of members of cmp in case
15400 cmp->glyph_len is zero.
15401
15402 * fontset.c (Fset_fontset_font): Fix docstring.
15403 (Ffontset_info): Make it backward compatible. New arg ALL.
15404
15405 2008-02-01 Kim F. Storm <storm@cua.dk>
15406
15407 * process.c (read_process_output): Grow decoding_buf when needed;
15408 this could cause a crash in allocate_string and compact_small_strings.
15409
15410 2008-02-01 Kenichi Handa <handa@m17n.org>
15411
15412 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15413
15414 2008-02-01 Kenichi Handa <handa@m17n.org>
15415
15416 * coding.c (setup_coding_system): Set coding->common_flags
15417 correctly for raw-text.
15418 (consume_chars): On encoding unibyte text by raw-text, don't check
15419 multibyte form.
15420 (encode_coding): On encoding by raw-text, never use translation tables.
15421
15422 * fileio.c (e_write): Short cut for the case of no encoding.
15423
15424 2008-02-01 Kenichi Handa <handa@m17n.org>
15425
15426 * coding.c (detect_coding, detect_coding_system): Delete unused
15427 variables.
15428
15429 2008-02-01 Kenichi Handa <handa@m17n.org>
15430
15431 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15432 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15433
15434 2008-02-01 Kenichi Handa <handa@m17n.org>
15435
15436 * coding.c (Ffind_coding_systems_region_internal): Include
15437 raw-text and no-conversion in the result.
15438
15439 2008-02-01 Kenichi Handa <handa@m17n.org>
15440
15441 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15442 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15443 FONT_DEF.
15444 (font_def_arg, add_arg, from_arg, to_arg): New args.
15445 (set_fontset_font): Change argument.
15446 (Fset_fontset_font): Fix for the case that TARGET is a script
15447 name and charset name.
15448 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15449
15450 2008-02-01 Kenichi Handa <handa@m17n.org>
15451
15452 * fontset.c (fontset_font): Rename from fontset_face. Change return
15453 value.
15454 (face_suitable_for_char_p, face_for_char): Adjust for the change
15455 of fontset_font.
15456 (make_fontset_for_ascii_face): Fix setting of the fontset element
15457 for ASCII.
15458 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15459 to get a font name.
15460 (Ffontset_info): Adjust for the change of fontset_font.
15461
15462 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15463
15464 * character.h (LEADING_CODE_LATIN_1_MIN)
15465 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15466
15467 2008-02-01 Kenichi Handa <handa@m17n.org>
15468
15469 * editfns.c (check_translation): New function.
15470 (Ftranslate_region_internal): Handle M:N mapping.
15471
15472 2008-02-01 Kenichi Handa <handa@m17n.org>
15473
15474 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15475
15476 2008-02-01 Kenichi Handa <handa@m17n.org>
15477
15478 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15479 goto invalid_code.
15480 (decode_coding_iso_2022): Fix handling of invalid designation.
15481
15482 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15483 after calling code_conversion_save.
15484
15485 2008-02-01 Kenichi Handa <handa@m17n.org>
15486
15487 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15488
15489 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15490
15491 * fontset.c: Include "intervals.h".
15492 (fontset_face): Fix comparing of Lisp_Objects.
15493 (free_face_fontset, new_fontset_from_font_name): Fix
15494 Lisp_Object/int mixup.
15495
15496 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15497
15498 * coding.c: Add many prototypes for static functions.
15499 (get_translation_table): Allow max_lookup to be NULL.
15500 (decode_coding, Ffind_coding_systems_region_internal)
15501 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15502 get_translation_table with max_lookup NULL.
15503
15504 2008-02-01 Kenichi Handa <handa@m17n.org>
15505
15506 * coding.c (get_translation_table): Declare it as Lisp_Object.
15507 (LOOKUP_TRANSLATION_TABLE): New macro.
15508 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15509 instead of CHAR_TABLE_REF.
15510
15511 2008-02-01 Kenichi Handa <handa@m17n.org>
15512
15513 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15514 annotation data format.
15515 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15516 Change arguments FROM and TO to single argument NCHARS. Change caller.
15517 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15518 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15519 (decode_coding_ccl, decode_coding_charset): Pay attention to
15520 coding->charbuf_used.
15521 (get_translation): New function.
15522 (produce_chars): New arguments translation_table and last_block.
15523 Translate characters here. Return number of carryover chars.
15524 Change caller.
15525 (produce_composition): New argument pos. Change caller.
15526 Adjust for the change of annotation data format.
15527 (produce_charset, produce_annotation): Likewise.
15528 (decode_coding, encode_coding): Don't call translate_chars.
15529 (consume_chars): New arg translation_table. Change caller.
15530 (translate_chars): Delete.
15531 (syms_of_coding): Make translation-table's number of extra slots 2.
15532
15533 2008-02-01 Kenichi Handa <handa@m17n.org>
15534
15535 * search.c (simple_search): Fix setting this_pos_byte in backward
15536 search.
15537
15538 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15539 byte sequence.
15540 (detect_coding_ccl): Fix setting of the variable valids.
15541
15542 2008-02-01 Kenichi Handa <handa@m17n.org>
15543
15544 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15545
15546 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15547
15548 * editfns.c (Ftranslate_region_internal): Rename from
15549 Ftranslate_region. Accept a char-table in TABLE.
15550 (syms_of_editfns): Defsubr Stranslate_region_internal.
15551
15552 * xfaces.c (set_lface_from_font_name): If a font is specified for
15553 a frame, generate a fontset from the font.
15554 (build_scalable_font_name): If the scalable font is requested for
15555 a specific size, don't change that size.
15556 (try_font_list): Try a scalable font also in the case that a
15557 pattern string is specified.
15558
15559 2008-02-01 Kenichi Handa <handa@m17n.org>
15560
15561 * xfaces.c (Fface_font): New optional arg CHARACTER.
15562
15563 2008-02-01 Kenichi Handa <handa@m17n.org>
15564
15565 * charset.h (CHARSET_OFFSET): New macro.
15566
15567 2008-02-01 Kenichi Handa <handa@m17n.org>
15568
15569 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15570
15571 * fontset.c (fontset_face): Handle the case that repertory is a
15572 char-table.
15573 (find_font_encoding): Return nil for unknown encoding.
15574 (Fset_fontset_font): Ignore a font of unknown encoding.
15575
15576 2008-02-01 Kenichi Handa <handa@m17n.org>
15577
15578 * keymap.c (describe_vector): Handle default value of a char table.
15579
15580 * fontset.c (fontset_face): Handle fallback fonts correctly.
15581 (Ffontset_info): Return infomation about fallback fonts.
15582
15583 2008-02-01 Kenichi Handa <handa@m17n.org>
15584
15585 * fontset.c (FONTSET_DEFAULT): New macro.
15586 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15587 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15588 the case that it is nil.
15589 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15590 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15591
15592 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15593 subset or superset.
15594
15595 2008-02-01 Kenichi Handa <handa@m17n.org>
15596
15597 * emacs.c (main): Call init_charset after syms_of_XXX.
15598
15599 * charset.c (Vcharset_map_directory): Delete.
15600 (Vcharset_map_path): New variable.
15601 (load_charset_map_from_file): Use Vcharset_map_path instead.
15602 (init_charset): Initialize Vcharset_map_path.
15603 (syms_of_charset): Delete declaration of "charset-map-directory",
15604 add declaration of "charset-map-path".
15605
15606 2008-02-01 Kenichi Handa <handa@m17n.org>
15607
15608 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15609 ASCII only string.
15610
15611 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15612
15613 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15614 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15615
15616 2008-02-01 Kenichi Handa <handa@m17n.org>
15617
15618 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15619
15620 * coding.c (QCmnemonic, QCdefalut_char)
15621 (QCdecode_translation_table, QCencode_translation_table)
15622 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15623 (get_translation_table): Return a list of translation tables if
15624 necessary.
15625 (decode_coding): Call get_translation_table with ENCODEP 0.
15626 (char_encodable_p): If translation_table is non-nil, always call
15627 translate_char.
15628 (Fdefine_coding_system_internal): Accept list of translation
15629 tables as :encode-translation-table and :decode-translation-table.
15630 (Fcoding_system_put): New function.
15631 (syms_of_coding): Declare new symbols. Defsubr
15632 Scoding_system_put.
15633 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15634 typically JISX0212.
15635
15636 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15637 when the charset is superset type.
15638
15639 * character.c (translate_char): Accept list of translation tables.
15640
15641 2008-02-01 Kenichi Handa <handa@m17n.org>
15642
15643 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
15644 (CODING_ATTR_TRANS_TBL): New macro.
15645
15646 * coding.c (get_translation_table): New function.
15647 (translate_chars): Fix the bug of skipping annotation data.
15648 (decode_coding, encode_coding): Utilize get_translation_table.
15649 (char_encodable_p, Funencodable_char_position): Translate char if
15650 necessary.
15651 (Ffind_coding_systems_region_internal)
15652 (Fcheck_coding_systems_region): Setup translation table for encode
15653 in a coding system attribute vector in advance.
15654 (Fdefine_coding_system_internal): Allow a symbol as translation
15655 table. For shift-jis type coding system, allow 4th charset.
15656
15657 2008-02-01 Kenichi Handa <handa@m17n.org>
15658
15659 * coding.c (decode_coding_sjis): Check the first byte rigidly.
15660
15661 * xdisp.c (get_next_display_element): Pass -1 as POS to
15662 FACE_FOR_CHAR if displaying a C-string.
15663
15664 2008-02-01 Kenichi Handa <handa@m17n.org>
15665
15666 * composite.c (get_composition_id): Handle xoff and yoff in a
15667 composition rule.
15668
15669 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
15670 (struct composition): New member lbearing and rbearing.
15671
15672 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
15673 (x_get_glyph_overhangs): Handle a composition glyph.
15674 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
15675
15676 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
15677 composition glyph.
15678
15679 2008-02-01 Kenichi Handa <handa@m17n.org>
15680
15681 * print.c: Include charset.h.
15682 (Vprint_charset_text_property): New variable.
15683 (Qdefault): Extern it.
15684 (PRINT_STRING_NON_CHARSET_FOUND)
15685 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
15686 (print_check_string_result): New variable.
15687 (print_check_string_charset_prop): New function.
15688 (print_prune_charset_plist): New variable.
15689 (print_prune_string_charset): New function.
15690 (print_object): Call print_prune_string_charset if
15691 Vprint_charset_text_property is not t.
15692 (print_interval): Print nothing if interval->plist is nil.
15693 (syms_of_print): Declare Vprint_charset_text_property as a lisp
15694 variable. Init and staticpro print_prune_charset_plist.
15695
15696 2008-02-01 Kenichi Handa <handa@m17n.org>
15697
15698 * fontset.c (new_fontset_from_font_name): Use the specified font
15699 for all characters in the new fontset.
15700
15701 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15702 OBJECT args.
15703
15704 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
15705 OBJECT args for composition too.
15706
15707 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15708 OBJECT args.
15709
15710 2008-02-01 Kenichi Handa <handa@m17n.org>
15711
15712 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
15713
15714 * fontset.c (reorder_font_vector): Adjust for the change of
15715 FONT_DEF format.
15716 (fontset_face): New arg id. Change caller.
15717 (face_for_char): New args pos and object.
15718 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
15719 (fs_query_fontset): Check NAME by Fassoc too.
15720 (Fset_fontset_font): Allow non-XLFD font name.
15721 (Ffontset_info): Adjust for the change of FONT_DEF format.
15722
15723 * fontset.h (face_for_char): Adjust prototype.
15724
15725 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
15726 (append_space, extend_face_to_end_of_line)
15727 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15728 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
15729
15730 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
15731 POS and OBJECT args.
15732
15733 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
15734 POS and OBJECT args.
15735
15736 2008-02-01 Jason Rumney <jasonr@gnu.org>
15737
15738 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
15739 of GlobalAlloc'ed memory.
15740
15741 2008-02-01 Kenichi Handa <handa@m17n.org>
15742
15743 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
15744
15745 * charset.h (charset_table_used): Delete extern.
15746
15747 * charset.c (charset_table_used): Make it static.
15748 (map_charset_chars): Fix args to c_function with.
15749
15750 * chartab.c (map_sub_char_table_for_charset): Fix args to
15751 c_function with.
15752
15753 * coding.h (enum coding_result_code): Delete
15754 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
15755
15756 * coding.c (Qinsufficient_source, Qinconsistent_eol)
15757 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
15758 (Vlast_code_conversion_error): New variables.
15759 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
15760 (ONE_MORE_BYTE): Record error if any instead of signaling an
15761 error. If non-ASCII multibyte char is found, return the negative
15762 value of the code. All callers changed to check it.
15763 (ONE_MORE_BYTE_NO_CHECK): Likewise.
15764 (record_conversion_result): New function. Change all codes setting
15765 coding->result to call this function.
15766 (detect_coding_utf_8, decode_coding_utf_8)
15767 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
15768 Don't use the local variable incomplete.
15769 (emacs_mule_char): Change the second arg to `const'.
15770 (decode_coding): Fix of flushing out unprocessed data.
15771 (make_conversion_work_buffer): Fix making of a work buffer.
15772 (decode_coding_object): Return coding->dst_object.
15773
15774 * fontset.c (set_fontset_font): Fix args.
15775
15776 * lisp.h (CHARACTERBITS): Define as 22.
15777
15778 * process.c (send_process): Be sure to set coding->src_multibyte.
15779
15780 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
15781
15782 2008-02-01 Kenichi Handa <handa@m17n.org>
15783
15784 * xdisp.c (handle_auto_composed_prop): Give limit to
15785 Fnext_single_char_property_change.
15786
15787 2008-02-01 Kenichi Handa <handa@m17n.org>
15788
15789 * composite.c (syms_of_composite): Don't make the composition hash
15790 table weak.
15791
15792 * fontset.c (Fset_fontset_font): Fix docstring.
15793
15794 * lisp.h (detect_coding_system): Adjust prototype.
15795
15796 * fileio.c (kill_workbuf_unwind): Delete this function.
15797 (Finsert_file_contents): Adjust the call of detect_coding_system.
15798 Get conversion_buffer by code_conversion_save. Use the macro
15799 CODING_MAY_REQUIRE_DECODING. After decoding, update
15800 coding_system.
15801
15802 * coding.h (make_conversion_work_buffer): Delete extern.
15803 (code_conversion_save): Extern it.
15804
15805 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
15806 (CODING_GET_INFO): Delete argument eol_type. Change callers.
15807 (decode_coding_utf_8): Don't do eol converion.
15808 (detect_coding_utf_16): Check coding->src_chars, not
15809 coding->src_bytes. Add heuristics for those that have no signature.
15810 (decode_coding_emacs_mule, decode_coding_iso_2022)
15811 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15812 Don't do eol converion.
15813 (adjust_coding_eol_type): Return a new coding system.
15814 (detect_coding): Don't detect eol. Fix for utf-16 detection.
15815 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
15816 each change.
15817 (decode_coding): Pay attention to undo_list. Do eol conversion for
15818 all types of coding-systems (if necessary).
15819 (Vcode_conversion_work_buf_list): Delete it.
15820 (Vcode_conversion_reused_workbuf): Rename from
15821 Vcode_conversion_reused_work_buf.
15822 (Vcode_conversion_workbuf_name): New variable.
15823 (reused_workbuf_in_use): New variable.
15824 (make_conversion_work_buffer): Delete the arg DEPTH.
15825 (code_conversion_restore): Change argument to cons.
15826 (code_conversion_save): Delete the argument BUFFER. Change callers.
15827 (detect_coding_system): New argument src_chars. Change callers.
15828 Fix for utf-16 detection.
15829 (init_coding_once): Don't use ISO_carriage_return.
15830 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
15831 reused_workbuf_in_use.
15832
15833 2008-02-01 Kenichi Handa <handa@m17n.org>
15834
15835 * keymap.c (store_in_keymap): Pay attention to the case that idx
15836 is a cons specifying a character range.
15837
15838 2008-02-01 Kenichi Handa <handa@m17n.org>
15839
15840 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
15841 HANDLED_RECOMPUTE_PROPS.
15842
15843 * coding.c (Fdefine_coding_system_internal): Fix checking of
15844 ascii compatibility.
15845
15846 2008-02-01 Kenichi Handa <handa@m17n.org>
15847
15848 * charset.c (find_charsets_in_text): Delete unused locale variable.
15849 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
15850
15851 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
15852 Resync charset_list to Vemacs_mule_charset_list.
15853
15854 * keymap.c (store_in_keymap): Pay attention to the case that idx
15855 is a cons specifying a character range.
15856
15857 2008-02-01 Kenichi Handa <handa@m17n.org>
15858
15859 * composite.c (update_compositions): Bind inhibit-read-only, etc
15860 to t before calling remove-list-of-text-properties.
15861
15862 * print.c (print_object): Always print ASCII chars as is.
15863
15864 2008-02-01 Kenichi Handa <handa@m17n.org>
15865
15866 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
15867
15868 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
15869 is a char table.
15870
15871 2008-02-01 Kenichi Handa <handa@m17n.org>
15872
15873 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
15874
15875 2008-02-01 Kenichi Handa <handa@m17n.org>
15876
15877 * xfaces.c (set_lface_from_font_name): Fix for the case that
15878 FONTNAME is not fontset name.
15879
15880 2008-02-01 Kenichi Handa <handa@m17n.org>
15881
15882 * fns.c (base64_encode_1): Fix previous change.
15883
15884 2008-02-01 Kenichi Handa <handa@m17n.org>
15885
15886 * fontset.c (set_fontset_font): New function.
15887 (Fset_fontset_font): If a font is specified for a charset, use
15888 map_charset_chars to store the font spec in a fontset.
15889
15890 2008-02-01 Kenichi Handa <handa@m17n.org>
15891
15892 * fontset.c (fontset_face): Create a fallback fontset on demand.
15893 (make_fontset): Don't create a fallback fontset here.
15894 (free_face_fontset): Free a fallback fontset (if any) too.
15895 (n_auto_fontsets): Delete this variable.
15896 (auto_fontset_alist): New variable.
15897 (new_fontset_from_font_name): Check auto_fontset_alist.
15898 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
15899 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
15900 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
15901 Defsubr Sfontset_list_all.
15902
15903 2008-02-01 Kenichi Handa <handa@m17n.org>
15904
15905 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15906
15907 2008-02-01 Kenichi Handa <handa@m17n.org>
15908
15909 * fontset.c (Fnew_fontset): Check NAME more rigidly.
15910
15911 2008-02-01 Kenichi Handa <handa@m17n.org>
15912
15913 * editfns.c (Fgoto_char): Fix docstring.
15914
15915 2008-02-01 Kenichi Handa <handa@m17n.org>
15916
15917 * insdel.c (insert_from_gap): Adjust intervals correctly.
15918
15919 2008-02-01 Jason Rumney <jasonr@gnu.org>
15920
15921 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
15922 (pfnGetFontUnicodeRanges): New dynamically loaded function.
15923 (w32_initialize): Try to load it.
15924 (x_get_font_repertory): Use it if available.
15925 (w32_encode_char): Add shortcut for unicode output.
15926
15927 * w32fns.c (w32_load_system_font): Default charset to -1.
15928 (x_to_w32_charset): Match all fonts for unicode.
15929 (w32_to_x_charset): New parameter matching. Don't return partial
15930 or wildcard charsets.
15931 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
15932 (w32_codepage_for_font): Return CP_UNICODE for unicode.
15933 (w32_to_x_font): Match charset to real charset.
15934 (enum_font_cb2): Always list unicode versions.
15935
15936 * makefile.w32-in (temacs): Increase EMHEAP.
15937
15938 2008-02-01 Jason Rumney <jasonr@gnu.org>
15939
15940 * w32term.c (w32_encode_char): New charset parameter.
15941 font_info.encoding becomes encoding_type.
15942 (x_get_font_repertory): New function. Warning: stub only!
15943 (x_new_font): Return quickly if font already set.
15944 (x_new_fontset): fontsetname parameter is Lisp_Object.
15945 Use new fs_query_fontset. Try new_fontset_from_font_name.
15946 Use fontset_name for return value.
15947
15948 * w32term.h: Declare x_get_font_repertory.
15949
15950 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
15951 place of find_charset_in_text. Use encode_coding_object in place
15952 of encode_coding.
15953 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
15954 decode_coding.
15955
15956 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
15957 of x_new_fontset.
15958 (w32_load_system_font): Initialize charset as unicode.
15959 font_info.encoding becomes encoding_type.
15960 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15961 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15962 (syms_of_w32fns): Set get_font_repertory_func.
15963
15964 * w32console.c: Include character.h. Use terminal_encode_buffer
15965 from term.c.
15966 (write_glyphs): Use new version of encode_terminal_code. Use
15967 encode_coding_object in place of encode_coding.
15968
15969 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15970 encoding becomes encoding_type.
15971
15972 * term.c (terminal_encode_buffer): Make externally visible.
15973
15974 * makefile.w32-in: Add character.h dependancies.
15975 (character.o, chartab.o): New targets.
15976
15977 2008-02-01 Kenichi Handa <handa@m17n.org>
15978
15979 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15980 CODING_ID_EOL_TYPE.
15981
15982 2008-02-01 Andreas Schwab <schwab@suse.de>
15983
15984 * coding.c (produce_chars): Revert last change.
15985
15986 2008-02-01 Kenichi Handa <handa@m17n.org>
15987
15988 * charset.h (charset_unicode): Extern it.
15989
15990 * charset.c (string_xstring_p): Check by (C >= 0x100).
15991 (find_charsets_in_text): Change format of the arc CHARSETS. New
15992 arg MULTIBYTE.
15993 (Ffind_charset_region, Ffind_charset_string): Adjust for the
15994 change of find_charsets_in_text.
15995 (Fsplit_char): Fix doc. Never return unknown.
15996
15997 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
15998
15999 * coding.c (Fdefine_coding_system_alias): Update
16000 Vcoding_system_list.
16001
16002 * fontset.c (load_font_get_repertory): Pay attention to the case
16003 that ENCODING of a font is specified by a char-table.
16004
16005 * xterm.c (x_get_font_repertory): Handle the case that the
16006 encoding of font is other than Unicode.
16007
16008 2008-02-01 Kenichi Handa <handa@m17n.org>
16009
16010 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16011 if a character is encodable by the terminal coding system. If
16012 not, produces proper number of `?'s. Update
16013 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16014 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16015
16016 2008-02-01 Kenichi Handa <handa@m17n.org>
16017
16018 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16019 variables.
16020 (encode_terminal_code): Change argument. Encode multiple
16021 characters at once. Store the result of encoding in
16022 terminal_encode_buffer.
16023 (write_glyphs, insert_glyphs): Adjust for the change of
16024 encode_terminal_code.
16025 (term_init): Initialize terminal_encode_buffer and
16026 terminal_encode_buf_size.
16027
16028 * coding.c (consume_chars): If coding->src_object is nil, don't
16029 check annotation.
16030
16031 2008-02-01 Kenichi Handa <handa@m17n.org>
16032
16033 * character.c (char_string): Use ASCII_CHAR_P instead of
16034 SINGLE_BYTE_CHAR_P.
16035
16036 2008-02-01 Kenichi Handa <handa@m17n.org>
16037
16038 * xdisp.c (handle_auto_composed_prop): Check if the last
16039 characters of auto-composed region is newly composed with the
16040 following characters.
16041 (handle_composition_prop): Fix checking of point being inside
16042 composition.
16043
16044 2008-02-01 Kenichi Handa <handa@m17n.org>
16045
16046 * fns.c (concat): Don't change multibyteness of the result by
16047 concatenating an 8-bit character.
16048
16049 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16050 multibyteness of the result when newelt is an 8-bit character.
16051
16052 2008-02-01 Dave Love <fx@gnu.org>
16053
16054 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16055 EMACS_INT.
16056
16057 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16058
16059 * xfaces.c (face_numeric_value): Declare dim size_t.
16060 (Finternal_lisp_face_equal_p): Remove unused f.
16061
16062 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16063 (MATRIX_ROW): Remove unused vars.
16064 (draw_glyphs, x_insert_glyphs, fast_find_position)
16065 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16066 byte/char counts.
16067
16068 * regex.c (regex_compile): Remove unused var.
16069
16070 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16071
16072 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16073 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16074
16075 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16076
16077 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16078
16079 * fileio.c (Fwrite_region): Remove unused var.
16080
16081 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16082 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16083
16084 * composite.c (Fremove_list_of_text_properties): Declare.
16085
16086 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16087 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16088 (coding_inherit_eol_type): Remove unused attrs.
16089 (detect_coding): Cast arg of detect_eol.
16090
16091 * charset.c (syms_of_charset): Remove unused var p.
16092 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16093 byte/char counts.
16094
16095 * casetab.c (set_case_table): Remove unused var.
16096
16097 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16098 unused vars.
16099
16100 2008-02-01 Dave Love <fx@gnu.org>
16101
16102 * xterm.c (x_bitmap_mask): Declare.
16103
16104 2008-02-01 Dave Love <fx@gnu.org>
16105
16106 * xterm.c (x_term_init): Fix type error.
16107
16108 * lisp.h: Add Funibyte_char_to_multibyte.
16109
16110 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16111 (Fset_coding_system_priority): Doc fix.
16112
16113 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16114
16115 * indent.c (check_composition): Make start and end EMACS_INT.
16116
16117 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16118
16119 * xdisp.c (handle_composition_prop, check_point_in_composition):
16120 Make buffer positions EMACS_INT.
16121
16122 * composite.c (find_composition, run_composition_function)
16123 (update_compositions, Ffind_composition_internal): Make buffer
16124 positions EMACS_INT.
16125
16126 * composite.h (find_composition, update_compositions): Make
16127 position args EMACS_INT.
16128
16129 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16130
16131 * intervals.c (get_property_and_range):
16132 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16133
16134 * unexalpha.c: Don't include varargs.h.
16135
16136 2008-02-01 Dave Love <fx@gnu.org>
16137
16138 * coding.h (ENCODE_UTF_8): New.
16139
16140 * Makefile.in (gtkutil.o): Depend on coding.h.
16141
16142 * coding.c (Fset_coding_system_priority): Doc fix.
16143
16144 2008-02-01 Kenichi Handa <handa@m17n.org>
16145
16146 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16147 the case of auto saving.
16148
16149 2008-02-01 Andreas Schwab <schwab@suse.de>
16150
16151 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16152 `range' from GC.
16153
16154 2008-02-01 Kenichi Handa <handa@m17n.org>
16155
16156 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16157
16158 2008-02-01 Kenichi Handa <handa@m17n.org>
16159
16160 * fileio.c (choose_write_coding_system): Return a decided coding system.
16161 (Fwrite_region): Set Vlast_coding_system_used to the return value
16162 of choose_write_coding_system.
16163
16164 2008-02-01 Kenichi Handa <handa@m17n.org>
16165
16166 * charset.c (Fset_charset_priority): Pay attention to duplicated
16167 arguments.
16168
16169 * coding.c (QCcategory): New variable.
16170 (syms_of_coding): Defsym it. Set all elements of
16171 Vcoding_category_table and their symbol values.
16172 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16173 coding-category-XXX, and coding-category-list.
16174 (Fdefine_coding_system_internal): Add category in the plist.
16175
16176 2008-02-01 Kenichi Handa <handa@m17n.org>
16177
16178 * callproc.c (Fcall_process): Handle carryover correctly.
16179
16180 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16181 (raw_text_coding_system): Check NILP (coding_system).
16182 (coding_inherit_eol_type): Check NILP (coding_system) and
16183 NILP (parent).
16184 (consume_chars): Fix for the case of raw-text.
16185
16186 * process.c (read_process_output): Handle carryover correctly.
16187
16188 2008-02-01 Dave Love <fx@gnu.org>
16189
16190 * regex.c (re_search_2): Fix last change.
16191
16192 2008-02-01 Kenichi Handa <handa@m17n.org>
16193
16194 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16195 target_multibyte. Even in a unibyte case, return a converted
16196 multibyte char.
16197 (GET_CHAR_AFTER): New macro.
16198 (PATFETCH): Translate via multibyte char.
16199 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16200 (SETUP_MULTIBYTE_RANGE): New macro.
16201 (regex_compile): Setup compiled code so that its multibyteness
16202 matches that of a target. Fix the handling of "[X-YZ]" using
16203 SETUP_MULTIBYTE_RANGE.
16204 (analyse_first) <charset>: For filling fastmap for all multibyte
16205 characters, don't check by BASE_LEADING_CODE_P.
16206 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16207 the same as RE_MULTIBYTE_P (bufp) now.
16208 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16209 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16210 (TRANSLATE_VIA_MULTIBYTE): New macro.
16211 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16212 It is the same as RE_MULTIBYTE_P (bufp) now.
16213 <exactn>: Translate via multibyte.
16214 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16215 translate it.
16216 <charset, charset_not>: Fetch a character by
16217 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16218 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16219 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16220 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16221 by GET_CHAR_AFTER.
16222 (bcmp_translate): Likewise.
16223
16224 * search.c (compile_pattern): Check the member target_multibyte,
16225 not the member multibyte of buf.
16226
16227 * lread.c (read1): While reading a string, set force_singlebyte
16228 and force_multibyte correctly.
16229
16230 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16231 up of unibyte_to_multibyte_table.
16232
16233 2008-02-01 Kenichi Handa <handa@m17n.org>
16234
16235 * coding.c (setup_coding_system): If coding has
16236 post-read-conversion or pre-write-conversion, set
16237 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16238 respectively.
16239 (decode_coding_gap): Run post-read-conversion if any.
16240
16241 * fileio.c (Finsert_file_contents): Even if we read into a
16242 unibyte buffer, check if we must decode the result or not.
16243
16244 2008-02-01 Kenichi Handa <handa@m17n.org>
16245
16246 * coding.c (make_conversion_work_buffer): Change the work buffer
16247 name to the same one as that of Emacs 21.
16248
16249 2008-02-01 Kenichi Handa <handa@m17n.org>
16250
16251 * coding.h (make_conversion_work_buffer): Adjust prototype.
16252 (code_conversion_restore): Don't extern it.
16253
16254 * coding.c (detected_mask): Delete unused variable.
16255 (decode_coding_iso_2022): Pay attention to the byte sequence of
16256 CTEXT extended segment, and retain those bytes as is.
16257 (decode_coding_ccl): Delete unused variable `valids'.
16258 (setup_coding_system): Delete unused variable `category'.
16259 (consume_chars): Delete unused variable `category'. Make it work
16260 for non-multibyte case.
16261 (make_conversion_work_buffer): Change argument.
16262 (saved_coding): Delete unused variable.
16263 (code_conversion_restore): Don't check saved_coding->destination.
16264 (code_conversion_save): New function.
16265 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16266 instead of record_unwind_protect.
16267 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16268 (detect_coding_system): Delete unused variable `mask'.
16269 (Fdefine_coding_system_internal): Delete unused variable id.
16270
16271 * fileio.c (kill_workbuf_unwind): New function.
16272 (Finsert_file_contents): On replacing, call
16273 make_conversion_work_buffer with correct args, and call
16274 record_unwind_protect with the first arg kill_workbuf_unwind.
16275
16276 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16277
16278 2008-02-01 Kenichi Handa <handa@m17n.org>
16279
16280 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16281 (fontset_add): Fix for the case that TO is less than TO1.
16282 (Ffontset_info): Don't use fallback fontset on checking the
16283 default fontset.
16284 (dump_fontset): New function for debugging.
16285
16286 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16287 coding_type is Qcharset.
16288
16289 2008-02-01 Kenichi Handa <handa@m17n.org>
16290
16291 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16292 (map_char_table): Don't inherit the value from the parent on
16293 initializing VAL. Adjust for the above change.
16294
16295 2008-02-01 Kenichi Handa <handa@m17n.org>
16296
16297 * coding.c (Qsignature, Qendian): Delete these variables.
16298 (syms_of_coding): Don't initialize them.
16299 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16300 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16301 detect_info->found.
16302 (decode_coding_utf_16): Don't detect BOM here.
16303 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16304 is NOT utf_16_without_bom.
16305 (setup_coding_system): For a coding system of type utf-16, check
16306 if the attribute :endian is Qbig or not (not nil or not), and set
16307 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16308 (detect_coding): If coding type is utf-16 and BOM detection is
16309 required, detect it.
16310 (Fdefine_coding_system_internal): For a coding system of type
16311 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16312
16313 2008-02-01 Kenichi Handa <handa@m17n.org>
16314
16315 * coding.c (coding_set_source): Fix for the case that the current
16316 buffer is different from coding->src_object.
16317 (decode_coding_object): Don't use the conversion work buffer if
16318 DST_OBJECT is a buffer.
16319
16320 2008-02-01 Dave Love <fx@gnu.org>
16321
16322 * lread.c (read_emacs_mule_char) [len==2]: Index
16323 emacs_mule_charset correctly.
16324
16325 2008-02-01 Dave Love <fx@gnu.org>
16326
16327 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16328 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16329 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16330 treated specially.)
16331 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16332 (detected_mask): Remove Big5 bits.
16333
16334 2008-02-01 Kenichi Handa <handa@m17n.org>
16335
16336 The following changes are to make the font rescaling facility
16337 compatible with Emacs 21.
16338
16339 * xfaces.c (Vface_font_rescale_alist): Rename from
16340 Vface_resizing_fonts.
16341 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16342 (font_rescale_ratio): Rename from font_resizing_ratio.
16343 (split_font_name): Set font->rescale_ratio.
16344 (better_font_p): Pay attention to font->rescale_ratio.
16345 (build_scalable_font_name): Likewise. Change RESX, and RESY
16346 fields.
16347 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16348
16349 2008-02-01 Kenichi Handa <handa@m17n.org>
16350
16351 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16352 (Qutf_16_le): Remove these variables.
16353 (syms_of_coding): Don't DEFSYM them.
16354 (decode_coding_utf_16): Fix handling of BOM.
16355 (encode_coding_utf_16): Fix handling of BOM.
16356
16357 2008-02-01 Kenichi Handa <handa@m17n.org>
16358
16359 * fileio.c (Finsert_file_contents): On replacing, before decoding
16360 the file into the work buffer, set point of the work buffer to the end.
16361
16362 2008-02-01 Dave Love <fx@gnu.org>
16363
16364 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16365
16366 2008-02-01 Dave Love <fx@gnu.org>
16367
16368 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16369 and fix C types.
16370
16371 2008-02-01 Kenichi Handa <handa@m17n.org>
16372
16373 * xdisp.c (SKIP_GLYPHS): New macro.
16374 (set_cursor_from_row): Pay attention to string display properties.
16375
16376 * category.c (copy_category_entry): Fix for the case that RANGE
16377 is an integer.
16378
16379 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16380
16381 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16382
16383 2008-02-01 Kenichi Handa <handa@m17n.org>
16384
16385 * charset.c (Fcharset_id_internal): New function.
16386 (syms_of_charset): Defsubr it.
16387
16388 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16389 with the last arg charset_list acquired from coding.
16390 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16391 the attribute coding_attr_ccl_valids.
16392
16393 * coding.h (enum define_coding_ccl_arg_index): Set the first
16394 member coding_arg_ccl_decoder to coding_arg_max.
16395
16396 * ccl.h (ccl_driver): Adjust prototype.
16397
16398 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16399 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
16400 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
16401 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16402 last arg Qnil.
16403
16404 2008-02-01 Kenichi Handa <handa@m17n.org>
16405
16406 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16407 call encode_char.
16408
16409 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16410
16411 2008-02-01 Dave Love <fx@gnu.org>
16412
16413 * composite.c (syms_of_composite): Make composition_hash_table weak.
16414
16415 2008-02-01 Kenichi Handa <handa@m17n.org>
16416
16417 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16418 (font_name_registry): Don't extern them.
16419 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16420
16421 * fontset.h (Qfontset): Don't extern it.
16422 (new_fontset_from_font_name): Extern it.
16423
16424 * fontset.c: Give 8 extra slots to fontset objects.
16425 (Qfontset_info): New variable.
16426 (syms_of_fontset): Defsym it.
16427 (FONTSET_FALLBACK): New macro.
16428 (fontset_face): Try also the default fontset.
16429 (make_fontset): Realize a fallback fontset from the default fontset.
16430 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16431 using split_font_name_into_vector and build_font_name_from_vector.
16432 (Fset_fontset_font): Access the elements of font_spec by enum
16433 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16434 name by using split_font_name_into_vector.
16435 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16436 generate a proper font name from the fontset name. Update
16437 Vfontset_alias_alist.
16438 (n_auto_fontsets): New variable.
16439 (new_fontset_from_font_name): New function.
16440 (Ffont_info): Store the information about fonts generated from the
16441 default fontset in the first extra slot of the returned char-table.
16442
16443 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16444 (font_name_registry): Delete function.
16445 (split_font_name_into_vector): New function.
16446 (build_font_name_from_vector): New function.
16447 (font_list): The argument REGISTRY is now a list of registry names.
16448 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16449 specifies an explicit font name, return the name as is. Make a
16450 list of registy names.
16451
16452 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16453 of x_new_fontset.
16454 (Fx_create_frame): Don't call x_new_fontset here. Just use
16455 x_list_fonts to check the existence of fonts.
16456
16457 * xterm.h (x_new_fontset): Adjust prototype.
16458
16459 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16460 string. Use new_fontset_from_font_name to create a fontset from a
16461 font name.
16462
16463 2008-02-01 Kenichi Handa <handa@m17n.org>
16464
16465 * syntax.c (Vfind_word_boundary_function_table): New name for
16466 Vnext_word_boundary_function_table.
16467 (find-word-boundary-function-table): New name for
16468 next-word-boundary-function-table.
16469
16470 2008-02-01 Dave Love <fx@gnu.org>
16471
16472 * Makefile.in: Fix some dependencies.
16473
16474 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16475 set it to nil before returning.
16476
16477 * composite.c (update_compositions): Fix type error.
16478
16479 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16480
16481 2008-02-01 Kenichi Handa <handa@m17n.org>
16482
16483 * xterm.c (x_new_font): Optimize for the case that the font is
16484 already set for the frame.
16485
16486 2008-02-01 Kenichi Handa <handa@m17n.org>
16487
16488 * chartab.c (char_table_ascii): Check if the char table contents
16489 is sub-char-table or not.
16490 (char_table_set, char_table_set_range): Fix argument to
16491 char_table_ascii.
16492
16493 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16494 (detect_coding_utf_8, detect_coding_utf_16)
16495 (detect_coding_emacs_mule, detect_coding_iso_2022)
16496 (detect_coding_sjis, detect_coding_big5)
16497 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16498 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16499 sequence is valid in this coding system. Change callers.
16500 (MAX_ANNOTATION_LENGTH): New macro.
16501 (ADD_ANNOTATION_DATA): New macro.
16502 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16503 ADD_ANNOTATION_DATA. Change the format of annotation data.
16504 (ADD_CHARSET_DATA): New macro.
16505 (emacs_mule_char): New argument ID. Change callers.
16506 (decode_coding_emacs_mule, decode_coding_iso_2022)
16507 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16508 Produce charset annotation data in coding->charbuf.
16509 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16510 to charset annotation data in coding->charbuf.
16511 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16512 coding->common_flags if the coding system is iso-2022 based and
16513 uses designation.
16514 (produce_composition): Adjust for the new annotation data format.
16515 (produce_charset): New function.
16516 (produce_annotation): Handle charset annotation.
16517 (handle_composition_annotation, handle_charset_annotation): New
16518 functions.
16519 (consume_chars): Handle charset annotation. Utilize the above two
16520 functions.
16521 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16522 buffer, get the deleted text as a string and set
16523 coding->src_object to that string.
16524 (detect_coding, detect_coding_system): Use the new struct
16525 coding_detection_info.
16526
16527 * coding.h (struct coding_detection_info): New structure.
16528 (struct coding_system): Adjust prototype of the member `detector'.
16529 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16530
16531 2008-02-01 Kenichi Handa <handa@m17n.org>
16532
16533 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16534
16535 2008-02-01 Dave Love <fx@gnu.org>
16536
16537 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16538 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16539 to new local and nullify apropos_accumulate before returning.
16540 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16541
16542 2008-02-01 Kenichi Handa <handa@m17n.org>
16543
16544 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16545 correctly.
16546
16547 2008-02-01 Dave Love <fx@gnu.org>
16548
16549 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16550
16551 2008-02-01 Kenichi Handa <handa@m17n.org>
16552
16553 The following changes are to make character composition happen
16554 automatically on displaying.
16555
16556 * Makefile.in (lisp, shortlisp): Add composite.elc.
16557
16558 * composite.h (Qauto_composed, Vauto_composition_function)
16559 (Qauto_composition_function): Extern them.
16560
16561 * composite.c (Vcomposition_function_table)
16562 (Qcomposition_function_table): Delete variables.
16563 (Qauto_composed, Vauto_composition_function)
16564 (Qauto_composition_function): New variables.
16565 (run_composition_function): Don't call
16566 compose-chars-after-function.
16567 (update_compositions): Clear `auto-composed' text property.
16568 (compose_chars_in_text): Delete this function.
16569 (syms_of_composite): Staticpro Qauto_composed and
16570 Qauto_composition_function. Declare Vauto_composition_function as
16571 a Lisp variable.
16572
16573 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16574
16575 * xdisp.c (it_props): Add an entry for Qauto_composed.
16576 (handle_auto_composed_prop): New function.
16577
16578 * xselect.c (selection_data_to_lisp_data): Don't call
16579 compose_chars_in_text.
16580
16581 2008-02-01 Dave Love <fx@gnu.org>
16582
16583 * keyboard.c (read_char): Modify checking around use of
16584 Vkeyboard_translate_table.
16585
16586 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16587 and fix C types.
16588
16589 2008-02-01 Kenichi Handa <handa@m17n.org>
16590
16591 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16592 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16593 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16594 the case that the last byte is '\r' correctly.
16595 (decode_coding): Flush out the unprocessed data correctly.
16596 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16597
16598 2008-02-01 Dave Love <fx@gnu.org>
16599
16600 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16601 Add XK_ISO... case.
16602 (xaw_scroll_callback): Revert last change.
16603
16604 2008-02-01 Kenichi Handa <handa@m17n.org>
16605
16606 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16607
16608 2008-02-01 Kenichi Handa <handa@m17n.org>
16609
16610 * xfaces.c (Vface_resizing_fonts): New variable.
16611 (struct font_name): New member `resizing_ratio'.
16612 (font_resizing_ratio): New function.
16613 (split_font_name): Set font->resizing_ratio.
16614 (better_font_p): Pay attention to font->resizing_ratio.
16615 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16616 RESX, and RESY fields.
16617 (try_alternative_families): Try scalable fonts if
16618 Vscalable_fonts_allowed is not Qt.
16619 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16620
16621 2008-02-01 Dave Love <fx@gnu.org>
16622
16623 * xterm.c (xaw_scroll_callback): Cast correctly.
16624
16625 2008-02-01 Dave Love <fx@gnu.org>
16626
16627 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16628 (lispy_kana_keys): Comment out.
16629 (make_lispy_event) [XK_kana_A]: Comment out.
16630
16631 * xterm.c (xaw_scroll_callback): Cast call_data.
16632 (XTread_socket): Deal with ASCII keysyms.
16633 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16634
16635 2008-02-01 Dave Love <fx@gnu.org>
16636
16637 * xterm.c (Vx_keysym_table): New.
16638 (syms_of_xterm): Initialize it.
16639 (XTread_socket): Use it.
16640 From head: Eliminate incorrect optimization that tried to avoid
16641 decoding the output of X*LookupString.
16642 (x_get_font_repertory): Delete charset declaration.
16643
16644 2008-02-01 Kenichi Handa <handa@m17n.org>
16645
16646 * coding.c (detect_coding_charset): If only ASCII bytes are found,
16647 return 0.
16648 (Fdefine_coding_system_internal): Setup
16649 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
16650
16651 2008-02-01 Dave Love <fx@gnu.org>
16652
16653 * coding.c (Fcheck_coding_system): Doc fix.
16654
16655 * editfns.c (Finsert_byte): Return a proper value.
16656
16657 2008-02-01 Kenichi Handa <handa@m17n.org>
16658
16659 * coding.c (decode_coding): Fix args to translate_chars. Pay
16660 attention to Vstandard_translation_table_for_decode.
16661 (encode_coding): Fix args to translate_chars. Pay attention to
16662 Vstandard_translation_table_for_encode.
16663
16664 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
16665 SINGLE_BYTE_CHAR_P.
16666
16667 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
16668 not by SINGLE_BYTE_CHAR_P.
16669
16670 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
16671 SINGLE_BYTE_CHAR_P.
16672
16673 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
16674 SINGLE_BYTE_CHAR_P.
16675
16676 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
16677 by SINGLE_BYTE_CHAR_P.
16678
16679 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
16680 SINGLE_BYTE_CHAR_P.
16681
16682 2008-02-01 Dave Love <fx@gnu.org>
16683
16684 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
16685
16686 2008-02-01 Dave Love <fx@gnu.org>
16687
16688 * fns.c (Flanginfo): Fix typo.
16689
16690 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
16691
16692 2008-02-01 Kenichi Handa <handa@m17n.org>
16693
16694 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
16695 (detect_coding_emacs_mule, detect_coding_iso_2022)
16696 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
16697 incomplete byte sequence. Don't update *mask when correctly detected.
16698 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
16699 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
16700 (detect_coding, detect_coding_system): Adjust for the changes above.
16701
16702 2008-02-01 Kenichi Handa <handa@m17n.org>
16703
16704 * character.c (char_string): Rename from
16705 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
16706 (string_char): Rename from string_char.
16707
16708 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
16709 if C is greater than MAX_3_BYTE_CHAR.
16710 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
16711 string_char instead of string_char_with_unification.
16712
16713 2008-02-01 Dave Love <fx@gnu.org>
16714
16715 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
16716
16717 2008-02-01 Kenichi Handa <handa@m17n.org>
16718
16719 * keymap.c (push_key_description): Pay attention to force_multibyte.
16720
16721 * regex.c (re_search_2): Fix for the case of unibyte buffer.
16722
16723 2008-02-01 Dave Love <fx@gnu.org>
16724
16725 * charset.c (define_charset_internal): Rename `supprementary'.
16726
16727 * Makefile.in (lisp, shortlisp): Remove latin-N.
16728
16729 2008-02-01 Dave Love <fx@gnu.org>
16730
16731 * xfns.c (x_window, x_window): Use use_xim.
16732
16733 * xterm.c (use_xim): Initialize.
16734 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
16735 (x_term_init): Maybe set use_xim.
16736
16737 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
16738
16739 2008-02-01 Kenichi Handa <handa@m17n.org>
16740
16741 * search.c (search_buffer): Fix case-fold-search of multibyte
16742 characters.
16743 (boyer_moore): Rename the last argument to char_high_bits.
16744
16745 2008-02-01 Kenichi Handa <handa@m17n.org>
16746
16747 * xdisp.c (display_string): Fix for the case of zero width glyph.
16748
16749 * xfns.c (x_set_font): Change the error message of the case that
16750 x_new_fontset returns Qt.
16751
16752 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
16753 (Finternal_set_lisp_face_attribute): Use signal_error for the
16754 error of invalid fontset.
16755
16756 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
16757 fontset, return Qt.
16758
16759 2008-02-01 Dave Love <fx@gnu.org>
16760
16761 * unexelf.c (unexec): Make .got handling not SGI-specific.
16762
16763 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
16764
16765 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
16766
16767 * keyboard.c (read_key_sequence): Fix type error.
16768
16769 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
16770 type error.
16771
16772 * fontset.c (fontset_add): Return Lisp_Object.
16773
16774 2008-02-01 Dave Love <fx@gnu.org>
16775
16776 * charset.h (charset_ordered_list_tick): Declare extern.
16777
16778 2008-02-01 Kenichi Handa <handa@m17n.org>
16779
16780 The following changes (and some of 2008-02-01 changes of mine) are
16781 for handling syntax, category, and case conversion for unibyte
16782 characters by converting them to multibyte on the fly. With these
16783 changes, we don't have to setup syntax and case tables for unibyte
16784 characters in each language environment.
16785
16786 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
16787 multibyte if necessary.
16788
16789 * bytecode.c (Fbyte_code): Likewise.
16790
16791 * character.h (LEADING_CODE_LATIN_1_MIN)
16792 (LEADING_CODE_LATIN_1_MAX): New macros.
16793 (unibyte_to_multibyte_table): Extern it.
16794 (unibyte_char_to_multibyte): New macro.
16795 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
16796 (CHAR_LEADING_CODE): New macro.
16797 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
16798
16799 * character.c (unibyte_to_multibyte_table): New variable.
16800 (unibyte_char_to_multibyte): Move to character.h and define as macro.
16801 (multibyte_char_to_unibyte): If C is an eight-bit character,
16802 convert it to the corresponding byte value.
16803
16804 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
16805 not 1, signals an error. Update the elements of
16806 unibyte_to_multibyte_table.
16807 (init_charset_once): Initialize unibyte_to_multibyte_table.
16808 (syms_of_charset): Define the charset `iso-8859-1'.
16809
16810 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
16811 as is without converting it to unibyte. In a unibyte buffer,
16812 convert C to multibyte before checking the syntax.
16813
16814 * lisp.h (unibyte_char_to_multibyte): Delete extern.
16815
16816 * minibuf.c (Fminibuffer_complete_word): Use the macro
16817 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
16818
16819 * regex.h (struct re_pattern_buffer): New member target_multibyte.
16820
16821 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
16822 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
16823 that is zero, convert an eight-bit char to multibyte.
16824 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
16825 non-emacs case.
16826 (PATFETCH): Convert an eight-bit char to multibyte.
16827 (HANDLE_UNIBYTE_RANGE): New macro.
16828 (regex_compile): Setup the compiled pattern for multibyte chars
16829 even if the given regex string is unibyte. Use PATFETCH_RAW
16830 instead of PATFETCH in many places. To handle `charset'
16831 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
16832 only for ASCII chars.
16833 (analyse_first) <exactn>: Simplify because the compiled pattern
16834 is multibyte.
16835 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
16836 <charset>: Use CHAR_LEADING_CODE to get leading codes.
16837 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
16838 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
16839 multibyte always 1.
16840 (re_search_2): In emacs, set the locale variable multibyte to 1,
16841 otherwise to 0. New local variable target_multibyte. Check it
16842 to decide the multibyteness of STR1 and STR2. If
16843 target_multibyte is zero, convert unibyte chars to multibyte
16844 before translating and checking fastmap.
16845 (TARGET_CHAR_AND_LENGTH): New macro.
16846 (re_match_2_internal): In emacs, set the locale variable multibyte
16847 to 1, otherwise to 0. New local variable target_multibyte. Check
16848 it to decide the multibyteness of STR1 and STR2. Use
16849 TARGET_CHAR_AND_LENGTH to fetch a character from D.
16850 <charset, charset_not>: If multibyte is nonzero, check fastmap
16851 only for ASCII chars. Call bcmp_translate with
16852 target_multibyte, not with multibyte.
16853 <begline>: Declare the local variable C as `unsigned'.
16854 (bcmp_translate): Change the last arg name to target_multibyte.
16855
16856 * search.c (compile_pattern_1): Don't adjust the multibyteness of
16857 the regexp pattern and the matching target. Set cp->buf.multibyte
16858 to the multibyteness of the regexp pattern. Set
16859 cp->but.target_multibyte to the multibyteness of the matching target.
16860 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
16861 FETCH_STRING_CHAR_ADVANCE.
16862 (Freplace_match): Convert unibyte chars to multibyte.
16863
16864 * syntax.c (char_quoted, back_comment, scan_words)
16865 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
16866 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
16867 unibyte chars to multibyte.
16868 (skip_chars): Delete the arg syntaxp, and move the code for
16869 handling syntaxes to skip_syntaxes. Change callers.
16870 Fix the case that the multibyteness of STRING and the current
16871 buffer doesn't match.
16872 (skip_syntaxes): New function.
16873 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
16874 SINGLE_BYTE_CHAR_P.
16875
16876 2008-02-01 Kenichi Handa <handa@m17n.org>
16877
16878 * xfaces.c (QCfontset): New variable.
16879 (LFACE_FONTSET): New macro.
16880 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
16881 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
16882 (Finternal_set_lisp_face_attribute)
16883 (Finternal_get_lisp_face_attribute): Handle QCfontset.
16884 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
16885 check also LFACE_FONTSET_INDEX.
16886 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
16887 attrs[LFACE_FONT_INDEX].
16888 (syms_of_xfaces): Intern and staticpro QCfontset.
16889
16890 * dispextern.h (enum lface_attribute_index): New member
16891 LFACE_FONTSET_INDEX.
16892
16893 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
16894
16895 2008-02-01 Kenichi Handa <handa@m17n.org>
16896
16897 * coding.c (coding_set_destination): Fix coding->destination for
16898 the case converting a region.
16899 (encode_coding_utf_8): Encode eight-bit chars as single byte.
16900 (encode_coding_object): Fix coding->dst_pos and
16901 coding->dst_pos_byte for the case converting a region.
16902
16903 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
16904
16905 * character.h (BYTE8_STRING): New macro.
16906
16907 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
16908
16909 2008-02-01 Kenichi Handa <handa@m17n.org>
16910
16911 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
16912 characters by octal form.
16913
16914 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16915
16916 * buffer.h (_fetch_multibyte_char_len): Delete extern.
16917 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
16918 _fetch_multibyte_char_len.
16919 (FETCH_CHAR_AS_MULTIBYTE): New macro.
16920
16921 * casetab.c (set_canon, set_identity, shuffle): Simplify.
16922
16923 * casefiddle.c (casify_object): Simplify. Handle the case that
16924 the case conversion change the byte length.
16925 (casify_region): Likewise.
16926
16927 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
16928
16929 * character.c (_fetch_multibyte_char_len): Delete this variable.
16930 (syms_of_character): Setup Vprintable_chars.
16931
16932 * editfns.c (Fchar_equal): Fix for the unibyte case.
16933 (Finsert_byte): New function.
16934 (syms_of_editfns): Defsubr it.
16935
16936 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
16937 of direct code 0x3ffff.
16938
16939 * search.c (Freplace_match): Fix for the unibyte case.
16940
16941 2008-02-01 Kenichi Handa <handa@m17n.org>
16942
16943 * lread.c (safe_to_load_p): Fix the logic.
16944
16945 * syntax.c (scan_words): Don't treat characters belonging to
16946 different scripts as constituting a word.
16947
16948 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16949
16950 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
16951
16952 * emacs.c (main): In the case of --unibyte, instead of aborting on
16953 finding non-empty buffer, make it unibyte.
16954
16955 2008-02-01 Kenichi Handa <handa@m17n.org>
16956
16957 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16958 to create a fontset.
16959
16960 2008-02-01 Dave Love <fx@gnu.org>
16961
16962 * character.c (Funibyte_char_to_multibyte): Doc fix.
16963
16964 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16965
16966 2008-02-01 Kenichi Handa <handa@m17n.org>
16967
16968 * fontset.c (fontset_add): Make the type `int'.
16969 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16970
16971 * character.c (unibyte_char_to_multibyte)
16972 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16973 charset_unibyte, not charset_primary.
16974
16975 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16976
16977 * charset.c (charset_unibyte): Rename from charset_primary.
16978 (Funibyte_charset): Rename from Fprimary_charset.
16979 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16980 (syms_of_charset): Adjust for the above changes.
16981
16982 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16983 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16984 it->multibyte_p is zero.
16985
16986 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16987 Delete extern.
16988
16989 2008-02-01 Kenichi Handa <handa@m17n.org>
16990
16991 * coding.c (Fdefine_coding_system_internal): Fix category setting
16992 for a coding system of type iso-2022.
16993
16994 2008-02-01 Kenichi Handa <handa@m17n.org>
16995
16996 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
16997
16998 2008-02-01 Kenichi Handa <handa@m17n.org>
16999
17000 * syntax.c (Vnext_word_boundary_function_table): New variable.
17001 (next-word-boundary-function-table): Declare it as a Lisp variable
17002 in syms_of_syntax.
17003 (scan_words): Call functions in Vnext_word_boundary_function_table
17004 if any.
17005
17006 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17007
17008 * fontset.c (fs_load_font): If fontp->charset is not negative,
17009 return fontp without setting its members.
17010
17011 2008-02-01 Dave Love <fx@gnu.org>
17012
17013 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17014
17015 * m/sparc.h (HAVE_ALLOCA): Delete.
17016
17017 * s/irix6-5.h: Don't include strings.h.
17018 (bcopy, bzero, bcmp): Don't undef.
17019
17020 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17021
17022 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17023 (TIOCSIGSEND): Don't test IRIX6.
17024 (bcopy, bzero, bcmp): Define conditionally.
17025
17026 2008-02-01 Kenichi Handa <handa@m17n.org>
17027
17028 * buffer.c (Qas, Qmake, Qto): New variables.
17029 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17030 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17031
17032 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17033 we are inserting a process output into a multibyte buffer.
17034
17035 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17036 multibyte_char_to_unibyte.
17037
17038 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17039 by the primary charset, make it eight-bit char.
17040 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17041
17042 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17043 (charset_8_bit__control, charset_8_bit_graphic)
17044 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17045 (define_charset_internal): New function.
17046 (syms_of_charset): Call define_charset_internal for pre-defined
17047 charsets.
17048
17049 * charset.h (charset_8_bit): Extern it.
17050
17051 * coding.c (make_conversion_work_buffer): Adjust for the change
17052 of Fset_buffer_multibyte.
17053 (encode_coding_raw_text): Increment p0 in the loop.
17054
17055 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17056
17057 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17058 for the change of Fset_buffer_multibyte.
17059
17060 * fns.c (Fstring_to_multibyte): New function.
17061 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17062
17063 2008-02-01 Dave Love <fx@gnu.org>
17064
17065 * xfns.c (x_put_x_image): Declare args.
17066
17067 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17068 (try_font_list): Declare an arg.
17069
17070 * xdisp.c (message2_nolog, set_message): Declare an arg.
17071
17072 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17073
17074 * syntax.c (scan_sexps_forward): Declare an arg.
17075
17076 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17077 Declare an arg.
17078
17079 * lisp.h (Fnew_fontset): Declare.
17080
17081 * keymap.c (push_key_description): Call CHARACTERP correctly.
17082
17083 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17084 (face_for_char): Delete unused vars.
17085 (Fset_fontset_font): Doc fix. Delete unused vars.
17086
17087 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17088
17089 * composite.c (update_compositions): Declare arg.
17090
17091 * cm.c (calccost, cmgoto): Declare args.
17092
17093 * charset.c: Remove `emacs' conditional. Doc fixes.
17094 (map_char_table_for_charset): Declare.
17095
17096 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17097
17098 * ccl.c: Remove `emacs' conditional.
17099
17100 2008-02-01 Kenichi Handa <handa@m17n.org>
17101
17102 The following changes are to allow specifying multiple font
17103 patterns for a character range (specified by script or charset).
17104
17105 * Makefile.in (abbrev.o): Depend on syntax.h.
17106 (xfaces.o): Depend on charset.h.
17107
17108 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17109 SINGLE_BYTE_CHAR_P.
17110
17111 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17112
17113 * character.h (Vchar_script_table): Extern it.
17114
17115 * character.c (Vscript_alist): Delete.
17116 (Vchar_script_table, Qchar_script_table): New variable.
17117 (syms_of_character): Declare Vchar_script_table as a lisp variable
17118 and initialize it.
17119
17120 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17121 have property char-table-extra-slots, make no extra slot.
17122
17123 * dispextern.h (struct face): Delete member `charset'.
17124 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17125 SINGLE_BYTE_CHAR_P.
17126 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17127 Add prototypes.
17128 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17129 (generate_ascii_font_name): Rename from generate_ascii_font.
17130
17131 * fontset.h (get_font_repertory_func): New prototype.
17132 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17133 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17134
17135 * fontset.c (Qprepend, Qappend): New variables.
17136 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17137 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17138 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17139 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17140 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17141 (load_font_get_repertory): New functions.
17142 (fontset_set): Delete.
17143 (fontset_face): New arg FACE. Return face ID, not face.
17144 Complete re-write to handle new fontset structure. Change caller.
17145 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17146 (face_for_char): Don't call lookup_face.
17147 (make_fontset_for_ascii_face): New arg FACE.
17148 (fs_load_font): New arg CHARSET_ID. Don't check
17149 Vfont_encoding_alist here.
17150 (find_font_encoding): New function.
17151 (list_fontsets): Use STRINGP, not ! NILP.
17152 (accumulate_script_ranges): New function.
17153 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17154 re-written to handle new fontset structure.
17155 (Ffontset_font): Return a copy of element.
17156 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17157 docstring of font-encoding-alist.
17158
17159 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17160 (Fset_fotset_font): Fix arguments to 5.
17161
17162 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17163
17164 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17165 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17166 (highlight_trailing_whitespace): Adjust for the change of
17167 lookup_named_face.
17168
17169 * xfaces.c: Include charset.h.
17170 (load_face_font): Delete argument C. Change caller.
17171 (generate_ascii_font_name): Rename from generate_ascii_font.
17172 (font_name_registry): New function.
17173 (cache_face): Store ascii faces before non-ascii faces in buckets.
17174 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17175 Lookup only ascii faces.
17176 (lookup_non_ascii_face): New function.
17177 (lookup_named_face): Delete argument C. Change caller.
17178 (lookup_derived_face): Delete argument C. Change caller.
17179 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17180 a string, just call font_list with it.
17181 (choose_face_font): Delete arguments FACE and C. New arg
17182 FONT_SPEC. Change caller.
17183 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17184 Change caller.
17185 (realize_non_ascii_face): New function.
17186 (realize_x_face): Call load_face_font here.
17187 (realize_tty_face): Delete argument C. Change caller.
17188 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17189 get a face ID.
17190 (dump_realized_face): Don't print charset of FACE.
17191
17192 * xfns.c (x_set_font): Always call x_new_fontset and
17193 store_frame_parameter.
17194 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17195 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17196
17197 * xterm.h (x_get_font_repertory): Extern it.
17198
17199 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17200 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17201 it->multibyte_p is zero.
17202 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17203 (x_new_fontset): If FONTSETNAME doesn't match any existing
17204 fontsets, create a new one.
17205 (x_get_font_repertory): New function.
17206
17207 2008-02-01 Kenichi Handa <handa@m17n.org>
17208
17209 * coding.c (Ffind_coding_systems_region_internal): Detect an
17210 ASCII only string correctly.
17211
17212 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17213 version is 0.
17214
17215 2008-02-01 Kenichi Handa <handa@m17n.org>
17216
17217 * lread.c: Include "coding.h".
17218 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17219 (load_each_byte, unread_char): New variables.
17220 (readchar_backlog): Delete.
17221 (readchar): Return a character unless load_each_byte is nonzero.
17222 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17223 cons. If unread_char is not -1, simply return it.
17224 (unreadchar): Handle the case that readcharfun is
17225 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17226 (read_multibyte): Delete.
17227 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17228 (read_emacs_mule_char): New functions.
17229 (Fload): Even if the file doesn't have the extension ".elc", if
17230 safe_to_load_p returns a positive version number, assume that the
17231 file contains bytecompiled code. If the version is less than 22,
17232 load the file while decoding multibyte sequences by emacs-mule.
17233 (readevalloop): Don't use readchar_backlog.
17234 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17235 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17236 (read_escape): Delete the arg BYTEREP.
17237 (read1): Set load_each_byte to 1 temporarily while handling
17238 #@NUMBER. Don't call read_multibyte.
17239 (read_vector): Call Fread with a cons. If readcharfun is
17240 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17241 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17242 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17243 and Qload_force_doc_strings.
17244
17245 2008-02-01 Kenichi Handa <handa@m17n.org>
17246
17247 * xdisp.c (face_before_or_after_it_pos): Call
17248 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17249
17250 2008-02-01 Kenichi Handa <handa@m17n.org>
17251
17252 * character.h (TRAILING_CODE_P): New macro.
17253 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17254 (string_char_with_unification): Fix prototype.
17255 (Vscript_alist): Extern it.
17256
17257 * character.c (Vscript_alist): New variable.
17258 (string_char_with_unification, str_as_unibyte)
17259 (string_escape_byte8): Add `const' to local variables.
17260 (syms_of_character): Declare script-alist as a Lisp variable.
17261
17262 * charset.h (Vcharset_ordered_list): Extern it.
17263 (charset_ordered_list_tick): Extern it.
17264 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17265 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17266 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17267 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17268 (Funify_charset): Adjust for the change of Funify_charset.
17269
17270 * charset.c (charset_ordered_list_tick): New variable.
17271 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17272 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17273 deunify intead of unify a charset.
17274 (string_xstring_p): Add `const' to local variables.
17275 (find_charsets_in_text): Add `const' to arguments and local variables.
17276 (encode_char): Adjust for the change of Funify_charset. Fix
17277 detecting of invalid code.
17278 (Fset_charset_priority): Increment charset_ordered_list_tick.
17279 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17280 and TO_CODE.
17281
17282 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17283 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17284 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17285 (decode_coding_ccl, consume_chars)
17286 (Ffind_coding_systems_region_internal)
17287 (Fcheck_coding_systems_region): Add `const' to local variables.
17288
17289 * print.c (print_object): Use octal form for printing the
17290 contents of a bool vector.
17291
17292 2008-02-01 Dave Love <fx@gnu.org>
17293
17294 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17295 <version == 20>: Refuse to load.
17296
17297 2008-02-01 Dave Love <fx@gnu.org>
17298
17299 * fns.c: Move coding.h.
17300 (Qcodeset, Qdays, Qmonths): New.
17301 (concat): Use CHARACTERP instead of INTEGERP.
17302 (Flocale_codeset): Delete.
17303 (Flanginfo): New function.
17304 (syms_of_fns): Change accordingly.
17305
17306 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17307
17308 2008-02-01 Dave Love <fx@gnu.org>
17309
17310 * casetab.c (init_casetab_once, init_casetab_once): Fix
17311 CHAR_TABLE_SET call.
17312
17313 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17314
17315 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17316
17317 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17318 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17319 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17320
17321 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17322
17323 * coding.c (ENCODE_DESIGNATION, decode_eol)
17324 (make_conversion_work_buffer, code_conversion_restore)
17325 (Fdefine_coding_system_internal): Convert Lisp types.
17326 (code_conversion_restore): Use EQ, not ==.
17327 (Fencode_coding_string): Fix code_convert_string call.
17328
17329 * coding.h (code_convert_region): Fix prototype.
17330
17331 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17332
17333 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17334 (Ffontset_info): Convert Lisp types.
17335
17336 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17337
17338 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17339
17340 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17341
17342 * chartab.c: Include "...h", not <...h> in some cases.
17343
17344 * callproc.c (Fcall_process): Remove unused variables.
17345
17346 2008-02-01 Dave Love <fx@gnu.org>
17347
17348 * coding.c (Fset_coding_system_priority): Allow null arg list.
17349
17350 2008-02-01 Dave Love <fx@gnu.org>
17351
17352 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17353 (Fself_insert_and_exit): Use CHARACTERP.
17354
17355 * callproc.c (Fcall_process): Remove unused vars.
17356
17357 * xterm.c (XTread_socket): Add extra dead keysyms.
17358
17359 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17360
17361 * dispextern.h: Remove prototypes for redraw_frame,
17362 redraw_garbaged_frames.
17363
17364 * cmds.c (Fself_insert_command): Use CHARACTERP.
17365
17366 * chartab.c (make_sub_char_table): Remove unused var.
17367 (Fset_char_table_default, Fmap_char_table): Doc fix.
17368
17369 * keymap.c (access_keymap): Remove generic char code.
17370 (push_key_description): Use CHARACTERP.
17371
17372 2008-02-01 Dave Love <fx@gnu.org>
17373
17374 * charset.c: Doc fixes.
17375 (Funify_charset): Extra checking.
17376
17377 2008-02-01 Dave Love <fx@gnu.org>
17378
17379 * lread.c: Remove some unused variables.
17380 (safe_to_load_p): If safe, return the magic number version byte.
17381 (Fload): Maybe use load-with-code-conversion.
17382
17383 2008-02-01 Kenichi Handa <handa@m17n.org>
17384
17385 * category.c (Fmodify_category_entry): Don't modify the contents
17386 of category_set for characters out of the range. Avoid
17387 unnecessary modification.
17388
17389 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17390 Vchar_unify_table. The default value of the table is now nil.
17391
17392 * character.c (syms_of_character): Setup Vchar_width_table for
17393 eight-bit-control and raw-byte chars.
17394
17395 * charset.h (enum define_charset_arg_index): Delete
17396 charset_arg_parents and add charset_arg_subset and
17397 charset_arg_superset.
17398 (enum charset_attr_index): Delete charset_parents and add
17399 charset_subset and charset_superset.
17400 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17401 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17402 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17403 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17404 (CHARSET_SUPERSET): New macros.
17405 (charset_work): Extern it.
17406 (ENCODE_CHAR): Use charset_work.
17407 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17408 (map_charset_chars): Extern it.
17409
17410 * charset.c (load_charset_map): Set the default value of encoder
17411 and deunifier char-tables to nil.
17412 (map_charset_chars): Change argument. Change callers. Use
17413 map_char_table_for_charset instead of map_char_table.
17414 (Fmap_charset_chars): New optional args from_code and to_code.
17415 (Fdefine_charset_internal): Adjust for the change of
17416 `define-charset' (:parents -> :subset or :superset).
17417 (charset_work): New variable.
17418 (encode_char, syms_of_charset): Adjust for the change of
17419 Fdefine_charset_internal.
17420 (Ffind_charset_string): Setup the vector `charsets' correctly.
17421
17422 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17423 the previous change.
17424 (char_table_ref_and_range): Adjust for the above change.
17425 (map_sub_char_table_for_charset): New function.
17426 (map_char_table_for_charset): New function.
17427
17428 * keymap.c (describe_vector): Handle a char-table directly here.
17429 (describe_char_table): Delete.
17430
17431 * lisp.h (map_charset_chars): Delete.
17432
17433 2008-02-01 Dave Love <fx@gnu.org>
17434
17435 * fns.c (count_combining): Comment out (unused).
17436 (Flocale_codeset): New.
17437 (syms_of_fns): Defsubr it.
17438
17439 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17440 (size_t): Remove.
17441
17442 2008-02-01 Dave Love <fx@gnu.org>
17443
17444 * Makefile.in (chartab.o): Depend on charset.h.
17445
17446 2008-02-01 Kenichi Handa <handa@m17n.org>
17447
17448 * character.c (syms_of_character): Set the default value of
17449 Vprintable_chars to Qnil.
17450
17451 2008-02-01 Dave Love <fx@gnu.org>
17452
17453 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17454
17455 2008-02-01 Kenichi Handa <handa@m17n.org>
17456
17457 * charset.c (load_charset_map): Handle the case that from < to
17458 correctly.
17459
17460 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17461 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17462 Pay attention to raw-8-bit chars.
17463
17464 2008-02-01 Kenichi Handa <handa@m17n.org>
17465
17466 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17467 It is not bytecompiled now.
17468
17469 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17470 (charset_jisx0208): New variables.
17471 (Fdefine_charset_internal): Setup them if appropriate.
17472 (init_charset_once): Initialize them to -1.
17473
17474 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17475 (charset_jisx0208): Extern them.
17476
17477 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17478 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17479 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17480 (setup_iso_safe_charsets): Fix arguments to Fassq.
17481 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17482 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17483 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17484 (encode_coding_iso_2022): Change the 1st arg to
17485 ENCODE_ISO_CHARACTER to a variable.
17486
17487 2008-02-01 Kenichi Handa <handa@m17n.org>
17488
17489 * charset.h (enum define_charset_arg_index): New enums
17490 charset_arg_min_code and charset_arg_max_code.
17491 (struct charset): New member char_index_offset.
17492
17493 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17494 Take charset->char_index_offset into account.
17495 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17496 args[charset_arg_max_code]. Setup charset.char_index_offset.
17497 (syms_of_charset): Fix args to Fdefine_charset_internal.
17498
17499 2008-02-01 Dave Love <fx@gnu.org>
17500
17501 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17502
17503 2008-02-01 Dave Love <fx@gnu.org>
17504
17505 * coding.c: Doc fixes.
17506 (Fcoding_system_aliases): Fix return value.
17507 (Qmac): Remove (duplicated) definition.
17508
17509 2008-02-01 Dave Love <fx@gnu.org>
17510
17511 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17512 New functions.
17513
17514 * character.c (Fstring): Doc fix.
17515
17516 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17517
17518 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
17519 (font-encoding-alist): Doc fix.
17520
17521 2008-02-01 Dave Love <fx@gnu.org>
17522
17523 * term.c (costs_set): Declare static, non-initialized for pcc.
17524 (encode_terminal_code): Remove unused var.
17525
17526 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17527 for K&R.
17528
17529 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17530
17531 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17532 (suffixes): Move out of make_subsidiaries for K&R.
17533
17534 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17535
17536 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17537
17538 2008-02-01 Dave Love <fx@gnu.org>
17539
17540 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17541
17542 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17543
17544 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
17545
17546 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17547
17548 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17549
17550 2008-02-01 Kenichi Handa <handa@m17n.org>
17551
17552 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17553 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17554
17555 2008-02-01 Kenichi Handa <handa@m17n.org>
17556
17557 * coding.c (decode_coding_charset): Adjust for the change of
17558 Fdefine_coding_system_internal.
17559 (Fdefine_coding_system_internal): For a coding system of
17560 `charset' type, store a list of charset IDs in
17561 `charset_attr_charset_valids' element of coding attributes.
17562
17563 2008-02-01 Kenichi Handa <handa@m17n.org>
17564
17565 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17566 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17567 caller. Handle 2-byte and 3-byte charsets correctly.
17568 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17569 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17570 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17571 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17572 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17573 sequence.
17574 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17575 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17576 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17577 and alt&rule composition.
17578 (decode_coding_iso_2022): Handle composition correctly.
17579 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17580
17581 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17582 re-defining a charset. If the charset has :emacs-mule-id, setup
17583 emacs_mule_bytes.
17584 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17585
17586 2008-02-01 Kenichi Handa <handa@m17n.org>
17587
17588 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17589 (encode_coding_big5, encode_coding_charset): If coding requires safe
17590 encoding, produce a character specified by
17591 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17592
17593 2008-02-01 Dave Love <fx@gnu.org>
17594
17595 * xterm.c (XSetIMValues): Declare.
17596
17597 * process.c: Conditionally include sys/wait.h, pty.h.
17598
17599 * print.c (print_object): Fix print format for 64-bit systems.
17600
17601 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17602
17603 * buffer.c (emacs_strerror): Declare.
17604
17605 * fontset.c (Fclear_face_cache): Declare.
17606 (accumulate_font_info): Comment-out (unused).
17607 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17608 variables.
17609
17610 * character.h (string_escape_byte8): Declare.
17611
17612 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17613 unused vars.
17614 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17615 (Fmap_charset_chars): Doc fix.
17616
17617 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17618 (Fset_coding_system_priority, Fset_coding_system_priority)
17619 (Fdefine_coding_system_internal): Doc fix.
17620
17621 2008-02-01 Dave Love <fx@gnu.org>
17622
17623 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17624
17625 2008-02-01 Kenichi Handa <handa@m17n.org>
17626
17627 * character.c (string_escape_byte8): Make multibyte string with
17628 correct size.
17629
17630 * charset.c (Fmake_char): Delete unnecessary code.
17631
17632 2008-02-01 Kenichi Handa <handa@m17n.org>
17633
17634 * xfns.c (x_encode_text): Allocate coding.destination here, and
17635 call encode_coding_object with dst_object Qnil.
17636
17637 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17638 multibyte form correctly.
17639
17640 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
17641 against Vfont_encoding_alist.
17642
17643 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
17644 handling of charset list.
17645 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
17646 (decode_coding_object): Move point to coding->dst_pos before
17647 calling post-read-conversion function.
17648 (encode_coding_object): Give correct arguments to
17649 pre-write-conversion. Ignore the return value of
17650 pre-write-conversion function. Pay attention to the case that
17651 pre-write-conversion changes the current buffer. If dst_object is
17652 Qt, even if coding->src_bytes is zero, allocate at least one byte
17653 to coding->destination.
17654
17655 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
17656
17657 * charset.c (Fmake_char): Make it more backward compatible.
17658 (Fmap_charset_chars): Fix docstring.
17659
17660 2008-02-01 Dave Love <fx@gnu.org>
17661
17662 * coding.c: Doc fixes.
17663 (Fdefine_coding_system_alias): Use names, not symbols, in
17664 coding-system-alist.
17665
17666 2008-02-01 Kenichi Handa <handa@m17n.org>
17667
17668 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
17669 of calling free_realized_face.
17670
17671 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
17672
17673 * charset.c (read_hex): Don't treat SPC as a comment starter.
17674 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
17675 (Fdecode_char): Fix typo.
17676
17677 2008-02-01 Kenichi Handa <handa@m17n.org>
17678
17679 * charset.h (struct charset): New member `code_space_mask'.
17680
17681 * coding.c (coding_set_source): Delete the local variable beg_byte.
17682 (encode_coding_charset, Fdefine_coding_system_internal):
17683 Delete the local variable charset.
17684 (Fdefine_coding_system_internal): Setup
17685 attrs[coding_attr_charset_valids] correctly.
17686
17687 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
17688 member to check if CODE is valid or not.
17689 (Fdefine_charset_internal): Initialize `code_space_mask' member.
17690 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
17691 is within the range of charset->min_code and carset->max_code.
17692
17693 2008-02-01 Dave Love <fx@gnu.org>
17694
17695 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
17696
17697 * dispextern.h (generate_ascii_font): Fix return type.
17698
17699 * xfaces.c (generate_ascii_font): Fix arg declaration.
17700
17701 * coding.c (coding_inherit_eol_type)
17702 (Fset_terminal_coding_system_internal)
17703 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
17704
17705 2008-02-01 Kenichi Handa <handa@m17n.org>
17706
17707 * coding.c (decode_coding_charset, encode_coding_charset): Handle
17708 multiple charsets correctly.
17709
17710 2008-02-01 Kenichi Handa <handa@m17n.org>
17711
17712 * search.c (boyer_moore): Fix handling of multibyte character
17713 translation.
17714
17715 * xdisp.c (display_mode_element): When the variable `elt' is
17716 changed, update `this' and `lisp_string'.
17717
17718 2008-02-01 Kenichi Handa <handa@m17n.org>
17719
17720 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
17721
17722 * callproc.c (Fcall_process): Be sure to give the current buffer
17723 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
17724
17725 * charset.c (struct charset_map_entries): New struct.
17726 (load_charset_map): Rename from parse_charset_map. New args
17727 entries and n_entries. Change caller.
17728 (load_charset_map_from_file): Rename from load_charset_map.
17729 Change caller. New arg control_flag. Call load_charset_map at
17730 the tail.
17731 (load_charset_map_from_vector): New function.
17732 (Fdefine_charset_internal): Setup charset.compact_codes_p.
17733 (encode_char): If the charset is compact, change a character index
17734 to a code point.
17735
17736 * coding.c (coding_alloc_by_making_gap): Check the case that the
17737 source and destination are the same correctly.
17738 (decode_coding_raw_text): Set coding->consumed_char and
17739 coding->consumed to 0.
17740 (produce_chars): If coding->chars_at_source is nonzero, update
17741 coding->consumed_char and coding->consumed before calling
17742 alloc_destination.
17743 (Fdefine_coding_system_alias): Register ALIAS in
17744 Vcoding_system_alist.
17745 (syms_of_coding): Define `no-conversion' coding system at the tail.
17746
17747 * fileio.c (Finsert_file_contents): Set coding_system instead of
17748 val. If the current buffer is multibyte, always call
17749 decode_coding_gap.
17750
17751 * xfaces.c (try_font_list): Give higher priority to fontset's
17752 family than face's family.
17753
17754 2008-02-01 Kenichi Handa <handa@m17n.org>
17755
17756 * callproc.c (Fcall_process): Be sure to give the current buffer
17757 to decode_coding_c_string.
17758
17759 * xfaces.c (try_font_list): Give a family specified in a fontset
17760 higher priority than a family specified in a face.
17761
17762 2008-02-01 Kenichi Handa <handa@m17n.org>
17763
17764 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
17765 Fix arguments to insert_from_buffer.
17766
17767 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
17768
17769 2008-02-01 Kenichi Handa <handa@m17n.org>
17770
17771 * coding.c (produce_chars): Set the variable `multibytep' correctly.
17772 (decode_coding_gap): Set coding->dst_multibyte correctly.
17773
17774 2008-02-01 Kenichi Handa <handa@m17n.org>
17775
17776 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
17777 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
17778 (encode_coding_utf_16): Substitute coding->default_char for
17779 non-Unicode characters.
17780 (decode_coding): Don't call record_insert here.
17781 (setup_coding_system): Initialize `surrogate' of
17782 coding->spec.utf_16 to 0.
17783 (EMIT_ONE_BYTE): Fix for multibyte case.
17784
17785 * insdel.c (insert_from_gap): Call record_insert.
17786
17787 2008-02-01 Kenichi Handa <handa@m17n.org>
17788
17789 * casefiddle.c (casify_region): Fix multibyte case.
17790
17791 * character.c (c_string_width): Add return type `int'.
17792 (char_string_with_unification): Delete arg ADVANCED.
17793
17794 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
17795 (CHAR_STRING): Adjust for the change of char_string_with_unification.
17796 (CHAR_STRING_ADVANCE): Make it do-while statement.
17797
17798 * chartab.c (sub_char_table_set_range): Optimize for the case
17799 DEPTH == 3. Add workaround code for a GCC optimization bug.
17800
17801 * charset.c (parse_charset_map): Remove an unused variable.
17802
17803 * coding.c: Delete unused variables.
17804
17805 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
17806 earlier. If inserted is zero and the coding system doesn't
17807 require flushing, don't call decode_coding_gap.
17808
17809 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
17810
17811 2008-02-01 Kenichi Handa <handa@m17n.org>
17812
17813 The following changes are for using Unicode as an internal
17814 character model, and use UTF-8 format for buffer/string
17815 representation.
17816
17817 * .gdbinit (xchartable): Adjust for the change of char table structure.
17818 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
17819
17820 * Makefile.in (obj): Add character.o and chartab.o.
17821 (lisp, shortlisp): Remove utf-8.elc.
17822 (*.o): For many files, change dependency on charset.h to
17823 character.h, and add dependency on character.h.
17824 (character.o, chartab.o): New targets.
17825
17826 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
17827 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
17828 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
17829 of "charset.h".
17830
17831 * dired.c, filelock.c: Include "character.h".
17832
17833 * alloc.c: Include "character.h" instead of "charset.h".
17834 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
17835 (syms_of_alloc): Remove defsubr for Smake_char_table.
17836
17837 * buffer.c: Include "character.h" instead of "charset.h", don't
17838 include "coding.h".
17839 (Fset_buffer_multibyte): Adjust for UTF-8.
17840
17841 * buffer.h: EXFUN Fbuffer_live_p.
17842
17843 * callproc.c: Include "character.h" instead of "charset.h".
17844 (Fcall_process): Big change for the new code-conversion APIs.
17845
17846 * casetab.c: Include "character.h" instead of "charset.h".
17847 (set_canon, set_identity, shuffle): Adjust for the new
17848 map_char_table spec.
17849 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
17850 accessing the char table structure.
17851
17852 * chartab.c: New file that implements char table.
17853
17854 * category.c: Include "character.h".
17855 (copy_category_entry): New function.
17856 (copy_category_table): Call map_char_table and copy_category_entry.
17857 (Fmake_category_table): Initialize all top-level slots.
17858 (char_category_set): New function.
17859 (modify_lower_category_set): Delete.
17860 (Fmodify_category_entry): Call char_table_ref_and_range.
17861
17862 * category.h (CATEGORY_SET): Just call char_category_set.
17863
17864 * ccl.c: Include "character.h".
17865 (Qccl, Qcclp): New variables.
17866 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
17867 it's less than 256.
17868 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
17869 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
17870 and DST type.
17871 (ccl_driver): Change types of argument, adjust code accordingly.
17872 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
17873 ccl_driver.
17874 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
17875
17876 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
17877 New members src_multibyte, dst_multibyte, consumed, and produced.
17878 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
17879 (CODING_SPEC_CCL_PROGRAM): New macro.
17880 (ccl_driver): Update prototype.
17881 (Qccl, Qcclp, Fccl_program_p): Extern them.
17882 (CHECK_CCL_PROGRAM): New macro.
17883
17884 * character.c, character.h, chartab.c: New files.
17885
17886 * charset.c: Mostly re-written. Move character and multibyte sequence
17887 handling codes to character.c.
17888
17889 * charset.h: Mostly re-written. Move character and multibyte sequence
17890 handling codes to character.h.
17891
17892 * coding.c, coding.h: Mostly re-written.
17893
17894 * composite.c: Include "character.h" instead of "charset.h".
17895 (CHAR_WIDTH): Move to character.h.
17896 (HASH_KEY, HASH_VALUE): Delete.
17897
17898 * composite.h (enum composition_method): Change order of enumeration
17899 symbols.
17900
17901 * data.c: Include "character.h" instead of "charset.h".
17902 (Faref): Call CHAR_TABLE_REF for a char table.
17903 (Faset): Call CHAR_TABLE_SET for a char table.
17904
17905 * dispextern.h (free_realized_face, check_face_attribytes)
17906 (generate_ascii_font): Extern them.
17907 (free_realized_multibyte_face): Delete extern.
17908
17909 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
17910 table structure.
17911
17912 * editfns.c: Include "character.h" instead of "charset.h".
17913 (Fchar_to_string): Always call CHAR_STRING.
17914
17915 * emacs.c (main): Call init_charset_once, init_charset,
17916 syms_of_chartab, and syms_of_character.
17917
17918 * fileio.c: Include "character.h" instead of "charset.h".
17919 (Finsert_file_contents): Big change for the new code-conversion API.
17920 (choose_write_coding_system, Fwrite_region): Likewise.
17921 (build_annotations_2): Delete.
17922 (e_write): Big change for the new code-conversion API.
17923
17924 * fns.c: Include "character.h" instead of "charset.h".
17925 (copy_sub_char_table): Move to chartab.c.
17926 (Fcopy_sequence): Call copy_char_table for a char table.
17927 (concat): Delete codes calling count_multibyte.
17928 (string_char_to_byte, string_byte_to_char): Adjust for the new
17929 multibyte form.
17930 (internal_equal): Adjust for the change of char table structure.
17931 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
17932 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
17933 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
17934 (char_table_translate, optimize_sub_char_table)
17935 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
17936 chartab.c.
17937 (char_table_ref_and_index): Delete.
17938 (HASH_KEY, HASH_VALUE): Move to lisp.h.
17939 (Fmd5): Call preferred_coding_system instead of accessing
17940 Vcoding_category_list. Adjust for the new code-conversion API.
17941 (syms_of_fns): Move defsubr for char table related functions to
17942 chartab.c.
17943
17944 * fontset.c: Mostly re-written.
17945
17946 * fontset.h (struct font_info): Change type of the member encoding_type.
17947 (enum FONT_SPEC_INDEX): New enum.
17948 (fontset_font_pattern, fs_load_font): Update prototype.
17949 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
17950
17951 * indent.c: Include "character.h" instead of "charset.h".
17952 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
17953
17954 * insdel.c: Include "character.h" instead of "charset.h".
17955 (copy_text): Don't refer to Vnonascii_translation_table.
17956 (insert_from_gap): New function.
17957
17958 * keyboard.c: Include "character.h" instead of "charset.h".
17959 (command_loop_1): Never call direct_output_forward_char before
17960 a non-ASCII character.
17961 (read_char): If Vkeyboard_translate_table is a char table, always
17962 translate a character.
17963
17964 * keymap.c: Include "character.h".
17965 (store_in_keymap): Handle the case that IDX is a cons.
17966 (Fdefine_key): Handle the case that KEY is a cons and the car part
17967 is also a cons (range).
17968 (push_key_description): Adjust for the new character code.
17969 (describe_vector): Call describe_char_table for a char table.
17970 (describe_char_table): New function.
17971
17972 * keymap.h (describe_char_table): Extern it.
17973
17974 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17975 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17976 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17977 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17978 Delete.
17979 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17980 structure.
17981 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17982 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17983 (CHARTAB_SIZE_BITS_3): New macros.
17984 (chartab_size): Extern it.
17985 (struct Lisp_Char_Table): Re-design.
17986 (struct Lisp_Sub_Char_Table): New structure.
17987 (HASH_KEY, HASH_VALUE): Move from fns.c.
17988 (CHARACTERBITS): Define as 22.
17989 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
17990 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
17991 (GC_SUB_CHAR_TABLE_P): New macro.
17992 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
17993 (code_convert_string_norecord): Deleted extern.
17994 (init_character_once, syms_of_character, init_charset)
17995 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
17996
17997 * lread.c: Include "character.h".
17998 (read_multibyte): New arg NBYTES.
17999 (read_escape): Change the meaning of returned *BYTEREP.
18000 (to_multibyte): Delete.
18001 (read1): Adjust the handling of char table and string.
18002
18003 * print.c: Include "character.h" instead of "charset.h".
18004 (print_string): Convert 8-bit raw bytes to octal form by
18005 string_escape_byte8.
18006 (print_object): Adjust for the new multibyte form. Print 8-bit
18007 raw bytes always in octal form. Handle sub char table correctly.
18008
18009 * process.c: Include "character.h" instead of "charset.h".
18010 (read_process_output, send_process): Adjust for the new
18011 code-conversion API.
18012
18013 * puresize.h (BASE_PURESIZE): Increase.
18014
18015 * regex.c: Include "character.h" instead of "charset.h".
18016 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18017 (regex_compile): Accept a range whose starting and ending
18018 character have different leading bytes.
18019 (analyse_first): Adjust for the above change.
18020
18021 * search.c: Include "character.h" instead of "charset.h".
18022 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18023 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18024
18025 * syntax.c: Include "character.h" instead of "charset.h".
18026 (syntax_parent_lookup): Delete.
18027 (Fmodify_syntax_entry): Accept a cons as CHAR.
18028 (skip_chars): Adjust for the new multibyte form.
18029 (init_syntax_once): Call char_table_set_range instead of directly
18030 accessing the structure of a char table.
18031
18032 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18033 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18034 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18035 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18036
18037 * term.c: Include "buffer.h" and "character.h".
18038 (encode_terminal_code, write_glyphs): Adjust for the new
18039 code-conversion API.
18040 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18041
18042 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18043
18044 * xdisp.c: Include "character.h".
18045 (get_next_display_element): Adjust for the new multibyte form.
18046 (disp_char_vector): Adjust for the new char table structure.
18047 (decode_mode_spec_coding): Adjust for the new structure of
18048 coding system.
18049 (decode_mode_spec): Adjust for the new code-conversion API.
18050
18051 * xfaces.c: Include "character.h" instead of "charset.h".
18052 (load_face_font): Adjust for the change of choose_face_font and
18053 FS_LOAD_FONT.
18054 (generate_ascii_font): New function.
18055 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18056 (set_font_frame_param): Adjust for the change of choose_face_font.
18057 (free_realized_face): Make it public.
18058 (free_realized_faces_for_fontset): Rename from
18059 free_realized_multibyte_face. Free also faces realized for ASCII.
18060 (choose_face_font): Change arguments. Adjust for the change of
18061 fontset_font_pattern and FS_LOAD_FONT.
18062
18063 * xfns.c: Include "character.h".
18064 (x_encode_text): Adjust for the new code-conversion API.
18065
18066 * xselect.c: Don't include "charset.h".
18067 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18068
18069 * xterm.c: Include "character.h".
18070 (x_encode_char): New argument CHARSET. Change caller.
18071 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18072 Call ENCODE_CHAR instead of SPLIT_CHAR.
18073 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18074 CHAR_WIDTH instead of CHARSET_WIDTH.
18075 (XTread_socket): Adjust for the new code-conversion API.
18076 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18077 (x_load_font): Adjust for the change of struct font.
18078
18079 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18080
18081 * xfaces.c (face_at_buffer_position): Remove unused vars.
18082
18083 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18084
18085 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18086 Fix overflow checking.
18087
18088 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18089
18090 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18091 Cancel previous change.
18092
18093 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18094
18095 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18096 ccl->eight_bit_control. Fix check for buffer overflow.
18097 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18098 (ccl_driver): Initialize extra_bytes to 0.
18099
18100 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18101
18102 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18103 return it ORed with ctrl_modifier.
18104
18105 2008-01-29 Miles Bader <miles@gnu.org>
18106
18107 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18108
18109 2008-01-28 Jason Rumney <jasonr@gnu.org>
18110
18111 * w32.c (stat): Don't double check for networked drive.
18112
18113 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18114
18115 * window.c (run_window_configuration_change_hook): New function.
18116 Code extracted from set_window_buffer. Set the selected frame.
18117 (set_window_buffer): Use it.
18118 * window.h (run_window_configuration_change_hook): Declare.
18119 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18120
18121 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18122
18123 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18124
18125 * Makefile.in: Remove references to unused macros.
18126
18127 2008-01-26 Eli Zaretskii <eliz@gnu.org>
18128
18129 * w32.c (g_b_init_get_sid_sub_authority)
18130 (g_b_init_get_sid_sub_authority_count): New static variables.
18131 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18132 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18133 (init_user_info): Use them to retrieve uid and gid.
18134 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18135 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18136 st_uid and st_gid of the file.
18137
18138 2008-01-26 Jason Rumney <jasonr@gnu.org>
18139
18140 * w32.c (logon_network_drive): New function.
18141 (stat): Use it.
18142
18143 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
18144
18145 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18146 invisible text covered with an ellipsis.
18147
18148 2008-01-25 Richard Stallman <rms@gnu.org>
18149
18150 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18151 jump back to beginning. Move some other initializations after that.
18152 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18153 New variables.
18154 (syms_of_xdisp): Init them.
18155
18156 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18157
18158 * buffer.c (reset_buffer_local_variables):
18159 Implement `permanent-local-hook'.
18160 (Qpermanent_local_hook): New variable.
18161 (syms_of_buffer): Init and staticpro it.
18162
18163 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
18164
18165 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18166
18167 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18168
18169 * fns.c (Fclrhash): Return TABLE.
18170
18171 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18172
18173 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18174 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18175 is set even without positional changes.
18176 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18177
18178 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18179
18180 2008-01-23 Jason Rumney <jasonr@gnu.org>
18181
18182 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18183
18184 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18185 the unicode range available in MULE by locale-coding-system.
18186 Improve dbcs lead byte detection. Set event timestamp and modifiers
18187 earlier.
18188
18189 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18190
18191 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18192 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18193 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18194 when used on child processes.
18195
18196 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
18197
18198 * dbusbind.c (Fdbus_method_return_internal): Rename from
18199 Fdbus_method_return.
18200 (Fdbus_unregister_object): Move to dbus.el.
18201 (Fdbus_call_method, Fdbus_method_return_internal)
18202 (Fdbus_send_signal): Improve debug messages.
18203
18204 2008-01-20 Martin Rudalics <rudalics@gmx.at>
18205
18206 * undo.c (undo_inhibit_record_point): New variable.
18207 (syms_of_undo): Initialize it.
18208 (record_point): Don't record point when undo_inhibit_record_point
18209 is set.
18210
18211 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18212
18213 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18214
18215 * xdisp.c (Qauto_hscroll_mode): New var.
18216 (syms_of_xdisp): Initialize it.
18217 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18218 window's buffer.
18219 (hscroll_windows): Don't check automatic_hscrolling_p here.
18220
18221 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18222 vscroll if we're setting window-buffer to the value it already has.
18223
18224 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18225
18226 * m/intel386.h: Remove references to XENIX.
18227
18228 2008-01-17 Andreas Schwab <schwab@suse.de>
18229
18230 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18231 instead of HAVE_X86_64_LIB64_DIR.
18232 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18233
18234 2008-01-17 Glenn Morris <rgm@gnu.org>
18235
18236 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18237 to HAVE_X86_64_LIB64_DIR.
18238
18239 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18240
18241 * s/irix3-3.h:
18242 * s/irix4-0.h:
18243 * s/386-ix.h:
18244 * s/domain.h:
18245 * s/hpux9-x11r4.h:
18246 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18247
18248 * sysdep.c: Remove code containing references to symbols defined
18249 by unsupported systems.
18250
18251 2008-01-16 Glenn Morris <rgm@gnu.org>
18252
18253 * coding.c (select-safe-coding-system-function): Doc fix.
18254
18255 2008-01-15 Glenn Morris <rgm@gnu.org>
18256
18257 * config.in: Revert 2008-01-13 change: this is a generated file.
18258
18259 2008-01-13 Tom Tromey <tromey@redhat.com>
18260
18261 * lisp.h: Fix typo.
18262
18263 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18264
18265 * m/sequent-ptx.h:
18266 * m/sequent.h:
18267 * s/ptx.h:
18268 * s/ptx4-2.h:
18269 * s/ptx4.h: Remove files for systems no longer supported.
18270
18271 * callproc.c (Fcall_process): Fix previous change.
18272
18273 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18274
18275 * unexsunos4.c: Remove file, system not supported anymore.
18276
18277 * m/mips.h:
18278 * m/intel386.h:
18279 * callproc.c:
18280 * config.in:
18281 * ecrt0.c:
18282 * emacs.c:
18283 * fileio.c:
18284 * frame.c:
18285 * getpagesize.h:
18286 * keyboard.c:
18287 * lread.c:
18288 * process.c:
18289 * puresize.h:
18290 * sysdep.c:
18291 * systty.h:
18292 * syswait.h:
18293 * unexec.c:
18294 * xdisp.c:
18295 * alloc.c: Remove code containing references to symbols defined by
18296 unsupported systems.
18297
18298 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18299
18300 * coding.c (detect_coding_mask): Fix previous change.
18301
18302 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18303
18304 * coding.c (detect_coding_iso2022): New arg
18305 latin_extra_code_state. Allow Latin extra codes only
18306 when *latin_extra_code_state is nonzero.
18307 (detect_coding_mask): If there is a NULL byte, detect the encoding
18308 as UTF-16 or binary. If Latin extra codes exist, detect the
18309 encoding as ISO-2022 only when there's no other proper encoding is
18310 found.
18311
18312 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18313
18314 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18315 #ifdef MAC_OS.
18316
18317 2008-01-08 Richard Stallman <rms@gnu.org>
18318
18319 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18320
18321 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
18322
18323 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18324 menu bar in parentheses.
18325
18326 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18327
18328 * m/7300.h:
18329 * m/acorn.h:
18330 * m/alliant-2800.h:
18331 * m/alliant.h:
18332 * m/alliant1.h:
18333 * m/alliant4.h:
18334 * m/altos.h:
18335 * m/amdahl.h:
18336 * m/apollo.h:
18337 * m/att3b.h:
18338 * m/aviion-intel.h:
18339 * m/aviion.h:
18340 * m/celerity.h:
18341 * m/clipper.h:
18342 * m/cnvrgnt.h:
18343 * m/convex.h:
18344 * m/cydra5.h:
18345 * m/delta88k.h:
18346 * m/dpx2.h:
18347 * m/dual.h:
18348 * m/elxsi.h:
18349 * m/f301.h:
18350 * m/gould-np1.h:
18351 * m/gould.h:
18352 * m/i860.h:
18353 * m/ibmps2-aix.h:
18354 * m/ibmrt-aix.h:
18355 * m/ibmrt.h:
18356 * m/irist.h:
18357 * m/is386.h:
18358 * m/isi-ov.h:
18359 * m/mega68.h:
18360 * m/mg1.h:
18361 * m/news-r6.h:
18362 * m/news-risc.h:
18363 * m/news.h:
18364 * m/nh3000.h:
18365 * m/nh4000.h:
18366 * m/ns16000.h:
18367 * m/ns32000.h:
18368 * m/nu.h:
18369 * m/orion.h:
18370 * m/orion105.h:
18371 * m/paragon.h:
18372 * m/pfa50.h:
18373 * m/plexus.h:
18374 * m/pyramid.h:
18375 * m/pyrmips.h:
18376 * m/sh3el.h:
18377 * m/sps7.h:
18378 * m/sr2k.h:
18379 * m/stride.h:
18380 * m/sun1.h:
18381 * m/sun2.h:
18382 * m/sun3-68881.h:
18383 * m/sun3-fpa.h:
18384 * m/sun3-soft.h:
18385 * m/sun3.h:
18386 * m/sun386.h:
18387 * m/symmetry.h:
18388 * m/tad68k.h:
18389 * m/tahoe.h:
18390 * m/targon31.h:
18391 * m/tek4300.h:
18392 * m/tekxd88.h:
18393 * m/tower32.h:
18394 * m/tower32v3.h:
18395 * m/ustation.h:
18396 * m/wicat.h:
18397 * m/xps100.h:
18398 * s/cxux.h:
18399 * s/cxux7.h:
18400 * s/dgux.h:
18401 * s/dgux4.h:
18402 * s/dgux5-4-3.h:
18403 * s/dgux5-4r2.h:
18404 * s/esix.h:
18405 * s/esix5r4.h:
18406 * s/hiuxmpp.h:
18407 * s/hiuxwe2.h:
18408 * s/iris3-5.h:
18409 * s/iris3-6.h:
18410 * s/isc2-2.h:
18411 * s/isc3-0.h:
18412 * s/isc4-0.h:
18413 * s/isc4-1.h:
18414 * s/newsos5.h:
18415 * s/newsos6.h:
18416 * s/osf1.h:
18417 * s/osf5-0.h:
18418 * s/riscix1-1.h:
18419 * s/riscix12.h:
18420 * s/sco4.h:
18421 * s/sco5.h:
18422 * s/sunos4-0.h:
18423 * s/sunos4-1.h:
18424 * s/sunos413.h:
18425 * s/sunos4shr.h:
18426 * s/umax.h:
18427 * s/unipl5-2.h:
18428 * s/xenix.h:
18429 * cxux-crt0.s:
18430 * unexapollo.c:
18431 * unexconvex.c:
18432 * unexenix.c:
18433 * unexsni.c: Remove files for systems no longer supported.
18434
18435 * m/intel386.h: Remove references to unsupported systems.
18436
18437 * w32.c (get_emacs_configuration): Remove reference to i860.
18438
18439 * sysdep.c: Remove dead code.
18440
18441 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18442
18443 * s/rtu.h:
18444 * m/masscomp.h: Remove files. Platform is obsolete.
18445
18446 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
18447
18448 * dbusbind.c (Fdbus_method_return): New function.
18449 (xd_read_message): Add the serial number to the event.
18450 (Fdbus_register_method): Activate the function.
18451
18452 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18453
18454 * keyboard.c (read_key_sequence): Fix typo.
18455
18456 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
18457
18458 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18459 (xd_signature, xd_append_arg): Handle element type detection for
18460 empty arrays.
18461 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18462 SDATA () calls; this must be solved more general.
18463 (Fdbus_register_signal): Use SBYTES instead of strlen.
18464
18465 2008-01-03 Magnus Henoch <magnus@zemdatav>
18466
18467 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18468 unsigned int for byte values (necessary for big-endian platform).
18469 (Fdbus_call_method): Handle the case of no returned arguments.
18470
18471 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18472
18473 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18474
18475 2007-12-31 Magnus Henoch <mange@freemail.hu>
18476
18477 * dbusbind.c (xd_signature): Signature of variant is just "v".
18478
18479 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
18480
18481 * dbusbind.c: Fix several errors and compiler warnings.
18482 Reported by Tom Tromey <tromey@redhat.com>.
18483 (XD_ERROR, XD_DEBUG_MESSAGE)
18484 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18485 (xd_append_arg): Part for basic D-Bus types rewritten.
18486 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18487 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18488 appropriate.
18489 (xd_read_message): Return Qnil. Don't signal an error; it is not
18490 useful during event reading.
18491 (Fdbus_register_signal): Signal an error if the check for
18492 FUNCTIONP fails.
18493 (Fdbus_register_method): New function. The implementation is not
18494 complete, the call of the function signals an error therefore.
18495 (Fdbus_unregister_object): New function, renamed from
18496 Fdbus_unregister_signal. The initial check signals an error, if
18497 the object is not well formed.
18498
18499 2007-12-30 Richard Stallman <rms@gnu.org>
18500
18501 * textprop.c (get_char_property_and_overlay):
18502 Signal error if POSITION is out of range in a buffer.
18503
18504 2007-12-29 Martin Rudalics <rudalics@gmx.at>
18505
18506 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18507 because the original parameters are in pure storage now.
18508
18509 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18510
18511 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18512
18513 2007-12-22 Eli Zaretskii <eliz@gnu.org>
18514
18515 * callint.c (syms_of_callint) <command-history>: Add reference to
18516 history-length in the doc string.
18517
18518 2007-12-17 Jason Rumney <jasonr@gnu.org>
18519
18520 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18521 before passing as wParam.
18522
18523 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
18524
18525 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18526 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18527 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18528 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18529 as number.
18530 (Fdbus_call_method): Fix docstring.
18531
18532 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
18533
18534 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18535 New macros.
18536 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18537 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18538 Simplify.
18539 (xd_signature): New function.
18540 (xd_append_arg): Compute also signatures. Major rewrite.
18541 (xd_retrieve_arg): Make debug messages friendly.
18542 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18543 Check for signatures of arguments.
18544
18545 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
18546
18547 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18548 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18549 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18550 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18551 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18552 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18553 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18554 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18555 (xd_retrieve_value): Remove. Functionality included in ...
18556 (xd_append_arg): New function.
18557 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18558
18559 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
18560
18561 * dbusbind.c (top): Include <stdio.h>.
18562 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18563 dbus_message_new_method_call and dbus_message_new_signal.
18564 (Fdbus_register_signal): Rename unique_name to uname.
18565 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18566 non-existing unique name. Fix typos in matching rule. Return an
18567 object which is useful in Fdbus_unregister_signal.
18568 (Fdbus_unregister_signal): Reimplementation, in order to remove
18569 only the corresponding entry.
18570 (Vdbus_registered_functions_table): Change the order of entries.
18571 Apply these changes in xd_read_message and Fdbus_register_signal.
18572
18573 2007-12-16 Andreas Schwab <schwab@suse.de>
18574
18575 * fileio.c (Finsert_file_contents): Fix overflow check to not
18576 depend on undefined integer overflow.
18577
18578 2007-12-14 Jason Rumney <jasonr@gnu.org>
18579
18580 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18581 for characters above 127.
18582
18583 2007-12-13 Jason Rumney <jasonr@gnu.org>
18584
18585 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18586 before dereferencing array.
18587 (lookup_vk_code): Remove zero comparison.
18588
18589 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
18590
18591 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18592 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18593 Use `unsigned int' instead of `uint'.
18594 (xd_read_message, Fdbus_register_signal): Split expressions into
18595 multiple lines before operators "&&" and "||", according to the
18596 GNU Coding Standards.
18597
18598 2007-12-14 Eli Zaretskii <eliz@gnu.org>
18599
18600 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18601
18602 2007-12-12 Juri Linkov <juri@jurta.org>
18603
18604 * buffer.c (Frename_buffer): In interactive spec replace
18605 `read-buffer' with `read-string' that uses `buffer-name-history'
18606 as history, and the current buffer's name as default.
18607
18608 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18609
18610 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18611 manipulating the backtrace manually.
18612 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18613 (struct backtrace, backtrace_list): Remove.
18614 (command_loop_1): Remove dead var `no_direct'.
18615
18616 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18617 preserve non-built-in buffer-local variables.
18618 (Fkill_all_local_variables): Don't re-create&re-set permanent
18619 buffer-local variables.
18620
18621 2007-12-09 Juri Linkov <juri@jurta.org>
18622
18623 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18624 Lisp code that uses `read-buffer' with current buffer as default.
18625
18626 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
18627
18628 * dbusbind.c (xd_read_message): Generate an event for every
18629 registered handler. There might be several handlers registered
18630 for the same signal.
18631 (Fdbus_register_signal): Don't overwrite a registration for the
18632 same signal. Add a new registration if handlers are different.
18633 (Vdbus_registered_functions_table): Rework doc string.
18634
18635 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
18636
18637 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18638 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18639 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18640 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
18641 Unify argument lists.
18642 (xd_read_message, Fdbus_register_signal): Reorder and extend event
18643 arguments and hash table keys. Use unique name for service.
18644 (Fdbus_unregister_signal): Remove checks.
18645 (Vdbus_registered_functions_table): Fix doc string.
18646
18647 2007-12-05 Magnus Henoch <mange@freemail.hu>
18648
18649 * process.c (make_process): Initialize pty_flag to 0.
18650
18651 2007-12-05 Jason Rumney <jasonr@gnu.org>
18652
18653 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
18654 specified XBMs.
18655
18656 2007-12-05 Richard Stallman <rms@gnu.org>
18657
18658 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
18659
18660 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18661
18662 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
18663 New variable.
18664 (mac_try_close_socket) [MAC_OSX]: New function.
18665 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
18666 Update cfsockets_for_select. Replace invalid CFRunLoop source.
18667
18668 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
18669 Use mac_try_close_socket.
18670
18671 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18672
18673 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
18674 reloc_base.
18675 (copy_dysymtab): Compute relocation base here.
18676 (rebase_reloc_address) [__ppc64__]: New function.
18677 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
18678 changed.
18679
18680 2007-12-05 Jason Rumney <jasonr@gnu.org>
18681
18682 * w32proc.c (sys_spawnve): Quote args with wildcards.
18683
18684 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18685
18686 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
18687 __objc_* sections.
18688 (unrelocate) [_LP64]: Set relocation base to address of data segment.
18689
18690 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
18691
18692 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
18693 Move check for Vdbus_registered_functions_table to
18694 xd_read_queued_messages.
18695 (xd_read_queued_messages): Protect xd_read_message calls by
18696 internal_condition_case_1.
18697
18698 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
18699
18700 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
18701 Qdbus_system_bus and Qdbus_session_bus, respectively.
18702 (Vdbus_intern_symbols): Remove.
18703 (Vdbus_registered_functions_table): New hash table.
18704 (XD_SYMBOL_INTERN_SYMBOL): Remove.
18705 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
18706 Rewrite in order to manage registered functions by hash table
18707 Vdbus_registered_functions_table.
18708
18709 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
18710
18711 * xterm.c: Update URL to Window Manager Specification in comment.
18712
18713 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
18714
18715 * config.in (HAVE_DBUS): Add.
18716
18717 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
18718 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
18719 (obj): Add $(DBUS_OBJ).
18720 (LIBES): Add $(DBUS_LIBS).
18721 (dbusbind.o): New target.
18722
18723 * dbusbind.c: New file.
18724
18725 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
18726
18727 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
18728 (Qdbus_event): New Lisp symbol.
18729 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
18730 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
18731 (keys_of_keyboard): Define dbus-event.
18732
18733 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
18734
18735 2007-12-01 Richard Stallman <rms@gnu.org>
18736
18737 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
18738
18739 2007-11-30 Jason Rumney <jasonr@gnu.org>
18740
18741 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
18742 (w32con_reset_terminal_modes): Clear screen buffer.
18743 (w32_face_attributes): Don't use color indexes that are out of range.
18744 Only reverse the default colors.
18745
18746 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
18747 WINDOWSNT.
18748
18749 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
18750
18751 2007-11-29 Jason Rumney <jasonr@gnu.org>
18752
18753 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
18754 (w32_face_attributes): Use Vtty_defined_color_alist to determine
18755 if the terminal colors are initialized.
18756 (unspecified_fg, unspecified_bg): Remove unused declarations.
18757
18758 2007-11-29 Andreas Schwab <schwab@suse.de>
18759
18760 * keyboard.c (apply_modifiers): Fix typo.
18761
18762 2007-11-29 Richard Stallman <rms@gnu.org>
18763
18764 * keymap.c (Fcurrent_local_map): Doc fix.
18765
18766 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
18767
18768 * s/gnu-kfreebsd.h: New file.
18769
18770 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
18771
18772 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
18773 Don't cast redundantly.
18774
18775 * keyboard.c (KEY_TO_CHAR): New macro.
18776 (parse_modifiers, apply_modifiers): Accept integer arguments.
18777 (read_key_sequence): Use them to unify the "shift->unshift" mapping
18778 for chars and symbol keys.
18779 After doing such remapping, apply function-key-map again.
18780
18781 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
18782
18783 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
18784 compiled anymore.
18785
18786 2007-11-26 Andreas Schwab <schwab@suse.de>
18787
18788 * process.c (list_processes_1): Fix indentation level of the
18789 command column.
18790
18791 2007-11-23 Andreas Schwab <schwab@suse.de>
18792
18793 * editfns.c (Fformat): Handle %c specially since it requires the
18794 argument to be of type int.
18795
18796 2007-11-23 Markus Triska <markus.triska@gmx.at>
18797
18798 * emacs.c (main): Call init_editfns before init_process, since
18799 init_process sets Vprocess_connection_type depending on OS release.
18800
18801 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
18802
18803 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
18804 (find_symbol_value): Use do_symval_forwarding.
18805
18806 * data.c (set_internal): Set the value in the `cons-cell' (for
18807 Buffer_Local_values) not only for frame-local variables.
18808
18809 2007-11-22 Andreas Schwab <schwab@suse.de>
18810
18811 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
18812 values to sprintf.
18813 * keymap.c (Fsingle_key_description): Likewise.
18814 * print.c (print_object): Likewise.
18815
18816 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
18817
18818 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
18819 file for image is nil.
18820
18821 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
18822
18823 * term.c: Include stdarg.h.
18824 (fatal): Implement using varargs.
18825 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
18826
18827 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18828
18829 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
18830 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
18831 Update call to buffer_slot_type_mismatch.
18832 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
18833 (buffer_slot_type_mismatch): Update.
18834 * buffer.c (buffer_local_types): Remove.
18835 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
18836 (defvar_per_buffer): Set the type in the buffer_objfwd.
18837
18838 2007-11-21 Jason Rumney <jasonr@gnu.org>
18839
18840 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
18841 CreateFileMapping returns NULL on failure.
18842
18843 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18844
18845 * search.c (Fset_match_data): Remove the `evaporate' feature.
18846 (unwind_set_match_data): Don't use the `evaporate' feature.
18847
18848 2007-11-21 Jason Rumney <jasonr@gnu.org>
18849
18850 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
18851
18852 * w32console.c (w32con_write_glyphs): Remove unused variables.
18853
18854 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
18855
18856 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
18857
18858 * s/darwin.h (MULTI_KBOARD): Remove.
18859
18860 * macfns.c (x_create_tip_frame, Fx_create_frame)
18861 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
18862
18863 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
18864
18865 * buffer.c (Fbuffer_local_value): Remove redundant test.
18866 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
18867 than in `current-buffer' to match the comment.
18868 Do the swap using swap_in_global_binding.
18869
18870 * data.c (store_symval_forwarding, set_internal):
18871 * eval.c (specbind): Remove dead code.
18872
18873 * coding.c (detect_coding, Fupdate_coding_systems_internal):
18874 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
18875 Since we do not want to see internal Lisp_*fwd objects here.
18876
18877 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
18878
18879 * sysdep.c (init_system_name): Use getaddrinfo if available.
18880
18881 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
18882 (x_scroll_bar_note_movement): start, end, with, height in struct
18883 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
18884
18885 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
18886
18887 * puresize.h (BASE_PURESIZE): Increase to 1190000.
18888
18889 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
18890
18891 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
18892 This undoes Richard's change of 14-Oct-2002.
18893
18894 * alloc.c (allocate_other_vector):
18895 * lisp.h (allocate_other_vector): Remove.
18896
18897 * window.c (struct save_window_data): Move non-lisp data to the end
18898 and make it `int' rather than Lisp_Object.
18899 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
18900 Done wrap/unwrap integer values.
18901 (Fset_window_configuration, compare_window_configurations):
18902 Update use of fields to their new types.
18903
18904 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
18905 Turn integer fields into `int'. Merge x_window_low and x_window_high.
18906 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
18907 (SET_SCROLL_BAR_X_WINDOW): Remove.
18908 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
18909 Access the new x_window field directly.
18910 * xterm.c (x_scroll_bar_create): Use a pseudovector.
18911 Don't wrap/unwrap integers into Lisp_Objects.
18912 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
18913 (x_scroll_bar_report_motion):
18914 Don't wrap/unwrap integers into Lisp_Objects.
18915 (x_term_init): Use SDATA.
18916 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
18917 (x_scroll_bar_set_handle, x_scroll_bar_remove)
18918 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
18919 (x_scroll_bar_report_motion, x_scroll_bar_clear):
18920 * xfns.c (x_set_background_color):
18921 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
18922 Access the new x_window field directly.
18923
18924 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
18925 (allocate_pseudovector): Make non-static.
18926
18927 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
18928 (allocate_pseudovector): Declare.
18929 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
18930
18931 2007-11-15 Andreas Schwab <schwab@suse.de>
18932
18933 * editfns.c (Fformat): Correctly format EMACS_INT values.
18934 Also take precision into account when formatting an integer.
18935
18936 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
18937
18938 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
18939
18940 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
18941 (syms_of_keyboard): Defsubr it.
18942
18943 * data.c (swap_in_global_binding): Fix longstanding bug where
18944 store_symval_forwarding was not called with the right second argument,
18945 thus causing objfwd-ing from being dropped.
18946
18947 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
18948
18949 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
18950 (Fx_display_pixel_height, Fx_display_planes)
18951 (Fx_display_color_cells, Fx_server_max_request_size)
18952 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18953 (Fx_display_visual_class, Fx_display_save_under):
18954 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
18955 (Fx_display_pixel_height, Fx_display_planes)
18956 (Fx_display_color_cells, Fx_server_max_request_size)
18957 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18958 (Fx_display_mm_height, Fx_display_mm_width)
18959 (Fx_display_backing_store, Fx_display_visual_class)
18960 (Fw32_select_font, Fx_display_save_under):
18961 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
18962 (Fx_display_pixel_height, Fx_display_planes)
18963 (Fx_display_color_cells, Fx_server_max_request_size)
18964 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18965 (Fx_display_save_under): Fix typos in docstrings.
18966
18967 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
18968
18969 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18970 corresponding to deleted entries; they are an implementation detail.
18971 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18972 Remove variables.
18973 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18974 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18975 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18976 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18977 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18978 (Fw32_define_rgb_color, Fw32_load_color_file)
18979 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18980 Fix typos in docstrings.
18981 (Fx_server_version): Reflow docstring.
18982 (Fw32_shell_execute): Doc fixes.
18983
18984 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
18985
18986 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18987 if w32_parse_hot_key returned nil.
18988
18989 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
18990
18991 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
18992
18993 2007-11-09 Jason Rumney <jasonr@gnu.org>
18994
18995 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
18996
18997 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
18998
18999 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19000 Remove W32_SCROLL_BAR_CLICK_EVENT.
19001
19002 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19003 Add MULTIMEDIA_KEY_EVENT.
19004
19005 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19006 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19007 (make_lispy_event) [WINDOWSNT]: Use it to translate
19008 MULTIMEDIA_KEY_EVENT.
19009
19010 * w32term.h (WM_APPCOMMAND): Define if not already.
19011 (GET_APPCOMMAND_LPARAM): Likewise.
19012
19013 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19014 WM_APPCOMMAND.
19015
19016 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19017 (syms_of_w32fns): Export and initialize it.
19018 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19019
19020 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
19021
19022 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19023 twice.
19024
19025 * xdisp.c (handle_face_prop): Fix last change.
19026
19027 2007-11-09 Richard Stallman <rms@gnu.org>
19028
19029 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19030 not just for after-strings and before-strings.
19031 Call face_for_overlay_string and pass the overlay to it.
19032 (handle_display_prop): Determine whether property came from an overlay.
19033 Pass OVERLAY arg to handle_single_display_spec.
19034 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19035 (load_overlay_strings): Fill in it->string_overlays.
19036 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19037
19038 * xfaces.c (face_for_overlay_string): Function renamed from
19039 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19040
19041 * dispextern.h (struct it): New elt string_overlays.
19042 New elt from_overlay, also in stack.
19043 Rearrange a few elements.
19044 (face_for_overlay_string): Decl renamed from
19045 face_at_buffer_position_no_overlays, and add argument.
19046
19047 2007-11-09 Richard Stallman <rms@gnu.org>
19048
19049 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19050 to get the base face for an overlay string.
19051
19052 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19053
19054 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19055
19056 * xdisp.c (handle_stop): Move some code out of loop.
19057
19058 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19059
19060 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19061 Fix conversion from Lisp object to ATSUFontID.
19062
19063 2007-11-09 Jason Rumney <jasonr@gnu.org>
19064
19065 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19066
19067 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19068
19069 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19070 Don't assume regions are aligned to page boundary.
19071 (print_load_command_name): Add LC_UUID if defined.
19072
19073 2007-11-09 Richard Stallman <rms@gnu.org>
19074
19075 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19076
19077 2007-11-07 Jason Rumney <jasonr@gnu.org>
19078
19079 * s/windows95.h: Remove.
19080
19081 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19082
19083 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19084 abort with a message on unhandled store_type values.
19085
19086 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19087
19088 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19089 Remove HAVE_X11R5 and HAVE_X11R4.
19090
19091 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19092
19093 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19094
19095 2007-11-01 Johan Bockgård <bojohan@gnu.org>
19096
19097 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19098 Don't set s->stippled_p here, since it has already been set by
19099 x_set_glyph_string_gc from x_draw_glyph_string.
19100
19101 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19102
19103 * sunfns.c: Remove file.
19104
19105 * m/sun386.h:
19106 * m/sun2.h:
19107 * m/sparc.h: Remove Sun windows code.
19108
19109 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19110
19111 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19112 (init_keyboard): Set current_kboard's window-system to nil.
19113 (tty_read_avail_input): Typo.
19114 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19115
19116 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19117
19118 * s/usg5-4.h:
19119 * s/usg5-3.h:
19120 * s/ptx.h:
19121 * m/is386.h:
19122 * m/ibmps2-aix.h:
19123 * Makefile.in: Remove all mentions of X10.
19124
19125 * dispnew.c (syms_of_display): Don't mention version 10.
19126
19127 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
19128
19129 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19130 ($(BLD)/abbrev.$(O)): Remove.
19131
19132 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19133
19134 Rewrite abbrev.c in Elisp.
19135 * image.c (Qcount): Don't declare as extern.
19136 (syms_of_image): Initialize and staticpro `Qcount'.
19137 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19138 * emacs.c (main): Don't call syms_of_abbrev.
19139 * Makefile.in (obj): Remove abbrev.o.
19140 (abbrev.o): Remove.
19141 * abbrev.c: Remove.
19142
19143 2007-10-26 Martin Rudalics <rudalics@gmx.at>
19144
19145 * window.c (window_min_size_2): Don't count header-line.
19146
19147 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19148
19149 * frame.h (struct frame): Move all bit fields after the first bit
19150 field to take advantage of the available space. Group all the
19151 chars together to reduce wasted space due to padding.
19152
19153 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
19154
19155 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19156
19157 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19158 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19159 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19160 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19161 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19162 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19163 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19164 (last_marked, mark_object_loop_halt): Make static.
19165
19166 * frame.c (syms_of_frame) <delete-frame-functions>:
19167 Fix typo in docstring.
19168
19169 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
19170
19171 * w32.c (init_environment): Fix tiny memory leak.
19172 (w32_get_resource): Remove unused variable `ok'.
19173
19174 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19175
19176 Make `window-system' into a keyboard-local variable (rather than
19177 frame-local as done originally by multi-tty).
19178
19179 * keyboard.h (struct kboard): Add Vwindow_system.
19180 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19181 (mark_kboards): Mark Vwindow_system.
19182
19183 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19184 (init_display): Don't set the obsolete `window-system' frame-param.
19185
19186 * xterm.c (x_term_init):
19187 * w32term.c (w32_create_terminal):
19188 * term.c (init_tty): Set Vwindow_system.
19189 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19190 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19191
19192 * xfns.c (Fx_create_frame, x_create_tip_frame):
19193 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19194 * macfns.c (Fx_create_frame):
19195 Don't set the obsolete `window-system' frame-param.
19196
19197 * frame.h (Qwindow_system): Remove.
19198 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19199 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19200
19201 2007-10-24 Richard Stallman <rms@gnu.org>
19202
19203 * frame.c (x_figure_window_size): For fullscreen case,
19204 set USPosition | PPosition without clobbering rest of window_prompting.
19205
19206 * keyboard.c (Fcurrent_idle_time): Doc fix.
19207
19208 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19209
19210 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19211
19212 * process.c (unwind_request_sigio): Only define if __ultrix__.
19213
19214 * callproc.c (child_setup): Remove spurious *.
19215
19216 * lisp.h (Fget_text_property): Declare.
19217 (have_menus_p): Declare it here rather than in sys-dep header files.
19218 * macterm.h (have_menus_p):
19219 * msdos.h (have_menus_p):
19220 * xterm.h (have_menus_p): Remove.
19221
19222 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19223 (Fmake_variable_frame_local): Just check the variable's const-ness
19224 rather than checking nil or t.
19225
19226 2007-10-22 Jason Rumney <jasonr@gnu.org>
19227
19228 * w32fns.c: Include math.h.
19229 (w32_abort): Declaration moved to nt/config.nt.
19230
19231 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19232 (abort): Redefinition moved to nt/config.nt.
19233
19234 * m/windowsnt.h: Remove.
19235
19236 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
19237
19238 * emacs.c (Fdump_emacs): Fix typo in message.
19239 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19240 <installation-directory>: Reflow docstring.
19241
19242 2007-10-22 Juri Linkov <juri@jurta.org>
19243
19244 * minibuf.c: Allow minibuffer default to be a list of default values.
19245 With empty input use the first element of this list as returned default.
19246 (string_to_object)
19247 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19248 (read_minibuf): If defalt is cons, set histstring to its car.
19249 (Fread_string): If default_value is cons, set val to its car.
19250 (Fread_buffer): If def is cons, use its car.
19251 (Fcompleting_read): If defalt is cons, set val to its car.
19252
19253 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
19254
19255 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19256
19257 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
19258
19259 * doc.c (Fdocumentation): Check for advice in all cases.
19260
19261 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
19262
19263 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19264
19265 2007-10-19 Richard Stallman <rms@gnu.org>
19266
19267 * doc.c (Fdocumentation): Check for and handle an advised function.
19268
19269 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
19270
19271 * process.c (Fset_process_filter): Doc fix.
19272
19273 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19274
19275 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19276 which caused key-translation-map to applied repeatedly (thus breaking
19277 double-mode).
19278
19279 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19280
19281 * xselect.c (x_own_selection, x_handle_selection_clear)
19282 (x_clear_frame_selections):
19283 * w32menu.c (list_of_panes, list_of_items):
19284 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19285 * textprop.c (validate_plist, interval_has_all_properties)
19286 (interval_has_some_properties, interval_has_some_properties_list)
19287 (add_properties, text_property_list):
19288 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19289 * minibuf.c (Fassoc_string):
19290 * macselect.c (x_own_selection, x_clear_frame_selections)
19291 (Fx_disown_selection_internal):
19292 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19293 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19294
19295 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
19296
19297 * process.c: Link to libs for calling res_init() if available.
19298 (Fmake_network_process): Call res_init() before getaddrinfo or
19299 gethostbyname, if possible.
19300
19301 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19302
19303 * lread.c (read1): Set pvectype for char_tables.
19304
19305 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19306 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19307 Add type checks.
19308 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19309
19310 * alloc.c (free_misc): Use XMISCTYPE.
19311 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19312
19313 2007-10-17 Glenn Morris <rgm@gnu.org>
19314
19315 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19316 (syms_of_minibuf): Add Qcompletion_ignore_case.
19317 * dired.c (Qcompletion_ignore_case): Change to external.
19318 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19319 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19320 (Fread_file_name): Use it rather than intern'ing.
19321
19322 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19323 (Fread_coding_system): Ignore case of user input.
19324
19325 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19326
19327 * xdisp.c (handle_display_prop): Ignore display specs after
19328 replacing one when string text is being replaced.
19329 (handle_single_display_spec): Pretend as if characters with display
19330 property haven't been consumed only when buffer text is being replaced.
19331
19332 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19333
19334 * xfns.c (Fx_create_frame, Fx_display_list):
19335 * window.c (window_fixed_size_p, enlarge_window)
19336 (shrink_window_lowest_first):
19337 * macterm.c (init_font_name_table):
19338 * macfns.c (Fx_create_frame, Fx_display_list):
19339 * lread.c (close_load_descs):
19340 * keyboard.c (read_char_x_menu_prompt):
19341 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19342 * coding.c (code_convert_region_unwind): Test the type of an object
19343 rather than just !NILP before extracting data from it.
19344
19345 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19346
19347 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19348 (XMISCANY): New macro.
19349 (XMISCTYPE): Use it.
19350 (struct Lisp_Misc_Any): New type.
19351 (union Lisp_Misc): Use it.
19352 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19353 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19354 (find_symbol_value, set_internal, default_value, Fset_default)
19355 (Fmake_variable_buffer_local, Fmake_local_variable)
19356 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19357 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19358 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19359 * alloc.c (allocate_buffer): Set the size and tag.
19360 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19361 Use XMISCANY.
19362 (die): Follow the GNU convention for error messages.
19363 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19364 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19365 tag any more.
19366 (set_buffer_internal_1):
19367 * frame.c (store_frame_param):
19368 * eval.c (specbind):
19369 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19370
19371 * doc.c (Fsnarf_documentation): Simplify.
19372
19373 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
19374
19375 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19376 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19377
19378 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19379
19380 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19381
19382 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
19383
19384 * eval.c (do_autoload): Don't save autoloads.
19385
19386 * data.c (Ffset): Save autoload of the function being set.
19387
19388 2007-10-07 John Paul Wallington <jpw@pobox.com>
19389
19390 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19391 parameter before setting up faces.
19392
19393 2007-10-13 Eli Zaretskii <eliz@gnu.org>
19394
19395 * ccl.c (Fregister_code_conversion_map):
19396 * keyboard.c (append_tool_bar_item): Reformat last change.
19397
19398 * lisp.h (eabs): Rename from `abs'. All callers changed.
19399
19400 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19401
19402 * buffer.c (add_overlay_mod_hooklist):
19403 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19404 * fontset.c (make_fontset):
19405 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19406 (append_tool_bar_item):
19407 * macmenu.c (grow_menu_items):
19408 * w32menu.c (grow_menu_items):
19409 * xmenu.c (grow_menu_items): Use larger_vector.
19410
19411 2007-10-13 Eli Zaretskii <eliz@gnu.org>
19412
19413 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19414 selected frame'' on MSDOS).
19415
19416 2007-10-12 Martin Rudalics <rudalics@gmx.at>
19417
19418 * frame.c (Qexplicit_name): New variable.
19419 (x_report_frame_params): Report it in parameter alist.
19420 (syms_of_frame): Intern and staticpro it.
19421
19422 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19423
19424 * macfns.c (x_create_tip_frame): Set terminal for frame.
19425
19426 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19427
19428 * frame.c (Qenvironment): Remove.
19429 (syms_of_frame) <Qenvironment>: Don't initialize.
19430 (Fdelete_frame): Don't treat the `environment' param specially.
19431 * frame.h (Qenvironment): Don't declare.
19432 * callproc.c (set_initial_environment): Don't set unused frame param.
19433
19434 * frame.c (Fframe_with_environment): Remove.
19435 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19436
19437 * lisp.h (Fframe_with_environment): Don't declare.
19438
19439 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
19440
19441 * indent.c (indent_tabs_mode, last_known_column)
19442 (last_known_column_modified): Make static.
19443 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19444
19445 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19446
19447 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19448
19449 2007-10-09 Jason Rumney <jasonr@gnu.org>
19450
19451 * w32term.c (x_set_window_size): Disable code that attempts to tell
19452 Lisp code about a size change before it actually happens.
19453
19454 2007-10-09 Richard Stallman <rms@gnu.org>
19455
19456 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19457 return HANDLED_RETURN.
19458
19459 2007-10-08 Martin Rudalics <rudalics@gmx.at>
19460
19461 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19462 when there's an unread command event.
19463
19464 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19465 window autoselection act appropriately when leaving selected frame.
19466 (syms_of_frame): Initialize focus_follows_mouse.
19467 * frame.h (focus_follows_mouse): Extern it.
19468 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19469 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19470 * msdos.c (dos_rawgetc): Likewise.
19471 * w32term.c (w32_read_socket): Likewise.
19472 * xterm.c (handle_one_xevent): Likewise.
19473 * xdisp.c (syms_of_xdisp): In doc-string of
19474 mouse-autoselect-window mention focus-follows-mouse.
19475
19476 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19477
19478 * macterm.c (mac_load_query_font): Fix missing return value.
19479 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19480 Add BLOCK_INPUT.
19481
19482 2007-10-08 Richard Stallman <rms@gnu.org>
19483
19484 * xdisp.c (get_window_cursor_type): Implement documented behavior
19485 for cursor-in-non-selected-windows = t.
19486
19487 2007-10-08 Jason Rumney <jasonr@gnu.org>
19488
19489 * w32.c (w32_get_resource): Always close registry keys.
19490
19491 2007-10-08 Jason Rumney <jasonr@gnu.org>
19492
19493 * makefile.w32-in (LIBS): Add COMCTL32.
19494
19495 * w32fns.c (globals_of_w32fns): Init common controls.
19496
19497 2007-10-08 Richard Stallman <rms@gnu.org>
19498
19499 * image.c (our_memory_buffer): Rename from omfib_buffer.
19500
19501 2007-10-08 Richard Stallman <rms@gnu.org>
19502
19503 * buffer.c (Foverlays_at): Doc fix.
19504
19505 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19506
19507 * fns.c (Fplist_put): Preserve uneven tail data.
19508
19509 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19510
19511 * termhooks.h (enum event_kind): Remove trailing comma.
19512
19513 * frame.h (enum): Remove trailing comma.
19514
19515 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19516
19517 * w32proc.c (delete_child): Don't terminate threads of zombies.
19518
19519 2007-10-08 Martin Rudalics <rudalics@gmx.at>
19520
19521 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19522
19523 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19524 last-repeatable-command.
19525 (init_kboard): Initialize Vlast_repeatable_command.
19526 (command_loop_1): Set it to real_this_command unless that was
19527 bound to an input event.
19528 (mark_kboards): Mark it.
19529
19530 2007-10-08 Richard Stallman <rms@gnu.org>
19531
19532 * eval.c (condition-case): Doc fix.
19533
19534 2007-10-08 Masatake YAMATO <jet@gyve.org>
19535
19536 * xfaces.c (tty_supports_face_attributes_p): Fix code
19537 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19538 was copied and not edited.
19539
19540 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19541
19542 Add new `input-decode-map' keymap and use it for terminal
19543 escape sequences.
19544 * keyboard.h (struct kboard): Add Vinput_decode_map.
19545 Remove Vlocal_key_translation_map.
19546 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19547 (init_kboard): Init input-decode-map.
19548 Replace local-key-translation-map back with key-translation-map.
19549 (syms_of_keyboard): Declare input-decode-map.
19550 Remove local-key-translation-map. Update docstrings.
19551 (mark_kboards): Mark Vinput_decode_map.
19552 Don't mark Vlocal_key_translation_map.
19553 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19554 Replace local-key-translation-map back with key-translation-map.
19555 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19556 Bind in input-decode-map rather than function-key-map.
19557
19558 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19559 This was made redundant by the previous introduction of XSETPVECTYPE.
19560
19561 2007-10-09 Richard Stallman <rms@gnu.org>
19562
19563 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19564
19565 2007-09-29 Richard Stallman <rms@gnu.org>
19566
19567 * eval.c (internal_condition_case_2, internal_condition_case_1)
19568 (internal_condition_case): Reenable abort if x_catching_errors ()
19569 to see if that really happens and why.
19570
19571 2007-10-06 Andreas Schwab <schwab@suse.de>
19572
19573 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19574
19575 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
19576
19577 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19578
19579 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19580
19581 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19582
19583 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19584
19585 * window.h (struct window):
19586 * window.c (struct save_window_data, struct saved_window):
19587 * termhooks.h (struct terminal):
19588 * process.h (struct Lisp_Process):
19589 * frame.h (struct frame):
19590 * buffer.h (struct buffer):
19591 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19592 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19593 The size field of (pseudo)vectors is now unsigned.
19594 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19595
19596 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19597 Turn `count' into an integer.
19598
19599 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19600 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19601 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19602 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19603 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19604
19605 * alloc.c (allocate_pseudovector): New fun.
19606 (ALLOCATE_PSEUDOVECTOR): New macro.
19607 (allocate_window, allocate_terminal, allocate_frame)
19608 (allocate_process): Use it.
19609 (mark_vectorlike): New function.
19610 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19611 (mark_terminals): Use it.
19612 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19613 (Fmake_byte_code): Use XSETPVECTYPE.
19614
19615 * frame.c (Fframe_parameters): Minor simplification.
19616
19617 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19618
19619 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19620
19621 * buffer.c (Fget_buffer_create, init_buffer_once):
19622 * lread.c (defsubr):
19623 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19624
19625 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19626 defined differently in the m/*.h files.
19627 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19628 (XSETPVECTYPE): New macro.
19629 (XSETPSEUDOVECTOR): Use it.
19630
19631 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19632 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19633
19634 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19635 * lread.c (defvar_per_buffer):
19636 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19637
19638 * window.c (candidate_window_p): Only consider as visible frames that
19639 are on the same terminal.
19640
19641 * m/ibms390x.h (MARKBIT): Remove unused macro.
19642
19643 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
19644
19645 * lread.c (Fload): Fix typo in docstring.
19646
19647 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
19648
19649 * floatfns.c (Fexpt): Manually check for overflows, so that a power
19650 of a non-zero value can't yield zero.
19651
19652 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
19653
19654 * term.c (term_clear_mouse_face, term_mouse_highlight)
19655 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
19656
19657 * print.c (safe_debug_print): Use XHASH.
19658
19659 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
19660 Lisp elements such as tags.
19661 (XHASH): New macro.
19662 (EQ): Use it.
19663 (SREF, SSET, STRING_COPYIN): Use SDATA.
19664 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
19665
19666 * alloc.c (mark_terminal): Remove left-over declaration.
19667 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
19668 (allocate_vectorlike): Remove type argument. Adjust callers.
19669 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
19670 Only handle the one remaining MEM_TYPE_VECTORLIKE.
19671
19672 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
19673 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
19674 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
19675 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
19676 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
19677 Use them.
19678
19679 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
19680 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
19681 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
19682
19683 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
19684
19685 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
19686 loaded by default.
19687
19688 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
19689
19690 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
19691 on this tty.
19692 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
19693
19694 * term.c (mouse_face_window): Rename from Qmouse_face_window.
19695 Update all users.
19696 (handle_one_term_event): Use Gpm_DrawPointer.
19697 (Fgpm_mouse_start): Rename from Fterm_open_connection.
19698 Signal errors instead of returning nil. Always return nil.
19699 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
19700 Make it a noop if gpm-mouse was not activated.
19701 (syms_of_term): Update names.
19702
19703 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
19704
19705 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
19706 (init_sys_modes): Check that gpm_tty is the current tty.
19707
19708 * alloc.c (allocate_terminal): Set the vector size to only count the
19709 lisp fields. Initialize those to nil.
19710 (mark_object): Don't treat terminals specially.
19711 (mark_terminal): Remove.
19712 (mark_terminals): Use mark_object instead.
19713
19714 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
19715 the GC to the beginning.
19716
19717 * indent.h:
19718 * indent.c: Use EMACS_INT for ints coming from Elisp data.
19719
19720 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
19721
19722 2007-09-25 Jason Rumney <jasonr@gnu.org>
19723
19724 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
19725
19726 * w32console.c (create_w32cons_output): Remove.
19727
19728 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
19729
19730 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
19731 (reset_sys_modes): Use reset_terminal_modes_hook.
19732
19733 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
19734
19735 * eval.c (do_autoload): Don't output any message.
19736
19737 2007-09-24 Juri Linkov <juri@jurta.org>
19738
19739 * emacs.c (standard_args): Change priority of "--no-splash"
19740 from 40 to 3. Add "--no-desktop" with the same priority.
19741
19742 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
19743
19744 * alloc.c (gc_sweep): Check cons cell mark bits word by word
19745 and optimize the case where they are all 1.
19746
19747 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
19748
19749 * lisp.h (abs): Define if not defined.
19750 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
19751 Don't define `abs', since it's defined in lisp.h.
19752
19753 2007-09-22 Eli Zaretskii <eliz@gnu.org>
19754
19755 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
19756 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
19757 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
19758 (init_tty): Use DEV_TTY instead of "/dev/tty".
19759 [WINDOWSNT]: No need to protect from NAME arg being null.
19760
19761 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
19762
19763 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
19764 up the tty state.
19765
19766 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19767
19768 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
19769 (gpm_tty): Change its type.
19770 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
19771 (gpm_tty): Change its type and initialize it.
19772 (Fterm_open_connection): Check the frame is indeed a tty.
19773 Use the new gpm_tty.
19774 (Fterm_close_connection): Use the new gpm_tty.
19775 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
19776 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
19777
19778 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
19779
19780 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
19781 underline_color, to draw strike-through.
19782
19783 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19784
19785 * lisp.h (allocate_terminal): Declare.
19786
19787 * window.c (candidate_window_p): Consider frames that are being placed
19788 by the user as somewhere between visible and iconified.
19789 (window_loop): Prefer windows on the current frame.
19790 (Fselect_window): Move the use of select-frame to the beginning so we
19791 can just delegate all the work (it'll call us back anyway).
19792
19793 * frame.c (Qdisplay_environment_variable):
19794 * frame.h (Qdisplay_environment_variable): Delete.
19795
19796 * .gdbinit (xbacktrace): Print the arg's address rather than the value
19797 of the first arg, since that value may be a union.
19798
19799 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
19800 parameter rather than Qdisplay_environment_variable. If all else
19801 fails, look for DISPLAY in initial-environment.
19802
19803 2007-09-21 Glenn Morris <rgm@gnu.org>
19804
19805 * Makefile.in (emacstool): Remove target.
19806 (lisp, shortlisp): Remove termdev.elc.
19807
19808 2007-09-21 Markus Triska <markus.triska@gmx.at>
19809
19810 * xterm.c (x_delete_display): Compile session management conditionally.
19811
19812 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
19813
19814 * callproc.c (getenv_internal_1): New function.
19815 (getenv_internal): Use it.
19816 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
19817
19818 * terminal.c (get_terminal): Don't accept ints to represent terminals.
19819 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
19820 (Fset_terminal_parameter): Work with dead terminals as well.
19821 (Fmodify_terminal_parameters): Remove.
19822
19823 * terminal.c (get_terminal): Handle terminals.
19824 Make sure the terminal returned is live.
19825 (create_terminal): Use allocate_terminal.
19826 (mark_terminals): Move to alloc.c.
19827 (delete_terminal): Use terminal->name as liveness status.
19828 NULL out fields after freeing their contents.
19829 Don't deallocate the object.
19830 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
19831 rather than an int.
19832 (Fterminal_live_p): Accept non-integer arguments.
19833 (Fterminal_list): Return terminal objects rather than an ints.
19834
19835 * alloc.c (enum mem_type): New member for `terminal' objects.
19836 (allocate_terminal): New function.
19837 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
19838 Handle terminals.
19839 (mark_terminal): New fun.
19840 (mark_terminals): Move from terminal.c.
19841
19842 * term.c (get_tty_terminal): Don't treat output_initial specially.
19843 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
19844 (delete_tty): Use terminal->name as liveness status.
19845
19846 * termhooks.h (struct terminal): Make it into a pseudovector.
19847 Remove `deleted' replaced by checking `name's nullness.
19848
19849 * print.c (print_object): Handle terminals.
19850
19851 * lisp.h (enum pvec_type): New `terminal' pseudovector.
19852 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
19853
19854 * frame.c (make_terminal_frame):
19855 * keyboard.c (tty_read_avail_input):
19856 * w32term.c (x_delete_terminal):
19857 * xfns.c (Fx_create_frame, x_create_tip_frame):
19858 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
19859
19860 2007-09-20 Glenn Morris <rgm@gnu.org>
19861
19862 * process.c (Fmake_network_process): Doc fix.
19863
19864 2007-09-19 Jason Rumney <jasonr@gnu.org>
19865
19866 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
19867
19868 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
19869
19870 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
19871 Fix a C warning regarding variable constness.
19872
19873 * xterm.c (handle_one_xevent): Fix a C warning.
19874
19875 2007-09-18 Jason Rumney <jasonr@gnu.org>
19876
19877 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
19878
19879 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
19880
19881 * gtkutil.c (gdpy_def): New variable.
19882 (xg_initialize): Initialize gdpy_def.
19883 (xg_display_close): If no other display exists, set gdpy_def to a
19884 new connection.
19885
19886 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
19887
19888 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
19889 when we have no file name for the icon.
19890 (xg_tool_bar_expose_callback): Remove.
19891 (xg_create_tool_bar): Don't connect expose signal to
19892 xg_tool_bar_expose_callback.
19893 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
19894
19895 2007-09-16 Andreas Schwab <schwab@suse.de>
19896
19897 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
19898 values instead of zapping them.
19899
19900 2007-09-14 Glenn Morris <rgm@gnu.org>
19901
19902 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
19903 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
19904 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
19905 scope and rename to omfib_buffer for clarity.
19906 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
19907
19908 2007-09-14 Kenichi Handa <handa@m17n.org>
19909
19910 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
19911
19912 2007-09-13 Jason Rumney <jasonr@gnu.org>
19913
19914 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
19915
19916 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
19917
19918 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
19919 (mac_term_init): Call here instead, passing rif.
19920
19921 2007-09-13 Glenn Morris <rgm@gnu.org>
19922
19923 * s/hpux.h: No longer define `static' as nothing.
19924
19925 2007-09-13 Johan Bockgård <bojohan@gnu.org>
19926
19927 * callint.c (Fcall_interactively): Remove unused var `fun'.
19928
19929 2007-09-12 Romain Francoise <romain@orebokech.com>
19930
19931 * window.c (prefer_window_split_horizontally, display_buffer):
19932 Revert 2007-09-08 change.
19933
19934 2007-09-12 Glenn Morris <rgm@gnu.org>
19935
19936 * alloca.c: Remove file.
19937 * Makefile.in (alloca): Do not undef.
19938 (allocaobj, alloca.o): Remove.
19939 (otherobj): Remove allocaobj.
19940 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
19941 * regex.c (C_ALLOCA): Remove all references and code that was only
19942 used when this was defined.
19943 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
19944 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
19945 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
19946
19947 * Makefile.in (SOURCES, unlock, relock): Delete.
19948
19949 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
19950 (menu_grab_callback): All uses changed.
19951
19952 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
19953 (x_reply_selection_request): All uses changed.
19954
19955 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19956
19957 * lread.c (load_warn_old_style_backquotes): Change message to look
19958 better when it appears in the middle of byte-compiler messages.
19959
19960 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19961
19962 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19963
19964 * xterm.c (x_create_terminal): Add comment.
19965
19966 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19967
19968 2007-09-10 Richard Stallman <rms@gnu.org>
19969
19970 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19971
19972 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19973
19974 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19975 (DEFUN): Document `intspec', use it instead of `prompt'.
19976
19977 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19978
19979 * data.c (Finteractive_form): If the interactive specification starts
19980 with a `(', use it as a Lisp form.
19981
19982 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19983 name and file modes.
19984
19985 * callint.c (Fcall_interactively): Comment fixes.
19986
19987 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19988
19989 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
19990 and compiled functions.
19991
19992 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
19993
19994 * window.c (prefer_window_split_horizontally): New variable.
19995 (display_buffer): Consider splitting window horizontally depending
19996 on prefer_window_split_horizontally.
19997
19998 2007-09-08 Eli Zaretskii <eliz@gnu.org>
19999
20000 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20001
20002 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20003
20004 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20005
20006 * frame.c (x_set_frame_parameters): Check number is positive before
20007 using XFASTINT.
20008
20009 * window.c (freeze_window_start): Don't presume selected_window holds
20010 a window object.
20011 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20012
20013 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20014
20015 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20016
20017 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20018
20019 * window.c (Vsplit_window_preferred_function): New var.
20020 (Fdisplay_buffer): Use it.
20021 (syms_of_window): Export, and initialize it.
20022
20023 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20024
20025 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20026
20027 2007-09-06 Glenn Morris <rgm@gnu.org>
20028
20029 * gtkutil.c (menu_grab_callback) <cnt>:
20030 * xselect.c (x_reply_selection_request) <cnt>: Move static
20031 variable to file scope.
20032
20033 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20034
20035 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20036 consistent values of selected_frame and selected_window.
20037
20038 2007-09-04 Jason Rumney <jasonr@gnu.org>
20039
20040 * w32console.c (initialize_w32_display): Zero unused hooks.
20041
20042 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20043
20044 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20045 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20046
20047 2007-09-04 Jason Rumney <jasonr@gnu.org>
20048
20049 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20050 in w32console.c. Set up input. Remove XXX comments that have been
20051 confirmed as correct.
20052
20053 * s/ms-w32.h (MULTI_KBOARD): Define.
20054
20055 * w32console.c (one_and_only_w32cons): Remove.
20056 (initialize_w32_display): Take terminal argument.
20057
20058 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20059 initialize_w32_display.
20060 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20061
20062 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20063
20064 * keyboard.c (discard_mouse_events): Discard it.
20065 (make_lispy_event): Translate it to a lisp event.
20066 (lispy_wheel_names): Add wheel-left and right events.
20067 (syms_of_keyboard): Enlarge wheel_syms.
20068
20069 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20070 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20071
20072 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20073
20074 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20075 from WM_MOUSEHWHEEL.
20076 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20077
20078 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20079 terminal.
20080
20081 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20082 keyboard for the terminal.
20083
20084 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20085
20086 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20087 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20088 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20089 and resume-tty-function to resume-tty-hook.
20090 (Fsuspend_tty, Fresume_tty): Use new names.
20091
20092 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20093
20094 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20095 if it starts with "n:".
20096
20097 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20098
20099 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20100
20101 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20102
20103 * frame.h:
20104 * frame.c (Qterm_environment_variable): Remove.
20105 (syms_of_frame): Don't init and staticpro it.
20106
20107 * callproc.c (getenv_internal): Remove special case for $TERM.
20108
20109 * callproc.c (Vinitial_environment): New variable.
20110 (set_initial_environment): Initialize it.
20111 (syms_of_callproc): Declare it.
20112 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20113 TERM under which a process runs is never related to the TERM in which
20114 Emacs is running.
20115
20116 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20117
20118 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20119 * s/darwin.h: ... do it here.
20120
20121 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20122
20123 * lisp.h (set_initial_environment): Rename from set_global_environment.
20124
20125 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20126 removed by mistake on the multi-tty branch.
20127
20128 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20129 (Fmodify_frame_parameters): Return a value.
20130
20131 * image.c (png_load): Comment-out var only used in commented-out code.
20132
20133 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20134 before passing it to mark_object.
20135
20136 * xfaces.c (internal_resolve_face_name): Return a value.
20137 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20138
20139 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20140 (x_icon): Comment-out var only used in commented-out code.
20141
20142 2007-08-29 Romain Francoise <romain@orebokech.com>
20143
20144 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20145 QUIT hasn't been provided.
20146
20147 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20148
20149 * callproc.c (child_setup, getenv_internal): Use the
20150 display-environment-variable and term-environment-variable frame params.
20151 (set_initial_environment): Initialise Vprocess_environment.
20152
20153 * config.in: Disable multi-keyboard support on a mac.
20154
20155 * frame.c (Qterm_environment_variable)
20156 (Qdisplay_environment_variable): New variables.
20157 (syms_of_frame): Intern and staticpro them.
20158 (Fmake_terminal_frame): Disable output method test.
20159
20160 * frame.h: Declare them here.
20161
20162 * macfns.c (x_set_mouse_color): Get rif from the frame.
20163 (x_set_tool_bar_lines): Don't use updating_frame.
20164 (mac_window): Add 2 new parameters for consistency with other systems.
20165 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20166 frame parameters following what is done in X11 and w32. Don't use
20167 FRAME_MAC_DISPLAY_INFO.
20168 (Fx_open_connection, start_hourglass): Remove window-system check.
20169 (x_create_tip_frame): Get the keyboard from the terminal.
20170
20171 * macmenu.c: Reorder includes.
20172 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20173
20174 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20175 terminal parameter.
20176 (x_clear_frame): Add a frame parameter.
20177 (note_mouse_movement): Get rif from the frame.
20178 (mac_term_init): Initialize the terminal.
20179 (mac_initialize): Make static and move terminal initialization ...
20180 (mac_create_terminal): ... to this new function.
20181
20182 * macterm.h (struct mac_display_info): Add terminal.
20183 (mac_initialize): Delete declaration.
20184
20185 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20186
20187 * sysdep.c: Comment out text after #endif.
20188
20189 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20190 is defined. Better initialize ttys in windows. Use terminal
20191 specific mouse_position_hook.
20192
20193 * termhooks.h (union display_info): Add mac_display_info.
20194
20195 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20196 Set the default minibuffer frame, window_system and the rest of the
20197 frame parameters following what is done in X11.
20198
20199 * w32term.c (w32_initialize): Make static.
20200
20201 * xselect.c (x_handle_selection_clear): Only access
20202 terminal->kboard when MULTI_KBOARD is defined.
20203
20204 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20205 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20206
20207 2007-08-29 Jason Rumney <jasonr@gnu.org>
20208
20209 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20210 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20211
20212 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20213 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20214
20215 * keyboard.c (restore_kboard_configuration): Only define when
20216 MULTI_KBOARD defined.
20217
20218 * makefile.w32-in: Update dependancies from Makefile.in.
20219 (OBJ1): Add terminal.$(O)
20220
20221 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20222 Don't define function body.
20223 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20224
20225 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20226
20227 * w32.c (request_sigio, unrequest_sigio): Remove.
20228
20229 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20230 (w32con_clear_frame, w32con_clear_end_of_line)
20231 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20232 (w32con_delete_glyphs, w32con_set_terminal_window)
20233 (scroll_line, w32_sys_ring_bell): Add frame arg.
20234 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20235 Add terminal arg.
20236 (PICK_FRAME): Remove.
20237 (w32con_write_glyphs): Use frame specific terminal coding.
20238 (one_and_only_w32cons): New global variable.
20239 (initialize_w32_display): Use it for storing hooks.
20240 (create_w32cons_output): New function.
20241
20242 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20243 arg a frame.
20244
20245 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20246 Set window_system.
20247 (x_set_tool_bar_lines): Don't use updating_frame.
20248 (Fx_create_frame): Set terminal and ref count.
20249 (Fx_open_connection): Remove window-system check.
20250
20251 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20252
20253 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20254 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20255 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20256 Add frame arg.
20257 (x_delete_terminal, w32_create_terminal): New functions.
20258 (w32_term_init): Create a terminal.
20259 (w32_initialize): Move terminal specific initialization to
20260 w32_create_terminal.
20261
20262 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20263 (w32_clear_rect, w32_clear_area): Use background from frame.
20264 (w32_display_info): Add terminal.
20265 (w32_sys_ring_bell, x_delete_display): Declare here.
20266
20267 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20268
20269 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20270
20271 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20272
20273 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20274 Fix get_named_tty calls for the controlling tty.
20275
20276 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20277
20278 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
20279
20280 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20281
20282 * term.c (tty_insert_glyphs): Add missing first parameter.
20283
20284 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20285
20286 * buffer.c (Fbuffer_list, Fbury_buffer):
20287 Take frame->buried_buffer_list into account.
20288
20289 * cm.c (current_tty): New variable, for cmputc().
20290 (cmputc): Use it.
20291 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20292 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20293 (cmgoto): Add tty parameter. Pass it on to calccost().
20294 Use emacs_tputs() instead of tputs().
20295
20296 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20297 tputs().
20298 (current_tty): New variable, for cmputc().
20299 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20300
20301 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20302 (internal_condition_case, internal_condition_case_1)
20303 (internal_condition_case_2): Don't abort when x_catching_errors.
20304
20305 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20306 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20307 prevent crashes caused by bogus longjmps in read_char.
20308
20309 * keymap.h (Fset_keymap_parent): Add EXFUN.
20310
20311 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20312 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20313 Remove redundant definition.
20314
20315 * macfns.c (x_set_mouse_color, x_make_gc):
20316 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20317
20318 * w32term.c (x_free_frame_resources):
20319 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20320 (w32_initialize): Use the accessor macros for terminal characteristics.
20321
20322 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20323 Use the accessor macros for terminal characteristics.
20324 * msdos.c (internal_terminal_init): Use the accessor macros for
20325 terminal characteristics.
20326 (ScreenVisualBell, internal_terminal_init):
20327 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20328
20329 * termopts.h (no_redraw_on_reenter): Declare.
20330
20331 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20332 (mark_terminals, mark_ttys): Declare.
20333 (Fgarbage_collect): Call them.
20334 (mark_object): Mark buried_buffer_list.
20335
20336 * prefix-args.c: Include stdlib.h for exit.
20337
20338 * syssignal.h: Add comment.
20339
20340 * indent.c: Include stdio.h.
20341
20342 * window.h (Vinitial_window_system): Declare.
20343 (Vwindow_system): Delete declaration.
20344
20345 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20346
20347 * image.c (lookup_image): Don't initialize `c' until the xasserts
20348 have been run.
20349
20350 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20351 FRAME_FOREGROUND_PIXEL.
20352
20353 * print.c (print_preprocess): Don't lose print_depth levels while
20354 iterating.
20355
20356 * widget.c (update_from_various_frame_slots):
20357 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20358
20359 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20360 frames.
20361 (window_internal_height): Remove bogus make_number call.
20362 (init_window_once): Call make_terminal_frame with two zero parameters.
20363
20364 * fileio.c (Fread_file_name): Update comment.
20365
20366 * callint.c (Fcall_interactively):
20367 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20368 Make sure it is correctly unwound.
20369
20370 * xsmfns.c (x_session_close): New function.
20371
20372 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20373 Delete declarations.
20374
20375 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20376 (x_output): Remove background_pixel and foreground_pixel fields.
20377 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20378 (x_delete_device, x_session_close): Declare.
20379
20380 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20381 (read_filtered_event): Call `read_char' with a local
20382 `wrong_kboard_jmpbuf'.
20383
20384 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20385 Don't call single_kboard_state. Use FRAME_RIF.
20386
20387 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20388 systems.
20389
20390 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20391 (Fframe_with_environment, Fset_input_meta_mode)
20392 (Fset_quit_char): EXFUN.
20393 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20394 (init_sys_modes, reset_sys_modes): Update prototypes.
20395 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20396
20397 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20398 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20399 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20400 Delete declarations.
20401 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20402 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20403 New declarations.
20404
20405 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20406 already does that during init_display(). Call syms_of_keymap
20407 before syms_of_keyboard. Call `syms_of_terminal'.
20408 Call set_initial_environment, not set_process_environment.
20409 (shut_down_emacs): Call reset_all_sys_modes() instead of
20410 reset_sys_modes().
20411
20412 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20413 (internal_resolve_face_name, resolve_face_name_error): New functions.
20414 (resolve_face_name): Protect against loops and errors thrown by Fget.
20415 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20416 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20417
20418 * scroll.c: Replace CURTTY() with local variables throughout the
20419 file (where applicable).
20420 (calculate_scrolling, calculate_direct_scrolling)
20421 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20422 characteristics.
20423
20424 * keymap.c (Vfunction_key_map): Remove.
20425 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20426 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20427 (Vkey_translation_map): Remove.
20428 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20429 (Fdescribe_buffer_bindings)
20430 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20431 Update for terminal-local key-translation-map.
20432
20433 * Makefile.in (callproc.o): Update dependencies.
20434 (lisp, shortlisp): Add termdev.elc.
20435 (obj): Add terminal.o.
20436 (terminal.o): Add dependencies.
20437 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20438 (data.o, fns.o): Add termhooks.h dependency.
20439 (SOME_MACHINE_LISP): Add dnd.elc.
20440 (minibuf.o): Fix typo.
20441 Update dependencies.
20442
20443 * data.c (do_symval_forwarding, store_symval_forwarding)
20444 (find_symbol_value): Use the selected frame's keyboard, not
20445 current_kboard.
20446
20447 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20448 Vwindow_system.
20449
20450 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20451 Fmenu_bar_open.
20452 (syms_of_xmenu): Update defsubr.
20453 (mouse_position_for_popup, Fx_popup_menu)
20454 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20455 (set_frame_menubar, free_frame_menubar)
20456 (create_and_show_popup_menu, xmenu_show)
20457 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20458 an X frame.
20459
20460 * xselect.c (x_own_selection): Abort if not an X frame.
20461 (some_frame_on_display): Check if it is an X frame.
20462 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20463
20464 * coding.c: Include frame.h and termhooks.h.
20465 (terminal_coding, keyboard_coding): Delete.
20466 (Fset_terminal_coding_system_internal)
20467 (Fset_keyboard_coding_system_internal)
20468 (Fkeyboard_coding_system)
20469 (Fterminal_coding_system): Add a terminal parameter.
20470 Get terminal_coding from the terminal.
20471 (init_coding_once): Don't call setup_coding_system here.
20472
20473 * dispextern.h (set_scroll_region, turn_off_insert)
20474 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20475 (tty_clear_end_of_line, tty_setup_colors)
20476 (delete_tty, updating_frame)
20477 (produce_special_glyphs, produce_glyphs, write_glyphs)
20478 (insert_glyphs): Remove.
20479 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20480 (tty_turn_off_highlight, get_tty_size): Add declaration.
20481 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20482
20483 * frame.h (enum output_method): Add output_initial.
20484 (struct x_output): Delete.
20485 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20486 Access foreground_pixel and background_pixel directly from the frame.
20487 (tty_display): Delete.
20488 (struct frame): Add buried_buffer_list, foreground_pixel,
20489 background_pixel and terminal. Delete kboard.
20490 (union output_data): Add tty.
20491 (FRAME_KBOARD): Get the kboard from the terminal.
20492 (FRAME_INITIAL_P): New macro.
20493 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20494 (Qterm_environment_variable, Qdisplay_environment_variable)
20495 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20496 New declarations.
20497
20498 * termchar.h (tty_output, tty_display_info): New structures.
20499 (tty_list): Declare.
20500 (FRAME_TTY, CURTTY): New macros.
20501 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20502 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20503 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20504 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20505
20506 * callproc.c: Include frame.h and termhooks.h, for terminal
20507 parameters.
20508 (add_env): New function.
20509 (child_setup): Use it.
20510 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20511 (getenv_internal): Fix get_terminal_param call.
20512 (Fgetenv_internal, egetenv): Update doc.
20513 (syms_of_callproc): Initialize Vprocess_environment to nil.
20514 Register and initialize them. Remove obsolete defvars. Update doc
20515 strings.
20516 (child_setup): Handle Vlocal_environment_variables.
20517 (getenv_internal): Add terminal parameter.
20518 Handle Vlocal_environment_variables.
20519 (Fgetenv_internal): Add terminal parameter.
20520 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20521 environment in a frame (not terminal) parameter. Update doc strings.
20522 (set_initial_environment): Rename from set_global_environment.
20523 Store Emacs environment in initial frame parameter.
20524
20525 * xdisp.c (redisplay_internal): Update references to
20526 `previous_terminal_frame'.
20527 (display_mode_line, Fformat_mode_line): Replace calls to
20528 `push_frame_kboard' with `push_kboard'.
20529 (get_glyph_string_clip_rects): Add extra parentheses and
20530 braces to prevent compiler warnings.
20531 (calc_pixel_width_or_height): Add xassert to check that the
20532 frame is alive. Don't call `lookup_image' on a termcap frame.
20533 (message2_nolog, message3_nolog, redisplay_internal)
20534 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20535 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20536 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20537 (Fx_display_pixel_width, Fx_display_pixel_height)
20538 (Fx_display_planes, Fx_display_color_cells)
20539 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20540 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20541 (Fx_display_backing_store, Fx_display_visual_class)
20542 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20543 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20544
20545 * xfns.c (x_set_foreground_color x_set_background_color)
20546 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20547 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20548 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20549 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20550 terminal that is being deleted.
20551 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20552 frame parameter, and make sure it overrides any user-supplied setting.
20553 (Fx_close_connection, Fx_synchronize): Unify argument names with
20554 the rest of the DEFUNs.
20555
20556 * dispnew.c (Fsend_string_to_terminal): Update call to
20557 `get_tty_terminal'.
20558 (Fredraw_frame, Fsend_string_to_terminal)
20559 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20560 FRAME_TERMCAP_P and FRAME_TTY.
20561 (window_change_signal): Don't believe width/height values that are
20562 impossibly small.
20563 (Vinitial_window_system): Rename from Vwindow_system.
20564 (termscript, Wcm, rif): Delete.
20565
20566 * termhooks.h (struct terminal): New struct containing the
20567 previously global text display hooks and new members NAME,
20568 DELETED and PARAM_ALIST.
20569 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20570 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20571 (FRAME_RIF): New macros.
20572 (get_terminal_param, get_device): New declarations.
20573 (termscript): Delete declaration.
20574
20575 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20576 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20577 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20578 FRAME_FOREGROUND_PIXEL.
20579 (x_fully_uncatch_errors): Disable definition.
20580 (x_scroll_bar_expose): Fix reference to foreground pixel.
20581 (XTread_socket): Disable loop on all X displays.
20582 (x_delete_terminal): Don't set terminal->deleted and let
20583 delete_terminal delete the frames on the terminal.
20584 (x_delete_display): Doc update to reflect changes in
20585 delete_terminal.
20586 (x_display_info) <terminal>: Move member earlier in the struct.
20587 (deleting_tty): Remove old variable.
20588 (Fsuspend_tty): Call clear_tty_hooks.
20589 (Fresume_tty, init_tty): Call set_tty_hooks.
20590 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20591 errors on X frames.
20592 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20593 (handle_one_xevent): Initialize `f' to NULL.
20594 (x_delete_terminal, x_create_terminal): New functions.
20595 (XTset_terminal_modes, XTreset_terminal_modes)
20596 (XTread_socket, x_connection_closed, x_term_init)
20597 (x_term_init, x_delete_display): Add terminal parameter.
20598 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20599 X connections.
20600
20601 * frame.c: Include termchar.h.
20602 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20603 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20604 (Qdisplay_environment_variable): New vars.
20605 (Fframep): Deal with output_initial.
20606 (Fframe-live-p): Doc fix.
20607 (Fwindow-system): New function.
20608 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20609 (make_terminal_frame): Don't create frames on a terminal that is
20610 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20611 (store_frame_param): Check for found_for_frame before calling XFRAME.
20612 (Fmake_terminal_frame): Handle NULL tty names correctly.
20613 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20614 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20615 frames to refer to a deleted frame in their 'environment parameter.
20616 (Fframe_with_environment): New function.
20617 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20618 (get_future_frame_param): New function.
20619 (Fmake_terminal_frame): Use it.
20620 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20621
20622 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20623 * sysdep.c (reset_sys_modes): Update for renames.
20624
20625 * keyboard.c (tty_read_avail_input): New function.
20626 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20627 (syms_of_keyboard): Defsubr them.
20628 (Fset_input_meta_mode, Fset_quit_char): New functions.
20629 (Fset_input_mode): Split to above functions.
20630 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20631 parameter. Use it in call to `read_char'.
20632 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20633 Set wrong_kboard_jmpbuf correctly in recursive calls.
20634 Use current_kboard to access Vkeyboard_translate_table.
20635 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20636 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20637 Update longjmp invocations. Remember the original current_kboard,
20638 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20639 changes it. Comment out unnecessary calls to
20640 `record_single_kboard_state' and `any_kboard_state'.
20641 Update recursive calls.
20642 (wrong_kboard_jmpbuf): Remove global variable.
20643 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
20644 Handle deleted interrupted_kboards correctly; that is a legal
20645 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
20646 and read_char calls. Abort if interrupted_kboard died in read_char.
20647 (any_kboard_state, single_kboard_state)
20648 (push_frame_kboard): Remove function.
20649 (pop_kboard): Switch out of single_kboard mode if the kboard has
20650 been deleted. Remove unused variable. Help debugging by not
20651 changing current_kboard unnecessarily. Set current_kboard to the
20652 kboard of the selected frame when the stored kboard object has
20653 been deleted before pop_kboard.
20654 (temporarily_switch_to_single_kboard): Change first parameter to a
20655 frame pointer. Throw an error when caller wants to change kboards
20656 while in single_kboard mode. Don't push_kboard if we weren't in
20657 single kboard state. Don't pop_kboard if we popped into any
20658 kboard state.
20659 (restore_kboard_configuration): Abort if pop_kboard changed the
20660 kboard in single_kboard mode. Call pop_kboard only after setting
20661 up single_kboard mode.
20662 (Frecursive_edit): Switch to single_kboard mode only in nested
20663 command loops.
20664 (cmd_error, command_loop, command_loop_1, timer_check):
20665 Comment out unnecessary call to `any_kboard_state' and
20666 `record_single_kboard_state'.
20667 (delete_kboard): Exit single_kboard mode if we have just deleted
20668 that kboard. Use FRAME_KBOARD.
20669 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
20670 `fatal_error_signal'.
20671 (record_single_kboard_state): Don't push_kboard if we weren't in
20672 single kboard state. Don't pop_kboard if we popped into any
20673 kboard state.
20674 (push_frame_kboard): Rename to push_kboard.
20675 (kbd_buffer_get_event): Use FRAME_TERMINAL.
20676 (read_avail_input): Read input from all terminals.
20677 (mark_kboards): Also mark Vkeyboard_translate_table.
20678 (kbd_buffer_store_event_hold): Simplify condition.
20679 (read_key_sequence): Reinitialize fkey and keytran at each replay.
20680 (Vkeyboard_translate_table): Move to struct kboard.
20681 (init_kboard): Initialize Vkeyboard_translate_table.
20682 (syms_of_keyboard): Use DEFVAR_KBOARD to define
20683 Vkeyboard_translate_table. Update doc strings. Update docs of
20684 local-function-key-map and function-key-map.
20685
20686 * terminal.c: New file.
20687
20688 * term.c: Include errno.h.
20689 (Vring_bell_function, device_list, initial_device)
20690 (next_device_id, ring_bell, update_begin, update_end)
20691 (set_terminal_window, cursor_to, raw_cursor_to)
20692 (clear_to_end, clear_frame, clear_end_of_line)
20693 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
20694 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
20695 (syms_of_term): Move their initialization to terminal.c.
20696 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
20697 (Ftty_display_color_cells)
20698 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
20699 (clear_tty_hooks, set_tty_hooks)
20700 (init_tty, maybe_fatal): New functions.
20701 (Ftty_type): Return nil if terminal is not on a tty instead of
20702 throwing an error. Doc update.
20703 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
20704 Doc update. Initialize new subrs and variables.
20705 (delete_tty): Use terminal->deleted.
20706 (tty_set_terminal_modes): Rename from set_terminal_modes.
20707 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
20708 (set_scroll_region): Rename to `tty_set_scroll_region'.
20709 (turn_on_insert): Rename to `tty_turn_on_insert'.
20710 (turn_off_insert): Rename to `tty_turn_off_insert'.
20711 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
20712 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
20713 (toggle_highligh): Rename to `tty_toggle_highlight'.
20714 (background_highlight): Rename to `tty_background_highlight'.
20715 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
20716 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
20717 (tty_set_scroll_region, tty_background_highlight)
20718 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
20719 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
20720 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
20721 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
20722 Add static modifier.
20723 (tty_reset_terminal_modes, tty_set_terminal_window)
20724 (tty_set_scroll_region, tty_background_highlight)
20725 (tty_highlight_if_desired, tty_cursor_to)
20726 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
20727 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
20728 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
20729 renames.
20730
20731 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
20732
20733 * keyboard.c: Qrtl is new.
20734 (parse_tool_bar_item): Handle :rtl keyword.
20735 (syms_of_keyboard): Intern :rtl keyword.
20736
20737 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
20738
20739 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
20740 so no Lisp code is executed.
20741 (file_for_image, find_rtl_image): New functions.
20742 (xg_get_image_for_pixmap): Use file_for_image.
20743 (update_frame_tool_bar): If direction is RTL, use RTL image if
20744 defined. Use Gtk stock images if defined.
20745
20746 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20747
20748 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
20749 for nonexistent or zero-width glyph in composition glyph.
20750
20751 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
20752
20753 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
20754
20755 * xdisp.c (Finvisible_p): New function.
20756 (syms_of_xdisp): defsubr it.
20757
20758 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
20759
20760 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
20761 Doc fixes.
20762
20763 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20764
20765 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
20766
20767 2007-08-24 Martin Rudalics <rudalics@gmx.at>
20768
20769 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
20770 whether decoding has modified buffer contents.
20771
20772 2007-08-24 Jason Rumney <jasonr@gnu.org>
20773
20774 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
20775 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
20776 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
20777 (init_svg_functions) [HAVE_NTGUI]: New function.
20778 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
20779 (svg_load_image): Use them.
20780 (svg_load_image) [HAVE_NTGUI]: Implement background.
20781
20782 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20783
20784 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
20785 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
20786 (LIBX): Remove @RSVG_LIBS@.
20787 (LIBES): Add $(RSVG_LIBS).
20788
20789 * image.c (svg_load_image): Blend with specified background if exists.
20790 Use IMAGE_BACKGROUND. Add Mac OS Support.
20791
20792 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
20793 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
20794 Remove macros.
20795 [MAC_OSX] (socket_callback): Do nothing.
20796 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
20797 ReceiveNextEvent.
20798 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
20799 socket_callback.
20800 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
20801
20802 2007-08-22 Glenn Morris <rgm@gnu.org>
20803
20804 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
20805
20806 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
20807
20808 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
20809
20810 * image.c: Add support for SVG images. Some additional comments
20811 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
20812 (svg_image_p): New function to test for SVG image.
20813 (svg_load): New function to load SVG image.
20814 (svg_load_image): New function, helper for svg_load.
20815 (Qsvg): New Lisp_object.
20816 (svg_keyword_index): New enum.
20817 (svg_format): New static `image_keyword' struct.
20818 (svg_type): New static `image_type' struct.
20819 (librsvg/rsvg.h): Include it.
20820
20821 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
20822
20823 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
20824
20825 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
20826
20827 * lread.c (Qold_style_backquotes): New var.
20828 (syms_of_lread): Init and staticpro it.
20829 (load_warn_old_style_backquotes): New fun.
20830 (Fload): Use them to warn about old style backquotes.
20831 (end_of_file_error, Fload): Remove unused vars.
20832
20833 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
20834
20835 * lread.c (Vold_style_backquotes): New var.
20836 (syms_of_lread): Init and export it to Elisp.
20837 (read1): Set it when we find an old-style (back)quote.
20838
20839 2007-08-22 Jason Rumney <jasonr@gnu.org>
20840
20841 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
20842
20843 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
20844
20845 * puresize.h (BASE_PURESIZE): Increase to 1140000.
20846
20847 2007-08-19 Richard Stallman <rms@gnu.org>
20848
20849 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
20850
20851 2007-08-19 Andreas Schwab <schwab@suse.de>
20852
20853 * alloc.c (pure): Round PURESIZE up.
20854
20855 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
20856
20857 * xterm.c (handle_one_xevent): Remove check that mouse click is in
20858 active frame.
20859
20860 2007-08-16 Richard Stallman <rms@gnu.org>
20861
20862 * eval.c (Fcommandp): Add parens to clarify.
20863
20864 * minibuf.c (Fall_completions): Use enum for type of table.
20865
20866 * emacs.c (USAGE2): Improve text.
20867
20868 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
20869
20870 * term.c (tty_default_color_capabilities): Declare static
20871 variables in file scope, to avoid HPUX compiler problem.
20872
20873 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
20874
20875 * gtkutil.c (update_frame_tool_bar): Use -1 as index
20876 to gtk_toolbar_insert.
20877
20878 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
20879
20880 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
20881
20882 * insdel.c (reset_var_on_error): New fun.
20883 (signal_before_change, signal_after_change):
20884 Use it to reset (after|before)-change-functions to nil in case of error.
20885 Bind inhibit-modification-hooks to t.
20886 Don't bind (after|before)-change-functions to nil while they run.
20887
20888 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20889
20890 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
20891 filling pixmap with stippled background.
20892
20893 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20894
20895 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
20896 Don't use invisible frame as parent window for repositioning.
20897
20898 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
20899
20900 * print.c (new_backquote_output): Rename from old_backquote_output.
20901 (print): Inverse its logic (according to its name) so as to match the
20902 behavior of new_backquote_flag in lread.c.
20903
20904 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20905
20906 * gmalloc.c (posix_memalign): New function.
20907
20908 * macterm.c (frame_highlight, frame_unhighlight): Don't call
20909 ActivateControl/DeactivateControl here.
20910 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
20911 frame-notice-user-settings is non-nil.
20912 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
20913 for kEventParamFMFontStyle.
20914 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
20915 mac_pass_command_to_system and mac_pass_control_to_system here.
20916 (XTread_socket): Call ActivateControl/DeactivateControl here.
20917 (XTread_socket) [TARGET_API_MAC_CARBON]:
20918 Check mac_pass_command_to_system and mac_pass_control_to_system here.
20919 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
20920 for window repositioning.
20921
20922 2007-08-08 Glenn Morris <rgm@gnu.org>
20923
20924 * Replace `iff' in doc-strings and comments.
20925
20926 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
20927
20928 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
20929
20930 2007-08-07 Martin Rudalics <rudalics@gmx.at>
20931
20932 * fileio.c (Finsert_file_contents): Run format-decode and
20933 after_insert_file_functions on entire buffer when REPLACE is
20934 non-nil and inhibit modification_hooks and point_motion_hooks.
20935 For consistency, run after_insert_file_functions iff something
20936 got inserted. Move signal_after_change and update_compositions
20937 after code running after_insert_file_functions. Make sure that
20938 undo_list doesn't record intermediate steps of the decoding process.
20939
20940 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20941
20942 * emacs.c (main)
20943 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
20944 Call malloc_enable_thread on interactive startup.
20945
20946 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
20947 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
20948 [USE_PTHREAD]: Conditionalize with it.
20949 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
20950 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
20951 New functions.
20952
20953 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
20954
20955 * xdisp.c (redisplay_window): When restoring original buffer
20956 position, make sure it is still valid.
20957
20958 * image.c (png_load): Ignore png-supplied background color.
20959
20960 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20961
20962 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20963 Use kCFAbsoluteTimeIntervalSince1970.
20964
20965 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20966 New variable.
20967 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20968 event loop should be quit.
20969 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20970 Quit dialog event loop if quit_dialog_event_loop is set.
20971
20972 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20973 (Selection): New typedef. Use instead of ScrapRef.
20974 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20975 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20976 (mac_clear_selection): Rename from clear_scrap.
20977 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20978 scrap_has_target_type. All uses changed.
20979 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20980 (mac_selection_has_target_p): New functions.
20981 (mac_put_selection_value): Rename from put_scrap_string.
20982 (mac_get_selection_value): Rename from get_scrap_string.
20983 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20984 (put_scrap_private_timestamp, scrap_has_target_type)
20985 (get_scrap_private_timestamp): Remove functions.
20986 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20987 (x_own_selection, x_get_local_selection):
20988 Use mac_valid_selection_value_p.
20989 (x_own_selection): Don't use put_scrap_private_timestamp.
20990 Record OWNERSHIP-INFO into Vselection_alist instead.
20991 (x_get_local_selection): Don't check type if request is local.
20992 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
20993 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
20994
20995 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
20996
20997 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
20998 add comment explaining why.
20999
21000 2007-08-03 Richard Stallman <rms@gnu.org>
21001
21002 * fileio.c (Fvisited_file_modtime): Use make_time.
21003
21004 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21005
21006 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21007 build.
21008
21009 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21010
21011 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21012
21013 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21014
21015 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21016
21017 2007-07-30 Richard Stallman <rms@gnu.org>
21018
21019 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21020
21021 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21022
21023 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21024
21025 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
21026
21027 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21028 remote default-directory.
21029
21030 * buffer.c (mode-line-format): Update doc string.
21031
21032 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21033
21034 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21035 scroll bar gap.
21036 (x_scroll_bar_create): Set bar->fringe_extended_p.
21037 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21038 on frame edge. Check fringe background extension. Don't clear
21039 extended fringe background area.
21040
21041 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21042 (w32_fill_area): Enclose multiple statements with do ... while (0).
21043
21044 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21045 Extend fringe background to scroll bar gap.
21046 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21047 Set bar->fringe_extended_p.
21048 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21049 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21050 background extension. Don't clear extended fringe background area.
21051
21052 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21053 New member fringe_extended_p.
21054
21055 2007-07-25 Glenn Morris <rgm@gnu.org>
21056
21057 * Relicense all FSF files to GPLv3 or later.
21058
21059 * COPYING: Switch to GPLv3.
21060
21061 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21062
21063 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21064
21065 * data.c (Finteractive_form): Check for the presence of an
21066 `interactive-form' symbol property more thoroughly.
21067
21068 * data.c (Finteractive_form): Use an `interactive-form' property if
21069 present, analogous to the function-documentation property.
21070
21071 2007-07-24 Jason Rumney <jasonr@gnu.org>
21072
21073 * w32fns.c (x_real_positions): Get real position from OS instead of
21074 calculating it.
21075
21076 2007-07-23 Jason Rumney <jasonr@gnu.org>
21077
21078 * filelock.c (current_lock_owner): Allow for @ sign in username.
21079
21080 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
21081
21082 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21083 remote default-directory.
21084
21085 * buffer.c (mode-line-format): Describe above case in doc string.
21086
21087 2007-07-20 Eli Zaretskii <eliz@gnu.org>
21088
21089 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21090 Define if not defined.
21091
21092 2007-07-18 Jason Rumney <jasonr@gnu.org>
21093
21094 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21095
21096 2007-07-18 Richard Stallman <rms@gnu.org>
21097
21098 * data.c (Fsetq_default): Doc fix.
21099
21100 * eval.c (Fsetq): Doc fix.
21101
21102 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
21103
21104 * coding.c (Ffind_operation_coding_system):
21105 * eval.c (For, Fand): Doc fixes.
21106 Reported by Johan Bockgård.
21107
21108 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21109
21110 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21111
21112 * xterm.h: Declare x_ewmh_activate_frame.
21113
21114 * xterm.c (x_ewmh_activate_frame): New function.
21115 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21116
21117 2007-07-17 Martin Rudalics <rudalics@gmx.at>
21118
21119 * window.c (Fdisplay_buffer): If largest or LRU window is the
21120 only window, split it even if it is not eligible for splitting.
21121 This restores the original behavior broken by the 2007-07-15
21122 change.
21123
21124 2007-07-17 Glenn Morris <rgm@gnu.org>
21125
21126 * abbrev.c (abbrev_check_chars): New function.
21127 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21128 Call abbrev_check_chars to check abbrev characters are word
21129 constituents. Doc fix.
21130
21131 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21132
21133 * process.c (Fstart_process, Fmake_network_process)
21134 (read_process_output): Fix up last changes.
21135
21136 2007-07-16 Eli Zaretskii <eliz@gnu.org>
21137
21138 * makefile.w32-in (clean): Don't delete *~.
21139
21140 2007-07-16 Andreas Schwab <schwab@suse.de>
21141
21142 * window.c (Fdisplay_buffer): Use NILP.
21143 (Fset_window_scroll_bars): Likewise.
21144
21145 2007-07-15 Martin Rudalics <rudalics@gmx.at>
21146
21147 * window.c (window_min_size_2): New function.
21148 (window_min_size_1, size_window, Fdisplay_buffer)
21149 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21150 windows without mode- or header-lines when window-min-height is
21151 too small.
21152 (size_window): Reset nodelete_p after testing it, following an
21153 earlier note by Kim F. Storm.
21154 (display_buffer): Do not set split_height_threshold to twice the
21155 value of window_min_height to avoid changing the value of a
21156 customizable variable. Rather explicitly check whether the
21157 height of the window that shall be splitted is at least as large
21158 as split_height_threshold.
21159 (Fwindow_full_width_p): New defun.
21160 (syms_of_window): Defsubr it.
21161
21162 * window.h: Add EXFUN for Fwindow_full_width_p.
21163
21164 2007-07-14 Jason Rumney <jasonr@gnu.org>
21165
21166 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21167
21168 2007-07-14 Richard Stallman <rms@gnu.org>
21169
21170 * eval.c (maybe_call_debugger): New function.
21171 (find_handler_clause): Use maybe_call_debugger.
21172 Call it when the handler says `debug'.
21173 Eliminate DEBUGGER_VALUE_PTR.
21174 (Fsignal): Eliminate debugger_value.
21175 (Qdebug): New variable.
21176 (syms_of_eval): Initialize it.
21177
21178 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
21179
21180 * eval.c (Fprogn):
21181 * keyboard.c (Ftrack_mouse):
21182 * print.c (Fwith_output_to_temp_buffer):
21183 * window.c (Fsave_window_excursion): Doc fix.
21184
21185 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21186
21187 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21188
21189 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21190
21191 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21192 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21193 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21194 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21195 Remove unused encoding_carryover.
21196 * process.c: Adjust all functions accordingly.
21197
21198 2007-07-12 Richard Stallman <rms@gnu.org>
21199
21200 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21201
21202 2007-07-11 Jason Rumney <jasonr@gnu.org>
21203
21204 * makefile.w32-in (LIBS): Include OLE32.
21205
21206 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21207 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21208
21209 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21210
21211 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21212 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21213 from a Lisp_Object into a bare pointer.
21214 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21215 Adjust the code correspondingly.
21216
21217 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21218
21219 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21220 (term_show_mouse_face): Remove unused var `j'.
21221 (handle_one_term_event): Remove unused vars `i' and `j'.
21222 Don't cast return value of ttyname since it's not necessary.
21223
21224 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21225
21226 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21227 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21228
21229 * fns.c (map_char_table): Use an array of int for `indices' rather than
21230 an array of Lisp_Objects (which are only ever integers anyway).
21231 (Fmap_char_table): Update caller.
21232 * lisp.h: Update prototype.
21233 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21234 * fontset.c (Ffontset_info):
21235 * casetab.c (set_case_table): Update callers.
21236
21237 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21238
21239 * keymap.c (struct accessible_keymaps_data)
21240 (struct where_is_internal_data): New structures.
21241 (accessible_keymaps_1, where_is_internal_1): Use them to change
21242 interface to adhere to the one used by map_keymap.
21243 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21244 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21245
21246 * keymap.h (map_keymap_function_t): More informative prototype.
21247
21248 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21249
21250 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21251 (looking_at_1): Don't change search_regs and last_thing_searched
21252 if `inhibit-changing-match-data' is non-nil.
21253 (string_match_1, search_buffer, set_search_regs): Likewise.
21254 (syms_of_search): Add Lisp level definition for
21255 `inhibit-changing-match-data' and set it to nil.
21256 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21257 start and end of the match, instead of using values in search_regs.
21258
21259 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21260
21261 * minibuf.c (Fcompleting_read): New value `confirm-only'
21262 for `require-match'.
21263
21264 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21265
21266 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21267 part of the 2007-06-27 change to syms_of_fileio.
21268
21269 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21270
21271 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21272 Check WINDOWP before using XWINDOW. Consolidate return statements.
21273
21274 2007-06-27 Richard Stallman <rms@gnu.org>
21275
21276 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21277
21278 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
21279
21280 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21281
21282 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21283
21284 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21285 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21286 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21287 (_free_internal, memalign): Use them.
21288 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21289 Initialize to PTHREAD_MUTEX_INITIALIZER.
21290 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21291 (morecore_nolock): Rename from morecore. All uses changed.
21292 Use only nolock versions of internal allocation functions.
21293 (_malloc_internal_nolock, _realloc_internal_nolock)
21294 (_free_internal_nolock): New functions created from
21295 _malloc_internal, _realloc_internal, and _free_internal.
21296 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21297 Copy hook value to automatic variable before its use.
21298 (memalign): Copy hook value to automatic variable before its use.
21299
21300 2007-06-26 Kenichi Handa <handa@m17n.org>
21301
21302 * coding.c (Ffind_operation_coding_system): Docstring improved.
21303 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21304
21305 2007-06-25 David Kastrup <dak@gnu.org>
21306
21307 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21308 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21309 cater for additional parameter.
21310
21311 * keymap.h: Adjust number of parameters to `current-active-maps'.
21312
21313 * doc.c (Fsubstitute_command_keys): Adjust call of
21314 `current-active-maps'.
21315
21316 2007-06-25 David Kastrup <dak@gnu.org>
21317
21318 * callint.c (Fcall_interactively): Make the parsing of interactive
21319 specs somewhat more readable.
21320
21321 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21322
21323 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21324 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21325 if extended background has already been filled.
21326
21327 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21328
21329 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21330 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21331
21332 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21333 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21334 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21335 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21336 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21337 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21338 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21339 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21340 Run timers during dialog popup.
21341 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21342
21343 2007-06-21 Jason Rumney <jasonr@gnu.org>
21344
21345 * image.c (convert_mono_to_color_image): Swap fore and background.
21346
21347 2007-06-20 Jason Rumney <jasonr@gnu.org>
21348
21349 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21350 (w32_free_bdf_font): Unmap memory not handle.
21351
21352 2007-06-20 Sam Steingold <sds@gnu.org>
21353
21354 * gmalloc.c (__morecore): Fix the declaration to comply with the
21355 definition.
21356
21357 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
21358
21359 * w32term.c (w32_delete_display): Remove leftover declaration.
21360 (w32_define_cursor, w32_initialize): Make static.
21361
21362 * w32.c (_wsa_errlist): Fix typo in error message.
21363 (init_environment): Ignore any environment variable from the
21364 registry having a null value.
21365
21366 2007-06-20 Glenn Morris <rgm@gnu.org>
21367
21368 * Makefile.in (LIBGIF): Default to -lgif.
21369
21370 2007-06-17 Jason Rumney <jasonr@gnu.org>
21371
21372 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21373 unicode strings.
21374
21375 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
21376
21377 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21378 Fix typo in docstring.
21379
21380 2007-06-16 Eli Zaretskii <eliz@gnu.org>
21381
21382 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21383 and their keybindings.
21384
21385 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
21386
21387 * composite.c (update_compositions): Fix last fix.
21388
21389 2007-06-14 Jason Rumney <jasonr@gnu.org>
21390
21391 * w32.c (get_process_times_fn): New function pointer.
21392 (globals_of_w32): Intialize it if present in kernel32.dll.
21393 (w32_get_internal_run_time): New function.
21394
21395 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21396
21397 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21398
21399 * composite.c (update_compositions): Check the validness of
21400 compositions.
21401
21402 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21403
21404 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21405 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21406
21407 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21408 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21409
21410 * macgui.h (USE_MAC_TOOLBAR): New define.
21411
21412 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21413 Return immediately unless popup is activated.
21414
21415 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21416 background to scroll bar gap.
21417 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21418 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21419 scroll bars on frame edge. Check fringe background extension.
21420 Don't clear extended fringe background area.
21421 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21422 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21423 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21424 [USE_MAC_TOOLBAR]: New macros.
21425 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21426 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21427 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21428 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21429 [USE_MAC_TOOLBAR]: New functions.
21430 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21431 manually if previous repositioning has failed.
21432 (mac_handle_keyboard_event): Use precomputed event kind.
21433 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21434 as tool bar item click. Handle mouse movement over tool bar items.
21435
21436 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21437 toolbar_win_gravity.
21438 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21439 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21440 Add externs.
21441
21442 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21443 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21444
21445 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
21446
21447 * image.c (search_image_cache): Remove unused variable.
21448
21449 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
21450
21451 * xfns.c, xmenu.c: Link to xaw3d if available.
21452
21453 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21454
21455 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21456 frame_foreground and frame_background.
21457
21458 * image.c (lookup_image): Save frame foreground and background colors.
21459 (search_image_cache): Check if saved and current frame colors match.
21460
21461 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21462
21463 * regex.c (regex_compile): Remove the `regnum' counter.
21464 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21465
21466 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21467
21468 * term.c: Include intervals.h to declare Fget_text_property.
21469
21470 2007-06-10 Jason Rumney <jasonr@gnu.org>
21471
21472 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21473
21474 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
21475
21476 * callint.c (Fcall_interactively):
21477 * editfns.c (Fdelete_and_extract_region):
21478 * fileio.c (Fread_file_name):
21479 * fns.c (Fmapconcat):
21480 * keyboard.c (cmd_error_internal):
21481 * keymap.c (Fkey_description):
21482 * lread.c (openp):
21483 * minibuf.c (read_minibuf):
21484 * search.c (wordify):
21485 * sunfns.c (sel_read):
21486 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21487 * xfns.c (x_default_scroll_bar_color_parameter):
21488 * xmenu.c (menu_help_callback):
21489 * xselect.c (Fx_get_atom_name):
21490 * xterm.c (x_term_init): Use empty_unibyte_string.
21491
21492 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21493
21494 * alloc.c (init_strings): Initialize canonical empty strings.
21495 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21496 canonical empty string when the requested size is 0.
21497
21498 * emacs.c (empty_unibyte_string): Rename from empty_string.
21499 (empty_multibyte_string): New canonical empty string.
21500 (syms_of_emacs): Don't initialize empty_string.
21501
21502 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21503 string, if appropriate.
21504 (empty_unibyte_string, empty_multibyte_string): New externs.
21505 (empty_string): Remove extern.
21506
21507 * lread.c (syms_of_lread): Use empty_unibyte_string.
21508
21509 2007-06-07 Jason Rumney <jasonr@gnu.org>
21510
21511 * s/ms-w32.h: Don't define HAVE_TZNAME.
21512
21513 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21514
21515 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21516
21517 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21518
21519 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21520 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21521
21522 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21523 Don't call next handler.
21524 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21525 Remove argument. Install handler to application.
21526 (set_frame_menubar): Don't change deep_p.
21527 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21528 FRAME_OUTER_TO_INNER_DIFF_Y.
21529 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21530 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21531 [HAVE_DIALOGS]: New macros.
21532 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21533 Use them.
21534 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21535
21536 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21537 init_service_handler. All callers changed. Return OSStatus value.
21538
21539 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21540 All callers changed so as not to call SetPortWindowPort.
21541 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21542 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21543 mac_draw_string_common.
21544 (mac_draw_image_string_qd): Likewise.
21545 (mac_draw_string_common): Use them. Add INLINE.
21546 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21547 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21548 GetGlobalMouse.
21549 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21550 and FRAME_OUTER_TO_INNER_DIFF_Y.
21551 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21552 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21553 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21554 repositioning window to mac_handle_window_event.
21555 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21556 saving window location to mac_handle_window_event
21557 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21558 (install_menu_target_item_handler): Remove argument in extern.
21559 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21560 Also accept command events.
21561 (do_keystroke): New function created from XTread_socket.
21562 (init_command_handler): Remove functions.
21563 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21564 and save window location by kEventWindowShowing and kEventWindowHiding
21565 handlers here. Don't call next handler for window state change and
21566 focus events.
21567 (mac_handle_application_event, mac_handle_keyboard_event)
21568 [TARGET_API_MAC_CARBON]: New functions.
21569 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21570 kEventWindowShowing and kEventWindowHiding events. Move installation
21571 of mouse, font, text input and menu target item handlers to
21572 install_application_handler.
21573 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21574 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21575 New function.
21576 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21577 Register it.
21578 (XTread_socket) [TARGET_API_MAC_CARBON]:
21579 Consolidate SendEventToEventTarget calls.
21580 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21581 Move application activation handler to mac_handle_application_event.
21582 Move keyboard handler to mac_handle_keyboard_event.
21583 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21584 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21585 init_command_handler. Call install_application_handler.
21586
21587 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21588 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21589
21590 2007-06-07 Glenn Morris <rgm@gnu.org>
21591
21592 * emacs.c (main): Use `emacs-copyright' in --version output.
21593
21594 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
21595
21596 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21597
21598 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21599
21600 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21601
21602 * macgui.h: Replace WindowPtr with WindowRef.
21603
21604 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21605 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21606 Replace ControlHandle with ControlRef.
21607 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21608
21609 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21610 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21611 Replace ControlHandle with ControlRef.
21612 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21613 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21614
21615 * macterm.h (struct scroll_bar): Rename member control_handle_low
21616 and control_handle_high to control_ref_low and control_ref_high.
21617 All uses changed.
21618 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21619 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21620 respectively. All uses changed.
21621 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21622 (install_window_handler, remove_window_handler): Replace WindowPtr
21623 with WindowRef in externs.
21624
21625 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
21626
21627 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21628
21629 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
21630
21631 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21632
21633 * frame.c (Fmouse_position, Fmouse_pixel_position):
21634 Condition on HAVE_GPM too.
21635
21636 * term.c (term_mouse_highlight): Remove unused variables.
21637 (Fterm_open_connection): Set gpm_zerobased to 1.
21638 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21639 Use zero based co-ordinates.
21640 (handle_one_term_event): Report a drag as mouse movement too.
21641
21642 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
21643
21644 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
21645
21646 * image.c (search_image_cache): New function. Require background
21647 color match if background color is unspecified in the image spec.
21648 (uncache_image, lookup_image): Use it.
21649
21650 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
21651
21652 * window.c (Fshrink_window): Reflow docstring.
21653
21654 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
21655
21656 * Version 22.1 released.
21657
21658 2007-06-01 Richard Stallman <rms@gnu.org>
21659
21660 * xfns.c (x_encode_text): Add GCPRO.
21661
21662 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21663
21664 * xfns.c (x_set_name_internal): Save encoded name before
21665 x_encode_text in case string data is relocated.
21666
21667 2007-05-31 Richard Stallman <rms@gnu.org>
21668
21669 * buffer.c (syms_of_buffer): Doc fix.
21670
21671 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
21672
21673 * sysdep.c (init_sys_modes): Add rather than replace with
21674 O_NONBLOCK.
21675
21676 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
21677 term_mouse_moveto.
21678
21679 * termhooks.h (term_mouse_moveto): New extern.
21680
21681 * term.c (mouse_face_window): Rename...
21682 (Qmouse_face_window): ...to this.
21683 (term_show_mouse_face, term_clear_mouse_face)
21684 (term_mouse_highlight): Use Qmouse_face_window.
21685 (term_mouse_moveto): New function.
21686 (term_mouse_position): Make it work.
21687 (syms_of_term): Uncomment assignment to mouse_position_hook.
21688 Staticpro Qmouse_face_window.
21689
21690 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21691
21692 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
21693 around current_column call.
21694
21695 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
21696
21697 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
21698 * xdisp.c (next_element_from_buffer):
21699 * window.c (delete_window):
21700 * term.c (term_mouse_highlight):
21701 * msdos.c (getdefdir):
21702 * macterm.c (mac_create_bitmap_from_bitmap_data)
21703 (init_font_name_table):
21704 * fns.c (Fsxhash):
21705 * data.c (Fmake_local_variable):
21706 * ccl.c (ccl_driver): Likewise.
21707
21708 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21709
21710 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
21711 Call mac_wakeup_from_rne on window size change.
21712
21713 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
21714
21715 * image.c (uncache_image): Fix typo.
21716
21717 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
21718
21719 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
21720
21721 2007-05-22 Richard Stallman <rms@gnu.org>
21722
21723 * xterm.c (x_connection_closed): Remove NO_RETURN.
21724
21725 2007-05-22 Martin Rudalics <rudalics@gmx.at>
21726
21727 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
21728
21729 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
21730
21731 * image.c (uncache_image): New function.
21732 (Fimage_refresh): New function.
21733
21734 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
21735
21736 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
21737
21738 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
21739
21740 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
21741 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
21742
21743 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
21744
21745 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
21746 conditional on [HAVE_GPM_H].
21747
21748 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21749
21750 * syntax.c (skip_chars): Update syntax-table only after we checked that
21751 the new location is valid.
21752
21753 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21754
21755 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
21756 mac_get_window_bounds.
21757
21758 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
21759
21760 * Makefile.in (LIBGPM): Allow it to be set from configure.
21761 If set then link Emacs with it.
21762
21763 * config.in: Regenerate.
21764
21765 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
21766 New externs.
21767
21768 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
21769 Include gpm.h.
21770 (handle_one_term_event, term_gpm): New externs.
21771
21772 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
21773 and allow it to be interrupted by SIGIO.
21774
21775 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
21776 (wait_reading_process_output): Wait on gpm_fd too.
21777 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
21778 (add_gpm_wait_descriptor_called_flag): New variable.
21779 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
21780
21781 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
21782 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
21783 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
21784 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
21785 (make_lispy_event): Add case GPM_CLICK_EVENT.
21786 (read_avail_input): Handle mouse input.
21787
21788 * term.c (write_glyphs_with_face): New function.
21789 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
21790 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
21791 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
21792 (mouse_face_face_id, term_gpm, pos_x, pos_y)
21793 (last_mouse_x, last_mouse_y): New variables.
21794 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
21795 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
21796 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
21797 (Fterm_close_connection): New functions.
21798 (term_init): Initialise mouse_face_window.
21799
21800 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
21801
21802 * xdisp.c (redisplay_window): If first window line is a
21803 continuation line, recompute the new window start instead of
21804 recentering.
21805
21806 2007-05-18 Glenn Morris <rgm@gnu.org>
21807
21808 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
21809 Suggested by Alfred M. Szmidt <ams@gnu.org>.
21810
21811 2007-05-17 Glenn Morris <rgm@gnu.org>
21812
21813 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
21814
21815 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21816
21817 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
21818 dead key repeat and up events.
21819
21820 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
21821
21822 * image.c (pbm_load): Check image size for monochrome pbm.
21823
21824 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
21825
21826 * xterm.c (XTread_socket): Revert last change.
21827
21828 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
21829
21830 * image.c (pbm_load): Correctly check image size for greyscale pbm.
21831
21832 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
21833
21834 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21835
21836 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
21837 mixup (YAILOM).
21838
21839 2007-05-07 Andreas Schwab <schwab@suse.de>
21840
21841 * keymap.c (Flookup_key): Fix typo in last change.
21842
21843 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21844
21845 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
21846 mapping for unibyte strings.
21847
21848 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21849
21850 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
21851 (Fx_popup_dialog) [MAC_OSX]: Likewise.
21852
21853 2007-04-29 Richard Stallman <rms@gnu.org>
21854
21855 * insdel.c (replace_range): For undo, record insertion first.
21856
21857 2007-04-29 Andreas Schwab <schwab@suse.de>
21858
21859 * lisp.h (VECSIZE): Use OFFSETOF.
21860
21861 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21862
21863 * xdisp.c (try_window_reusing_current_matrix): Fix number of
21864 disabled lines.
21865
21866 2007-04-28 Richard Stallman <rms@gnu.org>
21867
21868 * lread.c (read_escape): In a string, \s is always space.
21869
21870 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
21871
21872 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
21873
21874 * gtkutil.c (xg_update_menubar, create_menus): Create empty
21875 submenu for menu bar items.
21876
21877 See ChangeLog.10 for earlier changes.
21878
21879 ;; Local Variables:
21880 ;; coding: utf-8
21881 ;; add-log-time-zone-rule: t
21882 ;; End:
21883
21884 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
21885
21886 This file is part of GNU Emacs.
21887
21888 GNU Emacs is free software: you can redistribute it and/or modify
21889 it under the terms of the GNU General Public License as published by
21890 the Free Software Foundation, either version 3 of the License, or
21891 (at your option) any later version.
21892
21893 GNU Emacs is distributed in the hope that it will be useful,
21894 but WITHOUT ANY WARRANTY; without even the implied warranty of
21895 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21896 GNU General Public License for more details.
21897
21898 You should have received a copy of the GNU General Public License
21899 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21900
21901 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40