Explain how to re-throw a signal.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
4a217bed
EZ
12010-03-31 Eli Zaretskii <eliz@gnu.org>
2
3 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
4 in this function. (Bug#5703)
5
4f103e04
CY
62010-03-31 Chong Yidong <cyd@stupidchicken.com>
7
8 * nsterm.h: Fix last change.
9
a6d676d9
CY
102010-03-30 Bernhard Herzog <bh@intevation.de> (tiny change)
11
12 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
13
67fee863
JD
142010-03-30 Jan Djärv <jan.h.d@swipnet.se>
15
16 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
17 invisible (Bug#5766).
18
9ae6e189
CY
192010-03-29 Adrian Robert <adrian.b.robert@gmail.com>
20
21 * xdisp.c (x_consider_frame_title, update_window_cursor): Remove
22 HAVE_NS conditionals.
23 (prepare_menu_bars)[HAVE_NS]: Call ns_set_doc_edited.
24
25 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
26 filename for the title.
27 (ns_set_doc_edited): Do nothing if the selected window is a
28 minibuffer window.
29
30 * nsterm.h: Add prototypes for ns_set_name_as_filename and
31 ns_set_doc_edited.
32
33 * nsterm.m: Remove unneeded prototype.
34
25c72475
GM
352010-03-28 Glenn Morris <rgm@gnu.org>
36
37 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
38 in the DOC file. (Bug#5336)
39
f79a01db
CY
402010-03-24 Chong Yidong <cyd@stupidchicken.com>
41
42 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
43
93318cbd
JD
442010-03-20 Jan Djärv <jan.h.d@swipnet.se>
45
46 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
47
48 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
49
50 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
51
ad13a3ee
YM
522010-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
53
54 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
55 XLoadQueryFont.
56
fbdc1721
KH
572010-03-16 Kenichi Handa <handa@m17n.org>
58
59 * coding.c (decode_coding_ccl): Fix previous change for the
60 multibyte case.
fb608df3
KH
61 (encode_coding_ccl): Don't setup ccl program here. Fix for the
62 case that the output buffer is fullfilled.
63 (encode_coding): Setup ccl program here.
fbdc1721 64
35cd7cd6
CY
652010-03-15 Andreas Politz <politza@fh-trier.de> (tiny change)
66
67 * editfns.c (Fformat): Account for string precision when computing
68 field width (Bug#5710).
69
618db430
SM
702010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
71
c0335e02
SM
72 Make it possible to C-g in a tight bytecode loop again (bug#5680).
73 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
74 (QUIT): Use it to consolidate code and remove redundancy.
75 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
76
254c06a8
SM
77 * regex.c (regex_compile): Setup gl_state as well.
78
618db430
SM
79 * syntax.c (skip_chars): Setup gl_state (bug#3823).
80 (in_classes): Use CONSP before XCAR/XCDR.
81
233f0c9f
CY
822010-03-03 Chong Yidong <cyd@stupidchicken.com>
83
84 * keymap.c (Fwhere_is_internal): Use Fequal to compare
85 definitions, so that keyboard macros are correctly handled
86 (Bug#5481).
87
75f80e63
EZ
882010-03-02 Eli Zaretskii <eliz@gnu.org>
89
90 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
91 text that could be relocated inside the call to emacs_mule_char.
92 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
93 (CODING_DECODE_CHAR): Add a comment describing its purpose.
94
dcfb9bc4
KH
952010-03-02 Kenichi Handa <handa@m17n.org>
96
fc9a17bc
KH
97 * character.c (parse_str_as_multibyte): Fix handling of the
98 multibyte form of raw-bytes.
99 (str_as_multibyte): Likewise.
100
dcfb9bc4
KH
101 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
102 form of raw-bytes.
103
412c01b6
CY
1042010-02-28 Chong Yidong <cyd@stupidchicken.com>
105
106 * charset.c (load_charset_map_from_file)
107 (load_charset_map_from_vector): Zero out allocated
108 charset_map_entries before using them.
109
df7e1ea0
AS
1102010-02-27 Andreas Schwab <schwab@linux-m68k.org>
111
112 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
113
fe69a722
CY
1142010-02-27 Chong Yidong <cyd@stupidchicken.com>
115
4ed28cf4
CY
116 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
117 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 118
7379cfce
KH
1192010-02-26 Kenichi Handa <handa@m17n.org>
120
f88cc4d6
KH
121 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
122
7379cfce
KH
123 * xdisp.c (reseat_to_string): Fix previous change.
124
cf2fdcfb
CY
1252010-02-26 David Reitter <david.reitter@gmail.com>
126
127 * nsfont.m (nsfont_draw): ns_antialias_text should be a
128 Lisp_Object (Bug#4736).
129
cc6c7c75
KH
1302010-02-25 Kenichi Handa <handa@m17n.org>
131
132 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
133
32e737d7
JD
1342010-02-24 Jan Djärv <jan.h.d@swipnet.se>
135
136 * xterm.c (XTflash): Move declarations before statements.
137
138 * gtkutil.c (xg_get_gdk_display): Remove (unused).
139 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
140 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
141 (xg_create_tool_bar): Remove unused variables.
142 (x_wm_set_size_hint): Move declarations before statements.
143 (xg_create_frame_widgets): Remove variable grav,
144
676cae9f
CY
1452010-02-21 Chong Yidong <cyd@stupidchicken.com>
146
147 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
148
886cc2b8
SM
1492010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
150
151 * term.c (fatal): Add a final \n if needed (bug#5596).
152
ddb2d8e2
CY
1532010-02-18 Chong Yidong <cyd@stupidchicken.com>
154
155 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
156
2a4f8d3d
GM
1572010-02-18 Glenn Morris <rgm@gnu.org>
158
159 * callint.c (Finteractive): Doc fix.
160
ebaf11b6
KH
1612010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
162
886cc2b8
SM
163 * coding.c (record_conversion_result):
164 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
165 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
166 memory allocation error.
167
d0396581
KH
1682010-02-17 Kenichi Handa <handa@m17n.org>
169
886cc2b8
SM
170 * coding.c (decode_coding_ccl): Don't setup ccl program here.
171 Fix for the case that the output buffer is fullfilled.
d0396581
KH
172 (decode_coding): Setup ccl program here. Keep looping when the
173 decoder stopped because the output buffer is
174 fullfilled (bug#5534).
175
176 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
177
98599f74
JD
1782010-02-13 Jan Djärv <jan.h.d@swipnet.se>
179
471e4f04 180 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 181 bug #5571.
886cc2b8 182 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 183 overdrawn.
98599f74 184
182659ae
JD
1852010-02-10 Jan Djärv <jan.h.d@swipnet.se>
186
187 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
188 doing_interact here.
189 (ice_connection_closed): New function.
190 (x_session_check_input, smc_die_CB, ice_io_error_handler)
191 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
192 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
193 returns I/O error.
194 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
195 bug #5512.
196
9be32c4e 1972010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
198
199 * nsfont.m (nsfont_open): The system's value for the font descent
200 is negative, so round it down to avoid clipping.
201
a2f3eb19
CY
2022010-02-06 Chong Yidong <cyd@stupidchicken.com>
203
204 * charset.c (load_charset_map_from_file)
205 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 206 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 207
3088147c
CY
2082010-02-05 Chong Yidong <cyd@stupidchicken.com>
209
210 * charset.c (load_charset_map_from_file): Allocate large
211 charset_map_entries structure on the heap rather than the stack.
212 (Bug#5526).
213
b57d9029
KH
2142010-01-31 Kenichi Handa <handa@m17n.org>
215
216 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 217 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 218
c67d885b
CY
2192010-01-31 Chong Yidong <cyd@stupidchicken.com>
220
221 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
222 <deactivated@gmail.com> (Bug#3605).
223
8fab2362
CY
2242010-01-31 David De La Harpe Golden <david@harpegolden.net>
225
226 * fileio.c (Frename_file): Correctly rename symlinks to
227 directories (Bug#5496).
228
cb2a62f2
CY
2292010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
230
231 * nsterm.m (ns_ring_bell): Handle visible bell like X.
232
944c7a26
AS
2332010-01-30 Andreas Schwab <schwab@linux-m68k.org>
234
235 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
236
c024ac08
CY
2372010-01-29 Chong Yidong <cyd@stupidchicken.com>
238
239 * frame.c (DEFAULT_ROWS): Change default to 35.
240
241 * xfns.c (x_default_font_parameter): Change default XFT font to
242 monospace-10 (Bug#3643).
243
af93af83
EZ
2442010-01-29 Eli Zaretskii <eliz@gnu.org>
245
246 * w32inevt.c (key_event): Remove unnecessary comparison of
247 event->uChar.AsciiChar with 128.
248
ca0eb708
CY
2492010-01-28 Chong Yidong <cyd@stupidchicken.com>
250
b242dbfc
CY
251 * fileio.c (Frename_file): Fix last change (Bug#5487).
252
ca0eb708
CY
253 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
254
255 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
256
45d45af5
JD
2572010-01-28 Jan Djärv <jan.h.d@swipnet.se>
258
259 * xfns.c (Fx_create_frame): Remove window size matching code from
260 2010-01-15.
261 (x_get_current_desktop, x_get_desktop_workarea): Remove
262
7e233730
JR
2632010-01-27 Jason Rumney <jasonr@gnu.org>
264
265 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 266 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 267
86e893e3
KH
2682010-01-27 Kenichi Handa <handa@m17n.org>
269
270 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 271 pattern string (Bug#4209).
86e893e3 272
8719abec
CY
2732010-01-27 David De La Harpe Golden <david@harpegolden.net>
274
275 * fileio.c (Frename_file): Call copy-directory and
276 delete-directory for directories, in order to handle cross-device
277 renaming (Bug#3353).
278
844794c8
JD
2792010-01-25 Jan Djärv <jan.h.d@swipnet.se>
280
aa3e13b5 281 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 282 sizes 24 and 10. Bug #3643.
844794c8 283
bd4b5750
SM
2842010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
285
8dc1adf6 286 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
287 * keymap.c (shadow_lookup): Add `remap' arg.
288 (describe_map, describe_vector): Update calls to shadow_lookup.
289 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
290 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
291 perform remapping during shadow_lookup check of remapped_sequences.
292
285d07e2
CY
2932010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
294
295 * image.c (png_load): Use png_sig_cmp instead of the obsolete
296 png_check_sig, which has been removed in libpng 1.4.
297
c6d09b8d
CY
2982010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
299
300 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
301 lacks this header file).
302
3d782998
YM
3032010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
304
305 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
306 as in Emacs 22.
307
2aff7c53
YM
3082010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
309
310 * lisp.h (make_pure_string): String pointer arg now points to const.
311
312 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
313 args now point to const.
314
74327f7a
EZ
3152010-01-22 Eli Zaretskii <eliz@gnu.org>
316
317 * lread.c (Fload): Don't treat files without .elc extension as
318 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
319 them. (bug#5303)
320
4d1e6632
KH
3212010-01-20 Kenichi Handa <handa@m17n.org>
322
323 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
324 treat the source as actual byte sequence.
325
1fdede8f
AM
3262010-01-19 Alan Mackenzie <acm@muc.de>
327
328 Fix spurious before-change-functions invocation from (insert ?\n).
329 * textprop.c (set_text_properties): rename parameter
330 `signal_after_change_p' to `coherent_change_p', and make the
331 invocation of `modify_region' conditional on it.
332
67477f30
JD
3332010-01-19 Jan Djärv <jan.h.d@swipnet.se>
334
335 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
336 for debug purpose.
337 (syms_of_xsettings): Declare xft-settings.
338
244b023e
CY
3392010-01-18 Chong Yidong <cyd@stupidchicken.com>
340
341 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
342
617364fe
CY
3432010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
344
345 * xterm.c (event_handler_gdk): Block input (Bug#5037).
346
4fe22cdf
CY
3472010-01-16 Chong Yidong <cyd@stupidchicken.com>
348
349 * emacs.c (standard_args): Adjust arg priorities to reflect how
350 they are processed in startup.el.
351
e118d2be
AS
3522010-01-16 Andreas Schwab <schwab@linux-m68k.org>
353
354 * Makefile.in (lisp, shortlisp): Update.
355
523ae620
SM
3562010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
357
358 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
359 code, link the new kboard into all_kboard before running Lisp code,
360 and protect the new terminal with GCPRO (Bug#5365).
361 (x_term_init): Remove unused var `atom'.
362 (x_delete_display, x_delete_terminal): Remove unused var `i'.
363
f0d13888
JD
3642010-01-15 Jan Djärv <jan.h.d@swipnet.se>
365
366 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
367 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
368 to find out usable size of the desktop. Don't make frames larger than
ac146f82 369 this. Bug #3643.
f0d13888 370
cc320f07
KH
3712010-01-15 Kenichi Handa <handa@m17n.org>
372
373 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
374
7ffdf101
CY
3752010-01-15 Chong Yidong <cyd@stupidchicken.com>
376
377 * nsterm.m (Qnone): Define.
378
379 * nsfns.m (Qnone): Move definition to nsterm.m.
380
d12bd917
KH
3812010-01-14 Kenichi Handa <handa@m17n.org>
382
383 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
384 systems.
385
d9a7c140
KH
3862010-01-14 Kenichi Handa <handa@m17n.org>
387
388 Make auto-composition work on all buffers even if they are
389 fundamental mode.
390
391 * composite.c (Vauto_composition_mode): New variable.
392 (composition_compute_stop_pos): Check Vauto_composition_mode
393 instead of Vauto_composition_function.
394 (composition_adjust_point, Ffind_composition_internal): Likewise.
395 (syms_of_composite): Declare Lisp variable
396 "auto-composition-mode" here.
397
63286bb2
CY
3982010-01-13 Chong Yidong <cyd@stupidchicken.com>
399
400 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
401 during call to vendor-specific-keysyms (Bug#5365).
402
c2623ee7
YM
4032010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
404
405 * keyboard.c (input_available_signal) [SYNC_INPUT]:
406 Call SIGNAL_THREAD_CHECK (Bug#5333).
407
408 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
409 Call SIGNAL_THREAD_CHECK.
410
0b5397c2
SM
4112010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
412
413 Try to fix bug#5314. This is probably not the final word, tho.
414 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
415 recent-auto-save-p as a side-effect.
416 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
417 * buffer.c (Fkill_buffer, reset_buffer):
418 * editfns.c (Fsubst_char_in_region):
419 * fileio.c (Finsert_file_contents, Fdo_auto_save)
420 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
421
dc954cb2
KH
4222010-01-13 Kenichi Handa <handa@m17n.org>
423
424 Display buffer name, etc. in mode line by composing correctly.
425
426 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
427 STRING is not nil.
0b5397c2 428 (display_mode_element): Adjust for the change of
dc954cb2
KH
429 decode_mode_spec and display_line.
430 (decode_mode_spec): Change arg MULTIBYTE to STRING.
431 (display_string): Handle the case that STRING is non-null and
432 LISP_STRING is not nil.
433
0b5397c2
SM
434 * xterm.c (x_draw_composite_glyph_string_foreground):
435 Pay attention to s->face->overstrike.
dc954cb2
KH
436
437 * composite.c (composition_reseat_it): Don't check PT if STRING is
438 non nil.
439
4a00eaca
YM
4402010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
441
442 * keyboard.c (read_char): Don't apply previous change when current
443 buffer is unchanged by command execution.
444
60abb287
JD
4452010-01-12 Jan Djärv <jan.h.d@swipnet.se>
446
447 * keyboard.c (read_char): Return after executing from special map.
448
893db5bc
GM
4492010-01-12 Glenn Morris <rgm@gnu.org>
450
451 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
452 bug-gnu-emacs rather than emacs-pretest-bug.
453
4d03ece0
CY
4542010-01-11 Chong Yidong <cyd@stupidchicken.com>
455
456 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
457 initializing the Lisp variables that depend on them.
458
1df47e38
YM
4592010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
460
461 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
462 Clear areas that will not be updated after change of menu bar lines.
463 Clear the menu bar window's current matrix when the window gets empty.
464
2f1c6384
CY
4652010-01-09 Chong Yidong <cyd@stupidchicken.com>
466
e398c61c
CY
467 * intervals.h, textprop.c (extend_property_ranges): Return value
468 and args changed. Discard properties that begin at or after the
469 new end (Bug#5306).
470
471 * editfns.c (Fformat): Caller changed.
472
e5a29a10
CY
473 * nsterm.m (ns_set_default_prefs): Delete function.
474 (syms_of_nsterm): Initialize ns_command_modifier,
475 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
476 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
477
2f1c6384
CY
478 * xdisp.c (pos_visible_p): Check for invisible text at the correct
479 position (Bug#4040).
480
d427a9fa
EZ
4812010-01-09 Eli Zaretskii <eliz@gnu.org>
482
483 * editfns.c (Ffloat_time): Doc fix.
484
21b9df2f
JD
4852010-01-09 Jan Djärv <jan.h.d@swipnet.se>
486
487 * xfns.c (Fx_create_frame): Don't create frame larger than display
488 by default bug#3643.
489
4b00d3b1
YM
4902010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
491
492 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
493 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
494 windows above internal border.
495
496 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
497 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
498 windows above internal border.
499
500 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
501 tool bar windows specially.
502
503 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
504
505 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
506 specially.
507 (XTflash): Take account of menu bar height.
508
509 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
510 specially.
511
5075d853
JD
5122010-01-08 Jan Djärv <jan.h.d@swipnet.se>
513
ac146f82 514 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
515 also be true before we can return early (bug #5339).
516
474217c8
CY
5172010-01-06 David Reitter <david.reitter@gmail.com>
518
519 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
520 (Fns_display_usable_bounds): Rewrite, computing bounds properly
521 (Bug#3233).
522
c0e6d47d
JD
5232010-01-06 Jan Djärv <jan.h.d@swipnet.se>
524
d0cf45b7
JD
525 * font.c (font_open_entity): Enable chache and call cached_font_ok
526 for the driver if defined.
527 (QCuser_spec): New symbol.
528 (font_spec_from_name): Save name as user-spec.
529 (font_load_for_lface): Keep user-spec instead of name.
530 (font_open_by_name): Save name as user-spec.
531 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 532 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
533
534 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
535 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
536 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
537
538 * font.h (struct font_driver): Add cached_font_ok.
539
c0e6d47d
JD
540 * xterm.c (x_clear_frame): Queue draw for scroll bars.
541
7c583cd8
JD
5422010-01-05 Jan Djärv <jan.h.d@swipnet.se>
543
544 * xterm.c (x_new_font): Move code for setting rows/cols before
545 resizing ...
ac146f82 546 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
547
548 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
549 (xg_frame_resized, xg_frame_set_char_size):
550 Call xg_clear_under_internal_border.
7c583cd8 551 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 552
03f77f0a
CY
5532010-01-05 Chong Yidong <cyd@stupidchicken.com>
554
555 * keyboard.c (read_key_sequence): Catch keyboard switch after
556 making a new tty frame (Bug#5095).
557
2a1ef5be
KH
5582010-01-05 Kenichi Handa <handa@m17n.org>
559
560 * fontset.c (fontset_find_font): Fix getting the frame pointer.
561
e3eb1dae
SM
5622010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
563
564 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
565 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
566 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
567
777013f2
MA
5682010-01-03 Michael Albinus <michael.albinus@gmx.de>
569
570 * dbusbind.c (xd_add_watch): Improve debug message.
571 (xd_remove_watch): Improve debug message. If DATA is the session
572 bus, unset D-Bus session environment.
573 (Fdbus_init_bus): Pass the bus as argument to
574 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 575
8932b1c2
CY
5762010-01-01 Chong Yidong <cyd@stupidchicken.com>
577
87231e2c
CY
578 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
579
4801c5fa
CY
580 * lread.c (syms_of_lread): Make it clearer that these are the
581 names of loaded files (Bug#5068).
582
8932b1c2
CY
583 * eval.c (run_hook_with_args): Handle the case where the global
584 value has the obsolete single-function form (Bug#5026).
585
11e3c684
CY
5862009-12-27 Chong Yidong <cyd@stupidchicken.com>
587
588 * minibuf.c (Fall_completions): Minor optimization.
589
5b28ce35
EZ
5902009-12-26 Eli Zaretskii <eliz@gnu.org>
591
5ce6e4f4
JB
592 * .gdbinit (pgx): Fix display of composite glyphs.
593 Display cmp.from and cmp.to as well.
594 (pitx): Fix last change.
5b28ce35 595
bcffff46
KH
5962009-12-25 Kenichi Handa <handa@m17n.org>
597
598 * composite.h (composition_adjust_point): Update prototype.
599
600 * composite.c (composition_reseat_it): Don't make a composition
601 spanning over point.
602 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
603 composable characters.
604 (composition_adjust_point): New arg NEW_PT. Callers changed.
605
606 * keyboard.c (command_loop_1): Force redisplay if the last point
607 was within a composition.
608 (adjust_point_for_property): Don't adjust point for automatic
609 composition when called after buffer modification.
610
3f670e9a
EZ
6112009-12-19 Eli Zaretskii <eliz@gnu.org>
612
5ce6e4f4
JB
613 * .gdbinit (pitx): Don't use enum names, use their values.
614 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
615 (pgx): Don't use enum names, use their values.
616 (pitmethod): New helper command.
617 (pitx): Use it to display iteration method.
618 (pgrowit): New command.
619
ad903955
EZ
620 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
621
3f670e9a
EZ
622 Update dependencies in Makefile.in.
623
624 * Makefile.in (alloc.o): Depend on termhooks.h.
625 (atimer.o): Depend on blockinput.h.
626 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
627 and frame.h.
628 (callint.o): Depend on systime.h, coding.h, and composite.h.
629 (callproc.o): Depend on buffer.h.
630 (casefiddle.o): Don't depend on charset.h.
631 (casetab.o): Depend on character.h.
632 (ccl.o): Depend on composite.h.
633 (chartab.o): Depend on ccl.h.
634 (cm.o): Depend on dispextern.h.
635 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
636 (coding.o): Don't depend on $(INTERVALS_H).
637 (composite.o): Don't depend on dispextern.h explicitly (it's in
638 $(INTERVALS_H)). Depend on ccl.h.
639 (data.o): Depend on systime.h, coding.h, composite.h,
640 dispextern.h, font.h, and ccl.h.
641 (dired.o): Depend on composite.h.
642 (dispnew.o): Depend on coding.h. Don't depend explicitly on
643 composite.h (it's in $(INTERVALS_H)).
644 (doc.o): Depend on systime.h, coding.h, and composite.h.
645 (editfns.o): Don't depend explicitly on dispextern.h.
646 (emacs.o): Depend on frame.h and coding.h.
647 (eval.o): Depend on coding.h, composite.h, and xterm.h.
648 (fileio.o): Depend on frame.h and commands.h. Don't depend
649 explicitly on dispextern.h.
650 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
651 composite.h.
652 (fns.o): Don't depend on termhooks.h.
653 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
654 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
655 coding.h, $(INTERVALS_H), window.h, xterm.h.
656 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
657 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
658 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
659 fontset.h, ccl.h, and ftfont.h.
660 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
661 (gtkutil.o): Depend on dispextern.h and composite.h.
662 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
663 termhooks.h, and ccl.h.
664 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
665 (intervals.o): Depend on systime.h and coding.h.
666 (keyboard.o): Depend on composite.h and coding.h.
667 (keymap.o): Depend on coding.h and frame.h.
668 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
669 (macros.o): Depend on systime.h, coding.h, and composite.h.
670 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
671 and atimer.h.
672 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
673 dispextern.h explicitly.
0b5397c2
SM
674 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
675 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
676 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
677 (regex.o): Don't depend on charset.h.
678 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
679 (search.o): Don't depend explicitly on composite.h.
680 (sound.o): Depend on atimer.h and systime.h.
681 (syntax.o): Don't depend explicitly on composite.h.
682 (sysdep.o): Depend on coding.h and composite.h.
683 (term.o): Depend on xterm.h and buffer.h.
684 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
685 (textprop.o): Don't depend on dispextern.h explicitly.
686 (undo.o): Depend on dispextern.h.
687 (window.o): Depend on coding.h and termhooks.h. Don't depend on
688 dispextern.h and composite.h explicitly.
689 (xdisp.o): Depend on ccl.h.
690 (xfaces.o): Depend on coding.h and ccl.h.
691 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
692 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
693 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
694 ftfont.h.
695 (xgselect.o): New dependency.
696 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
697 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
698 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
699 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
700 (xsmfns.o): Depend on frame.h and dispextern.h.
701 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
702 sysselect.h.
703
7a6f7fea
AS
7042009-12-19 Andreas Schwab <schwab@linux-m68k.org>
705
706 * font.c (Fclear_font_cache): Pass correct cache argument to
707 font_clear_cache.
708
f4c21026
AS
7092009-12-16 Andreas Schwab <schwab@linux-m68k.org>
710
711 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
712 twice.
713
f7ab0997
CY
7142009-12-15 Chong Yidong <cyd@stupidchicken.com>
715
716 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
717 calling file-remote-p. Reported by Jim Meyering.
718
fa8e045a
MA
7192009-12-15 Michael Albinus <michael.albinus@gmx.de>
720
721 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 722 avoid compiler warnings. (Bug #5217)
fa8e045a 723
a63dba42
KH
7242009-12-14 Kenichi Handa <handa@m17n.org>
725
726 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
727 in 8-bit encoding.
728
5ce6e4f4 7292009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
730
731 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
732 tooltip windows.
733
223e5fc6
JD
7342009-12-13 Jan Djärv <jan.h.d@swipnet.se>
735
36acb2a7
JD
736 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
737 Xatom_net_window_type.
738
739 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
740 Xatom_net_window_type.
741
b8f00677
JD
742 * xterm.c (my_log_handler): New function.
743 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 744 so we can filter out buggy messages. (Bug #5120).
b8f00677 745
e5f0bc9a
JD
746 * xterm.c (xg_scroll_callback): Parameter list changed,
747 use parameter GtkScrollType to determine scroll/line/page.
748 Only allow dragging if a button < 4 is grabbed (bug #5177).
749 (xg_end_scroll_callback): New function.
750 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
751 xg_create_scroll_bar.
752
753 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
754 (scroll_end_callback): Remove.
755 (xg_create_scroll_bar): Add parameter end_callback, bind it to
756 button-release-event. Replace value-changed event with change-value,
757 bug #5177,
758 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
759 bug #5177.
760
761 * gtkutil.h (XG_LAST_SB_DATA): Remove.
762 (xg_create_scroll_bar): Add GCallback end_callback.
763
223e5fc6
JD
764 * xftfont.c (QClcdfilter): New variable.
765 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
766 (syms_of_xftfont): Initialize QClcdfilter.
767
3c055b77
JD
7682009-12-12 Jan Djärv <jan.h.d@swipnet.se>
769
770 * xsettings.c (struct xsettings): Add member seen.
771 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 772 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
773 (apply_xft_settings): Only update Xft settings with what member seen
774 indicates as new.
775
05fe33ff
EZ
7762009-12-12 Eli Zaretskii <eliz@gnu.org>
777
778 * dispextern.h (struct text_pos): Use EMACS_INT;
779 (struct glyph): Use EMACS_INT for charpos.
780 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
781 region_beg_charpos, region_end_charpos,
782 redisplay_end_trigger_charpos, and also for
783 iterator_stack_entry.end_charpos and
784 iterator_stack_entry.stop_charpos.
785
e8d7886a
JD
7862009-12-12 Jan Djärv <jan.h.d@swipnet.se>
787
5ce6e4f4 788 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
789 (xg_create_scroll_bar): Call scroll_end_callback on button release
790 event (bug #5177).
791 (xg_event_is_for_scrollbar): != replaced with ==.
792
d0db2ec8
KH
7932009-12-12 Kenichi Handa <handa@m17n.org>
794
795 * ftfont.c (struct ftfont_info): New member matrix.
796 (ftfont_open): Setup xftfont_info->matrix.
797 (MFLTFontFT): New member matrix.
798 (FLOOR, CEIL, ROUND): New macros.
799 (ftfont_get_metrics): Handle matrix transformation.
800 (ftfont_shape_by_flt): New arg matrix. Callers changed.
801
802 * xftfont.c (struct xftfont_info): New member matrix.
803 (xftfont_open): Setup xftfont_info->matrix.
804
8052009-12-10 Kenichi Handa <handa@m17n.org>
806
807 * xdisp.c (append_space_for_newline): Consider face-remapping.
808
2cc7b62f
AS
8092009-12-09 Andreas Schwab <schwab@linux-m68k.org>
810
b87dd913
AS
811 * xsettings.c: Include "keyboard.h".
812
eba5eb94
AS
813 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
814
2cc7b62f
AS
815 Fix implicit function declarations.
816 * cmds.c: Include "frame.h".
817 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
818 * frame.h: Move declaration of delete_frame outside of
819 HAVE_WINDOW_SYSTEM.
820
a4ef73c8
CY
8212009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
822
823 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
824
825 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
826 GTK builds.
827
944a300c
AS
8282009-12-07 Andreas Schwab <schwab@linux-m68k.org>
829
830 * unexelf.c (unexec): Don't search for .data twice.
831
022eef62
CY
8322009-12-05 Chong Yidong <cyd@stupidchicken.com>
833
426ac949
CY
834 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
835 if push failed.
836 (handle_line_prefix): Set avoid_cursor_p here. Check return value
837 of push_display_prop (Bug#5000).
838
022eef62
CY
839 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
840 value of font_list_entities (Bug#5085).
841
be95bee9
JB
8422009-12-04 Juanma Barranquero <lekktu@gmail.com>
843
844 Fix `string-to-number' to deal consistently with integers and floats.
845 * lread.c (isfloat_string): New argument ignore_trailing to accept all
846 trailing characters, not just whitespace.
847 (read1): Pass new arg 0 to keep old behavior.
848 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
849 trailing chars, as it is already done for integers. Doc fixes.
850 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
851
24c2d7ce
EZ
8522009-12-04 Eli Zaretskii <eliz@gnu.org>
853
0b5397c2
SM
854 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
855 Delete unused enumeration value.
24c2d7ce 856
7e694795
EZ
8572009-12-03 Eli Zaretskii <eliz@gnu.org>
858
859 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
860
84b31826
SM
8612009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
862
863 * process.c (Fmake_network_process): Fix up the tests for
864 "connectionless socket", so they DTRT for seqpacket sockets as well.
865
f00c449b
SM
8662009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
867
868 * process.c (Qseqpacket): New symbol.
869 (HAVE_SEQPACKET): New macro.
870 (Fmake_network_process): Accept new :type `seqpacket'.
871 (init_process): Add `seqpacket' feature when applicable.
872 (syms_of_process): Initialize Qseqpacket.
873
8096a0ff
YM
8742009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
875
876 * font.c (font_load_for_lface, font_open_by_name): Don't store name
877 if entity is Qnil.
878
3e0de07f
SM
8792009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
880
881 * print.c (print_preprocess): Preprocess the key_and_value table of
882 hashtables, even tho they're "hidden" (bug#5082).
883
abeafb2a
JD
8842009-11-29 Jan Djärv <jan.h.d@swipnet.se>
885
886 * frame.c (frame_make_pointer_invisible)
887 (frame_make_pointer_visible): Declare f before statements.
888
4bf47195
EZ
8892009-11-28 Eli Zaretskii <eliz@gnu.org>
890
891 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
892 omitted dependencies on lisp.h.
893
c525b3f2
JD
8942009-11-27 Jan Djärv <jan.h.d@swipnet.se>
895
ece2d4ed
JD
896 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
897 is NULL.
898
899 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
900
901 * frame.c (frame_make_pointer_invisible)
3e0de07f 902 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
903 frame.
904
c525b3f2
JD
905 * search.c (simple_search): Remove warning by making *p const.
906
2f00e299
DN
9072009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
908
909 * xdisp.c (power_letter): Remove duplicate const.
910
084b049b
JD
9112009-11-25 Jan Djärv <jan.h.d@swipnet.se>
912
a1fadc6f
JD
913 * term.c (delete_tty): Remove check for last terminal (bug#4970).
914
5ce6e4f4 915 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
916 defaults (bug #5025).
917
28259cac
SM
9182009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
919
920 * insdel.c (adjust_markers_for_delete): Move it in the
921 right direction! (bug#4803)
922
e8e14166
YM
9232009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
924
925 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
926
927 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
928
86677b58
GM
9292009-11-24 Glenn Morris <rgm@gnu.org>
930
931 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
932
581e51e8
JD
9332009-11-23 Jan Djärv <jan.h.d@swipnet.se>
934
cfc86c7a
JD
935 * Makefile.in: Must create deps for ecrt0.o in its rule.
936
581e51e8
JD
937 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
938 because that is what Gtk+ font dialog understands.
939
940 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
941 of Fcopy_sequence.
942 (font_open_by_name): Put name given into QCname for font-object returned.
943
944 * frame.c (x_set_font): Save original font name as frame parameter
945 font-parameter.
946
947 * xsettings.c (set_default_xft_settings): New function.
948 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
949 is found.
950
8b264ecb
AS
9512009-11-22 Andreas Schwab <schwab@linux-m68k.org>
952
953 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
954 searching backwards through multibyte buffer.
955
872870b2
JD
9562009-11-21 Jan Djärv <jan.h.d@swipnet.se>
957
958 * xterm.c: #include xgselect.h.
959 (x_initialize): Call xgselect_initialize.
960
961 * xsettings.c (something_changedCB): C++ comments => C comments.
962 (init_gconf): Do not deal with any GLib file descriptors, xg_select
963 does that now.
964
965 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
966 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
967 (scroll_bar_button_cb): Remove.
5ce6e4f4 968 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
969 event.
970 (xg_create_scroll_bar): Don't bind button-press-event and
971 button-release-event.
972
973 * process.c: Include xgselect.h if defined (USE_GTK) ||
974 defined (HAVE_GCONF).
975 (wait_reading_process_output): Call xg_select for the same condition.
976
977 * xgselect.c (xg_select): New function to better integrate with
978 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
979
980 * xgselect.h: New file, declare xg_select, xgselect_initialize.
981
982 * Makefile.in (XOBJ): Add xgselect.o.
983
62a6e103
AS
9842009-11-21 Andreas Schwab <schwab@linux-m68k.org>
985
0b5397c2
SM
986 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
987 Remove ignored second argument. All callers changed.
62a6e103
AS
988 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
989 (RE_STRING_CHAR_AND_LENGTH): Likewise.
990 * xdisp.c (string_char_and_length): Likewise.
991
b0ca0f33
DN
9922009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
993
994 * xterm.c (x_new_font):
995 * print.c (print_object):
996 * cmds.c (Fself_insert_command): Move declarations before statements.
997
dd5a6279
CY
9982009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
999
1000 * s/cygwin.h: Remove unneeded linker flags.
1001
4a8e097d
JD
10022009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1003
0d1d0d26
JD
1004 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1005
1006 * xsettings.h: Declare xsettings_get_system_font.
1007
1008 * xsettings.c (xsettings_get_system_font): New function.
1009 (init_gconf): No use initiating gconf unless we have Xft also.
1010 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1011 HAVE_GCONF.
1012
4a8e097d
JD
1013 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1014 add a blank entry so it doesn't collapse into nothing.
1015
8ab1650e
SM
10162009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1017
1018 * lread.c (Funintern): Comment out last change.
1019
82c602f0
RS
10202009-11-19 Richard Stallman <rms@gnu.org>
1021
1022 * lread.c (Funintern): Error if symbol is t or nil.
1023
87e32266
SM
10242009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1025
1026 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1027 representation of Lisp integers.
1028 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1029
1b9ac145
AS
10302009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1031
1032 * lisp.h: Remove declaration of Ffont_get_system_font.
1033 * xfns.c: Move include of "xsettings.h".
1034 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1035
dfb3c4c6
JD
10362009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1037
87e32266
SM
1038 * xsettings.c (something_changedCB, Ffont_get_system_font):
1039 Check use_system_font.
dfb3c4c6
JD
1040 (syms_of_xsettings): DEFVAR font-use-system-font.
1041
9370c1d8
AS
10422009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1043
25fe851a
AS
1044 * xfns.c (x_default_font_parameter): Remove dead assignment.
1045
9370c1d8
AS
1046 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1047
637fa988
JD
10482009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1049
87e32266 1050 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 1051 not have FC_LCD_*. #define them if not there.
a6eb20d8 1052
87e32266 1053 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 1054
637fa988
JD
1055 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1056
1057 * xterm.c (handle_one_xevent): Call xft_settings_event for
1058 ClientMessage, PropertyNotify and DestroyNotify.
1059 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1060 Call xsettings_initialize.
1061
1062 * xftfont.c (xftfont_fix_match): New function.
1063 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1064 Call xftfont_fix_match after XftFontMatch.
1065
1066 * xfont.c (xfont_driver): Initialize all members.
1067
87e32266
SM
1068 * xfns.c (x_default_font_parameter):
1069 Try font from Ffont_get_system_font.
637fa988
JD
1070 Do not get font from x_default_parameter if we got one from
1071 Ffont_get_system_font.
87e32266 1072 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
1073
1074 * w32font.c (w32font_driver): Initialize all members.
1075
1076 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1077
1078 * lisp.h: Declare syms_of_xsettings.
1079
87e32266
SM
1080 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1081 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
1082
1083 * ftfont.c (ftfont_filter_properties): New function.
1084
1085 * frame.c (x_set_font): Remove unused variable lval.
1086
87e32266 1087 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
1088
1089 * font.c (font_put_extra): Don't return if val is nil, it means
1090 boolean option is off.
1091 (font_parse_fcname): Collect all extra properties in extra_props
1092 and call filter_properties for all drivers with extra_props and
1093 font as parameter.
87e32266
SM
1094 (font_open_entity): Do not use cache, it does not pick up new
1095 fontconfig settings like hinting.
637fa988
JD
1096 (font_load_for_lface): If spec had a name in it, store it in entity.
1097
1098 * emacs.c (main): Call syms_of_xsettings
1099
1100 * config.in: HAVE_GCONF is new.
1101
1102 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1103 xsettings.o is new.
1104
5a942932
KH
11052009-11-17 Kenichi Handa <handa@m17n.org>
1106
1107 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1108 back to the default font in case that no suitable font is found.
1109
b7c7a4d1
SM
11102009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1111
1112 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1113 Suggested by Chad Brown <yandros@mit.edu>.
1114 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1115
072f1e39
JD
11162009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1117
1118 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1119
5d1e70a2
AS
11202009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1121
87e32266 1122 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 1123
a53cfbe5
JD
11242009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1125
473a99b7
JD
1126 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1127 has a parent.
1128
a53cfbe5 1129 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 1130 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
1131
1132 * config.in: Generated (AUTO_DEPEND).
1133
f04bb9b2
MA
11342009-11-13 Michael Albinus <michael.albinus@gmx.de>
1135
b7c7a4d1 1136 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
1137 Vdbus_registered_functions_table, because it contains also
1138 properties. Fix docstring.
b7c7a4d1 1139 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 1140
8f11f7ec
SM
11412009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1142
1143 * alloc.c (mark_object): Don't reprocess marked strings.
1144 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1145 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1146
8a605fe8
KH
11472009-11-13 Kenichi Handa <handa@m17n.org>
1148
8f11f7ec 1149 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
1150 semantics of Vword_combining_categories.
1151 (Vword_combining_categories): Describe the slight change of the
1152 semantics.
1153
241c4680
EZ
11542009-11-13 Eli Zaretskii <eliz@gnu.org>
1155
1156 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1157
1158 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1159
5d58e44c
SM
11602009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1161
1162 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1163
5e13f9d3
JB
11642009-11-12 Juanma Barranquero <lekktu@gmail.com>
1165
1166 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1167
cf54c754
DR
11682009-11-11 David Reitter <david.reitter@gmail.com>
1169
1170 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1171 variables to fix 2009-11-09 change.
1172
a4ada374
DN
11732009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1174
91433552
DN
1175 * process.c (ifflag_def): Make flag_sym constant.
1176 (Fnetwork_interface_info): Use a constant pointer.
1177 (ifflag_table):
1178 * xfns.c (cursor_bits):
1179 * xdisp.c (power_letter):
1180 * termcap.c (speeds, esctab):
1181 * sysdep.c (baud_convert):
1182 * keyboard.c (lispy_accent_codes, modifier_names):
1183 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1184 (jpeg_format, tiff_format, gif_format, svg_format)
1185 (interlace_start, interlace_increment, gs_format):
1186 * gtkutil.c (separator_names):
1187 * fringe.c (swap_nibble):
1188 * fns.c (base64_value_to_char, base64_char_to_value):
1189 * fileio.c (make_temp_name_tbl):
1190 * coding.c (suffixes): Make constant.
1191
f4265f6c
DN
1192 * frame.c (make_initial_frame):
1193 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1194 build_string.
1195 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1196
04420943
DN
1197 * s/freebsd.h:
1198 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1199
0a5d24ae
DN
1200 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1201 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1202
a4ada374
DN
1203 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1204 * xterm.c (syms_of_xterm):
1205 * xfaces.c (syms_of_xfaces):
1206 * xdisp.c (syms_of_xdisp):
1207 * lread.c (syms_of_lread):
1208 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1209 build_string.
91433552 1210
a4ada374
DN
1211 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1212
af98fc7f
SM
12132009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1214
8ab1650e 1215 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 1216
e90292a9
JD
12172009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1218
1219 * keyboard.h: Declare timer_check.
1220
1221 * keyboard.c (timer_check_2): New function that does what the old
1222 timer_check did.
1223 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1224 returned, i.e. don't return -1 with timers pending.
1225
1226 * process.c: Remove extern declaration of timer_check.
1227
1228 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1229 even if timer_check returned -1.
1230
af98fc7f
SM
1231 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1232 xg_dialog_data.
e90292a9
JD
1233 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1234 the event loop.
1235 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1236 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1237 Destroy the dialog after xg_dialog_run.
1238
045b83c0
SM
12392009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1240
1241 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1242
1fb99a3a
JD
12432009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1244
1245 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1246
04e452cb
JB
12472009-11-09 Juanma Barranquero <lekktu@gmail.com>
1248
1249 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1250
ef7417fd
SM
12512009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1252
1253 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1254 w32menu.c, and nsmenu.m.
1255 Simplify the obsolete case where position is nil.
1256 (cleanup_popup_menu): New function, moved from nsmenu.m.
1257 (struct skp): Remove slot `notreal'.
1258 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1259 adjust callers.
1260 (single_menu_item): Adjust call to parse_menu_item.
1261 (syms_of_menu): Defsubr x-popup-menu.
1262 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1263 (keymap_panes): Don't export any more.
1264 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1265 (xmenu_show): Declare.
1266 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1267 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1268 * keyboard.h (parse_menu_item): Update declaration.
1269 * xmenu.c (Fx_popup_menu): Remove.
1270 (syms_of_xmenu): Don't defsubr x-popup-menu.
1271 * w32menu.c (Fx_popup_menu): Remove.
1272 (syms_of_w32menu): Don't defsubr x-popup-menu.
1273 * nsmenu.m (cleanup_popup_menu): Remove.
1274 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1275 moved to menu.c's Fx_popup_menu.
1276 (Fx_popup_menu): Remove.
1277 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1278 menu_items (it's done in menu.c already).
1279
424d6179
SM
12802009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1281
1282 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1283 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1284
c0df13a6 12852009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
1286
1287 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 1288 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
1289 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1290 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1291
2de9f71c
SM
12922009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1293
1294 Let integers use up 2 tags to give them one extra bit and thus double
1295 their range.
1296 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1297 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1298 New macros.
1299 (enum Lisp_Type): Use them. Give explicit values.
1300 (Lisp_Type_Limit): Remove.
1301 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1302 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1303 Pay attention to USE_2_TAGS_FOR_INTS.
1304 (INTEGERP): Use LISP_INT_TAG_P.
1305 * fns.c (internal_equal): Simplify the default case.
1306 (sxhash): Use case_Lisp_Int.
1307 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1308 any more.
1309 (Ftype_of): Use case_Lisp_Int.
1310 (store_symval_forwarding): Take into account the fact that Ints can
1311 now have more than one tag.
1312 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1313 buffer_slot_type_mismatch):
1314 * xfaces.c (face_attr_equal_p):
1315 * print.c (print_object):
1316 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1317 Use case_Lisp_Int.
1318
323637a2
EZ
13192009-11-06 Eli Zaretskii <eliz@gnu.org>
1320
7ac65b38
EZ
1321 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1322
323637a2
EZ
1323 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1324 warning.
1325
e511451f
JD
13262009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1327
1328 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1329
1330 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1331
1332 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1333 ButtonPressRelease and MotionNotify (bug#4870).
1334
5e2327cf
DN
13352009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1336
5adc433e
DN
1337 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1338
d67b4f80
DN
1339 * xterm.c (syms_of_xterm):
1340 * xselect.c (syms_of_xselect):
1341 * xmenu.c (syms_of_xmenu):
1342 * xfns.c (syms_of_xfns):
1343 * xfaces.c (syms_of_xfaces):
1344 * xdisp.c (syms_of_xdisp):
1345 * window.c (syms_of_window):
1346 * w32fns.c (syms_of_w32fns):
1347 * undo.c (syms_of_undo):
1348 * textprop.c (syms_of_textprop):
1349 * terminal.c (syms_of_terminal):
1350 * syntax.c (syms_of_syntax):
1351 * sound.c (syms_of_sound):
1352 * search.c (syms_of_search):
1353 * print.c (syms_of_print):
1354 * minibuf.c (syms_of_minibuf):
1355 * macros.c (syms_of_macros):
1356 * keymap.c (syms_of_keymap, initial_define_key)
1357 (initial_define_lispy_key):
1358 * keyboard.c (syms_of_keyboard):
1359 * insdel.c (syms_of_insdel):
1360 * image.c (syms_of_image):
1361 * fringe.c (syms_of_fringe):
1362 * frame.c (syms_of_frame):
1363 * fontset.c (syms_of_fontset):
1364 * fns.c (syms_of_fns):
1365 * fns.c (syms_of_fns):
1366 * fileio.c (syms_of_fileio):
1367 * fileio.c (syms_of_fileio):
1368 * eval.c (syms_of_eval):
1369 * doc.c (syms_of_doc):
1370 * dispnew.c (syms_of_display):
1371 * dired.c (syms_of_dired):
1372 * dbusbind.c (syms_of_dbusbind):
1373 * data.c (syms_of_data):
1374 * composite.c (syms_of_composite):
1375 * coding.c (syms_of_coding):
1376 * cmds.c (syms_of_cmds):
1377 * charset.c (define_charset_internal, syms_of_character):
1378 * ccl.c (syms_of_ccl):
1379 * category.c (syms_of_category, init_category_once):
1380 * casetab.c (syms_of_casetab):
1381 * casefiddle.c (syms_of_casefiddle):
1382 * callint.c (syms_of_callint):
1383 * bytecode.c (syms_of_bytecode):
1384 * buffer.c (keys_of_buffer, syms_of_buffer):
1385 * alloc.c (syms_of_alloc):
1386 * process.c (syms_of_process, init_process):
1387 * lread.c (syms_of_lread, init_obarray):
1388 * font.c (build_style_table):
1389 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1390 intern_c_string, calls to make_pure_string with
1391 make_pure_c_string. Use pure_cons instead of Fcons.
1392
5e2327cf
DN
1393 * process.c (socket_options): Make it const.
1394 (set_socket_option, init_process): Use a const pointer.
1395
1396 * lread.c (intern_c_string): New function.
1397 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1398 (defvar_int): Uset it. Make the name const char*.
1399
1400 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1401 (defvar_int): Update prototypes.
1402 (DEFUN, EXFUN): Support for prototypes is now required.
1403 (intern_c_string): New prototype.
1404 (struct Lisp_Subr): Make symbol_name constant.
1405
1406 * font.c (struct table_entry): Remove unused member. Make NAMES
1407 constant.
1408 (weight_table, slant_table, width_table): Make constant.
1409
1410 * emacs.c (struct standard_args): Make name and longname constant.
1411
1412 * character.h (DEFSYM): Use intern_c_string.
1413
a56eaaef
DN
14142009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1415
1416 * alloc.c (make_pure_c_string): New function.
1417
1418 * eval.c (Fautoload): Purecopy all arguments.
1419
f6a07420
KH
14202009-11-05 Kenichi Handa <handa@m17n.org>
1421
1422 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1423 the buffer in case of replace.
1424
5d28d4b1
DN
14252009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1426
1427 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1428
b349d111
SM
14292009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1430
d528b1ce
SM
1431 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1432 when applicable (bug#4851).
1433
b349d111
SM
1434 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1435 (P_): Support for prototypes is now required.
1436
c38eb027
CY
14372009-10-31 Chong Yidong <cyd@stupidchicken.com>
1438
1439 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1440 (Bug#4827).
1441
0405f8d9
EZ
14422009-10-30 Eli Zaretskii <eliz@gnu.org>
1443
d528b1ce 1444 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 1445
ca0a881a
DN
14462009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1447
1448 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1449
d528b1ce
SM
1450 * lread.c (Fload): Purecopy the file name when building
1451 Vpreloaded_file_list.
ca0a881a 1452
47e0e0e4
JR
14532009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1454
1455 * w32fns.c (syms_of_w32fns): Change default value of
1456 w32-scroll-lock-modifier to nil. (Bug#2827)
1457
057bce6f
JB
14582009-10-26 Juanma Barranquero <lekktu@gmail.com>
1459
782a943e 1460 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 1461
242bc74c
AS
14622009-10-26 Andreas Schwab <schwab@redhat.com>
1463
1464 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1465
522d013a
JB
14662009-10-26 Juanma Barranquero <lekktu@gmail.com>
1467
1468 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1469 For delta < 0, skip check that only makes sense when the mini-window
1470 is going to be enlarged. (Bug#4534)
1471
18060980
CY
14722009-10-25 Chong Yidong <cyd@stupidchicken.com>
1473
1474 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1475 string in menu maps (Bug#4471).
1476
fec8f0fe
CY
14772009-10-24 Chong Yidong <cyd@stupidchicken.com>
1478
1479 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1480 FRAME_NS_VIEW on terminal frames (Bug#4765).
1481
10d66ec0
AS
14822009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1483
1cae01f7
AS
1484 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1485 DBUS_TYPE_UINTnn separately to get proper sign extension.
1486
58a12889
AS
1487 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1488 can properly handle unsigned types.
d528b1ce 1489 (make_uid, make_gid): Remove.
58a12889 1490
987c9327
AS
1491 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1492 types again.
1493
522d013a 1494 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
1495 (system_process_attributes): Likewise.
1496
905a9ed3
DN
14972009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1498
1499 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1500
1501 * eval.c (Fautoload): Purecopy the filename. Simplify.
1502
1503 * category.c (Fdefine_category): Purecopy docstring.
1504
a599b3e8
AS
15052009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1506
7b792fc9
AS
1507 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1508
a599b3e8
AS
1509 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1510
b35ac83e
CY
15112009-10-23 Chong Yidong <cyd@stupidchicken.com>
1512
1513 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1514 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1515 (Bug#4775).
1516
e8903e00
SM
15172009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1518
1519 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1520 (init_fileio_once):
1521 * lisp.h (init_fileio_once): Remove.
1522 * emacs.c (main): Don't call init_fileio_once.
1523
8f43cbf3
DN
15242009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1525
1526 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1527
26898943
AS
15282009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1529
1530 * doprnt.c (doprnt): Fix overflow check.
1531
5c646d5a
JD
15322009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1533
3132a7ea
JD
1534 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1535
5c646d5a
JD
1536 * xterm.h (x_wait_for_event): Declare it.
1537
1538 * xterm.c (pending_event_wait): New variable.
1539 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1540 see pending_event_wait.eventtype.
1541 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
1542 (x_new_font): Call change_frame_size with new rows/columns before we
1543 try to resize the frame.
5c646d5a 1544 (x_wait_for_event): New function.
d528b1ce
SM
1545 (x_set_window_size_1): Don't change gravity unless change_gravity
1546 is set.
5c646d5a
JD
1547 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
1548 don't change frame size, instead wait for the ConfigureNotify.
1549 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
1550 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
1551 (x_initialize): Initialize pending_event_wait.
1552
1553 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
1554 size.
1555
1556 * widget.c (EmacsFrameSetValues): Add comment.
1557 (EmacsFrameSetCharSize): Just call x_set_window_size.
1558
1559 * gtkutil.c (xg_frame_set_char_size): Flush events and call
1560 x_wait_for_event.
d528b1ce 1561 (flush_and_sync): Remove again.
5c646d5a
JD
1562 (xg_get_font_name): Suggest monospace if no previous font is known.
1563
e9c1637d
SM
15642009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
1565
1566 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 1567 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 1568
5a72cccb
YM
15692009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1570
1571 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
1572 processing pending events when event is filtered for input method.
ab04798f 1573 (Bug#3681)
5a72cccb 1574
2629aa37
JB
15752009-10-20 Juanma Barranquero <lekktu@gmail.com>
1576
1577 * fns.c: Add #endif accidentally removed in previous change.
1578
c3417a74
DN
15792009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1580
1581 * fns.c: Remove code for unsupported system: MAC_OS.
1582 * image.c: Likewise. Include setjmp.h.
1583
9685cef2
JD
15842009-10-19 Jan Djärv <jan.h.d@swipnet.se>
1585
1586 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
1587 pixel -1 (bug #4742).
1588
d7306fe6
DN
15892009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1590
019d2c4c
DN
1591 * process.c (create_pty): Remove conditionals for no longer
1592 supported systems: UNIPLUS and RTU.
1593
ee6bacd4
DN
1594 * xterm.c:
1595 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
1596
d7306fe6
DN
1597 * alloc.c: Do not define struct catchtag.
1598 * eval.c: Move struct catchtag definition ...
1599 * lisp.h: ... here.
1600
1601 * image.c: Move png.h #include earlier to avoid warnings.
1602
1603 * xterm.c:
1604 * xsmfns.c:
1605 * xselect.c:
1606 * xrdb.c:
1607 * xmenu.c:
1608 * xftfont.c:
1609 * xfont.c:
1610 * xfns.c:
1611 * xfaces.c:
1612 * xdisp.c:
1613 * window.c:
1614 * widget.c:
1615 * w32xfns.c:
1616 * w32uniscribe.c:
1617 * w32term.c:
1618 * w32select.c:
1619 * w32reg.c:
1620 * w32proc.c:
1621 * w32menu.c:
1622 * w32inevt.c:
1623 * w32heap.c:
1624 * w32font.c:
1625 * w32fns.c:
1626 * w32console.c:
1627 * w32.c:
1628 * w16select.c:
1629 * vm-limit.c:
1630 * unexsol.c:
1631 * unexec.c:
1632 * unexcw.c:
1633 * unexaix.c:
1634 * undo.c:
1635 * tparam.c:
1636 * textprop.c:
1637 * terminfo.c:
1638 * terminal.c:
1639 * termcap.c:
1640 * term.c:
1641 * syntax.c:
1642 * sound.c:
1643 * sheap.c:
1644 * search.c:
1645 * scroll.c:
1646 * region-cache.c:
1647 * regex.c:
1648 * ralloc.c:
1649 * process.c:
1650 * print.c:
b024548b
DN
1651 * nsterm.m:
1652 * nsselect.m:
1653 * nsmenu.m:
1654 * nsimage.m:
1655 * nsfont.m:
1656 * nsfns.m:
d7306fe6
DN
1657 * msdos.c:
1658 * minibuf.c:
1659 * menu.c:
1660 * marker.c:
1661 * macros.c:
1662 * keymap.c:
1663 * keyboard.c:
1664 * intervals.c:
1665 * insdel.c:
1666 * indent.c:
1667 * gtkutil.c:
1668 * ftxfont.c:
1669 * ftfont.c:
1670 * fringe.c:
1671 * frame.c:
1672 * fontset.c:
1673 * font.c:
1674 * fns.c:
1675 * floatfns.c:
1676 * filelock.c:
1677 * fileio.c:
1678 * emacs.c:
1679 * editfns.c:
1680 * dosfns.c:
1681 * doprnt.c:
1682 * doc.c:
1683 * dispnew.c:
1684 * dired.c:
1685 * dbusbind.c:
1686 * data.c:
1687 * composite.c:
1688 * coding.c:
1689 * cmds.c:
1690 * cm.c:
1691 * chartab.c:
1692 * charset.c:
1693 * character.c:
1694 * ccl.c:
1695 * category.c:
1696 * casetab.c:
1697 * casefiddle.c:
1698 * callproc.c:
1699 * callint.c:
1700 * bytecode.c:
1701 * buffer.c:
1702 * atimer.c: Include setjmp.h. (Bug#4643)
1703
fd5f21e6
SM
17042009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
1705
4c0354d7
SM
1706 Remove leftover table unibyte_to_multibyte_table.
1707 * character.c (unibyte_to_multibyte_table): Remove.
1708 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
1709 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
1710 * character.h (UNIBYTE_TO_CHAR): New macro.
1711 (MAKE_CHAR_MULTIBYTE): Use it.
1712 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
1713 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
1714 (message_dolog, set_message_1):
1715 * search.c (Freplace_match):
1716 * editfns.c (Fcompare_buffer_substrings):
1717 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
1718 (concat):
1719 * insdel.c (copy_text, count_size_as_multibyte):
1720 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
1721 * term.c (produce_glyphs):
1722 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
1723 * regex.c (RE_CHAR_TO_MULTIBYTE):
1724 * cmds.c (internal_self_insert):
1725 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
1726
fd5f21e6
SM
1727 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
1728
4418646e
DN
17292009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
1730
1731 * puresize.h (BASE_PURESIZE): Increase to 1310000.
1732
35f5c1d2
JB
17332009-10-16 Juanma Barranquero <lekktu@gmail.com>
1734
1735 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
1736
a0cd8f6b
AR
17372009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1738
1739 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
1740 still needed under Tiger.
1741
1742 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
1743
1744 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
1745 __Apple__.
1746
1747 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
1748
01a8d3fa
KH
17492009-10-15 Kenichi Handa <handa@m17n.org>
1750
1751 * print.c (print_object): Escape a symbol like "2E10" too.
1752
bf6c75c9 17532009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
1754
1755 Cleanups and changes for 64-bit compile under Snow Leopard.
1756 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
1757
1758 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
1759
c5959062 1760 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
1761 (ns_findfonts, nsfont_list_family): Use long format in printf, and
1762 cast argument.
1763 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 1764 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
1765
1766 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
1767
1768 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
1769 where appropriate.
1770
1771 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
1772 where appropriate.
6e4780c5
JB
1773 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
1774 Use stringWithUTF8String.
bf6c75c9
AR
1775 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
1776
6e4780c5
JB
1777 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
1778 Add formal protocol mention to inheritance.
bf6c75c9
AR
1779 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
1780
6e4780c5
JB
1781 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
1782 Fix printf format.
bf6c75c9
AR
1783 (ns_query_color): Use CGFloat where appropriate.
1784 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 1785 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
1786 argument.
1787
3d87f118
AR
1788 * config.in (NS_HAVE_NSINTEGER): Drop.
1789
a95c8102
AR
1790 * dbusbind.c (dbus-method-return-internal)
1791 (dbus-method-error-internal): Use long format in printf, and cast
1792 argument.
1793
1794 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
1795 in printf, and cast argument.
1796
6873acca 1797 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
1798 cast argument.
1799
9ec6f100
GM
18002009-10-11 Glenn Morris <rgm@gnu.org>
1801
1802 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
1803
5be883cd
JD
18042009-10-08 Jan Djärv <jan.h.d@swipnet.se>
1805
1806 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
1807 menu bar with a small width so it doesn't enlarge the frame.
1808
d7a39b51
JB
18092009-10-08 Juanma Barranquero <lekktu@gmail.com>
1810
1811 * fontset.c (Fset_fontset_font): Fix typos in error messages.
1812
0c2b6f8e
GM
18132009-10-06 Glenn Morris <rgm@gnu.org>
1814
1815 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
1816 SOME_MACHINE_LISP (this enters indirectly via DOC).
1817
e02131a2
EZ
18182009-10-05 Eli Zaretskii <eliz@gnu.org>
1819
1820 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
1821
b4744254
EZ
18222009-10-04 Eli Zaretskii <eliz@gnu.org>
1823
1824 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
1825 Doc fix.
1826
dbf64827
JB
18272009-10-03 Martin Rudalics <rudalics@gmx.at>
1828
1829 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
1830
e9a0aef8
MA
18312009-10-02 Michael Albinus <michael.albinus@gmx.de>
1832
d528b1ce 1833 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
1834 used anymore outside fileio.c.
1835
1836 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
1837
64eb2b56
JB
18382009-10-01 Juanma Barranquero <lekktu@gmail.com>
1839
1840 * lisp.h (Qdelete_directory_internal):
1841 Declare, instead of Qdelete_directory.
1842
1843 * w32fns.c (Fsystem_move_file_to_trash): Use it.
1844
9d28c33e
SM
18452009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1846
1847 * eval.c (Fcalled_interactively_p): Add `kind' argument.
1848
9d8f3bd9
MA
18492009-10-01 Michael Albinus <michael.albinus@gmx.de>
1850
9d28c33e 1851 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
1852 Fdelete_directory. It is not a command anymore. It has no file
1853 name handler.
1854
9694740b
SM
18552009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1856
1857 * xdisp.c (get_next_display_element): Use an enum in last change.
1858
748e162f
KH
18592009-09-28 Kenichi Handa <handa@m17n.org>
1860
9694740b 1861 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
1862 unibyte_display_via_language_environment in handling
1863 Vnobreak_char_display.
1864
17efd58d
AR
18652009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1866
1867 * nsterm.h (ns_app_name): New extern variable.
1868
1869 * nsterm.m (ns_app_name): New variable.
1870 (ns_term_init): Set and use it.
1871 (ns_term_shutdown): Use it.
1872
1873 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1874 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1875
1876 * nsfns.m (ns_set_name_iconic, ns_set_name)
1877 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1878 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1879
9694740b
SM
1880 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1881 Remove double-casting in client_data comparison.
31c2d412 1882
3208cb35
YM
18832009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1884
1885 * keyboard.c (make_lispy_event): Remember last wheel direction.
1886 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1887
b7d552d6
GM
18882009-09-26 Glenn Morris <rgm@gnu.org>
1889
1890 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1891 internal.elc. Add term/pc-win.elc.
1892 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1893 term/x-win.elc.
1894 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1895 term/w32-win.elc.
1896 (NS_SUPPORT): New.
1897 (lisp): Add NS_SUPPORT.
1898 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
1899
4ff670a8
DR
19002009-09-25 David Reitter <david.reitter@gmail.com>
1901
1902 * nsmenu.m (EmacsMenu-clear): Recognize application menu
1903 on Mac OS X 10.6+ (bug#4513).
1904
feabfb6c
JB
19052009-09-24 Juanma Barranquero <lekktu@gmail.com>
1906
1907 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
1908 some parts of Emacs code (like font selection) don't grok them.
1909 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 1910
de59072a
AS
19112009-09-24 Andreas Schwab <schwab@redhat.com>
1912
1913 * coding.c (decode_coding_iso_2022): Fix operator precedence.
1914
a489517b
JB
19152009-09-24 Juanma Barranquero <lekktu@gmail.com>
1916
1917 * dired.c (Fdirectory_files): Fix typo in docstring.
1918
0592970c
AR
19192009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1920
1921 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
1922 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
1923 (EmacsScroller-setPosition:portion:whole:): Remove -display call
1924 under GNUstep.
1925 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
1926
1927 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
1928 glyph advancement.
1929
48e8a88b
AR
19302009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1931
1932 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 1933 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
1934
1935 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
1936 deleted (bug #4492).
1937
e14f0a78
AR
1938 * nsfont.m (Vns_reg_to_script): New lisp variable.
1939 (syms_of_nsfont): Declare it.
1940 (ns_registry_to_script): New function.
1941 (ns_get_req_script): Call it.
1942 (ns_findfonts): Don't give up on non-unicode registry.
1943
1944 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
1945
5b650faa
SM
19462009-09-20 Tom Tromey <tromey@redhat.com>
1947
1948 * eval.c (find_handler_clause): Make stack-trace-on-error work in
1949 batch mode (bug#4228).
1950
a489517b 19512009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
1952
1953 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 1954 carefully. (Bug #4339)
0bae4e09 1955
fcfe06f3
CY
19562009-09-18 Chong Yidong <cyd@stupidchicken.com>
1957
d798ba87 1958 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 1959
31642728
AR
19602009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1961
1962 * emacs.c (inhibit_x_resources): Update doc string for NS.
1963 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 1964 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
1965
1966 * nsterm.h (ns_no_defaults): Remove.
1967
1968 * nsterm.m (ns_no_defaults): Remove.
1969 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1970 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
1971 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1972 don't update the NSWindow itself.
1973 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 1974 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
1975
1976 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1977 ns_use_qd_smoothing.
1978
1979 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1980 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 1981 (x-close-connection): Drop PSFlush() under OS X.
a489517b 1982 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 1983
8686ac71
JB
19842009-09-17 Juanma Barranquero <lekktu@gmail.com>
1985
1986 * emacs.c (inhibit_x_resources): New variable.
1987 (main) [HAVE_NS]: Don't process --quick command line option.
1988 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1989
1990 * lisp.h (inhibit_x_resources): Declare it extern.
1991
1992 * w32reg.c (x_get_string_resource):
1993 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1994
e227ba05
EZ
19952009-09-17 Eli Zaretskii <eliz@gnu.org>
1996
362654a6
JB
1997 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1998 Add lisp/term/internal.elc.
e227ba05 1999
742d40e8
SM
20002009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2001
2002 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2003 (bug#4461).
2004
005bd5a2
DN
20052009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2006
2007 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2008
2009 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2010 (OBJECTS_MACHINE): Remove, unused.
2011
f9af9719
SM
20122009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2013
2014 * frame.c (x_get_resource_string): Remove unused.
2015
0307c7d2
JD
20162009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2017
2018 * xterm.c (x_new_font): Call change_frame_size before calling
2019 x_set_window_size, in case frame size won't change.
2020
2021 * frame.c (x_set_font): Remove dead code.
2022
428b13d6
SM
20232009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2024
2025 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2026
5766c380
SM
20272009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2028
2029 * lread.c (Fload): Don't output a message after loading an obsolete
2030 package any more (done in Lisp now).
2031
2fd0161b
CY
20322009-09-12 Chong Yidong <cyd@stupidchicken.com>
2033
2034 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2035
bc5e75b6
SM
20362009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2037
2038 * keymap.c (Fwhere_is_internal): Use nconc2.
2039
c31c985e
AM
20402009-09-11 Alan Mackenzie <acm@muc.de>
2041
2042 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2043 batch mode.
2044
78012bd2
AS
20452009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2046
2047 * xdisp.c (display_mode_element): Detect cycles.
2048
9d889332
SM
20492009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2050
2051 * keymap.c (where_is_internal): Don't erroneously return nil right after
2052 filling the cache.
2053 (where_is_internal_1): Fix up typo.
2054
7ab5d780
GM
20552009-09-11 Glenn Morris <rgm@gnu.org>
2056
2057 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2058 share a common doc-string.
2059
5238a749
SM
20602009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2061
66d77eda
SM
2062 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2063 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2064
5238a749
SM
2065 * keymap.c (QCadvertised_binding): New constant.
2066 (syms_of_keymap): Initialize it.
2067 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2068 if applicable.
2069
19f48442
SM
20702009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2071
50d4ba39
SM
2072 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2073 (parse_menu_item): Streamline since bindings are recomputed all the
2074 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2075 more and don't support lmenu's menu-alias any more either.
2076
a88a5372
SM
2077 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2078 (where_is_internal): Strip it down to only traverse the keymaps.
2079 Move the cache handling from Fwhere_is_internal to here.
2080 (Fwhere_is_internal): Move the handling of remapping and the choice of
2081 the best binding from where_is_internal to here.
2082 Unify the cached/noncached paths, so remapping is also handled
2083 correctly when the cache is used, and so the cache can be used to
2084 speed up remap-handling when applicable.
2085 Give preference to non-remapped bindings.
2086 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2087 non-remapped bindings.
2088 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2089 command remapping.
2090
19f48442
SM
2091 * xdisp.c (display_mode_element): Move list length limit from 50 to
2092 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2093
599498c3 20942009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
2095
2096 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2097
f9b7b5ac
SM
20982009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2099
a53af587
JB
2100 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2101 (Bug#4334)
2102
f9b7b5ac
SM
2103 * keymap.c (where_is_internal): Filter out shadowed remappings.
2104 Assume that where_is_internal returns unshadowed bindings to simplify
2105 the code and get rid of the gotos. Use ASIZE.
2106
04f4b72d
JD
21072009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2108
4da146f2
JD
2109 * xterm.c (x_focus_changed): If we get a focusout and pointer
2110 is invisible, make it visible.
2111
04f4b72d
JD
2112 * xterm.h: Remove condition for declaration of
2113 x_*_window_to_frame.
2114
7cef7ce3
SM
21152009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2116
2117 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2118 initial terminal as well.
2119
a54fa5b7
JD
21202009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2121
2122 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 2123 x_menubar_window_to_frame.
a54fa5b7
JD
2124
2125 * xterm.c: Remove declarations also in xterm.h
2126 (XTmouse_position): Do not return valid positions
2127 for clicks in the menubar and the toolbar for Gtk+.
2128
2129 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2130 if the widget for the event has the same top level as a frame,
2131 return the frame.
2132 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2133 internal windows, bug #4122.
2134 (x_non_menubar_window_to_frame): Remove.
2135
5a021dd0
GM
21362009-09-02 Glenn Morris <rgm@gnu.org>
2137
2138 * buffer.c (default-major-mode): Move most of the doc from here...
2139 (major-mode): ... to here.
2140
548fe2f3
NR
21412009-08-30 Nick Roberts <nickrob@snap.net.nz>
2142
2143 * process.c (wait_reading_process_output): Keep the descriptor
2144 when pty is used by a non-child process, e.g., in I/O buffer of
2145 GDB this allows inferior to be restarted.
2146
e0840eef
EZ
21472009-08-29 Eli Zaretskii <eliz@gnu.org>
2148
2149 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2150 both branches into one.
2151
82e98df4
SM
21522009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2153
2154 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2155 (main): Use enable-multibyte-characters rather than
2156 default-enable-multibyte-characters. Output a warning message when
2157 running a unibyte session.
2158
890617cb
YM
21592009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2160
2161 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2162 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2163 (copy_data_segment): Also copy __program_vars section.
2164 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2165 (dump_it) [LC_DYLD_INFO]: Use it.
2166
2167 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2168
e7adeadc
EZ
21692009-08-28 Eli Zaretskii <eliz@gnu.org>
2170
2171 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2172 $(SRC)/buildobj.h.
2173 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2174 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2175 $(SRC)/buildobj.h.
2176 (clean): Add buildobj.h.
2177
3ed8bbdc
TZ
21782009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2179
2180 * print.c (print_object): Set escapeflag to 1 when printing
2181 hashtable keys and values.
2182
155a6764
SM
21832009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2184
2185 * lread.c (read_integer): Use doubles (and potentially return a float
2186 number) as we do in string-to-number.
2187 (read1): Use strtol to read integers, signal errors on strtol's
2188 overflow and use floats if strtol's output is too large for
2189 Elisp integers.
2190
877610de
EZ
21912009-08-27 Eli Zaretskii <eliz@gnu.org>
2192
2193 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2194 (make-buildobj-SH): Fix last change.
2195 (SRC): Move to before where it's first used.
2196
ef73e7be
KH
21972009-08-27 Kenichi Handa <handa@m17n.org>
2198
550c8289
KH
2199 * process.c (send_process): Use encode_coding_object instead of
2200 encode_coding_string to perform eol-conversion even if the string
2201 is unibyte.
2202
60afa08d
KH
2203 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2204 character.
2205
ef73e7be 2206 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 2207 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 2208
7b3a82d7
DN
22092009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2210
5654bf63
DN
2211 * callproc.c (Fcall_process): Remove always true #if.
2212
7b3a82d7
DN
2213 * lisp.h: Replace #if 0 code for checking with text pointing to
2214 the --enable-checking configure flag.
2215
2216 * emacs.c (main): Mention the --enable-profiling configure flag
2217 instead of using CFLAGS.
2218
878bde49
KR
22192009-08-26 Ken Raeburn <raeburn@raeburn.org>
2220
2221 * Makefile.in (buildobj.h): New target.
2222 (doc.o): Depend on it.
2223 (temacs${EXEEXT}): Don't generate buildobj.lst.
2224 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2225 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2226 ($(BLD)/doc.$(O)): Depend on it.
2227 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2228 provided by Eli Zaretskii.)
2229 ($(TEMACS)): Don't generate buildobj.lst.
2230 * doc.c: Include buildobj.h.
2231 (buildobj): New static variable.
2232 (Fsnarf_documentation): Use it, instead of opening and reading
2233 buildobj.lst.
2234
1574224c
MA
22352009-08-25 Michael Albinus <michael.albinus@gmx.de>
2236
2237 * dbusbind.c (Fdbus_call_method)
2238 (Fdbus_call_method_asynchronously): Use English numeric format for
2239 timeout values in doc string.
2240
d9da2f45
KH
22412009-08-25 Kenichi Handa <handa@m17n.org>
2242
ef73e7be
KH
2243 * alloc.c (mark_char_table): New function.
2244 (mark_object): Use mark_char_table for a char-table.
2245
d9da2f45
KH
2246 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2247 (CHAR_TABLE_REF): Use it.
2248
c8edcc01
KR
22492009-08-23 Ken Raeburn <raeburn@raeburn.org>
2250
2251 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2252 before invoking the newly build emacs to check for load-path
2253 shadowing.
2254
7763401b
GM
22552009-08-22 Glenn Morris <rgm@gnu.org>
2256
2257 * Makefile.in (bootstrap_exe): New variable.
2258 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2259 Use ${bootstrap_exe}.
2260
729eadda
EZ
22612009-08-22 Eli Zaretskii <eliz@gnu.org>
2262
2263 * coding.h (encode_coding_string): Don't encode unibyte strings.
2264 (Bug#4047)
2265
eb4c6ace
MA
22662009-08-22 Michael Albinus <michael.albinus@gmx.de>
2267
2268 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2269
2270 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2271 intended as hotfix only.
2272 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2273
36e34d1b
AR
22742009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2275
2276 * nsterm.m (ns_get_color): Update documentation properly for last
2277 change, and clean up loose ends in the code left by it. Fix
2278 longstanding bug with 16-bit hex parsing, and add support for
2279 yet another X11 format (rgb:r/g/b) for compatibility.
2280 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2281 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2282
f983eb8a
SM
22832009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2284
2285 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2286
3f56d3c6
MA
22872009-08-20 Michael Albinus <michael.albinus@gmx.de>
2288
2289 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2290 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2291 (xd_initialize, xd_pending_messages): Check, whether
2292 $DBUS_SESSION_BUS_ADDRESS is set.
2293
fb641d68
YM
22942009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2295
2296 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2297
2298 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2299
cf59a374
GM
23002009-08-20 Glenn Morris <rgm@gnu.org>
2301
2302 * emacs.c (system-type): Doc fix.
2303
1373f3be
SM
23042009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2305
2306 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2307 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2308
058ed861
MA
23092009-08-18 Michael Albinus <michael.albinus@gmx.de>
2310
1373f3be
SM
2311 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2312 New functions.
058ed861
MA
2313 (xd_initialize): Revert change from 2009-08-16.
2314
563a866e 23152009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
2316
2317 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 2318 font-group vector, return nil.
5fc05db0 2319
e42bdf01
CY
23202009-08-17 Chong Yidong <cyd@stupidchicken.com>
2321
2322 * process.c (status_notify): Don't perform redisplay.
2323 (Fdelete_process, list_processes_1, process_send_signal):
2324 Expliticly perform redisplay.
2325 (wait_reading_process_output): Always check process status, but
2326 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2327
4230ab74
KR
23282009-08-17 Ken Raeburn <raeburn@raeburn.org>
2329
1373f3be 2330 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
2331 (XFLOAT_INIT): New macro for storing a float value.
2332 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2333 * fns.c (sxhash): Copy out the value of a float in order to
2334 examine its bytes.
2335 * dbusbind.c (xd_append_arg): Likewise.
2336
4230ab74
KR
2337 * emacs.c (main): Don't call syms_of_data twice.
2338
a0645cdd
MA
23392009-08-16 Michael Albinus <michael.albinus@gmx.de>
2340
2341 * dbusbind.c (xd_initialize): Add connection file descriptor to
2342 input_wait_mask, in order to let select() detect, whether a new
2343 message has been arrived.
ca4f31ea 2344 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 2345
485db0ba
MA
23462009-08-15 Michael Albinus <michael.albinus@gmx.de>
2347
1373f3be
SM
2348 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2349 New functions.
485db0ba
MA
2350
2351 * lisp.h (xd_pending_messages): Declare.
2352
2353 * keyboard.c (readable_events): Call xd_pending_messages.
2354
b5b98ff4
CY
23552009-08-15 Chong Yidong <cyd@stupidchicken.com>
2356
1373f3be 2357 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 2358
f8354c6e
CY
2359 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2360
b5b98ff4
CY
2361 * buffer.c (set_buffer_internal_1)
2362 (swap_out_buffer_local_variables): Check for unbound local
2363 variables (Bug#4138).
2364
8b9fc636
EZ
23652009-08-14 Eli Zaretskii <eliz@gnu.org>
2366
2367 * process.c (create_pty): Fix last change.
2368
ce959360
CY
23692009-08-13 Chong Yidong <cyd@stupidchicken.com>
2370
2371 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2372 (xbm_load_image): Caller changed.
64b807c9 2373 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 2374
c7baf7e9
NR
23752009-08-13 Nick Roberts <nickrob@snap.net.nz>
2376
2377 * process.c (create_pty): New function.
2378 (Fstart_process): Use it to allow Emacs to just associate a pty
2379 with the buffer. See associated change in gdb-mi.el.
2380 (list_processes_1): Deal with no program name.
2381 (start_process_unwind): Use pid == -2 to mean no process.
2382
1ac9108a
SM
23832009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2384
2385 * cmds.c (nonundocount): New global variable.
2386 (keys_of_cmds): Initialize it.
2387 (Fself_insert_command): Use it to combine upto 20 sequential chars
2388 into a single undo entry, just like the Qself_insert_command code in
2389 keyboard.c does.
2390 Call frame_make_pointer_invisible, also like the Qself_insert_command
2391 code in keyboard.c does.
2392 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2393 than its own local replacement for it.
2394
e267324c
KR
23952009-08-10 Ken Raeburn <raeburn@raeburn.org>
2396
1ac9108a 2397 * fns.c (concat): Don't re-set string length to its current value.
77437343 2398
1ac9108a
SM
2399 * coding.h (decode_coding_string, encode_coding_string):
2400 Use SBYTES macro.
f0bed503 2401
1ac9108a 2402 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
2403 (doprnt): Merge with doprnt1, discarding lispstrings code.
2404 * lisp.h (doprnt_lisp): Don't declare.
2405
416e006d
JL
24062009-08-07 Juri Linkov <juri@jurta.org>
2407
2408 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2409
6f7d5780
DN
24102009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2411
2412 * print.c (syms_of_print): Undo previous change.
2413
f19a0f5b
TZ
24142009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2415
2416 * lread.c (read1, syms_of_lread): Read hashtables back from the
2417 readable format.
2418
2419 * print.c (print_preprocess, print_object): Print hashtables fully
2420 and readably.
2421 (syms_of_print): Provide 'hashtable-print-readable.
2422
b9173dc2
AR
24232009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2424
2425 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2426 no family set.
2427 (nsfont_open): Handle case when entity has no family.
2428
1586503c
AR
24292009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2430
2431 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2432 element, not a list, for match case.
2433
087048cd
KH
24342009-07-28 Kenichi Handa <handa@m17n.org>
2435
2436 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2437 rigidly.
2438
2439 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2440 font_parse_xlfd. Check font properties more rigidly.
2441
780c2506
DN
24422009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2443
31fd7c5c
JB
2444 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2445 bsd-common.h.
780c2506 2446
a8c0cc18
KH
24472009-07-27 Kenichi Handa <handa@m17n.org>
2448
2449 * xfaces.c (face_with_height): Call font_clear_prop.
2450
4fbe2306
CY
24512009-07-26 Chong Yidong <cyd@stupidchicken.com>
2452
111d9af3
CY
2453 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2454
2455 * xterm.c (x_term_init): Use Qx.
2456
4fbe2306
CY
2457 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2458
1ac9108a 2459 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
2460 (ns_get_color): Revert 2009-07-16 change.
2461
beb0b7f9
EZ
24622009-07-25 Eli Zaretskii <eliz@gnu.org>
2463
2464 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 2465 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 2466
2baf5e76
KR
24672009-07-25 Ken Raeburn <raeburn@raeburn.org>
2468
1ac9108a
SM
2469 * coding.h (decode_coding_string, encode_coding_string):
2470 Use SCHARS macro.
8890e5f5 2471
2baf5e76 2472 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 2473 (load_depth): Delete.
2baf5e76
KR
2474 (Qload_in_progress): New variable.
2475 (load_unwind): Don't reference load_depth or load_in_progress.
2476 (Fload): Likewise; specbind Qload_in_progress instead.
2477 (init_lread): Don't initialize load_depth.
2478 (syms_of_lread): Initialize and protect Qload_in_progress.
2479
1395c6f5
AR
24802009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2481
2482 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2483
4e2f36cf
AR
24842009-07-23 Yavor Doganov <yavor@gnu.org>
2485
2486 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2487
5dd9a6f7
AR
24882009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2489
2490 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
2491 Bugs 3792, 3720, 2402.
2492 (ns_lookup_indexed_color): Check for bad index.
2493 (ns_index_color): Init unused slot to 0.
2494 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2495 Bug 3714, possibly 3082.
5dd9a6f7 2496
c902b920
JR
24972009-07-22 Jason Rumney <jasonr@gnu.org>
2498
1ac9108a
SM
2499 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2500 Position IME window at cursor (Bug#2570).
c902b920
JR
2501 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2502 (globals_of_w32fns): Dynamically load functions required above.
2503
2504 * w32term.c (w32_draw_window_cursor): Send message to reposition
2505 any IME window.
2506
090101cf
CY
25072009-07-21 Chong Yidong <cyd@stupidchicken.com>
2508
2509 * fileio.c: Revert 2009-07-16 changes.
2510 (Vauto_save_include_big_deletions): New variable.
2511 (Fdo_auto_save): Disable auto-save only if
2512 auto-save-include-big-deletions is nil.
2513
e6583e3d
CY
25142009-07-21 Chong Yidong <cyd@stupidchicken.com>
2515
2516 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2517 the overflowed pixels into account (Bug#3879).
2518
ece435a5
KR
25192009-07-21 Ken Raeburn <raeburn@raeburn.org>
2520
2521 * lread.c (load_depth): New variable.
2522 (Fload, load_unwind, init_lread): Set it to the load recursion
2523 depth; set load_in_progress as a simple boolean based on the
2524 current load_depth. (Bug#3892)
2525
40b2d973
AR
25262009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2527
2528 * nsfont.m (ns_has_attribute): Remove.
2529 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2530
10be7e0d
JL
25312009-07-18 Juri Linkov <juri@jurta.org>
2532
2533 * process.c (Fset_process_query_on_exit_flag): Mention killing
2534 a buffer in docstring.
2535
fa055055
KH
25362009-07-17 Kenichi Handa <handa@m17n.org>
2537
2538 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2539
042f7b69
YM
25402009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2541
2542 * nsfns.m (Fns_set_alpha): Remove function.
2543 (syms_of_nsfns): Don't defsubr it.
2544
2545 * nsterm.m (ns_get_color): Remove incompatible color formats.
2546 (ns_color_to_lisp): Generate #rrggbb color format string.
2547
4be941e3
RS
25482009-07-16 Richard Stallman <rms@gnu.org>
2549
2550 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
2551 (Fset_buffer_auto_saved): Handle save_length = -2.
2552
4e6b227d
CY
25532009-07-16 Chong Yidong <cyd@stupidchicken.com>
2554
2555 * xterm.c (Qx_gtk_map_stock): New var.
2556
2557 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
2558 of calling intern each time.
2559
a1856973
YM
25602009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2561
2562 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
2563 does tiling.
2564
2565 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
2566
497e54d8
KH
25672009-07-14 Kenichi Handa <handa@m17n.org>
2568
72d36834
KH
2569 * font.c (font_vconcat_entity_vectors): New function.
2570 (struct font_sort_data): New member font_driver_preference.
2571 (font_compare): Check font_driver_preference.
2572 (font_sort_entities): The format of the first argument changed.
2573 (font_delete_unmatched): Likewise.
2574 (font_list_entities): The return type changed.
2575 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
2576 (font_find_for_lface): Adjuste for the above changes.
2577 Don't suppress the checking of C even if the repertory supports it.
2578 (Flist_fonts): Adjust for the above changes.
72d36834 2579
1ac9108a
SM
2580 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
2581 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
2582 Reject a font who has adstyle property that is different from a
2583 langname derived from registry property.
1ac9108a 2584 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 2585
b6046155
EZ
25862009-07-13 Eli Zaretskii <eliz@gnu.org>
2587
2588 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
2589 local copy of dirfilename.
2590
fb6b6049
KH
25912009-07-13 Kenichi Handa <handa@m17n.org>
2592
e2402a5e
KH
2593 * chartab.c (sub_char_table_ref_and_range): Fix the range check
2594 against max_char.
2595
fb6b6049
KH
2596 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
2597 calling XSYMBOL (sym).
2598
65156807
EZ
25992009-07-11 Eli Zaretskii <eliz@gnu.org>
2600
1ac9108a
SM
2601 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
2602 New function.
2603 (directory_files_internal) [WINDOWSNT]:
2604 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
2605 the filesystem of the directory is fast or slow.
2606
2607 * w32.c (logon_network_drive): Don't assume PATH is an absolute
2608 file name.
2609 (is_slow_fs): New function.
2610 (stat): Use it to determine whether to issue more system calls to
2611 get accurate file attributes, when w32-get-true-file-attributes is
2612 `local'.
2613
e0ab5fcf
JD
26142009-07-10 Jan Djärv <jan.h.d@swipnet.se>
2615
2616 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 2617 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
2618 parameter font-parameter as default to the font dialog.
2619
784ceded
KH
26202009-07-10 Kenichi Handa <handa@m17n.org>
2621
2622 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
2623
fb8edc0b
EZ
26242009-07-09 Eli Zaretskii <eliz@gnu.org>
2625
1ac9108a 2626 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 2627
fb8edc0b
EZ
2628 * w32.c (stat): Treat UNC file names as residing on remote
2629 drives. (Bug#3542)
2630
635c75b1
KH
26312009-07-09 Kenichi Handa <handa@m17n.org>
2632
2633 * fontset.c (fontset_find_font): Fix previous change.
2634
c1d5ce94
MA
26352009-07-08 Michael Albinus <michael.albinus@gmx.de>
2636
2637 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
2638 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
2639 error flag.
2640
edb61b39
KH
26412009-07-08 Kenichi Handa <handa@m17n.org>
2642
374bf7e4
KH
2643 * fontset.c (fontset_find_font): Fix the logic of handling
2644 charset_matched.
2645 (font_for_char): Delete unused var.
2646 (generate_ascii_font_name): Delete it.
2647
edb61b39
KH
2648 * coding.h (JIS_TO_SJIS2): Fix the code range check.
2649
2650 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
2651 (encode_coding_sjis): Fix the code range check.
2652
0f3f018c
CY
26532009-07-07 Chong Yidong <cyd@stupidchicken.com>
2654
2655 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
2656 (Fexpand_file_name): Copy string data properly (Bug#3772).
2657
fcaf6f3a
JD
26582009-07-07 Jan Djärv <jan.h.d@swipnet.se>
2659
2660 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
2661 first MapNotify.
2662
6809ca75
KH
26632009-07-07 Kenichi Handa <handa@m17n.org>
2664
2665 * character.h (unibyte_has_multibyte_table): Delete extern.
2666 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
2667
2668 * charset.c (Fset_charset_priority): Update charset_unibyte.
2669 (syms_of_charset): Initialize charset_unibyte.
2670
2671 * character.c (unibyte_has_multibyte_table): Delete it.
2672 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
2673 charset_unibyte.
2674 (multibyte_char_to_unibyte_safe): Likewise.
2675 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
2676
1ac9108a 2677 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
2678 (x_produce_glyphs): Likewise.
2679
2680 * .gdbinit (xcharset): Fix the treating $arg0.
2681
ad9e2d54
EZ
26822009-07-04 Eli Zaretskii <eliz@gnu.org>
2683
2684 Emulation of `getloadavg' on MS-Windows.
2685 * w32.c: Include float.h
2686 (g_b_init_get_native_system_info, g_b_init_get_system_times)
2687 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
2688 (get_native_system_info, get_system_times): New functions.
2689 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
2690 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
2691 (globals_of_w32): Initialize g_b_init_get_native_system_info,
2692 g_b_init_get_system_times, and num_of_processors.
2693
0a3472c7
JR
26942009-07-03 Jason Rumney <jasonr@gnu.org>
2695
2696 * w32term.c (w32_initialize): Use standard types.
2697
80904120
EZ
26982009-07-03 Eli Zaretskii <eliz@gnu.org>
2699
2700 * dired.c (Ffile_attributes): Decode user and group names by the
2701 locale's encoding. (Bug#3443)
2702
6978862d
DN
27032009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
2704
f8d23104
DN
2705 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
2706 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
2707
2708 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
2709
2710 * term.c (init_tty): Remove spurious #ifdef.
2711
6978862d
DN
2712 * m/mips.h: Mention this file is also used for netbsd.
2713 * m/pmax.h: Remove file.
2714
e044e4fc
JD
27152009-07-03 Jan Djärv <jan.h.d@swipnet.se>
2716
2717 * xterm.h (struct x_display_info): Add invisible_cursor.
2718 (struct x_output): Add current_cursor.
2719
2720 * xterm.c (XTtoggle_invisible_pointer): New function.
2721 (x_define_frame_cursor): Don't define cursor if invisible or the
2722 same as before. Set current_cursor.
2723 (x_create_terminal): Set toggle_invisible_pointer_hook.
2724
2725 * xfns.c (make_invisible_cursor): New function.
2726 (x_set_mouse_color): Call make_invisible_cursor.
2727 Set current_cursor.
2728 (x_window): Set current_cursor.
2729
2730 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
2731
2732 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
2733 inserting a character.
2734 (read_avail_input): Call frame_make_pointer_visible.
2735
2736 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
2737 (frame_make_pointer_invisible, frame_make_pointer_visible):
2738 New functions.
e044e4fc
JD
2739 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
2740
2741 * frame.h: Declare frame_make_pointer_invisible and
2742 frame_make_pointer_visible.
2743 (struct frame): Add pointer_invisible.
2744
574c8efa
JD
27452009-07-02 Jan Djärv <jan.h.d@swipnet.se>
2746
7b507248
JD
2747 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
2748 frame isn't visible.
2749 (xg_frame_resized): If width/height is -1, get size of window
2750 from X server.
2751
2752 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
2753 for MapNotify.
2754
835bdaa7 2755 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 2756 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 2757 (flush_and_sync): Reintroduce.
574c8efa 2758
3f1c6666 27592009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 2760
31fd7c5c 2761 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
2762
2763 * xterm.c (x_handle_net_wm_state): Also look for sticky.
2764 (x_term_init): Initialize Xatom_net_wm_state_sticky.
2765
2766 * frame.h: Declare Qsticky.
2767
cad9ef74
JD
2768 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
2769
2770 * nsfns.m (ns_frame_parm_handlers): Ditto.
2771
2772 * frame.c: Declare Qsticky.
2773 (frame_parms): Add sticky.
2774
2775 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
2776
2777 * xterm.h: Declare x_set_sticky.
2778
2779 * xterm.c (x_set_sticky): New function.
2780
69b16610
JD
2781 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
2782 (xg_tool_bar_menu_proxy): Attach enter/leave events to
2783 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
2784
2785 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
2786
2787 * frame.c: Qmaximized is new.
2788 (x_set_frame_parameters): Do not handle fullscreen specially.
2789 Only set width and height if explicitly set.
2790 (x_set_fullscreen): Handle Qmaximized.
2791 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
2792 (syms_of_frame): Initialize Qmaximized.
2793
1ac9108a
SM
2794 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
2795 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
2796
2797 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
2798 for Expose event. Add call to x_check_fullscreen for MapNotify event.
2799 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
2800 set gravity to NorthWestGravity when USE_GTK.
2801 (set_wm_state): New function.
31fd7c5c 2802 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
2803 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
2804 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 2805 or the case when no window manager is running. That means remove calls
3f1c6666
JD
2806 to x_real_positions and x_fullscreen_adjust.
2807
2808 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
2809 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
2810 flush_and_sync.
2811 (xg_height_changed): New function.
2812 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
2813 and gtk_window_set_policy. Set frame gravity after parsing the
2814 geometry string.
3f1c6666
JD
2815 (xg_update_frame_menubar, free_frame_menubar)
2816 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
2817 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
2818 Remove calls to xg_frame_set_char_size.
2819
fd503d99
KH
28202009-07-01 Kenichi Handa <handa@m17n.org>
2821
2822 * keyboard.c (decode_keyboard_code): New function.
2823 (tty_read_avail_input): Decode the input bytes if necessary.
2824
1ac9108a
SM
2825 * coding.c (setup_coding_system):
2826 Initialize coding->carryover_bytes to 0.
fd503d99
KH
2827 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
2828 use Qno_conversion.
2829
24ed93fb
YM
28302009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2831
2832 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
2833
99061dfc
CY
28342009-06-30 Chong Yidong <cyd@stupidchicken.com>
2835
1ac9108a 2836 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 2837
ff90fbde
JR
28382009-06-30 Jason Rumney <jasonr@gnu.org>
2839
2840 * w32term.c (w32_initialize): Use GetModuleHandle for library that
2841 is already loaded.
2842 Set user model ID if supported (bug#1849).
2843
5f445726
JM
28442009-06-29 Jim Meyering <meyering@redhat.com>
2845
2846 Remove useless if-before-xfree test.
2847 * nsfont.m (nsfont_close): Remove useless test.
2848 * term.c (delete_tty): Likewise.
2849 * w32.c (system_process_attributes): Likewise.
2850 * w32font.c (w32font_close): Likewise.
2851 * xfaces.c (x_free_gc): Likewise.
2852 * xselect.c (buffer): Likewise.
2853
b9607587
AS
28542009-06-28 Andreas Schwab <schwab@linux-m68k.org>
2855
2856 * process.c (send_process): Keep decoded string in a local
2857 variable and protect it from GC. (Bug#3521)
2858
89ba96f4
EZ
28592009-06-28 Eli Zaretskii <eliz@gnu.org>
2860
2861 * term.c (create_tty_output) [MSDOS]: #ifdef away.
2862 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2863
098a1589
CY
28642009-06-28 Chong Yidong <cyd@stupidchicken.com>
2865
485422be
CY
2866 * xdisp.c (start_display, handle_face_prop)
2867 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
2868 (redisplay_window, try_window_id, produce_image_glyph):
2869 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 2870
098a1589
CY
2871 * xterm.c (x_update_window_begin, x_new_focus_frame)
2872 (x_scroll_bar_handle_click, handle_one_xevent)
2873 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2874 (x_make_frame_visible, x_make_frame_invisible)
2875 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2876 code chunks that are now obsolete.
2877
78c38319
MA
28782009-06-28 Michael Albinus <michael.albinus@gmx.de>
2879
2880 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2881 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2882 for hours, when optimzation is enabled.
2883 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2884 (xd_read_message): Make them static.
2885
4189ed40
CY
28862009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2887
2888 * term.c (turn_on_face): Allow simultaneously bold and dim
2889 terminal faces (Bug#3530).
2890
cd9b5e16
CY
28912009-06-27 Chong Yidong <cyd@stupidchicken.com>
2892
4e23bedb
CY
2893 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2894
cd9b5e16
CY
2895 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2896 truncation glyphs (Bug#3686).
2897
07cc3c35
GM
28982009-06-27 Glenn Morris <rgm@gnu.org>
2899
2900 * m/pmax.h: Restore file, with only netbsd portions.
2901
31fd7c5c 29022009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 2903
cd9b5e16 2904 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 2905
42d4a64f
KH
29062009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
2907
2908 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
2909 the arg FORCE_SYMBOL.
2910
930fe55b 29112009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
2912
2913 * fontset.c (fontset_find_font): When a usable rfont_def is found
2914 in a fallback font-group, make it the first element of the group.
2915
57ebc3fd
CY
29162009-06-24 Chong Yidong <cyd@stupidchicken.com>
2917
2918 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
2919
f084f942
KH
29202009-06-24 Kenichi Handa <handa@m17n.org>
2921
2922 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
2923 set for C.
2924 (fontset_font): Record the availability of a font for C both in
2925 the realized fontsets of the current one and the default one.
2926
2f686c87
DN
29272009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2928
2929 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
2930 conditional, it is always defined on AIX.
2931
666e158e
MB
29322009-06-23 Miles Bader <miles@gnu.org>
2933
2934 * window.c (Vrecenter_redisplay): New variable.
2935 (syms_of_window): Initialize it.
2936 (Qtty): New extern declaration.
2937 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
2938
c6da7cd2
JM
29392009-06-23 Jim Meyering <meyering@redhat.com>
2940
1ac9108a
SM
2941 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
2942 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 2943 pointer dereferences are guaranteed to be valid.
c6da7cd2 2944
678dca3d
KH
29452009-06-23 Kenichi Handa <handa@m17n.org>
2946
74d75424
KH
2947 * emacs.c (main): Call init_font ().
2948
2949 * font.h (Vfont_log): Extern it.
2950 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2951
2952 * font.c (font_sort_entities, font_list_entities)
2953 (font_matching_entity, font_open_entity)
2954 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2955 (Vfont_log): Delete static.
2956 (font_log_env_checked): Delete this variable.
2957 (font_add_log): Don't check font_log_env_checked.
2958 (font_deferred_log): Check Vfont_log.
2959 (init_font): New function.
2960
678dca3d
KH
2961 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2962
2963 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2964
2965 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2966
2967 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2968
2969 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2970 (face_for_char): Don't call font_deferred_log here.
2971 (font_for_char): Likewise.
2972
8a668709
CY
29732009-06-22 Chong Yidong <cyd@stupidchicken.com>
2974
9a01ee33
CY
2975 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2976 rather than its background_width for drawing the overline and
2977 underline (Bug#489).
2978
2979 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2980 rather than its background_width for drawing the overline and
2981 underline (Bug#489).
ec7c9926
CY
2982 (xg_default_icon_file): New variable.
2983 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2984 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 2985
8a668709
CY
2986 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2987 (load_overlay_strings): Remove externs.
2988 (fast_find_position): Function deleted.
2989 (mouse_face_from_buffer_pos): New function, based on
2990 fast_find_position. Correctly handle before-strings,
2991 display-strings, and after-strings (Bug#1220).
2992 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2993
4d4c02d8
CY
29942009-06-21 Chong Yidong <cyd@stupidchicken.com>
2995
1ac9108a 2996 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
2997 (move_it_in_display_line_to, move_it_in_display_line_to)
2998 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2999
70243478
CY
30002009-06-21 Chong Yidong <cyd@stupidchicken.com>
3001
3002 * Branch for 23.1.
3003
13087e59
JR
30042009-06-21 Jason Rumney <jasonr@gnu.org>
3005
3006 * w32term.c (keyboard_codepage): New static variable.
3007 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3008 (w32_read_socket) [WM_CHAR]: Use it to decode character
3009 input (bug#3237).
3010 (w32_initialize): Initialize it.
3011 (codepage_for_locale): New function.
3012
4735b74e
KR
30132009-06-20 Ken Raeburn <raeburn@raeburn.org>
3014
3015 * process.c (status_message): Pass Faset index argument as a lisp
3016 object, so as to work with USE_LISP_UNION_TYPE.
3017
0e727afa
YM
30182009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3019
3020 * coding.c (Ffind_coding_systems_region_internal):
3021 Cache checked characters.
3022
cf299835
KH
30232009-06-18 Kenichi Handa <handa@m17n.org>
3024
1ac9108a 3025 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 3026
90f20d94
AS
30272009-06-18 Andreas Schwab <aschwab@redhat.com>
3028
3029 * xdisp.c (redisplay_internal): Check that the frame is still
3030 live after redisplay of its windows.
3031 (redisplay_windows): Check that the window is still live.
3032
7f1faf1c
KH
30332009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3034
3035 * coding.c (detect_coding_utf_16): Fix previous change.
3036
cc13543e
KH
30372009-06-16 Kenichi Handa <handa@m17n.org>
3038
3039 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3040 UTF-16 by checking the dispersion of Eth and Oth bytes.
3041
977b85f4
AS
30422009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3043
3044 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3045
66bd43d1
KH
30462009-06-15 Kenichi Handa <handa@m17n.org>
3047
3048 * process.c (status_message): Fix previous change. Be sure to
3049 decode a localized string.
3050
cb5ca9c5
YM
30512009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3052
3053 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3054 add comment explaining why.
3055
ec7709ba 30562009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 3057
ec7709ba 3058 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 3059
4b7f335c
AR
30602009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3061
3062 * nsfont.m (ns_attribute_value): Remove.
3063 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3064 (ns_has_attribute): Shrink the normal range.
3065 (ns_findfonts): Don't worry about requested spec in determining
3066 need for synthItal.
e41820ee 3067 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 3068
73b26103
SZ
30692009-06-14 Seiji Zenitani <zenitani@mac.com>
3070
3071 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3072
5753e4da
KH
30732009-06-11 Kenichi Handa <handa@m17n.org>
3074
3075 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3076 overhang for the static composition case.
3077
3561b671
KH
30782009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3079
5753e4da
KH
3080 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3081 overhang for the automatic composition case.
3082
3561b671
KH
3083 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3084 composition case.
3085
852bbd41
CY
30862009-06-10 Chong Yidong <cyd@stupidchicken.com>
3087
3088 * xdisp.c (get_next_display_element): When handling wrap-prefix
3089 and line-prefix, treat \n as a control character (bug#3502).
3090
9903d1e6
KH
30912009-06-10 Kenichi Handa <handa@m17n.org>
3092
3093 * font.c (font_parse_family_registry): Fix for one-char foundry.
3094 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3095
0bcbaaaa
CY
30962009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3097
3098 * process.c (status_message): Fix handling of multibyte signal
3099 string (Bug#3499).
3100
40aa3f13
JM
31012009-06-09 Jim Meyering <meyering@redhat.com>
3102
1f80c7e2
CY
3103 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3104 color name is missing.
40aa3f13 3105
72d51285
KH
31062009-06-09 Kenichi Handa <handa@m17n.org>
3107
3108 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3109 FROM-CODE and TO-CODE are codepoints of CHARSET.
3110
c1d04d84
AR
31112009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3112
3113 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3114
31152009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3116
3117 Changes to support :script/:lang/:otf in NS font driver.
3118 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3119 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3120 indicate not part of font driver interface, and change callers.
3121 (ns_get_family): Remove pointless null check.
3122 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3123 ns_spec_to_descriptor, ns_descriptor_to_entity.
3124 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3125 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3126 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3127 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3128 (ns_get_req_script, ns_accumulate_script_ranges)
3129 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3130 New functions.
3131 (nsfont_list, nsfont_match): Use ns_findfonts.
3132 (nsfont_open): Use font descriptor instead of traits.
3133 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3134 (dump_glyphstring): Rename to ns_dump_glyphstring.
3135
c7eb9816
AR
3136 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3137
c1d04d84
AR
3138 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3139
3140 * fontset.c (fontset_from_font): Remove NS-specific code.
3141
ec7709ba 31422009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
3143
3144 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3145 nonactive windows.
3146
31fd7c5c 31472009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 3148
1ac9108a 3149 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 3150
68852c13 31512009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
3152
3153 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3154
6756cd1d
CY
31552009-06-07 Chong Yidong <cyd@stupidchicken.com>
3156
3157 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3158 account for the overflowing of newlines into the last glyph on the
3159 display line (Bug#3482).
3160
28bf482a
DR
31612009-06-05 David Reitter <david.reitter@gmail.com>
3162
ec7709ba
JB
3163 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3164 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
3165 Fns_selection_exists_p, Fns_selection_owner_p.
3166
fdb55376
JR
31672009-06-03 Jason Rumney <jasonr@gnu.org>
3168
3169 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3170 available. (Bug#3379)
3171
05129fbe
KH
31722009-05-29 Kenichi Handa <handa@m17n.org>
3173
1ac9108a
SM
3174 * coding.c (get_translation_table):
3175 Check Venable_character_translation.
05129fbe 3176
ec7709ba 31772009-05-26 David Reitter <david.reitter@gmail.com>
15891144 3178
ec7709ba
JB
3179 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3180 (x_make_frame_visible): Move frame to front rather than calling
15891144 3181 ns_raise_frame().
ec7709ba 3182 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 3183 isn't key window.
ec7709ba 3184 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
3185 drawRect may be called by NSView even if the frame is hidden.
3186
ec7709ba
JB
3187 * nsfns.m (Fx_create_frame): Follow other ports in
3188 determining visibility; default to t. Ensure async_visible is set.
15891144 3189
21f73755
EZ
31902009-05-23 Eli Zaretskii <eliz@gnu.org>
3191
3192 * dired.c (Ffile_attributes): Doc fix.
3193
34001e41
CY
31942009-05-22 Chong Yidong <cyd@stupidchicken.com>
3195
3196 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3197
46306a17
SM
31982009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3199
3200 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3201 and xfont_scratch_props.
3202 (syms_of_xfont): Do it here instead.
3203 (xfont_find_ccl_program): Delete, unused.
3204 (xfont_open): Delete unused var `i'.
3205
ef6e0694
KH
32062009-05-21 Kenichi Handa <handa@m17n.org>
3207
3208 * fontset.c (Qlatin): Don't make it static.
3209
46306a17
SM
3210 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3211 New functions.
ef6e0694
KH
3212 (xfont_scripts_cache, xfont_scratch_props): New variables.
3213 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
3214 (xfont_list_pattern): Argument changed. Callers changed.
3215 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
3216 (xfont_list): Don't reject a font spec with :script property.
3217 (xfont_has_char): Fix setting of encoding.
3218 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3219 xfont_scratch_props.
3220
32212009-05-19 Kenichi Handa <handa@m17n.org>
3222
46306a17 3223 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
3224 Callers changed.
3225
32262009-05-18 Kenichi Handa <handa@m17n.org>
3227
3228 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3229
ac71ced7
SM
32302009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3231
3232 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3233 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3234
1c6d1051
YM
32352009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3236
3237 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3238 (x_delete_terminal): Dissociate resource database from display and
3239 then call XrmDestroyDatabase before closing display.
3240
9b9b779c
AR
32412009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3242
3243 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
3244 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3245 whether selected frame is viable before raising it (based on patch
3246 by David Reitter), and improve commentary.
3247 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 3248
cccd42d5
KH
32492009-05-15 Kenichi Handa <handa@m17n.org>
3250
3251 * font.c (Ffont_spec): Check arguments.
3252
337fbd17
CY
32532009-05-14 Chong Yidong <cyd@stupidchicken.com>
3254
3255 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3256 weight when testing attributes (Bug#3282).
3257
47a6002f
JD
32582009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3259
3260 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3261 what we expect to get in the next ConfigureNotify event.
3262
9cb363db
YM
3263 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3264 before Xft one (Bug#1696).
3265
b9126609
CY
32662009-05-07 David Reitter <david.reitter@gmail.com>
3267
3268 * nsfns.m (Fx_display_planes): Compute bitplanes using
3269 NSBitsPerPixelFromDepth (Bug#3207).
3270
27a69fd9
CY
32712009-05-10 Chong Yidong <cyd@stupidchicken.com>
3272
3273 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3274
00f37552
TTN
32752009-05-10 Ulrich Mueller <ulm@gentoo.org>
3276
3277 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3278
2d82a920
DR
32792009-05-07 David Reitter <david.reitter@gmail.com>
3280
ec7709ba
JB
3281 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3282 Respect mouse face background.
2d82a920 3283
46b0d52d
DR
32842009-05-07 David Reitter <david.reitter@gmail.com>
3285
ec7709ba
JB
3286 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3287 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
3288 in ns_update_begin and ns_update_end.
3289
ce1b23bb
SM
32902009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3291
5996e1b7
SM
3292 * nsfns.m (ns_get_screen): Rewrite.
3293 Don't presume selected-frame is of type `ns'.
3294
ba98e3a0
SM
3295 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3296 all drivers.
3297
ce1b23bb
SM
3298 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3299
bcda200f
YM
33002009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3301
3302 * keyboard.h (add_user_signal): Fix typo in extern.
3303
3304 * lisp.h (add_user_signal): Remove extern.
3305
3306 * unexelf.c (unexec): Consider a section to precede the .bss section
3307 if its addresses overlap that of .bss.
3308 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3309 instead of dumping process.
3310
864660a2
SM
33112009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3312
3313 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3314
50da4e56
SM
33152009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3316
3317 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3318
51520a1a
DN
33192009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3320
3321 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3322 any statements.
3323
409ea3a1
AS
33242009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3325
59c4c60f
AS
3326 * process.c (read_process_output): Make sure the current buffer is
3327 always restored.
3328
409ea3a1
AS
3329 * coding.c (record_conversion_result): Don't modify
3330 Vlast_code_conversion_error for successful result.
3331 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3332
56f00ed2
KH
33332009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3334
3335 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 3336 (load_charset_map): Remove unnecessary code.
56f00ed2 3337
4491c9d2
DR
33382009-04-30 David Reitter <david.reitter@gmail.com>
3339
35f5b128 3340 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
3341 through f24.
3342
6970f632
CY
33432009-04-30 Chong Yidong <cyd@stupidchicken.com>
3344
3345 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3346
3347 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3348 face_at_buffer_position.
3349 (face_before_or_after_it_pos, get_next_display_element)
3350 (note_mouse_highlight): Update face_at_buffer_position call.
3351
3352 * term.c (term_mouse_highlight):
3353 * msdos.c (IT_note_mouse_highlight):
3354 * fontset.c (Finternal_char_font):
35f5b128 3355 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
3356
3357 * dispextern.h (face_at_buffer_position): Update prototype.
3358
0c616f63
KH
33592009-04-30 Kenichi Handa <handa@m17n.org>
3360
35f5b128 3361 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 3362
ad3aaf33
AS
33632009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3364
3365 * callproc.c (Fcall_process): Fix GC protection. Make sure
3366 current buffer is always restored.
3367
c3c963a0
YM
33682009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3369
3370 * atimer.c (init_atimer): Also clear stopped_atimers.
3371
3372 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3373
7e3386cb
YM
3374 * process.c (create_process): Clean up merger residues of
3375 2008-07-17 change.
3376
91f68422
CY
33772009-04-29 Ulrich Mueller <ulm@gentoo.org>
3378
3379 * lread.c (Vread_circle): New variable.
3380 (read1): Disable recursive read if Vread_circle is nil.
3381
24b34550
KH
33822009-04-29 Kenichi Handa <handa@m17n.org>
3383
3384 * fontset.h (set_default_ascii_font): Delete extern.
3385
3386 * fontset.c (set_default_ascii_font): Delete this unused function.
3387
3388 * frame.c (x_set_font): When ARG is a font-object, check if the
3389 font-object matches with the ASCII font-spec of the frame's
9c358bda 3390 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 3391
77bf07e1
AS
33922009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3393
3394 * fns.c (Flocale_info): Protect vector from GC during decoding.
3395
3396 * process.c (Fstart_process): Protect argv strings from GC during
3397 encoding.
3398
2c55aacf
AS
33992009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3400
3401 * sysdep.c: Include <ctype.h>.
3402
b892d3c9
DR
34032009-04-27 David Reitter <david.reitter@gmail.com>
3404
35f5b128 3405 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
3406 Remove commented-out code.
3407
9d0644c4
JB
34082009-04-26 Johan Bockgård <bojohan@gnu.org>
3409
3410 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3411
b7053016
JR
34122009-04-25 Jason Rumney <jasonr@gnu.org>
3413
3414 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3415
4e8231f3
YM
34162009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3417
3418 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3419 Swap bytes in short integer if fringe bitmap width > 8.
3420
493dcf2c
KH
34212009-04-23 Kenichi Handa <handa@m17n.org>
3422
3423 * xfaces.c (Fx_list_fonts): If a font size is specified in
3424 PATTERN, set it in returned scalable fonts.
3425
401e9e57
CY
34262009-04-22 Chong Yidong <cyd@stupidchicken.com>
3427
708e05dc
CY
3428 * keyboard.c (Fset_input_meta_mode): Doc fix.
3429
3430 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3431
1ac9108a 3432 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
3433
3434 * coding.c (Fterminal_coding_system): Doc fix.
3435
3436 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3437 (Fx_display_pixel_height, Fx_display_planes)
3438 (Fx_display_color_cells, Fx_server_max_request_size)
3439 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3440 (Fx_display_mm_height, Fx_display_mm_width)
3441 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
3442 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3443 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
3444 (check_x_display_info): Handle terminal objects instead of
3445 terminal ids.
3446
401e9e57
CY
3447 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3448 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
3449 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3450 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 3451
df80c7f0
KH
34522009-04-21 Kenichi Handa <handa@m17n.org>
3453
5a8f12af 3454 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 3455 (font_score): Check AVGWIDTH too.
908567ef 3456
df80c7f0
KH
3457 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3458 worst case.
1ac9108a
SM
3459 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3460 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 3461
705af33f
JR
34622009-04-19 Jason Rumney <jasonr@gnu.org>
3463
3464 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 3465 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
3466
3467 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3468 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3469 get_phys_cursor_geometry.
3470
b71ac3dd 3471 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
3472 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3473 using get_phys_cursor_geometry.
3474
3475 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3476 correctly calculated.
3477
dc2933eb
JD
34782009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3479
1ac9108a
SM
3480 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3481 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
3482 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3483 is deprecated.
3484
973e7849
AS
34852009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3486
3487 * font.c (font_put_frame_data): Use xfree instead of free.
3488
314d66f4
JB
34892009-04-17 Juanma Barranquero <lekktu@gmail.com>
3490
3491 * w32font.c (Qja, Qko): Remove declarations.
3492 (syms_of_w32font): Don't DEFSYM them.
3493
cf702558
CY
34942009-04-17 Chong Yidong <cyd@stupidchicken.com>
3495
3496 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3497
3498 * font.h (Qja, Qko): Extern them.
3499
3500 * ftfont.c (Qja, Qko): Remove declarations.
3501
3502 * xfont.c (Qja, Qko): Remove declarations.
3503
b50504f5
KH
35042009-04-17 Kenichi Handa <handa@m17n.org>
3505
bde25748
KH
3506 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3507 string from a vector to handle Latin-1 characters correctly.
3508
b50504f5
KH
3509 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3510 entity even if the cache hits.
3511
f4646fff
AS
35122009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3513
3514 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 3515 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 3516
e7deaab0
AS
3517 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3518 * lisp.h: Adjust prototypes.
3519
0a0e7d49
CY
35202009-04-16 Chong Yidong <cyd@stupidchicken.com>
3521
3522 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3523 change (Bug#3003).
3524
3c908a57
KH
35252009-04-16 Kenichi Handa <handa@m17n.org>
3526
1ac9108a 3527 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
3528
3529 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3530 adstyle.
3531
3532 * ftfont.c (Qja, Qko): Don't make them static.
3533 (enum ftfont_cache_for): New enum.
3534 (fc_charset_table): Undo the previous change.
3535 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
3536 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3537 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
3538 non-scarable font, try to get AVERAGE_WIDTH.
3539 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3540 Change ft_face_cache from a list of a hash-table. Don't check
3541 `ja' and `ko' adstyle here.
3542 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3543 FTFONT_CACHE_FOR_CHARET.
3544 (ftfont_get_charset): Undo the previous change.
1ac9108a 3545 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
3546 (ftfont_close): Likewise.
3547 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
3548
3549 * font.c (font_sort_entites): Change the meaning of the arg
3550 BEST-ONLY. Don't optimize for VEC of lenght 1.
3551 (font_select_entity): Just return the value of font_sort_entites.
3552
3553 * xfaces.c (merge_face_vectors): Reflect font properties in
3554 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
3555 font_clear_prop if a face attribute doesn't change.
3556
3c908a57
KH
3557 * charset.h (charset_ksc5601): Extern it.
3558
3559 * charset.c (charset_ksc5601): New variable.
3560 (Fdefine_charset_internal): Set charset_ksc5601.
3561 (init_charset_once): Initialize charset_ksc5601 to -1.
3562
d65859c3
DN
35632009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3564
3565 * fileio.c (history_delete_duplicates): Remove unused declaration.
3566
3567 * callint.c (history_delete_duplicates): New declaration.
3568 (Fcall_interactively): Remove command history duplicates when
3569 history_delete_duplicates is true.
3570
3ba010e5
EZ
35712009-04-14 Eli Zaretskii <eliz@gnu.org>
3572
3573 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
3574
06f19b91
KH
35752009-04-14 Kenichi Handa <handa@m17n.org>
3576
3577 * font.c (Ffont_info): Fix docstring. Fix the second element of
3578 the returned value (bug#2949).
3579
2cce8bfc
CY
35802009-04-14 Chong Yidong <cyd@stupidchicken.com>
3581
3582 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
3583
d156542d
KH
35842009-04-14 Kenichi Handa <handa@m17n.org>
3585
3586 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
3587 encoding charset is ascii_compatible.
3588
3589 * charset.c (Fdefine_charset_internal): Make charset
3590 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
3591 code_offset is 0, and covers all ASCII characters.
3592
86fa089e
SM
35932009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3594
3595 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
3596 (ns_string_to_pasteboard_internal):
3597 * nsmenu.m (process_dialog):
3598 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
3599 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
3600 * lisp.h (Fx_load_color_file): Declare.
3601
a8a3728b
KH
36022009-04-13 Kenichi Handa <handa@m17n.org>
3603
1ac9108a 3604 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
3605 (font_select_entity): Suppress the code to optimize for the same
3606 kind of fonts.
3607 (font_load_for_lface): Get a font that supports at least ASCII
3608 characters.
3609
3610 * ftfont.c (Qja, Qko): New variables.
3611 (fc_charset_table): Delete uniquifier data for iso8859-1.
3612 (ftfont_get_latin1_charset): New function.
3613 (get_adstyle_property): New function.
3614 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
3615 bitmap fonts.
3616 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
3617 Delete iso-8859-1 range from the charset of fonts whose adstyle is
3618 `ko' or `ja'.
3619 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 3620 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
3621 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
3622 property.
3623 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
3624 (syms_of_ftfont): DEFSYM Qja and Qko.
3625
483670b5
KH
36262009-04-09 Kenichi Handa <handa@m17n.org>
3627
12b55765
KH
3628 * charset.c (map_charset_chars): For a charset of `superset'
3629 method, fix calculation of code range.
3630
483670b5
KH
3631 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
3632 from the list of extra properties.
3633 (font_clear_prop): Be sure to delete `:name' font property.
3634
57d3b93b
KH
36352009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3636
b4b2c2ca
YM
3637 * dispnew.c (redraw_overlapping_rows): Fix detection of
3638 overlapping for topmost and bottommost rows.
3639
1ac9108a 3640 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 3641
472c3609
JR
36422009-04-06 Jason Rumney <jasonr@gnu.org>
3643
3644 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
3645
ab193662
KH
36462009-04-06 Kenichi Handa <handa@m17n.org>
3647
3648 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
3649
3650 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
3651
0c26f026
KH
36522009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3653
3654 * ftfont.c (ftfont_open): Fix checking of the return value of
3655 FT_Load_Char. Fix setting font->underline_thickness.
3656
e173bbce
CY
36572009-04-04 Chong Yidong <cyd@stupidchicken.com>
3658
3659 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
3660 (Fterminal_parameters, Fterminal_parameter)
3661 (Fset_terminal_parameter): In doc string, refer to terminal
3662 objects rather than terminal ids.
3663
693a2698
EZ
36642009-04-04 Eli Zaretskii <eliz@gnu.org>
3665
3666 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
3667 ret_lim_data. (Bug#2867)
3668
d5221487
CY
36692009-04-03 Chong Yidong <cyd@stupidchicken.com>
3670
3671 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
3672 so they don't get wider than the window, matching 2006-01-23
3673 change to the partner function in xdisp.c (Bug#2800).
3674
223509a3
KH
36752009-04-03 Kenichi Handa <handa@m17n.org>
3676
3677 * print.c (print_object): Make each lowest sub_char_table start a
3678 new line (Bug#2866).
3679
74fcd0b1
KH
36802009-04-02 Kenichi Handa <handa@m17n.org>
3681
3682 * fontset.c (fontset_font): Record no-font when a fontset
3683 explicitly tells not to try another font-specs.
3684
c542407d
SM
36852009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
3686
3687 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
3688
e3869731
KH
36892009-03-30 Kenichi Handa <handa@m17n.org>
3690
d8d2f142
KH
3691 * fontset.c (fontset_from_font): Specify only registry in a
3692 font-spec for all characters supported by that registry.
3693
e3869731
KH
3694 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
3695 even if HAVE_M17N_FLT is not defined.
3696
5da5f805
CY
36972009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
3698
3699 * ftfont.c: Conditionalize prototyping and use of
3700 ftfont_variation_glyphs.
3701
ab226c50
SM
37022009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3703
9628fed7
SM
3704 * frame.c (delete_frame): Work around compiler bug.
3705
3706 * editfns.c (general_insert_function): Adjust to insdel.c changes.
3707 * insdel.c (prepare_to_modify_buffer, signal_before_change):
3708 Some more EMACS_INT.
3709 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
3710
3711 * xdisp.c (dump_glyph): Fix typo.
3712
ae19ba7c
SM
3713 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
3714 (adjust_markers_gap_motion, adjust_markers_for_delete)
3715 (adjust_markers_for_insert, adjust_point)
3716 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
3717 (make_gap, copy_text, count_size_as_multibyte, insert)
3718 (insert_and_inherit, insert_before_markers)
3719 (insert_before_markers_and_inherit, insert_1)
3720 (count_combining_before, count_combining_after, insert_1_both)
3721 (insert_from_string, insert_from_string_before_markers)
3722 (insert_from_string_1, insert_from_gap, insert_from_buffer)
3723 (insert_from_buffer_1, adjust_after_replace)
3724 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
3725 (replace_range_2, del_range, del_range_1, del_range_byte)
3726 (del_range_both, del_range_2, modify_region)
3727 (prepare_to_modify_buffer, signal_before_change)
3728 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
3729 for buffer positions and sizes.
3730 * lisp.h: Adjust prototypes accordingly.
3731
3732 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
3733 (non_regular_inserted, non_regular_nbytes, read_non_regular)
3734 (Finsert_file_contents): Use EMACS_INT for buffer positions.
3735
ab226c50
SM
3736 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
3737
46dfb8fb
JD
37382009-03-27 Jan Djärv <jan.h.d@swipnet.se>
3739
3740 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
3741 lines and columns so we keep the same pixel height and width.
3742
3743 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
3744 the property _NET_WM_STATE has changed.
46dfb8fb
JD
3745 (x_handle_net_wm_state): New function to update frame parameter
3746 fullscreen.
3747 (x_term_init): Initialize atoms for _NET_WM_STATE.
3748
3749 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
3750
d347e494
SM
37512009-03-27 Kevin Ryde <user42@zip.com.au>
3752
3753 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
3754 Gpm_GetEvent as an error that justifies closing the filedescriptor.
3755 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
3756 (Fgpm_mouse_stop): Pass that new parameter.
3757 * termhooks.h (close_gpm): Adjust prototype.
3758
84db11d6
SM
37592009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3760
c95a5008
SM
3761 * lisp.h (Fx_focus_frame): Declare.
3762
84db11d6
SM
3763 * callint.c (Fcall_interactively): For '^' just delegate the work to
3764 handle-shift-selection.
3765 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
3766
0a1958d6
CY
37672009-03-24 Chong Yidong <cyd@stupidchicken.com>
3768
0bfdff23
CY
3769 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
3770
0a1958d6
CY
3771 * data.c (Qinteractive_form): New variable.
3772 (Finteractive_form): Use it.
3773
3774 * eval.c (Fcommandp): Use Qinteractive_form.
3775
58aec0d6
JR
37762009-03-24 Jason Rumney <jasonr@gnu.org>
3777
3778 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
3779 Calculate total size precisely. Decode environment variables
3780 before substituting. (Bug#38)
3781
553dd618
KH
37822009-03-24 Kenichi Handa <handa@m17n.org>
3783
3784 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 3785 encoding (Bug#2722).
553dd618 3786
c39ea606
JD
37872009-03-23 Jan Djärv <jan.h.d@swipnet.se>
3788
3789 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
3790 that gdpy is set.
3791
bc9b2b5e
AM
37922009-03-22 Alan Mackenzie <acm@muc.de>
3793
3794 * callint.c (Finteractive): Clarify the doc string - even
3795 promptless elements need \n separators.
3796
9f995a76
JR
37972009-03-22 Jason Rumney <jasonr@gnu.org>
3798
3799 * w32term.c (syms_of_w32term): Doc fix for
3800 x-use-underline-position-properties.
3801
22749e9a
EZ
38022009-03-21 Eli Zaretskii <eliz@gnu.org>
3803
3804 * w32.c (getpwuid): Change argument type to unsigned.
3805 (struct w32_id): Change type of `rid' member to unsigned.
3806 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
3807 argument ID to unsigned. All callers changed.
3808 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
3809
e00553bf
EZ
38102009-03-20 Eli Zaretskii <eliz@gnu.org>
3811
3812 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
3813 negative, produce a float value.
3814
3815 * dired.c (make_uid, make_gid): New functions.
3816 (Ffile_attributes): Use them to avoid negative UID and GID.
3817
f761d6b6
JB
38182009-03-20 Juanma Barranquero <lekktu@gmail.com>
3819
3820 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
3821 (syms_of_keyboard) <command-hook-internal, input-method-function>:
3822 Fix typos in docstrings.
3823
d507f8d7
KH
38242009-03-19 Kenichi Handa <handa@m17n.org>
3825
3826 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
3827 changed, use font_load_for_lface to get a new font object.
3828 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
3829
3830 * frame.c (x_set_font): Handle the case that ARG is a cons.
3831
c68845e0
GM
38322009-03-19 Glenn Morris <rgm@gnu.org>
3833
3834 * fileio.c (Fsubstitute_in_file_name): Doc fix.
3835
bfa49dd1
CY
38362009-03-19 Chong Yidong <cyd@stupidchicken.com>
3837
3838 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
3839
8458d4c1
KH
38402009-03-19 Kenichi Handa <handa@m17n.org>
3841
3842 * charset.c (load_charset_map_from_file): When a mapfile can't be
3843 loaded, signal an error.
3844
78e7d1fe
EZ
38452009-03-18 Eli Zaretskii <eliz@gnu.org>
3846
3847 * dired.c (Ffile_attributes): Make sure UID and GID are always
3848 positive, even if the value is too large for a positive EMACS_INT.
3849 Doc fix.
3850
3851 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
3852
5da9fdfa
YM
38532009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3854
3855 * xmenu.c (xdialog_show): Move Fredisplay call ...
3856 (Fx_popup_dialog): ... here.
3857
7519c40d
SM
38582009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
3859
3860 * dired.c (file_name_completion): Disable the first optimization just
3861 installed, since it is not implemented correctly.
3862
2cd298e2
SM
38632009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3864
3865 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 3866 only if the entry can affect bestmatch.
2cd298e2
SM
3867 Stop the search early, as Ftry_completion already does.
3868
48d37adf
CY
38692009-03-17 Chong Yidong <cyd@stupidchicken.com>
3870
e10c9c93 3871 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 3872
9286b16a
CY
38732009-03-15 Chong Yidong <cyd@stupidchicken.com>
3874
3875 * keyboard.c (parse_menu_item): Don't display remappings as menu
3876 equivalent bindings (Bug#788).
3877
f7b146dc
JR
38782009-03-15 Jason Rumney <jasonr@gnu.org>
3879
3880 * w32term.h (WM_EMACS_PAINT): New message.
3881 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3882 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3883 before passing to lisp thread. (Bug#950)
3884
f761d6b6 38852009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 3886
d93f9575
CY
3887 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3888 variable as it was never reset.
3889 (ns_term_init): Remove initialization of Lisp-settable defaults
3890 and ns_expand_space.
3891 (-setPanelFromDefaultValues): Remove ns_expand_space.
3892 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3893 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
3894 i.e. no additional spacing, similar to Carbon port.
3895
d93f9575
CY
3896 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
3897 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 3898
305018ec
JD
38992009-03-14 Jan Djärv <jan.h.d@swipnet.se>
3900
3901 * sound.c (alsa_configure): Remove call to deprecated
3902 snd_pcm_sw_params_set_xfer_align.
3903
f761d6b6 39042009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
3905
3906 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
3907 after clicking in a detached tool bar.
3908 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
3909
46e722a9
SM
39102009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
3911
348db3dd
SM
3912 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
3913 int/Lisp_Object mixup).
46e722a9 3914
a3d16f39
KH
39152009-03-13 Kenichi Handa <handa@m17n.org>
3916
3917 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 3918 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
3919 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
3920 (set_fontset_font): Change ARG to a vector. Handle range_list in
3921 ARG correctly.
3922 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 3923 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
3924 the above change.
3925 (fontset_from_font): Fix previous change.
fe24f56a 3926 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
3927 entry. If FONTSET is the default fontset, don't set the extra
3928 slot of the returning char-table.
3929
b066e6b6
JB
39302009-03-12 Juanma Barranquero <lekktu@gmail.com>
3931
3932 * nsfns.m (Fx_close_connection): Doc fix.
3933 (Fns_do_applescript): Reflow docstring.
3934 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
3935 (Fx_display_pixel_width, Fx_display_pixel_height)
3936 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
3937 Fix typos in docstrings.
3938 (Fns_set_alpha): Fix typos in error messages.
3939
d472514e 39402009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 3941
d472514e 3942 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
3943 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
3944 were used for such events.
3945
d472514e
JB
3946 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
3947 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 3948
d472514e 3949 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
3950 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
3951
fb930676
KH
39522009-03-11 Kenichi Handa <handa@m17n.org>
3953
ff85581a
KH
3954 * font.h (font_open_by_spec): Extern it.
3955
c50b7e98
KH
3956 * font.c (font_open_by_spec): New function.
3957 (font_open_by_name): Use font_open_by_spec.
3958
fb930676
KH
3959 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3960 fontset of the frame.
3961
3962 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3963 modify the default font of frames that use this fontset.
3964 (num_auto_fontsets): New variable.
3965 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3966 name. Be sure to set FONTSET_ASCII to the correct font name.
3967 (update_auto_fontset_alist): New function.
3968
df4e8455
JB
39692009-03-11 Juanma Barranquero <lekktu@gmail.com>
3970
3971 * makefile.w32-in: Update dependencies.
3972
0a375797
AR
39732009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3974
3975 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3976
61313fa3
SM
39772009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3978
3979 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3980
b55103fb
CY
39812009-03-10 Chong Yidong <cyd@stupidchicken.com>
3982
3983 * lread.c (Feval_buffer): Doc fix.
3984
dde2559c
KH
39852009-03-09 Kenichi Handa <handa@m17n.org>
3986
3987 * charset.c (Qfile_name_handler_alist): Extern it.
3988 (load_charset_map_from_file): Temporarily bind
3989 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3990
df4e8455 39912009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 3992
47f588bb
GM
3993 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3994 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 3995
4ddf94bd
AR
39962009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3997
4c9bdfc2
AR
3998 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3999 (x_set_window_size): Change back to calculated method of setting
4000 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
4001 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4002 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4003
fe41ae9e
AR
4004 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4005
4c9bdfc2
AR
4006 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4007 accelerator in parens under GNUstep.
4008
825d0875
KH
40092009-03-06 Kenichi Handa <handa@m17n.org>
4010
4011 These changes are to detect incorrect composition sequence without
f3b3be74 4012 looking ahead the source. (Bug#2370)
825d0875
KH
4013
4014 * coding.h: Include "composite.h".
4015 (enum compisition_state): New enum.
4016 (struct compisition_status): New struct.
4017 (struct iso_2022_spec): New member cmp_status.
4018 (struct emacs_mule_spec): New struct.
4019 (struct coding_system): New members ctext_extended_segment_len and
4020 embedded_utf_8. Change the union member
4021 spec.emacs_mule_full_support to spec.emacs_mule.
4022
4023 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4024 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 4025 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
4026 (ADD_COMPOSITION_DATA): New arg nbytes.
4027 (emacs_mule_char): New arg cmp_status.
4028 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4029 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4030 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4031 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4032 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4033 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4034 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4035 (EMACS_MULE_COMPOSITION_END): New macro.
4036 (emacs_mule_finish_composition): New function.
4037 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4038 (decode_coding_emacs_mule): Avoid long looking ahead while
4039 handling composition.
4040 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4041 (ENCODE_COMPOSITION_RULE): New macro.
4042 (finish_composition): New function.
4043 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4044 (DECODE_COMPOSITION_START): New implementation.
4045 (DECODE_COMPOSITION_END): Likewise.
4046 (STORE_COMPOSITION_RULE): New macro.
4047 (decode_coding_iso_2022): Avoid long looking ahead while handling
4048 composition, CTEXT extended segment, and embedded UTF-8.
4049 (setup_coding_system): For a coding of type iso-2022, reset
4050 CODING_ISO_EXTSEGMENT_LEN (coding) and
4051 CODING_ISO_EMBEDDED_UTF_8 (coding).
4052 (get_translation): Delete arguments last_block, from_nchars,
4053 to_nchars. Callers changed.
4054 (produce_chars): Don't modify charbuf. Adjusted for the change of
4055 get_translation.
98a326f7 4056 (produce_composition): Adjust for the new annotation sequence.
825d0875 4057 (handle_composition_annotation): Likewise.
98a326f7 4058 (consume_chars): Adjust for the change of get_translation.
825d0875 4059
ccbc4452
AR
40602009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4061
4ddf94bd 4062 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 4063
988a7ddb
KH
40642009-03-05 Kenichi Handa <handa@m17n.org>
4065
4066 * font.c (font_select_entity): New function.
4067 (font_find_for_lface): Use font_select_entity to select a font.
4068
4069 * fontset.c (fontset_find_font): If a font found without
a8a3728b 4070 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
4071 font with C restriction.
4072
98a326f7 40732009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 4074
be1bce46 4075 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 4076
10ea2b82
JR
40772009-03-04 Jason Rumney <jasonr@gnu.org>
4078
2c93b248 4079 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 4080 characters that have already been read. (Bug#2569)
2c93b248 4081
10ea2b82
JR
4082 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4083 Log an error message if check_image_size failed.
4084 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 4085 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 4086
71a0c011
EZ
40872009-03-02 Eli Zaretskii <eliz@gnu.org>
4088
4089 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4090 when decoding process output.
4091
2f63bba8
RS
40922009-03-01 Richard M Stallman <rms@gnu.org>
4093
4094 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4095
4096 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4097
0a9564cb
EZ
40982009-02-28 Eli Zaretskii <eliz@gnu.org>
4099
4100 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4101 (decode_coding_emacs_mule, decode_coding_iso_2022)
4102 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4103 (decode_coding_raw_text, decode_coding_charset)
4104 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4105 Honor inhibit-eol-conversion. (Bug #2186)
4106
449148b3
JR
41072009-02-28 Jason Rumney <jasonr@gnu.org>
4108
4109 * coding.c (detect_coding_charset): If not checking latin extra,
4110 fail on characters between 0x80 and 0xA0. (Bug#2354)
4111
a4aee864
EZ
41122009-02-28 Eli Zaretskii <eliz@gnu.org>
4113
4114 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 4115 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 4116
d88bee5a
GM
41172009-02-27 Glenn Morris <rgm@gnu.org>
4118
4119 * callint.c (Finteractive): Doc fix.
4120
a808f22d
KH
41212009-02-27 Kenichi Handa <handa@m17n.org>
4122
4123 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4124
caf8d60c
CY
41252009-02-27 Chong Yidong <cyd@stupidchicken.com>
4126
4127 * font.c (font_style_to_value): Set value for unknown symbols to
4128 100 instead of 255.
b61137ea
CY
4129 (weight_table, slant_table, width_table): Treat "unspecified" as
4130 the default value.
caf8d60c 4131
1a0de25c
JB
41322009-02-26 Juanma Barranquero <lekktu@gmail.com>
4133
4134 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4135
8fc45744
JB
41362009-02-25 Juanma Barranquero <lekktu@gmail.com>
4137
107bd7d1
JB
4138 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4139 error as soon as a recursive load is detected.
8fc45744 4140
f097e223
AR
41412009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4142
4143 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4144 before caching.
4145
8810a12f
KH
41462009-02-24 Kenichi Handa <handa@m17n.org>
4147
4148 * fontset.c (fontset_find_font): Fix the condition for checking
4149 unavailable font.
4150
2c7d1565
GM
41512009-02-24 Glenn Morris <rgm@gnu.org>
4152
4153 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4154 whitespace that confuses documentation.
4155
a20878b6
MB
41562009-02-23 Miles Bader <miles@gnu.org>
4157
4158 * process.c (Flist_system_processes, Fprocess_attributes)
4159 (syms_of_process): Rename `system-process-attributes' to
4160 `process-attributes'.
4161
b3b58c01
AS
41622009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4163
1b3b981b
AS
4164 * coding.h (struct coding_system): Make safe_charsets a pointer to
4165 unsigned char.
4166 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4167 being 255.
4168 (SAFE_CHARSET_P): Likewise.
4169 (setup_iso_safe_charsets): Properly setup safe_charsets.
4170 (Fdefine_coding_system_internal): Likewise.
4171 (setup_coding_system): Likewise. Remove unneeded casts.
4172 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4173 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4174 unneeded casts.
4175
b3b58c01
AS
4176 * insdel.c (del_range_2): Don't modify gap contents when called
4177 from decode_coding_object. (Bug#1809)
4178
0b6f228c
CY
41792009-02-21 Chong Yidong <cyd@stupidchicken.com>
4180
4181 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4182 Qfont_object.
4183 (Ftype_of): Recognize font objects.
4184
4185 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4186
4187 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4188 moved to data.c.
4189
52f8870b
AR
41902009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4191
4192 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4193 async_iconified. Based on a patch by Christian Lynbech
4194 <christian.lynbech@tieto.com>.
4195 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4196
7087d5e9
GM
41972009-02-20 Glenn Morris <rgm@gnu.org>
4198
4199 * syntax.c (Fskip_chars_forward): Fix doc typo.
4200
41d2ceef
CY
42012009-02-20 Chong Yidong <cyd@stupidchicken.com>
4202
4203 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4204
1a3b7ca6
CY
42052009-02-19 Chong Yidong <cyd@stupidchicken.com>
4206
4207 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4208
73cce38d
KH
42092009-02-19 Kenichi Handa <handa@m17n.org>
4210
4211 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 4212 Don't overflow coding->carryover. (Bug#2370)
73cce38d 4213
a51092ee
DN
42142009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4215
4216 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4217
c423ecca
KH
42182009-02-18 Kenichi Handa <handa@m17n.org>
4219
4220 * font.c (font_check_otf_features): Fix handling of `nil' element.
4221 (Ffont_spec): Describe :lang and :otf in the docstring.
4222
4c1958f4
AS
42232009-02-16 Andreas Schwab <schwab@suse.de>
4224
4225 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4226 string.
4227
5704f39a
KH
42282009-02-16 Kenichi Handa <handa@m17n.org>
4229
4230 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 4231 (Bug#1723)
5704f39a 4232
8f0085aa
CY
42332009-02-14 Chong Yidong <cyd@stupidchicken.com>
4234
a057d86a 4235 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
4236
4237 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4238 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4239
aff01dd9
EZ
42402009-02-14 Eli Zaretskii <eliz@gnu.org>
4241
4242 * msdos.c (MAX_SCREEN_BUF): New macro.
4243 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4244 Encode the entire run of glyphs sharing the same face, instead of
4245 doing that one glyph at a time (fixes a bug with displaying
4246 double-size characters).
4247
ba301db3
AR
42482009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4249
4250 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4251
4252 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4253 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 4254 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
4255
4256 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 4257 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 4258
51d861de
SM
42592009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4260
ac146f82 4261 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
4262 invisible areas.
4263
7fed8996
JR
42642009-02-12 Jason Rumney <jasonr@gnu.org>
4265
631ea4fb
JR
4266 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4267 (add_font_entity_to_list): Call check_face_name even when family
4268 is unspecified.
4269
cb4a3e42
JR
4270 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4271 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 4272 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 4273
7fed8996 4274 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 4275 raster fonts. (Bug#2219)
7fed8996 4276
895416e3
KH
42772009-02-12 Kenichi Handa <handa@m17n.org>
4278
4279 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4280 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4281 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 4282 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4283 (find_automatic_composition): While looking forward and backward,
4284 check static composition. Fix where to stop looking forward.
4285 (composition_adjust_point): Fix checking of static composition.
4286 (Fcomposition_get_gstring): Pay attention to
1dacf998 4287 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4288
4289 * lisp.h (fast_looking_at): Extern it.
4290
4291 * search.c (fast_looking_at): New function.
4292
51d861de 4293 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
4294 <struct glyph>.u.cmp.to.
4295 (append_composite_glyph): Likewise.
4296
51d861de 4297 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
4298 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4299 composition.
51d861de 4300 (append_composite_glyph): Adjust for the change of
895416e3
KH
4301 <strcut glyph>.u.cmp.to.
4302
8510724d
JB
43032009-02-11 Juanma Barranquero <lekktu@gmail.com>
4304
4305 * casetab.c (init_casetab_once):
4306 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4307 * font.c (font_update_lface):
4308 * fontset.c (Fnew_fontset):
4309 * ftfont.c (ftfont_drive_otf):
4310 * xfont.c (xfont_open):
4311 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4312
294fa707
SM
43132009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4314
4315 * fileio.c (Fwrite_region): !NILP -> CONSP.
4316
b5bfebec
AS
43172009-02-10 Andreas Schwab <schwab@suse.de>
4318
4319 * process.c (send_process): Properly relocate pointer into data
adab88bd 4320 when using encoded data. (Bug#2272)
b5bfebec 4321
cb84a2be
KH
43222009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4323
4324 * coding.c (detect_coding_charset): Fix previous change.
4325
89e09428
JR
43262009-02-08 Jason Rumney <jasonr@gnu.org>
4327
4328 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 4329 disappeared while hourglass was displayed. (Bug #2193)
89e09428 4330
4470a277
AS
43312009-02-07 Andreas Schwab <schwab@suse.de>
4332
4333 * unexelf.c (unexec): Fix error message.
4334
3175b12a
AR
43352009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4336
4337 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 4338 when modal window is active. (Bug #2152)
3175b12a
AR
4339 (applicationShouldTerminate:): Remove now-unneeded while loop
4340 around NSRunAlertPanel.
4341
4342 * nsmenu.m (popupSession): New file-global variable.
4343 (pop_down_menu): End the popupSession before closing dialog.
4344 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4345 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4346 don't query NSApp for events (just sleep instead).
4347
8434d0b8
EZ
43482009-02-07 Eli Zaretskii <eliz@gnu.org>
4349
51d861de
SM
4350 * coding.c (syms_of_coding) <translation-table-for-input>:
4351 Modify doc string to discourage use for character code unification.
8434d0b8 4352
aa82edfd
CY
43532009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4354
4355 * atimer.c (run_timers): Update pending_atimers.
4356
2d283c7c
CY
43572009-02-06 Chong Yidong <cyd@stupidchicken.com>
4358
eb306cab
CY
4359 * image.c (svg_load_image): Fix last change.
4360
2d283c7c
CY
4361 * xfns.c (Fx_create_frame): Signal an error if no font is
4362 found (Bug#2147).
4363
4d8e170e
JB
43642009-02-05 Juanma Barranquero <lekktu@gmail.com>
4365
4366 * character.c (syms_of_character) <script-representative-chars>:
4367 Fix typo in docstring.
4368
c96169a0
AR
43692009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4370
4371 * nsmenu.m (pop_down_menu): New function.
4372 (ns_popup_dialog): Call it on unwind.
4373 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4374 call timer_check() (Bug#2154).
4375 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4376 handling_signal is set.
4377 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4378
31fd7c5c 4379 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
4380
4381 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4382
4383 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4384
51d861de
SM
4385 * keyboard.c (poll_for_input_1, handle_async_input):
4386 Set handling_signal under HAVE_NS.
c96169a0 4387
aacd8ba1
GM
43882009-02-04 Glenn Morris <rgm@gnu.org>
4389
4390 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4391
4cb75c4b
KH
43922009-02-04 Kenichi Handa <handa@m17n.org>
4393
4394 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4395
4396 * charset.c (Fchar_charset): New optional arg restriction.
4397
4398 * coding.h (coding_system_charset_list): Extern it.
4399
4400 * coding.c (coding_system_charset_list): New function.
4401
4402 * composite.c: Include coding.h and termhooks.h.
4403 (composition_gstring_p): Fix for the terminal case.
4404 (composition_gstring_width): Likewise.
4405 (fill_gstring_body): Likewise.
4406 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4407 the frame.
4408 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4409 is within a composition.
867d4bb3 4410 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
4411
4412 * term.c (encode_terminal_code): Fix handling of composition.
4413 (produce_composite_glyph): For static composition, get pixel_width
4414 from struct composition.
4415
826ba17e
AS
44162009-02-02 Andreas Schwab <schwab@suse.de>
4417
4418 * unexelf.c (unexec): Handle unaligned bss offset.
4419
8ad093db
AR
44202009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4421
4422 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4423 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 4424
8ad093db
AR
4425 * keyboard.c (handle_interrupt): Don't call
4426 quit_throw_to_read_char() under NS.
d0a76a6e 4427
8ad093db
AR
4428 * blockinput.h: Remove NS-specific code.
4429
4d18a7a2
DN
44302009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4431
db878925
DN
4432 * dispnew.c (window_change_signal): Don't try to get the size of a
4433 suspended tty frame.
4434 * term.c (Fresume_tty): Resize if the size has changed while the
4435 tty was suspended.
4436
4d18a7a2
DN
4437 * alloc.c (mark_stack): Properly conditionalize previous change.
4438
8984df7c
JB
44392009-01-30 Juanma Barranquero <lekktu@gmail.com>
4440
4441 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4442 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4443 Remove; this code is not used on Windows.
4444
75f4f1ac
EZ
44452009-01-30 Eli Zaretskii <eliz@gnu.org>
4446
4447 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4448 EOLs that also has stray ^M characters.
4449
07a1e794
JB
44502009-01-30 Juanma Barranquero <lekktu@gmail.com>
4451
4452 * atimer.c (run_timers, alarm_signal_handler):
4453 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4454 * w32inevt.c (w32_console_read_socket):
4455 * w32term.c (w32_read_socket):
4456 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4457
a8b11cc9
CY
44582009-01-30 Chong Yidong <cyd@stupidchicken.com>
4459
4460 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4461 Initialize it as a relative filename pattern.
4462 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4463 (Fcall_process_region): Simplify temp file creation using
4464 temporary-file-directory.
4465
c279587b
EZ
44662009-01-29 Eli Zaretskii <eliz@gnu.org>
4467
4468 * msdos.c: Rename pending_signals to msdos_pending_signals.
4469 (sig_suspender, sigprocmask): Adjust.
4470
a8fe3242
CY
44712009-01-29 Chong Yidong <cyd@stupidchicken.com>
4472
4473 * keyboard.c (pending_signals): New var.
4474 (poll_for_input, input_available_signal, init_keyboard): Set it.
4475 (process_pending_signals): New function.
4476
4477 * lisp.h (QUIT): Check pending_signals instead of
4478 interrupt_input_pending. Use process_pending_signals.
4479
51d861de 4480 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 4481
51d861de 4482 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
4483
4484 * sysdep.c (emacs_write): Use process_pending_signals.
4485
4486 * xterm.c (XTread_socket): Update pending_signals.
4487
4488 * w32term.c (w32_read_socket): Update pending_signals.
4489
4490 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4491
6570a1c4
KH
44922009-01-29 Kenichi Handa <handa@m17n.org>
4493
4494 * xftfont.c (xftfont_has_char): New function.
4495 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4496
d72a4afa
AR
44972009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4498
4499 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4500 under GNUstep.
4501 (ns_query_color): New declaration.
4502
4503 * nsterm.m (ns_confirm_quit): New variable.
4504 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4505 (EmacsApp-applicationShouldTerminate:): Use it.
4506 (EmacsPrefsController): Let user set it.
4507 (ns_query_color): New function.
4508 (ns_defined_color): Use it.
4509 (ns_initialize): Drop.
4510 (ns_term_init): Add two lines from ns_initialize(), and set
4511 input_interrupt_mode to nil.
4512
4513 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 4514 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 4515
9fe78804
KH
45162009-01-28 Kenichi Handa <handa@m17n.org>
4517
4518 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
4519 (fontset_get_font_group): Remember that no font-group is specified
4520 for C.
9fe78804 4521
fa57de36
CY
45222009-01-27 Chong Yidong <cyd@stupidchicken.com>
4523
930600e9
CY
4524 * fns.c (concat): Check for string overflow (bug#1787).
4525
fa57de36
CY
4526 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4527 Quadruple undo limits (bug#1501).
4528
7179ce7b
KH
45292009-01-27 Kenichi Handa <handa@m17n.org>
4530
4531 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4532 directly use GT_Get_Char_index.
4533
4534 * xftfont.c (struct xftfont_info): New member `index'.
4535
4536 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 4537 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 4538
5be8fcc0
CY
45392009-01-26 Kenichi Handa <handa@m17n.org>
4540
4541 * fontset.c (fontset_find_font): Fix handling of non-cons return
4542 value of fontset_get_font_group.
4543 (fontset_font): Revert last change.
4544
19ae3e61
JR
45452009-01-26 Jason Rumney <jasonr@gnu.org>
4546
4547 * w32font.c (w32font_list_internal): Return quickly if registry is
4548 unknown. Simplify final return.
4549 (add_font_entity_to_list): Break complex logic down into more
4550 manageable chunks. Move unknown registry check to
4551 w32font_list_internal.
4552
8612b71a
AR
45532009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
4554
4555 Changes to remove Feval calls from GUI under NS.
4556
d8038940
JB
4557 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
4558 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
4559 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
4560
4561 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
4562 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
4563 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
4564 instead of NON_ASCII_KEYSTROKE_EVENT.
4565 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
4566 (EmacsApp-applicationShouldTerminate:): Query user.
4567 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
4568 instead of Feval.
4569
4570 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
4571
4572 * keyboard.c (kbd_buffer_get_event): Check for it.
4573 (keys_of_keyboard): Define lispy keys for
4574 ns-put/unput-working-text.
4575
4576 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
4577 versions.
4578 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
4579
6288ae55
CY
45802009-01-25 Chong Yidong <cyd@stupidchicken.com>
4581
4582 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 4583 setting current_buffer directly. (Bug#2044)
6288ae55 4584
289e7f8f
CY
45852009-01-24 Chong Yidong <cyd@stupidchicken.com>
4586
5ce87308 4587 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 4588 any work. (Bug#1952, bug#1990).
5ce87308 4589
64cc3cf6 4590 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 4591
b3243e6f
AR
45922009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4593
4594 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
4595 (ns_no_defaults): New declaration.
4596 (main): Use it.
e0d2e69a 4597
d900b2af 4598 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 4599
d900b2af 4600 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 4601
d900b2af
AR
4602 * nsterm.m (ns_no_defaults): New variable.
4603 (ns_initialize): Don't read defaults when ns_no_defaults.
4604 (EmacsView-readSelectionFromPasteboard:)
4605 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 4606 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
4607 (ns_dumpglyphs_stretch): New function.
4608 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 4609 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 4610
e0d2e69a
AR
4611 * nsimage.m (setPixmapData:): Set to ignore image DPI.
4612
3ac71f5d
CY
46132009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
4614
4615 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
4616 call for Sparc64.
4617
3fe53a83
AR
46182009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4619
4620 * nsfns.m:
4621 * nsgui.h:
4622 * nsmenu.m:
4623 * nsselect.m:
4624 * nsterm.h:
4625 * nsterm.m: Remove '23' comments that indicated code added during
4626 update from emacs-20 -> emacs-23.
4627
10f87c6f 46282009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
4629
4630 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 4631 ns_alternate_modifier. (Bug#1217)
a3b53a85 4632
c7cef62d
AR
4633 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
4634 Display all shortcuts, including those w/o super modifier.
4635
575fb8bd
AR
4636 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
4637
918b848b
CY
46382009-01-22 Chong Yidong <cyd@stupidchicken.com>
4639
4640 * fileio.c (Vwrite_region_post_annotation_function)
4641 (Vwrite_region_annotation_buffers): New vars.
4642 (build_annotations_unwind): Just reset
4643 Vwrite_region_annotation_buffers.
4644 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
4645 Call write-region-post-annotation-function.
4646 (build_annotations): Add to Vwrite_region_annotation_buffers if
4647 buffer changes.
4648
a39e2539
AR
46492009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4650
4651 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
4652 Tiger.
51d861de
SM
4653 * nsfns.m (ns_do_applescript):
4654 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 4655
35ed44db
AR
46562009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4657
4658 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
4659
cbe0b5bf
AR
46602009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4661
4662 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 4663
6049d3a0
AR
4664 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
4665
4666 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
4667 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
4668 handle Ctrl-tab. (Bug#1841)
4669 (ns_get_color): Use unsigned long long for scanned hex string value.
4670 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 4671 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 4672 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 4673 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 4674 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 4675 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 4676 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 4677
d3810c21 4678 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 4679 DPI. (Bug#1316)
d3810c21
AR
4680 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
4681 values in onTiger section.
4c7077c3 4682
e301e634
CY
46832009-01-19 Chong Yidong <cyd@stupidchicken.com>
4684
7f82490b
CY
4685 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
4686 Check return value of font_spec_from_name.
64cc3cf6 4687 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
4688
4689 * font.c (font_spec_from_name): Return Qnil if font name could not
4690 be parsed.
4691 (font_parse_name): Treat a `?' character as part of an XLFD.
4692
e301e634
CY
4693 * fns.c (Fsubstring): Doc fix.
4694
1c0db158
KH
46952009-01-19 Kenichi Handa <handa@m17n.org>
4696
51d861de 4697 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
4698 (ftfont_list): Likewise.
4699
acf20901
JB
47002009-01-18 Juanma Barranquero <lekktu@gmail.com>
4701
fff4e459
JB
4702 * dbusbind.c (Fdbus_register_signal):
4703 * process.c (conv_sockaddr_to_lisp):
4704 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
4705
acf20901
JB
4706 * callproc.c (Fgetenv_internal): Doc fix.
4707
e7abcdfb
CY
47082009-01-16 Chong Yidong <cyd@stupidchicken.com>
4709
4710 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
4711 it is not even used.
4712
b60861e6
GM
47132009-01-16 Glenn Morris <rgm@gnu.org>
4714
4715 * font.c (Ffont_variation_glyphs): Silence compiler.
4716
8db52afe
JB
47172009-01-15 Juanma Barranquero <lekktu@gmail.com>
4718
4719 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
4720 Reported by David Robinow <drobinow@gmail.com>.
4721
4cddb209
KH
47222009-01-15 Kenichi Handa <handa@m17n.org>
4723
51d861de 4724 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 4725
f247f67b
JR
47262009-01-14 Jason Rumney <jasonr@gnu.org>
4727
4728 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 4729 never a fontset. (Bug#1562)
f247f67b 4730
f56a4450
KH
47312009-01-14 Kenichi Handa <handa@m17n.org>
4732
4733 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 4734 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 4735
4e99855e
CY
47362009-01-13 Chong Yidong <cyd@stupidchicken.com>
4737
4738 * font.c (font_clear_prop): If clearing the family, clear the font
4739 width index too.
4740
fff4e459 4741 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 4742
24f01470
JB
47432009-01-12 Juanma Barranquero <lekktu@gmail.com>
4744
4745 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
4746 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
4747 functions, use sizeof.
4748
a41240a3
MR
47492009-01-12 Martin Rudalics <rudalics@gmx.at>
4750
4751 * keyboard.c (read_char): Fix case where last_nonmenu_event
4752 returned a bad value with submenus. (Bug#447)
4753
944636b8
CY
47542009-01-12 Chong Yidong <cyd@stupidchicken.com>
4755
4756 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
4757 family, clear the font width index too.
4758
0dad7c6f
JR
47592009-01-11 Jason Rumney <jasonr@gnu.org>
4760
4761 * keyboard.c (cmd_error_internal): Exit when errors occur before
4762 frame creation and not in daemon mode. (Bug#1836)
4763
7c2363af
CY
47642009-01-10 Chong Yidong <cyd@stupidchicken.com>
4765
4766 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
4767 of a display vector, backtrack.
4768 (try_window_reusing_current_matrix): Check glyph type before
4769 referencing charpos member.
4770
97b1b294
EZ
47712009-01-10 Eli Zaretskii <eliz@gnu.org>
4772
4773 Fix Bug #876:
4774
4775 * coding.c (inhibit_null_byte_detection): New variable.
4776 (detect_coding, detect_coding_system): Don't pay attention to null
4777 bytes if inhibit_null_byte_detection is non-zero.
51d861de 4778 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
4779 <inhibit-iso-escape-detection>: Doc fix.
4780
4624b6e3
JR
47812009-01-09 Jason Rumney <jasonr@gnu.org>
4782
4783 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 4784 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
4785 Only report Unicode Plane 2 fonts as unicode-sip.
4786
323b840c
CY
47872009-01-09 Chong Yidong <cyd@stupidchicken.com>
4788
51d861de
SM
4789 * xfaces.c (Fx_font_family_list): Delete function.
4790 Move compatibility version to faces.el.
323b840c 4791
51d861de 4792 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 4793
eba7400d
MR
47942009-01-09 Martin Rudalics <rudalics@gmx.at>
4795
4796 * frame.c (x_set_frame_parameters): Remember requested value for
4797 fullscreen before it's reset by the parameter handler.
4798
4b09796d
GM
47992009-01-09 Glenn Morris <rgm@gnu.org>
4800
4801 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 4802 (last_command_event): ... and update all users.
4b09796d
GM
4803 (last_input_char): For clarity, rename to...
4804 (last_input_event): ... and update all users.
4805 (last-command-char, last-input-char): Move to subr.el as aliases.
4806 * cmds.c, commands.h: Update for last_command_char rename.
4807
14ccea62
CY
48082009-01-08 Chong Yidong <cyd@stupidchicken.com>
4809
51d861de 4810 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 4811
5f004711
JR
48122009-01-08 Jason Rumney <jasonr@gnu.org>
4813
4814 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
4815 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
4816 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
4817 Don't declare.
fff4e459 4818 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
4819 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
4820
b71f6f73
KH
48212009-01-07 Kenichi Handa <handa@m17n.org>
4822
50b06221 4823 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 4824 remember the coding system used for decoding in
50b06221
KH
4825 coding_system (Bug#1039).
4826
b71f6f73 4827 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 4828 breaking the loop. (Bug#870)
b71f6f73
KH
4829 (decode_coding_utf_16, decode_coding_emacs_mule)
4830 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4831 (decode_coding_charset): Likewise.
4832
56f668f7
MR
48332009-01-05 Martin Rudalics <rudalics@gmx.at>
4834
4835 * frame.c (x_set_frame_parameters): Make sure height (width) get
4836 applied when fullwidth (fullheight) is set. (Bug#1522)
4837
5da9424d
JB
48382009-01-04 Juanma Barranquero <lekktu@gmail.com>
4839
4840 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
4841 (utc_base): Declare as ULONGLONG, not long double.
4842 (convert_time_raw): Delete.
4843 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
4844 (initialize_utc_base): New function.
4845 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
4846 (convert_from_time_t): Use initialize_utc_base; compute result with
4847 64-bit arithmetic.
4848 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
4849
c4605e09
EZ
48502009-01-03 Eli Zaretskii <eliz@gnu.org>
4851
9acef61c 4852 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
4853 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
4854 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
4855 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
4856 [!subprocesses]: Define.
4857 (syms_of_process) [!subprocesses]: Intern and staticpro them.
4858 (Flist_system_processes, Fsystem_process_attributes)
4859 [!subprocesses]: Call list_system_processes and
4860 system_process_attributes instead of returning Qnil.
4861
9acef61c
JB
4862 * dosfns.c (system_process_attributes, list_system_processes):
4863 New functions.
c4605e09
EZ
4864
4865 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4866
4867 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4868 Don't use the default (no-op) implementation.
4869
8b7d0a16
JR
48702009-01-03 Jason Rumney <jasonr@gnu.org>
4871
a6d46bc1
JR
4872 * keyboard.c (parse_modifiers_uncached): Wheel events are
4873 clicks (bug#687).
4874
8b7d0a16
JR
4875 * w32term.c (x_query_colors, x_query_color): New functions.
4876
4877 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4878 (svg_load_image): Cast returned pointers from dynamically loaded
4879 functions. Eliminate W32 specific code.
4880
bfe11752
DN
48812009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4882
89e2438a
DN
4883 * nsfns.m (x_set_foreground_color, x_set_background_color)
4884 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4885 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4886 x_ prefix instead of ns_. Update references.
4887 (syms_of_nsfns): Add a FIXME comment.
4888
4889 * nsterm.m (x_set_cursor_type): New prototype.
4890 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4891
bfe11752
DN
4892 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4893 for Solaris instead of incorrectly providing Qutime and Qcutime.
4894
031da700
EZ
48952009-01-02 Eli Zaretskii <eliz@gnu.org>
4896
4897 * w32.c (process_times): Compute sum of utime and stime.
4898 (system_process_attributes): Add Qtime to the alist.
4899
4900 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
4901 and add them to the alist.
4902
4903 * process.c (top level) <Qtime, Qctime>: New variables.
4904 (syms_of_process): staticpro them.
4905 (Fsystem_process_attributes): Add their documentation to the doc
4906 string.
4907
4908 * process.h: Declare Qtime and Qctime.
4909
df23bf08
JR
49102009-01-02 Jason Rumney <jasonr@gnu.org>
4911
9acef61c 4912 * image.c (Qgobject): New symbol.
df23bf08
JR
4913 (syms_of_image): Initialize it.
4914 (init_svg_functions): Load some functions from gobject library.
4915
5bbdf7aa
DN
49162009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
4917
4918 * frame.c (make_terminal_frame): Remove redundant code and useless
4919 block.
4920
63136da6
AS
49212009-01-01 Andreas Schwab <schwab@suse.de>
4922
4923 * process.c (conv_sockaddr_to_lisp): Add workaround for
4924 getsockname bug on BSD.
4925
9ef69046
CY
49262009-01-01 Chong Yidong <cyd@stupidchicken.com>
4927
d6fafbe0
CY
4928 * xfns.c (x_create_tip_frame): Set border width of the X window.
4929
51d861de 4930 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 4931
f9c34147
JR
49322009-01-01 Jason Rumney <jasonr@gnu.org>
4933
9acef61c 4934 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
4935 Don't block input, as per earlier xterm.c changes.
4936
f5497e45
AR
49372008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
4938
4939 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
4940 (ns_appkit_version_int): New function.
4941 (x-server-version): Use ns_appkit_version_int and follow 21+
4942 convention of returning 3 integers.
4943
c19cab20
KH
49442008-12-30 Kenichi Handa <handa@m17n.org>
4945
4946 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
4947 (CHAR_SURROGATE_PAIR_P): New macro.
4948
4949 * font.h (struct font_driver): New member get_variation_glyphs.
4950
9acef61c 4951 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
4952 (Ffont_variation_glyphs): New function.
4953 (syms_of_font): Defsubr it.
4954
4955 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4956 ftfont_variation_glyphs.
4957 (setup_otf_gstring): New function.
4958 (ftfont_drive_otf): Use it.
4959 (ftfont_shape_by_flt): Handle variation selector.
4960 (ftfont_variation_glyphs): New function.
4961
28cd591f
MR
49622008-12-30 Martin Rudalics <rudalics@gmx.at>
4963
4964 * frame.c (Vemacs_iconified): Remove.
4965
7f714baf
JR
49662008-12-30 Jason Rumney <jasonr@gnu.org>
4967
4968 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 4969 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 4970
9d2d22ab
CY
49712008-12-30 Chong Yidong <cyd@stupidchicken.com>
4972
4973 * indent.c (Fvertical_motion): Don't advance iterator if we have
4974 reseated to the desired position.
4975
4976 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4977 checking for pos match.
4978
545312c2
KH
49792008-12-30 Kenichi Handa <handa@m17n.org>
4980
1ede3eb6
KH
4981 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4982 just get the low 8-bit of the code.
4983
545312c2
KH
4984 * font.c (font_intern_prop): Validate str as multibyte.
4985
bd7bbf29
DN
49862008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4987
31e0750e
DN
4988 * dispextern.h (struct face): Move lface and hash from the middle
4989 of bitfields.
4990
bd7bbf29
DN
4991 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4992
b5672e7c
DN
49932008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4994
4995 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4996 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4997 instead of intervals.h.
4998
d704470f
AS
49992008-12-26 Andreas Schwab <schwab@suse.de>
5000
5001 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5002 cons.
5003
54b33868
MR
50042008-12-26 Martin Rudalics <rudalics@gmx.at>
5005
5006 * textprop.c (Qminibuffer_prompt): New variable.
5007 (syms_of_textprop): Initialize it.
5008 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5009 in minibuffer-prompt face. (Bug#1662)
5010
40b615d6
JR
50112008-12-25 Jason Rumney <jasonr@gnu.org>
5012
5013 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5014
baae5c2d
JR
50152008-12-24 Jason Rumney <jasonr@gnu.org>
5016
5017 * ralloc.c (r_alloc_reset_variable): New function.
5018
5019 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 5020 record of what points where. (Bug#716)
baae5c2d 5021
a9051c88
DN
50222008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5023
5024 * minibuf.c (read_minibuf): Follow the non-interactive case when
5025 running as a daemon, before detaching.
5026
8b146312
AS
50272008-12-22 Andreas Schwab <schwab@suse.de>
5028
5029 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5030 * gtkutil.c (free_widget_value): Use xfree instead of free.
5031
56f2de10
MR
50322008-12-22 Martin Rudalics <rudalics@gmx.at>
5033
5034 * frame.c (delete_frame): New function derived from
5035 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5036 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5037 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5038 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5039 * frame.h: Extern delete_frame.
5040 * window.c (window_loop):
5041 * terminal.c (delete_terminal):
5042 * xterm.c (x_connection_closed):
5043 * xfns.c (Fx_hide_tip):
9acef61c 5044 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 5045
1fc200d6
JR
50462008-12-21 Jason Rumney <jasonr@gnu.org>
5047
5048 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5049 when character maps to .notdef character.
5050
5e252df2
SM
50512008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5052
5053 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5054
99b72cc4
JR
50552008-12-20 Jason Rumney <jasonr@gnu.org>
5056
5057 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 5058 a graphical frame on Windows. (Bug#1325)
99b72cc4 5059
acc49a52
JD
50602008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5061
5062 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5063
6ea15123
CY
50642008-12-20 Chong Yidong <cyd@stupidchicken.com>
5065
5066 * minibuf.c (Fread_buffer): Doc fix.
5067
b2dab6c8
JR
50682008-12-20 Jason Rumney <jasonr@gnu.org>
5069
54ea0c87 5070 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 5071 server name in UNC paths. (Bug#719)
54ea0c87 5072
b2dab6c8 5073 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 5074 charbuf. (Bug#1035)
b2dab6c8 5075
6d1921be
DN
50762008-12-19 Daniel Engeler <engeler@gmail.com>
5077
5078 * sysdep.c (serial_configure): Fix typo.
5079
53934c98
DN
50802008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5081
5082 * sysdep.c: Include alloca.h.
f4f634e8
DN
5083 (system_process_attributes): Add implementation for Solaris.
5084
5085 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 5086
06e111a6
DN
50872008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5088
5089 Reorganize implementation of Flist_system_processes and
5090 Fsystem_process_attributes. No functional changes.
5091 * process.c: Don't #include pwd.h, grp.h and limits.h.
5092 (Flist_system_processes): Just call list_system_processes.
5093 (Fsystem_process_attributes): Just call system_process_attributes.
5094 (procfs_list_system_processes, time_from_jiffies)
5095 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5096 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5097
5098 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5099 (list_system_processes): Rename from
5100 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5101 Provide a do nothing implementation.
5102 (system_process_attributes): Rename from
5103 procfs_list_system_processes.
5104 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 5105 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
5106
5107 * w32.c (list_system_processes): Rename from
5108 w32_list_system_processes.
5109 (system_process_attributes): Rename from
5110 w32_system_process_attributes.
5111
5112 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5113
5114 * process.h (w32_list_system_processes)
5115 (w32_system_process_attributes): Remove.
362654a6
JB
5116 (list_system_processes, system_process_attributes):
5117 New prototypes.
06e111a6 5118
6a705b23
KH
51192008-12-19 Kenichi Handa <handa@m17n.org>
5120
5121 * xfont.c (xfont_decode_coding_xlfd): New function.
5122 (xfont_encode_coding_xlfd): New function.
5123 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5124 (xfont_list): Decode and encode XLFD by iso-8859-1.
5125 (xfont_match): Likewise.
5126 (xfont_list_family): Likewise.
5127 (xfont_open): Likewise.
5128
d66c0241 5129 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
5130 names are utf-8.
5131
d66c0241 5132 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
5133 names are utf-8.
5134
5a130941
JD
51352008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5136
5137 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5138 changed.
bfd20325
JD
5139 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5140 clicked on a detached tool bar button.
5a130941 5141
fd95644b
DN
51422008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5143
5144 * emacs.c (main): Print and error and exit when no data is read
5145 from the pipe.
5146
e6eee6ae
JR
51472008-12-17 Jason Rumney <jasonr@gnu.org>
5148
5149 * w32font.c (w32font_has_char): Always return -1.
5150
a35dd56b
KH
51512008-12-16 Kenichi Handa <handa@m17n.org>
5152
5153 * font.c (font_open_entity): Fix previous change.
5154
0e3635c2
DN
51552008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5156
5157 * process.c: Include <limits.h>.
5158
d4835507 51592008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
5160
5161 * font.c (font_update_drivers): Fix mistake in reconstructing the
5162 driver list.
5163
51642008-12-16 Chong Yidong <cyd@stupidchicken.com>
5165
5166 * font.c (font_clear_cache): Fix format of font cache data.
5167
e2cbc401
CY
51682008-12-15 Chong Yidong <cyd@stupidchicken.com>
5169
5170 * xftfont.c (xftfont_open): Free Xft font pattern if
5171 XftFontOpenPattern fails.
5172
5173 * xterm.c (x_free_frame_resources): Remove extraneous call to
5174 free_frame_faces.
5175
b131d535
CY
51762008-12-13 Chong Yidong <cyd@stupidchicken.com>
5177
5178 * xterm.c (x_delete_display): Move xim_close_dpy call to
5179 x_delete_terminal.
5180 (x_delete_terminal): Call xim_close_dpy.
5181
e6df5336
JR
51822008-12-13 Jason Rumney <jasonr@gnu.org>
5183
5184 * w32font.c (intern_font_name): New function.
5185 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5186 (w32font_open_internal, Fx_select_font): Decode font name.
5187 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5188
5189 * w32font.h (intern_font_name): Declare new function.
5190
5191 * w32uniscribe.c (add_opentype_font_name_to_list):
5192 Use intern_font_name.
5193
20d68145
CY
51942008-12-13 Chong Yidong <cyd@stupidchicken.com>
5195
9f2554de
CY
5196 * frame.c (Fdelete_frame): Call free_font_driver_list.
5197
3d9bec9a
CY
5198 * font.c (free_font_driver_list): Implement missing function.
5199
20d68145
CY
5200 * w32term.c (w32_term_init): Don't initialize the image cache
5201 here; it will be done in init_frame_faces.
5202
5203 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5204 (struct x_display_info): Remove unused member null_pixel. New
5205 member xim_callback_data.
5206
5207 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5208 (xim_initialize): Save pointer to callback function data.
5209 (xim_close_dpy): Free callback function data. Call XCloseIM,
5210 reverting 2008-11-04 change by David Smith.
5211 (x_term_init): Don't initialize the image cache here; it will be
5212 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5213 (x_delete_display): Free x_dnd_atoms member.
5214
96f9306b
KH
52152008-12-13 Kenichi Handa <handa@m17n.org>
5216
6dec9044
JB
5217 * font.c (font_rescale_ratio): Moved from xfaces.c.
5218 Argument type changed. Handle a font-spec too.
96f9306b 5219 (font_score): Check Vface_font_rescale_alist.
6dec9044 5220 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
5221
5222 * xfaces.c (font_rescale_ratio): Moved to font.c.
5223
8d5b4964
CY
52242008-12-13 Chong Yidong <cyd@stupidchicken.com>
5225
5226 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5227
e6df5336
JR
52282008-12-12 Jason Rumney <jasonr@gnu.org>
5229
5230 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5231 Vwindow_system_version to the real w32 major version.
5232
97c6058a
DN
52332008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5234
5235 * term.c (init_tty): Move setting the terminal name before the
5236 potential user: maybe_fatal.
5237
ec4e88d7
CY
52382008-12-11 Chong Yidong <cyd@stupidchicken.com>
5239
d4835507
JB
5240 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5241 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 5242
b4233ec9
JR
52432008-12-11 Jason Rumney <jasonr@gnu.org>
5244
8ec71e23 5245 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 5246 SYMBOL_CHARSET. (Bug#547)
8ec71e23 5247
b4233ec9 5248 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 5249 size for surrogates. (Bug#1096, bug#872)
b4233ec9 5250
011a0143
JB
52512008-12-11 Juanma Barranquero <lekktu@gmail.com>
5252
5253 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5254
3c309f34
JB
52552008-12-11 Juanma Barranquero <lekktu@gmail.com>
5256
5257 * process.c (Fsystem_process_attributes, syms_of_process):
5258 Fix typo in name of Ssystem_process_attributes.
5259 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5260
fedc6ab5
JB
52612008-12-11 Juanma Barranquero <lekktu@gmail.com>
5262
5263 * syntax.c (Fmodify_syntax_entry): Doc fix.
5264
ba3de0e8
JB
52652008-12-10 Juanma Barranquero <lekktu@gmail.com>
5266
5267 * font.c (Ffont_spec): Move usage to end of docstring.
5268
174f1c74
JR
52692008-12-10 Jason Rumney <jasonr@gnu.org>
5270
5271 * w32font.c (Qcham): New symbol.
5272 (font_supported_scripts): Add cham, and comments for other new
5273 scripts in bitfield from OpenType spec.
9d32f818
JR
5274 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5275 contain characters beyond the bmp.
174f1c74 5276
7b649478
KH
52772008-12-10 Kenichi Handa <handa@m17n.org>
5278
5279 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 5280 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
5281 Qunicode_sip.
5282
2133e2d1
JB
52832008-12-10 Juanma Barranquero <lekktu@gmail.com>
5284
5285 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5286 (Fcoding_system_put): Use QCdefault_char.
5287 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5288
9af886ee
CY
52892008-12-09 Chong Yidong <cyd@stupidchicken.com>
5290
74d819eb
CY
5291 * xftfont.c (syms_of_xftfont): Fix typo.
5292
4ccfa1c0 5293 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 5294
7c19d3ae
DN
52952008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5296
5297 * emacs.c (main): Close daemon_pipe on exec.
5298
567826bb
CY
52992008-12-08 Chong Yidong <cyd@stupidchicken.com>
5300
5301 * termchar.h (struct tty): New members termcap_term_buffer and
5302 termcap_strings_buffer.
5303
5304 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 5305 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
5306 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5307 All callers changed.
5308 (init_tty): Store termcap data and string buffers in new struct
5309 tty members termcap_term_buffer and termcap_strings_buffer.
5310 (delete_tty): Free them.
4ccfa1c0 5311 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 5312
aa96c42b
SZ
53132008-12-07 Seiji Zenitani <zenitani@mac.com>
5314
5315 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 5316 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 5317
b7e1d896
CY
53182008-12-06 Chong Yidong <cyd@stupidchicken.com>
5319
5320 * coding.c (make_conversion_work_buffer): Disable buffer
5321 modification hooks in the work buffer.
5322
b5ec91a5
EZ
53232008-12-05 Eli Zaretskii <eliz@gnu.org>
5324
5325 * process.c (procfs_system_process_attributes): If `nread' has a
5326 negative value, assign zero to it.
5327
a5d2a52b
CY
53282008-12-05 Chong Yidong <cyd@stupidchicken.com>
5329
68c5540b 5330 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 5331
7bf1bb21
KH
53322008-12-05 Kenichi Handa <handa@m17n.org>
5333
5334 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5335 second character is a combining character.
5336
2fdc7d00
EZ
53372008-12-05 Eli Zaretskii <eliz@gnu.org>
5338
5339 * process.c (procfs_system_process_attributes): Don't use cmd,
5340 cmdsize, and q without initializing them first.
5341
bf6bfba8
JR
53422008-12-04 Jason Rumney <jasonr@gnu.org>
5343
5344 * w32font.c (w32font_draw): Initialize orig_clip before getting
5345 it, and delete it when finished.
5346
a3b1a468
DN
53472008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5348
5349 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5350 case when running as a daemon before detaching.
5351
8b8be8eb
JB
53522008-12-03 Juanma Barranquero <lekktu@gmail.com>
5353
805f2638 5354 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 5355
b1bde622
KH
53562008-12-03 Kenichi Handa <handa@m17n.org>
5357
e500c47d
KH
5358 * font.c (font_at): Set `multibyte' at first.
5359
ca516334
KH
5360 * coding.c (decode_coding_charset): Check type of an element of
5361 vector VALIDS.
7bf1bb21 5362 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 5363
4ccfa1c0 5364 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
5365 (font_for_char): Likewise.
5366
1e5ecd37
CY
53672008-12-03 Chong Yidong <cyd@stupidchicken.com>
5368
d5b01609 5369 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
5370 (font_update_lface): Handle fonts with corrupted size specs,
5371 i.e. non-int and non-float.
d5b01609 5372
11e3a6e4 5373 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 5374 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 5375 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 5376
ab06788b
CY
5377 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5378
1e5ecd37 5379 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 5380 underline_minimum_offset for underline position.
1e5ecd37 5381
63c125ab
DN
53822008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5383
5384 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5385
5386 * character.c (c_string_width): Specify the type for LEN.
5387
3a8406e1
KH
53882008-12-03 Kenichi Handa <handa@m17n.org>
5389
4ccfa1c0 5390 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 5391 (decode_coding_utf_8): Likewise.
4ccfa1c0 5392 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 5393 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 5394
651df7d9
CY
53952008-12-02 Chong Yidong <cyd@stupidchicken.com>
5396
5397 * keyboard.c (make_lispy_position): Only use PT if the selected
5398 window is current.
5399
1f625c6c
AS
54002008-12-02 Andreas Schwab <schwab@suse.de>
5401
f7741ce9
AS
5402 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5403
1f625c6c
AS
5404 * doprnt.c (doprnt1): Fix size of charbuf.
5405
92bc2678
CY
54062008-12-02 Chong Yidong <cyd@stupidchicken.com>
5407
5408 * keyboard.c (timer_check): Revert last change.
5409
93b9e8cc
JB
54102008-12-02 Juanma Barranquero <lekktu@gmail.com>
5411
5412 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5413
fd7a37d5
JB
54142008-12-01 Juanma Barranquero <lekktu@gmail.com>
5415
5416 * makefile.w32-in: Update dependencies.
5417 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5418
c115043b
AS
54192008-12-01 Andreas Schwab <schwab@suse.de>
5420
5421 * font.c (register_font_driver): Use xmalloc.
5422 (font_put_frame_data): Likewise.
5423
f5668d2a
CY
54242008-12-01 Chong Yidong <cyd@stupidchicken.com>
5425
860d96be
CY
5426 * xfaces.c (realize_x_face): Make abort condition clearer.
5427
f5668d2a
CY
5428 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5429
379c17e7
CY
54302008-11-30 Chong Yidong <cyd@stupidchicken.com>
5431
5432 * keyboard.c (timer_check): After a timer runs, ensure that the
5433 selected window's buffer is current.
5434
35f36d65
JB
54352008-11-30 Juanma Barranquero <lekktu@gmail.com>
5436
f952c61c
JB
5437 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5438 It was accidentally restored by the Unicode merge.
5439
35f36d65
JB
5440 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5441
b23077df
JB
54422008-11-29 Juanma Barranquero <lekktu@gmail.com>
5443
5444 * w32proc.c: Include "coding.h".
5445 (Fw32_short_file_name): Encode filename passed to Windows API.
5446 (Fw32_long_file_name): Encode filename passed to Windows API and
5447 decode back the result. (Bug#1433)
5448
b8ebe9dd
KH
54492008-11-29 Kenichi Handa <handa@m17n.org>
5450
8cc53f96
KH
5451 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5452 not before accessing it.
5453
b8ebe9dd
KH
5454 * charset.c (Fdefine_charset_internal): After calculating
5455 min_char, max_char, and fastmap, copy the charset structure again.
5456 (encode_char): Fix the previous change.
5457
59bc82c0
SZ
54582008-11-28 Seiji Zenitani <zenitani@mac.com>
5459
5460 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5461
5462 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5463
5464 * nsterm.m (x_set_frame_alpha): New function.
5465
32247e3d
EZ
54662008-11-27 Eli Zaretskii <eliz@gnu.org>
5467
5468 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5469
b003e5ff
JB
54702008-11-27 Juanma Barranquero <lekktu@gmail.com>
5471
5472 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5473 pointer to check_face_name.
5474
708550f5
KH
54752008-11-27 Kenichi Handa <handa@m17n.org>
5476
5477 * category.h (SET_CATEGORY_SET): Call set_category_set.
5478 (set_category_set): Extern it.
5479
5480 * category.c (hash_get_category_set): New function.
5481 (Fmodify_category_entry): Adjusted for the change of
5482 char_table_ref_and_range. Call hash_get_category_set to get a
5483 category set to store in the table.
5484
5485 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5486 Funify_charset.
5487
2ae37cf0 5488 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
5489 (DECODE_CHAR): Check if the decoder vector is ready.
5490 (ENCODE_CHAR): Check if the encoder char-table is ready.
5491 (maybe_unify_char): Extern it.
5492
5493 * charset.c (Vchar_unified_charset_table): Delete it.
5494 (inhibit_load_charset_map): New variable.
5495 (temp_charset_work): New variable.
5496 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5497 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5498 New macros.
5499 (load_charset_map): Meaning of control_flag changed. If
5500 inhibit_load_charset_map is nonzero, setup a table in
5501 temp_charset_work.
5502 (load_charset): New argument control_flag.
5503 (map_charset_for_dump): New function.
5504 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5505 map_charset_for_dump.
5506 (Fdefine_charset_internal): If the charset method is MAP, load
5507 mapping tables by calling load_charset.
5508 (Funify_charset): Don't load a mapping table but directly set
5509 Vchar_unify_table.
5510 (maybe_unify_char): New function.
5511 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5512 Handle the case of inhibit_load_charset_map being nonzero.
5513 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5514 Handle the case of inhibit_load_charset_map being nonzero.
5515 (Fclear_charset_maps): Just free temp_charset_work.
5516 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5517 variable.
5518
5519 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5520 change of char_table_ref_and_range.
5521 (char_table_ref_and_range): Change the meaning of argument FROM
5522 and TO. Now the caller must provide initial values for *FROM
5523 and *TO.
5524
5525 * fontset.c (fontset_add): Adjusted for the change of
5526 char_table_ref_and_range.
5527 (fontset_get_font_group): Likewise.
5528 (Ffontset_info): Likewise.
5529
5530 * keymap.c (describe_vector): Adjusted for the change of
5531 char_table_ref_and_range. For char-table, put boundary between
5532 non-ASCII and 8-bit characters.
5533
5534 * print.c (print_object): For bool-vector, delete unnecessary
5535 check of ASCII_BYTE_P.
5536
9196133b
JR
55372008-11-26 Jason Rumney <jasonr@gnu.org>
5538
5539 * w32font.c (w32font_open_internal): Don't include external
9acef61c 5540 leading in font height. (Bug#879)
9196133b 5541
9f688acf
GM
55422008-11-26 Glenn Morris <rgm@gnu.org>
5543
5544 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5545 redefinition with ifdef. (Bug#1383)
5546
90d19aff
AR
55472008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5548
5549 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
5550
4ccfa1c0 55512008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
5552
5553 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
5554 New EmacsView methods.
5555 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
5556 Fixes bug #1048,1357,1414.
5557
55582008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5559
5560 Fix bug #1362.
5561 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
5562 is not an indexed color.
5563 * nsterm.m (free_indexed_color): Add argument checking.
5564 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
5565
e7d5ecb3
CY
55662008-11-24 Chong Yidong <cyd@stupidchicken.com>
5567
5568 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
5569 Document confirm-after-completion value for
5570 minibuffer-completion-confirm.
5571
c285743c
JR
55722008-11-24 Jason Rumney <jasonr@gnu.org>
5573
5574 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
5575 warning.
5576
b0857706
JR
55772008-11-23 Jason Rumney <jasonr@gnu.org>
5578
5579 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
5580 restored before returning.
5581
5582 * w32font.c (check_face_name): New function.
5583 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 5584 fonts. (Bug#642)
b0857706 5585
ee50ff07
MR
55862008-11-22 Martin Rudalics <rudalics@gmx.at>
5587
5588 * buffer.c (Fswitch_to_buffer): Reword and mention new option
5589 confirm-nonexistent-file-or-buffer in doc-string.
5590
b8ff72fa
SM
55912008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
5592
5593 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
5594 Fix copy/paste typo. Add checks.
5595
cee53ed4
KH
55962008-11-21 Kenichi Handa <handa@m17n.org>
5597
5598 * coding.c (detect_coding_iso_2022): Reject invalid composition
5599 sequence.
5600 (DECODE_COMPOSITION_START): If the current source is the last
5601 block, and the current composition doesn't end, regard this
5602 sequence as invalid.
5603 (decode_coding_iso_2022): Handle invalid composition sequence.
5604
f6ef1e65
MR
56052008-11-20 Martin Rudalics <rudalics@gmx.at>
5606
5607 * window.c (coordinates_in_window): Don't return
5608 ON_VERTICAL_BORDER for the rightmost position of a mode/header
5609 line when the window is not the rightmost one. (Bug#1372)
5610
e08b1705
MR
56112008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
5612
5613 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
5614
ad98e89f
EZ
56152008-11-15 Eli Zaretskii <eliz@gnu.org>
5616
5617 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
5618 and bright_bg if noninteractive is non-zero.
5619
fb098a4b
CY
56202008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5621
5622 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
5623 x_draw_glyph_string_background.
5624
5625 * w32term.c (x_draw_glyph_string): Likewise.
5626
ce952b6e
CY
56272008-11-15 Chong Yidong <cyd@stupidchicken.com>
5628
5629 * xterm.c (x_draw_glyph_string): Stop drawing the background of
5630 the next glyph string once past the overhang width.
5631
5632 * nsterm.m (ns_draw_glyph_string): Likewise.
5633
5634 * w32term.c (x_draw_glyph_string): Likewise.
5635
26ea7079
CY
56362008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
5637
5638 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
5639 double file close.
5640
1c33c906
MR
56412008-11-14 Martin Rudalics <rudalics@gmx.at>
5642
5643 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
5644 dedicated status of window before attempting to display another
5645 buffer in it.
5646
8fc29035
JB
56472008-11-14 Juanma Barranquero <lekktu@gmail.com>
5648
5649 * msdos.c (Fmsdos_long_file_names):
5650 (syms_of_msdos) <dos-unsupported-char-glyph>:
5651 * dosfns.c (Fint86): Fix typos in docstrings.
5652
55fb4286
EZ
56532008-11-14 Eli Zaretskii <eliz@gnu.org>
5654
5655 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
5656
3fda0315
KY
56572008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
5658
5659 * puresize.h (BASE_PURESIZE): Increase to 1260000.
5660
7e849c17
CY
56612008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
5662
5663 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
5664
5665 * frame.h: Negative alpha means "don't touch".
5666
5667 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
5668
5669 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
5670
b9fd67bd
DN
56712008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
5672
5673 * hftctl.c:
5674 * chpdef.h:
5675 * acldef.h: Remove files used only for systems no longer supported.
5676
5677 * Makefile.in: Fix .o alphabetical ordering.
5678 (hftctl.o): Remove dependency, file removed.
5679 (keymap.o, print.o): Depend on charset.h.
5680
d5998e03
KH
56812008-11-10 Kenichi Handa <handa@m17n.org>
5682
2ae37cf0 5683 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 5684
be70e183
CY
56852008-11-08 Chong Yidong <cyd@stupidchicken.com>
5686
5687 * dired.c (file_name_completion): If completion_ignore_case is
5688 enabled, ignore case when checking completion-regexp-list.
5689
7cf94eac
EZ
56902008-11-08 Eli Zaretskii <eliz@gnu.org>
5691
5692 * vm-limit.c (get_lim_data): Fix last change.
5693
ee107a89
KH
56942008-11-08 Kenichi Handa <handa@m17n.org>
5695
5696 * character.c (Fget_byte): New function.
5697 (syms_of_character): Defsubr Fget_byte.
5698
5fd15622
CY
56992008-11-07 Chong Yidong <cyd@stupidchicken.com>
5700
5701 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
5702 cursor position is valid after scrolling.
5703
13d62fad
JB
57042008-11-06 Juanma Barranquero <lekktu@gmail.com>
5705
5706 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
5707
a1dd2936
GM
57082008-11-06 Glenn Morris <rgm@gnu.org>
5709
5710 * xterm.c (handle_one_xevent): Don't let popup menus cause
5711 mouse-autoselect-window related window switching. (Bug#1261)
5712
860cd236
CY
57132008-11-04 David Smith <davidsmith@acm.org> (tiny change)
5714
5715 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
5716
653a3150
AS
57172008-11-04 Andreas Schwab <schwab@suse.de>
5718
5719 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
5720
870f5cac
CY
57212008-11-03 Chong Yidong <cyd@stupidchicken.com>
5722
5723 * xfns.c (Fx_wm_set_size_hint): New function.
5724
1e02f3cb
MR
57252008-11-03 Martin Rudalics <rudalics@gmx.at>
5726
5727 * textprop.c (Fprevious_single_char_property_change): Return 0
5728 when there's no change in a string. (Bug#1301)
5729
e630dfc6
MR
57302008-11-02 Martin Rudalics <rudalics@gmx.at>
5731
5732 * frame.c (do_switch_frame): New argument NORECORD passed to
5733 Fselect_window.
5734 (Fselect_frame): New argument NORECORD passed to
5735 do_switch_frame.
5736 (Fset_frame_selected_window): New argument NORECORD passed to
5737 Fselect_frame.
5738 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
5739 in call of do_switch_frame.
5740 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
5741 Handle NORECORD argument in call of Fselect_frame.
5742 * lisp.h (do_switch_frame, Fselect_frame)
5743 (Fset_frame_selected_window): Adjust declarations.
5744 * window.c (select_frame_norecord): New function.
5745 (run_window_configuration_change_hook): Use it and call
5746 Fselect_frame with NORECORD set.
5747 (Fselect_window): Pass NORECORD to Fselect_frame.
5748 (Fset_window_configuration): Handle NORECORD argument in call of
5749 do_switch_frame.
5750 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
5751 Fset_frame_selected_window.
5752 * keyboard.c (command_loop_1): Handle NORECORD in call of
5753 Fselect_frame (currently ifdefd).
5754
9020b223
GM
57552008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
5756
5757 * emacs.c (USAGE2): Untabify.
5758
793ffee8
SM
57592008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
5760
5761 * composite.c (fill_gstring_header): Fix copy/paste typo.
5762
ab6d1131
MR
57632008-10-31 Martin Rudalics <rudalics@gmx.at>
5764
5765 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
5766 (Fother_window): Rename argument and rewrite doc-string.
5767 (select_window_norecord): Fix return value. (Bug#1276)
5768
601a9cf1
JB
57692008-10-30 Juanma Barranquero <lekktu@gmail.com>
5770
5771 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
5772 new frames overriding foreground for tooltips. Based on similar patch
5773 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
5774
813b0652
CY
57752008-10-29 Chong Yidong <cyd@stupidchicken.com>
5776
5777 * emacs.c (Fdaemon_initialized): Initialize nfd.
5778
4414f58f
MR
57792008-10-29 Martin Rudalics <rudalics@gmx.at>
5780
5781 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
5782 (Fwindow_text_height): Clarify doc-strings.
5783 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
5784 doc-string of window-scroll-functions.
5785
ecdcaa09
RS
57862008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
5787
5788 * category.c (syms_of_category): Fix typo in docstring.
5789
23fe745a
JB
57902008-10-28 Juanma Barranquero <lekktu@gmail.com>
5791
5792 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
5793 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
5794 Fix typos in docstrings.
5795
ff808935
DN
57962008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
5797
5798 * emacs.c (daemon_pipe): Make non-static.
5799 (IS_DAEMON): Move definition ...
5800 * lisp.h (IS_DAEMON): ... here.
5801 (daemon_pipe): Declare.
5802 (is_daemon): Remove.
5803 * dispnew.c (init_display): Use IS_DAEMON.
5804
fc012771
SM
58052008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
5806
5807 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
5808 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
5809
5810 * emacs.c (is_daemon): Remove.
5811 (main): Don't set is_daemon.
5812 (IS_DAEMON): New macro.
5813 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 5814 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
5815 parent exits.
5816 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
5817
d8bdbe6f
CY
58182008-10-27 Chong Yidong <cyd@stupidchicken.com>
5819
d1a072bf
CY
5820 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
5821 over-sized glyph, draw it with the default glyph width.
5822
e2e325aa
CY
5823 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5824 glyph, draw it with the default glyph width.
5825
5826 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5827 glyph, draw it with the default glyph width.
5828
d8bdbe6f
CY
5829 * xdisp.c (try_scrolling): When computing the distance from the
5830 scroll margin to PT, try moving some distance past the window
5831 bottom before giving up.
5832
7bfac547
MR
58332008-10-27 Martin Rudalics <rudalics@gmx.at>
5834
5835 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
5836 (Fset_window_buffer): Explain in doc-string that a window can be
5837 "strongly" dedicated to its buffer.
5838
4ff029f6
DN
58392008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
5840
5841 * emacs.c (daemon_name): New variable.
5842 (main): Deal with --daemon=SERVER_NAME.
5843 (Fdaemonp): Return a name if one was passed to --daemon.
5844
5790ef40
DN
58452008-10-26 Romain Francoise <romain@orebokech.com>
5846
f9bd0df9 5847 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
5848 (main): Create a pipe before forking, make the parent exit only after
5849 the child has closed its end of the pipe. Move closing the
5850 descriptors ...
5851 (Fdaemon_initialized): ... here. New function.
5852
f5385255
SM
58532008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
5854
4d632321
SM
5855 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
5856 the previous unoptimized table.
5857
f5385255
SM
5858 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
5859 the distinction between non-nil and non-t value of `dedicated'.
5860
6c56a0f3
CY
58612008-10-25 Chong Yidong <cyd@stupidchicken.com>
5862
5863 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 5864 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 5865
fec89261
MR
58662008-10-25 Martin Rudalics <rudalics@gmx.at>
5867
5868 * window.c (Fget_buffer_window, Fdelete_windows_on)
5869 (Freplace_buffer_in_windows): Make buffer argument optional and
5870 rename to buffer_or_name.
5871
34fcddd0
CY
58722008-10-24 Chong Yidong <cyd@stupidchicken.com>
5873
f5385255
SM
5874 * xdisp.c (handle_single_display_spec, handle_display_prop):
5875 Undo 2005-05-16 change.
34fcddd0
CY
5876 (handle_stop): Pop iterator if it's loaded with an empty string.
5877 (get_overlay_strings_1): Don't save iterator if it's loaded with
5878 an empty string (bug#1201).
5879
064766f2
KH
58802008-10-24 Kenichi Handa <handa@m17n.org>
5881
5882 * ftfont.c (ftfont_otf_features): Fix previous change.
5883 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5884 calling ftfont_otf_features.
5885
f9bd0df9 58862008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
5887
5888 * font.c (font_match_p): Fix for the case that a vector of
5889 characters is in script-representative-chars.
5890
1dae9197
MA
58912008-10-24 Michael Albinus <michael.albinus@gmx.de>
5892
5893 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 5894 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
5895 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5896 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 5897 macro. (Bug#1186)
1dae9197 5898
f9bd0df9 58992008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
5900
5901 * s/sol2-10.h: New file.
5902
878a4584
JB
59032008-10-23 Juanma Barranquero <lekktu@gmail.com>
5904
5905 * xdisp.c (fill_glyph_string): Fix typo in source (though the
5906 poor beast has survived 9+ years and the jump from xterm.c!).
5907
cd265ca6
MR
59082008-10-23 Martin Rudalics <rudalics@gmx.at>
5909
5910 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
5911 Reword doc-string.
f5385255 5912 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 5913
472a4dc9
JB
59142008-10-23 Juanma Barranquero <lekktu@gmail.com>
5915
5916 * character.c (syms_of_character) <script-representative-chars>:
5917 <unicode-category-table>: Doc fixes.
5918
159bd5a2
NF
59192008-10-23 Noah Friedman <friedman@splode.com>
5920
5921 * coding.c (make_conversion_work_buffer): Check that
5922 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
5923 Fget_buffer_create.
5924
49f9c344
KH
59252008-10-23 Kenichi Handa <handa@m17n.org>
5926
5927 * font.c (font_add_log): Check the values of extra properties.
5928
12bb3111
MR
59292008-10-22 Martin Rudalics <rudalics@gmx.at>
5930
5931 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5932 Reword doc-string.
5933 (Fset_window_parameter): Use NILP.
5934 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 5935 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 5936
bbeb4e99
JB
59372008-10-22 Juanma Barranquero <lekktu@gmail.com>
5938
5939 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
5940
59412008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
5942
5943 * nsfns.m (ns_appkit_version): New function.
5944 (x-server-version): Use it.
5945 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
5946 (x-server-vendor): Don't check_ns().
5947
5948 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
5949
a9b555d3
JB
59502008-10-22 Juanma Barranquero <lekktu@gmail.com>
5951
5952 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5953 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
5954
4626499f
KH
59552008-10-22 Kenichi Handa <handa@m17n.org>
5956
e3681952
KH
5957 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5958 scripts.
5959
4626499f
KH
5960 * category.c (word_boundary_p): Check scripts instead of charset.
5961 Handle nil value in word-separating-categories and
5962 word-combining-categories.
5963 (syms_of_category): Fix docstrings of word-separating-categories
5964 and word-combining-categories.
5965
1560f91a
EZ
59662008-10-21 Eli Zaretskii <eliz@gnu.org>
5967
5968 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5969 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5970
f4668441
MR
59712008-10-21 Martin Rudalics <rudalics@gmx.at>
5972
5973 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5974 Rename arg "buffer" to "buffer_or_name".
5975 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5976 it optional.
5977 (no_switch_window): Remove since the return value is not used.
a9b555d3 5978 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
5979 Consider window as dedicated when Fwindow_dedicated_p returns a
5980 non-nil value.
5981 * lisp.h: Remove prototype for no_switch_window.
5982
fd75ddb2
JD
59832008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5984
5985 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 5986 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 5987
07295713
KH
59882008-10-21 Kenichi Handa <handa@m17n.org>
5989
5990 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5991 check Vlatin_extra_code_table.
5992
712adc82
EZ
59932008-10-20 Eli Zaretskii <eliz@gnu.org>
5994
5995 * fileio.c (Fset_file_modes): Doc fix.
5996
f549eb0b
MA
59972008-10-19 Michael Albinus <michael.albinus@gmx.de>
5998
5999 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6000 in arrays.
6001
aac0c6e3
MR
60022008-10-19 Martin Rudalics <rudalics@gmx.at>
6003
6004 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6005 Mention kill-buffer in doc-string.
6006 (Fset_window_buffer): Reinsert tem check removed in last commit.
6007 (Fenlarge_window, Fshrink_window): Have argument names and
6008 doc-string follow Elisp manual more closely.
6009
60102008-10-18 Eli Zaretskii <eliz@gnu.org>
6011
6012 * fileio.c (Fset_file_modes): Doc fix.
6013
60142008-10-18 Martin Rudalics <rudalics@gmx.at>
6015
6016 * window.c (Fwindow_width, Fset_window_start)
6017 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
6018 (Fdelete_windows_on, Freplace_buffer_in_windows):
6019 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
6020 (Fwindow_dedicated_p): Make window argument optional.
6021 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6022 (Fset_window_buffer): Respect any non-nil dedicated value for
6023 window. Rename "buffer" argument to "buffer_or_name".
6024
60252008-10-18 Ulrich Mueller <ulm@gentoo.org>
6026
6027 * m/sh3.h: New file, machine description for SuperH.
6028
60292008-10-17 Martin Rudalics <rudalics@gmx.at>
6030
6031 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6032
60332008-10-17 Kenichi Handa <handa@m17n.org>
6034
6035 * ftfont.c (ftfont_otf_features): Fix indexing
6036 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6037
60382008-10-16 Magnus Henoch <mange@freemail.hu>
6039
6040 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6041 (Fdbus_call_method_asynchronously): Ditto.
6042 This change makes C-h f display the argument list.
6043
60442008-10-16 Chong Yidong <cyd@stupidchicken.com>
6045
6046 * fileio.c (Fexpand_file_name): Doc fix.
6047
6048 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6049 of :foreground and :background equivalent to unspecified (20.x
6050 compatibility).
6051
60522008-10-15 Eli Zaretskii <eliz@gnu.org>
6053
6054 * buffer.c (syms_of_buffer): Doc fix.
6055
60562008-10-14 Kenichi Handa <handa@m17n.org>
6057
6058 * font.c (font_clear_prop): When clearing font width, clear the
6059 average width field too.
6060
60612008-10-12 Andreas Schwab <schwab@suse.de>
6062
6063 * ftfont.c (ftfont_shape_by_flt): Make static.
6064 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6065
6066 * font.c: Don't include <m17n-flt.h>.
6067
60682008-10-10 Eli Zaretskii <eliz@gnu.org>
6069
6070 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6071
60722008-10-09 Eli Zaretskii <eliz@gnu.org>
6073
6074 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6075 away code.
6076
60772008-10-09 Chong Yidong <cyd@stupidchicken.com>
6078
6079 * dispnew.c (update_text_area): Avoid looping due to large glyph
6080 overhangs (bug#1070).
6081
60822008-10-09 Kenichi Handa <handa@m17n.org>
6083
6084 * fontset.c (face_for_char): If face->fontset is negative, just
6085 return ascii_face.
6086
f5385255
SM
6087 * font.c (font_delete_unmatched): Fix previous change.
6088 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
6089
60902008-10-09 Martin Rudalics <rudalics@gmx.at>
6091
6092 * frame.c (Fraise_frame): On text-only terminals select frame in
6093 order to make it visible. (Bug#1061)
6094
60952008-10-08 Chong Yidong <cyd@stupidchicken.com>
6096
6097 * fontset.c (fontset_find_font): Check frame validity.
6098
60992008-10-07 Chong Yidong <cyd@stupidchicken.com>
6100
a9b555d3 6101 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
6102 (xg_display_close): Allow Emacs to close all displays (bug#985).
6103
61042008-10-06 Andreas Schwab <schwab@suse.de>
6105
f5385255 6106 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
6107
61082008-10-06 Chong Yidong <cyd@stupidchicken.com>
6109
f5385255 6110 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 6111
a9b555d3 6112 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
6113
6114 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6115 during initialization.
6116
61172008-10-04 Eli Zaretskii <eliz@gnu.org>
6118
6119 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6120 whole thing on MSDOS frames as well as on a TTY.
6121
6122 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6123 well as for TTY.
6124 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6125 well as on a TTY.
6126
6127 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6128 as well as for TTY.
6129
6130 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6131
6132 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6133 MSDOS frames as well.
6134
61352008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6136
6137 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6138 correct arguments.
b71ac3dd 6139 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
6140
61412008-10-03 Glenn Morris <rgm@gnu.org>
6142
6143 * emacs.c (USAGE1): Add --daemon.
6144
61452008-10-02 Eli Zaretskii <eliz@gnu.org>
6146
6147 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6148 100, so it's in percents as advertised.
6149
61502008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6151
6152 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6153 (ns_output.current_cursor, ns_output.desired_cursor)
6154 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6155 (FRAME_NEW_CURSOR_COLOR): Remove.
6156
6157 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 6158 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
6159 enumeration (HOLLOW_BOX_CURSOR, etc.).
6160
6161 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6162 (draw_window_cursor): Simplify code.
f5385255
SM
6163 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6164 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 6165 updates manually.
a9b555d3
JB
6166 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6167 Use core Emacs cursor types.
aac0c6e3 6168
b8ff72fa 6169 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
6170
61712008-10-02 Martin Rudalics <rudalics@gmx.at>
6172
6173 * process.c (Faccept_process_output): Fix doc-string.
6174
61752008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6176
6177 * gmalloc.c (__sbrk): Also define for uClibc.
6178
6179 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6180 for uClibc.
6181
61822008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6183
6184 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6185 styles.
6186 (nsfont_open): Reenable the cache.
6187
61882008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6189
6190 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6191 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6192
61932008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6194
6195 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6196 a suspended terminal.
6197
61982008-09-30 Michael Albinus <michael.albinus@gmx.de>
6199
6200 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6201
62022008-09-30 Eli Zaretskii <eliz@gnu.org>
6203
6204 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6205
62062008-09-30 Chong Yidong <cyd@stupidchicken.com>
6207
6208 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6209 in a continued line coincides with a line beginning.
6210
62112008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6212
6213 * nsfont.m (nsfont_trait_distance): Fix bug.
6214 (nsfont_list): Return a list rather than a vector (syncs with Handa
6215 changes of 2008-05-14).
6216 (nsfont_open): Improve logging.
6217
62182008-09-29 Andreas Schwab <schwab@suse.de>
6219
6220 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6221
62222008-09-28 Martin Rudalics <rudalics@gmx.at>
6223
6224 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6225 name as char-resolve-modifiers.
6226 Reported by: Markus Triska <markus.triska@gmx.at>
6227
62282008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6229
6230 * dispnew.c (init_display): Return earlier when running as a daemon.
6231
62322008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6233
6234 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6235
62362008-09-27 Eli Zaretskii <eliz@gnu.org>
6237
6238 * composite.c (Fcomposition_get_gstring)
6239 (Fcompose_region_internal, Fcompose_string_internal)
6240 (Ffind_composition_internal): Doc fix.
6241 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6242 (syms_of_composite) <auto-composition-function>: Doc fix.
6243 (syms_of_composite) <composition-function-table>: Doc fix.
6244
62452008-09-25 Chong Yidong <cyd@stupidchicken.com>
6246
6247 * search.c (wordify): New argument for lax word-ends.
6248 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6249
62502008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6251
6252 * lisp.h (is_daemon): Declare.
6253 * dispnew.c (init_display): Do not try to initialize the terminal
6254 when running as a daemon.
6255
62562008-09-22 Chong Yidong <cyd@stupidchicken.com>
6257
6258 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6259 x_display_pixel_height.
6260
62612008-09-22 Martin Rudalics <rudalics@gmx.at>
6262
6263 * undo.c (record_point): Don't call Fundo_boundary for first
6264 change. (Bug#731)
6265
62662008-09-22 Juanma Barranquero <lekktu@gmail.com>
6267
6268 * emacs.c (Fdaemonp): Doc fix.
6269
62702008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6271
6272 * emacs.c (main): Place #ifdef in the proper place.
6273
62742008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6275
6276 * emacs.c (standard_args): Add --daemon.
6277 (main): Disconnect from the terminal when --daemon is passed.
6278 (is_daemon): New variable.
6279 (Fdaemonp): New function.
6280 (syms_of_emacs): Defsubr it.
6281
62822008-09-20 Chong Yidong <cyd@stupidchicken.com>
6283
6284 * xdisp.c (get_next_display_element): Handle string display
6285 correctly when checking for the end of a box run.
6286
62872008-09-20 Glenn Morris <rgm@gnu.org>
6288
6289 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6290 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6291 (Frename_file): Avoid copying to trash if a rename involves
6292 a delete. (Bug#964).
6293
62942008-09-20 Eli Zaretskii <eliz@gnu.org>
6295
6296 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6297 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6298 frames as well as termcap frames.
6299 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6300 get_named_tty.
6301
63022008-09-19 Eli Zaretskii <eliz@gnu.org>
6303
6304 * process.c (procfs_system_process_attributes): Fix cmdline in
6305 case /proc/PID/cmdline is empty.
6306
6307 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6308 x_display_pixel_height.
6309
63102008-09-19 Juanma Barranquero <lekktu@gmail.com>
6311
6312 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6313
6314 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6315 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6316
63172008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6318
6319 * dispextern.h (struct it): Move line_wrap away from the middle of
6320 bitfields. Move voffset in struct iterator_stack_entry after the
6321 bitfields. Move tab_width near after another short.
6322
63232008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6324
6325 * frame.h (struct frame): Move alpha from the middle of bitfields.
6326
6327 * window.h (struct window): Move frozen_window_start_p after the
6328 rest of the bitfields to reduce padding.
6329
63302008-09-18 Chong Yidong <cyd@stupidchicken.com>
6331
6332 * xterm.h (x_display_info): Remove `height' and `width' members.
6333
6334 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6335
6336 * w32term.h (w32_display_info): Remove `height', `width',
6337 `height_in', and `width_in' members.
6338
b8ff72fa
SM
6339 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6340 New functions.
aac0c6e3
MR
6341 (x_calc_absolute_position): Use them.
6342 (x_term_init): Omit removed `height' and `width' members.
6343
b8ff72fa
SM
6344 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6345 New functions.
aac0c6e3
MR
6346 (w32_read_socket, x_calc_absolute_position): Use them.
6347 (w32_initialize_display_info, w32_term_init): Omit removed members
6348 of w32_display_info.
6349
b8ff72fa
SM
6350 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6351 New functions.
6352 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 6353
b8ff72fa
SM
6354 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6355 New functions.
aac0c6e3
MR
6356 (x_calc_absolute_position): Use them.
6357 (x_term_init): Omit removed `height' and `width' members.
6358
6359 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
6360 (compute_tip_xy):
6361 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
6362 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6363 x_display_pixel_width.
6364
63652008-09-18 Kenichi Handa <handa@m17n.org>
6366
6367 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6368 (composition_compute_stop_pos): Fix handling of static composition.
6369 (Fcomposition_get_gstring): Check FROM and TO at first.
6370
63712008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6372
46e722a9 6373 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
6374 mixup (YAILOM).
6375
63762008-09-17 Chong Yidong <cyd@stupidchicken.com>
6377
6378 * indent.c (Fvertical_motion): Use position reported by iterator
6379 instead of PT for determining screen motion (bug#943).
6380
63812008-09-17 Romain Francoise <romain@orebokech.com>
6382
6383 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6384
63852008-09-17 Kenichi Handa <handa@m17n.org>
6386
6387 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6388
6389 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6390 if necessary.
6391
63922008-09-16 Kenichi Handa <handa@m17n.org>
6393
6394 * coding.c (make_conversion_work_buffer): Avoid calling
6395 Fget_buffer_create if it is not necessary.
6396
63972008-09-15 Martin Rudalics <rudalics@gmx.at>
6398
6399 * window.c (Fselect_window): Don't update window_select_count and
6400 use_time when norecord is not nil.
6401
64022008-09-14 Kenichi Handa <handa@m17n.org>
6403
6404 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6405 specpdl_ptr.
6406
64072008-09-12 Kenichi Handa <handa@m17n.org>
6408
6409 * indent.c (scan_for_column): Don't handle automatic composition
6410 if the current buffer is not associated with a window.
6411
6412 * composite.c (composition_reseat_it): If the current buffer is
6413 not associated with a window, ignore the automatic composition.
6414 (find_automatic_composition): Likewise.
6415
64162008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6417
6418 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6419 (Fgpm_mouse_stop): Use it.
6420 * termhooks.h (close_gpm): Declare.
6421 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6422 connection if Gpm_GetEvent fails.
6423
6424 * window.c (set_window_buffer): Always preserve current-buffer.
6425
64262008-09-12 Glenn Morris <rgm@gnu.org>
6427
6428 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6429
64302008-09-11 Glenn Morris <rgm@gnu.org>
6431
6432 * charset.c (charset-map-path): Doc fix.
6433
64342008-09-10 Kenichi Handa <handa@m17n.org>
6435
6436 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6437
6438 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6439 compose a grapheme cluster with the preceding base glyph.
6440
6441 * composite.c (composition_compute_stop_pos): Fix previous change.
6442 Reset cmp_it->id to -1 at first.
6443
64442008-09-10 Glenn Morris <rgm@gnu.org>
6445
6446 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6447
64482008-09-09 Chong Yidong <cyd@stupidchicken.com>
6449
6450 * keyboard.c (read_key_sequence): Reapply translation maps when
6451 switching keyboards.
6452
64532008-09-09 Kenichi Handa <handa@m17n.org>
6454
6455 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6456 characters.
6457
6458 * composite.c (FORWARD_CHAR): Fix calculation
6459 of (POSITION).pos_byte.
6460 (composition_compute_stop_pos): Limit the search of composition to
6461 at most 500 characters ahead. If we reach the limit or find a
6462 newline, set cmp_it->ch to -2 and return 0.
6463 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6464
64652008-09-08 Kenichi Handa <handa@m17n.org>
6466
6467 * indent.c (Fvertical_motion): Be sure to set
6468 it_overshoot_expected if it.cmp_it.id is non-negative.
6469
64702008-09-07 Andreas Schwab <schwab@suse.de>
6471
6472 * callproc.c (Fcall_process): Don't hold references to string data
6473 across garbage collection. Move initialisation of new_argv down
6474 to avoid compiler bug.
6475
64762008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6477
6478 * process.c (Fsystem_process_attributes): Doc fix.
6479
64802008-09-07 Chong Yidong <cyd@stupidchicken.com>
6481
6482 * callproc.c (Fcall_process): Canonicalize current directory name.
6483
6484 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6485 iterator advances to the next line if the current line ends in a
6486 continued tab.
6487
64882008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6489
6490 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6491 member to point to cmp_from.
6492
6493 * xdisp.c: Doc fix for references to gidx data member.
6494
64952008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6496
6497 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6498
64992008-09-07 Kenichi Handa <handa@m17n.org>
6500
6501 * composite.c (FORWARD_CHAR): Check STOP after
6502 incrementing (POSITION).pos.
6503
65042008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6505
6506 * process.c (Fsystem_process_attributes): Doc fix.
6507
65082008-09-06 Chong Yidong <cyd@stupidchicken.com>
6509
6510 * keyboard.c (Ftop_level): Doc fix.
6511
65122008-09-06 Eli Zaretskii <eliz@gnu.org>
6513
6514 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6515 minibuffer, don't let lower part of menu invade the echo area.
6516
6517 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6518 "char *q" to access menu text and advance through it. Revert the
6519 change that displayed ">" instead of ASCII character 0x10.
6520
65212008-09-05 Eli Zaretskii <eliz@gnu.org>
6522
6523 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6524 toggle boxes and radio buttons on MS-DOS as well.
6525
65262008-09-05 Kenichi Handa <handa@m17n.org>
6527
6528 * composite.c (autocmp_chars): Check lookback count.
6529 (composition_compute_stop_pos): Set cmp_it->lookback.
6530 (composition_reseat_it): Check lookback count.
6531 (struct position_record): New struct.
6532 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6533 (find_automatic_composition): New function.
6534 (composition_adjust_point): Use find_automatic_composition.
6535
6536 * dispextern.h (struct composition_it): New member lookback.
6537
65382008-09-02 Chong Yidong <cyd@stupidchicken.com>
6539
6540 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6541 if moving by a single line.
6542
65432008-09-02 Andreas Schwab <schwab@suse.de>
6544
6545 * xterm.c (x_delete_display): Fix merge error.
6546
6547 * fileio.c (Fexpand_file_name): Remove unused variables.
6548
65492008-09-02 Eli Zaretskii <eliz@gnu.org>
6550
6551 * fileio.c (Fexpand_file_name): Copy argument `name' into local
6552 storage on all platforms, not just on DOS_NT.
6553
65542008-09-02 Jason Rumney <jasonr@gnu.org>
6555
b8ff72fa
SM
6556 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
6557 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
6558
65592008-09-01 Chong Yidong <cyd@stupidchicken.com>
6560
6561 * xfaces.c (Finternal_set_alternative_font_family_alist)
6562 (Finternal_set_alternative_font_registry_alist): Properly copy
6563 entire alist structure.
6564
65652008-09-01 Kenichi Handa <handa@m17n.org>
6566
d66c0241 6567 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 6568 representative chars of the script is a vector.
d66c0241
JB
6569 (ftfont_list): Handle the case where the representative chars of
6570 the script is a vector.
aac0c6e3
MR
6571
6572 * character.c (syms_of_character): Docstring of
6573 script-representative-chars fixed.
6574
65752008-08-31 Eli Zaretskii <eliz@gnu.org>
6576
6577 * msdos.c (BUILD_CHAR_GLYPH): New macro.
6578 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
6579 the menu. Allocate larger buffer for `text', to account for
6580 possible ^C characters.
6581
65822008-08-31 Martin Rudalics <rudalics@gmx.at>
6583
6584 * xdisp.c (prepare_menu_bars): Don't call
6585 Vwindow_size_change_functions with arg Qt.
6586
65872008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
6588
6589 * font.h (font_range):
6590 * fileio.c (report_file_error):
46e722a9
SM
6591 * composite.c (composition_update_it): Yet another int/Lisp_Object
6592 mixup (YAILOM).
aac0c6e3
MR
6593
65942008-08-30 Glenn Morris <rgm@gnu.org>
6595
6596 * data.c (Fmake_variable_frame_local): Doc fix.
6597
6598 * frame.c (Fmodify_frame_parameters): Doc fix.
6599
66002008-08-30 Eli Zaretskii <eliz@gnu.org>
6601
6602 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
6603 needed by GetTokenInformation.
6604 (w32_system_process_attributes): Check return values of all system
6605 APIs.
6606
6607 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
6608 only when the state changes.
6609 (IT_update_begin, IT_update_end): Add termscript trace.
6610
6611 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
6612 clipboard is unavailable. Set dst to NULL if it doesn't point to
6613 malloc'ed data.
6614 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
6615 passing random values to xfree.
6616
6617 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 6618 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
6619
66202008-08-29 Jason Rumney <jasonr@gnu.org>
6621
6622 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
6623
66242008-08-29 Eli Zaretskii <eliz@gnu.org>
6625
6626 * composite.c (fill_gstring_body): Avoid compiler warnings.
6627
6628 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
6629 LGLYPH_SET_CODE to avoid compiler warnings.
6630
2ae37cf0 6631 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
6632
6633 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
6634
6635 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
6636 LGLYPH_SET_CODE.
6637
66382008-08-29 Kenichi Handa <handa@m17n.org>
6639
6640 * fileio.c (report_file_error): Don't downcase the first character
6641 of errstring if it is still unibyte.
6642
66432008-08-29 Kenichi Handa <handa@m17n.org>
6644
6645 These changes are to re-implement the automatic composition so
6646 that it doesn't use text properties.
6647
6648 * Makefile.in (ftfont.o): Depend on composite.h.
6649 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
6650
6651 * character.h (Vunicode_category_table): Extern it.
6652
6653 * character.c (Vunicode_category_table): New variable.
6654 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
6655
6656 * chartab.c (optimize_sub_char_table): Perform more greedy
6657 optimization.
6658
b8ff72fa
SM
6659 * composite.h (enum composition_method):
6660 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
6661 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
6662 (Vcomposition_function_table): Extern it.
6663 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
6664 (composition_gstring_put_cache, composition_gstring_from_id)
6665 (composition_gstring_p, composition_gstring_width)
6666 (composition_compute_stop_pos, composition_reseat_it)
6667 (composition_update_it, composition_adjust_point): Extern them.
6668 (Fcomposition_get_gstring): EXFUN it.
6669
d66c0241 6670 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
6671 (Vcomposition_function_table)
6672 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
6673 (gstring_hash_table, gstring_work, gstring_work_headers):
6674 New variables.
aac0c6e3
MR
6675 (gstring_lookup_cache, composition_gstring_put_cache)
6676 (composition_gstring_from_id, composition_gstring_p)
6677 (composition_gstring_width, fill_gstring_header)
6678 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
6679 (composition_reseat_it, composition_update_it)
b8ff72fa 6680 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
6681 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
6682 and gstring_work_headers. DEFVAR_LISP composition-function-table.
6683 Defsubr compostion_get_gstring.
6684
6685 * dispextern.h (struct glyph): New union u.cmp. Delete the member
6686 cmp_id.
6687 (struct glyph_string): Delete the member gidx. New members
6688 cmp_id, cmp_from, and cmp_to.
6689 (enum it_method): Delete GET_FROM_COMPOSITION.
6690 (struct composition_it): New struct.
6691 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
6692 Delete c, len, cmp_id, cmp_len in u.comp.
6693
6694 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 6695 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 6696 (enum lglyph_indices): Likewise.
b8ff72fa 6697 (font_range): Adjust extern.
aac0c6e3
MR
6698 (font_fill_lglyph_metrics): Extern it.
6699
6700 * font.c (QCf): New variable.
6701 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6702 (font_prepare_composition): Delete this function.
6703 (font_range): Type and arguments changed.
6704 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
6705 (font_fill_lglyph_metrics): New function.
b8ff72fa 6706 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 6707 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
6708 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
6709 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
6710
6711 * fontset.h (font_for_char): Extern it.
6712
6713 * fontset.c (font_for_char): New function.
6714
6715 * ftfont.c: Include composite.h.
6716 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 6717 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
6718
6719 * indent.c: Include composite.h and dispextern.h.
6720 (check_composition): Delete this function.
6721 (scan_for_column): Handle composition by
6722 composition_compute_stop_pos, composition_reseat_it, and
6723 composition_update_it.
6724 (compute_motion): Likewise.
6725 (Fvertical_motion): Fix checking of composition.
6726
6727 * keyboard.c (adjust_point_for_property): Check composition by
6728 composition_adjust_point.
6729
b8ff72fa 6730 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
6731 struct glyph_string.
6732
b8ff72fa
SM
6733 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
6734 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
6735 struct glyph.
6736 (produce_composite_glyph): Likewise.
6737
b8ff72fa
SM
6738 * w32term.c (x_draw_composite_glyph_string_foreground):
6739 Adjust for the change of struct glyph_string.
aac0c6e3
MR
6740 (x_draw_glyph_string): Likewise.
6741
6742 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
6743 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6744
6745 * xdisp.c: Include font.h.
6746 (it_props): Delete the entry for Qauto_composed.
6747 (init_iterator): Initialize it->cmp_it.id to -1.
6748 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 6749 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
6750 (handle_auto_composed_prop): Delete it.
6751 (handle_composition_prop): Handle only static composition.
6752 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
6753 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 6754 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
6755 (pop_it): Likewise.
6756 (get_next_element): Delete next_element_from_composition.
6757 (CHAR_COMPOSED_P): New macro.
6758 (get_next_display_element): For automatic composition, get a face
6759 from the font in the glyph-string.
6760 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 6761 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
6762 (next_element_from_string): Check if the character at the current
6763 position is composed by CHAR_COMPOSED_P.
6764 (next_element_from_buffer): Likewise.
d66c0241
JB
6765 (next_element_from_composition): Adjust for the change of struct it.
6766 Update it->cmp_it.
b8ff72fa
SM
6767 (dump_glyph): Adjust for the change of struct glyph.
6768 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
6769 it and struct glyph. Don't handle automatic composition here.
6770 (fill_gstring_glyph_string): New function.
6771 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 6772 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
6773 (BUILD_GSTRING_GLYPH_STRING): New macro.
6774 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
6775 automatic composition.
b8ff72fa 6776 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 6777 struct glyph.
b8ff72fa 6778 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 6779
b8ff72fa 6780 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
6781 the change of struct glyph_string.
6782 (x_draw_glyph_string): Likewise.
6783
67842008-08-29 Glenn Morris <rgm@gnu.org>
6785
6786 * buffer.c (word-wrap): Doc fix.
6787 * xdisp.c (truncate-partial-width-windows): Doc fix.
6788 Increase default to 50.
6789
67902008-08-29 Chong Yidong <cyd@stupidchicken.com>
6791
6792 * xdisp.c (update_tool_bar_unwind): New function.
6793 (update_tool_bar): Temporarily set selected frame before building
6794 tool-bar items.
6795
67962008-08-28 Michael Albinus <michael.albinus@gmx.de>
6797
6798 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
6799 snprintf, respectively.
6800 (xd_append_arg): Convert strings with Fstring_make_unibyte.
6801
68022008-08-28 Chong Yidong <cyd@stupidchicken.com>
6803
6804 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
6805 LDFLAGS to GNUstep CC invocation.
6806
68072008-08-27 Chong Yidong <cyd@stupidchicken.com>
6808
6809 * indent.c (Fvertical_motion): Revert last change. Handle the
6810 general case where we are moving forward, and PT spans multiple
6811 screen lines.
6812
6813 * eval.c (find_handler_clause): Temporarily increase
6814 max-lisp-eval-depth while printing the backtrace buffer, to
6815 guarantee that help-mode code can run.
6816
68172008-08-27 Eli Zaretskii <eliz@gnu.org>
6818
6819 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
6820 colors under -rv.
6821 (IT_set_frame_parameters): Don't swap foreground and background
6822 colors if `(reverse . t)' is present in the frame properties.
6823 (internal_terminal_init): Call init_frame_faces only for the
6824 initial frame.
6825
68262008-08-27 Andreas Schwab <schwab@suse.de>
6827
6828 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
6829
68302008-08-27 Andreas Schwab <schwab@suse.de>
6831
6832 * search.c (search_buffer): Set char_base to zero only at the end.
6833
68342008-08-27 Kenichi Handa <handa@m17n.org>
6835
b8ff72fa 6836 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
6837
68382008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
6839
6840 * xterm.c (x_term_init): Temporarily hide the partially
6841 initialized terminal while calling vendor-specific-keysyms.
6842
68432008-08-26 Eli Zaretskii <eliz@gnu.org>
6844
6845 * msdos.c (internal_terminal_init): Most initializations done only
6846 once, especially initial_screen_colors[] and termscript open.
6847
68482008-08-26 Chong Yidong <cyd@stupidchicken.com>
6849
6850 * eval.c (Fcondition_case): Doc fix.
6851
6852 * widgetprv.h (EmacsFramePart): Change font member to the new font
6853 struct.
6854
6855 * widget.c: Include character.h and font.h for XSETFONT.
6856 (setup_frame_gcs): Compute X font id from font struct, just once.
6857
68582008-08-26 Eli Zaretskii <eliz@gnu.org>
6859
6860 * term.c (get_named_tty): Fix last change.
6861
68622008-08-26 Chong Yidong <cyd@stupidchicken.com>
6863
6864 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 6865 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
6866
68672008-08-25 Eli Zaretskii <eliz@gnu.org>
6868
6869 * frame.c (do_switch_frame): Mark previously displayed frame as
6870 obscured for FRAME_MSDOS_P frames as well.
6871
68722008-08-24 Eli Zaretskii <eliz@gnu.org>
6873
6874 * frame.c (make_terminal_frame): Initialize f->terminal,
6875 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6876 Set the top frame to newly created frame.
6877 (Fmake_terminal_frame): Reuse the_only_display_info.
6878
6879 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6880 estimating available memory.
6881
b97439ce 68822008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
6883
6884 * nsterm.m (ns_draw_window_cursor): Don't call
6885 NSDisableScreenUpdates and NSEnableScreenUpdates on
6886 non-NS_IMPL_COCOA systems.
6887
68882008-08-23 Andreas Schwab <schwab@suse.de>
6889
6890 * process.c (procfs_system_process_attributes): Fix use of
6891 uninitialized variables.
6892
68932008-08-23 Eli Zaretskii <eliz@gnu.org>
6894
6895 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6896
6897 * dispnew.c (init_display): Remove MS-DOS specific conditions for
6898 calling tty-set-up-initial-frame-faces.
6899
b8ff72fa
SM
6900 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
6901 Allow MSDOS frames along with X frames.
aac0c6e3
MR
6902
6903 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
6904 addition to output_termcap.
6905
6906 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
6907
6908 * termchar.h (FRAME_TTY): Support output_msdos_raw.
6909 (struct tty_display_info) [MSDOS]: Add fields related to mouse
6910 highlight.
6911
6912 * process.c [!subprocesses]: Define QCname.
6913 (syms_of_process): Intern and staticpro it.
6914
6915 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
6916 Adjust for changes in encoding/decoding routines.
6917 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
6918 encode_coding and decode_coding.
6919
b8ff72fa 6920 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
6921
6922 * dosfns.c: Include frame.h before termhooks.h.
6923 (dos_cleanup): Use CURTTY ()->termscript instead of a global
6924 variable termscript.
6925
6926 * s/msdos.h (USER_FULL_NAME): Define.
6927 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
6928
6929 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
6930 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
6931 pw->pw_gecos.
6932
6933 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
6934 SELECTED_FRAME as additional (1st) argument.
6935 (tty_read_avail_input): Handle output_msdos_raw in
6936 addition to output_termcap.
6937
6938 * msdos.c: Include frame.h before termhooks.h.
6939 (mouse_on, mouse_off, mouse_moveto, mouse_init)
6940 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
6941 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
6942 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
6943 (IT_set_terminal_modes, IT_reset_terminal_modes)
6944 (IT_set_frame_parameters): Use tty->termscript instead of a global
6945 variable termscript.
6946 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
6947 global variable terminal_coding. Don't refer to
6948 Vnonascii_translation_table.
6949 (internal_terminal_init): Set Vwindow_system in current_kboard.
6950 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
6951 Announce date and time of session start, if termscript is open.
6952 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
6953 term.c:init_tty). Open termscript only of not already open.
6954 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
6955 here instead of dos_ttraw. Don't initialize display if this is an
6956 initial tty. Don't set FRAME_FONT.
6957 (Vwindow_system_version): Bump to 23.
6958 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6959 is available, set up mouse_position_hook.
6960 (dos_ttraw, IT_set_terminal_modes): If called with initial
6961 terminal, do nothing.
6962 (IT_set_frame_parameters): Handle the Qtty_type frame
6963 parameter by calling internal_terminal_init.
6964 (dos_set_window_size, show_mouse_face)
6965 (clear_mouse_face, IT_note_mode_line_highlight)
6966 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6967 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6968 (initialize_msdos_display): New function.
6969 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6970 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6971 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6972 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 6973 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
6974 (request_sigio, unrequest_sigio): Don't define, now defined on
6975 sysdep.c.
6976 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6977
6978 * term.c [MSDOS]: Include msdos.h.
6979 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6980 conditional to DOS_NT. Allow only one call to this function in a
6981 session. Don't allocate a new struct tty_display_info; instead,
6982 reuse the_only_display_info. Call get_tty_size to get screen
6983 dimensions. Call init_baud_rate to set bad_rate.
6984 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6985 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 6986 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
6987 (get_tty_terminal, get_named_tty, Ftty_type)
6988 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6989 output_termcap.
b8ff72fa
SM
6990 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6991 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 6992 only when subprocesses are supported.
aac0c6e3
MR
6993
6994 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6995 f->output_data.x.
6996 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6997 terminal devices.
6998
5582fbc7 6999 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
7000 x_output.
7001 (FRAME_FONT): Use output_data.tty.
7002 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
7003 (struct x_display_info): Rename from display_info. Update all users in
7004 msdos.c.
aac0c6e3 7005 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 7006 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
7007 (dos_ttraw): Update prototype.
7008
7009 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7010 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7011
70122008-08-23 Jason Rumney <jasonr@gnu.org>
7013
7014 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7015 (fn_TIFFSetDirectory): New library function used.
7016 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7017 (tiff_load): Use :index to select among multiple images. Set count
7018 property when multiple images exist.
7019 (gif_format): Use :index, not :image.
7020
70212008-08-23 Chong Yidong <cyd@stupidchicken.com>
7022
7023 * xdisp.c (try_scrolling): Check INT_MAX instead of
7024 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7025 to obtain INT_MAX.
7026
70272008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7028
7029 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7030
70312008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7032
7033 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7034 GNUstep library location.
7035
70362008-08-21 Chong Yidong <cyd@stupidchicken.com>
7037
7038 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7039 before using it.
7040
7041 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7042
70432008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7044
7045 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7046 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7047 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7048 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7049 (EmacsApp-cursor_blink_handler): Remove declaration.
7050 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7051 match 01 Feb 2008 changes in xterm.c.
7052 (ns_read_socket): Add cast to avoid warning.
7053 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7054 GNUstep.
7055
70562008-08-20 Chong Yidong <cyd@stupidchicken.com>
7057
7058 * xselect.c (x_get_foreign_selection): Return nil if desired
7059 selection could not be obtained, instead of signalling an error.
7060
70612008-08-20 David Reitter <david.reitter@gmail.com>
7062
7063 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7064 * nsterm.m: Remove ns-specific code for cursor blinking.
7065 (ns_draw_window_cursor): Clear cursor properly rather than
7066 redrawing the area. Respect width of bar cursors.
7067 These changes enable the use of generic blink-cursor-mode and
7068 generic cursor types in NS and support smooth cursor movements (do
7069 not blink off after command).
7070 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7071 Nextstep, too.
7072
70732008-08-19 Kenichi Handa <handa@m17n.org>
7074
7075 * font.c (Vfont_log_deferred): New variable.
7076 (font_add_log): Check Vfont_log_deferred.
7077 (font_deferred_log): New function.
7078
7079 * font.h (font_deferred_log): Extern it.
7080
7081 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7082 for sorting.
7083 (face_for_char): Use deferred log.
7084
70852008-08-18 Kenichi Handa <handa@m17n.org>
7086
7087 * fontset.c (face_for_char): Add font log.
7088
7089 * font.c (font_add_log): Add the font properties :script, :lang,
7090 and :otf in the log.
7091
70922008-08-17 Chong Yidong <cyd@stupidchicken.com>
7093
7094 * xdisp.c: Remove dead code.
7095 (handle_invisible_prop, next_overlay_string): Defer call to
7096 setup_for_ellipsis.
7097 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7098
70992008-08-15 Chong Yidong <cyd@stupidchicken.com>
7100
7101 * xfaces.c (lookup_derived_face): Properly handle possible zero
7102 return value of get_lface_attributes.
7103 (merge_faces): Don't tell lookup_derived_face to signal an error
7104 if face is not found.
7105
7106 * dired.c (Fdirectory_files): Doc fix.
7107
7108 * process.c (make_process): Initialize kill_without_query struct
7109 member.
7110
71112008-08-15 Eli Zaretskii <eliz@gnu.org>
7112
7113 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7114 Alternative calculation of totphys for Visual Studio 6.
7115
7116 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7117
7118 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7119 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7120 All users changed.
7121 (stat): Only root directory passed to GetDriveType. Allow RAM
7122 disk as well as local fixed disk when w32-get-true-file-attributes
7123 is set to `local'.
7124 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7125 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7126 (w32_cached_id, w32_add_to_cache): New functions.
7127 (get_name_and_id): Look account names in the cache before calling
7128 lookup_account_sid.
7129 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7130 New initialization flags.
7131 (globals_of_w32): Initialize them to zero.
7132 (w32_system_process_attributes): Use w32_cached_id and
7133 w32_add_to_cache.
7134
71352008-08-14 Lawrence Mitchell <wence@gmx.li>
7136
7137 * lread.c (Fread_char, Fread_char_exclusive): If no character
7138 event is read before timeout is reached, return nil, rather than
7139 converting to a number.
7140
71412008-08-14 Chong Yidong <cyd@stupidchicken.com>
7142
7143 * fns.c (use_dialog_box): Doc fix.
7144
7145 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7146 on OS X.
7147
71482008-08-13 Chong Yidong <cyd@stupidchicken.com>
7149
7150 * frame.c (Qns_parse_geometry): New var.
7151 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7152
71532008-08-11 Chong Yidong <cyd@stupidchicken.com>
7154
7155 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7156 space character in calculating tabs.
7157
71582008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7159
7160 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7161
71622008-08-10 Glenn Morris <rgm@gnu.org>
7163
7164 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7165 silence gcc "limited range of data type" warnings in some
7166 make_fixnum_or_float calls.
7167
71682008-08-09 Eli Zaretskii <eliz@gnu.org>
7169
7170 * w32.c (w32_system_process_attributes): If the process does not
7171 exist, return nil.
7172
7173 * w32.c: Include thelp32.h, psapi.h and coding.h.
7174 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7175 declarations.
7176 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7177 (Process32Next_Proc): New typedefs.
7178 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7179 (g_b_init_process32_next, g_b_init_open_thread_token)
7180 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7181 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7182 (g_b_init_get_process_working_set_size)
7183 (g_b_init_global_memory_status_ex): New static variables.
7184 (globals_of_w32): Initialize them.
7185 (create_toolhelp32_snapshot, process32_first, process32_next)
7186 (open_thread_token, impersonate_self, revert_to_self)
7187 (get_process_memory_info, get_process_working_set_size)
7188 (global_memory_status, global_memory_status_ex): New wrapper
7189 functions.
7190 (w32_list_system_processes, w32_system_process_attributes)
7191 (enable_privilege, restore_privilege, ltime, process_times):
7192 New functions.
7193 (convert_time_raw): New function.
7194 (convert_time): Remove conversion of FILETIME into time in 100
7195 nsec units, call convert_time_raw instead.
7196
7197 * process.h (w32_list_system_processes, w32_system_process_attributes):
7198 Add prototypes.
7199 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7200 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7201 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7202 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7203
7204 * process.c (Fsystem_process_attributes): Doc fix.
7205
72062008-08-08 Chong Yidong <cyd@stupidchicken.com>
7207
7208 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7209 a continued multi-char glyph; if so, advance to the actual glyph.
7210
72112008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7212
7213 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7214
7215 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7216 (.m.o): Use it.
7217 * config.in: Regenerate.
7218
72192008-08-07 Chong Yidong <cyd@stupidchicken.com>
7220
7221 * xdisp.c (redisplay_window): Revert last change.
7222 (try_window): Check bottom scroll margin too.
7223
72242008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7225
7226 * config.in: Regenerate.
7227
7228 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7229 -list-load-path-shadows'.
7230 (nsgui.h): Reduce number of things depending on it.
7231
72322008-08-06 Chong Yidong <cyd@stupidchicken.com>
7233
7234 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7235 instead of window-end which does the wrong thing at eob.
7236 (try_cursor_movement): Minor optimization.
7237 (redisplay_window): If scroll margin is defined, don't assume
7238 window doesn't need scrolling.
7239
72402008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7241
7242 * config.in: Regenerate.
7243
7244 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7245 (mostlyclean): Don't delete *.d under NS.
7246
7247 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7248
72492008-08-06 Kenichi Handa <handa@m17n.org>
7250
7251 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7252
72532008-08-06 Andreas Schwab <schwab@suse.de>
7254
7255 * config.in: Regenerate.
7256
72572008-08-05 Chong Yidong <cyd@stupidchicken.com>
7258
7259 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7260 forcing a window start.
7261
7262 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7263 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7264
72652008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7266
7267 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7268 argument.
7269
72702008-08-05 Juanma Barranquero <lekktu@gmail.com>
7271
7272 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7273 <scroll-down-aggressively, before-change-functions>:
7274 <after-change-functions>: Reflow docstrings.
7275
72762008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7277 Ken Raeburn <raeburn@gnu.org>
7278
7279 Dock menu customization, based on a patch by Ken Raeburn, plus some
7280 other fixes.
7281 * nsmenu.m (dockMenu): New variable.
7282 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7283
7284 * nsterm.h (dockMenu): Declare.
7285
7286 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7287 (ns_term_init): Initialize dockMenu.
7288 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7289 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7290 left.
7291
7292 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7293
72942008-08-04 Chong Yidong <cyd@stupidchicken.com>
7295
7296 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7297
7298 * config.in: Regenerate.
7299
73002008-08-04 Seiji Zenitani <zenitani@mac.com>
7301
7302 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7303
73042008-08-04 Chong Yidong <cyd@stupidchicken.com>
7305
7306 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7307
73082008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7309
7310 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7311
7312 * keyboard.h: Comment an #endif.
7313
7314 * lisp.h (have_menus_p): Adjust comment.
7315
7316 * menu.c (find_and_return_menu_selection): Fix comparison with
7317 client_data.
7318
7319 * nsmenu.m (popup_activated_flag): New variable.
7320 (popup_activated): New function.
7321 (menu-or-popup-active-p): New exported lisp definition.
7322 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7323 when popup done.
7324 (ns_popup_dialog): Set popup_activated_flag.
7325
7326 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7327 version for GNUstep (handled by conditional typedef in nsterm.m).
7328 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7329 in rgb.txt).
7330
7331 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7332
7333 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7334
7335 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7336
7337 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7338 shortcircuit if popup_activated like GTK and X toolkit.
7339
7340 * m/inter386.h: Change DARWIN to DARWIN_OS.
7341
7342 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7343 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7344 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7345 comment on NO_SOCK_SIGIO.
7346
73472008-08-03 Chong Yidong <cyd@stupidchicken.com>
7348
7349 * nsterm.m (windowDidResize): Remove stopModal call.
7350
73512008-08-03 Andreas Schwab <schwab@suse.de>
7352
7353 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7354 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7355
73562008-08-02 Chong Yidong <cyd@stupidchicken.com>
7357
7358 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7359 Don't use uninitialized pointer variable when using getrlimit.
7360
73612008-08-02 Jason Rumney <jasonr@gnu.org>
7362
7363 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7364
73652008-08-02 Eli Zaretskii <eliz@gnu.org>
7366
7367 * alloc.c (NSTATICS): Bump to 0x640.
7368
7369 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7370
7371 * lisp.h: Add prototype for directory_files_internal.
7372
7373 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7374 New functions.
7375 (syms_of_process): Defsubr them. Add initializations for various
7376 Q* symbols used in procfs_system_process_attributes.
7377 (procfs_list_system_processes, procfs_system_process_attributes)
7378 [HAVE_PROCFS]: New functions.
7379 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7380 (procfs_get_total_memory): New functions.
7381
73822008-08-01 Juanma Barranquero <lekktu@gmail.com>
7383
7384 * xfaces.c (Fx_load_color_file): Fix previous change;
7385 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7386
73872008-08-01 Michael Albinus <michael.albinus@gmx.de>
7388
7389 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7390
73912008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7392
7393 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7394
73952008-08-01 Chong Yidong <cyd@stupidchicken.com>
7396
7397 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7398
7399 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7400 define NSApplicationDelegateReplySuccess.
7401 (EmacsView -converstationIdentifier): Use long instead of
7402 NSInteger for GNUstep, since it doesn't have NSInteger.
7403
7404 * xmenu.c: Revert last change.
7405
7406 * keyboard.h: Fix last change.
7407
74082008-08-01 Juanma Barranquero <lekktu@gmail.com>
7409
7410 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7411 on Windows.
7412
74132008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7414
7415 Warning clearing and clean-up in NS port.
7416 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7417 Add prototypes.
7418 * nsgui.h (FACE_DEFAULT): Remove, unused.
7419 (XGCValues): Change colors to unsigned long.
7420 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7421 nsterm.m.
7422 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7423 (ns_list_fonts): Remove, unused.
7424 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7425 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7426 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7427 (nsfont_draw): Compare face colors to 0, not nil.
7428 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7429 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7430 (-addSubmenuWithTitle:): Use NSMenuItem class.
7431 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7432 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7433 (ns_clip_to_row): Make gc arg a BOOL.
7434 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7435 ns_clip_to_row() call.
7436 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7437 used). Cast FRAME_FONT assignments.
7438 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7439 (ns_string_to_lispmod): Change arg to const char.
7440 (ns_term_init): Use NSMenuItem class.
7441 (EmacsApp -openFile:): Move to different section of file.
7442 (EmacsApp -application:openFiles:): Don't return a value, call
7443 -replyToOpenOrPrint:.
7444 (EmacsView -keyDown:): Fix up cast.
7445 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7446 (EmacsView -menuDown:): Cast tag in call to
7447 find_and_call_menu_selection().
7448 (ns_list_fonts): Remove, unused.
7449 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7450 (ns_fontname_to_xlfd): Make static.
7451 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7452 Remove prototypes (now in keyboard.h).
7453 (next_menubar_widget_id): Remove, unused.
7454 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7455 Remove prototypes (now in keyboard.h).
7456 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7457
74582008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7459
7460 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7461 (floatfns.o): Depend on syssignal.h.
7462 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7463
7464 * systty.h: Fix previous change that removed BSD_TERMIOS.
7465 Add comments to #ifdefs.
7466
74672008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7468
7469 * w32fns.c (w32-load-color-file): Remove.
7470 (x-open-connection): Use renamed Fx_load_color_file.
7471 * xfaces.c (x-load-color-file): Add.
7472 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7473 Emacs.clr.
7474 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7475
74762008-07-31 Michael Albinus <michael.albinus@gmx.de>
7477
7478 * dbusbind.c (Fdbus_call_method_asynchronously)
7479 (Fdbus_method_error_internal): New defuns.
7480 (xd_read_message): Handle also reply messages.
7481 (Vdbus_registered_functions_table): Extend docstring.
7482
74832008-07-31 Juanma Barranquero <lekktu@gmail.com>
7484
7485 * keyboard.c (gobble_input): Fix previous change.
7486
74872008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7488
7489 * bitmaps/README:
7490 * xfns.c:
7491 * termcap.c:
7492 * term.c:
7493 * syswait.h:
7494 * systty.h:
7495 * systime.h:
7496 * syssignal.h:
7497 * sysdep.c:
7498 * process.h:
7499 * process.c:
7500 * print.c:
7501 * ndir.h:
7502 * lread.c:
7503 * keyboard.c:
7504 * getpagesize.h:
7505 * floatfns.c:
7506 * fileio.c:
7507 * emacs.c:
7508 * doc.c:
7509 * dispnew.c:
7510 * dired.c:
7511 * data.c:
7512 * callproc.c:
7513 * buffer.c:
7514 * README:
7515 * Makefile.in:
7516 * s/template.h:
7517 * s/msdos.h:
7518 * m/vax.h: Remove VMS support.
7519 * s/vms.h:
7520 * vlimit.h:
7521 * uaf.h:
7522 * temacs.opt:
7523 * param.h:
7524 * ioctl.h: Remove file.
7525
75262008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7527
7528 * s/ms-w32.h (MULTI_KBOARD): Remove.
7529 * xterm.c:
7530 * xselect.c:
7531 * xfns.c:
7532 * window.c:
7533 * w32term.c:
7534 * w32fns.c:
7535 * terminal.c:
7536 * termhooks.h:
7537 * term.c:
7538 * sysdep.c:
7539 * keyboard.h:
7540 * keyboard.c:
7541 * frame.h:
7542 * frame.c:
7543 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7544 * config.in: Regenerate.
7545
75462008-07-30 Jason Rumney <jasonr@gnu.org>
7547
7548 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
7549
7550 * w32font.c (w32font_encode_char): Leave as unicode if in range.
7551 (w32font_open_internal): Get unicode version of textmetrics.
7552 Don't enable or disable glyph indices here.
7553 (w32font_open): Disable use of glyph indices.
7554
7555 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
7556
75572008-07-30 Chong Yidong <cyd@stupidchicken.com>
7558
7559 * minibuf.c (Vread_buffer_function): Doc fix.
7560
75612008-07-30 John Paul Wallington <jpw@pobox.com>
7562
7563 * minibuf.c (read_buffer_completion_ignore_case): New var.
7564 (Fread_buffer): Use it.
7565
75662008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
7567
7568 * systty.h (sensemode): Remove empty #if. Remove reference to
7569 BSD_TERMIOS, unused.
7570
7571 * sysdep.c: Remove reference to DGUX.
7572 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
7573
7574 * config.in: Regenerate.
7575
75762008-07-30 Jason Rumney <jasonr@gnu.org>
7577
7578 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
7579
75802008-07-29 Jason Rumney <jasonr@gnu.org>
7581
7582 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
7583 is populated.
7584 (uniscribe_encode_char): Always use uniscribe.
7585 Avoid using context if cache is populated.
7586
75872008-07-29 Jan Djärv <jan.h.d@swipnet.se>
7588
7589 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
7590 open menu.
7591
7592 * gtkutil.c (menu_nav_ended): Remove.
7593 (create_menus): Remove signal connect for menu_nav_ended.
7594
75952008-07-28 Chong Yidong <cyd@stupidchicken.com>
7596
7597 * xdisp.c (redisplay_window): Check return value of
7598 compute_window_start_on_continuation_line before forcing a window
7599 start.
7600
76012008-07-28 Jason Rumney <jasonr@gnu.org>
7602
7603 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
7604
7605 * w32term.c (w32_enable_unicode_output, cleartype_active):
7606 Remove obsolete display options.
7607 (x_draw_glyph_string_background): Don't use old cleartype_active
7608 workaround.
7609 (w32_initialize): Remove cleartype_active initialization.
7610 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
7611
76122008-07-28 Andreas Schwab <schwab@suse.de>
7613
7614 * lisp.h (init_weak_hash_tables, syms_of_font)
7615 (xd_read_queued_messages, syms_of_dbusbind): Declare.
7616 (remove_hash_entry): Don't declare.
7617 * eval.c (maybe_call_debugger): Make static and move before use.
7618 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
7619 * xdisp.c: Include "gtkutil.h" if USE_GTK.
7620 * xterm.h (x_set_frame_alpha): Declare.
7621
76222008-07-28 Jan Djärv <jan.h.d@swipnet.se>
7623
7624 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
7625 (create_menus): Connect selection-done to menu_nav_ended.
7626
76272008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7628
7629 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
7630 Set Vx_resource_name to a fallback. Replace read of 'buffered'
7631 parameter with read of 'alpha' one.
7632 (Qns_frame_parameter): Remove.
5582fbc7 7633 * nsselect.m (selection-coding-system)
aac0c6e3
MR
7634 (next-selection-coding-system, Vselection_coding_system)
7635 (Vnext_selection_coding_system): Drop.
7636
76372008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7638
7639 * nsfns.m (do-applescript, do_applescript): Rename to
7640 ns-do-applescript, ns_do_applescript, and move within file.
7641
76422008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7643
7644 Remove support for Mac Carbon.
7645 * mactoolbox.c:
7646 * macterm.h:
7647 * macterm.c:
7648 * macselect.c:
7649 * macmenu.c:
7650 * macgui.h:
7651 * macfns.c:
7652 * mac.c: Remove file.
7653 * s/darwin.h:
7654 * m/intel386.h:
7655 * xfaces.c:
7656 * xdisp.c:
7657 * window.c:
7658 * tparam.c:
7659 * termhooks.h:
7660 * termcap.c:
7661 * term.c:
7662 * syssignal.h:
7663 * sysselect.h:
7664 * sysdep.c:
7665 * process.c:
7666 * lread.c:
7667 * lisp.h:
7668 * keyboard.c:
7669 * image.c:
7670 * fringe.c:
7671 * frame.h:
7672 * frame.c:
7673 * fontset.c:
7674 * font.h:
7675 * font.c:
7676 * fns.c:
7677 * fileio.c:
7678 * emacs.c:
7679 * dispnew.c:
7680 * dispextern.h:
7681 * config.in:
7682 * atimer.c:
2ae37cf0 7683 * Makefile.in: Remove code for Carbon.
aac0c6e3 7684
f0131492 76852008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
7686
7687 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
7688
76892008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7690
7691 * macterm.h (kCGBitmapByteOrder32Host): New define for
7692 non-universal SDKs.
7693
7694 * image.c (mac_create_cg_image_from_image, image_load_image_io)
7695 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7696
7697 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
7698 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7699
77002008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
7701
7702 * w32inevt.c: Include dispextern.h.
7703
77042008-07-26 Andreas Schwab <schwab@suse.de>
7705
7706 * print.c (print_object): Fix off-by-one in last change.
7707
77082008-07-25 Juanma Barranquero <lekktu@gmail.com>
7709
7710 * term.c (syms_of_term): Don't initialize default_orig_pair,
7711 default_set_foreground and default_set_background on Windows.
7712
77132008-07-25 Jason Rumney <jasonr@gnu.org>
7714
7715 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
7716 ScriptItemize. Clean up return value checking. Remove unused
7717 variables.
7718 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
7719 shaping engine.
7720
7721 * w32font.c (w32font_has_char): Handle the case where we can't
7722 determine the script for a character.
7723
77242008-07-25 Chong Yidong <cyd@stupidchicken.com>
7725
7726 * term.c (syms_of_term): Initialize default_orig_pair,
7727 default_set_foreground, and default_set_background.
7728
7729 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7730 clash (bug#86).
7731 (getloadavg): Callers changed.
7732
7733 * image.c (svg_load_image): Fix last change.
7734 (svg_load_image): Use rsvg_handle_get_dimensions to check that
7735 image size is valid. Use g_object_unref instead of deprecated
7736 rsvg_handle_free to free rsvg handle.
7737 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7738
77392008-07-25 Jason Rumney <jasonr@gnu.org>
7740
7741 * w32font.c (w32font_encode_char): Encode characters outside BMP as
7742 surrogates before looking up glyph index.
7743 (w32font_text_extents): Encode as surrogates if falling back to
7744 functions that need UTF-16 wide chars.
7745
7746 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
7747 BMP as surrogates before looking up glyph index.
7748
77492008-07-25 Chong Yidong <cyd@stupidchicken.com>
7750
7751 * image.c (svg_load_image): Check for failure in return value of
7752 rsvg_handle_get_pixbuf. Free rsvg handle when done.
7753
77542008-07-25 Jason Rumney <jasonr@gnu.org>
7755
7756 * w32font.c (Fx_select_font): Reverse sense of second arg.
7757
77582008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
7759
7760 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
7761 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
7762
7763 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
7764 (PURESIZE): Use it.
7765
77662008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7767
7768 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
7769 * m/alpha.h (TEXT_END):
7770 * m/ibmrs6000.h (TEXT_END):
7771 * m/macppc.h (TEXT_END):
7772 * s/darwin.h (TEXT_END):
7773 * s/msdos.h (TEXT_END): Remove, unused.
7774 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
7775 * s/cygwin.h: Remove comment.
7776
7777 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
7778 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
7779 * m/intel386.h (DOT_GLOBAL_START):
7780 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
7781 (USG): Remove, file not used on USG platforms.
7782
7783 * Makefile.in (HAVE_X11): Remove empty #else.
7784
77852008-07-24 Andreas Schwab <schwab@suse.de>
7786
7787 * fileio.c (Finsert_file_contents): Properly adjust undo list
7788 after format conversion.
7789
77902008-07-24 Jan Djärv <jan.h.d@swipnet.se>
7791
7792 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
7793 (menu_nav_ended): Remove.
7794 (create_menus): Remove signal connect for menu_nav_ended.
7795 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
7796 create_menus.
7797 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
7798
77992008-07-23 Jason Rumney <jasonr@gnu.org>
7800
7801 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
7802 with opened font.
7803 (w32font_open): Set font type to gdi.
7804
7805 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
7806
78072008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
7808
7809 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
7810 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
7811 defines it.
7812 * unexec.c (ADDR_CORRECT): Define unconditionally.
7813
7814 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
7815
7816 * unexec.c: Remove code depending on !COFF and USG, the file is
7817 not used for such systems.
7818
7819 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
7820 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
7821 (LD_SWITCH_SYSTEM_1): Remove, update users.
7822
7823 * s/darwin.h (DATA_END):
7824 * m/intel386.h (DATA_END):
7825 * m/ibmrs6000.h (DATA_END):
7826 * m/alpha.h (DATA_END): Remove, unused.
7827
7828 * config.in: Regenerate.
7829 * s/ms-w32.h (subprocesses): Define unconditionally.
7830 * s/template.h (subprocesses): Update comment.
7831 * s/vms.h (subprocesses):
7832 * s/usg5-4.h (subprocesses):
7833 * s/hpux10-20.h (subprocesses):
7834 * s/gnu-linux.h (subprocesses):
7835 * s/cygwin.h (subprocesses):
7836 * s/bsd-common.h (subprocesses):
7837 * s/aix4-2.h (subprocesses):
7838 * s/darwin.h (subprocesses): Do not define, defined by default now.
7839
7840 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
7841 Remove all references.
7842 (temacs): Add GNUstep specific ld flags.
7843
7844 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
7845 similarly to what X does.
7846
78472008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7848
7849 * nsfns.m (x-list-fonts): Remove.
7850 (syms_of_nsfns): Drop the x-list-fonts declaration.
7851 * nsterm.m: Get rid of remaining "//" comments.
7852
78532008-07-22 Chong Yidong <cyd@stupidchicken.com>
7854
7855 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
7856
7857 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
7858 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
7859 (Fns_own_selection_internal, Fx_disown_selection_internal)
7860 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
7861
7862 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
7863 ... */' style of docstrings. Doc fixes.
7864
78652008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7866
7867 * terminfo.c (UP, BC, PC): Undo previous change.
7868
7869 * nsfns.m: Rename ns prefixed functions/variables to the
7870 corresponding x versions. Update references.
7871
78722008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7873
7874 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7875
78762008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7877
7878 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7879 Remove forwarding functions.
7880 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7881 non-static.
7882 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7883 non-static.
7884 (ns_frame_parm_handlers): Use the new names.
7885 (syms_of_nsfns): Move to the end of file.
7886
7887 * nsterm.m (syms_of_nsterm): Move to the end of file.
7888
7889 * dispnew.c (init_display): Remove code for X10.
7890
78912008-07-22 Jason Rumney <jasonr@gnu.org>
7892
7893 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7894 bare drive.
7895
78962008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7897
7898 * nsterm.m (syms_of_nsterm): Remove debugging println.
7899
79002008-07-22 David Reitter <david.reitter@gmail.com>
7901
7902 * nsfns.m (do_applescript, F_do_applescript): NS version of the
7903 Carbon implementation of the same functionality: execute arbitrary
7904 AppleScript code.
7905
79062008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7907
7908 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
7909 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
7910 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7911 (Fx_display_mm_height, Fx_display_mm_width)
7912 (Fx_display_backing_store, Fx_display_visual_class)
7913 (Fx_display_save_under, Fx_open_connection)
7914 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
7915 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
7916 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7917 (Fx_display_pixel_width, Fx_display_pixel_height)
7918 (Fx_display_usable_bounds, Fx_display_planes)
7919 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
7920 ... */' style of docstrings.
7921
79222008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
7923
7924 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
7925 on this platform.
7926 (mips):
7927 * m/iris4d.h (mips): Do not define.
7928 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
7929
7930 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
7931
7932 * image.c:
7933 * nsfns.m:
7934 * nsselect.m:
7935 * nsterm.h:
7936 * nsterm.m: Rename ns prefixed functions/variables to the
7937 corresponding x versions. Update references.
7938
7939 * m/ibms390x.h (NO_REMAP): Do not undefine.
7940
7941 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
7942
79432008-07-21 Chong Yidong <cyd@stupidchicken.com>
7944
7945 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
7946 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
7947 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
7948 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7949 (Fns_display_mm_height, Fns_display_mm_width)
7950 (Fns_display_backing_store, Fns_display_visual_class)
7951 (Fns_display_save_under, Fns_open_connection)
7952 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
7953 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
7954 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7955 (Fns_display_pixel_width, Fns_display_pixel_height)
7956 (Fns_display_usable_bounds, Fx_display_planes)
7957 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7958
79592008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7960
7961 * print.c (print_object): Check print_depth before searching for
7962 circularities.
7963
79642008-07-21 Michael Albinus <michael.albinus@gmx.de>
7965
7966 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7967 only sprintf.
7968
79692008-07-21 Kenichi Handa <handa@m17n.org>
7970
7971 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7972
79732008-07-20 Andreas Schwab <schwab@suse.de>
7974
7975 * syntax.c (find_start_pos, find_start_value)
7976 (find_start_value_byte, find_start_begv, find_defun_start)
7977 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7978
79792008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7980
7981 * s/sol2-3.h: Insert contents of s/sol2.h.
7982 (LD_SWITCH_SYSTEM): Remove redundant definition.
7983 * s/sol2.h: Remove, unused.
7984
79852008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7986
7987 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7988
79892008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7990
7991 * Makefile.in (ns_appdir): Fix typo in find command.
7992
79932008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7994
7995 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7996
7997 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7998 added not supported anymore.
7999
8000 * s/usg5-4-2.h (LIBS_SYSTEM):
8001 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8002
8003 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8004 * s/lynxos.h (GETPGRP_NO_ARG):
8005 * s/hpux10-20.h (NO_SIOCTL_H):
8006 * s/gnu.h (GETPGRP_NO_ARG):
8007 * s/gnu-linux.h (NO_SIOCTL_H):
8008 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8009 * s/cygwin.h (GETPGRP_NO_ARG):
8010 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8011 (C_DEBUG_SWITCH): Remove duplicate definition.
8012
8013 * m/ibms390.h: Remove boilerplate comments.
8014
8015 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8016
8017 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8018 (wait_reading_process_output): Remove code for SunOS, platform not
8019 supported anymore. Use SOLARIS2 instead of sun.
8020
80212008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8022
8023 * font.c (font_open_by_name): Under NS, default lface height to zero.
8024 (font_open_for_lface): Under NS, set size based on frame fontsize.
8025 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8026 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8027
80282008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8029
8030 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8031 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8032 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8033 YES/NO.
8034 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8035 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8036 * Makefile.in (clean): Clear out build destination dir.
8037
80382008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8039
8040 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8041 xterm, xselect.
8042 * lisp.h: Remove declaration of hash_remove.
8043 * nsgui.h: Remove redefinitions of hash_remove.
8044 * fns.c (hash_remove): Rename to hash_remove_from_table.
8045
80462008-07-19 Seiji Zenitani <zenitani@mac.com>
8047
8048 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8049 strdup() the family UTF8String before modifying it.
8050
80512008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8052
8053 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8054 NS_FACE_BACKGROUND with 0 instead of nil.
8055 * nsfont.m (nsfont_draw): Same.
8056
80572008-07-19 Chong Yidong <cyd@stupidchicken.com>
8058
8059 * nsfns.m (ns_set_background_color): Fix crash.
8060
80612008-07-18 Chong Yidong <cyd@stupidchicken.com>
8062
8063 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8064
80652008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8066
8067 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8068
80692008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8070
8071 * gtkutil.c: Include <config.h> instead of "config.h".
8072
8073 * lisp.h (Foverlay_buffer): Add EXFUN.
8074
8075 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8076 child process to complete child_setup. Undo 2005-09-21 change.
8077
8078 * s/darwin.h: Mention setsid after vfork.
8079
80802008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8081
8082 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8083 Depend on macgui.h.
8084
8085 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8086 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8087
8088 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8089 and f19.
8090 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8091
8092 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8093 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8094 Remove enumerators.
8095
8096 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8097 Check if FACE_FROM_ID returns NULL.
8098
80992008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8100
8101 * w32inevt.c (change_frame_size): Remove extern declaration.
8102 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8103 change_frame_size.
8104
81052008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8106
8107 * getloadavg.c: Revert last change (2008-07-15).
8108
81092008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8110
8111 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 8112 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
8113 from configure.
8114
81152008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8116
8117 * s/sol2.h:
8118 * s/sol2-4.h: Reorganize conditionals.
8119
8120 * ecrt0.c: Remove code depending on m68000, not used anymore.
8121
8122 * fns.c (hash_remove): Make static.
8123 * lisp.h (hash_remove): Don't prototype.
8124
8125 * m/ibmrs6000.h:
8126 * m/ibms390x.h:
8127 * m/macppc.h: Remove boilerplate comments.
8128
8129 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8130 Solaris, which does not need them.
8131
8132 * m/vax.h: Remove comments about unsupported systems.
8133
8134 * s/darwin.h: Reorganize ifdefs.
8135
81362008-07-17 Andreas Schwab <schwab@suse.de>
8137
8138 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8139
81402008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8141
8142 Use SDATA. Follow coding convention of placing operators at
8143 beginning of next line rather than end of previous line, and placing
8144 spaces around infix operators.
8145
8146 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8147 in case it was defined already.
8148 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8149 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8150 ns_default.
8151 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8152 Lisp_Objects.
8153 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8154 (ns_defined_color, ns_color_to_lisp): Declare.
8155 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8156 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8157 it's accepted even with USE_LISP_UNION_TYPE.
8158 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8159 (update_frame_tool_bar): Remove apparently obsolete tests for
8160 non-integerness of f->tool_bar_lines.
8161 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8162 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8163 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8164 (nsfont_open): Don't confuse NULL for Qnil.
8165 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8166 * menu.h (find_and_call_menu_selection):
8167 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8168 (find_and_return_menu_selection): Always return something.
8169 * frame.h: Include dispextern.h for Display_Info.
8170 (display_x_get_resource): Declare.
8171
81722008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8173
8174 * syntax.c: Remove stdio.h include accidentally introduced in
8175 Emacs.app commit.
8176 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8177 NS_IMPL_COCOA.
8178 * keyboard.c (handle_async_input, input_available_signal): Remove
8179 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8180
81812008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8182
8183 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8184 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8185 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8186 Use SDATA.
8187
8188 * keymap.c: Remove all NS-specific code.
8189 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8190 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8191 where_is_preferred_modifier, return a different value depending on how
8192 preferred is the binding.
8193 (where_is_internal): Adjust accordingly.
8194 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8195 Adjust to new preferred_sequence_p.
8196 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8197 * keyboard.c (parse_solitary_modifier): Not static any more.
8198 * keyboard.h (parse_solitary_modifier): Declare.
8199
82002008-07-16 Andreas Schwab <schwab@suse.de>
8201
8202 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8203 of easymenu.
8204
82052008-07-16 Chong Yidong <cyd@stupidchicken.com>
8206
8207 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8208 that we don't move off the line.
8209
82102008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8211
8212 * keyboard.c (Qsuper): Remove.
8213 (parse_menu_item): Don't call where_is_internal specially for NS.
8214
82152008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8216
8217 * s/gnu-linux.h: Remove boilerplate comments.
8218
8219 * m/alpha.h (__ELF__): Consolidate conditions.
8220
8221 * m/m68k.h (linux): Use GNU_LINUX instead.
8222 Remove boilerplate comments.
8223
8224 * m/intel386.h: Undo refactoring from previous change.
8225 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8226 too, remove dead code.
8227 (linux): Use GNU_LINUX instead.
8228
82292008-07-16 Jason Rumney <jasonr@gnu.org>
8230
8231 * w32gui.h: Repeat 26 June changes lost by last change.
8232
82332008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8234
8235 * systty.h: Remove code for Aix on 386, unsupported platform.
8236
8237 * s/ms-w32.h: Remove boilerplate comments.
8238 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8239
8240 * s/gnu-linux.h (TERM): Remove support.
8241 (HAVE_SYSVIPC): Remove, unused.
8242 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8243 for this system.
8244
8245 * process.c: Remove support for IRIS, unused.
8246 Remove support for TERM, not relevant anymore.
8247
8248 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8249 used with the definition.
8250
8251 * s/aix4-2.h (static): Do not undef.
8252
8253 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8254 only used on Aix.
8255 (HAVE_SYSVIPC): Remove, unused.
8256
8257 * m/hp800.h (CANNOT_DUMP): Do not undef.
8258
8259 * m/alpha.h: Fix comment.
8260
8261 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8262 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8263 used by this configuration.
8264 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8265 * unexec.c: Remove code depending on HPUX and
8266 USG_SHARED_LIBRARIES, not used with this file. Remove code
8267 depending on IRIS, unused. Remove if 0-ed code.
8268
8269 * s/template.h: Remove comments about static.
8270
8271 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8272 Remove if 0-ed code.
8273 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8274 were the same as the default.
8275 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8276 Remove boilerplate comments.
8277 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8278 (HAVE_SYSVIPC): Remove, unused.
8279 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8280
8281 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8282 Remove boilerplate comments.
8283 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8284 Remove boilerplate comments.
8285 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8286 Remove boilerplate comments.
8287 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8288
8289 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8290 USG systems which do not use DATA_SEG_BITS.
8291 Refactor code. Remove boilerplate comments.
8292
8293 * m/ibms390.h:
8294 * m/m68k.h:
8295 * s/bsd-common.h:
8296 * s/cygwin.h:
8297 * s/darwin.h:
8298 * s/freebsd.h:
8299 * s/gnu.h:
8300 * s/msdos.h: Remove boilerplate comments.
8301
8302 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 8303 do not use this file.
aac0c6e3
MR
8304 (IRIS_4D): Remove, unused.
8305
8306 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 8307 do not use this file.
aac0c6e3
MR
8308 (SIGN_EXTEND_CHAR):
8309 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8310 * unexmips.c: Remove file, unused.
8311
8312 * editfns.c (Fuser_full_name): Replace the only use of
8313 USER_FULL_NAME with its value.
8314 * config.in: Regenerate.
8315
83162008-07-16 David Reitter <david.reitter@gmail.com>
8317
8318 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8319 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8320
83212008-07-16 Glenn Morris <rgm@gnu.org>
8322
8323 * emacs.c (system-type): Doc fix.
8324
83252008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8326
8327 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8328 If the cache doesn't work, let's fix it, rather than work around it.
8329
83302008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8331
8332 * Makefile.in: Correct additions for nsfont.o in last commit.
8333 * nsfont.m: New file (forgot last commit).
8334
83352008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8336
8337 * callproc.c (set_initial_environment): Initialize
8338 Vprocess_environment under CANNOT_DUMP (fixes crash when
8339 batch-compiling for bootstrap).
8340
83412008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8342 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8343
8344 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8345 fix crash due to different init order.
8346
83472008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8348
8349 Changes and additions for NeXTstep windowing system (Cocoa and
8350 GNUstep) support.
8351
8352 * Makefile.in:
8353 * config.in: Support defines and build commands for NS port.
8354 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8355 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8356 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8357 windowing.
8358 (struct face): Add synth_ital field.
8359 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8360 (init_display): Initialize Vinitial_window_system to "ns" when so
8361 compiled.
8362 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8363 (display_arg): Use under NS.
8364 (main): Under NS, allocate autorelease pool and handle command line
8365 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8366 (standard_args): Add NS-specific args.
8367 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8368 * font.c (DEFAULT_ENCODING): New variable.
8369 (font_find_for_lface): Use it.
8370 (syms_of_font): Load syms_of_nsfont under NS.
8371 * font.h: Declare nsfont_driver when compiled under NS.
8372 * fontset.c: When compiling under NS, include nsterm.h.
8373 (fontset_from_font): Autoconstruct fontset under NS.
8374 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8375 symbol, document and use it.
8376 (do_switch_frame): When for_deletion under Cocoa, add
8377 Fraise_frame(Qnil).
8378 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8379 (x_get_arg): Allow "yes" and "no" as boolean values.
8380 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8381 Qright under Cocoa.
8382 (focus-follows-mouse): Default to 0 under NS.
8383 * frame.h (enum output_method): Add output_ns.
8384 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8385 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8386 (FRAME_WINDOW_P): NS-specific definition.
8387 * fringe.c (max_used_fringe_bitmap): Make public.
8388 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8389 (getloadavg): Use NeXT code under descendant OS's.
8390 * image.c (includes and header section, x_create_bitmap_from_data)
8391 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8392 (image_background_transparent, x_clear_image_1)
8393 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8394 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8395 (x_to_xcolors, x_from_xcolors, x_disable_image)
8396 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8397 other GUIs, including XPM support using code originally written for
8398 Carbon GUI.
8399 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8400 using NS API.
8401 (image_ascent): Use font metrics macros instead of direct struct field
8402 access.
8403 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8404 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8405 Also, handle NS as GTK for menu bar purposes.
8406 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8407 toolkit where they differ.
8408 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8409 use cachelist, still needed under NS.
8410 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8411 (struct widget_value): Define it here for menu.c.
8412 * keymap.c (includes): Include modifier internals.
8413 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8414 NS.
8415 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8416 support for preferring sequences using certain modifiers, specified by
8417 the FIRSTONLY argument.
8418 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8419 under NS GNUstep implementation.
8420 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8421 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8422 * menu.c: Include nsterm.h under NS.
8423 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8424 (free_menubar_widget_tree_value, update_submenu_strings)
8425 (find_and_call_menu_selection): Treat NS as X and NT.
8426 (find_and_return_menu_selection): New function, used for popup menus.
8427 * nsgui.h:
8428 * nsterm.h:
8429 * nsfns.m:
8430 * nsimage.m:
8431 * nsmenu.m:
8432 * nsselect.m:
8433 * nsterm.m: New files.
8434 * process.c (wait_reading_process_output): Under NS, call ns_select()
8435 instead of plain select().
8436 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8437 beginning of buffer.
8438 * sysselect.h (init_process): Rename when compiling under Cocoa to
8439 avoid name conflict.
8440 * termhooks.h (display_info): Add ns_display_info to union.
8441 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8442 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8443 COCOA environment.
8444 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8445 unexec() signature. (Note, this will dump, but the resulting file
8446 crashes; unexosx is used instead; keeping around for reference and
8447 possible aid in getting dump working under GNUstep.)
8448 * w32gui.h (button_type, widget_value): Remove definitions (now in
8449 keyboard.h).
8450 * window.c: Include nsterm.h when compiling under NS.
8451 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8452 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8453 other GUI windowing systems.
8454 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8455 GTK.
8456 (x_consider_frame_title): Under NS, set icon type and frame
8457 modified-state indicator; use ns_set_name_as_filename() when using
8458 formatted title.
8459 (update_window_cursor): Make public when compiling under NS.
8460 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8461 (hourglass_atimer, Vhourglass_delay
8462 * xfaces.c (header section, init_frame_faces, clear_font_table)
8463 (defined_color, unload_color, x_face_list_fonts)
8464 (prepare_face_for_display): Add NS support parallel to other GUIs.
8465 Emulate GCs like other non-X GUIs.
8466 (split_font_name): Don't lowercase font name under NS.
8467 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8468 under NS.
8469 * s/darwin.h: Add support for compilation under NS.
8470
84712008-07-15 Jason Rumney <jasonr@gnu.org>
8472
8473 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8474 (w32_show_hourglass): Rename from show_hourglass.
8475 (w32_hide_hourglass): Rename from hide_hourglass.
8476 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8477 (Vhourglass_delay): Declare extern.
8478 (hourglass_started): Remove.
8479
8480 * xdisp.c (Vhourglass_delay): Remove static.
8481 (hourglass_started, start_hourglass, cancel_hourglass):
8482 Don't include these versions on WINDOWSNT.
8483
84842008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8485
8486 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8487 variables (formerly in xfns.c).
8488 (show_hourglass, hide_hourglass): New prototypes (same).
8489 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8490 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8491 in xfns.c).
8492 (syms_of_xdisp): Declare/initialize display-hourglass,
8493 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8494 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8495 formerly in xfns.c.
8496 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8497 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8498 (start_hourglass, cancel_hourglass): Remove.
8499 (show_hourglass, hide_hourglass): Remove prototypes and static
8500 modifiers.
8501 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8502 hourglass_atimer, hourglass_shown_p declaration/initialization.
8503 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8504 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8505 (start_hourglass, cancel_hourglass): Remove.
8506 (show_hourglass, hide_hourglass): Remove prototypes and static
8507 modifiers.
8508 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8509 hourglass_atimer, hourglass_shown_p declaration/initialization.
8510 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8511 (DEFAULT_HOURGLASS_DELAY): Remove.
8512 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8513 hourglass_shown_p declaration/initialization.
8514
85152008-07-14 Jason Rumney <jasonr@gnu.org>
8516
8517 * w32fns.c (w32_get_arg): Remove wrapper function.
8518 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8519 directly.
8520 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8521
85222008-07-14 Kenichi Handa <handa@m17n.org>
8523
8524 * xfont.c (xfont_open): Add workaround for X's bug.
8525
85262008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8527
8528 * fontset.c: Include <stdio.h> unconditionally.
8529
85302008-07-13 Michael Albinus <michael.albinus@gmx.de>
8531
8532 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8533 for filtering.
8534
85352008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8536
8537 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8538
8539 * m/macppc.h:
8540 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8541
8542 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8543 (SPECIAL_EMACS_INT):
8544 * m/ia64.h (SPECIAL_EMACS_INT):
8545 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8546 * s/gnu.h (NLIST_STRUCT):
8547 * s/aix4-2.h (X11R5_INHIBIT_I18N):
8548 * s/gnu-linux.h (LINUX):
8549 * s/msdos.h (HAVE_FACES):
8550 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
8551
8552 * systty.h:
8553 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
8554 anymore.
8555
85562008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
8557
8558 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
8559 always defined as int.
8560
8561 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
8562 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
8563 * s/gnu-linux.h (HAVE_WAIT_HEADER):
8564 * s/freebsd.h (HAVE_WAIT_HEADER):
8565 * s/bsd-common.h (HAVE_UNION_WAIT):
8566 * s/aix4-2.h (HAVE_WAIT_HEADER):
8567 * m/mips.h (HAVE_UNION_WAIT):
8568 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
8569 (COFF, static): Do not define, they are undefined later in the file.
8570
8571 * process.c (update_status): Don't use a union.
8572 (status_convert):
8573 (sigchld_handler): Use int instead of WAITTYPE.
8574
85752008-07-12 Chong Yidong <cyd@stupidchicken.com>
8576
8577 * indent.c (Fvertical_motion): Restore hscroll before moving to
8578 goal column.
8579
85802008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8581
8582 * lisp.h: Remove left over code.
8583
85842008-07-11 Andreas Schwab <schwab@suse.de>
8585
8586 * lisp.h: Fix logic in last change.
8587
8588 * menu.h: New file.
8589 * menu.c: Include it.
8590 * xmenu.c: Likewise.
8591 * Makefile.in: Update dependencies.
8592
85932008-07-11 Kenichi Handa <handa@m17n.org>
8594
8595 * fontset.c (fontset_from_font): Cancel the previous change.
8596
85972008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8598
8599 * lisp.h:
8600 * w32heap.c:
8601 * emacs.c:
8602 * alloc.c: Replace all references of NO_UNION_TYPE with
8603 USE_LISP_UNION_TYPE.
8604
8605 * m/xtensa.h (NO_UNION_TYPE):
8606 * m/vax.h (NO_UNION_TYPE):
8607 * m/template.h (NO_UNION_TYPE):
8608 * m/sparc.h (NO_UNION_TYPE):
8609 * m/mips.h (NO_UNION_TYPE):
8610 * m/macppc.h (NO_UNION_TYPE):
8611 * m/m68k.h (NO_UNION_TYPE):
8612 * m/iris4d.h (NO_UNION_TYPE):
8613 * m/intel386.h (NO_UNION_TYPE):
8614 * m/ibms390x.h (NO_UNION_TYPE):
8615 * m/ibms390.h (NO_UNION_TYPE):
8616 * m/ibmrs6000.h (NO_UNION_TYPE):
8617 * m/ia64.h (NO_UNION_TYPE):
8618 * m/hp800.h (NO_UNION_TYPE):
8619 * m/arm.h (NO_UNION_TYPE):
8620 * m/amdx86-64.h (NO_UNION_TYPE):
8621 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
8622 defining it the same.
8623
86242008-07-10 Chong Yidong <cyd@stupidchicken.com>
8625
8626 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
8627
86282008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8629
8630 * fileio.c:
8631 * sysdep.c
8632 * systty.h:
8633 * m/ibmrs6000.h:
8634 * m/iris4d.h:
8635 * s/aix4-2.h:
8636 * s/freebsd.h:
8637 * s/gnu-linux.h:
8638 * s/hpux10-20.h:
8639 * s/hpux11.h:
8640 * s/netbsd.h:
8641 * s/sol2-3.h:
8642 * s/sol2-4.h:
8643 * s/sol2.h:
8644 * s/usg5-4.h:
8645 * s/vms.h: Remove references to unused variables.
8646
86472008-07-10 Andreas Schwab <schwab@suse.de>
8648
8649 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
8650 pattern before matching the generic family.
8651
86522008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8653
8654 * unexec.c:
8655 * s/vms.h:
8656 * s/usg5-4-2.h:
8657 * s/sol2-5.h:
8658 * s/freebsd.h:
8659 * s/darwin.h: Remove dead code.
8660
8661 * m/template.h:
8662 * m/sparc.h:
8663 * m/mips.h:
8664 * m/m68k.h:
8665 * m/iris4d.h:
8666 * m/intel386.h:
8667 * m/ibms390x.h:
8668 * m/ibms390.h:
8669 * m/ia64.h:
8670 * m/hp800.h:
8671 * m/arm.h:
8672 * m/amdx86-64.h: Remove dead code and references to unused
8673 and compiler defined symbols.
8674
8675 * unexmips.c:
8676 * unexelf.c: Remove references to desupported systems.
8677
8678 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
8679
8680 * m/powermac.h: Remove boilerplate comments.
8681 (NO_REMAP): Remove unused definition.
8682
8683 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
8684 define them.
8685
86862008-07-10 Kenichi Handa <handa@m17n.org>
8687
8688 * xfont.c (xfont_open): Log the reason of failure.
8689
86902008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
8691
8692 * fontset.c (fontset_get_font_group):
8693 * font.c (font_check_otf): Specify argument types.
8694
86952008-07-09 Kenichi Handa <handa@m17n.org>
8696
8697 * coding.c (detect_coding_utf_8): Set detect_info->found only when
8698 non-ASCII char is found.
8699
8700 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
8701 (reorder_font_vector): Change the arg preferred_family to font.
8702 Prefer the spec matching with font.
8703 (fontset_get_font_group): New function.
8704 (fontset_find_font): Change the format of an element of a realized
8705 fontset. Use fontset_get_font_group.
8706 (fontset_font): Try the current fontset, the default fontset, the
8707 fallbacks of the current fontset, and the fallbacks of the default
8708 fontset in this order.
8709 (face_for_char): Delete the shortcut to use the current font.
8710 (fontset_from_font): Don't set fonts for Latin in the fontset.
8711
8712 * font.h (font_make_object, font_match_p): Adjust prototypes.
8713
8714 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
8715
8716 * font.c (font_make_object): New arg entity and pixelsize.
8717 (font_check_otf_features, font_check_otf): New functions.
8718 (font_match_p): Check :lang, :script, and :otf properties.
8719
8720 * xfont.c (xfont_open): Adjust it for the change of
8721 font_make_object.
8722 (xfont_text_extents): Fix initial setting of metrics.
8723
8724 * ftfont.c (struct ftfont_info): New member index, delete member
8725 fc_charset_idx. Make the member order compatible with struct
8726 xftfont_info.
8727 (fc_charset_table): Change charset names to registry names.
8728 (ftfont_pattern_entity): Delete the args registry and
8729 fc_charset_idx. Change the value of :font-entity property
8730 to (FONTNAME . INDEX). Always set :registry property to
8731 `iso10646-1'.
8732 (struct ftfont_cache_data): New struct.
8733 (ftfont_lookup_cache): New arg for_face.
8734 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
8735 (ftfont_driver): Set the member otf_capability.
8736 (ftfont_get_charset): Adjust it for the change of
8737 fc_charset_table.
8738 (OTF_TAG_SYM): New macro.
8739 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
8740 for the change of fc_charset_table.
8741 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
8742 ftfont_pattern_entity. Add FC_INDEX to objset.
8743 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
8744 and ftfont_pattern_entity.
8745 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
8746 font_make_object, struct ftfont_info.
8747 (ftfont_has_char): Use ftfont_get_fc_charset.
8748 (ftfont_otf_features, ftfont_otf_capability): New functions.
8749 (ftfont_shape): Use ftfont_get_otf.
8750 (ftfont_text_extents): Fix initial setting of metrics.
8751
8752 * xftfont.c (struct xftfont_info): New member ft_size. Make the
8753 member order compatible with struct ftfont_info.
8754 (xftfont_open): Add FC_CHARSET to the pattern. Set
8755 xftfont_info->ft_size. Don't unlock the face. Check BDF
8756 properties if appropriate.
8757 (xftfont_close): Unlock the face.
8758 (xftfont_anchor_point, xftfont_shape): Deleted.
8759 (syms_of_xftfont): Don't set members anchor_point and shape of
8760 xftfont_driver.
8761
8762 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
8763 font_make_object.
8764
8765 * w32font.c (w32font_open): Adjust it for the change of
8766 font_make_object.
8767 (w32font_open_internal): Don't set properties of font_object here.
8768
87692008-07-08 Chong Yidong <cyd@stupidchicken.com>
8770
8771 * macfns.c (x_create_tip_frame):
8772 * w32fns.c (x_create_tip_frame):
8773 * xfns.c (x_create_tip_frame): Pass parameter argument to
8774 face-set-after-frame-default.
8775
8776 * xfaces.c (Finternal_merge_in_global_face): Save merged
8777 attributes for the default face back into the face vector.
8778
87792008-07-08 Andreas Schwab <schwab@suse.de>
8780
8781 * fontset.h: Declare fontset_from_font. Don't declare
8782 new_fontset_from_font and fontset_from_font_name.
8783 * xterm.c: Include "fontset.h".
8784 * Makefile.in (xterm.o): Update dependencies.
8785
87862008-07-08 Glenn Morris <rgm@gnu.org>
8787
8788 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
8789 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
8790
87912008-07-07 Chong Yidong <cyd@stupidchicken.com>
8792
8793 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
8794 (x_set_frame_parameters): Don't bind it.
8795
87962008-07-07 Juanma Barranquero <lekktu@gmail.com>
8797
8798 * w32fns.c (map_w32_filename): Declare extern.
8799
88002008-07-07 Jason Rumney <jasonr@gnu.org>
8801
8802 * w32term.c (WS_EX_LAYERED): Define if not already.
8803
88042008-07-06 Chong Yidong <cyd@stupidchicken.com>
8805
8806 * xfaces.c (set_font_frame_param): Don't try to set the font
8807 parameter if it is still unspecified in the lface.
8808
88092008-07-05 Chong Yidong <cyd@stupidchicken.com>
8810
8811 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
8812 face if it didn't already exist.
8813
8814 * xdisp.c (try_window_id): Give up if word-wrapping is on.
8815
88162008-07-05 Andreas Schwab <schwab@suse.de>
8817
8818 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
8819
88202008-07-05 Chong Yidong <cyd@stupidchicken.com>
8821
8822 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
8823 word-wrapping.
8824 (IT_DISPLAYING_WHITESPACE): New macro.
8825 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
8826 when word-wrapping. Simplify word-wrapping logic. Use correct
8827 pixel positions when saving copies of the iterator.
8828 (display_line): Use proper wrap point if the last character on a
8829 line was preceded by whitespace.
8830
88312008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
8832
8833 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
8834
88352008-07-04 Kenichi Handa <handa@m17n.org>
8836
8837 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
8838
8839 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
8840
88412008-07-02 Jason Rumney <jasonr@gnu.org>
8842
8843 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 8844 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
8845
8846 * xdisp.c (next_element_from_display_vector): Move assignment out
8847 of if statement.
8848
88492008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
8850
8851 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
8852
8853 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
8854 (syms_of_fileio): Initialize and export them.
8855 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
8856
8857 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
8858 (Fsystem_move_file_to_trash): New function.
8859 (syms_of_w32fns): Export it to lisp.
8860
88612008-07-01 Jason Rumney <jasonr@gnu.org>
8862
8863 * w32font.c (w32font_text_extents): Don't count overhang as part
8864 of width.
8865
88662008-06-30 Miles Bader <miles@gnu.org>
8867
8868 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8869 Add `avoid_cursor_p' field.
8870
8871 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8872 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8873 (append_glyph, append_composite_glyph, produce_image_glyph)
8874 (append_stretch_glyph): Initialize avoid_cursor_p.
8875 (get_it_property): Rename from `get_line_height_property'.
8876 (x_produce_glyphs): Use get_it_property.
8877 (handle_line_prefix, push_display_prop): New functions.
8878 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8879 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8880 New variables.
8881 (syms_of_xdisp): Initialize them.
8882
88832008-06-30 Kenichi Handa <handa@m17n.org>
8884
8885 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8886 XftDefaultSubstitute (they are called in XftFontMatch).
8887 (xftfont_open): Fix args to ftfont_font_format.
8888
8889 * ftfont.c (fc_charset_table): New member lang.
8890 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 8891 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
8892 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8893 (ftfont_open): Fix args to ftfont_font_format.
8894 (ftfont_font_format): New arg filename.
8895
88962008-06-30 Chong Yidong <cyd@stupidchicken.com>
8897
8898 * xfaces.c (Finternal_merge_in_global_face): If default face was
8899 modified, realize it again. Update the font face attribute.
8900
89012008-06-29 Jason Rumney <jasonr@gnu.org>
8902
8903 * w32term.c (x_set_frame_alpha): Fix logic.
8904
89052008-06-29 Kenichi Handa <handa@m17n.org>
8906
8907 * fontset.c (Finternal_char_font): Return font-object instead of
8908 font-name.
8909
8910 * composite.c (get_composition_id): Fix the width calculation for TAB.
8911
89122008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
8913
8914 * indent.c (Fvertical_motion): Properly handle float column arg.
8915
89162008-06-28 Jason Rumney <jasonr@gnu.org>
8917
8918 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
8919 (pfnSetLayeredWindowAttributes): New function pointer.
8920 (w32_initialize): Initialize it when supported.
8921 (x_set_frame_alpha): New function.
8922
8923 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
8924 (w32_frame_parm_handlers): Set alpha handler.
8925
8926 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8927
89282008-06-27 Jason Rumney <jasonr@gnu.org>
8929
8930 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
8931 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
8932 (w32_to_x_charset, x_to_w32_charset)
8933 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8934 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8935 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8936 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8937 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8938 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8939 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
8940 (Qw32_charset_unicode): Remove.
8941 (syms_of_w32fns): Update for above changes.
8942
8943 * w32font.c (w32_to_x_charset, x_to_w32_charset)
8944 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8945 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8946 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8947 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8948 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8949 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8950 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
8951 (syms_of_w32font): Update for above changes.
8952
89532008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8954
8955 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8956 removed #if.
8957 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8958
89592008-06-26 Juanma Barranquero <lekktu@gmail.com>
8960 Eli Zaretskii <eliz@gnu.org>
8961
8962 * makefile.w32-in (LOCAL_FLAGS):
8963 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8964
8965 * sysdep.c (_spawnlp, _getpid):
8966 Declare with explicit _cdecl instead of _CRTAPI1.
8967
8968 * editfns.c (Fget_internal_run_time):
8969 Check for WINDOWSNT with #ifdef, not #if.
8970
89712008-06-26 Jason Rumney <jasonr@gnu.org>
8972
8973 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8974
8975 * w32term.c (x_draw_glyph_string_foreground)
8976 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8977 Use FONT_HANDLE macro.
8978 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8979
8980 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8981 (uniscribe_encode_char): Use FONT_HANDLE macro.
8982
8983 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8984 (w32font_text_extents): Use precast w32_font.
8985 (w32font_close): Free cached metrics.
8986 (w32font_open_internal): Allocate space for name on stack.
8987
89882008-06-26 Chong Yidong <cyd@stupidchicken.com>
8989
8990 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8991
89922008-06-26 Jason Rumney <jasonr@gnu.org>
8993
8994 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8995 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8996
89972008-06-26 Juanma Barranquero <lekktu@gmail.com>
8998
8999 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9000
90012008-06-26 Jason Rumney <jasonr@gnu.org>
9002
9003 * w32bdf.c, w32bdf.h: Remove obsolete files.
9004
9005 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9006
9007 * w32gui.h: Don't include w32bdf.h.
9008 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9009 Remove obsolete font support.
9010
9011 * w32font.h (struct w32font_info): Remove compat_w32_font.
9012 Add hfont member.
9013 (FONT_COMPAT): Remove obsolete macro.
9014
9015 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9016 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9017 (w32font_open_internal): Remove compat code. Set new hfont member.
9018 (Fx_select_font): Use new hfont member.
9019
9020 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9021 (uniscribe_encode_char): Use new hfont member.
9022
9023 * w32term.c (x_draw_glyph_string_foreground)
9024 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9025 (x_draw_glyph_string): Use metrics in w32font_info.
9026
90272008-06-26 Kenichi Handa <handa@m17n.org>
9028
9029 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9030
90312008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9032
9033 * unexnext.c:
9034 * m/ews4800.h:
9035 * m/hp9000s300.h:
9036 * m/ibm370aix.h:
9037 * m/mips-siemens.h:
9038 * m/ncr386.h:
9039 * m/next.h:
9040 * m/pmax.h:
9041 * m/powerpcle.h:
9042 * m/tandem-s2.h:
9043 * s/386bsd.h:
9044 * s/bsd386.h:
9045 * s/bsd4-1.h:
9046 * s/bsd4-2.h:
9047 * s/bsdos2-1.h:
9048 * s/bsdos2.h:
9049 * s/bsdos3.h:
9050 * s/bsdos4.h:
9051 * s/nextstep.h:
9052 * s/ultrix4-3.h:
9053 * s/usg5-0.h:
9054 * s/usg5-2-2.h:
9055 * s/usg5-2.h:
9056 * s/usg5-4-3.h:
9057 * s/ux4800.h:
9058 * s/uxpds.h:
9059 * s/uxpv.h: Remove support for obsolete systems.
9060 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 9061 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
9062 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9063 Remove, insert contents in s/aix4-2.h.
9064 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9065 * s/bsd4-3.h: Rename to ...
9066 * s/bsd-common.h: ... this.
9067 * data.c:
9068 * doc.c:
9069 * ecrt0.c:
9070 * emacs.c:
9071 * fileio.c:
9072 * floatfns.c:
9073 * keyboard.c:
9074 * mem-limits.h:
9075 * print.c:
9076 * process.c:
9077 * sysdep.c:
9078 * syssignal.h:
9079 * systty.h:
9080 * syswait.h:
9081 * term.c:
9082 * unexec.c:
9083 * unexelf.c:
9084 * unexhp9k800.c:
9085 * m/hp800.h:
9086 * m/ibmrs6000.h:
9087 * m/mips.h:
9088 * m/vax.h:
9089 * s/darwin.h:
9090 * s/freebsd.h:
9091 * s/gnu.h:
9092 * s/ms-w32.h:
9093 * s/msdos.h:
9094 * s/netbsd.h:
9095 * s/template.h: Remove references to obsolete variables.
9096
9097 * Makefile.in: Add dependencies for all unexec files.
9098 (admindir): Remove unused variable.
9099 (UNEXEC_SRC): Remove references.
9100
91012008-06-25 Chong Yidong <cyd@stupidchicken.com>
9102
9103 * xfns.c (x_default_font_parameter): If Xft is available, first
9104 try Monospace-12 for the default font.
9105
91062008-06-25 Jason Rumney <jasonr@gnu.org>
9107
9108 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9109
91102008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9111
9112 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9113
9114 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9115
91162008-06-25 Juanma Barranquero <lekktu@gmail.com>
9117
9118 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9119 <scroll-conservatively>: Fix typo in docstring.
9120
9121 * xselect.c (Fx_send_client_event): Doc fix.
9122
91232008-06-25 Kenichi Handa <handa@m17n.org>
9124
9125 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9126
9127 * font.c (font_parse_fcname): Remove unused variables.
9128 (font_sort_entites): Delete the arg SPEC. Caller changed.
9129 Fix for the case of ! best_only.
9130 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9131
9132 * lisp.h (Fstring_to_unibyte): EXFUN it.
9133
9134 * character.h (str_to_unibyte): Extern it.
9135
9136 * character.c (str_to_unibyte): New function.
9137
9138 * fns.c (Fstring_to_unibyte): New function.
9139 (syms_of_fns): Defsubr it.
9140
91412008-06-24 Kenichi Handa <handa@m17n.org>
9142
9143 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9144 DPI too.
9145 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9146
91472008-06-24 Andreas Schwab <schwab@suse.de>
9148
9149 * Makefile.in (${lispsource}loaddefs.el): Rename from
9150 ../lisp/loaddefs.el.
9151 (bootstrap-clean): Do what distclean does but don't remove
9152 Makefile.
9153 (distclean): Depend on bootstrap-clean and remove Makefile.
9154
91552008-06-24 Chong Yidong <cyd@stupidchicken.com>
9156
9157 * buffer.h (struct buffer): New member word_wrap.
9158
9159 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9160 word-wrap.
9161 (init_buffer_once): Initialize them.
9162
9163 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9164 line_wrap enum possessing three possible values.
9165
9166 * termopts.h: Replace truncate_partial_width_windows with
9167 Vtruncate_partial_width_windows.
9168
9169 * dispnew.c (direct_output_for_insert): Avoid direct output when
9170 inserting a space with word wrap on.
9171
9172 * indent.c (compute_motion): Obey integer values of
9173 truncate-partial-width-windows.
9174
9175 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9176 replacing truncate_partial_width_windows.
9177 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9178 truncate only if the window width is below that integer.
9179 (start_display, resize_mini_window, produce_stretch_glyph)
9180 (display_string, move_it_in_display_line_to): Use line_wrap.
9181 (back_to_previous_visible_line_start, reseat_1): Reset
9182 string_from_display_prop_p.
9183 (display_line): Extend default face to end of line when wrapping.
9184
91852008-06-24 Kim F. Storm <storm@cua.dk>
9186
9187 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9188 to wrap continued lines at word boundaries.
9189
91902008-06-24 Jason Rumney <jasonr@gnu.org>
9191
9192 * font.c (Ffont_face_attributes): Multiply pixel size before point
9193 conversion to avoid multiplying rounding error.
9194
91952008-06-23 Jason Rumney <jasonr@gnu.org>
9196
9197 * w32term.c (x_draw_glyph_string_background)
9198 (x_draw_glyph_string): Remove old bdf font code.
9199
9200 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9201
92022008-06-22 Kenichi Handa <handa@m17n.org>
9203
9204 * font.c (font_find_for_lface): Try the adstyle specified in
9205 the property of LFACE_FONT of LFACE (if any).
9206
92072008-06-21 Seiji Zenitani <zenitani@mac.com>
9208 Ryo Yoshitake <ryo@shiftmode.net>
9209
9210 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9211
92122008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9213
9214 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9215 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9216 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9217 (witness-emacs): Remove.
9218 (lisp, shortlisp): Move loaddefs.el earlier.
9219 (mostlyclean): Forget about witness-emacs.
9220
92212008-06-22 Glenn Morris <rgm@gnu.org>
9222
9223 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9224 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9225
92262008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9227
9228 * Makefile.in (PRECOMP): Remove.
9229 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9230 (witness-emacs): Run `compile-first'.
9231 (.el.elc): Use the new compile-onefile target.
9232
92332008-06-21 Kenichi Handa <handa@m17n.org>
9234
9235 * xftfont.c (xftfont_open): Handle QCembolden only when
9236 FC_EMBOLDEN is defined.
9237
92382008-06-21 Andreas Schwab <schwab@suse.de>
9239
9240 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9241 (.el.elc): Likewise.
9242
92432008-06-21 Miles Bader <miles@gnu.org>
9244
9245 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9246 build dir, not the lisp source dir.
9247
92482008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9249
9250 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9251 (bootstrapclean): Remove.
9252 (.el.elc): New rule.
9253 (PRECOMP): New var.
9254 (../lisp/subdirs.el): Remove.
9255 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9256 (witness-emacs): New target.
9257 (mostlyclean): Remove witness-emacs as well.
9258 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9259 Add witness-emacs dependency.
9260
92612008-06-20 Chong Yidong <cyd@stupidchicken.com>
9262
9263 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9264 defined by the font.
9265
92662008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9267
9268 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9269 (bootstrap-clean): New target that keeps TAGS around.
9270 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9271 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9272
92732008-06-20 Jason Rumney <jasonr@gnu.org>
9274
9275 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9276 Remove obsolete font code.
9277
9278 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9279 to determine language support.
9280
92812008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9282
9283 * sysdep.c (cfsetspeed): New fun extracted from the code.
9284 (cfmakeraw): Move before first use.
9285
92862008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9287
9288 * sysdep.c (cfmakeraw): Provide fallback implementation.
9289 (serial_configure): Provide fallback implementation of cfsetspeed.
9290
92912008-06-20 Kenichi Handa <handa@m17n.org>
9292
9293 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9294 the pattern.
9295
9296 * fontset.c (fontset_from_font): Copy font_spec before changing
9297 the elements.
9298
9299 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9300
93012008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9302
9303 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9304 for explicit `font' parameters.
9305
9306 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9307
93082008-06-19 Kenichi Handa <handa@m17n.org>
9309
9310 * frame.c: Include <ctype.h>.
9311 (x_set_font_backend): Allow spacing characters in the X resource
9312 for FontBackend.
9313
93142008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9315
9316 * w32fns.c, xfns.c (Qfont_param): New var.
9317 (syms_of_w32fns): Initialize it.
9318 (x_default_font_parameter): Record explicit `font' into
9319 `font-parameter'.
9320
93212008-06-18 Kenichi Handa <handa@m17n.org>
9322
9323 * font.c (font_parse_xlfd): Fix previous change.
9324 (font_parse_fcname): Don't use :fc-unknown-spec.
9325 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9326 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9327 (font_add_log): Prepend the driver name to the resulting fonts.
9328
9329 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9330 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9331 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9332
9333 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9334 (QCembolden): New variables.
9335 (syms_of_xftfont): DEFSYM them.
9336 (xftfont_open): Call XftFontMatch. Don't trust the result of
9337 XftTextExtents8 if the pixel_size is less than 5.
9338
93392008-06-18 Andreas Schwab <schwab@suse.de>
9340
9341 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9342 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9343
93442008-06-18 Jason Rumney <jasonr@gnu.org>
9345
9346 * w32font.c (w32font_list, w32font_match): Add logging.
9347
9348 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9349
93502008-06-17 Chong Yidong <cyd@stupidchicken.com>
9351
9352 * font.c (font_parse_fcname): Store divider characters for
9353 unknown-spec list. For known key symbols, intern using correct
9354 symbol name.
9355
93562008-06-17 Kenichi Handa <handa@m17n.org>
9357
9358 * xfaces.c (realize_default_face): If the frame is not on window
9359 system, set the fontset of face to nil.
9360
93612008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9362
9363 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9364
93652008-06-16 Juanma Barranquero <lekktu@gmail.com>
9366
9367 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9368 (build_font_name_from_vector): Delete externs.
9369
9370 * xfaces.c (struct font_name): Don't declare.
9371
93722008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9373
9374 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9375
93762008-06-16 Chong Yidong <cyd@stupidchicken.com>
9377
9378 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9379
93802008-06-16 Juanma Barranquero <lekktu@gmail.com>
9381
9382 * font.c (Ffont_spec): Fix usage in docstring.
9383 (Ffont_face_attributes): Doc fix.
9384
93852008-06-16 Andreas Schwab <schwab@suse.de>
9386
9387 * font.c (Ffont_face_attributes): Fix definition.
9388
93892008-06-16 Jason Rumney <jasonr@gnu.org>
9390
9391 * font.h (font_style_symbolic_from_value): Remove.
9392
9393 * font.c (font_style_symbolic_from_value): Remove.
9394 (font_style_symbolic): Revert to pre 2008-06-13 version.
9395
9396 * w32font.c (w32_to_fc_weight): New function.
9397 (w32font_full_name, logfont_to_fcname): Use it.
9398
93992008-06-16 Kenichi Handa <handa@m17n.org>
9400
9401 * font.c (font_check_object): Delete it.
9402 (font_clear_cache): Check if a font-object is alive.
9403 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9404 font-object to nil.
9405 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9406 (font_at): Don't call font_check_object.
9407 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9408
94092008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9410
9411 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9412
94132008-06-16 Chong Yidong <cyd@stupidchicken.com>
9414
9415 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9416
94172008-06-15 Chong Yidong <cyd@stupidchicken.com>
9418
9419 * font.c (font_parse_fcname): Only one decimal point.
9420 (font_unparse_fcname): Handle data in family and foundry indices
9421 as symbols, not strings.
9422 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9423
9424 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9425
9426 * font.h (font_unparse_gtkname): Add prototype.
9427
94282008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9429
9430 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9431
94322008-06-15 Andreas Schwab <schwab@suse.de>
9433
9434 * font.c (font_update_drivers): Fix crash when no drivers match.
9435
94362008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9437
9438 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9439 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9440
94412008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9442
9443 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9444
94452008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9446
9447 * process.c (Fserial_process_configure, Fprocess_send_eof):
9448 Use EQ to compare Lisp_Objects.
9449
94502008-06-13 Jason Rumney <jasonr@gnu.org>
9451
9452 * w32fns.c (Fw32_select_font): Remove old font API function.
9453
9454 * w32font.c (logfont_to_fcname): New function.
9455 (Fx_select_font): New font dialog function compatible with
9456 GTK/fontconfig version.
9457
9458 * font.c (font_style_symbolic_from_value): New function.
9459 (font_style_symbolic): Use it.
9460
9461 * font.h (font_style_symbolic_from_value): Declare new function.
9462
94632008-06-13 Juanma Barranquero <lekktu@gmail.com>
9464
9465 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9466 <font-width-table>: Fix typos in docstrings.
9467
94682008-06-13 Daniel Engeler <engeler@gmail.com>
9469
9470 These changes add serial port access.
9471 * process.c: Add HAVE_SERIAL.
9472 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9473 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9474 (list_processes_1, select_wrapper, Fstop_process)
9475 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9476 (status_notify): Modify to handle serial processes.
9477 [HAVE_SERIAL] (Fserial_process_configure)
9478 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9479 New functions.
9480 * process.h (struct Lisp_Process): Add `type'.
9481 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9482 New functions.
9483 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9484 serial ports.
b71ac3dd 9485 (serial_open, serial_configure): New functions.
aac0c6e3
MR
9486 * w32.h: Add FILE_SERIAL.
9487 (struct _child_process): Add ovl_read, ovl_write.
9488
94892008-06-13 Kenichi Handa <handa@m17n.org>
9490
9491 * dispextern.h (enum lface_attribute_index): New member
9492 LFACE_FOUNDRY_INDEX.
9493
9494 * font.c (font_score): Delete arg alternate_families. Check only
9495 weight, slant, width, and size. Ignore the difference of alias
9496 style symbols.
9497 (font_sort_entites): Adjust for the above change. Reflect the
9498 order of font-driver to scores.
9499 (font_list_entities): Don't check alternate_familes here.
9500 (font_clear_prop): Handle foundry.
9501 (font_update_lface): Don't parse "foundry-family" form here.
9502 Handle FONT_FOUNDRY_INDEX.
9503 (font_find_for_lface): Likewise. Handle alternate families here.
9504 If registry is nil, try iso8859-1 and ascii-0.
9505 (font_open_for_lface): Pay attention to size in ENTITY.
9506 (font_open_by_name): Simplify by calling font_load_for_lface.
9507 (free_font_driver_list): Delete it.
9508 (font_update_drivers): Preserve the order of backends.
9509 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9510 of font_score and font_sort_entites.
9511 (font_update_sort_order): Likewise.
9512
9513 * xfaces.c (LFACE_FOUNDRY): New macro.
9514 (check_lface_attrs): Check foundry.
9515 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9516 (merge_face_vectors): Check foundry.
9517 (merge_face_ref): Likewise.
9518 (Finternal_set_lisp_face_attribute): Likewise.
9519 (x_update_menu_appearance): Likewise.
9520 (Finternal_get_lisp_face_attribute): Likewise.
9521 (lface_hash): Likewise.
9522 (lface_same_font_attributes_p): Likewise.
9523 (x_supports_face_attributes_p): Likewise.
9524 (tty_supports_face_attributes_p): Likewise.
9525 (Finternal_set_alternative_font_family_alist): Intern strings.
9526 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9527 (realize_default_face): Set LFACE_FOUNDRY (lface).
9528
9529 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9530 font-driver at first.
9531
9532 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9533
95342008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9535
9536 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9537
95382008-06-12 Jim Meyering <meyering@redhat.com>
9539
9540 Make unexec_free handle NULL the same way free does.
9541 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9542
95432008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9544
9545 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9546 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9547 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
9548 (WEAK_ALIAS): Simplify.
9549 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
9550 when searching a unibyte buffer.
9551
95522008-06-12 Chong Yidong <cyd@stupidchicken.com>
9553
9554 * xfns.c (Fx_select_font): Rename from x-font-dialog.
9555
95562008-06-12 Juanma Barranquero <lekktu@gmail.com>
9557
9558 * w32font.c: Include ctype.h.
9559
95602008-06-11 Jason Rumney <jasonr@gnu.org>
9561
9562 * w32font.c (w32font_encode_char): Detect missing glyphs that are
9563 misreported as space.
9564 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
9565 as aliases for registry iso10646-1.
9566
95672008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
9568
9569 * buffer.c (clone_per_buffer_values): Skip `name'.
9570
95712008-06-11 Chong Yidong <cyd@stupidchicken.com>
9572
9573 * font.c (font_parse_fcname): Fix last change; accept decimal
9574 points in font size.
9575
95762008-06-10 Jason Rumney <jasonr@gnu.org>
9577
9578 * w32uniscribe.c (add_opentype_font_name_to_list):
9579 Skip non unicode fonts.
9580
95812008-06-10 Chong Yidong <cyd@stupidchicken.com>
9582
9583 * xfns.c (Fx_font_dialog): New function.
9584
9585 * gtkutil.c (xg_dialog_response_cb): Rename from
9586 xg_file_response_callback.
9587 (pop_down_dialog): Rename from pop_down_file_dialog.
9588 (xg_get_file_name): Callers changed.
9589 (xg_get_font_name): New function.
9590
9591 * gtkutil.h (xg_get_font_name): Insert prototype.
9592
95932008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9594
9595 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
9596 x_underline_minimum_display_offset.
9597 (syms_of_xdisp): Declare it here rather than in xterm.c.
9598 * dispextern.h (underline_minimum_offset): Declare it.
9599 * w32term.c (x_draw_glyph_string): Use it.
9600 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
9601 (syms_of_xterm): Don't declare it any more.
9602 (x_draw_glyph_string): Adjust to the new name.
9603
8719abec 96042008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
9605
9606 * xterm.c (x_underline_minimum_display_offset): New var.
9607 (x_draw_glyph_string): Use it.
9608 (syms_of_xterm): Declare it.
9609
96102008-06-10 Chong Yidong <cyd@stupidchicken.com>
9611
9612 * font.c (font_parse_fcname): Accept GTK-style font names too.
9613
96142008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9615
9616 * dired.c (file_name_completion): Don't return t if the match is exact
9617 but with different capitalization.
9618 * minibuf.c (Ftry_completion): Simplify.
9619
9620 * window.c (Vwindow_point_insertion_type): New var.
9621 (set_window_buffer): Use it.
9622 (syms_of_window): Init and export it to Lisp.
9623
96242008-06-10 Kenichi Handa <handa@m17n.org>
9625
9626 * font.h (font_intern_prop): Prototype adjusted.
9627
9628 * font.c (font_intern_prop): New arg force_symbol.
9629 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
9630 Adjust for the change of font_intern_prop.
9631
9632 * ftfont.c (ftfont_pattern_entity):
9633 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
9634 (w32_registry):
9635 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9636 the change of font_intern_prop.
9637
96382008-06-09 Juanma Barranquero <lekktu@gmail.com>
9639
9640 * w32menu.c (digest_single_submenu): Declare extern.
9641
96422008-06-09 Jason Rumney <jasonr@gnu.org>
9643
9644 * w32term.c (x_make_frame_visible): Use alternate restore flags.
9645
9646 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
9647 (parse_single_submenu): Remove.
9648 (digest_single_submenu): Remove.
9649 (syms_of_w32menu): Don't initialise variables that have moved
9650 to menu.c.
9651 (set_frame_menubar): Sync with version in xmenu.c.
9652 (w32_menu_show): Sync with xmenu_show in xmenu.c.
9653
9654 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
9655 Make static again.
9656
96572008-06-09 Jason Rumney <jasonr@gnu.org>
9658
9659 Changes to w32 files related to the move of common menu code
9660 to menu.c on 2008-06-08 by Chong Yidong.
9661
9662 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
9663 defs to w32gui.h.
9664 (single_keymap_panes, push_menu_item, push_menu_pane):
9665 Make globally visible.
9666
9667 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
9668 (local_free, malloc_widget_value, free_widget_value)
9669 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
9670 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
9671 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
9672 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
9673 (menu_items, menu_items_allocated, menu_items_used)
9674 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
9675 (init_menu_items, finish_menu_items, discard_menu_items)
9676 (grow_menu_items, push_submenu_start, push_submenu_end)
9677 (push_left_right_boundary, push_menu_pane, push_menu_item)
9678 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
9679 (free_menubar_widget_tree_value, parse_single_submenu)
9680 (update_submenu_strings): Remove functions.
9681 (xmalloc_widget_value): Remove and declare extern.
9682
9683 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
9684 (OBJ1): Build it.
9685
9686 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
9687 (local_heap, local_alloc, local_free, malloc_widget_value)
9688 (free_widget_value): Define here.
9689
96902008-06-09 Kenichi Handa <handa@m17n.org>
9691
9692 * font.h (Qascii_0): Extern it.
9693
9694 * font.c (Qascii_0): New variable.
9695 (syms_of_font): DEFSYM it.
9696 (font_open_by_name): If the registry "iso8859-1" fails, try also
9697 "ascii-0".
9698
9699 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
9700
97012008-06-08 Kenichi Handa <handa@m17n.org>
9702
9703 * .gdbinit (xfont): New command.
9704
97052008-06-08 Andreas Schwab <schwab@suse.de>
9706
9707 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
9708 * Makefile.in (menu.o): Update dependencies.
9709
9710 * Makefile.in (obj): Always add menu.o.
9711 * emacs.c (main): Always call syms_of_menu.
9712 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
9713
97142008-06-08 Chong Yidong <cyd@stupidchicken.com>
9715
9716 * Makefile.in: Compile menu.c.
9717
9718 * lisp.h: Declare syms_of_menu.
9719
9720 * emacs.c (main): Call syms_of_menu.
9721
9722 * keyboard.h: Relocate platform-independent menu definitions from
9723 xmenu.c.
9724
9725 * menu.c: New file. Relocate platform-independent menu
9726 definitions from xmenu.c. Suggested by Adrian Robert.
9727
9728 * xmenu.c: Remove platform-independent menu definitions.
9729 (menu_items menu_items_inuse, menu_items_allocated)
9730 (menu_items_used, menu_items_n_panes)
9731 (menu_items_submenu_depth): Move to keyboard.h.
9732 (init_menu_items, finish_menu_items, unuse_menu_items)
9733 (discard_menu_items, restore_menu_items, save_menu_items)
9734 (grow_menu_items, push_submenu_start, push_submenu_end)
9735 (push_left_right_boundary, push_menu_pane, push_menu_item)
9736 (keymap_panes, single_keymap_panes, single_menu_item)
9737 (list_of_panes, list_of_items, find_and_call_menu_selection)
9738 (xmalloc_widget_value, free_menubar_widget_value_tree)
9739 (parse_single_submenu, digest_single_submenu)
9740 (update_submenu_strings): Move to menu.c.
9741
97422008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
9743
9744 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
9745
97462008-06-06 Miles Bader <miles@gnu.org>
9747
9748 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
9749 face, not frame default.
9750
97512008-06-05 Martin Rudalics <rudalics@gmx.at>
9752
9753 * window.c (pop_up_windows, pop_up_frames)
9754 (display_buffer_reuse_frames, Vpop_up_frame_function)
9755 (Vdisplay_buffer_function, Veven_window_heights)
9756 (Vspecial_display_buffer_names, Vspecial_display_regexps)
9757 (Vspecial_display_function, Vsame_window_buffer_names)
9758 (Vsame_window_regexps, split_height_threshold)
9759 (Vsplit_window_preferred_function): Move those vars to window.el.
9760 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
9761 (Fdisplay_buffer): Move those functions to window.el.
9762 (syms_of_window): Remove corresponding declarations.
9763 (display_buffer): New function.
9764 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
9765 * dispnew.c (Flast_nonminibuf_frame): New function.
9766 * buffer.c (Fpop_to_buffer): Move to window.el.
9767
97682008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9769
9770 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
9771
97722008-06-05 Kenichi Handa <handa@m17n.org>
9773
9774 * coding.c (detect_coding): Fix previous change.
9775 (detect_coding_system): Likewise.
9776
97772008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9778
9779 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
9780
9781 * keymap.c (Vminibuffer_local_filename_must_match_map):
9782 Rename from Vminibuffer_local_must_match_filename_map.
9783 (syms_of_keymap):
9784 * minibuf.c (Fcompleting_read): Adjust accordingly.
9785 * commands.h: Rename declaration as well.
9786
97872008-06-05 Kenichi Handa <handa@m17n.org>
9788
9789 * font.c (Ffont_spec): Don't use font_parse_family_registry for
9790 family name.
9791 (Ffont_put): Likewise.
9792
9793 * fontset.c (fontset_find_font): Call font_open_for_lface with the
9794 current font-spec.
9795
9796 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
9797 is unspecified.
9798
9799 * xfaces.c (realize_x_face): If the font-related face attributes
9800 are the same as those of default face, realize a new fontset from
9801 default->fontset.
9802 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
9803
98042008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9805
9806 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
9807 (move_it_in_display_line): New wrapper.
9808
9809 * window.c (window_scroll_pixel_based_preserve_x)
9810 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
9811 (window_scroll_pixel_based, window_scroll_line_based):
9812 Use them to preserve column positions.
9813 (syms_of_window): Initialize them.
9814
9815 * indent.c (Fvertical_motion): Extend first arg to allow passing an
9816 (HPOS . VPOS) pair.
9817
9818 * dispextern.h (move_it_in_display_line): Declare.
9819
98202008-06-05 Juanma Barranquero <lekktu@gmail.com>
9821
9822 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
9823 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
9824 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
9825
98262008-06-04 Juanma Barranquero <lekktu@gmail.com>
9827
9828 * window.c (Fset_window_parameter): Doc fix.
9829 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
9830
98312008-06-04 Joakim Verona <joakim@verona.se>
9832
9833 * window.h (struct window): Add new member window_parameters.
9834
9835 * window.c (Fwindow_parameters, Fwindow_parameter)
9836 (Fset_window_parameter): New defuns.
9837 (syms_of_window): Defsubr the new defuns.
9838 (make_window): Initialize window_parameters to nil.
9839
98402008-06-04 John Paul Wallington <jpw@pobox.com>
9841
9842 * eval.c (Fdefmacro): Doc fix.
9843
98442008-06-04 Kenichi Handa <handa@m17n.org>
9845
9846 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9847 Be sure to call setup_coding_system when we find a proper coding system.
9848 (detect_coding_system): Fix handling of coding->head_ascii.
9849
98502008-06-03 Andreas Schwab <schwab@suse.de>
9851
9852 * font.c (font_prop_validate_spacing): Fix last change.
9853
98542008-06-03 Kenichi Handa <handa@m17n.org>
9855
9856 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
9857 (font_parse_fcname): Fix handling of unknown key.
9858
9859 * xfont.c (xfont_list): Try an alias.
9860
9861 * charset.c (char_charset): Return NULL if the arg charset_list is
9862 specified and C doesn't belong to any of them.
9863
98642008-06-02 Chip Coldwell <coldwell@redhat.com>
9865
9866 * font.c (font_pixel_size): Don't take cdr of an integer.
9867
98682008-06-02 Jim Meyering <meyering@redhat.com>
9869
9870 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9871 * alloc.c (xfree): Return right away for a NULL arg.
9872 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9873 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9874 * mac.c (create_apple_event_from_event_ref): Likewise.
9875 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9876 Likewise.
9877 * doprnt.c (doprnt1): Likewise.
9878 * frame.c (frame): Likewise.
9879 * keyboard.c (wipe_kboard): Likewise.
9880 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9881 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9882 * term.c (tty_default_color_capabilities, maybe_fatal)
9883 (delete_tty): Likewise.
9884 * w16select.c (string): Likewise.
9885 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9886 * w32bdf.c (w32_free_bdf_font): Likewise.
9887 * w32fns.c (w32_unload_font): Likewise.
9888 * w32font.c (w32font_close): Likewise.
9889 * window.c (size_window): Likewise.
9890 * xselect.c (receive_incremental_selection): Likewise.
9891 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9892 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9893 * w32.c (stat): Likewise.
9894
9895 Remove useless if-before-free tests.
9896 * editfns.c (Fset_time_zone_rule): Likewise.
9897 * lread.c (nosuffix): Likewise.
9898 * ralloc.c (get_bloc): Likewise.
9899 * regex.c (reg_free): Likewise.
9900 * xftfont.c (xftfont_open, xftfont_close): Likewise.
9901 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
9902 * xsmfns.c (smc_save_yourself_CB): Likewise.
9903
99042008-06-02 Kenichi Handa <handa@m17n.org>
9905
9906 * font.c (font_find_for_lface): Handle float font size.
9907 (font_open_for_lface): Likewise.
9908
9909 * xfaces.c (x_supports_face_attributes_p): Check face->font before
9910 comparing the properties.
9911
99122008-06-01 Jason Rumney <jasonr@gnu.org>
9913
9914 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
9915 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
9916 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
9917 Don't add empty script list.
9918 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
9919
99202008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
9921
9922 * Makefile.in (dot, dotdot): Remove, update users.
9923 ".." has been used elsewhere in the file for a long time.
9924 (LIBXT_STATIC): Remove conditional based on unused variable.
9925
99262008-06-01 Miles Bader <miles@gnu.org>
9927
9928 * xfaces.c (Vface_remapping_alist): New variable.
9929 (syms_of_xfaces): Initialize it.
9930 (enum named_merge_point_kind): New type.
9931 (struct named_merge_point): Add `named_merge_point_kind' field.
9932 (push_named_merge_point): Make cycle detection respect different
9933 named-merge-point kinds.
9934 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
9935 Remove face-name alias resolution.
9936 (lface_from_face_name): New definition using
9937 `lface_from_face_name_no_resolve'.
9938 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
9939 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
9940 (get_lface_attributes): New definition that layers face-remapping on
9941 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
9942 (lookup_basic_face): New function.
9943 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
9944 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
9945 `get_lface_attributes'.
9946 (face_at_buffer_position): Use `lookup_basic_face' to lookup
9947 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
9948 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
9949
9950 * xdisp.c (init_iterator): Pass base_face_id through
9951 `lookup_basic_face' when we actually use it as a face-id.
9952 (handle_single_display_prop): Use `lookup_basic_face' to lookup
9953 DEFAULT_FACE_ID.
9954
9955 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9956 lookup the initial face-id.
9957
9958 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9959
99602008-06-01 Juanma Barranquero <lekktu@gmail.com>
9961
9962 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9963 (Fremove_text_properties): Fix typos in docstrings.
9964
99652008-05-31 Kenichi Handa <handa@m17n.org>
9966
9967 * font.c (font_list_entities): Fix the car part of data to be
9968 stored in the cache.
9969
9970 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9971
99722008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9973
9974 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9975 Add a `test' argument so another predicate than `equal' can be used.
9976 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9977 (map_char_table): Remove unused vars `c' and `i'.
9978 * lisp.h (Foptimize_char_table): Adjust declaration.
9979 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9980
99812008-05-30 Kenichi Handa <handa@m17n.org>
9982
9983 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9984 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9985 defined.
9986
99872008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9988
9989 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9990 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9991 frame-local settings for the same variable.
9992
99932008-05-30 Kenichi Handa <handa@m17n.org>
9994
9995 * fontset.c (Ffont_info): Move to font.c.
9996 (syms_of_fontset): Delete defsubr of Sfont_info.
9997
9998 * font.c (font_style_to_value, font_score): Delete casting of the
9999 args to xstcasecmp.
10000 (register_font_driver): Increment num_font_drivers only when
10001 registering the driver globally.
10002 (Ffont_info): Move from fontset.c. Handle a font object too.
10003 (syms_of_font): Defsubr Sfont_info.
10004
100052008-05-29 Kenichi Handa <handa@m17n.org>
10006
10007 * coding.h (enum define_coding_utf8_arg_index): New enum.
10008 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10009 coding_attr_utf_bom.
10010 (enum utf_bom_type): Rename from utf_16_bom_type.
10011 (struct utf_16_spec): Adjust for the above change.
10012 (struct coding_system): Add utf_8_bom in `spec' union.
10013
10014 * coding.c (CODING_UTF_8_BOM): New macro.
10015 (enum coding_category): Delete coding_category_utf_8, add
10016 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10017 coding_category_utf_8_sig.
10018 (CATEGORY_MASK_UTF_8): Delete it.
10019 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10020 (CATEGORY_MASK_UTF_8_SIG): New macros.
10021 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10022 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10023 CATEGORY_MASK_UTF_8_SIG.
10024 (CATEGORY_MASK_UTF_8): New macro.
10025 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10026 (detect_coding_utf_8): Check BOM.
10027 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10028 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10029 (encode_coding_utf_16): Likewise.
10030 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10031 (detect_coding, detect_coding_system): Handle utf-8-auto.
10032 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10033 (syms_of_coding): Fix setting up of Vcoding_category_table.
10034
100352008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10036
10037 * process.c (Faccept_process_output): If `millisec' is non-nil,
10038 `seconds' default to 0.
10039 (wait_reading_process_output): Also return non-nil if we read output
10040 from a non-running process.
10041
100422008-05-29 Jason Rumney <jasonr@gnu.org>
10043
10044 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10045 `raster' specified.
10046 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10047 in the uniscribe backend, but disallow any font that has no
10048 unicode subrange support.
10049
100502008-05-29 Juanma Barranquero <lekktu@gmail.com>
10051
10052 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10053 Fix typos in docstrings.
10054
100552008-05-29 Kenichi Handa <handa@m17n.org>
10056
10057 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10058 (Fx_family_fonts): Set frame correctly.
10059
100602008-05-28 Jason Rumney <jasonr@gnu.org>
10061
10062 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10063
100642008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10065
10066 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10067 calling build_annotations.
10068
100692008-05-28 Juanma Barranquero <lekktu@gmail.com>
10070
10071 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10072 (Fencode_coding_string):
10073 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10074 <latin-extra-code-table>: Fix typos in docstrings.
10075 (syms_of_coding) <coding-system-alist>: Doc fix.
10076 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10077
100782008-05-28 Kenichi Handa <handa@m17n.org>
10079
10080 * fontset.c (Ffont_info): Don't call font_close_object.
10081
10082 * font.c (font_parse_family_registry): Use Ffont_put to validate
10083 foundry and family.
10084 (font_delete_unmatched): Don't check spacing.
10085 (font_list_entities): Add spacing to the spec to list fonts.
10086
10087 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10088 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10089
10090 * coding.c (encode_coding_raw_text): Fix previous change.
10091 (encode_coding_object): When the dst_object is a buffer and is
10092 different from src_object, move gap to PT.
10093
100942008-05-27 Chong Yidong <cyd@stupidchicken.com>
10095
10096 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10097
100982008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10099
10100 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10101 all branches. Compute it differently.
10102
10103 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10104
101052008-05-27 Juanma Barranquero <lekktu@gmail.com>
10106
10107 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10108 into "else if () ... else ...".
10109
101102008-05-27 Jason Rumney <jasonr@gnu.org>
10111
10112 * w32font.c (w32font_open_internal): Determine if glyph indices
10113 are likely to work here.
10114
101152008-05-27 Chong Yidong <cyd@stupidchicken.com>
10116
10117 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10118 draw overlap glyphs with appropriate highlighting.
10119
101202008-05-27 Kenichi Handa <handa@m17n.org>
10121
10122 * xfont.c (xfont_open): Fix calculation of font->average_width.
10123
101242008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10125
10126 * casefiddle.c (casify_object): Try to guess better whether the
10127 argument is a byte or a char.
10128
101292008-05-26 Andreas Schwab <schwab@suse.de>
10130
10131 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10132 Always send multiples of format size.
10133
10134 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10135
101362008-05-26 Jason Rumney <jasonr@gnu.org>
10137
10138 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10139 (compute_metrics): Don't set failure if we just cleared the cache.
10140 (w32_weight_table): Remove unused variable.
10141 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10142 backwards compatibility.
10143
101442008-05-25 Kenichi Handa <handa@m17n.org>
10145
10146 * w32term.c (x_draw_glyph_string):
10147 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10148
10149 * xfaces.c: Delete unused function prototypes.
10150 (xstrlwr, font_frame): Delete them.
10151 (clear_face_cache): Delete unused variable.
10152
10153 * xftfont.c (xftfont_open): Delete unused variable.
10154 If underline_thickness is not 1, adjust underline_position.
10155
10156 * ftxfont.c (ftxfont_open): Delete unused variable.
10157
10158 * fontset.c (face_for_char): Optimize for the case of no charset
10159 property.
10160
10161 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10162 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10163 (otf_open, font_otf_capability, generate_otf_features)
10164 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10165 Comment out by surrounding "#if 0" and "#endif" for the moment.
10166 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10167 (syms_of_font): Codes for accessing above commented out.
10168
101692008-05-24 Eli Zaretskii <eliz@gnu.org>
10170
10171 * w32proc.c: Include dispextern.h.
10172
10173 * w32.c: Include dispextern.h.
10174
101752008-05-23 Juanma Barranquero <lekktu@gmail.com>
10176
10177 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10178 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10179 Fix typos in docstrings.
10180
101812008-05-23 Jason Rumney <jasonr@gnu.org>
10182
10183 * xsmfns.c: Remove includes that are already included by config.h.
10184
101852008-05-23 Kenichi Handa <handa@m17n.org>
10186
10187 * charset.c (Qemacs, charset_emacs): New variables.
10188 (char_charset): Fix for non-Unicode characters.
10189 (syms_of_charset): Define charset_emacs.
10190
10191 * w32term.c (x_draw_glyph_string): Be sure to update
10192 s->underline_thickness and s->underline_position. Be sure to draw
10193 underline within the current line area.
10194
10195 * xterm.c (x_draw_glyph_string): Be sure to update
10196 s->underline_thickness and s->underline_position. Be sure to draw
10197 underline within the current line area.
10198
10199 * fontset.c: Delete unused variables and add casting for char *
10200 throughout the file.
10201 (fontset_font): Try the fallback fonts of the current fontset
10202 before consulting the default fontset.
10203
10204 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10205
10206 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10207
102082008-05-22 Jason Rumney <jasonr@gnu.org>
10209
10210 * font.c: Don't include strings.h.
10211
10212 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10213
10214 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10215 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10216 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10217 to call xstrcasecmp.
10218
10219 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10220
10221 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10222
10223 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10224
10225 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10226
102272008-05-22 Kenichi Handa <handa@m17n.org>
10228
10229 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10230
10231 * font.c (font_prop_validate_style): Adjust for the format
10232 change of font_style_table.
10233
10234 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10235 two args.
10236
10237 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10238 two args.
10239
102402008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10241
10242 * minibuf.c (keys_of_minibuf): Delete.
10243 * lisp.h (keys_of_minibuf): Delete.
10244 * emacs.c (main): Don't call keys_of_minibuf.
10245
102462008-05-22 Kenichi Handa <handa@m17n.org>
10247
10248 * ftfont.c (ftfont_resolve_generic_family): Rename from
10249 ftfont_list_generic_family. Return a single family for each
10250 generic family.
10251 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10252 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10253 Call font_add_log.
10254 (ftfont_match): Call font_add_log.
10255
10256 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10257 (FONT_DEBUG): Define it.
10258 (font_add_log): Extern it.
10259 (font_assert): Rename from xassert.
10260
10261 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10262 (xfont_list_family): Call font_add_log.
10263 (xfont_match): Likewise.
10264 (memq_no_quit): Delete.
10265
10266 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10267 call of Ffont_xlfd_name.
10268
10269 * xfaces.c (struct table_entry, slant_table, weight_table)
10270 (swidth_table): Move to font.c.
10271
10272 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10273 xassert are changed to font_assert. Delete many unused variables.
10274 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10275 New variables.
10276 (struct table_entry): Move from xfaces.c and modified.
10277 (weight_table, slant_table, width_table): Move from xfaces.c and
10278 contents adjusted for the change of struct table_entry.
10279 (font_style_to_value, font_style_symbolic): Adjust for the
10280 format change of font_style_table.
10281 (font_parse_family_registry): Don't overwrite existing foundry and
10282 family of font_spec.
10283 (font_score): Fix calculation of diff for sizes.
10284 (font_sort_entites): Call font_add_log.
10285 (font_delete_unmatched): Return a newly created list.
10286 (font_list_entities): Fix previous change. Call font_add_log.
10287 (font_matching_entity, font_open_entity, font_close_entity):
10288 Call font_add_log.
10289 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10290 (Finternal_set_font_style_table): Delete.
10291 (BUILD_STYLE_TABLE): New macro.
10292 (build_style_table): New function.
10293 (Vfont_log, font_log_env_checked): New variables.
10294 (font_add_log): New function.
10295 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10296 Declare Lisp variables "font-weight-table", "font-slant-table",
10297 "font-width-table", and "font-log". Initialize font_style_table.
10298
102992008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10300
10301 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10302
103032008-05-21 Seiji Zenitani <zenitani@mac.com>
10304 Ryo Yoshitake <ryo@shiftmode.net>
10305
10306 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10307 (Vframe_alpha_lower_limit): New variable.
10308 (x_set_alpha): New function.
10309
10310 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10311
10312 * xfns.c (x-create-frame, Qalpha):
10313 Initialize the frame parameter `alpha'.
10314 * xterm.c (OPAQUE, OPACITY): New.
10315 (x_set_frame_alpha): New function.
10316 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10317
10318 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10319 * w32fns.c (w32_frame_parm_handlers): Likewise.
10320
103212008-05-20 Jason Rumney <jasonr@gnu.org>
10322
10323 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10324 truetype fonts to opentype list.
10325
103262008-05-20 Juanma Barranquero <lekktu@gmail.com>
10327
10328 * fontset.c (Ffontset_info): Doc fix.
10329 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10330 <ignore-relative-composition>: Fix typos in docstrings.
10331
10332 * font.c (syms-of-font) <font-encoding-alist>:
10333 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10334 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10335 (Ffont_otf_alternates): Doc fixes.
10336
103372008-05-20 Kenichi Handa <handa@m17n.org>
10338
10339 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10340 font.h through out the file.
10341 (FONT_DRIVERS): Rename from FONTOBJ.
10342 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10343 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10344
10345 * emacs.c (main): Call syms_of_font unconditionally.
10346
10347 * font.h (find_font_encoding): Extern it.
10348
10349 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10350 fontset.c.
10351 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
10352 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10353 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10354 only when HAVE_WINDOW_SYSTEM is defined.
10355 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10356 when HAVE_WINDOW_SYSTEM is defined.
10357
10358 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10359 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10360
10361 * xfaces.c: Include font.h unconditionally.
10362 (merge_face_ref, merge_face_vectors)
10363 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10364
103652008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10366
10367 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10368 indirect_variable.
10369 * eval.c (lisp_indirect_variable): New fun.
10370 (Fuser_variable_p): Use it.
10371
103722008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10373
10374 * lisp.h (indirect_variable):
10375 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10376 Use Lisp_Symbol pointers rather than Lisp_Object.
10377 Adjust callers.
10378 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10379 To this end, change calling-convention.
10380
10381 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10382 if some non-hidden buffers are selected by string&pred.
10383
103842008-05-19 Chong Yidong <cyd@stupidchicken.com>
10385
10386 * process.c (wait_reading_process_output): Always check status
10387 when in batch mode.
10388
103892008-05-19 Kenichi Handa <handa@m17n.org>
10390
10391 * font.c (font_list_entities): Fix handling of cache.
10392 (font_matching_entity): Likewise.
10393
10394 * ftfont.c (cs_iso8859_1): Delete.
10395 (ft_face_cache): New variable.
10396 (struct ftfont_info): New member fc_charset_idx.
10397 (ftfont_build_basic_charsets): Delete.
10398 (fc_charset_table): New variable.
10399 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10400 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10401 Callers changed.
10402 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10403 (ftfont_spec_pattern): New argument fc_charset_idx.
10404 Check registry more rigidly. Change callers.
10405 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10406 change of :font-entity property of the font.
10407
10408 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10409 property of the font.
10410
104112008-05-18 Juanma Barranquero <lekktu@gmail.com>
10412
10413 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10414 (Funencodable_char_position, Fcheck_coding_systems_region)
10415 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10416 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10417 (Ffind_operation_coding_system, Fset_coding_system_priority)
10418 (Fcoding_system_eol_type): Doc fixes.
10419
104202008-05-17 Glenn Morris <rgm@gnu.org>
10421
10422 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10423
104242008-05-16 Eli Zaretskii <eliz@gnu.org>
10425
10426 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10427 and st_gid.
10428
10429 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10430 HAVE_WINDOW_SYSTEM is not defined.
10431
10432 * xfaces.c (merge_face_ref, merge_face_vectors)
10433 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10434 HAVE_WINDOW_SYSTEM is defined.
10435 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10436
104372008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10438
10439 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10440
104412008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10442
10443 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10444
104452008-05-15 Kenichi Handa <handa@m17n.org>
10446
10447 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10448 preference.
10449
104502008-05-15 Glenn Morris <rgm@gnu.org>
10451
10452 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10453
104542008-05-15 Chong Yidong <cyd@stupidchicken.com>
10455
10456 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10457 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10458
10459 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10460
104612008-05-15 Kenichi Handa <handa@m17n.org>
10462
10463 * ftfont.c (ftfont_list): Downcase family name to check generic
10464 families.
10465
10466 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10467 font-spec for QCfont value.
10468
10469 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10470 buffer. Check the return value of it.
10471
104722008-05-14 Jason Rumney <jasonr@gnu.org>
10473
10474 * w32term.c (w32_get_glyph_overhangs): Remove.
10475 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10476
104772008-05-14 Kenichi Handa <handa@m17n.org>
10478
10479 * font.c (font_prop_validate): Make nil a valid value.
10480 (font_clear_cache): Check if the cached vector of entities is nil
10481 or not.
10482
104832008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10484
10485 * emacs.c (main_thread): Conditionalize on
10486 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10487 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10488
10489 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10490 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10491 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10492
104932008-05-14 Kenichi Handa <handa@m17n.org>
10494
10495 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10496 has no corresponding coding system.
10497
104982008-05-14 Jason Rumney <jasonr@gnu.org>
10499
10500 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10501
10502 * w32font.h (w32font_open_internal): Update declaration.
10503
10504 * w32font.c (w32font_open_internal): Change last argument from
10505 w32font_info struct to font object. Fill in font object from
10506 font_entity. Get Outline metrics if possible. Use them to
10507 calculate underline position and thickness. Use xlfd name as name
10508 property. Don't set codepage.
10509 (w32font_open): Pass font_object to w32font_open_internal. Don't
10510 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10511 (w32font_draw): Use s->font.
10512 (clear_cached_metrics): Don't clear non-existent blocks.
10513
10514 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10515 font was not found.
10516 (x_draw_glyph_string): Use underline position and thickness from font.
10517
10518 * w32uniscribe.c (uniscribe_open): Pass font_object to
10519 w32font_open_internal.
10520
105212008-05-14 Kenichi Handa <handa@m17n.org>
10522
10523 These changes are to delete all legacy font-handling codes, and
10524 make Emacs use only font-backends.
10525
10526 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10527 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10528
10529 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10530
10531 * charset.h (Vcharset_non_preferred_head)
10532 (Vcurrent_iso639_language): Extern them.
10533
10534 * charset.c (Vcharset_non_preferred_head): New variable.
10535 (Vcurrent_iso639_language): New variable.
10536 (syms_of_charset): Declare it as a Lisp variable.
10537 (char_charset): Don't check non preferred charsets. As a last
10538 resort, return charset_unicode.
10539 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10540
10541 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10542 conditionals. Don't check enable_font_backend. Delete all codes
10543 used only when USE_FONT_BACKEND is not defined.
10544
10545 * dispextern.h (struct glyph_string): Change type of `font' to
10546 `struct font *'.
10547 (struct glyph_string): New member underline_position and
10548 underline_thickness.
10549 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
10550 (struct face): Change type of `font' to `struct font *'. Remove
10551 members `font_name', `font_info_id'.
10552 (per_char_metric, encode_char): Delete externs.
10553 (calc_pixel_width_or_height): Adjust the prototype.
10554
10555 * emacs.c (enable_font_backend): Delete extern.
10556 (main): Don't set enable_font_backend. Don't check the command
10557 line argument "-disable-font-backend".
10558
10559 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
10560 (enum font_property_index): New members FONT_DPI_INDEX,
10561 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
10562 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
10563 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
10564 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
10565 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
10566 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
10567 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
10568 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
10569 (struct font_spec, struct font_entity): New structs.
10570 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
10571 (struct font): Many members from old "struct font_info" moved to
10572 here. Members font and entity deleted.
10573 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
10574 the new font-related objects.
10575 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
10576 (CHECK_FONT_GET_OBJECT): Likewise.
10577 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
10578 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
10579 (struct font_driver): New members case_sensitive anc check. Type
10580 of the member list and open changed.
10581 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
10582 (font_symbolic_width, font_find_object, font_get_spec)
10583 (font_set_lface_from_name): Delete extern.
10584 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
10585
10586 * font.c: Include <strings.h>.
10587 (enable_font_backend): Delete it.
10588 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
10589 (CHECK_VALIDATE_FONT_SPEC): Delete it.
10590 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
10591 (null_string): Delete it.
10592 (null_vector): Make it static.
10593 (font_family_alist): Delete it.
10594 (Qnormal): Extern it.
10595 (QCextra, QClanguage): Delete it.
10596 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
10597 (font_make_spec, font_make_entity, font_make_object)
10598 (font_intern_prop): Renamed from intern_downcase. Don't downcase
10599 the string. Callers changed.
10600 (font_pixel_size): Adjusted for the format change of font-related
10601 objects.
10602 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
10603 (font_style_to_value, font_style_symbolic): New function.
10604 (build_font_family_alist): Delete it.
10605 (font_registry_charsets): Use Fassoc_string instead of
10606 assq_no_quit.
10607 (font_prop_validate_symbol): Don't return null_string.
10608 (font_prop_validate_style): Adjusted for the change of
10609 style-related values in a font vector.
10610 (font_property_table): Delete entries for QClanguage and
10611 QCantialias, add entries for QCavgwidth.
10612 (get_font_prop_index): Delete the 2nd argument FROM.
10613 (font_prop_validate): Arguments changed.
10614 (font_put_extra): Adjusted for the change of font-related objects.
10615 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
10616 (font_parse_fcname, font_unparse_fcname)
10617 (font_prepare_composition): Likewise.
10618 (font_parse_family_registry): Renamed from font_merge_old_spec.
10619 (otf_open): Delete the 1st arg entity.
10620 (font_otf_capability): Adjusted for the above change.
10621 (font_score): New arg alternate_families. Adjusted for the change
10622 of font-related objects.
10623 (font_sort_entites): New arg best_only.
10624 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
10625 Delete them.
10626 (font_match_p): Check alternate families.
10627 (font_find_object): Delete it.
10628 (font_check_object): New function.
10629 (font_clear_cache): Adjusted for the change of font-related objects.
10630 (font_delete_unmatched): New arg.
10631 (font_list_entities): Call font_driver->list with a spec that
10632 doesn't specify style-related properties.
10633 (font_matching_entity): Arguments changed. Caller changed.
10634 (font_open_entity): Adjusted for the change of font-related objects.
10635 (font_close_object, font_has_char, font_encode_char)
10636 (font_get_name, font_get_spec): Likewise.
10637 (font_spec_from_name, font_clear_prop, font_update_lface):
10638 New functions.
10639 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
10640 (font_prepare_for_face, font_done_for_face, font_open_by_name)
10641 (font_at): Adjusted for the change of font-related objects.
10642 (font_range): New function.
10643 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
10644 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
10645 (Fcopy_font_spec, Fmerge_font_spec): New function.
10646 (Ffont_family_list): Renamed from list-families.
10647 (Finternal_set_font_style_table): Arguments changed.
10648 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
10649 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
10650 change of font-related objects.
10651 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
10652
10653 * fontset.h (struct font_info): Delete it. Most members go to
10654 struct font.
10655 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
10656 (enum FONT_SPEC_INDEX): Delete it.
10657 (font_info, list_fonts_func, load_font_func, query_font_func)
10658 (set_frame_fontset_func, find_ccl_program_func)
10659 (get_font_repertory_func, new_fontset_from_font_name): Delete
10660 externs.
10661 (fontset_from_font_name): Extern it.
10662 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
10663 (FONT_INFO_FROM_FACE): Deleted.
10664 (face_for_font): Adjust prototype.
10665
10666 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
10667 conditionals. Don't check enable_font_backend. Delete all codes
10668 used only when USE_FONT_BACKEND is not defined.
10669 (get_font_info_func, list_font_func, load_font_func)
10670 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
10671 (get_font_repertory_func): Delete them.
10672 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
10673 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
10674 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
10675 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
10676 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
10677 (fontset_compare_rfontdef): New function.
10678 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
10679 rfont-defs by qsort. Adjusted for the change of font-group vector.
10680 (load_font_get_repertory): Deleted.
10681 (fontset_find_font): Use new macros to ref/set elements of
10682 font-def and rfont-def.
10683 (fontset_font): Fix the timing of remembering that no font for C.
10684 (free_face_fontset): Do nothing if the face has no fontset.
10685 (face_suitable_for_char_p): Use new macros to ref/set elements of
10686 rfont-def.
10687 (face_for_char): Likewise. Call face_for_char with font_object.
10688 (fs_load_font): Delete. Delete #pragma surrounding it.
10689 (fs_query_fontset): Use strcasecmp instead of strcmp.
10690 (generate_ascii_font_name): Adjusted for the format change of
10691 font-spec.
10692 (Fset_fontset_font): Likewise. Use new macros to set elements of
10693 font-def.
10694 (Fnew_fontset): Use font_unparse_xlfd to generate
10695 FONTSET_ASCII (fontset).
10696 (new_fontset_from_font_name): Deleted.
10697 (fontset_from_font): Renamed from new_fontset_from_font. Check if
10698 a fontset is already created for the font. FIx updating of
10699 Vfontset_alias_alist.
10700 (fontset_ascii_font): Deleted.
10701 (Ffont_info): Adjusted for the format change of font-spec.
10702 (Finternal_char_font): Likewise.
10703 (Ffontset_info): Likewise.
10704 (syms_of_fontset): Don't check load_font_func.
10705
10706 * fns.c (internal_equal): Handle PREV_FONT.
10707
10708 * frame.h: Delete USE_FONT_BACKEND conditional.
10709
10710 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
10711 conditionals. Don't check enable_font_backend. Delete all codes
10712 used only when USE_FONT_BACKEND is not defined.
10713 (x_set_font): Call x_new_font, not x_new_fontset2.
10714 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
10715 already set for the frame.
10716
10717 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
10718 a font-entity by font_make_entity. Use font_intern_prop instead
10719 of intern_downcase. Use FONT_SET_STYLE to set a style-related
10720 font property. If a font is scalable, set avgwidth property to 0.
10721 Set font-entity property by font_put_extra.
10722 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
10723 (ffont_driver): Adjusted for the change of struct font_driver.
10724 (ftfont_spec_pattern): New function.
10725 (ftfont_list): Return a list, not vector.
10726 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
10727 (ftfont_list_family): Don't downcase names.
10728 (ftfont_free_entity): Deleted.
10729 (ftfont_open): Return a font-object. Adjusted for the change of
10730 struct font. Get underline_thickness and underline_position from
10731 font property. Don't update dpyinfo->smallest_font_height and
10732 dpyinfo->smallest_char_width.
10733 (ftfont_close): Don't free `struct font'.
10734 (ftfont_has_char): Adjusted for the format change of font-entity.
10735 (ftfont_encode_char, ftfont_text_extents): Likewise.
10736
10737 * ftxfont.c (ftxfont_list): Return a list, not vector.
10738 (ftxfont_open): Return a font-object. Adjusted for the change of
10739 struct font. Get underline_thickness and underline_position from
10740 font property. Don't update dpyinfo->smallest_font_height and
10741 dpyinfo->smallest_char_width.
10742 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
10743 (ftxfont_draw): Adjusted for the change of struct font.
10744
10745 * image.c (image_ascent): Don't include "charset.h". Include
10746 "character.h" and "font.h".
10747
10748 * lisp.h (enum pvec_type): New member PREV_FONT.
10749 (Fassoc_string): EXFUN it.
10750
10751 * print.c: Include font.h.
10752 (print_object): Handle font-related objects.
10753
10754 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
10755 conditionals. Don't check enable_font_backend. Delete all codes
10756 used only when USE_FONT_BACKEND is not defined.
10757 (handle_auto_composed_prop): Do nothing if it->f is not on a
10758 window system. Check how many following characters can be
10759 displayed by the same font.
10760 (calc_pixel_width_or_height): Type of the 4th arg is changed to
10761 'struct font *'.
10762 (get_char_face_and_encoding): Assign the whole encoding task to
10763 the `encode-char' method of a font driver.
10764 (fill_composite_glyph_string): Adjusted for the change of `struct
10765 face' and `struct glyph_string'.
10766 (fill_glyph_string): Likewise.
10767 (get_per_char_metric): Arguments changed.
10768 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
10769 and `struct glyph_string'.
10770 (produce_stretch_glyph, calc_line_height_property)
10771 (x_produce_glyphs): Likewise.
10772
10773 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
10774 conditionals. Don't check enable_font_backend. Delete all codes
10775 used only when USE_FONT_BACKEND is not defined. Use
10776 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
10777 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
10778 (Qp): Extern them.
10779 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
10780 Deleted.
10781 (struct font_name): Deleted.
10782 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
10783 (compare_fonts_by_sort_order): New function.
10784 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
10785 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
10786 Deleted.
10787 (Fx_family_fonts): Use font_list_entities, and sort fonts by
10788 compare_fonts_by_sort_order.
10789 (Fx_font_family_list): Call Ffont_family_list.
10790 (face_numeric_value, face_numeric_weight, face_numeric_slant)
10791 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
10792 (face_symbolic_slant, face_symbolic_swidth)
10793 (split_font_name_into_vector, build_font_name_from_vector)
10794 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
10795 (font_rescale_ratio, split_font_name, build_font_name)
10796 (free_font_names, sort_fonts, x_face_list_fonts)
10797 (face_font_available_p, sorted_font_list, cmp_font_names)
10798 (font_list_1, concat_font_list, font_list, remove_duplicates):
10799 Deleted.
10800 (Fx_list_fonts): Use Ffont_list.
10801 (LFACE_AVGWIDTH): Deleted.
10802 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
10803 by FONTP.
10804 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
10805 (set_lface_from_font_name): Delete it.
10806 (set_lface_from_font): Renamed from
10807 set_lface_from_font_and_fontset. Caller changed. Don't set
10808 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
10809 for face.
10810 (merge_face_vectors): Copy font-spec if necessary.
10811 Clear properties of the font-spec if necessary.
10812 (merge_face_ref): Clear properties of the font-spec if necessary.
10813 (Finternal_set_lisp_face_attribute): Likewise.
10814 (set_font_frame_param): Use font_load_for_lface to load a
10815 font-object, and call Fmodify_frame_parameters with it.
10816 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
10817 font name by Ffont_xlfd_name.
10818 (Finternal_lisp_face_attribute_values): Don't check QCweight,
10819 QCslant, and QCwidth.
10820 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
10821 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
10822 Compare fonts by EQ.
10823 (lookup_non_ascii_face): Deleted.
10824 (face_for_font): The 2nd argument changed.
10825 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
10826 Check atomic font properties by case insensitive.
10827 (realize_non_ascii_face): Set face->overstrike correctly.
10828 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
10829 (dump_realized_face): Get font name from
10830 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
10831
10832 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
10833 conditionals. Don't check enable_font_backend. Delete all codes
10834 used only when USE_FONT_BACKEND is not defined.
10835 (xic_create_xfontset): Original code deleted and renamed from
10836 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
10837 (x_make_gc): Don't set GCFont in GCs.
10838 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
10839 opened by "fixed".
10840 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
10841 find_ccl_program_func, query_font_func, set_frame_fontset_func,
10842 get_font_repertory_func.
10843
10844 * xfont.c: Include <stdlib.h> and "ccl.h".
10845 (struct xfont_info): New structure.
10846 (xfont_query_font): Deleted.
10847 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
10848 moved from xterm.c.
10849 (xfont_driver): Adjusted for the change of struct font_driver.
10850 (compare_font_names): New function.
10851 (xfont_list_pattern): Sort font names case insensitively. Make
10852 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
10853 (xfont_list): Return a list, not vector.
10854 (xfont_match): If the font doesn't have QCname property, generate
10855 a name from the other font properties.
10856 (xfont_open): Return a font-object. Adjusted for the change of
10857 struct font. Get underline_thickness and underline_position from
10858 font property. Don't update dpyinfo->smallest_font_height and
10859 dpyinfo->smallest_char_width.
10860 (xfont_close): Don't free struct font.
10861 (xfont_prepare_face): Adjusted for the change of struct font.
10862 (xfont_done_face): Deleted.
10863 (xfont_has_char): Adjusted for the change of struct font.
10864 (xfont_encode_char, xfont_draw): Likewise.
10865 (xfont_check): New function.
10866
10867 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10868 callback function.
10869 (xftfont_match): Adjusted for the format change of font-entity.
10870 (xftfont_open): Adjusted for the format change of font-entity and
10871 font-object. Adjusted for the change of struct font. Return a
10872 font-object. Don't update dpyinfo->smallest_font_height and
10873 dpyinfo->smallest_char_width.
10874 (xftfont_close): Block input while calling XftFontClose.
10875 (xftfont_prepare_face): Don't block input while calling
10876 xftfont_get_colors. Adjusted for the change of struct font.
10877 (xftfont_shape): Return value of error case fixed.
10878
10879 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10880
10881 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10882 conditionals.
10883 (FONT_WIDTH): Return (f)->max_width.
10884 (struct x_display_info): Delete member `font'.
10885 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10886 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10887 (struct x_output): Change type of `font' to `struct font *'.
10888
10889 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
10890 conditionals. Don't check enable_font_backend. Delete all codes
10891 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
10892 (x_per_char_metric, x_encode_char): Deleted.
10893 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10894 (x_compute_glyph_string_overhangs): Adjusted for the change of
10895 `struct face'.
10896 (x_draw_glyph_string_foreground)
10897 (x_draw_composite_glyph_string_foreground): Likewise.
10898 (x_draw_glyph_string): Likewise. Use font->underline_position and
10899 font->underline_thickness.
10900 (x_new_font): Renamed from x_new_fontset2.
10901 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
10902 (x_check_font): Call `check' method of a font driver.
10903 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
10904 (x_query_font, x_get_font_repertory): Deleted.
10905 (x_find_ccl_program): Renamed and moved to xfont.c.
10906 (x_redisplay_interface): Adjusted for the change of `struct
10907 redisplay_interface'.
10908
10909 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
10910 conditionals. Don't check enable_font_backend. Delete all codes
10911 used only when USE_FONT_BACKEND is not defined. Surround non-used
10912 code by "#ifdef OLD_FONT" and "endif".
10913 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
10914
10915 * w32font.h (struct w32font_info): New member.
10916 (FONT_COMPAT): New macro.
10917 (w32font_open_internal): Prototype adjusted.
10918
10919 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
10920 OLD_FONT" and "endif".
10921
10922 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
10923 conditionals. Don't check enable_font_backend. Delete all codes
10924 used only when USE_FONT_BACKEND is not defined.
10925 (w32font_open): Return a font-object. Make a font-object by
10926 font_make_object. Adjusted for the change of struct w32font_info.
10927 (w32font_close): Don't free struct font. Adjusted for the change
10928 of struct w32font_info.
10929 (w32font_encode_char, w32font_text_extents, w32font_draw):
10930 Adjusted for the change of struct w32font_info.
10931 (w32font_draw): Likewise.
10932 (w32font_list_internal): Return a list, not vector.
10933 (w32font_open_internal): Change the 4th arg to font-object.
10934 Adjusted for the change of struct w32font_info and font-object format.
10935 (add_font_name_to_list): Don't downcase names.
10936 (w32_enumfont_pattern_entity): Make a font-entity by
10937 font_make_entity. Adjusted for the format change of font-entity.
10938 Use FONT_SET_STYLE to set a style-related font property. If a
10939 font is scalable, set avgwidth property to 0. Set font-entity
10940 property by font_put_extra.
10941 (font_matches_spec): Adjusted for the format change of font-entity.
10942 (w32_weight_table, w32_decode_weight): New variables.
10943 (w32_encode_weight): New function.
10944 (fill_in_logfont): Adjusted for the format change of font-spec.
10945 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
10946 weight value.
10947 (w32font_driver): Adjusted for the change of struct font_driver.
10948
10949 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
10950 conditionals. Don't check enable_font_backend. Surround non-used
10951 code by "#ifdef OLD_FONT" and "endif".
10952 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
10953 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
10954
10955 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10956 conditionals. Don't check enable_font_backend. Delete all codes
10957 used only when USE_FONT_BACKEND is not defined. Surround non-used
10958 code by "#ifdef OLD_FONT" and "endif".
10959
10960 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10961 (uniscribe_open): Return value changed to font-object.
10962 Adjusted for the format change of font-object.
10963 (uniscribe_otf_capability): Adjusted for the change of struct font.
10964 (add_opentype_font_name_to_list): Don't downcase names.
10965 (uniscribe_font_driver): Adjusted for the change of struct
10966 font_driver.
10967
109682008-05-13 Chong Yidong <cyd@stupidchicken.com>
10969
10970 * dispnew.c (update_frame_1): Check if tty output is still valid
10971 before flushing it.
10972
109732008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10974
10975 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10976 to Gtk+ menus.
10977
109782008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10979
10980 * dired.c (file_name_completion): Tweak the code so as to always do it
10981 in a single pass. Tighten the scope of some variables.
10982
10983 * dired.c (Qdefault_directory): New var.
10984 (file_name_completion): Use it instead of Fexpand_file_name.
10985 (syms_of_dired): Initialize it.
10986
109872008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10988
10989 * fileio.c (double_dollars): Remove dead code.
10990
109912008-05-10 Eli Zaretskii <eliz@gnu.org>
10992
10993 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10994 Mention w32-get-true-file-attributes in doc string.
10995
10996 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10997
109982008-05-09 Glenn Morris <rgm@gnu.org>
10999
11000 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11001 2008-04-23.
11002
110032008-05-09 Eli Zaretskii <eliz@gnu.org>
11004
11005 Support for reporting owner and group of each file on MS-Windows:
11006 * dired.c (stat_uname, stat_gname): New functions, with special
11007 implementation for w32.
11008 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11009
11010 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11011 (dflt_group_name): New static variable.
11012 (dflt_group): Rename from the_group.
11013 (init_user_info): Init dflt_group fields. Get user's group name
11014 from LookupAccountSid.
11015 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11016 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11017 New initialization states.
11018 (globals_of_w32): Initialize them to zero. Initialize the default
11019 group name to "None".
11020 (GetFileSecurity_Name): New global var, the name of the function
11021 to call for GetFileSecurity.
11022 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11023 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11024 (get_file_security, get_security_descriptor_owner)
11025 (get_security_descriptor_group, is_valid_sid)
11026 (get_file_security_desc, get_rid, get_name_and_id)
11027 (get_file_owner_and_group): New functions.
11028 (stat): Use get_file_security_desc and get_file_owner_and_group to
11029 report the owner and primary group of each file. Don't ignore the
11030 high 32 bits of file's size, now that st_size is 64-bit wide.
11031 Fix test when to get true file attributes.
11032 (init_user_info): Use get_rid instead of equivalent inline code.
11033 (fstat): Don't ignore the high 32 bits of file's size.
11034
110352008-05-09 Chong Yidong <cyd@stupidchicken.com>
11036
11037 * image.c (png_load): Use correct bit-depth for setting background
11038 color.
11039
110402008-05-08 Eli Zaretskii <eliz@gnu.org>
11041
11042 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11043 epa-hook.elc.
11044
110452008-05-08 Juanma Barranquero <lekktu@gmail.com>
11046
11047 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11048
110492008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11050
11051 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11052 because the original parameters are in pure storage now.
11053 (mac_window): Remove unused params. Update callers.
11054
110552008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11056
11057 * lread.c (substitute_object_recurse): Use lower-level primitives.
11058 Don't signal errors when traversing sub-char-tables.
11059 Don't loop over all the possible characters when traversing char-tables.
11060
11061 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11062 just like we do in print.c.
11063
110642008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11065
11066 * minibuf.c (Ftry_completion): Remove code left over from when we used
11067 scmp instead of Fcompare_strings.
11068
110692008-05-04 Juanma Barranquero <lekktu@gmail.com>
11070
11071 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11072
110732008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11074
11075 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11076 Create bitmap context in native byte order.
11077
11078 * macterm.c (XDrawLine)
11079 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11080 context in native byte order.
11081
110822008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11083
11084 * config.in: Regenerate.
11085
11086 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11087 New definitions for Image I/O support.
11088 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11089 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11090 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11091 (mac_data_provider_release_data, image_load_image_io)
11092 [USE_MAC_IMAGE_IO]: New functions.
11093 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11094 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11095 (init_image_func_pointer) [MAC_OSX]: Remove function.
11096 (image_load_quartz2d) [MAC_OSX]: Check availability of
11097 CGImageCreateWithPNGDataProvider at compile time.
11098 Use lowercase `false' for boolean constant.
11099 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11100 Use image_load_image_io.
11101 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11102 Don't check MyCGImageCreateWithPNGDataProvider.
11103 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11104 Don't call init_image_func_pointer.
11105
11106 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11107
11108 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11109 Make variable non-static.
11110 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11111 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11112
11113 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11114 (RED_FROM_ULONG): Mask off higher bits.
11115 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11116
11117 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11118 Include AvailabilityMacros.h.
11119 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11120 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11121
111222008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11123
11124 * chartab.c (Fset_char_table_range): If range is t, really set all
11125 chars to that value.
11126
111272008-05-03 Eli Zaretskii <eliz@gnu.org>
11128
11129 * dired.c (Ffile_attributes): Don't allow the device number become
11130 negative.
11131
111322008-05-02 Daiki Ueno <ueno@unixuser.org>
11133
11134 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11135
111362008-05-02 Juri Linkov <juri@jurta.org>
11137
11138 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11139 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11140 DEFAULT argument as a list of default values in docstrings.
11141
111422008-05-01 Chong Yidong <cyd@stupidchicken.com>
11143
11144 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11145
111462008-05-01 Martin Rudalics <rudalics@gmx.at>
11147
11148 * dispnew.c (change_frame_size_1): Preserve small windows when
11149 shrinking frames by calling set_window_height|width with third
11150 arg 2.
11151
11152 * window.h (struct window): Replace field too_small_ok by field
11153 resize_proportionally.
11154
11155 * window.c (make_window): Initialize resize_proportionally.
11156 (enlarge_window): Temporarily set resize_proportionally to make
11157 sure that shrink_windows does scale the window proportionally.
11158 (shrink_windows): When window has resize_proportionally set try
11159 to shrink it proportionally by stealing from other windows.
11160 (struct saved_window, Fset_window_configuration)
11161 (compare_window_configurations): Handle resize_proportionally.
11162 (WINDOW_TOTAL_SIZE): New macro.
11163 (window_min_size, shrink_windows, size_window): Use it.
11164 (check_min_window_sizes): Remove. Invalid values of
11165 window-min-height|width are handled by window_min_size_2 now.
11166 (size_window, Fsplit_window, enlarge_window)
11167 (adjust_window_trailing_edge, grow_mini_window): Don't call
11168 check_min_window_sizes.
11169 (window_min_size_2, window_min_size_1, window_min_size):
11170 New argument safe_p for retrieving "safe" minimum sizes.
11171 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11172 (adjust_window_trailing_edge, grow_mini_window):
11173 Adjust arguments of window_min_size... functions.
11174 (shrink_windows): Argument min_size removed. New argument
11175 safe_p allows shrinking windows to their safe minimum sizes.
11176 Calculate minimum size and decide whether a window shall be
11177 deleted for each window individually.
11178 (size_window): When nodelete_p equals 2, tell shrink_windows to
11179 delete windows only if their new minimum size is no more safe.
11180 (shrink_window_lowest_first): Call window_min_size_1 to make
11181 sure to preserve modeline of bottom-most window when resizing
11182 the minibuffer.
11183 (Fset_window_configuration, Fcurrent_window_configuration)
11184 (compare_window_configurations): Do not handle
11185 window-min-height|width any more.
11186 (syms_of_window): Clarify window-min-height|width doc-strings.
11187
111882008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11189
11190 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11191 some more. Copy some of the code from Ftry_completions.
11192 Remove special case code that dates back to initial revision when the
11193 slash was only added when necessary and that can't trigger nowadays.
11194
111952008-04-27 Kenichi Handa <handa@m17n.org>
11196
11197 * font.c (font_prop_validate): Signal `error' instead of `font'.
11198
111992008-04-29 Jason Rumney <jasonr@gnu.org>
11200
11201 * w32fns.c (Fw32_battery_status): New defun.
11202 (syms_of_w32fns): Defsubr it.
11203
112042008-04-28 Andreas Schwab <schwab@suse.de>
11205
11206 * dired.c (file_name_completion): Fix another mixing of encoded
11207 and decoded names.
11208
112092008-04-28 Juanma Barranquero <lekktu@gmail.com>
11210
11211 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11212
112132008-04-27 Juanma Barranquero <lekktu@gmail.com>
11214
11215 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11216
112172008-04-27 Andreas Schwab <schwab@suse.de>
11218
11219 * dired.c (file_name_completion): Fix inappropriate mixing of
11220 encoded and decoded names.
11221
11222 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11223
11224 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11225
112262008-04-26 Eli Zaretskii <eliz@gnu.org>
11227
11228 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11229 2008-03-31, it's not needed anymore with `struct stat' definition
11230 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11231 for the same reasons.
11232
112332008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11234
11235 * m/sparc.h: Additional redefinitions for GNU/Linux.
11236
112372008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11238
11239 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11240 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11241 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11242 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11243 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11244 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11245 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11246 Likewise.
11247
11248 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11249 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11250 (mac_ax_number_of_characters): Add externs.
11251 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11252 [USE_MAC_TSM]: Likewise.
11253 (mac_handle_text_input_event) [MAC_OSX]:
11254 Handle kEventTextInputOffsetToPos for no active input area case.
11255 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11256 (mac_handle_document_access_event)
11257 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11258 (install_application_handler) [MAC_OSX]: Register handlers for
11259 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11260 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11261 Register mac_handle_document_access_event.
11262
11263 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11264 Make functions non-static.
11265
112662008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11267
11268 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11269 (read_file_name_completion_ignore_case, insert_default_directory)
11270 (Qdefault_directory): Move to minibuffer.el.
11271 (Fread_file_name): Call the new `read-file-name' instead.
11272
112732008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11274
11275 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11276 Make function non-static.
11277 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11278 Remove function.
11279 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11280 Move to mactoolbox.c.
11281 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11282
11283 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11284 (mac_rect_make): New macro.
11285
11286 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11287 instead of float.
11288 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11289 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11290 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11291 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11292 CGRectMake.
11293 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11294 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11295 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11296 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11297 instead of WindowRef in argument type.
11298 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11299 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11300 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11301 instead of DISPLAY. All uses changed.
11302 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11303 (x_calc_absolute_position): Simplify so as not to use
11304 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11305
11306 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11307 instead of WindowRef in argument type.
11308 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11309 [TARGET_API_MAC_CARBON]: Remove externs.
11310 (create_apple_event, mac_event_parameters_to_lisp)
11311 [TARGET_API_MAC_CARBON]: Add externs.
11312
11313 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11314 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11315 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11316 is clicked.
11317 (x_activate_menubar): Remove extern for saved_menu_event_location.
11318 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11319 Move from mac.c.
11320
113212008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11322
11323 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11324 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11325
113262008-04-23 Jason Rumney <jasonr@gnu.org>
11327
11328 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11329 attributes only for local files.
11330
11331 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11332 default to Qlocal.
11333
113342008-04-22 Juri Linkov <juri@jurta.org>
11335
11336 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11337 read-buffer-to-switch instead of using the letter "B".
11338
113392008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11340
11341 * fileio.c (Qdefault_directory): New variable.
11342 (Fread_file_name): Use it to pass `dir' to the completion functions.
11343
113442008-04-20 Chong Yidong <cyd@stupidchicken.com>
11345
11346 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11347
113482008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11349
11350 * keyboard.c (Vpre_help_message): Remove.
11351 (show_help_echo): Remove default C code.
11352
11353 * dired.c (directory_files_internal, file_name_completion):
11354 Only call ENCODE_FILE if the string is indeed decoded.
11355
113562008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11357
11358 * Makefile.in (TOOLKIT_DEFINES): Remove.
11359 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11360
113612008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11362
11363 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11364 (mactoolbox.o): New target.
11365
11366 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11367 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11368
11369 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11370 Use mac_set_frame_window_background instead of XSetWindowBackground.
11371 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11372 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11373 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11374 instead of SetWindowTitleWithCFString.
11375 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11376 Move function to mactoolbox.c.
11377 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11378 Use mac_set_window_modified instead of SetWindowModified.
11379 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11380 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11381 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11382 FrontNonFloatingWindow. Use mac_activate_window instead of
11383 ActivateWindow. Use mac_active_non_floating_window instead of
11384 ActiveNonFloatingWindow.
11385 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11386 Use mac_show_hourglass and mac_hide_hourglass.
11387 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11388 instead of GetGlobalMouse.
11389 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11390 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11391 Use mac_bring_window_to_front instead of BringToFront.
11392 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11393 mactoolbox.c.
11394 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11395 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11396 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11397 mactoolbox.c.
11398
11399 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11400 (XtPointer): Move typedef from macmenu.c.
11401 (enum button_type): Move enum from macmenu.c.
11402 (widget_value): Move typedef from macmenu.c.
11403 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11404 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11405 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11406 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11407 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11408 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11409 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11410 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11411 (Selection): Move typedef from macselect.c.
11412 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11413 macterm.c.
11414 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11415 (mac_is_window_collapsed, mac_bring_window_to_front)
11416 (mac_send_window_behind, mac_hide_window, mac_show_window)
11417 (mac_collapse_window, mac_front_non_floating_window)
11418 (mac_active_non_floating_window, mac_activate_window)
11419 (mac_move_window_structure, mac_move_window, mac_size_window)
11420 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11421
11422 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11423 (enum mac_menu_kind): Move enum to mactoolbox.c.
11424 (min_menu_id): Move variable to mactoolbox.c.
11425 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11426 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11427 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11428 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11429 [TARGET_API_MAC_CARBON]: Likewise.
11430 (XtPointer): Move typedef to macgui.h.
11431 (enum button_type): Move enum to macgui.h.
11432 (widget_value): Move typedef to macgui.h.
11433 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11434 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11435 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11436 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11437 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11438 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11439 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11440 (popup_activated_flag): Make variable non-static.
11441 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11442 (add_menu_item, fill_menu, dispose_menus):
11443 Move functions to mactoolbox.c.
11444 (restore_show_help_function, menu_target_item_handler)
11445 (install_menu_target_item_handler, mac_handle_dialog_event)
11446 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11447 [TARGET_API_MAC_CARBON]: Likewise.
11448 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11449 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11450 (find_and_call_menu_selection, name_is_separator): Make function
11451 non-static.
11452 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11453 to mactoolbox.c.
11454 (set_frame_menubar): Don't call install_menu_quit_handler.
11455 (menu_item_selection): New variable.
11456 (mac_menu_show): Use create_and_show_popup_menu.
11457 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11458 selection but set variable menu_item_selection. All uses changed.
11459 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11460 Call install_menu_quit_handler. Move to mactoolbox.c.
11461
11462 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11463 (Selection): Move typedef to macgui.h.
11464 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11465 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11466 Make variables non-static.
11467 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11468 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11469 Make functions non-static.
11470 (Vmac_service_selection) [MAC_OSX]: Likewise.
11471 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11472 (mac_valid_selection_target_p, mac_clear_selection)
11473 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11474 (mac_put_selection_value, mac_selection_has_target_p)
11475 (mac_get_selection_value, mac_get_selection_target_list)
11476 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11477 Move functions to mactoolbox.c.
11478 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11479 Likewise.
11480 (copy_scrap_flavor_data, mac_handle_service_event)
11481 (install_service_handler) [MAC_OSX]: Likewise.
11482 (syms_of_macselect) <Vmac_dnd_known_types>:
11483 Use mac_dnd_default_known_types.
11484
11485 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11486 Move to mactoolbox.c.
11487 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11488 (Fx_selection_owner_p): Add EXFUN.
11489 (install_window_handler, remove_window_handler, XSetWindowBackground):
11490 Remove externs.
11491 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11492 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11493 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11494 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11495 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11496 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11497 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11498 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11499 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11500 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11501 (mac_valid_selection_target_p, mac_clear_selection)
11502 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11503 (mac_put_selection_value, mac_selection_has_target_p)
11504 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11505 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11506 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11507 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11508 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11509 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11510 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11511 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11512 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11513
11514 * mactoolbox.c: New file.
11515
115162008-04-18 Jason Rumney <jasonr@gnu.org>
11517
11518 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11519
115202008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11521
11522 * character.c (Fmultibyte_char_to_unibyte):
11523 Return latin1 chars unchanged.
11524
11525 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11526 relocated if it points to `name'.
11527
115282008-04-17 Kenichi Handa <handa@m17n.org>
11529
11530 * data.c (Faset): Allow setting a multibyte character in an
11531 ASCII-only unibyte string.
11532
11533 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11534
115352008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11536
11537 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11538 done in config.h.
11539
115402008-04-16 Juanma Barranquero <lekktu@gmail.com>
11541
11542 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11543 (Fchar_direction): Add usage in the docstring.
11544
115452008-04-15 Chong Yidong <cyd@stupidchicken.com>
11546
11547 * keyboard.c (read_key_sequence): Remove always-true checks.
11548
115492008-04-14 Jason Rumney <jasonr@gnu.org>
11550
11551 * w32font.c (w32font_open_internal): Set max_bounds.descent in
11552 compatibility struct, for better underline positioning.
11553
115542008-04-13 David Hansen <david.hansen@gmx.net>
11555
11556 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
11557 string.
11558
115592008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
11560
11561 * m/hp800.h (XUINT, XSET): Remove.
11562
115632008-04-12 Juanma Barranquero <lekktu@gmail.com>
11564
11565 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
11566 previous change.
11567
115682008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
11569
11570 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
11571 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
11572
115732008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11574
11575 * keymap.h (map_keymap_canonical): Declare.
11576 * xmenu.c (single_keymap_panes): Use it.
11577
115782008-04-11 Glenn Morris <rgm@gnu.org>
11579
11580 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
11581 set the target's value to that of the alias.
11582
115832008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11584
11585 * term.c (set_tty_color_mode): Left over typo.
11586
115872008-04-10 Michael Albinus <michael.albinus@gmx.de>
11588
11589 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
11590 only after check for file name handler functions. Signal, when
11591 native functionality is not supported.
11592 (syms_of_fileio): Declare it unconditionally.
11593
115942008-04-10 Jason Rumney <jasonr@gnu.org>
11595
11596 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
11597 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
11598
11599 * w32.c (logon_network_drive): Also logon to remote drives that
11600 are mapped to drive letters.
11601
116022008-04-10 Glenn Morris <rgm@gnu.org>
11603
11604 * xdisp.c (truncate-partial-width-windows): Doc fix.
11605
116062008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
11607
11608 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
11609 Move functions to minibuffer.el.
11610 (syms_of_fileio): Don't declare them.
11611
116122008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11613
11614 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
11615 (syms_of_minibuf): Remove its initialization.
11616
11617 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
11618
116192008-04-09 Juanma Barranquero <lekktu@gmail.com>
11620
11621 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
11622
116232008-04-09 Jason Rumney <jasonr@gnu.org>
11624
11625 * makefile.w32-in (distclean): Delete makefile too.
11626 (maintainer-clean): New target.
11627
11628 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
11629
11630 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
11631 for new font backend and composite cases.
11632
116332008-04-09 Jan Djärv <jan.h.d@swipnet.se>
11634
11635 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
11636 Most of the code moved to run_timers.
11637 (do_pending_atimers): Call run_timers.
11638 (run_timers): New function.
11639
11640 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
11641 run atimers.
11642
11643 * process.c (wait_reading_process_output): The same as above.
11644
116452008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11646
11647 * minibuf.c (last_exact_completion): Remove variable.
11648 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
11649 (complete_and_exit_1, complete_and_exit_2)
11650 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
11651 (Fdisplay_completion_list, display_completion_list_1)
11652 (Fminibuffer_completion_help, Fself_insert_and_exit)
11653 (Fexit_minibuffer, Fminibuffer_message): Move functions to
11654 minibuffer.el.
11655 (syms_of_minibuf): Remove corresponding initializations.
11656
11657 * keyboard.c (Qdeactivate_mark): New var.
11658 (command_loop_1): Use it to call `deactivate-mark'.
11659 (syms_of_keyboard): Initialize it.
11660
11661 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
11662 to another frame.
11663 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
11664 Don't call set_tty_color_mode.
11665 (store_frame_param): Reset previous_frame rather than call
11666 set_tty_color_mode.
11667 * term.c (set_tty_color_mode): Rewrite.
11668 * dispextern.h (set_tty_color_mode): New type.
11669 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
11670
116712008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
11672
11673 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
11674 for generic chars, which do not exist any more in emacs-unicode.
11675
116762008-04-08 Michael Albinus <michael.albinus@gmx.de>
11677
11678 * coding.c (detect_coding_emacs_mule)
11679 (Ffind_operation_coding_system): Fix typo.
11680
116812008-04-08 Jason Rumney <jasonr@gnu.org>
11682
11683 * w32uniscribe.c (SNAME): Extract only symbol name.
11684
11685 * w32font.h (struct w32_metric_cache): New struct.
11686 (w32font_info): Use it.
11687 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
11688 (CACHE_BLOCKSIZE): New constants.
11689
11690 * w32font.c (Qja, Qko, Qzh): New symbols.
11691 (syms_of_w32font): Initialise them.
11692 (font_matches_spec): Use them to filter by language.
11693 (recompute_cached_metrics): Remove function.
11694 (compute_metrics, clear_cached_metrics): New functions.
11695 (w32font_encode_char): Use them to manage metric cache.
11696 (w32font_text_extents): Cache metrics for all glyphs on demand.
11697 Delay converting glyph indices to WORD until needed.
11698 (w32font_open_internal): Initialize metric cache to empty.
11699 (registry_to_w32_charset): Charset should always be a symbol.
11700 (fill_in_logfont, list_all_matching_fonts): Family should
11701 always be a symbol.
11702
117032008-04-06 Jason Rumney <jasonr@gnu.org>
11704
11705 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
11706 Give up if glyph indices not supported. Use uniscribe obtained
11707 ABC widths for individual metrics. Map glyph clusters back to
11708 characters using fClusterStart flag. Return number of glyphs
11709 produced, not chars processed.
11710 (uniscribe_shape): Map char at FROM to current glyph.
11711
117122008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11713
11714 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
11715 Use SetMenuItemHierarchicalMenu.
11716
117172008-04-05 Jason Rumney <jasonr@gnu.org>
11718
11719 * image.c (pbm_load): Allow color values up to 65535.
11720 Throw an error if max_color_idx is outside the supported range.
11721 Report an error when image size is invalid.
11722 Read two bytes at a time when raw images have max_color_idx above 255.
11723
117242008-04-05 Eli Zaretskii <eliz@gnu.org>
11725
11726 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11727 cFileName a file name that includes `?' characters, use the 8+3
11728 alias in cAlternateFileName instead.
11729
117302008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
11731
11732 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
11733 append "CCL: Quitted" when the CCL program is quitted.
11734 (setup_ccl_program): Initialize ccl->quit_silently to zero.
11735
11736 * ccl.h (struct ccl_program): New member quit_silently.
11737
117382008-04-05 Chong Yidong <cyd@stupidchicken.com>
11739
11740 * search.c (compile_pattern_1): Treat non-nil and non-string of
11741 search-spaces-regexp as nil.
11742
11743 * minibuf.c (Fassoc_string): Tweak docstring.
11744
117452008-04-05 Eli Zaretskii <eliz@gnu.org>
11746
11747 * dired.c (Ffile_attributes): Support inode numbers wider than 32
11748 bits. Remove ugly WINDOWSNT-specific kludge introduced on
11749 2008-03-14 to force inode be positive.
11750
11751 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
11752 _S_* ones, since we now use our own sys/stat.h.
11753 (stat, fstat): Don't mangle the inode number.
11754 (init_user_info): Don't restrict UID and GID to 0-60000 range.
11755
117562008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
11757
11758 * frame.h (struct frame): Give one more bit to `visible' since we use
11759 values larger than 1 to indicate obscured frames on ttys.
11760
11761 * keymap.c (Qkeymap_canonicalize): New var.
11762 (Fmap_keymap_internal): New fun.
11763 (describe_map): Use keymap-canonicalize.
11764
11765 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
11766 (Fundo_boundary): Set them.
11767 (syms_of_undo): Initialize them.
11768 (record_point): Use them instead of last_point_position*.
11769 (last_undo_buffer): Change type.
11770
117712008-04-04 Jason Rumney <jasonr@gnu.org>
11772
11773 * w32font.c (w32font_text_extents): Use font's ascent and descent.
11774 (recompute_cached_metrics): Don't set ascent and descent per char.
11775
11776 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
11777 (uniscribe_check_otf): Add GC protection before consing.
11778 Rearrange loop for counting features.
11779
117802008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11781
11782 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
11783 buffer with byte-size of source buffer.
11784
117852008-04-03 Chong Yidong <cyd@stupidchicken.com>
11786
11787 * callint.c (Fcall_interactively): Handle temporary region even
11788 when shift-select-mode is off.
11789
117902008-04-03 Jason Rumney <jasonr@gnu.org>
11791
11792 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
11793
117942008-04-03 Kenichi Handa <handa@m17n.org>
11795
11796 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
11797 (CATEGORY_MASK_UTF_16): Likewise.
11798 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
11799 binary file.
11800 (detect_coding): Add null-byte detection for a binary file.
11801 (detect_coding_system): Likewise.
11802
118032008-04-03 Jason Rumney <jasonr@gnu.org>
11804
11805 * w32uniscribe.c: New file.
11806
11807 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
11808
11809 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
11810
11811 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
11812 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
11813 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
11814 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
11815 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
11816 (Qphonetic): New symbols.
11817 (syms_of_w32font): Initialize them.
11818 (font_supported_scripts): Use them.
11819 (w32font_list_family): List all charsets.
11820 (w32font_text_extents, recompute_cached_metrics): Fix metric
11821 calculations.
11822 (w32_enumfont_pattern_entity): Make full_type a DWORD.
11823 Give opentype fonts their own format.
11824 (font_matches_spec): New arguments backend and logfont.
11825 Handle :otf spec for uniscribe backend.
11826 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
11827 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
11828
11829 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
11830 font backend.
11831 (globals_of_w32fns): Initialize uniscribe font backend.
11832
11833 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
11834 dependencies.
11835 (w32uniscribe.$(O)): New file to build.
11836 (FONT_OBJ): Include w32uniscribe.$(O).
11837 (LIBS): Add uniscribe libraries.
11838
11839 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
11840
118412008-04-02 Chong Yidong <cyd@stupidchicken.com>
11842
11843 * callint.c (Vshift_select_mode): New var.
11844 (Finteractive): Document new ^ spec.
11845 (Fcall_interactively): Call handle-shift-selection if the ^ spec
11846 is present.
11847
11848 * keyboard.c (Vthis_command_keys_shift_translated): New var.
11849 (command_loop_1): Avoid running the direct display versions of
11850 forward-char and backward-char if shift-selection may occur.
11851 (read_key_sequence): Set Vthis_command_keys_shift_translated if
11852 shift-translation takes place.
11853
11854 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
11855 avoid clobbering by define-minor-mode.
11856
11857 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
11858 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
11859
11860 * syntax.c (Fforward_word): Add ^ interactive spec.
11861
11862 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
11863 (Fscroll_right): Add ^ interactive spec.
11864
118652008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11866
11867 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11868
11869 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11870
11871 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11872
118732008-03-31 Juri Linkov <juri@jurta.org>
11874
11875 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11876
118772008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11878
11879 * gtkutil.c (xg_set_geometry): Fix indentation.
11880 (xg_resize_outer_widget): Remove.
11881 (x_wm_size_hint_off): Fix indentation.
11882 (xg_frame_set_char_size): Call flush_and_sync after
11883 gtk_window_resize.
11884 (x_wm_set_size_hint): Pass NULL as geometry window to
11885 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11886 Add menu bar and tool bar height to base height.
11887 (xg_update_frame_menubar, free_frame_menubar)
11888 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11889 (update_frame_tool_bar, free_frame_tool_bar):
11890 Change xg_resize_outer_widget to xg_frame_set_char_size.
11891
118922008-03-30 Michael Albinus <michael.albinus@gmx.de>
11893
11894 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11895 (Fdbus_call_method): New parameter TIMEOUT.
11896 (dbus-send-signal): Optimize UNGCPRO call.
11897
118982008-03-29 Juri Linkov <juri@jurta.org>
11899
11900 * window.c (Fdisplay_buffer): Move call to
11901 Vsplit_window_preferred_function out of conditions that check
11902 if window is eligible for vertical splitting.
11903 When Vsplit_window_preferred_function is non-nil, call it and use
11904 its non-nil return value as window. Otherwise, continue doing
11905 vertical splitting using Fsplit_window with arg horflag=nil.
11906 (syms_of_window) <Vsplit_window_preferred_function>: Change the
11907 default value from `split-window' to nil.
11908
119092008-03-29 Juri Linkov <juri@jurta.org>
11910
11911 * callint.c (Fcall_interactively): Revert 2008-03-16 change
11912 for interactive code letters 'b' and 'B'.
11913
119142008-03-29 Eli Zaretskii <eliz@gnu.org>
11915
11916 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
11917 multibyte string.
11918
119192008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
11920
11921 * keyboard.c (pending_funcalls): New var.
11922 (timer_check): Run it.
11923 (syms_of_keyboard): Initialize it.
11924 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
11925 (Vdelete_terminal_functions): New vars.
11926 (syms_of_terminal): Initialize them.
11927 (Fdelete_terminal): Run delete-terminal-functions.
11928 * xdisp.c (safe_eval): Rewrite.
11929 (safe_call2): New fun.
11930 * frame.c (Qdelete_frame_functions): New var.
11931 (syms_of_frame): Initialize it.
11932 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
11933 * lisp.h (safe_call2, pending_funcalls): Declare.
11934
119352008-03-28 Andreas Schwab <schwab@suse.de>
11936
11937 * indent.c (Fmove_to_column): Move declaration before statements.
11938
119392008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
11940
11941 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
11942 (struct frame): Use bit fields for boolean vars.
11943
11944 * process.c (server_accept_connection): Simplify naming.
11945 (emacs_get_tty_pgrp): Use SDATA.
11946
11947 * coding.c (decode_coding_object): Fix last change.
11948
119492008-03-27 Jason Rumney <jasonr@gnu.org>
11950
11951 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
11952
119532008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
11954
11955 * charset.c (Fdefine_charset_internal): Change the way of
11956 registering charsets in Vcharset_order_list.
11957 (syms_of_charset): Make the charset `eight-bit' supplementary.
11958
119592008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11960
11961 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11962 operations, to avoid having the difference between pointers
11963 overflow.
11964
119652008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11966
11967 * indent.c (check_display_width): New fun.
11968 (scan_for_column): Use it.
11969
11970 * data.c (syms_of_data): Mark most-positive-fixnum and
11971 most-negative-fixnum as constants.
11972
11973 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11974
11975 * indent.c (scan_for_column): Extract from current_column_1.
11976 Merge with the same code from Fmove_to_column.
11977 (current_column_1, Fmove_to_column): Use it.
11978
119792008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11980
11981 * keymap.c (map_keymap_internal): New fun.
11982 (map_keymap): Use it.
11983 (Fmap_keymap_internal): New fun.
11984 (Fmap_keymap): Remove left-out test from before make_save_value.
11985
11986 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11987
11988 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11989 Use XCAR/XCDR.
11990
11991 * process.h (struct Lisp_Process): Remove filter_multibyte.
11992 * process.c (QCfilter_multibyte): Remove.
11993 (setup_process_coding_systems): Don't use filter_multibyte.
11994 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11995 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11996 (Fset_process_filter_multibyte): Change the coding-system to
11997 approximate the previous behavior.
11998 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11999 coding-system.
12000
12001 * coding.c (decode_coding_object): When not decoding into a buffer,
12002 obey the coding system's preference of (uni|multi)byte.
12003
120042008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12005
12006 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12007 every char is changed and has a different byte-length.
12008 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12009 Fix int -> EMACS_INT.
12010
120112008-03-23 David Hansen <david.hansen@gmx.net>
12012
12013 * dbusbind.c (xd_read_message): Remove extra copying of message
12014 strings. Check for NULL `interface' or `member'.
12015
120162008-03-22 Eli Zaretskii <eliz@gnu.org>
12017
12018 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12019 cFileName a file name that includes `?' characters, use the 8+3
12020 alias in cAlternateFileName instead.
12021
120222008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12023
12024 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12025
120262008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12027
12028 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12029 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12030 work on current_buffer only instead (that was already the case
12031 for some of the code anyway).
12032 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12033 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12034 (SET_PT, SET_PT_BOTH): Adjust.
12035 * intervals.h (set_point, temp_set_point, set_point_both)
12036 (temp_set_point_both): Remove redundant declarations.
12037
120382008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12039
12040 * fileio.c (Finsert_file_contents):
12041 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12042 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12043 when buffer != current_buffer anyway.
12044
120452008-03-20 Andreas Schwab <schwab@suse.de>
12046
12047 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12048 as default.
12049
120502008-03-19 Jason Rumney <jasonr@gnu.org>
12051
12052 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12053 (syms_of_w32fns): Initialize them.
12054 (HOURGLASS_ID): New constant.
12055 (x_window_to_frame): Don't check hourglass_window.
12056 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12057 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12058 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12059 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12060 Only change the cursor if hourglass is not active.
12061 (Fx_create_frame): Initialize frame's current_cursor.
12062 (hourglass_atimer): Remove.
12063 (hourglass_started): New function.
12064 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12065 (show_hourglass): Adapt to w32, changing argument to frame.
12066
12067 * w32term.h (struct w32_output): Remove hourglass_window.
12068 Add current_cursor.
12069
12070 * eval.c (call_debugger, Fsignal):
12071 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12072 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12073 (Fexecute_extended_command, cancel_hourglass_unwind):
12074 * minibuf.c (read_minibuf):
12075 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12076
120772008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12078
12079 * window.c (run_funs): New fun.
12080 (run_window_configuration_change_hook): Use it to run the buffer-local
12081 and the global part of the hook.
12082
12083 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12084 (unwind_format_mode_line): Restore selected window.
12085 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12086
120872008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12088
12089 * editfns.c (Fchar_equal): Check they are valid characters.
12090
12091 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12092
120932008-03-17 Andreas Schwab <schwab@suse.de>
12094
12095 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12096 against a charset.
12097
12098 * lisp.h (Fbuffer_list): Declare.
12099
121002008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 12101
aac0c6e3
MR
12102 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12103 handlebox_widget is != 0.
12104
121052008-03-16 Juri Linkov <juri@jurta.org>
12106
12107 * callint.c (Fcall_interactively): For interactive code letters
12108 'b' and 'B' put the buffer list into the list of default "future"
12109 values of the minibuffer.
12110
121112008-03-16 Andreas Schwab <schwab@suse.de>
12112
12113 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12114 modifiers.
12115
12116 * regex.c (re_match_2_internal): Correct matching of a charset
12117 against latin-1 characters.
12118
121192008-03-16 Kenichi Handa <handa@m17n.org>
12120
12121 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12122 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12123 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12124 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12125 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12126 CHAR_STRING_ADVANCE.
12127 (produce_chars): Fix for the case that the source and the
12128 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12129 instead of CHAR_STRING_ADVANCE.
12130 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12131 STRING_CHAR_ADVANCE.
12132
121332008-03-15 Andreas Schwab <schwab@suse.de>
12134
12135 * regex.c (re_match_2_internal): Correct matching of eight bit
12136 characters in unibyte strings.
12137
121382008-03-15 Martin Rudalics <rudalics@gmx.at>
12139
12140 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12141 at end of range when it coincides with the end of the buffer.
12142
121432008-03-14 Eli Zaretskii <eliz@gnu.org>
12144
12145 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12146
12147 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12148
121492008-03-14 Jason Rumney <jasonr@gnu.org>
12150
12151 * editfns.c (initial_tz): New variable.
12152 (syms_of_editfns): Initialize it.
12153 (Fset_time_zone_rule): Set it when first called.
12154 Use it when TZSTRING is nil.
12155
12156 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12157 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12158 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12159 (globals_of_w32fns): Initialize them.
12160 (compute_tip_xy): Use them to position tooltips.
12161
121622008-03-14 Glenn Morris <rgm@gnu.org>
12163
12164 * emacs.c (main): Revert previous change.
12165 (standard_args): Revert -internal-script back to -scriptload,
12166 and remove the long-option form.
12167
121682008-03-13 Glenn Morris <rgm@gnu.org>
12169
12170 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12171 Remove option -enable-font-backend.
12172
121732008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12174
12175 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12176
121772008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12178
12179 * xterm.c (x_connection_closed): For GTK: If this is the last
12180 terminal just exit without closing the display.
12181
121822008-03-11 Jason Rumney <jasonr@gnu.org>
12183
12184 * w32font.c (w32font_full_name): Use floor to round.
12185
f0131492 121862008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
12187
12188 * sound.c (alsa_configure): Declare vol at beginning of block.
12189
12190 * fontset.c (Ffontset_info): Remove extra semicolon.
12191
121922008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12193
12194 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12195 size of resulting string.
12196
121972008-03-10 Jason Rumney <jasonr@gnu.org>
12198
12199 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12200
122012008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12202
12203 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12204 Don't pretend as if characters with display property haven't been
12205 consumed for string-replacing-string case.
12206
122072008-03-08 Kim F. Storm <storm@cua.dk>
12208
12209 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12210 (get_next_display_element, next_element_from_string)
12211 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12212
122132008-03-08 Andreas Schwab <schwab@suse.de>
12214
12215 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12216
122172008-03-06 Jason Rumney <jasonr@gnu.org>
12218
12219 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12220 when charset not specified. Only translate ANSI to unicode when
12221 font_type is truetype.
12222 (w32font_coverage_ok): New function.
12223 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12224
122252008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12226
12227 * lread.c (Fread_char): Resolve modifiers.
12228 (Fread_char_exclusive): Likewise.
12229
12230 * character.c (char_resolve_modifier_mask): New function.
12231 (char_string): Use char_resolve_modifier_mask.
12232 (Fchar_resolve_modifiers): New function.
12233 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12234 function.
12235
122362008-03-04 Jason Rumney <jasonr@gnu.org>
12237
12238 * makefile.w32-in: Always include w32font.c in the build.
12239 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12240
122412008-03-04 Andreas Schwab <schwab@suse.de>
12242
12243 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12244 (versionclean): Likewise.
12245
122462008-03-04 Juanma Barranquero <lekktu@gmail.com>
12247
12248 * .cvsignore: Add oo.
12249
122502008-03-03 Andreas Schwab <schwab@suse.de>
12251
12252 * coding.c (decode_coding_object): Inhibit gap shrinking while
12253 decoding in place.
12254
122552008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12256
12257 * w32term.c: Remove unused include "gnu.h".
12258 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12259
12260 * gnu.h: Rename to ...
12261 * emacs-icon.h: ... this.
12262 * xterm.c: Use emacs-icon.h instead of gnu.h.
12263 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12264
122652008-03-03 Juanma Barranquero <lekktu@gmail.com>
12266
12267 * w32font.c: Include math.h.
12268
122692008-03-03 Jason Rumney <jasonr@gnu.org>
12270
12271 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12272 Compute options separately.
12273 (w32font_open_internal): Set glyph_idx before caching metrics.
12274
12275 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12276 Define if system headers don't.
12277 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12278 (w32font_encode_char): Don't declare here.
12279
12280 * w32font.c (Quniscribe, QCformat): New symbols.
12281 (syms_of_w32font): Define them.
12282 (w32font_has_char): Indicate uncertainty.
12283 (w32font_encode_char): Encode as glyph point. Make static.
12284 (recompute_cached_metrics): New function.
12285 (w32font_open_internal): Use it. Set font to use glyph points
12286 initially. Set format based on type of font.
12287 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12288 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12289 on it. Set format based on information available here.
12290 (add_font_entity_to_list): Identify backend based on opentype_only.
12291
122922008-03-02 Andreas Schwab <schwab@suse.de>
12293
12294 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12295
12296 * coding.c (decode_coding_big5, produce_chars):
12297 Fix typos in last change.
12298
122992008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12300
12301 * gnu.h: New icon.
12302
123032008-03-02 Kenichi Handa <handa@m17n.org>
12304
12305 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12306 `dos', don't decode '\r' if that is the last in the source.
12307 (decode_coding_utf_16, decode_coding_emacs_mule)
12308 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12309 (decode_coding_raw_text, decode_coding_charset): Likewise.
12310 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12311
123122008-03-01 Jason Rumney <jasonr@gnu.org>
12313
12314 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12315
123162008-03-01 Kim F. Storm <storm@cua.dk>
12317
12318 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12319
123202008-03-01 Jason Rumney <jasonr@gnu.org>
12321
12322 * w32font.c (w32font_full_name): New function.
12323 (w32font_open_internal): Use it.
12324
123252008-03-01 Kim F. Storm <storm@cua.dk>
12326
12327 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12328
123292008-03-01 Jason Rumney <jasonr@gnu.org>
12330
12331 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12332
123332008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12334
12335 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12336 xg_frame_resized when the event is for the edit widget.
12337
12338 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12339
12340 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12341 set_char_size.
12342 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12343 operations on widgets here. Just set frame size if needed.
12344 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12345 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12346 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12347 the whole frame.
12348 (xg_create_tool_bar): Move attachment of the tool bar to
12349 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12350 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12351
123522008-03-01 Jason Rumney <jasonr@gnu.org>
12353
12354 * w32fns.c (w32_msg_pump): Disable debug code.
12355
123562008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12357
12358 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12359
123602008-02-29 Chong Yidong <cyd@stupidchicken.com>
12361
12362 * xdisp.c (next_overlay_string): Don't set
12363 overlay_strings_at_end_processed_p if we're currently reading from
12364 a display string.
12365
123662008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12367
12368 * xdisp.c (get_overlay_strings_1): Fix typo.
12369
123702008-02-29 Chong Yidong <cyd@stupidchicken.com>
12371
12372 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12373
123742008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12375
12376 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12377
12378 * xdisp.c (display_mode_element): Cancel the previous change.
12379 (decode_mode_spec): Likewise.
12380 (handle_auto_composed_prop): Don't make composition if it->string
12381 is a string.
12382
123832008-02-27 Kim F. Storm <storm@cua.dk>
12384
12385 * lisp.h (GLYPH): Change type from int to struct with separate char
12386 and face_id members.
12387 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12388 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12389 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12390 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12391 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12392 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12393 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12394 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12395 handle new Lisp glyph code encoding, either an integer or a cons.
12396
12397 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12398 (GLYPH_ALIAS): Delete.
12399 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12400 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12401 (GLYPH_FROM_CHAR): Replace macro by ...
12402 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12403
12404 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12405 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12406 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12407 (GLYPH_INVALID_P): New macro.
12408 (spec_glyph_lookup_face): Update prototype.
12409
12410 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12411 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12412 new glyph code encoding.
12413 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12414 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12415
12416 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12417 Adapt to new glyph type and new glyph code encoding.
12418
12419 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12420
12421 * indent.c (current_column, current_column_1, Fmove_to_column)
12422 (compute_motion): Adapt to new glyph code encoding.
12423
12424 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12425
124262008-02-27 Chong Yidong <cyd@stupidchicken.com>
12427
12428 * process.c (wait_reading_process_output): Check for window
12429 changes caused by timers.
12430 Suggested by Johan Bockgård.
12431
124322008-02-27 Glenn Morris <rgm@gnu.org>
12433
12434 * emacs.c (USAGE1): Add `--disable-font-backend'.
12435
124362008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12437
12438 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12439 is made to the buffer.
12440
124412008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12442
12443 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12444 (face_at_string_position):
12445 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12446 (face_at_string_position):
12447 * xdisp.c (display_string, next_overlay_change):
12448 * buffer.h (overlays_at):
12449 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12450 Update callers.
12451
124522008-02-26 Chong Yidong <cyd@stupidchicken.com>
12453
12454 * editfns.c (Fformat): Doc fix.
12455
124562008-02-26 Juanma Barranquero <lekktu@gmail.com>
12457
12458 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12459 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12460 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12461
124622008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12463
12464 * buffer.c (Fbuffer_swap_text): New function.
12465 (syms_of_buffer): Defsubr it.
12466
124672008-02-25 Chong Yidong <cyd@stupidchicken.com>
12468
12469 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12470
124712008-02-25 Jason Rumney <jasonr@gnu.org>
12472
12473 * w32font.c (w32font_draw): Draw one character at a time when padding.
12474
124752008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12476
12477 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12478 Handle a nil arg. Use run_window_configuration_change_hook.
12479 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12480 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12481 Use run_window_configuration_change_hook.
12482
124832008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12484
12485 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12486 1-pixel width.
12487
124882008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12489
12490 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12491 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12492 if the glyph in the font is zero pixel with.
12493
12494 * dispextern.h (struct glyph_string): New member padding_p.
12495
12496 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12497
12498 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12499
12500 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12501
12502 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12503
12504 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12505
125062008-02-25 Jason Rumney <jasonr@gnu.org>
12507
12508 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12509
125102008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12511
12512 Allow fine-grained image-cache flushing.
12513 * dispextern.h (struct image): Add `dependencies' field.
12514 (clear_image_caches): Change arg to Lisp_Object.
12515 * image.c (make_image): Initialize `dependencies' field.
12516 (clear_image_cache): Change arg to allow fine-grained flushing.
12517 Perform the flush even if image-cache-eviction-delay is nil.
12518 (clear_image_caches): Change arg to Lisp_Object.
12519 (Fclear_image_cache): Expand meaning of the argument.
12520 (mark_image): Mark `dependencies' field.
12521 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12522 (lface_hash): Use XHASH rather than XFASTINT.
12523 (face_at_buffer_position): Fix int -> EMACS_INT position.
12524 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12525 (select_frame_for_redisplay): Remove code duplication.
12526 (redisplay_internal): Adapt arg to call to clear_image_caches.
12527
125282008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12529
12530 * s/vms4-0.h:
12531 * s/vms4-2.h:
12532 * s/vms4-4.h:
12533 * s/vms5-5.h: Remove, unused.
12534
12535 * s/irix5-2.h:
12536 * s/irix6-0.h:
12537 * s/riscos5.h:
12538 * s/mach-bsd4-3.h:
12539 * m/mips4.h: Remove files for obsolete systems.
12540
12541 * Makefile.in:
12542 * filelock.c:
12543 * unexmips.c:
12544 * m/hp9000s300.h:
12545 * m/iris4d.h:
12546 * s/aix3-1.h:
12547 * s/hpux.h:
12548 * s/msdos.h:
12549 * s/usg5-0.h:
12550 * s/usg5-2-2.h:
12551 * s/usg5-2.h:
12552 * s/usg5-3.h: Remove references to obsolete variables.
12553
12554 * s/irix5-0.h: Remove, move all the contents ...
12555 * s/irix6-5.h: ... here. Simplify.
12556 * config.in: Regenerate.
12557
125582008-02-24 Jason Rumney <jasonr@gnu.org>
12559
12560 * w32term.c (x_draw_glyph_string_background): Clear the background
12561 manually when cleartype is in use.
12562 (x_draw_glyph_string_foreground): Draw text transparently when
12563 cleartype is in use.
12564
12565 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
12566 a font into it unless we have to.
12567
125682008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12569
12570 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
12571 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 12572
aac0c6e3
MR
125732008-02-18 Jason Rumney <jasonr@gnu.org>
12574
12575 * w32fns.c (Fw32_shell_execute): Encode parameters.
12576
125772008-02-09 Eli Zaretskii <eliz@gnu.org>
12578
12579 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
12580
125812008-02-05 Juanma Barranquero <lekktu@gmail.com>
12582
12583 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
12584
125852008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
12586
12587 * xterm.c (x_set_offset): Don't change the gravity if
12588 CHANGE_GRAVITY is -1.
12589
125902008-02-23 Chong Yidong <cyd@stupidchicken.com>
12591
12592 * fileio.c (auto_save_error_occurred): New var.
12593 (auto_save_error): Set it.
12594 (Fdo_auto_save): Don't overwrite the error message if an auto-save
12595 error occurred.
12596
125972008-02-23 Eli Zaretskii <eliz@gnu.org>
12598
12599 * w32.c (globals_of_w32): Add initializations for
12600 g_b_init_get_sid_sub_authority and
12601 g_b_init_get_sid_sub_authority_count.
12602
126032008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
12604
12605 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
12606 (font_parse_xlfd): Use them for sanity check.
12607 (Finternal_set_font_style_table): Make sure the table is bijective.
12608
12609 Consolidate the image_cache to the terminal struct.
12610 * termhooks.h (P_): Remove redundant def.
12611 (struct terminal): New field `image_cache'.
12612 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
12613 of FRAME_X_IMAGE_CACHE.
12614 * xterm.h (struct x_display_info): Remove image_cache field.
12615 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12616 * w32term.h (struct w32_display_info): Remove image_cache field.
12617 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12618 * macterm.h (struct mac_display_info): Remove image_cache field.
12619 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12620 * xterm.c (x_term_init):
12621 * w32term.c (w32_term_init):
12622 * macterm.c (mac_term_init): Set the image_cache in the terminal.
12623 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
12624 Remove declarations.
12625 (clear_image_caches, mark_image_cache): New declarations.
12626 * xfaces.c (clear_face_cache):
12627 * xdisp.c (redisplay_internal): Use clear_image_caches.
12628 * image.c (clear_image_cache): Don't check that a frame is on
12629 a window-system before checking if it shares the same cache.
12630 (clear_image_caches): New function.
12631 (Fclear_image_cache): Use it.
12632 (mark_image): Move from allo.c.
12633 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
12634 * alloc.c (mark_image, mark_image_cache): Move to image.c.
12635 (mark_object): Don't call mark_image_cache for frames.
12636 (mark_terminals): Call mark_image_cache.
12637
12638 * lisp.h (Fdelete_terminal): Declare.
12639
12640 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
12641 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
12642 wrong_type_argument.
12643
126442008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
12645
12646 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
12647 malayalam.el, and tamil.el. Add sinhala.el.
12648
126492008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
12650
12651 * xterm.c (x_connection_closed): Consolidate identical tests.
12652 (x_delete_terminal): Don't crash if called via x_connection_closed.
12653
126542008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
12655
12656 * xdisp.c (decode_mode_spec): New arg string.
12657 (display_mode_element): Adjust for the above change.
12658
126592008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12660
12661 * callint.c (Fcall_interactively): Use AREF.
12662
126632008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
12664
12665 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
12666
126672008-02-18 Jan Djärv <jan.h.d@swipnet.se>
12668
12669 * xfns.c (Fx_show_tip): Set string to " " if empty.
12670
126712008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
12672
12673 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
12674 with Qt.
12675
126762008-02-17 Kenichi Handa <handa@m17n.org>
12677
12678 * ftfont.c (ftfont_shape): Return Lispy number.
12679
12680 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
12681 for GCs.
12682 (Finternal_set_font_selection_order): Call font_update_sort_order
12683 only when enable_font_backend is set.
12684 (realize_x_face): Set face->font_info to that of default face only
12685 when enable_font_backend is set.
12686
12687 * xdisp.c (handle_composition_prop): Set it->c to the fist
12688 character of the composed region.
12689 (fill_composite_glyph_string): Set base_face->font_info to
12690 s->font_info. Get a face for ascii from base_face->ascii_face.
12691 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
12692 with a face already decided.
12693 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
12694 non-negative.
12695 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
12696 call font_prepare_composition unconditionally.
12697
12698 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
12699
12700 * xterm.h (struct x_display_info): New member font.
12701
12702 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
12703 (x_set_mouse_face_gc, x_new_font): Likewise.
12704 (x_term_init): Setup display_info->font.
12705 (x_delete_terminal): Free display_info->font.
12706
12707 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
12708
12709 * ftxfont.c (ftxfont_default_fid): Delete it.
12710 (ftxfont_open): Set xfont->fid to 0.
12711 (ftxfont_end_for_frame): Clear data specific to the frame and the
12712 font-driver.
12713
12714 * xftfont.c (xftfont_default_fid): Delete it.
12715 (xftfont_open): Set xfont->fid to 0.
12716
12717 * fontset.c (FONTSET_OBJLIST): New macro.
12718 (fontset_find_font): Update font-object list of the fontset.
12719 (free_realized_fontset): New function.
12720 (free_face_fontset): Call free_realized_fontset.
12721 (Ffont_info): Call font_close_object only when enable_font_backend
12722 is set.
12723
12724 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
12725 [HAVE_NTGUI]: Include w32term.h.
12726 [MAC_OS]: Include macterm.ch.
12727 (font_otf_ValueRecord): Use make_number.
12728 (font_finish_cache): Fix handling of reference count.
12729 (font_clear_cache): Update num_fonts.
12730 (font_open_entity): Update smallest_char_width and
12731 smallest_font_height of the frame.
12732 (font_close_object): Update num_fonts.
12733 (Fclear_font_cache): Fix finding the target cache data.
12734
127352008-02-16 Glenn Morris <rgm@gnu.org>
12736
12737 * fontset.c (Finternal_char_font): Fix compilation warning.
12738
127392008-02-16 Eli Zaretskii <eliz@gnu.org>
12740
12741 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
12742 instead of char arrays. Enlarge the size of array passed to
12743 get_token_information.
12744
12745 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
12746 warnings.
12747
127482008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
12749
12750 * .gdbinit: Don't set `args', it breaks gdb --args.
12751
127522008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
12753
12754 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
12755 within a narrowed buffer.
12756
127572008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
12758
12759 * coding.c (decode_coding_object, encode_coding_object):
12760 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
12761
127622008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12763
12764 * coding.c (coding_set_destination): Use BEG_BYTE rather than
12765 hardcoding 1.
12766 (detect_coding_system):
12767 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
12768 (string_char_to_byte, string_byte_to_char, insert_from_gap):
12769 * insdel.c (insert_from_gap):
12770 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
12771 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
12772 (string_to_multibyte):
12773 * character.c (chars_in_text, multibyte_chars_in_text):
12774 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
12775
12776 * character.h (FETCH_STRING_CHAR_ADVANCE)
12777 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
12778 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
12779 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
12780
12781 * casefiddle.c (casify_region): Only call after-change and composition
12782 functions on the part of the region that was changed.
12783
12784 * keyboard.c (read_avail_input):
12785 * frame.c (Fdelete_frame): Call Fdelete_terminal.
12786
127872008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12788
12789 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
12790 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
12791
127922008-02-11 Juanma Barranquero <lekktu@gmail.com>
12793
12794 * w32menu.c (push_submenu_start, push_submenu_end)
12795 (push_left_right_boundary, push_menu_pane, push_menu_item):
12796 * keyboard.c (read_key_sequence): Don't pass args with side effects
12797 to AREF, it fails when compiling with -DENABLE_CHECKING.
12798
127992008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
12800
12801 * Makefile.in (${lispsource}international/charprop.el):
12802 Delete this target.
12803
12804 * search.c (boyer_moore): Fix incorrect synching of the trunk and
12805 emacs-unicode-2.
12806
128072008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12808
12809 * terminal.c (Fdelete_terminal): Clean up the `force' path.
12810
128112008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12812
12813 * frame.c (Qnoelisp): New symbol.
12814 (syms_of_frame): Initialize it.
12815 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
12816 harmless Elisp code, from a strong `force' from x_connection_closed.
12817 * frame.h (Qnoelisp): Declare.
12818 * xterm.c (x_connection_closed): Pass `noelisp'.
12819
12820 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
12821 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
12822 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
12823 rather than `int' for the type of `type'.
12824
128252008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
12826
12827 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
12828
12829 * Makefile.in (GNUC): Remove support for gcc-1.x.
12830
128312008-02-10 Richard Stallman <rms@gnu.org>
12832
12833 * lisp.h (ASET): Use AREF, not ASLOT.
12834
128352008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12836
12837 * lisp.h (ASET): Check bounds.
12838
128392008-02-10 Glenn Morris <rgm@gnu.org>
12840
12841 * buffer.c (mode-name): Doc fix.
12842
128432008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12844
12845 * Makefile.in:
12846 * emacs.c:
12847 * gmalloc.c:
12848 * keyboard.c:
12849 * lisp.h:
12850 * m/ibm370aix.h:
12851 * process.c:
12852 * regex.c:
12853 * s/hpux.h:
12854 * sysdep.c:
12855 * sysselect.h:
12856 * systty.h:
12857 * unexec.c:
12858 * w32term.c:
12859 * xsmfns.c:
12860 * xterm.c: Remove code that deals with obsolete variables.
12861
12862 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
12863
12864 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12865 nothing else needs it anymore.
12866
128672008-02-09 Eli Zaretskii <eliz@gnu.org>
12868
12869 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12870 instead of unibyte_char_to_multibyte.
12871
128722008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12873
12874 * s/gnu-linux.h: Remove commented out code.
12875
12876 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12877
12878 * Makefile.in: Update what RMS says about using autoconf.
12879 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12880 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12881 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12882 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12883
128842008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12885
12886 * keymap.c (Fkey_description): Move side effect outside of macro call.
12887
12888 * xfaces.c (Finternal_make_lisp_face):
12889 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12890
12891 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12892 (syms_of_fontset): Use ASET.
12893
12894 * fns.c (concat): Move side effect outside of macro call.
12895 (hash_clear): Use ASET.
12896
128972008-02-08 Richard Stallman <rms@gnu.org>
12898
12899 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
12900 If FORCE, and frame has a surrogate minibuffer for another frame,
12901 delete the other frame first.
12902
129032008-02-07 Timo Savola <timo.savola@iki.fi>
12904
12905 * xterm.c (x_detect_focus_change): Handle embed client message.
12906 (handle_one_xevent): Ditto.
12907 (handle_one_xevent): If embedded and we get a button press/release,
12908 request focus.
12909 (xembed_set_info, xembed_send_message): New functions.
12910 (x_make_frame_visible): Call xembed_set_info if embedded.
12911 (x_make_frame_invisible): Call xembed_set_info if embedded.
12912 (x_term_init): Initialize Xatom_XEMBED.
12913 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
12914 (x_iconify_frame): Ditto.
12915
12916 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
12917 (enum xembed_info, enum xembed_message, enum xembed_focus)
12918 (enum xembed_modifier, enum xembed_accelerator): New.
12919 (xembed_set_info, xembed_send_message): Declare.
12920 (FRAME_X_EMBEDDED_P): New.
12921
12922 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
12923 gtk_plug_new.
12924
12925 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
12926 window ID of a frame.
12927 (x_window): Reparent frame if embedded.
12928 (Fx_create_frame): Don't set border width if embedded.
12929
12930 * emacs.c (USAGE3): Add --parent-id.
12931 (standard_args): Ditto.
12932
129332008-02-07 Jan Djärv <jan.h.d@swipnet.se>
12934
12935 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
12936
129372008-02-07 Jim Meyering <meyering@redhat.com>
12938
12939 Use "do...while (0)", not "if (1)...else" in macro definitions.
12940 The latter provokes a warning from gcc about the empty else, when
12941 followed by ";". Also, without that trailing semicolon, it would
12942 silently swallow up any following statement.
12943 * syntax.h (SETUP_SYNTAX_TABLE)
12944 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
12945 * buffer.h (DECODE_POSITION): Likewise.
12946 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
12947 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
12948 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
12949 (FETCH_CHAR_ADVANCE): Likewise.
12950 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
12951
129522008-02-07 Jim Meyering <meyering@redhat.com>
12953
12954 * lread.c [lint]: Don't include <sys/inode.h>.
12955
129562008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12957
12958 * xselect.c (x_handle_dnd_message):
12959 * xmenu.c (digest_single_submenu, xmenu_show):
12960 * xdisp.c (with_echo_area_buffer_unwind_data)
12961 (format_mode_line_unwind_data, unwind_format_mode_line)
12962 (display_menu_bar):
12963 * eval.c (Ffetch_bytecode):
12964 * doc.c (store_function_docstring):
12965 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12966 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12967 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12968
129692008-02-07 Kenichi Handa <handa@m17n.org>
12970
12971 * ftxfont.c (ftxfont_open): Don't set
12972 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12973
12974 * ftfont.c (ftfont_open): Fix previous change.
12975
129762008-02-06 Jason Rumney <jasonr@gnu.org>
12977
12978 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12979 Use cached metrics for ASCII characters.
12980 (w32font_open_internal): Don't set font's owning_frame.
12981 Cache metrics for ASCII characters.
12982
12983 * w32font.h (struct w32font_info): Add ascii_metrics.
12984 Remove owning_frame.
12985
129862008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12987
12988 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12989 to negative value.
12990
12991 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12992
12993 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12994
12995 * charset.c (syms_of_charset): Set QCtest and Qeq.
12996
129972008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12998
12999 * process.c (Fstart_process):
13000 * callproc.c (Fcall_process): Handle the case where
13001 Funhandled_file_name_directory returns nil.
13002
13003 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13004 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13005 * font.c (check_gstring): Use them and AREF to access the vector before
13006 we know it's really a gstring.
13007 (Ffont_shape_text): Fix typo.
46e722a9 13008 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
13009
13010 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13011 Declare.
13012
13013 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13014
130152008-02-05 Jason Rumney <jasonr@gnu.org>
13016
13017 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13018 Set smallest_font_height and smallest_char_width in display info.
13019
130202008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13021
13022 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13023
130242008-02-05 Miles Bader <miles@gnu.org>
13025
13026 * xfaces.c (get_lface_attributes, merge_named_face)
13027 (lookup_named_face, lookup_derived_face, realize_named_face):
13028 Revert 2008-02-01 change by cyd@stupidchicken.com.
13029
130302008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13031
13032 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13033 fallback fonts.
13034 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13035
130362008-02-04 Jason Rumney <jasonr@gnu.org>
13037
13038 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13039 set full_name.
13040 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13041
130422008-02-03 Jason Rumney <jasonr@gnu.org>
13043
13044 * makefile.w32-in (OBJ1): Include font.o here.
13045 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13046
130472008-02-02 Jason Rumney <jasonr@gnu.org>
13048
13049 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13050
130512008-02-01 Jason Rumney <jasonr@gnu.org>
13052
13053 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13054
13055 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13056
130572008-02-01 Andreas Schwab <schwab@suse.de>
13058
13059 * Makefile.in (shortlisp, lisp): Update for rename of
13060 ../lisp/language/myanmar.el.
13061
130622008-02-01 Chong Yidong <cyd@stupidchicken.com>
13063
13064 * xfaces.c (get_lface_attributes): Delete function.
13065 (merge_named_face, lookup_named_face, lookup_derived_face)
13066 (realize_named_face): Call lface_from_face_name directly, and use
13067 the fact that merge_face_vectors does not alter its FROM argument.
13068
130692008-02-01 Jason Rumney <jasonr@gnu.org>
13070
13071 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13072 input in the default locale. Handle non-Unicode multibyte input.
13073
130742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13075
13076 * fontset.c (reorder_font_vector): Exclude nil elements from the
13077 font group. Don't try multiple fonts.
13078 (fontset_font): Adjust for the above change.
13079 (Finternal_char_font): Return nil if the found font doesn't
13080 contain the character ch.
13081
13082 * Makefile.in (lisp, shortlisp): Add cham.el.
13083
130842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13085
13086 * font.h (FONTP): Make it return 1 also for a font-object.
13087
13088 * .gdbinit (xfontset): New function.
13089
13090 * font.c (font_find_for_lface): Check if the character C is
13091 supported or not only for the first font.
13092
13093 * fontset.c (reorder_font_vector): Fix typo.
13094 (fontset_find_font): Don't add a font-spec specifying a script.
13095 Use 0 (not Qt) for the indication of empty font-group. Change the
13096 format of RFONT-DEF. Return Qt if no font in the font-group
13097 support the character.
13098 (fontset_font): Adjust for the above change. If no font was
13099 found the character, remember that.
13100 (face_for_char): Adjust for the change of RFONT-DEF.
13101 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13102 no font for the target.
13103 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13104
131052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13106
13107 * font.c (font_load_for_face): Handle the case that the font in
13108 face->lface is a string.
13109
131102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13111
13112 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13113
131142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13115
13116 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13117 Fix previous change. If the frame is not on a window system,
13118 signal an error.
13119
131202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13121
13122 * coding.c (decode_coding_object, encode_coding_object): Adjust
13123 marker positions after conversion.
13124
13125 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13126
131272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13128
13129 * font.c (font_find_for_lface): Fix the handling of the return
13130 value of font_has_char.
13131 (Ffont_shape_text): Fix previous change.
13132
13133 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13134 (fontset_ref_and_range): Delete it.
13135 (fontset_find_font): Call char_table_ref_and_range instead of
13136 FONTSET_REF_AND_RANGE.
13137 (make_fontset): Don't setup font groups of Latin here.
13138 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13139 (new_fontset_from_font): Make the specified font the default for
13140 all Latin characters.
13141
131422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13143
13144 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13145 is on a window system before accessing the fontset of the frame.
13146
131472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13148
13149 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13150
13151 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13152 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13153
13154 * font.c (Ffont_shape_text): If the font driver doesn't have a
13155 shaper function, make zero-width glyphs to have at least one-pixel
13156 width. Fix setting of `to' field of glyphs.
13157
131582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13159
13160 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13161 glyphs.
13162
13163 * font.h (struct font_driver): Improve docstring of member `shape'.
13164
131652008-02-01 Kenichi Handa <handa@m17n.org>
13166
13167 * composite.c (syms_of_composite): Fix docstring of
13168 auto-composition-function.
13169
13170 * font.h (LGLYPH_SIZE): New macro.
13171
13172 * font.c (Ffont_fill_gstring): Stop filling when a character not
13173 supported by the font is found.
13174 (Ffont_shape_text): When a shape callback function returns nil,
13175 try at most two more times with larger gstring.
13176 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13177
13178 * xdisp.c (handle_auto_composed_prop): Change the argument to
13179 auto-composition-function.
13180
13181 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13182 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13183 Lispy glyph and store it in the lgstring.
13184
13185 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13186
13187 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13188
131892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13190
13191 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13192
13193 * fontset.c (Vfont_encoding_charset_alist): New variable.
13194 (syms_of_fontset): DEFVAR it.
13195 (reorder_font_vector, fontset_find_font): Optimize for the case of
13196 no need of reordering.
13197 (face_for_char): Map the charset property by
13198 Vfont_encoding_charset_alist.
13199
132002008-02-01 Jason Rumney <jasonr@gnu.org>
13201
13202 * w32font.c (logfonts_match): Don't check adstyle here.
13203 (font_matches_spec): Check here against physical font instead.
13204 (add_font_entity_to_list): Avoid some substitutions.
13205
13206 * font.c (font_parse_fcname): Default weight and slant to normal.
13207 (font_score): Prefer normal fonts if weight or slant unspecified.
13208 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13209 match freetype scores.
13210
132112008-02-01 Jason Rumney <jasonr@gnu.org>
13212
13213 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13214 font, as it may have been deleted.
13215 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13216 most common hyphenless variation.
13217 (logfonts_match): Check generic family.
13218 (font_matches_spec): Don't check generic family here.
13219 (fill_in_logfont): Set generic family based on adstyle.
13220
13221 * w32font.h (w32font_get_cache): Update declaration.
13222
132232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13224
13225 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13226
13227 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13228 If none of the new drivers are available, call font_update_drivers
13229 with the old drivers.
13230
13231 * w32font.c (w32font_get_cache): Adjust the argument type.
13232
13233 * xfont.c (xfont_get_cache): Adjust the argument type.
13234
13235 * font.h (struct font_driver): Change argument type of get_cache.
13236
13237 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13238
13239 * font.c (Ffont_get): Fix arguments to Fassoc.
13240 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13241 (font_clear_cache): New function.
13242 (font_list_entities, font_matching_entity): Use font_get_cache.
13243 (font_update_drivers): Call font_clear_cache when finishing a driver.
13244
13245 * fontset.c (fontset_find_font): Fix previous change.
13246
132472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13248
13249 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13250 dpyinfo->font_table.
13251 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13252 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13253
13254 * font.c (font_at): Handle the case that the arg C is negative.
13255 Handle the unibyte case.
13256 (Ffont_at): Call font_at with the arg C -1.
13257
13258 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13259 the position here, and call font_at with the arg C -1.
13260 Don't check the range of the existing composition at the point.
13261
132622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13263
13264 * fontset.c (fontset_add): New args charset_id and family.
13265 Change caller.
13266 (load_font_get_repertory, fontset_find_font): Assume that
13267 font_spec is always a font-spec object.
13268 (Fset_fontset_font): Always store a font-spec object in a fontset.
13269
13270 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13271 instead of get_property_and_range.
13272
132732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13274
13275 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13276 (xftfont_open): Don't keep locking face.
13277 (xftfont_close): Don't unlock face.
13278 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13279
13280 * fontset.c (fontset_find_font): Don't prefer a font of
13281 supplementary charset.
13282
132832008-02-01 Kenichi Handa <handa@m17n.org>
13284
13285 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13286 script, langsys_tag to langsys, new member script.
13287 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 13288 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
13289 listing to the script specified in that property. Fix arg to
13290 OTF_check_features.
13291
132922008-02-01 Jason Rumney <jasonr@gnu.org>
13293
13294 * w32font.h: New file.
13295
13296 * w32font.c: Include it.
13297 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13298 (w32font_open): Set owning_frame.
13299 (w32font_text_extents): Use owning_frame.
13300 (struct font_callback_data): Add opentype_only field.
13301 (add_font_entity_to_list): Use it to filter fonts.
13302 Don't check against full name.
13303 (w32font_list_internal): New function.
13304 (w32font_list): Use it.
13305 (w32font_match_internal): New function.
13306 (w32font_match): Use it.
13307 (w32font_open_internal): New function.
13308 (w32font_open): Use it.
13309 (w32font_get_cache, w32font_close, w32font_has_char)
13310 (w32font_encode_char, w32font_text_extents, w32font_draw):
13311 Make non-static.
13312
13313 * makefile.w32-in (w32font.o): Depend on w32font.h.
13314
133152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13316
13317 * charset.c (Fdefine_charset_internal): Record a supplementary
13318 charset at the tail of Vcharset_order_list.
13319
13320 * font.c (Ffont_shape_text): Fix the return value.
13321
13322 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13323
13324 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13325
133262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13327
13328 * ftfont.c (struct OpenTypeSpec): New struct.
13329 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13330 (ftfont_get_open_type_spec): New function.
13331 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13332
13333 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13334
133352008-02-01 Jason Rumney <jasonr@gnu.org>
13336
13337 * w32font.c (add_font_entity_to_list): Compare only the beginning
13338 of full name.
13339
133402008-02-01 Kenichi Handa <handa@m17n.org>
13341
13342 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13343 Never return HANDLED_RECOMPUTE_PROPS.
13344
133452008-02-01 Kenichi Handa <handa@m17n.org>
13346
13347 * font.c (font_gstring_produce): Delete it.
13348
13349 * composite.h (COMPOSITION_METHOD):
13350 Handle COMPOSITION_WITH_GLYPH_STRING.
13351
133522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13353
13354 * xfont.c (Qx): Delete.
13355 (syms_of_xfont): Don't initialize Qx.
13356
13357 * composite.h (enum composition_method):
13358 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13359
133602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13361
13362 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13363 (choose_face_font): Accept new form of font-spec.
13364
13365 * frame.h (font_driver_list): Declare it unconditionally.
13366 (struct frame): Define members font_driver_list and font_data_list
13367 unconditionally.
13368
13369 * fontset.c: Include "font.h" unconditionally.
13370 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13371 (Fset_fontset_font): Accept a font-spec object.
13372
13373 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13374 PIXEL_SIZE part a wild card.
13375
13376 * dispextern.h (struct glyph_string): Define members clip and
13377 num_clips unconditionally.
13378 (struct face): Define members font_info and extra unconditionally.
13379
13380 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13381 ftfont_info only when HAVE_LIBOTF is defined.
13382
133832008-02-01 Andreas Schwab <schwab@suse.de>
13384
13385 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13386 and end.
13387
133882008-02-01 Jason Rumney <jasonr@gnu.org>
13389
13390 * w32font.c (w32font_driver): Add new fields.
13391
133922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13393
13394 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13395 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13396 (LIBES): Add @M17N_FLT_CFLAGS@.
13397
13398 * composite.c (compose_text): Don't treat the new style
13399 composition specially.
13400
13401 * emacs.c (main): Call syms_of_font unconditionally.
13402
13403 * font.h (FONT_ENTITY_NOT_LOADABLE)
13404 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13405 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13406 (struct font_driver): New member shape.
13407 (font_registry_charsets): Extern it.
13408 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13409 (font_otf_capability, font_drive_otf): Delete their externs.
13410
13411 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13412 (font_charset_alist, font_registry_charsets): Move from xfont.c
13413 and rename.
13414 (font_prop_validate_otf): New function.
13415 (font_property_table): Register it for QCotf.
13416 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13417 (font_drive_otf): Delete.
13418 (font_prepare_composition): New arg F. Adjust for the change of
13419 lispy gstring.
13420 (font_find_for_lface): New arg C.
13421 (font_load_for_face): Adjust for the change of font_find_for_lface.
13422 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13423 lispy gstring.
13424 (Ffont_shape_text): New function.
13425 (Fopen_font): If the font size is not given, use 12-pixel.
13426 (Ffont_at): New arg STRING.
13427 (syms_of_font): Initalize font_charset_alist.
13428 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13429 conditionally.
13430
13431 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13432 fonts of the same font-spec. Change the format of RFONT-DEF.
13433 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13434 Adjust for the change of RFONT-DEF.
13435 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13436
13437 * ftfont.h: New file.
13438
13439 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13440 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13441 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13442 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13443 font_otf_capability and font_drive_otf, set ftfont_shape.
13444 (ftfont_list): Adjust for the change of :otf property value.
13445 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13446 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13447 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13448 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13449 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13450 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13451
13452 * w32term.c (x_draw_composite_glyph_string_foreground):
13453 Adjust for the change of lispy gstring.
13454
13455 * xdisp.c (handle_composition_prop): Adjust for the change of
13456 lispy gstring. Call a function for auto-composition with the
13457 third arg it->window.
13458 (fill_composite_glyph_string): Adjust for the change of lispy string.
13459 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13460
13461 * xfaces.c (set_font_frame_param): Adjust for the change of
13462 font_find_for_lface.
13463
13464 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13465 (xfont_registry_charsets): Likewise. Change caller.
13466 (syms_of_xfont): Don't handle x_font_charset_alist.
13467
13468 * xftfont.c: Include "ftfont.h".
13469 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13470 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13471 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13472 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13473 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13474 Set xftfont_driver.shape to xftfont_shape.
13475
13476 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13477 the change of lispy gstring.
13478
134792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13480
13481 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13482
134832008-02-01 Jason Rumney <jasonr@gnu.org>
13484
13485 * w32font.c (w32font_draw): Fill background manually.
13486
134872008-02-01 Jason Rumney <jasonr@gnu.org>
13488
13489 * font.c (Qfontp): Remove unused symbol.
13490 (QCantialias): New symbol.
13491 (syms_of_font): Define it.
13492 (font_property_table): Set a validator for QCantialias.
13493
13494 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13495 Define if not already.
13496 (QCfamily): Share with xfaces.c.
13497 (Qstandard, Qsubpixel, Qnatural): New symbols.
13498 (syms_of_w32font): Define them. Don't define QCfamily here.
13499 (w32_antialias_type, lispy_antialias_type): New functions.
13500 (w32_enumfont_pattern_entity): New arg requested_font.
13501 Set antialias parameter if non-default was requested.
13502 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13503
135042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13505
13506 * lread.c (read1): Undo the previous change.
13507
135082008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13509
13510 * frame.c (Fdelete_frame): Call font_update_drivers only when
13511 USE_FONT_BACKEND is defined.
13512
135132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13514
13515 * font.h (struct font_bitmap): New member bits_per_pixel.
13516 (struct font_driver): New members start_for_frame and end_for_frame.
13517 (struct font_data_list): New struct.
13518 (font_put_frame_data, font_get_frame_data): Extern them.
13519
13520 * frame.h (struct frame): New member font_data_list.
13521
13522 * font.c (font_update_drivers): Call driver->start_for_frame and
13523 driver->end_for_frame at proper timings.
13524 (font_put_frame_data, font_get_frame_data): New functions.
13525 (Ffont_spec): Add usage in the docstring.
13526
13527 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13528 (Fdelete_frame): Call font_update_drivers.
13529
13530 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13531 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13532 (xftfont_get_xft_draw): New function.
13533 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13534 (xftfont_end_for_frame): New function.
13535 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13536
13537 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13538 Change argument. Cache GCs in the per-frame data.
13539 (struct ftxfont_frame_data): New struct.
13540 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13541 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13542 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13543 (ftxfont_end_for_frame): New function.
13544 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13545
13546 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13547
135482008-02-01 Kenichi Handa <handa@m17n.org>
13549
13550 * xselect.c (Vselection_coding_system)
13551 (Vnext_selection_coding_system): Delete them.
13552 (syms_of_xselect): Don't declare selection-coding-system and
13553 next-selection-coding-system. They are declared in select.el.
13554
135552008-02-01 Jason Rumney <jasonr@gnu.org>
13556
13557 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
13558
13559 * w32fns.c: Include imm.h.
13560 (get_composition_string_fn, get_ime_context_fn): New optional
13561 system functions.
13562 (globals_of_w32fns): Load them from imm32.dll.
13563 (ignore_ime_char): New flag.
13564 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
13565 WM_IME_ENDCOMPOSITION messages.
13566
13567 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
13568 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
13569
135702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13571
13572 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
13573 (READCHAR_REPORT_MULTIBYTE): New macro.
13574 (readchar): New 2nd arg MULTIBYTE.
13575 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
13576 Make symbol's name multibyte according to the multibyteness of the
13577 source.
13578
135792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13580
13581 * xfaces.c (face_for_overlay_string): Call lookup_face with
13582 correct arguments (fix of synching with the trunk).
13583
135842008-02-01 Kenichi Handa <handa@m17n.org>
13585
13586 * font.c (font_prop_validate_symbol, font_prop_validate_style)
13587 (font_prop_validate_non_neg, font_prop_validate_spacing):
13588 Delete argument prop_index.
13589 (font_property_table): Change arguments to validater. Change Callers.
13590 (font_lispy_object): Delete.
13591 (font_at): Use font_find_object instead fo font_lispy_object.
13592
135932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13594
13595 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
13596 and file names.
13597
135982008-02-01 Jason Rumney <jasonr@gnu.org>
13599
13600 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
13601 (font_matches_spec): Remove debug output.
13602 (add_font_entity_to_list): Avoid using substituted fonts.
13603
136042008-02-01 Jason Rumney <jasonr@gnu.org>
13605
13606 * doc.c (Fsnarf_documentation):
13607 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
13608
136092008-02-01 Miles Bader <miles@gnu.org>
13610
13611 * dispextern.h (struct glyph_row): Only define "clip" field if
13612 HAVE_WINDOW_SYSTEM is defined.
13613
136142008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13615
13616 Fix up multi-tty merge.
13617
13618 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
13619 and indentation.
13620
13621 * xfaces.c (free_realized_face, clear_face_gcs):
13622 Include font_done_for_face in the input_blocked section, just in case.
13623
13624 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
13625 (get_char_face_and_encoding): Undo last change and remove the *other*
13626 duplicate definition (i.e. keep the one that's better scoped and that
13627 includes code for the font-backend).
13628
13629 * terminal.c (create_terminal): Default keyboard_coding to
13630 `no-conversion' and terminal_coding to `undecided'.
13631
13632 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
13633
13634 * fontset.c (free_realized_fontsets): Check that the table entry does
13635 contain a fontset before trying to compare it to `base'.
13636
13637 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
13638 syms_of_charset, and syms_of_coding earlier because init_window_once
13639 now needs Vcoding_system_hash_table to be setup.
13640
13641 * coding.h (default_buffer_file_coding): Remove.
13642
13643 * coding.c (default_buffer_file_coding): Remove.
13644 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
13645 than ->symbol, and use the terminal-local coding system.
13646 (syms_of_coding): Don't setup the coding-systems that are not
13647 terminal-local.
13648 (Fdefine_coding_system_internal): Use XCAR/XCDR.
13649
13650 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
13651 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
13652
13653 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
13654 in chartab.c and were re-added here by mistake.
13655 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
13656
13657 * doc.c (Fsnarf_documentation):
13658 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
13659 src to etc.
13660
13661 * ChangeLog.10: Add mistakenly removed entry.
13662
136632008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
13664
13665 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
13666
136672008-02-01 Miles Bader <miles@gnu.org>
13668
13669 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
13670 Add extra args to FACE_FOR_CHAR.
13671
136722008-02-01 Kenichi Handa <handa@m17n.org>
13673
13674 * keymap.c (where_is_internal_1): If key is a cons, store the copy
13675 in sequence.
13676
13677 * chartab.c (map_sub_char_table, map_char_table): If the range
13678 contains just one character, call the function with that character
13679 even if the depth is not 3.
13680
136812008-02-01 Jason Rumney <jasonr@gnu.org>
13682
13683 * w32font.c (w32font_text_extents): Calculate metrics for the
13684 whole string.
13685
136862008-02-01 Jason Rumney <jasonr@gnu.org>
13687
13688 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
13689
136902008-02-01 Jason Rumney <jasonr@gnu.org>
13691
13692 * w32term.c (x_set_glyph_string_clipping): Use
13693 get_glyph_string_clip_rects.
13694 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13695 Adjust for the change of struct glyph_string.
13696
13697 * w32font.c (w32font_draw): Do clipping here.
13698
136992008-02-01 Kenichi Handa <handa@m17n.org>
13700
13701 * xftfont.c (xftfont_draw): Adjust for the change of struct
13702 glyph_string.
13703
13704 * xterm.c (x_set_glyph_string_clipping): Use
13705 get_glyph_string_clip_rects.
13706 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13707 Adjust for the change of struct glyph_string.
13708
13709 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
13710 the resulting clip(s}.
13711 (expose_overlaps): Add arg r. Change callers. Set it to
13712 row->clip temporarily.
13713 (expose_window): Redraw rows overlapping the exposed area.
13714
13715 * dispextern.h (struct glyph_row): New member clip.
13716 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
13717 clip_height, new member clip, and num_clips.
13718
137192008-02-01 Kenichi Handa <handa@m17n.org>
13720
13721 * data.c (Fchar_or_string_p): Fix docstring.
13722
137232008-02-01 Kenichi Handa <handa@m17n.org>
13724
13725 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
13726 create a temporary XftDraw object.
13727
137282008-02-01 Kenichi Handa <handa@m17n.org>
13729
13730 * font.c (Ffontp): Fix docstring.
13731
13732 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
13733 strong evidence of ISO-2022.
13734
137352008-02-01 Kenichi Handa <handa@m17n.org>
13736
13737 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
13738 SYNTAX_ENTRY_FOLLOW_PARENT.
13739
137402008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13741
13742 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
13743 its type.
13744 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13745 Update to the new type of weak_hash_tables and next_weak.
13746
13747 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
13748 a plain C pointer to Lisp_Hash_Table.
13749
13750 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
13751 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
13752 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
13753 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
13754 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
13755 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
13756 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
13757 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
13758 (GC_EQ): Remove since they've been identical to their non-GC_
13759 alter-egos ever since the markbit was eradicated.
13760
13761 * alloc.c:
13762 * buffer.c:
13763 * buffer.h:
13764 * data.c:
13765 * fileio.c:
13766 * filelock.c:
13767 * fns.c:
13768 * frame.h:
13769 * lisp.h:
13770 * macterm.c:
13771 * print.c:
13772 * process.c:
13773 * w32fns.c:
13774 * w32menu.c:
13775 * w32term.c:
13776 * xfns.c:
13777 * xmenu.c:
13778 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
13779
137802008-02-01 Kenichi Handa <handa@m17n.org>
13781
13782 * chartab.c (map_sub_char_table): Make it work for the top-level
13783 char-table. Fix handling of parent char-table.
13784 (map_char_table): Adjust for the above change.
13785
137862008-02-01 Jason Rumney <jasonr@gnu.org>
13787
13788 * w32font.c (Qgdi): Rename from Qw32.
13789
137902008-02-01 Jason Rumney <jasonr@gnu.org>
13791
13792 * w32bdf.c (get_quoted_string): Make function static.
13793
137942008-02-01 Kenichi Handa <handa@m17n.org>
13795
13796 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
13797 bigger ascent and descent than those of the font, use them as
13798 font's ascent and descent.
13799
138002008-02-01 Kenichi Handa <handa@m17n.org>
13801
13802 * Makefile.in (${lispsource}international/charprop.el): Move this
13803 target within "#ifdef HAVE_UNIDATA" and "#endif".
13804
138052008-02-01 Kenichi Handa <handa@m17n.org>
13806
13807 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
13808 (shortlisp): Add ../lisp/language/tai-viet.el.
13809
138102008-02-01 Ulrich Mueller <ulm@gentoo.org>
13811
13812 * Makefile.in (${lispsource}international/charprop.el): Depend on
13813 temacs${EXEEXT}.
13814
138152008-02-01 Jason Rumney <jasonr@gnu.org>
13816
13817 * w32font.c (w32font_close): Delete the GDI font object.
13818
13819 * w32menu.c: Include character.h.
13820
13821 * w32proc.c: Likewise.
13822
13823 * w32select.c: Likewise.
13824
13825 * makefile.w32-in (w32proc.o): Depend on character.h.
13826
138272008-02-01 Jason Rumney <jasonr@gnu.org>
13828
13829 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
13830
13831 * w32menu.c (syms_of_w32menu): Likewise.
13832
13833 * w32proc.c (syms_of_ntproc): Likewise.
13834
13835 * w32select.c (syms_of_w32select): Likewise.
13836
13837 * w32term.c (syms_of_w32term): Likewise.
13838
138392008-02-01 Jason Rumney <jasonr@gnu.org>
13840
13841 * w32font.c (w32font_draw): Delete brush after using it.
13842
138432008-02-01 Jason Rumney <jasonr@gnu.org>
13844
13845 * w32font.c (w32font_open): Don't set font_idx.
13846 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
13847 to font settings.
13848 (w32font_draw): Fill background explicitly.
13849
138502008-02-01 Jason Rumney <jasonr@gnu.org>
13851
13852 * w32term.c (w32_initialize): Don't call w32font_initialize.
13853
13854 * w32font.c (w32font_info): Remove subranges.
13855 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
13856 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
13857 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
13858 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
13859 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
13860 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
13861 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
13862 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
13863 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
13864 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13865 New symbols.
13866 (font_callback_data): New struct.
13867 (w32font_list, w32font_match): Use it.
13868 (w32font_open): Don't populate subranges.
13869 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13870 (w32font_encode_char): Always return unicode code-point as-is.
13871 (w32font_text_extents): Supply a transformation matrix to
13872 GetGlyphOutline. Never look up by glyph index. Avoid looping
13873 twice. Use unicode version of GetTexExtentPoint32 instead of
13874 glyph index version.
13875 (set_fonts_frame): Remove.
13876 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13877 set frame parameter. Use backward compatible fake foundries.
13878 Save generic family in extra slot under QCfamily. Make width slot
13879 constant. Save QCspacing value. Save list of scripts instead of
13880 binary subranges.
13881 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13882 (add_font_entity_to_list): Use font_callback_data struct. Filter
13883 unwanted fonts.
13884 (add_one_font_entity_to_list): Use font_callback_data struct.
13885 (w32_registry): Default to iso10646_1.
13886 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13887 string font registries. Don't fill in font name if it is a generic
13888 family name, fill family instead. Use spacing, family and script
13889 extra info to fill pitch, family and charset fields.
13890 (list_all_matching_fonts): Use font_callback_data struct.
13891 (unicode_range_for_char): Remove.
13892 (font_supported_scripts): New function.
13893 (w32font_initialize): Remove.
13894 (syms_of_w32font): Update which symbols are defined.
13895
138962008-02-01 Jason Rumney <jasonr@gnu.org>
13897
13898 * font.c (font_pixel_size): Reverse assq_no_quit args.
13899
13900 * w32term.h (FONT_WIDTH): Report max width, not average.
13901 (FONT_MAX_WIDTH): Remove.
13902 (FONT_AVG_WIDTH): New macro.
13903
13904 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
13905 redefinition of FONT_WIDTH.
13906
13907 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
13908 (w32_cache_char_metrics): Use FONT_WIDTH.
13909
13910 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
13911
139122008-02-01 Jason Rumney <jasonr@gnu.org>
13913
13914 * w32font.c (w32font_open): Make lfHeight negative.
13915
13916 * w32fns.c (x_default_font_parameter): Use new style font name.
13917 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
13918
139192008-02-01 Jason Rumney <jasonr@gnu.org>
13920
13921 * w32font.c (QCsubranges): New symbol.
13922 (w32font_open, w32font_has_char): Get subranges from subproperty
13923 of extra.
13924 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
13925 (syms_of_w32font): Define :subranges symbol.
13926
13927 * font.c (font_put_extra): Expose externally.
13928
13929 * font.h (font_put_extra): Move declaration from font.c.
13930
13931 * font.c (Ffont_get): Use font driver to determine otf capability.
13932 (adjust_anchor): Check if driver defines anchor_point before using.
13933
13934 * w32font.c (w32font_open): Handle size, height and pixel_size better.
13935 (w32font_draw): Use options.
13936 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
13937 Fix detection of truetype fonts.
13938 (registry_to_w32_charset): Handle charsets other than iso8859-1
13939 expressed as lisp symbols.
13940 (w32_registry): Express charset as lisp symbol.
13941 (fill_in_logfont): Reverse pixel and point height logic.
13942 Don't set width here. Set quality to default.
13943
13944 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
13945 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
13946
13947 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13948 Remove redundant loop and allocation.
13949
13950 * makefile.w32-in (font.o, w32font.o): New objects.
13951 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
13952 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
13953
13954 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13955 STORE_XCHARB a valid l-value.
13956
13957 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13958 calculations for non-Truetype fonts.
13959 (x_draw_glyph_string): Sync with xterm.c.
13960 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13961 Remove redundant code.
13962 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13963
13964 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13965 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13966
13967 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13968 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13969
13970 * w32font.c: New file for w32 font backend.
13971
139722008-02-01 Kenichi Handa <handa@m17n.org>
13973
13974 * term.c: Don't include "buffer.h" twice.
13975
139762008-02-01 Kenichi Handa <handa@m17n.org>
13977
13978 * character.c (Funibyte_string): New function.
13979 (syms_of_character): Defsubr it.
13980
139812008-02-01 Jason Rumney <jasonr@gnu.org>
13982
13983 * w32term.c [USE_FONT_BACKEND]:
13984 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13985 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13986 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13987 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13988 (x_free_frame_resources): Sync with xterm.c.
13989
139902008-02-01 Andreas Schwab <schwab@suse.de>
13991
13992 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13993 char-table size.
13994
139952008-02-01 Kenichi Handa <handa@m17n.org>
13996
13997 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13998
139992008-02-01 Kenichi Handa <handa@m17n.org>
14000
14001 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14002 font_otf_gpos, add font_drive_otf.
14003
14004 * fontset.c (fontset_find_font): Pay attention to font size
14005 specified for a font.
14006 (reorder_font_vector): Check contents of font_def.
14007
14008 * font.c (struct otf_list): Delete it.
14009 (otf_list): Make it a lisp variable.
14010 (otf_open): Use lispy otf_list.
14011 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14012 (check_otf_features): New function.
14013 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14014 New functions.
14015 (font_drive_otf): New function merging font_otf_gsub and
14016 font_otf_gpos.
14017 (font_open_for_lface): New arg spec. Change argument order.
14018 (font_load_for_face): Adjust for the change of font_open_for_lface.
14019 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14020 Ffont_otf_gpos.
14021 (syms_of_font): Staticpro otf_list. Delete defsubr of
14022 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14023
14024 * xfaces.c (set_font_frame_param): Adjust for the change of
14025 font_open_for_lface.
14026
14027 * font.h (font_open_for_lface): Adjust prototype.
14028 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14029 member otf_drive.
14030 (font_otf_gsub, font_otf_gpos): Delete externs.
14031 (font_drive_otf): Extern it.
14032
140332008-02-01 Kenichi Handa <handa@m17n.org>
14034
14035 * font.c (font_at): If the window W is not on a window system,
14036 return Qnil.
14037
14038 * coding.c (produce_chars, encode_coding): Don't call
14039 insert_from_gap if no characters to produce.
14040
140412008-02-01 Kenichi Handa <handa@m17n.org>
14042
14043 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14044 Fclear_face_cache.
14045
14046 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14047
140482008-02-01 Miles Bader <miles@gnu.org>
14049
14050 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14051 Parse "--disable-font-backend" option.
14052 (standard_args): Add "--disable-font-backend" option.
14053
140542008-02-01 Kenichi Handa <handa@m17n.org>
14055
14056 * fontset.c (fontset_find_font): New function.
14057 (fontset_font): Use fontset_find_font.
14058 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14059 Register the specified font for all Latin characters.
14060 (new_fontset_from_font): Register the specified font for all Latin
14061 characters.
14062 (dump_fontset): For a realized fontset, include the base fontset
14063 name in the returned vector.
14064
140652008-02-01 Kenichi Handa <handa@m17n.org>
14066
14067 * character.h (CHAR_STRING): Cast C to unsigned on calling
14068 char_string.
14069
14070 * character.c (char_string): Type of arg C changed to unsigned.
14071 Signal an error if C is an invalid character code.
14072
14073 * editfns.c (general_insert_function, Fchar_to_string):
14074 Use CHARACTERP, not INTEGERP.
14075
140762008-02-01 Kenichi Handa <handa@m17n.org>
14077
14078 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14079 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14080
14081 * regex.c (analyse_first): Fix for multibyte characters in "case
14082 charset:" and "case categoryspec:".
14083
140842008-02-01 Andreas Schwab <schwab@suse.de>
14085
14086 * Makefile.in (LIBES): Move standard libraries to the end.
14087
140882008-02-01 Kenichi Handa <handa@m17n.org>
14089
14090 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14091 nonzero, don't shrink the buffer nextb.
14092
14093 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14094
14095 * coding.c (coding_alloc_by_making_gap): New arg offset.
14096 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14097 offset.
14098 (decode_coding_iso_2022): Update coding->safe_charsets.
14099 (decode_coding_gap): Temporarily set
14100 current_buffer->text->inhibit_shrinking to 1.
14101
141022008-02-01 Kenichi Handa <handa@m17n.org>
14103
14104 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14105 indexing into elements of s->cmp and s->char2b.
14106
141072008-02-01 Juanma Barranquero <lekktu@gmail.com>
14108
14109 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14110
141112008-02-01 Kenichi Handa <handa@m17n.org>
14112
14113 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14114 target_multibyte instead of multibyte.
14115 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14116 (bcmp_translate): Change the argument name from multibyte to
14117 target_multibyte.
14118
141192008-02-01 Kenichi Handa <handa@m17n.org>
14120
14121 These changes are to compile a regexp into a pattern that can be
14122 used both for multibyte and unibyte targets.
14123
14124 * Makefile.in (search.o): Depend on charset.h.
14125
14126 * character.c (multibyte_char_to_unibyte_safe): New function.
14127
14128 * search.c: Include "charset.h".
14129 (compile_pattern_1): Delete argument multibyte. Don't set
14130 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14131 (compile_pattern): Don't compare cp->buf.target_multibyte.
14132 Compare cp->buf.charset_unibyte.
14133 (compile_pattern): Set cp->buf.target_multibyte.
14134
14135 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14136
14137 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14138
14139 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14140 multibyte. Change callers.
14141 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14142 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14143 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14144 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14145 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14146 (regex_compile): Make the compiled pattern usable both for
14147 multibyte and unibyte targets.
14148 (analyse_first): Make the fastmap usable both for multibyte and
14149 unibyte targets.
14150 (TRANSLATE_VIA_MULTIBYTE): Delete.
14151 (re_match_2_internal): Pay attention to the case that the
14152 multibyteness of bufp and target may be different.
14153
141542008-02-01 Kenichi Handa <handa@m17n.org>
14155
14156 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14157 empty box occupy at least one column width.
14158
141592008-02-01 Miles Bader <miles@gnu.org>
14160
14161 * Makefile.in: Remove redundant HAVE_XFT clause.
14162
141632008-02-01 Kenichi Handa <handa@m17n.org>
14164
14165 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14166
141672008-02-01 Kenichi Handa <handa@m17n.org>
14168
14169 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14170 being nil.
14171
141722008-02-01 Kenichi Handa <handa@m17n.org>
14173
14174 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14175
141762008-02-01 Kenichi Handa <handa@m17n.org>
14177
14178 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14179
141802008-02-01 Kenichi Handa <handa@m17n.org>
14181
14182 * search.c (simple_search): Fix previous change.
14183
141842008-02-01 Kenichi Handa <handa@m17n.org>
14185
14186 * xftfont.c (ftfont_font_format): Extern declaration.
14187
14188 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14189
14190 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14191 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14192
14193 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14194 (ftfont_font_format): Fix previous change.
14195
14196 * font.h (Ffont_xlfd_name): EXFUN it.
14197
14198 * font.c (font_parse_xlfd): Fix the array size of `f'.
14199 (register_font_driver): Use EQ to compare driver->type.
14200
14201 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14202 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14203 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14204
142052008-02-01 Kenichi Handa <handa@m17n.org>
14206
14207 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14208 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14209
142102008-02-01 Kenichi Handa <handa@m17n.org>
14211
14212 * xfont.c (xfont_open): Set font->format.
14213
14214 * xftfont.c (xftfont_open): Set font->format.
14215
14216 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14217 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14218 (ftfont_open): Set font->format.
14219 (ftfont_font_format): New function.
14220
14221 * font.h (struct font): New member format.
14222
14223 * font.c (Qopentype): New variable.
14224 (syms_of_font): Defsym it.
14225 (Fquery_font): Change the format of the last element of the return
14226 value.
14227
142282008-02-01 Kenichi Handa <handa@m17n.org>
14229
14230 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14231 last resort.
14232
142332008-02-01 Kenichi Handa <handa@m17n.org>
14234
14235 * coding.c (detect_coding_charset): Fix detection of multi-byte
14236 charset.
14237
142382008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14239
14240 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14241
142422008-02-01 Kenichi Handa <handa@m17n.org>
14243
14244 * xdisp.c (get_next_display_element): Set it->face_id for the
14245 first component of a composition.
14246 (x_produce_glyphs): Check if the font is changed or not for composition.
14247
142482008-02-01 Kenichi Handa <handa@m17n.org>
14249
14250 * fontset.c (Qlatin): New variable.
14251 (syms_of_fontset): Define it as a lisp symbol.
14252 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14253
142542008-02-01 Kenichi Handa <handa@m17n.org>
14255
14256 * font.c (font_unparse_fcname): Pay attention to the case that
14257 some of font property is a null string.
14258
142592008-02-01 Kenichi Handa <handa@m17n.org>
14260
14261 * term.c: Include "composite.h".
14262 (encode_terminal_code): Output all components of composition.
14263 Check the size of encode_terminal_src.
14264 (produce_glyphs): For composition, call produce_composite_glyph.
14265 (append_composite_glyph, produce_composite_glyph): New functions.
14266
14267 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14268 is not found, get font_info from the current ascii face.
14269
142702008-02-01 Kenichi Handa <handa@m17n.org>
14271
14272 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14273 buffer-file-name to Qnil before calling insert_from_buffer.
14274
14275 * font.c (font_unparse_fcname): Pay attention to the case that
14276 foundry is a null string.
14277
142782008-02-01 Kenichi Handa <handa@m17n.org>
14279
14280 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14281
14282 * font.c (Qunicode_sip): New variable.
14283 (syms_of_font): Declare it as a Lisp symbol.
14284
14285 * font.h (Qunicode_sip): Extern it.
14286
142872008-02-01 Kenichi Handa <handa@m17n.org>
14288
14289 * composite.c (get_composition_id): Pay attention to TAB component.
14290
14291 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14292 TAB. Adjust for the change of s->char2b which always points to
14293 the first element of allocated memory.
14294
14295 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14296
14297 * xdisp.c (handle_composition_prop): Set it->c to the first
14298 non-TAB component.
14299 (fill_composite_glyph_string): Change argument.
14300 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14301 (x_produce_glyphs): Fix handling of left/right padding.
14302
143032008-02-01 Kenichi Handa <handa@m17n.org>
14304
14305 * coding.c (detect_coding_system): Fix for handling off
14306 inhibit_iso_escape_detection. Fix for the case that no coding
14307 system is defined for a specific coding category.
14308
143092008-02-01 Kenichi Handa <handa@m17n.org>
14310
14311 * font.c (font_matching_entity): Delete unused local var.
14312
14313 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14314 opening a font.
14315
14316 * fileio.c (Finsert_file_contents): On recovering a file, assume
14317 Unix-like eol.
14318 (choose_write_coding_system): On auto-saving a file, force
14319 Unix-like eol.
14320
14321 * coding.c (setup_coding_system): Fix setting of
14322 coding->common_flags based on eol_type.
14323 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14324 inherit from it.
14325
143262008-02-01 Kenichi Handa <handa@m17n.org>
14327
14328 * alloc.c (NSTATICS): Increas to 0x600.
14329
143302008-02-01 Kenichi Handa <handa@m17n.org>
14331
14332 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14333 (ftfont_list): Don't check :name property.
14334 (ftfont_match): New function.
14335 (ftfont_pattern_entity): If the pattern doesn't contain
14336 FC_SPACING, don't assume FC_MONO.
14337
14338 * font.h (struct font_driver): New member `match'.
14339 (font_update_drivers): Adjust prototype.
14340
14341 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14342 property of FONT.
14343 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14344 them unconditionally.
14345 (font_matching_entity): New function.
14346 (font_open_by_name): Try font_matching_entity if exact match is
14347 not found.
14348 (font_update_drivers): Delete the arg FONT. Return a list of
14349 actually used backends. Don't free faces, font caches here.
14350 Don't store data in frame parameters. Don't call x_set_font.
14351 (Ffont_spec): Store :name property as is.
14352 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14353 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14354 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14355 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14356 Call font->driver->otf_gsub instead of font_otf_gsub.
14357
14358 * frame.c (x_set_font_backend): Do more works that were done in
14359 font_update_drivers before.
14360
14361 * xfont.c (xfont_match): New function.
14362 (xfont_driver): Set xfont_driver.match to xfont_match.
14363 (xfont_draw): Set font in GC if necessary.
14364
14365 * ftxfont.c (ftxfont_match): New function.
14366 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14367
14368 * xftfont.c (xftfont_match): New function.
14369 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14370
143712008-02-01 Kenichi Handa <handa@m17n.org>
14372
14373 * font.h (struct font): New member scalable.
14374 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14375 (font_otf_gsub): Adjust prototype.
14376
14377 * font.c (font_otf_capability): Fix handling of the default langsys.
14378 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14379 Check the contents of SPEC.
14380 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14381 (check_gstring): New function.
14382 (REPLACEMENT_CHARACTER): New macro.
14383 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14384 glyph codes of GSTRING.
14385 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14386 (font_prepare_composition): Set cmp->glyph_len.
14387 (font_open_entity): Set font->scalable.
14388 (Ffont_get): Handle :otf property.
14389 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14390 functions.
14391 (Fquery_font): Use font->font.full_name.
14392 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14393 Sfont_otf_alternates.
14394
14395 * ftfont.c (ftfont_open): Set font->font.full_name and
14396 font->font.name properly. Fix calculation of font->font.height
14397 and font->min_width.
14398
14399 * ftxfont.c (ftxfont_create_gcs): New function.
14400 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14401 (ftxfont_draw_backgrond): Fix filling region.
14402 (ftxfont_default_fid): New function.
14403 (ftxfont_open): Set xfont->fid to the return value of
14404 ftxfont_default_fid.
14405 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14406 (ftxfont_done_face): Free only GCs that are created by
14407 ftxfont_create_gcs.
14408 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14409
14410 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14411 Clip to src->width, etc (not src->clip_XXX).
14412
14413 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14414 FontBackend frame parameter.
14415
144162008-02-01 Kenichi Handa <handa@m17n.org>
14417
14418 * font.h (struct font_driver_list): New member `on'.
14419 (Fclear_font_cache): EXFUN it.
14420 (font_update_drivers): Extern it.
14421
14422 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14423 (font_list_entities): Check driver_list->on.
14424 (register_font_driver): Initalize `on' member to 0.
14425 (font_update_drivers): New function.
14426 (Fclear_font_cache): Check driver_list->on.
14427
14428 * frame.h (Qfont_backend): Extern it.
14429 (x_set_font_backend): Extern it.
14430
14431 * frame.c (Qfont_backend): New variable.
14432 (frame_parms): New element for font-backend.
14433 (x_set_font_backend): New function.
14434
14435 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14436 FontBackend frame parameter.
14437 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14438 x_set_font_backend.
14439
14440 * xfont.c (xfont_list): Don't try listing by :name property if the
14441 name is not for XLFD.
14442
144432008-02-01 Kenichi Handa <handa@m17n.org>
14444
14445 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14446 (LGLYPH_SET_TO): New macros.
14447 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14448 element of G is vector or not.
14449 (font_at): Extern it.
14450
14451 * font.c: Include window.h.
14452 (font_lispy_object): New function.
14453 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14454 end of valid glyph.
14455 (font_close_object): Fix getting (struct font *).
14456 (font_at): New function.
14457 (Ffont_get): If FONT is a font-object, get entity from it.
14458 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14459 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14460 range check.
14461 (Ffont_at): New function.
14462 (syms_of_font): Defsubr Sfont_at.
14463
14464 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14465 before the entry for Qcomposition.
14466 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14467 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14468 the font in gstring.
14469 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14470 LGLYPH_FORM (g) to detect the end of valid glyph.
14471 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14472 we are composing with gstring.
14473
14474 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14475 Check if adjustment is vector or not.
14476
14477 * Makefile.in (font.o): Make it depends on window.h.
14478
144792008-02-01 Kenichi Handa <handa@m17n.org>
14480
14481 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14482 adjustment is vector or not.
14483
144842008-02-01 Miles Bader <miles@gnu.org>
14485
14486 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14487
144882008-02-01 Kenichi Handa <handa@m17n.org>
14489
14490 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14491 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14492 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14493
14494 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14495 (DEVICE_DELTA): Fix typo.
14496 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14497 LGLYPH format.
14498
14499 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14500 the change of LGLYPH format.
14501
145022008-02-01 Kenichi Handa <handa@m17n.org>
14503
14504 * ftfont.c (ftfont_list): Fix typo.
14505 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14506
145072008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14508
14509 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14510
14511 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14512 xftface_info is non-NULL.
14513
145142008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14515
14516 * ftfont.c (ftfont_list): Move misplaced #endif.
14517
145182008-02-01 Kenichi Handa <handa@m17n.org>
14519
14520 * ftfont.c (ftfont_list): Pay attention to the case that
14521 FC_CAPABILITY is not defined.
14522
145232008-02-01 Kenichi Handa <handa@m17n.org>
14524
14525 * xftfont.c (xftfont_open): Set charset related members to -1.
14526
14527 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14528 QCname.
14529 (ftfont_open): Set charset related members to -1.
14530
14531 * fontset.c (Votf_script_alist): New variable.
14532 (syms_of_fontset): Initialize it.
14533 (fontset_font): Delete unused variable.
14534
14535 * fontset.h (Votf_script_alist): Extern it.
14536
14537 * font.c (font_find_for_lface): Optimize code.
14538
14539 * font.h (font_close_object, font_merge_old_spec): Extern them.
14540
145412008-02-01 Kenichi Handa <handa@m17n.org>
14542
14543 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14544 (syms_of_font): Initialize them.
14545 (font_pixel_size): Allow float value in dpi.
14546 (font_prop_validate_type): Delete.
14547 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
14548 Change caller.
14549 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
14550 (font_prop_validate_extra): Delete.
14551 (font_prop_validate_spacing): New function.
14552 (font_property_table): Add elements for all known properties.
14553 (get_font_prop_index): Rename from check_font_prop_name. New
14554 argument FROM. Change caller.
14555 (font_prop_validate): Validate all known properties.
14556 (font_put_extra): Delete argument force. Change caller.
14557 (font_expand_wildcards): Make it static. Fix the way of shrinking
14558 the possible range.
14559 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
14560 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
14561 Change caller.
14562 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
14563 (font_parse_fcname): Delete argument merge. Fix parsing of point
14564 size. Don't validate properties values here. Change caller.
14565 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
14566 (font_open_by_name): Delete unused variable.
14567 (Ffont_spec): Likewise. Validate property values.
14568 (Ffont_match_p): New function.
14569
14570 * font.h (QCscalable): Extern it.
14571 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
14572
14573 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
14574
14575 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
14576 (xfont_list_pattern): New function.
14577 (xfont_list): Use xfont_list_pattern.
14578
145792008-02-01 Kenichi Handa <handa@m17n.org>
14580
14581 * font.h (Flist_fonts): EXFUN it.
14582
145832008-02-01 Jason Rumney <jasonr@gnu.org>
14584
14585 * w32term.c (w32_initialize): Add back smoothing_type and
14586 smoothing_enabled definitions.
14587
145882008-02-01 Kenichi Handa <handa@m17n.org>
14589
14590 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
14591 s->face->font on determining underline position.
14592
145932008-02-01 Kenichi Handa <handa@m17n.org>
14594
14595 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
14596 (font_has_char): Accept font-object too.
14597 (font_find_for_lface): Try at first with a size specified in face.
14598
145992008-02-01 Kenichi Handa <handa@m17n.org>
14600
14601 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
14602 font_open_by_name.
14603
146042008-02-01 Kenichi Handa <handa@m17n.org>
14605
14606 * font.h (QCspacing, QCdpi): Extern them.
14607 (enum font_spacing): New enum.
14608 (FONT_PIXEL_SIZE_QUANTUM): New macro.
14609
14610 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
14611 (QCspacing, QCdpi): New variables.
14612 (syms_of_font): Initialize them.
14613 (font_pixel_size): New function.
14614 (font_put_extra): New function.
14615 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
14616 in FONT_EXTRA.
14617 (font_parse_fcname): Handle enumerated values (e.g. bold).
14618 Fix handling font size. Add QCname property that contains only
14619 unknown properties.
14620 (font_score): Change argument. Change caller. Pay attention to
14621 FONT_PIXEL_SIZE_QUANTUM.
14622 (font_sort_entites, font_list_entities, font_find_for_lface)
14623 (font_open_for_lface, font_open_by_name): Fix handling of font size.
14624 (Ffont_spec): Add QCname property that contains only unknown properties.
14625
14626 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
14627 include weight in listing pattern, instead check weight of each
14628 listed font. Don't include scalable in pattern. Pay attention to
14629 FONT_PIXEL_SIZE_QUANTUM.
14630
146312008-02-01 Kenichi Handa <handa@m17n.org>
14632
14633 * font.c (font_parse_fcname): Fix parsing of point-size.
14634 (font_unparse_fcname): Produce symbolic names for style properties.
14635 (font_list_entities): Handle float size correctly.
14636 (font_open_by_name): Prefer `normal' property values if the name
14637 doesn't specify them.
14638
14639 * fontset.c (Finternal_char_font): Use font_get_name, not
14640 Ffont_xlfd_name.
14641
14642 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
14643 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
14644 pattern. Don't force scalable.
14645
14646 * xftfont.c (xftfont_open): For generating a name, start from
14647 96-byte buffer.
14648
146492008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14650
14651 * frame.h (x_new_fontset2): Fix prototype.
14652
146532008-02-01 Kenichi Handa <handa@m17n.org>
14654
14655 * font.h (struct font_driver): Delete member parse_name.
14656 (font_match_p, font_get_spec, font_parse_fcname)
14657 (font_unparse_fcname): Extern them.
14658 (font_get_name): Adjust prototype.
14659
14660 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
14661 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
14662 (font_expand_wildcards): Fix handling ENCODING field. Avoid
14663 unnecessary checks for weight, slant, and swidth.
14664 (font_parse_fcname): New function.
14665 (font_unparse_fcname): New function.
14666 (font_parse_name): New function.
14667 (font_match_p): New function.
14668 (font_get_name): Change return value to Lisp string.
14669 (font_get_spec): New function.
14670 (Qunspecified, Qignore_defface): Don't extern them.
14671 (font_find_for_lface): Assume that LFACE is fully specified.
14672 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
14673 object, use it for FACE.
14674 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
14675 driver->parse_name.
14676 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
14677
14678 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
14679 prototype.
14680
14681 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
14682 argument F. Don't call Fnew_fontset. Instead, directly call
14683 make_fontset.
14684
14685 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
14686
14687 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
14688 of x_new_fontset2.
14689
14690 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
14691 (Qsans__serif): New variables.
14692 (ftfont_generic_family_list): New variable.
14693 (syms_of_ftfont): Initialize the above variables.
14694 (ftfont_pattern_entity): Delete argument NAME.
14695 (ftfont_list_generic_family): New function.
14696 (ftfont_parse_name): Delete this function.
14697 (ftfont_list): Try generic family only when FcFontList found no font.
14698 (ftfont_list_family): Fix args to FcObjectSetBuild.
14699
14700 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
14701 object in attrs[LFACE_FONT_INDEX].
14702 (set_lface_from_font_name): Cancel all changes for font-backend.
14703 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
14704 function.
14705 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
14706 font object in QCfont attribute.
14707 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
14708 (realize_default_face) [USE_FONT_BACKEND]: Call
14709 set_lface_from_font_and_fontset.
14710
14711 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
14712 "fixed", and signal error here if no suitable font was found.
14713
14714 * xfont.c (xfont_parse_name): Delete this function.
14715
14716 * xftfont.c (xftfont_open): Change coding style of error
14717 handling. Generate fontconfig's fontname pattern.
14718
14719 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
14720 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
14721
14722 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
14723 Both args FONTSET and FONT_OBJECT must be existing ones.
14724
147252008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14726
14727 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
14728
147292008-02-01 Kenichi Handa <handa@m17n.org>
14730
14731 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
14732
14733 * font.h (struct font): Fix typo.
14734
14735 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
14736 XLFD_XXX_INDEX.
14737 (enum xlfd_field_mask): New enum.
14738 (intern_font_field): Changed argument. Change caller. If digits
14739 are followed by non-digits, return a symbol.
14740 (font_expand_wildcards): New function.
14741 (font_parse_xlfd): Fix wildcard handling.
14742 (Ffont_spec): If :name is specified, reflect the info in the other
14743 properties.
14744
14745 * ftfont.c (ftfont_pattern_entity): Fix typo.
14746 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
14747 locale.
14748
147492008-02-01 Kenichi Handa <handa@m17n.org>
14750
14751 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
14752
14753 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
14754 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
14755 registry doesn't specify encoding part.
14756 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
14757 (font_open_by_name): At first try parsing the name.
14758 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
14759 as Lisp symbols.
14760
14761 * fontset.c (reorder_font_vector): Pay attention to the case that
14762 the 3rd element of font_def is nil.
14763 (fontset_font): For the default fontset, append one more fontset
14764 elements for a script-based font specification. Don't add script
14765 attribute on finding a font.
14766 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
14767 font name.
14768 (fontset_ascii_font): If a font can't be opened, return nil.
14769
14770 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
14771 (ftfont_pattern_entity): New function.
14772 (ftfont_get_cache): Assume that freetype_font_cache is already
14773 initialized.
14774 (ftfont_list): Handle the case that a file is specified in font
14775 name. Use ftfont_pattern_entity to generate entities.
14776 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
14777 (syms_of_ftfont): Initialize freetype_font_cache.
14778
14779 * xftfont.c (xftfont_open): Make the font name fontconfig's
14780 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
14781 (xftfont_close): Free font->font.name if not NULL.
14782
14783 * xfont.c (xfont_list): If script is specified for a font, return
14784 null_vector.
14785 (xfont_list_family): Declare argument type.
14786
14787 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
14788 name, set LFACE_FONT (lface) to nil.
14789
14790 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
14791 return Qnil.
14792
147932008-02-01 Kenichi Handa <handa@m17n.org>
14794
14795 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
14796 (standard_args): Add "-enable-font-backend".
14797
147982008-02-01 Kenichi Handa <handa@m17n.org>
14799
14800 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
14801 (struct xftdraw_list, xftdraw_list): Delete them.
14802 (register_xftdraw, check_xftdraw): Delete them.
14803 (xftfont_prepare_face): Don't call register_xftdraw.
14804 (xftfont_done_face): Don't call check_xftdraw.
14805 (xftfont_draw): Get background color only when with_background is
14806 nonzero.
14807
14808 * xfont.c (xfont_encode_char): Fix calculation of char2b.
14809
148102008-02-01 Kenichi Handa <handa@m17n.org>
14811
14812 These changes are for the new font handling codes.
14813
14814 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
14815 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
14816 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
14817 (FONTSRC, FONTOBJ): New variables.
14818 (obj): Add $(FONTOBJ).
14819 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
14820 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
14821 @LIBOTF_LIBS@.
14822 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
14823 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
14824
14825 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
14826
14827 * character.h (Vscript_representative_chars): Extern it.
14828
14829 * character.c (Vscript_representative_chars): New variable.
14830 (syms_of_character): Declare it as a Lisp variable.
14831
14832 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
14833 enable_font_backend is nonzero, accept the composition method
14834 COMPOSITION_WITH_GLYPH_STRING.
14835
14836 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
14837 enumeration COMPOSITION_WITH_GLYPH_STRING.
14838
14839 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
14840 members clip_x, clip_y, clip_width, and clip_height.
14841 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
14842
14843 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
14844 --enable-font-backend. Call syms_of_font.
14845
14846 * fns.c (assoc_no_quit): New function.
14847
14848 * fontset.h (FONT_INFO_FROM_FACE): New macro.
14849 (face_for_font, new_fontset_from_font)
14850 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
14851
14852 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
14853 (fontset_font, fontset_ascii, face_for_char)
14854 (make_fontset_for_ascii_face, Ffont_info)
14855 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
14856 is nonzero, use font-backend mechanism.
14857 (find_font_encoding): Make it non-static.
14858 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
14859 New functions.
14860
14861 * frame.h (struct frame): New members resx and resy.
14862 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
14863 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
14864
14865 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14866 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14867
14868 * lisp.h (assoc_no_quit): Extern it.
14869
14870 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14871 Through out the file, use FONT_INFO_FROM_FACE instead of
14872 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14873 rif->per_char_metric.
14874 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14875 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14876 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14877 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14878 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14879 nonzero, use font-backend mechanism.
14880 (get_per_char_metric): New function.
14881
14882 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14883 (set_lface_from_font_name)
14884 (set_font_frame_param, free_realized_face)
14885 (prepare_face_for_display, clear_face_gcs)
14886 (Finternal_set_font_selection_order, realize_x_face)
14887 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14888 font-backend mechanism.
14889 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14890 (load_face_font) [USE_FONT_BACKEND]: Abort.
14891 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14892 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14893
14894 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14895 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14896 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
14897 nonzero, register all available font drivers. Call
14898 x_default_font_parameter for deciding a font.
14899 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
14900
14901 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
14902 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
14903 (x_set_glyph_string_clipping_exactly)
14904 (x_compute_glyph_string_overhangs)
14905 (x_draw_glyph_string_foreground)
14906 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
14907 (x_free_frame_resources) [USE_FONT_BACKEND]: If
14908 enable_font_backend is nonzero, use font-backend mechanism.
14909 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
14910
149112008-02-01 Kenichi Handa <handa@m17n.org>
14912
14913 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
14914 system_eol_type.
14915 (syms_of_coding): Initialize system_eol_type.
14916
14917 * process.c (Fset_process_coding_system): Inherit system's eol
14918 format if necessary.
14919
149202008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14921
14922 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
14923
149242008-02-01 Kenichi Handa <handa@m17n.org>
14925
14926 * coding.c (decode_eol): Pay attention to buffer relocation in
14927 del_range_2.
14928 (decode_coding): Call decode_eol before restoring undo_list.
14929
149302008-02-01 Kenichi Handa <handa@m17n.org>
14931
14932 * charset.c (Fdefine_charset_internal): Fix setting of
14933 emacs_mule_bytes.
14934
149352008-02-01 Kenichi Handa <handa@m17n.org>
14936
14937 * keyboard.c (read_char): Check if C is a character or not before
14938 looking up Vkeyboard_translate_table.
14939
149402008-02-01 Kenichi Handa <handa@m17n.org>
14941
14942 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
14943 condition to terminate the loop.
14944
149452008-02-01 Kenichi Handa <handa@m17n.org>
14946
14947 * coding.c (produce_composition): Compare charbuf[i] instead of
14948 args[i] against 0.
14949 (Fterminal_coding_system): Use EQ to compare Lisp objects.
14950
149512008-02-01 Kenichi Handa <handa@m17n.org>
14952
14953 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
14954 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14955 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14956 detect_coding.
14957 (emacs_mule_char): Handle old style (Emacs 20) component character
14958 of a composition.
14959 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14960 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14961 composition rule.
14962 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14963
149642008-02-01 Kenichi Handa <handa@m17n.org>
14965
14966 * coding.c (encode_coding_ccl): Allocate destination dynamically
14967 when necessary.
14968
149692008-02-01 Kenichi Handa <handa@m17n.org>
14970
14971 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14972 the loop. When quitted, show a proper error message.
14973
149742008-02-01 Kenichi Handa <handa@m17n.org>
14975
14976 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14977 src->clip_head and src->clip_tail temporarily instead of src->hl.
14978
14979 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14980 character sequence.
14981 (Fccl_execute_on_string): Use ASET, not XSET.
14982
149832008-02-01 Kenichi Handa <handa@m17n.org>
14984
14985 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14986
149872008-02-01 Kenichi Handa <handa@m17n.org>
14988
14989 * coding.c (decode_coding): Fix the condition of terminating the
14990 decoding loop.
14991
149922008-02-01 Kenichi Handa <handa@m17n.org>
14993
14994 * data.c (Faset): On setting a character bigger than 255 in a
14995 unibyte string, signal an error instead of make the string multibyte.
14996
149972008-02-01 Kenichi Handa <handa@m17n.org>
14998
14999 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15000 made by a mapping table.
15001
150022008-02-01 Kenichi Handa <handa@m17n.org>
15003
15004 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15005 not.
15006 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15007 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15008
15009 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15010 s->face is NULL or not.
15011
150122008-02-01 Kenichi Handa <handa@m17n.org>
15013
15014 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15015 (x_draw_glyph_string): Fix drawing of right_overhang and
15016 left_overhang around/on cursor.
15017
15018 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15019
150202008-02-01 Kenichi Handa <handa@m17n.org>
15021
15022 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15023
150242008-02-01 Kenichi Handa <handa@m17n.org>
15025
15026 * coding.c (Fdefine_coding_system_internal)
15027 (Fdefine_coding_system_alias): Avoid a duplicated element in
15028 Vcoding_system_alist.
15029
150302008-02-01 Kenichi Handa <handa@m17n.org>
15031
15032 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15033
15034 * coding.c (Qcoding_system_define_form): New variable.
15035 (syms_of_coding): Intern and staticpro it.
15036 (Fcoding_system_p): Check Qcoding_system_define_form.
15037 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15038
15039 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15040 Fcoding_system_p.
15041 (CHECK_CODING_SYSTEM): If ID is not available, call
15042 Fcheck_coding_system.
15043 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15044 Try also Fcheck_coding_system.
15045
150462008-02-01 Kenichi Handa <handa@m17n.org>
15047
15048 * coding.c (code_conversion_restore): GCPRO arg.
15049
150502008-02-01 Kenichi Handa <handa@m17n.org>
15051
15052 * character.c (lisp_string_width): Check multibyteness of STRING.
15053
150542008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15055
15056 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15057 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15058 (decode_mac_font_name): Use decode_coding_c_string instead of
15059 decode_coding.
15060 (x_load_font): Initialize fontp->fontset to -1. Set
15061 fontp->encoding_type.
15062
150632008-02-01 Kenichi Handa <handa@m17n.org>
15064
15065 * search.c (search_buffer): Give up BM search on case-fold-search
15066 if one of a target character has a case-equivalence of different
15067 byte length even if that target charcter is an ASCII.
15068 (simple_search): Fix calculation of byte length of matched text.
15069 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15070
150712008-02-01 Kenichi Handa <handa@m17n.org>
15072
15073 * coding.c (decode_coding): Fix handling of invalid bytes.
15074
150752008-02-01 Kenichi Handa <handa@m17n.org>
15076
15077 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15078 Unicode characters.
15079
150802008-02-01 Kenichi Handa <handa@m17n.org>
15081
15082 * coding.c (encode_coding_object): If a pre-write-conversion
15083 function makes a new buffer, kill it.
15084
150852008-02-01 Kenichi Handa <handa@m17n.org>
15086
15087 * coding.c (QCascii_compatible_p): New variable.
15088 (syms_of_coding): Initialize it.
15089 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15090 calling string_char.
15091 (record_conversion_result): Add `default:' case.
15092 (coding_charset_list): Delete unused variable `coding_type'.
15093 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15094 property in the plist of the coding system.
15095 (Fcoding_system_put): Check QCascii_compatible_p.
15096
150972008-02-01 Miles Bader <miles@gnu.org>
15098
15099 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15100 removed calculation of frame `f', as it's now used.
15101
151022008-02-01 Kenichi Handa <handa@m17n.org>
15103
15104 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15105 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15106 (UNIDATA): New variable.
15107 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15108 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15109 $(RUN_TEMACS) unconditionally.
15110
151112008-02-01 Kenichi Handa <handa@m17n.org>
15112
15113 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15114 (admindir): New variable.
15115 ($(lispsource)international/charprop.el): New target.
15116
151172008-02-01 Miles Bader <miles@gnu.org>
15118
15119 * character.c (chars-in-region): Remove obsolete function.
15120 (syms_of_character): Remove its initialization.
15121
151222008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15123
15124 * w32select.c (validate_coding_system)
15125 (setup_windows_coding_system): New functions.
15126 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15127 setup_windows_coding_system.
15128 (setup_config, Fw32_get_clipboard_data): Use
15129 validate_coding_system.
15130 (Fx_selection_exists): Move call to setup_config to a place
15131 where signals are allowed.
15132
15133 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15134 (Fcheck_coding_system): Add declarations.
15135
151362008-02-01 Kenichi Handa <handa@m17n.org>
15137
15138 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15139
151402008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15141
15142 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15143 string as the second argument for x_new_fontset.
15144
151452008-02-01 Kenichi Handa <handa@m17n.org>
15146
15147 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15148 (encode_coding_object): Use safe_call instead of call2.
15149
151502008-02-01 Kenichi Handa <handa@m17n.org>
15151
15152 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15153
15154 * Makefile.in (lisp): Include charprop.el.
15155
151562008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15157
15158 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15159 Not sure if it's unnecessary.
15160
151612008-02-01 Steven Tamm <steventamm@mac.com>
15162
15163 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15164 some possibly unnecessary fontset checking code that crashed
15165 when creating a new frame.
15166
151672008-02-01 Kenichi Handa <handa@m17n.org>
15168
15169 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15170 lookup_face.
15171
15172 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15173
15174 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15175
151762008-02-01 Kenichi Handa <handa@m17n.org>
15177
15178 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15179 (coding_charset_list): New function.
15180
15181 * coding.h (coding_charset_list): Extern it.
15182
151832008-02-01 Kenichi Handa <handa@m17n.org>
15184
15185 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15186 concatenation of family and registry.
15187
151882008-02-01 Kenichi Handa <handa@m17n.org>
15189
15190 * character.h (BYTE8_STRING): Fix typo.
15191
15192 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15193 string to multibyte (sync to HEAD).
15194
15195 * casefiddle.c (casify_region): Handle changes in byte-length
15196 using replace_range_2 (sync to HEAD).
15197
151982008-02-01 Andreas Schwab <schwab@suse.de>
15199
15200 * chartab.c (map_char_table): GCPRO table and arg.
15201
152022008-02-01 Kenichi Handa <handa@m17n.org>
15203
15204 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15205 already at limit.
15206
152072008-02-01 Kenichi Handa <handa@m17n.org>
15208
15209 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15210 instead of fast_c_string_match_ignore_case.
15211 (find_font_encoding): Change argument to Lisp_Object. Use
15212 fast_string_match_ignore_case instead of
15213 fast_c_string_match_ignore_case. Change caller.
15214
152152008-02-01 Kenichi Handa <handa@m17n.org>
15216
15217 * xdisp.c (get_next_display_element): In unibyte case, decide to
15218 display in octal form by checking a character by
15219 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15220
15221 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15222
15223 * character.c (unibyte_has_multibyte_table): New variable.
15224
15225 * character.h (unibyte_has_multibyte_table): Extern it.
15226 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15227
152282008-02-01 Kenichi Handa <handa@m17n.org>
15229
15230 * coding.c (encode_coding_iso_2022): Fix handling of charset
15231 annotation.
15232
152332008-02-01 Kenichi Handa <handa@m17n.org>
15234
15235 * coding.c (setup_coding_system): If coding_system is nil, use
15236 Qundecided.
15237 (Fterminal_coding_system): Return nil if terminal coding system is
15238 `undecided'.
15239 (syms_of_coding): Define coding-system `undecided' here. Setup
15240 terminal_coding as `undecided'.
15241
152422008-02-01 Kenichi Handa <handa@m17n.org>
15243
15244 * xdisp.c (message_dolog, set_message_1): Call
15245 unibyte_char_to_multibyte with arg type int.
15246
15247 * lread.c (read1): Fix reading of a char-table.
15248
15249 * print.c (print_object): Include sub char-table in circularities
15250 detection.
15251
152522008-02-01 Kenichi Handa <handa@m17n.org>
15253
15254 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15255 Append the found sequences in car of ARGS instead of prepending.
15256
152572008-02-01 Kenichi Handa <handa@m17n.org>
15258
15259 * fileio.c (report_file_error): Make a unibyte string from
15260 strerror (errorno).
15261 (Fsubstitute_in_file_name): Fix the arg to
15262 unibyte_char_to_multibyte. It is evaluated twice.
15263
152642008-02-01 Kenichi Handa <handa@m17n.org>
15265
15266 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15267
152682008-02-01 Kenichi Handa <handa@m17n.org>
15269
15270 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15271 BOM is not found.
15272 (detect_coding, detect_coding_system): Optimization for ISO-2022
15273 when no 8-bit data is found.
15274
152752008-02-01 Jason Rumney <jasonr@gnu.org>
15276
15277 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15278
152792008-02-01 Kenichi Handa <handa@m17n.org>
15280
15281 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15282 CHARS.
15283
152842008-02-01 Steven Tamm <steventamm@mac.com>
15285
15286 * macterm.c (mac_encode_char): Add charset argument and update
15287 to use encoding_type.
15288 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15289 switch to pure fontset.
15290 (decode_mac_font_name): Temporarily remove decoding.
15291 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15292 (x_load_font): Temporarily remove encoding.
15293
152942008-02-01 Kenichi Handa <handa@m17n.org>
15295
15296 * xfaces.c (Fface_font): If frame is not on a window system,
15297 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15298 refer to face->font.
15299 (split_font_name_into_vector, build_font_name_from_vector)
15300 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15301 when HAVE_WINDOW_SYSTEM is defined.
15302
153032008-02-01 Kenichi Handa <handa@m17n.org>
15304
15305 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15306 (x_produce_glyphs): Fix setting of members of cmp in case
15307 cmp->glyph_len is zero.
15308
15309 * fontset.c (Fset_fontset_font): Fix docstring.
15310 (Ffontset_info): Make it backward compatible. New arg ALL.
15311
153122008-02-01 Kim F. Storm <storm@cua.dk>
15313
15314 * process.c (read_process_output): Grow decoding_buf when needed;
15315 this could cause a crash in allocate_string and compact_small_strings.
15316
153172008-02-01 Kenichi Handa <handa@m17n.org>
15318
15319 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15320
153212008-02-01 Kenichi Handa <handa@m17n.org>
15322
15323 * coding.c (setup_coding_system): Set coding->common_flags
15324 correctly for raw-text.
15325 (consume_chars): On encoding unibyte text by raw-text, don't check
15326 multibyte form.
15327 (encode_coding): On encoding by raw-text, never use translation tables.
15328
15329 * fileio.c (e_write): Short cut for the case of no encoding.
15330
153312008-02-01 Kenichi Handa <handa@m17n.org>
15332
15333 * coding.c (detect_coding, detect_coding_system): Delete unused
15334 variables.
15335
153362008-02-01 Kenichi Handa <handa@m17n.org>
15337
15338 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15339 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15340
153412008-02-01 Kenichi Handa <handa@m17n.org>
15342
15343 * coding.c (Ffind_coding_systems_region_internal): Include
15344 raw-text and no-conversion in the result.
15345
153462008-02-01 Kenichi Handa <handa@m17n.org>
15347
15348 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15349 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15350 FONT_DEF.
15351 (font_def_arg, add_arg, from_arg, to_arg): New args.
15352 (set_fontset_font): Change argument.
15353 (Fset_fontset_font): Fix for the case that TARGET is a script
15354 name and charset name.
15355 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15356
153572008-02-01 Kenichi Handa <handa@m17n.org>
15358
15359 * fontset.c (fontset_font): Rename from fontset_face. Change return
15360 value.
15361 (face_suitable_for_char_p, face_for_char): Adjust for the change
15362 of fontset_font.
15363 (make_fontset_for_ascii_face): Fix setting of the fontset element
15364 for ASCII.
15365 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15366 to get a font name.
15367 (Ffontset_info): Adjust for the change of fontset_font.
15368
15369 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15370
15371 * character.h (LEADING_CODE_LATIN_1_MIN)
15372 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15373
153742008-02-01 Kenichi Handa <handa@m17n.org>
15375
15376 * editfns.c (check_translation): New function.
15377 (Ftranslate_region_internal): Handle M:N mapping.
15378
153792008-02-01 Kenichi Handa <handa@m17n.org>
15380
15381 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15382
153832008-02-01 Kenichi Handa <handa@m17n.org>
15384
15385 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15386 goto invalid_code.
15387 (decode_coding_iso_2022): Fix handling of invalid designation.
15388
15389 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15390 after calling code_conversion_save.
15391
153922008-02-01 Kenichi Handa <handa@m17n.org>
15393
15394 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15395
15396 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15397
15398 * fontset.c: Include "intervals.h".
15399 (fontset_face): Fix comparing of Lisp_Objects.
15400 (free_face_fontset, new_fontset_from_font_name): Fix
15401 Lisp_Object/int mixup.
15402
15403 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15404
15405 * coding.c: Add many prototypes for static functions.
15406 (get_translation_table): Allow max_lookup to be NULL.
15407 (decode_coding, Ffind_coding_systems_region_internal)
15408 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15409 get_translation_table with max_lookup NULL.
15410
154112008-02-01 Kenichi Handa <handa@m17n.org>
15412
15413 * coding.c (get_translation_table): Declare it as Lisp_Object.
15414 (LOOKUP_TRANSLATION_TABLE): New macro.
15415 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15416 instead of CHAR_TABLE_REF.
15417
154182008-02-01 Kenichi Handa <handa@m17n.org>
15419
15420 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15421 annotation data format.
15422 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15423 Change arguments FROM and TO to single argument NCHARS. Change caller.
15424 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15425 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15426 (decode_coding_ccl, decode_coding_charset): Pay attention to
15427 coding->charbuf_used.
15428 (get_translation): New function.
15429 (produce_chars): New arguments translation_table and last_block.
15430 Translate characters here. Return number of carryover chars.
15431 Change caller.
15432 (produce_composition): New argument pos. Change caller.
15433 Adjust for the change of annotation data format.
15434 (produce_charset, produce_annotation): Likewise.
15435 (decode_coding, encode_coding): Don't call translate_chars.
15436 (consume_chars): New arg translation_table. Change caller.
15437 (translate_chars): Delete.
15438 (syms_of_coding): Make translation-table's number of extra slots 2.
15439
154402008-02-01 Kenichi Handa <handa@m17n.org>
15441
15442 * search.c (simple_search): Fix setting this_pos_byte in backward
15443 search.
15444
15445 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15446 byte sequence.
15447 (detect_coding_ccl): Fix setting of the variable valids.
15448
154492008-02-01 Kenichi Handa <handa@m17n.org>
15450
15451 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15452
15453 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15454
15455 * editfns.c (Ftranslate_region_internal): Rename from
15456 Ftranslate_region. Accept a char-table in TABLE.
15457 (syms_of_editfns): Defsubr Stranslate_region_internal.
15458
15459 * xfaces.c (set_lface_from_font_name): If a font is specified for
15460 a frame, generate a fontset from the font.
15461 (build_scalable_font_name): If the scalable font is requested for
15462 a specific size, don't change that size.
15463 (try_font_list): Try a scalable font also in the case that a
15464 pattern string is specified.
15465
154662008-02-01 Kenichi Handa <handa@m17n.org>
15467
15468 * xfaces.c (Fface_font): New optional arg CHARACTER.
15469
154702008-02-01 Kenichi Handa <handa@m17n.org>
15471
15472 * charset.h (CHARSET_OFFSET): New macro.
15473
154742008-02-01 Kenichi Handa <handa@m17n.org>
15475
15476 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15477
15478 * fontset.c (fontset_face): Handle the case that repertory is a
15479 char-table.
15480 (find_font_encoding): Return nil for unknown encoding.
15481 (Fset_fontset_font): Ignore a font of unknown encoding.
15482
154832008-02-01 Kenichi Handa <handa@m17n.org>
15484
15485 * keymap.c (describe_vector): Handle default value of a char table.
15486
15487 * fontset.c (fontset_face): Handle fallback fonts correctly.
15488 (Ffontset_info): Return infomation about fallback fonts.
15489
154902008-02-01 Kenichi Handa <handa@m17n.org>
15491
15492 * fontset.c (FONTSET_DEFAULT): New macro.
15493 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15494 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15495 the case that it is nil.
15496 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15497 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15498
15499 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15500 subset or superset.
15501
155022008-02-01 Kenichi Handa <handa@m17n.org>
15503
15504 * emacs.c (main): Call init_charset after syms_of_XXX.
15505
15506 * charset.c (Vcharset_map_directory): Delete.
15507 (Vcharset_map_path): New variable.
15508 (load_charset_map_from_file): Use Vcharset_map_path instead.
15509 (init_charset): Initialize Vcharset_map_path.
15510 (syms_of_charset): Delete declaration of "charset-map-directory",
15511 add declaration of "charset-map-path".
15512
155132008-02-01 Kenichi Handa <handa@m17n.org>
15514
15515 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15516 ASCII only string.
15517
15518 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15519
15520 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15521 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15522
155232008-02-01 Kenichi Handa <handa@m17n.org>
15524
15525 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15526
15527 * coding.c (QCmnemonic, QCdefalut_char)
15528 (QCdecode_translation_table, QCencode_translation_table)
15529 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15530 (get_translation_table): Return a list of translation tables if
15531 necessary.
15532 (decode_coding): Call get_translation_table with ENCODEP 0.
15533 (char_encodable_p): If translation_table is non-nil, always call
15534 translate_char.
15535 (Fdefine_coding_system_internal): Accept list of translation
15536 tables as :encode-translation-table and :decode-translation-table.
15537 (Fcoding_system_put): New function.
15538 (syms_of_coding): Declare new symbols. Defsubr
15539 Scoding_system_put.
15540 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15541 typically JISX0212.
15542
15543 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15544 when the charset is superset type.
15545
15546 * character.c (translate_char): Accept list of translation tables.
15547
155482008-02-01 Kenichi Handa <handa@m17n.org>
15549
15550 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
15551 (CODING_ATTR_TRANS_TBL): New macro.
15552
15553 * coding.c (get_translation_table): New function.
15554 (translate_chars): Fix the bug of skipping annotation data.
15555 (decode_coding, encode_coding): Utilize get_translation_table.
15556 (char_encodable_p, Funencodable_char_position): Translate char if
15557 necessary.
15558 (Ffind_coding_systems_region_internal)
15559 (Fcheck_coding_systems_region): Setup translation table for encode
15560 in a coding system attribute vector in advance.
15561 (Fdefine_coding_system_internal): Allow a symbol as translation
15562 table. For shift-jis type coding system, allow 4th charset.
15563
155642008-02-01 Kenichi Handa <handa@m17n.org>
15565
15566 * coding.c (decode_coding_sjis): Check the first byte rigidly.
15567
15568 * xdisp.c (get_next_display_element): Pass -1 as POS to
15569 FACE_FOR_CHAR if displaying a C-string.
15570
155712008-02-01 Kenichi Handa <handa@m17n.org>
15572
15573 * composite.c (get_composition_id): Handle xoff and yoff in a
15574 composition rule.
15575
15576 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
15577 (struct composition): New member lbearing and rbearing.
15578
15579 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
15580 (x_get_glyph_overhangs): Handle a composition glyph.
15581 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
15582
15583 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
15584 composition glyph.
15585
155862008-02-01 Kenichi Handa <handa@m17n.org>
15587
15588 * print.c: Include charset.h.
15589 (Vprint_charset_text_property): New variable.
15590 (Qdefault): Extern it.
15591 (PRINT_STRING_NON_CHARSET_FOUND)
15592 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
15593 (print_check_string_result): New variable.
15594 (print_check_string_charset_prop): New function.
15595 (print_prune_charset_plist): New variable.
15596 (print_prune_string_charset): New function.
15597 (print_object): Call print_prune_string_charset if
15598 Vprint_charset_text_property is not t.
15599 (print_interval): Print nothing if interval->plist is nil.
15600 (syms_of_print): Declare Vprint_charset_text_property as a lisp
15601 variable. Init and staticpro print_prune_charset_plist.
15602
156032008-02-01 Kenichi Handa <handa@m17n.org>
15604
15605 * fontset.c (new_fontset_from_font_name): Use the specified font
15606 for all characters in the new fontset.
15607
15608 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15609 OBJECT args.
15610
15611 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
15612 OBJECT args for composition too.
15613
15614 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15615 OBJECT args.
15616
156172008-02-01 Kenichi Handa <handa@m17n.org>
15618
15619 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
15620
15621 * fontset.c (reorder_font_vector): Adjust for the change of
15622 FONT_DEF format.
15623 (fontset_face): New arg id. Change caller.
15624 (face_for_char): New args pos and object.
15625 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
15626 (fs_query_fontset): Check NAME by Fassoc too.
15627 (Fset_fontset_font): Allow non-XLFD font name.
15628 (Ffontset_info): Adjust for the change of FONT_DEF format.
15629
15630 * fontset.h (face_for_char): Adjust prototype.
15631
15632 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
15633 (append_space, extend_face_to_end_of_line)
15634 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15635 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
15636
15637 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
15638 POS and OBJECT args.
15639
15640 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
15641 POS and OBJECT args.
15642
156432008-02-01 Jason Rumney <jasonr@gnu.org>
15644
15645 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
15646 of GlobalAlloc'ed memory.
15647
156482008-02-01 Kenichi Handa <handa@m17n.org>
15649
15650 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
15651
15652 * charset.h (charset_table_used): Delete extern.
15653
15654 * charset.c (charset_table_used): Make it static.
15655 (map_charset_chars): Fix args to c_function with.
15656
15657 * chartab.c (map_sub_char_table_for_charset): Fix args to
15658 c_function with.
15659
15660 * coding.h (enum coding_result_code): Delete
15661 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
15662
15663 * coding.c (Qinsufficient_source, Qinconsistent_eol)
15664 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
15665 (Vlast_code_conversion_error): New variables.
15666 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
15667 (ONE_MORE_BYTE): Record error if any instead of signaling an
15668 error. If non-ASCII multibyte char is found, return the negative
15669 value of the code. All callers changed to check it.
15670 (ONE_MORE_BYTE_NO_CHECK): Likewise.
15671 (record_conversion_result): New function. Change all codes setting
15672 coding->result to call this function.
15673 (detect_coding_utf_8, decode_coding_utf_8)
15674 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
15675 Don't use the local variable incomplete.
15676 (emacs_mule_char): Change the second arg to `const'.
15677 (decode_coding): Fix of flushing out unprocessed data.
15678 (make_conversion_work_buffer): Fix making of a work buffer.
15679 (decode_coding_object): Return coding->dst_object.
15680
15681 * fontset.c (set_fontset_font): Fix args.
15682
15683 * lisp.h (CHARACTERBITS): Define as 22.
15684
15685 * process.c (send_process): Be sure to set coding->src_multibyte.
15686
15687 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
15688
156892008-02-01 Kenichi Handa <handa@m17n.org>
15690
15691 * xdisp.c (handle_auto_composed_prop): Give limit to
15692 Fnext_single_char_property_change.
15693
156942008-02-01 Kenichi Handa <handa@m17n.org>
15695
15696 * composite.c (syms_of_composite): Don't make the composition hash
15697 table weak.
15698
15699 * fontset.c (Fset_fontset_font): Fix docstring.
15700
15701 * lisp.h (detect_coding_system): Adjust prototype.
15702
15703 * fileio.c (kill_workbuf_unwind): Delete this function.
15704 (Finsert_file_contents): Adjust the call of detect_coding_system.
15705 Get conversion_buffer by code_conversion_save. Use the macro
15706 CODING_MAY_REQUIRE_DECODING. After decoding, update
15707 coding_system.
15708
15709 * coding.h (make_conversion_work_buffer): Delete extern.
15710 (code_conversion_save): Extern it.
15711
15712 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
15713 (CODING_GET_INFO): Delete argument eol_type. Change callers.
15714 (decode_coding_utf_8): Don't do eol converion.
15715 (detect_coding_utf_16): Check coding->src_chars, not
15716 coding->src_bytes. Add heuristics for those that have no signature.
15717 (decode_coding_emacs_mule, decode_coding_iso_2022)
15718 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15719 Don't do eol converion.
15720 (adjust_coding_eol_type): Return a new coding system.
15721 (detect_coding): Don't detect eol. Fix for utf-16 detection.
15722 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
15723 each change.
15724 (decode_coding): Pay attention to undo_list. Do eol conversion for
15725 all types of coding-systems (if necessary).
15726 (Vcode_conversion_work_buf_list): Delete it.
15727 (Vcode_conversion_reused_workbuf): Rename from
15728 Vcode_conversion_reused_work_buf.
15729 (Vcode_conversion_workbuf_name): New variable.
15730 (reused_workbuf_in_use): New variable.
15731 (make_conversion_work_buffer): Delete the arg DEPTH.
15732 (code_conversion_restore): Change argument to cons.
15733 (code_conversion_save): Delete the argument BUFFER. Change callers.
15734 (detect_coding_system): New argument src_chars. Change callers.
15735 Fix for utf-16 detection.
15736 (init_coding_once): Don't use ISO_carriage_return.
15737 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
15738 reused_workbuf_in_use.
15739
157402008-02-01 Kenichi Handa <handa@m17n.org>
15741
15742 * keymap.c (store_in_keymap): Pay attention to the case that idx
15743 is a cons specifying a character range.
15744
157452008-02-01 Kenichi Handa <handa@m17n.org>
15746
15747 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
15748 HANDLED_RECOMPUTE_PROPS.
15749
15750 * coding.c (Fdefine_coding_system_internal): Fix checking of
15751 ascii compatibility.
15752
157532008-02-01 Kenichi Handa <handa@m17n.org>
15754
15755 * charset.c (find_charsets_in_text): Delete unused locale variable.
15756 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
15757
15758 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
15759 Resync charset_list to Vemacs_mule_charset_list.
15760
15761 * keymap.c (store_in_keymap): Pay attention to the case that idx
15762 is a cons specifying a character range.
15763
157642008-02-01 Kenichi Handa <handa@m17n.org>
15765
15766 * composite.c (update_compositions): Bind inhibit-read-only, etc
15767 to t before calling remove-list-of-text-properties.
15768
15769 * print.c (print_object): Always print ASCII chars as is.
15770
157712008-02-01 Kenichi Handa <handa@m17n.org>
15772
15773 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
15774
15775 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
15776 is a char table.
15777
157782008-02-01 Kenichi Handa <handa@m17n.org>
15779
15780 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
15781
157822008-02-01 Kenichi Handa <handa@m17n.org>
15783
15784 * xfaces.c (set_lface_from_font_name): Fix for the case that
15785 FONTNAME is not fontset name.
15786
157872008-02-01 Kenichi Handa <handa@m17n.org>
15788
15789 * fns.c (base64_encode_1): Fix previous change.
15790
157912008-02-01 Kenichi Handa <handa@m17n.org>
15792
15793 * fontset.c (set_fontset_font): New function.
15794 (Fset_fontset_font): If a font is specified for a charset, use
15795 map_charset_chars to store the font spec in a fontset.
15796
157972008-02-01 Kenichi Handa <handa@m17n.org>
15798
15799 * fontset.c (fontset_face): Create a fallback fontset on demand.
15800 (make_fontset): Don't create a fallback fontset here.
15801 (free_face_fontset): Free a fallback fontset (if any) too.
15802 (n_auto_fontsets): Delete this variable.
15803 (auto_fontset_alist): New variable.
15804 (new_fontset_from_font_name): Check auto_fontset_alist.
15805 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
15806 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
15807 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
15808 Defsubr Sfontset_list_all.
15809
158102008-02-01 Kenichi Handa <handa@m17n.org>
15811
15812 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15813
158142008-02-01 Kenichi Handa <handa@m17n.org>
15815
15816 * fontset.c (Fnew_fontset): Check NAME more rigidly.
15817
158182008-02-01 Kenichi Handa <handa@m17n.org>
15819
15820 * editfns.c (Fgoto_char): Fix docstring.
15821
158222008-02-01 Kenichi Handa <handa@m17n.org>
15823
15824 * insdel.c (insert_from_gap): Adjust intervals correctly.
15825
158262008-02-01 Jason Rumney <jasonr@gnu.org>
15827
15828 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
15829 (pfnGetFontUnicodeRanges): New dynamically loaded function.
15830 (w32_initialize): Try to load it.
15831 (x_get_font_repertory): Use it if available.
15832 (w32_encode_char): Add shortcut for unicode output.
15833
15834 * w32fns.c (w32_load_system_font): Default charset to -1.
15835 (x_to_w32_charset): Match all fonts for unicode.
15836 (w32_to_x_charset): New parameter matching. Don't return partial
15837 or wildcard charsets.
15838 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
15839 (w32_codepage_for_font): Return CP_UNICODE for unicode.
15840 (w32_to_x_font): Match charset to real charset.
15841 (enum_font_cb2): Always list unicode versions.
15842
15843 * makefile.w32-in (temacs): Increase EMHEAP.
15844
158452008-02-01 Jason Rumney <jasonr@gnu.org>
15846
15847 * w32term.c (w32_encode_char): New charset parameter.
15848 font_info.encoding becomes encoding_type.
15849 (x_get_font_repertory): New function. Warning: stub only!
15850 (x_new_font): Return quickly if font already set.
15851 (x_new_fontset): fontsetname parameter is Lisp_Object.
15852 Use new fs_query_fontset. Try new_fontset_from_font_name.
15853 Use fontset_name for return value.
15854
15855 * w32term.h: Declare x_get_font_repertory.
15856
15857 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
15858 place of find_charset_in_text. Use encode_coding_object in place
15859 of encode_coding.
15860 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
15861 decode_coding.
15862
15863 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
15864 of x_new_fontset.
15865 (w32_load_system_font): Initialize charset as unicode.
15866 font_info.encoding becomes encoding_type.
15867 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15868 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15869 (syms_of_w32fns): Set get_font_repertory_func.
15870
15871 * w32console.c: Include character.h. Use terminal_encode_buffer
15872 from term.c.
15873 (write_glyphs): Use new version of encode_terminal_code. Use
15874 encode_coding_object in place of encode_coding.
15875
15876 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15877 encoding becomes encoding_type.
15878
15879 * term.c (terminal_encode_buffer): Make externally visible.
15880
15881 * makefile.w32-in: Add character.h dependancies.
15882 (character.o, chartab.o): New targets.
15883
158842008-02-01 Kenichi Handa <handa@m17n.org>
15885
15886 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15887 CODING_ID_EOL_TYPE.
15888
158892008-02-01 Andreas Schwab <schwab@suse.de>
15890
15891 * coding.c (produce_chars): Revert last change.
15892
158932008-02-01 Kenichi Handa <handa@m17n.org>
15894
15895 * charset.h (charset_unicode): Extern it.
15896
15897 * charset.c (string_xstring_p): Check by (C >= 0x100).
15898 (find_charsets_in_text): Change format of the arc CHARSETS. New
15899 arg MULTIBYTE.
15900 (Ffind_charset_region, Ffind_charset_string): Adjust for the
15901 change of find_charsets_in_text.
15902 (Fsplit_char): Fix doc. Never return unknown.
15903
15904 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
15905
15906 * coding.c (Fdefine_coding_system_alias): Update
15907 Vcoding_system_list.
15908
15909 * fontset.c (load_font_get_repertory): Pay attention to the case
15910 that ENCODING of a font is specified by a char-table.
15911
15912 * xterm.c (x_get_font_repertory): Handle the case that the
15913 encoding of font is other than Unicode.
15914
159152008-02-01 Kenichi Handa <handa@m17n.org>
15916
15917 * term.c (encode_terminal_code): Don't handle glyph-table. Check
15918 if a character is encodable by the terminal coding system. If
15919 not, produces proper number of `?'s. Update
15920 terminal_encode_buffer and terminal_encode_buf_size if necessary.
15921 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
15922
159232008-02-01 Kenichi Handa <handa@m17n.org>
15924
15925 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
15926 variables.
15927 (encode_terminal_code): Change argument. Encode multiple
15928 characters at once. Store the result of encoding in
15929 terminal_encode_buffer.
15930 (write_glyphs, insert_glyphs): Adjust for the change of
15931 encode_terminal_code.
15932 (term_init): Initialize terminal_encode_buffer and
15933 terminal_encode_buf_size.
15934
15935 * coding.c (consume_chars): If coding->src_object is nil, don't
15936 check annotation.
15937
159382008-02-01 Kenichi Handa <handa@m17n.org>
15939
15940 * character.c (char_string): Use ASCII_CHAR_P instead of
15941 SINGLE_BYTE_CHAR_P.
15942
159432008-02-01 Kenichi Handa <handa@m17n.org>
15944
15945 * xdisp.c (handle_auto_composed_prop): Check if the last
15946 characters of auto-composed region is newly composed with the
15947 following characters.
15948 (handle_composition_prop): Fix checking of point being inside
15949 composition.
15950
159512008-02-01 Kenichi Handa <handa@m17n.org>
15952
15953 * fns.c (concat): Don't change multibyteness of the result by
15954 concatenating an 8-bit character.
15955
15956 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15957 multibyteness of the result when newelt is an 8-bit character.
15958
159592008-02-01 Dave Love <fx@gnu.org>
15960
15961 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15962 EMACS_INT.
15963
15964 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15965
15966 * xfaces.c (face_numeric_value): Declare dim size_t.
15967 (Finternal_lisp_face_equal_p): Remove unused f.
15968
15969 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15970 (MATRIX_ROW): Remove unused vars.
15971 (draw_glyphs, x_insert_glyphs, fast_find_position)
15972 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15973 byte/char counts.
15974
15975 * regex.c (regex_compile): Remove unused var.
15976
15977 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15978
15979 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15980 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15981
15982 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15983
15984 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15985
15986 * fileio.c (Fwrite_region): Remove unused var.
15987
15988 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15989 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15990
15991 * composite.c (Fremove_list_of_text_properties): Declare.
15992
15993 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15994 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15995 (coding_inherit_eol_type): Remove unused attrs.
15996 (detect_coding): Cast arg of detect_eol.
15997
15998 * charset.c (syms_of_charset): Remove unused var p.
15999 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16000 byte/char counts.
16001
16002 * casetab.c (set_case_table): Remove unused var.
16003
16004 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16005 unused vars.
16006
160072008-02-01 Dave Love <fx@gnu.org>
16008
16009 * xterm.c (x_bitmap_mask): Declare.
16010
160112008-02-01 Dave Love <fx@gnu.org>
16012
16013 * xterm.c (x_term_init): Fix type error.
16014
16015 * lisp.h: Add Funibyte_char_to_multibyte.
16016
16017 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16018 (Fset_coding_system_priority): Doc fix.
16019
16020 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16021
16022 * indent.c (check_composition): Make start and end EMACS_INT.
16023
16024 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16025
16026 * xdisp.c (handle_composition_prop, check_point_in_composition):
16027 Make buffer positions EMACS_INT.
16028
16029 * composite.c (find_composition, run_composition_function)
16030 (update_compositions, Ffind_composition_internal): Make buffer
16031 positions EMACS_INT.
16032
16033 * composite.h (find_composition, update_compositions): Make
16034 position args EMACS_INT.
16035
16036 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16037
16038 * intervals.c (get_property_and_range):
16039 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16040
16041 * unexalpha.c: Don't include varargs.h.
16042
160432008-02-01 Dave Love <fx@gnu.org>
16044
16045 * coding.h (ENCODE_UTF_8): New.
16046
16047 * Makefile.in (gtkutil.o): Depend on coding.h.
16048
16049 * coding.c (Fset_coding_system_priority): Doc fix.
16050
160512008-02-01 Kenichi Handa <handa@m17n.org>
16052
16053 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16054 the case of auto saving.
16055
160562008-02-01 Andreas Schwab <schwab@suse.de>
16057
16058 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16059 `range' from GC.
16060
160612008-02-01 Kenichi Handa <handa@m17n.org>
16062
16063 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16064
160652008-02-01 Kenichi Handa <handa@m17n.org>
16066
16067 * fileio.c (choose_write_coding_system): Return a decided coding system.
16068 (Fwrite_region): Set Vlast_coding_system_used to the return value
16069 of choose_write_coding_system.
16070
160712008-02-01 Kenichi Handa <handa@m17n.org>
16072
16073 * charset.c (Fset_charset_priority): Pay attention to duplicated
16074 arguments.
16075
16076 * coding.c (QCcategory): New variable.
16077 (syms_of_coding): Defsym it. Set all elements of
16078 Vcoding_category_table and their symbol values.
16079 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16080 coding-category-XXX, and coding-category-list.
16081 (Fdefine_coding_system_internal): Add category in the plist.
16082
160832008-02-01 Kenichi Handa <handa@m17n.org>
16084
16085 * callproc.c (Fcall_process): Handle carryover correctly.
16086
16087 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16088 (raw_text_coding_system): Check NILP (coding_system).
16089 (coding_inherit_eol_type): Check NILP (coding_system) and
16090 NILP (parent).
16091 (consume_chars): Fix for the case of raw-text.
16092
16093 * process.c (read_process_output): Handle carryover correctly.
16094
160952008-02-01 Dave Love <fx@gnu.org>
16096
16097 * regex.c (re_search_2): Fix last change.
16098
160992008-02-01 Kenichi Handa <handa@m17n.org>
16100
16101 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16102 target_multibyte. Even in a unibyte case, return a converted
16103 multibyte char.
16104 (GET_CHAR_AFTER): New macro.
16105 (PATFETCH): Translate via multibyte char.
16106 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16107 (SETUP_MULTIBYTE_RANGE): New macro.
16108 (regex_compile): Setup compiled code so that its multibyteness
16109 matches that of a target. Fix the handling of "[X-YZ]" using
16110 SETUP_MULTIBYTE_RANGE.
16111 (analyse_first) <charset>: For filling fastmap for all multibyte
16112 characters, don't check by BASE_LEADING_CODE_P.
16113 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16114 the same as RE_MULTIBYTE_P (bufp) now.
16115 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16116 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16117 (TRANSLATE_VIA_MULTIBYTE): New macro.
16118 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16119 It is the same as RE_MULTIBYTE_P (bufp) now.
16120 <exactn>: Translate via multibyte.
16121 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16122 translate it.
16123 <charset, charset_not>: Fetch a character by
16124 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16125 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16126 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16127 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16128 by GET_CHAR_AFTER.
16129 (bcmp_translate): Likewise.
16130
16131 * search.c (compile_pattern): Check the member target_multibyte,
16132 not the member multibyte of buf.
16133
16134 * lread.c (read1): While reading a string, set force_singlebyte
16135 and force_multibyte correctly.
16136
16137 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16138 up of unibyte_to_multibyte_table.
16139
161402008-02-01 Kenichi Handa <handa@m17n.org>
16141
16142 * coding.c (setup_coding_system): If coding has
16143 post-read-conversion or pre-write-conversion, set
16144 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16145 respectively.
16146 (decode_coding_gap): Run post-read-conversion if any.
16147
16148 * fileio.c (Finsert_file_contents): Even if we read into a
16149 unibyte buffer, check if we must decode the result or not.
16150
161512008-02-01 Kenichi Handa <handa@m17n.org>
16152
16153 * coding.c (make_conversion_work_buffer): Change the work buffer
16154 name to the same one as that of Emacs 21.
16155
161562008-02-01 Kenichi Handa <handa@m17n.org>
16157
16158 * coding.h (make_conversion_work_buffer): Adjust prototype.
16159 (code_conversion_restore): Don't extern it.
16160
16161 * coding.c (detected_mask): Delete unused variable.
16162 (decode_coding_iso_2022): Pay attention to the byte sequence of
16163 CTEXT extended segment, and retain those bytes as is.
16164 (decode_coding_ccl): Delete unused variable `valids'.
16165 (setup_coding_system): Delete unused variable `category'.
16166 (consume_chars): Delete unused variable `category'. Make it work
16167 for non-multibyte case.
16168 (make_conversion_work_buffer): Change argument.
16169 (saved_coding): Delete unused variable.
16170 (code_conversion_restore): Don't check saved_coding->destination.
16171 (code_conversion_save): New function.
16172 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16173 instead of record_unwind_protect.
16174 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16175 (detect_coding_system): Delete unused variable `mask'.
16176 (Fdefine_coding_system_internal): Delete unused variable id.
16177
16178 * fileio.c (kill_workbuf_unwind): New function.
16179 (Finsert_file_contents): On replacing, call
16180 make_conversion_work_buffer with correct args, and call
16181 record_unwind_protect with the first arg kill_workbuf_unwind.
16182
16183 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16184
161852008-02-01 Kenichi Handa <handa@m17n.org>
16186
16187 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16188 (fontset_add): Fix for the case that TO is less than TO1.
16189 (Ffontset_info): Don't use fallback fontset on checking the
16190 default fontset.
16191 (dump_fontset): New function for debugging.
16192
16193 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16194 coding_type is Qcharset.
16195
161962008-02-01 Kenichi Handa <handa@m17n.org>
16197
16198 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16199 (map_char_table): Don't inherit the value from the parent on
16200 initializing VAL. Adjust for the above change.
16201
162022008-02-01 Kenichi Handa <handa@m17n.org>
16203
16204 * coding.c (Qsignature, Qendian): Delete these variables.
16205 (syms_of_coding): Don't initialize them.
16206 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16207 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16208 detect_info->found.
16209 (decode_coding_utf_16): Don't detect BOM here.
16210 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16211 is NOT utf_16_without_bom.
16212 (setup_coding_system): For a coding system of type utf-16, check
16213 if the attribute :endian is Qbig or not (not nil or not), and set
16214 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16215 (detect_coding): If coding type is utf-16 and BOM detection is
16216 required, detect it.
16217 (Fdefine_coding_system_internal): For a coding system of type
16218 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16219
162202008-02-01 Kenichi Handa <handa@m17n.org>
16221
16222 * coding.c (coding_set_source): Fix for the case that the current
16223 buffer is different from coding->src_object.
16224 (decode_coding_object): Don't use the conversion work buffer if
16225 DST_OBJECT is a buffer.
16226
162272008-02-01 Dave Love <fx@gnu.org>
16228
16229 * lread.c (read_emacs_mule_char) [len==2]: Index
16230 emacs_mule_charset correctly.
16231
162322008-02-01 Dave Love <fx@gnu.org>
16233
16234 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16235 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16236 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16237 treated specially.)
16238 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16239 (detected_mask): Remove Big5 bits.
16240
162412008-02-01 Kenichi Handa <handa@m17n.org>
16242
16243 The following changes are to make the font rescaling facility
16244 compatible with Emacs 21.
16245
16246 * xfaces.c (Vface_font_rescale_alist): Rename from
16247 Vface_resizing_fonts.
16248 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16249 (font_rescale_ratio): Rename from font_resizing_ratio.
16250 (split_font_name): Set font->rescale_ratio.
16251 (better_font_p): Pay attention to font->rescale_ratio.
16252 (build_scalable_font_name): Likewise. Change RESX, and RESY
16253 fields.
16254 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16255
162562008-02-01 Kenichi Handa <handa@m17n.org>
16257
16258 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16259 (Qutf_16_le): Remove these variables.
16260 (syms_of_coding): Don't DEFSYM them.
16261 (decode_coding_utf_16): Fix handling of BOM.
16262 (encode_coding_utf_16): Fix handling of BOM.
16263
162642008-02-01 Kenichi Handa <handa@m17n.org>
16265
16266 * fileio.c (Finsert_file_contents): On replacing, before decoding
16267 the file into the work buffer, set point of the work buffer to the end.
16268
162692008-02-01 Dave Love <fx@gnu.org>
16270
16271 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16272
162732008-02-01 Dave Love <fx@gnu.org>
16274
16275 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16276 and fix C types.
16277
162782008-02-01 Kenichi Handa <handa@m17n.org>
16279
16280 * xdisp.c (SKIP_GLYPHS): New macro.
16281 (set_cursor_from_row): Pay attention to string display properties.
16282
16283 * category.c (copy_category_entry): Fix for the case that RANGE
16284 is an integer.
16285
16286 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16287
16288 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16289
162902008-02-01 Kenichi Handa <handa@m17n.org>
16291
16292 * charset.c (Fcharset_id_internal): New function.
16293 (syms_of_charset): Defsubr it.
16294
16295 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16296 with the last arg charset_list acquired from coding.
16297 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16298 the attribute coding_attr_ccl_valids.
16299
16300 * coding.h (enum define_coding_ccl_arg_index): Set the first
16301 member coding_arg_ccl_decoder to coding_arg_max.
16302
16303 * ccl.h (ccl_driver): Adjust prototype.
16304
16305 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16306 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 16307 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
16308 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16309 last arg Qnil.
16310
163112008-02-01 Kenichi Handa <handa@m17n.org>
16312
16313 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16314 call encode_char.
16315
16316 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16317
163182008-02-01 Dave Love <fx@gnu.org>
16319
16320 * composite.c (syms_of_composite): Make composition_hash_table weak.
16321
163222008-02-01 Kenichi Handa <handa@m17n.org>
16323
16324 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16325 (font_name_registry): Don't extern them.
16326 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16327
16328 * fontset.h (Qfontset): Don't extern it.
16329 (new_fontset_from_font_name): Extern it.
16330
16331 * fontset.c: Give 8 extra slots to fontset objects.
16332 (Qfontset_info): New variable.
16333 (syms_of_fontset): Defsym it.
16334 (FONTSET_FALLBACK): New macro.
16335 (fontset_face): Try also the default fontset.
16336 (make_fontset): Realize a fallback fontset from the default fontset.
16337 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16338 using split_font_name_into_vector and build_font_name_from_vector.
16339 (Fset_fontset_font): Access the elements of font_spec by enum
16340 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16341 name by using split_font_name_into_vector.
16342 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16343 generate a proper font name from the fontset name. Update
16344 Vfontset_alias_alist.
16345 (n_auto_fontsets): New variable.
16346 (new_fontset_from_font_name): New function.
16347 (Ffont_info): Store the information about fonts generated from the
16348 default fontset in the first extra slot of the returned char-table.
16349
16350 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16351 (font_name_registry): Delete function.
16352 (split_font_name_into_vector): New function.
16353 (build_font_name_from_vector): New function.
16354 (font_list): The argument REGISTRY is now a list of registry names.
16355 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16356 specifies an explicit font name, return the name as is. Make a
16357 list of registy names.
16358
16359 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16360 of x_new_fontset.
16361 (Fx_create_frame): Don't call x_new_fontset here. Just use
16362 x_list_fonts to check the existence of fonts.
16363
16364 * xterm.h (x_new_fontset): Adjust prototype.
16365
16366 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16367 string. Use new_fontset_from_font_name to create a fontset from a
16368 font name.
16369
163702008-02-01 Kenichi Handa <handa@m17n.org>
16371
16372 * syntax.c (Vfind_word_boundary_function_table): New name for
16373 Vnext_word_boundary_function_table.
16374 (find-word-boundary-function-table): New name for
16375 next-word-boundary-function-table.
16376
163772008-02-01 Dave Love <fx@gnu.org>
16378
16379 * Makefile.in: Fix some dependencies.
16380
16381 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16382 set it to nil before returning.
16383
16384 * composite.c (update_compositions): Fix type error.
16385
16386 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16387
163882008-02-01 Kenichi Handa <handa@m17n.org>
16389
16390 * xterm.c (x_new_font): Optimize for the case that the font is
16391 already set for the frame.
16392
163932008-02-01 Kenichi Handa <handa@m17n.org>
16394
16395 * chartab.c (char_table_ascii): Check if the char table contents
16396 is sub-char-table or not.
16397 (char_table_set, char_table_set_range): Fix argument to
16398 char_table_ascii.
16399
16400 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16401 (detect_coding_utf_8, detect_coding_utf_16)
16402 (detect_coding_emacs_mule, detect_coding_iso_2022)
16403 (detect_coding_sjis, detect_coding_big5)
16404 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16405 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16406 sequence is valid in this coding system. Change callers.
16407 (MAX_ANNOTATION_LENGTH): New macro.
16408 (ADD_ANNOTATION_DATA): New macro.
16409 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16410 ADD_ANNOTATION_DATA. Change the format of annotation data.
16411 (ADD_CHARSET_DATA): New macro.
16412 (emacs_mule_char): New argument ID. Change callers.
16413 (decode_coding_emacs_mule, decode_coding_iso_2022)
16414 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16415 Produce charset annotation data in coding->charbuf.
16416 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16417 to charset annotation data in coding->charbuf.
16418 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16419 coding->common_flags if the coding system is iso-2022 based and
16420 uses designation.
16421 (produce_composition): Adjust for the new annotation data format.
16422 (produce_charset): New function.
16423 (produce_annotation): Handle charset annotation.
16424 (handle_composition_annotation, handle_charset_annotation): New
16425 functions.
16426 (consume_chars): Handle charset annotation. Utilize the above two
16427 functions.
16428 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16429 buffer, get the deleted text as a string and set
16430 coding->src_object to that string.
16431 (detect_coding, detect_coding_system): Use the new struct
16432 coding_detection_info.
16433
16434 * coding.h (struct coding_detection_info): New structure.
16435 (struct coding_system): Adjust prototype of the member `detector'.
16436 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16437
164382008-02-01 Kenichi Handa <handa@m17n.org>
16439
16440 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16441
164422008-02-01 Dave Love <fx@gnu.org>
16443
16444 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16445 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16446 to new local and nullify apropos_accumulate before returning.
16447 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16448
164492008-02-01 Kenichi Handa <handa@m17n.org>
16450
16451 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16452 correctly.
e3eea1fc 16453
aac0c6e3
MR
164542008-02-01 Dave Love <fx@gnu.org>
16455
16456 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16457
164582008-02-01 Kenichi Handa <handa@m17n.org>
16459
16460 The following changes are to make character composition happen
16461 automatically on displaying.
16462
16463 * Makefile.in (lisp, shortlisp): Add composite.elc.
16464
16465 * composite.h (Qauto_composed, Vauto_composition_function)
16466 (Qauto_composition_function): Extern them.
16467
16468 * composite.c (Vcomposition_function_table)
16469 (Qcomposition_function_table): Delete variables.
16470 (Qauto_composed, Vauto_composition_function)
16471 (Qauto_composition_function): New variables.
16472 (run_composition_function): Don't call
16473 compose-chars-after-function.
16474 (update_compositions): Clear `auto-composed' text property.
16475 (compose_chars_in_text): Delete this function.
16476 (syms_of_composite): Staticpro Qauto_composed and
16477 Qauto_composition_function. Declare Vauto_composition_function as
16478 a Lisp variable.
16479
16480 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16481
16482 * xdisp.c (it_props): Add an entry for Qauto_composed.
16483 (handle_auto_composed_prop): New function.
16484
16485 * xselect.c (selection_data_to_lisp_data): Don't call
16486 compose_chars_in_text.
16487
164882008-02-01 Dave Love <fx@gnu.org>
16489
16490 * keyboard.c (read_char): Modify checking around use of
16491 Vkeyboard_translate_table.
16492
16493 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16494 and fix C types.
16495
164962008-02-01 Kenichi Handa <handa@m17n.org>
16497
16498 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16499 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16500 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16501 the case that the last byte is '\r' correctly.
16502 (decode_coding): Flush out the unprocessed data correctly.
16503 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16504
165052008-02-01 Dave Love <fx@gnu.org>
16506
16507 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16508 Add XK_ISO... case.
16509 (xaw_scroll_callback): Revert last change.
16510
165112008-02-01 Kenichi Handa <handa@m17n.org>
16512
16513 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16514
165152008-02-01 Kenichi Handa <handa@m17n.org>
16516
16517 * xfaces.c (Vface_resizing_fonts): New variable.
16518 (struct font_name): New member `resizing_ratio'.
16519 (font_resizing_ratio): New function.
16520 (split_font_name): Set font->resizing_ratio.
16521 (better_font_p): Pay attention to font->resizing_ratio.
16522 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16523 RESX, and RESY fields.
16524 (try_alternative_families): Try scalable fonts if
16525 Vscalable_fonts_allowed is not Qt.
16526 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16527
165282008-02-01 Dave Love <fx@gnu.org>
16529
16530 * xterm.c (xaw_scroll_callback): Cast correctly.
16531
165322008-02-01 Dave Love <fx@gnu.org>
16533
16534 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16535 (lispy_kana_keys): Comment out.
16536 (make_lispy_event) [XK_kana_A]: Comment out.
16537
16538 * xterm.c (xaw_scroll_callback): Cast call_data.
16539 (XTread_socket): Deal with ASCII keysyms.
16540 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16541
165422008-02-01 Dave Love <fx@gnu.org>
16543
16544 * xterm.c (Vx_keysym_table): New.
16545 (syms_of_xterm): Initialize it.
16546 (XTread_socket): Use it.
16547 From head: Eliminate incorrect optimization that tried to avoid
16548 decoding the output of X*LookupString.
16549 (x_get_font_repertory): Delete charset declaration.
16550
165512008-02-01 Kenichi Handa <handa@m17n.org>
16552
16553 * coding.c (detect_coding_charset): If only ASCII bytes are found,
16554 return 0.
16555 (Fdefine_coding_system_internal): Setup
16556 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
16557
165582008-02-01 Dave Love <fx@gnu.org>
16559
16560 * coding.c (Fcheck_coding_system): Doc fix.
16561
16562 * editfns.c (Finsert_byte): Return a proper value.
16563
165642008-02-01 Kenichi Handa <handa@m17n.org>
16565
16566 * coding.c (decode_coding): Fix args to translate_chars. Pay
16567 attention to Vstandard_translation_table_for_decode.
16568 (encode_coding): Fix args to translate_chars. Pay attention to
16569 Vstandard_translation_table_for_encode.
16570
16571 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
16572 SINGLE_BYTE_CHAR_P.
16573
16574 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
16575 not by SINGLE_BYTE_CHAR_P.
16576
16577 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
16578 SINGLE_BYTE_CHAR_P.
16579
16580 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
16581 SINGLE_BYTE_CHAR_P.
16582
16583 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
16584 by SINGLE_BYTE_CHAR_P.
16585
16586 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
16587 SINGLE_BYTE_CHAR_P.
16588
165892008-02-01 Dave Love <fx@gnu.org>
16590
16591 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
16592
165932008-02-01 Dave Love <fx@gnu.org>
16594
16595 * fns.c (Flanginfo): Fix typo.
16596
16597 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
16598
165992008-02-01 Kenichi Handa <handa@m17n.org>
16600
16601 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
16602 (detect_coding_emacs_mule, detect_coding_iso_2022)
16603 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
16604 incomplete byte sequence. Don't update *mask when correctly detected.
16605 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
16606 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
16607 (detect_coding, detect_coding_system): Adjust for the changes above.
16608
166092008-02-01 Kenichi Handa <handa@m17n.org>
16610
16611 * character.c (char_string): Rename from
16612 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
16613 (string_char): Rename from string_char.
16614
16615 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
16616 if C is greater than MAX_3_BYTE_CHAR.
16617 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
16618 string_char instead of string_char_with_unification.
16619
166202008-02-01 Dave Love <fx@gnu.org>
16621
16622 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
16623
166242008-02-01 Kenichi Handa <handa@m17n.org>
16625
16626 * keymap.c (push_key_description): Pay attention to force_multibyte.
16627
16628 * regex.c (re_search_2): Fix for the case of unibyte buffer.
16629
166302008-02-01 Dave Love <fx@gnu.org>
16631
16632 * charset.c (define_charset_internal): Rename `supprementary'.
16633
16634 * Makefile.in (lisp, shortlisp): Remove latin-N.
16635
166362008-02-01 Dave Love <fx@gnu.org>
16637
16638 * xfns.c (x_window, x_window): Use use_xim.
16639
16640 * xterm.c (use_xim): Initialize.
16641 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
16642 (x_term_init): Maybe set use_xim.
16643
16644 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
16645
166462008-02-01 Kenichi Handa <handa@m17n.org>
16647
16648 * search.c (search_buffer): Fix case-fold-search of multibyte
16649 characters.
16650 (boyer_moore): Rename the last argument to char_high_bits.
16651
166522008-02-01 Kenichi Handa <handa@m17n.org>
16653
16654 * xdisp.c (display_string): Fix for the case of zero width glyph.
16655
16656 * xfns.c (x_set_font): Change the error message of the case that
16657 x_new_fontset returns Qt.
16658
16659 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
16660 (Finternal_set_lisp_face_attribute): Use signal_error for the
16661 error of invalid fontset.
16662
16663 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
16664 fontset, return Qt.
16665
166662008-02-01 Dave Love <fx@gnu.org>
16667
16668 * unexelf.c (unexec): Make .got handling not SGI-specific.
16669
16670 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
16671
16672 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
16673
16674 * keyboard.c (read_key_sequence): Fix type error.
16675
16676 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
16677 type error.
16678
16679 * fontset.c (fontset_add): Return Lisp_Object.
16680
166812008-02-01 Dave Love <fx@gnu.org>
16682
16683 * charset.h (charset_ordered_list_tick): Declare extern.
16684
166852008-02-01 Kenichi Handa <handa@m17n.org>
16686
16687 The following changes (and some of 2008-02-01 changes of mine) are
16688 for handling syntax, category, and case conversion for unibyte
16689 characters by converting them to multibyte on the fly. With these
16690 changes, we don't have to setup syntax and case tables for unibyte
16691 characters in each language environment.
16692
16693 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
16694 multibyte if necessary.
16695
16696 * bytecode.c (Fbyte_code): Likewise.
16697
16698 * character.h (LEADING_CODE_LATIN_1_MIN)
16699 (LEADING_CODE_LATIN_1_MAX): New macros.
16700 (unibyte_to_multibyte_table): Extern it.
16701 (unibyte_char_to_multibyte): New macro.
16702 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
16703 (CHAR_LEADING_CODE): New macro.
16704 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
16705
16706 * character.c (unibyte_to_multibyte_table): New variable.
16707 (unibyte_char_to_multibyte): Move to character.h and define as macro.
16708 (multibyte_char_to_unibyte): If C is an eight-bit character,
16709 convert it to the corresponding byte value.
16710
16711 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
16712 not 1, signals an error. Update the elements of
16713 unibyte_to_multibyte_table.
16714 (init_charset_once): Initialize unibyte_to_multibyte_table.
16715 (syms_of_charset): Define the charset `iso-8859-1'.
16716
16717 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
16718 as is without converting it to unibyte. In a unibyte buffer,
16719 convert C to multibyte before checking the syntax.
16720
16721 * lisp.h (unibyte_char_to_multibyte): Delete extern.
16722
16723 * minibuf.c (Fminibuffer_complete_word): Use the macro
16724 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
16725
16726 * regex.h (struct re_pattern_buffer): New member target_multibyte.
16727
16728 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
16729 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
16730 that is zero, convert an eight-bit char to multibyte.
16731 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
16732 non-emacs case.
16733 (PATFETCH): Convert an eight-bit char to multibyte.
16734 (HANDLE_UNIBYTE_RANGE): New macro.
16735 (regex_compile): Setup the compiled pattern for multibyte chars
16736 even if the given regex string is unibyte. Use PATFETCH_RAW
16737 instead of PATFETCH in many places. To handle `charset'
16738 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
16739 only for ASCII chars.
16740 (analyse_first) <exactn>: Simplify because the compiled pattern
16741 is multibyte.
16742 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
16743 <charset>: Use CHAR_LEADING_CODE to get leading codes.
16744 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
16745 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
16746 multibyte always 1.
16747 (re_search_2): In emacs, set the locale variable multibyte to 1,
16748 otherwise to 0. New local variable target_multibyte. Check it
16749 to decide the multibyteness of STR1 and STR2. If
16750 target_multibyte is zero, convert unibyte chars to multibyte
16751 before translating and checking fastmap.
16752 (TARGET_CHAR_AND_LENGTH): New macro.
16753 (re_match_2_internal): In emacs, set the locale variable multibyte
16754 to 1, otherwise to 0. New local variable target_multibyte. Check
16755 it to decide the multibyteness of STR1 and STR2. Use
16756 TARGET_CHAR_AND_LENGTH to fetch a character from D.
16757 <charset, charset_not>: If multibyte is nonzero, check fastmap
16758 only for ASCII chars. Call bcmp_translate with
16759 target_multibyte, not with multibyte.
16760 <begline>: Declare the local variable C as `unsigned'.
16761 (bcmp_translate): Change the last arg name to target_multibyte.
16762
16763 * search.c (compile_pattern_1): Don't adjust the multibyteness of
16764 the regexp pattern and the matching target. Set cp->buf.multibyte
16765 to the multibyteness of the regexp pattern. Set
16766 cp->but.target_multibyte to the multibyteness of the matching target.
16767 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
16768 FETCH_STRING_CHAR_ADVANCE.
16769 (Freplace_match): Convert unibyte chars to multibyte.
16770
16771 * syntax.c (char_quoted, back_comment, scan_words)
16772 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
16773 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
16774 unibyte chars to multibyte.
16775 (skip_chars): Delete the arg syntaxp, and move the code for
16776 handling syntaxes to skip_syntaxes. Change callers.
16777 Fix the case that the multibyteness of STRING and the current
16778 buffer doesn't match.
16779 (skip_syntaxes): New function.
16780 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
16781 SINGLE_BYTE_CHAR_P.
16782
167832008-02-01 Kenichi Handa <handa@m17n.org>
16784
16785 * xfaces.c (QCfontset): New variable.
16786 (LFACE_FONTSET): New macro.
16787 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
16788 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
16789 (Finternal_set_lisp_face_attribute)
16790 (Finternal_get_lisp_face_attribute): Handle QCfontset.
16791 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
16792 check also LFACE_FONTSET_INDEX.
16793 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
16794 attrs[LFACE_FONT_INDEX].
16795 (syms_of_xfaces): Intern and staticpro QCfontset.
16796
16797 * dispextern.h (enum lface_attribute_index): New member
16798 LFACE_FONTSET_INDEX.
16799
16800 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
16801
168022008-02-01 Kenichi Handa <handa@m17n.org>
16803
16804 * coding.c (coding_set_destination): Fix coding->destination for
16805 the case converting a region.
16806 (encode_coding_utf_8): Encode eight-bit chars as single byte.
16807 (encode_coding_object): Fix coding->dst_pos and
16808 coding->dst_pos_byte for the case converting a region.
16809
16810 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
16811
16812 * character.h (BYTE8_STRING): New macro.
16813
16814 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
16815
168162008-02-01 Kenichi Handa <handa@m17n.org>
16817
16818 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
16819 characters by octal form.
16820
16821 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16822
16823 * buffer.h (_fetch_multibyte_char_len): Delete extern.
16824 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
16825 _fetch_multibyte_char_len.
16826 (FETCH_CHAR_AS_MULTIBYTE): New macro.
16827
16828 * casetab.c (set_canon, set_identity, shuffle): Simplify.
16829
16830 * casefiddle.c (casify_object): Simplify. Handle the case that
16831 the case conversion change the byte length.
16832 (casify_region): Likewise.
16833
16834 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
16835
16836 * character.c (_fetch_multibyte_char_len): Delete this variable.
16837 (syms_of_character): Setup Vprintable_chars.
16838
16839 * editfns.c (Fchar_equal): Fix for the unibyte case.
16840 (Finsert_byte): New function.
16841 (syms_of_editfns): Defsubr it.
16842
16843 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
16844 of direct code 0x3ffff.
16845
16846 * search.c (Freplace_match): Fix for the unibyte case.
16847
168482008-02-01 Kenichi Handa <handa@m17n.org>
16849
16850 * lread.c (safe_to_load_p): Fix the logic.
16851
16852 * syntax.c (scan_words): Don't treat characters belonging to
16853 different scripts as constituting a word.
16854
16855 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16856
16857 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
16858
16859 * emacs.c (main): In the case of --unibyte, instead of aborting on
16860 finding non-empty buffer, make it unibyte.
16861
168622008-02-01 Kenichi Handa <handa@m17n.org>
16863
16864 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16865 to create a fontset.
16866
168672008-02-01 Dave Love <fx@gnu.org>
16868
16869 * character.c (Funibyte_char_to_multibyte): Doc fix.
16870
16871 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16872
168732008-02-01 Kenichi Handa <handa@m17n.org>
16874
16875 * fontset.c (fontset_add): Make the type `int'.
16876 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16877
16878 * character.c (unibyte_char_to_multibyte)
16879 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16880 charset_unibyte, not charset_primary.
16881
16882 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16883
16884 * charset.c (charset_unibyte): Rename from charset_primary.
16885 (Funibyte_charset): Rename from Fprimary_charset.
16886 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16887 (syms_of_charset): Adjust for the above changes.
16888
16889 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16890 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16891 it->multibyte_p is zero.
16892
16893 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16894 Delete extern.
16895
168962008-02-01 Kenichi Handa <handa@m17n.org>
16897
16898 * coding.c (Fdefine_coding_system_internal): Fix category setting
16899 for a coding system of type iso-2022.
16900
169012008-02-01 Kenichi Handa <handa@m17n.org>
16902
16903 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
16904
169052008-02-01 Kenichi Handa <handa@m17n.org>
16906
16907 * syntax.c (Vnext_word_boundary_function_table): New variable.
16908 (next-word-boundary-function-table): Declare it as a Lisp variable
16909 in syms_of_syntax.
16910 (scan_words): Call functions in Vnext_word_boundary_function_table
16911 if any.
16912
16913 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
16914
16915 * fontset.c (fs_load_font): If fontp->charset is not negative,
16916 return fontp without setting its members.
16917
169182008-02-01 Dave Love <fx@gnu.org>
16919
16920 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
16921
16922 * m/sparc.h (HAVE_ALLOCA): Delete.
16923
16924 * s/irix6-5.h: Don't include strings.h.
16925 (bcopy, bzero, bcmp): Don't undef.
16926
16927 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
16928
16929 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
16930 (TIOCSIGSEND): Don't test IRIX6.
16931 (bcopy, bzero, bcmp): Define conditionally.
16932
169332008-02-01 Kenichi Handa <handa@m17n.org>
16934
16935 * buffer.c (Qas, Qmake, Qto): New variables.
16936 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
16937 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
16938
16939 * callproc.c (Fcall_process): Don't call insert_1_both directly if
16940 we are inserting a process output into a multibyte buffer.
16941
16942 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
16943 multibyte_char_to_unibyte.
16944
16945 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
16946 by the primary charset, make it eight-bit char.
16947 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
16948
16949 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
16950 (charset_8_bit__control, charset_8_bit_graphic)
16951 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
16952 (define_charset_internal): New function.
16953 (syms_of_charset): Call define_charset_internal for pre-defined
16954 charsets.
16955
16956 * charset.h (charset_8_bit): Extern it.
16957
16958 * coding.c (make_conversion_work_buffer): Adjust for the change
16959 of Fset_buffer_multibyte.
16960 (encode_coding_raw_text): Increment p0 in the loop.
16961
16962 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16963
16964 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16965 for the change of Fset_buffer_multibyte.
16966
16967 * fns.c (Fstring_to_multibyte): New function.
16968 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16969
169702008-02-01 Dave Love <fx@gnu.org>
16971
16972 * xfns.c (x_put_x_image): Declare args.
16973
16974 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16975 (try_font_list): Declare an arg.
16976
16977 * xdisp.c (message2_nolog, set_message): Declare an arg.
16978
16979 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16980
16981 * syntax.c (scan_sexps_forward): Declare an arg.
16982
16983 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16984 Declare an arg.
16985
16986 * lisp.h (Fnew_fontset): Declare.
16987
16988 * keymap.c (push_key_description): Call CHARACTERP correctly.
16989
16990 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16991 (face_for_char): Delete unused vars.
16992 (Fset_fontset_font): Doc fix. Delete unused vars.
16993
16994 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16995
16996 * composite.c (update_compositions): Declare arg.
16997
16998 * cm.c (calccost, cmgoto): Declare args.
16999
17000 * charset.c: Remove `emacs' conditional. Doc fixes.
17001 (map_char_table_for_charset): Declare.
17002
17003 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17004
17005 * ccl.c: Remove `emacs' conditional.
17006
170072008-02-01 Kenichi Handa <handa@m17n.org>
17008
17009 The following changes are to allow specifying multiple font
17010 patterns for a character range (specified by script or charset).
17011
17012 * Makefile.in (abbrev.o): Depend on syntax.h.
17013 (xfaces.o): Depend on charset.h.
17014
17015 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17016 SINGLE_BYTE_CHAR_P.
17017
17018 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17019
17020 * character.h (Vchar_script_table): Extern it.
17021
17022 * character.c (Vscript_alist): Delete.
17023 (Vchar_script_table, Qchar_script_table): New variable.
17024 (syms_of_character): Declare Vchar_script_table as a lisp variable
17025 and initialize it.
17026
17027 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17028 have property char-table-extra-slots, make no extra slot.
17029
17030 * dispextern.h (struct face): Delete member `charset'.
17031 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17032 SINGLE_BYTE_CHAR_P.
17033 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17034 Add prototypes.
17035 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17036 (generate_ascii_font_name): Rename from generate_ascii_font.
17037
17038 * fontset.h (get_font_repertory_func): New prototype.
17039 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17040 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17041
17042 * fontset.c (Qprepend, Qappend): New variables.
17043 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17044 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17045 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17046 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17047 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17048 (load_font_get_repertory): New functions.
17049 (fontset_set): Delete.
17050 (fontset_face): New arg FACE. Return face ID, not face.
17051 Complete re-write to handle new fontset structure. Change caller.
17052 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17053 (face_for_char): Don't call lookup_face.
17054 (make_fontset_for_ascii_face): New arg FACE.
17055 (fs_load_font): New arg CHARSET_ID. Don't check
17056 Vfont_encoding_alist here.
17057 (find_font_encoding): New function.
17058 (list_fontsets): Use STRINGP, not ! NILP.
17059 (accumulate_script_ranges): New function.
17060 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17061 re-written to handle new fontset structure.
17062 (Ffontset_font): Return a copy of element.
17063 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17064 docstring of font-encoding-alist.
17065
17066 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17067 (Fset_fotset_font): Fix arguments to 5.
17068
17069 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17070
17071 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17072 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17073 (highlight_trailing_whitespace): Adjust for the change of
17074 lookup_named_face.
17075
17076 * xfaces.c: Include charset.h.
17077 (load_face_font): Delete argument C. Change caller.
17078 (generate_ascii_font_name): Rename from generate_ascii_font.
17079 (font_name_registry): New function.
17080 (cache_face): Store ascii faces before non-ascii faces in buckets.
17081 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17082 Lookup only ascii faces.
17083 (lookup_non_ascii_face): New function.
17084 (lookup_named_face): Delete argument C. Change caller.
17085 (lookup_derived_face): Delete argument C. Change caller.
17086 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17087 a string, just call font_list with it.
17088 (choose_face_font): Delete arguments FACE and C. New arg
17089 FONT_SPEC. Change caller.
17090 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17091 Change caller.
17092 (realize_non_ascii_face): New function.
17093 (realize_x_face): Call load_face_font here.
17094 (realize_tty_face): Delete argument C. Change caller.
17095 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17096 get a face ID.
17097 (dump_realized_face): Don't print charset of FACE.
17098
17099 * xfns.c (x_set_font): Always call x_new_fontset and
17100 store_frame_parameter.
17101 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17102 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17103
17104 * xterm.h (x_get_font_repertory): Extern it.
17105
17106 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17107 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17108 it->multibyte_p is zero.
17109 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17110 (x_new_fontset): If FONTSETNAME doesn't match any existing
17111 fontsets, create a new one.
17112 (x_get_font_repertory): New function.
17113
171142008-02-01 Kenichi Handa <handa@m17n.org>
17115
17116 * coding.c (Ffind_coding_systems_region_internal): Detect an
17117 ASCII only string correctly.
17118
17119 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17120 version is 0.
17121
171222008-02-01 Kenichi Handa <handa@m17n.org>
17123
17124 * lread.c: Include "coding.h".
17125 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17126 (load_each_byte, unread_char): New variables.
17127 (readchar_backlog): Delete.
17128 (readchar): Return a character unless load_each_byte is nonzero.
17129 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17130 cons. If unread_char is not -1, simply return it.
17131 (unreadchar): Handle the case that readcharfun is
17132 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17133 (read_multibyte): Delete.
17134 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17135 (read_emacs_mule_char): New functions.
17136 (Fload): Even if the file doesn't have the extension ".elc", if
17137 safe_to_load_p returns a positive version number, assume that the
17138 file contains bytecompiled code. If the version is less than 22,
17139 load the file while decoding multibyte sequences by emacs-mule.
17140 (readevalloop): Don't use readchar_backlog.
17141 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17142 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17143 (read_escape): Delete the arg BYTEREP.
17144 (read1): Set load_each_byte to 1 temporarily while handling
17145 #@NUMBER. Don't call read_multibyte.
17146 (read_vector): Call Fread with a cons. If readcharfun is
17147 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17148 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17149 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17150 and Qload_force_doc_strings.
17151
171522008-02-01 Kenichi Handa <handa@m17n.org>
17153
17154 * xdisp.c (face_before_or_after_it_pos): Call
17155 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17156
171572008-02-01 Kenichi Handa <handa@m17n.org>
17158
17159 * character.h (TRAILING_CODE_P): New macro.
17160 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17161 (string_char_with_unification): Fix prototype.
17162 (Vscript_alist): Extern it.
17163
17164 * character.c (Vscript_alist): New variable.
17165 (string_char_with_unification, str_as_unibyte)
17166 (string_escape_byte8): Add `const' to local variables.
17167 (syms_of_character): Declare script-alist as a Lisp variable.
17168
17169 * charset.h (Vcharset_ordered_list): Extern it.
17170 (charset_ordered_list_tick): Extern it.
17171 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17172 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17173 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17174 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17175 (Funify_charset): Adjust for the change of Funify_charset.
17176
17177 * charset.c (charset_ordered_list_tick): New variable.
17178 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17179 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17180 deunify intead of unify a charset.
17181 (string_xstring_p): Add `const' to local variables.
17182 (find_charsets_in_text): Add `const' to arguments and local variables.
17183 (encode_char): Adjust for the change of Funify_charset. Fix
17184 detecting of invalid code.
17185 (Fset_charset_priority): Increment charset_ordered_list_tick.
17186 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17187 and TO_CODE.
17188
17189 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17190 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17191 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17192 (decode_coding_ccl, consume_chars)
17193 (Ffind_coding_systems_region_internal)
17194 (Fcheck_coding_systems_region): Add `const' to local variables.
17195
17196 * print.c (print_object): Use octal form for printing the
17197 contents of a bool vector.
17198
171992008-02-01 Dave Love <fx@gnu.org>
17200
17201 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17202 <version == 20>: Refuse to load.
17203
172042008-02-01 Dave Love <fx@gnu.org>
17205
17206 * fns.c: Move coding.h.
17207 (Qcodeset, Qdays, Qmonths): New.
17208 (concat): Use CHARACTERP instead of INTEGERP.
17209 (Flocale_codeset): Delete.
17210 (Flanginfo): New function.
17211 (syms_of_fns): Change accordingly.
17212
17213 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17214
172152008-02-01 Dave Love <fx@gnu.org>
17216
17217 * casetab.c (init_casetab_once, init_casetab_once): Fix
17218 CHAR_TABLE_SET call.
17219
17220 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17221
17222 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17223
17224 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17225 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17226 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17227
17228 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17229
17230 * coding.c (ENCODE_DESIGNATION, decode_eol)
17231 (make_conversion_work_buffer, code_conversion_restore)
17232 (Fdefine_coding_system_internal): Convert Lisp types.
17233 (code_conversion_restore): Use EQ, not ==.
17234 (Fencode_coding_string): Fix code_convert_string call.
17235
17236 * coding.h (code_convert_region): Fix prototype.
17237
17238 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17239
17240 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17241 (Ffontset_info): Convert Lisp types.
17242
17243 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17244
17245 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17246
17247 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17248
17249 * chartab.c: Include "...h", not <...h> in some cases.
17250
17251 * callproc.c (Fcall_process): Remove unused variables.
17252
172532008-02-01 Dave Love <fx@gnu.org>
17254
17255 * coding.c (Fset_coding_system_priority): Allow null arg list.
17256
172572008-02-01 Dave Love <fx@gnu.org>
17258
17259 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17260 (Fself_insert_and_exit): Use CHARACTERP.
17261
17262 * callproc.c (Fcall_process): Remove unused vars.
17263
17264 * xterm.c (XTread_socket): Add extra dead keysyms.
17265
17266 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17267
17268 * dispextern.h: Remove prototypes for redraw_frame,
17269 redraw_garbaged_frames.
17270
17271 * cmds.c (Fself_insert_command): Use CHARACTERP.
17272
17273 * chartab.c (make_sub_char_table): Remove unused var.
17274 (Fset_char_table_default, Fmap_char_table): Doc fix.
17275
17276 * keymap.c (access_keymap): Remove generic char code.
17277 (push_key_description): Use CHARACTERP.
17278
172792008-02-01 Dave Love <fx@gnu.org>
17280
17281 * charset.c: Doc fixes.
17282 (Funify_charset): Extra checking.
17283
172842008-02-01 Dave Love <fx@gnu.org>
17285
17286 * lread.c: Remove some unused variables.
17287 (safe_to_load_p): If safe, return the magic number version byte.
17288 (Fload): Maybe use load-with-code-conversion.
17289
172902008-02-01 Kenichi Handa <handa@m17n.org>
17291
17292 * category.c (Fmodify_category_entry): Don't modify the contents
17293 of category_set for characters out of the range. Avoid
17294 unnecessary modification.
17295
17296 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17297 Vchar_unify_table. The default value of the table is now nil.
17298
17299 * character.c (syms_of_character): Setup Vchar_width_table for
17300 eight-bit-control and raw-byte chars.
17301
17302 * charset.h (enum define_charset_arg_index): Delete
17303 charset_arg_parents and add charset_arg_subset and
17304 charset_arg_superset.
17305 (enum charset_attr_index): Delete charset_parents and add
17306 charset_subset and charset_superset.
17307 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17308 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17309 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17310 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17311 (CHARSET_SUPERSET): New macros.
17312 (charset_work): Extern it.
17313 (ENCODE_CHAR): Use charset_work.
17314 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17315 (map_charset_chars): Extern it.
17316
17317 * charset.c (load_charset_map): Set the default value of encoder
17318 and deunifier char-tables to nil.
17319 (map_charset_chars): Change argument. Change callers. Use
17320 map_char_table_for_charset instead of map_char_table.
17321 (Fmap_charset_chars): New optional args from_code and to_code.
17322 (Fdefine_charset_internal): Adjust for the change of
17323 `define-charset' (:parents -> :subset or :superset).
17324 (charset_work): New variable.
17325 (encode_char, syms_of_charset): Adjust for the change of
17326 Fdefine_charset_internal.
17327 (Ffind_charset_string): Setup the vector `charsets' correctly.
17328
17329 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17330 the previous change.
17331 (char_table_ref_and_range): Adjust for the above change.
17332 (map_sub_char_table_for_charset): New function.
17333 (map_char_table_for_charset): New function.
17334
17335 * keymap.c (describe_vector): Handle a char-table directly here.
17336 (describe_char_table): Delete.
17337
17338 * lisp.h (map_charset_chars): Delete.
17339
173402008-02-01 Dave Love <fx@gnu.org>
17341
17342 * fns.c (count_combining): Comment out (unused).
17343 (Flocale_codeset): New.
17344 (syms_of_fns): Defsubr it.
17345
17346 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17347 (size_t): Remove.
17348
173492008-02-01 Dave Love <fx@gnu.org>
17350
17351 * Makefile.in (chartab.o): Depend on charset.h.
17352
173532008-02-01 Kenichi Handa <handa@m17n.org>
17354
17355 * character.c (syms_of_character): Set the default value of
17356 Vprintable_chars to Qnil.
17357
173582008-02-01 Dave Love <fx@gnu.org>
17359
17360 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17361
173622008-02-01 Kenichi Handa <handa@m17n.org>
17363
17364 * charset.c (load_charset_map): Handle the case that from < to
17365 correctly.
17366
17367 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17368 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17369 Pay attention to raw-8-bit chars.
17370
173712008-02-01 Kenichi Handa <handa@m17n.org>
17372
17373 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17374 It is not bytecompiled now.
17375
17376 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17377 (charset_jisx0208): New variables.
17378 (Fdefine_charset_internal): Setup them if appropriate.
17379 (init_charset_once): Initialize them to -1.
17380
17381 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17382 (charset_jisx0208): Extern them.
17383
17384 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17385 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17386 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17387 (setup_iso_safe_charsets): Fix arguments to Fassq.
17388 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17389 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17390 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17391 (encode_coding_iso_2022): Change the 1st arg to
17392 ENCODE_ISO_CHARACTER to a variable.
17393
173942008-02-01 Kenichi Handa <handa@m17n.org>
17395
17396 * charset.h (enum define_charset_arg_index): New enums
17397 charset_arg_min_code and charset_arg_max_code.
17398 (struct charset): New member char_index_offset.
17399
17400 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17401 Take charset->char_index_offset into account.
17402 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17403 args[charset_arg_max_code]. Setup charset.char_index_offset.
17404 (syms_of_charset): Fix args to Fdefine_charset_internal.
17405
174062008-02-01 Dave Love <fx@gnu.org>
17407
17408 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17409
174102008-02-01 Dave Love <fx@gnu.org>
17411
17412 * coding.c: Doc fixes.
17413 (Fcoding_system_aliases): Fix return value.
17414 (Qmac): Remove (duplicated) definition.
17415
174162008-02-01 Dave Love <fx@gnu.org>
17417
362654a6
JB
17418 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17419 New functions.
aac0c6e3
MR
17420
17421 * character.c (Fstring): Doc fix.
17422
17423 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17424
362654a6 17425 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
17426 (font-encoding-alist): Doc fix.
17427
174282008-02-01 Dave Love <fx@gnu.org>
17429
17430 * term.c (costs_set): Declare static, non-initialized for pcc.
17431 (encode_terminal_code): Remove unused var.
17432
17433 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17434 for K&R.
17435
17436 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17437
17438 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17439 (suffixes): Move out of make_subsidiaries for K&R.
17440
17441 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17442
17443 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17444
174452008-02-01 Dave Love <fx@gnu.org>
17446
17447 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17448
17449 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17450
174512008-02-01 Yong Lu <lyongu@asia-infonet.com>
17452
17453 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17454
17455 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17456
174572008-02-01 Kenichi Handa <handa@m17n.org>
17458
17459 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17460 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17461
174622008-02-01 Kenichi Handa <handa@m17n.org>
17463
17464 * coding.c (decode_coding_charset): Adjust for the change of
17465 Fdefine_coding_system_internal.
17466 (Fdefine_coding_system_internal): For a coding system of
17467 `charset' type, store a list of charset IDs in
17468 `charset_attr_charset_valids' element of coding attributes.
17469
174702008-02-01 Kenichi Handa <handa@m17n.org>
17471
17472 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17473 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17474 caller. Handle 2-byte and 3-byte charsets correctly.
17475 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17476 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17477 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17478 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17479 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17480 sequence.
17481 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17482 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17483 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17484 and alt&rule composition.
17485 (decode_coding_iso_2022): Handle composition correctly.
17486 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17487
17488 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17489 re-defining a charset. If the charset has :emacs-mule-id, setup
17490 emacs_mule_bytes.
17491 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17492
174932008-02-01 Kenichi Handa <handa@m17n.org>
17494
17495 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17496 (encode_coding_big5, encode_coding_charset): If coding requires safe
17497 encoding, produce a character specified by
17498 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17499
175002008-02-01 Dave Love <fx@gnu.org>
17501
17502 * xterm.c (XSetIMValues): Declare.
17503
17504 * process.c: Conditionally include sys/wait.h, pty.h.
17505
17506 * print.c (print_object): Fix print format for 64-bit systems.
17507
17508 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17509
17510 * buffer.c (emacs_strerror): Declare.
17511
17512 * fontset.c (Fclear_face_cache): Declare.
17513 (accumulate_font_info): Comment-out (unused).
17514 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17515 variables.
17516
17517 * character.h (string_escape_byte8): Declare.
17518
17519 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17520 unused vars.
17521 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17522 (Fmap_charset_chars): Doc fix.
17523
17524 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17525 (Fset_coding_system_priority, Fset_coding_system_priority)
17526 (Fdefine_coding_system_internal): Doc fix.
17527
175282008-02-01 Dave Love <fx@gnu.org>
17529
17530 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17531
175322008-02-01 Kenichi Handa <handa@m17n.org>
17533
17534 * character.c (string_escape_byte8): Make multibyte string with
17535 correct size.
17536
17537 * charset.c (Fmake_char): Delete unnecessary code.
17538
175392008-02-01 Kenichi Handa <handa@m17n.org>
17540
17541 * xfns.c (x_encode_text): Allocate coding.destination here, and
17542 call encode_coding_object with dst_object Qnil.
17543
17544 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17545 multibyte form correctly.
17546
17547 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
17548 against Vfont_encoding_alist.
17549
17550 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
17551 handling of charset list.
17552 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
17553 (decode_coding_object): Move point to coding->dst_pos before
17554 calling post-read-conversion function.
17555 (encode_coding_object): Give correct arguments to
17556 pre-write-conversion. Ignore the return value of
17557 pre-write-conversion function. Pay attention to the case that
17558 pre-write-conversion changes the current buffer. If dst_object is
17559 Qt, even if coding->src_bytes is zero, allocate at least one byte
17560 to coding->destination.
17561
17562 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
17563
17564 * charset.c (Fmake_char): Make it more backward compatible.
17565 (Fmap_charset_chars): Fix docstring.
17566
175672008-02-01 Dave Love <fx@gnu.org>
17568
17569 * coding.c: Doc fixes.
17570 (Fdefine_coding_system_alias): Use names, not symbols, in
17571 coding-system-alist.
17572
175732008-02-01 Kenichi Handa <handa@m17n.org>
17574
17575 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
17576 of calling free_realized_face.
17577
175782008-02-01 Yong Lu <lyongu@asia-infonet.com>
17579
17580 * charset.c (read_hex): Don't treat SPC as a comment starter.
17581 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
17582 (Fdecode_char): Fix typo.
17583
175842008-02-01 Kenichi Handa <handa@m17n.org>
17585
17586 * charset.h (struct charset): New member `code_space_mask'.
17587
17588 * coding.c (coding_set_source): Delete the local variable beg_byte.
17589 (encode_coding_charset, Fdefine_coding_system_internal):
17590 Delete the local variable charset.
17591 (Fdefine_coding_system_internal): Setup
17592 attrs[coding_attr_charset_valids] correctly.
17593
17594 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
17595 member to check if CODE is valid or not.
17596 (Fdefine_charset_internal): Initialize `code_space_mask' member.
17597 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
17598 is within the range of charset->min_code and carset->max_code.
17599
176002008-02-01 Dave Love <fx@gnu.org>
17601
17602 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
17603
17604 * dispextern.h (generate_ascii_font): Fix return type.
17605
17606 * xfaces.c (generate_ascii_font): Fix arg declaration.
17607
17608 * coding.c (coding_inherit_eol_type)
17609 (Fset_terminal_coding_system_internal)
17610 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
17611
176122008-02-01 Kenichi Handa <handa@m17n.org>
17613
17614 * coding.c (decode_coding_charset, encode_coding_charset): Handle
17615 multiple charsets correctly.
17616
176172008-02-01 Kenichi Handa <handa@m17n.org>
17618
17619 * search.c (boyer_moore): Fix handling of multibyte character
17620 translation.
17621
17622 * xdisp.c (display_mode_element): When the variable `elt' is
17623 changed, update `this' and `lisp_string'.
17624
176252008-02-01 Kenichi Handa <handa@m17n.org>
17626
17627 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
17628
17629 * callproc.c (Fcall_process): Be sure to give the current buffer
17630 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
17631
17632 * charset.c (struct charset_map_entries): New struct.
17633 (load_charset_map): Rename from parse_charset_map. New args
17634 entries and n_entries. Change caller.
17635 (load_charset_map_from_file): Rename from load_charset_map.
17636 Change caller. New arg control_flag. Call load_charset_map at
17637 the tail.
17638 (load_charset_map_from_vector): New function.
17639 (Fdefine_charset_internal): Setup charset.compact_codes_p.
17640 (encode_char): If the charset is compact, change a character index
17641 to a code point.
17642
17643 * coding.c (coding_alloc_by_making_gap): Check the case that the
17644 source and destination are the same correctly.
17645 (decode_coding_raw_text): Set coding->consumed_char and
17646 coding->consumed to 0.
17647 (produce_chars): If coding->chars_at_source is nonzero, update
17648 coding->consumed_char and coding->consumed before calling
17649 alloc_destination.
17650 (Fdefine_coding_system_alias): Register ALIAS in
17651 Vcoding_system_alist.
17652 (syms_of_coding): Define `no-conversion' coding system at the tail.
17653
17654 * fileio.c (Finsert_file_contents): Set coding_system instead of
17655 val. If the current buffer is multibyte, always call
17656 decode_coding_gap.
17657
17658 * xfaces.c (try_font_list): Give higher priority to fontset's
17659 family than face's family.
17660
176612008-02-01 Kenichi Handa <handa@m17n.org>
17662
17663 * callproc.c (Fcall_process): Be sure to give the current buffer
17664 to decode_coding_c_string.
17665
17666 * xfaces.c (try_font_list): Give a family specified in a fontset
17667 higher priority than a family specified in a face.
17668
176692008-02-01 Kenichi Handa <handa@m17n.org>
17670
17671 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
17672 Fix arguments to insert_from_buffer.
17673
17674 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
17675
176762008-02-01 Kenichi Handa <handa@m17n.org>
17677
17678 * coding.c (produce_chars): Set the variable `multibytep' correctly.
17679 (decode_coding_gap): Set coding->dst_multibyte correctly.
17680
176812008-02-01 Kenichi Handa <handa@m17n.org>
17682
17683 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
17684 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
17685 (encode_coding_utf_16): Substitute coding->default_char for
17686 non-Unicode characters.
17687 (decode_coding): Don't call record_insert here.
17688 (setup_coding_system): Initialize `surrogate' of
17689 coding->spec.utf_16 to 0.
17690 (EMIT_ONE_BYTE): Fix for multibyte case.
17691
17692 * insdel.c (insert_from_gap): Call record_insert.
17693
176942008-02-01 Kenichi Handa <handa@m17n.org>
17695
17696 * casefiddle.c (casify_region): Fix multibyte case.
17697
17698 * character.c (c_string_width): Add return type `int'.
17699 (char_string_with_unification): Delete arg ADVANCED.
17700
17701 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
17702 (CHAR_STRING): Adjust for the change of char_string_with_unification.
17703 (CHAR_STRING_ADVANCE): Make it do-while statement.
17704
17705 * chartab.c (sub_char_table_set_range): Optimize for the case
17706 DEPTH == 3. Add workaround code for a GCC optimization bug.
17707
17708 * charset.c (parse_charset_map): Remove an unused variable.
17709
17710 * coding.c: Delete unused variables.
17711
17712 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
17713 earlier. If inserted is zero and the coding system doesn't
17714 require flushing, don't call decode_coding_gap.
17715
17716 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
17717
177182008-02-01 Kenichi Handa <handa@m17n.org>
17719
17720 The following changes are for using Unicode as an internal
17721 character model, and use UTF-8 format for buffer/string
17722 representation.
17723
17724 * .gdbinit (xchartable): Adjust for the change of char table structure.
17725 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
17726
17727 * Makefile.in (obj): Add character.o and chartab.o.
17728 (lisp, shortlisp): Remove utf-8.elc.
17729 (*.o): For many files, change dependency on charset.h to
17730 character.h, and add dependency on character.h.
17731 (character.o, chartab.o): New targets.
17732
17733 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
17734 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
17735 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
17736 of "charset.h".
17737
17738 * dired.c, filelock.c: Include "character.h".
17739
17740 * alloc.c: Include "character.h" instead of "charset.h".
17741 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
17742 (syms_of_alloc): Remove defsubr for Smake_char_table.
17743
17744 * buffer.c: Include "character.h" instead of "charset.h", don't
17745 include "coding.h".
17746 (Fset_buffer_multibyte): Adjust for UTF-8.
17747
17748 * buffer.h: EXFUN Fbuffer_live_p.
17749
17750 * callproc.c: Include "character.h" instead of "charset.h".
17751 (Fcall_process): Big change for the new code-conversion APIs.
17752
17753 * casetab.c: Include "character.h" instead of "charset.h".
17754 (set_canon, set_identity, shuffle): Adjust for the new
17755 map_char_table spec.
17756 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
17757 accessing the char table structure.
17758
17759 * chartab.c: New file that implements char table.
17760
17761 * category.c: Include "character.h".
17762 (copy_category_entry): New function.
17763 (copy_category_table): Call map_char_table and copy_category_entry.
17764 (Fmake_category_table): Initialize all top-level slots.
17765 (char_category_set): New function.
17766 (modify_lower_category_set): Delete.
17767 (Fmodify_category_entry): Call char_table_ref_and_range.
17768
17769 * category.h (CATEGORY_SET): Just call char_category_set.
17770
17771 * ccl.c: Include "character.h".
17772 (Qccl, Qcclp): New variables.
17773 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
17774 it's less than 256.
17775 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
17776 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
17777 and DST type.
17778 (ccl_driver): Change types of argument, adjust code accordingly.
17779 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
17780 ccl_driver.
17781 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
17782
17783 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
17784 New members src_multibyte, dst_multibyte, consumed, and produced.
17785 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
17786 (CODING_SPEC_CCL_PROGRAM): New macro.
17787 (ccl_driver): Update prototype.
17788 (Qccl, Qcclp, Fccl_program_p): Extern them.
17789 (CHECK_CCL_PROGRAM): New macro.
17790
17791 * character.c, character.h, chartab.c: New files.
17792
17793 * charset.c: Mostly re-written. Move character and multibyte sequence
17794 handling codes to character.c.
17795
17796 * charset.h: Mostly re-written. Move character and multibyte sequence
17797 handling codes to character.h.
17798
17799 * coding.c, coding.h: Mostly re-written.
17800
17801 * composite.c: Include "character.h" instead of "charset.h".
17802 (CHAR_WIDTH): Move to character.h.
17803 (HASH_KEY, HASH_VALUE): Delete.
17804
17805 * composite.h (enum composition_method): Change order of enumeration
17806 symbols.
17807
17808 * data.c: Include "character.h" instead of "charset.h".
17809 (Faref): Call CHAR_TABLE_REF for a char table.
17810 (Faset): Call CHAR_TABLE_SET for a char table.
17811
17812 * dispextern.h (free_realized_face, check_face_attribytes)
17813 (generate_ascii_font): Extern them.
17814 (free_realized_multibyte_face): Delete extern.
17815
17816 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
17817 table structure.
17818
17819 * editfns.c: Include "character.h" instead of "charset.h".
17820 (Fchar_to_string): Always call CHAR_STRING.
17821
17822 * emacs.c (main): Call init_charset_once, init_charset,
17823 syms_of_chartab, and syms_of_character.
17824
17825 * fileio.c: Include "character.h" instead of "charset.h".
17826 (Finsert_file_contents): Big change for the new code-conversion API.
17827 (choose_write_coding_system, Fwrite_region): Likewise.
17828 (build_annotations_2): Delete.
17829 (e_write): Big change for the new code-conversion API.
17830
17831 * fns.c: Include "character.h" instead of "charset.h".
17832 (copy_sub_char_table): Move to chartab.c.
17833 (Fcopy_sequence): Call copy_char_table for a char table.
17834 (concat): Delete codes calling count_multibyte.
17835 (string_char_to_byte, string_byte_to_char): Adjust for the new
17836 multibyte form.
17837 (internal_equal): Adjust for the change of char table structure.
17838 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
17839 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
17840 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
17841 (char_table_translate, optimize_sub_char_table)
17842 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
17843 chartab.c.
17844 (char_table_ref_and_index): Delete.
17845 (HASH_KEY, HASH_VALUE): Move to lisp.h.
17846 (Fmd5): Call preferred_coding_system instead of accessing
17847 Vcoding_category_list. Adjust for the new code-conversion API.
17848 (syms_of_fns): Move defsubr for char table related functions to
17849 chartab.c.
17850
17851 * fontset.c: Mostly re-written.
17852
17853 * fontset.h (struct font_info): Change type of the member encoding_type.
17854 (enum FONT_SPEC_INDEX): New enum.
17855 (fontset_font_pattern, fs_load_font): Update prototype.
17856 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
17857
17858 * indent.c: Include "character.h" instead of "charset.h".
17859 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
17860
17861 * insdel.c: Include "character.h" instead of "charset.h".
17862 (copy_text): Don't refer to Vnonascii_translation_table.
17863 (insert_from_gap): New function.
17864
17865 * keyboard.c: Include "character.h" instead of "charset.h".
17866 (command_loop_1): Never call direct_output_forward_char before
17867 a non-ASCII character.
17868 (read_char): If Vkeyboard_translate_table is a char table, always
17869 translate a character.
17870
17871 * keymap.c: Include "character.h".
17872 (store_in_keymap): Handle the case that IDX is a cons.
17873 (Fdefine_key): Handle the case that KEY is a cons and the car part
17874 is also a cons (range).
17875 (push_key_description): Adjust for the new character code.
17876 (describe_vector): Call describe_char_table for a char table.
17877 (describe_char_table): New function.
17878
17879 * keymap.h (describe_char_table): Extern it.
17880
17881 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17882 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17883 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17884 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17885 Delete.
17886 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17887 structure.
17888 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17889 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17890 (CHARTAB_SIZE_BITS_3): New macros.
17891 (chartab_size): Extern it.
17892 (struct Lisp_Char_Table): Re-design.
17893 (struct Lisp_Sub_Char_Table): New structure.
17894 (HASH_KEY, HASH_VALUE): Move from fns.c.
17895 (CHARACTERBITS): Define as 22.
17896 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
17897 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
17898 (GC_SUB_CHAR_TABLE_P): New macro.
17899 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
17900 (code_convert_string_norecord): Deleted extern.
17901 (init_character_once, syms_of_character, init_charset)
17902 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
17903
17904 * lread.c: Include "character.h".
17905 (read_multibyte): New arg NBYTES.
17906 (read_escape): Change the meaning of returned *BYTEREP.
17907 (to_multibyte): Delete.
17908 (read1): Adjust the handling of char table and string.
17909
17910 * print.c: Include "character.h" instead of "charset.h".
17911 (print_string): Convert 8-bit raw bytes to octal form by
17912 string_escape_byte8.
17913 (print_object): Adjust for the new multibyte form. Print 8-bit
17914 raw bytes always in octal form. Handle sub char table correctly.
17915
17916 * process.c: Include "character.h" instead of "charset.h".
17917 (read_process_output, send_process): Adjust for the new
17918 code-conversion API.
17919
17920 * puresize.h (BASE_PURESIZE): Increase.
17921
17922 * regex.c: Include "character.h" instead of "charset.h".
17923 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
17924 (regex_compile): Accept a range whose starting and ending
17925 character have different leading bytes.
17926 (analyse_first): Adjust for the above change.
17927
17928 * search.c: Include "character.h" instead of "charset.h".
17929 (search_buffer, boyer_moore): Adjust for the new multibyte form.
17930 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
17931
17932 * syntax.c: Include "character.h" instead of "charset.h".
17933 (syntax_parent_lookup): Delete.
17934 (Fmodify_syntax_entry): Accept a cons as CHAR.
17935 (skip_chars): Adjust for the new multibyte form.
17936 (init_syntax_once): Call char_table_set_range instead of directly
17937 accessing the structure of a char table.
17938
17939 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
17940 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
17941 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
17942 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
17943
17944 * term.c: Include "buffer.h" and "character.h".
17945 (encode_terminal_code, write_glyphs): Adjust for the new
17946 code-conversion API.
17947 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
17948
17949 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
17950
17951 * xdisp.c: Include "character.h".
17952 (get_next_display_element): Adjust for the new multibyte form.
17953 (disp_char_vector): Adjust for the new char table structure.
17954 (decode_mode_spec_coding): Adjust for the new structure of
17955 coding system.
17956 (decode_mode_spec): Adjust for the new code-conversion API.
17957
17958 * xfaces.c: Include "character.h" instead of "charset.h".
17959 (load_face_font): Adjust for the change of choose_face_font and
17960 FS_LOAD_FONT.
17961 (generate_ascii_font): New function.
17962 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17963 (set_font_frame_param): Adjust for the change of choose_face_font.
17964 (free_realized_face): Make it public.
17965 (free_realized_faces_for_fontset): Rename from
17966 free_realized_multibyte_face. Free also faces realized for ASCII.
17967 (choose_face_font): Change arguments. Adjust for the change of
17968 fontset_font_pattern and FS_LOAD_FONT.
17969
17970 * xfns.c: Include "character.h".
17971 (x_encode_text): Adjust for the new code-conversion API.
17972
17973 * xselect.c: Don't include "charset.h".
17974 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17975
17976 * xterm.c: Include "character.h".
17977 (x_encode_char): New argument CHARSET. Change caller.
17978 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17979 Call ENCODE_CHAR instead of SPLIT_CHAR.
17980 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17981 CHAR_WIDTH instead of CHARSET_WIDTH.
17982 (XTread_socket): Adjust for the new code-conversion API.
17983 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17984 (x_load_font): Adjust for the change of struct font.
17985
179862008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17987
17988 * xfaces.c (face_at_buffer_position): Remove unused vars.
17989
179902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17991
17992 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17993 Fix overflow checking.
17994
179952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17996
17997 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17998 Cancel previous change.
17999
180002008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18001
18002 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18003 ccl->eight_bit_control. Fix check for buffer overflow.
18004 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18005 (ccl_driver): Initialize extra_bytes to 0.
18006
180072008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18008
18009 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18010 return it ORed with ctrl_modifier.
18011
180122008-01-29 Miles Bader <miles@gnu.org>
18013
18014 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18015
180162008-01-28 Jason Rumney <jasonr@gnu.org>
18017
18018 * w32.c (stat): Don't double check for networked drive.
18019
180202008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18021
18022 * window.c (run_window_configuration_change_hook): New function.
18023 Code extracted from set_window_buffer. Set the selected frame.
18024 (set_window_buffer): Use it.
18025 * window.h (run_window_configuration_change_hook): Declare.
18026 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18027
18028 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18029
180302008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18031
18032 * Makefile.in: Remove references to unused macros.
18033
180342008-01-26 Eli Zaretskii <eliz@gnu.org>
18035
18036 * w32.c (g_b_init_get_sid_sub_authority)
18037 (g_b_init_get_sid_sub_authority_count): New static variables.
18038 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18039 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18040 (init_user_info): Use them to retrieve uid and gid.
18041 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18042 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18043 st_uid and st_gid of the file.
18044
180452008-01-26 Jason Rumney <jasonr@gnu.org>
18046
18047 * w32.c (logon_network_drive): New function.
18048 (stat): Use it.
18049
180502008-01-26 Chong Yidong <cyd@stupidchicken.com>
18051
18052 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18053 invisible text covered with an ellipsis.
18054
180552008-01-25 Richard Stallman <rms@gnu.org>
18056
18057 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18058 jump back to beginning. Move some other initializations after that.
18059 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18060 New variables.
18061 (syms_of_xdisp): Init them.
18062
18063 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18064
18065 * buffer.c (reset_buffer_local_variables):
18066 Implement `permanent-local-hook'.
18067 (Qpermanent_local_hook): New variable.
18068 (syms_of_buffer): Init and staticpro it.
18069
180702008-01-25 Michael Albinus <michael.albinus@gmx.de>
18071
18072 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18073
180742008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18075
18076 * fns.c (Fclrhash): Return TABLE.
18077
180782008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18079
18080 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18081 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18082 is set even without positional changes.
18083 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18084
18085 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18086
180872008-01-23 Jason Rumney <jasonr@gnu.org>
18088
18089 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18090
18091 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18092 the unicode range available in MULE by locale-coding-system.
18093 Improve dbcs lead byte detection. Set event timestamp and modifiers
18094 earlier.
18095
180962008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18097
18098 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18099 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18100 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18101 when used on child processes.
18102
181032008-01-21 Michael Albinus <michael.albinus@gmx.de>
18104
18105 * dbusbind.c (Fdbus_method_return_internal): Rename from
18106 Fdbus_method_return.
18107 (Fdbus_unregister_object): Move to dbus.el.
18108 (Fdbus_call_method, Fdbus_method_return_internal)
18109 (Fdbus_send_signal): Improve debug messages.
18110
181112008-01-20 Martin Rudalics <rudalics@gmx.at>
18112
18113 * undo.c (undo_inhibit_record_point): New variable.
18114 (syms_of_undo): Initialize it.
18115 (record_point): Don't record point when undo_inhibit_record_point
18116 is set.
18117
181182008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18119
18120 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18121
18122 * xdisp.c (Qauto_hscroll_mode): New var.
18123 (syms_of_xdisp): Initialize it.
18124 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18125 window's buffer.
18126 (hscroll_windows): Don't check automatic_hscrolling_p here.
18127
18128 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18129 vscroll if we're setting window-buffer to the value it already has.
18130
181312008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18132
18133 * m/intel386.h: Remove references to XENIX.
18134
181352008-01-17 Andreas Schwab <schwab@suse.de>
18136
18137 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18138 instead of HAVE_X86_64_LIB64_DIR.
18139 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18140
181412008-01-17 Glenn Morris <rgm@gnu.org>
18142
18143 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18144 to HAVE_X86_64_LIB64_DIR.
18145
181462008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18147
18148 * s/irix3-3.h:
18149 * s/irix4-0.h:
18150 * s/386-ix.h:
18151 * s/domain.h:
18152 * s/hpux9-x11r4.h:
18153 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18154
18155 * sysdep.c: Remove code containing references to symbols defined
18156 by unsupported systems.
18157
181582008-01-16 Glenn Morris <rgm@gnu.org>
18159
18160 * coding.c (select-safe-coding-system-function): Doc fix.
18161
181622008-01-15 Glenn Morris <rgm@gnu.org>
18163
18164 * config.in: Revert 2008-01-13 change: this is a generated file.
18165
181662008-01-13 Tom Tromey <tromey@redhat.com>
18167
18168 * lisp.h: Fix typo.
18169
181702008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18171
18172 * m/sequent-ptx.h:
18173 * m/sequent.h:
18174 * s/ptx.h:
18175 * s/ptx4-2.h:
18176 * s/ptx4.h: Remove files for systems no longer supported.
18177
18178 * callproc.c (Fcall_process): Fix previous change.
18179
181802008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18181
18182 * unexsunos4.c: Remove file, system not supported anymore.
18183
18184 * m/mips.h:
18185 * m/intel386.h:
18186 * callproc.c:
18187 * config.in:
18188 * ecrt0.c:
18189 * emacs.c:
18190 * fileio.c:
18191 * frame.c:
18192 * getpagesize.h:
18193 * keyboard.c:
18194 * lread.c:
18195 * process.c:
18196 * puresize.h:
18197 * sysdep.c:
18198 * systty.h:
18199 * syswait.h:
18200 * unexec.c:
18201 * xdisp.c:
18202 * alloc.c: Remove code containing references to symbols defined by
18203 unsupported systems.
18204
182052008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18206
18207 * coding.c (detect_coding_mask): Fix previous change.
18208
182092008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18210
18211 * coding.c (detect_coding_iso2022): New arg
18212 latin_extra_code_state. Allow Latin extra codes only
18213 when *latin_extra_code_state is nonzero.
18214 (detect_coding_mask): If there is a NULL byte, detect the encoding
18215 as UTF-16 or binary. If Latin extra codes exist, detect the
18216 encoding as ISO-2022 only when there's no other proper encoding is
18217 found.
18218
182192008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18220
18221 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18222 #ifdef MAC_OS.
18223
182242008-01-08 Richard Stallman <rms@gnu.org>
18225
18226 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18227
182282008-01-06 Nick Roberts <nickrob@snap.net.nz>
18229
18230 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18231 menu bar in parentheses.
18232
182332008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18234
18235 * m/7300.h:
18236 * m/acorn.h:
18237 * m/alliant-2800.h:
18238 * m/alliant.h:
18239 * m/alliant1.h:
18240 * m/alliant4.h:
18241 * m/altos.h:
18242 * m/amdahl.h:
18243 * m/apollo.h:
18244 * m/att3b.h:
18245 * m/aviion-intel.h:
18246 * m/aviion.h:
18247 * m/celerity.h:
18248 * m/clipper.h:
18249 * m/cnvrgnt.h:
18250 * m/convex.h:
18251 * m/cydra5.h:
18252 * m/delta88k.h:
18253 * m/dpx2.h:
18254 * m/dual.h:
18255 * m/elxsi.h:
18256 * m/f301.h:
18257 * m/gould-np1.h:
18258 * m/gould.h:
18259 * m/i860.h:
18260 * m/ibmps2-aix.h:
18261 * m/ibmrt-aix.h:
18262 * m/ibmrt.h:
18263 * m/irist.h:
18264 * m/is386.h:
18265 * m/isi-ov.h:
18266 * m/mega68.h:
18267 * m/mg1.h:
18268 * m/news-r6.h:
18269 * m/news-risc.h:
18270 * m/news.h:
18271 * m/nh3000.h:
18272 * m/nh4000.h:
18273 * m/ns16000.h:
18274 * m/ns32000.h:
18275 * m/nu.h:
18276 * m/orion.h:
18277 * m/orion105.h:
18278 * m/paragon.h:
18279 * m/pfa50.h:
18280 * m/plexus.h:
18281 * m/pyramid.h:
18282 * m/pyrmips.h:
18283 * m/sh3el.h:
18284 * m/sps7.h:
18285 * m/sr2k.h:
18286 * m/stride.h:
18287 * m/sun1.h:
18288 * m/sun2.h:
18289 * m/sun3-68881.h:
18290 * m/sun3-fpa.h:
18291 * m/sun3-soft.h:
18292 * m/sun3.h:
18293 * m/sun386.h:
18294 * m/symmetry.h:
18295 * m/tad68k.h:
18296 * m/tahoe.h:
18297 * m/targon31.h:
18298 * m/tek4300.h:
18299 * m/tekxd88.h:
18300 * m/tower32.h:
18301 * m/tower32v3.h:
18302 * m/ustation.h:
18303 * m/wicat.h:
18304 * m/xps100.h:
18305 * s/cxux.h:
18306 * s/cxux7.h:
18307 * s/dgux.h:
18308 * s/dgux4.h:
18309 * s/dgux5-4-3.h:
18310 * s/dgux5-4r2.h:
18311 * s/esix.h:
18312 * s/esix5r4.h:
18313 * s/hiuxmpp.h:
18314 * s/hiuxwe2.h:
18315 * s/iris3-5.h:
18316 * s/iris3-6.h:
18317 * s/isc2-2.h:
18318 * s/isc3-0.h:
18319 * s/isc4-0.h:
18320 * s/isc4-1.h:
18321 * s/newsos5.h:
18322 * s/newsos6.h:
18323 * s/osf1.h:
18324 * s/osf5-0.h:
18325 * s/riscix1-1.h:
18326 * s/riscix12.h:
18327 * s/sco4.h:
18328 * s/sco5.h:
18329 * s/sunos4-0.h:
18330 * s/sunos4-1.h:
18331 * s/sunos413.h:
18332 * s/sunos4shr.h:
18333 * s/umax.h:
18334 * s/unipl5-2.h:
18335 * s/xenix.h:
18336 * cxux-crt0.s:
18337 * unexapollo.c:
18338 * unexconvex.c:
18339 * unexenix.c:
18340 * unexsni.c: Remove files for systems no longer supported.
18341
18342 * m/intel386.h: Remove references to unsupported systems.
18343
18344 * w32.c (get_emacs_configuration): Remove reference to i860.
18345
18346 * sysdep.c: Remove dead code.
18347
183482008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18349
18350 * s/rtu.h:
18351 * m/masscomp.h: Remove files. Platform is obsolete.
18352
183532008-01-04 Michael Albinus <michael.albinus@gmx.de>
18354
18355 * dbusbind.c (Fdbus_method_return): New function.
18356 (xd_read_message): Add the serial number to the event.
18357 (Fdbus_register_method): Activate the function.
18358
183592008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18360
18361 * keyboard.c (read_key_sequence): Fix typo.
18362
183632008-01-03 Michael Albinus <michael.albinus@gmx.de>
18364
18365 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18366 (xd_signature, xd_append_arg): Handle element type detection for
18367 empty arrays.
18368 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18369 SDATA () calls; this must be solved more general.
18370 (Fdbus_register_signal): Use SBYTES instead of strlen.
18371
183722008-01-03 Magnus Henoch <magnus@zemdatav>
18373
18374 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18375 unsigned int for byte values (necessary for big-endian platform).
18376 (Fdbus_call_method): Handle the case of no returned arguments.
18377
183782007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18379
18380 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18381
183822007-12-31 Magnus Henoch <mange@freemail.hu>
18383
18384 * dbusbind.c (xd_signature): Signature of variant is just "v".
18385
183862007-12-30 Michael Albinus <michael.albinus@gmx.de>
18387
18388 * dbusbind.c: Fix several errors and compiler warnings.
18389 Reported by Tom Tromey <tromey@redhat.com>.
18390 (XD_ERROR, XD_DEBUG_MESSAGE)
18391 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18392 (xd_append_arg): Part for basic D-Bus types rewritten.
18393 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18394 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18395 appropriate.
18396 (xd_read_message): Return Qnil. Don't signal an error; it is not
18397 useful during event reading.
18398 (Fdbus_register_signal): Signal an error if the check for
18399 FUNCTIONP fails.
18400 (Fdbus_register_method): New function. The implementation is not
18401 complete, the call of the function signals an error therefore.
18402 (Fdbus_unregister_object): New function, renamed from
18403 Fdbus_unregister_signal. The initial check signals an error, if
18404 the object is not well formed.
18405
184062007-12-30 Richard Stallman <rms@gnu.org>
18407
18408 * textprop.c (get_char_property_and_overlay):
18409 Signal error if POSITION is out of range in a buffer.
18410
184112007-12-29 Martin Rudalics <rudalics@gmx.at>
18412
18413 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18414 because the original parameters are in pure storage now.
18415
184162007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18417
18418 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18419
184202007-12-22 Eli Zaretskii <eliz@gnu.org>
18421
18422 * callint.c (syms_of_callint) <command-history>: Add reference to
18423 history-length in the doc string.
18424
184252007-12-17 Jason Rumney <jasonr@gnu.org>
18426
18427 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18428 before passing as wParam.
18429
184302007-12-22 Michael Albinus <michael.albinus@gmx.de>
18431
18432 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18433 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18434 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18435 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18436 as number.
18437 (Fdbus_call_method): Fix docstring.
18438
184392007-12-21 Michael Albinus <michael.albinus@gmx.de>
18440
18441 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18442 New macros.
18443 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18444 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18445 Simplify.
18446 (xd_signature): New function.
18447 (xd_append_arg): Compute also signatures. Major rewrite.
18448 (xd_retrieve_arg): Make debug messages friendly.
18449 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18450 Check for signatures of arguments.
18451
184522007-12-19 Michael Albinus <michael.albinus@gmx.de>
18453
18454 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18455 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18456 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18457 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18458 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18459 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18460 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18461 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18462 (xd_retrieve_value): Remove. Functionality included in ...
18463 (xd_append_arg): New function.
18464 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18465
184662007-12-16 Michael Albinus <michael.albinus@gmx.de>
18467
18468 * dbusbind.c (top): Include <stdio.h>.
18469 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18470 dbus_message_new_method_call and dbus_message_new_signal.
18471 (Fdbus_register_signal): Rename unique_name to uname.
18472 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18473 non-existing unique name. Fix typos in matching rule. Return an
18474 object which is useful in Fdbus_unregister_signal.
18475 (Fdbus_unregister_signal): Reimplementation, in order to remove
18476 only the corresponding entry.
18477 (Vdbus_registered_functions_table): Change the order of entries.
18478 Apply these changes in xd_read_message and Fdbus_register_signal.
18479
184802007-12-16 Andreas Schwab <schwab@suse.de>
18481
18482 * fileio.c (Finsert_file_contents): Fix overflow check to not
18483 depend on undefined integer overflow.
18484
184852007-12-14 Jason Rumney <jasonr@gnu.org>
18486
18487 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18488 for characters above 127.
18489
184902007-12-13 Jason Rumney <jasonr@gnu.org>
18491
18492 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18493 before dereferencing array.
18494 (lookup_vk_code): Remove zero comparison.
18495
184962007-12-14 Michael Albinus <michael.albinus@gmx.de>
18497
18498 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18499 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18500 Use `unsigned int' instead of `uint'.
18501 (xd_read_message, Fdbus_register_signal): Split expressions into
18502 multiple lines before operators "&&" and "||", according to the
18503 GNU Coding Standards.
18504
185052007-12-14 Eli Zaretskii <eliz@gnu.org>
18506
18507 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18508
185092007-12-12 Juri Linkov <juri@jurta.org>
18510
18511 * buffer.c (Frename_buffer): In interactive spec replace
18512 `read-buffer' with `read-string' that uses `buffer-name-history'
18513 as history, and the current buffer's name as default.
18514
185152007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18516
18517 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18518 manipulating the backtrace manually.
18519 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18520 (struct backtrace, backtrace_list): Remove.
18521 (command_loop_1): Remove dead var `no_direct'.
18522
18523 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18524 preserve non-built-in buffer-local variables.
18525 (Fkill_all_local_variables): Don't re-create&re-set permanent
18526 buffer-local variables.
18527
185282007-12-09 Juri Linkov <juri@jurta.org>
18529
18530 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18531 Lisp code that uses `read-buffer' with current buffer as default.
18532
185332007-12-08 Michael Albinus <michael.albinus@gmx.de>
18534
18535 * dbusbind.c (xd_read_message): Generate an event for every
18536 registered handler. There might be several handlers registered
18537 for the same signal.
18538 (Fdbus_register_signal): Don't overwrite a registration for the
18539 same signal. Add a new registration if handlers are different.
18540 (Vdbus_registered_functions_table): Rework doc string.
18541
185422007-12-07 Michael Albinus <michael.albinus@gmx.de>
18543
18544 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18545 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18546 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18547 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
18548 Unify argument lists.
18549 (xd_read_message, Fdbus_register_signal): Reorder and extend event
18550 arguments and hash table keys. Use unique name for service.
18551 (Fdbus_unregister_signal): Remove checks.
18552 (Vdbus_registered_functions_table): Fix doc string.
18553
185542007-12-05 Magnus Henoch <mange@freemail.hu>
18555
18556 * process.c (make_process): Initialize pty_flag to 0.
18557
185582007-12-05 Jason Rumney <jasonr@gnu.org>
18559
18560 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
18561 specified XBMs.
18562
185632007-12-05 Richard Stallman <rms@gnu.org>
18564
18565 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
18566
185672007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18568
18569 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
18570 New variable.
18571 (mac_try_close_socket) [MAC_OSX]: New function.
18572 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
18573 Update cfsockets_for_select. Replace invalid CFRunLoop source.
18574
18575 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
18576 Use mac_try_close_socket.
18577
185782007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18579
18580 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
18581 reloc_base.
18582 (copy_dysymtab): Compute relocation base here.
18583 (rebase_reloc_address) [__ppc64__]: New function.
18584 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
18585 changed.
18586
185872007-12-05 Jason Rumney <jasonr@gnu.org>
18588
18589 * w32proc.c (sys_spawnve): Quote args with wildcards.
18590
185912007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18592
18593 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
18594 __objc_* sections.
18595 (unrelocate) [_LP64]: Set relocation base to address of data segment.
18596
185972007-12-05 Michael Albinus <michael.albinus@gmx.de>
18598
18599 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
18600 Move check for Vdbus_registered_functions_table to
18601 xd_read_queued_messages.
18602 (xd_read_queued_messages): Protect xd_read_message calls by
18603 internal_condition_case_1.
18604
186052007-12-04 Michael Albinus <michael.albinus@gmx.de>
18606
18607 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
18608 Qdbus_system_bus and Qdbus_session_bus, respectively.
18609 (Vdbus_intern_symbols): Remove.
18610 (Vdbus_registered_functions_table): New hash table.
18611 (XD_SYMBOL_INTERN_SYMBOL): Remove.
18612 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
18613 Rewrite in order to manage registered functions by hash table
18614 Vdbus_registered_functions_table.
18615
186162007-12-03 Jan Djärv <jan.h.d@swipnet.se>
18617
18618 * xterm.c: Update URL to Window Manager Specification in comment.
18619
186202007-12-02 Michael Albinus <michael.albinus@gmx.de>
18621
18622 * config.in (HAVE_DBUS): Add.
18623
18624 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
18625 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
18626 (obj): Add $(DBUS_OBJ).
18627 (LIBES): Add $(DBUS_LIBS).
18628 (dbusbind.o): New target.
18629
18630 * dbusbind.c: New file.
18631
18632 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
18633
18634 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
18635 (Qdbus_event): New Lisp symbol.
18636 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
18637 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 18638 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
18639
18640 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
18641
186422007-12-01 Richard Stallman <rms@gnu.org>
18643
18644 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
18645
186462007-11-30 Jason Rumney <jasonr@gnu.org>
18647
18648 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
18649 (w32con_reset_terminal_modes): Clear screen buffer.
18650 (w32_face_attributes): Don't use color indexes that are out of range.
18651 Only reverse the default colors.
18652
18653 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
18654 WINDOWSNT.
18655
18656 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
18657
186582007-11-29 Jason Rumney <jasonr@gnu.org>
18659
18660 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
18661 (w32_face_attributes): Use Vtty_defined_color_alist to determine
18662 if the terminal colors are initialized.
18663 (unspecified_fg, unspecified_bg): Remove unused declarations.
18664
186652007-11-29 Andreas Schwab <schwab@suse.de>
18666
18667 * keyboard.c (apply_modifiers): Fix typo.
18668
186692007-11-29 Richard Stallman <rms@gnu.org>
18670
18671 * keymap.c (Fcurrent_local_map): Doc fix.
18672
186732007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
18674
18675 * s/gnu-kfreebsd.h: New file.
18676
186772007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
18678
18679 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
18680 Don't cast redundantly.
18681
18682 * keyboard.c (KEY_TO_CHAR): New macro.
18683 (parse_modifiers, apply_modifiers): Accept integer arguments.
18684 (read_key_sequence): Use them to unify the "shift->unshift" mapping
18685 for chars and symbol keys.
18686 After doing such remapping, apply function-key-map again.
18687
186882007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
18689
18690 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
18691 compiled anymore.
18692
186932007-11-26 Andreas Schwab <schwab@suse.de>
18694
18695 * process.c (list_processes_1): Fix indentation level of the
18696 command column.
18697
186982007-11-23 Andreas Schwab <schwab@suse.de>
18699
18700 * editfns.c (Fformat): Handle %c specially since it requires the
18701 argument to be of type int.
18702
187032007-11-23 Markus Triska <markus.triska@gmx.at>
18704
18705 * emacs.c (main): Call init_editfns before init_process, since
18706 init_process sets Vprocess_connection_type depending on OS release.
18707
187082007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
18709
18710 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
18711 (find_symbol_value): Use do_symval_forwarding.
18712
18713 * data.c (set_internal): Set the value in the `cons-cell' (for
18714 Buffer_Local_values) not only for frame-local variables.
18715
187162007-11-22 Andreas Schwab <schwab@suse.de>
18717
18718 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
18719 values to sprintf.
18720 * keymap.c (Fsingle_key_description): Likewise.
18721 * print.c (print_object): Likewise.
18722
187232007-11-22 Jan Djärv <jan.h.d@swipnet.se>
18724
18725 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
18726 file for image is nil.
18727
187282007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
18729
18730 * term.c: Include stdarg.h.
18731 (fatal): Implement using varargs.
18732 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
18733
187342007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18735
18736 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
18737 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
18738 Update call to buffer_slot_type_mismatch.
18739 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
18740 (buffer_slot_type_mismatch): Update.
18741 * buffer.c (buffer_local_types): Remove.
18742 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
18743 (defvar_per_buffer): Set the type in the buffer_objfwd.
18744
187452007-11-21 Jason Rumney <jasonr@gnu.org>
18746
18747 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
18748 CreateFileMapping returns NULL on failure.
18749
187502007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18751
18752 * search.c (Fset_match_data): Remove the `evaporate' feature.
18753 (unwind_set_match_data): Don't use the `evaporate' feature.
18754
187552007-11-21 Jason Rumney <jasonr@gnu.org>
18756
18757 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
18758
18759 * w32console.c (w32con_write_glyphs): Remove unused variables.
18760
187612007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
18762
18763 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
18764
18765 * s/darwin.h (MULTI_KBOARD): Remove.
18766
18767 * macfns.c (x_create_tip_frame, Fx_create_frame)
18768 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
18769
187702007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
18771
18772 * buffer.c (Fbuffer_local_value): Remove redundant test.
18773 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
18774 than in `current-buffer' to match the comment.
18775 Do the swap using swap_in_global_binding.
18776
18777 * data.c (store_symval_forwarding, set_internal):
18778 * eval.c (specbind): Remove dead code.
18779
18780 * coding.c (detect_coding, Fupdate_coding_systems_internal):
18781 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
18782 Since we do not want to see internal Lisp_*fwd objects here.
18783
187842007-11-18 Jan Djärv <jan.h.d@swipnet.se>
18785
18786 * sysdep.c (init_system_name): Use getaddrinfo if available.
18787
18788 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
18789 (x_scroll_bar_note_movement): start, end, with, height in struct
18790 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
18791
187922007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
18793
18794 * puresize.h (BASE_PURESIZE): Increase to 1190000.
18795
187962007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
18797
18798 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
18799 This undoes Richard's change of 14-Oct-2002.
18800
18801 * alloc.c (allocate_other_vector):
18802 * lisp.h (allocate_other_vector): Remove.
18803
18804 * window.c (struct save_window_data): Move non-lisp data to the end
18805 and make it `int' rather than Lisp_Object.
18806 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
18807 Done wrap/unwrap integer values.
18808 (Fset_window_configuration, compare_window_configurations):
18809 Update use of fields to their new types.
18810
18811 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
18812 Turn integer fields into `int'. Merge x_window_low and x_window_high.
18813 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
18814 (SET_SCROLL_BAR_X_WINDOW): Remove.
18815 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
18816 Access the new x_window field directly.
18817 * xterm.c (x_scroll_bar_create): Use a pseudovector.
18818 Don't wrap/unwrap integers into Lisp_Objects.
18819 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
18820 (x_scroll_bar_report_motion):
18821 Don't wrap/unwrap integers into Lisp_Objects.
18822 (x_term_init): Use SDATA.
18823 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
18824 (x_scroll_bar_set_handle, x_scroll_bar_remove)
18825 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
18826 (x_scroll_bar_report_motion, x_scroll_bar_clear):
18827 * xfns.c (x_set_background_color):
18828 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
18829 Access the new x_window field directly.
18830
18831 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
18832 (allocate_pseudovector): Make non-static.
18833
18834 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
18835 (allocate_pseudovector): Declare.
18836 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
18837
188382007-11-15 Andreas Schwab <schwab@suse.de>
18839
18840 * editfns.c (Fformat): Correctly format EMACS_INT values.
18841 Also take precision into account when formatting an integer.
18842
18843 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
18844
188452007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
18846
18847 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
18848 (syms_of_keyboard): Defsubr it.
18849
18850 * data.c (swap_in_global_binding): Fix longstanding bug where
18851 store_symval_forwarding was not called with the right second argument,
18852 thus causing objfwd-ing from being dropped.
18853
188542007-11-14 Juanma Barranquero <lekktu@gmail.com>
18855
18856 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
18857 (Fx_display_pixel_height, Fx_display_planes)
18858 (Fx_display_color_cells, Fx_server_max_request_size)
18859 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18860 (Fx_display_visual_class, Fx_display_save_under):
18861 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
18862 (Fx_display_pixel_height, Fx_display_planes)
18863 (Fx_display_color_cells, Fx_server_max_request_size)
18864 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18865 (Fx_display_mm_height, Fx_display_mm_width)
18866 (Fx_display_backing_store, Fx_display_visual_class)
18867 (Fw32_select_font, Fx_display_save_under):
18868 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
18869 (Fx_display_pixel_height, Fx_display_planes)
18870 (Fx_display_color_cells, Fx_server_max_request_size)
18871 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18872 (Fx_display_save_under): Fix typos in docstrings.
18873
188742007-11-14 Juanma Barranquero <lekktu@gmail.com>
18875
18876 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18877 corresponding to deleted entries; they are an implementation detail.
18878 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18879 Remove variables.
18880 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18881 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18882 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18883 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18884 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18885 (Fw32_define_rgb_color, Fw32_load_color_file)
18886 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18887 Fix typos in docstrings.
18888 (Fx_server_version): Reflow docstring.
18889 (Fw32_shell_execute): Doc fixes.
18890
188912007-11-13 Juanma Barranquero <lekktu@gmail.com>
18892
18893 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18894 if w32_parse_hot_key returned nil.
18895
188962007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
18897
18898 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
18899
189002007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 18901
aac0c6e3
MR
18902 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
18903
18904 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
18905
18906 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
18907 Remove W32_SCROLL_BAR_CLICK_EVENT.
18908
18909 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
18910 Add MULTIMEDIA_KEY_EVENT.
18911
18912 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
18913 (lispy_multimedia_keys) [WINDOWSNT]: New array.
18914 (make_lispy_event) [WINDOWSNT]: Use it to translate
18915 MULTIMEDIA_KEY_EVENT.
18916
18917 * w32term.h (WM_APPCOMMAND): Define if not already.
18918 (GET_APPCOMMAND_LPARAM): Likewise.
18919
18920 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
18921 WM_APPCOMMAND.
18922
18923 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
18924 (syms_of_w32fns): Export and initialize it.
18925 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
18926
189272007-11-09 Chong Yidong <cyd@stupidchicken.com>
18928
18929 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
18930 twice.
18931
18932 * xdisp.c (handle_face_prop): Fix last change.
18933
189342007-11-09 Richard Stallman <rms@gnu.org>
18935
18936 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
18937 not just for after-strings and before-strings.
18938 Call face_for_overlay_string and pass the overlay to it.
18939 (handle_display_prop): Determine whether property came from an overlay.
18940 Pass OVERLAY arg to handle_single_display_spec.
18941 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
18942 (load_overlay_strings): Fill in it->string_overlays.
18943 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
18944
18945 * xfaces.c (face_for_overlay_string): Function renamed from
18946 face_at_buffer_position_no_overlays, and add arg OVERLAY.
18947
18948 * dispextern.h (struct it): New elt string_overlays.
18949 New elt from_overlay, also in stack.
18950 Rearrange a few elements.
18951 (face_for_overlay_string): Decl renamed from
18952 face_at_buffer_position_no_overlays, and add argument.
18953
189542007-11-09 Richard Stallman <rms@gnu.org>
18955
18956 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18957 to get the base face for an overlay string.
18958
18959 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18960
18961 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18962
18963 * xdisp.c (handle_stop): Move some code out of loop.
18964
189652007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18966
18967 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18968 Fix conversion from Lisp object to ATSUFontID.
18969
189702007-11-09 Jason Rumney <jasonr@gnu.org>
18971
18972 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18973
189742007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18975
18976 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18977 Don't assume regions are aligned to page boundary.
18978 (print_load_command_name): Add LC_UUID if defined.
18979
189802007-11-09 Richard Stallman <rms@gnu.org>
18981
18982 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18983
189842007-11-07 Jason Rumney <jasonr@gnu.org>
18985
18986 * s/windows95.h: Remove.
18987
189882007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18989
18990 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18991 abort with a message on unhandled store_type values.
18992
189932007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18994
18995 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18996 Remove HAVE_X11R5 and HAVE_X11R4.
18997
189982007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18999
19000 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19001
190022007-11-01 Johan Bockgård <bojohan@gnu.org>
19003
19004 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19005 Don't set s->stippled_p here, since it has already been set by
19006 x_set_glyph_string_gc from x_draw_glyph_string.
19007
190082007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19009
19010 * sunfns.c: Remove file.
19011
19012 * m/sun386.h:
19013 * m/sun2.h:
19014 * m/sparc.h: Remove Sun windows code.
19015
190162007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19017
19018 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19019 (init_keyboard): Set current_kboard's window-system to nil.
19020 (tty_read_avail_input): Typo.
19021 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19022
190232007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19024
19025 * s/usg5-4.h:
19026 * s/usg5-3.h:
19027 * s/ptx.h:
19028 * m/is386.h:
19029 * m/ibmps2-aix.h:
19030 * Makefile.in: Remove all mentions of X10.
19031
19032 * dispnew.c (syms_of_display): Don't mention version 10.
19033
190342007-10-28 Juanma Barranquero <lekktu@gmail.com>
19035
19036 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19037 ($(BLD)/abbrev.$(O)): Remove.
19038
190392007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19040
19041 Rewrite abbrev.c in Elisp.
19042 * image.c (Qcount): Don't declare as extern.
19043 (syms_of_image): Initialize and staticpro `Qcount'.
19044 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19045 * emacs.c (main): Don't call syms_of_abbrev.
19046 * Makefile.in (obj): Remove abbrev.o.
19047 (abbrev.o): Remove.
19048 * abbrev.c: Remove.
19049
190502007-10-26 Martin Rudalics <rudalics@gmx.at>
19051
19052 * window.c (window_min_size_2): Don't count header-line.
19053
190542007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19055
19056 * frame.h (struct frame): Move all bit fields after the first bit
19057 field to take advantage of the available space. Group all the
19058 chars together to reduce wasted space due to padding.
19059
190602007-10-26 Juanma Barranquero <lekktu@gmail.com>
19061
19062 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19063
19064 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19065 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19066 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19067 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19068 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19069 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19070 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19071 (last_marked, mark_object_loop_halt): Make static.
19072
19073 * frame.c (syms_of_frame) <delete-frame-functions>:
19074 Fix typo in docstring.
19075
190762007-10-25 Juanma Barranquero <lekktu@gmail.com>
19077
19078 * w32.c (init_environment): Fix tiny memory leak.
19079 (w32_get_resource): Remove unused variable `ok'.
19080
190812007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19082
19083 Make `window-system' into a keyboard-local variable (rather than
19084 frame-local as done originally by multi-tty).
19085
19086 * keyboard.h (struct kboard): Add Vwindow_system.
19087 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19088 (mark_kboards): Mark Vwindow_system.
19089
19090 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19091 (init_display): Don't set the obsolete `window-system' frame-param.
19092
19093 * xterm.c (x_term_init):
19094 * w32term.c (w32_create_terminal):
19095 * term.c (init_tty): Set Vwindow_system.
19096 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19097 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19098
19099 * xfns.c (Fx_create_frame, x_create_tip_frame):
19100 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19101 * macfns.c (Fx_create_frame):
19102 Don't set the obsolete `window-system' frame-param.
19103
19104 * frame.h (Qwindow_system): Remove.
19105 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19106 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19107
191082007-10-24 Richard Stallman <rms@gnu.org>
19109
19110 * frame.c (x_figure_window_size): For fullscreen case,
19111 set USPosition | PPosition without clobbering rest of window_prompting.
19112
19113 * keyboard.c (Fcurrent_idle_time): Doc fix.
19114
19115 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19116
191172007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19118
19119 * process.c (unwind_request_sigio): Only define if __ultrix__.
19120
19121 * callproc.c (child_setup): Remove spurious *.
19122
19123 * lisp.h (Fget_text_property): Declare.
19124 (have_menus_p): Declare it here rather than in sys-dep header files.
19125 * macterm.h (have_menus_p):
19126 * msdos.h (have_menus_p):
19127 * xterm.h (have_menus_p): Remove.
19128
19129 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19130 (Fmake_variable_frame_local): Just check the variable's const-ness
19131 rather than checking nil or t.
19132
191332007-10-22 Jason Rumney <jasonr@gnu.org>
19134
19135 * w32fns.c: Include math.h.
19136 (w32_abort): Declaration moved to nt/config.nt.
19137
19138 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19139 (abort): Redefinition moved to nt/config.nt.
19140
19141 * m/windowsnt.h: Remove.
19142
191432007-10-22 Juanma Barranquero <lekktu@gmail.com>
19144
19145 * emacs.c (Fdump_emacs): Fix typo in message.
19146 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19147 <installation-directory>: Reflow docstring.
19148
191492007-10-22 Juri Linkov <juri@jurta.org>
19150
19151 * minibuf.c: Allow minibuffer default to be a list of default values.
19152 With empty input use the first element of this list as returned default.
19153 (string_to_object)
19154 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19155 (read_minibuf): If defalt is cons, set histstring to its car.
19156 (Fread_string): If default_value is cons, set val to its car.
19157 (Fread_buffer): If def is cons, use its car.
19158 (Fcompleting_read): If defalt is cons, set val to its car.
19159
191602007-10-21 Michael Albinus <michael.albinus@gmx.de>
19161
19162 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19163
191642007-10-20 Juanma Barranquero <lekktu@gmail.com>
19165
19166 * doc.c (Fdocumentation): Check for advice in all cases.
19167
191682007-10-19 Chong Yidong <cyd@stupidchicken.com>
19169
19170 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19171
191722007-10-19 Richard Stallman <rms@gnu.org>
19173
19174 * doc.c (Fdocumentation): Check for and handle an advised function.
19175
191762007-10-19 Juanma Barranquero <lekktu@gmail.com>
19177
19178 * process.c (Fset_process_filter): Doc fix.
19179
191802007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19181
19182 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19183 which caused key-translation-map to applied repeatedly (thus breaking
19184 double-mode).
19185
191862007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19187
19188 * xselect.c (x_own_selection, x_handle_selection_clear)
19189 (x_clear_frame_selections):
19190 * w32menu.c (list_of_panes, list_of_items):
19191 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19192 * textprop.c (validate_plist, interval_has_all_properties)
19193 (interval_has_some_properties, interval_has_some_properties_list)
19194 (add_properties, text_property_list):
19195 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19196 * minibuf.c (Fassoc_string):
19197 * macselect.c (x_own_selection, x_clear_frame_selections)
19198 (Fx_disown_selection_internal):
19199 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19200 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19201
192022007-10-17 Chong Yidong <cyd@stupidchicken.com>
19203
19204 * process.c: Link to libs for calling res_init() if available.
19205 (Fmake_network_process): Call res_init() before getaddrinfo or
19206 gethostbyname, if possible.
19207
192082007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19209
19210 * lread.c (read1): Set pvectype for char_tables.
19211
19212 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19213 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19214 Add type checks.
19215 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19216
19217 * alloc.c (free_misc): Use XMISCTYPE.
19218 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19219
192202007-10-17 Glenn Morris <rgm@gnu.org>
19221
19222 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19223 (syms_of_minibuf): Add Qcompletion_ignore_case.
19224 * dired.c (Qcompletion_ignore_case): Change to external.
19225 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19226 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19227 (Fread_file_name): Use it rather than intern'ing.
19228
19229 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19230 (Fread_coding_system): Ignore case of user input.
19231
192322007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19233
19234 * xdisp.c (handle_display_prop): Ignore display specs after
19235 replacing one when string text is being replaced.
19236 (handle_single_display_spec): Pretend as if characters with display
19237 property haven't been consumed only when buffer text is being replaced.
19238
192392007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19240
19241 * xfns.c (Fx_create_frame, Fx_display_list):
19242 * window.c (window_fixed_size_p, enlarge_window)
19243 (shrink_window_lowest_first):
19244 * macterm.c (init_font_name_table):
19245 * macfns.c (Fx_create_frame, Fx_display_list):
19246 * lread.c (close_load_descs):
19247 * keyboard.c (read_char_x_menu_prompt):
19248 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19249 * coding.c (code_convert_region_unwind): Test the type of an object
19250 rather than just !NILP before extracting data from it.
19251
19252 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19253
19254 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19255 (XMISCANY): New macro.
19256 (XMISCTYPE): Use it.
19257 (struct Lisp_Misc_Any): New type.
19258 (union Lisp_Misc): Use it.
19259 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19260 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19261 (find_symbol_value, set_internal, default_value, Fset_default)
19262 (Fmake_variable_buffer_local, Fmake_local_variable)
19263 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19264 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19265 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19266 * alloc.c (allocate_buffer): Set the size and tag.
19267 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19268 Use XMISCANY.
19269 (die): Follow the GNU convention for error messages.
19270 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19271 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19272 tag any more.
19273 (set_buffer_internal_1):
19274 * frame.c (store_frame_param):
19275 * eval.c (specbind):
19276 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19277
19278 * doc.c (Fsnarf_documentation): Simplify.
19279
192802007-10-14 Juanma Barranquero <lekktu@gmail.com>
19281
19282 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19283 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19284
192852007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19286
19287 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19288
192892007-10-14 Juanma Barranquero <lekktu@gmail.com>
19290
19291 * eval.c (do_autoload): Don't save autoloads.
19292
19293 * data.c (Ffset): Save autoload of the function being set.
19294
192952007-10-07 John Paul Wallington <jpw@pobox.com>
19296
19297 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19298 parameter before setting up faces.
19299
193002007-10-13 Eli Zaretskii <eliz@gnu.org>
19301
19302 * ccl.c (Fregister_code_conversion_map):
19303 * keyboard.c (append_tool_bar_item): Reformat last change.
19304
19305 * lisp.h (eabs): Rename from `abs'. All callers changed.
19306
193072007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19308
19309 * buffer.c (add_overlay_mod_hooklist):
19310 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19311 * fontset.c (make_fontset):
19312 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19313 (append_tool_bar_item):
19314 * macmenu.c (grow_menu_items):
19315 * w32menu.c (grow_menu_items):
19316 * xmenu.c (grow_menu_items): Use larger_vector.
19317
193182007-10-13 Eli Zaretskii <eliz@gnu.org>
19319
19320 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19321 selected frame'' on MSDOS).
19322
193232007-10-12 Martin Rudalics <rudalics@gmx.at>
19324
19325 * frame.c (Qexplicit_name): New variable.
19326 (x_report_frame_params): Report it in parameter alist.
19327 (syms_of_frame): Intern and staticpro it.
19328
193292007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19330
19331 * macfns.c (x_create_tip_frame): Set terminal for frame.
19332
193332007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19334
19335 * frame.c (Qenvironment): Remove.
19336 (syms_of_frame) <Qenvironment>: Don't initialize.
19337 (Fdelete_frame): Don't treat the `environment' param specially.
19338 * frame.h (Qenvironment): Don't declare.
19339 * callproc.c (set_initial_environment): Don't set unused frame param.
19340
19341 * frame.c (Fframe_with_environment): Remove.
19342 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19343
19344 * lisp.h (Fframe_with_environment): Don't declare.
19345
193462007-10-10 Juanma Barranquero <lekktu@gmail.com>
19347
19348 * indent.c (indent_tabs_mode, last_known_column)
19349 (last_known_column_modified): Make static.
19350 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19351
193522007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19353
19354 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19355
193562007-10-09 Jason Rumney <jasonr@gnu.org>
19357
19358 * w32term.c (x_set_window_size): Disable code that attempts to tell
19359 Lisp code about a size change before it actually happens.
19360
193612007-10-09 Richard Stallman <rms@gnu.org>
19362
19363 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19364 return HANDLED_RETURN.
19365
193662007-10-08 Martin Rudalics <rudalics@gmx.at>
19367
19368 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19369 when there's an unread command event.
19370
19371 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19372 window autoselection act appropriately when leaving selected frame.
19373 (syms_of_frame): Initialize focus_follows_mouse.
19374 * frame.h (focus_follows_mouse): Extern it.
19375 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19376 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19377 * msdos.c (dos_rawgetc): Likewise.
19378 * w32term.c (w32_read_socket): Likewise.
19379 * xterm.c (handle_one_xevent): Likewise.
19380 * xdisp.c (syms_of_xdisp): In doc-string of
19381 mouse-autoselect-window mention focus-follows-mouse.
19382
193832007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19384
19385 * macterm.c (mac_load_query_font): Fix missing return value.
19386 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19387 Add BLOCK_INPUT.
19388
193892007-10-08 Richard Stallman <rms@gnu.org>
19390
19391 * xdisp.c (get_window_cursor_type): Implement documented behavior
19392 for cursor-in-non-selected-windows = t.
19393
193942007-10-08 Jason Rumney <jasonr@gnu.org>
19395
19396 * w32.c (w32_get_resource): Always close registry keys.
19397
193982007-10-08 Jason Rumney <jasonr@gnu.org>
19399
19400 * makefile.w32-in (LIBS): Add COMCTL32.
19401
19402 * w32fns.c (globals_of_w32fns): Init common controls.
19403
194042007-10-08 Richard Stallman <rms@gnu.org>
19405
19406 * image.c (our_memory_buffer): Rename from omfib_buffer.
19407
194082007-10-08 Richard Stallman <rms@gnu.org>
19409
19410 * buffer.c (Foverlays_at): Doc fix.
19411
194122007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19413
19414 * fns.c (Fplist_put): Preserve uneven tail data.
19415
194162007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19417
19418 * termhooks.h (enum event_kind): Remove trailing comma.
19419
19420 * frame.h (enum): Remove trailing comma.
19421
194222007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19423
19424 * w32proc.c (delete_child): Don't terminate threads of zombies.
19425
194262007-10-08 Martin Rudalics <rudalics@gmx.at>
19427
19428 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19429
19430 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19431 last-repeatable-command.
19432 (init_kboard): Initialize Vlast_repeatable_command.
19433 (command_loop_1): Set it to real_this_command unless that was
19434 bound to an input event.
19435 (mark_kboards): Mark it.
19436
194372007-10-08 Richard Stallman <rms@gnu.org>
19438
19439 * eval.c (condition-case): Doc fix.
19440
194412007-10-08 Masatake YAMATO <jet@gyve.org>
19442
19443 * xfaces.c (tty_supports_face_attributes_p): Fix code
19444 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19445 was copied and not edited.
19446
194472007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19448
19449 Add new `input-decode-map' keymap and use it for terminal
19450 escape sequences.
19451 * keyboard.h (struct kboard): Add Vinput_decode_map.
19452 Remove Vlocal_key_translation_map.
19453 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19454 (init_kboard): Init input-decode-map.
19455 Replace local-key-translation-map back with key-translation-map.
19456 (syms_of_keyboard): Declare input-decode-map.
19457 Remove local-key-translation-map. Update docstrings.
19458 (mark_kboards): Mark Vinput_decode_map.
19459 Don't mark Vlocal_key_translation_map.
19460 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19461 Replace local-key-translation-map back with key-translation-map.
19462 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19463 Bind in input-decode-map rather than function-key-map.
19464
19465 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19466 This was made redundant by the previous introduction of XSETPVECTYPE.
19467
194682007-10-09 Richard Stallman <rms@gnu.org>
19469
19470 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19471
194722007-09-29 Richard Stallman <rms@gnu.org>
19473
19474 * eval.c (internal_condition_case_2, internal_condition_case_1)
19475 (internal_condition_case): Reenable abort if x_catching_errors ()
19476 to see if that really happens and why.
19477
194782007-10-06 Andreas Schwab <schwab@suse.de>
19479
19480 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19481
194822007-10-04 Juanma Barranquero <lekktu@gmail.com>
19483
19484 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19485
194862007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19487
19488 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19489
194902007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19491
19492 * window.h (struct window):
19493 * window.c (struct save_window_data, struct saved_window):
19494 * termhooks.h (struct terminal):
19495 * process.h (struct Lisp_Process):
19496 * frame.h (struct frame):
19497 * buffer.h (struct buffer):
19498 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19499 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19500 The size field of (pseudo)vectors is now unsigned.
19501 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19502
19503 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19504 Turn `count' into an integer.
19505
19506 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19507 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19508 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19509 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19510 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19511
19512 * alloc.c (allocate_pseudovector): New fun.
19513 (ALLOCATE_PSEUDOVECTOR): New macro.
19514 (allocate_window, allocate_terminal, allocate_frame)
19515 (allocate_process): Use it.
19516 (mark_vectorlike): New function.
19517 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19518 (mark_terminals): Use it.
19519 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19520 (Fmake_byte_code): Use XSETPVECTYPE.
19521
19522 * frame.c (Fframe_parameters): Minor simplification.
19523
19524 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19525
19526 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19527
19528 * buffer.c (Fget_buffer_create, init_buffer_once):
19529 * lread.c (defsubr):
19530 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19531
19532 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19533 defined differently in the m/*.h files.
19534 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19535 (XSETPVECTYPE): New macro.
19536 (XSETPSEUDOVECTOR): Use it.
19537
19538 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19539 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19540
19541 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19542 * lread.c (defvar_per_buffer):
19543 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19544
19545 * window.c (candidate_window_p): Only consider as visible frames that
19546 are on the same terminal.
19547
19548 * m/ibms390x.h (MARKBIT): Remove unused macro.
19549
195502007-10-01 Juanma Barranquero <lekktu@gmail.com>
19551
19552 * lread.c (Fload): Fix typo in docstring.
19553
195542007-10-01 Michaël Cadilhac <michael@cadilhac.name>
19555
19556 * floatfns.c (Fexpt): Manually check for overflows, so that a power
19557 of a non-zero value can't yield zero.
19558
195592007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
19560
19561 * term.c (term_clear_mouse_face, term_mouse_highlight)
19562 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
19563
19564 * print.c (safe_debug_print): Use XHASH.
19565
19566 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
19567 Lisp elements such as tags.
19568 (XHASH): New macro.
19569 (EQ): Use it.
19570 (SREF, SSET, STRING_COPYIN): Use SDATA.
19571 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
19572
19573 * alloc.c (mark_terminal): Remove left-over declaration.
19574 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
19575 (allocate_vectorlike): Remove type argument. Adjust callers.
19576 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
19577 Only handle the one remaining MEM_TYPE_VECTORLIKE.
19578
19579 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
19580 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
19581 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
19582 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
19583 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
19584 Use them.
19585
19586 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
19587 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
19588 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
19589
195902007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
19591
19592 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
19593 loaded by default.
19594
195952007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
19596
19597 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
19598 on this tty.
19599 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
19600
19601 * term.c (mouse_face_window): Rename from Qmouse_face_window.
19602 Update all users.
19603 (handle_one_term_event): Use Gpm_DrawPointer.
19604 (Fgpm_mouse_start): Rename from Fterm_open_connection.
19605 Signal errors instead of returning nil. Always return nil.
19606 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
19607 Make it a noop if gpm-mouse was not activated.
19608 (syms_of_term): Update names.
19609
196102007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
19611
19612 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
19613 (init_sys_modes): Check that gpm_tty is the current tty.
19614
19615 * alloc.c (allocate_terminal): Set the vector size to only count the
19616 lisp fields. Initialize those to nil.
19617 (mark_object): Don't treat terminals specially.
19618 (mark_terminal): Remove.
19619 (mark_terminals): Use mark_object instead.
19620
19621 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
19622 the GC to the beginning.
19623
19624 * indent.h:
19625 * indent.c: Use EMACS_INT for ints coming from Elisp data.
19626
19627 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
19628
196292007-09-25 Jason Rumney <jasonr@gnu.org>
19630
19631 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
19632
19633 * w32console.c (create_w32cons_output): Remove.
19634
19635 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
19636
19637 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
19638 (reset_sys_modes): Use reset_terminal_modes_hook.
19639
196402007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
19641
19642 * eval.c (do_autoload): Don't output any message.
19643
196442007-09-24 Juri Linkov <juri@jurta.org>
19645
19646 * emacs.c (standard_args): Change priority of "--no-splash"
19647 from 40 to 3. Add "--no-desktop" with the same priority.
19648
196492007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
19650
19651 * alloc.c (gc_sweep): Check cons cell mark bits word by word
19652 and optimize the case where they are all 1.
19653
196542007-09-23 Johannes Weiner <hannes@saeurebad.de>
19655
19656 * lisp.h (abs): Define if not defined.
19657 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
19658 Don't define `abs', since it's defined in lisp.h.
19659
196602007-09-22 Eli Zaretskii <eliz@gnu.org>
19661
19662 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
19663 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
19664 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
19665 (init_tty): Use DEV_TTY instead of "/dev/tty".
19666 [WINDOWSNT]: No need to protect from NAME arg being null.
19667
196682007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
19669
19670 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
19671 up the tty state.
19672
196732007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19674
19675 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
19676 (gpm_tty): Change its type.
19677 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
19678 (gpm_tty): Change its type and initialize it.
19679 (Fterm_open_connection): Check the frame is indeed a tty.
19680 Use the new gpm_tty.
19681 (Fterm_close_connection): Use the new gpm_tty.
19682 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
19683 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
19684
196852007-09-21 Juanma Barranquero <lekktu@gmail.com>
19686
19687 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
19688 underline_color, to draw strike-through.
19689
196902007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19691
19692 * lisp.h (allocate_terminal): Declare.
19693
19694 * window.c (candidate_window_p): Consider frames that are being placed
19695 by the user as somewhere between visible and iconified.
19696 (window_loop): Prefer windows on the current frame.
19697 (Fselect_window): Move the use of select-frame to the beginning so we
19698 can just delegate all the work (it'll call us back anyway).
19699
19700 * frame.c (Qdisplay_environment_variable):
19701 * frame.h (Qdisplay_environment_variable): Delete.
19702
19703 * .gdbinit (xbacktrace): Print the arg's address rather than the value
19704 of the first arg, since that value may be a union.
19705
19706 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
19707 parameter rather than Qdisplay_environment_variable. If all else
19708 fails, look for DISPLAY in initial-environment.
19709
197102007-09-21 Glenn Morris <rgm@gnu.org>
19711
19712 * Makefile.in (emacstool): Remove target.
19713 (lisp, shortlisp): Remove termdev.elc.
19714
197152007-09-21 Markus Triska <markus.triska@gmx.at>
19716
19717 * xterm.c (x_delete_display): Compile session management conditionally.
19718
197192007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
19720
19721 * callproc.c (getenv_internal_1): New function.
19722 (getenv_internal): Use it.
19723 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
19724
19725 * terminal.c (get_terminal): Don't accept ints to represent terminals.
19726 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
19727 (Fset_terminal_parameter): Work with dead terminals as well.
19728 (Fmodify_terminal_parameters): Remove.
19729
19730 * terminal.c (get_terminal): Handle terminals.
19731 Make sure the terminal returned is live.
19732 (create_terminal): Use allocate_terminal.
19733 (mark_terminals): Move to alloc.c.
19734 (delete_terminal): Use terminal->name as liveness status.
19735 NULL out fields after freeing their contents.
19736 Don't deallocate the object.
19737 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
19738 rather than an int.
19739 (Fterminal_live_p): Accept non-integer arguments.
19740 (Fterminal_list): Return terminal objects rather than an ints.
19741
19742 * alloc.c (enum mem_type): New member for `terminal' objects.
19743 (allocate_terminal): New function.
19744 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
19745 Handle terminals.
19746 (mark_terminal): New fun.
19747 (mark_terminals): Move from terminal.c.
19748
19749 * term.c (get_tty_terminal): Don't treat output_initial specially.
19750 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
19751 (delete_tty): Use terminal->name as liveness status.
19752
19753 * termhooks.h (struct terminal): Make it into a pseudovector.
19754 Remove `deleted' replaced by checking `name's nullness.
19755
19756 * print.c (print_object): Handle terminals.
19757
19758 * lisp.h (enum pvec_type): New `terminal' pseudovector.
19759 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
19760
19761 * frame.c (make_terminal_frame):
19762 * keyboard.c (tty_read_avail_input):
19763 * w32term.c (x_delete_terminal):
19764 * xfns.c (Fx_create_frame, x_create_tip_frame):
19765 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
19766
197672007-09-20 Glenn Morris <rgm@gnu.org>
19768
19769 * process.c (Fmake_network_process): Doc fix.
19770
197712007-09-19 Jason Rumney <jasonr@gnu.org>
19772
19773 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
19774
197752007-09-19 Michaël Cadilhac <michael@cadilhac.name>
19776
19777 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
19778 Fix a C warning regarding variable constness.
19779
19780 * xterm.c (handle_one_xevent): Fix a C warning.
19781
197822007-09-18 Jason Rumney <jasonr@gnu.org>
19783
19784 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
19785
197862007-09-17 Jan Djärv <jan.h.d@swipnet.se>
19787
19788 * gtkutil.c (gdpy_def): New variable.
19789 (xg_initialize): Initialize gdpy_def.
19790 (xg_display_close): If no other display exists, set gdpy_def to a
19791 new connection.
19792
197932007-09-16 Jan Djärv <jan.h.d@swipnet.se>
19794
19795 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
19796 when we have no file name for the icon.
19797 (xg_tool_bar_expose_callback): Remove.
19798 (xg_create_tool_bar): Don't connect expose signal to
19799 xg_tool_bar_expose_callback.
19800 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
19801
198022007-09-16 Andreas Schwab <schwab@suse.de>
19803
19804 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
19805 values instead of zapping them.
19806
198072007-09-14 Glenn Morris <rgm@gnu.org>
19808
19809 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
19810 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
19811 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
19812 scope and rename to omfib_buffer for clarity.
19813 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
19814
198152007-09-14 Kenichi Handa <handa@m17n.org>
19816
19817 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
19818
198192007-09-13 Jason Rumney <jasonr@gnu.org>
19820
19821 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
19822
19823 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
19824
19825 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
19826 (mac_term_init): Call here instead, passing rif.
19827
198282007-09-13 Glenn Morris <rgm@gnu.org>
19829
19830 * s/hpux.h: No longer define `static' as nothing.
19831
198322007-09-13 Johan Bockgård <bojohan@gnu.org>
19833
19834 * callint.c (Fcall_interactively): Remove unused var `fun'.
19835
198362007-09-12 Romain Francoise <romain@orebokech.com>
19837
19838 * window.c (prefer_window_split_horizontally, display_buffer):
19839 Revert 2007-09-08 change.
19840
198412007-09-12 Glenn Morris <rgm@gnu.org>
19842
19843 * alloca.c: Remove file.
19844 * Makefile.in (alloca): Do not undef.
19845 (allocaobj, alloca.o): Remove.
19846 (otherobj): Remove allocaobj.
19847 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
19848 * regex.c (C_ALLOCA): Remove all references and code that was only
19849 used when this was defined.
19850 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
19851 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
19852 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
19853
19854 * Makefile.in (SOURCES, unlock, relock): Delete.
19855
19856 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
19857 (menu_grab_callback): All uses changed.
19858
19859 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
19860 (x_reply_selection_request): All uses changed.
19861
198622007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19863
19864 * lread.c (load_warn_old_style_backquotes): Change message to look
19865 better when it appears in the middle of byte-compiler messages.
19866
198672007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19868
19869 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19870
19871 * xterm.c (x_create_terminal): Add comment.
19872
19873 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19874
198752007-09-10 Richard Stallman <rms@gnu.org>
19876
19877 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19878
198792007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19880
19881 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19882 (DEFUN): Document `intspec', use it instead of `prompt'.
19883
19884 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19885
19886 * data.c (Finteractive_form): If the interactive specification starts
19887 with a `(', use it as a Lisp form.
19888
19889 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19890 name and file modes.
19891
19892 * callint.c (Fcall_interactively): Comment fixes.
19893
198942007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19895
19896 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
19897 and compiled functions.
19898
198992007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
19900
19901 * window.c (prefer_window_split_horizontally): New variable.
19902 (display_buffer): Consider splitting window horizontally depending
19903 on prefer_window_split_horizontally.
19904
199052007-09-08 Eli Zaretskii <eliz@gnu.org>
19906
19907 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
19908
199092007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19910
19911 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
19912
19913 * frame.c (x_set_frame_parameters): Check number is positive before
19914 using XFASTINT.
19915
19916 * window.c (freeze_window_start): Don't presume selected_window holds
19917 a window object.
19918 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
19919
199202007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
19921
19922 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
19923
199242007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19925
19926 * window.c (Vsplit_window_preferred_function): New var.
19927 (Fdisplay_buffer): Use it.
19928 (syms_of_window): Export, and initialize it.
19929
199302007-09-06 Pixel <pixel@mandriva.com> (tiny change)
19931
19932 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
19933
199342007-09-06 Glenn Morris <rgm@gnu.org>
19935
19936 * gtkutil.c (menu_grab_callback) <cnt>:
19937 * xselect.c (x_reply_selection_request) <cnt>: Move static
19938 variable to file scope.
19939
199402007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
19941
19942 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
19943 consistent values of selected_frame and selected_window.
19944
199452007-09-04 Jason Rumney <jasonr@gnu.org>
19946
19947 * w32console.c (initialize_w32_display): Zero unused hooks.
19948
199492007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19950
19951 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
19952 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
19953
199542007-09-04 Jason Rumney <jasonr@gnu.org>
19955
19956 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19957 in w32console.c. Set up input. Remove XXX comments that have been
19958 confirmed as correct.
19959
19960 * s/ms-w32.h (MULTI_KBOARD): Define.
19961
19962 * w32console.c (one_and_only_w32cons): Remove.
19963 (initialize_w32_display): Take terminal argument.
19964
19965 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19966 initialize_w32_display.
19967 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19968
19969 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19970
19971 * keyboard.c (discard_mouse_events): Discard it.
19972 (make_lispy_event): Translate it to a lisp event.
19973 (lispy_wheel_names): Add wheel-left and right events.
19974 (syms_of_keyboard): Enlarge wheel_syms.
19975
19976 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19977 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19978
19979 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19980
19981 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19982 from WM_MOUSEHWHEEL.
19983 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19984
19985 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19986 terminal.
19987
19988 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19989 keyboard for the terminal.
19990
199912007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19992
19993 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19994 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19995 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19996 and resume-tty-function to resume-tty-hook.
19997 (Fsuspend_tty, Fresume_tty): Use new names.
19998
199992007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20000
20001 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20002 if it starts with "n:".
20003
200042007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20005
20006 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20007
200082007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20009
20010 * frame.h:
20011 * frame.c (Qterm_environment_variable): Remove.
20012 (syms_of_frame): Don't init and staticpro it.
20013
20014 * callproc.c (getenv_internal): Remove special case for $TERM.
20015
20016 * callproc.c (Vinitial_environment): New variable.
20017 (set_initial_environment): Initialize it.
20018 (syms_of_callproc): Declare it.
20019 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20020 TERM under which a process runs is never related to the TERM in which
20021 Emacs is running.
20022
200232007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20024
20025 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20026 * s/darwin.h: ... do it here.
20027
200282007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20029
20030 * lisp.h (set_initial_environment): Rename from set_global_environment.
20031
20032 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20033 removed by mistake on the multi-tty branch.
20034
20035 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20036 (Fmodify_frame_parameters): Return a value.
20037
20038 * image.c (png_load): Comment-out var only used in commented-out code.
20039
20040 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20041 before passing it to mark_object.
20042
20043 * xfaces.c (internal_resolve_face_name): Return a value.
20044 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20045
20046 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20047 (x_icon): Comment-out var only used in commented-out code.
20048
200492007-08-29 Romain Francoise <romain@orebokech.com>
20050
20051 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20052 QUIT hasn't been provided.
20053
200542007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20055
20056 * callproc.c (child_setup, getenv_internal): Use the
20057 display-environment-variable and term-environment-variable frame params.
20058 (set_initial_environment): Initialise Vprocess_environment.
20059
20060 * config.in: Disable multi-keyboard support on a mac.
20061
20062 * frame.c (Qterm_environment_variable)
20063 (Qdisplay_environment_variable): New variables.
20064 (syms_of_frame): Intern and staticpro them.
20065 (Fmake_terminal_frame): Disable output method test.
20066
20067 * frame.h: Declare them here.
20068
20069 * macfns.c (x_set_mouse_color): Get rif from the frame.
20070 (x_set_tool_bar_lines): Don't use updating_frame.
20071 (mac_window): Add 2 new parameters for consistency with other systems.
20072 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20073 frame parameters following what is done in X11 and w32. Don't use
20074 FRAME_MAC_DISPLAY_INFO.
20075 (Fx_open_connection, start_hourglass): Remove window-system check.
20076 (x_create_tip_frame): Get the keyboard from the terminal.
20077
20078 * macmenu.c: Reorder includes.
20079 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20080
20081 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20082 terminal parameter.
20083 (x_clear_frame): Add a frame parameter.
20084 (note_mouse_movement): Get rif from the frame.
20085 (mac_term_init): Initialize the terminal.
20086 (mac_initialize): Make static and move terminal initialization ...
20087 (mac_create_terminal): ... to this new function.
20088
20089 * macterm.h (struct mac_display_info): Add terminal.
20090 (mac_initialize): Delete declaration.
20091
20092 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20093
20094 * sysdep.c: Comment out text after #endif.
20095
20096 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20097 is defined. Better initialize ttys in windows. Use terminal
20098 specific mouse_position_hook.
20099
20100 * termhooks.h (union display_info): Add mac_display_info.
20101
20102 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20103 Set the default minibuffer frame, window_system and the rest of the
20104 frame parameters following what is done in X11.
20105
20106 * w32term.c (w32_initialize): Make static.
20107
20108 * xselect.c (x_handle_selection_clear): Only access
20109 terminal->kboard when MULTI_KBOARD is defined.
20110
20111 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20112 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20113
201142007-08-29 Jason Rumney <jasonr@gnu.org>
20115
20116 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20117 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20118
20119 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20120 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20121
20122 * keyboard.c (restore_kboard_configuration): Only define when
20123 MULTI_KBOARD defined.
20124
20125 * makefile.w32-in: Update dependancies from Makefile.in.
20126 (OBJ1): Add terminal.$(O)
20127
20128 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20129 Don't define function body.
20130 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20131
20132 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20133
20134 * w32.c (request_sigio, unrequest_sigio): Remove.
20135
20136 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20137 (w32con_clear_frame, w32con_clear_end_of_line)
20138 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20139 (w32con_delete_glyphs, w32con_set_terminal_window)
20140 (scroll_line, w32_sys_ring_bell): Add frame arg.
20141 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20142 Add terminal arg.
20143 (PICK_FRAME): Remove.
20144 (w32con_write_glyphs): Use frame specific terminal coding.
20145 (one_and_only_w32cons): New global variable.
20146 (initialize_w32_display): Use it for storing hooks.
20147 (create_w32cons_output): New function.
20148
20149 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20150 arg a frame.
20151
20152 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20153 Set window_system.
20154 (x_set_tool_bar_lines): Don't use updating_frame.
20155 (Fx_create_frame): Set terminal and ref count.
20156 (Fx_open_connection): Remove window-system check.
20157
20158 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20159
20160 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20161 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20162 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20163 Add frame arg.
20164 (x_delete_terminal, w32_create_terminal): New functions.
20165 (w32_term_init): Create a terminal.
20166 (w32_initialize): Move terminal specific initialization to
20167 w32_create_terminal.
20168
20169 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20170 (w32_clear_rect, w32_clear_area): Use background from frame.
20171 (w32_display_info): Add terminal.
20172 (w32_sys_ring_bell, x_delete_display): Declare here.
20173
20174 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20175
20176 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20177
201782007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20179
20180 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20181 Fix get_named_tty calls for the controlling tty.
20182
201832007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20184
20185 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
20186
201872007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20188
20189 * term.c (tty_insert_glyphs): Add missing first parameter.
20190
201912007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20192
20193 * buffer.c (Fbuffer_list, Fbury_buffer):
20194 Take frame->buried_buffer_list into account.
20195
20196 * cm.c (current_tty): New variable, for cmputc().
20197 (cmputc): Use it.
20198 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20199 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20200 (cmgoto): Add tty parameter. Pass it on to calccost().
20201 Use emacs_tputs() instead of tputs().
20202
20203 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20204 tputs().
20205 (current_tty): New variable, for cmputc().
20206 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20207
20208 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20209 (internal_condition_case, internal_condition_case_1)
20210 (internal_condition_case_2): Don't abort when x_catching_errors.
20211
20212 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20213 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20214 prevent crashes caused by bogus longjmps in read_char.
20215
20216 * keymap.h (Fset_keymap_parent): Add EXFUN.
20217
20218 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20219 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20220 Remove redundant definition.
20221
20222 * macfns.c (x_set_mouse_color, x_make_gc):
20223 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20224
20225 * w32term.c (x_free_frame_resources):
20226 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20227 (w32_initialize): Use the accessor macros for terminal characteristics.
20228
20229 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20230 Use the accessor macros for terminal characteristics.
20231 * msdos.c (internal_terminal_init): Use the accessor macros for
20232 terminal characteristics.
20233 (ScreenVisualBell, internal_terminal_init):
20234 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20235
20236 * termopts.h (no_redraw_on_reenter): Declare.
20237
20238 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20239 (mark_terminals, mark_ttys): Declare.
20240 (Fgarbage_collect): Call them.
20241 (mark_object): Mark buried_buffer_list.
20242
20243 * prefix-args.c: Include stdlib.h for exit.
20244
20245 * syssignal.h: Add comment.
20246
20247 * indent.c: Include stdio.h.
20248
20249 * window.h (Vinitial_window_system): Declare.
20250 (Vwindow_system): Delete declaration.
20251
20252 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20253
20254 * image.c (lookup_image): Don't initialize `c' until the xasserts
20255 have been run.
20256
20257 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20258 FRAME_FOREGROUND_PIXEL.
20259
20260 * print.c (print_preprocess): Don't lose print_depth levels while
20261 iterating.
20262
20263 * widget.c (update_from_various_frame_slots):
20264 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20265
20266 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20267 frames.
20268 (window_internal_height): Remove bogus make_number call.
20269 (init_window_once): Call make_terminal_frame with two zero parameters.
20270
20271 * fileio.c (Fread_file_name): Update comment.
20272
20273 * callint.c (Fcall_interactively):
20274 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20275 Make sure it is correctly unwound.
20276
20277 * xsmfns.c (x_session_close): New function.
20278
20279 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20280 Delete declarations.
20281
20282 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20283 (x_output): Remove background_pixel and foreground_pixel fields.
20284 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20285 (x_delete_device, x_session_close): Declare.
20286
20287 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20288 (read_filtered_event): Call `read_char' with a local
20289 `wrong_kboard_jmpbuf'.
20290
20291 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20292 Don't call single_kboard_state. Use FRAME_RIF.
20293
20294 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20295 systems.
20296
20297 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20298 (Fframe_with_environment, Fset_input_meta_mode)
20299 (Fset_quit_char): EXFUN.
20300 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20301 (init_sys_modes, reset_sys_modes): Update prototypes.
20302 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20303
20304 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20305 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20306 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20307 Delete declarations.
20308 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20309 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20310 New declarations.
20311
20312 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20313 already does that during init_display(). Call syms_of_keymap
20314 before syms_of_keyboard. Call `syms_of_terminal'.
20315 Call set_initial_environment, not set_process_environment.
20316 (shut_down_emacs): Call reset_all_sys_modes() instead of
20317 reset_sys_modes().
20318
20319 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20320 (internal_resolve_face_name, resolve_face_name_error): New functions.
20321 (resolve_face_name): Protect against loops and errors thrown by Fget.
20322 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20323 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20324
20325 * scroll.c: Replace CURTTY() with local variables throughout the
20326 file (where applicable).
20327 (calculate_scrolling, calculate_direct_scrolling)
20328 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20329 characteristics.
20330
20331 * keymap.c (Vfunction_key_map): Remove.
20332 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20333 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20334 (Vkey_translation_map): Remove.
20335 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20336 (Fdescribe_buffer_bindings)
20337 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20338 Update for terminal-local key-translation-map.
20339
20340 * Makefile.in (callproc.o): Update dependencies.
20341 (lisp, shortlisp): Add termdev.elc.
20342 (obj): Add terminal.o.
20343 (terminal.o): Add dependencies.
20344 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20345 (data.o, fns.o): Add termhooks.h dependency.
20346 (SOME_MACHINE_LISP): Add dnd.elc.
20347 (minibuf.o): Fix typo.
20348 Update dependencies.
20349
20350 * data.c (do_symval_forwarding, store_symval_forwarding)
20351 (find_symbol_value): Use the selected frame's keyboard, not
20352 current_kboard.
20353
20354 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20355 Vwindow_system.
20356
20357 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20358 Fmenu_bar_open.
20359 (syms_of_xmenu): Update defsubr.
20360 (mouse_position_for_popup, Fx_popup_menu)
20361 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20362 (set_frame_menubar, free_frame_menubar)
b97439ce 20363 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
20364 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20365 an X frame.
20366
20367 * xselect.c (x_own_selection): Abort if not an X frame.
20368 (some_frame_on_display): Check if it is an X frame.
20369 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20370
20371 * coding.c: Include frame.h and termhooks.h.
20372 (terminal_coding, keyboard_coding): Delete.
20373 (Fset_terminal_coding_system_internal)
20374 (Fset_keyboard_coding_system_internal)
20375 (Fkeyboard_coding_system)
20376 (Fterminal_coding_system): Add a terminal parameter.
20377 Get terminal_coding from the terminal.
20378 (init_coding_once): Don't call setup_coding_system here.
20379
20380 * dispextern.h (set_scroll_region, turn_off_insert)
20381 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20382 (tty_clear_end_of_line, tty_setup_colors)
20383 (delete_tty, updating_frame)
20384 (produce_special_glyphs, produce_glyphs, write_glyphs)
20385 (insert_glyphs): Remove.
20386 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20387 (tty_turn_off_highlight, get_tty_size): Add declaration.
20388 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20389
20390 * frame.h (enum output_method): Add output_initial.
20391 (struct x_output): Delete.
20392 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20393 Access foreground_pixel and background_pixel directly from the frame.
20394 (tty_display): Delete.
20395 (struct frame): Add buried_buffer_list, foreground_pixel,
20396 background_pixel and terminal. Delete kboard.
20397 (union output_data): Add tty.
20398 (FRAME_KBOARD): Get the kboard from the terminal.
20399 (FRAME_INITIAL_P): New macro.
20400 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20401 (Qterm_environment_variable, Qdisplay_environment_variable)
20402 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20403 New declarations.
20404
20405 * termchar.h (tty_output, tty_display_info): New structures.
20406 (tty_list): Declare.
20407 (FRAME_TTY, CURTTY): New macros.
20408 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20409 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20410 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20411 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20412
20413 * callproc.c: Include frame.h and termhooks.h, for terminal
20414 parameters.
20415 (add_env): New function.
20416 (child_setup): Use it.
20417 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20418 (getenv_internal): Fix get_terminal_param call.
20419 (Fgetenv_internal, egetenv): Update doc.
20420 (syms_of_callproc): Initialize Vprocess_environment to nil.
20421 Register and initialize them. Remove obsolete defvars. Update doc
20422 strings.
20423 (child_setup): Handle Vlocal_environment_variables.
20424 (getenv_internal): Add terminal parameter.
20425 Handle Vlocal_environment_variables.
20426 (Fgetenv_internal): Add terminal parameter.
20427 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20428 environment in a frame (not terminal) parameter. Update doc strings.
20429 (set_initial_environment): Rename from set_global_environment.
20430 Store Emacs environment in initial frame parameter.
20431
20432 * xdisp.c (redisplay_internal): Update references to
20433 `previous_terminal_frame'.
20434 (display_mode_line, Fformat_mode_line): Replace calls to
20435 `push_frame_kboard' with `push_kboard'.
20436 (get_glyph_string_clip_rects): Add extra parentheses and
20437 braces to prevent compiler warnings.
20438 (calc_pixel_width_or_height): Add xassert to check that the
20439 frame is alive. Don't call `lookup_image' on a termcap frame.
20440 (message2_nolog, message3_nolog, redisplay_internal)
20441 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20442 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20443 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20444 (Fx_display_pixel_width, Fx_display_pixel_height)
20445 (Fx_display_planes, Fx_display_color_cells)
20446 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20447 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20448 (Fx_display_backing_store, Fx_display_visual_class)
20449 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20450 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20451
20452 * xfns.c (x_set_foreground_color x_set_background_color)
20453 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20454 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20455 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20456 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20457 terminal that is being deleted.
20458 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20459 frame parameter, and make sure it overrides any user-supplied setting.
20460 (Fx_close_connection, Fx_synchronize): Unify argument names with
20461 the rest of the DEFUNs.
20462
20463 * dispnew.c (Fsend_string_to_terminal): Update call to
20464 `get_tty_terminal'.
20465 (Fredraw_frame, Fsend_string_to_terminal)
20466 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20467 FRAME_TERMCAP_P and FRAME_TTY.
20468 (window_change_signal): Don't believe width/height values that are
20469 impossibly small.
20470 (Vinitial_window_system): Rename from Vwindow_system.
20471 (termscript, Wcm, rif): Delete.
20472
20473 * termhooks.h (struct terminal): New struct containing the
20474 previously global text display hooks and new members NAME,
20475 DELETED and PARAM_ALIST.
20476 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20477 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20478 (FRAME_RIF): New macros.
20479 (get_terminal_param, get_device): New declarations.
20480 (termscript): Delete declaration.
20481
20482 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20483 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20484 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20485 FRAME_FOREGROUND_PIXEL.
20486 (x_fully_uncatch_errors): Disable definition.
20487 (x_scroll_bar_expose): Fix reference to foreground pixel.
20488 (XTread_socket): Disable loop on all X displays.
20489 (x_delete_terminal): Don't set terminal->deleted and let
20490 delete_terminal delete the frames on the terminal.
20491 (x_delete_display): Doc update to reflect changes in
20492 delete_terminal.
20493 (x_display_info) <terminal>: Move member earlier in the struct.
20494 (deleting_tty): Remove old variable.
20495 (Fsuspend_tty): Call clear_tty_hooks.
20496 (Fresume_tty, init_tty): Call set_tty_hooks.
20497 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20498 errors on X frames.
20499 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20500 (handle_one_xevent): Initialize `f' to NULL.
20501 (x_delete_terminal, x_create_terminal): New functions.
20502 (XTset_terminal_modes, XTreset_terminal_modes)
20503 (XTread_socket, x_connection_closed, x_term_init)
20504 (x_term_init, x_delete_display): Add terminal parameter.
20505 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20506 X connections.
20507
20508 * frame.c: Include termchar.h.
20509 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20510 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20511 (Qdisplay_environment_variable): New vars.
20512 (Fframep): Deal with output_initial.
20513 (Fframe-live-p): Doc fix.
20514 (Fwindow-system): New function.
20515 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20516 (make_terminal_frame): Don't create frames on a terminal that is
20517 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20518 (store_frame_param): Check for found_for_frame before calling XFRAME.
20519 (Fmake_terminal_frame): Handle NULL tty names correctly.
20520 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20521 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20522 frames to refer to a deleted frame in their 'environment parameter.
20523 (Fframe_with_environment): New function.
20524 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20525 (get_future_frame_param): New function.
20526 (Fmake_terminal_frame): Use it.
20527 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20528
20529 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20530 * sysdep.c (reset_sys_modes): Update for renames.
20531
20532 * keyboard.c (tty_read_avail_input): New function.
20533 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20534 (syms_of_keyboard): Defsubr them.
20535 (Fset_input_meta_mode, Fset_quit_char): New functions.
20536 (Fset_input_mode): Split to above functions.
20537 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20538 parameter. Use it in call to `read_char'.
20539 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20540 Set wrong_kboard_jmpbuf correctly in recursive calls.
20541 Use current_kboard to access Vkeyboard_translate_table.
20542 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20543 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20544 Update longjmp invocations. Remember the original current_kboard,
20545 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20546 changes it. Comment out unnecessary calls to
20547 `record_single_kboard_state' and `any_kboard_state'.
20548 Update recursive calls.
20549 (wrong_kboard_jmpbuf): Remove global variable.
20550 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
20551 Handle deleted interrupted_kboards correctly; that is a legal
20552 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
20553 and read_char calls. Abort if interrupted_kboard died in read_char.
20554 (any_kboard_state, single_kboard_state)
20555 (push_frame_kboard): Remove function.
20556 (pop_kboard): Switch out of single_kboard mode if the kboard has
20557 been deleted. Remove unused variable. Help debugging by not
20558 changing current_kboard unnecessarily. Set current_kboard to the
20559 kboard of the selected frame when the stored kboard object has
20560 been deleted before pop_kboard.
20561 (temporarily_switch_to_single_kboard): Change first parameter to a
20562 frame pointer. Throw an error when caller wants to change kboards
20563 while in single_kboard mode. Don't push_kboard if we weren't in
20564 single kboard state. Don't pop_kboard if we popped into any
20565 kboard state.
20566 (restore_kboard_configuration): Abort if pop_kboard changed the
20567 kboard in single_kboard mode. Call pop_kboard only after setting
20568 up single_kboard mode.
20569 (Frecursive_edit): Switch to single_kboard mode only in nested
20570 command loops.
20571 (cmd_error, command_loop, command_loop_1, timer_check):
20572 Comment out unnecessary call to `any_kboard_state' and
20573 `record_single_kboard_state'.
20574 (delete_kboard): Exit single_kboard mode if we have just deleted
20575 that kboard. Use FRAME_KBOARD.
20576 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
20577 `fatal_error_signal'.
20578 (record_single_kboard_state): Don't push_kboard if we weren't in
20579 single kboard state. Don't pop_kboard if we popped into any
20580 kboard state.
20581 (push_frame_kboard): Rename to push_kboard.
20582 (kbd_buffer_get_event): Use FRAME_TERMINAL.
20583 (read_avail_input): Read input from all terminals.
20584 (mark_kboards): Also mark Vkeyboard_translate_table.
20585 (kbd_buffer_store_event_hold): Simplify condition.
20586 (read_key_sequence): Reinitialize fkey and keytran at each replay.
20587 (Vkeyboard_translate_table): Move to struct kboard.
20588 (init_kboard): Initialize Vkeyboard_translate_table.
20589 (syms_of_keyboard): Use DEFVAR_KBOARD to define
20590 Vkeyboard_translate_table. Update doc strings. Update docs of
20591 local-function-key-map and function-key-map.
20592
20593 * terminal.c: New file.
20594
20595 * term.c: Include errno.h.
20596 (Vring_bell_function, device_list, initial_device)
20597 (next_device_id, ring_bell, update_begin, update_end)
20598 (set_terminal_window, cursor_to, raw_cursor_to)
20599 (clear_to_end, clear_frame, clear_end_of_line)
20600 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
20601 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
20602 (syms_of_term): Move their initialization to terminal.c.
20603 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
20604 (Ftty_display_color_cells)
20605 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
20606 (clear_tty_hooks, set_tty_hooks)
20607 (init_tty, maybe_fatal): New functions.
20608 (Ftty_type): Return nil if terminal is not on a tty instead of
20609 throwing an error. Doc update.
20610 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
20611 Doc update. Initialize new subrs and variables.
20612 (delete_tty): Use terminal->deleted.
20613 (tty_set_terminal_modes): Rename from set_terminal_modes.
20614 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
20615 (set_scroll_region): Rename to `tty_set_scroll_region'.
20616 (turn_on_insert): Rename to `tty_turn_on_insert'.
20617 (turn_off_insert): Rename to `tty_turn_off_insert'.
20618 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
20619 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
20620 (toggle_highligh): Rename to `tty_toggle_highlight'.
20621 (background_highlight): Rename to `tty_background_highlight'.
20622 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
20623 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
20624 (tty_set_scroll_region, tty_background_highlight)
20625 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
20626 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
20627 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
20628 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
20629 Add static modifier.
20630 (tty_reset_terminal_modes, tty_set_terminal_window)
20631 (tty_set_scroll_region, tty_background_highlight)
20632 (tty_highlight_if_desired, tty_cursor_to)
20633 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
20634 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
20635 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
20636 renames.
20637
206382007-08-28 Jan Djärv <jan.h.d@swipnet.se>
20639
20640 * keyboard.c: Qrtl is new.
20641 (parse_tool_bar_item): Handle :rtl keyword.
20642 (syms_of_keyboard): Intern :rtl keyword.
20643
20644 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
20645
20646 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
20647 so no Lisp code is executed.
20648 (file_for_image, find_rtl_image): New functions.
20649 (xg_get_image_for_pixmap): Use file_for_image.
20650 (update_frame_tool_bar): If direction is RTL, use RTL image if
20651 defined. Use Gtk stock images if defined.
20652
206532007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20654
20655 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
20656 for nonexistent or zero-width glyph in composition glyph.
20657
206582007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
20659
20660 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
20661
20662 * xdisp.c (Finvisible_p): New function.
20663 (syms_of_xdisp): defsubr it.
20664
206652007-08-24 Juanma Barranquero <lekktu@gmail.com>
20666
20667 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
20668 Doc fixes.
20669
206702007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20671
20672 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
20673
206742007-08-24 Martin Rudalics <rudalics@gmx.at>
20675
20676 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
20677 whether decoding has modified buffer contents.
20678
206792007-08-24 Jason Rumney <jasonr@gnu.org>
20680
20681 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
20682 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
20683 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
20684 (init_svg_functions) [HAVE_NTGUI]: New function.
20685 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
20686 (svg_load_image): Use them.
20687 (svg_load_image) [HAVE_NTGUI]: Implement background.
20688
206892007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20690
20691 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
20692 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
20693 (LIBX): Remove @RSVG_LIBS@.
20694 (LIBES): Add $(RSVG_LIBS).
20695
20696 * image.c (svg_load_image): Blend with specified background if exists.
20697 Use IMAGE_BACKGROUND. Add Mac OS Support.
20698
20699 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
20700 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
20701 Remove macros.
20702 [MAC_OSX] (socket_callback): Do nothing.
20703 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
20704 ReceiveNextEvent.
20705 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
20706 socket_callback.
20707 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
20708
207092007-08-22 Glenn Morris <rgm@gnu.org>
20710
20711 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
20712
207132007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
20714
20715 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
20716
20717 * image.c: Add support for SVG images. Some additional comments
20718 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
20719 (svg_image_p): New function to test for SVG image.
20720 (svg_load): New function to load SVG image.
20721 (svg_load_image): New function, helper for svg_load.
20722 (Qsvg): New Lisp_object.
20723 (svg_keyword_index): New enum.
20724 (svg_format): New static `image_keyword' struct.
20725 (svg_type): New static `image_type' struct.
20726 (librsvg/rsvg.h): Include it.
20727
207282007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
20729
20730 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
20731
207322007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
20733
20734 * lread.c (Qold_style_backquotes): New var.
20735 (syms_of_lread): Init and staticpro it.
20736 (load_warn_old_style_backquotes): New fun.
20737 (Fload): Use them to warn about old style backquotes.
20738 (end_of_file_error, Fload): Remove unused vars.
20739
20740 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
20741
20742 * lread.c (Vold_style_backquotes): New var.
20743 (syms_of_lread): Init and export it to Elisp.
20744 (read1): Set it when we find an old-style (back)quote.
20745
207462007-08-22 Jason Rumney <jasonr@gnu.org>
20747
20748 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
20749
207502007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
20751
20752 * puresize.h (BASE_PURESIZE): Increase to 1140000.
20753
207542007-08-19 Richard Stallman <rms@gnu.org>
20755
20756 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
20757
207582007-08-19 Andreas Schwab <schwab@suse.de>
20759
20760 * alloc.c (pure): Round PURESIZE up.
20761
207622007-08-17 Jan Djärv <jan.h.d@swipnet.se>
20763
20764 * xterm.c (handle_one_xevent): Remove check that mouse click is in
20765 active frame.
20766
207672007-08-16 Richard Stallman <rms@gnu.org>
20768
20769 * eval.c (Fcommandp): Add parens to clarify.
20770
20771 * minibuf.c (Fall_completions): Use enum for type of table.
20772
20773 * emacs.c (USAGE2): Improve text.
20774
207752007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
20776
20777 * term.c (tty_default_color_capabilities): Declare static
20778 variables in file scope, to avoid HPUX compiler problem.
20779
207802007-08-13 Jan Djärv <jan.h.d@swipnet.se>
20781
20782 * gtkutil.c (update_frame_tool_bar): Use -1 as index
20783 to gtk_toolbar_insert.
20784
207852007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
20786
20787 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
20788
20789 * insdel.c (reset_var_on_error): New fun.
20790 (signal_before_change, signal_after_change):
20791 Use it to reset (after|before)-change-functions to nil in case of error.
20792 Bind inhibit-modification-hooks to t.
20793 Don't bind (after|before)-change-functions to nil while they run.
20794
207952007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20796
20797 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
20798 filling pixmap with stippled background.
20799
208002007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20801
20802 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
20803 Don't use invisible frame as parent window for repositioning.
20804
208052007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
20806
20807 * print.c (new_backquote_output): Rename from old_backquote_output.
20808 (print): Inverse its logic (according to its name) so as to match the
20809 behavior of new_backquote_flag in lread.c.
20810
208112007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20812
20813 * gmalloc.c (posix_memalign): New function.
20814
20815 * macterm.c (frame_highlight, frame_unhighlight): Don't call
20816 ActivateControl/DeactivateControl here.
20817 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
20818 frame-notice-user-settings is non-nil.
20819 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
20820 for kEventParamFMFontStyle.
20821 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
20822 mac_pass_command_to_system and mac_pass_control_to_system here.
20823 (XTread_socket): Call ActivateControl/DeactivateControl here.
20824 (XTread_socket) [TARGET_API_MAC_CARBON]:
20825 Check mac_pass_command_to_system and mac_pass_control_to_system here.
20826 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
20827 for window repositioning.
20828
208292007-08-08 Glenn Morris <rgm@gnu.org>
20830
20831 * Replace `iff' in doc-strings and comments.
20832
208332007-08-07 Chong Yidong <cyd@stupidchicken.com>
20834
20835 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
20836
208372007-08-07 Martin Rudalics <rudalics@gmx.at>
20838
20839 * fileio.c (Finsert_file_contents): Run format-decode and
20840 after_insert_file_functions on entire buffer when REPLACE is
20841 non-nil and inhibit modification_hooks and point_motion_hooks.
20842 For consistency, run after_insert_file_functions iff something
20843 got inserted. Move signal_after_change and update_compositions
20844 after code running after_insert_file_functions. Make sure that
20845 undo_list doesn't record intermediate steps of the decoding process.
20846
208472007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20848
20849 * emacs.c (main)
20850 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
20851 Call malloc_enable_thread on interactive startup.
20852
20853 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
20854 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
20855 [USE_PTHREAD]: Conditionalize with it.
20856 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
20857 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
20858 New functions.
20859
208602007-08-06 Chong Yidong <cyd@stupidchicken.com>
20861
20862 * xdisp.c (redisplay_window): When restoring original buffer
20863 position, make sure it is still valid.
20864
20865 * image.c (png_load): Ignore png-supplied background color.
20866
208672007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20868
20869 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20870 Use kCFAbsoluteTimeIntervalSince1970.
20871
20872 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20873 New variable.
20874 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20875 event loop should be quit.
20876 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20877 Quit dialog event loop if quit_dialog_event_loop is set.
20878
20879 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20880 (Selection): New typedef. Use instead of ScrapRef.
20881 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20882 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20883 (mac_clear_selection): Rename from clear_scrap.
20884 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20885 scrap_has_target_type. All uses changed.
20886 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20887 (mac_selection_has_target_p): New functions.
20888 (mac_put_selection_value): Rename from put_scrap_string.
20889 (mac_get_selection_value): Rename from get_scrap_string.
20890 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20891 (put_scrap_private_timestamp, scrap_has_target_type)
20892 (get_scrap_private_timestamp): Remove functions.
20893 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20894 (x_own_selection, x_get_local_selection):
20895 Use mac_valid_selection_value_p.
20896 (x_own_selection): Don't use put_scrap_private_timestamp.
20897 Record OWNERSHIP-INFO into Vselection_alist instead.
20898 (x_get_local_selection): Don't check type if request is local.
20899 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
20900 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
20901
209022007-08-04 Jan Djärv <jan.h.d@swipnet.se>
20903
20904 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
20905 add comment explaining why.
20906
209072007-08-03 Richard Stallman <rms@gnu.org>
20908
20909 * fileio.c (Fvisited_file_modtime): Use make_time.
20910
209112007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
20912
20913 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
20914 build.
20915
209162007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
20917
20918 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
20919
209202007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
20921
20922 * puresize.h (BASE_PURESIZE): Increase to 1130000.
20923
209242007-07-30 Richard Stallman <rms@gnu.org>
20925
20926 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
20927
209282007-07-29 Jan Djärv <jan.h.d@swipnet.se>
20929
20930 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
20931
209322007-07-28 Nick Roberts <nickrob@snap.net.nz>
20933
20934 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
20935 remote default-directory.
20936
20937 * buffer.c (mode-line-format): Update doc string.
20938
209392007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20940
20941 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
20942 scroll bar gap.
20943 (x_scroll_bar_create): Set bar->fringe_extended_p.
20944 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
20945 on frame edge. Check fringe background extension. Don't clear
20946 extended fringe background area.
20947
20948 * w32term.h (struct scroll_bar): New member fringe_extended_p.
20949 (w32_fill_area): Enclose multiple statements with do ... while (0).
20950
20951 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
20952 Extend fringe background to scroll bar gap.
20953 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
20954 Set bar->fringe_extended_p.
20955 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20956 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20957 background extension. Don't clear extended fringe background area.
20958
20959 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20960 New member fringe_extended_p.
20961
209622007-07-25 Glenn Morris <rgm@gnu.org>
20963
20964 * Relicense all FSF files to GPLv3 or later.
20965
20966 * COPYING: Switch to GPLv3.
20967
209682007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20969
20970 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20971
20972 * data.c (Finteractive_form): Check for the presence of an
20973 `interactive-form' symbol property more thoroughly.
20974
20975 * data.c (Finteractive_form): Use an `interactive-form' property if
20976 present, analogous to the function-documentation property.
20977
209782007-07-24 Jason Rumney <jasonr@gnu.org>
20979
20980 * w32fns.c (x_real_positions): Get real position from OS instead of
20981 calculating it.
20982
209832007-07-23 Jason Rumney <jasonr@gnu.org>
20984
20985 * filelock.c (current_lock_owner): Allow for @ sign in username.
20986
209872007-07-22 Nick Roberts <nickrob@snap.net.nz>
20988
20989 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20990 remote default-directory.
20991
20992 * buffer.c (mode-line-format): Describe above case in doc string.
20993
209942007-07-20 Eli Zaretskii <eliz@gnu.org>
20995
20996 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20997 Define if not defined.
20998
209992007-07-18 Jason Rumney <jasonr@gnu.org>
21000
21001 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21002
210032007-07-18 Richard Stallman <rms@gnu.org>
21004
21005 * data.c (Fsetq_default): Doc fix.
21006
21007 * eval.c (Fsetq): Doc fix.
21008
210092007-07-18 Juanma Barranquero <lekktu@gmail.com>
21010
21011 * coding.c (Ffind_operation_coding_system):
21012 * eval.c (For, Fand): Doc fixes.
21013 Reported by Johan Bockgård.
21014
210152007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21016
21017 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21018
21019 * xterm.h: Declare x_ewmh_activate_frame.
21020
21021 * xterm.c (x_ewmh_activate_frame): New function.
21022 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21023
210242007-07-17 Martin Rudalics <rudalics@gmx.at>
21025
21026 * window.c (Fdisplay_buffer): If largest or LRU window is the
21027 only window, split it even if it is not eligible for splitting.
21028 This restores the original behavior broken by the 2007-07-15
21029 change.
21030
210312007-07-17 Glenn Morris <rgm@gnu.org>
21032
21033 * abbrev.c (abbrev_check_chars): New function.
21034 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21035 Call abbrev_check_chars to check abbrev characters are word
21036 constituents. Doc fix.
21037
210382007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21039
21040 * process.c (Fstart_process, Fmake_network_process)
21041 (read_process_output): Fix up last changes.
21042
210432007-07-16 Eli Zaretskii <eliz@gnu.org>
21044
21045 * makefile.w32-in (clean): Don't delete *~.
21046
210472007-07-16 Andreas Schwab <schwab@suse.de>
21048
21049 * window.c (Fdisplay_buffer): Use NILP.
21050 (Fset_window_scroll_bars): Likewise.
21051
210522007-07-15 Martin Rudalics <rudalics@gmx.at>
21053
21054 * window.c (window_min_size_2): New function.
21055 (window_min_size_1, size_window, Fdisplay_buffer)
21056 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21057 windows without mode- or header-lines when window-min-height is
21058 too small.
21059 (size_window): Reset nodelete_p after testing it, following an
21060 earlier note by Kim F. Storm.
21061 (display_buffer): Do not set split_height_threshold to twice the
21062 value of window_min_height to avoid changing the value of a
21063 customizable variable. Rather explicitly check whether the
21064 height of the window that shall be splitted is at least as large
21065 as split_height_threshold.
21066 (Fwindow_full_width_p): New defun.
21067 (syms_of_window): Defsubr it.
21068
21069 * window.h: Add EXFUN for Fwindow_full_width_p.
21070
210712007-07-14 Jason Rumney <jasonr@gnu.org>
21072
21073 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21074
210752007-07-14 Richard Stallman <rms@gnu.org>
21076
21077 * eval.c (maybe_call_debugger): New function.
21078 (find_handler_clause): Use maybe_call_debugger.
21079 Call it when the handler says `debug'.
21080 Eliminate DEBUGGER_VALUE_PTR.
21081 (Fsignal): Eliminate debugger_value.
21082 (Qdebug): New variable.
21083 (syms_of_eval): Initialize it.
21084
210852007-07-14 Juanma Barranquero <lekktu@gmail.com>
21086
21087 * eval.c (Fprogn):
21088 * keyboard.c (Ftrack_mouse):
21089 * print.c (Fwith_output_to_temp_buffer):
21090 * window.c (Fsave_window_excursion): Doc fix.
21091
210922007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21093
21094 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21095
210962007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21097
21098 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21099 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21100 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21101 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21102 Remove unused encoding_carryover.
21103 * process.c: Adjust all functions accordingly.
21104
211052007-07-12 Richard Stallman <rms@gnu.org>
21106
21107 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21108
211092007-07-11 Jason Rumney <jasonr@gnu.org>
21110
21111 * makefile.w32-in (LIBS): Include OLE32.
21112
21113 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21114 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21115
211162007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21117
21118 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21119 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21120 from a Lisp_Object into a bare pointer.
21121 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21122 Adjust the code correspondingly.
21123
21124 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21125
21126 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21127 (term_show_mouse_face): Remove unused var `j'.
21128 (handle_one_term_event): Remove unused vars `i' and `j'.
21129 Don't cast return value of ttyname since it's not necessary.
21130
211312007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21132
21133 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21134 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21135
21136 * fns.c (map_char_table): Use an array of int for `indices' rather than
21137 an array of Lisp_Objects (which are only ever integers anyway).
21138 (Fmap_char_table): Update caller.
21139 * lisp.h: Update prototype.
21140 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21141 * fontset.c (Ffontset_info):
21142 * casetab.c (set_case_table): Update callers.
21143
21144 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21145
21146 * keymap.c (struct accessible_keymaps_data)
21147 (struct where_is_internal_data): New structures.
21148 (accessible_keymaps_1, where_is_internal_1): Use them to change
21149 interface to adhere to the one used by map_keymap.
21150 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21151 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21152
21153 * keymap.h (map_keymap_function_t): More informative prototype.
21154
211552007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21156
21157 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21158 (looking_at_1): Don't change search_regs and last_thing_searched
21159 if `inhibit-changing-match-data' is non-nil.
21160 (string_match_1, search_buffer, set_search_regs): Likewise.
21161 (syms_of_search): Add Lisp level definition for
21162 `inhibit-changing-match-data' and set it to nil.
21163 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21164 start and end of the match, instead of using values in search_regs.
21165
211662007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21167
21168 * minibuf.c (Fcompleting_read): New value `confirm-only'
21169 for `require-match'.
21170
211712007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21172
21173 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21174 part of the 2007-06-27 change to syms_of_fileio.
21175
211762007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21177
21178 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21179 Check WINDOWP before using XWINDOW. Consolidate return statements.
21180
211812007-06-27 Richard Stallman <rms@gnu.org>
21182
21183 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21184
211852007-06-27 Juanma Barranquero <lekktu@gmail.com>
21186
21187 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21188
211892007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21190
21191 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21192 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21193 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21194 (_free_internal, memalign): Use them.
21195 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21196 Initialize to PTHREAD_MUTEX_INITIALIZER.
21197 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21198 (morecore_nolock): Rename from morecore. All uses changed.
21199 Use only nolock versions of internal allocation functions.
21200 (_malloc_internal_nolock, _realloc_internal_nolock)
21201 (_free_internal_nolock): New functions created from
21202 _malloc_internal, _realloc_internal, and _free_internal.
21203 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21204 Copy hook value to automatic variable before its use.
21205 (memalign): Copy hook value to automatic variable before its use.
21206
212072007-06-26 Kenichi Handa <handa@m17n.org>
21208
21209 * coding.c (Ffind_operation_coding_system): Docstring improved.
21210 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21211
212122007-06-25 David Kastrup <dak@gnu.org>
21213
21214 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21215 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21216 cater for additional parameter.
21217
21218 * keymap.h: Adjust number of parameters to `current-active-maps'.
21219
21220 * doc.c (Fsubstitute_command_keys): Adjust call of
21221 `current-active-maps'.
21222
212232007-06-25 David Kastrup <dak@gnu.org>
21224
21225 * callint.c (Fcall_interactively): Make the parsing of interactive
21226 specs somewhat more readable.
21227
212282007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21229
21230 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21231 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21232 if extended background has already been filled.
21233
212342007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21235
21236 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21237 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21238
21239 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21240 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21241 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21242 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21243 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21244 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21245 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21246 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21247 Run timers during dialog popup.
21248 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21249
212502007-06-21 Jason Rumney <jasonr@gnu.org>
21251
21252 * image.c (convert_mono_to_color_image): Swap fore and background.
21253
212542007-06-20 Jason Rumney <jasonr@gnu.org>
21255
21256 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21257 (w32_free_bdf_font): Unmap memory not handle.
21258
212592007-06-20 Sam Steingold <sds@gnu.org>
21260
21261 * gmalloc.c (__morecore): Fix the declaration to comply with the
21262 definition.
21263
212642007-06-20 Juanma Barranquero <lekktu@gmail.com>
21265
21266 * w32term.c (w32_delete_display): Remove leftover declaration.
21267 (w32_define_cursor, w32_initialize): Make static.
21268
21269 * w32.c (_wsa_errlist): Fix typo in error message.
21270 (init_environment): Ignore any environment variable from the
21271 registry having a null value.
21272
212732007-06-20 Glenn Morris <rgm@gnu.org>
21274
21275 * Makefile.in (LIBGIF): Default to -lgif.
21276
212772007-06-17 Jason Rumney <jasonr@gnu.org>
21278
21279 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21280 unicode strings.
21281
212822007-06-16 Juanma Barranquero <lekktu@gmail.com>
21283
21284 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21285 Fix typo in docstring.
21286
212872007-06-16 Eli Zaretskii <eliz@gnu.org>
21288
21289 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21290 and their keybindings.
21291
212922007-06-15 Chong Yidong <cyd@stupidchicken.com>
21293
21294 * composite.c (update_compositions): Fix last fix.
21295
212962007-06-14 Jason Rumney <jasonr@gnu.org>
21297
21298 * w32.c (get_process_times_fn): New function pointer.
21299 (globals_of_w32): Intialize it if present in kernel32.dll.
21300 (w32_get_internal_run_time): New function.
21301
21302 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21303
213042007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21305
21306 * composite.c (update_compositions): Check the validness of
21307 compositions.
21308
213092007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21310
21311 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21312 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21313
21314 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21315 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21316
21317 * macgui.h (USE_MAC_TOOLBAR): New define.
21318
21319 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21320 Return immediately unless popup is activated.
21321
21322 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21323 background to scroll bar gap.
21324 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21325 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21326 scroll bars on frame edge. Check fringe background extension.
21327 Don't clear extended fringe background area.
21328 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21329 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21330 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21331 [USE_MAC_TOOLBAR]: New macros.
21332 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21333 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21334 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21335 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21336 [USE_MAC_TOOLBAR]: New functions.
21337 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21338 manually if previous repositioning has failed.
21339 (mac_handle_keyboard_event): Use precomputed event kind.
21340 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21341 as tool bar item click. Handle mouse movement over tool bar items.
21342
21343 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21344 toolbar_win_gravity.
21345 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21346 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21347 Add externs.
21348
21349 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21350 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21351
213522007-06-14 Chong Yidong <cyd@stupidchicken.com>
21353
21354 * image.c (search_image_cache): Remove unused variable.
21355
213562007-06-13 Chong Yidong <cyd@stupidchicken.com>
21357
21358 * xfns.c, xmenu.c: Link to xaw3d if available.
21359
213602007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21361
21362 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21363 frame_foreground and frame_background.
21364
21365 * image.c (lookup_image): Save frame foreground and background colors.
21366 (search_image_cache): Check if saved and current frame colors match.
21367
213682007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21369
21370 * regex.c (regex_compile): Remove the `regnum' counter.
21371 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21372
213732007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21374
21375 * term.c: Include intervals.h to declare Fget_text_property.
21376
213772007-06-10 Jason Rumney <jasonr@gnu.org>
21378
21379 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21380
213812007-06-08 Juanma Barranquero <lekktu@gmail.com>
21382
21383 * callint.c (Fcall_interactively):
21384 * editfns.c (Fdelete_and_extract_region):
21385 * fileio.c (Fread_file_name):
21386 * fns.c (Fmapconcat):
21387 * keyboard.c (cmd_error_internal):
21388 * keymap.c (Fkey_description):
21389 * lread.c (openp):
21390 * minibuf.c (read_minibuf):
21391 * search.c (wordify):
21392 * sunfns.c (sel_read):
21393 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21394 * xfns.c (x_default_scroll_bar_color_parameter):
21395 * xmenu.c (menu_help_callback):
21396 * xselect.c (Fx_get_atom_name):
21397 * xterm.c (x_term_init): Use empty_unibyte_string.
21398
213992007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21400
21401 * alloc.c (init_strings): Initialize canonical empty strings.
21402 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21403 canonical empty string when the requested size is 0.
21404
21405 * emacs.c (empty_unibyte_string): Rename from empty_string.
21406 (empty_multibyte_string): New canonical empty string.
21407 (syms_of_emacs): Don't initialize empty_string.
21408
21409 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21410 string, if appropriate.
21411 (empty_unibyte_string, empty_multibyte_string): New externs.
21412 (empty_string): Remove extern.
21413
21414 * lread.c (syms_of_lread): Use empty_unibyte_string.
21415
214162007-06-07 Jason Rumney <jasonr@gnu.org>
21417
21418 * s/ms-w32.h: Don't define HAVE_TZNAME.
21419
21420 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21421
214222007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21423
21424 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21425
21426 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21427 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21428
21429 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21430 Don't call next handler.
21431 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21432 Remove argument. Install handler to application.
21433 (set_frame_menubar): Don't change deep_p.
21434 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21435 FRAME_OUTER_TO_INNER_DIFF_Y.
21436 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21437 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21438 [HAVE_DIALOGS]: New macros.
21439 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21440 Use them.
21441 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21442
21443 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21444 init_service_handler. All callers changed. Return OSStatus value.
21445
21446 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21447 All callers changed so as not to call SetPortWindowPort.
21448 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21449 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21450 mac_draw_string_common.
21451 (mac_draw_image_string_qd): Likewise.
21452 (mac_draw_string_common): Use them. Add INLINE.
21453 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21454 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21455 GetGlobalMouse.
21456 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21457 and FRAME_OUTER_TO_INNER_DIFF_Y.
21458 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21459 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21460 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21461 repositioning window to mac_handle_window_event.
21462 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21463 saving window location to mac_handle_window_event
21464 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21465 (install_menu_target_item_handler): Remove argument in extern.
21466 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21467 Also accept command events.
21468 (do_keystroke): New function created from XTread_socket.
21469 (init_command_handler): Remove functions.
21470 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21471 and save window location by kEventWindowShowing and kEventWindowHiding
21472 handlers here. Don't call next handler for window state change and
21473 focus events.
21474 (mac_handle_application_event, mac_handle_keyboard_event)
21475 [TARGET_API_MAC_CARBON]: New functions.
21476 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21477 kEventWindowShowing and kEventWindowHiding events. Move installation
21478 of mouse, font, text input and menu target item handlers to
21479 install_application_handler.
21480 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21481 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21482 New function.
21483 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21484 Register it.
21485 (XTread_socket) [TARGET_API_MAC_CARBON]:
21486 Consolidate SendEventToEventTarget calls.
21487 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21488 Move application activation handler to mac_handle_application_event.
21489 Move keyboard handler to mac_handle_keyboard_event.
21490 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21491 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21492 init_command_handler. Call install_application_handler.
21493
21494 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21495 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21496
214972007-06-07 Glenn Morris <rgm@gnu.org>
21498
21499 * emacs.c (main): Use `emacs-copyright' in --version output.
21500
215012007-06-06 Chong Yidong <cyd@stupidchicken.com>
21502
21503 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21504
215052007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21506
21507 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21508
21509 * macgui.h: Replace WindowPtr with WindowRef.
21510
21511 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21512 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21513 Replace ControlHandle with ControlRef.
21514 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21515
21516 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21517 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21518 Replace ControlHandle with ControlRef.
21519 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21520 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21521
21522 * macterm.h (struct scroll_bar): Rename member control_handle_low
21523 and control_handle_high to control_ref_low and control_ref_high.
21524 All uses changed.
21525 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21526 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21527 respectively. All uses changed.
21528 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21529 (install_window_handler, remove_window_handler): Replace WindowPtr
21530 with WindowRef in externs.
21531
215322007-06-05 Juanma Barranquero <lekktu@gmail.com>
21533
21534 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21535
215362007-06-03 Nick Roberts <nickrob@snap.net.nz>
21537
21538 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21539
21540 * frame.c (Fmouse_position, Fmouse_pixel_position):
21541 Condition on HAVE_GPM too.
21542
21543 * term.c (term_mouse_highlight): Remove unused variables.
21544 (Fterm_open_connection): Set gpm_zerobased to 1.
21545 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21546 Use zero based co-ordinates.
21547 (handle_one_term_event): Report a drag as mouse movement too.
21548
21549 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
21550
215512007-06-03 Chong Yidong <cyd@stupidchicken.com>
21552
21553 * image.c (search_image_cache): New function. Require background
21554 color match if background color is unspecified in the image spec.
21555 (uncache_image, lookup_image): Use it.
21556
215572007-06-01 Juanma Barranquero <lekktu@gmail.com>
21558
21559 * window.c (Fshrink_window): Reflow docstring.
21560
215612007-06-02 Chong Yidong <cyd@stupidchicken.com>
21562
21563 * Version 22.1 released.
21564
215652007-06-01 Richard Stallman <rms@gnu.org>
21566
21567 * xfns.c (x_encode_text): Add GCPRO.
21568
215692007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21570
21571 * xfns.c (x_set_name_internal): Save encoded name before
21572 x_encode_text in case string data is relocated.
21573
215742007-05-31 Richard Stallman <rms@gnu.org>
21575
21576 * buffer.c (syms_of_buffer): Doc fix.
21577
215782007-05-30 Nick Roberts <nickrob@snap.net.nz>
21579
21580 * sysdep.c (init_sys_modes): Add rather than replace with
21581 O_NONBLOCK.
21582
21583 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
21584 term_mouse_moveto.
21585
21586 * termhooks.h (term_mouse_moveto): New extern.
21587
21588 * term.c (mouse_face_window): Rename...
21589 (Qmouse_face_window): ...to this.
21590 (term_show_mouse_face, term_clear_mouse_face)
21591 (term_mouse_highlight): Use Qmouse_face_window.
21592 (term_mouse_moveto): New function.
21593 (term_mouse_position): Make it work.
21594 (syms_of_term): Uncomment assignment to mouse_position_hook.
21595 Staticpro Qmouse_face_window.
21596
215972007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21598
21599 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
21600 around current_column call.
21601
216022007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
21603
21604 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
21605 * xdisp.c (next_element_from_buffer):
21606 * window.c (delete_window):
21607 * term.c (term_mouse_highlight):
21608 * msdos.c (getdefdir):
21609 * macterm.c (mac_create_bitmap_from_bitmap_data)
21610 (init_font_name_table):
21611 * fns.c (Fsxhash):
21612 * data.c (Fmake_local_variable):
21613 * ccl.c (ccl_driver): Likewise.
21614
216152007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21616
21617 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
21618 Call mac_wakeup_from_rne on window size change.
21619
216202007-05-25 Chong Yidong <cyd@stupidchicken.com>
21621
21622 * image.c (uncache_image): Fix typo.
21623
216242007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
21625
21626 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
21627
216282007-05-22 Richard Stallman <rms@gnu.org>
21629
21630 * xterm.c (x_connection_closed): Remove NO_RETURN.
21631
216322007-05-22 Martin Rudalics <rudalics@gmx.at>
21633
21634 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
21635
216362007-05-21 Chong Yidong <cyd@stupidchicken.com>
21637
21638 * image.c (uncache_image): New function.
21639 (Fimage_refresh): New function.
21640
216412007-05-20 Jan Djärv <jan.h.d@swipnet.se>
21642
21643 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
21644
216452007-05-20 Nick Roberts <nickrob@snap.net.nz>
21646
21647 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
21648 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
21649
216502007-05-20 Nick Roberts <nickrob@snap.net.nz>
21651
21652 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
21653 conditional on [HAVE_GPM_H].
21654
216552007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21656
21657 * syntax.c (skip_chars): Update syntax-table only after we checked that
21658 the new location is valid.
21659
216602007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21661
21662 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
21663 mac_get_window_bounds.
21664
216652007-05-20 Nick Roberts <nickrob@snap.net.nz>
21666
21667 * Makefile.in (LIBGPM): Allow it to be set from configure.
21668 If set then link Emacs with it.
21669
21670 * config.in: Regenerate.
21671
21672 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
21673 New externs.
21674
21675 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
21676 Include gpm.h.
21677 (handle_one_term_event, term_gpm): New externs.
21678
21679 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
21680 and allow it to be interrupted by SIGIO.
21681
21682 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
21683 (wait_reading_process_output): Wait on gpm_fd too.
21684 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
21685 (add_gpm_wait_descriptor_called_flag): New variable.
21686 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
21687
21688 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
21689 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
21690 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
21691 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
21692 (make_lispy_event): Add case GPM_CLICK_EVENT.
21693 (read_avail_input): Handle mouse input.
21694
21695 * term.c (write_glyphs_with_face): New function.
21696 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
21697 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
21698 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
21699 (mouse_face_face_id, term_gpm, pos_x, pos_y)
21700 (last_mouse_x, last_mouse_y): New variables.
21701 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
21702 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
21703 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
21704 (Fterm_close_connection): New functions.
21705 (term_init): Initialise mouse_face_window.
21706
217072007-05-19 Chong Yidong <cyd@stupidchicken.com>
21708
21709 * xdisp.c (redisplay_window): If first window line is a
21710 continuation line, recompute the new window start instead of
21711 recentering.
21712
217132007-05-18 Glenn Morris <rgm@gnu.org>
21714
21715 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
21716 Suggested by Alfred M. Szmidt <ams@gnu.org>.
21717
217182007-05-17 Glenn Morris <rgm@gnu.org>
21719
21720 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
21721
217222007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21723
21724 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
21725 dead key repeat and up events.
21726
217272007-05-14 Chong Yidong <cyd@stupidchicken.com>
21728
21729 * image.c (pbm_load): Check image size for monochrome pbm.
21730
217312007-05-13 Chong Yidong <cyd@stupidchicken.com>
21732
21733 * xterm.c (XTread_socket): Revert last change.
21734
217352007-05-12 Chong Yidong <cyd@stupidchicken.com>
21736
21737 * image.c (pbm_load): Correctly check image size for greyscale pbm.
21738
21739 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
21740
217412007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21742
21743 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
21744 mixup (YAILOM).
21745
217462007-05-07 Andreas Schwab <schwab@suse.de>
21747
21748 * keymap.c (Flookup_key): Fix typo in last change.
21749
217502007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21751
21752 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
21753 mapping for unibyte strings.
21754
217552007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21756
21757 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
21758 (Fx_popup_dialog) [MAC_OSX]: Likewise.
21759
217602007-04-29 Richard Stallman <rms@gnu.org>
21761
21762 * insdel.c (replace_range): For undo, record insertion first.
21763
217642007-04-29 Andreas Schwab <schwab@suse.de>
21765
21766 * lisp.h (VECSIZE): Use OFFSETOF.
21767
217682007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21769
21770 * xdisp.c (try_window_reusing_current_matrix): Fix number of
21771 disabled lines.
21772
217732007-04-28 Richard Stallman <rms@gnu.org>
21774
21775 * lread.c (read_escape): In a string, \s is always space.
21776
217772007-04-27 Jan Djärv <jan.h.d@swipnet.se>
21778
21779 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
21780
21781 * gtkutil.c (xg_update_menubar, create_menus): Create empty
21782 submenu for menu bar items.
21783
21784See ChangeLog.10 for earlier changes.
21785
21786;; Local Variables:
21787;; coding: utf-8
21788;; add-log-time-zone-rule: t
aac0c6e3
MR
21789;; End:
21790
e3eb1dae 21791 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
21792
21793 This file is part of GNU Emacs.
21794
21795 GNU Emacs is free software: you can redistribute it and/or modify
21796 it under the terms of the GNU General Public License as published by
21797 the Free Software Foundation, either version 3 of the License, or
21798 (at your option) any later version.
21799
21800 GNU Emacs is distributed in the hope that it will be useful,
21801 but WITHOUT ANY WARRANTY; without even the implied warranty of
21802 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21803 GNU General Public License for more details.
21804
21805 You should have received a copy of the GNU General Public License
21806 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21807
21808;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40